1 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
3 * config.guess: Update to lastest versiom from config git.
4 * config.sub: Likewise.
6 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
8 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
9 unknown-command case. Fixes bug #27320.
11 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
13 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
14 `help' if the command exists.
16 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
18 * INSTALL: Require GCC 4.1.3 or later.
20 2009-09-06 Yves Blusseau <blusseau@zetam.org>
22 * Makefile.in (RMKFILES): add i386-qemu.rmk
23 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
26 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
28 * util/grub-probe.c (probe): Comment out buggy codepath, which
29 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
30 should be re-enabled after 1.97.
32 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
34 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
37 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
39 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
40 unnecessary calls to grub_error.
42 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
44 * NEWS: Mention `keystatus' and Unicode fonts.
46 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
48 * configure.ac: Bump version to 1.97~beta2.
49 * docs/version.texi: Likewise.
51 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
53 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
54 containing unwind information in some cases where it previously did
55 not. Use -fno-dwarf2-cfi-asm if available to restore the old
56 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
59 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
61 Embedding loadenv module into grub-emu
63 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
65 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
66 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
67 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
68 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
69 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
70 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
72 2009-09-03 Magnus Granberg <zorry@ume.nu>
74 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
75 include -fPIE in the default specs.
76 * configure.ac: Check if pie_possible is yes and add -fno-PIE
79 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
81 * INSTALL: Note that GNU Bison 2.3 or later is required.
83 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
85 * kern/i386/pc/startup.S: Fix typo.
87 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
89 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
92 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
94 * docs/grub.texi (Naming convention): Describe one-based partition
96 (Device syntax): Likewise.
97 (File name syntax): Likewise.
98 (Block list syntax): Likewise.
99 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
101 (File name syntax): Likewise.
102 (Command-line and menu entry commands): Document acpi, blocklist,
103 crc, export, insmod, keystatus, ls, set, and unset commands.
105 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
107 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
108 to avoid implying that only one of --shift, --ctrl, or --alt may be
111 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
113 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
114 rather than comparing against S_IFREG, which will almost never work.
116 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
118 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
119 (write_blocklists): Likewise.
121 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
123 * script/lua/grub_lua.h (fputs): Supply a format string as the first
124 argument to grub_printf.
126 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
128 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
131 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
133 * kern/file.c (grub_file_read): Spelling fix
135 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
137 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
138 loading of headers in some cases.
140 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
142 * configure.ac: Bump version to 1.97~beta1.
143 * docs/version.texi: Likewise.
145 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
147 * include/grub/i386/xnu.h: Add license header.
148 include grub/err.h explicitly.
150 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
152 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
153 to `ufs' in the vfs.root.mountfrom kernel parameter.
155 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
157 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
159 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
160 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
162 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
165 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
167 * kern/file.c (grub_file_read): Check offset.
168 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
169 * fs/jfs.c (grub_jfs_read_file): Likewise.
170 * fs/ntfs.c (grub_ntfs_read): Likewise.
171 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
172 * fs/minix.c (grub_minix_read_file): Correct offset check.
173 * fs/ufs.c (grub_ufs_read_file): Likewise.
175 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
177 * term/i386/pc/console.c (bios_data_area): Cast
178 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
180 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
182 1-bit optimised blitters.
184 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
186 (grub_video_fbblit_replace_24bit_1bit): Likewise.
187 (grub_video_fbblit_replace_16bit_1bit): Likewise.
188 (grub_video_fbblit_replace_8bit_1bit): Likewise.
189 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
190 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
191 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
192 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
194 (grub_video_fbblit_replace_24bit_1bit): Likewise.
195 (grub_video_fbblit_replace_16bit_1bit): Likewise.
196 (grub_video_fbblit_replace_8bit_1bit): Likewise.
197 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
198 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
199 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
200 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
202 * video/video.c (grub_video_get_blit_format): Return
203 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
205 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
207 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
208 the first argument to grub_printf.
210 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
211 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
213 Add `getkeystatus' terminal method. Add a new `keystatus' command
216 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
217 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
218 modifier key bitmasks.
219 (struct grub_term_input): Add `getkeystatus' member.
220 (grub_getkeystatus): Add prototype.
221 * kern/term.c (grub_getkeystatus): New function.
223 * include/grub/i386/pc/memory.h
224 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
225 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
227 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
228 (grub_console_term_input): Set `getkeystatus' member.
229 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
231 (grub_usb_keyboard_getreport): Likewise.
232 (grub_usb_keyboard_checkkey): Likewise.
233 (grub_usb_keyboard_getkeystatus): New function.
234 (grub_usb_keyboard_term): Set `getkeystatus' member.
236 * commands/keystatus.c: New file.
237 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
238 (keystatus_mod_SOURCES): New variable.
239 (keystatus_mod_CFLAGS): Likewise.
240 (keystatus_mod_LDFLAGS): Likewise.
241 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
242 commands/keystatus.c.
243 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
244 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
245 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
246 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
247 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
248 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
250 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
252 Split befs.mod and afs.mod into *_be.mod and *.mod
254 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
255 (grub_fstest_SOURCES): Likewise.
256 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
257 (afs_be_mod_SOURCES): New variable.
258 (afs_be_mod_CFLAGS): Likewise.
259 (afs_be_mod_LDFLAGS): Likewise.
260 (befs_be_mod_SOURCES): Likewise.
261 (befs_be_mod_CFLAGS): Likewise.
262 (befs_be_mod_LDFLAGS): Likewise.
263 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
264 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
265 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
266 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
267 (grub_emu_SOURCES): Likewise.
268 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
269 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
270 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
271 * fs/afs_be.c: New file.
272 * fs/befs_be.c: New file.
273 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
274 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
275 (U16): Replaced with ...
276 (grub_afs_to_cpu16): ...this. All users updated.
277 (U32): Replaced with ...
278 (grub_afs_to_cpu32): ...this. All users updated.
279 (U64): Replaced with ...
280 (grub_afs_to_cpu64): ...this. All users updated.
281 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
282 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
283 (grub_afs_validate_sblock): Check only one endiannness.
284 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
285 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
286 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
287 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
288 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
289 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
290 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
291 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
293 2009-08-26 Bean <bean123ch@gmail.com>
295 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
297 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
298 (grub_xfs_inode_block): Change return type to grub_uint64_t.
299 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
301 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
303 NetBSD memory map support.
305 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
306 (grub_netbsd_btinfo_mmap_header): New structure.
307 (grub_netbsd_btinfo_mmap_entry): Likewise.
308 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
310 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
312 Enable bsd.mod on coreboot.
314 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
315 (bsd_mod_SOURCES): New variable.
316 (bsd_mod_CFLAGS): Likewise.
317 (bsd_mod_LDFLAGS): Likewise.
318 (bsd_mod_ASFLAGS): Likewise.
319 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
320 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
322 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
324 Cleanup NetBSD root support.
326 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
330 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
332 * util/grub.d/00_header.in: Move check for the video backend of
333 gfxterm from here ...
334 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
335 a suitable video backend.
337 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
339 Fix breakage in grub-setup.
341 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
342 "msdos_partition_map".
344 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
346 Fix breakage in normal/auth.c.
348 * normal/auth.c (grub_iswordseparator): New function.
350 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
352 Authentication support.
354 * commands/password.c: New file.
355 * conf/common.rmk (pkglib_MODULES): Add password.mod.
356 (password_mod_SOURCES): New variable.
357 (password_mod_CFLAGS): Likewise.
358 (password_mod_LDFLAGS): Likewise.
359 (normal_mod_SOURCES): Add normal/auth.c.
360 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
362 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
363 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
364 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
365 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
366 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
367 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
368 * include/grub/auth.h: New file.
369 * include/grub/err.h (grub_err_t): New enum value
370 GRUB_ERR_ACCESS_DENIED.
371 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
373 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
374 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
376 * normal/auth.c: New file.
377 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
378 (grub_cmdline_run): Don't allow to go to command line without
380 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
381 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
382 menuentry without superuser rights.
383 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
384 user isn't a superuser.
386 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
388 Save space by inlining misc.c functions.
390 * kern/misc.c (grub_iswordseparator): Made static.
391 * kern/misc.c (grub_strcat): Moved from here ...
392 * include/grub/misc.h (grub_strcat): ... here. Inlined.
393 * kern/misc.c (grub_strncat): Moved from here ...
394 * include/grub/misc.h (grub_strncat): ... here. Inlined.
395 * kern/misc.c (grub_strcasecmp): Moved from here ...
396 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
397 * kern/misc.c (grub_strncasecmp): Moved from here ...
398 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
399 * kern/misc.c (grub_isalpha): Moved from here ...
400 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
401 * kern/misc.c (grub_isdigit): Moved from here ...
402 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
403 * kern/misc.c (grub_isgraph): Moved from here ...
404 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
405 * kern/misc.c (grub_tolower): Moved from here ...
406 * include/grub/misc.h (grub_tolower): ... here. Inlined.
408 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
410 * script/sh/function.c (grub_script_function_find): Cut error message
411 not to flood terminal.
412 * script/sh/lexer.c (grub_script_yylex): Remove command line length
414 * script/sh/script.c (grub_script_arg_add): Duplicate string.
416 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
418 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
419 `report' grub_uint8_t *.
420 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
421 Use a 50-millisecond timeout rather than just repeating
422 grub_usb_keyboard_getreport 50 times.
423 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
425 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
427 Rename *_partition_map to part_*
429 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
430 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
431 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
432 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
434 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
436 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
437 * util/grub-probe.c (probe_partmap): Don't transform partition name
440 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
442 Fix OpenBSD and NetBSD support.
444 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
445 memory address conflict.
446 (OPENBSD_MMAP_ACPI): New definition.
447 (OPENBSD_MMAP_NVS): Likewise.
448 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
449 and OPENBSD_MMAP_NVS.
450 Add memory map terminator
451 Explicit cast when calling grub_unix_real_boot.
452 (grub_nebsd_boot): Explicit cast when calling grub_unix_real_boot.
454 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
456 Let user specify NetBSD root device.
458 * loader/i386/bsd.c (netbsd_root): New variable.
459 (netbsd_opts): New option 'root'.
460 (NETBSD_ROOT_ARG): New macro.
461 (grub_netbsd_boot): Use 'netbsd_root'.
462 (grub_bsd_unload): Free 'netbsd_root'.
463 (grub_cmd_netbsd): Fill 'netbsd_root'.
465 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
467 Support for 64-bit NetBSD.
469 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
470 point when booting non-FreeBSD.
472 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
474 Support --no-smp and --no-acpi for NetBSD.
476 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
477 (NETBSD_AB_NOACPI): Likewise.
478 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
479 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
481 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
483 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
485 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
486 errors. Call grub_error when needed.
488 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
490 * commands/search.c (search_fs): Try searching without autoload first.
491 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
492 filesystem module explicitly for faster booting.
494 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
496 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
498 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
500 * util/grub.d/30_os-prober.in: Disable os-prober if
501 `GRUB_DISABLE_OS_PROBER' was set to true.
503 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
505 * partmap/pc.c: Rename to ...
506 * partmap/msdos.c: ... this. Update all users.
507 (grub_pc_partition_map): Rename to ...
508 (grub_msdos_partition_map): ... this. Update all users.
510 * parttool/pcpart.c: Rename to ...
511 * parttool/msdospart.c: ... this. Update all users.
513 * include/grub/pc_partition.h: Rename to ...
514 * include/grub/msdos_partition.h: ... this. Update all users.
515 (grub_pc_partition_bsd_entry): Rename to ...
516 (grub_msdos_partition_bsd_entry): ... this. Update all users.
517 (grub_pc_partition_disk_label): Rename to ...
518 (grub_msdos_partition_disk_label): ... this. Update all users.
519 (grub_pc_partition_entry): Rename to ...
520 (grub_msdos_partition_entry): ... this. Update all users.
521 (grub_pc_partition_mbr): Rename to ...
522 (grub_msdos_partition_mbr): ... this. Update all users.
523 (grub_pc_partition): Rename to ...
524 (grub_msdos_partition): ... this. Update all users.
525 (grub_pc_partition_is_empty): Rename to ...
526 (grub_msdos_partition_is_empty): ... this. Update all users.
527 (grub_pc_partition_is_extended): Rename to ...
528 (grub_msdos_partition_is_extended): ... this. Update all users.
529 (grub_pc_partition_is_bsd): Rename to ...
530 (grub_msdos_partition_is_bsd): ... this. Update all users.
532 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
533 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
534 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
535 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
536 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
537 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
538 (gpt_mod_LDFLAGS): Rename to ...
539 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
540 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
541 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
542 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
543 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
544 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
545 (part_gpt_mod_LDFLAGS): ... this.
546 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
547 `pcpart.mod' to `msdospart.mod'.
548 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
550 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
551 (msdospart_mod_LDFLAGS): ... this.
553 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
555 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
556 (openbsd_opts): Likewise.
557 (netbsd_opts): Likewise.
558 (freebsd_flags): Added 0 terminator.
559 (openbsd_flags): Likewise.
560 (netbsd_flags): Likewise.
561 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
562 (grub_cmd_freebsd): Transformed into extended command.
563 (grub_cmd_openbsd): Likewise.
564 (grub_cmd_netbsd): Likewise.
565 (cmd_freebsd): Changed type to grub_extcmd_t.
566 (cmd_openbsd): Likewise.
567 (cmd_netbsd): Likewise.
568 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
569 grub_cmd_openbsd as extended commands.
570 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
571 cmd_netbsd and cmd_openbsd
573 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
575 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
577 2009-08-21 Pavel Roskin <proski@gnu.org>
579 * Makefile.in (install-local): When checking if a file is in the
580 build directory, use "test -e" to detect symlinks.
582 * Makefile.in (install-local): Remove all files in
583 $(DESTDIR)$(pkglibdir) before installing new files there.
585 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
587 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
590 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
592 * util/grub-mkconfig.in: Don't use gfxterm by default if not
593 explicitly specified by the user.
595 2009-08-18 Pavel Roskin <proski@gnu.org>
597 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
598 grub_uint8_t pointer for data.
599 * include/grub/fbutil.h (struct grub_video_fbblit_info):
601 * video/fb/fbutil.c: Remove unnecessary casts.
603 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
607 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
608 (grub_vbe_set_video_mode): Save active mode info
609 only after setting the mode.
610 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
613 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
615 Rename variables for clarity.
617 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
618 (active_vbe_mode_info): ... this. All users updated.
619 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
621 (initial_mode): Rename to ...
622 (initial_vbe_mode): ... this. All users updated.
623 (mode_in_use): Rename to ..
624 (vbe_mode_in_use): ... this. All users updated.
625 (mode_list): Rename to ..
626 (vbe_mode_list): ... this. All users updated.
627 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
628 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
629 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
630 'mode_list_size' to 'vbe_mode_list_size'.
631 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
632 'best_mode_info' to 'best_vbe_mode_info' and
633 'best_mode' to 'best_vbe_mode'
635 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
637 Remove duplicate grub_video_fb_get_video_ptr.
639 * include/grub/fbutil.h (get_data_ptr): Rename to ...
640 (grub_video_fb_get_video_ptr): ... this.
641 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
642 * video/fb/fbutil.c: Add comment about addressing.
643 (get_data_ptr): Rename to ...
644 (grub_video_fb_get_video_ptr): ... this. All users updated.
645 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
647 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
649 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
650 grub_dprintf() that was just added.
652 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
654 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
655 (DEFAULT_VIDEO_MODE): Remove macros.
656 (grub_linux_boot): Remove assumption that Linux has FB support,
657 and use "text" as default video mode.
659 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
661 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
663 * fs/fat.c (grub_fat_read_data): Likewise.
665 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
667 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
669 (grub_module): Likewise.
671 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
673 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
674 mbi->cmdline but free playground.
676 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
678 Handle group offset on UFS1.
680 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
681 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
683 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
685 Split ufs.mod into ufs1.mod and ufs2.mod.
687 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
688 (grub_fstest_SOURCES): Likewise.
689 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
690 (ufs_mod_SOURCES): Remove.
691 (ufs_mod_CFLAGS): Likewise.
692 (ufs_mod_LDFLAGS): Likewise.
693 (ufs1_mod_SOURCES): New variable.
694 (ufs1_mod_CFLAGS): Likewise.
695 (ufs1_mod_LDFLAGS): Likewise.
696 (ufs2_mod_SOURCES): New variable.
697 (ufs2_mod_CFLAGS): Likewise.
698 (ufs2_mod_LDFLAGS): Likewise.
699 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
700 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
702 (grub_emu_SOURCES): Likewise.
703 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
704 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
705 (grub_setup_SOURCES): Likewise.
706 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
707 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
708 (grub_setup_SOURCES): Likewise.
709 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
711 * fs/ufs2.c: New file.
712 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
714 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
718 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
719 subsystem at the end.
720 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
721 (video_fb_mod_SOURCES): New variable.
722 (video_fb_mod_CFLAGS): Likewise.
723 (video_fb_mod_LDFLAGS): Likewise.
724 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
725 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
726 * video/i386/pc/vbeblit.c: Moved from here ...
727 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
728 * video/i386/pc/vbefill.c: Moved from here ...
729 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
730 * video/i386/pc/vbeutil.c: Moved from here ...
731 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
732 * include/grub/i386/pc/vbeblit.h: Moved from here ...
733 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
734 * include/grub/i386/pc/vbefill.h: Moved from here ...
735 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
736 * include/grub/i386/pc/vbeutil.h: Moved from here ...
737 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
738 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
739 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
740 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
741 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
742 (grub_video_adapter): Added 'get_info_and_fini'.
743 (grub_video_get_info_and_fini): New prototype.
744 (grub_video_set_mode): make modestring const char *.
745 * loader/i386/linux.c (grub_linux_setup_video): Use
746 grub_video_get_info_and_fini.
747 (grub_linux_boot): Move modesetting just before booting.
748 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
749 grub_video_get_info_and_fini.
750 * video/i386/pc/vbe.c: Moved framebuffer part ...
751 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
752 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
753 grub_video_fbstd_colors and grub_video_fb_set_palette.
754 (grub_video_vbe_init): Clear 'framebuffer' variable and use
756 (grub_video_vbe_fini): Use grub_video_fb_fini.
757 (grub_video_vbe_setup): Use framebuffer.render_target instead of
758 render_target and use grub_video_fb_set_active_render_target and
759 grub_video_fb_set_palette.
760 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
761 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
762 (grub_video_vbe_adapter): Use framebuffer.
763 * video/video.c (grub_video_get_info_and_fini): New function.
764 (grub_video_set_mode): Make modestring const char *.
765 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
766 values are already initialised.
768 2009-08-14 Pavel Roskin <proski@gnu.org>
770 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
772 * boot/i386/pc/diskboot.S: Likewise.
773 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
774 sectors allow compilation on MacOSX.
775 * conf/i386-pc.rmk: Enable unconditional compilation of
778 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
780 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
781 * util/grub.d/00_header.in: Enter interruptible sleep if
782 GRUB_HIDDEN_TIMEOUT is set.
784 2009-08-13 Yves Blusseau <blusseau@zetam.org>
786 * include/grub/symbol.h: Add the LOCAL macro.
787 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
790 2009-08-13 Pavel Roskin <proski@gnu.org>
792 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
793 any modern compilers we support.
795 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
796 Use local labels starting with "L_" so that Apple assembler
797 knows they are local.
799 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
801 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
802 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
803 (bsd_kernel_types): ... this enum.
805 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
806 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
807 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
809 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
810 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
811 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
814 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
816 * util/grub-dumpdevtree: Moved from here ...
817 * util/i386/efi/grub-dumpdevtree: ... to here.
818 (hexify): New function. Converts a string to its hex version.
819 Generate hex versions of "efi" and "device-properties" by calling
820 hexify() on the ASCII strings rather than by hardcoding numbers.
822 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
824 * fs/jfs.c: Update copyright year.
826 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
828 * util/grub.d/00_header.in: Fix a comment.
829 * util/grub.d/10_linux.in: Likewise.
830 * util/grub.d/10_windows.in: Likewise.
831 * util/grub.d/10_hurd.in: Likewise.
833 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
835 * util/grub-mkconfig.in: Allow the user to specify the used font
838 2009-08-08 Pavel Roskin <proski@gnu.org>
840 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
841 available, xfs.mod needs it now.
843 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
844 the "g" modifier in sed when the intention is to strip something
845 once. This fixes comparison of kernels with multiple dashes.
847 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
848 on it. Add missing space before closing bracket. Fix
849 misleading formatting.
851 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
853 * docs/grub.texi: Major overhaul. Remove all sections that are
854 specific to GRUB Legacy, or mostly composed of Legacy-specific
857 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
859 * docs/version.texi: New file. Provides version information for
862 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
864 * docs/grub.texi: Update CVS information to SVN.
865 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
867 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
869 * util/grub-mkconfig.in: Remove a wrong `fi'.
871 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
873 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
874 (grub_jfs_uuid): New function.
875 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
877 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
879 * util/grub-mkconfig_lib.in (font_path): Move the functionality
881 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
882 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
884 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
886 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
887 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
890 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
891 not just "vmlinu[zx]".
893 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
896 * util/grub.d/10_linux.in (find_latest): Moved from here ...
897 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
900 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
902 * util/grub.d/10_freebsd.in: Use an absolute device path for
903 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
905 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
907 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
908 handling of multiple abstraction modules.
910 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
912 Fix a bug resulting in black screen when loading Linux using a
915 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
918 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
919 (grub_vbe_bios_getset_dac_palette_width): New function.
920 (grub_vbe_bios_get_dac_palette_width)
921 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
922 grub_vbe_bios_getset_dac_palette_width()).
924 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
925 check for return status.
926 (grub_vbe_get_video_mode_info): When getting information for a packed
927 mode (<= 8 bpp), obtain DAC palette width using
928 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
929 {red,green,blue}_mark_size.
931 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
933 * commands/search.c (options): Fix help output to match actual code.
935 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
937 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
940 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
942 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
945 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
947 Support Apple partition map with sector size different from 512 bytes.
949 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
950 (apple_partition_map_iterate): Respect 'aheader.blocksize'
951 and 'apart.partmap_size'.
953 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
954 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
958 * commands/i386/cpuid.c (options): New variable.
959 (grub_cmd_cpuid): Return real error.
960 (GRUB_MOD_INIT(cpuid)): Declare options.
962 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
964 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
967 2009-07-31 Bean <bean123ch@gmail.com>
969 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
971 (grub_fshelp_node): Move inode field to the end.
972 (grub_xfs_data): Remove inode field.
973 (grub_xfs_inode_block): Calculate inode size using sblock.
974 (grub_xfs_inode_offset): Likewise.
975 (grub_xfs_read_inode): Calculate inode size using sblock.
976 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
977 (grub_xfs_iterate_dir): Calculate inode size using sblock.
978 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
980 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
981 not accessible when data is null.
982 (grub_xfs_open): Likewise.
984 2009-07-31 Bean <bean123ch@gmail.com>
986 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
987 Don't change pv->disk if it's already set.
989 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
990 (grub_raid_register): ... here.
991 (grub_raid_rescan): Removed.
993 * include/grub/raid.h (grub_raid_rescan): Removed.
995 * util/grub-fstest.c: Remove include file <grub/raid.h>.
996 (fstest): Replace grub_raid_rescan with module fini function followed
999 * util/grub-probe.c: Add include file <grub/raid.h>.
1000 (probe_raid_level): New function.
1001 (probe): Detect abstraction by walking the disk device, support two
1002 level of abstraction (LVM on RAID) when detecting partition map.
1004 2009-07-31 Pavel Roskin <proski@gnu.org>
1006 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
1007 to grub_zalloc(), it was erroneous.
1008 Reported by Bean <bean123ch@gmail.com>
1010 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
1012 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
1013 embeding zone, not only the first one.
1015 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
1017 * term/gfxterm.c (clear_char): New function.
1018 (grub_virtual_screen_setup): Use clear_char.
1019 (scroll_up): Likewise.
1020 (grub_virtual_screen_cls): Likewise.
1022 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
1024 * util/deviceiter.c (get_acceleraid_disk_name): New static
1026 (grub_util_iterate_devices): Handle Accelraid devices.
1027 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
1029 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
1031 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
1032 separator for the suggested gfxpayload string (';' collides with the
1033 parser and needs escaping).
1035 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
1037 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
1038 Clear direction flag before jumping to OS.
1039 (grub_multiboot2_real_boot): Likewise.
1041 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
1043 * util/i386/pc/grub-install: Fix parsing of --disk-module
1046 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
1048 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
1051 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
1053 * util/grub-mkconfig.in (package_version): New variable.
1054 Use it do display the version.
1056 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
1058 * kern/file.c (grub_file_open): Revert to previous check with
1061 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1063 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
1064 from help line. It's out of sync with code.
1066 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1068 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
1069 entries on failed boot.
1071 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
1073 * kern/file.c (grub_file_open): Fix an error check.
1075 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
1077 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
1078 partition map couldn't be identified.
1080 2009-07-23 Pavel Roskin <proski@gnu.org>
1082 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
1083 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
1084 case of little endian words becomes just an optimization.
1085 Respect const modifier.
1086 (md5_final): Use code that doesn't depend on endianess.
1088 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
1089 to avoid loss of upper bits if align is unsigned and shorter
1092 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
1094 UUID support for UFS
1096 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
1097 (grub_ufs_uuid): New function.
1098 (grub_ufs_fs): add .uuid
1100 2009-07-21 Pavel Roskin <proski@gnu.org>
1102 * kern/dl.c (grub_dl_check_header): Make static.
1104 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
1106 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
1107 add drivemap for Vista. It breaks Windows 7.
1109 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
1111 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
1114 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1118 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
1119 (grub_fstest_SOURCES): Likewise.
1120 (pkglib_MODULES): Add befs.mod.
1121 (befs_mod_SOURCES): New variable.
1122 (befs_mod_CFLAGS): Likewise.
1123 (befs_mod_LDFLAGS): Likewise.
1124 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
1125 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
1126 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1127 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1128 (grub_setup_SOURCES): Likewise.
1129 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1130 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1131 (grub_setup_SOURCES): Likewise.
1132 * fs/befs.c: New file.
1133 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
1134 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
1135 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
1136 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
1137 (B_KEY_INDEX_ALIGN): New declaration.
1138 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
1139 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
1140 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
1141 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
1142 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
1143 (grub_afs_mount) [MODE_BFS]: Likewise.
1144 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
1145 (grub_afs_fs): Use GRUB_AFS_FSNAME
1146 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
1147 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
1148 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
1149 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
1151 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
1153 * util/getroot.c (find_root_device): Add support for MacOSX.
1154 * util/hostdisk.c: Likewise.
1156 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1158 * font/font.c (find_glyph): Check whether a font is present to avoid
1161 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
1163 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
1165 2009-07-20 Pavel Roskin <proski@gnu.org>
1167 * configure.ac: Trim excessively wordy excuses.
1169 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1171 Add symlink, mtime and label support to AtheFS.
1173 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
1174 (grub_afs_iterate_dir): Handle symlinks.
1175 (grub_afs_open): Use grub_afs_read_symlink.
1176 (grub_afs_dir): Likewise.
1178 (grub_afs_label): New function.
1179 (grub_afs_fs): Add grub_afs_label.
1180 (grub_afs_read_symlink): New function.
1182 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1186 * fs/afs.c: Fix comments style.
1187 (grub_afs_blockrun): Declare as packed.
1188 (grub_afs_datastream): Likewise.
1189 (grub_afs_bnode): Likewise.
1190 (grub_afs_btree): Likewise.
1191 (grub_afs_sblock): Likewise.
1192 Declare `name' as char.
1193 (grub_afs_inode): Declare as packed.
1194 Change void *vnode to grub_uint32_t unused.
1195 (grub_afs_iterate_dir): Check that key_size is positive.
1196 (grub_afs_mount): Don't read superblock twice.
1197 (grub_afs_dir): Don't free node in case of error,
1198 grub_fshelp_find_file already handles this.
1199 (grub_afs_open): Likewise.
1201 2009-07-19 Pavel Roskin <proski@gnu.org>
1203 * Makefile.in: Remove LIBLZO and enable_lzo.
1204 * conf/i386-pc.rmk: Remove lzo support.
1205 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
1206 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
1208 * kern/i386/pc/lzo1x.S: Remove.
1209 * kern/i386/pc/startup.S: Remove lzo support.
1210 * util/i386/pc/grub-mkimage.c: Likewise.
1212 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
1214 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
1215 * fs/xfs.c (grub_xfs_dir): Likewise.
1216 * fs/afs.c (grub_afs_dir): Likewise.
1217 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
1218 (grub_iso9660_open): Likewise.
1219 * fs/jfs.c (grub_jfs_open): Likewise.
1220 * fs/ext2.c (grub_ext2_dir): Likewise.
1221 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
1222 * script/sh/lexer.c (grub_script_yylex): Likewise.
1224 2009-07-16 Pavel Roskin <proski@gnu.org>
1226 * configure.ac: Never add "-c" to CFLAGS.
1228 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
1230 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
1231 grub_cv_cc_efiemu should be used.
1233 * configure.ac: Typo fixes.
1235 * kern/mm.c (grub_zalloc): New function.
1236 (grub_debug_zalloc): Likewise.
1237 * include/grub/mm.h: Declare grub_zalloc() and
1238 grub_debug_zalloc().
1239 * util/misc.c (grub_zalloc): New function.
1240 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
1241 instead of grub_malloc(), remove unneeded initializations.
1242 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
1243 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
1244 * commands/parttool.c (grub_cmd_parttool): Likewise.
1245 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
1246 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
1247 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
1248 * disk/usbms.c (grub_usbms_finddevs): Likewise.
1249 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
1250 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
1251 (grub_cmd_efiemu_pnvram): Likewise.
1252 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
1253 * fs/iso9660.c (grub_iso9660_mount): Likewise.
1254 (grub_iso9660_iterate_dir): Likewise.
1255 * fs/jfs.c (grub_jfs_opendir): Likewise.
1256 * fs/ntfs.c (list_file): Likewise.
1257 (grub_ntfs_mount): Likewise.
1258 * kern/disk.c (grub_disk_open): Likewise.
1259 * kern/dl.c (grub_dl_load_core): Likewise.
1260 * kern/elf.c (grub_elf_file): Likewise.
1261 * kern/env.c (grub_env_context_open): Likewise.
1262 (grub_env_set): Likewise.
1263 (grub_env_set_data_slot): Likewise.
1264 * kern/file.c (grub_file_open): Likewise.
1265 * kern/fs.c (grub_fs_blocklist_open): Likewise.
1266 * loader/i386/multiboot.c (grub_module): Likewise.
1267 * loader/xnu.c (grub_xnu_create_key): Likewise.
1268 (grub_xnu_create_value): Likewise.
1269 * normal/main.c (grub_normal_add_menu_entry): Likewise.
1270 (read_config_file): Likewise.
1271 * normal/menu_entry.c (make_screen): Likewise.
1272 * partmap/sun.c (sun_partition_map_iterate): Likewise.
1273 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
1274 * script/sh/script.c (grub_script_parse): Likewise.
1275 * video/bitmap.c (grub_video_bitmap_create): Likewise.
1276 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
1277 * video/readers/png.c (grub_png_output_byte): Likewise.
1278 (grub_video_reader_png): Likewise.
1280 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1282 Enable all targets that can be built by default
1284 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
1285 grub-mkfont and grub-fstest if they can be built
1287 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1289 Fix hang and segmentation fault in grub-emu-usb
1291 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
1292 * util/usb.c (grub_libusb_devices): likewise
1293 (grub_libusb_init): rename to ...
1294 (GRUB_MOD_INIT (libusb)):...this
1295 (grub_libusb_fini): rename to ..
1296 (GRUB_MOD_FINI (libusb)):...this
1297 * disk/usbms.c (grub_usbms_transfer): fix retry logic
1298 * include/grub/disk.h (grub_raid_init): removed, it's useless
1299 (grub_raid_fini): likewise
1300 (grub_lvm_init): likewise
1301 (grub_lvm_fini): likewise
1302 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
1305 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1309 * Makefile.in (LIBUSB): new macro
1310 * genmk.rb (Utility/print_tail): new method
1311 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
1312 (top level): call util.print_tail at the end.
1314 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1316 Make FreeBSD accept zpool.cache
1318 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
1319 type is /boot/zfs/zpool.cache
1321 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1325 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
1326 correct wrong typedef
1327 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
1329 2009-07-15 Pavel Roskin <proski@gnu.org>
1331 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
1332 * kern/disk.c (struct grub_disk_cache): Likewise.
1334 * commands/probe.c (options): Typo fix.
1336 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
1337 Increase to 0x5a to accommodate FAT32. Adjust other offsets
1339 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
1341 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
1342 the end of "Error" to make the message more readable.
1344 * boot/i386/pc/boot.S (kernel_segment): Remove.
1345 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
1348 * boot/i386/pc/boot.S (boot_version): Remove.
1349 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
1352 * include/grub/i386/pc/boot.h: Sort all offsets.
1353 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
1354 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
1355 * boot/i386/pc/boot.S: Assert location of every offset listed in
1356 include/grub/i386/pc/boot.h.
1358 2009-07-13 Pavel Roskin <proski@gnu.org>
1360 * include/grub/i386/coreboot/machine.h: Rename
1361 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
1362 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
1363 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
1365 * kern/dl.c: Force native word size to suppress warnings when
1368 * kern/device.c (grub_device_iterate): Change struct part_ent to
1369 hold the name, not a pointer to it. Use one grub_malloc() per
1370 partition, not two. Free partition_name if grub_malloc() fails.
1371 Set ents to NULL only before grub_partition_iterate() is called.
1373 2009-07-11 Bean <bean123ch@gmail.com>
1375 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
1378 2009-07-10 Bean <bean123ch@gmail.com>
1379 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
1381 * kern/ieee1275/openfw.c (grub_children_iterate)
1382 (grub_devalias_iterate): Fix size evaluation for property or path
1383 strings, which was broken since r2132.
1385 2009-07-07 Pavel Roskin <proski@gnu.org>
1387 * commands/search.c (search_file): Merge into ...
1388 (search_fs): ... this. Accept search type as argument.
1389 (grub_cmd_search): Pass search type to search_fs().
1391 * include/grub/util/console.h: New file.
1392 * util/console.c: Use it instead of grub/machine/console.h.
1393 * util/grub-emu.c: Likewise.
1395 * lib/arg.c (find_long_option): Remove.
1396 (find_long): Add `len' argument, make `s' const char *.
1397 (grub_arg_parse): Parse long options in place, not in a
1400 2009-07-06 Pavel Roskin <proski@gnu.org>
1402 * commands/search.c (search_fs): Fix potential NULL pointer
1405 * commands/search.c (search_fs): Replace QUID macro with quid_fn
1408 2009-07-06 Daniel Mierswa <impulze@impulze.org>
1410 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
1413 2009-07-05 Pavel Roskin <proski@gnu.org>
1415 * include/grub/i386/linux.h (struct linux_kernel_params):
1416 Restore padding3, it's still needed.
1418 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
1420 * util/osdetect.lua: Likewise.
1422 2009-07-05 Bean <bean123ch@gmail.com>
1424 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
1426 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
1427 (grub_lua_getenv): Likewise.
1428 (grub_lua_setenv): Likewise.
1429 (save_errno): New function.
1430 (push_result): Likewise.
1431 (grub_lua_enum_device): Likewise.
1432 (grub_lua_enum_file): Likewise.
1433 (grub_lua_file_open): Likewise.
1434 (grub_lua_file_close): Likewise.
1435 (grub_lua_file_seek): Likewise.
1436 (grub_lua_file_read): Likewise.
1437 (grub_lua_file_getline): Likewise.
1438 (grub_lua_file_getsize): Likewise.
1439 (grub_lua_file_getpos): Likewise.
1440 (grub_lua_file_eof): Likewise.
1441 (grub_lua_file_exist): Likewise.
1442 (grub_lua_add_menu): Likewise.
1444 * script/lua/grub_lua.h (isupper): New inline function.
1445 (islower): Likewise.
1446 (ispunct): Likewise.
1447 (isxdigit): Likewise.
1448 (strcspn): Change to normal function.
1449 (strpbkr): New function declaration.
1452 * script/lua/grub_main.c (scan_str): New function.
1453 (strcspn): Likewise.
1454 (strpbrk): Likewise.
1457 * script/lua/linit.c (lualibs): Enable the string library.
1459 * util/osdetect.lua: New file.
1461 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
1463 * include/grub/i386/linux.h (struct linux_kernel_params): Add
1464 `capabilities' member.
1466 2009-07-02 Pavel Roskin <proski@gnu.org>
1468 * genparttoollist.sh: Add missing newline at the end.
1470 2009-07-01 Pavel Roskin <proski@gnu.org>
1472 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
1474 * util/hostdisk.c (open_device): Remove `const' from
1475 `sysctl_size', as sysctlbyname() can change it (in this case it
1476 doesn't actually happen).
1478 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
1479 using signed long int constants.
1481 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
1482 constant to avoid a warning on FreeBSD.
1484 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
1487 * Makefile.in: Install include/grub/machine symlink.
1489 * Makefile.in: When installing symlinks, use "cp -fR", which
1490 works on FreeBSD and MacOSX.
1491 From Yves Blusseau <cl7m42e02@sneakemail.com>
1493 * kern/dl.c (grub_dl_resolve_symbol): Make static.
1494 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
1496 * util/misc.c: Move grub_reboot() and grub_halt() ...
1497 * util/grub-emu.c: ... here. Make main_env static.
1498 * include/grub/util/misc.h: Remove main_env.
1500 * kern/mm.c: Use correct format to print size_t.
1502 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
1503 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
1504 * kern/powerpc/dl.c: Likewise.
1505 * kern/sparc64/dl.c: Likewise.
1506 * kern/x86_64/dl.c: Likewise.
1508 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
1510 Fix grub-emu build on sparc64-ieee1275.
1512 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
1513 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
1515 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
1517 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
1518 (grub_reboot, grub_halt): New functions.
1520 * util/i386/pc/misc.c: Delete. Update all users.
1521 * util/sparc64/ieee1275/misc.c: Likewise.
1522 * util/powerpc/ieee1275/misc.c: Likewise.
1524 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
1526 * conf/i386.rmk (setjmp_mod_SOURCES)
1527 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
1528 * conf/common.rmk (setjmp_mod_SOURCES)
1529 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
1530 to use $(target_cpu).
1531 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
1532 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
1533 * conf/powerpc-ieee1275.rmk: Likewise.
1534 * conf/sparc64-ieee1275.rmk: Likewise.
1536 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
1537 $(target_cpu) for kern/$(target_cpu)/dl.c.
1538 * conf/i386-efi.rmk: Likewise.
1539 * conf/i386-ieee1275.rmk: Likewise.
1540 * conf/x86_64-efi.rmk: Likewise.
1541 * conf/i386-coreboot.rmk: Likewise.
1542 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
1543 $(target_cpu) for kern/$(target_cpu)/dl.c and for
1544 kern/$(target_cpu)/cache.S.
1545 * conf/sparc64-ieee1275.rmk: Likewise.
1547 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
1549 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
1550 type to `grub_uint8_t', and adjust `padding9' accordingly.
1552 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
1554 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
1556 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
1557 assembly in final jump, using register constraints.
1559 (grub_linux_boot): For text mode, initialize `have_vga' using
1560 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
1562 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
1563 right before the final jump.
1565 Set `video_mode' to 0x3.
1567 Document initialization of `video_page', `video_mode' and
1570 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
1572 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
1573 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
1574 and set GRUB_LINUX_FLAG_QUIET appropriately.
1576 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
1578 Fix build on Debian / sparc.
1580 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
1582 2009-06-28 Pavel Roskin <proski@gnu.org>
1584 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
1587 * util/grub.d/10_linux.in: Match SUSE style initrd names.
1589 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
1591 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
1594 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
1598 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
1599 file can't be opened. grub_file_open() is already supposed to set
1600 grub_errno / grub_errmsg appropriately.
1601 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
1603 2009-06-27 Pavel Roskin <proski@gnu.org>
1604 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
1606 * include/grub/dl.h: Include grub/elf.h.
1607 (struct grub_dl): Add symtab field.
1608 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
1609 GRUB_MODULES_MACHINE_READONLY.
1610 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
1611 of the header for read-only modules.
1612 (grub_dl_unload): Free mod->symtab for read-only modules.
1613 * kern/i386/dl.c: Use mod->symtab.
1614 * kern/powerpc/dl.c: Likewise.
1615 * kern/sparc64/dl.c: Likewise.
1616 * kern/x86_64/dl.c: Likewise.
1618 * conf/i386-qemu.rmk: New file.
1619 * kern/i386/qemu/startup.S: Likewise.
1620 * kern/i386/qemu/mmap.c: Likewise.
1621 * boot/i386/qemu/boot.S: Likewise.
1622 * include/grub/i386/qemu/time.h: Likewise.
1623 * include/grub/i386/qemu/serial.h: Likewise.
1624 * include/grub/i386/qemu/kernel.h: Likewise.
1625 * include/grub/i386/qemu/console.h: Likewise.
1626 * include/grub/i386/qemu/boot.h: Likewise.
1627 * include/grub/i386/qemu/init.h: Likewise.
1628 * include/grub/i386/qemu/machine.h: Likewise.
1629 * include/grub/i386/qemu/loader.h: Likewise.
1630 * include/grub/i386/qemu/memory.h: Likewise.
1632 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
1633 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
1634 [qemu] (pkglib_IMAGES): Add `boot.img'.
1635 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
1636 [qemu] (boot_img_FORMAT): New variables.
1637 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
1638 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
1639 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
1640 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
1641 [qemu] (kernel_img_FORMAT): New variables.
1643 * configure.ac: Recognise `i386-qemu'.
1645 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
1646 (for no compression).
1647 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
1648 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
1649 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
1650 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
1653 2009-06-27 Pavel Roskin <proski@gnu.org>
1655 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
1657 * efiemu/prepare32.c: Likewise.
1658 * efiemu/prepare64.c: Likewise.
1660 2009-06-26 Pavel Roskin <proski@gnu.org>
1662 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
1663 * include/grub/elf.h: Define symbols without "32" or "64" based
1664 on GRUB_TARGET_WORDSIZE.
1665 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
1666 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
1668 * efiemu/loadcore64.c: Likewise.
1669 * loader/i386/bsd32.c: Likewise.
1670 * loader/i386/bsd64.c: Likewise.
1671 * kern/dl.c: Remove own ELF definitions.
1672 * util/i386/efi/grub-mkimage.c: Likewise.
1674 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
1676 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
1677 segment 0x0 unconditionally, because the reference generated by
1678 GAS is an absolute address.
1680 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
1682 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
1683 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
1685 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
1687 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
1688 indexes. Check for -f explicitly.
1689 (search_file): Improve error message.
1690 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
1692 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
1694 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
1695 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
1697 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
1699 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
1700 * conf/i386-ieee1275.rmk: Likewise.
1701 * conf/i386-coreboot.rmk: Likewise.
1703 * kern/i386/pc/startup.S (grub_stop): Remove function.
1704 * kern/i386/ieee1275/startup.S: Likewise.
1705 * kern/i386/coreboot/startup.S: Likewise.
1706 * kern/i386/misc.S (grub_stop): New function.
1708 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
1710 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
1711 * kern/i386/realmode.S (real_to_prot): ... to here.
1713 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
1715 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
1717 (kernel_elf_SOURCES): Rename to ...
1718 (kernel_img_SOURCES): ... this.
1719 (kernel_elf_HEADERS): Rename to ...
1720 (kernel_img_HEADERS): ... this. Update all users.
1721 (kernel_elf_ASFLAGS): Rename to ...
1722 (kernel_img_ASFLAGS): ... this.
1723 (kernel_elf_CFLAGS): Rename to ...
1724 (kernel_img_CFLAGS): ... this.
1725 (kernel_elf_LDFLAGS): Rename to ...
1726 (kernel_img_LDFLAGS): ... this.
1727 * conf/i386-coreboot.rmk: Likewise.
1728 * conf/powerpc-ieee1275.rmk: Likewise.
1730 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
1733 2009-06-21 Pavel Roskin <proski@gnu.org>
1735 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
1736 to match nested functions.
1737 * loader/sparc64/ieee1275/linux.c: Likewise.
1739 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
1741 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
1743 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
1746 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
1748 Fix asm file handling on ELF, and remove workarounds.
1750 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
1751 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
1752 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
1753 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
1755 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1757 Load BSD ELF modules
1759 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
1760 and loader/i386/bsd64.c
1761 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
1762 (FREEBSD_MODTYPE_ELF_MODULE): New definition
1763 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
1764 (grub_freebsd_load_elfmodule32): New declaration
1765 (grub_freebsd_load_elfmoduleobj64): Likewise
1766 (grub_freebsd_load_elf_meta32): Likewise
1767 (grub_freebsd_load_elf_meta64): Likewise
1768 (grub_freebsd_add_meta): Likewise
1769 (grub_freebsd_add_meta_module): Likewise
1770 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
1771 (grub_freebsd_add_meta_module): Likewise and move module-specific
1772 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
1773 (grub_cmd_freebsd): Add elf-kernel specific parts
1774 based on grub_freebsd_add_meta_module
1775 (grub_cmd_freebsd_module): Add type parsing moved from
1776 grub_freebsd_add_meta_module
1777 (grub_cmd_freebsd_module_elf): New function
1778 (cmd_freebsd_module_elf): New variable
1779 (GRUB_MOD_INIT): Register freebsd_module_elf
1780 * loader/i386/bsd32.c: New file
1781 * loader/i386/bsd64.c: Likewise
1782 * loader/i386/bsdXX.c: Likewise
1783 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
1784 (grub_elf64_load): Likewise
1785 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
1787 (grub_elf64_load_hook_t): Likewise
1789 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
1791 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
1793 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
1794 don't write a menu entry for recovery mode.
1796 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
1798 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
1799 after it's no longer needed.
1801 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
1803 * include/grub/i386/loader.h (grub_linux_prot_size)
1804 (grub_linux_tmp_addr, grub_linux_real_addr)
1805 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
1806 GRUB_MACHINE_PCBIOS.
1807 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
1808 common grub_util_info() call to ...
1809 (generate_image): ... here.
1810 Fix use of uninitialized memory, comparison of signed with
1811 unsigned integers and memory leak.
1812 Remove bogus module address message.
1814 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1816 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
1818 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
1820 2009-06-19 Pavel Roskin <proski@gnu.org>
1822 * configure.ac: Remove stray AC_MSG_CHECKING.
1824 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1826 * disk/scsi.c (grub_scsi_open): use continue instead of big if
1828 2009-06-18 Pavel Roskin <proski@gnu.org>
1830 * conf/common.rmk: Add fs_file.mod.
1831 * disk/fs_file.c: New file.
1832 * include/grub/disk.h (enum grub_disk_dev_id): Add
1833 GRUB_DISK_DEVICE_FILE_ID.
1835 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1837 Fix build with Apple's toolchain. Part 2
1839 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
1842 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1844 Fix build with Apple's toolchain. Part 1
1846 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
1848 * configure.ac: remove a leftover AC_MSG_RESULT
1849 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
1852 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1856 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
1857 (decomp_block): initialize ch
1858 use grub_memcpy instead of memcpy
1860 2009-06-17 Pavel Roskin <proski@gnu.org>
1862 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
1863 version, use declarations needed to use vga_text as the startup
1866 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
1867 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
1869 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
1870 and grub_at_keyboard_fini(), it's done on module load and
1873 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
1875 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
1876 file can't be found.
1877 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
1879 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
1881 Fix newline handling
1883 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
1884 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
1885 (grub_script_yylex): don't segfault on unterminated script
1886 newline terminates command and variable
1888 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
1890 avoid double grub_adjust_range call. Bug reported by David Simner
1892 * kern/disk.c (grub_disk_write): change to raw disk access before
1895 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
1897 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
1898 spaces, for the benefit of help2man.
1899 * util/i386/efi/grub-mkimage.c (usage): Likewise.
1901 2009-06-16 Pavel Roskin <proski@gnu.org>
1903 * kern/i386/halt.c: Include grub/machine/init.h.
1904 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
1906 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
1908 * util/grub.d/30_os-prober.in: Use ${root} in the generated
1911 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
1913 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
1916 2009-06-16 Pavel Roskin <proski@gnu.org>
1918 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
1919 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
1920 save %dx, we only need %dl and we never change it.
1921 * boot/i386/pc/cdboot.S: Don't set the root drive.
1922 * boot/i386/pc/pxeboot.S: Likewise.
1923 * include/grub/i386/pc/boot.h: Remove
1924 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
1925 GRUB_BOOT_MACHINE_DRIVE_CHECK.
1926 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
1927 * kern/i386/pc/init.c (make_install_device): Remove references
1929 * kern/i386/pc/startup.S: Likewise.
1930 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
1932 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1936 * commands/xnu_uuid.c: new file
1937 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
1938 (xnu_uuid_mod_SOURCES): new variable
1939 (xnu_uuid_mod_CFLAGS): likewise
1940 (xnu_uuid_mod_LDFLAGS): likewise
1941 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
1942 * conf/i386-ieee1275.rmk: likewise
1943 * conf/i386-pc.rmk: likewise
1944 * conf/powerpc-ieee1275.rmk: likewise
1945 * conf/sparc64-ieee1275.rmk: likewise
1946 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
1948 2009-06-16 Pavel Roskin <proski@gnu.org>
1950 * configure.ac: Avoid '==' in test command, it's not portable.
1952 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1956 * commands/probe.c: new file
1957 * conf/common.rmk (pkglib_MODULES): add probe.mod
1958 (probe_mod_SOURCES): new variable
1959 (probe_mod_CFLAGS): likewise
1960 (probe_mod_LDFLAGS): likewise
1961 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
1962 * conf/i386-ieee1275.rmk: likewise
1963 * conf/i386-pc.rmk: likewise
1964 * conf/powerpc-ieee1275.rmk: likewise
1965 * conf/sparc64-ieee1275.rmk: likewise
1967 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1969 Fix handling of string like \"hello\" and "a
1972 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
1973 (grub_script_yylex): fix parsing of quoting, escaping and newline
1975 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1977 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
1980 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
1982 * util/grub-mkconfig.in: Fix parsing of --output option.
1984 2009-06-12 Pavel Roskin <proski@gnu.org>
1986 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
1987 genmk.rb don't need to be generated or installed.
1989 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
1991 * commands/i386/pc/drivemap_int13h.S: add more comments
1993 2009-06-11 Pavel Roskin <proski@gnu.org>
1995 * Makefile.in (uninstall): Uninstall manuals.
1997 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
1998 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
1999 and update-grub_lib in two places.
2000 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
2002 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
2005 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
2006 `entry_lo' to fix variable shadowing.
2008 2009-06-11 Christian Franke <franke@computer.org>
2010 * kern/misc.c (__enable_execute_stack): Add missing return type
2011 to prevent gcc warning.
2013 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
2015 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
2017 2009-06-11 Pavel Roskin <proski@gnu.org>
2019 * Makefile.in: Don't rely on any scripts being executable.
2020 Always use $(SHELL) to run shell scripts.
2022 * configure.ac: Always define ___main if using -nostdlib. This
2023 fixes tests on Cygwin.
2025 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
2029 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
2030 is in bytes and not in blocks
2032 2009-06-11 Pavel Roskin <proski@gnu.org>
2034 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
2037 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
2039 * util/grub.d/30_os-prober.in: Fix a comment. Source
2040 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
2041 to set the root device. Place drivemap command in the generated
2044 2009-06-11 Pavel Roskin <proski@gnu.org>
2046 * configure.ac: Remove host_m32. Issues with 64-bit utilities
2047 have long been resolved.
2049 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
2051 * util/grub.d/10_linux.in: Capitalise "Linux".
2053 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
2055 2009-06-11 Pavel Roskin <proski@gnu.org>
2057 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
2058 fix a gcc warning and ensure that the function won't ever exit.
2060 * kern/i386/ieee1275/init.c: Add missing prototype for
2063 * loader/ieee1275/multiboot2.c [__i386__]: Include
2064 grub/cpu/multiboot.h.
2066 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
2067 casts to short - they are not portable and cause warnings. Fix
2068 use of uninitialized values in input_buf. Use ARRAY_SIZE.
2070 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2074 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
2076 (grub_get_root_biosnumber_saved): new variable
2077 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
2078 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
2079 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
2080 %dx after the call if necessary
2081 * conf/common.rmk (pkglib_MODULES): remove boot.mod
2082 (boot_mod_SOURCES): remove
2083 (boot_mod_CFLAGS): remove
2084 (boot_mod_LDFLAGS): remove
2085 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
2086 (boot_mod_SOURCES): new variable
2087 (boot_mod_CFLAGS): likewise
2088 (boot_mod_LDFLAGS): likewise
2089 * conf/i386-efi.rmk: likewise
2090 * conf/i386-ieee1275.rmk: likewise
2091 * conf/i386-pc.rmk: likewise
2092 * conf/powerpc-ieee1275.rmk: likewise
2093 * conf/sparc64-ieee1275.rmk: likewise
2094 * conf/x86_64-efi.rmk: likewise
2095 * include/grub/i386/pc/biosnum.h: new file
2096 * lib/i386/pc/biosnum.c: likewise
2097 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
2098 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
2099 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
2101 2009-06-10 Pavel Roskin <proski@gnu.org>
2103 * io/gzio.c (test_header): Don't reuse one buffer for all data.
2104 Use separate variables. Read only the file size at the end, but
2105 not the checksum that we don't use.
2107 * kern/file.c (grub_file_read): Use void pointer for the buffer.
2110 * kern/ieee1275/openfw.c: Remove libc includes.
2111 * kern/ieee1275/cmain.c: Likewise.
2112 * include/grub/ieee1275/ieee1275.h: Likewise.
2114 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
2117 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
2119 * Makefile.in: Remove all trailing whitespace.
2120 * conf/i386-pc.rmk: Likewise.
2121 * conf/powerpc-ieee1275.rmk: Likewise.
2122 * conf/sparc64-ieee1275.rmk: Likewise.
2123 * docs/grub.texi: Likewise.
2124 * docs/texinfo.tex: Likewise.
2125 * disk/fs_uuid.c: Likewise.
2126 * disk/lvm.c: Likewise.
2127 * disk/scsi.c: Likewise.
2128 * disk/ata.c: Likewise.
2129 * disk/ieee1275/ofdisk.c: Likewise.
2130 * disk/i386/pc/biosdisk.c: Likewise.
2131 * disk/host.c: Likewise.
2132 * disk/raid.c: Likewise.
2133 * disk/efi/efidisk.c: Likewise.
2134 * disk/usbms.c: Likewise.
2135 * disk/memdisk.c: Likewise.
2136 * disk/loopback.c: Likewise.
2137 * kern/powerpc/dl.c: Likewise.
2138 * kern/device.c: Likewise.
2139 * kern/dl.c: Likewise.
2140 * kern/sparc64/dl.c: Likewise.
2141 * kern/ieee1275/ieee1275.c: Likewise.
2142 * kern/term.c: Likewise.
2143 * kern/fs.c: Likewise.
2144 * kern/i386/dl.c: Likewise.
2145 * kern/i386/pc/startup.S: Likewise.
2146 * kern/i386/pc/init.c: Likewise.
2147 * kern/i386/pc/mmap.c: Likewise.
2148 * kern/i386/pc/lzo1x.S: Likewise.
2149 * kern/i386/ieee1275/init.c: Likewise.
2150 * kern/i386/realmode.S: Likewise.
2151 * kern/i386/tsc.c: Likewise.
2152 * kern/partition.c: Likewise.
2153 * kern/corecmd.c: Likewise.
2154 * kern/file.c: Likewise.
2155 * kern/efi/efi.c: Likewise.
2156 * kern/efi/init.c: Likewise.
2157 * kern/efi/mm.c: Likewise.
2158 * kern/main.c: Likewise.
2159 * kern/err.c: Likewise.
2160 * kern/env.c: Likewise.
2161 * kern/disk.c: Likewise.
2162 * kern/generic/millisleep.c: Likewise.
2163 * kern/generic/rtc_get_time_ms.c: Likewise.
2164 * kern/misc.c: Likewise.
2165 * kern/parser.c: Likewise.
2166 * genmk.rb: Likewise.
2167 * configure.ac: Likewise.
2168 * boot/i386/pc/diskboot.S: Likewise.
2169 * boot/i386/pc/pxeboot.S: Likewise.
2170 * boot/i386/pc/boot.S: Likewise.
2171 * boot/i386/pc/lnxboot.S: Likewise.
2172 * boot/i386/pc/cdboot.S: Likewise.
2173 * parttool/pcpart.c: Likewise.
2174 * video/readers/tga.c: Likewise.
2175 * video/video.c: Likewise.
2176 * video/bitmap.c: Likewise.
2177 * lib/envblk.c: Likewise.
2178 * lib/i386/setjmp.S: Likewise.
2179 * fs/xfs.c: Likewise.
2180 * fs/afs.c: Likewise.
2181 * fs/fat.c: Likewise.
2182 * fs/ntfs.c: Likewise.
2183 * fs/udf.c: Likewise.
2184 * fs/affs.c: Likewise.
2185 * fs/iso9660.c: Likewise.
2186 * fs/hfs.c: Likewise.
2187 * fs/fshelp.c: Likewise.
2188 * fs/ext2.c: Likewise.
2189 * fs/jfs.c: Likewise.
2190 * fs/reiserfs.c: Likewise.
2191 * fs/hfsplus.c: Likewise.
2192 * fs/minix.c: Likewise.
2193 * fs/cpio.c: Likewise.
2194 * fs/sfs.c: Likewise.
2195 * fs/ufs.c: Likewise.
2196 * efiemu/prepare.c: Likewise.
2197 * efiemu/loadcore_common.c: Likewise.
2198 * efiemu/runtime/efiemu.sh: Likewise.
2199 * efiemu/runtime/efiemu.S: Likewise.
2200 * efiemu/runtime/efiemu.c: Likewise.
2201 * efiemu/pnvram.c: Likewise.
2202 * efiemu/main.c: Likewise.
2203 * efiemu/i386/pc/cfgtables.c: Likewise.
2204 * efiemu/i386/loadcore64.c: Likewise.
2205 * efiemu/i386/loadcore32.c: Likewise.
2206 * efiemu/loadcore.c: Likewise.
2207 * efiemu/symbols.c: Likewise.
2208 * efiemu/mm.c: Likewise.
2209 * include/grub/autoefi.h: Likewise.
2210 * include/grub/datetime.h: Likewise.
2211 * include/grub/term.h: Likewise.
2212 * include/grub/hfs.h: Likewise.
2213 * include/grub/lvm.h: Likewise.
2214 * include/grub/i386/tsc.h: Likewise.
2215 * include/grub/i386/linux.h: Likewise.
2216 * include/grub/i386/xnu.h: Likewise.
2217 * include/grub/i386/efiemu.h: Likewise.
2218 * include/grub/i386/pc/biosdisk.h: Likewise.
2219 * include/grub/i386/pc/memory.h: Likewise.
2220 * include/grub/i386/pc/vbe.h: Likewise.
2221 * include/grub/parttool.h: Likewise.
2222 * include/grub/video.h: Likewise.
2223 * include/grub/memory.h: Likewise.
2224 * include/grub/fs.h: Likewise.
2225 * include/grub/partition.h: Likewise.
2226 * include/grub/xnu.h: Likewise.
2227 * include/grub/efi/api.h: Likewise.
2228 * include/grub/efi/pe32.h: Likewise.
2229 * include/grub/efi/memory.h: Likewise.
2230 * include/grub/multiboot.h: Likewise.
2231 * include/grub/usbdesc.h: Likewise.
2232 * include/grub/multiboot2.h: Likewise.
2233 * include/grub/acpi.h: Likewise.
2234 * include/grub/efiemu/efiemu.h: Likewise.
2235 * include/grub/disk.h: Likewise.
2236 * include/grub/ieee1275/ieee1275.h: Likewise.
2237 * include/grub/net.h: Likewise.
2238 * include/grub/machoload.h: Likewise.
2239 * include/grub/macho.h: Likewise.
2240 * include/multiboot.h: Likewise.
2241 * genmoddep.awk: Likewise.
2242 * normal/main.c: Likewise.
2243 * normal/menu_entry.c: Likewise.
2244 * normal/menu_viewer.c: Likewise.
2245 * normal/completion.c: Likewise.
2246 * normal/cmdline.c: Likewise.
2247 * normal/misc.c: Likewise.
2248 * normal/datetime.c: Likewise.
2249 * bus/usb/usbtrans.c: Likewise.
2250 * bus/usb/ohci.c: Likewise.
2251 * bus/usb/uhci.c: Likewise.
2252 * bus/usb/usb.c: Likewise.
2253 * mmap/efi/mmap.c: Likewise.
2254 * mmap/i386/pc/mmap_helper.S: Likewise.
2255 * mmap/i386/pc/mmap.c: Likewise.
2256 * mmap/i386/mmap.c: Likewise.
2257 * mmap/i386/uppermem.c: Likewise.
2258 * mmap/mmap.c: Likewise.
2259 * commands/acpi.c: Likewise.
2260 * commands/echo.c: Likewise.
2261 * commands/blocklist.c: Likewise.
2262 * commands/loadenv.c: Likewise.
2263 * commands/usbtest.c: Likewise.
2264 * commands/boot.c: Likewise.
2265 * commands/parttool.c: Likewise.
2266 * commands/search.c: Likewise.
2267 * commands/cat.c: Likewise.
2268 * commands/i386/pc/play.c: Likewise.
2269 * commands/i386/pc/drivemap.c: Likewise.
2270 * commands/i386/pc/vbeinfo.c: Likewise.
2271 * commands/i386/pc/acpi.c: Likewise.
2272 * commands/i386/pc/vbetest.c: Likewise.
2273 * commands/ls.c: Likewise.
2274 * commands/cmp.c: Likewise.
2275 * commands/test.c: Likewise.
2276 * commands/efi/acpi.c: Likewise.
2277 * commands/gptsync.c: Likewise.
2278 * commands/help.c: Likewise.
2279 * partmap/amiga.c: Likewise.
2280 * partmap/apple.c: Likewise.
2281 * partmap/acorn.c: Likewise.
2282 * partmap/pc.c: Likewise.
2283 * partmap/sun.c: Likewise.
2284 * partmap/gpt.c: Likewise.
2285 * script/sh/lexer.c: Likewise.
2286 * script/sh/function.c: Likewise.
2287 * font/font.c: Likewise.
2288 * font/font_cmd.c: Likewise.
2289 * loader/powerpc/ieee1275/linux.c: Likewise.
2290 * loader/efi/chainloader.c: Likewise.
2291 * loader/multiboot_loader.c: Likewise.
2292 * loader/macho.c: Likewise.
2293 * loader/i386/multiboot.c: Likewise.
2294 * loader/i386/linux.c: Likewise.
2295 * loader/i386/pc/linux.c: Likewise.
2296 * loader/i386/pc/multiboot2.c: Likewise.
2297 * loader/i386/pc/chainloader.c: Likewise.
2298 * loader/i386/pc/xnu.c: Likewise.
2299 * loader/i386/bsd_trampoline.S: Likewise.
2300 * loader/i386/efi/linux.c: Likewise.
2301 * loader/i386/multiboot_elfxx.c: Likewise.
2302 * loader/i386/bsd_helper.S: Likewise.
2303 * loader/i386/bsd.c: Likewise.
2304 * loader/i386/linux_trampoline.S: Likewise.
2305 * loader/i386/xnu_helper.S: Likewise.
2306 * loader/i386/xnu.c: Likewise.
2307 * loader/i386/bsd_pagetable.c: Likewise.
2308 * loader/i386/multiboot_helper.S: Likewise.
2309 * loader/xnu.c: Likewise.
2310 * loader/xnu_resume.c: Likewise.
2311 * io/gzio.c: Likewise.
2312 * term/efi/console.c: Likewise.
2313 * term/terminfo.c: Likewise.
2314 * term/ieee1275/ofconsole.c: Likewise.
2315 * term/i386/pc/serial.c: Likewise.
2316 * term/i386/pc/vesafb.c: Likewise.
2317 * term/i386/pc/vga.c: Likewise.
2318 * term/usb_keyboard.c: Likewise.
2319 * term/gfxterm.c: Likewise.
2320 * aclocal.m4: Likewise.
2321 * util/lvm.c: Likewise.
2322 * util/grub.d/30_os-prober.in: Likewise.
2323 * util/grub.d/10_hurd.in: Likewise.
2324 * util/console.c: Likewise.
2325 * util/grub-macho2img.c: Likewise.
2326 * util/grub-probe.c: Likewise.
2327 * util/hostfs.c: Likewise.
2328 * util/i386/pc/grub-mkimage.c: Likewise.
2329 * util/i386/pc/grub-setup.c: Likewise.
2330 * util/i386/efi/grub-mkimage.c: Likewise.
2331 * util/grub-mkconfig.in: Likewise.
2332 * util/raid.c: Likewise.
2333 * util/resolve.c: Likewise.
2334 * util/grub-mkdevicemap.c: Likewise.
2335 * util/grub-emu.c: Likewise.
2336 * util/getroot.c: Likewise.
2337 * util/hostdisk.c: Likewise.
2338 * util/usb.c: Likewise.
2339 * util/grub-editenv.c: Likewise.
2340 * util/misc.c: Likewise.
2342 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
2344 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
2345 `genparttoollist.sh'.
2346 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
2347 Add `*.sh' to the list find searches for and change `mdate.sh'
2350 2009-06-10 Pavel Roskin <proski@gnu.org>
2352 * include/grub/multiboot2.h: Provide compatibility defines for
2354 * include/multiboot2.h: Include stdint.h only if needed, using
2356 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
2358 * loader/ieee1275/multiboot2.c: Likewise.
2359 * loader/multiboot2.c: Likewise.
2360 * loader/multiboot_loader.c: Likewise.
2362 * configure.ac: Use -nostdlib when probing for the target. It
2363 should not be required to have libc for the target.
2365 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
2366 they fail without libc headers for the target.
2367 * include/grub/powerpc/libgcc.h: Use weak attribute for all
2369 * include/grub/sparc64/libgcc.h: Likewise. Don't use
2370 preprocessor conditionals.
2372 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
2373 build system doesn't need to be aware of the tar.c internals.
2375 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
2377 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
2379 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
2381 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
2382 disk limit to 26 for IDE, Virtio, Xen and SCSI.
2384 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
2386 * util/i386/pc/grub-install.in: Change the error message if UUIDs
2387 aren't available if ata.mod gets used.
2389 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
2391 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
2392 initialising controller.
2393 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
2395 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
2397 * util/i386/pc/grub-install.in: Add a parameter --disk-module
2398 to choose between ata and biosdisk module on i386-pc.
2400 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
2402 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
2403 Subclass and Programming Interface fields in terms of the 3 byte
2404 Class Code register.
2405 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
2407 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
2408 interface is OHCI. Add grub_dprintf for symmetry with
2410 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
2411 interface is UHCI. Add interf variable for programming
2412 interface. Print interface with class/subclass.
2414 * bus/usb/ohci.c: Set interf with correct field.
2416 * bus/usb/uhci.c: Remove unneeded doubled lines.
2417 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
2418 Remove whitespace inside comment.
2420 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
2422 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
2423 as fallback an equivalent option without depth.
2425 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2427 Not fail if unable to retrieve C/H/S on LBA disks
2429 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
2430 if unable to retrieve C/H/S on LBA disks
2432 2009-06-08 Pavel Roskin <proski@gnu.org>
2434 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
2437 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
2439 * Makefile.in (uninstall): Remove all $lib_DATA files.
2441 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2443 Bugfix: install on partitionless device
2445 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
2448 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
2450 * Makefile.in (uninstall): Remove all $include_DATA files.
2452 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
2454 * commands/true.c: New file. Implement the true and false commands.
2455 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
2456 (true_mod_SOURCES): New variable.
2457 (true_mod_CFLAGS): Likewise.
2458 (true_mod_LDFLAGS): Likewise.
2460 2009-06-05 Colin D Bennett <colin@gibibit.com>
2462 Optimized font character lookup using binary search instead of linear
2463 search. Fonts now are required to have the character index ordered by
2466 * font/font.c (load_font_index): Verify that fonts have ordered
2468 (find_glyph): Use binary search instead of linear search to find a
2469 character in a font.
2471 2009-06-05 Michael Scherer <misc@mandriva.org>
2473 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
2474 uses case sensitive btree.
2475 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
2476 only for case insensitive filesystems.
2478 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2480 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
2481 * conf/common.rmk (search_mod_CFLAGS): likewise
2483 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2485 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
2486 compensate a compiler bug
2488 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2490 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
2493 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2495 Definitions for creating asm symbols with Apple's CC
2497 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
2498 [APPLE_CC] (VARIABLE): likewise
2500 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2502 Disable lnxboot.img when compiled
2505 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
2506 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
2507 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
2508 [! APPLE_CC] (CODE_LENG): skip
2509 [! APPLE_CC] (setup_sects): likewise
2510 [! APPLE_CC]: skip filling
2512 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2514 Address in trampolines based on 32-bit registers when compiled
2517 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
2519 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
2521 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2523 Avoid aliases when compiling with Apple's CC for PCBIOS machine
2525 * kern/misc.c [APPLE_CC] (memcpy): new function
2526 [APPLE_CC] (memmove): likewise
2527 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
2528 (memcpy): define alias conditionally on !APPLE_CC
2531 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
2532 APPLE_CC are defined
2533 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
2534 (grub_assert_fail): make prototype conditional
2536 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2538 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
2540 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
2542 (CLEANFILES): add grub-macho2img
2543 (grub_macho2img_SOURCES): new variable
2544 * kern/i386/pc/startup.S (bss_start): new variable
2546 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
2547 * util/grub-macho2img.c: new file
2549 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2551 Use objconv when compiling with Apple's CC
2553 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
2554 (efiemu64.o): likewise
2555 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
2556 when compiling with Apple's CC
2557 (efiemu64_s.o): likewise
2558 * configure.ac: check for objconv when compiling with Apple's CC
2559 * genmk.rb: use objconv for modules when compiled with Apple's CC
2561 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2563 Define segment as well as section when compiling with
2566 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
2567 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
2568 (efiemu_convert_pointer): likewise
2569 (efiemu_set_virtual_address_map): likewise
2570 (efiemu_convert_pointer): likewise
2571 (efiemu_getcrc32): likewise
2572 (init_crc32_table): likewise
2574 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
2575 (GRUB_MOD_DEP): likewise
2577 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2579 Allow a compilation without -mcmodel=large
2581 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
2582 when compiled without -mcmodel=large
2583 (filter_memory_map): remove memory post 4 GiB when compiled
2584 without -mcmodel=large
2585 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
2586 TARGET_CFLAGS when -mcmodel=large isn't supported
2588 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2590 Remove nested functions in efiemu core
2592 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
2594 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2596 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
2598 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
2600 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
2602 (grub_cpu_is_tsc_supported): likewise
2603 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
2605 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2607 Absolute addressing through constant with Apple's cc
2609 * kern/i386/pc/startup.S: Define necessary constants
2610 and address through it when using ABS with Apple's CC
2611 * boot/i386/pc/diskboot.S: likewise
2612 * boot/i386/pc/boot.S: likewise
2613 * boot/i386/pc/lnxboot.S: likewise
2614 * boot/i386/pc/cdboot.S: likewise
2615 * mmap/i386/pc/mmap_helper.S: likewise
2616 * commands/i386/pc/drivemap_int13h.S: likewise
2618 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2620 Check if compiler is apple cc
2622 * Makefile.in (ASFLAGS): new variable
2623 (TARGET_ASFLAGS): likewise
2624 (TARGET_MODULE_FORMAT): likewise
2625 (TARGET_APPLE_CC): likewise
2627 (TARGET_IMG_CFLAGS): likewise
2628 (TARGET_CPPFLAGS): add includedir
2629 * configure.ac: call grub_apple_cc and grub_apple_target_cc
2630 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
2631 Check for linker script only if compiler isn't Apple's CC
2632 (TARGET_MODULE_FORMAT): set
2633 (TARGET_APPLE_CC): likewise
2634 (TARGET_ASFLAGS): likewise
2636 Check for objcopy only if compiler isn't Apple's CC
2637 Check for BSS symbol only if compiler isn't Apple's CC
2638 * genmk.rb: adapt nm options if we use Apple's utils
2639 * aclocal.m4 (grub_apple_cc): new test
2640 (grub_apple_target_cc): likewise
2642 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2644 Simplify sed expressions and improve awk
2646 * Makefile.in (install-local): simplify sed expression
2647 * gencmdlist.sh: likewise
2648 * genmoddep.awk: avoid adding module as a dependency of itself
2650 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2652 Add missing start symbols
2654 * boot/i386/pc/boot.S: add start
2655 * boot/i386/pc/pxeboot.S: likewise
2657 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2659 Fix wrong assumptions with grub-mkimage on EFI
2661 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
2662 (relocate_addresses): consider both r_addend and value at offset
2663 (make_mods_section): zerofill modinfo and header
2664 (convert_elf): write prefix here
2666 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2668 Use .asciz instead of .string
2670 * i386/pc/diskboot.S: use .asciz instead of .string
2671 * i386/pc/boot.S: likewise
2672 * include/grub/dl.h (GRUB_MOD_DEP): likewise
2673 (GRUB_MOD_NAME): likewise
2675 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2679 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
2680 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
2681 (grub_video_setup): remove
2682 (grub_video_set_mode): new prototype
2683 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
2685 (linux_vesafb_res): compile only on PCBIOS
2686 (grub_linux_boot): support gfxpayload
2687 * loader/i386/pc/xnu.c (video_hook): new function
2688 (grub_xnu_set_video): support gfxpayload
2689 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
2690 (DEFAULT_VIDEO_HEIGHT): likewise
2691 (DEFAULT_VIDEO_FLAGS): likewise
2692 (DEFAULT_VIDEO_MODE): new definition
2693 (video_hook): new function
2694 (grub_gfxterm_init): use grub_video_set_mode
2695 * util/grub.d/30_os-prober.in: remove explicit modesetting before
2697 * video/video.c (grub_video_setup): removed
2698 (grub_video_set_mode): new function based on grub_gfxterm_init and
2701 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2703 Avoid calling biosdisk in drivemap
2705 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
2706 (revparse_biosdisk): likewise
2707 (list_mappings): derive name from id directly
2708 (grub_cmd_drivemap): use tryparse_diskstring
2710 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2714 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
2715 (grub_lexer_param): add tokenonhold
2716 (grub_script_create_cmdline): remove cmdline. All callers updated
2717 (grub_script_function_create): make functionname
2718 grub_script_arg. All callers updated
2719 (grub_script_execute_argument_to_string): new prototype
2720 * kern/parser.c (state_transitions): reorder
2721 (grub_parser_cmdline_state): fix a bug and make more compact
2722 * script/sh/execute.c (grub_script_execute_argument_to_string):
2724 (grub_script_execute_cmdline): use new format
2725 * script/sh/function.c (grub_script_function_create): make functionname
2726 grub_script_arg. All callers updated
2727 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
2728 (grub_script_yylex): remove
2729 (grub_script_yylex2): renamed to ...
2730 (grub_script_yylex): ...renamed
2731 parse the expressions like a${b}c
2732 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
2733 (GRUB_PARSER_TOKEN_VAR): remove
2734 (GRUB_PARSER_TOKEN_NAME): likewise
2735 ("if"): declare as typeless
2737 ("function"): likewise
2742 (argument): likewise
2743 (script): accept empty scripts and make exit on error
2744 (arguments): use GRUB_PARSER_TOKEN_ARG
2745 (function): likewise
2746 (command): move error handling to script
2747 (menuentry): move grub_script_lexer_ref before
2748 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
2749 argument. All callers updated
2751 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
2753 Prevent GRUB from probing floppies during boot.
2755 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
2756 * commands/search.c (options): Add --no-floppy.
2757 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
2758 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
2759 --no-floppy when searching for UUIDs.
2761 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
2763 Simplify the code duplication in commands/search.c.
2765 * commands/search.c (search_label, search_fs_uuid): Merge into ...
2766 (search_fs): ... this. Update all users.
2768 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
2770 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
2772 2009-05-28 Pavel Roskin <proski@gnu.org>
2774 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
2775 Remove the original symlink explicitly.
2777 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
2778 just one slash. That's how grub_fshelp_find_file() does it.
2780 2009-05-26 Pavel Roskin <proski@gnu.org>
2782 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
2785 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
2788 2009-05-25 Christian Franke <franke@computer.org>
2790 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
2792 (grub_atapi_identify): Add wait after drive select.
2793 (grub_ata_identify): Do more strict status register check before
2794 calling grub_atapi_identify (). Suppress error message if status
2795 register is 0x00 after command failure. Add status register
2796 check after PIO read to avoid bogus identify due to stuck DRQ.
2797 Thanks to Pavel Roskin for testing.
2798 (grub_device_initialize): Remove unsafe status register check.
2799 Thanks to 'phcoder' for problem report and patch.
2800 Prevent sign extension in debug message.
2802 2009-05-23 Colin D Bennett <colin@gibibit.com>
2804 Cleaned up `include/grub/normal.h'. Grouped prototypes by
2805 definition file, and functions defined in `normal/menu.c' have had
2806 their prototypes moved to `include/grub/menu.h' for consistency.
2808 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
2810 (grub_menu_get_entry): Likewise.
2811 (grub_menu_get_timeout): Likewise.
2812 (grub_menu_set_timeout): Likewise.
2813 (grub_menu_execute_entry): Likewise.
2814 (grub_menu_execute_with_fallback): Likewise.
2815 (grub_menu_entry_run): Likewise.
2817 * include/grub/normal.h: Re-ordered and grouped function
2818 prototypes by file that the function is defined in.
2819 (grub_menu_execute_callback): Removed; moved to menu.h.
2820 (grub_menu_get_entry): Likewise.
2821 (grub_menu_get_timeout): Likewise.
2822 (grub_menu_set_timeout): Likewise.
2823 (grub_menu_execute_entry): Likewise.
2824 (grub_menu_execute_with_fallback): Likewise.
2825 (grub_menu_entry_run): Likewise.
2826 (grub_menu_addentry): Renamed from this ...
2827 (grub_normal_add_menu_entry): ... to this.
2829 * normal/main.c (grub_menu_addentry): Renamed from this ...
2830 (grub_normal_add_menu_entry): ... to this.
2832 * script/sh/execute.c (grub_script_execute_menuentry): Update
2833 reference to renamed grub_menu_addentry function.
2835 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
2837 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
2839 2009-05-22 Pavel Roskin <proski@gnu.org>
2841 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
2842 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
2843 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
2844 compiling for the i386 targets, but not for the utilities.
2846 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
2848 (grub_root_drive): Likewise.
2849 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
2851 (grub_root_drive): Change size to byte.
2852 (grub_start_addr): Remove.
2853 (grub_end_addr): Likewise.
2854 (grub_apm_bios_info): Likewise.
2856 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
2858 * normal/i386: Remove.
2859 * normal/powerpc: Likewise.
2860 * normal/sparc64: Likewise.
2861 * normal/x86_64: Likewise.
2863 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
2865 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
2866 * loader/i386/linux_trampoline.S: Fix indentation
2867 * loader/i386/xnu_helper.S: Likewise
2869 2009-05-18 Colin D Bennett <colin@gibibit.com>
2871 Display error messages when parsing a Lua statement fails.
2872 Previously, executing a syntactically invalid statement like
2873 ")foo" or "bar;" would silently fail.
2875 * script/lua/grub_main.c (handle_lua_error): New function.
2876 (grub_lua_parse_line): Improved reporting of Lua parser and
2879 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2881 Remove -Werror which causes build to fail on some systems
2883 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
2884 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
2885 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
2887 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2889 trampoline for linux on 64-bit platform
2891 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
2892 loader/i386/efi/linux_trampoline.S
2893 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
2895 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
2897 * loader/i386/linux_trampoline.S: moved here
2898 * loader/i386/efi/linux.c (allocate_pages): reserve space for
2900 (jumpvector): removed
2901 (grub_linux_trampoline_start): new declaration
2902 (grub_linux_trampoline_end): likewise
2903 (grub_linux_boot): use trampoline when on 64-bit platform
2904 * loader/i386/linux.c: likewise
2906 2009-05-16 Pavel Roskin <proski@gnu.org>
2908 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
2909 const to avoid a warning.
2910 (grub_lua_setenv): Likewise.
2911 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
2912 lmsg to fix a warning.
2914 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
2916 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
2917 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
2918 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
2919 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
2920 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
2921 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
2922 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
2923 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
2925 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
2927 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
2929 2009-05-16 Bean <bean123ch@gmail.com>
2931 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
2932 (lua_mod_SOURCES): New variable.
2933 (lua_mod_CFLAGS): Likewise.
2934 (lua_mod_LDFLAGS): Likewise.
2936 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
2937 (setjmp_mod_SOURCES): New variable.
2938 (setjmp_mod_CFLAGS): Likewise.
2939 (setjmp_LDFLAGS): Likewise.
2941 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
2942 (setjmp_mod_SOURCES): New variable.
2943 (setjmp_mod_CFLAGS): Likewise.
2944 (setjmp_LDFLAGS): Likewise.
2946 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
2947 (setjmp_mod_SOURCES): New variable.
2948 (setjmp_mod_CFLAGS): Likewise.
2949 (setjmp_LDFLAGS): Likewise.
2951 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
2952 (setjmp_mod_SOURCES): New variable.
2953 (setjmp_mod_CFLAGS): Likewise.
2954 (setjmp_LDFLAGS): Likewise.
2956 * normal/i386/setjmp.S: Moved from here ...
2957 * lib/i386/setjmp.S: ... Moved here
2958 * normal/x86_64/setjmp.S: Moved from here ...
2959 * lib/x86_64/setjmp.S: ... Moved here
2960 * normal/powerpc/setjmp.S: Moved from here ...
2961 * lib/powerpc/setjmp.S: ... Moved here
2962 * normal/sparc64/setjmp.S: Moved from here ...
2963 * lib/sparc64/setjmp.S: ... Moved here
2965 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
2966 returns_twice in mingw.
2968 * script/lua/grub_lib.c: New file.
2969 * script/lua/grub_lib.h: Likewise.
2970 * script/lua/grub_lua.h: Likewise.
2971 * script/lua/grub_main.c: Likewise.
2972 * script/lua/lapi.c: Likewise.
2973 * script/lua/lapi.h: Likewise.
2974 * script/lua/lauxlib.c: Likewise.
2975 * script/lua/lauxlib.h: Likewise.
2976 * script/lua/lbaselib.c: Likewise.
2977 * script/lua/lcode.c: Likewise.
2978 * script/lua/lcode.h: Likewise.
2979 * script/lua/ldblib.c: Likewise.
2980 * script/lua/ldebug.c: Likewise.
2981 * script/lua/ldebug.h: Likewise.
2982 * script/lua/ldo.c: Likewise.
2983 * script/lua/ldo.h: Likewise.
2984 * script/lua/ldump.c: Likewise.
2985 * script/lua/lfunc.c: Likewise.
2986 * script/lua/lfunc.h: Likewise.
2987 * script/lua/lgc.c: Likewise.
2988 * script/lua/lgc.h: Likewise.
2989 * script/lua/linit.c: Likewise.
2990 * script/lua/liolib.c: Likewise.
2991 * script/lua/llex.c: Likewise.
2992 * script/lua/llex.h: Likewise.
2993 * script/lua/llimits.h: Likewise.
2994 * script/lua/lmathlib.c: Likewise.
2995 * script/lua/lmem.c: Likewise.
2996 * script/lua/lmem.h: Likewise.
2997 * script/lua/loadlib.c: Likewise.
2998 * script/lua/lobject.c: Likewise.
2999 * script/lua/lobject.h: Likewise.
3000 * script/lua/lopcodes.c: Likewise.
3001 * script/lua/lopcodes.h: Likewise.
3002 * script/lua/loslib.c: Likewise.
3003 * script/lua/lparser.c: Likewise.
3004 * script/lua/lparser.h: Likewise.
3005 * script/lua/lstate.c: Likewise.
3006 * script/lua/lstate.h: Likewise.
3007 * script/lua/lstring.c: Likewise.
3008 * script/lua/lstring.h: Likewise.
3009 * script/lua/lstrlib.c: Likewise.
3010 * script/lua/ltable.c: Likewise.
3011 * script/lua/ltable.h: Likewise.
3012 * script/lua/ltablib.c: Likewise.
3013 * script/lua/ltm.c: Likewise.
3014 * script/lua/ltm.h: Likewise.
3015 * script/lua/lua.h: Likewise.
3016 * script/lua/luaconf.h: Likewise.
3017 * script/lua/lualib.h: Likewise.
3018 * script/lua/lundump.c: Likewise.
3019 * script/lua/lundump.h: Likewise.
3020 * script/lua/lvm.c: Likewise.
3021 * script/lua/lvm.h: Likewise.
3022 * script/lua/lzio.c: Likewise.
3023 * script/lua/lzio.h: Likewise.
3025 2009-05-16 Bean <bean123ch@gmail.com>
3027 * include/grub/kernel.h (grub_module_header_types): Add type
3030 * kern/main.c (grub_load_config): New function.
3031 (grub_main): Call grub_load_config to read boot config.
3033 * grub-mkimage (generate_image): New parameter config_path.
3034 (options): New option --config.
3035 (main): Parse --config option, and pass it to generate_image.
3037 2009-05-14 Christian Franke <franke@computer.org>
3039 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
3040 This fixes build on Cygwin.
3042 2009-05-14 Pavel Roskin <proski@gnu.org>
3044 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
3045 jump. This saves two bytes, so the typical case of 2 swapped
3046 drives would fit 32 bytes.
3048 2009-05-13 Pavel Roskin <proski@gnu.org>
3050 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
3051 grub_uint32_t to avoid a warning.
3053 * loader/i386/linux.c (allocate_pages): When assigning
3054 real_mode_mem, cast through grub_size_t to fix a warning. The
3055 code already makes sure that the value would fit a pointer.
3056 (grub_linux_setup_video): Cast render_target->data to
3057 grub_size_t to fix a warning.
3059 2009-05-13 Javier MartÃn <lordhabbit@gmail.com>
3061 * commands/i386/pc/drivemap.c: New file - implement drivemap
3063 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
3064 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
3066 2009-05-13 Pavel Roskin <proski@gnu.org>
3068 * util/i386/pc/grub-setup.c (setup): Remove unused variable
3069 embedding_area_exists.
3071 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
3073 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
3074 it easier to understand / work with.
3075 Improve warning messages for cases where there's no embedding area,
3076 or when it is too small (or core.img too large).
3078 2009-05-13 Pavel Roskin <proski@gnu.org>
3080 * loader/i386/pc/multiboot2.c: Add necessary includes for
3081 grub_multiboot2_real_boot().
3083 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
3084 PX record is always little-endian. We only need the lower 2
3087 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
3088 facilitate code reuse.
3089 (grub_cpio_mount): Use "struct head", not a char buffer. This
3090 fixes a warning reported by gcc 4.4.
3092 * kernel/disk.c (grub_disk_read): Use void pointer for the
3094 (grub_disk_write): Use const void pointer for the buffer.
3095 Adjust all callers. Remove unnecessary casts.
3097 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
3099 * util/i386/pc/grub-install.in: Update copyright year.
3101 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3105 * commands/gptsync.c: new file
3106 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
3107 (gptsync_mod_SOURCES): new variable
3108 (gptsync_mod_CFLAGS): likewise
3109 (gptsync_mod_LDFLAGS): likewise
3110 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
3112 (GRUB_PC_PARTITION_TYPE_HFS): likewise
3113 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
3114 * conf/i386-ieee1275.rmk: likewise
3115 * conf/i386-pc.rmk: likewise
3116 * conf/powerpc-ieee1275.rmk: likewise
3118 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3122 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
3123 (grub_dl_ref): likewise
3125 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
3127 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
3128 split in two functions (one for msdos and one for gpt).
3130 2009-05-08 Pavel Roskin <proski@gnu.org>
3132 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
3135 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
3136 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
3137 Initialize them with -1. Add sanity check for bad1. Eliminate
3140 2009-05-08 David S. Miller <davem@davemloft.net>
3142 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
3144 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
3146 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
3149 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
3151 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
3152 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
3154 2009-05-05 David S. Miller <davem@davemloft.net>
3156 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
3158 2009-05-05 Pavel Roskin <proski@gnu.org>
3160 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
3161 of grub_dl_ref() and grub_dl_unref().
3162 * commands/parttool.c: Remove preprocessor conditionals around
3163 grub_dl_ref() and grub_dl_unref().
3164 * fs/affs.c: Likewise.
3165 * fs/afs.c: Likewise.
3166 * fs/cpio.c: Likewise.
3167 * fs/ext2.c: Likewise.
3168 * fs/fat.c: Likewise.
3169 * fs/hfs.c: Likewise.
3170 * fs/hfsplus.c: Likewise.
3171 * fs/iso9660.c: Likewise.
3172 * fs/jfs.c: Likewise.
3173 * fs/minix.c: Likewise.
3174 * fs/ntfs.c: Likewise.
3175 * fs/reiserfs.c: Likewise.
3176 * fs/sfs.c: Likewise.
3177 * fs/udf.c: Likewise.
3178 * fs/ufs.c: Likewise.
3179 * fs/xfs.c: Likewise.
3180 * include/grub/dl.h: Likewise.
3181 * loader/xnu.c: Likewise.
3183 2009-05-04 Pavel Roskin <proski@gnu.org>
3185 * commands/acpi.c: Remove unused variable my_mod.
3186 * partmap/amiga.c: Likewise.
3187 * partmap/apple.c: Likewise.
3188 * partmap/gpt.c: Likewise.
3189 * partmap/pc.c: Likewise.
3190 * partmap/sun.c: Likewise.
3191 * term/gfxterm.c: Likewise.
3192 * term/i386/pc/vesafb.c: Likewise.
3193 * term/i386/pc/vga.c: Likewise.
3195 2009-05-04 David S. Miller <davem@davemloft.net>
3197 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
3198 pointer args to grub_ieee1275_get_property().
3200 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
3202 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
3203 devices, and do not traverse down under controller nodes.
3205 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
3206 (grub_ofdisk_open): Use it to un-escape "," characters.
3207 * kern/disk.c (find_part_sep): New.
3208 (grub_disk_open): Use it to find the first non-escaped ','
3209 character in the disk name.
3210 * util/ieee1275/devicemap.c (escape_of_path): New.
3211 (grub_util_emit_devicemap_entry): Use it.
3212 * util/sparc64/ieee1275/grub-install.in: Update script to
3213 strip partition specifiers properly by not triggering on
3214 '\' escaped ',' characters.
3216 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3218 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
3220 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
3222 (linux_vesafb_modes): Add a lot of additional modes to the list (based
3223 on documentation from Wikipedia).
3225 2009-05-04 Pavel Roskin <proski@gnu.org>
3227 * disk/ata.c: Spelling fixes.
3228 * disk/raid.c: Likewise.
3229 * disk/usbms.c: Likewise.
3230 * disk/dmraid_nvidia.c: Likewise.
3231 * kern/ieee1275/openfw.c: Likewise.
3232 * kern/ieee1275/init.c: Likewise.
3233 * kern/ieee1275/cmain.c: Likewise.
3234 * boot/i386/pc/cdboot.S: Likewise.
3235 * video/readers/png.c: Likewise.
3236 * video/i386/pc/vbe.c: Likewise.
3237 * fs/udf.c: Likewise.
3238 * fs/hfs.c: Likewise.
3239 * fs/reiserfs.c: Likewise.
3240 * efiemu/runtime/efiemu.c: Likewise.
3241 * efiemu/main.c: Likewise.
3242 * efiemu/mm.c: Likewise.
3243 * include/grub/elf.h: Likewise.
3244 * include/grub/xnu.h: Likewise.
3245 * include/grub/usbdesc.h: Likewise.
3246 * include/grub/usb.h: Likewise.
3247 * include/grub/script_sh.h: Likewise.
3248 * include/grub/lib/LzmaEnc.h: Likewise.
3249 * include/grub/efiemu/efiemu.h: Likewise.
3250 * include/grub/command.h: Likewise.
3251 * normal/menu.c: Likewise.
3252 * normal/main.c: Likewise.
3253 * normal/datetime.c: Likewise.
3254 * bus/usb/uhci.c: Likewise.
3255 * mmap/i386/uppermem.c: Likewise.
3256 * mmap/mmap.c: Likewise.
3257 * commands/acpi.c: Likewise.
3258 * commands/test.c: Likewise.
3259 * partmap/apple.c: Likewise.
3260 * font/font.c: Likewise.
3261 * loader/sparc64/ieee1275/linux.c: Likewise.
3262 * loader/macho.c: Likewise.
3263 * loader/i386/bsd_trampoline.S: Likewise.
3264 * loader/i386/bsd.c: Likewise.
3265 * loader/xnu.c: Likewise.
3266 * term/i386/pc/vesafb.c: Likewise.
3267 * term/usb_keyboard.c: Likewise.
3268 * util/resolve.c: Likewise.
3269 * util/getroot.c: Likewise.
3271 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
3273 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
3275 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3277 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
3280 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3282 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
3283 parameter only available on BIOS.
3285 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3287 Removed wrong semicolon in declaration
3289 * grub/misc.h (grub_dprintf): remove semicolon
3291 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3293 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
3294 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
3295 is done by grub_cmd_linux() now).
3296 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
3297 restore video to text mode.
3298 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
3299 indicates lack of "vga=" parameter. "vga=0" is mapped to
3300 `GRUB_LINUX_VID_MODE_NORMAL'.
3302 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
3304 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
3305 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
3306 and `normal/script.c'. Add `kern/rescue_reader.c',
3307 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
3308 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
3309 `grub_script.tab.c'.
3311 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3312 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
3313 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3314 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
3315 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3317 * Makefile.in: Remove duplicated 2008 in Copyright line.
3319 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3321 * util/misc.c (grub_util_warn): New function. Emits a warning
3323 * include/grub/util/misc.h (grub_util_warn): New declaration.
3325 * util/i386/pc/grub-install.in: Understand --force and pass it down
3328 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
3330 (setup): Improve error messages and add warnings when requested to
3331 install in odd layouts. Refuse to install using blocklists unless
3334 2009-05-04 martin f. krafft <madduck@madduck.net>
3336 * disk/raid.c (grub_raid_scan_device): Improve debug message.
3338 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3340 Updated copyright year
3342 * fs/hfsplus.c: updated copyright year
3344 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3348 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
3349 in the space previously used by unused3
3350 (grub_hfsplus_uuid): new function
3351 (grub_hfsplus_fs): added uuid field
3353 2009-05-03 Pavel Roskin <proski@gnu.org>
3355 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
3356 suppress warnings. It's no longer needed.
3357 * disk/host.c: Likewise.
3358 * disk/ata_pthru.c: Likewise.
3359 * disk/loopback.c: Likewise.
3360 * hook/datehook.c: Likewise.
3361 * parttool/pcpart.c: Likewise.
3362 * fs/i386/pc/pxe.c: Likewise.
3363 * fs/ntfscomp.c: Likewise.
3364 * efiemu/main.c: Likewise.
3365 * mmap/mmap.c: Likewise.
3366 * commands/crc.c: Likewise.
3367 * commands/hexdump.c: Likewise.
3368 * commands/hdparm.c: Likewise.
3369 * commands/acpi.c: Likewise.
3370 * commands/echo.c: Likewise.
3371 * commands/minicmd.c: Likewise.
3372 * commands/blocklist.c: Likewise.
3373 * commands/memrw.c: Likewise.
3374 * commands/loadenv.c: Likewise.
3375 * commands/usbtest.c: Likewise.
3376 * commands/lsmmap.c: Likewise.
3377 * commands/boot.c: Likewise.
3378 * commands/parttool.c: Likewise.
3379 * commands/configfile.c: Likewise.
3380 * commands/search.c: Likewise.
3381 * commands/ieee1275/suspend.c: Likewise.
3382 * commands/cat.c: Likewise.
3383 * commands/i386/pc/pxecmd.c: Likewise.
3384 * commands/i386/pc/play.c: Likewise.
3385 * commands/i386/pc/halt.c: Likewise.
3386 * commands/i386/pc/vbeinfo.c: Likewise.
3387 * commands/i386/pc/vbetest.c: Likewise.
3388 * commands/lspci.c: Likewise.
3389 * commands/date.c: Likewise.
3390 * commands/handler.c: Likewise.
3391 * commands/ls.c: Likewise.
3392 * commands/test.c: Likewise.
3393 * commands/cmp.c: Likewise.
3394 * commands/efi/loadbios.c: Likewise.
3395 * commands/efi/fixvideo.c: Likewise.
3396 * commands/halt.c: Likewise.
3397 * commands/help.c: Likewise.
3398 * commands/reboot.c: Likewise.
3399 * hello/hello.c: Likewise.
3400 * script/sh/main.c: Likewise.
3401 * loader/xnu.c: Likewise.
3402 * term/terminfo.c: Likewise.
3403 * term/i386/pc/serial.c: Likewise.
3404 * term/usb_keyboard.c: Likewise.
3406 2009-05-03 David S. Miller <davem@davemloft.net>
3408 * normal/menu.c: Include grub/parser.h
3410 2009-05-03 Pavel Roskin <proski@gnu.org>
3412 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
3414 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
3415 Suggested by Javier MartÃn <lordhabbit@gmail.com>
3417 * util/i386/pc/grub-mkrescue.in: Allow for the case when
3418 efiemu??.o doesn't exist.
3419 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
3422 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
3424 FreeBSD 64-bit support
3426 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
3427 and loader/i386/bsd_trampoline.S
3428 (bsd_mod_ASFLAGS): new variable
3429 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
3430 (FREEBSD_MODTYPE_KERNEL64): likewise
3431 (grub_bsd64_trampoline_start): likewise
3432 (grub_bsd64_trampoline_end): likewise
3433 (grub_bsd64_trampoline_selfjump): likewise
3434 (grub_bsd64_trampoline_gdt): likewise
3435 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
3436 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
3437 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
3438 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
3439 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
3441 * loader/i386/bsd_pagetable.c: new file
3442 * loader/i386/bsd_trampoline.S: likewise
3443 * loader/i386/bsd.c (ALIGN_QWORD): new macro
3444 (ALIGN_VAR): likewise
3445 (entry_hi): new variable
3446 (kern_end_mdofs): likewise
3447 (is_64bit): likewise
3448 (grub_freebsd_add_meta): use ALIGN_VAR
3449 (grub_e820_mmap): new declaration
3450 (grub_freebsd_add_mmap): new function
3451 (grub_freebsd_add_meta_module): support 64 bit kernels
3452 (grub_freebsd_list_modules): use ALIGN_VAR
3453 (gdt_descriptor): new declaration
3454 (grub_freebsd_boot): support 64 bit kernels
3455 (grub_bsd_elf64_hook): new function
3456 (grub_bsd_load_elf): support elf64
3458 2009-05-03 Bean <bean123ch@gmail.com>
3460 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
3461 after we get the result of if statement.
3463 2009-05-03 Bean <bean123ch@gmail.com>
3465 * Makefile.in (enable_efiemu): New variable.
3467 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
3469 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
3471 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
3472 path, add -mno-red-zone option.
3473 (efiemu64_s.o): Likewise.
3474 (efiemu64.o): Use macro $^ for source file.
3476 * configure.ac (--enable-efiemu): New option.
3478 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3482 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
3483 (pkglib_MODULES): add xnu.mod
3484 (xnu_mod_SOURCES): new variable
3485 (xnu_mod_CFLAGS): likewise
3486 (xnu_mod_LDFLAGS): likewise
3487 (xnu_mod_ASFLAGS): likewise
3488 * conf/i386-pc.rmk: likewise
3489 * conf/x86_64-efi.rmk: likewise
3490 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
3492 * include/grub/i386/macho.h: new file
3493 * include/grub/i386/xnu.h: likewise
3494 * include/grub/macho.h: likewise
3495 * include/grub/machoload.h: likewise
3496 * include/grub/x86_64/macho.h: likewise
3497 * include/grub/x86_64/xnu.h: likewise
3498 * include/grub/xnu.h: likewise
3499 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
3500 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
3501 * loader/i386/efi/xnu.c: new file
3502 * loader/i386/pc/xnu.c: likewise
3503 * loader/i386/xnu.c: likewise
3504 * loader/i386/xnu_helper.S: likewise
3505 * loader/macho.c: likewise
3506 * loader/xnu.c: likewise
3507 * loader/xnu_resume.c: likewise
3508 * util/grub-dumpdevtree: likewise
3509 * include/grub/i386/pit.h: include grub/err.h
3510 (grub_pit_wait): export
3511 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
3513 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3517 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
3518 _linux_efi, linux_efi.
3519 new files in grub-emu
3520 new targets efiemu32.o and efiemu64.o
3521 * loader/linux_normal_efiemu.c: likewise
3522 * loader/i386/efi/linux.c: added preliminary efiemu support
3523 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
3525 * include/grub/autoefi.h: new file
3526 * include/grub/i386/efiemu.h: likewise
3527 * include/grub/i386/pc/efiemu.h: likewise
3528 * include/grub/efi/api.h: add LL suffix when necessary
3529 new definitions relating to tables
3530 * include/grub/efiemu/efiemu.h: new file
3531 * include/grub/efiemu/runtime.h: likewise
3532 * efiemu/prepare.c: likewise
3533 * efiemu/loadcore_common.c: likewise
3534 * efiemu/loadcore64.c: likewise
3535 * efiemu/runtime/efiemu.sh: likewise
3536 * efiemu/runtime/efiemu.S: likewise
3537 * efiemu/runtime/efiemu.c: likewise
3538 * efiemu/runtime/config.h: likewise
3539 * efiemu/prepare32.c: likewise
3540 * efiemu/main.c: likewise
3541 * efiemu/modules/pnvram.c: likewise
3542 * efiemu/modules/i386: likewise
3543 * efiemu/modules/i386/pc: likewise
3544 * efiemu/modules/acpi.c: likewise
3545 * efiemu/i386/pc/cfgtables.c: likewise
3546 * efiemu/i386/loadcore64.c: likewise
3547 * efiemu/i386/loadcore32.c: likewise
3548 * efiemu/prepare64.c: likewise
3549 * efiemu/loadcore.c: likewise
3550 * efiemu/symbols.c: likewise
3551 * efiemu/mm.c: likewise
3552 * efiemu/loadcore32.c: likewise
3554 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3558 * commands/acpi.c: new file
3559 * commands/i386/pc/acpi.c: likewise
3560 * commands/efi/acpi.c: likewise
3561 * include/grub/acpi.h: likewise
3562 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
3563 (acpi_mod_SOURCES): new variable
3564 (acpi_mod_CFLAGS): likewise
3565 (acpi_mod_LDFLAGS): likewise
3566 * conf/i386-efi.rmk: likewise
3567 * conf/x86_64-efi.rmk: likewise
3569 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3571 Missing part from mmap patch
3573 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
3574 (grub_mmap_unregister)
3575 (grub_mmap_free_and_unregister): use grub_mmap_register
3577 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3581 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
3582 * loader/i386/linux.c (find_mmap_size): likewise
3583 (allocate_pages): likewise
3584 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
3585 (grub_fill_multiboot_mmap): likewise
3586 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
3587 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
3588 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
3589 (OPENBSD_MMAP_RESERVED): likewise
3590 * include/grub/i386/pc/memory.h: include grub/memory.h
3591 (grub_lower_mem): removed
3592 (grub_upper_mem): likewise
3593 (GRUB_MACHINE_MEMORY_ACPI): new definition
3594 (GRUB_MACHINE_MEMORY_NVS): likewise
3595 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
3596 (GRUB_MACHINE_MEMORY_HOLE): likewise
3597 (grub_machine_mmap_register): likewise
3598 (grub_machine_mmap_unregister): likewise
3599 (grub_machine_get_upper): likewise
3600 (grub_machine_get_lower): likewise
3601 (grub_machine_get_post64): likewise
3602 * include/grub/i386/efi/memory.h: new file
3603 * include/grub/x86_64/efi/memory.h: likewise
3604 * include/grub/efi/memory.h: likewise
3605 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
3606 (mmap_mod_SOURCES): new variable
3607 (mmap_mod_LDFLAGS): likewise
3608 (mmap_mod_ASFLAGS): likewise
3609 * conf/i386-coreboot.rmk: likewise
3610 * conf/i386-ieee1275.rmk: likewise
3611 * conf/i386-efi.rmk: likewise
3612 * conf/x86_64-efi.rmk: likewise
3613 * include/grub/types.h (UINT_TO_PTR): new macro
3614 (PTR_TO_UINT32): likewise
3615 (PTR_TO_UINT64): likewise
3616 * include/grub/memory.h: new file
3617 * mmap/i386/pc/mmap.c: likewise
3618 * mmap/i386/pc/mmap_helper.S: likewise
3619 * mmap/i386/uppermem.c: likewise
3620 * mmap/mmap.c: likewise
3621 * mmap/efi/mmap.c: likewise
3622 * kern/i386/coreboot/init.c (grub_machine_init): don't use
3624 * kern/i386/pc/init.c (grub_lower_mem): removed variable
3625 (grub_upper_mem): likewise
3626 (grub_machine_init): don't use grub_upper_mem,
3627 make grub_lower_mem local
3628 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
3629 grub_mmap_iterate and grub_mmap_get_upper
3630 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
3632 2009-05-02 Bean <bean123ch@gmail.com>
3634 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
3636 (pkglib_MODULES): Add normal.mod and sh.mod.
3637 (normal_SOURCES): New variable.
3638 (normal_mod_CFLAGS): Likewise.
3639 (normal_mod_LDFLAGS): Likewise.
3640 (sh_mod_SOURCES): Likewise.
3641 (sh_mod_CFLAGS): Likewise.
3642 (sh_mod_LDFLAGS): Likewise.
3644 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
3645 script/sh/lexer.c_DEPENDENCIES.
3646 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
3647 kern/rescue_reader.c and kern/rescue_parser.c.
3648 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
3649 (grub_emu_SOURCES): Change source files.
3650 (pkglib_MODULES): Remove normal.mod.
3651 (normal_SOURCES): Removed.
3652 (normal_mod_CFLAGS): Likewise.
3653 (normal_mod_LDFLAGS): Likewise.
3654 * conf/i386-coreboot.rmk: Likewise.
3655 * conf/i386-efi.rmk: Likewise.
3656 * conf/i386-ieee1276.rmk: Likewise.
3657 * conf/powerpc-ieee1275.rmk: Likewise.
3658 * conf/sparc64-ieee1275.rmk: Likewise.
3659 * conf/x86_64-efi.rmk: Likewise.
3661 * include/grub/command.h (grub_command_execute): New inline function.
3663 * include/grub/menu.h (grub_menu_entry): Removed commands field.
3665 * include/grub/normal.h: Remove <grub/setjmp.h>.
3666 (grub_fs_module_list): Moved to normal/autofs.c.
3667 (grub_exit_env): Removed.
3668 (grub_command_execute): Likewise.
3669 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
3671 (read_command_list): New function declaration.
3672 (read_fs_list): Likewise.
3674 * include/parser.h: Include <grub/reader.h>.
3675 (grub_parser_split_cmdline): Change type of getline parameter.
3676 (grub_parser): New structure.
3677 (grub_parser_class): New variable.
3678 (grub_parser_execute): New function declaration.
3679 (grub_register_rescue_parser): Likewise.
3680 (grub_parser_register): New inline function.
3681 (grub_parser_unregister): Likewise.
3682 (grub_parser_get_current): Likewise.
3683 (grub_parser_set_current): Likewise.
3685 * include/grub/reader.h: New file.
3686 * kern/reader.c: Likewise.
3687 * kern/rescue_parser.c: Likewise.
3688 * kern/rescue_reader.c: Likewise.
3689 * normal/autofs.c: Likewise.
3690 * normal/dyncmd.c: Likewise.
3692 * include/grub/rescue.h: Removed.
3693 * normal/command.h: Likewise.
3695 * include/grub/script.h: Moved to ...
3696 * include/grub/script_sh.h: ... Moved here.
3697 * normal/execute.c: Moved to ...
3698 * script/sh/execute.c: ... Moved here.
3699 * normal/function.c: Moved to ...
3700 * script/sh/function.c: ... Moved here.
3701 * normal/lexer.c: Moved to ...
3702 * script/sh/lexer.c: ... Moved here.
3703 * normal/parser.y: Moved to ...
3704 * script/sh/parser.y: ... Moved here.
3705 * normal/script.c: Moved to ...
3706 * script/sh/script.c: ... Moved here.
3708 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
3710 (grub_exit_env): Removed.
3711 (fs_module_list): Moved to normal/autofs.c.
3712 (grub_file_getline): Don't handle comment here.
3713 (free_menu): Skip removed field entry->commands.
3714 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
3716 (read_config_file): Removed nested parameter, change getline function.
3717 (grub_enter_normal_mode): Removed.
3718 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
3719 (read_command_list): Likewise.
3720 (autoload_fs_module): Moved to normal/autofs.c.
3721 (read_fs_list): Likewise.
3722 (reader_nested): New variable.
3723 (grub_normal_execute): Run parser.sh to switch to sh parser.
3724 (grub_cmd_rescue): Removed.
3725 (cmd_normal): Removed.
3726 (grub_cmd_normal): Unregister itself at the beginning. Don't register
3728 (grub_cmdline_run): New function.
3729 (grub_normal_reader_init): Likewise.
3730 (grub_normal_read_line): Likewise.
3731 (grub_env_write_pager): Likewise.
3732 (cmdline): New variable.
3733 (grub_normal_reader): Likewise.
3734 (GRUB_MOD_INIT): Register normal reader and set as current, register
3735 pager hook, register normal command with grub_register_command_prio,
3736 so that it won't show up in command.lst.
3737 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
3738 grub_fs_autoload_hook.
3740 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
3741 (grub_menu_execute_entry): Replace grub_script_execute with
3742 grub_parser_execute, change parameter to grub_command_execute.
3744 * normal/menu_text.c: Remove <grub/script.h>.
3746 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
3747 and <grub/parser.h>.
3748 (run): Change editor_getline to use new parser interface. Change
3749 parameter to grub_command_execute.
3751 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
3752 <grub/reader.h> and <grub/parser.h>.
3753 (grub_load_normal_mode): Execute normal command.
3754 (grub_main): Call grub_register_core_commands,
3755 grub_register_rescue_parser and grub_register_rescue_reader, use
3756 grub_reader_loop to enter input loop.
3758 * kern/parser.c (grub_parser_split_cmdline): Change type of
3760 (grub_parser_class): New variable.
3761 (grub_parser_execute): New function.
3763 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
3764 * loader/multiboot2.c: Likewise.
3765 * loader/sparc64/ieee1275/linux.c: Likewise.
3767 * util/grub-emu.c (read_command_list): New dummy function.
3769 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
3771 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
3772 count to 16 for CCISS and IDA.
3774 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
3776 * normal/menu_text.c (grub_wait_after_message): Print a newline
3777 after waiting for user input.
3779 * loader/i386/linux.c: Include `<grub/normal.h>'.
3780 (grub_cmd_linux): Improve the error message about `ask' mode, by
3781 waiting for user input so it's not missed (we can do this, since
3782 user requested interaction).
3784 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3786 Added missing lst to grub-mkrescue
3788 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
3789 and ${input_dir}/parttool.lst
3791 2009-04-30 David S. Miller <davem@davemloft.net>
3793 * util/hostdisk.c (device_is_wholedisk): New function.
3794 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
3795 zero only if device_is_wholedisk() returns true.
3797 * util/hostdisk.c (convert_system_partition_to_system_disk):
3798 Handle virtual disk devices named /dev/vdiskX as found on sparc
3801 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
3802 lettered partition specifier is found, convert to numbered.
3804 2009-04-29 David S. Miller <davem@davemloft.net>
3806 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
3807 * include/grub/sparc64/ieee1275/memory.h: Likewise.
3809 * normal/command.c: Add missing newline at end of file.
3811 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
3813 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
3814 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
3815 grub_ofdisk_read): Likewise, and deal similarly with the fact that
3816 ihandles have a 32-bit type but need to be stored in a "void *".
3818 2009-04-28 Pavel Roskin <proski@gnu.org>
3820 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
3821 not disk. Adjust all dependencies.
3822 (grub_fs_uuid_close): Use grub_device_close(), not
3825 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
3826 parent's partition, don't copy it by reference, as it gets freed
3829 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3831 Preboot hooks support
3833 * commands/boot.c (struct grub_preboot_t): new declaration
3834 (preboots_head): new variable
3835 (preboots_tail): likewise
3836 (grub_loader_register_preboot_hook): new function
3837 (grub_loader_unregister_preboot_hook): likewise
3838 (grub_loader_set): launch preboot hooks
3839 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
3840 (grub_loader_register_preboot_hook): new declaration
3841 (grub_loader_unregister_preboot_hook): likewise
3843 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3847 * disk/scsi.c (grub_scsi_open): added missing cast when
3848 calling grub_dprintf
3850 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3852 Bug and warning fixes
3854 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
3856 * commands/test.c (test_parse): fixed bug with file tests and corrected
3857 declaration of find_file
3859 2009-04-26 Pavel Roskin <proski@gnu.org>
3861 * Makefile.in: Don't install empty manual pages if help2man is
3862 missing. Use help2man option for output, not shell redirection.
3864 2009-04-26 David S. Miller <davem@davemloft.net>
3866 * util/grub-mkdevicemap.c (make_device_map): Add missing
3867 NESTED_FUNC_ATTR to process_device().
3869 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3873 * commands/test.c: rewritten to use bash-like test
3875 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3877 Parttool autoloading and improvements
3879 * Makefile.in (pkglib_DATA): add parttool.lst
3880 (parttool.lst): new target
3881 * genmk.rb: generate parttool-*
3882 (CLEANFILES): add #{parttool}
3883 (PARTTOOLFILES): new variable
3884 * genparttoollist.sh: new file
3885 * parttool/pcpart.c (grub_pcpart_boot): more feedback
3886 (grub_pcpart_type): likewise
3887 * commands/parttool.c (helpmsg): new variable
3888 (grub_cmd_parttool): output help if not enough arguments are supplied
3890 (GRUB_MOD_INIT(parttool)): use helpmsg
3892 2009-04-24 David S. Miller <davem@davemloft.net>
3894 Avoiding opening same device multiple times in device iterator.
3896 * kern/device.c: (grub_device_iterate): Define struct part_ent,
3897 and use it to build a list of partitions in iterate_disk() and
3898 iterate_partition().
3900 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
3903 * disk/ieee1275/nand.c (grub_nand_iterate): Return
3904 grub_devalias_iterate() result instead of unconditional 0.
3905 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
3906 Also, capture hook return value, either directly or via
3907 grub_children_iterate(), and propagate to caller.
3908 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
3909 grub_children_iterate): Return value is now 'int' instead of
3911 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
3912 like a proper iterator, stopping when hooks return non-zero.
3913 (grub_devalias_iterate): Likewise.
3915 2009-04-23 David S. Miller <davem@davemloft.net>
3917 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
3919 2009-04-22 David S. Miller <davem@davemloft.net>
3921 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
3922 is larger than address_cells, use that value for address_cells too.
3924 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
3925 IEEE1275_MAX_PATH_LEN): Define.
3926 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
3927 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
3928 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
3929 'devtype'. Explicitly NULL terminate devalias expansion.
3931 * util/sparc64/ieee1275/misc.c: New file.
3932 * util/sparc64/ieee1275/grub-setup.c: New file.
3933 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
3934 * util/sparc64/ieee1275/grub-mkimage.c: New file.
3935 * util/sparc64/ieee1275/grub-install.in: New file.
3936 * util/ieee1275/ofpath.c: New file.
3937 * util/ieee1275/devicemap.c: New file.
3938 * util/devicemap.c: New file.
3939 * util/deviceiter.c: New file.
3940 * kern/sparc64/ieee1275/init.c: New file.
3941 * include/grub/util/ofpath.h: New file.
3942 * include/grub/util/deviceiter.h: New file.
3943 * util/grub-mkdevicemap.c: Include deviceiter.h.
3944 Implement using grub_util_emit_devicemap_entry and
3945 grub_util_iterate_devices.
3946 * conf/i386-corebook.rmk: Build util/deviceiter.c and
3947 util/devicemap.c into grub-mkdevicemap
3948 * conf/i386-efi.rmk: Likewise.
3949 * conf/i386-ieee1275.rmk: Likewise.
3950 * conf/i386-pc.rmk: Likewise.
3951 * conf/powerpc-ieee1275.rmk: Likewise.
3952 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
3953 images and installation utilities. Build kernel as image
3954 instead of as elf binary. Use common rules as much as possible.
3956 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3958 Correct GPT definition
3960 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
3963 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
3965 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
3967 2009-04-19 David S. Miller <davem@davemloft.net>
3969 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
3970 (grub_rescue_cmd_linux): Rename to...
3971 (grub_cmd_linux): and fix prototype.
3972 (grub_rescue_cmd_initrd): Rename to...
3973 (grub_cmd_initrd): and fix prototype.
3974 (cmd_linux, cmd_initrd): New.
3975 (GRUB_MOD_INIT(linux)): Use grub_register_command().
3976 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
3978 2009-04-17 Pavel Roskin <proski@gnu.org>
3980 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
3982 (grub_ohci_transfer): Likewise.
3984 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
3986 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
3987 return without a value. Fix inconsistent indentation.
3989 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
3990 match struct grub_fs.
3992 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
3993 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
3994 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
3995 * commands/lspci.c (grub_lspci_iter): Likewise.
3997 2009-04-16 Bean <bean123ch@gmail.com>
3999 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
4002 2009-04-15 Pavel Roskin <proski@gnu.org>
4004 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
4005 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
4006 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
4009 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
4011 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
4012 that no multiple data or metadata areas are supported and `Unknown
4015 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4017 Move loader out of the kernel
4019 * kern/loader.c: moved to ...
4020 * commands/boot.c: ... moved here
4021 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
4022 * commands/boot.c (grub_cmd_boot): moved here. All users updated
4023 * include/grub/kernel.h (grub_machine_fini): export
4024 * include/grub/loader.h (grub_loader_is_loaded): update declaration
4025 (grub_loader_set): likewise
4026 (grub_loader_unset): likewise
4027 (grub_loader_boot): likewise
4028 * conf/common.rmk: new module boot.mod
4029 (pkglib_MODULES): add boot.mod
4030 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
4031 (grub_emu_SOURCES): likewise
4032 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
4033 (grub_emu_SOURCES): likewise
4034 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
4035 (grub_emu_SOURCES): likewise
4036 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
4037 (grub_emu_SOURCES): likewise
4038 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
4039 (grub_emu_SOURCES): likewise
4040 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
4041 (grub_emu_SOURCES): likewise
4042 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
4043 (grub_emu_SOURCES): likewise
4045 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4047 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
4049 * kern/misc.c (grub_itoa): Removed function
4050 (grub_ltoa): likewise
4051 (grub_vsprintf): use grub_lltoa
4053 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4057 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
4058 * conf/i386-coreboot.rmk: likewise
4059 * conf/i386-ieee1275.rmk: likewise
4060 * conf/powerpc-ieee1275.rmk: likewise
4062 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
4064 * INSTALL: Add that `./autogen.sh' needs to be run before
4067 2009-04-14 Bean <bean123ch@gmail.com>
4069 * Makefile.in (pkglib_DATA): Add handler.lst.
4070 (handler.lst): New rule.
4072 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
4073 * conf/i386-coreboot.rmk: Likewise.
4074 * conf/i386-ieee1275.rmk: Likewise.
4075 * conf/i386-efi.rmk: Likewise.
4076 * conf/x86_64-efi.rmk: Likewise.
4077 * conf/powerpc-ieee1275.rmk: Likewise.
4078 * conf/sparc64-ieee1275.rmk: Likewise.
4080 * genhandlerlist.sh: New file.
4082 * genmk.rb: Add rules to generate handler.lst.
4084 * include/grub/normal.h (grub_file_getline): New function definition.
4085 (read_handler_list): Likewise.
4086 (free_handler_list): Likewise.
4088 * include/grub/term.h (grub_term_register_input): Add name parameter
4089 for auto generation of handler.lst.
4090 (grub_term_register_output): Likewise.
4092 * normal/handler.c: New file.
4094 * normal/main.c (get_line): Renamed to grub_file_getline.
4095 (read_config_file): Use the newly renamed grub_file_getline.
4096 (read_command_list): Likewise.
4097 (read_fs_list): Likewise.
4098 (grub_normal_execute): Call read_handler_list to parse handler.lst.
4099 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
4101 * term/efi/console.c (grub_console_init): Add name parameter for auto
4102 generation of handler.lst.
4103 * term/gfxterm.c: Likewise.
4104 * term/i386/pc/at_keyboard.c: Likewise.
4105 * term/i386/pc/console.c: Likewise.
4106 * term/i386/pc/serial.c: Likewise.
4107 * term/i386/pc/vesafb.c: Likewise.
4108 * term/i386/pc/vga.c: Likewise.
4109 * term/i386/pc/vga_text.c: Likewise.
4110 * term/ieee1275/ofconsole.c: Likewise.
4111 * term/usb_keyboard.c: Likewise.
4113 2009-04-14 Bean <bean123ch@gmail.com>
4115 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
4116 properly with null character.
4118 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
4120 * configure: Remove.
4121 * config.h.in: Likewise.
4122 * stamp-h.in: Likewise.
4123 * DISTLIST: Likewise.
4124 * conf/common.mk: Likewise.
4125 * conf/i386-coreboot.mk: Likewise.
4126 * conf/i386-efi.mk: Likewise.
4127 * conf/i386-ieee1275.mk: Likewise.
4128 * conf/i386.mk: Likewise.
4129 * conf/i386-pc.mk: Likewise.
4130 * conf/powerpc-ieee1275.mk: Likewise.
4131 * conf/sparc64-ieee1275.mk: Likewise.
4132 * conf/x86_64-efi.mk: Likewise.
4134 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
4137 2009-04-14 John Stanley <jpsinthemix@verizon.net>
4138 David S. Miller <davem@davemloft.net>
4140 * util/hostdisk.c (make_device_name): Fix buffer length
4143 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
4145 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
4146 <sys/param.h> and <sys/sysctl.h>.
4147 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
4148 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
4149 opening the device and reset them afterwards.
4151 2009-04-13 Pavel Roskin <proski@gnu.org>
4153 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
4154 Reported by John Stanley <jpsinthemix@verizon.net>
4156 2009-04-13 Robert Millan <rmh@aybabtu.com>
4158 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
4159 that name for menuentries when appropriate.
4161 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4163 * util/grub.d/10_freebsd.in: Add a missing `fi'.
4165 2009-04-13 Robert Millan <rmh@aybabtu.com>
4167 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
4168 to Linux, simply abort telling the user it's no longer supported.
4170 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4172 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
4173 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
4174 `freebsd_loadenv' only when devices.hints exist.
4176 2009-04-13 Pavel Roskin <proski@gnu.org>
4178 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
4180 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4182 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
4184 (grub_drive): Likewise.
4186 2009-04-13 David S. Miller <davem@davemloft.net>
4188 * kern/sparc64/ieee1275/ieee1275.c: New file.
4189 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
4190 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
4191 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
4192 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
4193 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
4194 grub_ieee1275_alloc_physmem): Declare new exported functions.
4196 * include/grub/sparc64/ieee1275/loader.h: New file.
4197 * include/grub/sparc64/ieee1275/memory.h: Likewise.
4198 * include/grub/sparc64/kernel.h: Likewise.
4199 * loader/sparc64/ieee1275/linux.c: Likewise.
4201 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
4202 (grub_fstest_SOURCES): Likewise.
4204 * util/hostdisk.c (make_device_name): Do not make any assumptions
4205 about the length of drive names.
4207 * kern/dl.c (grub_dl_load_file): Close file immediately when
4208 we are done using it.
4210 2009-04-12 David S. Miller <davem@davemloft.net>
4212 * kern/misc.c (grub_ltoa): Fix cast when handling negative
4213 values. Noticed by Pavel Roskin.
4215 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
4218 * genmk.rb: Add more flexible image type specification, also
4219 pass --strip-unneeded to objcopy.
4220 * conf/i386-pc.rmk: Use *_FORMAT.
4221 * conf/i386-pc.mk: Rebuilt.
4223 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
4224 (OFDISK_HASH_SZ): Define.
4225 (ofdisk_hash): New hash table.
4226 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
4227 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
4228 instead of device phandle which is not unique.
4230 * kern/sparc64/ieee1275/init.c: Delete, replace with...
4231 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
4232 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
4233 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
4234 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
4235 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
4236 GRUB_KERNEL_MACHINE_DATA_END): Define.
4237 (grub_kernel_image_size, grub_total_module_size): Declare.
4239 2009-04-12 Pavel Roskin <proski@gnu.org>
4241 * configure.ac: Change the logic when we check for target tools.
4242 Do it when the target is specified and it's different from the
4243 specified value of the host.
4245 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
4247 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
4248 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
4249 GNU/kFreeBSD. Check if a device is a character device. Use
4250 DIOCGMEDIASIZE to get the size.
4251 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
4252 support for GNU/kFreeBSD.
4253 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
4254 is a character device instead of a block device. Add support for
4255 FreeBSD device names.
4257 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
4258 is a character device instead of a block device.
4260 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
4261 is a character device instead of a block device.
4263 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
4265 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
4266 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
4267 FreeBSD. Check if a device is a character device. Use
4268 DIOCGMEDIASIZE to get the size.
4269 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
4270 support for FreeBSD.
4271 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
4272 is a character device instead of a block device. Add support for
4273 FreeBSD device names.
4275 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
4276 a character device instead of a block device.
4277 (grub_util_check_char_device): New function.
4279 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
4280 a character device instead of a block device.
4282 * include/grub/util/getroot.h (grub_util_check_char_device): New
4285 2009-04-11 David S. Miller <davem@davemloft.net>
4287 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
4289 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
4290 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
4291 function, if present.
4292 (__bswapdi2): Likewise.
4294 * include/grub/sparc64/ieee1275/boot.h: New file.
4295 * boot/sparc64/ieee1275/boot.S: Likewise.
4296 * boot/sparc64/ieee1275/diskboot.S: Likewise.
4298 * kern/misc.c (grub_ltoa): New function.
4299 (grub_vsprintf): Use it to format 'long' integers.
4301 2009-04-10 David S. Miller <davem@davemloft.net>
4303 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
4304 slots are of type grub_ieee1275_cell_t.
4305 (grub_nand_read): Likewise.
4306 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
4307 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
4308 macros are used to compare values in arg/ret block of the call.
4309 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
4310 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
4311 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
4312 grub_ieee1275_instance_to_path, grub_ieee1275_write,
4313 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
4314 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
4315 grub_ieee1275_close, grub_ieee1275_set_property,
4316 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
4317 grub_ieee1275_cell_t.
4318 * kern/ieee1275/openfw.c (grub_map): Likewise.
4319 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
4320 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
4322 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
4323 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
4324 (grub_devalias_iterate): Likewise.
4326 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
4330 * fs/ufs.c (INODE_NBLOCKS): new definition
4331 (struct grub_ufs_dirent): added fields for non-BSD dirents
4332 (grub_ufs_get_file_block): fixed double indirect handling
4333 (grub_ufs_lookup_symlink): use more robust way to determine whether
4335 (grub_ufs_find_file): support for non-BSD dirents
4336 (grub_ufs_dir): support for non-BSD dirents
4338 2009-04-10 Bean <bean123ch@gnail.com>
4340 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
4341 attribute, otherwise the size would be wrong for i386 platform.
4343 * include/grub/pci.h (grub_pci_read_word): New inline function.
4344 (grub_pci_read_byte): Likewise.
4345 (grub_pci_write): Likewise.
4346 (grub_pci_write_word): Likewise.
4347 (grub_pci_write_byte): Likewise.
4349 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
4351 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
4352 (find_framebuf): Scan pci to locate the frame buffer address.
4354 * commands/efi/fixvideo.c: New file.
4356 * commands/efi/loadbios.c: Likewise.
4358 * commands/memrw.c: Likewise.
4360 * util/grub-dumpbios.in: Likewise.
4362 * conf/common.rmk (grub-dumpbios): New utility.
4363 (pkglib_MODULES): New module memrw.mod.
4364 (memrw_mod_SOURCE): New macro.
4365 (memrw_mod_CFLAGS): Likewise.
4366 (memrw_mod_LDFLAGS): Likewise.
4368 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
4370 (loadbios_mod_SOURCE): New macro.
4371 (loadbios_mod_CFLAGS): Likewise.
4372 (loadbios_mod_LDFLAGS): Likewise.
4373 (fixvideo_mod_SOURCE): Likewise.
4374 (fixvideo_mod_CFLAGS): Likewise.
4375 (fixvideo_mod_LDFLAGS): Likewise.
4377 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
4379 (loadbios_mod_SOURCE): New macro.
4380 (loadbios_mod_CFLAGS): Likewise.
4381 (loadbios_mod_LDFLAGS): Likewise.
4382 (fixvideo_mod_SOURCE): Likewise.
4383 (fixvideo_mod_CFLAGS): Likewise.
4384 (fixvideo_mod_LDFLAGS): Likewise.
4386 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
4388 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
4390 2009-04-07 David S. Miller <davem@davemloft.net>
4392 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
4393 support for R_SPARC_OLO10 relocations. Fix compile warning for
4394 R_SPARC_WDISP30 case.
4395 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
4397 2009-04-06 Pavel Roskin <proski@gnu.org>
4399 * include/grub/misc.h (ARRAY_SIZE): New macro.
4400 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
4402 * loader/i386/linux.c (allocate_pages): Use free_pages().
4403 (grub_linux_unload): Don't use free_pages().
4404 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
4405 wrong index. Treat all other modes as text modes.
4406 (grub_cmd_linux): Initialize vid_mode unconditionally to
4407 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
4409 * commands/help.c (print_command_help): Use cmd->prio, not
4410 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
4412 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
4416 * parttool/pcpart.c: new file
4417 * commands/parttool.c: likewise
4418 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
4419 (parttool_mod_SOURCES): new variable
4420 (parttool_mod_CFLAGS): likewise
4421 (parttool_mod_LDFLAGS): likewise
4422 (pcpart_mod_SOURCES): likewise
4423 (pcpart_mod_CFLAGS): likewise
4424 (pcpart_mod_LDFLAGS): likewise
4425 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
4426 and parttool/pcpart.c
4427 * conf/i386-efi.rmk: likewise
4428 * conf/i386-ieee1275.rmk: likewise
4429 * conf/i386-pc.rmk: likewise
4430 * conf/powerpc-ieee1275.rmk: likewise
4431 * conf/sparc64-ieee1275.rmk: likewise
4432 * conf/x86_64-ieee1275.rmk: likewise
4434 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4436 Support for mtime and further expandability of dir command
4438 * include/grub/lib/datetime.h: moved to ...
4439 * include/grub/datetime.h: ... moved here and added
4440 declaration of grub_unixtime2datetime. All users updated
4441 * include/grub/fs.h: new syntax for dir and mtime functions in
4443 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
4444 and GRUB_FSHELP_FLAGS_MASK
4445 * commands/ls.c (grub_ls_list_files): Write mtime in long format
4446 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
4447 (grub_ext2_mtime): new function
4448 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
4449 (grub_hfsplus_mtime): new function
4450 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
4451 (GRUB_UFS_ATTR_FILE): likewise
4452 (GRUB_UFS_ATTR_LNK): likewise
4453 (struct grub_ufs_sblock): new fields mtime
4454 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
4456 (grub_ufs_dir): mtime support
4457 (grub_ufs_mtime): new function
4458 * fs/affs.c (grub_affs_dir): use new dir syntax
4459 * fs/afs.c (grub_afs_dir): likewise
4460 * fs/cpio.c (grub_cpio_dir): likewise
4461 * fs/fat.c (grub_fat_find_dir): likewise
4462 * fs/hfs.c (grub_hfs_dir): likewise
4463 * fs/iso9660.c (grub_iso9660_dir): likewise
4464 * fs/jfs.c (grub_jfs_dir): likewise
4465 * fs/minix.c (grub_minix_dir): likewise
4466 * fs/ntfs.c (grub_ntfs_dir): likewise
4467 * fs/reiserfs.c (grub_reiserfs_dir): likewise
4468 * fs/sfs.c (grub_sfs_dir): likewise
4469 * fs/xfs.c (grub_xfs_dir): likewise
4470 * util/hostfs.c (grub_hostfs_dir): likewise
4471 * lib/datetime.c: moved to ...
4472 * normal/datetime.c: ... moved here
4473 (grub_unixtime2datetime): new function
4474 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
4475 * normal/completion.c (iterate_dir): use new dir syntax
4476 * normal/misc.c (grub_normal_print_device_info): tell the
4477 last modification time of a volume
4478 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
4479 * conf/common.rmk: added lib/datetime.c to ls.mod
4480 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
4481 (normal_mod_SOURCES): likewise
4482 (datetime_mod_SOURCES): Removed lib/datetime.c
4483 * conf/i386-efi.rmk: likewise
4484 * conf/i386-ieee1275.rmk: likewise
4485 * conf/i386-pc.rmk: likewise
4486 * conf/powerpc-ieee1275.rmk: likewise
4487 * conf/sparc64-ieee1275.rmk: likewise
4488 * conf/x86_64-efi.rmk: likewise
4490 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4492 Trim trailing spaces in FAT label and support mtools-like labels
4494 * fs/fat.c (grub_fat_iterate_dir): New function based
4495 on grub_fat_find_dir
4496 (grub_fat_find_dir): use grub_fat_iterate_dir
4497 (grub_fat_label): likewise
4499 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4501 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
4503 remove extraneous kernel_elf_HEADERS
4505 2009-04-04 Bean <bean123ch@gnail.com>
4507 * include/grub/util/misc.h: Add dummy function fsync for mingw.
4509 * util/misc.c: Likewise.
4511 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
4513 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
4514 instead of grub_printf.
4516 2009-04-03 Robert Millan <rmh@aybabtu.com>
4518 * loader/i386/linux.c (grub_linux_setup_video): Fill
4519 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
4520 values from `mode info' structure instead of hardcoded
4523 2009-04-01 Pavel Roskin <proski@gnu.org>
4525 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
4527 * genmk.rb: Likewise.
4528 * configure.ac: Likewise.
4530 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
4532 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
4533 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
4535 2009-04-01 David S. Miller <davem@davemloft.net>
4537 * normal/sparc64/setjmp.S: Fix setjmp implementation.
4538 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
4539 (grub_setjmp): Mark with 'returns_twice' attribute.
4540 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
4541 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
4542 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
4544 2009-04-01 Robert Millan <rmh@aybabtu.com>
4546 Reapply fix from 2008-07-28 which was accidentally reverted; also
4547 perform the same fix to a similar check in same function.
4549 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
4550 with the same number are found, just use issue a warning with
4551 grub_dprintf(), as this error has been reported to be non-fatal.
4553 2009-03-31 Pavel Roskin <proski@gnu.org>
4555 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
4556 for cross-compilation.
4558 2009-03-30 Robert Millan <rmh@aybabtu.com>
4560 Fix i386-ieee1275 build.
4562 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
4565 2009-03-30 Pavel Roskin <proski@gnu.org>
4567 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
4568 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
4569 zero-terminated, rely only on the strlen value. Fix comparison
4570 of strings differing in length.
4572 2009-03-30 Robert Millan <rmh@aybabtu.com>
4574 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
4575 checking for abi version. Improve error messages on BIOS to notify
4576 user about `linux16' command.
4578 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
4582 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
4583 in case of collision
4584 * disk/scsi.c (grub_scsi_open): free scsi in case of error
4586 2009-03-29 Robert Millan <rmh@aybabtu.com>
4588 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
4589 set `vid_mode' accordingly.
4590 (grub_linux_boot): Process `vid_mode' and set video mode.
4592 2009-03-29 Robert Millan <rmh@aybabtu.com>
4594 * util/grub.d/10_linux.in (linux_entry): New function.
4595 Factorize generation of Linux boot entries.
4597 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
4599 Make the format of Environment Block plain text. The boot loader
4600 part is not tested well yet.
4602 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
4605 (usage): Remove "info" and "clear". Add "unset". Update the
4606 description of "set", as this does not delete variables any
4608 (create_envblk_file): Complete rewrite.
4609 (open_envblk_file): Likewise.
4610 (cmd_info): Removed.
4611 (cmd_list): Likewise.
4612 (cmd_set): Likewise.
4613 (cmd_clear): Likewise.
4614 (list_variables): New function.
4615 (write_envblk): Likewise.
4616 (set_variables): Likewise.
4617 (unset_variables): Likewise.
4618 (main): Complete rewrite.
4620 * commands/loadenv.c (buffer): Removed.
4622 (open_envblk_file): New function.
4623 (read_envblk_file): Complete rewrite.
4624 (grub_cmd_load_env): Likewise.
4625 (grub_cmd_list_env): Likewise.
4626 (struct blocklist): New struct.
4627 (free_blocklists): New function.
4628 (check_blocklists): Likewise.
4629 (write_blocklists): Likewise.
4630 (grub_cmd_save_env): Complete rewrite.
4632 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
4633 a plain text signature.
4634 (GRUB_ENVBLK_MAXLEN): Removed.
4635 (struct grub_envblk): Complete rewrite.
4636 (grub_envblk_find): Removed.
4637 (grub_envblk_insert): Likewise.
4638 (grub_envblk_open): New prototype.
4639 (grub_envblk_set): Likewise.
4640 (grub_envblk_delete): Put const to VALUE.
4641 (grub_envblk_iterate): Put const to NAME and VALUE.
4642 (grub_envblk_close): New prototype.
4643 (grub_envblk_buffer): New inline function.
4644 (grub_envblk_size): Likewise.
4646 * lib/envblk.c: Include grub/mm.h.
4647 (grub_env_find): Removed.
4648 (grub_envblk_open): New function.
4649 (grub_envblk_close): Likewise.
4650 (escaped_value_len): Likewise.
4651 (find_next_line): Likewise.
4652 (grub_envblk_insert): Removed.
4653 (grub_envblk_set): New function.
4654 (grub_envblk_delete): Complete rewrite.
4655 (grub_envblk_iterate): Likewise.
4657 2009-03-28 Robert Millan <rmh@aybabtu.com>
4659 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
4660 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
4661 variables. Use 16-bit loader.
4662 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
4664 * kern/i386/loader.S (grub_linux_boot): Rename to ...
4665 (grub_linux16_boot): ... this. Update all users.
4666 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
4667 (grub_linux_boot): ... this. Update all users.
4669 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
4670 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
4671 commands to `linux16' and `initrd16'.
4672 (GRUB_MOD_FINI(linux)): Rename to ...
4673 (GRUB_MOD_FINI(linux16)): ... this.
4675 2009-03-24 Pavel Roskin <proski@gnu.org>
4677 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
4678 not just for compilation.
4680 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
4682 Move multiboot helper out of kernel
4684 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
4685 `loader/i386/multiboot_helper.S'.
4686 * conf/i386-coreboot.rmk: Likewise
4687 * conf/i386-ieee1275.rmk: Likewise
4689 * kern/i386/loader.S: Move multiboot helpers from here...
4690 * loader/i386/multiboot_helper.S: ...moved here
4691 * include/grub/i386/loader.h: Move declarations of multiboot
4692 helpers from here...
4693 * include/grub/i386/multiboot.h: ...moved here
4694 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
4696 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
4698 * kern/env.c (grub_env_context_open): Added an argument to specify
4699 whether a new context inherits exported variables from current
4700 one. This is useful when making a sandbox to interpret a config
4702 All callers updated.
4704 * include/grub/env.h (grub_env_context_open): Updated the prototype.
4706 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
4708 * kern/env.c (grub_env_context_close): Fix memory leaks.
4710 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
4712 * normal/main.c (grub_normal_execute): Added an argument
4713 BATCH to specify if an interactive interface should be provided
4714 after reading a config file.
4715 All callers updated.
4716 (read_command_list): Prevent being executed twice.
4717 (read_fs_list): Likewise.
4719 * include/grub/normal.h (grub_normal_execute): Updated the
4722 2009-03-22 Pavel Roskin <proski@gno.org>
4724 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
4726 * kern/i386/pc/startup.S: Likewise.
4727 * kern/i386/efi/startup.S: Likewise.
4728 * kern/i386/ieee1275/startup.S: Likewise.
4729 * kern/i386/coreboot/startup.S: Likewise.
4730 * kern/x86_64/efi/startup.S: Likewise.
4732 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
4733 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
4734 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
4736 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
4738 Bugfixes in multiboot for bugs uncovered by solaris kernel.
4740 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
4742 Use vaddr of correct segment for entry_point.
4744 2009-03-21 Bean <bean123ch@gmail.com>
4746 * commands/blocklist.c: Add include file <grub/command.h>, remove
4747 <grub/normal.h> and <grub/arg.h>.
4748 (grub_cmd_blocklist): Use the new command interface.
4749 (GRUB_MOD_INIT): Likewise.
4750 (GRUB_MOD_FINI): Likewise.
4751 * commands/boot.c: Likewise.
4752 * commands/cat.c: Likewise.
4753 * commands/cmp.c: Likewise.
4754 * commands/configfile.c: Likewise.
4755 * commands/crc.c: Likewise.
4756 * commands/echo.c: Likewise.
4757 * commands/halt.c: Likewise.
4758 * commands/handler.c: Likewise.
4759 * commands/hdparm.c: Likewise.
4760 * commands/help.c: Likewise.
4761 * commands/hexdump.c: Likewise.
4762 * commands/loadenv.c: Likewise.
4763 * commands/ls.c: Likewise.
4764 * commands/lsmmap.c: Likewise.
4765 * commands/lspci.c: Likewise.
4766 * commands/loadenv.c: Likewise.
4767 * commands/read.c: Likewise.
4768 * commands/reboot.c: Likewise.
4769 * commands/search.c: Likewise.
4770 * commands/sleep.c: Likewise.
4771 * commands/test.c: Likewise.
4772 * commands/usbtest.c: Likewise.
4773 * commands/videotest.c: Likewise.
4774 * commands/i386/cpuid.c: Likewise.
4775 * commands/i386/pc/halt.c: Likewise.
4776 * commands/i386/pc/play.c: Likewise.
4777 * commands/i386/pc/pxecmd.c: Likewise.
4778 * commands/i386/pc/vbeinfo.c: Likewise.
4779 * commands/i386/pc/vbetest.c: Likewise.
4780 * commands/ieee1275/suspend.c: Likewise.
4781 * disk/loopback.c: Likewise.
4782 * font/font_cmd.c: Likewise.
4783 * hello/hello.c: Likewise.
4784 * loader/efi/appleloader.c: Likewise.
4785 * loader/efi/chainloader.c: Likewise.
4786 * loader/i386/bsd.c: Likewise.
4787 * loader/i386/efi/linux.c: Likewise.
4788 * loader/i386/ieee1275/linux.c: Likewise.
4789 * loader/i386/linux.c: Likewise.
4790 * loader/i386/pc/chainloader.c: Likewise.
4791 * loader/i386/pc/linux.c: Likewise.
4792 * loader/powerpc/ieee1275/linux.c: Likewise.
4793 * loader/multiboot_loader.c: Likewise.
4794 * term/gfxterm.c: Likewise.
4795 * term/i386/pc/serial.c: Likewise.
4796 * term/terminfo.c: Likewise.
4798 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
4799 * term/i386/pc/vga.c: Likewise.
4800 * video/readers/jpeg.c: Likewise.
4801 * video/readers/png.c: Likewise.
4802 * video/readers/tga.c: Likewise.
4804 * util/grub-fstest (cmd_loopback): Removed.
4805 (cmd_blocklist): Likewise.
4807 (grub_register_command): Likewise.
4808 (grub_unregister_command): Likewise.
4809 (execute_command): Use grub_command_find to locate command and execute
4812 * include/grub/efi/chainloader.h: Removed.
4813 * loader/efi/chainloader_normal.c: Likewise.
4814 * loader/i386/bsd_normal.c: Likewise.
4815 * loader/i386/pc/chainloader_normal.c: Likewise.
4816 * loader/i386/pc/multiboot_normal.c: Likewise.
4817 * loader/linux_normal.c: Likewise.
4818 * loader/multiboot_loader_normal.c: Likewise.
4819 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
4821 * gencmdlist.sh: Scan new registration command grub_register_extcmd
4822 and grub_register_command_p1.
4824 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
4825 kern/command.c, lib/arg.c and commands/extcmd.c.
4826 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
4827 (minicmd_mod_SOURCES): New variable.
4828 (minicmd_mod_CFLAGS): Likewise.
4829 (minicmd_mod_LDFLAGS): Likewise.
4830 (extcmd_mod_SOURCES): Likewise.
4831 (extcmd_mod_CFLAGS): Likewise.
4832 (extcmd_mod_LDFLAGS): Likewise.
4833 (boot_mod_SOURCES): Removed.
4834 (boot_mod_CFLAGS): Likewise.
4835 (boot_mod_LDFLAGS): Likewise.
4837 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
4839 (kernel_img_HEADERS): Add command.h.
4840 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
4841 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
4843 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
4844 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
4845 remove the corresponding normal mode command.
4846 (normal_mod_SOURCES): Remove normal/arg.c.
4847 * conf/i386-coreboot.rmk: Likewise.
4848 * conf/i386-efi.rmk: Likewise.
4849 * conf/i386-ieee1275.rmk: Likewise.
4850 * conf/powerpc-ieee1275.rmk: Likewise.
4851 * conf/x86_64-efi.rmk: Likewise.
4853 * include/grub/arg.h: Move from here ...
4854 * include/grub/lib/arg.h: ... to here.
4856 * normal/arg.c: Move from here ...
4857 * lib/arg.c: ... to here.
4859 * commands/extcmd.c: New file.
4860 * commands/minicmd.c: Likewise.
4861 * include/grub/command.h: Likewise.
4862 * include/grub/extcmd.h: Likewise.
4863 * kern/command.c: Likewise.
4864 * kern/corecmd.c: Likewise.
4866 * kern/list.c (grub_list_iterate): Return int instead of void.
4867 (grub_list_insert): New function.
4868 (grub_prio_list_insert): Likewise.
4870 * kern/rescue.c (grub_rescue_command): Removed.
4871 (grub_rescue_command_list): Likewise.
4872 (grub_rescue_register_command): Likewise.
4873 (grub_rescue_unregister_command): Likewise.
4874 (grub_rescue_cmd_boot): Move to minicmd.c
4875 (grub_rescue_cmd_help): Likewise.
4876 (grub_rescue_cmd_info): Likewise.
4877 (grub_rescue_cmd_boot): Likewise.
4878 (grub_rescue_cmd_testload): Likewise.
4879 (grub_rescue_cmd_dump): Likewise.
4880 (grub_rescue_cmd_rmmod): Likewise.
4881 (grub_rescue_cmd_lsmod): Likewise.
4882 (grub_rescue_cmd_exit): Likewise.
4883 (grub_rescue_print_devices): Moved to corecmd.c.
4884 (grub_rescue_print_files): Likewise.
4885 (grub_rescue_cmd_ls): Likewise.
4886 (grub_rescue_cmd_insmod): Likewise.
4887 (grub_rescue_cmd_set): Likewise.
4888 (grub_rescue_cmd_unset): Likewise.
4889 (attempt_normal_mode): Use grub_command_find to get normal module.
4890 (grub_enter_rescue_mode): Use grub_register_core_commands to register
4891 commands, remove grub_rescue_register_command calls.
4893 * normal/command.c (grub_register_command): Removed.
4894 (grub_unregister_command): Likewise.
4895 (grub_command_find): Likewise.
4896 (grub_iterate_commands): Likewise.
4897 (rescue_command): Likewise.
4898 (export_command): Moved to corecmd.c.
4899 (set_command): Removed.
4900 (unset_command): Likewise.
4901 (insmod_command): Likewise.
4902 (rmmod_command): Likewise.
4903 (lsmod_command): Likewise.
4904 (grub_command_init): Likewise.
4906 * normal/completion.c (iterate_command): Use cmd->prio to check for
4908 (complete_arguments): Use grub_extcmd_t structure to find options.
4909 (grub_normal_do_completion): Change function grub_iterate_commands to
4910 grub_command_iterate.
4912 * normal/execute.c (grub_script_execute_cmd): No need to parse
4915 * normal/main.c (grub_dyncmd_dispatcher): New function.
4916 (read_command_list): Register unload commands as dyncmd.
4917 (grub_cmd_normal): Use new command interface, register rescue,
4918 unregister normal at entry, register normal, unregister rescue at exit.
4920 * include/grub/list.h (grub_list_test_t): New type.
4921 (grub_list_iterate): Return int instead of void.
4922 (grub_list_insert): New function.
4923 (GRUB_AS_NAMED_LIST_P): New macro.
4924 (GRUB_AS_PRIO_LIST): Likewise.
4925 (GRUB_AS_PRIO_LIST_P): Likewise.
4926 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
4927 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
4928 (grub_prio_list): New structure.
4929 (grub_prio_list_insert): New function.
4930 (grub_prio_list_remove): New inline function.
4932 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
4933 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
4934 (GRUB_COMMAND_FLAG_MENU): Likewise.
4935 (GRUB_COMMAND_FLAG_BOTH): Likewise.
4936 (GRUB_COMMAND_FLAG_TITLE): Likewise.
4937 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
4938 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
4939 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
4940 (grub_command): Likewise.
4941 (grub_register_command): Likewise.
4942 (grub_command_find): Likewise.
4943 (grub_iterate_commands): Likewise.
4944 (grub_command_init): Likewise.
4945 (grub_arg_parse): Likewise.
4946 (grub_arg_show_help): Likewise.
4948 * include/grub/rescue.h (grub_rescue_register_command): Removed.
4949 (grub_rescue_unregister_command): Likewise.
4951 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
4952 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
4953 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
4955 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
4956 grub_rescue_cmd_initrd.
4957 * include/grub/i386/loader.h: Likewise.
4958 * include/grub/x86_64/loader.h: Likewise.
4960 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
4962 2009-03-21 Bean <bean123ch@gmail.com>
4964 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
4965 instead of stat in mingw environment.
4967 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
4969 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
4971 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
4974 2009-03-21 Bean <bean123ch@gmail.com>
4976 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
4979 2009-03-18 Michel Dänzer <michel@daenzer.net>
4981 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
4982 checking inode flags for EXT4_EXTENTS_FLAG.
4984 2009-03-18 Robert Millan <rmh@aybabtu.com>
4986 * loader/i386/linux.c: Include `<grub/video.h>' and
4987 `<grub/i386/pc/vbe.h>'..
4988 (grub_linux_setup_video): New function. Loosely based on the EFI one.
4989 (grub_linux32_boot): Attempt to configure video settings with
4990 grub_linux_setup_video().
4991 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
4992 to avoid grub_console_fini() which would step out of graphical mode
4995 2009-03-14 Robert Millan <rmh@aybabtu.com>
4997 Fix build on powerpc.
4998 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
5000 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
5002 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
5003 background image command.
5005 2009-03-12 Colin D Bennett <colin@gibibit.com>
5007 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
5008 (grub_gfxterm_putchar): Extract pairs of identical calls to
5009 draw_cursor out of conditional blocks.
5011 2009-03-11 Pavel Roskin <proski@gnu.org>
5013 * fs/hfs.c (grub_hfs_strncasecmp): New function.
5014 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
5016 2009-03-11 Robert Millan <rmh@aybabtu.com>
5018 * loader/i386/multiboot_elfxx.c
5019 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
5021 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
5023 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
5026 2009-03-11 Robert Millan <rmh@aybabtu.com>
5028 * loader/i386/multiboot.c (code_size): New variable.
5029 (grub_multiboot): Define offsets by adding to `code_size' rather
5030 than subtracting from `grub_multiboot_payload_size'. Provide
5031 4-byte alignment to MBI and others by increasing
5032 `boot_loader_name_length' appropriately.
5034 * loader/i386/multiboot_elfxx.c
5035 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
5037 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
5039 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
5042 2009-03-08 Robert Millan <rmh@aybabtu.com>
5044 Make loader/i386/linux.c usable on i386-pc again.
5046 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
5048 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
5051 2009-03-07 Bean <bean123ch@gmail.com>
5053 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
5056 2009-03-06 Robert Millan <rmh@aybabtu.com>
5058 Fix display issue on terminals with screen size other than 80x25
5059 (e.g. gfxterm with resolution higher than 640x480).
5061 * normal/main.c (grub_normal_init_page): Display title text in a
5062 position relative to the center of the terminal instead of relying
5063 on a hardcoded offset.
5065 2009-03-04 Robert Millan <rmh@aybabtu.com>
5067 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
5070 * Makefile.in (host_kernel): New variable.
5071 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
5072 scripts instead of just the windows one.
5073 * configure.ac: Initialize and AC_SUBST `host_kernel'.
5075 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5077 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
5079 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
5080 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5081 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
5082 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5083 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5084 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5086 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5088 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
5089 or if there's no space for the disk label and print the partition number on a
5092 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5094 * util/misc.c: Include <time.h>.
5095 (grub_millisleep): New function.
5097 2009-03-04 Bean <bean123ch@gmail.com>
5099 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
5100 another option -mno-red-zone.
5102 * commands/handler.c: Change module description.
5104 * kern/handler.c: Add missing space at the end of description line.
5106 * kern/list.c: Likewise.
5108 2009-03-03 Robert Millan <rmh@aybabtu.com>
5110 Move more components to the relocation area, and fix mbi pointer
5111 handling to use the destination rather than the origin (thanks to
5112 Vladimir Serbinenko for spotting).
5114 * loader/i386/multiboot.c (mbi_dest): New variable.
5115 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
5116 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
5119 2009-03-01 Bean <bean123ch@gmail.com>
5121 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
5122 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
5123 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
5124 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
5126 * loader/i386/efi/linux.c (acpi_guid): New variable.
5127 (acpi_guid): Likewise.
5128 (EBDA_SEG_ADDR): New constant.
5129 (LOW_MEM_ADDR): Likewise.
5130 (FAKE_EBDA_SEG): Likewise.
5131 (fake_bios_data): New function.
5132 (grub_linux_boot): Call fake_bios_data.
5134 2009-03-01 Bean <bean123ch@gmail.com>
5136 * commands/terminal.c: Removed.
5138 * commands/handler.c: New file.
5140 * include/grub/list.h: Likewise.
5142 * include/grub/handler.h: Likewise.
5144 * kern/list.c: Likewise.
5146 * kern/handler.c: Likewise.
5148 * kern/term.h: Include header file <grub/handler.h>.
5149 (grub_term_input): Move next field to the beginning.
5150 (grub_term_output): Likewise.
5151 (grub_term_input_class): New variable.
5152 (grub_term_output_class): Likewise.
5153 (grub_term_register_input): Changed to inline function.
5154 (grub_term_register_output): Likewise.
5155 (grub_term_unregister_input): Likewise.
5156 (grub_term_unregister_output): Likewise.
5157 (grub_term_set_current_input): Likewise.
5158 (grub_term_set_current_output): Likewise.
5159 (grub_term_get_current_input): Likewise.
5160 (grub_term_get_current_output): Likewise.
5161 (grub_term_iterate_input): Removed.
5162 (grub_term_iterate_output): Likewise.
5164 * kern/term.c (grub_term_list_input): Removed.
5165 (grub_term_list_output): Likewise.
5166 (grub_term_input_class): New variable.
5167 (grub_term_output_class): Likewise.
5168 (grub_cur_term_input): Change variable as macro.
5169 (grub_cur_term_output): Likewise.
5170 (grub_term_register_input): Removed.
5171 (grub_term_register_output): Likewise.
5172 (grub_term_unregister_input): Likewise.
5173 (grub_term_unregister_output): Likewise.
5174 (grub_term_set_current_input): Likewise.
5175 (grub_term_set_current_output): Likewise.
5176 (grub_term_iterate_input): Likewise.
5177 (grub_term_iterate_output): Likewise.
5178 (grub_term_get_current_input): Likewise.
5179 (grub_term_get_current_output): Likewise.
5181 * util/grub-editenv.c: Include header file <grub/handler.h>.
5182 (grub_term_get_current_input): Removed.
5183 (grub_term_get_current_output): Likewise.
5184 (grub_term_input_class): New variable.
5185 (grub_term_output_class): Likewise.
5187 * util/grub-fstest.c (grub_term_get_current_input): Removed.
5188 (grub_term_get_current_output): Likewise.
5189 (grub_term_input_class): New variable.
5190 (grub_term_output_class): Likewise.
5192 * util/grub-probe.c (grub_term_get_current_input): Removed.
5193 (grub_term_get_current_output): Likewise.
5194 (grub_term_input_class): New variable.
5195 (grub_term_output_class): Likewise.
5197 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
5198 (grub_term_get_current_output): Likewise.
5199 (grub_term_input_class): New variable.
5200 (grub_term_output_class): Likewise.
5202 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
5203 (terminal_mod_SOURCES): Likewise.
5204 (terminal_mod_CFLAGS): Likewise.
5205 (terminal_mod_LDFLAGS): Likewise.
5207 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
5209 (kernel_img_SOURCES): Add list.c and handler.c.
5210 (kernel_img_HEADERS): Add list.h and handler.h.
5212 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
5214 (kernel_mod_SOURCES): Add list.c and handler.c.
5215 (kernel_mod_HEADERS): Add list.h and handler.h.
5217 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
5219 (kernel_elf_SOURCES): Add list.c and handler.c.
5220 (kernel_elf_HEADERS): Add list.h and handler.h.
5222 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
5224 (kernel_elf_SOURCES): Add list.c and handler.c.
5225 (kernel_elf_HEADERS): Add list.h and handler.h.
5227 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
5229 (kernel_mod_SOURCES): Add list.c and handler.c.
5230 (kernel_mod_HEADERS): Add list.h and handler.h.
5232 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
5234 (kernel_elf_SOURCES): Add list.c and handler.c.
5235 (kernel_elf_HEADERS): Add list.h and handler.h.
5237 2009-02-27 Robert Millan <rmh@aybabtu.com>
5239 Factorize elf32 / elf64 code in Multiboot loader. This will
5240 prevent it from getting out of sync again.
5242 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
5243 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
5244 grub_multiboot_load_elf64): Move from here ...
5245 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
5246 grub_multiboot_load_elf): ... to here (new file).
5248 2009-02-27 Robert Millan <rmh@aybabtu.com>
5250 * util/grub.d/10_linux.in: Rename "single-user mode" to
5253 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5255 Don't leak in SCSI code.
5256 * disk/scsi.c (grub_scsi_close): free `scsi'.
5258 2009-02-27 Robert Millan <rmh@aybabtu.com>
5260 * loader/i386/pc/multiboot.c: Move from here ...
5261 * loader/i386/multiboot.c: ... to here. Update all users.
5263 2009-02-27 Robert Millan <rmh@aybabtu.com>
5265 Patch from Alexandre Bique <bique.alexandre@gmail.com>
5266 * util/i386/pc/grub-setup.c (setup): Fix directory path.
5268 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
5270 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
5273 2009-02-27 Robert Millan <rmh@aybabtu.com>
5275 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
5276 `0x' qualifier as 0 when base is specified as parameter).
5278 2009-02-24 Bean <bean123ch@gmail.com>
5280 * configure.ac: Check for -mcmodel=large in x86_64 target.
5282 * include/grub/efi/api.h (efi_call_10): New macro.
5283 (efi_wrap_10): New function.
5285 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
5286 (GRUB_PE32_REL_BASED_HIGH): Likewise.
5287 (GRUB_PE32_REL_BASED_LOW): Likewise.
5288 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
5289 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
5290 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
5291 (GRUB_PE32_REL_BASED_SECTION): Likewise.
5292 (GRUB_PE32_REL_BASED_REL): Likewise.
5293 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
5294 (GRUB_PE32_REL_BASED_DIR64): Likewise.
5295 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
5297 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
5300 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
5301 (efi_wrap_10): New function.
5303 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
5305 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
5306 MB/MBP model (NV chipset).
5307 (devdata_devs): Add devpath_5 to the list.
5309 * load/i386/efi/linux.c (video_base): Remove variable.
5310 (RGB_MASK): New macro.
5311 (RGB_MAGIC): Likewise.
5312 (LINE_MIN): Likewise.
5313 (LINE_MAX): Likewise.
5314 (FBTEST_STEP): Likewise.
5315 (FBTEST_COUNT): Likewise.
5316 (fb_list): New variable.
5317 (grub_find_video_card): Remove function.
5318 (find_framebuf): New function.
5319 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
5322 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
5325 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
5327 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
5329 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
5332 2009-02-22 Robert Millan <rmh@aybabtu.com>
5334 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
5335 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
5336 in our relocation, instead of using it directly from heap. Also
5337 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
5339 2009-02-21 Robert Millan <rmh@aybabtu.com>
5341 Implement USB keyboard support (based on patch by Marco Gerards)
5343 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
5344 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
5345 (usb_keyboard_mod_LDFLAGS): New variables.
5347 * term/usb_keyboard.c: New file.
5349 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
5351 Corrected wrong declaration
5353 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
5355 2009-02-14 Christian Franke <franke@computer.org>
5357 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
5358 (grub_lspci_iter): Print class code and programming interface byte.
5360 2009-02-14 Christian Franke <franke@computer.org>
5362 * gendistlist.sh: Ignore `.svn' directories.
5364 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
5366 * fs/fat.c: Add 2009 to Copyright line.
5368 2009-02-14 Christian Franke <franke@computer.org>
5370 * commands/hdparm.c: New file. Provides `hdparm' command
5371 which sends ATA commands via grub_disk_ata_pass_through ().
5373 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
5375 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
5376 and <grub/cpu/io.h> to include/grub/ata.h.
5377 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
5378 (GRUB_CDROM_SECTOR_SIZE): Remove.
5379 (GRUB_ATA_*): Move to include/grub/ata.h.
5380 (GRUB_ATAPI_*): Likewise.
5381 (enum grub_ata_commands): Likewise.
5382 (enum grub_ata_timeout_milliseconds): Likewise.
5383 (struct grub_ata_device): Likewise.
5384 (grub_ata_regset): Likewise.
5385 (grub_ata_regget): Likewise.
5386 (grub_ata_regset2): Likewise.
5387 (grub_ata_regget2): Likewise.
5388 (grub_ata_check_ready): Likewise.
5389 (grub_ata_wait_not_busy): Remove static, exported in
5391 (grub_ata_wait_drq): Likewise.
5392 (grub_ata_pio_read): Likewise.
5394 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
5395 function for hdparm.mod.
5397 * include/grub/ata.h: New file, contains declarations from
5399 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
5401 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
5402 (grub_disk_ata_pass_through): New exported variable.
5404 * kern/disk.c (grub_disk_ata_pass_through): New variable.
5406 2009-02-13 Colin D Bennett <colin@gibibit.com>
5408 Support multiple fallback entries, and provide an API to support
5409 executing default+fallback menu entries. Renamed the `terminal' menu
5412 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
5413 variable declaration.
5414 (grub_menu_execute_callback): New structure declaration.
5415 (grub_menu_execute_callback_t): New typedef.
5416 (grub_menu_execute_with_fallback): New function declaration.
5417 (grub_menu_get_entry): Likewise.
5418 (grub_menu_get_timeout): Likewise.
5419 (grub_menu_set_timeout): Likewise.
5421 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
5423 * normal/menu.c (grub_wait_after_message): Moved to
5424 `normal/menu_text.c'.
5425 (draw_border): Likewise.
5426 (print_message): Likewise.
5427 (print_entry): Likewise.
5428 (print_entries): Likewise.
5429 (grub_menu_init_page): Likewise.
5430 (get_entry_number): Likewise.
5431 (print_timeout): Likewise.
5432 (run_menu): Likewise.
5433 (grub_menu_execute_entry): Likewise.
5434 (show_text_menu): Likewise.
5435 (get_and_remove_first_entry_number): New function.
5436 (grub_menu_execute_with_fallback): Likewise.
5437 (get_entry): Renamed to ...
5438 (grub_menu_get_entry): .. this and made it global.
5439 (get_timeout): Renamed to ...
5440 (grub_menu_get_timeout): ... this and made it global.
5441 (set_timeout): Renamed to ...
5442 (grub_menu_set_timeout): ... this and made it global.
5443 (grub_normal_terminal_menu_viewer): Renamed to ...
5444 (grub_normal_text_menu_viewer): ... this.
5446 * normal/menu_text.c: New file. Extracted text-menu-specific code
5449 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
5450 (normal_mod_SOURCES): Likewise.
5452 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
5453 (normal_mod_SOURCES): Likewise.
5455 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5456 (normal_mod_SOURCES): Likewise.
5458 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
5459 (normal_mod_SOURCES): Likewise.
5461 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5462 (normal_mod_SOURCES): Likewise.
5464 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5465 (normal_mod_SOURCES): Likewise.
5467 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5468 (normal_mod_SOURCES): Likewise.
5470 2009-02-11 Robert Millan <rmh@aybabtu.com>
5472 * util/grub.d/00_header.in: Update old reference to `font' command.
5474 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
5476 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
5478 Based on patch from Javier MartÃn.
5480 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
5482 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
5483 to avoid false positives with FAT.
5484 (grub_fstest_SOURCES): Likewise.
5485 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
5486 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5487 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5488 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
5489 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5490 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5492 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
5494 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
5495 bpb.version_specific.fat12_or_fat16.fstype and
5496 bpb.version_specific.fat32.fstype.
5498 2009-02-08 Robert Millan <rmh@aybabtu.com>
5500 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
5502 2009-02-08 Robert Millan <rmh@aybabtu.com>
5504 * Makefile.in (host_os, host_cpu): New variables.
5505 (target_os): Remove. Update all users.
5507 2009-02-08 Marco Gerards <marco@gnu.org>
5509 * Makefile.in (enable_grub_emu_usb): New variable.
5510 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
5511 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
5512 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
5513 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
5514 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
5515 `usbtest.mod' and `usbms.mod'.
5516 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
5517 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
5518 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
5519 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
5520 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
5523 * disk/usbms.c: New file.
5525 * include/grub/usb.h: Likewise.
5527 * include/grub/usbtrans.h: Likewise.
5529 * include/grub/usbdesc.h: Likewise.
5531 * bus/usb/usbtrans.c: Likewise.
5533 * bus/usb/ohci.c: Likewise.
5535 * bus/usb/uhci.c: Likewise.
5537 * bus/usb/usbhub.c: Likewise.
5539 * bus/usb/usb.c: Likewise.
5541 * commands/usbtest.c: Likewise.
5543 * util/usb.c: Likewise.
5545 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
5547 * configure.ac: Test for libusb presence.
5549 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
5551 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
5553 * kern/mm.c: Add more comments.
5555 2009-02-08 Robert Millan <rmh@aybabtu.com>
5557 Patch from Javier MartÃn.
5558 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
5559 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
5561 2009-02-08 Robert Millan <rmh@aybabtu.com>
5563 * fs/cpio.c: Split tar functionality to ...
5564 * fs/tar.c: ... here (new file). Update all users.
5566 2009-02-07 Robert Millan <rmh@aybabtu.com>
5568 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
5569 backward-incompatible features.
5571 Based on patch from Javier MartÃn, with some adjustments.
5573 2009-02-07 Michael Scherer <misc@mandriva.org>
5575 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
5577 2009-02-07 Robert Millan <rmh@aybabtu.com>
5579 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
5580 position of `disk/lvm.c' to ensure grub_init_all() always picks it
5581 after the RAID stuff.
5583 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
5585 Fixes problem when running vbetest command as reported by
5586 Vladimir Serbinenko <phcoder@gmail.com>.
5588 * (grub_vbe_set_video_mode): Fixed problem with text modes.
5590 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
5592 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
5593 /dev/md/NpN style mdraid devices.
5595 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
5597 * util/unifont2pff.rb: Remove.
5599 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
5601 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
5604 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
5606 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
5607 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
5608 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5609 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
5610 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5611 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5612 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5614 2009-02-02 Christian Franke <franke@computer.org>
5616 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
5618 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
5620 * INSTALL: Note that we now require at least autoconf 2.59 and
5621 that LZO is optional.
5623 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
5625 Base on patch on bug #24154 created by Tomas Tintera
5628 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
5630 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
5632 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
5633 <bero@arklinux.org>.
5635 * normal/parser.y (script_init): Add missing semicolon.
5637 2009-01-31 Colin D Bennett <colin@gibibit.com>
5639 * normal/main.c: Add include to grub/menu_viewer.h.
5640 (free_menu_entry_classes): Added.
5641 (grub_normal_menu_addentry): Added class property handling.
5642 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
5643 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
5645 * normal/menu_viewer.c: New file.
5647 * normal/menu.c (run_menu_entry): Renamed to ...
5648 (grub_menu_execute_entry): ... this and made it as global.
5649 (grub_menu_run): Renamed to ...
5650 (show_text_menu): ... this and made it local.
5651 (show_text_menu): Adapt to new function names.
5652 (grub_normal_terminal_menu_viewer): New global variable.
5654 * include/grub/menu.h: New file.
5656 * include/grub/menu_viewer.h: New file.
5658 * include/grub/normal.h: Added include to grub/menu.h.
5659 (grub_menu_entry): Moved to include/grub/menu.h.
5660 (grub_menu_entry_t): Likewise.
5661 (grub_menu): Likewise.
5662 (grub_menu_t): Likewise.
5663 (grub_normal_terminal_menu_viewer): Added.
5664 (grub_menu_execute_entry): Likewise.
5665 (grub_menu_run): Removed.
5667 * DISTLIST: Added include/grub/menu.h.
5668 Added include/grub/menu_viewer.h.
5669 Added normal/menu_viewer.c.
5671 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
5673 * normal/execute.c (grub_script_execute_menuentry): Changed to use
5674 arglist for menutitle arguments.
5676 * normal/main.c (grub_normal_menu_addentry): Likewise.
5678 * normal/parser.y (menuentry): Likewise.
5680 * normal/script.c (grub_script_create_cmdmenu): Likewise.
5682 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
5683 (grub_script_create_cmdmenu): Likewise.
5685 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
5687 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
5690 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
5692 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
5694 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
5696 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
5698 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
5700 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
5702 2009-01-30 Christian Franke <franke@computer.org>
5704 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
5705 in option help text.
5707 2009-01-27 Pavel Roskin <proski@gnu.org>
5709 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
5711 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
5713 * commands/lsmmap.c: Add include to grub/machine/memory.h.
5715 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
5717 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
5718 unregister function.
5720 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
5722 * disk/scsi.c (grub_scsi_read): Fix sign problem.
5724 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
5726 * util/grub-mkfont.c (usage): Fix typo.
5728 * util/elf/grub-mkimage.c (load_modules): Fix warning.
5730 2009-01-26 Daniel Mierswa <impulze@impulze.org>
5732 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
5734 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
5736 * kern/misc.c (grub_strcasecmp): New function.
5737 (grub_strcasecmp): Use grub_size_t instead of int for length.
5739 * include/grub/misc.h: Update function prototypes.
5741 2009-01-26 Robert Millan <rmh@aybabtu.com>
5743 * configure.ac: Fix cross-compilation check.
5745 2009-01-22 Christian Franke <franke@computer.org>
5747 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
5748 (precision) digit string. Allow `.format2' without `format1' (width).
5749 Limit input chars for `%s' output to `format2' if specified. This is
5750 compatible with standard printf ().
5752 2009-01-22 Christian Franke <franke@computer.org>
5754 * disk/ata.c (grub_ata_wait_status): Replace by ...
5755 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
5756 other status bits may be invalid while BSY is asserted.
5757 (grub_ata_check_ready): New function.
5758 (grub_ata_cmd): Removed.
5759 (grub_ata_wait_drq): New function.
5760 (grub_ata_strncpy): Remove inline.
5761 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
5762 and error check now done by grub_ata_wait_drq ().
5763 (grub_ata_pio_write): Likewise.
5764 (grub_atapi_identify): Set DEV before check for !BSY. Use
5765 grub_ata_wait_drq () to wait for data.
5766 (grub_ata_device_initialize): Add status register check to
5767 detect missing SATA slave devices. Add debug messages.
5768 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
5769 (grub_atapi_packet): Set DEV before check for !BSY. Replace
5770 transfer loop by grub_ata_pio_write ().
5771 (grub_ata_identify): Set DEV before check for !BSY. Use
5772 grub_ata_wait_drq () to wait for data.
5773 (grub_ata_setaddress): Set DEV before check for !BSY.
5774 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
5775 read/write in one loop. Fix invalid command on write. Fix incomplete
5776 command on (size % batch) == 0. Add missing error check after write of
5777 last block. Add debug messages.
5778 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
5780 2009-01-19 Christian Franke <franke@computer.org>
5782 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
5783 (GRUB_ATAPI_IREASON_*): Likewise.
5784 (grub_ata_pio_write): Fix timeout error return.
5785 (grub_atapi_identify): Add grub_ata_wait () after cmd.
5786 (grub_atapi_wait_drq): New function.
5787 (grub_atapi_packet): New parameter `size'.
5788 Use grub_atapi_wait_drq () and direct write instead of
5789 grub_ata_pio_write ().
5790 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
5791 reads the number of bytes requested by the device for each DRQ
5793 (grub_atapi_write): Remove old implementation, return not
5794 implemented instead.
5796 2009-01-19 Christian Franke <franke@computer.org>
5798 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
5799 of 512 to calculate data size.
5800 (grub_scsi_read12): Likewise.
5801 (grub_scsi_write10): Likewise.
5802 (grub_scsi_write12): Likewise.
5803 (grub_scsi_read): Adjust size according to blocksize.
5804 Add checks for invalid blocksize and unaligned transfer.
5806 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
5808 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
5810 * term/gfxterm.c (write_char): Fix background rendering for wide
5813 2009-01-19 Robert Millan <rmh@aybabtu.com>
5815 * config.guess: Update to latest version from config git.
5816 * config.sub: Likewise.
5818 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
5820 * Makefile.in: Change font compilation to use new grub-mkfont instead
5823 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
5824 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
5825 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
5826 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
5827 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
5828 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
5829 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
5830 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
5831 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
5833 2009-01-16 Christian Franke <franke@computer.org>
5835 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
5836 (enum grub_ata_timeout_milliseconds): New enum.
5837 (grub_ata_wait_status): Add parameter milliseconds.
5838 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
5839 recovery from timed-out commands.
5840 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
5841 return grub_errno instead of REG_ERROR.
5842 (grub_ata_pio_write): Add parameter milliseconds.
5843 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
5844 Pass milliseconds to grub_ata_wait_status () and
5845 grub_ata_pio_read ().
5846 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
5847 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
5848 grub_ata_wait_status (). Fix IDENTIFY timeout check.
5849 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
5850 It is not suitable for device detection, because DEV bit is ignored,
5851 the command may run too long, and not all devices set the signature
5853 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
5854 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
5855 Fix device selection, DEV bit must be set first to address the registers
5856 of the correct device.
5857 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
5858 grub_ata_pio_read/write ().
5859 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
5860 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
5862 2009-01-13 Carles Pina i Estany <carles@pina.cat>
5864 * util/grub-editenv.c (main): Use fseeko(), not fseek().
5866 2009-01-13 Bean <bean123ch@gmail.com>
5868 * util/grub-mkfont.c (write_font): forget to remove some debug code.
5870 2009-01-13 Bean <bean123ch@gmail.com>
5872 * Makefile.in: (enable_grub_mkfont): New variable.
5873 (freetype_cflags): Likewise.
5874 (freetype_libs): Likewise.
5876 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
5877 (grub_mkfont_SOURCES): New variable.
5878 (grub_mkfont_CFLAGS): Likewise.
5879 (grub_mkfont_LDFLAGS): Likewise.
5881 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
5882 library if `--enable-grub-mkfont' is requested.
5883 (enable_grub_mkfont): New variable.
5884 (freetype_cflags): Likewise.
5885 (freetype_libs): Likewise.
5887 * util/grub-mkfont.c: New file.
5889 2009-01-12 Christian Franke <franke@computer.org>
5891 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
5892 mode check. Fix setting of compat_use[].
5894 2009-01-10 Robert Millan <rmh@aybabtu.com>
5896 Update a few copyright years which we forgot to do in 2008 (only for
5897 files whose changes made in 2008 were copyright-significant)
5899 * Makefile.in: Add 2008 to Copyright line.
5900 * disk/ieee1275/ofdisk.c: Likewise.
5901 * disk/efi/efidisk.c: Likewise.
5902 * kern/dl.c: Likewise.
5903 * kern/sparc64/ieee1275/init.c: Likewise.
5904 * kern/mm.c: Likewise.
5905 * kern/efi/mm.c: Likewise.
5906 * boot/i386/pc/boot.S: Likewise.
5907 * genfslist.sh: Likewise.
5908 * fs/iso9660.c: Likewise.
5909 * fs/hfs.c: Likewise.
5910 * fs/jfs.c: Likewise.
5911 * fs/minix.c: Likewise.
5912 * fs/ufs.c: Likewise.
5913 * gensymlist.sh.in: Likewise.
5914 * genkernsyms.sh.in: Likewise.
5915 * include/grub/misc.h: Likewise.
5916 * include/grub/types.h: Likewise.
5917 * include/grub/symbol.h: Likewise.
5918 * include/grub/elf.h: Likewise.
5919 * include/grub/kernel.h: Likewise.
5920 * include/grub/disk.h: Likewise.
5921 * include/grub/dl.h: Likewise.
5922 * include/grub/i386/linux.h: Likewise.
5923 * include/grub/i386/pc/biosdisk.h: Likewise.
5924 * include/grub/efi/api.h: Likewise.
5925 * include/grub/efi/pe32.h: Likewise.
5926 * include/grub/util/misc.h: Likewise.
5927 * normal/execute.c: Likewise.
5928 * normal/arg.c: Likewise.
5929 * normal/completion.c: Likewise.
5930 * normal/lexer.c: Likewise.
5931 * normal/parser.y: Likewise.
5932 * normal/misc.c: Likewise.
5933 * commands/i386/pc/vbeinfo.c: Likewise.
5934 * commands/hexdump.c: Likewise.
5935 * commands/terminal.c: Likewise.
5936 * commands/ls.c: Likewise.
5937 * commands/help.c: Likewise.
5938 * partmap/pc.c: Likewise.
5939 * loader/efi/chainloader.c: Likewise.
5940 * loader/multiboot_loader.c: Likewise.
5941 * loader/i386/pc/multiboot2.c: Likewise.
5942 * term/efi/console.c: Likewise.
5943 * term/i386/pc/serial.c: Likewise.
5944 * util/lvm.c: Likewise.
5945 * util/console.c: Likewise.
5946 * util/i386/efi/grub-mkimage.c: Likewise.
5947 * util/raid.c: Likewise.
5949 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
5951 * commands/videotest.c: Removed include to grub/machine/memory.h.
5953 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
5954 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
5955 (video_mod_SOURCES): Removed.
5956 (video_mod_CFLAGS): Likewise.
5957 (video_mod_LDFLAGS): Likewise.
5958 (gfxterm_mod_SOURCES): Likewise.
5959 (gfxterm_mod_CFLAGS): Likewise.
5960 (gfxterm_mod_LDFLAGS): Likewise.
5961 (videotest_mod_SOURCES): Likewise.
5962 (videotest_mod_CFLAGS): Likewise.
5963 (videotest_mod_LDFLAGS): Likewise.
5964 (bitmap_mod_SOURCES): Likewise.
5965 (bitmap_mod_CFLAGS): Likewise.
5966 (bitmap_mod_LDFLAGS): Likewise.
5967 (tga_mod_SOURCES): Likewise.
5968 (tga_mod_CFLAGS): Likewise.
5969 (tga_mod_LDFLAGS): Likewise.
5970 (jpeg_mod_SOURCES): Likewise.
5971 (jpeg_mod_CFLAGS): Likewise.
5972 (jpeg_mod_LDFLAGS): Likewise.
5973 (png_mod_SOURCES): Likewise.
5974 (png_mod_CFLAGS): Likewise.
5975 (png_mod_LDFLAGS): Likewise.
5977 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
5978 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
5979 (video_mod_SOURCES): Added.
5980 (video_mod_CFLAGS): Likewise.
5981 (video_mod_LDFLAGS): Likewise.
5982 (videotest_mod_SOURCES): Likewise.
5983 (videotest_mod_CFLAGS): Likewise.
5984 (videotest_mod_LDFLAGS): Likewise.
5985 (bitmap_mod_SOURCES): Likewise.
5986 (bitmap_mod_CFLAGS): Likewise.
5987 (bitmap_mod_LDFLAGS): Likewise.
5988 (tga_mod_SOURCES): Likewise.
5989 (tga_mod_CFLAGS): Likewise.
5990 (tga_mod_LDFLAGS): Likewise.
5991 (jpeg_mod_SOURCES): Likewise.
5992 (jpeg_mod_CFLAGS): Likewise.
5993 (jpeg_mod_LDFLAGS): Likewise.
5994 (png_mod_SOURCES): Likewise.
5995 (png_mod_CFLAGS): Likewise.
5996 (png_mod_LDFLAGS): Likewise.
5997 (gfxterm_mod_SOURCES): Likewise.
5998 (gfxterm_mod_CFLAGS): Likewise.
5999 (gfxterm_mod_LDFLAGS): Likewise.
6001 * term/gfxterm.c: Removed include to grub/machine/memory.h,
6002 grub/machine/console.h.
6004 2009-01-04 Jerone Young <jerone@gmail.com>
6006 Make on screen instructions clearer
6008 Based on patch created by Jidanni <jidanni@jidanni.org>
6010 * normal/menu.c: print clearer instructions on the screen
6012 2009-01-02 Colin D Bennett <colin@gibibit.com>
6016 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
6017 build system and fixed gfxterm.c to work with different sized fonts.
6019 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
6021 * configure: Re-generated.
6023 * DISTLIST: Removed font/manager.c.
6025 Added font/font_cmd.c.
6027 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
6030 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
6032 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
6034 * kern/term.c: Changed users of grub_utf8_to_ucs4.
6036 * normal/menu.c: Likewise.
6038 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
6039 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
6041 * include/grub/font.h: Replaced with new file.
6043 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
6044 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
6045 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
6046 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
6047 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
6048 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
6049 fg_red, fg_green, fg_blue, fg_alpha.
6050 (grub_video_adapter): Removed blit_glyph.
6051 (grub_video_blit_glyph): Removed.
6053 * font/manager.c: Removed file.
6055 * font/font.c: New file.
6057 * font/font_cmd.c: Likewise.
6059 * video/video.c (grub_video_blit_glyph): Removed.
6061 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
6062 (grub_video_vbe_map_rgba): Likewise.
6063 (grub_video_vbe_unmap_color_int): Likewise.
6064 (grub_video_vbe_blit_glyph): Removed.
6065 (grub_video_vbe_adapter): Removed blit_glyph.
6067 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
6068 (get_pixel): Likewise.
6069 (set_pixel): Likewise.
6071 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
6073 * term/gfxterm.c: Adapted to new font engine.
6075 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
6077 * term/i386/pc/vga.c: Likewise.
6079 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
6081 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
6083 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6085 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6087 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
6089 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
6091 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
6093 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
6095 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
6097 * util/grub.d/00_header.in: Changed to use new loadfont command.
6099 * util/grub-mkconfig_lib.in: Changed font extension.
6101 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
6103 * util/getroot.c (grub_util_get_grub_dev): Add support for
6104 /dev/md/dNNpNN style partitionable mdraid devices.
6106 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
6108 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
6109 at a time limit of the PXE TFTP API correctly.
6110 (grub_pxefs_close): Likewise.
6112 2008-11-29 Robert Millan <rmh@aybabtu.com>
6114 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
6115 grub_ata_device_initialize() calls.
6117 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
6119 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
6121 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
6123 2008-11-28 Robert Millan <rmh@aybabtu.com>
6125 Fix build on powerpc-ieee1275. Based on patch created by
6126 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
6127 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
6128 `kern/ieee1275/mmap.c'.
6129 * include/grub/powerpc/ieee1275/memory.h: New file.
6131 Provide grub-install on coreboot.
6132 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
6133 (grub_install_SOURCES): New variable.
6134 * util/i386/pc/grub-install.in: Add a few condition checks to make it
6137 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
6139 * util/grub-fstest.c (grub_term_get_current_input): Change return type
6140 to `grub_term_input_t'.
6141 (grub_term_get_current_output): Change return type to
6142 `grub_term_output_t'.
6144 2008-11-22 Robert Millan <rmh@aybabtu.com>
6146 Fix breakage on coreboot due to declaration mismatch.
6147 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
6148 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
6149 grub_vga_text_cls().
6151 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
6152 comments. Avoid copying one more byte than necessary (just in case).
6154 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
6155 to 0x200000 (avoids trouble with some OFW implementations, and matches
6156 with the one in Yaboot).
6157 Reported by Manoel Abranches
6159 2008-11-20 Robert Millan <rmh@aybabtu.com>
6161 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
6162 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
6164 * util/grub-mkconfig_lib.in (grub_warn): New function.
6165 (convert_system_path_to_grub_path): Use grub_warn() when issuing
6166 warnings, to obtain consistent formatting.
6167 * util/grub.d/00_header.in: Likewise.
6168 * util/update-grub_lib.in: Likewise.
6170 * loader/i386/linux.c (allocate_pages): Fix a warning.
6171 Move comment text to `#error' stanza.
6173 Harmonize ieee1275's grub_available_iterate() with the generic
6174 grub_machine_mmap_iterate() interface (fixes a recently-introduced
6175 build problem on i386-ieee1275):
6176 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
6177 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
6178 parameter `type'. Update all users of this function.
6179 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
6180 `kern/ieee1275/mmap.c'.
6181 * kern/ieee1275/init.c
6182 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
6184 (grub_machine_mmap_iterate): ... this.
6185 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
6186 return type to `grub_err_t'. Update all implementations of this
6188 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
6191 Add `lsmmap' command (lists firmware-provided memory map):
6192 * commands/lsmmap.c: New file.
6193 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
6194 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
6196 * conf/powerpc-ieee1275.rmk: Likewise.
6197 * conf/i386-coreboot.rmk: Likewise.
6198 * conf/i386-ieee1275.rmk: Likewise.
6200 2008-11-19 Robert Millan <rmh@aybabtu.com>
6202 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
6203 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
6204 constraints to initrd allocation (based on code from
6205 loader/i386/pc/linux.c). Without them, initrd was allocated too high
6206 for Linux to find it.
6208 2008-11-14 Robert Millan <rmh@aybabtu.com>
6210 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
6211 order to cope with duplicate slashes.
6213 2008-11-14 Robert Millan <rmh@aybabtu.com>
6215 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
6216 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
6217 don't want to mess with lower memory, because it is used in the Linux
6220 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
6221 an appropriate place in lower memory, between 0x10000 and 0x90000,
6222 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
6223 is in our heap (probably as a result of it being corrupted during
6224 decompression). Add #error instance with comment to explain why this
6225 loader isn't currently usable on PC/BIOS.
6227 2008-11-14 Robert Millan <rmh@aybabtu.com>
6229 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
6230 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
6232 2008-11-12 Robert Millan <rmh@aybabtu.com>
6234 Make loader/i386/linux.c buildable on i386-pc (although disabled).
6236 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
6237 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
6239 * include/grub/i386/pc/memory.h: ... to here.
6241 2008-11-12 Robert Millan <rmh@aybabtu.com>
6243 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
6246 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
6247 (grub_console_cur_color, grub_console_real_putchar)
6248 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
6249 (grub_console_setcolorstate, grub_console_setcolor)
6250 (grub_console_getcolor): Move from here ...
6251 * include/grub/i386/vga_common.h: ... to here (new file).
6253 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
6254 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
6256 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
6257 `<grub/i386/vga_common.h>'.
6259 2008-11-12 Robert Millan <rmh@aybabtu.com>
6261 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
6262 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
6263 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
6265 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
6266 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
6268 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
6269 grub_console_init() with call to grub_vga_text_init().
6270 (grub_machine_fini): Replace call to
6271 grub_console_fini() with call to grub_vga_text_fini() and
6272 grub_at_keyboard_fini().
6274 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
6275 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
6276 (grub_console_setcolorstate, grub_console_setcolor)
6277 (grub_console_getcolor): New function prototypes.
6279 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
6280 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
6281 (grub_vga_text_setcursor): Static-ize.
6282 (grub_vga_text_term): New structure.
6283 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
6285 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
6286 (grub_console_cur_color, grub_console_standard_color)
6287 (grub_console_normal_color, grub_console_highlight_color)
6288 (map_char, grub_console_putchar, grub_console_getcharwidth)
6289 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
6290 (grub_console_getcolor): Move from here ...
6291 * term/i386/vga_common.c: ... to here (same function names).
6293 2008-11-12 Robert Millan <rmh@aybabtu.com>
6295 Use newly-added Multiboot support in coreboot.
6297 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
6298 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
6300 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
6301 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
6302 (codestart): Store the MBI in `startup_multiboot_info' when we're
6303 being loaded using Multiboot.
6305 * kern/i386/coreboot/init.c (grub_machine_init): Move
6306 grub_at_keyboard_init() call to beginning of function (useful for
6307 debugging). Call grub_machine_mmap_init() before attempting to use
6308 grub_machine_mmap_iterate().
6309 (grub_lower_mem, grub_upper_mem): Move from here ...
6310 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
6313 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
6316 2008-11-12 Robert Millan <rmh@aybabtu.com>
6318 Fix a regression introduced by the at_keyboard.mod split. Because
6319 some terminals are default on some platforms and non-default on
6320 others, the first terminal being registered determines which is
6321 going to be default.
6323 * kern/term.c (grub_term_register_input): If this is the first
6324 terminal being registered, set it as the current one.
6325 (grub_term_register_output): Likewise.
6327 * term/efi/console.c (grub_console_init): Do not call
6328 grub_term_set_current_output() or grub_term_set_current_input().
6329 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
6330 * term/i386/pc/console.c (grub_console_init): Likewise.
6331 (grub_console_fini): Do not call grub_term_set_current_input()
6332 (but leave grub_term_set_current_output() to restore text mode).
6334 2008-11-10 Robert Millan <rmh@aybabtu.com>
6336 * util/grub.d/00_header.in: Add backward compatibility check for
6337 versions of terminal.mod that don't understand `terminal_input' or
6340 2008-11-09 Robert Millan <rmh@aybabtu.com>
6342 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
6343 `terminal_input' / `terminal_output', not `terminal'.
6345 2008-11-08 Robert Millan <rmh@aybabtu.com>
6347 * Makefile.in (include_DATA): Fix srcdir=. assumption.
6348 (DISTCLEANFILES): Add `build_env.mk'.
6350 2008-11-08 Robert Millan <rmh@aybabtu.com>
6352 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
6353 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
6354 members. Update all users.
6355 * util/console.c (grub_ncurses_term): Split in ...
6356 (grub_ncurses_term_input): ... this, and ...
6357 (grub_ncurses_term_output): ... this. Update all users.
6358 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
6360 2008-11-08 Robert Millan <rmh@aybabtu.com>
6362 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
6363 (PKGDATA): Add $(pkgdata_SRCDIR).
6364 (pkglib_BUILDDIR): New variable.
6365 (pkgdata_SRCDIR): New variable.
6366 (build_env.mk): New target.
6367 (include_DATA): New variable.
6368 (install-local): Install $(include_DATA) files in $(includedir).
6370 2008-11-07 Pavel Roskin <proski@gnu.org>
6372 * gendistlist.sh: Use C locale for sorting to ensure consistent
6373 output on all systems.
6375 * util/grub.d/00_header.in: Remove incorrect space before
6378 2008-11-07 Robert Millan <rmh@aybabtu.com>
6380 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
6382 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
6383 * loader/multiboot_loader.c (find_multi_boot2_header): New function
6384 (based on find_multi_boot1_header).
6385 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
6386 using find_multi_boot2_header(), and abort if neither Multiboot or
6387 Multiboot headers were found.
6389 2008-11-07 Robert Millan <rmh@aybabtu.com>
6391 Modularize at_keyboard.mod:
6393 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
6394 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
6395 (at_keyboard_mod_LDFLAGS): New variables.
6397 Actual terminal split:
6399 * include/grub/term.h (struct grub_term): Split in ...
6400 (struct grub_term_input): ... this, and ...
6401 (struct grub_term_output): ... this. Update all users.
6402 (grub_term_set_current): Split in ...
6403 (grub_term_set_current_input): ... this, and ...
6404 (grub_term_set_current_output): ... this.
6405 (grub_term_get_current): Split in ...
6406 (grub_term_get_current_input): ... this, and ...
6407 (grub_term_get_current_output): ... this.
6408 (grub_term_register): Split in ...
6409 (grub_term_register_input): ... this, and ...
6410 (grub_term_register_output): ... this.
6411 (grub_term_unregister): Split in ...
6412 (grub_term_unregister_input): ... this, and ...
6413 (grub_term_unregister_output): ... this.
6414 (grub_term_iterate): Split in ...
6415 (grub_term_iterate_input): ... this, and ...
6416 (grub_term_iterate_output): ... this.
6418 * kern/term.c (grub_term_list): Split in ...
6419 (grub_term_list_input): ... this, and ...
6420 (grub_term_list_output): ... this. Update all users.
6421 (grub_cur_term): Split in ...
6422 (grub_cur_term_input): ... this, and ...
6423 (grub_cur_term_output): ... this. Update all users.
6424 (grub_term_set_current): Split in ...
6425 (grub_term_set_current_input): ... this, and ...
6426 (grub_term_set_current_output): ... this.
6427 (grub_term_get_current): Split in ...
6428 (grub_term_get_current_input): ... this, and ...
6429 (grub_term_get_current_output): ... this.
6430 (grub_term_register): Split in ...
6431 (grub_term_register_input): ... this, and ...
6432 (grub_term_register_output): ... this.
6433 (grub_term_unregister): Split in ...
6434 (grub_term_unregister_input): ... this, and ...
6435 (grub_term_unregister_output): ... this.
6436 (grub_term_iterate): Split in ...
6437 (grub_term_iterate_input): ... this, and ...
6438 (grub_term_iterate_output): ... this.
6440 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
6441 a check for input and one for output (and only attempt to get keys
6442 from user when input works).
6444 * util/grub-probe.c (grub_term_get_current): Split in ...
6445 (grub_term_get_current_input): ... this, and ...
6446 (grub_term_get_current_output): ... this.
6447 * util/grub-fstest.c: Likewise.
6448 * util/i386/pc/grub-setup.c: Likewise.
6449 * util/grub-editenv.c: Likewise.
6451 Portability adjustments:
6453 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
6454 `term/i386/pc/at_keyboard.c'.
6455 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
6456 grub_keyboard_controller_init() (now handled by terminal .init).
6457 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
6458 grub_at_keyboard_init().
6459 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
6460 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
6461 at_keyboard.mod via input terminal interface).
6462 * include/grub/i386/coreboot/console.h: Convert into a stub for
6463 `<grub/i386/pc/console.h>'.
6465 Migrate full terminals to new API:
6467 * term/efi/console.c (grub_console_term): Split into ...
6468 (grub_console_term_input): ... this, and ...
6469 (grub_console_term_output): ... this. Update all users.
6470 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
6471 (grub_ofconsole_init): Split into ...
6472 (grub_ofconsole_init_input): ... this, and ...
6473 (grub_ofconsole_init_output): ... this.
6474 (grub_ofconsole_term): Split into ...
6475 (grub_ofconsole_term_input): ... this, and ...
6476 (grub_ofconsole_term_output): ... this. Update all users.
6477 * term/i386/pc/serial.c (grub_serial_term): Split into ...
6478 (grub_serial_term_input): ... this, and ...
6479 (grub_serial_term_output): ... this. Update all users.
6480 * term/i386/pc/console.c (grub_console_term): Split into ...
6481 (grub_console_term_input): ... this, and ...
6482 (grub_console_term_output): ... this. Update all users.
6483 (grub_console_term_input): Only enable it on PC/BIOS platform.
6484 (grub_console_init): Remove grub_keyboard_controller_init() call.
6486 Migrate input terminals to new API:
6488 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
6489 `i386' and `i386/pc' to enable build on x86_64 (this driver is
6490 i386-specific anyway).
6491 (grub_console_checkkey): Rename to ...
6492 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
6494 (grub_keyboard_controller_orig): New variable.
6495 (grub_console_getkey): Rename to ...
6496 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
6498 (grub_keyboard_controller_init): Static-ize. Save original
6499 controller value so that it can be restored ...
6500 (grub_keyboard_controller_fini): ... here (new function).
6501 (grub_at_keyboard_term): New structure.
6502 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
6505 Migrate output terminals to new API:
6507 * term/i386/pc/vga.c (grub_vga_term): Change type to
6508 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
6509 members. Update all users.
6510 * term/gfxterm.c (grub_video_term): Change type to
6511 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
6512 members. Update all users.
6513 * include/grub/i386/pc/console.h (grub_console_checkkey)
6514 (grub_console_getkey): Do not export (no longer needed by gfxterm,
6517 Migrate `terminal' command and userland tools to new API:
6519 * commands/terminal.c (grub_cmd_terminal): Split into ...
6520 (grub_cmd_terminal_input): ... this, and ...
6521 (grub_cmd_terminal_output): ... this.
6522 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
6523 `terminal_input' and `terminal_output'.
6524 * util/grub.d/00_header.in: Adjust `terminal' calls to new
6525 `terminal_input' / `terminal_output' API.
6526 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
6527 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
6528 provided ${GRUB_TERMINAL}, convert it).
6530 2008-11-04 Robert Millan <rmh@aybabtu.com>
6532 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
6534 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
6536 2008-11-03 Bean <bean123ch@gmail.com>
6538 * kern/elf.c (grub_elf32_load): Revert to previous code.
6539 (grub_elf64_load): Likewise.
6541 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
6543 2008-11-01 Robert Millan <rmh@aybabtu.com>
6545 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
6546 (TARGET_CPPFLAGS): Likewise.
6547 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
6549 2008-11-01 Carles Pina i Estany <carles@pina.cat>
6551 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
6553 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
6555 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
6556 addition of objects until the code is not going to be able to fail.
6558 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
6560 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
6561 (add a missing NULL check, and correct them by moving the pointer
6562 operations after the actual check).
6564 2008-10-29 Robert Millan <rmh@aybabtu.com>
6566 * util/i386/pc/grub-install.in: Handle empty string as output from
6567 make_system_path_relative_to_its_root().
6569 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
6571 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
6572 circular metadata worst case scenario. If the metadata is circular
6573 then copy the wrap in place.
6574 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
6575 project lib/format_text/layout.h
6576 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
6578 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
6580 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
6582 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
6584 * util/update-grub_lib.in: Mention filename in warning message.
6586 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
6588 * NEWS: Update for rename of update-grub to grub-mkconfig.
6590 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
6592 * util/update-grub_lib.in: Copy to ...
6593 * util/grub-mkconfig_lib.in: ... this. Update all users.
6594 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
6595 * util/update-grub.in: Rename to ...
6596 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
6597 option. Add `--output' option to allow users to specify the generated
6598 configuration file. Default to stdout.
6599 (update_grub_dir): Rename to ...
6600 (grub_mkconfig_dir): ... this.
6601 (grub_cfg): Default to an empty string.
6602 * conf/common.rmk (update-grub): Rename to ...
6603 (grub-mkconfig): ... this.
6604 (update-grub_lib): Copy to ...
6605 (grub-mkconfig_lib): ... this.
6606 (update-grub_SCRIPTS): Copy to ...
6607 (grub-mkconfig_SCRIPTS): ... this. Update all users.
6608 (update-grub_DATA): Rename to ...
6609 (grub-mkconfig_DATA): ... this.
6611 2008-09-28 Robert Millan <rmh@aybabtu.com>
6613 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
6614 to `modified'. Add the real `created' field.
6615 (grub_iso9660_uuid): Use `modified' rather than `created' for
6616 constructing the UUID.
6618 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
6620 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
6621 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
6623 2008-09-28 Bean <bean123ch@gmail.com>
6625 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
6626 Thanks to Christian Franke for finding this bug.
6628 2008-09-25 Robert Millan <rmh@aybabtu.com>
6630 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
6631 instances of grub_util_get_disk_name() (see previous commit).
6633 2008-09-25 Robert Millan <rmh@aybabtu.com>
6635 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
6636 `util/i386/get_disk_name.c'.
6637 * conf/i386-efi.rmk: Likewise.
6638 * conf/x86_64-efi.rmk: Likewise.
6639 * conf/i386-coreboot.rmk: Likewise.
6640 * conf/i386-ieee1275.rmk: Likewise.
6641 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
6642 `util/ieee1275/get_disk_name.c'.
6643 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
6644 * util/ieee1275/get_disk_name.c: Remove file.
6645 * util/i386/get_disk_name.c: Remove file.
6646 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
6647 "hd%d" for device.map entries, rather than using
6648 grub_util_get_disk_name().
6650 2008-09-24 Carles Pina i Estany <carles@pina.cat>
6652 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
6654 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
6656 2008-09-24 Carles Pina i Estany <carles@pina.cat>
6658 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
6660 (GRUB_TERM_PPAGE): Changed to 0x4900.
6662 2008-09-24 Robert Millan <rmh@aybabtu.com>
6664 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
6665 macros (they were i386-pc specific).
6666 * include/grub/sparc64/ieee1275/console.h: Likewise.
6667 * include/grub/efi/console.h: Likewise.
6669 2008-09-22 Bean <bean123ch@gmail.com>
6671 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
6672 resident and in attribute list.
6674 * include/grub/ntfs.h (BMP_LEN): Removed.
6676 2008-09-22 Bean <bean123ch@gmail.com>
6678 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
6679 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
6681 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
6682 error occurs, as grub_disk_open will call grub_disk_close, which will
6683 call p->close (scsi).
6685 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
6687 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
6688 (AC_PREREQ): Bumped to 2.59.
6689 (AC_TRY_COMPILE): Replace obsolete macro with ...
6690 (AC_COMPILE_IFELSE): ... this.
6691 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
6692 (AC_LINK_IFELSE): ... this.
6694 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
6696 * autogen.sh: Add a call to `gendistlist.sh'.
6698 2008-09-19 Christian Franke <franke@computer.org>
6700 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
6701 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
6702 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
6703 Export __enable_execute_stack() to modules.
6704 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
6707 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
6709 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
6712 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
6714 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
6715 #include <grub/util/hostdisk.h>.
6717 2008-09-08 Robert Millan <rmh@aybabtu.com>
6719 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
6720 segments when their filesz is zero (grub_file_read() interprets
6721 zero-size as "read until EOF", which results in memory corruption).
6722 Use `lowest_segment' rather than 0 for calculating the current
6723 segment load address.
6725 2008-09-08 Robert Millan <rmh@aybabtu.com>
6727 * util/hostdisk.c (open_device): Replace a grub_util_info() call
6728 with grub_dprintf("hostdisk", ...), as it was so verbose that it
6729 clobbered useful information.
6731 2008-09-08 Robert Millan <rmh@aybabtu.com>
6733 * include/grub/util/biosdisk.h: Move to ...
6734 * include/grub/util/hostdisk.h: ... here. Update all users.
6735 * util/biosdisk.c: Move to ...
6736 * util/hostdisk.c: ... here. Update all users.
6738 2008-09-07 Robert Millan <rmh@aybabtu.com>
6740 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
6742 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
6743 and length can be stored directly in the `mbi->mmap_addr' and
6744 `mbi->mmap_length' struct fields.
6746 2008-09-07 Robert Millan <rmh@aybabtu.com>
6748 * conf/i386.rmk: New file. Provides declaration for building
6750 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
6751 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
6753 Include `conf/i386.mk'.
6754 * conf/i386-efi.rmk: Likewise.
6755 * conf/x86_64-efi.rmk: Likewise.
6756 * conf/i386-coreboot.rmk: Likewise.
6757 * conf/i386-ieee1275.rmk: Likewise.
6759 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
6761 Based on patch created by Colin D Bennett <colin@gibibit.com>.
6762 Adds optimization support for BGR based modes.
6764 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
6765 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
6766 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
6767 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
6768 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
6769 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
6770 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
6771 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
6772 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
6773 (grub_video_i386_vbeblit_index_index): Likewise.
6774 (grub_video_i386_vbeblit_replace_directN): Added.
6775 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
6776 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
6777 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
6778 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
6779 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
6780 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
6781 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
6782 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
6783 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
6784 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
6785 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
6786 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
6787 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
6789 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
6790 (grub_video_i386_vbefill_R8G8B8): Likewise.
6791 (grub_video_i386_vbefill_index): Likewise.
6792 (grub_video_i386_vbefill_direct32): Added.
6793 (grub_video_i386_vbefill_direct24): Likewise.
6794 (grub_video_i386_vbefill_direct16): Likewise.
6795 (grub_video_i386_vbefill_direct8): Likewise.
6797 * include/grub/video.h (grub_video_blit_format): Removed
6798 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
6799 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
6800 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
6801 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
6802 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
6804 * video/video.c (grub_video_get_blit_format): Updated to use new
6805 blit formats. Added handling for 16 bit color modes.
6807 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
6809 (common_blitter): Updated to use new blitters.
6811 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
6813 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
6814 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
6815 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
6816 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
6817 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
6818 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
6819 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
6820 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
6821 (grub_video_i386_vbeblit_index_index): Likewise.
6822 (grub_video_i386_vbeblit_replace_directN): Added.
6823 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
6824 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
6825 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
6826 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
6827 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
6828 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
6829 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
6830 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
6831 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
6832 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
6833 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
6834 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
6835 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
6837 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
6838 (grub_video_i386_vbefill_R8G8B8): Likewise.
6839 (grub_video_i386_vbefill_index): Likewise.
6840 (grub_video_i386_vbefill_direct32): Added.
6841 (grub_video_i386_vbefill_direct24): Likewise.
6842 (grub_video_i386_vbefill_direct16): Likewise.
6843 (grub_video_i386_vbefill_direct8): Likewise.
6845 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
6848 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
6851 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
6854 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
6857 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
6859 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
6862 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
6864 * fs/iso9660.c (grub_iso9660_date): New structure.
6865 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
6866 (grub_iso9660_uuid): New function.
6868 2008-09-05 Bean <bean123ch@gmail.com>
6870 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
6872 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
6873 insensitive bit for names in Win32 and Win32 & DOS namespace.
6875 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
6877 * include/grub/types.h (LONG_MAX): Likewise.
6879 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
6881 * util/getroot.c: Include <config.h>.
6882 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
6883 add support for /dev/md/N devices and handle LVM double dash escaping.
6885 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
6887 * config.guess: Update to latest version from config git.
6888 * config.sub: Likewise.
6890 2008-09-03 Robert Millan <rmh@aybabtu.com>
6892 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
6893 `disk->total_sectors'.
6895 2008-09-01 Colin D Bennett <colin@gibibit.com>
6897 * include/grub/normal.h: Fixed incorrect comment for
6898 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
6900 2008-09-01 Colin D Bennett <colin@gibibit.com>
6902 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
6903 values with defines.
6905 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
6906 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
6907 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
6908 (GRUB_VBE_MODEATTR_COLOR): Likewise.
6909 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
6910 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
6911 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
6912 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
6913 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
6914 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
6915 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
6916 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
6917 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
6918 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
6919 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
6920 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
6921 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
6922 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
6923 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
6925 2008-08-31 Robert Millan <rmh@aybabtu.com>
6927 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
6929 (grub_multiboot): Fix a few warnings.
6931 2008-08-31 Robert Millan <rmh@aybabtu.com>
6933 * loader/i386/pc/multiboot.c: Update comment not to say that
6934 boot_device support is unimplemented.
6936 2008-08-31 Robert Millan <rmh@aybabtu.com>
6938 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
6939 or memory map support are unimplemented.
6941 2008-08-31 Colin D Bennett <colin@gibibit.com>
6943 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
6945 2008-08-31 Colin D Bennett <colin@gibibit.com>
6947 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
6948 total video memory in 'vbeinfo' output; show color format details for
6951 2008-08-30 Pavel Roskin <proski@gnu.org>
6953 * util/genmoddep.c: Remove for real this time.
6954 * DISTLIST: Remove util/genmoddep.c.
6956 2008-08-30 Robert Millan <rmh@aybabtu.com>
6958 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
6959 as required by Multiboot spec (it was already 4-byte aligned, but
6962 2008-08-29 Pavel Roskin <proski@gnu.org>
6964 * kern/powerpc/ieee1275/crt0.S: Rename to ...
6965 * kern/powerpc/ieee1275/startup.S: ... this.
6966 * conf/powerpc-ieee1275.rmk: Adjust for the above.
6967 * DISTLIST: Likewise.
6969 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
6970 grub/cpu/kernel.h. Add start label for consistency with other
6971 platforms. Add grub_prefix immediately after start. Add jump
6972 to the code after grub_prefix.
6973 * include/grub/powerpc/kernel.h: Provide valid values for
6974 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
6976 2008-08-29 Bean <bean123ch@gmail.com>
6978 * configure.ac: Change host_os to cygwin for mingw.
6979 (asprintf): New check for function.
6981 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
6982 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
6984 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
6985 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6986 sync, sleep and grub_util_get_disk_size for mingw.
6988 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
6989 to get size in mingw.
6990 (open_device): Use flag O_BINARY if it's defined.
6991 (find_root_device): Add dummy code for mingw.
6993 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
6994 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
6995 (get_scsi_disk_name): Return 0 for mingw.
6997 * util/hostfs.c: #include <grub/util/misc.h>.
6998 (grub_hostfs_open): Use "rb" flag to open file, use
6999 grub_util_get_disk_size to get disk size for mingw.
7001 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
7002 (asprintf): New function if HAVE_ASPRINTF is not set.
7003 (sync): New function for mingw.
7005 (grub_util_get_disk_size): Likewise.
7007 2008-08-28 Pavel Roskin <proski@gnu.org>
7009 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
7012 2008-08-28 Robert Millan <rmh@aybabtu.com>
7014 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
7016 2008-08-28 Robert Millan <rmh@aybabtu.com>
7018 Change find_grub_drive() syntax so it doesn't prevent it from
7019 detecting NULL names as errors.
7021 * util/biosdisk.c (find_grub_drive): Move free slot search code
7023 (find_free_slot): ... to here.
7024 (read_device_map): Use find_free_slot() to search for free slots.
7026 2008-08-27 Marco Gerards <marco@gnu.org>
7028 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
7029 (scsi_mod_SOURCES): New variable.
7030 (scsi_mod_CFLAGS): Likewise
7031 (scsi_mod_LDFLAGS): Likewise.
7033 * disk/scsi.c: New file.
7035 * include/grub/scsi.h: Likewise.
7037 * include/grub/scsicmd.h: Likewise.
7039 * disk/ata.c: Include <grub/scsi.h>.
7040 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
7042 (grub_ata_iterate): Skip ATAPI devices.
7043 (grub_ata_open): Only handle ATAPI devices.
7044 (struct grub_atapi_read): Removed.
7045 (grub_atapi_readsector): Likewise.
7046 (grub_ata_read): No longer handle ATAPI devices.
7047 (grub_ata_write): Likewise.
7048 (grub_atapi_iterate): New function.
7049 (grub_atapi_read): Likewise.
7050 (grub_atapi_write): Likewise.
7051 (grub_atapi_open): Likewise.
7052 (grub_atapi_close): Likewise.
7053 (grub_atapi_dev): New variable.
7054 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
7055 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
7057 * include/grub/disk.h (enum grub_disk_dev_id): Add
7058 `GRUB_DISK_DEVICE_SCSI_ID'.
7060 2008-08-26 Robert Millan <rmh@aybabtu.com>
7062 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
7063 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
7066 2008-08-23 Bean <bean123ch@gmail.com>
7068 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
7069 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
7070 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
7071 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
7073 (raid5rec_mod_SOURCES): New macro.
7074 (raid5rec_mod_CFLAGS): Likewise.
7075 (raid5rec_mod_LDFLAGS): Likewise.
7076 (raid6rec_mod_SOURCES): Likewise.
7077 (raid6rec_mod_CFLAGS): Likewise.
7078 (raid6rec_mod_LDFLAGS): Likewise.
7079 (mdraid_mod_SOURCES): Likewise.
7080 (mdraid_mod_CFLAGS): Likewise.
7081 (mdraid_mod_LDFLAGS): Likewise.
7082 (dm_nv_mod_SOURCES): Likewise.
7083 (dm_nv_mod_CFLAGS): Likewise.
7084 (dm_nv_mod_LDFLAGS): Likewise.
7086 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
7087 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
7088 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
7090 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
7091 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
7093 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7095 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7097 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7099 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7101 * disk/raid5_recover.c: New file.
7103 * disk/raid6_recover.c: Likewise.
7105 * disk/mdraid_linux.c: Likewise.
7107 * disk/dmraid_nvidia.c: Likewise.
7109 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
7112 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
7113 calculate the size of raid device.
7114 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
7115 different layout of raid5.
7116 (grub_raid_scan_device): Remove code specific to mdraid.
7117 (grub_raid_list): New variable.
7118 (free_array): New function.
7119 (grub_raid_register): Likewise.
7120 (grub_raid_unregister): Likewise.
7121 (grub_raid_rescan): Likewise.
7122 (GRUB_MOD_INIT): Don't iterate device here.
7123 (GRUB_MOD_FINI): Use free_array to release resource.
7125 * include/grub/raid.h: Remove macro and structure specific to mdraid.
7126 (grub_raid5_recover_func_t): New function variable type.
7127 (grub_raid6_recover_func_t): Likewise.
7128 (grub_raid5_recover_func): New variable.
7129 (grub_raid6_recover_func): Likewise.
7130 (grub_raid_register): New function.
7131 (grub_raid_unregister): Likewise.
7132 (grub_raid_rescan): Likewise.
7133 (grub_raid_block_xor): Likewise.
7135 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
7136 (CMD_CRC): New macro.
7138 (read_file): Handle device as well as file.
7139 (cmd_crc): New function.
7140 (fstest): Handle multiple disks.
7141 (options): Remove part, raw and long, add root and diskcount.
7142 (usage): Add crc, remove -p, -r, -l, add -r and -c.
7143 (main): Find the first non option entry and ignore subsequent options,
7144 add handling for the new options, support multiple disks.
7146 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
7148 2008-08-23 Bean <bean123ch@gmail.com>
7150 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
7152 * genfslist.sh: Ignore kernel.mod.
7154 * genpartmaplist.sh: Likewise.
7156 2008-08-23 Robert Millan <rmh@aybabtu.com>
7158 * util/getroot.c (find_root_device): Skip anything that starts with
7159 a dot, not just directories. This avoids things like /dev/.tmp.md0.
7161 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
7163 * util/update-grub.in (GRUB_GFXMODE): Export variable.
7164 * util/grub.d/00_header.in: Allow the administrator to change default
7165 gfxmode via ${GRUB_GFXMODE}.
7167 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
7169 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
7171 2008-08-21 Robert Millan <rmh@aybabtu.com>
7173 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
7175 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
7176 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
7178 2008-08-20 Carles Pina i Estany <carles@pina.cat>
7180 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
7181 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
7183 2008-08-19 Robert Millan <rmh@aybabtu.com>
7185 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
7186 (struct grub_virtual_screen): Remove `cursor_color'.
7187 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
7189 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
7191 2008-08-18 Robert Millan <rmh@aybabtu.com>
7193 Unify (identical) linux_normal.c files.
7194 * loader/i386/efi/linux_normal.c: Move from here ...
7195 * loader/linux_normal.c: ... to here. Update all users.
7196 * loader/i386/pc/linux_normal.c: Delete. Update all users.
7197 * loader/i386/ieee1275/linux_normal.c: Likewise.
7199 2008-08-18 Robert Millan <rmh@aybabtu.com>
7201 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
7202 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
7203 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
7204 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
7205 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
7207 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
7208 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
7209 (GRUB_LINUX_CL_END_OFFSET): ... to here.
7210 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
7211 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
7212 (GRUB_EFI_CL_END_OFFSET): Rename to ...
7213 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
7214 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
7215 Initialize `params->video_cursor_x' and `params->video_cursor_y'
7216 portably using grub_getxy().
7217 Replace `-EFI' with `-bzImage' in boot message.
7219 2008-08-17 Robert Millan <rmh@aybabtu.com>
7221 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
7223 2008-08-17 Robert Millan <rmh@aybabtu.com>
7225 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
7227 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
7228 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
7229 (grub_machine_mmap_iterate): New function declaration.
7230 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
7232 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
7235 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
7236 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
7237 Move e820 parsing from here ...
7238 * kern/i386/pc/mmap.c: New file.
7239 (grub_machine_mmap_iterate): ... to here.
7241 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
7242 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
7243 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
7244 (grub_available_iterate): Redeclare to return `void', and redeclare
7245 its hook to use grub_uint64_t as addr and size parameters, and rename
7247 (grub_machine_mmap_iterate): ... this. Update all users.
7249 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
7250 to make it more readable. Rename to ...
7251 (grub_machine_mmap_iterate): ... this.
7253 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
7254 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
7255 (grub_multiboot): Allocate an extra region after the payload, and fill
7256 it with a Multiboot memory map. Adjust a.out loader to calculate size
7257 with the extra space.
7258 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
7259 with the extra space.
7261 2008-08-17 Carles Pina i Estany <carles@pina.cat>
7263 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
7265 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
7267 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
7268 mdate-sh to the list `find' searches for.
7269 * DISTLIST: Regenerated.
7271 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
7273 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
7274 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
7275 genmoddep.awk, gensymlist.sh.in.
7276 (DISTDIRS): Add bus, docs, hook, lib.
7277 * DISTLIST: Regenerated.
7278 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
7280 2008-08-16 Robert Millan <rmh@aybabtu.com>
7282 * disk/raid.c (grub_raid_init): Handle/report errors set by
7283 grub_device_iterate().
7284 * disk/lvm.c (grub_lvm_init): Likewise.
7286 2008-08-15 Bean <bean123ch@gmail.com>
7288 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7290 (datetime_mod_SOURCES): New macro.
7291 (datetime_mod_CFLAGS): Likewise.
7292 (datetime_mod_LDFLAGS): Likewise.
7293 (date_mod_SOURCES): Likewise.
7294 (date_mod_CFLAGS): Likewise.
7295 (date_mod_LDFLAGS): Likewise.
7296 (datehook_mod_SOURCES): Likewise.
7297 (datehook_mod_CFLAGS): Likewise.
7298 (datehook_mod_LDFLAGS): Likewise.
7300 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7302 (datetime_mod_SOURCES): New macro.
7303 (datetime_mod_CFLAGS): Likewise.
7304 (datetime_mod_LDFLAGS): Likewise.
7305 (date_mod_SOURCES): Likewise.
7306 (date_mod_CFLAGS): Likewise.
7307 (date_mod_LDFLAGS): Likewise.
7308 (datehook_mod_SOURCES): Likewise.
7309 (datehook_mod_CFLAGS): Likewise.
7310 (datehook_mod_LDFLAGS): Likewise.
7312 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7314 (datetime_mod_SOURCES): New macro.
7315 (datetime_mod_CFLAGS): Likewise.
7316 (datetime_mod_LDFLAGS): Likewise.
7317 (date_mod_SOURCES): Likewise.
7318 (date_mod_CFLAGS): Likewise.
7319 (date_mod_LDFLAGS): Likewise.
7320 (datehook_mod_SOURCES): Likewise.
7321 (datehook_mod_CFLAGS): Likewise.
7322 (datehook_mod_LDFLAGS): Likewise.
7324 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7326 (datetime_mod_SOURCES): New macro.
7327 (datetime_mod_CFLAGS): Likewise.
7328 (datetime_mod_LDFLAGS): Likewise.
7329 (date_mod_SOURCES): Likewise.
7330 (date_mod_CFLAGS): Likewise.
7331 (date_mod_LDFLAGS): Likewise.
7332 (datehook_mod_SOURCES): Likewise.
7333 (datehook_mod_CFLAGS): Likewise.
7334 (datehook_mod_LDFLAGS): Likewise.
7336 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7338 (datetime_mod_SOURCES): New macro.
7339 (datetime_mod_CFLAGS): Likewise.
7340 (datetime_mod_LDFLAGS): Likewise.
7341 (date_mod_SOURCES): Likewise.
7342 (date_mod_CFLAGS): Likewise.
7343 (date_mod_LDFLAGS): Likewise.
7344 (datehook_mod_SOURCES): Likewise.
7345 (datehook_mod_CFLAGS): Likewise.
7346 (datehook_mod_LDFLAGS): Likewise.
7348 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
7350 * commands/date.c: New file.
7352 * hook/datehook.c: Likewise.
7354 * include/grub/lib/datetime.h: Likewise.
7356 * include/grub/i386/cmos.h: Likewise.
7358 * lib/datetime.c: Likewise.
7360 * lib/i386/datetime.c: Likewise.
7362 * lib/efi/datetime.c: Likewise.
7364 2008-08-14 Robert Millan <rmh@aybabtu.com>
7366 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
7367 (grub_mkelfimage_SOURCES): New variable.
7368 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
7370 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
7371 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
7372 * conf/powerpc-ieee1275.rmk: Likewise.
7373 * conf/i386-ieee1275.rmk: Likewise.
7375 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
7376 * kern/i386/coreboot/init.c: Likewise.
7378 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
7379 with `<grub/cpu/kernel.h>'.
7380 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
7382 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
7383 * kern/i386/coreboot/startup.S: Likewise.
7385 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
7386 (GRUB_MOD_GAP): Remove.
7387 * include/grub/powerpc/kernel.h: New file.
7388 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
7389 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
7390 * include/grub/i386/kernel.h: New file.
7391 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
7392 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
7393 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
7395 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
7397 Use --directory when invoking grub_mkimage.
7399 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
7400 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
7401 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
7402 and GRUB_KERNEL_CPU_PREFIX.
7404 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
7406 * include/grub/err.h (grub_err_printf): New function prototype.
7407 * util/misc.c (grub_err_printf): New function.
7408 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
7410 * kern/err.c (grub_print_error): Use grub_err_printf.
7412 2008-08-13 Robert Millan <rmh@aybabtu.com>
7414 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
7416 2008-08-13 Robert Millan <rmh@aybabtu.com>
7418 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
7421 2008-08-12 Robert Millan <rmh@aybabtu.com>
7423 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
7424 of the relocation code from here ...
7425 (grub_multiboot): ... to here.
7426 (forward_relocator, backward_relocator): Move from here ...
7427 * kern/i386/loader.S (grub_multiboot_forward_relocator)
7428 (grub_multiboot_backward_relocator): ... to here.
7429 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
7430 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
7431 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
7432 (grub_multiboot_forward_relocator_end)
7433 (grub_multiboot_backward_relocator)
7434 (grub_multiboot_backward_relocator_end): New variables.
7436 2008-08-12 Bean <bean123ch@gmail.com>
7438 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
7440 2008-08-11 Robert Millan <rmh@aybabtu.com>
7442 * kern/i386/linuxbios/startup.S: Move from here ...
7443 * kern/i386/coreboot/startup.S: ... to here.
7445 * kern/i386/linuxbios/init.c: Move from here ...
7446 * kern/i386/coreboot/init.c: ... to here.
7448 * kern/i386/linuxbios/table.c: Move from here ...
7449 * kern/i386/coreboot/mmap.c: ... to here.
7451 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
7453 2008-08-11 Robert Millan <rmh@aybabtu.com>
7455 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
7456 errors. Leave it to the upper layer to handle them.
7458 2008-08-09 Christian Franke <franke@computer.org>
7460 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
7461 * conf/common.rmk: Install `grub-pe2elf' only if requested.
7462 Install `grub.d/10_windows' only on Cygwin.
7463 * configure.ac: Add subst of `target_os'.
7464 Check `target_os' also before setting TARGET_OBJ2ELF.
7465 Add `--enable-grub-pe2elf'.
7467 2008-08-08 Robert Millan <rmh@aybabtu.com>
7469 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
7470 (grub_last_time): Change type to grub_uint64_t.
7471 (grub_disk_open): Migrate code from to using grub_get_time_ms().
7472 (grub_disk_close): Likewise.
7474 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
7475 (run_menu): Migrate code from to using grub_get_time_ms().
7477 * util/misc.c (grub_get_time_ms): New function.
7479 2008-08-08 Marco Gerards <marco@gnu.org>
7481 * disk/ata.c (grub_ata_regget): Change return type to
7483 (grub_ata_regget2): Likewise.
7484 (grub_ata_wait_status): New function.
7485 (grub_ata_wait_busy): Removed function, updated all users to use
7486 `grub_ata_wait_status'.
7487 (grub_ata_wait_drq): Likewise.
7488 (grub_ata_cmd): New function.
7489 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
7491 (grub_ata_pio_write): Add error handling.
7492 (grub_atapi_identify): Likewise.
7493 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
7495 (grub_ata_identify): Use `grub_ata_cmd' and improve error
7496 handling. Actually use the detected registers. Reorder the
7497 detection logic such that it is easier to read.
7498 (grub_ata_pciinit): Do not assign the same ID to each controller.
7499 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
7501 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
7503 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
7505 2008-08-08 Marco Gerards <marco@gnu.org>
7509 2008-08-07 Bean <bean123ch@gmail.com>
7511 * include/grub/x86_64/pci.h: New file.
7513 2008-08-07 Christian Franke <franke@computer.org>
7515 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
7516 (TIMER2_GATE): Likewise.
7517 (grub_pit_wait): Add enable/disable of the timer2 gate
7518 bit of port 0x61. This fixes a possible infinite loop.
7520 2008-08-07 Bean <bean123ch@gmail.com>
7522 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
7523 kern/i386/tsc.c and kern/i386/pit.c.
7525 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
7528 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
7531 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
7533 2008-08-07 Bean <bean123ch@gmail.com>
7535 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
7537 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
7539 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
7540 multiple inclusion. Add #include <grub/types.h>.
7542 2008-08-06 Christian Franke <franke@computer.org>
7544 * conf/common.rmk: Build and install `10_windows'.
7545 * util/grub.d/10_windows.in: New script.
7547 2008-08-06 Pavel Roskin <proski@gnu.org>
7549 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
7551 2008-08-06 Robert Millan <rmh@aybabtu.com>
7553 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
7554 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
7556 2008-08-06 Bean <bean123ch@gmail.com>
7558 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
7559 (grub_pxefs_fs_int): Remove dummy definition.
7560 (grub_pxefs_open): Use data->block_size to store the current block
7562 (grub_pxefs_read): Use block size stored in data->block_size. As the
7563 value of grub_pxe_blksize can be changed after the file is opened.
7565 2008-08-06 Bean <bean123ch@gmail.com>
7567 * fs/i386/pc/pxe.c (curr_file): new variable.
7568 (grub_pxefs_open): Simply the handling of pxe file system. Don't
7569 require the dummy internal file system anymore.
7570 (grub_pxefs_read): Removed.
7571 (grub_pxefs_close): Likewise.
7572 (grub_pxefs_fs_int): Likewise.
7573 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
7574 connection when we switch file.
7575 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
7577 2008-08-06 Robert Millan <rmh@aybabtu.com>
7579 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
7581 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
7582 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
7584 * kern/i386/halt.c: New file.
7585 * kern/i386/reboot.c: Likewise.
7586 * include/grub/i386/reboot.h: Likewise.
7587 * include/grub/i386/halt.h: Likewise.
7589 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
7590 Include `<grub/cpu/halt.h>'.
7591 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
7592 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
7594 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
7595 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
7596 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
7597 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
7598 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
7599 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
7601 * include/grub/i386/at_keyboard.h: ... to here.
7603 2008-08-05 Robert Millan <rmh@aybabtu.com>
7605 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
7606 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
7607 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
7608 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
7609 `kern/generic/millisleep.c'.
7611 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
7612 instead of grub_get_rtc().
7613 (grub_tsc_init): Initialize `tsc_boot_time'.
7615 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
7616 (grub_machine_init): Use grub_tsc_init() rather than
7617 installing an RTC-based handler via grub_install_get_time_ms().
7619 * kern/i386/pit.c: New file.
7620 * include/grub/i386/pit.h: Likewise.
7622 2008-08-05 Bean <bean123ch@gmail.com>
7624 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
7626 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
7627 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
7628 (pxe_mod_SOURCES): New macro.
7629 (pxe_mod_CFLAGS): Likewise.
7630 (pxe_mod_LDFLAGS): Likewise.
7631 (pxecmd_mod_SOURCES): Likewise.
7632 (pxecmd_mod_CFLAGS): Likewise.
7633 (pxecmd_mod_LDFLAGS): Likewise.
7635 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
7636 (grub_pxe_call): Likewise.
7638 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
7640 * commands/i386/pc/pxecmd.c: New file.
7642 * fs/i386/pc/pxe.c: Likewise.
7644 * include/grub/i386/pc/pxe.h: Likewise.
7646 2008-08-05 Bean <bean123ch@gmail.com>
7648 * util/console.c (grub_console_cur_color): New variable.
7649 (grub_console_standard_color): Likewise.
7650 (grub_console_normal_color): Likewise.
7651 (grub_console_highlight_color): Likewise.
7652 (color_map): Likewise.
7653 (use_color): Likewise.
7654 (NUM_COLORS): New macro.
7655 (grub_ncurses_setcolorstate): Handle color properly.
7656 (grub_ncurses_setcolor): Don't change color here, just remember the
7657 settings, color will be set in grub_ncurses_setcolorstate.
7658 (grub_ncurses_getcolor): New function.
7659 (grub_ncurses_init): Initialize color pairs.
7660 (grub_ncurses_term): New member grub_ncurses_getcolor.
7662 2008-08-05 Colin D Bennett <colin@gibibit.com>
7664 High resolution timer support. Implemented for x86 CPUs using TSC.
7665 Extracted generic grub_millisleep() so it's linked in only as needed.
7666 This requires a Pentium compatible CPU; if the RDTSC instruction is
7667 not supported, then it falls back on the generic grub_get_time_ms()
7668 implementation that uses the machine's RTC.
7670 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
7671 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
7672 `kern/generic/millisleep.c'.
7674 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
7675 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
7677 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
7678 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
7680 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
7682 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
7683 `kern/generic/millisleep.c'.
7685 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
7687 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
7689 * kern/generic/rtc_get_time_ms.c: New file.
7691 * kern/generic/millisleep.c: New file.
7693 * kern/misc.c: Don't include
7694 <kern/time.h> anymore.
7695 (grub_millisleep_generic): Removed.
7697 * commands/sleep.c (grub_interruptible_millisleep): Uses
7698 grub_get_time_ms() instead of grub_get_rtc().
7700 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
7702 (grub_cpu_is_cpuid_supported): New inline function.
7703 (grub_cpu_is_tsc_supported): New inline function.
7704 (grub_tsc_init): New function prototype.
7705 (grub_tsc_get_time_ms): New function prototype.
7707 * kern/i386/tsc.c (grub_get_time_ms): New file.
7709 * include/grub/time.h: Include <grub/types.h.
7710 (grub_millisleep_generic): Removed.
7711 (grub_get_time_ms): New prototype.
7712 (grub_install_get_time_ms): New prototype.
7713 (grub_rtc_get_time_ms): New prototype.
7715 * kern/time.c (grub_get_time_ms): New function.
7716 (grub_install_get_time_ms): New function.
7718 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
7719 <grub/time.h> anymore.
7720 (grub_millisleep): Removed.
7721 (grub_machine_init): Call grub_tsc_init.
7723 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
7724 get_time_ms() implementation.
7726 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
7727 (ieee1275_get_time_ms): New function.
7728 (grub_machine_init): Install get_time_ms() implementation.
7730 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
7731 (grub_machine_init): Call grub_tsc_init().
7732 (grub_millisleep): Removed.
7734 * kern/ieee1275/init.c (grub_millisleep): Removed.
7735 (grub_machine_init): Install ieee1275_get_time_ms()
7737 (ieee1275_get_time_ms): New function.
7738 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
7741 2008-08-05 Marco Gerards <marco@gnu.org>
7743 * disk/ata.c: Include <grub/pci.h>.
7744 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
7745 (grub_ata_initialize): Rewritten.
7746 (grub_ata_device_initialize): New function.
7748 2008-08-04 Pavel Roskin <proski@gnu.org>
7750 * kern/main.c: Include grub/mm.h.
7752 2008-08-04 Robert Millan <rmh@aybabtu.com>
7754 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
7755 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
7756 corruption problem).
7758 2008-08-04 Robert Millan <rmh@aybabtu.com>
7760 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
7761 warnings introduced in my last commit.
7763 2008-08-03 Robert Millan <rmh@aybabtu.com>
7765 Make PCI available on all i386 architectures.
7767 * include/grub/i386/pc/pci.h: Move from here ...
7768 * include/grub/i386/pci.h: ... to here.
7770 * include/grub/i386/pc/pci.h: Remove.
7771 * include/grub/i386/efi/pci.h: Remove.
7772 * include/grub/x86_64/efi/pci.h: Remove.
7774 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
7777 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
7778 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
7779 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
7781 * conf/i386-ieee1275.rmk: Likewise.
7783 2008-08-03 Robert Millan <rmh@aybabtu.com>
7785 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
7786 (grub_console_setcursor): Make it possible to set cursor off.
7788 2008-08-03 Robert Millan <rmh@aybabtu.com>
7790 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
7791 of modules instead of assuming which platform provides what.
7792 * util/update-grub.in: Likewise.
7794 2008-08-03 Robert Millan <rmh@aybabtu.com>
7796 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
7797 instead of `grub_install_dos_part' to determine whether a drive needs
7798 to be prepended to prefix (`grub_install_dos_part' is not reliable,
7799 because it can be overridden when loading GRUB via Multiboot).
7801 2008-08-02 Robert Millan <rmh@aybabtu.com>
7803 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
7805 2008-08-02 Robert Millan <rmh@aybabtu.com>
7807 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
7808 of informational grub_dprintf() calls.
7810 2008-08-02 Robert Millan <rmh@aybabtu.com>
7812 * disk/memdisk.c (memdisk_size): Don't initialize.
7813 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
7815 * include/grub/i386/pc/kernel.h
7816 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
7817 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
7818 (grub_memdisk_image_size, grub_arch_memdisk_addr)
7819 (grub_arch_memdisk_size): Remove.
7821 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
7822 field (was only used to transfer a constant). Add `type' field to
7823 support multiple module types.
7824 (grub_module_iterate): New function.
7826 * kern/device.c (grub_device_open): Do not hide error messages
7827 when grub_disk_open() fails. Use grub_print_error() instead.
7829 * kern/i386/pc/init.c (grub_arch_modules_addr)
7830 (grub_arch_memdisk_size): Remove functions.
7831 (grub_arch_modules_addr): Return the module address in high memory
7832 (now that it isn't copied anymore).
7834 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
7835 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
7836 decompression routine (grub_total_module_size already includes that
7837 now). Don't copy modules back to low memory.
7839 * kern/main.c: Include `<grub/mm.h>'.
7840 (grub_load_modules): Split out (and use) ...
7841 (grub_module_iterate): ... this function, which iterates through
7842 module objects and runs a hook.
7843 Comment out grub_mm_init_region() call, as it would cause non-ELF
7844 modules to be overwritten.
7846 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
7847 the memdisk image in its own region, make it part of the module list.
7848 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
7849 (main): Parse --memdisk|-m option, and pass user-provided path as
7850 parameter to generate_image().
7851 (add_segments): Pass `memdisk_path' down to load_modules().
7852 (load_modules): Embed memdisk image in module section when requested.
7853 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
7854 `header.type' instead of `header.offset'.
7856 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
7857 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
7858 (memdisk_mod_LDFLAGS): New variables.
7859 * conf/i386-coreboot.rmk: Likewise.
7860 * conf/i386-ieee1275.rmk: Likewise.
7862 2008-08-02 Robert Millan <rmh@aybabtu.com>
7864 * loader/i386/pc/multiboot.c (playground, forward_relocator)
7865 (backward_relocator): New variables. Used to allocate and relocate
7866 the payload, respectively.
7867 (grub_multiboot_load_elf32): Load into heap instead of requested
7868 address, install the appropriate relocator code in each bound of
7869 the payload, and set the entry point such that
7870 grub_multiboot_real_boot() will jump to one of them.
7872 * kern/i386/loader.S (grub_multiboot_payload_size)
7873 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
7874 (grub_multiboot_payload_entry_offset): New variables.
7875 (grub_multiboot_real_boot): Set cpu context to what the relocator
7876 expects, and jump to the relocator instead of the payload.
7878 * include/grub/i386/loader.h (grub_multiboot_payload_size)
7879 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
7880 (grub_multiboot_payload_entry_offset): Export.
7882 2008-08-01 Bean <bean123ch@gmail.com>
7884 * normal/menu_entry.c (editor_getline): Don't return the original
7885 string as result, as it will be released by lexer once it has done
7888 2008-08-01 Robert Millan <rmh@aybabtu.com>
7890 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
7891 within menuentries, not before them.
7892 util/grub.d/10_hurd.in: Likewise.
7894 2008-08-01 Bean <bean123ch@gmail.com>
7896 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
7897 (bufio_mod_SOURCES): New macro.
7898 (bufio_mod_CFLAGS): Likewise.
7899 (bufio_mod_LDFLAGS): Likewise.
7901 * include/grub/bufio.h: New file.
7903 * io/bufio.c: Likewise.
7905 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
7906 (grub_video_reader_png): Use grub_buffile_open to open file.
7908 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
7909 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
7911 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
7912 (grub_video_reader_tga): Use grub_buffile_open to open file.
7914 * font/manager.c: Include <grub/bufio.h>.
7915 (add_font): Use grub_buffile_open to open file.
7917 2008-07-31 Robert Millan <rmh@aybabtu.com>
7919 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
7920 ELF segments, use a macro for arbitrarily accessing any of them instead
7921 of preparing a pointer that allows access to one at a time.
7922 (grub_multiboot_load_elf64): Likewise.
7924 2008-07-31 Bean <bean123ch@gmail.com>
7926 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
7927 GRUB_KERNEL_MACHINE_DATA_END.
7929 2008-07-30 Robert Millan <rmh@aybabtu.com>
7931 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
7932 Increase from 0x50 to 0x60.
7933 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
7934 use UUIDs to identify the root drive for them. If that's not
7936 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
7937 check, for cross-disk installs.
7939 2008-07-30 Robert Millan <rmh@aybabtu.com>
7941 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
7942 is non-empty, use it to set the `prefix' environment variable instead
7943 of the usual approach.
7944 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
7945 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
7946 environment variable instead of dummy make_install_device().
7948 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
7949 (start): Insert a data section, with `grub_prefix' variable.
7950 * kern/i386/linuxbios/startup.S: Likewise.
7952 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
7953 New variable reference.
7954 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
7955 New macro. Defines offset of `grub_prefix' within startup.S (relative
7957 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
7958 section within startup.S (relative to `start').
7959 * include/grub/i386/coreboot/kernel.h: Likewise.
7961 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
7962 Overwrite grub_prefix with its contents, at the beginning of the
7964 (main): Understand -p|--prefix.
7966 2008-07-30 Robert Millan <rmh@aybabtu.com>
7968 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
7970 2008-07-30 Robert Millan <rmh@aybabtu.com>
7972 * term/i386/pc/vga_text.c (grub_console_cls): Use
7973 grub_console_gotoxy() to go back to beginning of the screen.
7974 Found by Patrick Georgi <patrick.georgi@coresystems.de>
7976 2008-07-29 Christian Franke <franke@computer.org>
7978 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
7979 Add conversion of emulated mount points on Cygwin.
7981 2008-07-29 Christian Franke <franke@computer.org>
7983 * util/update-grub.in: Add a check for admin
7985 Remove old `grub.cfg.new' before creation.
7986 Add `-f' to `mv' to handle the different filesystem
7987 semantics of Windows.
7989 2008-07-29 Bean <bean123ch@gmail.com>
7991 * normal/main.c (get_line): Fix buffer overflow bug.
7993 2008-07-28 Robert Millan <rmh@aybabtu.com>
7995 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
7996 (struct grub_apple_header): New struct. Describes the layout of
7998 (apple_partition_map_iterate): Check the header magic as well as the
7999 partition magic (which was already being checked).
8001 2008-07-28 Pavel Roskin <proski@gnu.org>
8003 * genmk.rb: Add a warning to the beginning of the output that
8004 it's a generated file and should not be edited.
8006 2008-07-28 Robert Millan <rmh@aybabtu.com>
8008 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
8009 with the same number are found, just use issue a warning with
8010 grub_dprintf(), as this error has been reported to be non-fatal.
8012 2008-07-27 Robert Millan <rmh@aybabtu.com>
8014 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
8017 2008-07-27 Bean <bean123ch@gmail.com>
8019 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
8020 (grub_fat_find_dir): Ignore case when comparing filename.
8022 2008-07-27 Bean <bean123ch@gmail.com>
8024 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
8025 smallino, as it's more descriptive, and i8count can be confused with
8026 the other field count.
8027 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
8030 2008-07-27 Bean <bean123ch@gmail.com>
8032 * commands/crc.c: New file.
8034 * lib/crc.c: Likewise.
8036 * include/grub/lib/crc.h: Likewise.
8038 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
8040 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
8041 (hexdump): Move this function to ...
8043 * lib/hexdump.c: ... here.
8045 * include/grub/hexdump.h: Renamed to ...
8047 * include/grub/lib/hexdump.h: ... this.
8049 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
8051 * util/grub-editenv.c: Likewise.
8053 * include/envblk.h: Renamed to ...
8055 * include/lib/envblk.h: ... this.
8057 * util/envblk.c: Renamed to ...
8059 * lib/envblk.c: ... this.
8061 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
8063 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
8064 (pkglib_MODULES): Add crc.mod.
8065 (hexdump_mod_SOURCES): Add lib/hexdump.c.
8066 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
8067 (crc_mod_SOURCES): New macro.
8068 (crc_mod_CFLAGS): Likewise.
8069 (crc_mod_LDFLAGS): Likewise.
8071 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
8073 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8075 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8077 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8079 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8081 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
8083 * commands/help.c: Include <grub/term.h>.
8084 (TERM_WIDTH): Removed. Updated all users.
8086 2008-07-27 Pavel Roskin <proski@gnu.org>
8088 * util/getroot.c (find_root_device): Rephrase a comment to avoid
8089 spurious warnings about a comment within a comment.
8091 2008-07-25 Robert Millan <rmh@aybabtu.com>
8093 * util/getroot.c (find_root_device): Skip devices that match
8094 /dev/dm-[0-9]. This lets the real device be found for any type of
8095 abstraction (LVM, EVMS, RAID..).
8096 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
8097 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
8098 device is found first, find_root_device() will now skip it.
8100 2008-07-24 Pavel Roskin <proski@gnu.org>
8102 * include/grub/types.h: Use __builtin_bswap32() and
8103 __builtin_bswap64() with gcc 4.3 and newer.
8105 2008-07-24 Christian Franke <franke@computer.org>
8107 * util/i386/pc/grub-install.in: If `--debug' is specified,
8108 pass `--verbose' to grub-setup.
8109 Abort script if make_system_path_relative_to_its_root() fails.
8111 2008-07-24 Bean <bean123ch@gmail.com>
8113 * configure.ac: Fixed a bug caused by the previous cygwin patch,
8114 variable `target_platform' should be `platform'.
8116 2008-07-24 Bean <bean123ch@gmail.com>
8118 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
8119 (grub_png_init_fixed_block): New function.
8120 (grub_png_decode_image_data): Handle fixed huffman code compression.
8122 2008-07-24 Bean <bean123ch@gmail.com>
8124 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
8125 (grub_pe2elf_SOURCES): New macro.
8126 (CLEANFILES): Add grub-pe2elf.
8128 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
8129 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
8130 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
8131 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
8132 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
8133 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
8134 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
8135 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
8136 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
8137 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
8138 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
8139 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
8140 (GRUB_PE32_DT_FUNCTION): Likewise.
8141 (GRUB_PE32_REL_I386_DIR32): Likewise.
8142 (GRUB_PE32_REL_I386_REL32): Likewise.
8143 (grub_pe32_symbol): New structure.
8144 (grub_pe32_reloc): Likewise.
8146 * util/grub-pe2elf.c: New file.
8148 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
8149 start symbol in non pc platform.
8151 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
8153 The following patches are from Christian Franke.
8155 * include/grub/dl.h: Remove .previous, gas supports this only
8158 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
8159 Remove .type, gas supports this only for ELF format.
8161 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
8162 nullbytes in symbol table. This fixes an infinite loop if table is
8165 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
8166 TARGET_IMG_LDFLAGS and EXEEXT.
8168 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
8169 TARGET_IMG_LDFLAGS_AC.
8170 (grub_CHECK_STACK_ARG_PROBE): New function.
8172 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
8174 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
8176 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
8177 to set TARGET_IMG_LD* accordingly.
8178 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
8179 Add call to grub_CHECK_STACK_ARG_PROBE.
8180 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
8182 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
8184 * genmk.rb: Add EXEEXT to CLEANFILES.
8186 2008-07-23 Robert Millan <rmh@aybabtu.com>
8188 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
8189 define the codes for arrows and lines used for the menu).
8190 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
8193 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
8194 fonts, because the latter are too slow.
8196 2008-07-21 Bean <bean123ch@gmail.com>
8198 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
8199 a20. Run keyboard test last, as it will cause macbook to halt.
8201 2008-07-18 Pavel Roskin <proski@gnu.org>
8203 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
8204 load foreign architecture modules correctly anyway. Keep
8205 support for loading host architecture modules, whether we
8206 compile them or not.
8208 2008-07-17 Pavel Roskin <proski@gnu.org>
8210 * configure.ac: Use -m32 or -m64 regardless of whether we had to
8211 change target_cpu. The compiler default can mismatch target_cpu
8214 * disk/efi/efidisk.c: Fix format warnings on x86_64.
8215 * kern/efi/efi.c: Likewise.
8217 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
8218 target compiler is functional.
8219 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
8222 * configure.ac: Default to efi platform for x86_64-apple. Allow
8223 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
8224 adjustments from the rest, only do them if target is not
8225 explicitly given. Merge other adjustments with the final sanity
8226 check. Remove an extraneous check for supported CPU. Be
8227 specific which CPU and which platform is not supported.
8229 * configure.ac: Default to pc platform for x86_64.
8231 2008-07-17 Robert Millan <rmh@aybabtu.com>
8233 Partial LinuxBIOS -> Coreboot rename.
8235 * conf/i386-linuxbios.rmk: Renamed to ...
8236 * conf/i386-coreboot.rmk: ... this.
8237 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
8238 * configure.ac: Accept "coreboot" as input platform (but maintain
8239 compatibility with "linuxbios").
8240 * include/grub/i386/linuxbios: Renamed to ...
8241 * include/grub/i386/coreboot: ... this.
8243 2008-07-17 Bean <bean123ch@gmail.com>
8245 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
8246 (appleldr_mod_SOURCE): New variable.
8247 (appleldr_mod_CFLAGS): Likewise.
8248 (appleldr_mod_LDFLAGS): Likewise.
8249 (pci_mod_SOURCES): Likewise.
8250 (pci_mod_CFLAGS): Likewise.
8251 (pci_mod_LDFLAGS): Likewise.
8252 (lspci_mod_SOURCES): Likewise.
8253 (lspci_mod_CFLAGS): Likewise.
8254 (lspci_mod_LDFLAGS): Likewise.
8256 * conf/x86_64-efi.rmk: New file.
8258 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
8260 (grub_efidisk_write): Likewise.
8262 * include/efi/api.h (efi_call_0): New macro.
8263 (efi_call_1): Likewise.
8264 (efi_call_2): Likewise.
8265 (efi_call_3): Likewise.
8266 (efi_call_4): Likewise.
8267 (efi_call_5): Likewise.
8268 (efi_call_6): Likewise.
8270 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
8271 grub_rescue_cmd_chainloader.
8273 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
8274 (grub_pe32_optional_header): Change some fields based on i386 or
8276 (GRUB_PE32_PE32_MAGIC): Likewise.
8278 * include/grub/efi/uga_draw.h: New file.
8280 * include/grub/elf.h (STN_ABS): New constant.
8281 (R_X86_64_NONE): Relocation constant for x86_64.
8282 (R_X86_64_64): Likewise.
8283 (R_X86_64_PC32): Likewise.
8284 (R_X86_64_GOT32): Likewise.
8285 (R_X86_64_PLT32): Likewise.
8286 (R_X86_64_COPY): Likewise.
8287 (R_X86_64_GLOB_DAT): Likewise.
8288 (R_X86_64_JUMP_SLOT): Likewise.
8289 (R_X86_64_RELATIVE): Likewise.
8290 (R_X86_64_GOTPCREL): Likewise.
8291 (R_X86_64_32): Likewise.
8292 (R_X86_64_32S): Likewise.
8293 (R_X86_64_16): Likewise.
8294 (R_X86_64_PC16): Likewise.
8295 (R_X86_64_8): Likewise.
8296 (R_X86_64_PC8): Likewise.
8298 * include/grub/i386/efi/pci.h: New file.
8300 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
8301 Change it value based on platform.
8302 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
8303 (GRUB_E820_RAM): Likewise.
8304 (GRUB_E820_RESERVED): Likewise.
8305 (GRUB_E820_ACPI): Likewise.
8306 (GRUB_E820_NVS): Likewise.
8307 (GRUB_E820_EXEC_CODE): Likewise.
8308 (GRUB_E820_MAX_ENTRY): Likewise.
8309 (grub_e820_mmap): New structure.
8310 (linux_kernel_header): Change the efi field according to different
8311 kernel version, also field from linux_kernel_header.
8313 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
8315 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
8316 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
8317 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
8318 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
8319 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
8320 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
8321 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
8322 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
8323 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
8324 (GRUB_PCI_ADDR_IO_MASK): Likewise.
8326 * include/grub/x86_64/efi/kernel.h: New file.
8328 * include/grub/x86_64/efi/loader.h: Likewise.
8330 * include/grub/x86_64/efi/machine.h: Likewise.
8332 * include/grub/x86_64/efi/pci.h: Likewise.
8334 * include/grub/x86_64/efi/time.h: Likewise.
8336 * include/grub/x86_64/linux.h: Likewise.
8338 * include/grub/x86_64/setjmp.h: Likewise.
8340 * include/grub/x86_64/time.h: Likewise.
8342 * include/grub/x86_64/types.h: Likewise.
8344 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
8345 GRUB_TARGET_SIZEOF_VOID_P.
8347 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
8348 (grub_efi_locate_handle): Likewise.
8349 (grub_efi_open_protocol): Likewise.
8350 (grub_efi_set_text_mode): Likewise.
8351 (grub_efi_stall): Likewise.
8352 (grub_exit): Likewise.
8353 (grub_reboot): Likewise.
8354 (grub_halt): Likewise.
8355 (grub_efi_exit_boot_services): Likewise.
8356 (grub_get_rtc): Likewise.
8358 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
8359 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
8360 (grub_efi_allocate_pages): Wrap efi calls.
8361 (grub_efi_free_pages): Wrap efi calls.
8362 (grub_efi_get_memory_map): Wrap efi calls.
8364 * kern/x86_64/dl.c: New file.
8366 * kern/x86_64/efi/callwrap.S: Likewise.
8368 * kern/x86_64/efi/startup.S: Likewise.
8370 * loader/efi/appleloader.c: Likewise.
8372 * loader/efi/chainloader.c (cmdline): New variable.
8373 (grub_chainloader_unload): Wrap efi calls.
8374 (grub_chainloader_boot): Likewise.
8375 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
8378 * loader/efi/chainloader_normal.c (chainloader_command):
8379 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
8382 * loader/i386/efi/linux.c (allocate_pages): Change allocation
8384 (grub_e820_add_region): New function.
8385 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
8387 (grub_find_video_card): New function.
8388 (grub_linux_setup_video): New function.
8389 (grub_rescue_cmd_linux): Probe for video information.
8391 * normal/x86_64/setjmp.S: New file.
8393 * term/efi/console.c (map_char): New function.
8394 (grub_console_putchar): Map unicode char.
8395 (grub_console_checkkey): Wrap efi calls.
8396 (grub_console_getkey): Likewise.
8397 (grub_console_getwh): Likewise.
8398 (grub_console_gotoxy): Likewise.
8399 (grub_console_cls): Likewise.
8400 (grub_console_setcolorstate): Likewise.
8401 (grub_console_setcursor): Likewise.
8403 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
8405 2008-07-16 Pavel Roskin <proski@gnu.org>
8407 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
8410 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
8411 pointer, not an integer. This fixes a warning and prevents
8412 precision loss on 64-bit systems.
8413 (relocate_addresses): Remove unneeded cast.
8415 2008-07-15 Pavel Roskin <proski@gnu.org>
8417 * kern/i386/ieee1275/init.c: Include grub/cache.h.
8419 * term/ieee1275/ofconsole.c: Disable code unused on i386.
8421 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
8422 Fix comparison between signed and unsigned.
8424 * include/grub/i386/ieee1275/console.h: Declare
8425 grub_console_init() and grub_console_fini().
8427 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
8428 It's empty and unused.
8430 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
8431 beginning to avoid warnings with some compilers.
8433 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
8434 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
8436 2008-07-14 Pavel Roskin <proski@gnu.org>
8438 * kern/env.c (grub_register_variable_hook): Don't copy empty
8439 string, it leaks memory. Pass "" to grub_env_set(), it should
8440 handle constant strings.
8442 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
8443 * commands/cmp.c (grub_cmd_cmp): Likewise.
8444 * kern/dl.c (grub_dl_flush_cache): Likewise.
8445 (grub_dl_load_core): Likewise.
8446 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
8447 (grub_elf64_load_phdrs): Likewise.
8449 2008-07-13 Pavel Roskin <proski@gnu.org>
8451 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
8452 between signed and unsigned.
8453 (LzmaEnc_Finish): Fix warning about an unused parameter.
8455 2008-07-13 Bean <bean123ch@gmail.com>
8457 * Makefile.in (enable_lzo): New rule.
8459 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
8461 * configure.ac (ENABLE_LZO): New option --enable-lzo.
8463 * boot/i386/pc/lnxboot.S: #include <config.h>.
8465 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
8466 its value according to the compression algorithm used, lzo or lzma.
8468 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
8469 compression algorithm according to configure macro.
8471 * kern/i386/pc/startup.S (codestart): Likewise.
8473 * kern/i386/pc/lzma_decode.S: New file.
8475 * include/grub/lib/LzFind.h: Likewise.
8477 * include/grub/lib/LzHash.h: Likewise.
8479 * include/grub/lib/LzmaDec.h: Likewise.
8481 * include/grub/lib/LzmaEnc.h: Likewise.
8483 * include/grub/lib/LzmaTypes.h: Likewise.
8485 * lib/LzFind.c: Likewise.
8487 * lib/LzmaDec.c: Likewise.
8489 * lib/LzmaEnc.c: Likewise.
8491 2008-07-13 Bean <bean123ch@gmail.com>
8493 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
8494 (grub_ext4_extent_header): New structure.
8495 (grub_ext4_extent): Likewise.
8496 (grub_ext4_extent_idx): Likewise.
8497 (grub_ext4_find_leaf): New function.
8498 (grub_ext2_read_block): Handle extents.
8500 2008-07-12 Robert Millan <rmh@aybabtu.com>
8502 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
8504 2008-07-11 Robert Millan <rmh@aybabtu.com>
8506 * util/grub.d/40_custom.in: New file. Example on how to add custom
8507 entries to /etc/grub.d.
8508 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
8509 40_custom (implicitly, by merging all the grub.d rules).
8511 2008-07-11 Pavel Roskin <proski@gnu.org>
8513 * commands/read.c (grub_getline): Fix invalid memory access.
8514 Don't add newline to the variable value.
8516 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
8517 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
8518 (serial_hw_get_port): Check validity of the port number.
8519 (grub_cmd_serial): Check return value of serial_hw_get_port().
8521 2008-07-07 Pavel Roskin <proski@gnu.org>
8523 * boot/i386/pc/diskboot.S (notification_string): Replace
8524 "Loading kernel" with just "loading". This is shorter, less
8525 confusing and saves a few bytes for possible future changes.
8527 2008-07-05 Pavel Roskin <proski@gnu.org>
8529 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
8530 size for ATAPI devices, they are undefined. Output sector
8531 number in decimal form.
8533 * disk/ata.c: Use named constants for status bits.
8535 2008-07-04 Pavel Roskin <proski@gnu.org>
8537 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
8538 grub_addr_t before casting it to the void pointer to fix a
8539 warning. Non-addressable regions are discarded earlier.
8540 (grub_arch_modules_addr): Cast _end to grub_addr_t.
8541 * kern/i386/linuxbios/table.c: Include grub/misc.h.
8542 (check_signature): Don't shadow table_header.
8543 (grub_linuxbios_table_iterate): Cast numeric constants to
8544 grub_linuxbios_table_header_t.
8545 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
8548 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
8551 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
8552 pointer, which can cause warnings. Support 64-bit addresses.
8554 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
8555 of sizeof(long). This fixes PowerPC image generation on x86_64.
8557 2008-07-04 Robert Millan <rmh@aybabtu.com>
8559 This fixes a performance issue when pc & gpt partmap iterators
8560 didn't abort iteration even after our hook found what it was
8561 looking for (often causing expensive probes of non-existent drives).
8563 Some callers relied on previous buggy behaviour, since they would
8564 raise an error when their own hooks caused early abortion of its
8567 * kern/device.c (grub_device_open): Improve error message.
8568 * disk/lvm.c (grub_lvm_open): Likewise.
8569 * disk/raid.c (grub_raid_open): Likewise.
8571 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
8572 when hook requests it, independently of grub_errno.
8573 (pc_partition_map_probe): Do not fail when find_func() caused
8574 early abortion of pc_partition_map_iterate().
8576 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
8577 when hook requests it, independently of grub_errno.
8578 (gpt_partition_map_probe): Do not fail when find_func() caused
8579 early abortion of gpt_partition_map_iterate().
8581 * kern/partition.c (grub_partition_iterate): Abort parent iteration
8582 when hook requests it, independently of grub_errno. Do not fail when
8583 part_map_iterate_hook() caused early abortion of p->iterate().
8585 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
8586 when grub_partition_iterate() returned with non-zero.
8588 2008-07-03 Pavel Roskin <proski@gnu.org>
8590 * disk/ata.c (grub_ata_pio_write): Check status before writing,
8591 like we do in grub_ata_pio_read().
8592 (grub_ata_readwrite): Always write individual sectors. Fix the
8593 sector count for the remainder.
8594 (grub_ata_write): Enable writing to ATA devices. Correctly
8595 report error for ATAPI devices.
8597 2008-07-02 Pavel Roskin <proski@gnu.org>
8599 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
8602 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
8603 for every read sector, we already increment it for the whole
8604 batch. This fixes reading more than 256 sectors at once.
8606 * util/grub-editenv.c (cmd_info): Cast argument to long
8607 explicitly. ptrdiff_t reduces to int on i386.
8609 * util/grub-editenv.c (main): Be specific which parameter is
8612 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
8613 (memdisk): Make memdisk_orig_addr a pointer.
8615 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
8616 for file offsets, use grub_off_t instead. Fix printf format
8619 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
8620 there. Real unexpected warnings should not drown in the noise
8621 about known problems.
8623 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
8624 grub_disk_addr_t for memory addresses.
8626 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
8627 explicitly to fix a warning.
8629 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
8631 * Makefile.in (MODULE_LDFLAGS): New variable.
8632 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
8633 the linker accepts --build-id=none.
8634 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
8636 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
8638 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
8639 those in Linux XFS code. Provide a way to access 64-bit parent
8641 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
8642 the end of struct grub_xfs_dir_header.
8644 2008-07-02 Bean <bean123ch@gmail.com>
8646 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
8647 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
8648 and GRUB_IEEE1275_FLAG_NO_ANSI.
8650 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
8651 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
8652 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
8654 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
8655 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
8657 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
8658 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
8660 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
8661 esc sequence on non ANSI terminal.
8662 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
8664 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
8667 2008-07-02 Bean <bean123ch@gmail.com>
8669 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
8670 (grub_editenv_SOURCES): New variable.
8671 (pkglib_MODULES): Add loadenv.mod.
8672 (loadenv_mod_SOURCES): New variable.
8673 (loadenv_mod_CFLAGS): Likewise.
8674 (loadenv_mod_LDFLAGS): Likewise.
8676 * include/grub/envblk.h: New file.
8678 * util/envblk.c: New file.
8680 * util/grub-editenv.c: New file.
8682 * commands/loadenv.c: New file.
8684 2008-07-01 Pavel Roskin <proski@gnu.org>
8686 * include/multiboot2.h (struct multiboot_tag_module): Use char,
8687 not unsigned char. This fixes warnings and is consistent with
8690 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
8692 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
8694 * term/tparm.c (analyze): Always set *popcount.
8696 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
8697 cast to fix a warning.
8699 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
8700 cast to suppress a warning.
8702 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
8703 grub_fshelp_read_file() expects.
8705 * fs/fat.c: Fix UUID calculation on big-endian systems. We
8706 write uuid as a 32-bit value in CPU byte order, so declare and
8709 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
8710 long if the format specifier expects it.
8711 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
8712 * partmap/pc.c (pc_partition_map_iterate): Likewise.
8713 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
8714 long to fix a warning.
8715 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
8716 grub_dprintf() arguments to fix warnings.
8718 2008-06-30 Pavel Roskin <proski@gnu.org>
8720 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
8721 install_bsd_part immediately before core.img is embedded or
8722 modified on disk. This fixes core.img verification if core.img
8725 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
8726 core_path to calculate the blocklist.
8727 Patch from Javier MartÃn <lordhabbit@gmail.com>
8729 2008-06-29 Robert Millan <rmh@aybabtu.com>
8731 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
8732 block to disk block.
8733 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
8734 Patch from Niels Böhm <bitbucket@arcor.de>
8736 2008-06-29 Robert Millan <rmh@aybabtu.com>
8738 * util/update-grub_lib.in (font_path): Search for fonts in
8739 /boot/grub first, which is more likely to be readable (we aren't
8740 deciding where fonts live, just looking for them).
8742 2008-06-26 Pavel Roskin <proski@gnu.org>
8744 * util/biosdisk.c (read_device_map): Don't leave dead map
8745 entries for devices failing stat() check.
8747 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
8748 core_path_dev for the core.img path on the target device.
8750 2008-06-26 Robert Millan <rmh@aybabtu.com>
8752 * disk/fs_uuid.c: New file.
8753 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
8754 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
8755 (fs_uuid_mod_LDFLAGS): New variables.
8756 * include/grub/disk.h (grub_disk_dev_id): Add
8757 `GRUB_DISK_DEVICE_UUID_ID'.
8758 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
8759 implement iterate().
8761 2008-06-26 Robert Millan <rmh@aybabtu.com>
8763 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
8764 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
8765 Linux image includes no initrd.
8767 2008-06-21 Javier MartÃn <lordhabbit@gmail.com>
8769 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
8770 call to resolve the core image location that effectively appended the
8773 2008-06-21 Robert Millan <rmh@aybabtu.com>
8775 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
8778 * util/grub.d/10_hurd.in: ... to here ...
8779 * util/grub.d/10_linux.in: ... and here.
8781 2008-06-19 Robert Millan <rmh@aybabtu.com>
8783 * kern/main.c (grub_main): Export `prefix' variable immediately
8784 after it has been set by grub_machine_set_prefix().
8786 2008-06-19 Robert Millan <rmh@aybabtu.com>
8788 * commands/search.c (search_label, search_fs_uuid, search_file): Print
8789 search result when not saving to variable, not the other way around.
8790 When saving to variable, abort iteration as soon as a match is found.
8792 2008-06-19 Robert Millan <rmh@aybabtu.com>
8794 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
8795 check for partition that provides /boot/grub. Its logic is flawed,
8796 as it prevents prepare_grub_to_access_device() from being called
8799 2008-06-19 Robert Millan <rmh@aybabtu.com>
8801 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
8802 "insmod" command directly when abstraction modules are needed,
8803 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
8804 since it had already been processed).
8806 2008-06-19 Pavel Roskin <proski@gnu.org>
8808 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
8809 changed. This is needed in case GRUB_LIBDIR changes.
8810 * conf/i386-ieee1275.rmk: Likewise.
8811 * conf/i386-linuxbios.rmk: Likewise.
8812 * conf/i386-pc.rmk: Likewise.
8813 * conf/powerpc-ieee1275.rmk: Likewise.
8815 2008-06-18 Pavel Roskin <proski@gnu.org>
8817 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
8818 kernel_elf_symlist.c to symlist.c for consistency with other
8819 architectures. Update all users.
8820 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
8822 2008-06-18 Robert Millan <rmh@aybabtu.com>
8824 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
8827 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
8828 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
8829 a RAID device, run setup() for all members independently on whether
8830 LVM abstraction is being used.
8831 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
8832 If grub-mkimage has set `*install_dos_part == -2', don't override this
8834 Perform *install_dos_part adjustments independently on whether
8835 we're embedding or not.
8836 Clarify error message when image is too big for embedding.
8837 Remove duplicate *install_dos_part stanza.
8839 2008-06-17 Robert Millan <rmh@aybabtu.com>
8841 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
8842 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
8844 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
8845 values in grub_ofconsole_normal_color and
8846 grub_ofconsole_highlight_color (they're not directly related to
8847 background and foreground).
8848 (grub_ofconsole_setcolorstate): Extract background and foreground
8849 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
8851 2008-06-17 Robert Millan <rmh@aybabtu.com>
8853 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
8854 /boot/grub for the check in last commit, not /boot (they could be
8855 different partitions).
8857 2008-06-16 Robert Millan <rmh@aybabtu.com>
8859 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
8860 asked to setup access for the same partition that provides /boot,
8861 don't bother using UUIDs since our root already has the value we
8864 2008-06-16 Robert Millan <rmh@aybabtu.com>
8866 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
8868 Patch from Sven Mueller <sven@debian.org>.
8870 2008-06-16 Robert Millan <rmh@aybabtu.com>
8872 * util/update-grub.in: Check for $EUID instead of $UID.
8873 Reported by Vincent Zweije.
8875 2008-06-16 Bean <bean123ch@gmail.com>
8877 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
8878 (grub_ext2_read_block): Likewise.
8879 (grub_ext2_read_inode): Likewise.
8880 (grub_ext2_mount): Likewise.
8881 (grub_ext2_close): Likewise.
8882 (grub_ext3_get_journal): Removed.
8884 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
8885 (grub_reiserfs_read_symlink): Likewise.
8886 (grub_reiserfs_mount): Likewise.
8887 (grub_reiserfs_open): Likewise.
8888 (grub_reiserfs_read): Likewise.
8889 (grub_reiserfs_close): Likewise.
8890 (grub_reiserfs_get_journal): Removed.
8892 * fs/fshelp.c (grub_fshelp_read): Removed.
8893 (grub_fshelp_map_block): Likewise.
8895 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
8896 (grub_fshelp_journal): Likewise.
8897 (grub_fshelp_read): Likewise.
8898 (grub_fshelp_map_block): Likewise.
8900 2008-06-16 Pavel Roskin <proski@gnu.org>
8902 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
8903 floating point anymore.
8904 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
8906 2008-06-15 Pavel Roskin <proski@gnu.org>
8908 * commands/ls.c (grub_ls_list_files): Use integer calculations
8909 for human readable format, avoid floating point use.
8910 * kern/misc.c (grub_ftoa): Remove.
8911 (grub_vsprintf): Remove floating point support.
8913 2008-06-15 Robert Millan <rmh@aybabtu.com>
8915 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
8917 Reported by Max Vozeler.
8919 2008-06-15 Robert Millan <rmh@aybabtu.com>
8921 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
8922 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
8924 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
8925 the beginning of the prefix.
8927 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
8928 It is assumed that if we have a memdisk, grub-mkimage has set
8929 grub_prefix to include the "(memdisk)" drive in it.
8931 2008-06-15 Robert Millan <rmh@aybabtu.com>
8933 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
8934 Initialize keyboard controller after registering the terminal, so that
8935 grub_printf() can be called from grub_keyboard_controller_init().
8937 2008-06-15 Robert Millan <rmh@aybabtu.com>
8939 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
8940 extent-btree which is written as big endian on disk.
8941 Reported by Alain Greppin <al@chilibi.org>.
8943 2008-06-14 Robert Millan <rmh@aybabtu.com>
8945 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
8946 * util/i386/pc/grub-install.in (modules): Likewise.
8948 2008-06-13 Pavel Roskin <proski@gnu.org>
8950 * commands/ls.c (grub_ls_list_files): Fix format warnings.
8952 2008-06-13 Bean <bean123ch@gmail.com>
8954 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
8956 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
8958 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
8959 to indicate sparse block.
8961 2008-06-12 Pavel Roskin <proski@gnu.org>
8963 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
8964 number, grub_fshelp_read() does it for us.
8966 * fs/fshelp.c (grub_fshelp_read): New function. Implement
8967 linear disk read with journal translation.
8968 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
8969 * include/grub/fshelp.h: Declare grub_fshelp_read().
8971 2008-06-09 Pavel Roskin <proski@gnu.org>
8973 * fs/minix.c (grub_minix_mount): Handle error reading
8976 2008-06-08 Robert Millan <rmh@aybabtu.com>
8978 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
8979 don't append the RAID prefix afterwards.
8980 Reported by Clint Adams.
8982 2008-06-08 Robert Millan <rmh@aybabtu.com>
8984 Based on description from Pavel:
8985 * kern/disk.c (grub_disk_check_range): Rename to ...
8986 (grub_disk_adjust_range): ... this. Add a comment explaining the
8987 tasks performed by this function.
8989 2008-06-08 Robert Millan <rmh@aybabtu.com>
8991 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
8992 `num_serial' (for consistency with other variables).
8993 (struct grub_ntfs_data): Add `uuid' member.
8994 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
8995 (grub_ntfs_uuid): New function.
8996 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
8998 2008-06-07 Pavel Roskin <proski@gnu.org>
9000 * util/biosdisk.c (open_device): Revert last change to the
9001 function, it broke installation. The sector needs to be
9002 different dependent on which device is opened.
9004 2008-06-06 Robert Millan <rmh@aybabtu.com>
9006 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
9007 rest of GRUB, and breakage doesn't happen if its value were modified.
9009 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
9010 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
9011 a constant (same value).
9012 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
9013 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
9015 2008-06-06 Robert Millan <rmh@aybabtu.com>
9017 * util/biosdisk.c (open_device): Do not modify sector offset when
9018 accessing a partition. kern/disk.c already handles this for us.
9020 2008-06-06 Robert Millan <rmh@aybabtu.com>
9022 * util/grub-emu.c (grub_machine_init): Move code in this function from
9024 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
9025 segfault in case grub_printf() is called).
9027 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
9028 grub_probe. Update all users not to explicitly add it again.
9029 (grub_device): New variable; contains corresponding device for grubdir.
9030 (fs_module, partmap_module, devabstraction_module): Pass
9031 `--device ${grub_device}' to grub_probe to avoid traversing /dev
9034 2008-06-05 Robert Millan <rmh@aybabtu.com>
9036 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
9037 is found, print it (same layout as with labels).
9039 2008-06-04 Robert Millan <rmh@aybabtu.com>
9041 * util/biosdisk.c (get_drive): Rename to ...
9042 (find_grub_drive): ... this. Update all users.
9044 (get_os_disk): Rename to ...
9045 (convert_system_partition_to_system_disk): ... this. Update all users.
9047 (find_drive): Rename to ...
9048 (find_system_device): ... this. Update all users.
9050 2008-06-04 Robert Millan <rmh@aybabtu.com>
9052 * util/biosdisk.c (get_os_disk): Handle IDA devices.
9053 * util/grub-mkdevicemap.c (get_mmc_disk_name)
9054 (make_device_map): Likewise.
9056 2008-06-01 Robert Millan <rmh@aybabtu.com>
9058 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
9059 before dereferencing it.
9061 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
9062 union with fat12/fat16-specific ones. Add some new fields, including
9063 `num_serial' for both versions.
9064 (struct grub_fat_data): Add `uuid' member.
9065 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
9066 names. Initialize `data->uuid' using `num_serial'.
9067 (grub_fat_uuid): New function.
9068 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
9070 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
9071 (grub_reiserfs_uuid): New function.
9072 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
9075 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
9076 (grub_xfs_uuid): New function.
9077 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
9079 2008-06-01 Robert Millan <rmh@aybabtu.com>
9081 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
9082 code that is backward compatible with pre-uuid search command.
9084 2008-05-31 Robert Millan <rmh@aybabtu.com>
9086 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
9087 floppies after everything else, to ensure floppy drive isn't accessed
9088 unnecessarily (patch from Bean).
9090 2008-05-31 Robert Millan <rmh@aybabtu.com>
9092 * commands/search.c (search_label, search_fs_uuid, search_file): Do
9093 not print device names when we were asked to set a variable.
9095 2008-05-31 Robert Millan <rmh@aybabtu.com>
9097 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
9098 using "cursor-on" and "cursor-off" commands (understood at least by
9099 the Open Firmware flavour on OLPC).
9101 2008-05-31 Michael Gorven <michael@gorven.za.net>
9103 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
9104 on and off sequences.
9106 2008-05-31 Robert Millan <rmh@aybabtu.com>
9108 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
9109 * util/update-grub.in: Likewise.
9111 2008-05-30 Pavel Roskin <proski@gnu.org>
9113 * util/biosdisk.c (linux_find_partition): Simplify logic and
9114 make the code more universal. Keep special processing for
9115 devfs, but use a simple rule for all other devices. If the
9116 device ends with a number, append 'p' and the partition number.
9117 Otherwise, append only the partition number.
9119 2008-05-30 Robert Millan <rmh@aybabtu.com>
9121 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
9122 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
9123 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
9124 the `root' parameter to Linux.
9126 2008-05-30 Robert Millan <rmh@aybabtu.com>
9128 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
9129 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
9130 --fs_uuid with --fs-uuid.
9131 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
9132 all filesystems support them).
9134 2008-05-30 Robert Millan <rmh@aybabtu.com>
9136 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
9137 grub_printf() flags, since we're printing in units of 2 bytes.
9139 2008-05-30 Robert Millan <rmh@aybabtu.com>
9141 * util/grub.d/00_header.in: Remove obsolete comment referencing
9142 convert_system_path_to_grub_path().
9143 * util/update-grub.in: Likewise.
9144 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
9145 (convert_system_path_to_grub_path): Add a warning message explaining
9146 that this function is deprecated. Rely on is_path_readable_by_grub()
9147 for the readability checks.
9148 (font_path): Use is_path_readable_by_grub() for the readability
9149 check rather than convert_system_path_to_grub_path().
9151 2008-05-30 Robert Millan <rmh@aybabtu.com>
9153 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
9154 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
9155 converting it first.
9156 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
9157 grub.cfg for access to font file, and afterwards call it again to set
9160 2008-05-30 Robert Millan <rmh@aybabtu.com>
9162 * commands/search.c (options): Add --fs_uuid option.
9163 (search_fs_uuid): New function.
9164 (grub_cmd_search): Fix --set argument passing.
9165 Use search_fs_uuid() when requested via --fs_uuid.
9166 (grub_search_init): Update help message.
9167 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
9168 and redeclare it as an array of 16-bit words.
9169 (grub_ext2_uuid): New function.
9170 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
9171 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
9172 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
9173 (GRUB_DEVICE_BOOT_UUID): New variables.
9174 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
9175 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
9177 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
9178 just assume `root' variable has the right value.
9179 * util/grub.d/10_linux.in: Likewise.
9180 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
9182 (main): Recognise `-t fs_uuid' argument.
9184 2008-05-30 Robert Millan <rmh@aybabtu.com>
9186 * util/biosdisk.c (map): Redefine structure to hold information
9187 about GRUB drive name.
9188 (get_drive): Reimplement without assuming (and verifying) BIOS-like
9190 (call_hook): Remove.
9191 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
9192 member. Assume drive has partitions.
9193 (grub_util_biosdisk_open): Access device names via `.device' struct
9195 (open_device): Likewise.
9196 (find_drive): Likewise.
9197 (read_device_map): Adjust map[] usage to match the new struct
9198 definition. Don't check for duplicates (still possible, but not cheap
9200 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
9201 (make_device_name): Remove assumption of BIOS-like drive names.
9203 2008-05-30 Pavel Roskin <proski@gnu.org>
9205 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
9206 compiling execute.c doesn't need grub_script.tab.h anymore.
9207 (normal/command.c_DEPENDENCIES): Likewise.
9208 (normal/function.c_DEPENDENCIES): Likewise.
9209 * conf/i386-ieee1275.rmk: Likewise.
9210 * conf/i386-linuxbios.rmk: Likewise.
9211 * conf/i386-pc.rmk: Likewise.
9212 * conf/powerpc-ieee1275.rmk: Likewise.
9213 * conf/sparc64-ieee1275.rmk: Likewise.
9215 2008-05-29 Pavel Roskin <proski@gnu.org>
9217 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
9218 when scanning metadata for volume group name.
9220 * include/grub/script.h: Don't include grub_script.tab.h. It's
9221 a generated file, which may only be included from the files with
9222 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
9223 use union YYSTYPE, as the later allows forward declaration.
9224 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
9226 2008-05-29 Robert Millan <rmh@aybabtu.com>
9228 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
9229 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
9230 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
9231 (grub_console_checkkey): Add grub_dprintf() call to report unknown
9234 2008-05-29 Robert Millan <rmh@aybabtu.com>
9236 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
9237 control key combinations.
9239 2008-05-29 Robert Millan <rmh@aybabtu.com>
9241 * util/powerpc/ieee1275/grub-install.in: Move from here ...
9242 * util/ieee1275/grub-install.in: ... to here.
9243 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
9244 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
9245 (grub_install_SOURCES): Likewise.
9247 2008-05-29 Robert Millan <rmh@aybabtu.com>
9249 * fs/affs.c: Update copyright year.
9250 * fs/ext2.c: Likewise.
9251 * fs/fshelp.c: Likewise.
9252 * fs/hfsplus.c: Likewise.
9253 * fs/ntfs.c: Likewise.
9254 * fs/xfs.c: Likewise.
9255 * include/grub/fshelp.h: Likewise.
9256 * util/grub-mkdevicemap.c: Likewise.
9258 2008-05-28 Robert Millan <rmh@aybabtu.com>
9260 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
9261 might need to be fatfs to support some firmware implementations
9264 2008-05-28 Robert Millan <rmh@aybabtu.com>
9266 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
9268 * util/grub-mkdevicemap.c (get_mmc_disk_name)
9269 (make_device_map): Likewise.
9271 2008-05-20 Bean <bean123ch@gmail.com>
9273 * fs/fshelp.c (grub_fshelp_map_block): New function.
9274 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
9275 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
9277 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
9278 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
9279 (grub_fshelp_journal): New structure.
9280 (grub_fshelp_map_block): New function prototype.
9281 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
9282 (grub_fshelp_map_block): Likewise.
9284 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
9285 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
9286 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
9287 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
9288 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
9289 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
9290 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
9291 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
9292 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
9293 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
9294 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
9295 (grub_ext2_sblock): New members for journal support.
9296 (grub_ext3_journal_header): New structure.
9297 (grub_ext3_journal_revoke_header): Likewise.
9298 (grub_ext3_journal_block_tag): Likewise.
9299 (grub_ext3_journal_sblock): Likewise.
9300 (grub_fshelp_node): New members logfile and journal.
9301 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
9302 grub_fshelp_map_block to get real block number.
9303 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
9305 (grub_ext2_read_inode): Likewise.
9306 (grub_ext3_get_journal): New function.
9307 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
9308 (grub_ext2_close): Release memory used by journal.
9310 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
9311 (REISERFS_MAGIC_DESC_BLOCK): New macro.
9312 (grub_reiserfs_transaction_header): Renamed to
9313 grub_reiserfs_description_block, replace field data with real_blocks.
9314 (grub_reiserfs_commit_block): New structure.
9315 (grub_reiserfs_data): New member journal.
9316 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
9318 (grub_reiserfs_read_symlink): Likewise.
9319 (grub_reiserfs_iterate_dir): Likewise.
9320 (grub_reiserfs_open): Likewise.
9321 (grub_reiserfs_read): Likewise.
9322 (grub_reiserfs_get_journal): New function.
9323 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
9324 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
9325 using grub_reiserfs_get_journal.
9326 (grub_reiserfs_close): Release memory used by journal.
9328 * fs/affs.c (grub_affs_read_block): Change block type to
9329 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
9331 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
9333 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
9335 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
9337 * fs/udf.c (grub_udf_read_block): Change block type to
9338 grub_disk_addr_t. Use type cast to avoid warning.
9340 * fs/xfs.c (grub_xfs_read_block): Likewise.
9342 2008-05-16 Christian Franke <franke@computer.org>
9344 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
9345 to ensure that break with ESC will always work.
9346 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
9347 Remove ESC from keyboard queue.
9349 2008-05-16 Christian Franke <franke@computer.org>
9351 * util/biosdisk.c: [__CYGWIN__] Add includes.
9352 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
9353 (get_os_disk): Move variable declarations to OS specific
9354 parts to avoid warning.
9355 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
9356 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
9357 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
9359 * util/getroot.c: [__CYGWIN__] Add includes.
9360 (strip_extra_slashes): Fix "/" case.
9361 [__CYGWIN__] (get_win32_path): New function.
9362 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
9363 [__CYGWIN__] (find_root_device): Disable.
9364 [__CYGWIN__] (get_bootsec_serial): New function.
9365 [__CYGWIN__] (find_cygwin_root_device): Likewise.
9366 [__linux__] (grub_guess_root_device): Add early returns to simplify
9368 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
9369 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
9370 check for Linux only.
9372 2008-05-15 Bean <bean123ch@gmail.com>
9374 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
9375 keyboard hang problem in apple's intel mac.
9377 2008-05-09 Robert Millan <rmh@aybabtu.com>
9379 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
9381 * util/grub-mkdevicemap.c (get_virtio_disk_name)
9382 (make_device_map): Likewise.
9383 Reported by Aurelien Jarno <aurel32@debian.org>
9385 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
9387 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
9388 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
9389 (make_device_map): Output entries for xvd type disks.
9391 2008-05-07 Robert Millan <rmh@aybabtu.com>
9393 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
9395 * util/grub-mkdevicemap.c (get_cciss_disk_name)
9396 (make_device_map): Likewise.
9397 Reported by Roland Dreier <rdreier@cisco.com>
9399 2008-05-07 Robert Millan <rmh@aybabtu.com>
9401 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
9402 grub_strstr() call. Correct a few mistakes in failure path handling.
9404 2008-05-06 Robert Millan <rmh@aybabtu.com>
9406 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
9407 Do not print a trailing slash (therefore, the root directory is an
9409 (convert_system_path_to_grub_path): Do not remove trailing slash
9410 from make_system_path_relative_to_its_root() output.
9412 * util/i386/pc/grub-install.in: Add trailing slash to output from
9413 make_system_path_relative_to_its_root().
9415 2008-05-06 Robert Millan <rmh@aybabtu.com>
9417 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
9418 ensures that output lines aren't intermangled with those sent to
9419 stderr (via grub_util_info()).
9420 * util/grub-probe.c (grub_refresh): Likewise.
9421 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
9423 2008-05-05 Christian Franke <franke@computer.org>
9425 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
9426 Add Cygwin device names.
9427 (get_ide_disk_name) [__CYGWIN__]: Likewise.
9428 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
9429 (check_device): Return error instead of success on empty name.
9430 (make_device_map): Move label inside linux specific code to
9431 prevent compiler warning.
9433 2008-04-30 Robert Millan <rmh@aybabtu.com>
9435 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
9436 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
9438 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
9440 2008-04-29 Robert Millan <rmh@aybabtu.com>
9442 * docs/grub.cfg: New file (example GRUB configuration).
9444 2008-04-26 Robert Millan <rmh@aybabtu.com>
9446 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
9447 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
9448 and `disk/ieee1275/nand.c'.
9450 2008-04-25 Bean <bean123ch@gmail.com>
9452 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
9455 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
9456 change the buffer size to 4096 for cdrom device.
9458 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
9460 (_linux_mod_SOURCES): New variable.
9461 (_linux_mod_CFLAGS): Likewise.
9462 (_linux_mod_LDFLAGS): Likewise.
9463 (linux_mod_SOURCES): Likewise.
9464 (linux_mod_CFLAGS): Likewise.
9465 (linux_mod_LDFLAGS): Likewise.
9466 (nand_mod_SOURCES): Likewise.
9467 (nand_mod_CFLAGS): Likewise.
9468 (nand_mod_LDFLAGS): Likewise.
9470 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
9471 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
9472 type property. (nand device in olpc don't have this property)
9474 * include/grub/disk.h (grub_disk_dev_id): New macro
9475 GRUB_DISK_DEVICE_NAND_ID.
9477 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
9479 (grub_rescue_cmd_initrd): Likewise.
9481 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
9482 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
9483 ofw_cif_handler and ofw_idt, adjust padding number.
9485 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
9486 GRUB_MACHINE_IEEE1275 is defined.
9488 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
9489 Use NESTED_FUNC_ATTR attribute on the hook parameter.
9491 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
9492 on nested function heap_init.
9493 (grub_upper_mem): New variable for i386-ieee1275.
9494 (grub_get_extended_memory): New function for i386-ieee1275.
9495 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
9497 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
9498 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
9501 * loader/i386/ieee1275/linux.c: New file.
9503 * loader/i386/ieee1275/linux_normal.c: New file.
9505 * disk/ieee1275/nand.c: New file.
9507 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
9509 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
9511 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
9513 2008-04-18 Robert Millan <rmh@aybabtu.com>
9515 Restructures early code path on ieee1275 to unify grub_main() as
9516 the first C function that is executed in every platform.
9518 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
9519 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
9521 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
9522 * kern/ieee1275/cmain.c (cmain): Rename to ...
9523 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
9524 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
9527 2008-04-18 Robert Millan <rmh@aybabtu.com>
9529 * util/update-grub.in: Fix syntax error when setting
9530 `GRUB_PRELOAD_MODULES'.
9531 Reported by Stephane Chazelas <stephane@artesyncp.com>
9533 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
9535 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
9536 section into account, newer toolchains generate unique build ids
9537 * configure.ac: remove the test for --build-id=none acceptance,
9538 we want build ids to be preserved
9539 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
9540 far from other sections don't cause the raw binary images grow
9543 2008-04-15 Robert Millan <rmh@aybabtu.com>
9545 * disk/lvm.c: Update copyright year.
9546 * kern/misc.c: Likewise.
9548 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
9550 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
9551 there is no memory left for physical volume name.
9553 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
9555 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
9556 volume name mapping to support bigger than 9 character names properly.
9558 2008-04-13 Robert Millan <rmh@aybabtu.com>
9560 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
9561 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
9563 2008-04-13 Christian Franke <franke@computer.org>
9565 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
9566 to create a floppy emulation boot CD when non emulation mode
9568 Enable Joliet CD filesystem extension.
9570 2008-04-13 Robert Millan <rmh@aybabtu.com>
9572 * kern/misc.c (grub_strncat): Fix off-by-one error.
9573 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
9575 * kern/env.c (grub_env_context_close): Clear current context, not
9577 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
9579 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
9581 2008-04-13 Robert Millan <rmh@aybabtu.com>
9583 Improve robustness when handling LVM.
9585 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
9586 (and leave `*p' unmodified).
9587 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
9589 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
9590 iterating through it.
9591 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
9593 (grub_lvm_scan_device): Check the return value (and fail gracefully
9594 when due) on each grub_lvm_getvalue() or grub_strstr() call.
9595 Don't assume `vg->pvs != NULL' when iterating through it.
9597 2008-04-13 Robert Millan <rmh@aybabtu.com>
9599 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
9600 * genmk.rb (partmap): New variable.
9601 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
9602 (#{partmap}): New target rule.
9603 * genpartmaplist.sh: New file.
9604 * Makefile.in (pkglib_DATA): Add partmap.lst.
9605 (partmap.lst): New target rule.
9606 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
9607 modules (including all partition maps), instead of preloading them.
9609 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
9611 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
9612 `linux-boot-prober' (if installed) to detect other operating
9613 systems which are installed on the computer and add them to
9615 * conf/common.rmk: Build and install 30_os-prober.
9617 2008-04-12 Robert Millan <rmh@aybabtu.com>
9619 * kern/powerpc/ieee1275/init.c: Move from here ...
9620 * kern/ieee1275/init.c: ... to here. Update all users.
9622 * kern/powerpc/ieee1275/cmain.c: Move from here ...
9623 * kern/ieee1275/cmain.c: ... to here. Update all users.
9625 * kern/powerpc/ieee1275/openfw.c: Move from here ...
9626 * kern/ieee1275/openfw.c: ... to here. Update all users.
9628 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
9629 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
9631 2008-04-10 Pavel Roskin <proski@gnu.org>
9633 * configure.ac: Always use "_cv_" in cache variables for
9634 compatibility with Autoconf 2.62.
9636 2008-04-07 Robert Millan <rmh@aybabtu.com>
9638 Revert grub/machine/init.h addition by Pavel (since it breaks on
9639 i386-ieee1275 and others):
9640 * util/i386/pc/misc.c: Remove grub/machine/init.h.
9641 * util/powerpc/ieee1275/misc.c: Likewise.
9643 2008-04-07 Robert Millan <rmh@aybabtu.com>
9645 * util/grub-probe.c (probe): Improve error message.
9647 2008-04-07 Robert Millan <rmh@aybabtu.com>
9649 * util/biosdisk.c (read_device_map): Skip devices that don't exist
9650 (this prevents the presence of a bogus entry from ruining the whole
9653 2008-04-06 Pavel Roskin <proski@gnu.org>
9655 * util/biosdisk.c: Include grub/util/biosdisk.h.
9656 * util/grub-fstest.c (execute_command): Make static.
9657 * util/grub-mkdevicemap.c (check_device): Likewise.
9658 * util/i386/pc/misc.c: Include grub/machine/init.h.
9659 * util/powerpc/ieee1275/misc.c: Likewise.
9660 * util/lvm.c: Include grub/util/lvm.h.
9661 * util/misc.c: Include grub/kernel.h, grub/misc.h and
9663 * util/raid.c: Include grub/util/raid.h.
9664 (grub_util_getdiskname): Make static.
9666 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
9667 grub_hostfs_fini(), as they are called from grub_init_all() and
9668 grub_fini_all() respectively. This fixes an infinite loop in
9669 grub-fstest due to double registration of hostfs.
9670 Reported by Christian Franke <Christian.Franke@t-online.de>
9672 2008-04-05 Pavel Roskin <proski@gnu.org>
9674 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
9675 all 8 functions. Otherwise, probe function 0 only.
9677 2008-04-04 Pavel Roskin <proski@gnu.org>
9679 * commands/lspci.c (grub_lspci_iter): Print the bus number
9682 * commands/lspci.c (grub_pci_classes): Fix typos.
9683 (grub_lspci_iter): Don't print func twice. Print vendor ID
9684 before device ID, as it's normally done.
9686 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
9687 Fix signedness warnings.
9688 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
9690 * util/ieee1275/get_disk_name.c: Include config.h so that
9691 _GNU_SOURCE is defined and getline() is declared. Mark an
9692 unused argument as such. Fix a signedness warning.
9694 2008-04-02 Pavel Roskin <proski@gnu.org>
9696 * genkernsyms.sh.in: Use more robust assignments for CC and
9697 srcdir. Quote srcdir.
9698 * gensymlist.sh.in: Likewise. Assert at the compile time that
9699 the symbol table is not empty.
9701 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
9702 * fs/cpio.c (grub_cpio_read): Likewise.
9704 2008-04-01 Pavel Roskin <proski@gnu.org>
9706 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
9707 * disk/host.c (grub_host_open): Likewise.
9708 * disk/loopback.c (grub_loopback_open): Likewise.
9709 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
9710 disk->id as in disk/host.c, not a multi-character constant.
9712 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
9713 later is obsolete, potentially dangerous and sets a bad example.
9714 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
9715 * util/misc.c (grub_util_get_image_size): Likewise.
9717 * disk/loopback.c (options): Improve help for "--partitions".
9719 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
9720 options to align them with the short options, e.g. "echo -e".
9722 2008-03-31 Bean <bean123ch@gmail.com>
9724 * video/reader/png.c (grub_png_data): New member is_16bit and
9726 (grub_png_decode_image_header): Detect 16 bit png image.
9727 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
9728 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
9729 (grub_video_reader_png): Release memory occupied by image_data.
9731 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
9733 (grub_nfs_mount): Skip the test for sector per cluster.
9735 * include/grub/ntfs.h (MAX_SPC): Removed.
9737 2008-03-31 Bean <bean123ch@gmail.com>
9739 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
9740 (grub_probe_SOURCES): Add fs/afs.c.
9741 (grub_fstest_SOURCES): Likewise.
9742 (afs_mod_SOURCES): New variable.
9743 (afs_mod_CFLAGS): Likewise.
9744 (afs_mod_LDFLAGS): Likewise.
9746 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
9747 (grub_emu_SOURCES): Likewise.
9749 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9751 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9753 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
9755 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9757 * fs/afs.c: New file.
9759 2008-03-30 Pavel Roskin <proski@gnu.org>
9761 * disk/host.c: Include grub/misc.h to fix a warning.
9762 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
9763 warnings about implicit declarations.
9765 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
9767 * include/grub/i386/loader.h: Change declaration of
9768 grub_linux_boot() to match what grub_loader_set() expects.
9769 * util/getroot.c (grub_guess_root_device): Return const char* to
9771 * util/grub-probe.c (probe): Fix a warning about uninitialized
9772 abstraction_name variable.
9773 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
9774 second argument as unused to fix a warning.
9776 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
9777 missing grub_error() call.
9779 * util/update-grub_lib.in: Define datarootdir, since Autoconf
9780 2.60 and newer uses it to define datadir.
9782 * commands/sleep.c: Fix warning about implicit declaration.
9783 * disk/memdisk.c: Likewise.
9784 * loader/aout.c: Likewise.
9785 * loader/i386/bsd_normal.c: Likewise.
9786 * util/grub-probe.c: Likewise.
9788 * commands/i386/cpuid.c (has_longmode): Make static.
9789 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
9790 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
9792 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
9793 GDT. This is more robust, as %ds can change.
9794 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
9795 calling real_to_prot().
9796 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
9798 2008-03-28 Pavel Roskin <proski@gnu.org>
9800 * kern/i386/pc/startup.S: Assert that uncompressed functions
9801 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
9802 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
9803 code, as they push parts of the code (error handlers) beyond
9804 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
9805 code as correctness and size.
9807 2008-03-28 Pavel Roskin <proski@gnu.org>
9809 * kern/i386/pc/startup.S
9810 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
9811 data block address to the real mode, keep offset minimal. This
9812 works around a bug in AWARD BIOS on old Athlon systems, which
9813 makes CD detection hang.
9815 2008-03-26 Pavel Roskin <proski@gnu.org>
9817 * normal/color.c (grub_parse_color_name_pair): Make `name' a
9819 * include/grub/normal.h: Add grub_parse_color_name_pair()
9822 2008-03-24 Bean <bean123ch@gmail.com>
9824 * disk/i386/pc/biosdisk.c (cd_start): Removed.
9825 (cd_count): Removed.
9826 (cd_drive): New variable.
9827 (grub_biosdisk_get_drive): Don't check for (cdN) device.
9828 (grub_biosdisk_call_hook): Likewise.
9829 (grub_biosdisk_iterate): Change cdrom detection method.
9830 (grub_biosdisk_open): Replace cd_start with cd_drive.
9831 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
9832 detect cdrom device.
9834 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
9836 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
9837 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
9838 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
9839 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
9840 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
9841 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
9842 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
9843 (grub_biosdisk_cdrp): New structure.
9844 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
9846 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
9848 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
9851 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
9854 2008-03-20 Robert Millan <rmh@aybabtu.com>
9856 Remove 2 TiB limit in ata.mod.
9857 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
9858 (grub_ata_dumpinfo): Print sector count with 0x%llx.
9859 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
9860 grub_uint64_t instead of grub_uint32_t.
9862 2008-03-05 Bean <bean123ch@gmail.com>
9864 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
9865 (grub_multiboot): Set boot device.
9867 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
9869 2008-03-02 Bean <bean123ch@gmail.com>
9871 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
9874 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
9876 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
9879 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
9882 * docs/fdl.texi: New file.
9884 * docs/mdate-sh: New file. Copied from gnulib.
9885 * docs/texinfo.tex: Likewise.
9887 * config.guess: Updated from gnulib.
9888 * install-sh: Likewise.
9890 2008-02-28 Robert Millan <rmh@aybabtu.com>
9892 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
9893 (aout_mod_SOURCES): New variable.
9894 (aout_mod_CFLAGS): Likewise.
9895 (aout_mod_LDFLAGS): Likewise.
9897 * conf/i386-ieee1275.rmk: Likewise.
9899 2008-02-28 Robert Millan <rmh@aybabtu.com>
9901 * util/update-grub.in: Reorganise terminal validity check. Accept
9902 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
9903 Based on suggestion by Franklin PIAT.
9905 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
9907 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
9909 * util/getroot.c (grub_util_check_block_device): New function that
9910 returns the given argument if it is a block device and returns NULL else.
9911 * util/grub-probe.c (argument_is_device): New variable.
9912 (probe): Promote device_name from a variable to an argument. Receive
9913 device_name from grub_util_check_block_device() if path is NULL and from
9914 grub_guess_root_device() else. Do not free() device_name anymore.
9915 (options): Introduce new parameter '-d, --device'.
9916 (main): Add description of the new parameter to the help screen.
9917 Rename path variable to argument. Set argument_is_device if the '-d'
9918 option is given. Pass argument to probe() depending on
9921 2008-02-24 Bean <bean123ch@gmail.com>
9923 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
9924 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
9925 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
9926 (GRUB_ISO9660_VOLDESC_PART): Likewise.
9927 (GRUB_ISO9660_VOLDESC_END): Likewise.
9928 (grub_iso9660_primary_voldesc): New member escape.
9929 (grub_iso9660_data): New member joliet.
9930 (grub_iso9660_convert_string): New function.
9931 (grub_iso9660_mount): Detect joliet extension.
9932 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
9933 (grub_iso9660_iso9660_label): Likewise.
9935 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
9936 (grub_setup_SOURCES): Add fs/udf.c.
9937 (grub_fstest_SOURCES): Likewise.
9938 (udf_mod_SOURCES): New variable.
9939 (udf_mod_CFLAGS): Likewise.
9940 (udf_mod_LDFLAGS): Likewise.
9942 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
9943 (grub_emu_SOURCES): Likewise.
9945 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9947 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9949 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
9951 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9953 * fs/udf.c: New file.
9955 2008-02-24 Robert Millan <rmh@aybabtu.com>
9957 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
9958 (normal/lexer.c_DEPENDENCIES): New variables.
9959 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
9960 (normal/lexer.c_DEPENDENCIES): Likewise.
9961 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
9962 (normal/lexer.c_DEPENDENCIES): Likewise.
9963 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
9964 (normal/lexer.c_DEPENDENCIES): Likewise.
9965 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
9966 (normal/lexer.c_DEPENDENCIES): Likewise.
9967 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
9968 (normal/lexer.c_DEPENDENCIES): Likewise.
9970 2008-02-23 Robert Millan <rmh@aybabtu.com>
9972 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
9973 since they were intended to be in hex. This didn't break previously
9974 because of a bug in gpt_partition_map_iterate() (see below).
9976 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
9977 when checking the validity of GPT header.
9978 Remove `partno', since it always provides the same information as `i'.
9980 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
9982 * include/grub/efi/time.h: Fix a wrong comment.
9984 2008-02-19 Pavel Roskin <proski@gnu.org>
9986 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
9989 2008-02-19 Bean <bean123ch@gmail.com>
9991 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
9992 (aout_mod_SOURCES): New variable.
9993 (aout_mod_CFLAGS): Likewise.
9994 (aout_mod_LDFLAGS): Likewise.
9995 (_bsd_mod_SOURCES): New variable.
9996 (_bsd_mod_CFLAGS): Likewise.
9997 (_bsd_mod_LDFLAGS): Likewise.
9998 (bsd_mod_SOURCES): New variable.
9999 (bsd_mod_CFLAGS): Likewise.
10000 (bsd_mod_LDFLAGS): Likewise.
10002 * include/grub/aout.h: New file.
10004 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
10006 * include/grub/i386/bsd.h: New file.
10008 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
10011 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
10012 function is called, so that it's possible to change it inside the hook.
10013 (grub_elf64_load): Likewise.
10014 (grub_elf_file): Don't close the file if elf header is not found.
10015 (grub_elf_close): Close the file if grub_elf_file fails (The new
10016 grub_elf_file won't close it).
10017 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
10018 (grub_elf64_size): Likewise.
10020 * kern/i386/loader.S (grub_unix_real_boot): New function.
10022 * loader/aout.c: New file.
10024 * loader/i386/bsd.c: New file.
10026 * loader/i386/bsd_normal.c: New file.
10028 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
10030 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
10031 can test other formats.
10033 2008-02-19 Robert Millan <rmh@aybabtu.com>
10035 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
10036 (grub_gpt_partition_type_empty): Redefine with macro from
10037 `<grub/gpt_partition.h>'.
10038 (gpt_partition_map_iterate): Adjust partition type comparison.
10040 Export `entry' as partmap-specific `part.data' struct.
10041 (grub_gpt_header, grub_gpt_partentry): Move from here ...
10043 * include/grub/gpt_partition.h (grub_gpt_header)
10044 (grub_gpt_partentry): ... to here (new file).
10046 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
10048 (grub_gpt_partition_type_bios_boot): New const variable, defined
10049 with macro from `<grub/gpt_partition.h>'.
10051 (setup): Replace `first_start' with `embed_region', which keeps
10052 track of the embed region (and is partmap-agnostic).
10054 Replace find_first_partition_start() with find_usable_region(),
10055 which finds a usable region for embedding using partmap-specific
10056 knowledge (supports PC/MSDOS and GPT).
10058 Fix all assumptions that the embed region start at sector 1, using
10059 `embed_region.start' from now on. Similarly, use `embed_region.end'
10060 rather than `first_start' to calculate available size.
10062 In grub_util_info() message, replace "into after the MBR" with an
10063 indication of the specific sector our embed region starts at.
10065 2008-02-19 Robert Millan <rmh@aybabtu.com>
10067 * DISTLIST: Replace `commands/ieee1275/halt.c' and
10068 `commands/ieee1275/reboot.c' with `commands/halt.c' and
10069 `commands/reboot.c'.
10070 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
10071 (halt_mod_SOURCES): Likewise.
10072 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
10073 (halt_mod_SOURCES): Likewise.
10075 2008-02-17 Christian Franke <franke@computer.org>
10077 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
10079 2008-02-17 Robert Millan <rmh@aybabtu.com>
10081 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
10082 set `first_start' to 0 for non-PC/MSDOS partition maps.
10084 2008-02-16 Robert Millan <rmh@aybabtu.com>
10086 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
10087 do not assume partition map is PC/MSDOS before performing checks that
10088 are specific to that layout.
10090 2008-02-13 Robert Millan <rmh@aybabtu.com>
10092 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
10093 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
10094 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
10096 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
10098 * configure.ac: Only a cosmetic change on the handling of
10099 -fno-stack-protector.
10101 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
10103 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
10104 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
10106 (grub_install_SOURCES): Add halt.mod and reboot.mod.
10107 (halt_mod_SOURCES): New variable.
10108 (halt_mod_CFLAGS): Likewise.
10109 (halt_mod_LDFLAGS): Likewise.
10110 (reboot_mod_SOURCES): Likewise.
10111 (reboot_mod_CFLAGS): Likewise.
10112 (reboot_mod_LDFLAGS): Likewise.
10114 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
10115 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
10117 (halt_mod_SOURCES): Likewise.
10118 (reboot_mod_SOURCES): Likewise.
10120 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
10121 commands/i386/pc/reboot.c by commands/reboot.c.
10122 (reboot_mod_SOURCES): Likewise.
10124 * commands/i386/pc/reboot.c: merge this file ...
10126 * commands/ieee1275/reboot.c: ... and this file ...
10128 * commands/reboot.c: ... to this file.
10129 Add some precompiler directive to include the correct header for
10132 * commands/ieee1275/halt.c: move this file ...
10134 * commands/halt.c: ... to here.
10135 Add some precompiler directive to include the correct header for
10138 * include/grub/efi/efi.h (grub_reboot): New function declaration.
10139 (grub_halt): Likewise.
10141 * kern/efi/efi.c (grub_reboot): New function.
10142 (grub_halt): Likewise.
10144 2008-02-12 Robert Millan <rmh@aybabtu.com>
10146 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
10147 /dev (like it is done for /dev/mapper). This doesn't provide support
10148 for EVMS, but at least it is now easy to identify the problem when it
10151 2008-02-11 Robert Millan <rmh@aybabtu.com>
10153 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
10154 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
10155 comparing it with -1, not 0.
10157 2008-02-10 Robert Millan <rmh@aybabtu.com>
10159 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
10161 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10162 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
10164 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
10165 `disk/lvm.c' to the end of the list.
10166 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10167 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
10169 2008-02-10 Robert Millan <rmh@aybabtu.com>
10171 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
10172 grub_print_error() instead. This will let user know why we're entering
10174 Based on suggestions from Sam Morris.
10176 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
10178 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
10179 on remaining N args, instead of "--" arg N times.
10181 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
10183 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
10184 (fill_with_default_glyph): Changed to use unknown_glyph for fill
10185 pattern for unknown glyphs.
10187 2008-02-09 Robert Millan <rmh@aybabtu.com>
10189 * configure.ac: Probe for `help2man'.
10190 * Makefile.in (builddir): New variable.
10191 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
10192 or otherwise add a few flags/options to it.
10193 (install-local): For every executable utility or script that is
10194 installed, invoke $(HELP2MAN) to install a manpage based on --help
10197 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
10198 that it doesn't prevent --help from working in build tree.
10200 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
10201 with `bug-grub@gnu.org'.
10202 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
10203 * util/update-grub.in (usage): New function.
10204 Implement proper argument check, with support for --help and --version
10205 (as well as existing -y).
10207 2008-02-09 Christian Franke <franke@computer.org>
10209 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
10210 avoid overwriting previous output.
10211 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
10213 2008-02-09 Robert Millan <rmh@aybabtu.com>
10215 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
10218 2008-02-09 Robert Millan <rmh@aybabtu.com>
10220 * commands/sleep.c: New file.
10221 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
10222 (sleep_mod_SOURCES): New variable.
10223 (sleep_mod_CFLAGS): Likewise.
10224 (sleep_mod_LDFLAGS): Likewise.
10226 2008-02-09 Robert Millan <rmh@aybabtu.com>
10228 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
10229 situations in which we can deduce the RAID size and the superblock
10232 2008-02-09 Robert Millan <rmh@aybabtu.com>
10234 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
10235 and return a grub_diskmemberlist_t composed of LVM physical volumes.
10236 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
10238 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
10239 and return a grub_diskmemberlist_t composed of physical array members.
10240 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
10242 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
10244 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
10245 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
10246 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
10248 * util/grub-probe.c (probe): Move partmap probing code from here ...
10249 (probe_partmap): ... to here.
10250 (probe): Use probe_partmap() once for the disk we're probing, and
10251 additionally, when such disk contains a memberlist() struct member,
10252 once for each disk that is contained in the structure returned by
10255 2008-02-09 Robert Millan <rmh@aybabtu.com>
10257 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
10258 environment variable to 'all' in order to obtain debug output from
10260 * util/i386/pc/grub-setup.c (main): Likewise.
10262 2008-02-08 Robert Millan <rmh@aybabtu.com>
10264 * disk/raid.c (grub_raid_scan_device): Check for
10265 `array->device[sb.this_disk.number]' rather than for
10266 `array->device[sb.this_disk.number]->name', since the latter is not
10267 guaranteed to be accessible.
10269 2008-02-08 Robert Millan <rmh@aybabtu.com>
10271 * disk/raid.c: Update copyright.
10272 * fs/cpio.c: Likewise.
10273 * include/grub/raid.h: Likewise.
10274 * loader/i386/pc/multiboot.c: Likewise.
10275 * util/hostfs.c: Likewise.
10277 2008-02-08 Robert Millan <rmh@aybabtu.com>
10279 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
10280 to a grub_disk_t array.
10281 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
10283 (grub_raid_scan_device): Replace `device[x].name' accesses with
10284 `device[x]->name'. Simplify initialization of `array->device[x]'.
10286 2008-02-08 Robert Millan <rmh@aybabtu.com>
10288 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
10289 grub_dprintf() calls.
10290 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
10293 2008-02-07 Christian Franke <franke@computer.org>
10295 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
10296 instead of fseek and ftell to support large files.
10297 (grub_hostfs_read): Likewise.
10299 2008-02-07 Robert Millan <rmh@aybabtu.com>
10301 Patch from Jeroen Dekkers.
10302 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
10303 failure, since successfully reading all array members might not be
10306 2008-02-06 Robert Millan <rmh@aybabtu.com>
10308 * util/grub-probe.c (probe): Simplify partmap probing (with the
10309 assumption that the first word up to the underscore equals to
10312 2008-02-06 Christian Franke <franke@computer.org>
10314 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
10315 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
10316 last block of a cpio or tar stream.
10317 Check for "TRAILER!!!" instead of any empty data
10318 block to detect last block of a cpio stream.
10319 (grub_cpio_dir): Fix constness of variable np.
10320 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
10321 cpio or tar trailer is detected. This fixes a crash
10322 on open of a non existing file.
10324 2008-02-05 Bean <bean123ch@gmail.com>
10326 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
10328 (grub_multiboot_load_elf64): Likewise.
10329 (grub_multiboot): Initialize mbi structure.
10331 * util/grub-fstest.c: Don't include unused header file script.h.
10333 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
10335 (grub_fstest_SOURCES): Likewise.
10337 2008-02-05 Robert Millan <rmh@aybabtu.com>
10339 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
10340 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
10341 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
10342 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
10344 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
10345 (translation_table): Replace hardcoded values with macros
10346 provided by `<grub/term.h>'.
10348 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
10349 (keyboard_map): Correct/add a few values, with macros provided
10350 by `<grub/term.h>'.
10351 (keyboard_map_shift): Zero values that don't differ from their
10352 `keyboard_map' equivalents.
10353 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
10354 Discard the second scan code that is always sent by Caps lock.
10355 Only use `keyboard_map_shift' when it provides a non-zero value,
10356 otherwise fallback to `keyboard_map'.
10358 2008-02-04 Bean <bean123ch@gmail.com>
10360 * Makefile.in (enable_grub_fstest): New variable.
10362 * conf/common.rmk (grub_fstest_init.lst): New rule.
10363 (grub_fstest_init.h): Likewise.
10364 (grub_fstest_init.c): Likewise.
10365 (util/grub-fstest.c_DEPENDENCIES): New variable.
10366 (grub_fstest_SOURCES): Likewise.
10368 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
10370 * util/grub-fstest.c: New file.
10372 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
10374 Make grub-setup handle a separate root device.
10376 * util/i386/pc/grub-setup.c (setup): Always open the root device,
10377 so that the root device can be compared with the destination
10379 When embedding the core image, if the root and destination devices
10380 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
10382 When not embedding, set ROOT_DRIVE to 0xFF.
10384 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
10386 Add support for having a grub directory in a different drive. This
10387 is still only the data handling part.
10389 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
10390 (codestart): Save %dh in GRUB_ROOT_DRIVE.
10391 (grub_root_drive): New variable.
10393 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
10394 instead of GRUB_BOOT_DRIVE to construct a device name. Set
10395 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
10398 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
10400 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
10402 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
10404 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
10405 is bogus, because PXE booting does not specify any drive
10408 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
10409 am not sure if this is really correct.
10411 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
10412 is always identical to the boot drive when booting from a CD.
10414 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
10416 (root_drive): New variable.
10417 (real_start): Unconditionally set %dh to ROOT_DRIVE.
10418 (setup_sectors): Push %dx right after popping it, because %dh will
10420 (copy_buffer): Restore %dx.
10422 2008-02-03 Robert Millan <rmh@aybabtu.com>
10424 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
10425 use `cdboot.img' for cdrom images.
10427 2008-02-03 Robert Millan <rmh@aybabtu.com>
10429 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
10430 only setup gfxterm when `font' command has succeeded.
10432 2008-02-03 Robert Millan <rmh@aybabtu.com>
10434 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
10435 (grub_rescue_cmd_multiboot_loader)
10436 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
10438 2008-02-03 Pavel Roskin <proski@gnu.org>
10440 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
10441 %edx and %esi from stack only after grub_gate_a20() is called.
10442 grub_gate_a20() clobbers %edx.
10444 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
10446 * configure.ac (AC_INIT): Bumped to 1.96.
10448 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
10449 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
10450 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
10451 video/readers/png.c.
10453 2008-02-03 Bean <bean123ch@gmail.com>
10455 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
10456 (cdboot_img_SOURCES): New variable.
10457 (cdboot_img_ASFLAGS): New variable.
10458 (cdboot_img_LDFLAGS): New variable.
10460 * boot/i386/pc/cdboot.S: New file.
10462 * disk/i386/pc/biosdisk.c (cd_start): New variable.
10463 (cd_count): Likewise.
10464 (grub_biosdisk_get_drive): Add support for cd device.
10465 (grub_biosdisk_call_hook): Likewise.
10466 (grub_biosdisk_iterate): Likewise.
10467 (grub_biosdisk_open): Likewise.
10468 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
10469 (grub_biosdisk_rw): Support reading from cd device.
10470 (GRUB_MOD_INIT): Iterate cd devices.
10472 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
10473 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
10474 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
10476 * kern/i386/pc/init.c (make_install_device): Check for cd device.
10478 2008-02-02 Robert Millan <rmh@aybabtu.com>
10480 * commands/read.c: New file.
10481 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
10482 (read_mod_SOURCES): New variable.
10483 (read_mod_CFLAGS): Likewise.
10484 (read_mod_LDFLAGS): Likewise.
10486 2008-02-02 Robert Millan <rmh@aybabtu.com>
10488 * normal/main.c (grub_normal_execute): Check for `menu->size' when
10489 determining whether menu has to be displayed.
10491 2008-02-02 Marco Gerards <marco@gnu.org>
10493 * bus/pci.c: New file.
10495 * include/grub/pci.h: Likewise.
10497 * include/grub/i386/pc/pci.h: Likewise.
10499 * commands/lspci.c: Likewise.
10501 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
10503 (pci_mod_SOURCES): New variable.
10504 (pci_mod_CFLAGS): Likewise.
10505 (pci_mod_LDFLAGS): Likewise.
10506 (lspci_mod_SOURCES): Likewise.
10507 (lspci_mod_CFLAGS): Likewise.
10508 (lspci_mod_LDFLAGS): Likewise.
10510 2008-02-02 Bean <bean123ch@gmail.com>
10512 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
10513 (grub_ufs_get_file_block): Fix indirect block calculation problem.
10515 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
10516 (grub_xfs_btree_node): New structure.
10517 (grub_xfs_btree_root): New structure.
10518 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
10519 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
10520 (GRUB_XFS_EXTENT_BLOCK): Likewise.
10521 (GRUB_XFS_EXTENT_SIZE): Likewise.
10522 (grub_xfs_read_block): Support btree format type.
10523 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
10524 Use directory block as basic unit.
10526 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
10528 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
10529 __attribute__ ((__regparm__ (1))).
10531 2008-02-01 Robert Millan <rmh@aybabtu.com>
10533 Correct a mistake in previous commit.
10535 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
10537 (normal/command.c_DEPENDENCIES): New variable.
10539 2008-02-01 Robert Millan <rmh@aybabtu.com>
10541 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
10543 (normal/command.c_DEPENDENCIES): New variable.
10544 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
10545 * conf/i386-ieee1275.rmk: Likewise.
10546 * conf/i386-linuxbios.rmk: Likewise.
10547 * conf/i386-pc.rmk: Likewise.
10548 * conf/sparc64-ieee1275.rmk: Likewise.
10549 * conf/powerpc-ieee1275.rmk: Likewise.
10550 (grub_emu_SOURCES): Add `fs/fshelp.c'.
10552 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
10554 2008-02-01 Robert Millan <rmh@aybabtu.com>
10556 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
10557 call at beginning of function.
10559 2008-01-31 Pavel Roskin <proski@gnu.org>
10561 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
10562 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
10563 (grub_mkrescue_SOURCES): Likewise.
10564 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
10566 2008-01-30 Robert Millan <rmh@aybabtu.com>
10568 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
10569 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
10570 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
10571 (grub_probe_SOURCES): ... to here.
10573 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
10574 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
10575 * conf/i386-ieee1275.rmk: Likewise.
10576 * conf/i386-linuxbios.rmk: Likewise.
10577 * conf/powerpc-ieee1275.rmk: Likewise.
10579 2008-01-30 Tristan Gingold <gingold@free.fr>
10581 * kern/rescue.c: Silently accept empty lines.
10583 2008-01-29 Bean <bean123ch@gmail.com>
10585 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
10586 (real_code_2): Code cleanup and change comment style.
10587 (move_memory): Avoid using 32-bit address mode.
10589 2008-01-29 Bean <bean123ch@gmail.com>
10591 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
10592 (png_mod_SOURCES): New variable.
10593 (png_mod_CFLAGS): Likewise.
10594 (png_mod_LDFLAGS): Likewise.
10596 * video/readers/png.c: New file.
10598 2008-01-28 Robert Millan <rmh@aybabtu.com>
10600 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
10601 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
10602 `ifndef GRUB_MOD_GAP' hack.
10603 * util/elf/grub-mkimage.c (add_segments): Likewise.
10605 2008-01-27 Robert Millan <rmh@aybabtu.com>
10607 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
10608 `GRUB_MOD_GAP' for platforms in which it's not defined.
10609 * util/elf/grub-mkimage.c (add_segments): Likewise.
10611 2008-01-27 Robert Millan <rmh@aybabtu.com>
10613 Get grub-emu to build again (including parallel builds).
10615 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
10617 (util/grub-emu.c_DEPENDENCIES): ... this, ...
10618 (normal/execute.c_DEPENDENCIES): ... this, ...
10619 (grub-emu_DEPENDENCIES): ... and this.
10621 * conf/i386-efi.rmk: Likewise.
10622 * conf/i386-linuxbios.rmk: Likewise.
10623 * conf/i386-ieee1275.rmk: Likewise.
10624 * conf/powerpc-ieee1275.rmk: Likewise.
10625 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
10627 2008-01-27 Robert Millan <rmh@aybabtu.com>
10629 * NEWS: Add a few items.
10631 2008-01-27 Robert Millan <rmh@aybabtu.com>
10633 Fix parallel builds with grub-emu. Based on earlier commit for
10634 grub-probe and grub-setup.
10636 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
10637 (util/grub-emu.c_DEPENDENCIES): ... this.
10638 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
10639 (util/grub-emu.c_DEPENDENCIES): ... this.
10640 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
10641 (util/grub-emu.c_DEPENDENCIES): ... this.
10642 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
10643 (util/grub-emu.c_DEPENDENCIES): ... this.
10644 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
10645 (util/grub-emu.c_DEPENDENCIES): ... this.
10647 2008-01-27 Pavel Roskin <proski@gnu.org>
10649 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
10650 to create a gap between _end and the modules added to the image
10651 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
10652 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
10653 * util/elf/grub-mkimage.c (add_segments): Likewise.
10655 2008-01-26 Pavel Roskin <proski@gnu.org>
10657 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
10658 just return an error.
10660 2008-01-26 Bean <bean123ch@gmail.com>
10662 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
10663 (grub_reiserfs_get_item): Save offset of the next item.
10664 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
10666 2008-01-25 Robert Millan <rmh@aybabtu.com>
10668 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
10669 make all filesystem sources appear together (possibly fixing omissions
10671 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10672 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10673 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10674 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10676 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
10678 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
10679 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
10680 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
10681 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
10683 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
10684 (probe): Add a sanity check to make sure of our ability to read
10685 requested files when probing for filesystem type.
10687 * genmk.rb: Update copyright year (2007).
10689 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
10690 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
10691 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
10692 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
10693 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
10694 : Remove function prototypes.
10696 2008-01-25 Robert Millan <rmh@aybabtu.com>
10698 Revert my previous commits (based on wrong assumption of how grub_errno
10701 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
10702 * kern/file.c (grub_file_open): Likewise.
10704 2008-01-24 Pavel Roskin <proski@gnu.org>
10706 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
10707 that hang if GRUB tries to setup colors.
10708 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
10709 colors for firmwares that don't support it.
10710 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
10711 Recognize Open Hack'Ware, set flags to work around its
10714 2008-01-24 Robert Millan <rmh@aybabtu.com>
10716 * kern/file.c (grub_file_open): Do not account previous failures of
10717 unrelated functions when grub_errno is checked for.
10718 Reported by Oleg Strikov.
10720 2008-01-24 Bean <bean123ch@gmail.com>
10722 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
10723 (grub_ufs_sblock): New member volume name.
10724 (grub_ufs_find_file): Fix string copy bug.
10725 (grub_ufs_label): Implement this function properly.
10727 * fs/hfs.c (grub_hfs_cnid_type): New enum.
10728 (grub_hfs_iterate_records): Use the correct file number for extents
10729 and catalog file. Fix problem in next index calculation.
10730 (grub_hfs_find_node): Replace recursive function call with loop.
10731 (grub_hfs_iterate_dir): Replace recursive function call with loop.
10733 2008-01-23 Robert Millan <rmh@aybabtu.com>
10735 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
10736 `<grub/symbol.h>' and `<grub/multiboot.h>'.
10737 (grub_multiboot2_real_boot): New function prototype.
10739 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
10740 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
10742 * kern/i386/ieee1275/init.c (grub_os_area_addr)
10743 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
10745 2008-01-23 Robert Millan <rmh@aybabtu.com>
10747 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
10748 #ifdef'ed out grub_printf().
10750 2008-01-23 Robert Millan <rmh@aybabtu.com>
10752 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
10753 grub_dprintf calls, since they make "debug=all" mode unusable.
10754 (grub_console_checkkey): Likewise.
10756 2008-01-23 Robert Millan <rmh@aybabtu.com>
10758 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
10759 `term/i386/pc/at_keyboard.c'.
10760 (pkglib_MODULES): Add `serial.mod'.
10761 (serial_mod_SOURCES): New variable.
10762 (serial_mod_CFLAGS): Likewise.
10763 (serial_mod_LDFLAGS): Likewise.
10765 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
10766 `<grub/powerpc/ieee1275/console.h>'.
10767 (grub_keyboard_controller_init): New function prototype.
10768 (grub_console_checkkey): Likewise.
10769 (grub_console_getkey): Likewise.
10771 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
10774 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
10775 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
10777 2008-01-23 Robert Millan <rmh@aybabtu.com>
10779 * kern/i386/pc/init.c (make_install_device): When memdisk image is
10780 present, "(memdisk)/boot/grub" becomes the default prefix.
10782 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
10783 a memdisk tarball with all the modules. Add --overlay=DIR option that
10784 allows users to overlay additional files into the image.
10786 2008-01-23 Robert Millan <rmh@aybabtu.com>
10788 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
10789 and `machine/memory.h'.
10790 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
10791 (_multiboot_mod_SOURCES): New variable.
10792 (_multiboot_mod_CFLAGS): Likewise.
10793 (_multiboot_mod_LDFLAGS): Likewise.
10794 (multiboot_mod_SOURCES): Likewise.
10795 (multiboot_mod_CFLAGS): Likewise.
10796 (multiboot_mod_LDFLAGS): Likewise.
10798 * include/grub/i386/ieee1275/loader.h: New file.
10800 * include/grub/i386/ieee1275/machine.h: Likewise.
10802 * include/grub/i386/ieee1275/memory.h: Likewise.
10804 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
10805 variable declaration.
10806 (grub_os_area_size): Likewise.
10808 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
10809 (grub_lower_mem, grub_upper_mem): New variables.
10810 (grub_stop_floppy): New function (just to make
10811 grub_multiboot2_real_boot() happy).
10813 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
10814 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
10815 (grub_stop): New function.
10816 Include `"../realmode.S"' and `"../loader.S"'.
10818 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
10819 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
10821 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
10822 rely on grub_multiboot2_real_boot() for final boot.
10824 2008-01-22 Robert Millan <rmh@aybabtu.com>
10826 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
10827 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
10828 device that doesn't look like an SD card.
10829 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
10830 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
10831 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
10832 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
10835 2008-01-22 Robert Millan <rmh@aybabtu.com>
10837 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
10838 avoid claiming over our own code.
10840 2008-01-22 Bean <bean123ch@gmail.com>
10842 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
10843 (jpeg_mod_SOURCES): New variable.
10844 (jpeg_mod_CFLAGS): Likewise.
10845 (jpeg_mod_LDFLAGS): Likewise.
10847 * video/readers/jpeg.c : New file.
10849 2008-01-22 Bean <bean123ch@gmail.com>
10851 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
10852 there are no more items.
10854 2008-01-21 Robert Millan <rmh@aybabtu.com>
10856 * kern/mm.c (grub_mm_init_region): Improve debug message.
10858 2008-01-21 Robert Millan <rmh@aybabtu.com>
10860 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
10861 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
10863 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
10865 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
10866 Indicates start of upper memory.
10867 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
10868 (generate_image): Abort when image size is big enough to corrupt
10871 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
10872 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
10873 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
10874 instead of hardcoding 0xA0000.
10875 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
10876 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
10877 instead of hardcoding 0xA0000.
10879 2008-01-21 Robert Millan <rmh@aybabtu.com>
10881 * disk/memdisk.c (memdisk_size): New variable.
10882 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
10884 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
10885 image to dynamic memory.
10886 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
10887 `memdisk_size'. Free memdisk block.
10889 2008-01-21 Robert Millan <rmh@aybabtu.com>
10891 Fix detection of very small filesystems (like tar).
10893 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
10894 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
10895 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
10896 a problem with this disk).
10898 2008-01-21 Robert Millan <rmh@aybabtu.com>
10900 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
10901 on grub_biosdisk_rw_standard() error.
10903 2008-01-21 Robert Millan <rmh@aybabtu.com>
10905 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
10907 * kern/elf.c: Likewise.
10908 * kern/ieee1275/ieee1275.c: Likewise.
10909 * kern/powerpc/ieee1275/openfw.c: Likewise.
10910 * term/ieee1275/ofconsole.c: Likewise.
10912 2008-01-21 Robert Millan <rmh@aybabtu.com>
10914 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
10916 * include/grub/kernel.h (grub_arch_memdisk_addr)
10917 (grub_arch_memdisk_size): Moved from here ...
10919 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
10920 (grub_arch_memdisk_size): ... to here.
10922 2008-01-21 Robert Millan <rmh@aybabtu.com>
10924 Mostly based on bugfix from Bean.
10926 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
10927 attribute with hook() parameter.
10928 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
10930 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
10931 attribute with hook() parameter.
10932 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
10935 2008-01-21 Robert Millan <rmh@aybabtu.com>
10937 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
10938 (pkglib_MODULES): Add `memdisk.mod'.
10939 (memdisk_mod_SOURCES): New variable.
10940 (memdisk_mod_CFLAGS): Likewise.
10941 (memdisk_mod_LDFLAGS): Likewise.
10943 * disk/memdisk.c: New file.
10945 * include/grub/disk.h (grub_disk_dev_id): Add
10946 `GRUB_DISK_DEVICE_MEMDISK_ID'.
10948 * include/grub/i386/pc/kernel.h
10949 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
10950 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
10951 (grub_kernel_image_size): New variable declaration.
10952 (grub_total_module_size): Likewise.
10953 (grub_memdisk_image_size): Likewise.
10955 * include/grub/i386/pc/memory.h
10956 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
10958 * include/grub/kernel.h: Include `<grub/symbol.h>'.
10959 (grub_arch_memdisk_addr): New variable declaration.
10960 (grub_arch_memdisk_size): Likewise.
10962 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
10963 (grub_arch_memdisk_size): Likewise.
10965 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
10966 (codestart): Replace hardcoded `0x100000' with
10967 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
10969 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
10970 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
10971 not NULL, append the contents of the file it refers to, at the end of
10972 the compressed kernel image. Initialize `grub_memdisk_image_size'
10973 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
10974 (options): Add "memdisk"|'m' option.
10975 (main): Parse --memdisk|-m option, and pass user-provided path as
10976 parameter to generate_image().
10978 2008-01-20 Robert Millan <rmh@aybabtu.com>
10980 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
10981 grub_dprintf() calls from here ...
10982 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
10984 2008-01-20 Robert Millan <rmh@aybabtu.com>
10986 Fix detection of "real mode" when /options/real-mode? doesn't exist.
10988 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
10990 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
10991 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
10992 `GRUB_IEEE1275_FLAG_REAL_MODE'.
10993 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
10995 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
10996 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
10998 2008-01-19 Robert Millan <rmh@aybabtu.com>
11000 Get rid of confusing function (superseded by
11001 `grub_ieee1275_get_integer_property')
11002 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
11004 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
11006 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
11007 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
11008 in native endianness from grub_ieee1275_get_integer_property().
11010 2008-01-19 Robert Millan <rmh@aybabtu.com>
11012 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
11013 command after "shut-down", since implementations differ on which
11014 the command for halt is.
11016 2008-01-19 Robert Millan <rmh@aybabtu.com>
11018 * include/grub/i386/linuxbios/console.h: Add header protection.
11019 (grub_keyboard_controller_init): New function prototype.
11020 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
11021 (KEYBOARD_COMMAND_READ): Likewise.
11022 (KEYBOARD_COMMAND_WRITE): Likewise.
11023 (KEYBOARD_SCANCODE_SET1): Likewise.
11024 (grub_keyboard_controller_write): New function.
11025 (grub_keyboard_controller_read): Likewise.
11026 (grub_keyboard_controller_init): Likewise.
11028 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
11029 (grub_console_init): On coreboot/LinuxBIOS, call
11030 grub_keyboard_controller_init().
11032 2008-01-19 Robert Millan <rmh@aybabtu.com>
11034 PowerPC changes provided by Pavel Roskin.
11036 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
11037 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
11038 don't rely on cmain() doing it.
11039 * kern/i386/ieee1275/startup.S (_start): Store %eax in
11040 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
11042 2008-01-16 Robert Millan <rmh@aybabtu.com>
11044 * include/grub/i386/linuxbios/memory.h
11045 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
11046 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
11047 receive `table_header' as argument. Instead, probe for it in the
11048 known memory ranges where it can be present.
11049 (grub_available_iterate): Do not pass a fixed `table_header' address
11050 to grub_linuxbios_table_iterate().
11052 2008-01-15 Robert Millan <rmh@aybabtu.com>
11054 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
11055 * conf/i386-ieee1275.rmk: New file.
11056 * include/grub/i386/ieee1275/console.h: Likewise.
11057 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
11058 * include/grub/i386/ieee1275/kernel.h: Likewise.
11059 * include/grub/i386/ieee1275/time.h: Likewise.
11060 * kern/i386/ieee1275/init.c: Likewise.
11061 * kern/i386/ieee1275/startup.S: Likewise.
11063 2008-01-15 Robert Millan <rmh@aybabtu.com>
11065 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
11066 when pointers are 32-bit (but still do set it to one when they are
11069 2008-01-15 Robert Millan <rmh@aybabtu.com>
11071 * include/grub/ieee1275/ieee1275.h
11072 (grub_ieee1275_get_integer_property): New function prototype.
11074 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
11075 (grub_ieee1275_get_integer_property): New function. Wraps around
11076 grub_ieee1275_get_property() to handle endianness.
11078 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
11079 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
11081 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
11082 (grub_map): Likewise.
11083 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
11085 2008-01-15 Bean <bean123ch@gmail.com>
11087 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
11088 (grub_script_execute_cmdline): Reset grub_errno.
11090 * normal/main.c (read_config_file): Reset grub_errno.
11092 * normal/parse.y (script_init): New.
11093 (script): Move function and menuentry here.
11095 (command): Add delimiter at the end of command.
11096 (commands): Adjust to match the new command.
11097 (commandblock): Remove grub_script_lexer_record_start.
11098 (menuentry): Add grub_script_lexer_record_start, use the new commands.
11099 (if): Use the new commands.
11101 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
11103 2008-01-15 Robert Millan <rmh@aybabtu.com>
11105 * normal/menu.c (run_menu): Move timeout message from here ...
11106 (print_timeout): ... to here.
11107 (run_menu): Use print_timeout() once during initial draw to print
11108 the whole message, and again in every clock tick to update only
11109 the number of seconds.
11111 2008-01-15 Robert Millan <rmh@aybabtu.com>
11113 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
11114 actual size of `available' from grub_ieee1275_get_property(), and
11115 restrict parsing to that bound.
11117 2008-01-15 Christian Franke <franke@computer.org>
11119 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
11120 (argp_program_version): Remove variable.
11121 (argp_program_bug_address): Likewise.
11122 (options): Convert from struct argp_option to struct option.
11123 (struct arguments): Remove.
11124 (parse_opt): Remove.
11125 (usage): New function.
11126 (main): Replace struct args members by simple variables.
11127 Replace argp_parse() by getopt_long().
11128 Add switch to evaluate options.
11129 Add missing "(...)" around root_dev in prefix string.
11131 2008-01-14 Robert Millan <rmh@aybabtu.com>
11133 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
11134 for grub_ieee1275_exit(), in order to improve portability.
11136 2008-01-14 Robert Millan <rmh@aybabtu.com>
11138 * util/grub.d/10_linux.in (prefix): Define.
11139 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
11141 2008-01-13 Pavel Roskin <proski@gnu.org>
11143 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
11144 grub_errno if no errors have been detected.
11146 2008-01-12 Robert Millan <rmh@aybabtu.com>
11148 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
11149 (grub_util_get_dev_abstraction): New function prototype.
11151 * util/getroot.c: Include `<grub/util/getroot.h>'
11152 (grub_util_get_grub_dev): Move detection of abstraction type to ...
11153 (grub_util_get_dev_abstraction): ... here (new function).
11155 * util/grub-probe.c: Convert PRINT_* to an enum. Add
11156 `PRINT_ABSTRACTION'.
11157 (probe): Probe for abstraction type when requested.
11158 (main): Understand `--target=abstraction'.
11160 * util/i386/efi/grub-install.in: Add abstraction module to core
11161 image when it is found to be necessary.
11162 * util/i386/pc/grub-install.in: Likewise.
11163 * util/powerpc/ieee1275/grub-install.in: Likewise.
11165 * util/update-grub_lib.in (font_path): Return system path without
11166 converting to GRUB path.
11167 * util/update-grub.in: Convert system path returned by font_path()
11168 to a GRUB path. Use `grub-probe -t abstraction' to determine what
11169 abstraction module is needed for loading fonts (if any). Export
11170 that as `GRUB_PRELOAD_MODULES'.
11171 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
11174 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
11176 Remove some unused code from reiserfs.
11178 * fs/reiserfs.c (struct grub_reiserfs_key)
11179 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
11180 (struct grub_reiserfs_node_body): Removed.
11181 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
11183 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11185 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11187 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11189 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
11191 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
11193 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11194 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11195 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11197 2008-01-10 Robert Millan <rmh@aybabtu.com>
11199 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
11200 Determines if a file is garbage left by packaging systems, etc.
11201 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
11202 for processing /etc/grub.d scripts.
11203 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
11204 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
11205 as a condition for processing Linux images.
11207 2008-01-10 Pavel Roskin <proski@gnu.org>
11209 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
11210 to compile reiserfs.c on PowerPC.
11212 2008-01-10 Robert Millan <rmh@aybabtu.com>
11214 * kern/device.c (grub_device_iterate): Do not abort device iteration
11215 when one of the devices cannot be opened.
11216 * kern/disk.c (grub_disk_open): Do not account previous failures of
11217 unrelated functions when grub_errno is checked for.
11219 2008-01-08 Robert Millan <rmh@aybabtu.com>
11221 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
11222 `! grub_linux_is_bzimage', change order of address comparison to make
11223 it more intuitive, and improve "too big zImage" error message.
11225 2008-01-08 Robert Millan <rmh@aybabtu.com>
11227 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
11228 `$(update-grub_DATA)'.
11229 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
11232 2008-01-07 Robert Millan <rmh@aybabtu.com>
11234 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
11235 which instruction is modified by grub-setup during installation
11236 (since it wasn't obvious by only looking at this file).
11238 2008-01-07 Robert Millan <rmh@aybabtu.com>
11240 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
11241 listing actual TODO items.
11243 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11245 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
11247 (grub_reiserfs_get_key_offset): Likewise.
11248 (grub_reiserfs_set_key_offset): Likewise.
11249 (grub_reiserfs_set_key_type): Likewise.
11250 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
11252 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
11253 better to remove the bitfield version completely.
11255 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11257 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
11258 allocated from the heap, due to the fshelp implementation.
11259 (grub_reiserfs_dir): Free NODE, due to the same reason.
11261 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11263 Mostly from Vincent Pelletier:
11265 * fs/reiserfs.c: New file.
11267 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
11268 (reiserfs_mod_SOURCES): New variable.
11269 (reiserfs_mod_CFLAGS): Likewise.
11270 (reiserfs_mod_LDFLAGS): Likewise.
11272 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
11273 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
11274 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
11277 2008-01-06 Robert Millan <rmh@aybabtu.com>
11279 * normal/color.c: Remove `<grub/env.h>'.
11281 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
11283 * include/grub/normal.h: Include <grub/env.h>.
11285 2008-01-05 Robert Millan <rmh@aybabtu.com>
11287 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
11288 usage example with `(hd0,1)'.
11289 Reported by Samuel Thibault.
11291 2008-01-05 Robert Millan <rmh@aybabtu.com>
11293 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
11294 (grub_linux_boot_zimage): Rename to ...
11295 (grub_linux_boot): ... this.
11296 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
11297 (grub_linux_boot_zimage): Conditionalize zImage copy.
11299 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
11300 (grub_linux_boot_bzimage): Remove prototype.
11301 (grub_linux_boot_zimage): Rename to ...
11302 (grub_linux_boot): ... this.
11304 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
11305 (grub_linux_boot): Remove function.
11307 2008-01-05 Robert Millan <rmh@aybabtu.com>
11309 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
11310 (grub_env_write_color_highlight): Likewise.
11311 (grub_wait_after_message): Likewise.
11313 * normal/color.c: New file.
11315 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11316 (normal_mod_DEPENDENCIES): Likewise.
11318 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11319 (normal_mod_DEPENDENCIES): Likewise.
11321 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11322 (normal_mod_DEPENDENCIES): Likewise.
11324 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11325 (normal_mod_DEPENDENCIES): Likewise.
11327 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
11328 for waiting after a message is printed.
11329 * normal/main.c (read_config_file): Likewise.
11330 (grub_normal_init): Register grub_env_write_color_normal() and
11331 grub_env_write_color_highlight() hooks. Mark `color_normal' and
11332 `color_highlight' variables as global.
11334 * normal/menu.c (grub_wait_after_message): New function.
11335 (grub_color_menu_normal): New variable. Replaces ...
11336 (GRUB_COLOR_MENU_NORMAL): ... this macro.
11337 (grub_color_menu_highlight): New variable. Replaces ...
11338 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
11339 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
11340 `GRUB_TERM_COLOR_STANDARD'.
11341 (print_message): Use `grub_setcolorstate' to reload colors. Rename
11342 `normal_code' and `highlight_code' to `old_color_normal' and
11343 `old_color_highlight', respectively.
11344 (grub_menu_init_page): Update colors when drawing the menu, based on
11345 `menu_color_normal' and `menu_color_highlight' variables.
11346 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
11347 a message is printed.
11349 2008-01-05 Robert Millan <rmh@aybabtu.com>
11351 * kern/env.c (grub_env_context_open): Propagate hooks for global
11352 variables to new context.
11354 * kern/main.c (grub_set_root_dev): Export `root' variable.
11356 2008-01-05 Robert Millan <rmh@aybabtu.com>
11358 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
11359 discs unconditionally, since udev and others have options to provide
11362 2008-01-05 Robert Millan <rmh@aybabtu.com>
11364 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
11366 2008-01-04 Christian Franke <franke@computer.org>
11368 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
11371 2008-01-03 Pavel Roskin <proski@gnu.org>
11373 * kern/i386/linuxbios/init.c: Put "void" to all function
11374 declarations with no arguments.
11375 * kern/powerpc/ieee1275/init.c: Likewise.
11376 * term/i386/pc/at_keyboard.c: Likewise.
11377 * term/i386/pc/vga_text.c: Likewise.
11378 * util/grub-mkdevicemap.c: Likewise.
11380 2008-01-02 Robert Millan <rmh@aybabtu.com>
11382 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
11383 message when loaded image is out of bounds.
11384 (grub_multiboot_load_elf64): Likewise.
11386 2008-01-02 Pavel Roskin <proski@gnu.org>
11388 * util/grub.d/10_linux.in: Try version without ".old" when
11389 looking for initrd. It's better to use initrd from the newer
11390 kernel of the same version than no initrd at all.
11392 2008-01-01 Robert Millan <rmh@aybabtu.com>
11394 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
11396 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
11398 * include/grub/video.h: Added grub_video_unmap_color and
11399 grub_video_get_active_render_target.
11400 (grub_video_adapter): Added unmap_color and get_active_render_target.
11402 * video/video.c: Added grub_video_unmap_color and
11403 grub_video_get_active_render_target.
11404 (grub_video_get_info): Changed method to accept NULL pointer as an
11405 argument to allow detection of active video adapter.
11407 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
11408 grub_video_vbe_unmap_color_int.
11409 Added grub_video_vbe_unmap_color and
11410 grub_video_vbe_get_active_render_target.
11411 (grub_video_vbe_adapter): Added unmap_color and
11412 get_active_render_target.
11414 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
11415 with grub_video_vbe_unmap_color_int.
11417 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
11418 (DEFAULT_NORMAL_COLOR): Likewise.
11419 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
11420 (DEFAULT_FG_COLOR): Removed.
11421 (DEFAULT_BG_COLOR): Likewise.
11422 (DEFAULT_CURSOR_COLOR): Changed value.
11423 (grub_virtual_screen): Added standard_color_setting,
11424 normal_color_setting, highlight_color_setting and term_color.
11425 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
11426 (bitmap_width): Added.
11427 (bitmap_height): Likewise.
11428 (bitmap): Likewise.
11429 (set_term_color): Likewise.
11430 (grub_virtual_screen_setup): Changed to use new terminal coloring
11432 (grub_gfxterm_init): Added init for bitmap.
11433 (grub_gfxterm_fini): Added destroy for bitmap.
11434 (redraw_screen_rect): Updated to use background bitmap and new
11436 (scroll_up): Added optimization for case when there is no bitmap.
11437 (grub_gfxterm_cls): Fixed to use correct background color.
11438 (grub_virtual_screen_setcolorstate): Changed to use new terminal
11440 (grub_virtual_screen_setcolor): Likewise.
11441 (grub_virtual_screen_getcolor): Added.
11442 (grub_gfxterm_background_image_cmd): Likewise.
11443 (grub_video_term): Added setcolor and getcolor.
11444 (MOD_INIT): Added registration of background_image command.
11445 (MOD_TERM): Added unregistration for background_image command.
11447 2007-12-30 Pavel Roskin <proski@gnu.org>
11449 * loader/multiboot_loader.c: Fix multiboot command
11450 unregistration. Fix all typos in the word "multiboot".
11452 2007-12-29 Pavel Roskin <proski@gnu.org>
11454 * util/grub.d/10_linux.in: Refactor search for initrd. Add
11455 support for initrd names used in Fedora.
11457 2007-12-26 Bean <bean123ch@gmail.com>
11459 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
11460 (cpio_mod_SOURCES): New variable.
11461 (cpio_mod_CFLAGS): Likewise.
11462 (cpio_mod_LDFLAGS): Likewise.
11464 * fs/cpio.c: New file.
11466 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
11468 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11470 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
11472 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11474 2007-12-25 Robert Millan <rmh@aybabtu.com>
11476 * include/grub/term.h (struct grub_term): Add `getcolor' function.
11477 (grub_getcolor): New function.
11479 * kern/term.c (grub_getcolor): New function.
11480 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
11481 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
11482 (print_entry): Set normal and highlight colors to
11483 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
11484 respectively, before printing and restore them to old
11486 (grub_menu_init_page): Likewise. Fill an additional colored space
11487 that would otherwise be left blank.
11489 * term/efi/console.c (grub_console_getcolor): New function.
11490 (struct grub_console_term.getcolor): New variable.
11491 * term/i386/pc/console.c (grub_console_getcolor): New function.
11492 (struct grub_console_term.getcolor): New variable.
11493 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
11494 (struct grub_console_term.getcolor): New variable.
11496 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
11497 (struct grub_console_term.setcolor): Remove variable.
11498 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
11499 (struct grub_console_term.setcolor): Remove variable.
11500 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
11501 (struct grub_console_term.setcolor): Remove variable.
11502 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
11503 (struct grub_console_term.setcolor): Remove variable.
11505 2007-12-25 Robert Millan <rmh@aybabtu.com>
11507 * configure.ac: Search for possible unifont.hex locations, and
11508 define UNIFONT_HEX if found.
11510 * Makefile.in (UNIFONT_HEX): Define variable.
11511 (DATA): Rename to ...
11512 (PKGLIB): ... this. Update all users.
11513 (PKGDATA): New variable.
11514 (pkgdata_IMAGES): Rename to ...
11515 (pkglib_IMAGES): ... this. Update all users.
11516 (pkgdata_MODULES): Rename to ...
11517 (pkglib_MODULES): ... this. Update all users.
11518 (pkgdata_PROGRAMS): Rename to ...
11519 (pkglib_PROGRAMS): ... this. Update all users.
11520 (pkgdata_DATA): Rename to ...
11521 (pkglib_DATA): ... this. Update all users.
11522 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
11523 (unicode.pff, ascii.pff): New rules.
11524 (all-local): Add `$(PKGDATA)' dependency.
11525 (install-local): Process `$(PKGDATA)'.
11527 * util/update-grub_lib.in (font_path): Search for *.pff files in
11528 a few more locations, including `${pkgdata}'.
11530 2007-12-23 Robert Millan <rmh@aybabtu.com>
11532 Patch from Bean <bean123ch@gmail.com>:
11533 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
11536 2007-12-21 Bean <bean123ch@gmail.com>
11538 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
11539 (ntfscomp_mod_SOURCES): New variable.
11540 (ntfscomp_mod_CFLAGS): Likewise.
11541 (ntfscomp_mod_LDFLAGS): Likewise.
11543 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
11544 (grub_probe_SOURCES): Likewise.
11545 (grub_emu_SOURCES): Likewise.
11547 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
11548 (grub_emu_SOURCES): Likewise.
11550 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
11551 (grub_emu_SOURCES): Likewise.
11553 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
11554 (grub_emu_SOURCES): Likewise.
11556 * fs/ntfs.c (grub_ntfscomp_func): New variable.
11557 (read_run_list): Renamed to grub_ntfs_read_run_list.
11558 (decomp_nextvcn): Moved to ntfscomp.c.
11559 (decomp_getch): Likewise.
11560 (decomp_get16): Likewise.
11561 (decomp_block): Likewise.
11562 (read_block): Likewise.
11563 (read_data): Partially moved to ntfscomp.c.
11564 (fixup): Change unsigned to grub_uint16_t.
11565 (read_mft): Change unsigned long to grub_uint32_t.
11566 (read_attr): Likewise.
11567 (read_data): Likewise.
11568 (read_run_data): Likewise.
11569 (read_run_list): Likewise.
11570 (read_mft): Likewise.
11572 * fs/ntfscomp.c: New file.
11574 * include/grub/ntfs.h: New file.
11576 2007-12-16 Robert Millan <rmh@aybabtu.com>
11578 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
11579 IDE disk check, since Linux is known to support 20 IDE disks.
11580 Reported by Colin Watson.
11582 2007-12-15 Bean <bean123ch@gmail.com>
11584 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
11585 (lnxboot_img_SOURCES): New variable.
11586 (lnxboot_img_ASFLAGS): Likewise.
11587 (lnxboot_img_LDFLAGS): Likewise.
11589 * boot/i386/pc/lnxboot.S: New file.
11591 2007-11-24 Pavel Roskin <proski@gnu.org>
11593 * configure.ac: Test if '--build-id=none' is supported by the
11594 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
11595 objcopy to generate incorrect binary files (binutils
11596 2.17.50.0.18-1 as shipped by Fedora 8).
11597 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
11598 linking, so that build ID doesn't break the test.
11600 2007-11-24 Pavel Roskin <proski@gnu.org>
11602 * include/grub/i386/time.h: use "void" in the argument list
11603 of grub_cpu_idle().
11604 * include/grub/powerpc/time.h: Likewise.
11605 * include/grub/sparc64/time.h: Likewise.
11607 2007-11-18 Christian Franke <franke@computer.org>
11609 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
11610 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
11611 This fixes the problem that function keys did not work in grub-emu.
11613 2007-11-18 Christian Franke <franke@computer.org>
11615 * disk/host.c (grub_host_open): Remove attribute unused from
11616 name parameter. Add check for "host". This fixes the problem
11617 that grub-emu does not find partitions.
11619 2007-11-18 Christian Franke <franke@computer.org>
11621 * util/hostfs.c (is_dir): New function.
11622 (grub_hostfs_dir): Handle missing dirent.d_type case.
11623 (grub_hostfs_read): Add missing fseek().
11624 (grub_hostfs_label): Clear label pointer. This fixes a crash
11625 of grub-emu on "ls (host)".
11627 2007-11-18 Christian Franke <franke@computer.org>
11629 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
11630 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
11631 to 64 bit boundary by default.
11633 2007-11-18 Bean <bean123ch@gmail.com>
11635 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
11636 (hexdump_mod_SOURCES): New variable.
11637 (hexdump_mod_CFLAGS): Likewise.
11638 (hexdump_mod_LDFLAGS): Likewise.
11640 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
11642 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
11644 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
11646 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
11648 * include/grub/hexdump.h: New file.
11650 * commands/hexdump.c: New file.
11652 2007-11-10 Robert Millan <rmh@aybabtu.com>
11654 * commands/i386/pc/play.c (beep_off): Switch order of arguments
11655 in grub_outb() calls.
11656 (beep_on): Likewise.
11658 2007-11-10 Christian Franke <franke@computer.org>
11660 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
11661 (grub_menu_run): Likewise.
11663 2007-11-10 Robert Millan <rmh@aybabtu.com>
11665 * include/grub/i386/efi/machine.h: New file.
11666 * include/grub/i386/linuxbios/machine.h: Likewise.
11667 * include/grub/i386/pc/machine.h: Likewise.
11668 * include/grub/powerpc/ieee1275/machine.h: Likewise.
11669 * include/grub/sparc64/ieee1275/machine.h: Likewise.
11671 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
11672 (serial_hw_io_addr): New variable.
11673 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
11674 instead of `(unsigned short *) 0x400'.
11676 2007-11-10 Bean <bean123ch@gmail.com>
11678 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
11680 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
11682 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
11683 (vga_mod_SOURCES): Added.
11684 (vga_mod_CFLAGS): Likewise.
11685 (vga_mod_LDFLAGS): Likewise.
11687 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
11689 (set_map_mask): Likewise.
11690 (set_read_map): Likewise.
11691 (set_read_address): Likewise.
11692 (vga_font): Removed variable.
11693 (get_vga_glyph): Removed function.
11694 (invalidate_char): Likewise.
11695 (write_char): Changed to use grub_font_get_glyph() for font
11697 (grub_vga_putchar): Likewise.
11698 (grub_vga_getcharwidth): Likewise.
11700 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
11702 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
11704 (pxeboot_img_LDFLAGS): Likewise.
11705 (diskboot_img_LDFLAGS): Likewise.
11706 (kernel_img_LDFLAGS): Likewise.
11708 2007-11-06 Robert Millan <rmh@aybabtu.com>
11710 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
11711 in grub_outb() calls.
11712 (serial_hw_init): Likewise.
11714 2007-11-05 Robert Millan <rmh@aybabtu.com>
11716 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
11717 spaces. Skip non-regular files.
11719 2007-11-05 Robert Millan <rmh@aybabtu.com>
11721 * kern/disk.c (grub_disk_firmware_fini)
11722 (grub_disk_firmware_is_tainted): New variables.
11724 * include/grub/disk.h (grub_disk_firmware_fini)
11725 (grub_disk_firmware_is_tainted): Likewise.
11727 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
11728 (grub_disk_biosdisk_fini): ... to here.
11729 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
11730 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
11731 is set. Register grub_disk_biosdisk_fini() in
11732 `grub_disk_firmware_fini'.
11734 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
11735 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
11736 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
11737 to finish existing firmware disk interface.
11739 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
11740 (ata_mod_SOURCES): New variable.
11741 (ata_mod_CFLAGS): Likewise.
11742 (ata_mod_LDFLAGS): Likewise.
11744 2007-11-05 Robert Millan <rmh@aybabtu.com>
11746 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
11747 (grub_ata_wait): Reimplement using grub_millisleep().
11749 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
11750 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
11752 2007-11-03 Marco Gerards <marco@gnu.org>
11754 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
11755 (CRTC_ADDR_PORT): New macro.
11756 (CRTC_DATA_PORT): Likewise.
11757 (CRTC_CURSOR): Likewise.
11758 (CRTC_CURSOR_ADDR_HIGH): Likewise.
11759 (CRTC_CURSOR_ADDR_LOW): Likewise.
11760 (update_cursor): New function.
11761 (grub_console_real_putchar): Call `update_cursor'.
11762 (grub_console_gotoxy): Likewise.
11763 (grub_console_cls): Set the default color when clearing the
11765 (grub_console_setcursor): Implemented.
11767 2007-11-03 Marco Gerards <marco@gnu.org>
11769 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
11771 (grub_ata_pio_write): Likewise.
11773 (grub_atapi_identify): Wait after issuing an ATA command.
11774 (grub_atapi_packet): Likewise.
11775 (grub_ata_identify): Likewise.
11776 (grub_ata_readwrite): Likewise.
11778 2007-11-03 Marco Gerards <marco@gnu.org>
11780 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
11781 (grub_ata_pio_write): Likewise.
11782 (grub_ata_readwrite): Use `grub_error', instead of
11783 returning `grub_errno'.
11785 2007-11-03 Marco Gerards <marco@gnu.org>
11787 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
11788 grub_ata_pio_write once for every single sector, instead of for
11791 2007-10-31 Robert Millan <rmh@aybabtu.com>
11793 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
11795 * conf/i386-linuxbios.rmk: New file.
11797 * kern/i386/pc/hardware.c: Likewise.
11798 * term/i386/pc/at_keyboard.c: Likewise.
11799 * term/i386/pc/vga_text.c: Likewise.
11801 * include/grub/i386/linuxbios/boot.h: Likewise.
11802 * include/grub/i386/linuxbios/console.h: Likewise.
11803 * include/grub/i386/linuxbios/init.h: Likewise.
11804 * include/grub/i386/linuxbios/kernel.h: Likewise.
11805 * include/grub/i386/linuxbios/loader.h: Likewise.
11806 * include/grub/i386/linuxbios/memory.h: Likewise.
11807 * include/grub/i386/linuxbios/serial.h: Likewise.
11808 * include/grub/i386/linuxbios/time.h: Likewise.
11810 * kern/i386/linuxbios/init.c: Likewise.
11811 * kern/i386/linuxbios/startup.S: Likewise.
11812 * kern/i386/linuxbios/table.c: Likewise.
11814 2007-10-31 Marco Gerards <marco@gnu.org>
11816 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
11817 (ata_mod_SOURCES): New variable.
11818 (ata_mod_CFLAGS): Likewise.
11819 (ata_mod_LDFLAGS): Likewise.
11821 * disk/ata.c: New file.
11823 * include/grub/disk.h (grub_disk_dev_id): Add
11824 `GRUB_DISK_DEV_ATA_ID'.
11826 2007-10-31 Robert Millan <rmh@aybabtu.com>
11828 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
11829 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
11831 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
11832 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
11834 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
11837 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
11839 2007-10-27 Robert Millan <rmh@aybabtu.com>
11841 * include/grub/types.h (ULONG_MAX): Define macro.
11843 2007-10-22 Robert Millan <rmh@aybabtu.com>
11845 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
11847 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
11849 2007-10-22 Robert Millan <rmh@aybabtu.com>
11851 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
11852 (pkgdata_MODULES): Add `biosdisk.mod'.
11853 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
11856 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
11857 (grub_biosdisk_init): Replace with ...
11858 (GRUB_MOD_INIT(biosdisk)): ... this.
11859 (grub_biosdisk_fini): Replace with ...
11860 (GRUB_MOD_FINI(biosdisk)): ... this.
11862 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
11863 (grub_machine_init): Remove call to grub_biosdisk_init().
11864 (grub_machine_fini): Remove call to grub_machine_fini().
11866 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
11868 2007-10-22 Robert Millan <rmh@aybabtu.com>
11870 * include/grub/time.h: New file.
11871 * include/grub/i386/time.h: Likewise.
11872 * include/grub/powerpc/time.h: Likewise.
11873 * include/grub/sparc64/time.h: Likewise.
11875 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
11877 (KERNEL_MACHINE_TIME_HEADER): ... this.
11878 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
11880 (KERNEL_MACHINE_TIME_HEADER): ... this.
11881 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
11883 (KERNEL_MACHINE_TIME_HEADER): ... this.
11885 * kern/i386/efi/init.c: Include `<grub/time.h>'.
11886 (grub_millisleep): New function.
11887 * kern/i386/pc/init.c: Include `<grub/time.h>'.
11888 (grub_millisleep): New function.
11889 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
11890 Remove `grub/machine/time.h' include.
11891 (grub_millisleep): New function.
11892 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
11893 Remove `grub/machine/time.h' include.
11894 (grub_millisleep): New function.
11896 * include/grub/misc.h (grub_div_roundup): New function.
11898 * kern/misc.c: Include `<grub/time.h>'.
11899 (grub_millisleep_generic): New function.
11901 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
11903 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
11905 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
11906 `machine/time.h'. Add `time.h'.
11907 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
11909 2007-10-21 Robert Millan <rmh@aybabtu.com>
11911 * include/grub/misc.h (grub_max): New function.
11913 2007-10-21 Robert Millan <rmh@aybabtu.com>
11915 * util/misc.c (grub_util_info): Call fflush() before returning.
11917 2007-10-20 Robert Millan <rmh@aybabtu.com>
11919 * genmk.rb (Image): Copy `extra_flags' from here ...
11920 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
11922 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
11923 to `argc' and `args' arguments.
11925 2007-10-17 Robert Millan <rmh@aybabtu.com>
11927 * kern/i386/loader.S: New file.
11929 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
11930 * kern/i386/loader.S (grub_linux_prot_size)... to here.
11931 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
11932 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
11933 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
11934 * kern/i386/loader.S (grub_linux_real_addr)... to here.
11935 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
11936 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
11937 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
11938 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
11939 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
11940 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
11941 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
11942 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
11944 * kern/i386/realmode.S: New file.
11946 * kern/i386/pc/startup.S (protstack): Moved from here ...
11947 * kern/i386/realmode.S (protstack)... to here.
11948 * kern/i386/pc/startup.S (gdt): Moved from here ...
11949 * kern/i386/realmode.S (gdt)... to here.
11950 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
11951 * kern/i386/realmode.S (prot_to_real)... to here.
11953 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
11954 `kern/i386/realmode.S'.
11956 2007-10-17 Robert Millan <rmh@aybabtu.com>
11958 * include/grub/i386/loader.h: New file.
11960 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
11961 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
11962 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
11963 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
11964 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
11965 * include/grub/i386/loader.h (grub_linux_prot_size)
11966 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
11967 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
11968 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
11969 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
11971 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
11973 2007-10-15 Robert Millan <rmh@aybabtu.com>
11975 * normal/misc.c (grub_normal_print_device_info): Do not probe for
11976 filesystem when dev->disk is unset.
11977 Do probe for filesystem even when dev->disk->has_partitions is set.
11978 In case a filesystem is found, always report it.
11979 In case it isn't, if dev->disk->has_partitions is set, report that
11980 a partition table was found instead of reporting that no filesystem
11981 could be identified.
11983 2007-10-12 Robert Millan <rmh@aybabtu.com>
11985 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
11986 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
11988 * include/grub/types.h (grub_host_to_target16): New macro.
11989 (grub_host_to_target32): Likewise.
11990 (grub_host_to_target64): Likewise.
11991 (grub_target_to_host16): Likewise.
11992 (grub_target_to_host32): Likewise.
11993 (grub_target_to_host64): Likewise.
11995 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
11996 Renamed from to ...
11997 (GRUB_MOD_ALIGN): ...this. Update all users.
11999 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
12000 grub_host_to_target32.
12001 Replace grub_be_to_cpu32 with grub_target_to_host32.
12002 (load_modules): Likewise.
12003 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
12004 Replace grub_be_to_cpu32 with grub_target_to_host32.
12005 Replace grub_cpu_to_be16 with grub_host_to_target16.
12006 Replace grub_cpu_to_be32 grub_host_to_target32.
12008 2007-10-12 Robert Millan <rmh@aybabtu.com>
12010 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
12011 * util/elf/grub-mkimage.c: ... here.
12013 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
12014 `util/powerpc/ieee1275/grub-mkimage.c'.
12016 2007-10-07 Robert Millan <rmh@aybabtu.com>
12018 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
12019 and make it easier to figure out.
12020 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
12021 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
12022 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
12023 leave us with less than HEAP_MIN_SIZE total heap.
12024 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
12026 2007-10-03 Robert Millan <rmh@aybabtu.com>
12028 * include/grub/i386/io.h: New file.
12029 * commands/i386/pc/play.c (inb): Removed.
12031 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12033 * term/i386/pc/serial.c (inb): Removed.
12035 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12037 * term/i386/pc/vga.c (inb): Removed.
12039 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12042 2007-10-02 Robert Millan <rmh@aybabtu.com>
12044 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
12045 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12046 Reported by Marcin Kurek.
12048 2007-09-07 Robert Millan <rmh@aybabtu.com>
12050 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
12051 SmartFirmware version updates (as released by Sven Luther), and avoid
12052 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
12053 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
12056 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12058 From Hitoshi Ozeki:
12059 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
12060 when merging two regions.
12062 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12064 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
12065 * normal/completion.c (grub_normal_do_completion): Likewise.
12066 Reported by Hitoshi Ozeki.
12068 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12070 Do not use devices at boot in chainloading.
12072 * loader/i386/pc/chainloader.c (boot_drive): New variable.
12073 (boot_part_addr): Likewise.
12074 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
12075 with BOOT_DRIVE and BOOT_PART_ADDR.
12076 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
12077 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
12079 2007-08-29 Robert Millan <rmh@aybabtu.com>
12081 Patch from Simon Peter <dn.tlp@gmx.net>:
12082 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
12083 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
12084 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
12085 util/i386/pc/grub-setup.c_DEPENDENCIES.
12086 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
12087 util/grub-probe.c_DEPENDENCIES.
12088 * conf/powerpc-ieee1275.rmk: Likewise.
12090 2007-08-28 Robert Millan <rmh@aybabtu.com>
12092 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
12093 to tell grub-mkdevicemap how to name devices.
12094 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
12097 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
12098 util/i386/get_disk_name.c.
12099 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
12100 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
12101 util/ieee1275/get_disk_name.c.
12103 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
12105 * DISTLIST: Add util/i386/get_disk_name.c and
12106 util/ieee1275/get_disk_name.c.
12108 * util/grub-mkdevicemap.c: Replace device naming logic with
12109 grub_util_get_disk_name() calls.
12111 2007-08-20 Robert Millan <rmh@aybabtu.com>
12113 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
12114 (so that it works for both plural and singular quantities).
12116 2007-08-05 Robert Millan <rmh@aybabtu.com>
12118 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
12119 so that [xz] isn't taken into account when determining order.
12121 2007-08-02 Marco Gerards <marco@gnu.org>
12123 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
12124 `include/multiboot2.h', `include/grub/elfload.h',
12125 `include/multiboot.h', `include/grub/multiboot.h',
12126 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
12127 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
12128 `kern/elf.c', `loader/multiboot_loader.c',
12129 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
12130 `loader/i386/pc/multiboot2.c',
12131 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
12132 `util/i386/pc/grub-mkrescue.in'. Remove
12133 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
12134 `include/grub/i386/pc/util/biosdisk.h' and
12135 `include/grub/powerpc/ieee1275/multiboot.h'.
12137 2007-08-02 Bean <bean123ch@gmail.com>
12139 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
12140 (ntfs_mod_SOURCES): New variable.
12141 (ntfs_mod_CFLAGS): Likewise.
12142 (ntfs_mod_LDFLAGS): Likewise.
12144 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
12145 (grub_probe_SOURCES): Likewise.
12146 (grub_emu_SOURCES): Likewise.
12148 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
12149 (grub_emu_SOURCES): Likewise.
12151 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
12152 (grub_emu_SOURCES): Likewise.
12154 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
12156 * fs/ntfs.c: New file.
12158 2007-08-02 Bean <bean123ch@gmail.com>
12160 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
12162 * file.h (grub_file): Likewise.
12164 * fshelp.h (grub_fshelp_read_file): Likewise.
12166 * util/i386/pc/grub-setup.c (setup): Likewise.
12167 (save_first_sector): Likewise.
12168 (save_blocklists): Likewise.
12170 * fs/affs.c (grub_affs_read_file): Likewise.
12172 * fs/ext2.c (grub_ext2_read_file): Likewise.
12174 * fs/fat.c (grub_fat_read_data): Likewise.
12176 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
12178 * fs/hfs.c (grub_hfs_read_file): Likewise.
12180 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
12182 * fs/jfs.c (grub_jfs_read_file): Likewise.
12184 * fs/minix.c (grub_minix_read_file): Likewise.
12186 * fs/sfs.c (grub_sfs_read_file): Likewise.
12188 * fs/ufs.c (grub_ufs_read_file): Likewise.
12190 * fs/xfs.c (grub_xfs_read_file): Likewise.
12192 * command/blocklist.c (read_blocklist): Likewise.
12193 (print_blocklist): Likewise.
12195 2007-08-02 Marco Gerards <marco@gnu.org>
12197 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
12200 * disk/host.c: New file.
12202 * util/hostfs.c: Likewise.
12204 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
12205 return `GRUB_ERR_BAD_FS'.
12206 * fs/sfs.c (grub_sfs_mount): Likewise.
12207 * fs/xfs.c (grub_xfs_mount): Likewise.
12209 * include/grub/disk.h (enum grub_disk_dev_id): Add
12210 `GRUB_DISK_DEVICE_HOST_ID'.
12212 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
12214 2007-07-24 Jerone Young <jerone@gmail.com>
12216 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
12217 modules for compilation.
12218 * conf/powerpc-ieee1275.rmk: Likewise.
12220 * include/multiboot.h: Move multiboot definitions to one file. Rename
12221 many definitions to not get grub specific.
12222 * include/multiboot2.h: Create header with multiboot 2 definitions.
12223 * include/grub/multiboot.h: Header for grub specific function
12224 prototypes and definitions.
12225 * include/grub/multiboot2.h: Likewise.
12226 * include/grub/multiboot_loader.h: Likewise.
12227 * include/grub/i386/pc/multiboot.h: Removed.
12228 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
12230 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
12231 and 2 to allow for one multiboot and module commands.
12232 * loader/multiboot2.c: Add multiboot2 functionality.
12233 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
12234 and definition names.
12235 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
12237 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
12238 ieee1275 specific multiboot2 code.
12240 * kern/i386/pc/startup.S: Change headers and definition names for
12241 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
12243 2007-07-22 Robert Millan <rmh@aybabtu.com>
12245 * geninitheader.sh: Process file specified in first parameter rather
12246 than hardcoding grub_modules_init.lst.
12247 * geninit.sh: Likewise. Also, construct header name dynamically rather
12248 than hardcoding grub_modules_init.h.
12250 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
12251 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
12252 grub_probe_init.[ch] and grub_setup_init.[ch].
12254 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
12255 grub_modules_init.h with grub_emu_init.h.
12256 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
12257 grub_probe_init.[ch] files.
12258 * conf/i386-efi.rmk: Likewise.
12259 * conf/i386-pc.rmk: Likewise.
12260 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
12261 grub_setup_init.[ch] files.
12263 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
12264 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
12265 to initialize modules rather than a list of hardcoded functions.
12266 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
12267 grub_init_all() to initialize modules rather than a list of hardcoded
12270 2007-07-22 Robert Millan <rmh@aybabtu.com>
12272 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
12273 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
12275 2007-07-22 Robert Millan <rmh@aybabtu.com>
12277 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
12278 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
12279 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
12280 flag when running on SmartFirmware.
12281 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
12282 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
12285 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
12286 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
12287 rather than decreasing it.
12289 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
12290 there's not enough space to do it, fail in the same way as when it
12291 can't be done because there are no partitions.
12293 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
12294 when nvsetenv failed.
12296 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
12298 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
12299 because this rule is automatically generated.
12300 (grub-mkrescue): Removed for the same reason as above.
12302 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
12304 Migrate to GNU General Public License Version 3.
12306 * COPYING: Replaced with the plain text version of GPLv3.
12308 * config.guess: Updated from gnulib.
12309 * config.sub: Likewise.
12311 * geninit.sh: Output a GPLv3 copyright notice.
12312 * geninitheader.sh: Likewise.
12313 * genmodsrc.sh: Likewise.
12314 * gensymlist.sh.in: Likewise.
12316 * boot/i386/pc/boot.S: Upgraded to GPLv3.
12317 * boot/i386/pc/diskboot.S: Likewise.
12318 * boot/i386/pc/pxeboot.S: Likewise.
12319 * commands/blocklist.c: Likewise.
12320 * commands/boot.c: Likewise.
12321 * commands/cat.c: Likewise.
12322 * commands/cmp.c: Likewise.
12323 * commands/configfile.c: Likewise.
12324 * commands/echo.c: Likewise.
12325 * commands/help.c: Likewise.
12326 * commands/ls.c: Likewise.
12327 * commands/search.c: Likewise.
12328 * commands/terminal.c: Likewise.
12329 * commands/test.c: Likewise.
12330 * commands/videotest.c: Likewise.
12331 * commands/i386/cpuid.c: Likewise.
12332 * commands/i386/pc/halt.c: Likewise.
12333 * commands/i386/pc/play.c: Likewise.
12334 * commands/i386/pc/reboot.c: Likewise.
12335 * commands/i386/pc/vbeinfo.c: Likewise.
12336 * commands/i386/pc/vbetest.c: Likewise.
12337 * commands/ieee1275/halt.c: Likewise.
12338 * commands/ieee1275/reboot.c: Likewise.
12339 * commands/ieee1275/suspend.c: Likewise.
12340 * disk/loopback.c: Likewise.
12341 * disk/lvm.c: Likewise.
12342 * disk/raid.c: Likewise.
12343 * disk/efi/efidisk.c: Likewise.
12344 * disk/i386/pc/biosdisk.c: Likewise.
12345 * disk/ieee1275/ofdisk.c: Likewise.
12346 * font/manager.c: Likewise.
12347 * fs/affs.c: Likewise.
12348 * fs/ext2.c: Likewise.
12349 * fs/fat.c: Likewise.
12350 * fs/fshelp.c: Likewise.
12351 * fs/hfs.c: Likewise.
12352 * fs/hfsplus.c: Likewise.
12353 * fs/iso9660.c: Likewise.
12354 * fs/jfs.c: Likewise.
12355 * fs/minix.c: Likewise.
12356 * fs/sfs.c: Likewise.
12357 * fs/ufs.c: Likewise.
12358 * fs/xfs.c: Likewise.
12359 * hello/hello.c: Likewise.
12360 * include/grub/acorn_filecore.h: Likewise.
12361 * include/grub/arg.h: Likewise.
12362 * include/grub/bitmap.h: Likewise.
12363 * include/grub/boot.h: Likewise.
12364 * include/grub/cache.h: Likewise.
12365 * include/grub/device.h: Likewise.
12366 * include/grub/disk.h: Likewise.
12367 * include/grub/dl.h: Likewise.
12368 * include/grub/elfload.h: Likewise.
12369 * include/grub/env.h: Likewise.
12370 * include/grub/err.h: Likewise.
12371 * include/grub/file.h: Likewise.
12372 * include/grub/font.h: Likewise.
12373 * include/grub/fs.h: Likewise.
12374 * include/grub/fshelp.h: Likewise.
12375 * include/grub/gzio.h: Likewise.
12376 * include/grub/hfs.h: Likewise.
12377 * include/grub/kernel.h: Likewise.
12378 * include/grub/loader.h: Likewise.
12379 * include/grub/lvm.h: Likewise.
12380 * include/grub/misc.h: Likewise.
12381 * include/grub/mm.h: Likewise.
12382 * include/grub/net.h: Likewise.
12383 * include/grub/normal.h: Likewise.
12384 * include/grub/parser.h: Likewise.
12385 * include/grub/partition.h: Likewise.
12386 * include/grub/pc_partition.h: Likewise.
12387 * include/grub/raid.h: Likewise.
12388 * include/grub/rescue.h: Likewise.
12389 * include/grub/script.h: Likewise.
12390 * include/grub/setjmp.h: Likewise.
12391 * include/grub/symbol.h: Likewise.
12392 * include/grub/term.h: Likewise.
12393 * include/grub/terminfo.h: Likewise.
12394 * include/grub/tparm.h: Likewise.
12395 * include/grub/types.h: Likewise.
12396 * include/grub/video.h: Likewise.
12397 * include/grub/efi/api.h: Likewise.
12398 * include/grub/efi/chainloader.h: Likewise.
12399 * include/grub/efi/console.h: Likewise.
12400 * include/grub/efi/console_control.h: Likewise.
12401 * include/grub/efi/disk.h: Likewise.
12402 * include/grub/efi/efi.h: Likewise.
12403 * include/grub/efi/pe32.h: Likewise.
12404 * include/grub/efi/time.h: Likewise.
12405 * include/grub/i386/linux.h: Likewise.
12406 * include/grub/i386/setjmp.h: Likewise.
12407 * include/grub/i386/types.h: Likewise.
12408 * include/grub/i386/efi/kernel.h: Likewise.
12409 * include/grub/i386/efi/loader.h: Likewise.
12410 * include/grub/i386/efi/time.h: Likewise.
12411 * include/grub/i386/pc/biosdisk.h: Likewise.
12412 * include/grub/i386/pc/boot.h: Likewise.
12413 * include/grub/i386/pc/chainloader.h: Likewise.
12414 * include/grub/i386/pc/console.h: Likewise.
12415 * include/grub/i386/pc/init.h: Likewise.
12416 * include/grub/i386/pc/kernel.h: Likewise.
12417 * include/grub/i386/pc/loader.h: Likewise.
12418 * include/grub/i386/pc/memory.h: Likewise.
12419 * include/grub/i386/pc/multiboot.h: Likewise.
12420 * include/grub/i386/pc/serial.h: Likewise.
12421 * include/grub/i386/pc/time.h: Likewise.
12422 * include/grub/i386/pc/vbe.h: Likewise.
12423 * include/grub/i386/pc/vbeblit.h: Likewise.
12424 * include/grub/i386/pc/vbefill.h: Likewise.
12425 * include/grub/i386/pc/vbeutil.h: Likewise.
12426 * include/grub/i386/pc/vga.h: Likewise.
12427 * include/grub/ieee1275/ieee1275.h: Likewise.
12428 * include/grub/ieee1275/ofdisk.h: Likewise.
12429 * include/grub/powerpc/libgcc.h: Likewise.
12430 * include/grub/powerpc/setjmp.h: Likewise.
12431 * include/grub/powerpc/types.h: Likewise.
12432 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
12433 * include/grub/powerpc/ieee1275/console.h: Likewise.
12434 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
12435 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
12436 * include/grub/powerpc/ieee1275/loader.h: Likewise.
12437 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
12438 * include/grub/powerpc/ieee1275/time.h: Likewise.
12439 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
12440 * include/grub/sparc64/libgcc.h: Likewise.
12441 * include/grub/sparc64/setjmp.h: Likewise.
12442 * include/grub/sparc64/types.h: Likewise.
12443 * include/grub/sparc64/ieee1275/console.h: Likewise.
12444 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
12445 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
12446 * include/grub/sparc64/ieee1275/time.h: Likewise.
12447 * include/grub/util/biosdisk.h: Likewise.
12448 * include/grub/util/getroot.h: Likewise.
12449 * include/grub/util/lvm.h: Likewise.
12450 * include/grub/util/misc.h: Likewise.
12451 * include/grub/util/raid.h: Likewise.
12452 * include/grub/util/resolve.h: Likewise.
12453 * io/gzio.c: Likewise.
12454 * kern/device.c: Likewise.
12455 * kern/disk.c: Likewise.
12456 * kern/dl.c: Likewise.
12457 * kern/elf.c: Likewise.
12458 * kern/env.c: Likewise.
12459 * kern/err.c: Likewise.
12460 * kern/file.c: Likewise.
12461 * kern/fs.c: Likewise.
12462 * kern/loader.c: Likewise.
12463 * kern/main.c: Likewise.
12464 * kern/misc.c: Likewise.
12465 * kern/mm.c: Likewise.
12466 * kern/parser.c: Likewise.
12467 * kern/partition.c: Likewise.
12468 * kern/rescue.c: Likewise.
12469 * kern/term.c: Likewise.
12470 * kern/efi/efi.c: Likewise.
12471 * kern/efi/init.c: Likewise.
12472 * kern/efi/mm.c: Likewise.
12473 * kern/i386/dl.c: Likewise.
12474 * kern/i386/efi/init.c: Likewise.
12475 * kern/i386/efi/startup.S: Likewise.
12476 * kern/i386/pc/init.c: Likewise.
12477 * kern/i386/pc/lzo1x.S: Likewise.
12478 * kern/i386/pc/startup.S: Likewise.
12479 * kern/ieee1275/ieee1275.c: Likewise.
12480 * kern/powerpc/cache.S: Likewise.
12481 * kern/powerpc/dl.c: Likewise.
12482 * kern/powerpc/ieee1275/cmain.c: Likewise.
12483 * kern/powerpc/ieee1275/crt0.S: Likewise.
12484 * kern/powerpc/ieee1275/init.c: Likewise.
12485 * kern/powerpc/ieee1275/openfw.c: Likewise.
12486 * kern/sparc64/cache.S: Likewise.
12487 * kern/sparc64/dl.c: Likewise.
12488 * kern/sparc64/ieee1275/init.c: Likewise.
12489 * kern/sparc64/ieee1275/openfw.c: Likewise.
12490 * loader/efi/chainloader.c: Likewise.
12491 * loader/efi/chainloader_normal.c: Likewise.
12492 * loader/i386/efi/linux.c: Likewise.
12493 * loader/i386/efi/linux_normal.c: Likewise.
12494 * loader/i386/pc/chainloader.c: Likewise.
12495 * loader/i386/pc/chainloader_normal.c: Likewise.
12496 * loader/i386/pc/linux.c: Likewise.
12497 * loader/i386/pc/linux_normal.c: Likewise.
12498 * loader/i386/pc/multiboot.c: Likewise.
12499 * loader/i386/pc/multiboot_normal.c: Likewise.
12500 * loader/powerpc/ieee1275/linux.c: Likewise.
12501 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
12502 * normal/arg.c: Likewise.
12503 * normal/cmdline.c: Likewise.
12504 * normal/command.c: Likewise.
12505 * normal/completion.c: Likewise.
12506 * normal/execute.c: Likewise.
12507 * normal/function.c: Likewise.
12508 * normal/lexer.c: Likewise.
12509 * normal/main.c: Likewise.
12510 * normal/menu.c: Likewise.
12511 * normal/menu_entry.c: Likewise.
12512 * normal/misc.c: Likewise.
12513 * normal/parser.y: Likewise.
12514 * normal/script.c: Likewise.
12515 * normal/i386/setjmp.S: Likewise.
12516 * normal/powerpc/setjmp.S: Likewise.
12517 * normal/sparc64/setjmp.S: Likewise.
12518 * partmap/acorn.c: Likewise.
12519 * partmap/amiga.c: Likewise.
12520 * partmap/apple.c: Likewise.
12521 * partmap/gpt.c: Likewise.
12522 * partmap/pc.c: Likewise.
12523 * partmap/sun.c: Likewise.
12524 * term/gfxterm.c: Likewise.
12525 * term/terminfo.c: Likewise.
12526 * term/efi/console.c: Likewise.
12527 * term/i386/pc/console.c: Likewise.
12528 * term/i386/pc/serial.c: Likewise.
12529 * term/i386/pc/vesafb.c: Likewise.
12530 * term/i386/pc/vga.c: Likewise.
12531 * term/ieee1275/ofconsole.c: Likewise.
12532 * util/biosdisk.c: Likewise.
12533 * util/console.c: Likewise.
12534 * util/genmoddep.c: Likewise.
12535 * util/getroot.c: Likewise.
12536 * util/grub-emu.c: Likewise.
12537 * util/grub-mkdevicemap.c: Likewise.
12538 * util/grub-probe.c: Likewise.
12539 * util/lvm.c: Likewise.
12540 * util/misc.c: Likewise.
12541 * util/raid.c: Likewise.
12542 * util/resolve.c: Likewise.
12543 * util/update-grub.in: Likewise.
12544 * util/update-grub_lib.in: Likewise.
12545 * util/grub.d/00_header.in: Likewise.
12546 * util/grub.d/10_hurd.in: Likewise.
12547 * util/grub.d/10_linux.in: Likewise.
12548 * util/i386/efi/grub-install.in: Likewise.
12549 * util/i386/efi/grub-mkimage.c: Likewise.
12550 * util/i386/pc/grub-install.in: Likewise.
12551 * util/i386/pc/grub-mkimage.c: Likewise.
12552 * util/i386/pc/grub-mkrescue.in: Likewise.
12553 * util/i386/pc/grub-setup.c: Likewise.
12554 * util/i386/pc/misc.c: Likewise.
12555 * util/powerpc/ieee1275/grub-install.in: Likewise.
12556 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
12557 * util/powerpc/ieee1275/misc.c: Likewise.
12558 * video/bitmap.c: Likewise.
12559 * video/video.c: Likewise.
12560 * video/i386/pc/vbe.c: Likewise.
12561 * video/i386/pc/vbeblit.c: Likewise.
12562 * video/i386/pc/vbefill.c: Likewise.
12563 * video/i386/pc/vbeutil.c: Likewise.
12564 * video/readers/tga.c: Likewise.
12566 2007-07-02 Robert Millan <rmh@aybabtu.com>
12568 * conf/i386-efi.rmk: Replace obsolete reference to
12569 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
12570 with util/getroot.c.
12571 * conf/powerpc-ieee1275.rmk: Likewise.
12572 * conf/sparc64-ieee1275.rmk: Likewise.
12574 * util/grub-emu.c (main): Fix unchecked pointer handling.
12576 2007-07-02 Robert Millan <rmh@aybabtu.com>
12578 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
12579 invocation to fail, in order to support partition-less media.
12581 * util/i386/pc/grub-install.in: Likewise.
12583 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
12584 which fs or partmap modules are needed (akin to its sister scripts).
12586 Also use grub-probe to get rid of unportable /proc/mounts check.
12588 Print the same informational message that the other scripts do, before
12591 2007-06-23 Robert Millan <rmh@aybabtu.com>
12593 * util/update-grub_lib.in (font_path): New function. Determine whether
12594 a font file can be found and, if so, echo the GRUB path to it.
12596 * util/update-grub.in: Handle multiple terminals depending on user
12597 input, platform availability and font file presence. Propagate
12598 variables of our findings to /etc/grub.d/ children.
12600 * util/grub.d/00_header.in: Handle multiple terminals, based on
12601 environment setup by update-grub.
12603 2007-06-23 Robert Millan <rmh@aybabtu.com>
12605 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
12607 2007-06-21 Robert Millan <rmh@aybabtu.com>
12609 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
12610 indicate end of data section in kernel image.
12611 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
12612 GRUB_KERNEL_MACHINE_DATA_END.
12614 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
12616 * kern/i386/efi/startup.S: Likewise.
12618 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
12619 during image generation. Implement --prefix option to override this
12621 * util/i386/efi/grub-mkimage.c: Likewise.
12623 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
12624 code to make path relative to its root into a separate function.
12626 * util/i386/pc/grub-install.in: Use newly provided
12627 make_system_path_relative_to_its_root() to convert ${grubdir}, then
12628 pass the result to grub-install --prefix.
12630 2007-06-13 Robert Millan <rmh@aybabtu.com>
12632 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
12633 DEFAULT_DEVICE_MAP.
12634 * util/grub-emu.c: Use above definitions from misc.h instead of
12636 * util/grub-mkdevicemap.c: Likewise.
12637 * util/i386/pc/grub-setup.c: Likewise.
12638 * util/grub-probe.c: Likewise.
12639 (probe): Abort with grub_util_error() when either
12640 grub_guess_root_device or grub_util_get_grub_dev fails.
12642 2007-06-12 Robert Millan <rmh@aybabtu.com>
12644 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
12645 "pager" assignment.
12646 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
12648 * util/grub-probe.c (probe): Likewise for "drive_name".
12650 2007-06-11 Robert Millan <rmh@aybabtu.com>
12652 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
12653 not just the cdrom one.
12655 2007-06-11 Robert Millan <rmh@aybabtu.com>
12657 * util/i386/pc/grub-mkrescue.in: Add "set -e".
12658 Add --pkglibdir=DIR option to override pkglibdir.
12659 Mention --image-type=TYPE in help output.
12660 Fix --grub-mkimage (it was a no-op).
12661 Abort gracefully when no parameter is given.
12663 2007-06-11 Robert Millan <rmh@aybabtu.com>
12665 * util/i386/pc/grub-mkrescue.in: New file.
12666 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
12667 * Makefile.in: Handle bin_SCRIPTS.
12669 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
12671 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
12672 list of video modes.
12674 2007-06-06 Robert Millan <rmh@aybabtu.com>
12676 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
12677 file doesn't exist, or if it is in a filesystem grub can't read.
12679 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
12680 not abort if GRUB_DRIVE could not be defined. Rearrange generated
12681 header comment to fit in 80 columns when the variables are resolved.
12683 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
12684 could be identified by update-grub. Remove redundant check for
12685 unifont.pff existence (since convert_system_path_to_grub_path now
12688 2007-06-04 Robert Millan <rmh@aybabtu.com>
12690 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
12692 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
12694 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
12696 2007-06-04 Robert Millan <rmh@aybabtu.com>
12698 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
12700 * include/grub/partition.h: Declare grub_apple_partition_map_init and
12701 grub_apple_partition_map_fini.
12704 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
12705 to access >2 TiB disks).
12707 Print disk->total_sectors with %llu instead of %lu, since this
12708 variable is always 64-bit (prevents wrong disk size from being displayed
12709 on either >2 TiB disk or big-endian CPU).
12711 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
12712 into a generic case that supports all (sane) partition maps.
12714 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
12717 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
12718 and grub_apple_partition_map_fini() after that.
12720 2007-06-01 Robert Millan <rmh@aybabtu.com>
12722 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
12724 * util/grub.d/00_header.in: Only enable gfxterm when
12725 convert_system_path_to_grub_path() succeeds.
12727 2007-05-20 Robert Millan <rmh@aybabtu.com>
12729 * util/update-grub_lib.in: New file.
12730 * DISTLIST: Add update-grub_lib.in.
12731 * conf/common.rmk: Generate update-grub_lib and install it in
12733 * Makefile.in: Add install routine for $(lib_DATA).
12735 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
12736 function provided by update-grub_lib to support arbitrary paths of
12738 * util/update-grub.in: Use convert_system_path_to_grub_path() to
12739 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
12741 2007-05-19 Robert Millan <rmh@aybabtu.com>
12743 * commands/i386/cpuid.c: New module.
12744 * DISTLIST: Add it.
12745 * conf/i386-efi.rmk: Enable cpuid.mod.
12746 * conf/i386-pc.rmk: Likewise.
12748 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
12750 * kern/disk.c (grub_disk_read): Check return value of
12753 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
12755 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
12757 * disk/raid.c (grub_raid_open): Likewise.
12759 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
12761 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
12762 stack instead of on the heap.
12764 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
12765 before doing a read on it.
12767 * configure.ac: Only use -fno-stack-protector for the target
12770 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
12772 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
12773 __attribute_ ((unused)) to mode_type argument.
12775 * util/getroot.c (grub_guess_root_device): Fix #endif.
12777 * kern/misc.c (memcmp): Fix prototype.
12779 * include/grub/partition.h [GRUB_UTIL]
12780 (grub_gpt_partition_map_init): Add prototype.
12781 (grub_gpt_partition_map_fini): Likewise.
12783 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
12784 at the right place.
12786 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
12787 (grub_fat_read_data): Likewise.
12788 (grub_fat_find_dir): Likewise.
12790 * font/manager.c (find_glyph): Make table a const.
12791 (grub_font_get_glyph): Remove bitmap from if statement.
12793 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
12795 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
12796 code, first search for device in /dev/mapper, then in /dev.
12797 (grub_util_get_grub_dev): New function.
12798 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
12800 * util/grub-probe.c (probe): Remove check for RAID, call
12801 grub_util_get_grub_dev() instead of
12802 grub_util_biosdisk_get_grub_dev().
12803 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
12804 grub_util_biosdisk_get_grub_dev().
12805 * util/i386/pc/grub-setup.c (main): Likewise.
12807 2007-05-16 Robert Millan <rmh@aybabtu.com>
12809 * DISTLIST: Update for the latest changes.
12810 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
12811 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
12812 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
12813 grub/util/biosdisk.h.
12814 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
12815 grub/util/biosdisk.h.
12817 2007-05-16 Robert Millan <rmh@aybabtu.com>
12819 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
12821 2007-05-16 Robert Millan <rmh@aybabtu.com>
12823 * util/i386/efi/grub-install.in: New.
12824 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
12825 newly added grub-install.
12826 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
12828 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
12829 grub/util/biosdisk.h.
12830 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
12831 grub/util/biosdisk.h.
12833 2007-05-16 Robert Millan <rmh@aybabtu.com>
12835 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
12836 * include/grub/util/biosdisk.h: ... here.
12837 * util/i386/pc/biosdisk.c: Moved to ...
12838 * util/biosdisk.c: ... here.
12839 * util/i386/pc/getroot.c: Moved to ...
12840 * util/getroot.c: ... here.
12841 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
12842 * util/grub-mkdevicemap.c: ... here.
12843 * util/i386/pc/grub-probe.c: Moved to ...
12844 * util/grub-probe.c: ... here.
12846 2007-05-15 Robert Millan <rmh@aybabtu.com>
12848 * util/update-grub.in: Remove duplicated line in grub.cfg header
12851 2007-05-13 Robert Millan <rmh@aybabtu.com>
12853 * util/update-grub.in: Fix a few assumptions about the devices holding
12854 /, /boot and /boot/grub being the same.
12855 * util/grub.d/00_header.in: Likewise.
12856 * util/grub.d/10_hurd.in: Likewise.
12857 * util/grub.d/10_linux.in: Likewise.
12859 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
12860 patterns. Use that to define the `.old' suffix as older than `'.
12862 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
12864 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
12865 the grub.cfg header message.
12867 2007-05-11 Robert Millan <rmh@aybabtu.com>
12869 * util/update-grub.in: Create device.map if it doesn't already exist,
12870 before attempting to run grub-probe.
12871 Check for grub-probe and grub-mkdevicemap with the same code
12872 grub-install is using.
12875 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
12877 * Makefile.in: Add the datarootdir autoconf variable.
12879 2007-05-09 Robert Millan <rmh@aybabtu.com>
12881 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
12882 fail gracefully if dev->disk->partition == NULL.
12884 2007-05-07 Robert Millan <rmh@aybabtu.com>
12886 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
12887 determine partition map module.
12888 * util/i386/pc/grub-install.in: Use this feature to decide which
12889 partition module to load, instead of hardcoding pc and gpt.
12891 2007-05-07 Robert Millan <rmh@aybabtu.com>
12893 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
12894 source directory differs from build directory.
12896 2007-05-05 Robert Millan <rmh@aybabtu.com>
12898 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
12901 2007-05-05 Robert Millan <rmh@aybabtu.com>
12903 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
12905 2007-05-05 Robert Millan <rmh@aybabtu.com>
12907 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
12908 command-line arguments via ${GRUB_CMDLINE_LINUX}.
12910 2007-05-05 Robert Millan <rmh@aybabtu.com>
12912 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
12913 (grub_probe_SOURCES): Likewise.
12914 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
12915 GPT and initialize dos_part and bsd_part accordingly.
12916 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
12918 (main): Activate gpt module for use during partition identification,
12919 and deactivate it afterwards.
12920 * util/i386/pc/grub-install.in: Add gpt module to core.img.
12921 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
12922 partition identification, and deactivate it afterwards.
12924 2007-05-05 Robert Millan <rmh@aybabtu.com>
12926 * term/i386/pc/console.c (grub_console_fini): Call
12927 grub_term_set_current() before grub_term_unregister().
12929 2007-05-04 Robert Millan <rmh@aybabtu.com>
12931 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
12932 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
12933 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
12934 and update-grub_DATA.
12935 * conf/common.rmk: Build and install update-grub components.
12936 * conf/common.mk: Regenerate.
12937 * util/update-grub.in: New. Core of update-grub.
12938 * util/grub.d/00_header.in: New. Generates grub.cfg header.
12939 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
12940 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
12941 * util/grub.d/README: New. Document grub.d directory layout.
12943 2007-05-01 Robert Millan <rmh@aybabtu.com>
12945 * util/grub-emu.c: Move initialization functions
12946 grub_util_biosdisk_init() and grub_init_all() before
12947 grub_util_biosdisk_get_grub_dev(), which relies on them.
12949 2007-04-19 Robert Millan <rmh@aybabtu.com>
12951 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
12954 2007-04-18 Jerone Young <jerone@gmail.com>
12956 * kernel/elf.c: Add missing parenthesis for conditional statement
12959 2007-04-10 Jerone Young <jerone@gmail.com>
12961 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
12962 continue on and look for device node with real device name.
12964 2007-04-10 Jerone Young <jerone@gmail.com>
12966 * configure.ac: Add argument for autoconf to use transformation
12968 * Makefile.in: Add autoconf package transformation code.
12969 * util/i386/pc/grub-install.in: Likewise.
12970 * util/powerpc/ieee1275/grub-install.in: Likewise.
12972 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
12974 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
12975 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
12976 (EXT2_REVISION): Likewise.
12977 (EXT2_INODE_SIZE): Likewise.
12978 (struct grub_ext2_block_group): Added a missing member
12980 (grub_ext2_read_inode): Divide by the inode size in a superblock
12981 instead of 128 to obtain INODES_PER_BLOCK.
12982 Use the macro EXT2_INODE_SIZE instead of directly using
12983 SBLOCK->INODE_SIZE.
12985 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
12987 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
12988 superblock instead of the structure size to compute an
12989 offset. This fixes the problem that GRUB could not read a
12990 filesystem when inode size is different from 128-byte.
12992 2007-03-05 Marco Gerards <marco@gnu.org>
12994 * normal/main.c (read_config_file): When "menu" is not set, create
12995 an initial context.
12997 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
12999 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
13000 (HEAP_LIMIT): New macro.
13001 (grub_claim_heap): Claim memory up to `heaplimit'.
13003 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
13005 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
13006 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
13007 (_start): Likewise.
13008 (grub_arch_modules_addr): Return address after `_end'.
13009 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
13010 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
13011 (add_segments): Calculate `_end' from phdr size and location.
13012 (ALIGN_UP): Moved to ...
13013 * include/grub/misc.h: here.
13014 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
13016 (GRUB_IEEE1275_MODULE_BASE): Removed.
13018 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13020 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
13023 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13025 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
13027 (grub_elf64_load_hook_t): Likewise.
13028 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
13031 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13033 * kern/mm.c: Update copyright.
13034 (grub_mm_debug): Correct syntax error.
13035 (grub_mm_dump_free): New function.
13036 (grub_debug_free): Call `grub_free'.
13037 * include/grub/mm.h: Update copyright.
13038 (grub_mm_dump_free): Add declaration.
13040 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
13042 * include/grub/ieee1275/ieee1275.h: Update copyright.
13043 * kern/powerpc/ieee1275/init.c: Likewise.
13044 * kern/powerpc/ieee1275/openfw.c: Likewise.
13046 * loader/powerpc/ieee1275/linux.c: Likewise.
13047 * include/grub/elfload.h: Likewise.
13048 * kern/elf.c: Likewise.
13049 (grub_elf32_load): Pass `base' and `size' parameters. Update all
13051 (grub_elf64_load): Likewise.
13052 (grub_elf32_load_segment): Move to a nested function.
13053 (grub_elf64_load_segment): Likewise.
13055 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
13057 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
13059 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
13060 (grub_heap_len): Likewise.
13061 (HEAP_SIZE): New macro.
13062 (grub_claim_heap): New function.
13063 (grub_machine_init): Don't claim heap directly. Call
13065 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
13066 (grub_available_iterate): New function.
13068 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
13070 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
13071 * configure.ac: Use it for testing the HOST and TARGET compilers.
13073 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
13075 * Makefile.in (enable_grub_emu): New variable.
13076 * configure.ac (--enable-grub-emu): New option.
13077 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
13078 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
13079 * conf/i386-pc.rmk: Likewise.
13080 * conf/powerpc-ieee1275.rmk: Likewise.
13081 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
13083 2006-12-12 Marco Gerards <marco@gnu.org>
13085 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
13087 * kern/env.c (grub_env_unset): Don't free the member `value' when
13088 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
13091 * normal/main.c (current_menu): Removed.
13092 (free_menu): Unset the `menu' environment variable.
13093 (grub_normal_menu_addentry): Make use of the environment variable
13094 `menu', instead of using the global `current_menu'. Allocate
13095 memory for the sourcecode of this entry.
13096 (read_config_file): New argument `nested', changed all callers.
13097 Only in the case of a new context, initialize a new menu. Set the
13098 `menu' environment variable.
13099 (grub_normal_execute): Don't set and unset the environment
13100 variable `menu' here anymore. Only free the menu when leaving the
13103 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
13106 2006-12-11 Marco Gerards <marco@gnu.org>
13108 * normal/menu_entry.c (run): Fix off by one bug so the last line
13109 is executed. Move the loader check to outside the loop.
13111 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
13113 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
13115 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
13117 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
13118 the number of sectors. Reported by Andrey Shuvikov
13119 <mr_hyro@yahoo.com>.
13121 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
13123 * kern/disk.c (grub_disk_read): When there is a read error, always
13124 try to read only the necessary data.
13126 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
13128 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
13130 [GRUB_UTIL] (grub_raid_fini): Likewise.
13131 [GRUB_UTIL] (grub_lvm_init): Likewise.
13132 [GRUB_UTIL] (grub_lvm_fini): Likewise.
13133 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
13134 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
13135 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
13136 and grub_raid_fini().
13138 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
13140 * include/grub/types.h (__unused): Rename to UNUSED.
13141 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
13142 (grub_elf64_size): Likewise.
13144 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
13146 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
13147 grub_error_push and grub_error_pop in the error-handling path.
13148 (grub_elf32_load_segment): Only call grub_file_read with non-zero
13151 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
13153 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
13154 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13155 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13156 (kernel_elf_SOURCES): Likewise.
13157 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
13158 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
13159 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13160 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13161 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
13162 (elf_mod_SOURCES): New variable.
13163 (elf_mod_CFLAGS): Likewise.
13164 (elf_mod_LDFLAGS): Likewise.
13165 * include/grub/types.h (__unused): New macro.
13166 * include/grub/elfload.h: New file.
13167 * kern/elf.c: Likewise.
13168 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
13169 (ELF32_LOADMASK): New macro.
13170 (ELF64_LOADMASK): Likewise.
13171 (vmlinux): Removed.
13172 (grub_linux_load32): New function.
13173 (grub_linux_load64): Likewise.
13174 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
13175 Use grub_elf_t instead of grub_file_t.
13177 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
13179 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
13180 `catch_result' to struct set_color_args.
13182 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
13184 * normal/menu.c: Include grub/script.h.
13185 * normal/menu_entry.c: Likewise.
13186 * include/grub/normal.h: Do not include grub/script.h.
13188 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13190 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
13192 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13194 * kern/disk.c (grub_disk_open): Print debug messages when opening a
13196 (grub_disk_close): Print debug messages when closing a disk.
13197 (grub_disk_read): Print debug messages when disk read fails.
13198 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
13200 * kern/partition.c: Include misc.h.
13201 (grub_partition_iterate): Print debug messages when detecting
13204 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13206 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
13208 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
13210 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
13212 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
13213 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
13215 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
13217 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
13218 instead of sizeof(lv). Patch by Michael Guntsche.
13220 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
13222 * disk/lvm.c: Rename VGS to VG_LIST.
13223 (grub_lvm_iterate): Change VGS->LV to VG-LV.
13224 (grub_lvm_open): Likewise.
13225 Thanks to Michael Guntsche for finding this bug.
13227 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
13229 * configure.ac (AC_INIT): Bumped to 1.95.
13231 2006-10-14 Robert Millan <rmh@aybabtu.com>
13233 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
13234 with "/dev/.static/dev/md".
13236 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
13238 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
13239 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
13240 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
13241 DRIVE_NAME are always freed.
13243 * util/i386/pc/biosdisk.c (make_device_name): Add one into
13244 DOS_PART, as a DOS partition is counted from one instead of zero
13245 now. Reported by Robert Millan.
13247 2006-10-14 Robert Millan <rmh@aybabtu.com>
13249 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
13250 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
13251 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
13252 string returned by grub_guess_root_device.
13253 * util/i386/pc/grub-setup.c: Likewise.
13254 * util/i386/pc/grub-probefs.c: Likewise.
13256 * util/i386/pc/grub-probefs.c: Rename to ...
13257 * util/i386/pc/grub-probe.c: ... this.
13258 * DISTLIST: Remove grub-probefs, add grub-probe.
13259 * conf/i386-efi.rmk: Likewise.
13260 * conf/i386-pc.rmk: Likewise.
13261 * util/i386/pc/grub-install.in: Likewise.
13263 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
13264 choose which information we want to print.
13266 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
13268 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
13269 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
13270 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
13271 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
13272 video/readers/tga.c and video/i386/pc/vbeutil.c.
13274 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
13276 Added support for RAID and LVM.
13278 * disk/lvm.c: New file.
13279 * disk/raid.c: Likewise.
13280 * include/grub/lvm.h: Likewise.
13281 * include/grub/raid.h: Likewise.
13282 * include/grub/util/lvm.h: Likewise.
13283 * include/grub/util/raid.h: Likewise.
13284 * util/lvm.c: Likewise.
13285 * util/raid.c: Likewise.
13287 * include/grub/disk.h (grub_disk_dev_id): Add
13288 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
13289 (grub_disk_get_size): New prototype.
13290 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
13291 returns a partition.
13292 (grub_disk_get_size): New function.
13294 * kern/i386/pc/init.c (make_install_device): Copy the prefix
13295 verbatim if grub_install_dos_part is -2.
13297 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
13300 * util/i386/pc/grub-setup.c (setup): New argument
13301 MUST_EMBED. Force embedding of GRUB when the argument is
13302 true. Close FILE before returning.
13303 (main): Add support for RAID and LVM.
13305 * conf/common.rmk: Add RAID and LVM modules.
13306 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
13308 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
13310 * kern/misc.c (grub_strstr): New function.
13311 * include/grub/misc.h (grub_strstr): New prototype.
13313 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
13315 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
13317 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
13319 * kern/misc.c (grub_strtoull): Guess the base only if not
13322 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13324 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
13327 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13329 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
13331 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
13332 Remove `flags' argument. All callers changed.
13333 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
13334 (IEEE1275_IHANDLE_INVALID): New variable.
13335 (IEEE1275_CELL_INVALID): New variable.
13336 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
13337 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
13338 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
13339 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
13340 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
13341 codes from Open Firmware. All callers updated.
13342 (grub_ieee1275_next_property): Directly return Open Firmware return
13344 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
13345 Standardize error checking from `grub_ieee1275_get_property'.
13346 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
13347 `devalias' to `aliases'. Correct comments. Consolidate error paths.
13349 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13351 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
13352 `instance_to_package_args' to `instance_to_path_args'.
13354 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
13355 `grub_ieee1275_chosen'.
13357 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
13358 `grub_ieee1275_interpret'.
13360 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
13362 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
13364 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
13366 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
13367 (__cmpdi): Likewise.
13369 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
13370 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
13373 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
13375 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
13376 to type `grub_ssize_t'.
13377 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
13379 2006-09-22 Marco Gerards <marco@gnu.org>
13381 * normal/script.c (grub_script_create_cmdmenu): Skip leading
13384 2006-09-22 Marco Gerards <marco@gnu.org>
13386 * commands/echo.c: New file.
13388 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
13390 * conf/common.rmk (echo_mod_SOURCES): New variable.
13391 (echo_mod_CFLAGS): Likewise.
13392 (echo_mod_LDFLAGS): Likewise.
13394 2006-09-22 Marco Gerards <marco@gnu.org>
13396 * normal/main.c (get_line): Malloc memory instead of using
13397 preallocated memory. Removed the arguments `cmdline' and
13398 `max_len'. Updated all callers.
13400 2006-09-22 Marco Gerards <marco@gnu.org>
13402 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
13403 (normal_mod_DEPENDENCIES): Likewise.
13405 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
13406 (normal_mod_DEPENDENCIES): Likewise.
13408 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
13410 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
13412 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
13414 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
13415 (normal_mod_DEPENDENCIES): Likewise.
13416 * conf/i386-pc.mk: Regenerate.
13417 * conf/i386-efi.mk: Likewise
13418 * conf/common.mk: Likewise.
13419 * conf/powerpc-ieee1275.mk: Likewise.
13420 * conf/sparc64-ieee1275.mk: Likewise.
13422 2006-09-22 Robert Millan <rmh@aybabtu.com>
13424 Sync with i386 version.
13425 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
13426 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
13428 2006-09-21 Robert Millan <rmh@aybabtu.com>
13430 Import from GRUB Legacy (lib/device.c):
13431 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
13432 (init_device_map) [__linux__]: Add support for I2O devices.
13434 2006-09-14 Marco Gerards <marco@gnu.org>
13436 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
13439 2006-09-14 Robert Millan <rmh@aybabtu.com>
13441 * util/i386/pc/grub-install.in: Skip menu.lst when removing
13444 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
13446 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
13447 before adding it to device.map.
13449 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
13451 * genmk.rb: Let GCC generate dependencies the first time it
13452 compiles a file; using the -MD option.
13453 * conf/common.mk: Regenerate.
13454 * conf/i386-pc.mk: Likewise.
13455 * conf/i386-efi.mk: Likewise.
13456 * conf/powerpc-ieee1275.mk: Likewise.
13457 * conf/sparc64-ieee1275.mk: Likewise.
13459 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
13461 Move the prototypes of grub_setjmp and grub_longjmp to
13462 cpu/setjmp.h, so that each architecture may specify different
13465 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
13466 (grub_longjmp): Likewise.
13467 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
13468 (grub_longjmp): Likewise.
13469 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
13470 (grub_longjmp): Likewise.
13472 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
13473 [!GRUB_UTIL] (grub_longjmp): Removed.
13475 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
13477 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
13478 "color!" method does not return any value.
13480 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
13482 * include/grub/bitmap.h: New file.
13484 * include/grub/i386/pc/vbeutil.h: Likewise.
13486 * video/bitmap.c: Likewise.
13488 * video/readers/tga.c: Likewise.
13490 * video/i386/pc/vbeutil.c: Likewise.
13492 * commands/videotest.c: Code cleanup and updated to reflect to new
13495 * term/gfxterm.c: Likewise.
13497 * video/video.c: Likewise.
13499 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
13500 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
13501 (bitmap_mod_SOURCES): New entry.
13502 (bitmap_mod_CFLAGS): Likewise.
13503 (bitmap_mod_LDFLAGS): Likewise.
13504 (tga_mod_SOURCES): Likewise.
13505 (tga_mod_CFLAGS): Likewise.
13506 (tga_mod_LDFLAGS): Likewise.
13508 * include/grub/video.h (grub_video_blit_operators): New enum type.
13509 (grub_video_render_target): Changed as forward declaration and moved
13510 actual definition to be video driver specific.
13511 (grub_video_adapter.blit_bitmap): Added blitting operator.
13512 (grub_video_adapter.blit_render_target): Likewise.
13513 (grub_video_blit_bitmap): Likewise.
13514 (grub_video_blit_render_target): Likewise.
13516 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
13517 driver specific render target definition.
13518 (grub_video_vbe_map_rgba): Added driver internal helper.
13519 (grub_video_vbe_unmap_color): Updated to use
13520 grub_video_i386_vbeblit_info.
13521 (grub_video_vbe_get_video_ptr): Likewise.
13523 * include/grub/i386/pc/vbeblit.h
13524 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
13525 grub_video_i386_vbeblit_info.
13526 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
13527 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
13528 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
13529 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
13530 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
13531 (grub_video_i386_vbeblit_index_index): Likewise.
13532 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
13533 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
13534 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
13535 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
13537 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
13540 * video/i386/pc/vbeblit.c: Updated to reflect changes on
13541 include/grub/i386/pc/vbeblit.h.
13543 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
13544 Updated to use grub_video_i386_vbeblit_info.
13545 (grub_video_i386_vbefill_R8G8B8): Likewise.
13546 (grub_video_i386_vbefill_index): Likewise.
13547 (grub_video_i386_vbefill): Added generic filler.
13549 * video/i386/pc/vbefill.c: Updated to reflect changes on
13550 include/grub/i386/pc/vbefill.h.
13552 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
13553 grub_video_i386_vbeblit_info.
13554 (grub_video_vbe_unmap_color): Likewise.
13555 (grub_video_vbe_blit_glyph): Likewise.
13556 (grub_video_vbe_scroll): Likewise.
13557 (grub_video_vbe_draw_pixel): Removed function.
13558 (grub_video_vbe_get_pixel): Likewise.
13559 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
13560 updated code to use it.
13561 (common_blitter): Added common blitter for render target and bitmap.
13562 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
13563 (grub_video_vbe_blit_render_target): Likewise.
13565 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
13567 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
13568 is in text mode if there is no console control protocol instance
13571 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
13573 * include/grub/video.h: Code cleanup.
13575 * include/grub/i386/pc/vbe.h: Likewise.
13577 * video/i386/pc/vbe.c: Likewise.
13579 * video/i386/pc/vbeblit.c: Likewise.
13581 * video/i386/pc/vbefill.c: Likewise.
13583 * video/video.c: Likewise. Also added more comments.
13585 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
13587 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
13588 (struct grub_biosdisk_dap): Likewise.
13590 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
13591 linkage settings for all functions.
13593 2006-07-12 Marco Gerards <marco@gnu.org>
13595 * configure.ac (--enable-mm-debug): Fix typo.
13597 * genkernsyms.sh.in: Use proper quoting for `CC'.
13599 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
13601 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
13602 (normal_mod_ASFLAGS): Remove "-m32".
13604 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
13606 * util/misc.c: Include config.h.
13607 [!HAVE_MEMALIGN]: Do not include malloc.h.
13608 (grub_memalign): Use posix_memalign, if present. Then, use
13609 memalign, if present. Otherwise, emit an error.
13611 * util/grub-emu.c: Do not include malloc.h.
13613 * include/grub/util/misc.h: Include unistd.h. This is required for
13614 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
13615 D. Eades III <hde@foobar-qux.org>.
13617 * configure.ac (AC_GNU_SOURCE): Added.
13618 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
13621 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
13623 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
13624 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
13626 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
13628 * include/grub/types.h (grub_host_addr_t): Rename to
13629 grub_target_addr_t.
13630 (grub_host_off_t): Rename to grub_target_off_t.
13631 (grub_host_size_t): Rename to grub_target_size_t.
13632 (grub_host_ssize_t): Rename to grub_target_ssize_t.
13633 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
13635 * include/grub/kernel.h (struct grub_module_header): Change type
13636 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
13637 (grub_module_info): Likewise.
13639 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
13641 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
13642 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
13643 Velazquez <jesus.velazquez@gmail.com>.
13645 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
13647 Count partitions from 1 instead of 0 in the string representation
13648 of partitions. Still use 0-based internally.
13650 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
13651 (sun_partition_map_iterate): Use grub_partition_t instead of
13652 struct grub_partition *. Cast DESC->START_CYLINDER to
13653 grub_uint64_t after converting the endian.
13654 (sun_partition_map_probe): Subtract 1 for PARTNUM.
13655 (sun_partition_map_get_name): Add 1 to P->INDEX.
13657 * partmap/pc.c (grub_partition_parse): Subtract 1 for
13659 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
13661 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
13662 zero instead of one.
13663 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
13664 (gpt_partition_map_get_name): Add 1 into P->INDEX.
13666 * partmap/apple.c (apple_partition_map_iterate): Change the type
13667 of POS to unsigned.
13668 (apple_partition_map_probe): Subtract 1 for PARTNUM.
13669 (apple_partition_map_get_name): Add 1 into P->INDEX.
13671 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
13672 of POS to unsigned.
13673 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
13674 calculate the offset of a partition.
13675 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
13676 (amiga_partition_map_get_name): Add 1 into P->INDEX.
13678 * partmap/acorn.c (acorn_partition_map_find): Change the type of
13679 SECTOR to grub_disk_addr_t.
13680 (acorn_partition_map_iterate): Likewise.
13681 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
13682 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
13684 (acorn_partition_map_get_name): Add 1 into P->INDEX.
13686 * kern/i386/pc/init.c (make_install_device): Add 1 into
13687 GRUB_INSTALL_DOS_PART.
13689 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
13692 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
13694 Clean up the code to support 64-bit addressing in disks and
13695 files. This change is not enough for filesystems yet.
13697 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
13698 type of "start" to grub_uint64_t.
13699 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
13700 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
13701 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
13704 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
13705 to grub_disk_addr_t.
13707 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
13710 * partmap/pc.c (pc_partition_map_iterate): Likewise.
13712 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
13715 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
13717 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
13719 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
13721 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
13722 to grub_off_t, to detect an error from grub_file_seek.
13723 (grub_multiboot_load_elf32): Likewise.
13725 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
13726 maximum unsigned long value when an overflow is detected.
13727 (grub_strtoull): New function.
13728 (grub_divmod64): Likewise.
13729 (grub_lltoa): use grub_divmod64.
13731 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
13733 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
13734 the pointer to next character. Use grub_strtoull instead of
13736 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
13737 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
13740 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
13741 return value is signed.
13742 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
13743 test if OFFSET is less than zero, as OFFSET is unsigned now.
13745 * kern/disk.c (struct grub_disk_cache): Change the type of
13746 "sector" to grub_disk_addr_t.
13747 (grub_disk_cache_get_index): Change the type of SECTOR to
13748 grub_disk_addr_t. Calculate the hash with SECTOR casted to
13749 unsigned after shifting.
13750 (grub_disk_cache_invalidate): Change the type of SECTOR to
13752 (grub_disk_cache_unlock): Likewise.
13753 (grub_disk_cache_store): Likewise.
13754 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
13755 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
13756 grub_disk_addr_t and grub_uint64_t, respectively.
13757 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
13758 body, as the value of OFFSET is tweaked by
13759 grub_disk_check_range. Change the types of START_SECTOR, LEN and
13760 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
13762 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
13763 body, as the value of OFFSET is tweaked by
13764 grub_disk_check_range. Change the types of LEN and N to
13767 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
13768 and "saved_offset" to grub_off_t.
13769 (test_header): Cast BUF to char *.
13770 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
13772 (grub_gzio_read): Change the types of OFFSET and SIZE to
13773 grub_off_t and grub_size_t, respectively.
13775 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
13777 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
13778 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
13779 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
13780 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
13781 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
13783 * include/grub/types.h (grub_off_t): Unconditionally set to
13785 (grub_disk_addr_t): Changed to grub_uint64_t.
13787 * include/grub/partition.h (struct grub_partition): Change the
13788 types of "start", "len" and "offset" to grub_disk_addr_t,
13789 grub_uint64_t and grub_disk_addr_t, respectively.
13790 (grub_partition_get_start): Return grub_disk_addr_t.
13791 (grub_partition_get_len): Return grub_uint64_t.
13793 * include/grub/misc.h (grub_strtoull): New prototype.
13794 (grub_divmod64): Likewise.
13796 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
13797 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
13798 grub_off_t, respectively.
13799 All callers and references changed.
13801 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
13802 grub_size_t in "read".
13803 All callers and references changed.
13805 * include/grub/file.h (struct grub_file): Change the types of
13806 "offset" and "size" to grub_off_t and grub_off_t,
13807 respectively. Change the type of SECTOR to grub_disk_addr_t in
13809 (grub_file_read): Change the type of LEN to grub_size_t.
13810 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
13812 (grub_file_size): Return grub_off_t.
13813 (grub_file_tell): Likewise.
13814 All callers and references changed.
13816 * include/grub/disk.h (struct grub_disk_dev): Change the types of
13817 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
13819 (struct grub_disk): Change the type of "total_sectors" to
13820 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
13822 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
13823 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
13824 (grub_disk_write): Likewise.
13825 All callers and references changed.
13827 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
13828 char * for grub_strncmp to silence gcc.
13829 (grub_iso9660_mount): Likewise.
13830 (grub_iso9660_mount): Likewise.
13831 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
13833 (grub_iso9660_iterate_dir): Likewise.
13834 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
13836 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
13837 LEN to grub_disk_addr_t and grub_size_t, respectively.
13839 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
13841 * fs/jfs.c (grub_jfs_read_file): Likewise.
13843 * fs/minix.c (grub_jfs_read_file): Likewise.
13845 * fs/sfs.c (grub_jfs_read_file): Likewise.
13847 * fs/ufs.c (grub_jfs_read_file): Likewise.
13849 * fs/xfs.c (grub_jfs_read_file): Likewise.
13851 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
13852 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
13855 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
13856 BLKNR to -1 instead of returning GRUB_ERRNO.
13857 (grub_ext2_read_file): Change the types of SECTOR and
13858 LEN to grub_disk_addr_t and grub_size_t, respectively.
13860 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
13861 LEN to grub_disk_addr_t and grub_size_t, respectively.
13863 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
13866 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
13867 string. Do not cast SECTOR explicitly.
13869 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
13870 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
13871 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
13872 grub_disk_addr_t and grub_size_t, respectively. If the sector is
13873 over 2TB and LBA mode is not supported, raise an error.
13874 (get_safe_sectors): New function.
13875 (grub_biosdisk_read): Use get_safe_sectors.
13876 (grub_biosdisk_write): Likewise.
13878 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
13879 (grub_efidisk_write): Likewise.
13881 * disk/loopback.c (delete_loopback): Cosmetic changes.
13882 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
13884 (grub_loopback_open): Likewise.
13885 (grub_loopback_read): Likewise. Also, change the type of POS to
13886 grub_off_t, and fix the usage of grub_memset.
13888 * commands/i386/pc/play.c: Include grub/machine/time.h.
13890 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
13893 * commands/configfile.c: Include grub/env.h.
13895 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
13896 GRUB_ERRNO directly instead. Change the type of POS to
13897 grub_off_t. Follow the coding standard.
13899 * commands/blocklist.c: Include grub/partition.h.
13900 (grub_cmd_blocklist): Return an error if the underlying device is
13901 not a disk. Take the starting sector of a partition into account,
13902 if a partition is used.
13904 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
13906 (lba_mode): Support 64-bit addresses.
13907 (chs_mode): Likewise.
13908 (copy_buffer): Adapted to the new offsets of a length field and a
13910 (blocklist_default_start): Allocate 64-bit space.
13912 * boot/i386/pc/boot.S (force_lba): Removed.
13913 (boot_drive): Moved to under KERNEL_SECTOR.
13914 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
13916 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
13918 (lba_mode): Refactored to support a 64-bit address. More size
13920 (setup_sectors): Likewise.
13922 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
13924 * DISTLIST: Added include/grub/i386/linux.h. Removed
13925 include/grub/i386/pc/linux.h
13927 * configure.ac (AC_INIT): Bumped to 1.94.
13929 * config.guess: Updated from gnulib.
13930 * config.sub: Likewise.
13931 * install-sh: Likewise.
13932 * mkinstalldirs: Likewise.
13934 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
13936 * conf/common.rmk (grub_modules_init.lst): Depended on
13937 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
13940 * genmk.rb (PModule::rule): Reverted the previous change.
13942 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
13944 * conf/common.rmk (grub_modules_init.lst): Depends on
13945 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
13946 that the target does not exist before producing.
13947 (grub_modules_init.h): Remove the target before generating.
13948 (grub_emu_init.c): Likewise.
13950 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
13952 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
13954 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
13955 for the target-specific tests. Make sure that we also have the
13956 up-to-date target variables for those tests.
13958 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
13960 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
13961 (PModule::rule): Likewise.
13963 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
13965 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
13966 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
13967 target-specific flags should be prefixed.
13968 (PModule::rule): Likewise.
13970 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
13972 * configure.ac (CMP): Check if cmp is available explicitly.
13974 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
13976 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
13977 (target_cpu): New variable.
13978 (pkglibdir): Use target_cpu instead of host_cpu.
13980 * util/i386/pc/grub-install.in (host_cpu): Removed.
13981 (target_cpu): New variable.
13982 (pkglibdir): Use target_cpu instead of host_cpu.
13984 * util/genmoddep.c: Removed.
13986 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
13987 instead of GRUB_HOST_SIZEOF_VOID_P.
13988 * kern/dl.c: Likewise.
13990 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
13992 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
13993 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
13994 (GRUB_TARGET_SIZEOF_LONG): ... this.
13995 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
13996 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
13997 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
13999 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14000 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14001 (GRUB_TARGET_SIZEOF_LONG): ... this.
14002 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14003 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14004 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
14006 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14007 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14008 (GRUB_TARGET_SIZEOF_LONG): ... this.
14009 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14010 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14012 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
14013 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
14014 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
14015 instead of GRUB_HOST_SIZEOF_LONG.
14016 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
14017 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
14018 GRUB_CPU_WORDS_BIGENDIAN.
14019 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
14020 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
14023 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
14024 (genmoddep_SOURCES): Likewise.
14025 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
14026 (genmoddep_SOURCES): Likewise.
14027 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
14028 (genmoddep_SOURCES): Likewise.
14029 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
14031 (genmoddep_SOURCES): Likewise.
14033 * genmoddep.awk: New file.
14035 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
14036 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
14037 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
14038 (PModule::rule): Likewise.
14039 (Program::rule): Likewise.
14040 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
14041 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
14044 * configure.ac: Rewritten intensively to use host and target
14045 instead of build and host, respectively.
14047 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
14048 (host_cpu): Removed.
14049 (target_cpu): New variable.
14050 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
14051 (BUILD_CC): Removed.
14052 (BUILD_CFLAGS): Likewise.
14053 (BUILD_CPPFLAGS): Likewise.
14054 (TARGET_CC): New variable.
14055 (TARGET_CFLAGS): Likewise.
14056 (TARGET_CPPFLAGS): Likewise.
14057 (TARGET_LDFLAGS): Likewise.
14059 (include): Use target_cpu instead of host_cpu.
14060 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
14062 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
14064 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
14066 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
14067 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
14068 field 'false' to 'exec_on_false'.
14069 (grub_script_create_cmdif): Renamed argument names to reflect above
14072 * normal/execute.c (grub_script_execute_cmdif): Likewise.
14074 * normal/script.c (grub_script_create_cmdif): Likewise.
14076 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
14078 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
14080 (grub_hfsplus_btree_recptr): Likewise.
14081 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
14082 FILEBLOCK both to pass a block number and store next block
14084 (grub_hfsplus_read_block): Rewritten heavily to support an extent
14085 overflow file correctly. Specify errors appropriately, because
14086 fshelp expects that GRUB_ERRNO is set when fails. Reuse
14087 grub_hfsplus_btree_recptr to get the pointer to a found key.
14088 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
14091 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
14093 (_linux_mod_SOURCES): New variable.
14094 (_linux_mod_CFLAGS): Likewise.
14095 (_linux_mod_LDFLAGS): Likewise.
14096 (linux_mod_SOURCES): Likewise.
14097 (linux_mod_CFLAGS): Likewise.
14098 (linux_mod_LDFLAGS): Likewise.
14100 * DISTLIST: Added loader/i386/efi/linux.c,
14101 loader/i386/efi/linux_normal.c and
14102 include/grub/i386/efi/loader.h.
14104 * loader/i386/efi/linux.c: New file.
14105 * loader/i386/efi/linux_normal.c: Likewise.
14106 * include/grub/i386/efi/loader.h: Likewise.
14108 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
14110 * commands/blocklist.c: New file.
14112 * DISTLIST: Added commands/blocklist.c.
14114 * term/efi/console.c (grub_console_highlight_color): Use a lighter
14115 color for the background, and a darker color for the foreground.
14116 (grub_console_checkkey): Return READ_KEY.
14117 (grub_console_cls): Set the background to
14118 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
14120 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
14122 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
14123 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
14125 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
14128 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
14129 BG. The spec is wrong again.
14131 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
14133 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
14135 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
14136 commands/blocklist.c.
14137 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14139 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
14140 (blocklist_mod_SOURCES): New variable.
14141 (blocklist_mod_CFLAGS): Likewise.
14142 (blocklist_mod_LDFLAGS): Likewise.
14144 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
14146 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
14148 (lba_mode): Use %eax more intensively to reduce the code size.
14150 2006-05-20 Marco Gerards <marco@gnu.org>
14152 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
14154 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
14156 (script): Accept leading newlines.
14157 (newlines): New rule to describe 0 or more newlines.
14158 (commands): Accept `command' with trailing newline. Fixed the
14159 order in which arguments were passed to `grub_script_add_cmd'.
14160 Accept commands separated by newlines.
14161 (function): Changed to accept newlines.
14162 (menuentry) Rewritten.
14164 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
14165 front of the list, instead of to the end.
14167 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
14169 * util/i386/pc/grub-install.in (bindir): New variable.
14170 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
14171 Shaver <lbgwjl@gmail.com>.
14173 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
14175 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
14176 grub/machine/linux.h
14177 * loader/i386/pc/linux.c: Likewise.
14179 * include/grub/i386/pc/linux.h: Moved to ...
14180 * include/grub/i386/linux.h: ... here.
14182 * include/grub/i386/linux.h (struct linux_kernel_params): New
14185 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
14187 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
14189 (grub_video_vbe_blit_glyph): Likewise.
14190 (grub_video_vbe_blit_bitmap): Likewise.
14191 (grub_video_vbe_blit_render_target): Likewise.
14193 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
14195 * configure.ac (--with-platform): Properly quote the square
14198 2006-05-08 Marco Gerards <marco@gnu.org>
14200 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
14202 (kernel_elf_HEADERS): ...to this. Updated all users.
14203 (grubof_symlist.c): Renamed from this...
14204 (kernel_elf_symlist.c): ...to this. Updated all users.
14205 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
14206 (grubof_SOURCES): Renamed from this...
14207 (kernel_elf_SOURCES): ...to this.
14208 (grubof_HEADERS): Renamed from this...
14209 (kernel_elf_HEADERS): ...to this.
14210 (grubof_CFLAGS): Renamed from this...
14211 (kernel_elf_CFLAGS): ...to this.
14212 (grubof_ASFLAGS): Renamed from this...
14213 (kernel_elf_ASFLAGS): ...to this.
14214 (grubof_LDFLAGS): Renamed from this...
14215 (kernel_elf_LDFLAGS): ...to this.
14217 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
14219 (kernel_elf_HEADERS): ...to this. Updated all users.
14220 (grubof_symlist.c): Renamed from this...
14221 (kernel_elf_symlist.c): ...to this. Updated all users.
14222 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
14223 (grubof_SOURCES): Renamed from this...
14224 (kernel_elf_SOURCES): ...to this.
14225 (grubof_HEADERS): Renamed from this...
14226 (kernel_elf_HEADERS): ...to this.
14227 (grubof_CFLAGS): Renamed from this...
14228 (kernel_elf_CFLAGS): ...to this.
14229 (grubof_ASFLAGS): Renamed from this...
14230 (kernel_elf_ASFLAGS): ...to this.
14231 (grubof_LDFLAGS): Renamed from this...
14232 (kernel_elf_LDFLAGS): ...to this.
14234 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
14235 `kernel.elf' instead of `grubof'.
14237 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
14239 Add --with-platform to configure. Use pkglibdir instead of
14240 pkgdatadir. This is reported by Roger Leigh.
14242 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
14243 (host_vendor): Likewise.
14244 (host_os): Likewise.
14245 (pkgdatadir): Likewise.
14246 (platform): New variable.
14247 (pkglibdir): Likewise.
14248 Use PKGLIBDIR instead of PKGDATADIR.
14250 * util/i386/pc/grub-install.in (datadir): Removed.
14251 (host_vendor): Likewise.
14252 (host_os): Likewise.
14253 (pkgdatadir): Likewise.
14254 (platform): New variable.
14255 (pkglibdir): Likewise.
14256 Use PKGLIBDIR instead of PKGDATADIR.
14258 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
14259 instead of GRUB_DATADIR.
14261 * util/i386/pc/grub-mkimage.c (usage): Likewise.
14263 * util/i386/efi/grub-mkimage.c (usage): Likewise.
14266 * configure.ac (--with-platform): New option.
14267 Use PLATFORM instead of HOST_VENDOR to specify a platform.
14269 * Makefile.in: Include a makefile based on PLATFORM instead of
14271 (pkgdatadir): Not appended by the machine type.
14272 (pkglibdir): Appended by the machine type.
14273 (host_vendor): Removed.
14274 (platform): New variable.
14275 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
14276 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
14277 (uninstall): Likewise.
14279 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
14281 Use the environment context in the menu. Remove the commands
14282 "default" and "timeout", and use variables instead.
14284 * normal/menu.c: Include grub/env.h.
14285 (print_entry): Cast TITLE to silence gcc.
14286 (get_timeout): New function.
14287 (set_timeout): Likewise.
14288 (get_entry_number): Likewise.
14289 (run_menu): Use a default entry, a fallback entry and a timeout
14290 in the environment variables "default", "fallback" and
14291 "timeout". Also, tweak the default entry if it is not within the
14292 current menu entries.
14293 (grub_menu_run): Use a fallback entry in the environment variable
14296 * normal/main.c (read_config_file): Do not initialize
14297 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
14299 (grub_normal_execute): Use a data slot to store the menu.
14301 * include/grub/normal.h (struct grub_menu): Removed default_entry,
14302 fallback_entry and timeout.
14303 (struct grub_menu_list): Removed.
14304 (grub_menu_list_t): Likewise.
14305 (struct grub_context): Likewise.
14306 (grub_context_t): Likewise.
14307 (grub_context_get): Likewise.
14308 (grub_context_get_current_menu): Likewise.
14309 (grub_context_push_menu): Likewise.
14310 (grub_context_pop_menu): Likewise.
14311 (grub_default_init): Likewise.
14312 (grub_default_fini): Likewise.
14313 (grub_timeout_init): Likewise.
14314 (grub_timeout_fini): Likewise.
14316 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
14318 (normal_mod_SOURCES): Removed normal/context.c.
14320 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
14321 commands/default.c, commands/timeout.c and normal/context.c.
14322 (normal_mod_SOURCES): Removed normal/context.c.
14324 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
14325 commands/timeout.c and normal/context.c.
14326 (normal_mod_SOURCES): Removed normal/context.c.
14328 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
14329 commands/default.c, commands/timeout.c and normal/context.c.
14330 (normal_mod_SOURCES): Removed normal/context.c.
14332 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
14334 (default_mod_SOURCES): Removed.
14335 (default_mod_CFLAGS): Likewise.
14336 (default_mod_LDFLAGS): Likewise.
14337 (timeout_mod_SOURCES): Removed.
14338 (timeout_mod_CFLAGS): Likewise.
14339 (timeout_mod_LDFLAGS): Likewise.
14341 * DISTLIST: Removed commands/default.c, commands/timeout.c and
14344 * commands/default.c: Removed.
14345 * commands/timeout.c: Likewise.
14346 * normal/context.c: Likewise.
14348 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
14350 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
14352 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
14354 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
14355 "next" to "prev" for readability.
14356 (struct grub_env_sorted_var): New struct.
14357 (grub_env_context): Renamed to ...
14358 (initial_context): ... this.
14359 (grub_env_var_context): Renamed to ...
14360 (current_context): ... this.
14361 (grub_env_find): Look only at CURRENT_CONTEXT.
14362 (grub_env_context_open): Rewritten to copy exported variables from
14364 (grub_env_context_close): Rewritten according to the new
14365 scheme. Also, add an assertion to prevent the initial context from
14367 (grub_env_insert): Removed the code for the sorted list.
14368 (grub_env_remove): Likewise.
14369 (grub_env_export): Simply mark the variable with
14370 GRUB_ENV_VAR_GLOBAL.
14371 (grub_env_set): A cosmetic change for naming consistency.
14372 (grub_env_get): Likewise.
14373 (grub_env_unset): Likewise.
14374 (grub_env_iterate): Rewritten to sort variables within this
14376 (grub_register_variable_hook): Fixed for naming consistency. Call
14377 grub_env_find again, only if NAME is not found at the first time.
14378 (mangle_data_slot_name): New function.
14379 (grub_env_set_data_slot): Likewise.
14380 (grub_env_get_data_slot): Likewise.
14381 (grub_env_unset_data_slot): Likewise.
14383 * include/grub/env.h (grub_env_var_type): New enum.
14384 (GRUB_ENV_VAR_LOCAL): New constant.
14385 (GRUB_ENV_VAR_GLOBAL): Likewise.
14386 (GRUB_ENV_VAR_DATA): Likewise.
14387 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
14389 (grub_env_set): Replace VAR with NAME for consistency.
14390 (grub_register_variable_hook): Likewise.
14391 (grub_env_export): Specify the name of the argument.
14392 (grub_env_set_data_slot): New prototype.
14393 (grub_env_get_data_slot): Likewise.
14394 (grub_env_unset_data_slot): Likewise.
14396 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
14398 Extend the loader so that GRUB can accept a loader which comes
14399 back to GRUB when a loaded image exits. Also, this change adds
14400 support for a chainloader on EFI.
14402 * term/efi/console.c: Include grub/misc.h.
14403 (grub_console_checkkey): Display a scan code on the top for
14404 debugging. This will be removed once the EFI port gets stable.
14405 Correct the scan code mapping.
14407 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
14408 allocate memory from larger regions, in order to reduce the number
14409 of allocated regions. Otherwise, the MacOSX loader panics.
14410 (filter_memory_map): Avoid less than 1MB for compatibility with
14412 (add_memory_regions): Allocate from the tail of a region, if
14413 possible, to avoid allocating a region near to 1MB, for the MacOSX
14416 * kern/efi/init.c (grub_efi_set_prefix): Specify
14417 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
14419 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
14420 argument IMAGE_HANDLE and specify it to get a loaded image.
14421 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
14422 grub_efi_get_loaded_image.
14423 (grub_efi_get_filename): Divide the length by the size of
14425 (grub_efi_get_device_path): New function.
14426 (grub_efi_print_device_path): Print End Device Path nodes. Divide
14427 the length by the size of grub_efi_char16_t for a file path device
14430 * kern/loader.c (grub_loader_noreturn): New variable.
14431 (grub_loader_set): Accept a new argument NORETURN. Set
14432 GRUB_LOADER_NORETURN to NORETURN.
14433 All callers changed.
14434 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
14437 * include/grub/efi/efi.h (grub_efi_get_device_path): New
14439 (grub_efi_get_loaded_image): Take an argument to specify an image
14442 * include/grub/loader.h (grub_loader_set): Added one more argument
14445 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
14446 instead of grub_efi_open_protocol.
14447 (grub_efidisk_get_device_name): Likewise.
14448 (grub_efidisk_close): Print a newline.
14449 (grub_efidisk_get_device_handle): Fixed to use
14450 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
14451 GRUB_EFI_DEVICE_PATH_TYPE.
14453 * disk/efi/efidisk.c (device_path_guid): Moved to ...
14454 * kern/efi/efi.c (device_path_guid): ... here.
14456 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
14458 (kernel_mod_HEADERS): Added efi/disk.h.
14459 (_chain_mod_SOURCES): New variable.
14460 (_chain_mod_CFLAGS): Likewise.
14461 (_chain_mod_LDFLAGS): Likewise.
14462 (chain_mod_SOURCES): Likewise.
14463 (chain_mod_CFLAGS): Likewise.
14464 (chain_mod_LDFLAGS): Likewise.
14466 * DISTLIST: Added include/grub/efi/chainloader.h,
14467 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
14469 * include/grub/efi/chainloader.h: New file.
14470 * loader/efi/chainloader.c: Likewise.
14471 * loader/efi/chainloader_normal.c: Likewise.
14473 2006-04-30 Marco Gerards <marco@gnu.org>
14475 * commands/configfile.c (grub_cmd_source): New function.
14476 (GRUB_MOD_INIT): Register the commands `source' and `.'.
14477 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
14479 2006-04-30 Marco Gerards <marco@gnu.org>
14481 * normal/execute.c (grub_script_execute_cmd): Change the return
14482 type to `grub_err_t'. Correctly return the error.
14483 (grub_script_execute_cmdline): In case a command line is not a
14484 command or a function, try to interpret it as an assignment.
14486 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
14488 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
14489 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
14490 skip a node whose name is obviously invalid as UTF-16,
14491 i.e. contains a NUL character. Stop the iteration when the last
14492 directory entry is found. Instead of using the return value of
14493 grub_hfsplus_btree_iterate_node, store the value in RET and use
14494 it, because the iterator can be stopped by the last directory
14497 2006-04-30 Marco Gerards <marco@gnu.org>
14499 * include/grub/env.h (grub_env_export): New prototype. Reported
14500 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
14502 2006-04-30 Marco Gerards <marco@gnu.org>
14504 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
14505 size of the extents in a catalog file record.
14507 2006-04-29 Marco Gerards <marco@gnu.org>
14509 * commands/configfile.c (grub_cmd_configfile): Execute the
14510 configfile within its own context.
14512 * include/grub/env.h (grub_env_context_open): New prototype.
14513 (grub_env_context_close): Likewise.
14515 * kern/env.c (grub_env): Removed.
14516 (grub_env_sorted): Likewise.
14517 (grub_env_context): New variable.
14518 (grub_env_var_context): Likewise.
14519 (grub_env_find): Search both the active context and the global
14521 (grub_env_context_open): New function.
14522 (grub_env_context_close): Likewise.
14523 (grub_env_insert): Likewise.
14524 (grub_env_remove): Likewise.
14525 (grub_env_export): Likewise.
14526 (grub_env_set): Changed to use helper functions to avoid code
14528 (grub_env_iterate): Rewritten so both the current context and the
14529 global context are being used.
14531 * normal/command.c (export_command): New function.
14532 (grub_command_init): Register the `export' function.
14534 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
14536 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
14537 explicitly to suppress gcc's warnings.
14538 * fs/fat.c (grub_fat_find_dir): Likewise.
14539 (grub_fat_label): Likewise.
14540 * fs/xfs.c (grub_xfs_read_inode): Likewise.
14541 (grub_xfs_mount): Likewise.
14542 (grub_xfs_label): Likewise.
14543 * fs/affs.c (grub_affs_mount): Likewise.
14544 (grub_affs_label): Likewise.
14545 (grub_affs_iterate_dir): Likewise.
14546 * fs/sfs.c (grub_sfs_mount): Likewise.
14547 (grub_sfs_iterate_dir): Likewise.
14548 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
14549 * fs/hfs.c (grub_hfs_mount): Likewise.
14550 (grub_hfs_cmp_catkeys): Likewise.
14551 (grub_hfs_find_dir): Likewise.
14552 (grub_hfs_dir): Likewise.
14553 (grub_hfs_label): Likewise.
14554 * fs/jfs.c (grub_jfs_mount): Likewise.
14555 (grub_jfs_opendir): Likewise.
14556 (grub_jfs_getent): Likewise.
14557 (grub_jfs_lookup_symlink): Likewise.
14558 (grub_jfs_label): Likewise.
14559 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14560 (grub_hfsplus_iterate_dir): Likewise.
14561 (grub_hfsplus_btree_iterate_node): Made static.
14563 * util/grub-emu.c (prefix): New variable.
14564 (grub_machine_set_prefix): New function.
14565 (main): Do not set the environment variable "prefix" here. Only
14566 set PREFIX, which is used later by grub_machine_set_prefix.
14568 * include/grub/video.h: Do not include grub/symbol.h.
14569 (grub_video_register): Not exported. This symbol is not defined in
14571 (grub_video_unregister): Likewise.
14572 (grub_video_iterate): Likewise.
14573 (grub_video_setup): Likewise.
14574 (grub_video_restore): Likewise.
14575 (grub_video_get_info): Likewise.
14576 (grub_video_get_blit_format): Likewise.
14577 (grub_video_set_palette): Likewise.
14578 (grub_video_get_palette): Likewise.
14579 (grub_video_set_viewport): Likewise.
14580 (grub_video_get_viewport): Likewise.
14581 (grub_video_map_color): Likewise.
14582 (grub_video_map_rgb): Likewise.
14583 (grub_video_map_rgba): Likewise.
14584 (grub_video_fill_rect): Likewise.
14585 (grub_video_blit_glyph): Likewise.
14586 (grub_video_blit_bitmap): Likewise.
14587 (grub_video_blit_render_target): Likewise.
14588 (grub_video_scroll): Likewise.
14589 (grub_video_swap_buffers): Likewise.
14590 (grub_video_create_render_target): Likewise.
14591 (grub_video_delete_render_target): Likewise.
14592 (grub_video_set_active_render_target): Likewise.
14594 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
14596 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
14598 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
14599 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
14600 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
14601 instead of $(srcdir)/genkernsyms.sh.
14603 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
14604 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
14605 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
14606 instead of $(srcdir)/genkernsyms.sh.
14608 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
14609 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
14610 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
14611 instead of $(srcdir)/genkernsyms.sh.
14613 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
14614 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
14615 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
14616 instead of $(srcdir)/genkernsyms.sh.
14618 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
14621 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
14623 (gensymlist.sh): New target.
14624 (genkernsyms.sh): Likewise.
14626 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
14627 genkernsyms.sh.in and gensymlist.sh.in.
14629 * genkernsyms.sh: Removed.
14630 * gensymlist.sh: Likewise.
14632 * genkernsyms.sh.in: New file.
14633 * gensymlist.sh.in: Likewise.
14635 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
14637 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
14638 clobber "prefix", since we may have already set it manually.
14640 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
14642 * kern/misc.c (abort): New alias for grub_abort.
14644 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
14646 A new machine-specific function "grub_machine_set_prefix" is
14647 defined. This is called after loading modules, so that a prefix
14648 initialization can use modules. Also, this change adds an
14649 intensive debugging feature for the memory manager via the
14650 configure option "--enable-mm-debug".
14652 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
14655 * kern/sparc64/ieee1275/init.c (abort): Removed.
14656 (grub_stop): Likewise.
14657 (grub_exit): New function.
14658 (grub_set_prefix): Renamed to ...
14659 (grub_machine_set_prefix): ... this.
14660 (grub_machine_init): Do not call grub_set_prefix.
14662 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
14663 (grub_machine_set_prefix): ... this.
14664 (grub_machine_init): Do not call grub_set_prefix.
14666 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
14667 (grub_machine_init): Do not set the prefix here.
14669 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
14671 * kern/efi/init.c: Include grub/mm.h.
14672 (grub_efi_set_prefix): New function.
14674 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
14675 (grub_efi_get_filename): New function.
14676 (grub_print_device_path): Renamed to ...
14677 (grub_efi_print_device_path): ... this.
14679 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
14680 [MM_DEBUG] (grub_realloc): Likewise.
14681 [MM_DEBUG] (grub_free): Likewise.
14682 [MM_DEBUG] (grub_memalign): Likewise.
14683 [MM_DEBUG] (grub_mm_debug): New variable.
14684 [MM_DEBUG] (grub_debug_malloc): New function.
14685 [MM_DEBUG] (grub_debug_free): New function.
14686 [MM_DEBUG] (grub_debug_realloc): New function.
14687 [MM_DEBUG] (grub_debug_memalign): New function.
14689 * kern/misc.c (grub_abort): Print a newline to distinguish
14692 * kern/main.c (grub_main): Call grub_machine_set_prefix and
14693 grub_set_root_dev after loading modules. This is necessary when
14694 setting a prefix depends on modules.
14696 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
14697 (grub_efi_print_device_path): ... this.
14698 (grub_efi_get_filename): New prototype.
14699 (grub_efi_set_prefix): Likewise.
14701 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
14703 (grub_efidisk_get_device_handle): New prototype.
14704 (grub_efidisk_get_device_name): Likewise.
14706 * include/grub/mm.h: Include config.h.
14707 (MM_DEBUG): Removed.
14708 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
14709 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
14710 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
14711 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
14712 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
14713 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
14714 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
14715 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
14716 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
14718 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
14720 * disk/efi/efidisk.c: Include grub/partition.h.
14721 (iterate_child_devices): New function.
14722 (add_device): First, compare only last device path nodes, so that
14723 devices are sorted by the types.
14724 (grub_efidisk_get_device_handle): New function.
14725 (grub_efidisk_get_device_name): Likewise.
14727 * configure.ac (--enable-mm-debug): New option to enable the
14728 memory manager debugging feature. This makes the binary much
14729 bigger, so is disabled by default.
14731 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
14733 Use grub_abort instead of grub_stop, and grub_exit must be
14734 define in each architecture now. Also, this change adds support
14737 * util/i386/pc/grub-probefs.c: Include grub/term.h.
14738 (grub_getkey): New function.
14739 (grub_term_get_current): Likewise.
14741 * util/i386/pc/grub-setup.c: Include grub/term.h.
14742 (grub_getkey): New function.
14743 (grub_term_get_current): Likewise.
14745 * util/misc.c (grub_stop): Renamed to ...
14746 (grub_exit): ... this.
14748 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
14749 (grub_exit): ... this.
14750 (grub_machine_init): Use grub_abort instead of abort.
14751 (grub_stop): Removed.
14753 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
14756 * kern/i386/pc/startup.S (grub_exit): New function.
14757 (cold_reboot): New label.
14759 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
14760 (grub_efi_init): Call grub_efidisk_init.
14761 (grub_efi_fini): Call grub_efidisk_fini.
14763 * kern/efi/efi.c: Include grub/mm.h.
14764 (grub_efi_console_control_guid): Renamed to ...
14765 (console_control_guid): ... this.
14766 (grub_efi_loaded_image_guid): Renamed to ...
14767 (loaded_image_guid): ... this.
14768 (grub_efi_locate_handle): New function.
14769 (grub_efi_open_protocol): Likewise.
14770 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
14771 GRUB_EFI_CONSOLE_CONTROL_GUID.
14772 (grub_efi_exit): Removed.
14773 (grub_stop): Likewise.
14774 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
14775 (grub_exit): New function.
14776 (grub_print_device_path): Likewise.
14778 * kern/rescue.c (grub_rescue_cmd_exit): New function.
14779 (grub_enter_rescue_mode): Register "exit".
14781 * kern/misc.c (grub_real_dprintf): A cosmetic change.
14782 (grub_abort): New function.
14784 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
14786 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
14788 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
14790 * include/grub/efi/efi.h (grub_efi_exit): Removed.
14791 (grub_print_device_path): New prototype.
14792 (grub_efi_locate_handle): Likewise.
14793 (grub_efi_open_protocol): Likewise.
14795 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
14796 * disk/efi/efidisk.c: Likewise.
14798 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
14800 * include/grub/efi/console_control.h
14801 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
14803 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
14804 last 8 bytes as an array.
14805 (GRUB_EFI_DISK_IO_GUID): New macro.
14806 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
14807 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
14808 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
14810 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
14811 (struct grub_efi_device_path): Rename the member "sub_type" to
14813 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
14814 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
14815 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
14816 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
14817 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
14818 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
14819 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
14820 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
14821 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
14822 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
14823 (struct grub_efi_pci_device_path): New structure.
14824 (grub_efi_pci_device_path_t): New type.
14825 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
14826 (struct grub_efi_pccard_device_path): New structure.
14827 (grub_efi_pccard_device_path_t): New type.
14828 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
14829 (struct grub_efi_memory_mapped_device_path): New structure.
14830 (grub_efi_memory_mapped_device_path_t): New type.
14831 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
14832 (struct grub_efi_vendor_device_path): New structure.
14833 (grub_efi_vendor_device_path_t): New type.
14834 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
14835 (struct grub_efi_controller_device_path): New structure.
14836 (grub_efi_controller_device_path_t): New type.
14837 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
14838 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
14839 (struct grub_efi_acpi_device_path): New structure.
14840 (grub_efi_acpi_device_path_t): New type.
14841 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
14842 (struct grub_efi_expanded_acpi_device_path): New structure.
14843 (grub_efi_expanded_acpi_device_path_t): New type.
14844 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
14845 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
14846 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
14847 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
14848 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
14849 (struct grub_efi_atapi_device_path): New structure.
14850 (grub_efi_atapi_device_path_t): New type.
14851 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
14852 (struct grub_efi_fibre_channel_device_path): New structure.
14853 (grub_efi_fibre_channel_device_path_t): New type.
14854 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
14855 (struct grub_efi_1394_device_path): New structure.
14856 (grub_efi_1394_device_path_t): New type.
14857 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
14858 (struct grub_efi_usb_device_path): New structure.
14859 (grub_efi_usb_device_path_t): New type.
14860 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
14861 (struct grub_efi_usb_class_device_path): New structure.
14862 (grub_efi_usb_class_device_path_t): New type.
14863 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
14864 (struct grub_efi_i2o_device_path): New structure.
14865 (grub_efi_i2o_device_path_t): New type.
14866 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
14867 (struct grub_efi_mac_address_device_path): New structure.
14868 (grub_efi_mac_address_device_path_t): New type.
14869 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
14870 (struct grub_efi_ipv4_device_path): New structure.
14871 (grub_efi_ipv4_device_path_t): New type.
14872 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
14873 (struct grub_efi_ipv6_device_path): New structure.
14874 (grub_efi_ipv6_device_path_t): New type.
14875 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
14876 (struct grub_efi_infiniband_device_path): New structure.
14877 (grub_efi_infiniband_device_path_t): New type.
14878 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
14879 (struct grub_efi_uart_device_path): New structure.
14880 (grub_efi_uart_device_path_t): New type.
14881 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
14882 (struct grub_efi_vendor_messaging_device_path): New structure.
14883 (grub_efi_vendor_messaging_device_path_t): New type.
14884 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
14885 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
14886 (struct grub_efi_hard_drive_device_path): New structure.
14887 (grub_efi_hard_drive_device_path_t): New type.
14888 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
14889 (struct grub_efi_cdrom_device_path): New structure.
14890 (grub_efi_cdrom_device_path_t): New type.
14891 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
14892 (struct grub_efi_vendor_media_device_path): New structure.
14893 (grub_efi_vendor_media_device_path_t): New type.
14894 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
14895 (struct grub_efi_file_path_device_path): New structure.
14896 (grub_efi_file_path_device_path_t): New type.
14897 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
14898 (struct grub_efi_protocol_device_path): New structure.
14899 (grub_efi_protocol_device_path_t): New type.
14900 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
14901 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
14902 (struct grub_efi_bios_device_path): New structure.
14903 (grub_efi_bios_device_path_t): New type.
14904 (struct grub_efi_disk_io): New structure.
14905 (grub_efi_disk_io_t): New type.
14906 (struct grub_efi_block_io_media): New structure.
14907 (grub_efi_block_io_media_t): New type.
14908 (struct grub_efi_block_io): New structure.
14909 (grub_efi_block_io_t): New type.
14911 * include/grub/misc.h (grub_stop): Removed.
14912 (grub_exit): New prototype.
14913 (grub_abort): Likewise.
14915 * include/grub/disk.h (enum grub_disk_dev_id): Added
14916 GRUB_DISK_DEVICE_EFIDISK_ID.
14918 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
14919 disk/efi/efidisk.c.
14920 (kernel_syms.lst): Remove the target if an error occurs.
14922 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
14924 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
14925 as it was simply too buggy.
14927 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
14929 * kern/misc.c (grub_lltoa): New function.
14930 (grub_vsprintf): Added support for the long long suffix,
14933 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
14935 * Makefile.in (LDFLAGS): Add variable.
14936 (LD): Remove variable.
14937 * configure.ac: Add -m32 to LDFLAGS.
14938 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
14939 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
14940 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
14941 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
14942 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
14944 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
14945 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
14946 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
14948 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
14950 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
14951 length for unknown glyph.
14953 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
14955 Add support for pre-loaded modules into the EFI port.
14957 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
14958 completely. Accept one more argument DIR. The caller has changed.
14960 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
14962 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
14963 (grub_efi_loaded_image_guid): New variable.
14964 (grub_efi_get_loaded_image): New function.
14965 (grub_arch_modules_addr): Likewise.
14967 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
14970 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
14971 (struct grub_efi_loaded_image): New structure.
14972 (grub_efi_loaded_image_t): New type.
14974 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
14976 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
14977 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
14978 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
14980 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
14982 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
14984 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
14986 * DISTLIST: Added include/grub/efi/console.h,
14987 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
14988 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
14990 * include/grub/efi/console.h: New file.
14991 * include/grub/efi/time.h: Likewise.
14992 * include/grub/i386/efi/kernel.h: Likewise.
14993 * kern/efi/init.c: Likewise.
14994 * kern/efi/mm.c: Likewise.
14995 * term/efi/console.c: Likewise.
14997 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
14998 (grub_stop): Removed.
14999 (grub_get_rtc): Likewise.
15000 (grub_machine_init): Simply call grub_efi_init.
15001 (grub_machine_fini): Call grub_efi_fini.
15003 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
15004 (grub_efi_output_string): Removed.
15005 (grub_efi_stall): New function.
15006 (grub_stop): Likewise.
15007 (grub_get_rtc): Likewise.
15009 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
15010 (grub_efi_stall): New prototype.
15011 (grub_efi_allocate_pages): Likewise.
15012 (grub_efi_free_pages): Likewise.
15013 (grub_efi_get_memory_map): Likewise.
15014 (grub_efi_mm_init): Likewise.
15015 (grub_efi_mm_fini): Likewise.
15016 (grub_efi_init): Likewise.
15017 (grub_efi_fini): Likewise.
15019 * include/grub/i386/efi/time.h: Do not include
15020 grub/symbol.h. Include grub/efi/time.h.
15021 (GRUB_TICKS_PER_SECOND): Removed.
15022 (grub_get_rtc): Likewise.
15024 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
15025 Added padding. The EFI spec is buggy.
15026 (GRUB_EFI_BLACK): New macro.
15027 (GRUB_EFI_BLUE): Likewise.
15028 (GRUB_EFI_GREEN): Likewise.
15029 (GRUB_EFI_CYAN): Likewise.
15030 (GRUB_EFI_RED): Likewise.
15031 (GRUB_EFI_MAGENTA): Likewise.
15032 (GRUB_EFI_BROWN): Likewise.
15033 (GRUB_EFI_LIGHTGRAY): Likewise.
15034 (GRUB_EFI_BRIGHT): Likewise.
15035 (GRUB_EFI_DARKGRAY): Likewise.
15036 (GRUB_EFI_LIGHTBLUE): Likewise.
15037 (GRUB_EFI_LIGHTGREEN): Likewise.
15038 (GRUB_EFI_LIGHTCYAN): Likewise.
15039 (GRUB_EFI_LIGHTRED): Likewise.
15040 (GRUB_EFI_LIGHTMAGENTA): Likewise.
15041 (GRUB_EFI_YELLOW): Likewise.
15042 (GRUB_EFI_WHITE): Likewise.
15043 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
15044 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
15045 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
15046 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
15047 (GRUB_EFI_BACKGROUND_RED): Likewise.
15048 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
15049 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
15050 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
15051 (GRUB_EFI_TEXT_ATTR): Likewise.
15053 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
15054 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
15055 (kernel_mod_HEADERS): Added efi/time.h.
15057 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
15059 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
15060 include/grub/efi/api.h, include/grub/efi/console_control.h,
15061 include/grub/efi/efi.h, include/grub/efi/pe32.h,
15062 include/grub/i386/efi/time.h, kern/efi/efi.c,
15063 kern/i386/efi/init.c, kern/i386/efi/startup.S,
15064 and util/i386/efi/grub-mkimage.c.
15066 * Makefile.in (RMKFILES): Added i386-efi.rmk.
15068 * genmk.rb (PModule#rule): Do not export symbols if
15069 #{prefix}_EXPORTS is set to "no".
15071 * conf/i386-efi.mk: New file.
15072 * conf/i386-efi.rmk: Likewise.
15073 * include/grub/efi/api.h: Likewise.
15074 * include/grub/efi/console_control.h: Likewise.
15075 * include/grub/efi/efi.h: Likewise.
15076 * include/grub/efi/pe32.h: Likewise.
15077 * include/grub/i386/efi/time.h: Likewise.
15078 * kern/efi/efi.c: Likewise.
15079 * kern/i386/efi/init.c: Likewise.
15080 * kern/i386/efi/startup.S: Likewise.
15081 * util/i386/efi/grub-mkimage.c: Likewise.
15083 2006-04-17 Marco Gerards <marco@gnu.org>
15085 * include/grub/script.h: Include <grub/parser.h> and
15086 "grub_script.tab.h".
15087 (struct grub_lexer_param): New struct.
15088 (struct grub_parser_param): Likewise.
15089 (grub_script_create_arglist): Pass the state in an argument.
15090 (grub_script_add_arglist): Likewise.
15091 (grub_script_create_cmdline): Likewise.
15092 (grub_script_create_cmdblock): Likewise.
15093 (grub_script_create_cmdif): Likewise.
15094 (grub_script_create_cmdmenu): Likewise.
15095 (grub_script_add_cmd): Likewise.
15096 (grub_script_arg_add): Likewise.
15097 (grub_script_lexer_ref): Likewise.
15098 (grub_script_lexer_deref): Likewise.
15099 (grub_script_lexer_record_start): Likewise.
15100 (grub_script_lexer_record_stop): Likewise.
15101 (grub_script_mem_record): Likewise.
15102 (grub_script_mem_record_stop): Likewise.
15103 (grub_script_malloc): Likewise.
15104 (grub_script_yylex): Likewise.
15105 (grub_script_yyparse): Likewise.
15106 (grub_script_yyerror): Likewise.
15107 (grub_script_yylex): Likewise.
15108 (grub_script_lexer_init): Return the state.
15110 * normal/lexer.c (grub_script_lexer_state): Removed variable.
15111 (grub_script_lexer_done): Likewise.
15112 (grub_script_lexer_getline): Likewise.
15113 (grub_script_lexer_refs): Likewise.
15114 (script): Likewise.
15115 (newscript): Likewise.
15116 (record): Likewise.
15117 (recording): Likewise.
15118 (recordpos): Likewise.
15119 (recordlen): Likewise.
15120 (grub_script_lexer_init): Return the state instead of setting
15122 (grub_script_lexer_ref): Use the newly added argument for state
15123 instead of globals.
15124 (grub_script_lexer_deref): Likewise.
15125 (grub_script_lexer_record_start): Likewise.
15126 (grub_script_lexer_record_stop): Likewise.
15127 (recordchar): Likewise.
15128 (nextchar): Likewise.
15129 (grub_script_yylex2): Likewise.
15130 (grub_script_yylex): Likewise.
15131 (grub_script_yyerror): Likewise.
15133 * normal/parser.y (func_mem): Removed variable.
15134 (menu_entry): Likewise.
15136 (%lex-param): New parser option.
15137 (%parse-param): Likewise.
15138 (script): Always return the AST.
15139 (argument): Pass the state around.
15140 (arguments): Likewise.
15141 (grubcmd): Likewise.
15142 (commands): Likewise.
15143 (function): Likewise.
15144 (menuentry): Likewise.
15145 (if_statement): Likewise.
15148 * normal/script.c (grub_script_memused): Removed variable.
15149 (grub_script_parsed): Likewise.
15150 (grub_script_malloc): Added a state argument. Use that instead of
15152 (grub_script_mem_record): Likewise.
15153 (grub_script_mem_record_stop): Likewise.
15154 (grub_script_arg_add): Likewise.
15155 (grub_script_add_arglist): Likewise.
15156 (grub_script_create_cmdline): Likewise.
15157 (grub_script_create_cmdif): Likewise.
15158 (grub_script_create_cmdmenu): Likewise.
15159 (grub_script_add_cmd): Likewise.
15160 (grub_script_parse): Setup the state before calling the parser.
15162 2006-04-16 Marco Gerards <marco@gnu.org>
15164 * normal/command.c (grub_command_init): Remove the title command.
15166 * normal/lexer.c (grub_script_yylex): Renamed from this...
15167 (grub_script_yylex2): ... to this.
15168 (grub_script_yylex): New function. Temporary
15169 introduced to filter some tokens.
15170 (grub_script_yyerror): Print a newline.
15172 * normal/main.c (read_config_file): Output information about the
15173 lines that contain errors. Wait for a key after all lines have
15174 been processed. Don't return an empty menu.
15176 * normal/parser.y (func_mem): Don't initialize.
15177 (menu_entry): Likewise.
15178 (err): New variable.
15179 (script): Don't return anything when an error was encountered.
15180 (ws, returns): Removed rules.
15181 (argument): Disabled concatenated variable support.
15182 (arguments): Remove explicit separators.
15183 (grubcmd): Likewise.
15184 (function): Likewise.
15185 (menuentry): Likewise.
15187 (commands): Likewise. Add error handling.
15189 * normal/script.c (grub_script_create_cmdline): If
15190 `grub_script_parsed' is 0, assume the parser encountered an error.
15192 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
15194 * configure.ac: Add support for EFI. Fix the typo
15195 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
15197 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
15199 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
15200 foreign multibyte characters should be shown correctly.
15202 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
15204 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
15206 (read_config_file): Made it to close file before returning.
15208 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
15210 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
15211 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
15212 video/i386/pc/vbefill.c.
15214 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
15215 video/i386/pc/vbefill.c.
15217 * include/grub/video.h (grub_video_blit_format): New enum.
15218 (grub_video_mode_info): Added new member blit_format.
15219 (grub_video_get_blit_format): New function prototype.
15221 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
15222 function prototype.
15223 (grub_video_vbe_map_rgb): Likewise.
15224 (grub_video_vbe_unmap_color): Likewise.
15226 * include/grub/i386/pc/vbeblit.h: New file.
15228 * include/grub/i386/pc/vbefill.h: New file.
15230 * video/video.c (grub_video_get_blit_format): New function.
15231 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
15232 (grub_video_vbe_map_rgb): Likewise.
15233 (grub_video_vbe_unmap_color): Likewise.
15235 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
15237 (grub_video_vbe_blit_render_target): Changed to use more optimized
15239 (grub_video_vbe_setup): Added detection for optimized settings.
15240 (grub_video_vbe_create_render_target): Likewise.
15242 * video/i386/pc/vbeblit.c: New file.
15244 * video/i386/pc/vbefill.c: New file.
15246 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
15248 * font/manager.c (grub_font_get_glyph): Removed font fixup from
15251 * util/unifont2pff.rb: ... and moved it to here. Improved argument
15252 parsing to support both hex and dec ranges. If filename was missing
15253 show usage information.
15255 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
15257 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
15258 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
15260 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
15261 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
15262 (video_mod_SOURCES): Added.
15263 (video_mod_CFLAGS): Likewise.
15264 (video_mod_LDFLAGS): Likewise.
15265 (gfxterm_mod_SOURCES): Likewise.
15266 (gfxterm_mod_CFLAGS): Likewise.
15267 (gfxterm_mod_LDFLAGS): Likewise.
15268 (videotest_mod_SOURCES): Likewise.
15269 (videotest_mod_CFLAGS): Likewise.
15270 (videotest_mod_LDFLAGS): Likewise.
15271 (vesafb_mod_SOURCES): Removed.
15272 (vesafb_mod_CFLAGS): Likewise.
15273 (vesafb_mod_LDFLAGS): Likewise.
15274 (vga_mod_SOURCES): Likewise.
15275 (vga_mod_CFLAGS): Likewise.
15276 (vga_mod_LDFLAGS): Likewise.
15278 * commands/videotest.c: New file.
15280 * font/manager.c (fill_with_default_glyph): Modified to use
15282 (grub_font_get_glyph): Likewise.
15283 (fontmanager): Renamed from this...
15284 (font_manager): ... to this.
15286 * include/grub/font.h (grub_font_glyph): Added new structure.
15287 (grub_font_get_glyph): Modified to use grub_font_glyph.
15289 * include/grub/misc.h (grub_abs): Added as inline function.
15291 * include/grub/video.h: New file.
15293 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
15294 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
15295 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
15296 (grub_vbe_get_controller_info): Renamed from this...
15297 (grub_vbe_bios_get_controller_info): ... to this.
15298 (grub_vbe_get_mode_info): Renamed from this...
15299 (grub_vbe_bios_get_mode_info): ... to this.
15300 (grub_vbe_set_mode): Renamed from this...
15301 (grub_vbe_bios_set_mode): ... to this.
15302 (grub_vbe_get_mode): Renamed from this...
15303 (grub_vbe_bios_get_mode): ... to this.
15304 (grub_vbe_set_memory_window): Renamed from this...
15305 (grub_vbe_bios_set_memory_window): ... to this.
15306 (grub_vbe_get_memory_window): Renamed from this...
15307 (grub_vbe_bios_get_memory_window): ... to this.
15308 (grub_vbe_set_scanline_length): Renamed from this...
15309 (grub_vbe_set_scanline_length): ... to this.
15310 (grub_vbe_get_scanline_length): Renamed from this...
15311 (grub_vbe_bios_get_scanline_length): ... to this.
15312 (grub_vbe_set_display_start): Renamed from this...
15313 (grub_vbe_bios_set_display_start): ... to this.
15314 (grub_vbe_get_display_start): Renamed from this...
15315 (grub_vbe_bios_get_display_start): ... to this.
15316 (grub_vbe_set_palette_data): Renamed from this...
15317 (grub_vbe_bios_set_palette_data): ... to this.
15318 (grub_vbe_set_pixel_rgb): Removed.
15319 (grub_vbe_set_pixel_index): Likewise.
15321 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
15323 (grub_vbe_bios_get_controller_info): ... to this.
15324 (grub_vbe_get_mode_info): Renamed from this...
15325 (grub_vbe_bios_get_mode_info): ... to this.
15326 (grub_vbe_set_mode): Renamed from this...
15327 (grub_vbe_bios_set_mode): ... to this.
15328 (grub_vbe_get_mode): Renamed from this...
15329 (grub_vbe_bios_get_mode): ... to this.
15330 (grub_vbe_set_memory_window): Renamed from this...
15331 (grub_vbe_bios_set_memory_window): ... to this.
15332 (grub_vbe_get_memory_window): Renamed from this...
15333 (grub_vbe_bios_get_memory_window): ... to this.
15334 (grub_vbe_set_scanline_length): Renamed from this...
15335 (grub_vbe_set_scanline_length): ... to this.
15336 (grub_vbe_get_scanline_length): Renamed from this...
15337 (grub_vbe_bios_get_scanline_length): ... to this.
15338 (grub_vbe_set_display_start): Renamed from this...
15339 (grub_vbe_bios_set_display_start): ... to this.
15340 (grub_vbe_get_display_start): Renamed from this...
15341 (grub_vbe_bios_get_display_start): ... to this.
15342 (grub_vbe_set_palette_data): Renamed from this...
15343 (grub_vbe_bios_set_palette_data): ... to this.
15344 (grub_vbe_bios_get_controller_info): Fixed problem with registers
15345 getting corrupted after calling it. Added more pushes and pops.
15346 (grub_vbe_bios_set_mode): Likewise.
15347 (grub_vbe_bios_get_mode): Likewise.
15348 (grub_vbe_bios_get_memory_window): Likewise.
15349 (grub_vbe_bios_set_scanline_length): Likewise.
15350 (grub_vbe_bios_get_scanline_length): Likewise.
15351 (grub_vbe_bios_get_display_start): Likewise.
15352 (grub_vbe_bios_set_palette_data): Likewise.
15354 * normal/cmdline.c (cl_set_pos): Refresh the screen.
15355 (cl_insert): Likewise.
15356 (cl_delete): Likewise.
15358 * term/gfxterm.c: New file.
15360 * term/i386/pc/vesafb.c: Removed file.
15362 * video/video.c: New file.
15364 * video/i386/pc/vbe.c (real2pm): Added new function.
15365 (grub_video_vbe_draw_pixel): Likewise.
15366 (grub_video_vbe_get_video_ptr): Likewise.
15367 (grub_video_vbe_get_pixel): Likewise
15368 (grub_video_vbe_init): Likewise.
15369 (grub_video_vbe_fini): Likewise.
15370 (grub_video_vbe_setup): Likewise.
15371 (grub_video_vbe_get_info): Likewise.
15372 (grub_video_vbe_set_palette): Likewise.
15373 (grub_video_vbe_get_palette): Likewise.
15374 (grub_video_vbe_set_viewport): Likewise.
15375 (grub_video_vbe_get_viewport): Likewise.
15376 (grub_video_vbe_map_color): Likewise.
15377 (grub_video_vbe_map_rgb): Likewise.
15378 (grub_video_vbe_map_rgba): Likewise.
15379 (grub_video_vbe_unmap_color): Likewise.
15380 (grub_video_vbe_fill_rect): Likewise.
15381 (grub_video_vbe_blit_glyph): Likewise.
15382 (grub_video_vbe_blit_bitmap): Likewise.
15383 (grub_video_vbe_blit_render_target): Likewise.
15384 (grub_video_vbe_scroll): Likewise.
15385 (grub_video_vbe_swap_buffers): Likewise.
15386 (grub_video_vbe_create_render_target): Likewise.
15387 (grub_video_vbe_delete_render_target): Likewise.
15388 (grub_video_vbe_set_active_render_target): Likewise.
15389 (grub_vbe_set_pixel_rgb): Remove function.
15390 (grub_vbe_set_pixel_index): Likewise.
15391 (index_color_mode): Remove static variable.
15392 (active_mode): Likewise.
15393 (framebuffer): Likewise.
15394 (bytes_per_scan_line): Likewise.
15395 (grub_video_vbe_adapter): Added new static variable.
15396 (framebuffer): Likewise.
15397 (render_target): Likewise.
15398 (initial_mode): Likewise.
15399 (mode_in_use): Likewise.
15400 (mode_list): Likewise.
15402 2006-03-10 Marco Gerards <marco@gnu.org>
15404 * configure.ac (AC_INIT): Bumped to 1.93.
15406 * DISTLIST: Added `include/grub/hfs.h'.
15408 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
15410 * boot/i386/pc/boot.S (general_error): Before looping, try INT
15411 18H, which might help the BIOS falling back to next boot media.
15413 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
15415 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
15416 Poe Chen <poe.poechen@gmail.com>.
15418 2006-01-17 Marco Gerards <marco@gnu.org>
15420 * include/grub/normal.h: Include <grub/script.h>.
15421 (grub_command_list): Removed struct.
15422 (grub_command_list_t): Removed type.
15423 (grub_menu_entry): Remove members `num' and `command_list'. Add
15424 members `commands' and `sourcecode'.
15425 * include/grub/script.h: Add inclusion guards.
15426 (grub_script_cmd_menuentry): New struct.
15427 (grub_script_execute_menuentry): New prototype.
15428 (grub_script_lexer_record_start): Likewise.
15429 (grub_script_lexer_record_stop): Likewise.
15430 * normal/execute.c (grub_script_execute_menuentry): New function.
15431 * normal/lexer.c (record, recording, recordpos, recordlen): New
15433 (grub_script_lexer_record_start): New function.
15434 (grub_script_lexer_record_stop): Likewise.
15435 (recordchar): Likewise.
15436 (nextchar): Likewise.
15437 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
15438 2048 as the buffer size. Add the tokens `menuentry' and `@'.
15439 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
15440 (current_menu): New variable.
15441 (free_menu): Mainly rewritten.
15442 (grub_normal_menu_addentry): New function.
15443 (read_config_file): Rewritten.
15444 * normal/menu.c (run_menu_entry): Mainly rewritten.
15445 * normal/menu_entry.c (make_screen): Rewritten the code to insert
15447 (run): Mainly rewritten.
15448 * normal/parser.y (menu_entry): New variable.
15449 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
15450 (menuentry): New rule.
15451 (command): Add `menuentry'.
15452 (if_statement): Allow additional returns before `fi'.
15453 * normal/script.c (grub_script_create_cmdmenu): New function.
15455 2006-01-03 Marco Gerards <marco@gnu.org>
15457 * INSTALL: GNU Bison is required.
15458 * configure.ac: Rewritten the test to detect Bison.
15459 * Makefile.in (YACC): New variable. Reported by Xun Sun
15460 <xun.sun.cn@gmail.com>.
15462 2006-01-03 Marco Gerards <marco@gnu.org>
15464 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
15465 the HFS+ filesystem to filesystem blocks.
15466 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
15467 GCC warning is silenced.
15469 2006-01-03 Marco Gerards <marco@gnu.org>
15471 * partmap/apple.c (apple_partition_map_iterate): Convert the data
15472 read from disk from big endian to host byte order.
15474 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
15476 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
15478 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
15479 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
15480 embedded HFS+ filesystem.
15481 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
15482 (grub_hfs_sblock): Move from here...
15483 * include/grub/hfs.h: To here... New file.
15484 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
15486 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
15488 (grub_hfsplus_volheader): Change type of member `magic' to
15490 (grub_hfsplus_data): Add new member `embedded_offset'.
15491 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
15493 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
15494 Calculate the offset.
15496 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
15498 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
15500 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
15502 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
15504 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
15505 ENV->NAME is NULL after allocating ENV->VALUE.
15507 2005-12-25 Marco Gerards <marco@gnu.org>
15509 * kern/env.c (grub_env_set): Rewritten the error handling code.
15511 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
15513 * geninit.sh: Made more robust, and more portable.
15515 2005-12-25 Marco Gerards <marco@gnu.org>
15517 Add support for Apple HFS+ filesystems.
15519 * fs/hfsplus.c: New file.
15521 * DISTLIST: Added `fs/hfsplus.c'.
15523 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
15524 (hfsplus_mod_SOURCES): New variable.
15525 (hfsplus_mod_CFLAGS): Likewise.
15526 (hfsplus_mod_LDFLAGS): Likewise.
15527 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
15528 (grub_setup_SOURCES): Likewise.
15529 (grub_mkdevicemap_SOURCES): Likewise.
15530 (grub_emu_SOURCES): Likewise.
15531 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15533 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
15535 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
15537 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
15539 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
15540 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
15541 include/grub/parser.h, include/grub/script.h, kern/parser.c,
15542 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
15543 normal/lexer.c, normal/parser.y, normal/script.c, and
15545 Removed kern/sparc64/cache.c.
15547 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
15548 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
15551 * configure.ac (AC_INIT): Bumped to 1.92.
15553 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
15555 * kern/err.c (grub_error_push): Added new function to support error
15557 (grub_error_pop): Likewise.
15558 (grub_error_stack_items): New local variable to support error stacks.
15559 (grub_error_stack_pos): Likewise.
15560 (grub_error_stack_assert): Likewise.
15561 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
15563 (grub_print_error): Added support to print errors from error stack.
15565 * include/grub/err.h (grub_error_push): Added function prototype.
15566 (grub_error_pop): Likewise.
15568 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
15570 * configure.ac: Accept `powerpc64' as host_cpu.
15571 (amd64): Rename to `biarch32'.
15573 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
15574 non-cacheline-aligned addresses.
15576 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
15577 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
15578 if `size' is non-zero.
15580 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
15582 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
15583 and `cd' to make sure the filename is not prefixed with a
15585 (pkgdata_MODULES): Add `gpt.mod'.
15586 (gpt_mod_SOURCES): New variable.
15587 (gpt_mod_CFLAGS): Likewise.
15588 (gpt_mod_LDFLAGS): Likewise.
15590 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
15592 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
15595 * partmap/gpt.c: New file.
15597 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
15598 GPT partition map is detected.
15600 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
15602 * commands/i386/pc/play.c: New file.
15603 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
15604 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
15607 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
15609 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
15610 ((unused))' to silence gcc warning.
15612 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
15614 * configure.ac: Correct `AC_PROG_YACC' test.
15616 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
15618 * util/powerpc/ieee1275/grub-install.in: Run the mount point
15619 check before installing files.
15621 2005-11-22 Mike Small <smallm@panix.com>
15623 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
15624 number regex so multidigit numbers are recognized correctly.
15626 2005-11-22 Mike Small <smallm@panix.com>
15628 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
15629 debugging message before attempting to claim memory.
15630 (grub_rescue_cmd_initrd): Add a claim debugging message and try
15631 multiple addresses in case of failure.
15633 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
15635 * term/tparm.c (get_space): Remove empty `if' statement.
15637 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
15639 * kern/parser.c (check_varstate): Rename `state' to 's'.
15641 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
15643 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
15644 variable definitions to the beginning of each function. Sort stack
15646 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
15647 `buf' argument to `char *'.
15649 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
15651 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
15652 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
15653 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
15654 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
15655 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
15656 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
15657 configfile.mod, search.mod, gzio.mod and test.mod.
15658 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
15659 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
15660 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
15661 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
15662 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
15663 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
15664 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
15665 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
15666 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
15667 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
15668 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
15669 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
15670 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
15671 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
15672 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
15673 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
15674 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
15675 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
15676 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
15677 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
15678 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
15679 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
15680 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
15682 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
15684 (pkgdata_MODULES): Add test.mod.
15686 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
15688 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
15689 appending to variables with "+=".
15690 (PModule): Use full pathname to generate *.lst filenames.
15692 * Makefile.in: Fixed list rules moved from genmk.rb.
15693 (.DELETE_ON_ERROR): New special target.
15694 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
15696 * conf/i386-pc.rmk: Include conf/common.mk.
15697 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
15698 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
15699 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
15700 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
15701 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
15702 configfile.mod, search.mod, gzio.mod and test.mod.
15703 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
15704 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
15705 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
15706 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
15707 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
15708 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
15709 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
15710 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
15711 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
15712 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
15713 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
15714 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
15715 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
15716 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
15717 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
15718 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
15719 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
15720 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
15721 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
15722 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
15723 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
15724 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
15725 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
15727 * conf/common.rmk: ... to here. New file.
15729 * conf/common.mk: New file.
15731 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
15733 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
15734 (grub_script.tab.c): ... here.
15736 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
15737 (grub_script.tab.c): ... here.
15739 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
15740 (grub_script.tab.c): ... here.
15742 * normal/command.c (grub_command_find): Fixed a memory leak of
15743 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
15745 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
15747 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
15748 "@" which marks the start of a comment on ARM.
15749 (VARIABLE): Likewise.
15751 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
15753 Add support for Linux/ADFS partition tables.
15755 * partmap/acorn.c: New file.
15757 * include/grub/acorn_filecore.h: Likewise.
15759 * DISTLIST: Added `partmap/acorn.c' and
15760 `include/grub/acorn_filecore.h'.
15762 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
15764 (pkgdata_MODULES): Add `acorn.mod'.
15765 (acorn_mod_SOURCES): New variable.
15766 (acorn_mod_CFLAGS): Likewise.
15768 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
15770 (pkgdata_MODULES): Add `acorn.mod'.
15771 (acorn_mod_SOURCES): New variable.
15772 (acorn_mod_CFLAGS): Likewise.
15774 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
15775 (pkgdata_MODULES): Add `acorn.mod'.
15776 (acorn_mod_SOURCES): New variable.
15777 (acorn_mod_CFLAGS): Likewise.
15778 (acorn_mod_LDFLAGS): Likewise.
15780 * include/types.h (grub_disk_addr_t): New typedef.
15782 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
15784 * geninit.sh: New file.
15786 * geninitheader.sh: Likewise.
15788 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
15789 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
15790 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
15791 * commands/configfile.c (grub_configfile_init)
15792 (grub_configfile_fini): Likewise.
15793 * commands/default.c (grub_default_init, grub_default_fini):
15795 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
15796 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
15797 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
15798 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
15800 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
15801 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
15803 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
15804 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
15806 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
15808 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
15810 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
15811 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
15812 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
15813 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
15814 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
15815 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
15816 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
15817 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
15818 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
15819 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
15820 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
15821 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
15822 * partmap/amiga.c (grub_amiga_partition_map_init)
15823 (grub_amiga_partition_map_fini): Likewise.
15824 * partmap/apple.c (grub_apple_partition_map_init)
15825 (grub_apple_partition_map_fini): Likewise.
15826 * partmap/pc.c (grub_pc_partition_map_init)
15827 (grub_pc_partition_map_fini): Likewise.
15828 * partmap/sun.c (grub_sun_partition_map_init,
15829 grub_sun_partition_map_fini): Likewise.
15830 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
15833 * util/grub-emu.c: Include <grub_modules_init.h>.
15834 (main): Don't initialize and de-initialize any modules directly,
15835 use `grub_init_all' and `grub_fini_all' instead.
15837 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
15838 `grub_vesafb_mod_init'.
15839 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
15841 * term/i386/pc/vga.c (grub_vga_init): Renamed to
15842 `grub_vga_mod_init'. Updated all users.
15843 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
15845 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
15846 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
15849 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
15850 Generate a function to initialize the module in utilities.
15851 Updated all callers.
15852 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
15853 initialize the module in utilities. Updated all callers.
15855 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
15857 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
15858 escape sequence and a literal ^L to clear the screen.
15860 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
15861 when returning from Open Firmware.
15863 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
15865 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
15866 (grub_ofconsole_height): Likewise.
15867 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
15868 manually insert a '\n'.
15869 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
15870 `grub_ofconsole_height'. Return early if these are already set.
15872 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
15874 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
15875 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
15876 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
15877 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
15878 and `normal/script.c'.
15879 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
15880 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
15881 (test_mod_SOURCES): New variable.
15882 (test_mod_CFLAGS): Likewise.
15883 (test_mod_LDFLAGS): Likewise.
15884 (pkgdata_MODULES): Add `test.mod'.
15885 (grub_script.tab.c): New rule.
15886 (grub_script.tab.h): Likewise.
15888 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
15890 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
15891 `commands/test.c', `normal/execute.c', `normal/lexer.c',
15892 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
15893 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
15894 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
15895 (test_mod_SOURCES): New variable.
15896 (test_mod_CFLAGS): Likewise.
15897 (pkgdata_MODULES): Add `test.mod'.
15898 (grub_script.tab.c): New rule.
15899 (grub_script.tab.h): Likewise.
15901 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
15903 Add initial scripting support.
15905 * commands/test.c: New file.
15906 * include/grub/script.h: Likewise.
15907 * normal/execute.c: Likewise.
15908 * normal/function.c: Likewise.
15909 * normal/lexer.c: Likewise.
15910 * normal/parser.y: Likewise.
15911 * normal/script.c: Likewise.
15913 * configure.ac: Add `AC_PROG_YACC' test.
15915 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
15916 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
15917 `normal/function.c' and `normal/script.c'.
15918 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
15919 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
15920 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
15922 (pkgdata_MODULES): Add `test.mod'.
15923 (grub_script.tab.c): New rule.
15924 (grub_script.tab.h): Likewise.
15926 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
15928 * include/grub/normal.h (grub_test_init): New prototype.
15929 (grub_test_fini): Likewise.
15931 * normal/command.c: Include <grub/script.h>.
15932 (grub_command_execute): Rewritten.
15934 * util/grub-emu.c (main): Call `grub_test_init' and
15937 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
15939 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
15941 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
15942 there are no pending characters.
15944 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
15946 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
15947 `grub_strndup' to drop device arguments. Replace unnecessary
15948 `grub_strndup' with `grub_strdup'.
15950 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
15952 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
15953 `debug' environment variable has been set.
15955 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
15957 * Makefile.in (install-local): Use $(DATA).
15958 (uninstall): Likewise.
15959 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
15960 (sbin_UTILITIES): ... to here.
15961 (sbin_SCRIPTS): New variable.
15962 (grub_install_SOURCES): New variable.
15963 * util/powerpc/ieee1275/grub-install.in: New file.
15964 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
15966 (add_segments): Call `grub_util_get_path'.
15968 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
15970 From Timothy Baldwin:
15971 * commands/ls.c (grub_ls_list_files): Close FILE with
15973 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
15975 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
15977 * include/grub/parser.h: New file.
15979 * kern/parser.c: Likewise.
15981 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
15982 (grub_setup_SOURCES): Likewise.
15983 (grub_probefs_SOURCES): Likewise.
15984 (grub_emu_SOURCES): Likewise.
15985 (kernel_img_HEADERS): Add `parser.h'.
15987 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
15988 (grub_emu_SOURCES): Add `kern/parser.c'.
15989 (grubof_SOURCES): Likewise.
15991 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
15992 (grubof_SOURCES): Add `kern/parser.c'.
15994 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
15996 * kern/misc.c (grub_split_cmdline): Removed function.
15998 * kern/rescue.c: Include <grub/parser.h>.
15999 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
16000 of `grub_split_cmdline'.
16002 * normal/command.c: Include <grub/parser.h>.
16003 (grub_command_execute): Use `grub_parser_split_cmdline' instead
16004 of `grub_split_cmdline'.
16006 * normal/completion.c: Include <grub/parser.h>.
16007 (cmdline_state): New variable.
16008 (iterate_dir): End the filename with a quote depending on the
16009 command line state.
16010 (get_state): new function.
16011 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
16012 split the arguments and determine the current argument. When the
16013 argument string is not quoted, escape all spaces.
16015 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16017 * normal/sparc64/setjmp.S: New file.
16019 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16021 * include/grub/sparc64/libgcc.h: New file.
16022 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
16023 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
16024 normal/sparc64/setjmp.c.
16026 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16028 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
16029 * kern/sparc64/cache.S: New file.
16030 * kern/sparc64/cache.c: Removed.
16031 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
16032 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
16034 (COMMON_LDFLAGS): Add -melf64_sparc.
16035 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
16036 (grubof_SOURCES): Use cache.S instead of cache.c.
16037 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
16038 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
16039 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
16041 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
16042 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
16043 (linux_mod_CFLAGS): Commented out.
16044 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
16045 out because module isn't built.
16046 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
16047 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
16048 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
16049 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
16050 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
16051 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
16052 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
16053 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
16054 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
16055 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
16056 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16057 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16058 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
16059 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
16061 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
16063 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
16064 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
16065 longer, because HFS should not be used on PC.
16067 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16069 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
16070 consistently within the loop.
16072 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
16074 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
16075 directory can not be read.
16077 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16079 * configure.ac (AC_INIT): Increase the version number to 1.91.
16081 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
16082 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
16083 term/i386/pc/serial.c.
16085 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16087 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
16088 file size must be permitted.
16090 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
16091 between %ah and %al.
16093 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16095 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
16097 Call the hook with a NUL-terminated filename.
16098 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
16101 * kern/term.c (cursor_state): New variable.
16102 (grub_term_set_current): Reset the cursor state on a new
16104 (grub_setcursor): Rewritten to use CURSOR_STATE.
16105 (grub_getcursor): New function.
16107 * include/grub/term.h (grub_getcursor): New prototype.
16109 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
16110 integers on ARM. Reported by Timothy Baldwin
16111 <T.E.Baldwin99@members.leeds.ac.uk>.
16113 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
16115 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
16117 (grub_sfs_dir): Likewise.
16119 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
16121 Add support for the SFS filesystem.
16123 * fs/sfs.c: New file.
16125 * DISTLIST: Added `fs/sfs.c'.
16127 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
16128 (grub_probefs_SOURCES): Likewise.
16129 (grub_emu_SOURCES): Likewise.
16130 (pkgdata_MODULES): Add `sfs.mod'.
16131 (sfs_mod_SOURCES): New variable.
16132 (sfs_mod_CFLAGS): Likewise.
16133 (sfs_mod_LDFLAGS): Likewise.
16135 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
16136 (pkgdata_MODULES): Add `sfs.mod'.
16137 (sfs_mod_SOURCES): New variable.
16138 (sfs_mod_CFLAGS): Likewise.
16140 * util/grub-emu.c (main): Call `grub_sfs_init' and
16143 * include/grub/fs.h (grub_sfs_init): New prototype.
16144 (grub_sfs_fini): Likewise.
16146 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
16148 Add support for the AFFS filesystem.
16150 * fs/affs.c: New file.
16152 * DISTLIST: Added `fs/affs.c'.
16154 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
16155 (grub_probefs_SOURCES): Likewise.
16156 (grub_emu_SOURCES): Likewise.
16157 (pkgdata_MODULES): Add `affs.mod'.
16158 (affs_mod_SOURCES): New variable.
16159 (affs_mod_CFLAGS): Likewise.
16160 (affs_mod_LDFLAGS): Likewise.
16162 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
16163 (pkgdata_MODULES): Add `affs.mod'.
16164 (affs_mod_SOURCES): New variable.
16165 (affs_mod_CFLAGS): Likewise.
16167 * util/grub-emu.c (main): Call `grub_affs_init' and
16170 * include/grub/fs.h (grub_affs_init): New prototype.
16171 (grub_affs_fini): Likewise.
16173 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
16175 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
16177 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
16179 * configure.ac: Accept `x86_64' as host_cpu. In that case add
16182 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
16185 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
16186 (COMMON_LDFLAGS): New variable.
16187 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
16188 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
16189 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
16190 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
16191 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
16192 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
16193 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
16194 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
16195 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
16196 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
16197 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
16198 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
16199 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
16200 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
16201 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
16203 (normal_mod_ASFLAGS): Add `-m32'.
16205 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
16206 (grub_host_size_t, grub_host_ssize_t): New types.
16207 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
16208 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
16209 `GRUB_HOST_SIZEOF_VOID_P'.
16211 * include/grub/kernel.h (struct grub_module_header): Type of
16212 member offset changed to `grub_host_off_t'. Type of member size
16213 changed to `grub_host_size_t'.
16214 (struct grub_module_info): Type of member offset changed to
16215 `grub_host_off_t'. Type of member size changed to
16216 `grub_host_size_t'.
16218 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
16220 Make GRUB's kernel compliant to Multiboot Specification.
16222 * kern/i386/pc/startup.S (multiboot_header): New label.
16223 (multiboot_entry): Likewise.
16224 (multiboot_trampoline): Likewise.
16226 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
16227 Increased to 0x4A0.
16229 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
16230 put parentheses after a question mark.
16231 [!GRUB_UTIL] (my_mod): New variable.
16233 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
16235 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
16237 Adds support for the XFS filesystem. Btrees are not supported
16240 * fs/xfs.c: New file.
16242 * DISTLIST: Added `fs/xfs.c'.
16244 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
16245 (grub_probefs_SOURCES): Likewise.
16246 (grub_emu_SOURCES): Likewise.
16247 (pkgdata_MODULES): Add `xfs.mod'.
16248 (xfs_mod_SOURCES): New variable.
16249 (xfs_mod_CFLAGS): Likewise.
16251 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
16252 (pkgdata_MODULES): Add `xfs.mod'.
16253 (xfs_mod_SOURCES): New variable.
16254 (xfs_mod_CFLAGS): Likewise.
16256 * util/grub-emu.c (main): Call `grub_xfs_init' and
16259 * include/grub/fs.h (grub_xfs_init): New prototype.
16260 (grub_xfs_fini): Likewise.
16263 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
16265 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
16266 color modes, allow greater than 16 colors to be configured as
16269 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
16271 * normal/completion.c (complete_arguments): Add the qualifier
16272 const into OPTIONS.
16274 From Omniflux <omniflux+lists@omniflux.com>:
16275 * include/grub/terminfo.h: New file.
16276 * include/grub/tparm.h: Likewise.
16277 * include/grub/i386/pc/serial.h: Likewise.
16278 * term/terminfo.c: Likewise.
16279 * term/tparm.c: Likewise.
16280 * term/i386/pc/serial.c: Likewise.
16281 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
16283 (terminfo_mod_SOURCES): New variable.
16284 (terminfo_mod_CFLAGS): Likewise.
16285 (serial_mod_SOURCES): Likewise.
16286 (serial_mod_CFLAGS): Likewise.
16288 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
16290 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
16291 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
16292 and kern/powerpc/ieee1275/cmain.c, respectively.
16294 * boot/powerpc/ieee1275/crt0.S: Moved to ...
16295 * kern/powerpc/ieee1275/crt0.S: ... here.
16297 * boot/powerpc/ieee1275/cmain.c: Moved to ...
16298 * kern/powerpc/ieee1275/cmain.c: ... here.
16300 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
16301 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
16302 instead of boot/powerpc/ieee1275/crt0.S and
16303 boot/powerpc/ieee1275/cmain.c, respectively.
16305 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
16306 sectors. It was not used anyway.
16308 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
16310 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
16311 `unused parameter' warning.
16313 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
16315 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
16317 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
16320 2005-08-28 Marco Gerards <metgerards@student.han.nl>
16322 * include/grub/normal.h (enum grub_completion_type): Added
16323 `GRUB_COMPLETION_TYPE_ARGUMENT'.
16325 * normal/cmdline.c (print_completion): Handle
16326 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
16327 * normal/menu_entry.c (store_completion): Likewise.
16329 * normal/completion.c (complete_arguments): New function.
16330 (grub_normal_do_completion): Call `complete_arguments' when the
16331 current words start with a dash.
16333 2005-08-27 Marco Gerards <metgerards@student.han.nl>
16335 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
16336 `gzio.mod' instead of `io.mod').
16338 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
16340 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
16341 (DISTDIRS): Added io and video.
16342 Rewrite the search routine to make an output consistently.
16344 * DISTLIST: Added conf/sparc64-ieee1275.mk,
16345 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
16346 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
16347 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
16348 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
16349 util/powerpc/ieee1275/misc.c.
16351 * include/grub/gzio.h: New file.
16352 * io/gzio.c: Likewise.
16354 * kern/file.c (grub_file_close): Call grub_device_close only if
16355 FILE->DEVICE is not NULL.
16357 * include/grub/mm.h [!NULL] (NULL): New macro.
16359 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
16361 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
16362 (pkgdata_MODULES): Added gzio.mod.
16363 (gzio_mod_SOURCES): New variable.
16364 (gzio_mod_CFLAGS): Likewise.
16366 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
16367 (pkgdata_MODULES): Added gzio.mod.
16368 (gzio_mod_SOURCES): New variable.
16369 (gzio_mod_CFLAGS): Likewise.
16371 * commands/cat.c: Include grub/gzio.h.
16372 (grub_cmd_cat): Use grub_gzfile_open instead of
16375 * commands/cmp.c: Include grub/gzio.h.
16376 (grub_cmd_cmp): Use grub_gzfile_open instead of
16379 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
16380 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
16382 (grub_rescue_cmd_module): Likewise.
16384 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
16386 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
16387 kern/sparc64/ieee1275/init.c because it contains _start.
16388 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
16390 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
16392 * configure.ac: Add support for sparc64 host with ieee1275
16394 * configure: Generated from configure.ac.
16395 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
16397 (grub_ofdisk_read): Likewise.
16398 (grub_ofdisk_open): Use %p to print pointer values, and cast the
16399 pointers as (void *) to remove a warning.
16400 (grub_ofdisk_close): Likewise.
16401 (grub_ofdisk_read): Likewise.
16402 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
16403 returns, so make it return void to remove a warning.
16404 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
16405 Corresponding prototype change.
16406 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
16407 values, and cast the pointers as (void *) to remove a warning.
16408 (grub_mm_dump): Likewise.
16409 * conf/sparc64-ieee1275.mk: New file.
16410 * conf/sparc64-ieee1275.rmk: Likewise.
16411 * include/grub/sparc64/setjmp.h: Likewise.
16412 * include/grub/sparc64/types.h: Likewise.
16413 * include/grub/sparc64/ieee1275/console.h: Likewise.
16414 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
16415 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
16416 * include/grub/sparc64/ieee1275/time.h: Likewise.
16417 * kern/sparc64/cache.c: Likewise.
16418 * kern/sparc64/dl.c: Likewise.
16419 * kern/sparc64/ieee1275/init.c: Likewise.
16420 * kern/sparc64/ieee1275/openfw.c: Likewise.
16422 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
16424 * util/console.c (grub_ncurses_putchar): If C is greater than
16425 0x7f, set C to a question mark.
16426 (grub_ncurses_getcharwidth): New function.
16427 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
16430 * normal/menu.c (print_entry): Made aware of Unicode. First,
16431 convert TITLE to UCS-4, and predict the cursor position by
16434 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
16436 * kern/misc.c (grub_utf16_to_utf8): Likewise.
16438 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
16440 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
16441 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
16444 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
16445 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
16446 grub_strcpy and grub_strlen. Take it into account that a space
16447 character is inserted as a delimiter.
16449 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
16451 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
16452 invalid magic in the error.
16454 * commands/search.c: New file.
16456 * util/grub-emu.c (main): Call grub_search_init and
16459 * kern/rescue.c (grub_rescue_print_disks): Removed.
16460 (grub_rescue_print_devices): New function.
16461 (grub_rescue_cmd_ls): Use grub_device_iterate with
16462 grub_rescue_print_devices instead of grub_disk_dev_iterate with
16463 grub_rescue_print_disks.
16465 * kern/partition.c (grub_partition_iterate): Return the result of
16466 PARTMAP->ITERATE instead of GRUB_ERRNO.
16468 * kern/device.c: Include grub/partition.h.
16469 (grub_device_iterate): New function.
16471 * include/grub/partition.h (grub_partition_iterate): Return int
16472 instead of grub_err_t.
16474 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
16476 [GRUB_UTIL] (grub_search_fini): Likewise.
16478 * include/grub/device.h (grub_device_iterate): New prototype.
16480 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
16482 (pkgdata_MODULES): Added search.mod.
16483 (search_mod_SOURCES): New variable.
16484 (search_mod_CFLAGS): Likewise.
16486 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
16487 (pkgdata_MODULES): Added search.mod.
16488 (search_mod_SOURCES): New variable.
16489 (search_mod_CFLAGS): Likewise.
16491 * commands/ls.c (grub_ls_list_disks): Renamed to ...
16492 (grub_ls_list_devices): ... this, and use grub_device_iterate.
16493 All callers changed.
16495 * DISTLIST: Added commands/search.c.
16497 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
16499 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
16501 (grub_getcharwidth): New function.
16503 * kern/misc.c (grub_utf8_to_ucs4): New function.
16505 * include/grub/term.h (struct grub_term): Added a new member
16507 (grub_getcharwidth): New prototype.
16509 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
16511 * term/i386/pc/console.c (map_char): New function. Segregated from
16512 grub_console_putchar.
16513 (grub_console_putchar): Use map_char.
16514 (grub_console_getcharwidth): New function.
16515 (grub_console_term): Specified grub_console_getcharwidth as
16518 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
16519 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
16521 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
16523 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
16524 on grub_strtoul completely.
16525 (write_char): Declare local variables in the beginning of the
16527 (grub_vesafb_getcharwidth): New function.
16528 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
16531 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
16533 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
16534 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
16535 commands/i386/pc/vbetest.c.
16537 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
16538 call grub_vbe_get_controller_info again, because the returned
16539 information is volatile.
16540 (grub_vbe_set_video_mode): Mostly rewritten.
16541 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
16542 grub_vbe_status_t correctly.
16543 (grub_vbe_get_video_mode_info): Likewise.
16544 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
16545 several if statements.
16547 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
16548 * commands/i386/pc/vbeinfo.c: ... this.
16550 * commands/i386/pc/vbe_test.c: Renamed to ...
16551 * commands/i386/pc/vbetest.c: ... this.
16553 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
16555 (grub_cmd_vbeinfo): ... this. Save video modes before
16556 iterating. Skip a video mode, if it is not available, not enough
16557 information is given or it is monochrome. Show the memory
16558 model. Leave the interpretation of MODEVAR to grub_strtoul
16560 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
16561 (GRUB_MOD_FINI): Likewise.
16563 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
16564 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
16565 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
16566 duplicated grub_env_get. Leave the interpretation of MODEVAR to
16567 grub_strtoul completely.
16568 (real2pm): Removed.
16569 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
16570 (GRUB_MOD_FINI): Likewise.
16572 * normal/misc.c: Include grub/mm.h.
16574 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
16575 vbe_list_modes with vbetest.mod and vbeinfo.mod.
16576 (vbe_list_modes_mod_SOURCES): Removed.
16577 (vbe_list_modes_mod_CFLAGS): Likewise.
16578 (vbe_test_mod_SOURCES): Likewise.
16579 (vbe_test_mod_CFLAGS): Likewise.
16580 (vbeinfo_mod_SOURCES): New variable.
16581 (vbeinfo_mod_CFLAGS): Likewise.
16582 (vbetest_mod_SOURCES): Likewise.
16583 (vbetest_mod_CFLAGS): Likewise.
16585 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
16587 * normal/misc.c: New file.
16589 * DISTLIST: Added normal/misc.c.
16591 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
16592 DISK to HOOK. Call HOOK with DISK.
16593 * partmap/apple.c (apple_partition_map_iterate): Likewise.
16594 * partmap/pc.c (pc_partition_map_iterate): Likewise.
16595 * partmap/sun.c (sun_partition_map_iterate): Likewise.
16597 * normal/menu_entry.c (struct screen): Added a new member
16598 "completion_shown".
16599 (completion_buffer): New global variable.
16600 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
16601 (store_completion): New function.
16602 (complete): Likewise.
16603 (clear_completions): Likewise.
16604 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
16605 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
16606 a tab, call complete.
16608 * normal/completion.c (disk_dev): Removed.
16609 (print_simple_completion): Likewise.
16610 (print_partition_completion): Likewise.
16611 (print_func): New global variable.
16612 (add_completion): Do not take the arguments WHAT or PRINT any
16613 longer. Added a new argument TYPE. Instead of printing directly,
16614 call PRINT_FUNC if not NULL.
16615 All callers changed.
16616 (complete_device): Use a local variable DEV instead of
16617 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
16618 (grub_normal_do_completion): Take a new argument HOOK. Do not
16619 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
16620 empty string, return NULL instead.
16621 All callers changed.
16623 * normal/cmdline.c (print_completion): New function.
16625 * kern/partition.c (grub_partition_iterate): Add an argument DISK
16627 All callers changed.
16629 * kern/disk.c (grub_print_partinfo): Removed.
16631 * include/grub/partition.h (struct grub_partition_map): Add a new
16632 argument DISK into HOOK of ITERATE.
16633 (grub_partition_iterate): Add a new argument DISK to HOOK.
16635 * include/grub/normal.h (enum grub_completion_type): New enum.
16636 (grub_completion_type_t): New type.
16637 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
16638 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
16639 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
16640 (GRUB_COMPLETION_TYPE_FILE): Likewise.
16641 (grub_normal_do_completion): Added a new argument HOOK.
16642 (grub_normal_print_device_info): New prototype.
16644 * include/grub/disk.h (grub_print_partinfo): Removed.
16646 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
16647 (normal_mod_SOURCES): Likewise.
16648 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16649 (normal_mod_SOURCES): Likewise.
16651 * commands/ls.c (grub_ls_list_disks): Use
16652 grub_normal_print_device_info instead of grub_print_partinfo. Free
16654 (grub_ls_list_files): Use grub_normal_print_device_info instead of
16655 duplicating the code.
16657 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
16659 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
16660 follow GCS more precisely.
16661 * commands/i386/pc/vbe_test.c: Likewise.
16662 * include/grub/i386/pc/vbe.h: Likewise.
16663 * term/i386/pc/vesafb.c: Likewise.
16664 * video/i386/pc/vbe.c: Likewise.
16666 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
16668 * DISTLIST: Added term/i386/pc/vesafb.c
16669 DISTLIST: Added video/i386/pc/vbe.c
16670 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
16671 DISTLIST: Added commands/i386/pc/vbe_test.c.
16672 * commands/i386/pc/vbe_list_modes.c: New file.
16673 * commands/i386/pc/vbe_test.c: Likewise.
16674 * term/i386/pc/vesafb.c: Likewise.
16675 * video/i386/pc/vbe.c: Likewise.
16676 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
16677 (grub_vbe_probe) Added prototype.
16678 (grub_vbe_set_video_mode) Likewise.
16679 (grub_vbe_get_video_mode) Likewise.
16680 (grub_vbe_get_video_mode_info) Likewise.
16681 (grub_vbe_set_pixel_rgb) Likewise.
16682 (grub_vbe_set_pixel_index) Likewise.
16683 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
16684 (pkgdata_MODULES): Added vesafb.mod.
16685 (pkgdata_MODULES): Added vbe_list_modes.mod.
16686 (pkgdata_MODULES): Added vbe_test.mod.
16687 (vbe_mod_SOURCES): Added.
16688 (vbe_mod_CFLAGS): Likewise.
16689 (vesafb_mod_SOURCES): Likewise.
16690 (vesafb_mod_CFLAGS): Likewise.
16691 (vbe_list_modes_mod_SOURCES): Likewise.
16692 (vbe_list_modes_mod_CFLAGS): Likewise.
16693 (vbe_test_mod_SOURCES): Likewise.
16694 (vbe_test_mod_CFLAGS): Likewise.
16696 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
16698 * normal/command.c (grub_command_execute): If INTERACTIVE is
16699 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
16700 CMDLINE. Disable the pager if INTERACTIVE is true.
16701 All callers are changed.
16703 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
16704 before reading a config file.
16705 * normal/main.c (read_config_file): Even if a command is not
16706 found, register it if it is within an entry.
16708 * util/grub-emu.c: Include sys/types.h and unistd.h.
16709 (options): Added --hold.
16710 (struct arguments): Added a new member "hold".
16711 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
16713 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
16714 cleared by a debugger, if it is not zero.
16716 * include/grub/normal.h (grub_command_execute): Add an argument
16719 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
16721 * DISTLIST: Added include/grub/i386/pc/vbe.h.
16723 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
16725 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
16726 program with another one, because the old one didn't detect a bug
16727 in gcc-3.4. Always use regparm 2, because the new test is still
16728 not enough for gcc-4.0. Someone must investigate a simple test
16729 case which detects a bug in gcc-4.0.
16731 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
16733 * DISTLIST: Added normal/completion.c.
16735 * normal/completion.c: New file.
16737 * term/i386/pc/console.c (grub_console_getwh): New function.
16738 (grub_console_term): Assign grub_console_getwh to getwh.
16740 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
16741 function is defined in normal/completion.c as
16742 grub_normal_do_completion.
16743 (grub_cmdline_get): Use grub_normal_do_completion instead of
16746 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
16747 returns non-zero, otherwise return 0.
16748 (grub_partition_iterate): First, probe the partition map. Then,
16749 call ITERATE only for this partition map.
16751 * kern/misc.c (grub_strncmp): Rewritten.
16753 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
16754 returns non-zero. Otherwise return 0.
16756 * include/grub/partition.h (grub_partition_map_iterate): Return
16757 int instead of void.
16759 * include/grub/normal.h (grub_normal_do_completion): New prototype.
16761 * include/grub/misc.h (grub_strncmp): Change the type of N to
16764 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
16767 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
16768 unsigned explicitly before comparing it with I.
16770 * kern/main.c (grub_env_write_root): Add the attribute unused into
16773 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
16774 normal/completion.c.
16775 (normal_mod_SOURCES): Likewise.
16776 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16777 (normal_mod_SOURCES): Likewise.
16779 * normal/command.c (grub_iterate_commands): If ITERATE returns
16780 non-zero, return one immediately.
16782 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
16784 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
16785 * kern/i386/pc/startup.S: Updated Global Descriptor table's
16787 (grub_vbe_get_controller_info): New function.
16788 (grub_vbe_get_mode_info): Likewise.
16789 (grub_vbe_set_mode): Likewise.
16790 (grub_vbe_get_mode): Likewise.
16791 (grub_vbe_set_memory_window): Likewise.
16792 (grub_vbe_get_memory_window): Likewise.
16793 (grub_vbe_set_scanline_length): Likewise.
16794 (grub_vbe_get_scanline_length): Likewise.
16795 (grub_vbe_set_display_start): Likewise.
16796 (grub_vbe_get_display_start): Likewise.
16797 (grub_vbe_set_palette_data): Likewise.
16798 * include/grub/i386/pc/vbe.h: New file.
16800 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
16802 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
16803 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
16804 * DISTLIST: Likewise.
16805 * kern/ieee1275/of.c: Moved to ...
16806 * kern/ieee1275/ieee1275.c: ... here.
16808 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
16810 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
16811 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
16812 Pass 0 as `end' parameter to grub_strtoul().
16814 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
16816 * include/grub/powerpc/ieee1275/console.h: Do not include
16817 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
16819 (grub_console_cur_color): Remove i386-specific prototype.
16820 (grub_console_real_putchar): Likewise.
16821 (grub_console_checkkey): Likewise.
16822 (grub_console_getkey): Likewise.
16823 (grub_console_getxy): Likewise.
16824 (grub_console_gotoxy): Likewise.
16825 (grub_console_cls): Likewise.
16826 (grub_console_setcursor): Likewise.
16827 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
16828 Include <grub/machine/console.h>.
16829 * term/ieee1275/ofconsole.c: Likewise.
16831 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
16833 * Makefile.in (LIBLZO): New variable.
16835 * configure.ac: Check for LZO version 2.
16837 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
16838 lzo/lzo1x.h instead of lzo1x.h.
16840 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
16843 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
16844 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
16846 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
16847 copying the data from PARTITION to P.
16849 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
16851 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
16852 negative, unload the module.
16854 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
16855 map is "pc_partition_map" but not "pc".
16856 (usage): Fix the description. The options are --boot-image and
16857 --core-image but not --boot-file or --core-file.
16858 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
16859 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
16862 * util/i386/pc/grub-install.in: Do not specify --boot-file or
16863 --core-file. Specify INSTALL_DEVICE as an argument.
16865 * util/console.c: Include config.h.
16866 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
16867 [HAVE_NCURSES_H]: Include ncurses.h.
16868 [HAVE_CURSES_H]: Include curses.h.
16869 [!A_NORMAL] (A_NORMAL): Defined as zero.
16870 [!A_STANDOUT] (A_STANDOUT): Likewise.
16872 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
16874 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
16876 * configure.ac: Check for curses libraries and headers.
16878 * Makefile.in (LIBCURSES): New variable.
16880 * genmk.rb (Script::rule): Set the executable bits.
16882 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
16883 name of the PC partition map is "pc_partition_map" but not "pc".
16885 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
16887 * util/i386/pc/grub-install.in (grub_probefs): New variable.
16888 (modules): Likewise.
16889 (usage): Added descriptions for --modules and --grub-probefs.
16890 Handle --modules and --grub-probefs. Save the arguments in MODULES
16891 and GRUB_PROBEFS, respectively.
16892 Auto-detect a filesystem module against GRUBDIR. If the result is
16893 empty and modules are not specified explicitly, abort the
16894 installation. Add the result to MODULES.
16896 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
16897 disk/powerpc/ieee1275/ofdisk.c,
16898 include/grub/powerpc/ieee1275/init.h and
16899 term/powerpc/ieee1275/ofconsole.c.
16900 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
16901 term/ieee1275/ofconsole.c.
16903 * include/grub/powerpc/ieee1275/console.h: Resurrected.
16905 * COPYING: Upgraded to the latest version. Only the address of the
16906 FSF office has changed.
16908 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
16910 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
16911 kern/ieee1275.c with kern/ieee1275/of.c.
16913 * kern/ieee1275.c: Moved to ...
16914 * kern/ieee1275/of.c: ... here.
16916 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
16918 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
16921 * config.guess: Updated to the latest version from gnulib.
16922 * config.sub: Likewise.
16923 * install.sh: Likewise.
16924 * mkinstalldirs: Likewise.
16926 * include/grub/console.h: Removed. This file is arch-specific. Do
16927 not put this in include/grub.
16929 * include/grub/i386/pc/console.h: Resurrected.
16931 * util/console.c: Include grub/machine/console.h instead of
16933 * util/grub-emu.c: Likewise.
16935 2005-08-04 Marco Gerards <metgerards@student.han.nl>
16937 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
16940 From Vincent Pelletier <subdino2004@yahoo.fr>
16941 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
16942 Redefined to use grub_getwh.
16943 (grub_term): New member named getwh.
16944 (grub_getwh): New prototype.
16945 * kern/term.c (grub_getwh): New function.
16946 * term/i386/pc/console.c (grub_console_getwh): New function.
16947 (grub_console_term): New member `getwh'.
16948 * term/i386/pc/vga.c (grub_vga_getwh): New function.
16949 (grub_vga_term): New member `getwh'.
16950 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
16952 (grub_ofconsole_getw): New function.
16953 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
16954 (grub_ofconsole_term): New field named getwh and new initial
16957 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
16959 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
16960 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
16961 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
16962 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
16963 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
16964 of <grub/machine/ieee1275.h>.
16965 * commands/ieee1275/reboot.c: Likewise.
16966 * boot/powerpc/ieee1275/ieee1275.c: Move ...
16967 * kern/ieee1275.c: ... to here. All users updated. Change all
16968 parameter structs to use new type `grub_ieee1275_cell_t'.
16969 * term/powerpc/ieee1275/ofconsole.c: Move ...
16970 * term/ieee1275/ofconsole.c: ... to here. All users updated.
16971 * disk/powerpc/ieee1275/ofdisk.c: Move ...
16972 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
16973 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
16975 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
16976 Remove unused prototypes. All users updated.
16977 * include/grub/powerpc/ieee1275/console.h: Removed.
16978 * include/grub/powerpc/ieee1275/ieee1275.h: Define
16979 `grub_ieee1275_cell_t'.
16980 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
16981 Cast comparisons with -1 to the correct type.
16982 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
16983 type to match `grub_ieee1275_entry_fn'.
16985 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
16987 * DISTLIST: Added util/i386/pc/grub-probefs.c.
16989 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
16990 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
16992 (grub_probefs_SOURCES): New variable.
16994 * util/i386/pc/grub-probefs.c: New file.
16996 * util/i386/pc/grub-setup.c (main): Call
16997 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
16998 grub_hfs_init and grub_jfs_init to initialize the system. Call
16999 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
17000 grub_pc_partition_map_fini to finish the system.
17002 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
17004 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
17006 (grub_multiboot_load_elf32): Likewise.
17007 (grub_multiboot_is_elf64): Likewise.
17008 (grub_multiboot_load_elf64): Likewise.
17009 (grub_multiboot_load_elf): Likewise.
17010 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
17011 an ELF32 or ELF64 file.
17012 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
17014 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
17015 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
17016 NULL before calling FS->LABEL.
17017 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
17018 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
17019 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
17020 before calling FS->LABEL.
17022 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
17024 * util/i386/pc/grub-install.in (datadir): New variable.
17026 (pkgdatadir): New variable.
17027 (pkglibdir): Removed.
17029 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
17031 * DISTLIST: Added util/i386/pc/grub-install.in.
17033 * util/i386/pc/grub-install.in: New file.
17035 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
17036 (grub_install_SOURCES): Likewise.
17038 * genmk.rb: Added support for scripts.
17039 (Script): New class.
17040 (scripts): New variable.
17042 * Makefile.in (install-local): Install sbin_SCRIPTS by
17044 (uninstall): Remove sbin_SCRIPTS.
17046 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
17047 device, try to get a GRUB device by
17048 grub_util_biosdisk_get_grub_dev.
17051 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
17052 description for --device-map.
17054 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
17056 Change the semantics of variable hooks. They now return strings
17057 instead of error values.
17059 * util/i386/pc/grub-setup.c: Include grub/env.h.
17060 (setup): Use grub_device_set_root instead of grub_env_set.
17062 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
17063 grub_env_get instead of grub_device_set_root and
17064 grub_device_get_root, respectively.
17066 * kern/main.c (grub_env_write_root): New function.
17067 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
17068 grub_env_set instead of grub_device_set_root.
17070 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
17072 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
17073 rather than calling ENV->WRITE_HOOK afterwards.
17074 (grub_env_get): Return the result of ENV->READ_HOOK rather than
17075 passing a pointer of a pointer.
17076 (grub_register_variable_hook): Change the types of "read_hook" and
17077 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
17079 Allocate the default empty string on the heap, because this string
17080 may be freed later.
17082 * kern/device.c: Include grub/env.h.
17083 (grub_device_set_root): Removed.
17084 (grub_device_get_root): Likewise.
17085 (grub_device_open): Use grub_env_get instead of
17086 grub_device_get_root.
17088 * include/grub/env.h (grub_env_read_hook_t): New type.
17089 (grub_env_write_hook_t): Likewise.
17090 (grub_env_var): Change the types of "read_hook" and "write_hook"
17091 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
17092 (grub_register_variable_hook): Likewise.
17094 * include/grub/device.h (grub_device_set_root): Removed.
17095 (grub_device_set_root): Likewise.
17097 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
17098 make sure that DIRNAME terminates with '/', so that
17099 grub_fat_find_dir will fail if PATH is not a directory.
17101 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
17103 Use the qualifier auto for print_files and print_files_long.
17104 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
17106 Put a newline only if there is no error.
17107 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
17110 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
17112 * kern/partition.c (grub_partition_probe): Initialize PART to
17113 NULL. Otherwise, when no partition map is registered, this returns
17116 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
17118 * partmap/apple.c (apple_partition_map_iterate): Check if POS
17119 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
17122 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
17124 * commands/ls.c (grub_ls_list_disks): Print the filesystem
17125 information on each device, if it does not have partitions. Print
17126 "Device" instead of "Disk", because this function is not specific
17129 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
17130 static to ensure that it is put on the memory rather than a
17133 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17135 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
17136 (grub_cat_init): Likewise.
17137 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
17138 (options): Likewise.
17139 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
17140 (grub_configfile_init): Likewise.
17141 * font/manager.c (GRUB_MOD_INIT): Likewise.
17142 * commands/help.c (GRUB_MOD_INIT): Likewise.
17143 (grub_help_init): Likewise.
17144 * normal/command.c (grub_command_init): Likewise.
17145 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
17146 * disk/loopback.c (grub_loop_init): Likewise.
17147 (GRUB_MOD_INIT): Likewise.
17148 * commands/ls.c (grub_ls_init): Likewise.
17149 (GRUB_MOD_INIT): Likewise.
17150 (options): Likewise.
17151 * commands/boot.c (grub_boot_init): Likewise.
17152 (GRUB_MOD_INIT): Likewise.
17153 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
17154 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
17155 (GRUB_MOD_INIT): Likewise.
17156 * commands/cmp.c (grub_cmp_init): Likewise.
17157 (GRUB_MOD_INIT): Likewise.
17159 * normal/arg.c: Use <> instead of "" to include header files.
17160 (SHORT_ARG_HELP): New macro.
17161 (SHORT_ARG_USAGE): Likewise.
17162 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
17163 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
17165 (find_short): Check if C is 'h' or 'u' explicitly.
17166 (grub_arg_show_help): Use space characters instead of tabs. Treat
17167 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
17168 are shown with --help and --usage only if they are not used for
17169 the command itself.
17170 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
17173 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
17174 const into "longarg". Change the type of "shortarg" to int.
17176 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17178 * boot/i386/pc/boot.S (boot_drive_check): New label.
17180 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
17183 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
17184 which do not pass a boot drive correctly. Copied from GRUB Legacy.
17186 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17188 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
17189 When turning off Gate A20, skip the check and return immediately,
17190 because this is not fatal usually.
17192 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17194 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
17195 be 0x7C00 instead of 0x8000.
17197 * boot/i386/pc/pxeboot.S: Rewritten.
17199 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
17201 (gate_a20_check_state): Read a byte from 0x108000. Invert the
17204 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
17206 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
17207 robustness. This routine now supports a BIOS call and System
17208 Control Port A to modify the gate A20.
17210 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17211 Increased to 0x440.
17213 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
17215 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
17216 device path and resulting ihandle.
17217 (grub_ofdisk_close): dprintf the ihandle being closed.
17218 (grub_ofdisk_read): dprintf function parameters.
17219 * kern/mm.c (grub_mm_init_region): Likewise.
17220 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
17221 (grub_linux_boot): dprintf the Linux entry point, initrd address and
17222 size, and boot arguments.
17223 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
17224 before loading into memory.
17225 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
17226 before loading into memory.
17228 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
17230 * kern/mm.c: Added much documentation.
17231 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
17232 8, set to 5 instead of 8.
17234 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
17236 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
17238 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
17239 (grub_mkdevicemap_SOURCES): New variable.
17241 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
17242 lib/device.c of GRUB Legacy.
17244 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
17246 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
17247 instead of PATH is NULL.
17249 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
17251 * commands/cmp.c (BUFFER_SIZE): New macro.
17252 (grub_cmd_cmp): Close the right file at the right time. Compare
17253 only data just read. Don't report files of different size as
17254 identical. Dynamically allocate buffers. Move variable
17255 declarations at the beginning of function.
17257 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
17259 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
17262 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
17264 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
17265 when backspace is pressed at beginning of line.
17267 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
17269 * DISTLIST: Added genfslist.sh.
17271 * normal/main.c (fs_module_list): New variable.
17272 (autoload_fs_module): New function.
17273 (read_fs_list): Likewise.
17274 (grub_normal_execute): Call read_fs_list.
17276 * kern/fs.c (grub_fs_autoload_hook): New variable.
17277 (grub_fs_probe): Added support for auto-loading.
17279 * include/grub/normal.h (struct grub_fs_module_list): New struct.
17280 (grub_fs_module_list_t): New type.
17282 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
17283 (grub_fs_autoload_hook): New prototype.
17285 * genfslist.sh: New file.
17287 * genmk.rb: Added a rule to generate a filesystem list.
17289 2005-06-30 Marco Gerards <metgerards@student.han.nl>
17291 * configure.ac: Fix the test for cross-compiling.
17293 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
17294 define GRUB_UTIL anymore.
17296 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
17297 so this function works on other systems than just big endian.
17298 (load_modules): Likewise.
17299 (add_segments): Likewise.
17301 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
17303 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
17304 contains `l' modifier, get a long from va_arg().
17306 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
17308 * kern/mm.c (grub_free): If the next free block which is being
17309 merged is the first free block, set the first block to the block
17311 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
17313 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
17315 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
17316 `grub_ieee1275_chosen'.
17318 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
17320 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
17321 (grub_ieee1275_chosen): New variable.
17322 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
17324 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
17325 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
17326 Rename first argument to `phandle' for consistency.
17327 (grub_ieee1275_get_property_length): Likewise.
17328 (grub_ieee1275_next_property): Likewise. Change type of first argument
17329 to grub_ieee1275_phandle_t.
17330 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
17331 Move export next to declaration.
17332 (grub_ieee1275_chosen): New variable.
17333 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
17334 Correct cosmetic typo.
17335 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
17336 `grub_ieee1275_chosen'.
17337 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
17338 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
17339 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
17340 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
17341 `grub_ieee1275_chosen'.
17343 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
17345 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
17347 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
17348 /chosen/bootargs as "variable=value" pairs.
17350 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
17352 * include/grub/misc.h (grub_dprintf): New macro.
17353 (grub_real_dprintf): New prototype.
17354 (grub_strword): Likewise.
17355 (grub_iswordseparator): Likewise.
17356 * kern/misc.c (grub_real_dprintf): New function.
17357 (grub_strword): Likewise.
17358 (grub_iswordseparator): Likewise.
17360 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
17362 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
17363 (roundup): Remove macro.
17364 (grub_ieee1275_flags): Make static.
17365 (grub_ieee1275_realmode): Remove.
17366 (grub_ieee1275_test_flag): New function.
17367 (grub_ieee1275_set_flag): Likewise.
17368 (find_options): Rename to `grub_ieee1275_find_options'; update
17369 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
17370 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
17371 (cmain): New prototype.
17372 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
17373 `grub_ieee1275_flags' directly.
17374 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
17375 machine/biosdisk.h.
17376 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
17377 Don't include grub/machine/init.h.
17378 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
17379 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
17381 (grub_ieee1275_realmode): Likewise.
17382 (grub_ieee1275_flag): New enum.
17383 (grub_ieee1275_test_flag): New prototype.
17384 (grub_ieee1275_set_flag): New prototype.
17385 * include/grub/powerpc/ieee1275/init.h: Remove file.
17386 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
17387 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
17388 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
17389 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
17391 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
17392 `grub_ieee1275_test_flag'.
17393 (grub_ieee1275_encode_devname): Likewise.
17395 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
17397 * include/grub/powerpc/ieee1275/ieee1275.h
17398 (grub_ieee1275_encode_devname): New prototype.
17399 (grub_ieee1275_get_filename): Likewise.
17400 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
17402 (grub_set_prefix): Likewise.
17403 (grub_machine_init): Call grub_set_prefix.
17404 * kern/powerpc/ieee1275/openfw.c: Fix typos.
17405 (grub_parse_type): New enum.
17406 (grub_ieee1275_get_devargs): New function.
17407 (grub_ieee1275_get_devname): Likewise.
17408 (grub_ieee1275_parse_args): Likewise.
17409 (grub_ieee1275_get_filename): Likewise.
17410 (grub_ieee1275_encode_devname): Likewise.
17412 2005-03-30 Marco Gerards <metgerards@student.han.nl>
17414 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
17415 `grub_loader_unset'.
17417 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
17419 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
17420 instead of grub_ieee1275_interpret.
17421 (grub_halt_init): New function.
17422 (grub_halt_fini): Likewise.
17423 (GRUB_MOD_INIT): Correct message grammar.
17424 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
17425 instead of grub_ieee1275_interpret.
17426 (grub_reboot_init): New function.
17427 (grub_reboot_fini): Likewise.
17428 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
17429 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
17430 util/i386/pc/misc.c with commands/ieee1275/halt.c,
17431 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
17432 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
17434 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
17436 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
17438 (grub_halt): Likewise.
17439 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
17440 (cmain): Remove __attribute__((unused)).
17441 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
17442 (grub_heap_len): Likewise.
17443 (grub_machine_fini): New function.
17444 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
17445 (grub_halt): Likewise.
17446 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
17448 * util/powerpc/ieee1275/misc.c: New file.
17450 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
17452 * DISTLIST: New file.
17453 * gendistlist.sh: Likewise.
17455 * Makefile.in (COMMON_DISTFILES): Removed.
17456 (BOOT_DISTFILES): Likewise.
17457 (CONF_DISTFILES): Likewise.
17458 (DISK_DISTFILES): Likewise.
17459 (FS_DISTFILES): Likewise.
17460 (INCLUDE_DISTFILES): Likewise.
17461 (KERN_DISTFILES): Likewise.
17462 (LOADER_DISTFILES): Likewise.
17463 (TERM_DISTFILES): Likewise.
17464 (UTIL_DISTFILES): Likewise.
17465 (DISTFILES): Likewise.
17466 (uninstall): Uninstall files in $(pkgdata_DATA).
17467 (DISTLIST): New target.
17468 (distdir): Use the contents of the file DISTLIST to get a list of
17471 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
17473 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
17474 descriptor. This is ported from GRUB Legacy.
17476 * gencmdlist.sh: Added an extra semicolon to make it work with
17477 old sed versions. Reported by Robert Bihlmeyer
17478 <robbe@orcus.priv.at>.
17480 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
17482 Automatic loading of commands is supported.
17484 * normal/main.c (read_command_list): New function.
17485 (grub_normal_execute): Call read_command_list.
17487 * normal/command.c (grub_register_command): Return zero or CMD.
17488 Allocate CMD->NAME from the heap.
17489 Initialize CMD->MODULE_NAME to zero.
17490 Find the same name as well. If the same command is found and it is
17491 a dummy command, overwrite members. If it is not a dummy command,
17493 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
17494 (grub_command_find): If a dummy command is found, load a module
17495 and retry to find a command only once.
17497 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
17498 make sure that each command is loaded.
17500 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
17502 (struct grub_command): Remove const from the member `name'.
17503 Add a new member `module_name'.
17504 (grub_register_command): Return grub_command_t.
17506 * commands/help.c (grub_cmd_help): Call grub_command_find to make
17507 sure that each command is loaded.
17509 * genmk.rb (PModule::rule): Specify a module name without the
17510 suffix ".mod" to gencmdlist.sh.
17512 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
17514 * gencmdlist.sh: New file.
17516 * genmk.rb (PModule::rule): Generate a rule for a command list.
17518 Generate command.lst from $(COMMANDFILES).
17520 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
17521 (DATA): Added $(pkgdata_DATA).
17522 (install-local): Install files in $(pkgdata_DATA).
17524 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
17526 * term/i386/pc/vga.c (debug_command): Removed.
17527 (GRUB_MOD_INIT): Do not register the command "debug".
17529 From Hollis Blanchard:
17530 * commands/configfile.c: New file.
17531 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
17532 commands/configfile.c.
17533 (pkgdata_MODULES): Added configfile.mod.
17534 (configfile_mod_SOURCES): New variable.
17535 (configfile_mod_CFLAGS): Likewise.
17536 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
17537 commands/configfile.c.
17538 (pkgdata_MODULES): Added configfile.mod.
17539 (configfile_mod_SOURCES): New variable.
17540 (configfile_mod_CFLAGS): Likewise.
17541 * util/grub-emu.c (main): Call grub_configfile_init and
17542 grub_configfile_fini.
17543 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
17545 [GRUB_UTIL] (grub_configfile_fini): Likewise.
17547 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
17549 * normal/arg.c (grub_arg_show_help): Do not show the bug report
17552 * commands/help.c (grub_cmd_help): Do not print newlines after
17553 the last command in print_command_help.
17555 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
17557 * commands/default.h: New file.
17558 * commands/timeout.h: Likewise.
17559 * normal/context.c: Likewise.
17561 * util/misc.c: Do not include sys/times.h.
17562 Include sys/time.h and grub/machine/time.h.
17563 (grub_get_rtc): Rewritten with gettimeofday.
17565 * util/grub-emu.c (main): Call grub_default_init and
17566 grub_timeout_init before grub_normal_init, and call
17567 grub_timeout_fini and grub_default_fini after grub_main.
17569 * util/console.c (grub_ncurses_checkkey): Return the read
17572 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
17575 * normal/main.c (read_config_file): Push MENU. If this fails,
17576 print an error and wait for a user input.
17577 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
17578 If a menu is empty or an error occurs, pop MENU.
17579 (grub_normal_execute): Pop and free MENU after grub_menu_run
17582 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
17584 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
17586 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
17588 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
17590 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
17593 * include/grub/normal.h (struct grub_menu_list): New struct.
17594 (grub_menu_list_t): New type.
17595 (struct grub_context): New struct.
17596 (grub_context_t): New type.
17597 (grub_register_command): Got rid of EXPORT_FUNC.
17598 (grub_unregister_command): Likewise.
17599 (grub_context_get): New prototype.
17600 (grub_context_get_current_menu): Likewise.
17601 (grub_context_push_menu): Likewise.
17602 (grub_context_pop_menu): Likewise.
17603 [GRUB_UTIL] (grub_default_init): Likewise.
17604 [GRUB_UTIL] (grub_default_fini): Likewise.
17605 [GRUB_UTIL] (grub_timeout_init): Likewise.
17606 [GRUB_UTIL] (grub_timeout_fini): Likewise.
17608 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
17609 commands/timeout.c and normal/context.c.
17610 (pkgdata_MODULES): Added default.mod and timeout.mod.
17611 (normal_mod_SOURCES): Added normal/context.c.
17612 (default_mod_SOURCES): New variable.
17613 (default_mod_CFLAGS): Likewise.
17614 (timeout_mod_SOURCES): Likewise.
17615 (timeout_mod_CFLAGS): Likewise.
17616 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
17618 (pkgdata_MODULES): Added default.mod and timeout.mod.
17619 (normal_mod_SOURCES): Added normal/context.c.
17620 (default_mod_SOURCES): New variable.
17621 (default_mod_CFLAGS): Likewise.
17622 (timeout_mod_SOURCES): Likewise.
17623 (timeout_mod_CFLAGS): Likewise.
17625 * Makefile.in (all-local): Added $(MKFILES).
17627 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
17629 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
17630 (grub_emu_SOURCES): Likewise.
17631 (pkgdata_MODULES): Add `sun.mod'.
17632 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
17633 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
17635 (pkgdata_MODULES): Add `sun.mod'.
17636 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
17637 * include/grub/partition.h (grub_sun_partition_map_init): New
17639 (grub_sun_partition_map_fini): Likewise.
17640 * partmap/sun.c: New file.
17641 * util/grub-emu.c (main): Initialize and de-initialize the sun
17642 partitionmap support.
17644 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
17646 This implements an Emacs-like menu entry editor.
17648 * normal/menu_entry.c: New file.
17650 * util/console.c (grub_ncurses_putchar): Translate some Unicode
17651 characters to ASCII.
17652 (saved_char): New variable.
17653 (grub_ncurses_checkkey): Rewritten completely.
17654 (grub_ncurses_getkey): Likewise.
17655 (grub_ncurses_init): Call raw instead of cbreak.
17657 * normal/menu.c (print_entry): Do not put a space.
17658 (init_page): Renamed to ...
17659 (grub_menu_init_page): ... this. All callers changed.
17660 (edit_menu_entry): Removed.
17661 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
17663 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
17665 * kern/misc.c (grub_vprintf): Call grub_refresh.
17667 * normal/menu.c (DISP_LEFT): Renamed to ...
17668 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
17669 * normal/menu.c (DISP_UP): Renamed to ...
17670 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
17671 * normal/menu.c (DISP_RIGHT): Renamed to ...
17672 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
17673 * normal/menu.c (DISP_DOWN): Renamed to ...
17674 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
17675 * normal/menu.c (DISP_HLINE): Renamed to ...
17676 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
17677 * normal/menu.c (DISP_VLINE): Renamed to ...
17678 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
17679 * normal/menu.c (DISP_UL): Renamed to ...
17680 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
17681 * normal/menu.c (DISP_UR): Renamed to ...
17682 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
17683 * normal/menu.c (DISP_LL): Renamed to ...
17684 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
17685 * normal/menu.c (DISP_LR): Renamed to ...
17686 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
17687 * normal/menu.c (TERM_WIDTH): Renamed to ...
17688 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
17689 * normal/menu.c (TERM_HEIGHT): Renamed to ...
17690 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
17691 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
17692 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
17693 * normal/menu.c (TERM_MARGIN): Renamed to ...
17694 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
17695 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
17696 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
17697 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
17698 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
17699 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
17700 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
17701 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
17702 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
17703 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
17704 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
17705 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
17706 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
17707 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
17708 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
17709 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
17710 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
17711 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
17712 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
17713 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
17714 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
17715 All callers changed.
17717 * include/grub/normal.h: New prototype.
17719 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
17720 normal/menu_entry.c.
17721 (normal_mod_SOURCES): Likewise.
17722 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17723 (normal_mod_SOURCES): Likewise.
17725 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
17727 * include/grub/normal.h (grub_halt_init): New prototype.
17728 (grub_halt_fini): Likewise.
17729 (grub_reboot_init): Likewise.
17730 (grub_reboot_fini): Likewise.
17732 * util/grub-emu.c: Include signal.h.
17733 (main_env): New global variable.
17734 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
17736 (grub_machine_fini): New function.
17737 (main): Call grub_halt_init and grub_reboot_init before
17738 grub_main, and grub_reboot_fini and grub_halt_fini after it.
17739 Call setjmp with MAIN_ENV to go back afterwards.
17740 Call grub_machine_fini right before return.
17742 * include/grub/util/misc.h: Include setjmp.h.
17743 (main_env): New prototype.
17745 * include/grub/kernel.h (grub_machine_fini): New prototype.
17746 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
17747 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
17749 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
17750 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
17751 * term/i386/pc/console.c (grub_console_fini): Likewise.
17753 * util/i386/pc/misc.c: New file.
17755 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
17756 util/i386/pc/misc.c, commands/i386/pc/halt.c and
17757 commands/i386/pc/reboot.c.
17759 2005-02-14 Guillem Jover <guillem@hadrons.org>
17761 * include/grub/dl.h (grub_dl_check_header): New prototype.
17762 (grub_arch_dl_check_header): Change return type to grub_err_t,
17763 remove size parameter and export function. Update all callers.
17764 * kern/dl.c (grub_dl_check_header): New function.
17765 (grub_dl_load_core): Use `grub_dl_check_header' instead of
17766 `grub_arch_dl_check_header'. Check ELF type. Check if sections
17767 are inside the core.
17768 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
17769 independent ELF header checks.
17770 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
17771 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
17772 `grub_dl_check_header' instead of explicit checks. Check for the
17774 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
17775 `grub_dl_check_header' instead of explicit checks. Remove arch
17776 specific ELF header checks.
17778 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
17781 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
17783 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
17784 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
17786 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
17788 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
17789 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
17790 (part_map_iterate): Clear `grub_errno' and return 0 if
17791 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
17792 * partmap/amiga.c (amiga_partition_map_iterate): Return
17793 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
17794 * partmap/apple.c (apple_partition_map_iterate): Likewise.
17796 2005-02-01 Guillem Jover <guillem@hadrons.org>
17798 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
17801 2005-01-31 Marco Gerards <metgerards@student.han.nl>
17803 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
17805 (grub_rescue_cmd_linux): New prototype.
17806 (grub_rescue_cmd_initrd): Likewise.
17807 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
17809 (grub_linux_release_mem): Release the memory for the initrd.
17810 (grub_load_linux): Renamed from this...
17811 (grub_rescue_cmd_linux): ...To this. Changed all callers.
17812 Changed `entry' not to be static. Loop over memory regions to
17813 find another one when the default fails.
17814 (grub_rescue_cmd_initrd): New function.
17815 (grub_linux_init): Remove function.
17816 (grub_linux_fini): Likewise.
17817 (GRUB_MOD_INIT): Register `initrd'.
17818 (GRUB_MOD_FINI): Unregister `initrd'.
17819 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
17821 (grub_linux_normal_fini): Likewise.
17822 (GRUB_MOD_INIT): Register `initrd'.
17823 (GRUB_MOD_FINI): Unregister `initrd'.
17825 2005-01-31 Marco Gerards <metgerards@student.han.nl>
17827 * commands/help.c: New file.
17828 * normal/arg.c (show_help): Renamed to...
17829 (grub_arg_show_help): ... this.
17830 * commands/i386/pc/halt.c: New file.
17831 * commands/i386/pc/reboot.c: Likewise.
17832 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
17833 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
17834 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
17835 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
17837 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
17839 (pkgdata_MODULES): Add `help.mod'.
17840 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
17841 * grub/i386/pc/init.h (grub_reboot): New prototype.
17842 (grub_halt): Likewise.
17843 * include/grub/normal.h (grub_arg_show_help): New prototype.
17844 (grub_help_init): Likewise.
17845 (grub_help_fini): Likewise.
17846 * util/grub-emu.c (main): Initialize and deinitialize the help
17849 * normal/cmdline.c (grub_cmdline_get): Doc fix.
17851 * normal/command.c (grub_command_init): Fixed the description of
17852 the `set' and `unset' commands.
17854 2005-01-31 Marco Gerards <metgerards@student.han.nl>
17856 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
17858 * commands/ieee1275/halt.c: New file.
17859 * commands/ieee1275/reboot.c: Likewise.
17860 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
17861 `__attribute__ ((unused))'. Some GCS related fixed.
17862 (grub_suspend_init) [GRUB_UTIL]: Function removed.
17863 (grub_suspend_fini): Likewise.
17864 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
17866 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
17867 (halt_mod_CFLAGS): New variables.
17868 * include/grub/powerpc/ieee1275/ieee1275.h
17869 (grub_ieee1275_interpret): New prototype.
17871 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
17873 * include/grub/misc.h (memmove): New prototype.
17874 (memcpy): Likewise.
17876 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
17878 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
17879 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
17881 2005-01-22 Marco Gerards <metgerards@student.han.nl>
17883 * kern/misc.c (grub_strndup): Function rewritten.
17885 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
17887 * normal/menu.c (TERM_WIDTH): Macro redefined.
17888 (TERM_TOP_BORDER_Y): Likewise.
17889 (draw_border): Replaced while-loop by a for-loop. Make the number
17890 of lines consistent with the number of lines displayed in
17891 print_entries. Added a margin below the rectangle.
17892 (print_entry): Make the entry fit in the rectangle.
17893 (print_entries): Display the scroll arrows next to the right
17896 2005-01-21 Marco Gerards <metgerards@student.han.nl>
17898 * fs/minix.c (grub_minix_find_file): Reserve more space for
17899 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
17900 `grub_strncpy' to copy `path' into it.
17902 2005-01-21 Marco Gerards <metgerards@student.han.nl>
17904 Add the loopback device, a device via which files can be accessed
17907 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
17908 (pkgdata_MODULES): Add loopback.mod.
17909 (loopback_mod_SOURCES): New variable.
17910 (loopback_mod_CFLAGS): Likewise.
17911 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
17913 (pkgdata_MODULES): Add loopback.mod.
17914 (loopback_mod_SOURCES): New variable.
17915 (loopback_mod_CFLAGS): Likewise.
17916 * disk/loopback.c: new file.
17917 * include/grub/normal.h (grub_loop_init): New prototype.
17918 (grub_loop_fini): New prototype.
17919 * util/grub-emu.c (main): Initialize and de-initialize loopback
17921 * include/grub/disk.h (grub_disk_dev_id): Add
17922 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
17924 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
17926 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
17928 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
17929 (suspend_mod_SOURCES): New variable.
17930 (suspend_mod_CFLAGS): Likewise.
17931 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
17933 * commands/ieee1275/suspend.c: New file.
17935 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
17937 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
17938 ((unused))' to `__attribute__ ((used))'.
17939 (GRUB_MOD_FINI): Likewise.
17940 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
17941 * genmk.rb (PModule): Assign space to common symbols when linking
17944 2005-01-20 Marco Gerards <metgerards@student.han.nl>
17946 * include/grub/mm.h (grub_mm_init_region): Change the type of the
17947 `unsigned' arguments to `grub_size_t'.
17948 (grub_malloc): Likewise.
17949 (grub_realloc): Likewise.
17950 (grub_memalign): Likewise.
17951 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
17952 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
17953 * util/misc.c (grub_malloc): Likewise.
17954 (grub_realloc): Likewise.
17955 * kern/mm.c (get_header_from_pointer): Change the casts to
17956 `unsigned' into a cast to `grub_size_t'.
17958 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
17959 point to `currnode' when `currnode' is changed.
17961 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
17962 Schottelius <nico-linux@schottelius.org>.
17964 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
17966 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
17967 (note_path): Remove variable.
17968 (GRUB_IEEE1275_NOTE_NAME): New macro.
17969 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
17970 (grub_ieee1275_note_hdr): New structure.
17971 (grub_ieee1275_note_desc): Likewise.
17972 (grub_ieee1275_note): Likewise.
17973 (load_note): Remove `dir' argument. All callers updated. Remove
17974 `note_img' and `path'. Do not load a file from `note_path'.
17975 Initialize a struct grub_ieee1275_note and write that to `out'.
17976 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
17978 2005-01-05 Marco Gerards <metgerards@student.han.nl>
17980 * util/misc.c (grub_util_read_image): Revert last change. It
17981 called `grub_util_read_at', which seeks from the beginning of the
17984 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
17986 * TODO: Add note about endianness in grub-mkimage.
17987 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
17989 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
17990 (grub_mkimage_SOURCES): New target.
17991 * include/grub/kernel.h (grub_start_addr): Remove variable.
17992 (grub_end_addr): Likewise.
17993 (grub_total_module_size): Likewise.
17994 (grub_kernel_image_size): Likewise.
17995 (GRUB_MODULE_MAGIC): New constant.
17996 (grub_module_info): New structure.
17997 (grub_arch_modules_addr): New prototype.
17998 (grub_get_end_addr): Remove prototype.
17999 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
18000 * include/grub/powerpc/ieee1275/kernel.h: New file.
18001 * include/grub/util/misc.h (grub_util_get_fp_size): New
18003 (grub_util_read_at): Likewise.
18004 (grub_util_write_image_at): Likewise.
18005 * kern/main.c (grub_get_end_addr): Remove function.
18006 (grub_load_modules): Call grub_arch_modules_addr instead of using
18007 grub_end_addr. Look for a grub_module_info struct in memory. Use
18008 the grub_module_info fields instead of calling grub_get_end_addr
18009 as loop conditions. Move grub_add_unused_region code here.
18010 (grub_add_unused_region): Remove function.
18011 * kern/i386/pc/init.c: Include grub/cache.h.
18012 (grub_machine_init): Remove call to grub_get_end_addr. Remove
18013 one call to add_mem_region.
18014 (grub_arch_modules_addr): New function.
18015 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
18016 (grub_total_module_size): Likewise.
18017 Include grub/machine/kernel.h.
18018 (grub_arch_modules_addr): New function.
18019 * util/grub-emu.c (grub_end_addr): Remove variable.
18020 (grub_total_module_size): Likewise.
18021 (grub_arch_modules_addr): New function.
18022 * util/misc.c: Include unistd.h.
18023 (grub_util_get_fp_size): New function.
18024 (grub_util_read_at): Likewise.
18025 (grub_util_write_image_at): Likewise.
18026 (grub_util_read_image): Call grub_util_read_at.
18027 (grub_util_write_image): Call grub_util_write_image_at.
18028 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
18029 additional memory in kernel_img for a struct grub_module_info.
18030 Fill in that grub_module_info.
18031 * util/powerpc/ieee1275/grub-mkimage.c: New file.
18033 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
18035 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
18037 * include/grub/powerpc/ieee1275/ieee1275.h
18038 (grub_ieee1275_milliseconds): New prototype.
18039 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
18041 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
18042 grub_ieee1275_milliseconds.
18044 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
18046 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
18048 (find_options): New function.
18049 (cmain): Call find_options.
18050 * include/grub/powerpc/ieee1275/ieee1275.h
18051 (grub_ieee1275_realmode): New extern variable.
18052 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
18053 grub_map if grub_ieee1275_realmode is false.
18055 2004-12-29 Marco Gerards <metgerards@student.han.nl>
18057 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
18058 lines are inserted and make it work like readline. Reported by
18059 Vincent Pelletier <subdino2004@yahoo.fr>.
18061 2004-12-28 Marco Gerards <metgerards@student.han.nl>
18063 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
18065 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
18066 `kern/powerpc/cache.S'.
18068 2004-12-27 Marco Gerards <metgerards@student.han.nl>
18070 * genmk.rb: Handle the `Program' class in the main loop. Written
18071 by Johan Rydberg <jrydberg@gnu.org>.
18072 (Program): New class.
18073 (programs): New variable.
18074 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
18075 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
18076 instead of "grub/kernel.h". Include <grub/machine/init.h>.
18077 (help_arch): Function removed.
18078 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
18079 `powerpc/libgcc.h' and `loader.h'.
18080 (pkgdata_PROGRAMS): New variable.
18081 (sbin_UTILITIES): Variable removed.
18082 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
18083 (grubof_SOURCES): Variable re-defined so it only includes the
18084 core functionality.
18085 (grubof_CFLAGS): Remove `-DGRUBOF'.
18086 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
18087 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
18088 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
18089 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
18090 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
18091 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
18092 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
18093 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
18094 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
18095 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
18096 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
18097 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
18098 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
18099 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
18100 (pc_mod_CFLAGS): New variables.
18101 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
18102 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
18103 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
18104 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
18106 * include/grub/i386/pc/init.h (grub_os_area_addr)
18107 (rub_os_area_size): ... to here.
18108 * include/grub/powerpc/ieee1275/ieee1275.h
18109 (grub_ieee1275_entry_fn): Export symbol.
18110 * include/grub/powerpc/ieee1275/init.h: New file.
18111 * include/grub/powerpc/libgcc.h: Likewise.
18112 * include/grub/cache.h: Likewise.
18113 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
18114 <hollis@penguinppc.org>.
18115 * kern/dl.c: Include <grub/cache.h>.
18116 (grub_dl_flush_cache): New function.
18117 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
18119 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
18120 (grub_console_init): Removed prototypes.
18121 (grub_machine_init): Don't initialize the modules anymore.
18122 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
18124 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
18125 Macro undef removed.
18126 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
18127 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
18128 relocation `R_PPC_REL32'. Return an error when the relocation is
18130 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
18131 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
18132 * util/misc.c (grub_arch_sync_caches): Likewise.
18134 2004-12-19 Marco Gerards <metgerards@student.han.nl>
18136 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
18137 `symlist.c', add `grubof_symlist.c'.
18138 (symlist.c): Variable removed.
18139 (grubof_HEADERS): Variable added.
18140 (grubof_symlist.c): New target.
18141 (kernel_syms.lst): Use `grubof_HEADERS' instead of
18142 `kernel_img_HEADERS'.
18143 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
18144 * kern/powerpc/dl.c: New file.
18145 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
18147 (grub_arch_dl_relocate_symbols): Likewise.
18148 (grub_register_exported_symbols): Likewise.
18150 2004-12-13 Marco Gerards <metgerards@student.han.nl>
18152 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
18153 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
18154 to fail instead. Reported by Vincent Pelletier
18155 <subdino2004@yahoo.fr>.
18157 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
18158 it is not allocated. Reported by Vincent Pelletier
18159 <subdino2004@yahoo.fr>.
18161 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
18162 output so the output looks better.
18164 2004-12-04 Marco Gerards <metgerards@student.han.nl>
18166 Modulize the partition map support and add support for the amiga
18169 * commands/ls.c: Include <grub/partition.h> instead of
18170 <grub/machine/partition.h>.
18171 * kern/disk.c: Likewise.
18172 * kern/rescue.c: Likewise.
18173 * loader/i386/pc/chainloader.c: Likewise.
18174 * normal/cmdline.c: Likewise.
18175 * kern/powerpc/ieee1275/init.c: Likewise.
18176 (grub_machine_init): Call `grub_pc_partition_map_init',
18177 `grub_amiga_partition_map_init' and
18178 `grub_apple_partition_map_init'.
18179 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
18180 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
18181 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
18182 `partition.h' and `pc_partition.h'.
18183 (grub_setup_SOURCES): Remove
18184 `disk/i386/pc/partition.c'. Add `kern/partition.c',
18185 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
18186 (grub_emu_SOURCES): Likewise.
18187 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
18188 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
18189 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
18190 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
18191 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
18192 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
18193 (grubof_SOURCES): Likewise.
18194 * disk/i386/pc/partition.c: File removed.
18195 * disk/powerpc/ieee1275/partition.c: Likewise.
18196 * include/grub/powerpc/ieee1275/partition.h: Likewise.
18197 * include/grub/i386/pc/partition.h: Likewise.
18198 * kern/partition.c: New file.
18199 * partmap/amiga.c: Likewise.
18200 * partmap/apple.c: Likewise.
18201 * partmap/pc.c: Likewise.
18202 * include/grub/partition.h: Likewise..
18203 * include/grub/pc_partition.h: Likewise.
18204 * util/grub-emu.c: Include <grub/partition.h> instead of
18205 <grub/machine/partition.h>.
18206 (main): Call `grub_pc_partition_map_init',
18207 `grub_amiga_partition_map_init' and
18208 `grub_apple_partition_map_init' and deinitialize afterwards.
18209 * util/i386/pc/biosdisk.c: Include `#include
18210 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
18211 `<grub/machine/partition.h>'.
18212 * util/i386/pc/grub-setup.c: Likewise.
18213 * util/i386/pc/biosdisk.c: Likewise.
18214 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
18215 partition information in case of a PC partition.
18216 * util/i386/pc/grub-setup.c: Include `#include
18217 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
18218 `<grub/machine/partition.h>'.
18219 (setup): Only access the PC specific partition information in case
18222 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
18224 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
18225 (grub_longjmp): Likewise.
18226 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
18228 * normal/powerpc/setjmp.S: New file.
18229 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
18230 `normal/powerpc/setjmp.S'.
18231 (grubof_CFLAGS): Add `-DGRUBOF'.
18232 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
18233 [GRUB_UTIL && !GRUBOF].
18235 2004-11-16 Marco Gerards <metgerards@student.han.nl>
18237 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
18238 property named `name'. Correctly handle the error returned by
18239 `grub_ieee1275_finddevice' if a device can not be opened.
18241 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
18243 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
18244 `actual' for negativity.
18245 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
18248 2004-11-01 Marco Gerards <metgerards@student.han.nl>
18250 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
18251 (PAGE_OFFSET): New macro.
18252 (CRTC_ADDR_PORT): Likewise.
18253 (CRTC_DATA_PORT): Likewise.
18254 (START_ADDR_HIGH_REGISTER): Likewise.
18255 (START_ADDR_LOW_REGISTER): Likewise.
18256 (GRAPHICS_ADDR_PORT): Likewise.
18257 (GRAPHICS_DATA_PORT): Likewise.
18258 (READ_MAP_REGISTER): Likewise.
18259 (INPUT_STATUS1_REGISTER): Likewise.
18260 (INPUT_STATUS1_VERTR_BIT): Likewise.
18261 (page): New variable.
18262 (wait_vretrace): New function.
18263 (set_read_map): Likewise.
18264 (set_start_address): Likewise.
18265 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
18267 (check_vga_mem): Take the page into account.
18268 (write_char): Likewise.
18269 (write_cursor): Likewise.
18270 (scroll_up): Likewise. Copy the page to the page that is not
18271 shown and switch between both pages.
18272 (grub_vga_putchar): Fix off by one error.
18273 (grub_vga_cls): Wait for the vertical retrace. Take the page into
18276 2004-11-01 Marco Gerards <metgerards@student.han.nl>
18278 Add support for iso9660 (including rockridge).
18280 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
18281 (iso9660_mod_SOURCES): New variable.
18282 (iso9660_mod_CFLAGS): Likewise.
18283 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
18284 * include/grub/fs.h (grub_iso9660_init): New prototype.
18285 * util/grub-emu.c (main): Call `grub_iso9660_init'.
18286 * fs/iso9660.c: New file.
18288 * include/grub/misc.h (grub_strncat): New prototype.
18289 * kern/misc.c (grub_strncat): New function.
18291 * fs/hfs.c (grub_hfs_mount): Translate the error
18292 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
18293 * fs/jfs.c (grub_jfs_mount): Likewise.
18294 * fs/ufs.c (grub_ufs_mount): Likewise.
18296 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
18298 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
18299 which initialized BAT registers.
18300 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
18301 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
18303 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
18304 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
18306 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
18307 (grub_mapclaim): Likewise.
18308 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
18309 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
18312 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
18314 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
18315 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
18316 -ffreestanding and -msoft-float.
18318 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
18320 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
18321 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
18322 set in grub_ieee1275_flags.
18324 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
18326 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
18328 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
18329 grub_console_init first.
18330 Change the memory range used for grub_ieee1275_claim and
18331 grub_mm_init_region.
18332 Print an error message if the claim fails.
18333 Include <grub/misc.h>.
18335 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
18337 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
18338 Call grub_children_iterate for device nodes of type `scsi',
18340 (grub_ofdisk_open): Remove manual device alias resolution.
18341 Fix memory leak when device cannot be opened.
18342 * include/grub/powerpc/ieee1275/ieee1275.h
18343 (grub_children_iterate): New prototype.
18344 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
18346 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
18347 Return -1 if args.size was -1.
18349 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
18351 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
18352 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
18353 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
18354 Open Firmware's memory for it; claim memory from _start to _end.
18355 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
18356 (_end): New extern.
18357 (_start): Zero BSS from __bss_start to _end.
18358 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
18360 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
18362 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
18364 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
18365 -1 if args.base was -1.
18367 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
18369 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
18370 escape sequence instead of a literal ^L. Also call
18371 grub_ofconsole_gotoxy.
18373 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
18375 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
18376 void * arguments to grub_addr_t. All callers updated. Also make
18377 the `result' argument optional.
18378 (grub_ieee1275_release): change void * arguments to grub_addr_t.
18379 All callers updated.
18381 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
18383 * commands/ls.c (grub_ls_list_files): Use the string following the
18384 initial ')', if present, as the filesystem path.
18385 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
18387 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
18389 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
18391 Make the source code of the menu interface more readable.
18393 * normal/menu.c: Include grub/mm.h.
18394 (TERM_WIDTH): New macro.
18395 (TERM_HEIGHT): Likewise.
18396 (TERM_INFO_HEIGHT): Likewise.
18397 (TERM_MARGIN): Likewise.
18398 (TERM_SCROLL_WIDTH): Likewise.
18399 (TERM_TOP_BORDER_Y): Likewise.
18400 (TERM_LEFT_BORDER_X): Likewise.
18401 (TERM_BORDER_WIDTH): Likewise.
18402 (TERM_MESSAGE_HEIGHT): Likewise.
18403 (TERM_BORDER_HEIGHT): Likewise.
18404 (TERM_NUM_ENTRIES): Likewise.
18405 (TERM_FIRST_ENTRY_Y): Likewise.
18406 (TERM_ENTRY_WIDTH): Likewise.
18407 (TERM_CURSOR_X): Likewise.
18408 (draw_border): Use macros instead of magic numbers.
18409 (print_entry): Likewise.
18410 (print_entries): Likewise.
18411 (run_menu): Likewise. Also, handle the key 'e'.
18412 (run_menu_entry): Ignore empty command lines.
18413 (print_message): Added a new argument EDIT. If EDIT is true,
18414 print a different message.
18415 (init_page): Likewise.
18416 (edit_menu_entry): New function. Not implemented yet.
18418 2004-09-17 Marco Gerards <metgerards@student.han.nl>
18420 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
18421 can be loaded from normal mode.
18423 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
18425 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
18426 (multiboot_mod_CFLAGS): New variables.
18427 * loader/i386/pc/linux_normal.c: New file.
18428 * loader/i386/pc/multiboot_normal.c: Likewise.
18430 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
18431 attribute `unused'.
18433 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
18434 `fdiro' to read the mode information from instead of `diro'.
18436 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
18437 looking up a symlink.
18439 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
18441 * normal/command.c (grub_command_execute): Don't parse the
18442 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
18443 flags of the command.
18445 * normal/menu.c (grub_menu_run): Fix typo.
18447 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
18449 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
18451 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
18452 `y + 1' instead of `y - 1'.
18454 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
18456 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
18458 From Hollis Blanchard <hollis@penguinppc.org>:
18459 * kern/misc.c (memmove): New alias for grub_memmove.
18460 (memcmp): New alias for grub_memcmp.
18461 (memset): New alias for grub_memset.
18462 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
18463 Change "int handle" to "grub_ieee1275_phandle_t handle".
18464 * include/grub/powerpc/ieee1275/ieee1275.h
18465 (grub_ieee1275_get_property): Likewise.
18467 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
18469 Added normal mode command `chainloader' as module chain.mod, which
18470 depends on normal.mod and _chain.mod.
18472 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
18473 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
18474 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
18476 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
18477 but arguments parsing moved to ...
18478 (grub_chainloader_cmd): ... here. New function.
18479 * include/grub/i386/pc/chainloader.h: New file.
18480 * loader/i386/pc/chainloader_normal.c: Likewise.
18482 2004-09-11 Marco Gerards <metgerards@student.han.nl>
18484 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
18485 (grub_mkimage_LDFLAGS): Likewise.
18486 (grub_emu_SOURCES): Likewise.
18487 (kernel_img_HEADERS): Added fshelp.h.
18488 * fs/ext2.c: Include <grub/fshelp.h>.
18489 (FILETYPE_REG): New macro.
18490 (FILETYPE_INO_REG): Likewise.
18491 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
18493 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
18495 (grub_fshelp_node): New struct.
18496 (grub_ext2_data): Added member `diropen'. Changed member `inode'
18498 (grub_ext2_get_file_block): Removed function.
18499 (grub_ext2_read_block): New function.
18500 (grub_ext2_read_file): Replaced parameter `data' by `node'.
18501 This function was written.
18502 (grub_ext2_mount): Read the root inode. Create a diropen struct.
18503 (grub_ext2_find_file): Removed function.
18504 (grub_ext2_read_symlink): New function.
18505 (grub_ext2_iterate_dir): Likewise.
18506 (grub_ext2_open): Rewritten.
18507 (grub_ext2_dir): Rewritten.
18508 * include/grub/fshelp.h: New file.
18509 * fs/fshelp.c: Likewise.
18511 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
18513 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
18514 (print_message): Add a missing newline.
18515 (run_menu): Added timeout support.
18516 (run_menu_entry): New local function.
18517 (grub_menu_run): Added support for booting.
18519 * kern/loader.c (grub_loader_is_loaded): New function.
18521 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
18522 (grub_get_rtc): Exported.
18524 * include/grub/i386/pc/time.h: Include grub/symbol.h.
18525 (grub_get_rtc): Exported.
18527 * include/grub/normal.h (struct grub_command_list): Remove
18528 constant from the member `command'.
18530 * include/grub/loader.h (grub_loader_is_loaded): Declared.
18532 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
18534 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
18536 2004-08-28 Marco Gerards <metgerards@student.han.nl>
18538 Add support for the JFS filesystem.
18540 * fs/jfs.c: New file.
18541 * include/grub/fs.h (grub_jfs_init): New prototype.
18542 (grub_jfs_fini): New prototype.
18543 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
18544 (grub_emu_SOURCES): Likewise.
18545 (pkgdata_MODULES): Add jfs.mod.
18546 (jfs_mod_SOURCES): New variable.
18547 (jfs_mod_CFLAGS): Likewise.
18548 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
18549 (grubof_SOURCES): Likewise.
18550 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
18552 * fs/fat.c (grub_fat_find_dir): Convert the filename little
18553 endian to the host endian.
18554 (grub_fat_utf16_to_utf8): Move function from there...
18555 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
18556 the endianness of the source string anymore.
18557 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
18559 2004-08-24 Marco Gerards <metgerards@student.han.nl>
18561 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
18562 (grub_boot_fini) [GRUB_UTIL]: Likewise.
18563 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
18564 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
18566 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
18567 (grub_hfs_iterate_dir): Make the function static. Add prototypes
18568 for `node_found' and `it_dir'.
18569 (grub_hfs_dir): Add prototype for `dir_hook'.
18571 * fs/minix.c (grub_minix_get_file_block): Add prototype for
18572 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
18573 and `indir32' to silence a gcc warning.
18575 * include/grub/fs.h (grub_hfs_init): New prototype.
18576 (grub_hfs_fini): Likewise.
18579 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
18581 Each disk device has its own id now. This is useful to make use
18582 of multiple disk devices.
18584 * include/grub/disk.h (grub_disk_dev_id): New enum.
18585 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
18586 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
18588 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
18589 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
18591 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
18592 GRUB_DISK_DEVICE_OFDISK_ID as an id.
18594 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
18595 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
18597 * include/grub/disk.h (struct grub_disk_dev): Added a new member
18598 "id" which is used by the cache manager.
18600 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
18603 2004-08-18 Marco Gerards <metgerards@student.han.nl>
18605 * fs/hfs.c: New file.
18606 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
18607 (grub_emu_SOURCES): Likewise.
18608 (pkgdata_MODULES): Add hfs.mod.
18609 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
18610 (grubof_SOURCES): Likewise.
18611 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
18613 * include/grub/misc.h (grub_strncasecmp): Add prototype.
18614 * kern/misc.c (grub_strncasecmp): Add function.
18616 2004-08-14 Marco Gerards <metgerards@student.han.nl>
18618 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
18621 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
18622 (grub_ext2_dir): In case the directory entry type is unknown, read
18625 2004-08-02 Peter Bruin <pjbruin@dds.nl>
18627 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
18628 grub_load_linux instead of grub_rescue_cmd_linux as second
18629 argument of grub_rescue_register_command.
18631 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
18633 2004-07-27 Marco Gerards <metgerards@student.han.nl>
18635 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
18637 * commands/boot.c: Remove the check for `GRUB_UTIL'.
18638 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
18639 `loader/powerpc/ieee1275/linux.c',
18640 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
18641 * include/grub/powerpc/ieee1275/ieee1275.h
18642 (grub_ieee1275_release): New prototype.
18643 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
18644 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
18645 normal, boot, linux and linux_normal.
18646 * loader/powerpc/ieee1275/linux.c: New file.
18647 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
18649 2004-07-12 Marco Gerards <metgerards@student.han.nl>
18651 * normal/arg.c (grub_arg_parse): Correct error handling after
18652 reallocating the argumentlist (check if `argl' is not null instead
18653 of checking if `args' is not null).
18654 * kern/mm.c (grub_realloc): Return the same pointer when using the
18655 same region, instead of returning the header address.
18657 2004-07-11 Marco Gerards <metgerards@student.han.nl>
18659 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
18660 one block instead of two when looking for the initial partition.
18661 (grub_partition_probe): Initialize the local variable `p' with 0.
18662 Use base 10 for the grub_strtoul call.
18663 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
18664 need for one local variable.
18665 (grub_strtoul): Don't add the new value to `num', instead of that
18668 2004-07-11 Marco Gerards <metgerards@student.han.nl>
18670 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
18671 (pxeboot_img_SOURCES): New variable.
18672 (pxeboot_img_ASFLAGS): Likewise.
18673 (pxeboot_img_LDFLAGS): Likewise.
18674 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
18675 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
18676 <lode_leroy@hotmail.com>.
18678 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
18680 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
18681 there was no input.
18683 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
18685 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
18686 the history buffer logic.
18688 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
18690 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
18691 (FILETYPE_INO_SYMLINK): New macros.
18692 (grub_ext2_find_file): Check if the node is a directory using the
18693 inode stat information instead of using the filetype in the
18694 dirent. Exclude the first character of an absolute symlink.
18695 (grub_ext2_dir): Mask out the filetype part of the mode member of
18698 2004-05-24 Marco Gerards <metgerards@student.han.nl>
18700 Add support for UFS version 1 and 2. Add support for the minix
18701 filesystem version 1 and 2, both the variants with 14 and 30 long
18704 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
18706 (grub_emu_SOURCES): Likewise.
18707 (pkgdata_MODULES): Add ufs.mod and minix.mod.
18708 (ufs_mod_SOURCES): New variable.
18709 (ufs_mod_CFLAGS): Likewise.
18710 (minix_mod_SOURCES): Likewise.
18711 (minix_mod_CFLAGS): Likewise.
18712 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
18714 (grubof_SOURCES): Likewise.
18715 * fs/ufs.c: New file.
18716 * fs/minix.c: New file.
18717 * include/grub/fs.h (grub_ufs_init): New prototype.
18718 (grub_ufs_fini): Likewise.
18719 (grub_minix_init): Likewise.
18720 (grub_minix_fini): Likewise.
18721 * util/grub-emu.c (main): Initialize and deinitialize UFS and
18724 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
18726 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
18727 commands/ls.c, commands/terminal.c, commands/boot.c,
18728 commands/cmp.c and commands/cat.c.
18729 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
18731 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
18734 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
18736 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
18737 and grub_, respectively. Because the conversion is trivial and
18738 mechanical, I omit the details here. Please refer to the CVS
18739 if you need more information.
18741 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
18743 * include/pupa: Renamed to ...
18744 * include/grub: ... this.
18745 * util/i386/pc/pupa-mkimage.c: Renamed to ...
18746 * util/i386/pc/grub-mkimage.c: ... this.
18747 * util/i386/pc/pupa-setup.c: Renamed to ...
18748 * util/i386/pc/grub-setup.c: ... this.
18749 * util/pupa-emu.c: Renamed to ...
18750 * util/grub-emu.c: ... this.
18752 2004-03-29 Marco Gerards <metgerards@student.han.nl>
18754 Add support for the newworld apple macintosh (PPC). This has been
18755 tested on the powerbook 2000 only. It only adds support for
18756 generic ieee1275 functions, console and disk support. This should
18757 be easy to port to other architectures with support for Open
18760 * configure.ac: Accept the powerpc as host_cpu. In the case of
18761 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
18762 specific tests are only executed while building for the i386.
18763 Inverse test for crosscompile.
18764 * genmk.rb (Utility): Allow assembler files.
18765 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
18766 * conf/powerpc-ieee1275.rmk: New file.
18767 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
18768 * disk/powerpc/ieee1275/partition.c: Likewise.
18769 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
18770 * include/pupa/powerpc/ieee1275/console.h: Likewise.
18771 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
18772 * include/pupa/powerpc/ieee1275/time.h: Likewise.
18773 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
18774 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
18775 * include/pupa/powerpc/ieee1275/loader.h
18776 * include/pupa/powerpc/setjmp.h: Likewise.
18777 * include/pupa/powerpc/types.h: Likewise.
18778 * kern/powerpc/ieee1275/init.c: Likewise.
18779 * kern/powerpc/ieee1275/openfw.c: Likewise.
18780 * term/powerpc/ieee1275/ofconsole.c: Likewise.
18782 These files were written by Johan Rydberg
18783 (jrydberg@night.trouble.net) and I only modified them slightly.
18785 * boot/powerpc/ieee1275/cmain.c: New file.
18786 * boot/powerpc/ieee1275/crt0.S: Likewise.
18787 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
18788 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
18790 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
18792 * Makefile.in: Update copyright.
18793 * genmodsrc.sh: Likewise.
18794 * gensymlist.sh: Likewise.
18795 * term/i386/pc/vga.c: Indent correctly.
18797 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
18798 bugreporting address.
18799 * util/i386/pc/pupa-setup.c (usage): Likewise,
18800 (main): Call pupa_ext2_init and pupa_ext2_fini.
18802 * fs/fat.c (log2): Renamed to ...
18803 (fat_log2): ... this.
18804 All callers changed.
18805 * kern/misc.c (memcpy): Alias to pupa_memmove.
18806 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
18808 * util/console.c (pupa_ncurses_fini): Return 0.
18810 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
18811 Move fail label here.
18812 [__GNU__]: Don't warn when using stat.
18813 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
18814 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
18815 long int. Use strtol instead of strtoul.
18817 2004-03-14 Marco Gerards <metgerards@student.han.nl>
18819 * commands/boot.c: New file.
18820 * commands/cat.c: Likewise.
18821 * commands/cmp.c: Likewise.
18822 * commands/ls.c: Likewise.
18823 * commands/terminal.c: Likewise.
18824 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
18825 (pupa_register_command): Changed interface to match the new
18827 (pupa_command_execute): Changed (almost rewritten) so it uses
18828 pupa_split_command. Added support for setting variables using the
18830 (rescue_command): Changed to work with the new argument parser.
18831 (terminal_command): Moved from here to commands/terminal.c.
18832 (set_command): New function.
18833 (unset_command): New function.
18834 (insmod_command): New function.
18835 (rmmod_command): New function.
18836 (lsmod_command): New function.
18837 (pupa_command_init): Don't initialize the command terminal
18838 anymore. Initialize the commands set, unset, insmod, rmmod and
18840 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
18841 (kernel_img_HEADERS): Add arg.h and env.h.
18842 (pupa_mkimage_LDFLAGS): Add kern/env.c.
18843 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
18844 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
18846 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
18848 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
18849 (boot_mod_SOURCES): New variable.
18850 (terminal_mod_SOURCES): Likewise.
18851 (ls_mod_SOURCES): Likewise.
18852 (cmp_mod_SOURCES): Likewise.
18853 (cat_mod_SOURCES): Likewise.
18855 * normal/arg.c: New file.
18856 * kern/env.c: Likewise.
18857 * include/pupa/arg.h: Likewise.
18858 * include/pupa/env.h: Likewise.
18859 * font/manager.c (font_command): Changed to match argument parsing
18861 (PUPA_MOD_INIT): Likewise.
18862 * hello/hello.c (pupa_cmd_hello): Likewise.
18863 (PUPA_MOD_INIT): Likewise.
18864 * include/pupa/disk.h: Include <pupa/device.h>.
18865 (pupa_print_partinfo): New prototype.
18866 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
18867 (pupa_dl_get_prefix): Likewise.
18868 * include/pupa/misc.h: Include <pupa/err.h>.
18869 (pupa_isgraph): New prototype.
18870 (pupa_isdigit): Likewise.
18871 (pupa_split_cmdline): Likewise.
18872 * include/pupa/normal.h: Include <pupa/arg.h>.
18873 (pupa_command): Changed the prototype of the member `func' to
18874 match the argument parsing interface. Added member `options'.
18875 (pupa_register_command): Updated to match function.
18876 (pupa_arg_parse): New prototype.
18877 (pupa_hello_init) [PUPA_UTIL]: New prototype.
18878 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
18879 (pupa_ls_init) [PUPA_UTIL]: Likewise.
18880 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
18881 (pupa_cat_init) [PUPA_UTIL]: Likewise.
18882 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
18883 (pupa_boot_init) [PUPA_UTIL]: Likewise.
18884 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
18885 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
18886 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
18887 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
18888 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
18889 * kern/disk.c: Include <pupa/file.h>.
18890 (pupa_print_partinfo): New function.
18891 * kern/dl.c: Include <pupa/env.h>.
18892 (pupa_dl_dir): Variable removed.
18893 (pupa_dl_load): Use the environment variable `prefix' instead of
18894 the variable pupa_dl_dir.
18895 (pupa_dl_set_prefix): Function removed.
18896 (pupa_dl_get_prefix): Likewise.
18897 * kern/i386/pc/init.c: Include <pupa/env.h>.
18898 (pupa_machine_init): Use the environment variable `prefix' instead of
18899 using pupa_dl_set_prefix to set the prefix.
18900 * kern/main.c: Include <pupa/env.h>.
18901 (pupa_set_root_dev): Use the environment variable `prefix' instead of
18902 using pupa_dl_get_prefix to get the prefix.
18903 * kern/misc.c: Include <pupa/env.h>.
18904 (pupa_isdigit): New function.
18905 (pupa_isgraph): Likewise.
18906 (pupa_ftoa): Likewise.
18907 (pupa_vsprintf): Added support for printing values of the type
18908 `double'. Make it possible to format variable output when using
18909 formatting like `%1.2%f'.
18910 (pupa_split_cmdline): New function.
18911 * kern/rescue.c: Include <pupa/env.h>.
18912 (next_word): Removed function.
18913 (pupa_rescue_cmd_prefix): Likewise.
18914 (pupa_rescue_cmd_set): New function.
18915 (pupa_rescue_cmd_unset): New function.
18916 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
18917 split the command line instead of splitting it here. Added
18918 support for setting variables using the syntax `foo=bar'. Don't
18919 initialize the prefix command anymore. Initialized the set and
18921 * normal/cmdline.c: Include <pupa/env.h>.
18922 (pupa_tab_complete): Added prototypes for print_simple_completion,
18923 print_partition_completion, add_completion, iterate_commands,
18924 iterate_dev, iterate_part and iterate_dir. Moved code to print
18925 partition information from here to kern/disk.c.
18926 (pupa_cmdline_run): Don't check if the function exists anymore.
18927 * normal/main.c: Include <pupa/env.h>.
18928 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
18929 instead of using pupa_dl_get_prefix to get the prefix.
18930 * term/i386/pc/vga.c: Include <pupa/arg.h>.
18931 (check_vga_mem): Cast pointers to `void *' to silence a gcc
18933 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
18934 (pupa_vga_setcolor): Declare unused variables with `__attribute__
18935 ((unused))' to silence a gcc warning.
18936 (pupa_vga_setcolor): Likewise.
18937 (debug_command): Changed to match argument parsing
18939 * util/pupa-emu.c: Include <pupa/env.h>.
18940 (options): Added 0's for unused fields to silence a gcc warning.
18942 (main): Use the environment variable `prefix' instead of using
18943 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
18944 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
18947 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
18948 * util/misc.c: Include <malloc.h>.
18949 (pupa_malloc): Rewritten so errors are correctly reported.
18950 (pupa_realloc): Likewise.
18951 (pupa_memalign): Likewise.
18952 (pupa_mm_init_region): Declare unused variables with
18953 `__attribute__ ((unused))' to silence a gcc warning.
18954 * normal/i386/setjmp.S: Remove tab at the end of the file to
18955 silence a gcc warning.
18956 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
18957 variables with `__attribute__ ((unused))' to silence a gcc
18959 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
18960 local variable i unsigned to silence a gcc warning.
18962 * kern/term.c: Include <pupa/misc.h>.
18963 (pupa_more_lines): New variable.
18964 (pupa_more): Likewise.
18965 (pupa_putcode): When the pager is active pause at the end of every
18967 (pupa_set_more): New function.
18968 * include/pupa/term.h (pupa_set_more): New prototype.
18971 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
18973 Now this project is GRUB 2 rather than PUPA. The location of
18974 the CVS repository was moved to GRUB's.
18976 * configure.ac: Use bug-grub as the reporting address.
18977 Use GRUB instead of PUPA.
18978 Change the version number to 1.90.
18980 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
18982 * genkernsyms.sh: Updated copyright information.
18983 * genmk.rb: Likewise.
18984 * genmodsrc.sh: Likewise.
18985 * gensymlist.sh: Likewise.
18986 * boot/i386/pc/boot.S: Likewise.
18987 * boot/i386/pc/diskboot.S: Likewise.
18988 * disk/i386/pc/biosdisk.c: Likewise.
18989 * disk/i386/pc/partition.c: Likewise.
18990 * font/manager.c: Likewise.
18991 * fs/ext2.c: Likewise.
18992 * fs/fat.c: Likewise.
18993 * include/pupa/boot.h: Likewise.
18994 * include/pupa/device.h: Likewise.
18995 * include/pupa/disk.h: Likewise.
18996 * include/pupa/dl.h: Likewise.
18997 * include/pupa/elf.h: Likewise.
18998 * include/pupa/err.h: Likewise.
18999 * include/pupa/file.h: Likewise.
19000 * include/pupa/font.h: Likewise.
19001 * include/pupa/fs.h: Likewise.
19002 * include/pupa/kernel.h: Likewise.
19003 * include/pupa/loader.h: Likewise.
19004 * include/pupa/misc.h: Likewise.
19005 * include/pupa/mm.h: Likewise.
19006 * include/pupa/net.h: Likewise.
19007 * include/pupa/normal.h: Likewise.
19008 * include/pupa/rescue.h: Likewise.
19009 * include/pupa/setjmp.h: Likewise.
19010 * include/pupa/symbol.h: Likewise.
19011 * include/pupa/term.h: Likewise.
19012 * include/pupa/types.h: Likewise.
19013 * include/pupa/i386/setjmp.h: Likewise.
19014 * include/pupa/i386/types.h: Likewise.
19015 * include/pupa/i386/pc/biosdisk.h: Likewise.
19016 * include/pupa/i386/pc/boot.h: Likewise.
19017 * include/pupa/i386/pc/console.h: Likewise.
19018 * include/pupa/i386/pc/init.h: Likewise.
19019 * include/pupa/i386/pc/kernel.h: Likewise.
19020 * include/pupa/i386/pc/linux.h: Likewise.
19021 * include/pupa/i386/pc/loader.h: Likewise.
19022 * include/pupa/i386/pc/memory.h: Likewise.
19023 * include/pupa/i386/pc/multiboot.h: Likewise.
19024 * include/pupa/i386/pc/partition.h: Likewise.
19025 * include/pupa/i386/pc/time.h: Likewise.
19026 * include/pupa/i386/pc/vga.h: Likewise.
19027 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
19028 * include/pupa/util/getroot.h: Likewise.
19029 * include/pupa/util/misc.h: Likewise.
19030 * include/pupa/util/resolve.h: Likewise.
19031 * kern/device.c: Likewise.
19032 * kern/disk.c: Likewise.
19033 * kern/dl.c: Likewise.
19034 * kern/err.c: Likewise.
19035 * kern/file.c: Likewise.
19036 * kern/fs.c: Likewise.
19037 * kern/loader.c: Likewise.
19038 * kern/main.c: Likewise.
19039 * kern/misc.c: Likewise.
19040 * kern/mm.c: Likewise.
19041 * kern/rescue.c: Likewise.
19042 * kern/term.c: Likewise.
19043 * kern/i386/dl.c: Likewise.
19044 * kern/i386/pc/init.c: Likewise.
19045 * kern/i386/pc/lzo1x.S: Likewise.
19046 * kern/i386/pc/startup.S: Likewise.
19047 * loader/i386/pc/chainloader.c: Likewise.
19048 * loader/i386/pc/linux.c: Likewise.
19049 * loader/i386/pc/multiboot.c: Likewise.
19050 * normal/cmdline.c: Likewise.
19051 * normal/command.c: Likewise.
19052 * normal/main.c: Likewise.
19053 * normal/menu.c: Likewise.
19054 * normal/i386/setjmp.S: Likewise.
19055 * term/i386/pc/console.c: Likewise.
19056 * term/i386/pc/vga.c: Likewise.
19057 * util/console.c: Likewise.
19058 * util/genmoddep.c: Likewise.
19059 * util/misc.c: Likewise.
19060 * util/pupa-emu.c: Likewise.
19061 * util/resolve.c: Likewise.
19062 * util/unifont2pff.rb: Likewise.
19063 * util/i386/pc/biosdisk.c: Likewise.
19064 * util/i386/pc/getroot.c: Likewise.
19065 * util/i386/pc/pupa-mkimage.c: Likewise.
19066 * util/i386/pc/pupa-setup.c: Likewise.
19068 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
19070 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
19071 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
19072 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
19073 reading and reset it after reading.
19074 (pupa_ext2_close): Return PUPA_ERR_NONE.
19076 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
19078 (struct linux_kernel_header): Add kernel_version and
19080 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
19081 pupa_file_read succeeds.
19082 (pupa_rescue_cmd_initrd): Implement.
19084 2003-12-03 Marco Gerards <metgerards@student.han.nl>
19086 * fs/ext2.c (pupa_ext2_label): New function.
19087 (pupa_ext2_fs): Added label.
19088 * fs/fat.c (pupa_fat_label): New function.
19089 (pupa_fat_fs): Added label.
19090 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
19092 * kern/misc.c (pupa_strndup): New function.
19093 * include/pupa/misc.h (pupa_strndup): New prototype.
19095 * include/pupa/normal.h: Include <pupa/err.h>.
19096 (pupa_set_history): New prototype.
19097 (pupa_iterate_commands): New prototype.
19098 * normal/cmdline.c: Include <pupa/machine/partition.h>,
19099 <pupa/disk.h>, <pupa/file.h>.
19100 (hist_size): New variable.
19101 (hist_lines): Likewise.
19102 (hist_end): Likewise.
19103 (hist_used): Likewise.
19104 (pupa_set_history): New function.
19105 (pupa_history_get): Likewise.
19106 (pupa_history_add): Likewise.
19107 (pupa_history_replace): Likewise.
19108 (pupa_tab_complete): Likewise.
19109 (pupa_cmdline_run): Added tab completion and history buffer. Tab
19110 completion shows partitionnames while completing partitions, this
19111 feature was suggested by Jeff Bailey.
19112 * normal/command.c (pupa_iterate_commands): New function.
19113 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
19114 (pupa_normal_init): Initialize history buffer.
19115 (PUPA_MOD_INIT): Likewise.
19116 (pupa_normal_fini): Free the history buffer.
19117 (PUPA_MOD_FINI): Likewise.
19119 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
19122 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
19123 * configure.ac [i386]: Check for regparam bug.
19124 (NESTED_FUNC_ATTR) [! i386]: Defined.
19126 2003-11-17 Marco Gerards <metgerards@student.han.nl>
19128 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
19129 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
19130 (pupa_emu_SOURCES): New variable.
19131 (pupa_emu_LDFLAGS): Likewise.
19132 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
19133 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
19134 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
19135 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
19136 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
19137 (pupa_jmp_buf): New typedef.
19138 (pupa_setjmp) [PUPA_UTIL]: New macro.
19139 (pupa_longjmp) [PUPA_UTIL]: Likewise.
19140 * include/pupa/term.h (struct pupa_term): New member `refresh'.
19141 (pupa_refresh): New prototype.
19142 * include/pupa/util/getroot.h: New file.
19143 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
19145 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
19146 (pupa_rescue_cmd_cat): Likewise.
19147 (pupa_rescue_cmd_ls): Likewise.
19148 (pupa_rescue_cmd_testload): Likewise.
19149 (pupa_rescue_cmd_lsmod): Likewise.
19150 * normal/cmdline.c (pupa_cmdline_get): Likewise.
19151 * normal/menu.c (run_menu): Likewise.
19152 * kern/term.c (pupa_cls): Likewise.
19153 (pupa_refresh): New function.
19154 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
19155 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
19156 * util/console.c: New file.
19158 * util/i386/pc/getroot.c: New file.
19159 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
19160 (pupa_putchar): New function.
19161 (pupa_refresh): Likewise.
19162 (xgetcwd): Function moved to ...
19163 (strip_extra_slashes): Likewise.
19164 (get_prefix): Likewise.
19165 * util/i386/pc/getroot.c: ... here.
19166 (find_root_device): Function moved and renamed to...
19167 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
19168 Changed all callers.
19169 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
19171 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
19172 Changed all callers.
19173 * util/misc.c (pupa_memalign): New function.
19174 (pupa_mm_init_region): Likewise.
19175 (pupa_register_exported_symbols): Likewise.
19176 (pupa_putchar): Function removed.
19177 * util/pupa-emu.c: New file.
19179 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
19181 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
19182 (_multiboot_mod_SOURCES): New variable.
19183 (_multiboot_mod_CFLAGS): Likewise.
19184 * loader/i386/pc/multiboot.c: New file.
19185 * include/pupa/i386/pc/multiboot.h: Likewise.
19186 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
19187 (pupa_multiboot_real_boot): New function.
19188 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
19189 (pupa_multiboot_real_boot): New prototype.
19190 (pupa_rescue_cmd_multiboot): Likewise
19191 (pupa_rescue_cmd_module): Likewise.
19193 * kern/loader.c (pupa_loader_set): Continue when
19194 pupa_loader_unload_func() fails.
19195 (pupa_loader_unset): New function.
19196 * include/pupa/loader.h (pupa_loader_unset): New prototype.
19198 * kern/misc.c (pupa_stpcpy): New function.
19199 * include/pupa/misc.h (pupa_stpcpy): New prototype.
19201 2003-11-12 Marco Gerards <metgerards@student.han.nl>
19203 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
19204 for available extensions.
19206 * include/pupa/i386/pc/time.h: New file.
19207 * kern/disk.c: Include <pupa/machine/time.h>.
19208 (PUPA_CACHE_TIMEOUT): New macro.
19209 (pupa_last_time): New variable.
19210 (pupa_disk_open): Flush the cache when there was a timeout.
19211 (pupa_disk_close): Reset the timer.
19212 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
19214 * util/misc.c: Include <sys/times.h>
19215 (pupa_get_rtc): New function.
19217 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
19219 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
19221 (pupa_ext2_get_file_block): Use blocks member.
19223 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
19224 first block. Return -1 instead of pupa_errno on error.
19226 2003-10-27 Marco Gerards <metgerards@student.han.nl>
19228 * README: In the pupa-mkimage example use _chain instead of chain
19229 and ext2 instead of fat.
19230 * TODO: Replace ext2fs with jfs as an example. Add an item for
19231 adding journal playback for ext2fs.
19232 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
19233 (pkgdata_MODULES): Added ext2.mod.
19234 (ext2_mod_SOURCES): New variable.
19235 (ext2_mod_CFLAGS): Likewise.
19236 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
19237 * include/pupa/misc.h (pupa_strncpy): New prototype.
19238 (pupa_strcat): Likewise.
19239 (pupa_strncmp): Likewise.
19240 * kern/misc.c (pupa_strcat): Enable function.
19241 (pupa_strncpy): New function.
19242 (pupa_strncmp): Likewise.
19243 * fs/ext2.c: New file.
19245 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
19246 when the read failed before retrying.
19247 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
19248 (_FILE_OFFSET_BITS): Likewise.
19249 * configure.ac: Added AC_SYS_LARGEFILE.
19251 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
19253 * genmk.rb (PModule#rule): Make sure to get only symbol names
19254 from the output of nm.
19255 Reported by Robert Millan <zeratul2@wanadoo.es>.
19257 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
19259 I forgot to check in these changes for a long time. This adds
19260 incomplete support for VGA console, and this is still very
19261 buggy. Also, a lot of consideration is required for I18N,
19262 UNICODE, and VGA font issues. Therefore, assume that this is
19263 such that "better than nothing".
19265 * font/manager.c: New file.
19266 * include/pupa/font.h: Likewise.
19267 * include/pupa/i386/pc/vga.h: Likewise.
19268 * term/i386/pc/vga.c: Likewise.
19269 * util/unifont2pff.rb: Likewise.
19271 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
19272 (pkgdata_MODULES): Added vga.mod and font.mod.
19273 (vga_mod_SOURCES): New variables.
19274 (vga_mod_CFLAGS): Likewise.
19275 (font_mod_SOURCES): Likewise.
19276 (font_mod_CFLAGS): Likewise.
19278 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
19280 * include/pupa/term.h: Include pupa/err.h.
19281 (struct pupa_term): Added init and fini.
19282 Changed the argument of putchar to pupa_uint32_t.
19284 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
19285 (pupa_console_real_putchar): New prototype.
19286 (pupa_console_putchar): Removed.
19287 (pupa_console_checkkey): Exported.
19288 (pupa_console_getkey): Likewise.
19290 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
19293 * kern/term.c (pupa_term_set_current): Rewritten.
19294 (pupa_putchar): Likewise.
19295 (pupa_putcode): New function.
19297 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
19298 (pupa_console_real_putchar): ... this.
19299 (pupa_vga_set_mode): New function.
19300 (pupa_vga_get_font): Likewise.
19302 * normal/command.c: Include pupa/term.h.
19303 (terminal_command): New function.
19304 (pupa_command_init): Register the command "terminal".
19306 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
19307 (DISP_UP): Likewise.
19308 (DISP_RIGHT): Likewise.
19309 (DISP_DOWN): Likewise.
19310 (DISP_HLINE): Likewise.
19311 (DISP_VLINE): Likewise.
19312 (DISP_UL): Likewise.
19313 (DISP_UR): Likewise.
19314 (DISP_LL): Likewise.
19315 (DISP_LR): Likewise.
19317 * term/i386/pc/console.c (pupa_console_putchar): New function.
19319 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
19321 * util/resolve.c (pupa_util_resolve_dependencies): BUG
19322 FIX. Reverse the path_list.
19324 * include/pupa/normal.h: Export pupa_register_command and
19325 pupa_unregister_command.
19327 * hello/hello.c (pupa_cmd_hello): New module.
19328 * conf/i386-pc.rmk: Added hello.mod.
19330 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
19332 * kern/i386/pc/lzo1x.S: New file.
19334 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
19335 (compress_kernel): New variable.
19336 (generate_image): Heavily modified to support compressing a
19337 large part of the core image.
19339 * util/misc.c (pupa_util_read_image): Fix a file descriptor
19341 (pupa_util_load_image): New function.
19343 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
19344 (pupa_compressed_size): New variable.
19345 (codestart): Enable Gate A20 here.
19346 Decompress the compressed part of the core image.
19347 Rearrange the code to put functions and variables which are
19348 required for initialization in the non-compressed part.
19351 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
19354 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
19356 * include/pupa/i386/pc/kernel.h
19357 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
19358 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
19359 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
19360 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
19361 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
19363 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
19365 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
19366 (Utility#rule): Likewise.
19368 * configure.ac: Check if LZO is available.
19370 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
19372 * include/pupa/normal.h: New file.
19373 * include/pupa/setjmp.h: Likewise.
19374 * include/pupa/i386/setjmp.h: Likewise.
19375 * normal/cmdline.c: Likewise.
19376 * normal/command.c: Likewise.
19377 * normal/main.c: Likewise.
19378 * normal/menu.c: Likewise.
19379 * normal/i386/setjmp.S: Likewise.
19381 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
19382 (pupa_rescue_cmd_initrd): Likewise.
19384 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
19387 * kern/i386/pc/startup.S (translation_table): New variable.
19388 (translate_keycode): New function.
19389 (pupa_console_getkey): Call translate_keycode.
19391 * kern/rescue.c (attempt_normal_mode): New function.
19392 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
19393 it failed, print a message.
19395 * kern/mm.c (pupa_real_malloc): Print more information when a
19396 free magic is broken.
19397 (pupa_free): If the first free header is not free actually, set
19400 * kern/main.c (pupa_load_normal_mode): Just load the module
19402 (pupa_main): Don't print the message
19403 "Entering into rescue mode..." here.
19405 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
19407 (pupa_rescue_cmd_initrd): Likewise.
19408 (pupa_rescue_cmd_initrd): Likewise.
19410 * include/pupa/symbol.h (FUNCTION): Specify the type.
19411 (VARIABLE): Likewise.
19413 * include/pupa/err.h (pupa_err_t): Added
19414 PUPA_ERR_UNKNOWN_COMMAND.
19416 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
19417 (pupa_dl_get_prefix): Likewise.
19419 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
19420 Added _chain.mod and _linux.mod instead of chain.mod and
19422 (chain_mod_SOURCES): Renamed to ...
19423 (_chain_mod_SOURCES): ... this.
19424 (chain_mod_CFLAGS): Renamed to ...
19425 (_chain_mod_CFLAGS): ... this.
19426 (linux_mod_SOURCES): Renamed to ...
19427 (_linux_mod_SOURCES): ... this.
19428 (linux_mod_CFLAGS): Renamed to ...
19429 (_linux_mod_CFLAGS): ... this.
19430 (normal_mod_SOURCES): New variable.
19431 (normal_mod_CFLAGS): Likewise.
19432 (normal_mod_ASFLAGS): Likewise.
19434 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
19436 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
19439 * kern/dl.c (pupa_dl_ref): Refer depending modules
19441 (pupa_dl_unref): Unrefer depending modules recursively.
19442 Don't call pupa_dl_unload implicitly, because PUPA can crash if
19443 a module is unloaded before one depending on that module is
19445 (pupa_dl_unload): Unload depending modules explicitly,
19448 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
19450 * include/pupa/i386/pc/linux.h: New file.
19451 * loader/i386/pc/linux.c: Likewise.
19453 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
19455 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
19456 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
19457 of PUPA_CHAINLOADER_BOOT_SECTOR.
19459 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
19460 (pupa_linux_prot_size): New variable.
19461 (pupa_linux_tmp_addr): Likewise.
19462 (pupa_linux_real_addr): Likewise.
19463 (pupa_linux_boot_zimage): New function.
19464 (pupa_linux_boot_bzimage): Likewise.
19466 * kern/i386/pc/init.c (struct mem_region): New structure.
19467 (MAX_REGIONS): New macro.
19468 (mem_regions): New variable.
19469 (num_regions): Likewise.
19470 (pupa_os_area_addr): Likewise.
19471 (pupa_os_area_size): Likewise.
19472 (pupa_lower_mem): Likewise.
19473 (pupa_upper_mem): Likewise.
19474 (add_mem_region): New function.
19475 (compact_mem_regions): Likewise.
19476 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
19477 the size of the conventional memory and that of so-called upper
19478 memory (before the first memory hole).
19479 Instead of adding each found region to free memory, use
19480 add_mem_region and add them after removing overlaps.
19481 Also, add only 1/4 of the upper memory to free memory. The rest
19482 is used for loading OS images. Maybe this is ad hoc, but this
19483 makes it much easier to relocate OS images when booting.
19485 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
19486 (pupa_enter_rescue_mode): Don't register initrd and module.
19488 * kern/mm.c: Include pupa/dl.h.
19490 * kern/main.c: Include pupa/file.h and pupa/device.h.
19492 * kern/loader.c (pupa_loader_load_module_func): Removed.
19493 (pupa_loader_load_module): Likewise.
19495 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
19498 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
19499 (pupa_linux_tmp_addr): Likewise.
19500 (pupa_linux_real_addr): Likewise.
19501 (pupa_linux_boot_zimage): Likewise.
19502 (pupa_linux_boot_bzimage): Likewise.
19504 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
19505 (pupa_upper_mem): Likewise.
19506 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
19507 module is too dangerous.
19509 * include/pupa/loader.h (pupa_os_area_addr): Declared.
19510 (pupa_os_area_size): Likewise.
19511 (pupa_loader_set): Remove the first argument. Loader doesn't
19512 manage modules or initrd any longer.
19513 (pupa_loader_load_module): Removed.
19515 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
19516 (linux_mod_SOURCES): New variable.
19517 (linux_mod_CFLAGS): Likewise.
19519 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
19521 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
19522 the length of a blocklist correctly.
19524 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
19525 Use ioctl only if the OS file is a block device.
19526 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
19527 not very useful for normal files.
19529 * kern/main.c (pupa_set_root_dev): New function.
19530 (pupa_load_normal_mode): Likewise.
19531 (pupa_main): Call those above.
19533 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
19536 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
19538 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19540 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
19541 (setup): Configure the installed partition information and the
19544 * loader/i386/pc/chainloader.c (my_mod): New variable.
19545 (pupa_chainloader_unload): New function.
19546 (pupa_rescue_cmd_chainloader): Refer itself.
19547 (PUPA_MOD_INIT): Save its own module in MY_MOD.
19549 * kern/i386/pc/startup.S (install_partition): Removed.
19550 (version_string): Likewise.
19551 (config_file): Likewise.
19552 (pupa_install_dos_part): New variable.
19553 (pupa_install_bsd_part): Likewise.
19554 (pupa_prefix): Likewise.
19555 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
19557 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
19559 (make_install_device): New function.
19560 (pupa_machine_init): Set the dl prefix.
19562 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
19563 (buf): Renamed to ...
19564 (linebuf): ... this.
19565 (pupa_rescue_cmd_prefix): New function.
19566 (pupa_rescue_cmd_insmod): Likewise.
19567 (pupa_rescue_cmd_rmmod): Likewise.
19568 (pupa_rescue_cmd_lsmod): Likewise.
19569 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
19572 * kern/mm.c (pupa_memalign): If failed even after invalidating
19573 disk caches, unload unneeded modules and retry.
19575 * kern/misc.c (pupa_memmove): New function.
19576 (pupa_memcpy): Removed.
19577 (pupa_strcpy): New function.
19578 (pupa_itoa): Made static.
19580 * kern/dl.c (pupa_dl_iterate): New function.
19581 (pupa_dl_ref): Likewise.
19582 (pupa_dl_unref): Likewise.
19583 (pupa_dl_unload): Return if succeeded or not.
19584 (pupa_dl_unload_unneeded): New function.
19585 (pupa_dl_unload_all): Likewise.
19586 (pupa_dl_init): Renamed to ...
19587 (pupa_dl_set_prefix): ... this.
19588 (pupa_dl_get_prefix): New function.
19590 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
19591 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
19592 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
19593 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
19594 (pupa_install_dos_part): Declared.
19595 (pupa_install_bsd_part): Likewise.
19596 (pupa_prefix): Likewise.
19597 (pupa_boot_drive): Likewise.
19599 * include/pupa/types.h: Fix a typo.
19601 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
19603 (pupa_memmove): Declared.
19604 (pupa_strcpy): Likewise.
19606 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
19607 pupa_mod_init takes one argument, its own module.
19608 (pupa_dl_unload_unneeded): Declared.
19609 (pupa_dl_unload_all): Likewise.
19610 (pupa_dl_ref): Likewise.
19611 (pupa_dl_unref): Likewise.
19612 (pupa_dl_iterate): Likewise.
19613 (pupa_dl_init): Renamed to ...
19614 (pupa_dl_set_prefix): ... this.
19615 (pupa_dl_get_prefix): Declared.
19617 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
19618 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
19620 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
19621 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
19623 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
19624 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
19626 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
19628 * util/i386/pc/pupa-setup.c (setup): Define the internal
19629 function find_first_partition_start at the top level, because GCC
19630 3.0.x cannot compile internal functions in deeper scopes
19632 (find_root_device): Use lstat instead of stat.
19633 Don't follow symbolic links.
19634 Fix the path-constructing code.
19636 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
19637 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
19638 by a BLKGETSIZE ioctl first, because block devices don't fill
19639 the member st_mode of the structure stat on Linux.
19640 [__linux__] (linux_find_partition): Use a temporary buffer
19641 REAL_DEV for the working space. Copy it to DEV before returning.
19642 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
19643 buffer cache consistent.
19644 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
19645 strncmp. The previous value was merely wrong.
19646 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
19648 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
19649 FAT size is 12. The previous value was merely wrong.
19651 * kern/main.c (pupa_main): Don't split the starting message from
19654 * kern/term.c (pupa_putchar): Put CR after LF instead of before
19655 LF, because BIOS goes crazy about character attributes in this
19658 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
19660 * include/i386/pc/util/biosdisk.h: New file.
19661 * util/i386/pc/biosdisk.c: Likewise.
19662 * util/i386/pc/pupa-setup.c: Likewise.
19664 * Makefile.in (INCLUDE_DISTFILES): Added
19665 include/pupa/i386/pc/util/biosdisk.h.
19666 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
19667 directory util/i386/pc.
19668 (install-local): Added a rule for sbin_UTILITIES.
19669 (uninstall): Likewise.
19671 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
19673 * util/misc.c (xrealloc): New function.
19674 (pupa_malloc): Likewise.
19675 (pupa_free): Likewise.
19676 (pupa_realloc): Likewise.
19677 (pupa_stop): Likewise.
19678 (pupa_putchar): Likewise.
19680 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
19682 * include/pupa/util/misc.h (xrealloc): Declared.
19684 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
19686 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
19687 (PUPA_BOOT_MACHINE_BPB_END): ... this.
19689 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
19690 [PUPA_UTIL] (pupa_fat_fini): Likewise.
19692 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
19693 way should be implemented.
19694 [PUPA_UTIL] (pupa_fat_fini): Likewise.
19696 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
19697 the size of NAME for safety.
19698 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
19701 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
19702 (pupa_setup_SOURCES): Likewise.
19704 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
19706 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
19708 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
19709 bunch of pushl's from pusha, because this destroys the return
19712 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
19714 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
19715 This means that any missing prototypes could be fatal. Also, you
19716 must take care when writing assembly code. See the comments at
19717 the beginning of startup.S, for more details.
19719 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
19720 compilation mechanism.
19721 (pupa_chainloader_real_boot): Likewise.
19722 (pupa_biosdisk_rw_int13_extensions): Likewise.
19723 (pupa_biosdisk_rw_standard): Likewise.
19724 (pupa_biosdisk_check_int13_extensions): Likewise.
19725 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
19726 (pupa_biosdisk_get_diskinfo_standard): Likewise.
19727 (pupa_get_memsize): Likewise.
19728 (pupa_get_mmap_entry): Likewise.
19729 (pupa_console_putchar): Likewise.
19730 (pupa_console_setcursor): Likewise.
19731 (pupa_getrtsecs): Use pushl instead of push.
19733 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
19734 memory instead of the stack for a mmap entry, because some
19735 BIOSes may ignore the maximum size and overflow.
19737 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
19739 * genmk.rb (PModule#rule): Compile automatically generated
19740 sources with module-specific CFLAGS as well as other sources.
19742 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
19744 * configure.ac: Check ld.
19745 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
19746 respectively, before checking endianness and sizes.
19748 * Makefile.in (LD): New variable.
19750 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
19752 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
19754 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
19756 * Changelog: New file.