1 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
3 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
6 * util/deviceiter.c (check_device): Rename to ...
7 (check_device_readable_unique): ... this. Update all callers.
8 Maintain and check a list of which devices (by canonicalized name)
9 have already been seen.
10 (clear_seen_devices): New function.
11 (compare_file_names) [__linux__]: New function.
12 (grub_util_iterate_devices): Clear the list of seen devices on exit
13 and (just in case) on entry.
14 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
15 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
16 seen-devices list, superseded by general code in check_device.
18 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20 * commands/cat.c (options): New variable.
21 (grub_cmd_cat): Parse options. If the --dos option is given, print
22 DOS-style "\r\n" line endings as simple newlines (Debian bug
24 (GRUB_MOD_INIT): Use extcmd.
25 (GRUB_MOD_FINI): Likewise.
26 * docs/grub.texi (cat): Document --dos.
28 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
30 XEN with Linux grub-mkconfig support.
32 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
33 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
34 GRUB_CMDLINE_XEN_DEFAULT.
35 * util/grub.d/20_linux_xen.in: New file.
37 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
39 Initialise VGA video on qemu ourselves.
41 * boot/i386/qemu/boot.S: Don't call 0xc000.
42 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
43 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
44 (kernel_img_HEADERS): Add pci.h.
45 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
46 * configure.ac: Force unifont on qemu and yeeloong.
47 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
48 (grub_vga_palette_write): Use correct register.
49 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
50 Call grub_qemu_init_cirrus.
51 * kern/i386/qemu/init.c: New file.
52 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
54 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
56 2010-06-26 Pavel Roskin <proski@gnu.org>
58 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
61 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
63 * docs/grub.texi (Simple configuration): Explain that
64 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
65 set to `true' to disable their respective recovery entries, not
68 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
70 Make the `source' command slightly faster.
72 * normal/main.c (grub_normal_execute): Don't re-read list files when
75 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
77 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
78 field position and mask size to red fields from mode_info, not
80 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
81 Remove redundant tag->common.framebuffer_type assignment.
82 Reported by: Seth Goldberg.
84 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
86 Sync up other versions of the Linux loader with Robert Millan's
87 change of 2010-01-09, "Make loader output a bit more user-friendly".
89 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
91 (grub_cmd_linux): Likewise.
92 (grub_cmd_initrd): Likewise.
93 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
94 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
96 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
98 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
99 larger than MEMORY_MAP_SIZE.
101 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
105 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
107 * script/parser.y: #include grub_script.tab.h header.
109 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
111 Support >3GiB and <16MiB RAM in i386-qemu.
113 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
114 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
115 (grub_lower_mem): Removed.
116 (grub_upper_mem): Likewise.
117 (mem_size): Made static.
118 (above_4g): New variable.
119 (grub_machine_mmap_init): Detect small mem_size and above_4g.
120 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
123 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
125 Cirrus 5446 and Bochs video cards support.
127 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
129 (video_cirrus_mod_SOURCES): New variable.
130 (video_cirrus_mod_CFLAGS): Likewise.
131 (video_cirrus_mod_LDFLAGS): Likewise.
132 (video_bochs_mod_SOURCES): Likewise.
133 (video_bochs_mod_CFLAGS): Likewise.
134 (video_bochs_mod_LDFLAGS): Likewise.
135 * include/grub/vga.h: New file.
136 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
137 (grub_video_fb_set_page_t): New type.
138 (grub_video_fb_setup): New prototype.
139 (grub_video_fb_swap_buffers): Likewise.
140 (grub_video_fb_get_info_and_fini): Likewise.
141 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
142 (CRTC_DATA_PORT): Likewise.
143 (CRTC_CURSOR): Likewise.
144 (CRTC_CURSOR_ADDR_HIGH): Likewise.
145 (CRTC_CURSOR_ADDR_LOW): Likewise.
146 (CRTC_CURSOR_DISABLE): Likewise.
147 (update_cursor): Use grub_vga_cr_write.
148 (grub_vga_text_setcursor): Likewise.
149 * video/bochs.c: New file.
150 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
152 (palette_size): Likewise.
153 (framebuffer): New variable.
154 (grub_video_fb_init): Use 'framebuffer'.
155 (grub_video_fb_fini): Likewise.
156 (grub_video_fb_get_info): Likewise.
157 (grub_video_fb_get_palette): Likewise.
158 (grub_video_fb_set_palette): Likewise.
159 (grub_video_fb_set_viewport): Likewise.
160 (grub_video_fb_get_viewport): Likewise.
161 (grub_video_fb_map_color): Likewise.
162 (grub_video_fb_map_rgb): Likewise.
163 (grub_video_fb_map_rgba): Likewise.
164 (grub_video_fb_unmap_color): Likewise.
165 (grub_video_fb_unmap_color_int): Likewise.
166 (grub_video_fb_fill_rect): Likewise.
167 (grub_video_fb_blit_bitmap): Likewise.
168 (grub_video_fb_blit_render_target): Likewise.
169 (grub_video_fb_scroll): Likewise.
170 (grub_video_fb_create_render_target): Likewise.
171 (grub_video_fb_doublebuf_blit_init): Likewise.
172 (grub_video_fb_set_active_render_target): Handle doublebuffering.
173 (doublebuf_pageflipping_update_screen): New function.
174 (doublebuf_pageflipping_init): Likewise.
175 (grub_video_fb_setup): Likewise.
176 (grub_video_fb_swap_buffers): Likewise.
177 (grub_video_fb_get_info_and_fini): Likewise.
178 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
180 (doublebuf_pageflipping_commit): Restructured into ...
181 (doublebuf_pageflipping_set_page): ... this.
182 (doublebuf_pageflipping_update_screen): Removed.
183 (doublebuf_pageflipping_init): Likewise.
184 (double_buffering_init): Likewise.
185 (grub_video_vbe_setup): Use grub_video_fb_setup.
186 (grub_video_vbe_swap_buffers): Removed.
187 (grub_video_vbe_set_active_render_target): Likewise.
188 (grub_video_vbe_get_active_render_target): Likewise.
189 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
190 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
191 grub_video_fb_set_active_render_target and
192 grub_video_fb_get_active_render_target.
193 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
194 (SEQUENCER_DATA_PORT): Likewise.
195 (MAP_MASK_REGISTER): Likewise.
196 (CRTC_ADDR_PORT): Likewise.
197 (CRTC_DATA_PORT): Likewise.
198 (START_ADDR_HIGH_REGISTER): Likewise.
199 (START_ADDR_LOW_REGISTER): Likewise.
200 (GRAPHICS_ADDR_PORT): Likewise.
201 (GRAPHICS_DATA_PORT): Likewise.
202 (READ_MAP_REGISTER): Likewise.
203 (INPUT_STATUS1_REGISTER): Likewise.
204 (INPUT_STATUS1_VERTR_BIT): Likewise.
205 (get_map_mask): Use grub_vga_sr_read.
206 (set_map_mask): Use grub_vga_sr_write.
207 (set_read_map): Use grub_vga_gr_write.
208 (set_start_address): Use grub_vga_cr_write.
209 * video/sm712.c (framebuffer): Remove leftover fields.
211 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
213 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
214 setting GRUB_VIDEO_BACKEND. Make it available as a user override
215 instead. Replace the gfxterm backend check with a check that
216 ${GRUB_PREFIX}/video.lst is non-empty.
217 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
219 (load_video): New generated function. Call it before loading
220 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
221 * util/grub.d/10_linux.in (linux_entry): Call load_video.
222 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
223 * docs/grub.texi (Simple configuration): Document
226 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
228 Use video functions in linux and xnu loaders.
230 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
231 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
232 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
233 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
234 loader/i386/pc/linux.c.
235 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
236 (find_line_len): Removed.
237 (find_framebuf): Likewise.
238 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
239 * loader/i386/efi/xnu.c: Removed.
240 * loader/i386/pc/xnu.c: Moved from here...
241 * loader/i386/xnu.c: ...here.
243 Enable priorities in video drivers.
245 * include/grub/video.h (grub_video_adapter_prio_t): New type.
246 (grub_video_adapter): New field prio.
247 (grub_video_register): Respect prio when inserting.
248 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
249 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
250 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
251 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
252 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
253 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
254 * video/sm712.c (grub_video_sm712_adapter): Likewise.
258 * include/grub/video.h (grub_video_driver_id_t): New value
259 GRUB_VIDEO_DRIVER_SDL.
260 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
262 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
264 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
266 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
268 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
270 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
271 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
273 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
275 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
276 directly, and recommend grub-install instead.
277 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
279 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
281 Fix i386-pc prefix handling with nested partitions (Debian bug
282 #585068). Note that the case where the core image is booted using
283 multiboot and relocated from its original location still requires
286 * kern/i386/pc/init.c (make_install_device): If the prefix starts
287 with "(,", fill the boot drive in between those two characters, but
288 expect that a full partition specification including partition map
290 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
291 specified, write a prefix without the drive name but including a
292 full partition specification.
294 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
296 * util/grub-mkconfig.in: Ignore non-option arguments, for
297 compatibility with older versions (before 2010-06-12) which did the
298 same. In particular, this makes it easier to ship an update-grub
299 wrapper which is compatible with that used with GRUB Legacy (Debian
302 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
304 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
305 for manual page generation.
307 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
309 * po/POTFILES: Remove leftover commands/handler.c.
311 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
313 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
314 left this script non-functional.
316 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
318 * docs/man/grub-emu.h2m: New file.
320 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
322 * docs/grub.texi (Commands): Document reduced command set in rescue
324 (cpuid): New section.
326 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
328 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
329 new partition naming style.
330 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
332 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
334 Add "-o grub.iso" like cmdline options support.
336 * util/grub-install.in: Improve cmdline option parsing.
337 * util/grub-mkconfig.in: Likewise.
338 * util/grub-mkrescue.in: Likewise.
339 * util/grub-reboot.in: Likewise.
340 * util/grub-set-default.in: Likewise.
341 * util/i386/efi/grub-install.in: Likewise.
342 * util/ieee1275/grub-install.in: Likewise.
343 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
345 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
347 * .bzrignore: Ignore 41_custom.
349 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
351 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
353 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
355 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
356 prototype declarations.
358 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
359 generating fs, partmap, and video lists.
360 * include/grub/fs.h (grub_fs_register): Omit prototype if
361 GRUB_LST_GENERATOR is defined.
362 * include/grub/partition.h (grub_partition_map_register): Likewise.
363 * include/grub/video.h (grub_video_register): Likewise.
365 2010-06-12 Javier Martín <lordhabbit@gmail.com>
367 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
369 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
371 * util/grub-mkrescue.in: Support --xorriso argument.
373 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
375 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
376 Suggested by: Thomas Schmitt.
378 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
380 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
381 Suggested by: Thomas Schmitt.
383 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
387 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
388 * util/grub.d/41_custom.in: New file.
390 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
392 * util/grub-mkrescue.in (make_image): Remove sh module, which has
393 been merged back into normal.
395 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
397 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
398 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
400 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
402 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
403 when generating manual pages.
404 * docs/man/grub-bin2h.h2m: New file.
405 * docs/man/grub-editenv.h2m: New file.
406 * docs/man/grub-fstest.h2m: New file.
407 * docs/man/grub-install.h2m: New file.
408 * docs/man/grub-macho2img.h2m: New file.
409 * docs/man/grub-mkconfig.h2m: New file.
410 * docs/man/grub-mkdevicemap.h2m: New file.
411 * docs/man/grub-mkfont.h2m: New file.
412 * docs/man/grub-mkimage.h2m: New file.
413 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
414 * docs/man/grub-mkrelpath.h2m: New file.
415 * docs/man/grub-mkrescue.h2m: New file.
416 * docs/man/grub-ofpathname.h2m: New file.
417 * docs/man/grub-pe2elf.h2m: New file.
418 * docs/man/grub-probe.h2m: New file.
419 * docs/man/grub-reboot.h2m: New file.
420 * docs/man/grub-script-check.h2m: New file.
421 * docs/man/grub-set-default.h2m: New file.
422 * docs/man/grub-setup.h2m: New file.
424 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
426 Use FOR_* macros instead of *_iterate whenever possible.
428 * commands/handler.c: Removed.
429 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
430 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
431 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
432 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
433 (grub_probe_SOURCES): Remove kern/parser.c.
434 (util/grub-script-check.c_DEPENDENCIES): Removed.
435 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
436 and grub_script_check_init.c.
437 (grub_script_check_init.lst): Removed.
438 (grub_script_check_init.h): Likewise.
439 (grub_script_check_init.c): Likewise.
440 (pkglib_MODULES): Remove handler.mod and sh.mod.
441 (handler_mod_SOURCES): Removed.
442 (handler_mod_CFLAGS): Likewise.
443 (handler_mod_LDFLAGS): Likewise.
444 (normal_mod_SOURCES): Remove normal/handler.c.
445 Add script/main.c, script/script.c, script/execute.c,
446 script/function.c, script/lexer.c, grub_script.tab.c
447 and grub_script.yy.c.
448 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
449 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
450 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
451 (grub_setup_SOURCES): Remove kern/parser.c.
452 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
453 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
454 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
455 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
456 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
457 (grub_setup_SOURCES): Remove kern/parser.c.
458 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
459 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
460 * include/grub/command.h (grub_command_iterate): Removed.
461 (FOR_COMMANDS): New macro.
462 * include/grub/dl.h (grub_dl): New member next.
463 (grub_dl_iterate): Removed.
464 (grub_dl_head): New variable declaration.
465 (FOR_DL_MODULES): New macro.
466 * include/grub/fs.h: Include list.h.
467 (grub_fs): Make next first element.
468 (grub_fs_list): New variable declaration.
469 (grub_fs_register): Make inline.
470 (grub_fs_unregister): Likewise.
471 (grub_fs_iterate): Removed.
472 (FOR_FILESYSTEMS): New macro.
473 * include/grub/handler.h: Removed.
474 * include/grub/list.h (grub_list_hook_t): Removed.
475 (grub_list_test_t): Likewise.
476 (grub_list_pop): Likewise.
477 (grub_list_iterate): Likewise.
478 (grub_list_insert): Likewise.
479 (FOR_LIST_ELEMENTS): New macro.
480 * include/grub/parser.h (grub_parser_class): Removed.
481 (grub_parser_register): Likewise.
482 (grub_parser_unregister): Likewise.
483 (grub_parser_get_current): Likewise.
484 (grub_parser_set_current): Likewise.
485 (grub_register_rescue_parser): Likewise.
486 (grub_rescue_parse_line): New function.
487 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
488 * include/grub/script_sh.h (grub_script_function_list): New variable
490 (FOR_SCRIPT_FUNCTIONS): New macro.
491 (grub_script_function_iterate): Removed.
492 (grub_normal_parse_line): New prototype.
493 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
494 (FOR_DISABLED_TERM_INPUTS): Likewise.
495 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
496 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
497 * include/grub/video.h (grub_video_adapter): Move 'next' to first
499 (grub_video_register): Inline.
500 (grub_video_unregister): Likewise.
501 (grub_video_adapter_list): New variable declaration.
502 (grub_video_iterate): Removed.
503 (FOR_VIDEO_ADAPTERS): New macro.
504 * kern/dl.c (grub_dl_list): Removed. All users updated.
505 (grub_dl_iterate): Removed.
506 * kern/fs.c (grub_fs_list): Make global.
507 (grub_fs_register): Removed.
508 (grub_fs_unregister): Likewise.
509 (grub_fs_iterate): Likewise.
510 * kern/handler.c: Removed.
511 * kern/list.c (grub_list_pop): Removed.
512 (grub_list_iterate): Likewise.
513 (grub_list_insert): Likewise.
514 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
515 (grub_prio_list_insert): Don't use grub_list_insert.
516 * kern/main.c (grub_register_rescue_parser): Don't call
517 grub_register_rescue_parser.
518 * kern/parser.c (grub_parser_class): Removed.
519 (grub_parser_execute): Use grub_rescue_parse_line.
520 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
521 (grub_rescue_parser): Removed.
522 (grub_register_rescue_parser): Likewise.
523 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
524 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
525 (grub_auth_check_authentication): Likewise.
526 * normal/completion.c (iterate_command): Removed.
527 (grub_normal_do_completion): Use FOR_COMMANDS.
528 * normal/handler.c: Removed.
529 * normal/main.c (read_config_file): Remove parser changing.
530 (grub_normal_execute): Don't call read_handler_list.
531 (grub_normal_read_line_real): Statically allocate prompt.
532 (grub_cmdline_run): Use grub_normal_parse_line.
533 (GRUB_MOD_FINI): Don't call free_handler_list.
534 * normal/menu_entry.c (run): Likewise.
535 * script/function.c (grub_script_function_list): Make global.
536 (grub_script_function_iterate): Removed.
537 * script/main.c (grub_normal_parse_line): Make global.
538 (grub_sh_parser): Removed.
539 (GRUB_MOD_INIT): Likewise.
540 (GRUB_MOD_FINI): Likewise.
541 * tests/lib/functional_test.c (grub_functional_test): Use
543 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
544 (grub_test_run): Use FOR_LIST_ELEMENTS.
545 * tests/lib/unit_test.c (main): Likewise.
546 * util/deviceiter.c (grub_util_iterate_devices): Don't use
548 * util/grub-fstest.c (grub_term_input_class): Removed.
549 (grub_term_output_class): Likewise.
550 * util/grub-probe.c: Likewise.
551 * util/i386/pc/grub-setup.c: Likewise.
552 * util/sparc64/ieee1275/grub-setup.c: Likewise.
553 * util/grub-script-check.c (main): Don't call grub_init_all and
555 * video/video.c (grub_video_adapter_list): Make global.
556 (grub_video_register): Removed.
557 (grub_video_unregister): Likewise.
558 (grub_video_iterate): Likewise.
560 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
562 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
563 reported by Henrique Ferreiro.
565 2010-06-09 Robert Millan <rmh@gnu.org>
567 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
568 ones, when both are available.
570 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
572 Make --version uniform and avoid hard-coded program name.
574 * util/grub-mkimage.c (main): Use `program_name' instead of
576 * util/i386/pc/grub-setup.c (main): Likewise.
577 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
578 * util/grub-install.in: Save the basename of $0 in $self, and use the
579 latter in informational messages. Use the same format for --version
580 as the binary programs.
581 * util/grub-mkconfig.in: Likewise.
582 * util/grub-mkrescue.in: Likewise.
583 * util/grub-reboot.in: Likewise.
584 * util/grub-set-default.in: Likewise.
585 * util/i386/efi/grub-install.in: Likewise.
586 * util/ieee1275/grub-install.in: Likewise.
587 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
589 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
591 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
592 embedding area. Use <= instead of == when checking for non-emptiness.
594 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
596 * configure.ac: Add `.' to the directories searched for unifont.
598 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
600 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
603 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
605 * docs/grub.texi (History): Expand to cover GRUB 2.
606 (Serial terminal): Refer to `terminal_input' and `terminal_output'
607 commands, not `terminal'.
609 (terminal_input): New section.
610 (terminal_output): New section.
611 (uppermem): New section (stub).
612 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
614 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
616 * docs/grub.texi (Security): Menu entries are unrestricted by
617 default, not restricted to superusers as I had previously thought.
618 Reword to account for this.
620 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
622 * kern/emu/misc.c (device_mapper_null_log): New function.
623 (grub_device_mapper_supported): New function.
624 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
626 * kern/emu/hostdisk.c (find_partition_start): Check whether
627 device-mapper is supported before trying to use it.
628 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
630 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
632 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
633 (File name syntax): Likewise.
634 (help): --all is no longer supported in GRUB 2. Be more precise
635 about pattern matching.
637 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
639 * normal/completion.c (grub_normal_do_completion): When completing
640 arguments to "set" and the current word contains an equals sign,
641 skip to after the equals sign before starting completion.
643 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
645 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
647 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
649 * docs/grub.texi (Network): New section.
650 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
651 `(nd)' as in GRUB Legacy.
652 (pxe_unload): New section.
654 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
656 * docs/grub.texi (Troubleshooting): `echo' is not usually available
657 in the rescue shell, so recommend using `set' instead. Thanks,
660 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
662 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
663 (password): New section.
664 (password_pbkdf2): New section.
665 (search): New section.
666 (Security): New section.
667 (Troubleshooting): New section, currently very incomplete.
668 (Invoking grub-mkpasswd-pbkdf2): New section.
669 (Internals): New section, currently very incomplete.
671 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
673 * util/grub.d/00_header.in: Add some more quoting (of
674 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
676 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
678 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
680 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
681 to `count', fixing variable shadowing that broke the -c option.
683 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
685 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
686 in case they contain spaces.
688 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
690 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
691 "part_" to partmap module names, in line with grub-install.
692 Reported by: Jindřich Makovička (Debian bug #584426).
694 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
696 * util/grub-mkimage.c: Make target-related error messages slightly
697 more helpful; -O talks about "format". Explicitly point to the use
698 of -O if no target is specified.
699 Reported by: Didier Raboud (Debian bug #584415).
701 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
703 * INSTALL: Document several build requirements for optional features
704 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
706 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
708 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
709 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
710 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
712 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
714 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
715 Thanks to Jordan Uggla for spotting this.
717 2010-06-02 Aleš Nesrsta <starous@volny.cz>
719 Finally make USB usable.
721 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
722 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
723 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
724 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
725 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
726 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
727 (GRUB_OHCI_FSMPS): Likewise.
728 (GRUB_OHCI_PERIODIC_START): Likewise.
729 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
730 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
731 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
732 (GRUB_OHCI_SET_PORT_RESET): Likewise.
733 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
734 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
735 (grub_ohci_transaction): Likewise.
736 (grub_ohci_transfer): Improve condition detection algorithms.
737 Handle toggle property. Program the transactions correctly.
738 Improve error handling. Various important fixups.
739 (grub_ohci_portstatus): Put register writes in right order.
740 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
741 (grub_uhci_transfer): Don't show "failed" message on success.
742 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
744 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
746 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
747 before initialization is completed. Use IN direction for empty
748 transfers. Use last_trans and compute toggle.
749 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
750 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
751 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
752 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
753 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
754 (grub_usb_device): Increase toggle to 256.
755 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
756 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
757 GRUB_USBMS_SUBCLASS_SFF8070.
758 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
759 (grub_scsi_inquiry): New member page and alloc_length.
760 (grub_scsi_request_sense): New structure.
761 (grub_scsi_request_sense_data): Likewise.
762 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
764 * disk/scsi.c (grub_scsi_request_sense): New function.
765 (grub_scsi_test_unit_ready): Likewise.
766 (grub_scsi_inquiry): Fill new fields.
767 (grub_scsi_read_capacity): Likewise.
768 (grub_scsi_read10): Add request sense at the end.
769 (grub_scsi_read12): Likewise.
770 (grub_scsi_write10): Likewise.
771 (grub_scsi_write12): Likewise.
772 (grub_scsi_open): Add Test Unit Ready.
773 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
774 Support additional subclasses. Con't clear halt yet. Activate the
775 proper config. Calculate LUNs correctly.
776 (grub_usbms_transfer): Various important fixups.
778 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
780 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
781 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
782 (grub_ohci_fini_hw): New function.
783 (grub_ohci_restore_hw): Likewise.
784 (GRUB_MOD_INIT(ohci)): Register preboot hook.
785 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
786 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
788 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
790 Dedicated DMA allocations.
792 * bus/pci.c (grub_memalign_dma32): New function
793 (grub_dma_free): Likewise.
794 (grub_dma_get_virt): Likewise.
795 (grub_dma_get_phys): Likewise.
796 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
797 (grub_ohci_pci_iter): Use dma32_alloc.
798 (grub_ohci_transfer): Likewise.
799 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
800 (grub_usb_bulk_readwrite): Likewise.
801 * include/grub/pci.h: Add declarations.
803 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
807 * bus/cs5536.c: New file.
808 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
809 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
810 (cs5536_mod_SOURCES): New variable.
811 (cs5536_mod_CFLAGS): Likewise.
812 (cs5536_mod_LDFLAGS): Likewise.
813 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
815 (kernel_img_SOURCES): Add bus/cs5536.c.
816 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
818 (usb_mod_SOURCES): New variable.
819 (usb_mod_CFLAGS): New variable.
820 (usb_mod_LDFLAGS): New variable.
821 (usbtest_mod_SOURCES): New variable.
822 (usbtest_mod_CFLAGS): New variable.
823 (usbtest_mod_LDFLAGS): New variable.
824 (ohci_mod_SOURCES): New variable.
825 (ohci_mod_CFLAGS): New variable.
826 (ohci_mod_LDFLAGS): New variable.
827 (usbms_mod_SOURCES): New variable.
828 (usbms_mod_CFLAGS): New variable.
829 (usbms_mod_LDFLAGS): New variable.
830 (usb_keyboard_mod_SOURCES): New variable.
831 (usb_keyboard_mod_CFLAGS): New variable.
832 (usb_keyboard_mod_LDFLAGS): New variable.
833 * include/grub/smbus.h: New file.
834 * include/grub/cs5536.h: New file.
836 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
838 * util/grub.d/00_header.in: Add safety check to make sure that
839 ${locale_dir} exists before trying to probe it.
841 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
843 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
844 per the GNU Coding Standards; this is now too obscure to be worth
847 (chainloader): Remove cross-reference to `SCO UnixWare'.
849 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
851 * docs/grub.texi (Chain-loading): New section.
852 (DOS/Windows): New section, borrowed from GRUB Legacy with details
854 (SCO UnixWare): Likewise.
856 (chainloader): Add reference to `Block list syntax'.
857 (drivemap): New section.
858 (parttool): New section.
860 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
862 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
864 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
865 (Installing GRUB using grub-install): Remove reference to the grub
866 shell; mention `grub-mkimage' and `grub-setup' instead.
867 (Invoking grub-install): Likewise.
868 (Interface): Add reference to `Menu entry editor'.
869 (serial): Remove `--device' option.
871 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
873 * docs/grub.texi (Configuration): New section, documenting
874 configuration file generation using grub-mkconfig. I've left a slot
875 for documenting the full shell scripting format but have not yet
876 started on writing that up.
877 (Invoking grub-mkconfig): New section.
879 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
881 * docs/grub.texi (direntry): Remove grub-terminfo reference.
882 (GNU GRUB manual): Likewise.
883 (General commands): Update description of `terminfo' for GRUB 2.
885 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
887 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
888 (GRUB_MOD_INIT): Fix capitalisation.
889 * docs/grub.texi (Command-line and menu entry commands): Document
890 gettext and gptsync commands.
892 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
894 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
895 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
897 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
899 Add btrfs probing support, currently only in the single-device case.
901 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
903 (grub_guess_root_device): Call find_root_device_from_mountinfo
904 before looking in /dev.
906 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
908 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
909 GRUB_DISK_SIZE_UNKNOWN.
910 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
912 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
914 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
915 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
916 corrupted or not synced properly.
918 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
920 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
921 Reported by: Seth Goldberg.
923 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
925 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
927 Reported by: Seth Goldberg.
929 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
931 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
932 Reported by: Seth Goldberg.
934 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
936 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
937 64-bit address as signed on MIPS.
939 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
941 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
944 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
946 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
948 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
949 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
950 * kern/misc.c (__enable_execute_stack): Disable on
953 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
955 Make grub-probe work with symbolic links under /dev/mapper as well
956 as with real block devices. The Linux world seems to be (at best)
957 in transition here, and GRUB shouldn't get caught in the middle.
959 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
962 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
964 * util/grub-script-check.c (main): Ensure defined behaviour on empty
965 input files (in which case exit zero).
967 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
969 * kern/emu/misc.c (canonicalize_file_name): realpath can still
970 return NULL for various reasons even if it has a maximum-length
971 buffer: for example, there might be a symlink loop, or the path
972 might exceed PATH_MAX. If this happens, return NULL.
974 2010-05-27 Robert Millan <rmh@gnu.org>
976 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
977 partmap module to handle cross-partmap setups.
978 Reported by Orestes Mas. Gràcies!
980 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
982 * util/grub-mkrescue.in: Initialise override_dir rather than
983 assuming that it's unset or empty in the environment.
985 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
987 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
988 variable index into p_index to suppress a warning with -Wshadow.
990 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
992 * INSTALL: Added flex >= 2.5.35 requirement.
994 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
996 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
998 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1002 * commands/i386/cmostest.c: New file.
1003 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
1004 (cmostest_mod_SOURCES): New variable.
1005 (cmostest_mod_CFLAGS): Likewise.
1006 (cmostest_mod_LDFLAGS): Likewise.
1007 * conf/i386-pc.rmk: Likewise.
1008 * docs/grub.texi (Vendor power-on keys): New section.
1009 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
1010 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
1011 and GRUB_BUTTON_CMOS_ADDRESS.
1012 * util/grub.d/00_header.in: Handle powering-on by separate button.
1014 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1016 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
1017 Removed drawing_scrollbar argument. All users updated
1019 Reported by Jo Shields
1021 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1023 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
1024 buffer since gfxterm handles double repaint.
1026 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1028 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
1029 * term/gfxterm.c (real_scroll): Likewise.
1031 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1033 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
1034 before calling BIOS.
1036 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1038 * include/grub/i18n.h: Always enable grub_gettext.
1040 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1042 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
1043 partition naming style.
1045 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
1047 * util/grub-mkconfig.in: Fix handling of -o so that it works when
1048 not the first option.
1050 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
1052 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
1054 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
1056 * util/misc.c: Move inclusion of <limits.h> to ...
1057 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
1059 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
1061 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
1062 Fix merge error in NetBSD code.
1063 (find_partition_start) [__NetBSD__]: Likewise.
1065 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
1067 Fix grub-mkrescue usage unit testing.
1069 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
1071 2010-05-18 Christian Franke <franke@computer.org>
1073 * util/grub.d/10_windows.in: Use path names instead of
1074 drive letters to prevent warning from Cygwin 1.7.
1075 Add drivemap command to menuentry if needed.
1077 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
1079 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
1080 gnumach and gnumach.gz.
1082 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1084 * include/grub/i18n.h (gettext): Inline instead of using #define.
1085 (grub_gettext): Likewise.
1088 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1090 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
1091 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
1092 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
1093 (main): Add a slash after pkglibdirroot.
1095 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1097 * util/grub-install.in: Add missing "in" keyword.
1099 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1101 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
1102 Reported by: Seth Goldberg.
1104 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1106 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
1108 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1110 * configure.ac: Check for Linux device-mapper support.
1112 * util/hostdisk.c (device_is_mapped): New function.
1113 (find_partition_start): New function, partly broken out from
1114 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
1115 device-mapper support added.
1116 (linux_find_partition): Use find_partition_start.
1117 (convert_system_partition_to_system_disk): Add `st' argument.
1118 Support Linux /dev/mapper/* devices if device-mapper support is
1119 available; only DM-RAID devices are understood at present.
1120 (find_system_device): Add `st' argument. Pass it to
1121 convert_system_partition_to_system_disk.
1122 (grub_util_biosdisk_get_grub_dev): Pass stat result to
1123 find_system_device and convert_system_partition_to_system_disk. Use
1124 find_partition_start.
1126 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
1127 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
1128 * util/deviceiter.c [__linux__]: Define MINOR.
1129 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
1130 * util/mkdevicemap.c (grub_putchar): New function.
1131 (grub_getkey): New function.
1132 (grub_refresh): New function.
1133 (main): Set debug=all if -v -v is used.
1135 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1137 Fix build with non-GNU libcs.
1139 * util/misc.c (canonicalize_file_name): Move to ...
1140 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
1141 grub_make_system_path_relative_to_its_root.
1143 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1145 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
1146 we handle finding grub-mkimage. Default to finding grub-mkimage in
1147 ${bindir} with program_transform_name applied, and provide a
1148 --grub-mkimage option to override this.
1150 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1152 Remove grub-mkisofs.
1154 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
1155 (grub_mkisofs_SOURCES): Removed.
1156 (grub_mkisofs_CFLAGS): Removed.
1157 * util/mkisofs/defaults.h: Removed.
1158 * util/mkisofs/eltorito.c: Likewise.
1159 * util/mkisofs/exclude.h: Likewise.
1160 * util/mkisofs/hash.c: Likewise.
1161 * util/mkisofs/include/: Likewise.
1162 * util/mkisofs/include/fctldefs.h: Likewise.
1163 * util/mkisofs/include/mconfig.h: Likewise.
1164 * util/mkisofs/include/prototyp.h: Likewise.
1165 * util/mkisofs/include/statdefs.h: Likewise.
1166 * util/mkisofs/iso9660.h: Likewise.
1167 * util/mkisofs/joliet.c: Likewise.
1168 * util/mkisofs/match.c: Likewise.
1169 * util/mkisofs/match.h: Likewise.
1170 * util/mkisofs/mkisofs.c: Likewise.
1171 * util/mkisofs/mkisofs.h: Likewise.
1172 * util/mkisofs/msdos_partition.h: Likewise.
1173 * util/mkisofs/multi.c: Likewise.
1174 * util/mkisofs/name.c: Likewise.
1175 * util/mkisofs/rock.c: Likewise.
1176 * util/mkisofs/tree.c: Likewise.
1177 * util/mkisofs/write.c: Likewise.
1179 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1181 Unify grub-mkimage accross platforms.
1183 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
1184 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
1185 (grub_mkelfimage_SOURCES): Removed.
1186 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
1187 (util/grub-mkimage.c_DEPENDENCIES): .. this.
1188 (bin_UTILITIES): Add grub-mkimage.
1189 (grub_mkimage_SOURCES): New variable.
1190 (kernel_img_HEADERS): Remove machine/kernel.h.
1191 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
1192 (pkglib_PROGRAMS): Add kernel.img.
1193 (kernel_img_HEADERS): Add machine/kernel.h.
1194 (kernel_img_FORMAT): Removed.
1195 (bin_UTILITIES): Remove grub-mkimage.
1196 (grub_mkimage_SOURCES): Removed.
1197 (grub_mkimage_CFLAGS): Likewise.
1198 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1199 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
1200 (pkglib_PROGRAMS): Add kernel.img.
1201 (bin_UTILITIES): Remove grub-mkimage.
1202 (grub_mkimage_SOURCES): Removed.
1203 (grub_mkimage_CFLAGS): Likewise.
1204 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1205 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
1206 (pkglib_PROGRAMS): Add kernel.img.
1207 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
1208 (pkglib_PROGRAMS): Add kernel.img.
1209 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
1210 (grub_mkimage_SOURCES): Removed.
1211 (grub_mkimage_CFLAGS): Likewise.
1212 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1213 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
1214 (pkglib_PROGRAMS): Add kernel.img.
1215 (bin_UTILITIES): Remove grub-mkimage.
1216 (grub_mkimage_SOURCES): Removed.
1217 (grub_mkimage_CFLAGS): Likewise.
1218 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1219 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
1220 (grub_mkimage_SOURCES): Removed.
1221 (grub_mkimage_CFLAGS): Likewise.
1222 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1223 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
1224 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
1225 (grub_pe32_optional_header): ... this.
1226 (grub_pe64_optional_header): ... and this. All users updated.
1227 (GRUB_PE32_PE32_MAGIC): Split into ..
1228 (GRUB_PE32_PE32_MAGIC): .. this.
1229 (GRUB_PE32_PE64_MAGIC): .. and this.
1230 (GRUB_PE32_SIGNATURE_SIZE): New definition.
1231 * include/grub/elf.h (PT_GNU_STACK): New definition.
1232 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
1233 * include/grub/i386/efi/kernel.h: Likewise.
1234 * include/grub/i386/kernel.h: Likewise.
1235 * include/grub/i386/pc/kernel.h: Likewise.
1236 * include/grub/i386/qemu/boot.h: Likewise.
1237 * include/grub/mips/kernel.h: Likewise.
1238 * include/grub/mips/qemu-mips/kernel.h: Likewise.
1239 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
1240 * include/grub/powerpc/kernel.h: Likewise.
1241 * include/grub/sparc64/ieee1275/boot.h: Likewise.
1242 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
1243 * include/grub/sparc64/kernel.h: Likewise.
1244 * include/grub/x86_64/efi/kernel.h: Likewise.
1245 * include/grub/x86_64/kernel.h: Likewise.
1246 * include/grub/offsets.h: New file.
1247 * include/grub/kernel.h (grub_module_info): Split into ...
1248 (grub_module_info32): ... this.
1249 (grub_module_info64): ... and this.
1250 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
1251 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
1252 (grub_boot_blocklist): Moved from here ...
1253 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
1254 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
1255 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
1256 * include/grub/types.h (grub_target_to_host16): Removed.
1257 (grub_target_to_host32): Likewise.
1258 (grub_target_to_host64): Likewise.
1259 (grub_host_to_target16): Likewise.
1260 (grub_host_to_target32): Likewise.
1261 (grub_host_to_target64): Likewise.
1262 (grub_host_to_target_addr): Likewise.
1264 Support grub-mkrescue for efi, coreboot and qemu.
1266 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
1267 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
1268 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
1269 * util/grub-mkrawimage.c: Moved from here ...
1270 * util/grub-mkimage.c: ... here. All users updated.
1271 (ALIGN_ADDR): Use image_target.
1272 (TARGET_NO_FIELD): New const.
1273 (image_target_desc): New type.
1274 (image_targets): New array.
1275 (grub_target_to_host64): Use image_target.
1276 (grub_target_to_host32): Likewise.
1277 (grub_target_to_host16): Likewise.
1278 (grub_host_to_target64): Likewise.
1279 (grub_host_to_target32): Likewise.
1280 (grub_host_to_target16): Likewise.
1281 (grub_host_to_target_addr): Likewise.
1282 (generate_image): Handle multiimage.
1283 (main): Require -O parameter. All users updated.
1284 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
1285 util/efi/grub-mkimage.c
1286 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
1287 New option --rom-directory.
1289 * util/i386/efi/grub-mkimage.c: Removed.
1290 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
1291 (grub_target_to_host32): Likewise.
1292 (grub_target_to_host64): Likewise.
1293 (grub_host_to_target16): Likewise.
1294 (grub_host_to_target32): Likewise.
1295 (grub_host_to_target64): Likewise.
1296 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
1297 (grub_target_to_host32): Likewise.
1298 (grub_target_to_host64): Likewise.
1299 (grub_host_to_target16): Likewise.
1300 (grub_host_to_target32): Likewise.
1301 (grub_host_to_target64): Likewise.
1303 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
1305 Source tree is reorganized for emu build.
1307 * include/grub/util/console.h: Move from here...
1308 * include/grub/emu/console.h: ...to here.
1309 * include/grub/util/getroot.h: Move from here...
1310 * include/grub/emu/getroot.h: ...to here.
1311 * include/grub/util/hostdisk.h: Move from here...
1312 * include/grub/emu/hostdisk.h: ...to here.
1313 * util/console.c: Move from here...
1314 * kern/emu/console.c: ...to here.
1315 * util/getroot.c: Move from here...
1316 * kern/emu/getroot.c: ...to here.
1317 * util/grub-emu.c: Move from here...
1318 * kern/emu/main.c: ...to here.
1319 * util/hostdisk.c: Move from here...
1320 * kern/emu/hostdisk.c: ...to here.
1321 * util/hostfs.c: Move from here...
1322 * kern/emu/hostfs.c: ...to here.
1323 * util/mm.c: Move from here...
1324 * kern/emu/mm.c: ...to here.
1325 * util/pci.c: Move from here...
1326 * bus/emu/pci.c: ...to here.
1327 * util/sdl.c: Move from here...
1328 * video/emu/sdl.c: ...to here.
1329 * util/time.c: Move from here...
1330 * kern/emu/time.c: ...to here.
1331 * util/usb.c: Move from here...
1332 * bus/usb/emu/usb.c: ...to here.
1334 * include/grub/emu/misc.h: New header for grub-emu functions.
1335 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
1337 * conf/any-emu.rmk: Rule updates for above renames.
1338 * conf/common.rmk: Likewise.
1339 * conf/i386-pc.rmk: Likewise.
1340 * conf/i386-qemu.rmk: Likewise.
1341 * conf/mips.rmk: Likewise.
1342 * conf/sparc64-ieee1275.rmk: Likewise.
1343 * conf/x86-efi.rmk: Likewise.
1345 * disk/lvm.h: #include updates for above renames.
1346 * util/grub-mkrelpath.c: Likewise.
1347 * util/grub-probe.c: Likewise.
1348 * util/i386/pc/grub-setup.c: Likewise.
1349 * util/sparc64/ieee1275/grub-setup.c: Likewise.
1350 * kern/emu/console.c: Likewise.
1351 * kern/emu/getroot.c: Likewise.
1352 * kern/emu/hostdisk.c: Likewise.
1353 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
1355 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
1356 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
1357 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
1358 * util/misc.c: Remove grub-emu functions.
1360 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1363 Reported by: Thorsten Grützmacher.
1365 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
1367 (circprog_set_property): Register and unregister timeout hook.
1368 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
1369 (label_destroy): Free template. and unregister hook.
1370 (label_set_state): New function.
1371 (label_set_property): Handle templates and hooks.
1372 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
1374 (progress_bar_set_property): Register and unregister timeout hook.
1375 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
1376 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
1377 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
1378 (update_timeout_visit): Removed.
1379 (update_timeouts): New function.
1380 (redraw_timeouts): Likewise.
1381 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
1382 (grub_gfxmenu_clear_timeout): Likewise.
1383 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
1384 (grub_gfxmenu_timeout_notify): Likewise.
1385 (grub_gfxmenu_timeout_notifications): New external variable.
1386 (grub_gfxmenu_timeout_register): New function.
1387 (grub_gfxmenu_timeout_unregister): Likewise.
1389 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1391 Transform (broken) vga terminal into (working) vga video driver.
1393 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
1394 video/i386/pc/vga.c.
1395 * include/grub/video.h (grub_video_driver_id):
1396 Add GRUB_VIDEO_DRIVER_VGA.
1397 * term/i386/pc/vga.c: Renamed to ...
1398 * video/i386/pc/vga.c: ...this
1399 (DEBUG_VGA): Removed.
1400 (CHAR_WIDTH): Likewise.
1401 (CHAR_HEIGHT): Likewise.
1402 (TEXT_WIDTH): Likewise.
1403 (TEXT_HEIGHT): Likewise.
1404 (DEFAULT_FG_COLOR): Likewise.
1405 (DEFAULT_BG_COLOR): Likewise.
1406 (colored_char): Likewise.
1409 (cursor_state): Likewise.
1410 (fg_color): Likewise.
1411 (bg_color): Likewise.
1412 (text_buf): Likewise.
1415 (framebuffer): New variable.
1416 (set_read_map): Disabled.
1417 (setup): New variable.
1418 (is_target): Likewise.
1419 (grub_vga_mod_init): Likewise.
1420 (grub_vga_mod_fini): Likewise.
1421 (check_vga_mem): Likewise.
1422 (write_char): Likewise.
1423 (write_cursor): Likewise.
1424 (scroll_up): Likewise.
1425 (grub_vga_putchar): Likewise.
1426 (grub_vga_getcharwidth): Likewise.
1427 (grub_vga_getwh): Likewise.
1428 (grub_vga_getxy): Likewise.
1429 (grub_vga_gotoxy): Likewise.
1430 (grub_vga_cls): Likewise.
1431 (grub_vga_setcolorstate): Likewise.
1432 (grub_vga_setcursor): Likewise.
1433 (grub_video_vga_init): New function.
1434 (grub_video_vga_setup): Likewise.
1435 (grub_video_vga_fini): Likewise.
1436 (update_target): Likewise.
1437 (grub_video_vga_blit_bitmap): Likewise.
1438 (grub_video_vga_blit_render_target): Likewise.
1439 (grub_video_vga_set_active_render_target): Likewise.
1440 (grub_video_vga_get_active_render_target): Likewise.
1441 (grub_video_vga_swap_buffers): Likewise.
1442 (grub_video_vga_set_palette): Likewise.
1443 (grub_video_vga_get_info_and_fini): Likewise.
1444 (grub_vga_term): Removed.
1445 (grub_video_vga_adapter): New variable.
1446 (GRUB_MOD_INIT): Register a video driver instead of terminal.
1447 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
1449 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1451 * video/readers/jpeg.c: Indented.
1453 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1455 Various jpeg cleanups.
1457 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
1458 (grub_jpeg_decode_quan_table): Use sizeof.
1459 (grub_jpeg_decode_du): Use ARRAY_SIZE.
1461 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
1463 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
1464 tables. Ignore non-last ac bit.
1465 (grub_jpeg_decode_quan_table): Likewise.
1467 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1469 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1470 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
1471 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1472 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
1473 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
1474 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
1476 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1478 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
1481 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1483 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
1485 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1487 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
1490 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1492 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
1495 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1497 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
1500 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1502 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
1504 2010-05-01 Christian Franke <franke@computer.org>
1506 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
1507 Remove broken Cygwin path conversion.
1508 * util/misc.c: [__CYGWIN__] Add include and define.
1509 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
1511 (make_system_path_relative_to_its_root): Simplify loop, replace early
1513 [__CYGWIN__] Add conversion to win32 path.
1514 Include "/" case in trailing slash removal.
1516 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1518 * kern/main.c (grub_load_config): Fix copy-pasted comment.
1519 Reported by: Seth Goldberg
1521 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1523 * commands/help.c (grub_cmd_help): Fix a typo.
1524 Reported by: Seth Goldberg
1526 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1528 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
1530 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
1531 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
1532 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
1533 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
1534 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
1535 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
1536 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
1537 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
1538 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
1539 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
1540 * normal/context.c (GRUB_MOD_INIT): Likewise.
1541 * normal/main.c (GRUB_MOD_INIT): Likewise.
1542 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
1543 * term/serial.c (GRUB_MOD_INIT): Likewise.
1544 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
1546 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1548 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
1551 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1553 * commands/iorw.c: New file.
1554 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
1555 (iorw_mod_SOURCES): New variable.
1556 (iorw_mod_CFLAGS): Likewise.
1557 (iorw_mod_LDFLAGS): Likewise.
1559 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1563 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
1564 * normal/main.c (hotkey_aliases): New variable.
1565 (grub_normal_add_menu_entry): Parse "--hotkey".
1566 * normal/menu_text.c (run_menu): Handle hotkeys.
1568 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1570 * kern/i386/coreboot/init.c (grub_machine_init): Call
1571 grub_machine_mmap_init on qemu.
1573 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1575 * boot/i386/qemu/boot.S: Add a missing .code16.
1577 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1579 Use LBIO on coreboot.
1581 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
1582 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
1583 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
1585 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
1586 grub_machine_mmap_init on coreboot.
1587 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
1588 GRUB_LINUXBIOS_MEMBER_LINK.
1589 (grub_machine_mmap_iterate): Fix declaration.
1590 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
1592 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1594 Split coreboot and multiboot ports.
1596 * conf/i386-multiboot.rmk: New file.
1597 * configure.ac: Add multiboot port.
1598 * include/grub/i386/multiboot/boot.h: New file.
1599 * include/grub/i386/multiboot/console.h: Likewise.
1600 * include/grub/i386/multiboot/init.h: Likewise.
1601 * include/grub/i386/multiboot/kernel.h: Likewise.
1602 * include/grub/i386/multiboot/loader.h: Likewise.
1603 * include/grub/i386/multiboot/memory.h: Likewise.
1604 * include/grub/i386/multiboot/serial.h: Likewise.
1605 * include/grub/i386/multiboot/time.h: Likewise.
1606 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
1607 * loader/multiboot.c: Likewise.
1608 * loader/multiboot_mbi2.c: Likewise.
1609 * util/grub-mkrescue.in: Generate multiboot rescue.
1611 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1613 * kern/parser.c (grub_parser_execute): Cope with read-only config.
1615 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1617 Merge handling of input and output terminals. Fix a hang.
1619 * commands/terminal.c (abstract_terminal): New struct.
1620 (handle_command): New function. Based on grub_cmd_terminal_input.
1621 (grub_cmd_terminal_input): Use handle_command.
1622 (grub_cmd_terminal_output): Use handle_command.
1624 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
1626 Fix comment handling.
1628 * tests/grub_script_comments.in: New testcase.
1629 * conf/tests.rmk: Rules for new testcase.
1630 * script/yylex.l: Updated flex rules.
1632 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
1634 * docs/grub.texi (play): Document that zero pitches produce rests.
1635 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
1638 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1640 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
1643 2010-04-26 Christian Franke <franke@computer.org>
1645 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
1646 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
1647 (grub_get_prefix): Remove function.
1648 * util/grub-emu.c (main): Replace grub_get_prefix () call by
1649 make_system_path_relative_to_its_root ().
1650 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
1652 2010-04-24 Christian Franke <franke@computer.org>
1654 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
1655 (kernel_img_LDFLAGS): Remove -static-libgcc.
1657 2010-04-24 Christian Franke <franke@computer.org>
1659 * configure.ac: Do not CHECK_BSS_START_SYMBOL
1660 and CHECK_END_SYMBOL if grub-emu is built.
1661 Unset TARGET_OBJ2ELF if grub-emu is built
1662 without module support.
1664 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
1668 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
1669 (grub_fstest_SOURCES): Likewise.
1670 (pkglib_MODULES): Add nilfs2.mod.
1671 (nilfs2_mod_SOURCES): New variable.
1672 (nilfs2_mod_CFLAGS): Likewise.
1673 (nilfs2_mod_LDFLAGS): Likewise.
1674 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1675 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1676 * fs/nilfs2.c: New file.
1678 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
1680 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
1683 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
1685 Add grub-mkconfig support for NetBSD.
1687 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
1688 * util/grub-mkconfig.in: export new NetBSD specific variables.
1689 * po/POTFILES-shell: added 10_netbsd.in.
1690 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
1692 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
1694 Fix emu build with grub-emu-pci and grub-emu-modules.
1696 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
1698 * include/grub/libpciaccess.h: New file.
1699 * conf/any-emu.rmk: Update kernel headers for emu build.
1701 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1703 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
1705 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1707 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
1709 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1711 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
1712 Retrieve chosen/bootpath if bootpath isn't hardcoded.
1713 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
1714 util/ieee1275/ofpath.c.
1715 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
1716 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
1717 * include/grub/sparc64/ieee1275/boot.h
1718 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
1719 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
1720 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
1721 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
1723 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
1724 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
1725 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
1728 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
1730 * util/grub-mkconfig.in: Corrected two == equality tests.
1731 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
1732 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
1733 expect a number appended to it.
1734 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
1735 expects a number appended to it.
1737 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1739 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
1741 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1743 * util/hostdisk.c (make_device_name): Change to new partition naming.
1745 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1747 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
1749 2010-04-17 Christian Franke <franke@computer.org>
1751 * Makefile.in: Add missing localedir setting.
1753 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
1755 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
1756 mistake in r2156. Noticed by Anthony Fok.
1758 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
1760 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
1762 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
1764 Fix a spurious, uninitialized variable warning.
1766 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
1767 Initialize variable, shdr.
1768 (grub_freebsd_load_elfmodule): Likewise.
1769 (grub_freebsd_load_elf_meta): Likewise.
1771 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
1773 Fix for escaped dollar in double quoted strings.
1775 * script/yylex.l: Updated flex rules.
1776 * conf/tests.rmk: Rule for new testcase.
1777 * tests/grub_script_dollar.in: New testcase.
1779 2010-04-13 Carles Pina i Estany <carles@pina.cat>
1780 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
1782 Enclose all translated strings in grub.cfg in single quotes, and
1783 escape them appropriately (Ubuntu bug #552921).
1785 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
1786 * util/grub.d/10_hurd.in: Use it.
1787 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
1788 * util/grub.d/10_linux.in (linux_entry): Likewise.
1790 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1792 Fix cygwin compilation.
1794 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
1795 * include/grub/misc.h (__register_frame_info)
1796 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
1797 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
1798 * kern/misc.c (__register_frame_info)
1799 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
1800 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
1802 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1804 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
1806 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1808 Unify libgcc processing.
1810 * Makefile.in (kernel_img_LDFLAGS): New variable.
1811 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
1812 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
1814 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
1815 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
1816 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
1817 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
1818 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
1819 overwriting. Remove -lgcc and -static-libgcc
1820 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
1821 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
1822 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
1823 (kernel_img_LDFLAGS): Append instead of overwriting.
1824 Remove -lgcc and -static-libgcc
1825 * conf/sparc64-ieee1275.rmk: Likewise.
1826 * include/grub/powerpc/libgcc.h: Move to ...
1827 * include/grub/libgcc.h: .. this.
1828 * include/grub/libgcc.h: Don't export most of the function on x86.
1829 (__bswapsi2): New export.
1830 (__bswapdi2): Likewise.
1831 * include/grub/mips/libgcc.h: Removed.
1832 * include/grub/sparc64/libgcc.h: Likewise.
1834 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1836 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
1837 disk_info_msg (conflicts with gettexting into languages with cases).
1839 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
1841 Add grub-probe support for NetBSD.
1843 * util/getroot.c (find_root_device): Convert block device to
1844 character device on NetBSD.
1845 * util/probe.c (probe): Require character device on NetBSD.
1846 * util/hostdisk.c: NetBSD specific headers.
1847 (configure_device_driver): new function to tune device driver
1848 parameters (currently only for NetBSD floppy driver).
1849 (grub_util_biosdisk_open): NetBSD specific code (get disk size
1850 via disklabel ioctl).
1851 (open_device): call configure_device_driver on NetBSD.
1852 (convert_system_partition_to_system_disk): NetBSD specific code.
1853 (device_is_wholedisk): Likewise.
1854 (grub_util_biosdisk_get_grub_dev): Likewise.
1855 (make_device_name): Fixed a typo in bsd_part_str.
1856 * configure.ac: check for opendisk() and getrawpartition() on
1857 NetBSD and set LIBUTIL.
1858 * Makefile.in: add LIBUTIL to LIBS.
1860 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
1864 * util/grub-script-check.c: Better help message.
1866 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
1870 * configure.ac: Flex version check.
1871 * conf/common.rmk: Add -Wno-error to sh.mod.
1872 * script/yylex.l: Remove all #pragma.
1874 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1876 * include/grub/util/misc.h (canonicalise_file_name): Add missing
1878 Reported by: Seth Goldberg.
1880 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1882 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
1883 Rename "module" to "module2".
1884 Reported by: Seth Goldberg.
1886 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1888 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
1890 Reported by: Seth Goldberg.
1892 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1894 * lib/posix_wrap/locale.h: Add missing file.
1895 Reported by: Seth Goldberg.
1897 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1899 grub-emu module load support.
1901 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
1902 NO_DYNAMIC_MODULES switched to this.
1903 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
1905 * conf/any-emu.rmk: Generate symlist.
1906 (kernel_img_HEADERS): Add util/datetime.h.
1907 (kernel_img_HEADERS) [sdl]: Add sdl.h.
1908 (kernel_img_HEADERS) [libusb]: Add libusb.h.
1909 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
1910 kern/$(target_cpu)/cache.S.
1911 * configure.ac (grub-emu-modules): New option.
1912 * genmk.rb: Handle multiple source lists.
1913 * include/grub/sdl.h: New file.
1914 * include/grub/libusb.h: Likewise.
1915 * util/grub-emu.c (main): Hanle (host) root.
1916 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
1917 GRUB_ERR_UNKNOWN_DEVICE.
1918 * util/misc.c: Move mm functions to ...
1919 * util/mm.c: ... here. All users updated.
1921 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1923 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
1924 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
1926 (maintainer-clean): Remove libgcrypt-grub.
1928 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1930 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
1932 2010-04-09 EFI Coder <eficoder@hotmail.com>
1934 * normal/menu_text.c (print_message): Clean up the message and show
1935 the Fn information when on EFI
1936 * term/efi/console.c (grub_console_checkkey): Add F4 support.
1938 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1940 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
1942 * normal/crypto.c (read_crypto_list): Likewise.
1943 * normal/dyncmd.c (read_command_list): Likewise.
1944 * normal/term.c (read_terminal_list): Likewise.
1945 * normal/main.c (read_lists): Use explicit prefix.
1946 (read_lists_hook): Use read_lists.
1947 (grub_normal_execute): Likewise.
1949 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1951 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
1952 Reported by: Thomas Schmitt.
1953 Add -no-emul-boot to grub-mkisofs parameters.
1955 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1957 * font/font.c: Indented.
1959 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
1961 Elif support to GRUB script (by Deepak Vankadaru).
1963 * tests/grub_script_if.in: New testcase.
1964 * conf/tests.rmk: Rule for new testcase.
1965 * script/parser.y: Grammar rules for elif.
1967 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
1969 While and until loops support to GRUB script.
1971 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
1972 (grub_script_create_cmdwhile): New function prototype.
1973 (grub_script_execute_cmdwhile): New function prototype.
1974 * script/execute.c (grub_script_execute_cmdwhile): New function.
1975 * script/parser.y (command): New commands.
1976 (whilecmd): New grammar rule.
1977 (untilcmd): New grammar rule.
1978 * script/script.c (grub_script_create_cmdwhile): New function.
1979 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
1982 * tests/grub_script_while1.in: New testcase.
1983 * conf/tests.rmk: Rule for new testcase.
1985 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1987 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
1990 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
1992 GRUB_BACKGROUND support.
1994 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
1995 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
1997 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1999 Load fonts and modules for gfxmenu in grub-mkconfig.
2000 Idea by: Mario Vazquez
2002 * util/grub.d/00_header.in: Load pf2 and image modules.
2004 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2006 grub-mkconfig multiple terminal support.
2008 * util/grub-mkconfig.in: Handle multiple terminals correctly.
2009 * util/grub.d/00_header.in: Likewise.
2011 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2013 * Makefile.in: Specify files explicitly instead of using $< and $@ since
2014 we use cd $(srcdir).
2016 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
2018 * util/grub.d/10_linux.in: Only use the first word of
2019 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
2020 spaces in GRUB_DISTRIBUTOR.
2021 * util/grub.d/10_kfreebsd.in: Likewise.
2022 * util/grub.d/10_hurd.in: Likewise.
2024 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
2026 Fix unit testing framework for Qemu 0.12.
2028 * tests/util/grub-shell.in: Remove -serial stdio option.
2030 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2032 POSIX header file wrappers.
2034 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
2036 * lib/posix_wrap/ctype.h: Likewise.
2037 * lib/posix_wrap/errno.h: Likewise.
2038 * lib/posix_wrap/langinfo.h: Likewise.
2039 * lib/posix_wrap/limits.h: Likewise.
2040 * lib/posix_wrap/localcharset.h: Likewise.
2041 * lib/posix_wrap/stdint.h: Likewise.
2042 * lib/posix_wrap/stdio.h: Likewise.
2043 * lib/posix_wrap/stdlib.h: Likewise.
2044 * lib/posix_wrap/string.h: Likewise.
2045 * lib/posix_wrap/sys/types.h: Likewise.
2046 * lib/posix_wrap/unistd.h: Likewise.
2047 * lib/posix_wrap/wchar.h: Likewise.
2048 * lib/posix_wrap/wctype.h: Likewise.
2049 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
2050 (grub_script.yy.h): Likewise.
2051 * script/yylex.l: Remove POSIX emulation #defines.
2052 * Makefile.in (POSIX_CFLAGS): New variable.
2053 (GNULIB_UTIL_CFLAGS): Likewise.
2057 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
2058 (regexp_mod_SOURCES): New variable.
2059 (regexp_mod_CFLAGS): Likewise.
2060 (regexp_mod_LDFLAGS): Likewise.
2061 * commands/regexp.c: New file.
2062 * gnulib/regcomp.c: New file. Imported from gnulib.
2063 * gnulib/regex.c: Likewise.
2064 * gnulib/regex_internal.c: Likewise.
2065 * gnulib/regex_internal.h: Likewise.
2066 * gnulib/regexec.c: Likewise.
2067 * gnulib/regex.h: Likewise.
2069 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2071 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
2072 unsupported video mode types.
2074 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2076 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
2078 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2080 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
2081 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
2083 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2085 Remove unused grub_vga_get_font.
2087 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
2088 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
2090 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2092 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
2093 * include/grub/misc.h: Likewise.
2095 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2097 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
2098 for which failure is fatal.
2100 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2102 * util/grub-install.in: Use mkdir -p to create grub directory.
2103 * util/i386/efi/grub-install.in: Likewise.
2104 * util/ieee1275/grub-install.in: Likewise.
2106 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2108 * Makefile.in (LEX): new variable.
2110 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2112 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
2113 `=' and added double quotes on operands of this equality test.
2115 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2117 * Makefile.in (uninstall): Remove a leftover debug echo.
2118 Reported by: Grégoire Sutre
2120 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2122 MIPS multiboot2 support.
2124 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
2125 (multiboot2_mod_SOURCES): New variable.
2126 (multiboot2_mod_CFLAGS): Likewise.
2127 (multiboot2_mod_LDFLAGS): Likewise.
2128 (multiboot2_mod_ASFLAGS): Likewise.
2129 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
2131 (MULTIBOOT_ENTRY_REGISTER): Likewise.
2132 (MULTIBOOT_MBI_REGISTER): Likewise.
2133 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
2134 (MULTIBOOT_ELF32_MACHINE): Likewise.
2135 (MULTIBOOT_ELF64_MACHINE): Likewise.
2136 * include/grub/mips/multiboot.h: New file.
2137 * include/grub/video.h (grub_video_driver_id): New type
2138 GRUB_VIDEO_DRIVER_SM712.
2139 (grub_video_get_info_and_fini): Export.
2140 (grub_video_get_palette): Likewise.
2141 (grub_video_get_driver_id): Likewise.
2142 * include/multiboot2.h: Resynced with spec.
2143 * loader/i386/multiboot.c: Moved from here ...
2144 * loader/multiboot.c: ... here. All users updated.
2145 (grub_multiboot_boot): Use platform-specific macros.
2146 * loader/i386/multiboot_elfxx.c: Moved from here ...
2147 * loader/multiboot_elfxx.c: ... here. All users updated.
2148 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
2149 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
2150 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
2152 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2154 Import gnulib argp module.
2156 * gnulib/argp-ba.c: New file.
2157 * gnulib/argp-eexst.c: Likewise.
2158 * gnulib/argp-fmtstream.c: Likewise.
2159 * gnulib/argp-fmtstream.h: Likewise.
2160 * gnulib/argp-fs-xinl.c: Likewise.
2161 * gnulib/argp-help.c: Likewise.
2162 * gnulib/argp-namefrob.h: Likewise.
2163 * gnulib/argp-parse.c: Likewise.
2164 * gnulib/argp-pin.c: Likewise.
2165 * gnulib/argp-pv.c: Likewise.
2166 * gnulib/argp-pvh.c: Likewise.
2167 * gnulib/argp-version-etc.c: Likewise.
2168 * gnulib/argp-version-etc.h: Likewise.
2169 * gnulib/argp-xinl.c: Likewise.
2170 * gnulib/argp.h: Likewise.
2172 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2174 * kern/device.c (grub_device_iterate): Clear errors after failed
2177 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2179 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
2180 returned by firmware.
2182 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
2184 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
2185 compilation on coreboot and qemu
2187 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2189 * include/multiboot2.h: Resync with spec.
2191 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2193 Multiboot2 tag support
2195 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
2196 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
2197 Remove loader/multiboot_loader.c.
2198 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
2199 (grub_multiboot2_real_boot): Likewise.
2200 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
2201 (grub_get_multiboot_mmap_count): New proto.
2202 (grub_fill_multiboot_mmap): Likewise.
2203 (grub_multiboot_set_video_mode): Likewise.
2204 (grub_multiboot_set_console): Likewise.
2205 (grub_multiboot_load): Likewise.
2206 (grub_multiboot_load_elf): Likewise.
2207 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
2208 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
2209 * include/multiboot.h: Resynced with specification.
2210 * include/multiboot2.h: Resynced with specification.
2211 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
2212 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
2213 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
2214 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
2216 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
2217 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
2218 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
2220 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
2222 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
2223 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
2225 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
2226 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
2227 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
2229 * loader/i386/multiboot_mbi2.c: New file.
2231 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2235 * Makefile.in (GNULIB_CFLAGS): New variable.
2236 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
2237 (grub_script_check_CFLAGS): New variable.
2238 * gnulib/alloca.h: Resync with gnulib.
2239 * gnulib/error.c: Likewise.
2240 * gnulib/error.h: Likewise.
2241 * gnulib/fnmatch.c: Likewise.
2242 * gnulib/fnmatch_loop.c: Likewise.
2243 * gnulib/getdelim.c: Likewise.
2244 * gnulib/getline.c: Likewise.
2245 * gnulib/getopt.c: Likewise.
2246 * gnulib/getopt1.c: Likewise.
2247 * gnulib/getopt_int.h: Likewise.
2248 * gnulib/gettext.h: Likewise.
2249 * gnulib/progname.c: Likewise.
2250 * gnulib/progname.h: Likewise.
2252 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
2254 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
2255 which is the case with --disabled-nls.
2257 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
2258 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
2259 * util/misc.c: Likewise.
2260 * util/mkisofs/mkisofs.c: Likewise.
2261 * util/mkisofs/mkisofs.h: Likewise.
2263 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2265 Simplify Apple CC support.
2267 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
2268 Add 0 byte at the end not to have a symbol with empty target.
2269 * mmap/i386/pc/mmap_helper.S: Likewise.
2270 * genmk.rb: Ignore errors 2030 and 2050.
2271 * kern/i386/pc/startup.S: Use LOCAL when possible.
2273 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
2275 Testcase and the fix for final semicolon on cmdline.
2277 * tests/grub_script_final_semicolon.in: New testcase.
2278 * conf/tests.rmk: Rules for the new testcase.
2279 * script/parser.y: Grammar fix.
2281 2010-03-26 BVK Chaitanya <bvk@localhost>
2283 Blank lines testcase for GRUB script.
2285 * tests/grub_script_blanklines.in: New testcase.
2286 * conf/tests.rmk: Rules for the new testcase.
2288 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2292 * genmk.rb: Add -DGRUB_FILE to all C targets.
2293 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
2294 * include/grub/list.h: Likewise.
2295 * include/grub/misc.h: Likewise.
2296 * include/grub/mm.h: Likewise.
2297 * include/grub/test.h: Likewise.
2298 * kern/mm.c: Likewise.
2299 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
2301 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2303 Sunpc partitions support.
2305 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
2306 (grub_fstest_SOURCES): Likewise.
2307 (pkglib_MODULES): Add part_sunpc.mod.
2308 (part_sunpc_mod_SOURCES): New variable.
2309 (part_sunpc_mod_CFLAGS): Likewise.
2310 (part_sunpc_mod_LDFLAGS): Likewise.
2311 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
2312 * partmap/sunpc.c: New file.
2314 2010-03-26 BVK Chaitanya <bvk@localhost>
2316 For loop support to GRUB script.
2318 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
2319 (grub_script_create_cmdfor): New function prototype.
2320 (grub_script_execute_cmdfor): New function prototype.
2321 * script/execute.c (grub_script_execute_cmdfor): New function.
2322 * script/parser.y (command): New for command.
2323 (forcmd): New grammar rule.
2324 * script/script.c (grub_script_create_cmdfor): New function.
2325 * util/grub-script-check.c (grub_script_execute_cmdfor): New
2327 * tests/grub_script_for1.in: New testcase.
2328 * conf/tests.rmk: Rules for new testcase.
2330 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2334 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
2335 'partition' is NULL, grub_partition_get_start already does that.
2336 * commands/loadenv.c (check_blocklists): Likewise.
2337 (write_blocklists): Likewise.
2338 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
2339 (grub_fstest_SOURCES): Likewise.
2340 (pkglib_MODULES): Add part_bsd.mod.
2341 (part_bsd_mod_SOURCES): New variable.
2342 (part_bsd_mod_CFLAGS): Likewise.
2343 (part_bsd_mod_LDFLAGS): Likewise.
2344 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
2345 (grub_emu_SOURCES): Likewise.
2346 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2347 * include/grub/bsdlabel.h: New file.
2348 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
2350 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
2351 (grub_partition_map_list): New variable.
2352 (grub_partition_map_register): Inline.
2353 (grub_partition_map_unregister): Likewise.
2354 (FOR_PARTITION_MAPS): New macro.
2355 (grub_partition_map_iterate): Removed.
2356 (grub_partition_get_start): Handle nested partitions.
2357 * include/grub/msdos_partition.h: Remove bsd-related entries.
2358 (grub_pc_partition): Remove.
2359 * kern/disk.c (grub_disk_close): Free partition data.
2360 (grub_disk_adjust_range): Handle nested partitions.
2361 * kern/partition.c (grub_partition_map_probe): New function.
2362 (grub_partition_probe): Parse name to number, handle subpartitions.
2363 (get_partmap): New function.
2364 (grub_partition_iterate): Handle subpartitions.
2365 (grub_partition_get_name): Likewise.
2366 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
2367 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
2368 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
2369 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
2371 (acorn_partition_map_probe): Remove.
2372 (acorn_partition_map_get_name): Likewise.
2373 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
2375 Set 'index' to 0 since there can be only one partition entry per sector.
2376 (amiga_partition_map_probe): Remove.
2377 (amiga_partition_map_get_name): Likewise.
2378 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
2380 Set 'offset' and 'index' to real positions of partitions.
2381 (apple_partition_map_probe): Remove.
2382 (apple_partition_map_get_name): Likewise.
2383 * partmap/bsdlabel.c: New file.
2384 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
2386 Allocate 'data' so it can be correctly freed.
2387 Set 'index' to offset inside sector.
2388 (gpt_partition_map_probe): Remove.
2389 (gpt_partition_map_get_name): Likewise.
2390 * partmap/msdos.c (grub_partition_parse): Remove.
2391 (pc_partition_map_iterate): Don't force raw access.
2393 Make 'ext_offset' a local variable.
2394 (pc_partition_map_probe): Remove.
2395 (pc_partition_map_get_name): Remove.
2396 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
2398 (sun_partition_map_probe): Remove.
2399 (sun_partition_map_get_name): Likewise.
2400 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
2401 (grub_pcpart_type): Likewise.
2402 * util/hostdisk.c (open_device): Handle new numbering scheme.
2403 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
2404 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
2405 * util/grub-probe.c (probe_partmap): Handle nested paritions.
2406 * util/grub-install.in: Insert all subpartition modules.
2407 * util/ieee1275/grub-install.in: Likewise.
2409 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
2411 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
2414 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
2416 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
2418 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
2420 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
2421 match where 'make install' puts them.
2422 * util/i386/efi/grub-install.in: Likewise.
2424 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
2426 * .bzrignore: Add gentrigtables, grub-script-check,
2427 grub_script_check_init.c, grub_script_check_init.h, and
2430 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
2432 * kern/parser.c: Indented.
2434 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2436 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
2438 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2440 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
2441 alpha_mask_size == 0 case.
2443 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
2445 GRUB shell lexer and parser improvements.
2447 * conf/any-emu.rmk: Build rule updates.
2448 * conf/common.rmk: Likewise.
2449 * conf/i386-coreboot.rmk: Likewise.
2450 * conf/i386-efi.rmk: Likewise.
2451 * conf/i386-ieee1275.rmk: Likewise.
2452 * conf/i386-pc.rmk: Likewise.
2453 * conf/powerpc-ieee1275.rmk: Likewise.
2454 * conf/x86_64-efi.rmk: Likewise.
2456 * configure.ac: Configure check for flex.
2458 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
2460 (grub_lexer_param): Struct member updates.
2461 (grub_parser_param): Likewise.
2462 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
2463 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
2464 (grub_script_lexer_init): Prototype update.
2465 (grub_script_lexer_record_start): Likewise.
2466 (grub_script_lexer_record_stop): Likewise.
2467 (grub_script_lexer_yywrap): New function prototype.
2468 (grub_script_lexer_fini): Likewise.
2469 (grub_script_execute_argument_to_string): Removed by...
2470 (grub_script_execute_argument_to_argv): ...better version.
2472 * script/execute.c (ROUND_UPTO): New macro.
2473 (grub_script_execute_cmdline): Out of memory fixes.
2474 (grub_script_execute_menuentry): Likewise.
2475 (grub_script_execute_argument_to_string): Removed. Update all
2477 (grub_script_execute_argument_to_argv): ...better version.
2478 * script/function.c (grub_script_function_create): Use
2479 grub_script_execute_argument_to_argv instead of
2480 grub_script_execute_argument_to_string.
2482 * script/lexer.c (check_varstate): Removed.
2483 (check_textstate): Removed.
2484 (grub_script_lexer_record_start): Likewise.
2485 (grub_script_lexer_record_stop): Likewise.
2486 (recordchar): Replaced with...
2487 (grub_script_lexer_record): ...new function.
2488 (nextchar): Removed.
2489 (grub_script_lexer_init): Rewritten.
2490 (grub_script_yylex): Rewritten.
2491 (append_newline): New function.
2492 (grub_script_lexer_yywrap): New function.
2493 (grub_script_lexer_fini): New function.
2494 (grub_script_yyerror): Sets error flag.
2496 * script/yylex.l: New file.
2497 (grub_lexer_yyfree): Wrapper for flex yyffre.
2498 (grub_lexer_yyalloc): Likewise.
2499 (grub_lexer_yyrealloc): Likewise.
2500 * script/parser.y: Refactored.
2502 * script/script.c (grub_script_arg_add): Out of memory fixes.
2503 (grub_script_add_arglist): Likewise.
2504 (grub_script_create_cmdline): Likewise.
2505 (grub_script_create_cmdmenu): Likewise.
2506 (grub_script_add_cmd): Likewise.
2507 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
2508 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
2511 * tests/grub_script_echo1.in: New testcase.
2512 * tests/grub_script_vars1.in: New testcase.
2513 * tests/grub_script_echo_keywords.in: New testcase.
2515 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2517 Remove some redundancy in build system.
2519 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
2520 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
2521 (TARGET_LDFLAGS): Add -nostdlib.
2522 (TARGET_IMG_LDFLAGS): Likewise.
2523 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
2524 anything since mmap isn't available.
2525 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
2527 (pkglib_MODULES): Remove reboot.mod.
2528 (reboot_mod_SOURCES): Removed.
2529 (reboot_mod_CFLAGS): Likewise.
2530 (reboot_mod_LDFLAGS): Likewise.
2531 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
2532 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
2533 (DEFSYMFILES): Add kernel_syms.lst.
2534 (kernel_img_HEADERS): Add common headers.
2535 (symlist.c): New target.
2536 (kernel_syms.lst): Likewise.
2537 (pkglib_MODULES): Add memdisk.mod.
2538 (memdisk_mod_SOURCES): New variable.
2539 (memdisk_mod_CFLAGS): Likewise.
2540 (memdisk_mod_LDFLAGS): Likewise.
2541 (pkglib_MODULES): Add reboot.mod.
2542 (reboot_mod_SOURCES): New variable.
2543 (reboot_mod_CFLAGS): Likewise.
2544 (reboot_mod_LDFLAGS): Likewise.
2545 (pkglib_MODULES): Add date.mod.
2546 (date_mod_SOURCES): New variable.
2547 (date_mod_CFLAGS): Likewise.
2548 (date_mod_LDFLAGS): Likewise.
2549 (pkglib_MODULES): Add datehook.mod.
2550 (datehook_mod_SOURCES): New variable.
2551 (datehook_mod_CFLAGS): Likewise.
2552 (datehook_mod_LDFLAGS): Likewise.
2553 (pkglib_MODULES): Add lsmmap.mod.
2554 (lsmmap_mod_SOURCES): New variable.
2555 (lsmmap_mod_CFLAGS): Likewise.
2556 (lsmmap_mod_LDFLAGS): Likewise.
2557 (pkglib_MODULES): Add boot.mod.
2558 (boot_mod_SOURCES): New variable.
2559 (boot_mod_CFLAGS): Likewise.
2560 (boot_mod_LDFLAGS): Likewise.
2561 * conf/i386-coreboot.rmk: Removed redundant parts.
2562 * conf/i386-ieee1275.rmk: Likewise.
2563 * conf/i386-pc.rmk: Likewise.
2564 * conf/mips-yeeloong.rmk: Likewise.
2565 * conf/mips.rmk: Likewise.
2566 * conf/powerpc-ieee1275.rmk: Likewise.
2567 * conf/sparc64-ieee1275.rmk: Likewise.
2568 * conf/x86_64-efi.rmk: Likewise.
2569 * conf/i386-coreboot.rmk: Moved qemu parts ..
2570 * conf/i386-qemu.rmk: ... here
2571 * conf/i386-efi.rmk: Moved common parts to...
2572 * conf/x86-efi.rmk: ... here.
2573 * conf/i386.rmk: Added modules common to all x86 variants.
2574 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
2575 * disk/memdisk.c: Remove grub/machine/kernel.h.
2576 * gensymlist.sh.in: Include symbol.h.
2577 * hook/datehook.c: Correct module name.
2578 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
2579 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
2580 * include/grub/i386/efi/serial.h: New file.
2581 * include/grub/x86_64/efi/serial.h: Likewise.
2582 * util/time.c: Likewise.
2583 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
2585 2010-03-14 Colin King <colin.king@ubuntu.com>
2586 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
2588 Shrink the pre-partition-table part of boot.img by eight bytes.
2590 * boot/i386/pc/boot.S (ERR): New macro.
2591 (chs_mode): Use ERR.
2592 (geometry_error): Likewise.
2593 (hd_probe_error): Remove. This is only used once, so we wrwite
2595 (read_error): Instead of printing read_error_string, just set up
2596 %si and fall through to ...
2597 (error_message): ... this new function, also used by ERR.
2599 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
2601 Speed up consecutive hostdisk operations on the same device.
2603 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
2604 (grub_util_biosdisk_open): Initialise disk->data.
2605 (struct linux_partition_cache): New structure.
2606 (linux_find_partition): Cache partition start positions; these are
2607 expensive to compute on every read and write.
2608 (open_device): Cache open file descriptor in disk->data, so that we
2609 don't have to reopen it and flush the buffer cache for consecutive
2610 operations on the same device.
2611 (grub_util_biosdisk_close): New function.
2612 (grub_util_biosdisk_dev): Set `close' member.
2614 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
2615 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
2616 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
2617 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
2618 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
2620 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2622 Compile parts of grub-emu as modules.
2624 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
2625 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
2626 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
2627 (all-local): Add $(GRUB_EMU).
2628 (install-local): Install $(GRUB_EMU).
2629 (uninstall): Uninstall $(GRUB_EMU).
2630 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
2631 * kern/dl.c: Likewise.
2632 * commands/sleep.c: Not include machine/time.h.
2633 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
2634 (COMMON_CFLAGS): Likewise.
2635 (sbin_UTILITIES): Remove grub-emu.
2636 (grub_emu_SOURCES): Removed.
2637 (kernel_img_RELOCATABLE): New variable.
2638 (pkglib_PROGRAMS): Add kernel.img.
2639 (kernel_img_SOURCES): New variable
2640 (kernel_img_CFLAGS): Likewise.
2641 (kernel_img_LDFLAGS): Likewise.
2642 (TARGET_NO_STRIP): Likewise.
2643 (TARGET_NO_DYNAMIC_MODULES): Likewise.
2644 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
2645 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
2646 (grub-emu): New target.
2647 (GRUB_EMU): New variable.
2648 * configure.ac: Whitelist -emu as possible x86_64 architecture.
2649 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
2650 * loader/xnu.c: Likewise.
2651 * include/grub/pci.h: Likewise.
2652 * genemuinit.sh: New file.
2653 * genemuinitheader.sh: Likewise.
2654 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
2655 Support TARGET_NO_DYNAMIC_MODULES.
2656 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
2657 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
2658 * disk/loopback.c: Likewise.
2659 * font/font_cmd.c: Likewise.
2660 * partmap/acorn.c: Likewise.
2661 * partmap/amiga.c: Likewise.
2662 * partmap/apple.c: Likewise.
2663 * partmap/gpt.c: Likewise.
2664 * partmap/msdos.c: Likewise.
2665 * partmap/sun.c: Likewise.
2666 * parttool/msdospart.c: Likewise.
2667 * term/gfxterm.c: Likewise.
2668 * video/bitmap.c: Likewise.
2669 * video/readers/jpeg.c: Likewise.
2670 * video/readers/png.c: Likewise.
2671 * video/readers/tga.c: Likewise.
2672 * video/video.c: Likewise.
2673 * util/grub-emu.c (read_command_list): Removed.
2674 (main): Don't call util_init_nls.
2675 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
2676 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
2678 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2680 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
2681 date.mod, datehook.mod.
2682 (datetime_mod_SOURCES): New variable.
2683 (datetime_mod_CFLAGS): Likewise.
2684 (datetime_mod_LDFLAGS): Likewise.
2685 (date_mod_SOURCES): Likewise.
2686 (date_mod_CFLAGS): Likewise.
2687 (date_mod_LDFLAGS): Likewise.
2688 (datehook_mod_SOURCES): Likewise.
2689 (datehook_mod_CFLAGS): Likewise.
2690 (datehook_mod_LDFLAGS): Likewise.
2691 * conf/sparc64-ieee1275.rmk: Likewise.
2692 * lib/ieee1275/datetime.c: New file.
2694 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2696 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
2697 (ieee1275_fb_mod_SOURCES): New variable.
2698 (ieee1275_fb_mod_CFLAGS): Likewise.
2699 (ieee1275_fb_mod_LDFLAGS): Likewise.
2700 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
2702 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
2703 (HEAP_MAX_ADDR): Likewise.
2704 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
2706 Correct stop condition.
2707 (grub_ieee1275_devices_iterate): New function.
2708 * video/ieee1275.c: New file.
2710 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2712 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
2714 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
2716 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
2717 SCRATCH_PAD_DISKBOOT as scratch.
2718 (bootit): Pass Openfirmware pointer in %o4.
2719 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
2721 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
2722 with util/grub-mkrawimage.c.
2723 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
2724 * include/grub/aout.h (AOUT_MID_SUN): New definition.
2725 (grub_aout_get_type) [GRUB_UTIL]: Removed.
2726 (grub_aout_load) [GRUB_UTIL]: Likewise.
2727 * include/grub/kernel.h (grub_modules_get_end): New proto.
2728 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
2729 (SCRATCH_PAD_BOOT): New definition.
2730 (SCRATCH_PAD_DISKBOOT): Likewise.
2731 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
2732 * include/grub/sparc64/ieee1275/ieee1275.h
2733 (grub_ieee1275_original_stack): New variable
2734 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
2736 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
2737 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
2738 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
2739 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
2740 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
2741 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
2742 (grub_platform_image_format_t): New type.
2743 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
2744 * kern/main.c (grub_modules_get_end)
2745 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
2746 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
2747 (codestart): Switch stacks.
2748 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
2750 (grub_heap_init): Use grub_modules_get_end.
2751 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
2753 * util/grub-mkrawimage.c (generate_image): Support sparc64.
2755 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
2757 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
2759 * util/grub-mkrescue.in: Base ISO UUID on UTC.
2761 2010-03-08 Matt Kraai <kraai@ftbfs.org>
2763 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
2766 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
2768 * genmoddep.awk: Output all missing symbols and not only first.
2770 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2772 * NEWS: Put the date of 1.98 release.
2774 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2776 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
2779 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2781 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
2782 completition in the middle of string.
2784 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2786 * util/grub-mkrescue.in: Use mktemp with explicit template.
2788 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2790 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
2792 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2794 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
2797 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2799 Fix FreeBSD compilation.
2801 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
2802 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
2804 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2806 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
2808 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2810 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
2812 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2814 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
2816 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
2818 Support relative image path in theme file.
2820 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
2821 (image_set_property): Handle theme_dir and relative path.
2823 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2825 * configure.ac: Alias amd64 to x86_64.
2827 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2829 * NEWS: mention multiboot on EFI.
2831 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2833 * kern/main.c (grub_load_modules): Handle errors from init functions of
2836 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2838 * normal/autofs.c (autoload_fs_module): Handle errors.
2840 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2842 Disable linux.mod on qemu-mips since it's not functional and leads
2843 to compilation failure.
2845 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
2846 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
2847 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
2848 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
2849 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
2850 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
2851 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
2852 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
2853 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
2854 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
2855 Reported by: BVK Chaitanya
2857 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
2859 * INSTALL: Add gettext as a dependency and add qemu to a new section
2860 "Prerequisites for make-check".
2862 2010-03-04 Christian Franke <franke@computer.org>
2864 * util/grub-pe2elf.c: Add missing include "progname.h".
2866 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2868 * normal/crypto.c (read_crypto_list): Fix a typo.
2869 Reported by: Seth Goldberg.
2871 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2873 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
2874 Reported by: Seth Goldberg.
2876 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2878 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
2881 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2883 * genmk.rb: Remove terminal*.lst in make clean.
2884 Reported by: Seth Goldberg.
2886 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2888 * util/i386/efi/grub-install.in: Copy gettext files.
2890 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2892 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
2894 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2896 Wait for user entry basing on presence of output rather than on errors.
2898 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
2899 (grub_install_newline_hook): Likewise.
2900 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
2901 * normal/menu.c (show_menu): Check line_counter to determine presence
2903 * normal/term.c (grub_normal_line_counter): New variable.
2904 (grub_normal_get_line_counter): New function.
2905 (grub_install_newline_hook): Likewise.
2907 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2909 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
2911 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2913 * configure.ac: Update version to 1.98.
2915 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
2917 * util/grub.d/10_linux.in (linux_entry): Don't default to
2918 gfxpayload=keep if Linux doesn't support video handover.
2920 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
2922 Don't compile video modules on yeeloong since video subsystem is part
2925 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
2926 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
2927 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
2928 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
2929 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
2930 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
2931 * include/grub/bitmap_scale.h: Likewise.
2932 * include/grub/bufio.h: Likewise.
2933 * include/grub/font.h: Likewise.
2934 * include/grub/gfxterm.h: Likewise.
2935 * include/grub/video.h: Likewise.
2936 * include/grub/vbe.h: Don't include video_fb.h.
2937 * video/i386/pc/vbe.c: Include video_fb.h.
2938 * commands/i386/pc/vbetest.c: Include video.h.
2940 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
2942 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
2943 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
2944 default entry if GRUB_SAVEDEFAULT=true. This allows using
2945 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
2946 saving a new default on every boot.
2948 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
2950 * normal/crypto.c (read_crypto_list): Fix a memory leak.
2951 * normal/term.c (read_terminal_list): Likewise.
2952 * normal/main.c (grub_normal_init_page): Likewise.
2953 (grub_normal_read_line_real): Likewise.
2955 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
2957 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
2959 Reported by: Seth Goldberg.
2961 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
2963 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
2964 duplicate declaration of `start'.
2966 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
2968 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
2970 Reported by: Georgy Buranov
2972 2010-02-20 Carles Pina i Estany <carles@pina.cat>
2974 * util/grub-mkrawimage.c (usage): Change string formatting to
2977 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
2979 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
2982 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
2984 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
2985 Reported by: Michael Suchanek.
2987 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2989 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
2990 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
2992 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
2994 Remove any reference to non-free fonts.
2996 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
2997 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
2998 uses non-free components.
2999 * font/font.c (grub_font_get_name): Remove example name.
3000 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
3001 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
3002 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
3003 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
3005 2010-02-16 Georgy Buranov <gburanov@gmail.com>
3007 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
3009 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
3011 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
3013 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
3015 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
3017 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
3019 * gensymlist.sh.in: Use TARGET_CC instead of CC.
3021 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3023 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
3024 * docs/grub.texi (Command-line and menu entry commands): Document play
3027 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3029 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
3030 parse arguments as inline tempo and notes. Move code for playing notes
3032 (play): ... new function.
3034 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3036 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
3037 grub_uint16_t instead of short.
3038 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
3039 disk from little endian to cpu endianness.
3041 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3043 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
3044 GRUB_TICKS_PER_SECOND instead of 120.
3046 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3048 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
3049 escape sequence after \e.
3051 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3053 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
3054 non-ASCII characters.
3056 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3058 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
3059 set root in single quotes to prevent \, from being unescaped.
3061 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3063 Prevent unknown commands from stopping menuentry execution.
3065 * script/execute.c (grub_script_execute_cmdline): Print error after
3068 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3070 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
3071 Reported by: Pavel Pisa.
3073 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3075 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
3077 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3079 Merge grub_ieee1275_map_physical into grub_map and rename to
3082 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
3083 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
3085 * kern/ieee1275/openfw.c (grub_map): Rename to ...
3086 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
3088 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
3090 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3092 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
3093 opening and not after.
3095 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3097 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
3100 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3102 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
3103 (alloc_phys): Use ALIGN_UP instead of align_addr.
3105 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3107 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
3109 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3111 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
3113 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3115 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
3118 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3120 Fix over-4GiB seek on sparc64.
3122 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
3123 Replace pos_i and pos_lo with pos. All users updated.
3124 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3126 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3128 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
3131 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3133 * util/grub-mkrawimage.c (main): Call set_program_name.
3135 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3137 Properly align 64-bit targets.
3139 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
3140 (generate_image): Use ALIGN_ADDR.
3142 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3144 Properly create cross-endian images.
3146 * include/grub/types.h (grub_host_to_target_addr): New macro
3147 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
3149 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3151 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
3153 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3155 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
3157 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
3158 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
3159 (grub_linux_boot): Divide by 64K when on VESA.
3161 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3163 Support GRUB_GFXPAYLOAD_LINUX.
3165 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
3166 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
3168 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3170 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
3171 to show messages instead of discarding them.
3172 Process errors after executing command and not before. Keep old method
3175 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
3177 * configure.ac: Check for ft2build.h.
3179 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3181 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
3183 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3185 * genkernsyms.sh.in: Use TARGET_CC.
3187 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
3191 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3193 * include/grub/multiboot2.h: Remove leftover file.
3194 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
3195 * include/grub/partition.h [GRUB_UTIL]: Likewise.
3197 2010-02-07 Yves Blusseau <blusseau@zetam.org>
3199 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
3201 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3203 Fix warnings in grub-emu when compiling with maximum warning options.
3205 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
3206 (grub_arch_modules_addr): Return 0 and not NULL.
3207 * util/misc.c (ENABLE_RELOCATABLE): New definition.
3208 (xstrdup): Use newstr instead of dup.
3209 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
3210 of disk to dsk to avoid shadowing.
3211 (find_free_slot): Fix prototype.
3212 * util/getroot.c (grub_util_is_dmraid): Make static.
3213 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
3214 Add missing prototype.
3215 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
3217 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3219 * loader/i386/linux.c (grub_linux_setup_video): Handle error
3222 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3224 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
3227 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3229 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
3230 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
3231 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
3232 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
3233 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
3234 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
3236 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3238 * include/grub/err.h (grub_err_printf): Don't export.
3240 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3242 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
3244 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3246 * include/grub/i18n.h (grub_gettext_dummy): Removed.
3247 * kern/misc.c (grub_gettext_dummy): Make static.
3249 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3251 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
3253 * kern/term.c (grub_putchar): Likewise.
3255 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3257 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
3258 buggy hook call and memory leak.
3260 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3262 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
3264 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3266 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
3268 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3270 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
3272 Return grub_errno on allocation error.
3274 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3276 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
3278 2010-02-06 Yves Blusseau <blusseau@zetam.org>
3280 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
3281 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
3283 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3285 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
3287 (grub_pxefs_open): Likewise.
3289 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3291 * util/grub.d/10_hurd.in: Add --class information to menuentries.
3292 * util/grub.d/10_kfreebsd.in: Likewise.
3293 * util/grub.d/10_linux.in: Likewise.
3295 2010-02-06 Colin D Bennett <colin@gibibit.com>
3297 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
3298 (gfxmenu_mod_SOURCES): New variable.
3299 (gfxmenu_mod_CFLAGS): Likewise.
3300 (gfxmenu_mod_LDFLAGS): Likewise.
3301 * include/grub/term.h (grub_term_set_current_output): Declare
3303 * docs/gfxmenu-theme-example.txt: New file.
3304 * gfxmenu/gfxmenu.c: Likewise.
3305 * gfxmenu/gui_box.c: Likewise.
3306 * gfxmenu/gui_canvas.c: Likewise.
3307 * gfxmenu/gui_circular_progress.c: Likewise.
3308 * gfxmenu/gui_image.c: Likewise.
3309 * gfxmenu/gui_label.c: Likewise.
3310 * gfxmenu/gui_list.c: Likewise.
3311 * gfxmenu/gui_progress_bar.c: Likewise.
3312 * gfxmenu/gui_string_util.c: Likewise.
3313 * gfxmenu/gui_util.c: Likewise.
3314 * gfxmenu/icon_manager.c: Likewise.
3315 * gfxmenu/model.c: Likewise.
3316 * gfxmenu/named_colors.c: Likewise.
3317 * gfxmenu/theme_loader.c: Likewise.
3318 * gfxmenu/view.c: Likewise.
3319 * gfxmenu/widget-box.c: Likewise.
3320 * include/grub/gfxmenu_model.h: Likewise.
3321 * include/grub/gfxmenu_view.h: Likewise.
3322 * include/grub/gfxwidgets.h: Likewise.
3323 * include/grub/gui.h: Likewise.
3324 * include/grub/gui_string_util.h: Likewise.
3325 * include/grub/icon_manager.h: Likewise.
3327 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3329 Agglomerate scrolling in gfxterm.
3331 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
3332 (grub_virtual_screen_setup): Initialise 'total_screen'.
3333 (write_char): Split to ...
3334 (paint_char): ... this ...
3335 (write_char): ... and this.
3336 (paint_char): Handle delayed scrolling.
3337 (draw_cursor): Likewise.
3338 (scroll_up): Split to ...
3339 (real_scroll): ... this ...
3340 (scroll_up): ... and this.
3341 (real_scroll): Handle multi-line scroll and draw below-the-bottom
3343 (grub_gfxterm_refresh): Call real_scroll.
3345 2010-02-06 Colin D Bennett <colin@gibibit.com>
3347 * include/grub/misc.h (grub_iscntrl): New inline function.
3348 (grub_isalnum): Likewise.
3349 (grub_strtol): Likewise.
3351 2010-02-06 Colin D Bennett <colin@gibibit.com>
3353 * normal/menu_text.c (get_entry_number): Move from here ...
3354 * normal/menu.c (get_entry_number): ... moved here.
3355 * include/grub/menu.h (grub_menu_get_default_entry_index):
3357 * normal/menu.c (grub_menu_get_default_entry_index): New function.
3358 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
3359 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
3360 (grub_menu_viewer_should_return): Likewise.
3361 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
3362 * normal/menu_text.c (run_menu): Enable menu switching.
3363 * normal/menu_viewer.c (should_return): New variable.
3364 (menu_viewer_changed): Likewise.
3365 (grub_menu_viewer_show_menu): Handle menu viewer changes.
3366 (grub_menu_viewer_should_return): New function.
3367 (menuviewer_write_hook): Likewise.
3368 (grub_menu_viewer_init): Likewise.
3370 2010-02-06 Colin D Bennet <colin@gibibit.com>
3371 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3373 Support for gfxterm in a window.
3375 * include/grub/gfxterm.h: New file.
3376 * include/grub/video.h (struct grub_video_rect): New declaration.
3377 (grub_video_rect_t): Likewise.
3378 * term/gfxterm.c (struct grub_gfxterm_window): New type.
3379 (refcount): New variable.
3380 (render_target): Likewise.
3382 (repaint_callback): Likewise.
3383 (grub_virtual_screen_setup): Use 'render_target'.
3384 (init_window): New function.
3385 (grub_gfxterm_init_window): Likewise.
3386 (grub_gfxterm_init): Check reference counter.
3388 (destroy_window): New function.
3389 (grub_gfxterm_destroy_window): Likewise.
3390 (grub_gfxterm_fini): Check reference counter.
3392 (redraw_screen_rect): Restore viewport.
3393 Use 'render_target' and 'window'.
3394 Call 'repaint_callback'.
3395 (write_char): Use 'render_target'.
3396 (draw_cursor): Likewise.
3397 (scroll_up): Restore viewport.
3398 Use 'render_target' and 'window'.
3399 Call 'repaint_callback'.
3400 (grub_gfxterm_cls): Likewise.
3401 (grub_gfxterm_refresh): Use 'window'.
3402 (grub_gfxterm_set_repaint_callback): New function.
3403 (grub_gfxterm_background_image_cmd): Use 'window'.
3404 (grub_gfxterm_get_term): New function.
3405 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
3407 2010-02-06 Colin D Bennett <colin@gibibit.com>
3409 Bitmap scaling support.
3411 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
3412 (bitmap_scale_mod_SOURCES): New variable.
3413 (bitmap_scale_mod_CFLAGS): Likewise.
3414 (bitmap_scale_mod_LDFLAGS): Likewise.
3415 * include/grub/bitmap_scale.h: New file.
3416 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
3417 (background_image_cmd_options): New variable.
3418 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
3419 (cmd): Rename and change type to ...
3420 (background_image_cmd_handle): ... this. All users updated.
3421 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
3422 * video/bitmap_scale.c: New file.
3424 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3428 * Makefile.in (LIBSDL): New variable.
3429 (enable_grub_emu_sdl): Likewise.
3430 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
3431 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
3432 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
3433 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
3434 * util/sdl.c: New file.
3436 2010-02-06 Colin D Bennett <colin@gibibit.com>
3437 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3439 Double buffering support.
3441 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
3442 * include/grub/video.h: Update comment.
3443 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
3445 (grub_video_fb_doublebuf_blit_init): New prototype.
3446 * term/gfxterm.c (scroll_up): Support double buffering.
3447 (grub_gfxterm_refresh): Likewise.
3448 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
3449 (grub_video_fb_doublebuf_blit_init): Likewise.
3450 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
3451 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
3452 'displayed_page', 'render_page' and 'update_screen'.
3453 (grub_video_vbe_fini): Free offscreen buffer.
3454 (doublebuf_pageflipping_commit): New function.
3455 (doublebuf_pageflipping_update_screen): Likewise.
3456 (doublebuf_pageflipping_init): Likewise.
3457 (double_buffering_init): Likewise.
3458 (grub_video_vbe_setup): Enable doublebuffering.
3459 (grub_video_vbe_swap_buffers): Implement.
3460 (grub_video_vbe_set_active_render_target): Handle double buffering.
3461 (grub_video_vbe_get_active_render_target): Likewise.
3462 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
3463 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
3464 (grub_video_vbe_enable_double_buffering): Likewise.
3465 (grub_video_vbe_swap_buffers): Use update_screen.
3466 (grub_video_set_mode): Use double buffering.
3468 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3470 * maintainance/gentrigtables.py: Remove.
3471 * lib/trig.c: Likewise.
3473 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
3475 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
3477 (trigtables.c): New rule.
3478 (gentrigtables): Likewise.
3479 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
3481 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3483 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
3486 2010-02-06 Colin D Bennet <colin@gibibit.com>
3488 Trigonometry support.
3490 * include/grub/trig.h: New file.
3491 * lib/trig.c: Likewise.
3492 * maintainance/gentrigtables.py: Likewise.
3493 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
3494 (trig_mod_SOURCES): New variable.
3495 (trig_mod_CFLAGS): Likewise.
3496 (trig_mod_LDFLAGS): Likewise.
3498 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3500 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
3503 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3505 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
3508 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3510 * util/hostdisk.c (open_device): Don't use partition device when reading
3511 before the partition.
3512 (grub_util_biosdisk_read): Don't read from partition and before the
3513 partition in single operation.
3514 (grub_util_biosdisk_write): Don't write to partition and before the
3515 partition in single operation.
3517 2010-02-03 Torsten Landschoff <torsten@debian.org>
3519 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3522 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3524 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
3526 (grub_biosdisk_write): Refuse to write to CDROM.
3528 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3530 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
3532 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3534 * font/font.c (find_glyph): Check that bmp_idx is available before
3536 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
3537 with (font == NULL).
3539 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
3541 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
3543 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
3545 * include/grub/script_sh.h (sourcecode): Add const qualifier.
3546 * util/grub-script-check.c (getline): Fix empty lines case.
3548 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
3550 * Makefile.in (check): Exit with fail status when one of the tests
3552 * tests/example_functional_test.c (example_test): Fix reversed assert.
3553 * tests/example_unit_test.c (example_test): Likewise.
3555 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
3557 * util/grub.d/10_linux.in: This script does not use any of the
3558 contents of gettext.sh, only the external command `gettext', so stop
3559 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
3560 the same prefix as GRUB.)
3561 * util/grub.d/10_kfreebsd.in: Likewise.
3563 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3565 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
3568 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3570 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3573 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3575 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
3576 having a 4KiB and not 32KiB buffer size.
3578 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3580 * util/hostfs.c: Include `<errno.h>'.
3581 (grub_hostfs_read): Handle errors from fseeko() and fread().
3583 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3585 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
3586 loop when using read hooks on files whose size isn't sector-aligned.
3588 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3590 Remove unused parameter.
3592 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
3593 (grub_iso9660_open): Remove initialization of `data->length'.
3595 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3597 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
3600 2010-01-27 Carles Pina i Estany <carles@pina.cat>
3602 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
3603 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
3605 2010-01-26 Carles Pina i Estany <carles@pina.cat>
3607 * util/bin2h.c (usage): Fix warning (space after backslash).
3609 2010-01-26 Carles Pina i Estany <carles@pina.cat>
3611 * font/font.c: Include `grub/fontformat.h.
3612 Remove font file format constants.
3613 (grub_font_load): Use the new macros.
3614 * include/grub/fontformat.h: New file.
3615 * util/grub-mkfont.c: Include `grub/fontformat.c'.
3616 (write_font_pf2): Use the new macros.
3618 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3620 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
3623 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3625 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
3627 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
3628 (_start): Macroify `0x7F'.
3630 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
3631 (make_install_device): Use "(pxe)" as fallback prefix when booting
3634 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
3636 * configure.ac: Reset LIBS after check for libgcc symbols.
3638 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
3640 * util/hostdisk.c (open_device): Add trailing newline to debug
3643 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
3645 * configure.ac: Check for `limits.h'.
3646 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
3648 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
3650 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
3651 capitalize error strings.
3653 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3655 * util/grub.d/10_hurd.in: Add a recovery mode.
3657 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
3659 * configure.ac: Check for libgcc symbols with -nostdlib.
3661 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
3663 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
3665 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3667 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
3668 stack since heap may be unavailable at that point.
3669 (grub_ofconsole_gotoxy): Likewise.
3671 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3673 * configure.ac: Check for _restgpr_14_x.
3674 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
3675 and _savegpr_* prototypes.
3677 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
3679 Use generic grub_reboot() for i386-efi.
3681 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
3682 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
3683 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
3685 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3687 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
3688 presence of "prefix" variable as it breaks when normal.mod is
3691 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3693 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
3694 stack since heap is unavailable at that point.
3696 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3698 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
3699 (grub_freebsd_bootinfo): Rewritten.
3700 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
3702 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3704 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
3706 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
3708 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
3711 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
3713 * util/misc.c (make_system_path_relative_to_its_root): Change the work
3714 around for handling "/" to the correct fix. Fix a memory leak. Use
3715 xstrdup instead of strdup.
3717 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3719 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
3721 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3723 Optimise glyph lookup by Basic Multilingual Plane lookup array.
3725 * font/font.c (struct grub_font): New member 'bmp_idx'.
3726 (font_init): Initialise 'bmp_idx'.
3727 (load_font_index): Fill 'bmp_idx'.
3728 (find_glyph): Make inline. Use bmp_idx for BMP characters.
3730 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3732 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
3735 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3737 Move context handling out of the kernel.
3739 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
3740 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
3741 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
3742 * conf/i386-efi.rmk: Likewise.
3743 * conf/i386-ieee1275.rmk: Likewise.
3744 * conf/i386-pc.rmk: Likewise.
3745 * conf/powerpc-ieee1275.rmk: Likewise.
3746 * conf/sparc64-ieee1275.rmk: Likewise.
3747 * conf/x86_64-efi.rmk: Likewise.
3748 * include/grub/env.h: Include grub/menu.h.
3749 (grub_env_var_type): Removed.
3750 (grub_env_var): Replaced field 'type' with 'global'.
3751 (grub_env_find): New prototype.
3752 (grub_env_context_open): Remove EXPORT_FUNC.
3753 (grub_env_context_close): Likewise.
3754 (grub_env_export): Likewise.
3755 (grub_env_set_data_slot): Removed.
3756 (grub_env_get_data_slot): Likewise.
3757 (grub_env_unset_data_slot): Likewise.
3758 (grub_env_unset_menu): New prototype.
3759 (grub_env_set_menu): Likewise.
3760 (grub_env_get_menu): Likewise.
3761 * include/grub/env_private.h: New file.
3762 * include/grub/normal.h (grub_context_init): New prototype.
3763 (grub_context_fini): Likewise.
3764 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
3765 * normal/context.c (grub_cmd_export): ... to here.
3766 * kern/env.c: Include env_private.h.
3767 (HASHSZ): Moved to include/grub/env_private.h.
3768 (grub_env_context): Likewise.
3769 (grub_env_sorted_var): Likewise.
3770 (current_context): Renamed from this ...
3771 (grub_current_context): ...to this. 'static' removed. All users updated.
3772 (grub_env_find): Removed 'static'.
3773 (grub_env_context_open): Moved to normal/context.c.
3774 (grub_env_context_close): Likewise.
3775 (grub_env_export): Likewise.
3776 (mangle_data_slot_name): Removed.
3777 (grub_env_set_data_slot): Likewise.
3778 (grub_env_get_data_slot): Likewise.
3779 (grub_env_unset_data_slot): Likewise.
3780 * kern/main.c (grub_set_root_dev): Don't export root.
3781 It will be done later.
3782 (grub_main): Don't export prefix.
3783 It will be done later.
3784 * normal/context.c: New file.
3785 * normal/main.c (free_menu): Use grub_env_unset_menu.
3786 (grub_normal_add_menu_entry): Use grub_env_get_menu.
3787 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
3788 (GRUB_MOD_INIT(normal)): Call grub_context_init.
3789 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
3791 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3795 * commands/setpci.c: New file.
3796 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
3797 (setpci_mod_SOURCES): New variable.
3798 (setpci_mod_CFLAGS): Likewise.
3799 (setpci_mod_LDFLAGS): Likewise.
3801 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3803 Byte-addressable PCI configuration space.
3805 * bus/pci.c (grub_pci_make_address): Use byte address instead of
3807 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
3808 GRUB_PCI_REG_CACHELINE.
3809 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
3810 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
3811 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
3812 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
3813 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
3814 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
3815 grub_pci_make_address.
3816 (lock_rom_area): Likewise.
3817 * commands/lspci.c (grub_lspci_iter): Use macroses
3818 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
3819 of grub_pci_make_address.
3820 * disk/ata.c (grub_ata_pciinit): Likewise.
3821 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
3822 (GRUB_PCI_REG_VENDOR): Likewise.
3823 (GRUB_PCI_REG_DEVICE): Likewise.
3824 (GRUB_PCI_REG_COMMAND): Likewise.
3825 (GRUB_PCI_REG_STATUS): Likewise.
3826 (GRUB_PCI_REG_REVISION): Likewise.
3827 (GRUB_PCI_REG_CLASS): Likewise.
3828 (GRUB_PCI_REG_CACHELINE): Likewise.
3829 (GRUB_PCI_REG_LAT_TIMER): Likewise.
3830 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
3831 (GRUB_PCI_REG_BIST): Likewise.
3832 (GRUB_PCI_REG_ADDRESSES): Likewise.
3833 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3834 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3835 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3836 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3837 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3838 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3839 (GRUB_PCI_REG_CIS_POINTER): Likewise.
3840 (GRUB_PCI_REG_SUBVENDOR): Likewise.
3841 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
3842 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
3843 (GRUB_PCI_REG_CAP_POINTER): Likewise.
3844 (GRUB_PCI_REG_IRQ_LINE): Likewise.
3845 (GRUB_PCI_REG_IRQ_PIN): Likewise.
3846 (GRUB_PCI_REG_MIN_GNT): Likewise.
3847 (GRUB_PCI_REG_MAX_LAT): Likewise.
3848 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
3849 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
3850 * video/efi_uga.c (find_framebuf): Likewise.
3851 * video/sm712.c (grub_video_sm712_setup): Likewise.
3852 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
3855 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3857 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
3858 can be reliably determined to be supported.
3860 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3862 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
3863 that VESA is supported.
3864 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
3867 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3869 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
3871 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3873 * util/misc.c (make_system_path_relative_to_its_root): Work around
3874 special-casing of "/", as previous incarnation of this routine did.
3876 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3878 Fix any-emu compilation.
3880 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
3881 * grub_bin2h_SOURCES: New variable.
3883 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3885 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
3887 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3889 * util/grub.d/00_header.in: Fix handling of locale_dir.
3891 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3893 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
3894 as possible unifont location (Gentoo).
3895 Reported by: Alexander Brüning
3897 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3899 Don't try to generate lists for kernel.img.
3901 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
3902 (pkglib_MODULES): Remove kernel.img.
3903 (kernel_img_EXPORTS): Removed.
3904 (kernel_img_RELOCATABLE): New variable.
3905 * conf/x86_64-efi.rmk: Likewise.
3906 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
3908 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3910 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
3911 grub_xasprintf or grub_snprintf.
3912 (grub_vsprintf): Likewise.
3913 (grub_snprintf): New proto.
3914 (grub_vsnprintf): Likewise.
3915 (grub_xasprintf): Likewise.
3916 (grub_xvasprintf): Likewise.
3917 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
3918 (grub_sprintf): Removed.
3919 (grub_vsnprintf): New function.
3920 (grub_snprintf): Likewise.
3921 (grub_xvasprintf): Likewise.
3922 (grub_xasprintf): Likewise.
3923 (grub_vsprintf): Renamed to ...
3924 (grub_vsnprintf_real): ...this. New argument max_len.
3926 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
3928 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
3929 fix grub-script-check warning.
3931 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3933 * include/grub/font.h (grub_font_load): Fix prototype.
3935 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3937 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
3939 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3941 * include/grub/x86_64/at_keyboard.h: New file.
3943 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3945 * loader/mips/linux.c: Include missing grub/i18n.h.
3947 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3949 * normal/menu.c (notify_execution_failure): Clarify error message.
3951 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3953 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
3954 return value (and revert all return statements). Update users.
3956 2010-01-20 Dan Merillat <debian@dan.merillat.org>
3958 * kern/device.c (grub_device_iterate): Allocate new part_ent
3959 structure based on sizeof (*p) rather than sizeof (p->next), to
3960 account for structure padding.
3962 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
3963 disk is NULL, which might happen for LVM physical volumes with no
3966 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3968 * loader/mips/linux.c (grub_cmd_initrd)
3969 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
3971 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3973 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
3974 (grub_video_video_init, grub_video_bitmap_init)
3975 (grub_font_manager_init, grub_term_gfxterm_init)
3976 (grub_at_keyboard_init): New extern declarations.
3977 (grub_machine_init): Initialize gfxterm and at_keyboard.
3979 * kern/main.c (grub_main): Revert grub_printf delay kludge.
3981 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
3982 `gfxterm.mod' into core image.
3984 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3985 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3986 (kernel_img_FORMAT): Copy to ...
3988 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3989 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3990 (kernel_img_FORMAT): ... here, and ...
3992 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3993 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3994 (kernel_img_FORMAT): ... here.
3996 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
3997 and input (at_keyboard) terminals in kernel.
3998 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
4000 (pkglib_MODULES): Remove `pci.mod'.
4001 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
4002 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
4003 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
4004 (at_keyboard_mod_LDFLAGS): Remove variables.
4006 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
4008 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
4010 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
4012 * include/grub/mips/libgcc.h: Only export symbols for functions
4013 that libgcc provides.
4015 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
4019 * bus/bonito.c: New file.
4020 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
4021 GRUB_PCI_NUM_DEVICES.
4022 * term/i386/pc/serial.c: Move to ...
4023 * term/serial.c: ... here. All users updated.
4024 * util/i386/pc/grub-mkimage.c: Move to ...
4025 * util/grub-mkrawimage.c: ... here. All users updated.
4026 * term/i386/pc/at_keyboard.c: Move to ...
4027 * term/at_keyboard.c: ... here. All users updated.
4028 * conf/mips-qemu-mips.rmk: New file.
4029 * conf/mips-yeeloong.rmk: Likewise.
4030 * conf/mips.rmk: Likewise.
4031 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
4033 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
4035 (grub_ata_pciinit): Support CS5536.
4036 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
4037 * font/font_cmd.c (loadfont_command): Open file before passing it to
4039 (pseudo_file_read): New function.
4040 (pseudo_file_close): Likewise.
4041 (pseudo_fs): New structure.
4042 (load_font_module): New function.
4043 (GRUB_MOD_INIT(font_manager)): Load embedded font.
4044 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
4045 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
4046 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
4047 * include/grub/i386/at_keyboard.h: Split into ...
4048 * include/grub/at_keyboard.h: ... this ...
4049 * include/grub/i386/at_keyboard.h: ... and this.
4050 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
4052 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
4054 (grub_elf64_size): Likewise.
4055 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
4057 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
4058 * include/grub/i386/coreboot/serial.h: Rewritten.
4059 * include/grub/i386/ieee1275/serial.h: Include
4060 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
4061 * include/grub/i386/pc/serial.h: Moved from here ...
4062 * include/grub/serial.h: ... to here. All users updated.
4063 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
4064 (GRUB_PCI_NUM_BUS): Likewise.
4065 (GRUB_PCI_NUM_DEVICES): Likewise.
4066 (grub_pci_device_map_range): Add missing volatile keyword.
4067 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
4068 * include/grub/mips/at_keyboard.h: New file.
4069 * include/grub/mips/cache.h: Likewise.
4070 * include/grub/mips/io.h: Likewise.
4071 * include/grub/mips/kernel.h: Likewise.
4072 * include/grub/mips/libgcc.h: Likewise.
4073 * include/grub/mips/pci.h: Likewise.
4074 * include/grub/mips/qemu-mips/boot.h: Likewise.
4075 * include/grub/mips/qemu-mips/kernel.h: Likewise.
4076 * include/grub/mips/qemu-mips/loader.h: Likewise.
4077 * include/grub/mips/qemu-mips/memory.h: Likewise.
4078 * include/grub/mips/qemu-mips/serial.h: Likewise.
4079 * include/grub/mips/qemu-mips/time.h: Likewise.
4080 * include/grub/mips/relocator.h: Likewise.
4081 * include/grub/mips/time.h: Likewise.
4082 * include/grub/mips/types.h: Likewise.
4083 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
4084 * include/grub/mips/yeeloong/boot.h: Likewise.
4085 * include/grub/mips/yeeloong/kernel.h: Likewise.
4086 * include/grub/mips/yeeloong/loader.h: Likewise.
4087 * include/grub/mips/yeeloong/memory.h: Likewise.
4088 * include/grub/mips/yeeloong/pci.h: Likewise.
4089 * include/grub/mips/yeeloong/serial.h: Likewise.
4090 * include/grub/mips/yeeloong/time.h: Likewise.
4091 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
4092 * kern/elf.c (grub_elf32_size): New parameter. All users
4094 (grub_elf64_size): Likewise.
4095 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
4096 Load modules before saying "Welcome to GRUB!".
4097 Call grub_refresh after saying "Welcome to GRUB!".
4098 * kern/mips/cache.S: New file.
4099 * kern/mips/cache_flush.S: Likewise.
4100 * kern/mips/dl.c: Likewise.
4101 * kern/mips/init.c: Likewise.
4102 * kern/mips/qemu-mips/init.c: Likewise.
4103 * kern/mips/startup.S: Likewise.
4104 * kern/mips/yeeloong/init.c: Likewise.
4105 * kern/term.c (grub_putcode): Handle NULL terminal.
4106 (grub_getcharwidth): Likewise.
4107 (grub_getkey): Likewise.
4108 (grub_checkkey): Likewise.
4109 (grub_getkeystatus): Likewise.
4110 (grub_getxy): Likewise.
4111 (grub_getwh): Likewise.
4112 (grub_gotoxy): Likewise.
4113 (grub_cls): Likewise.
4114 (grub_setcolorstate): Likewise.
4115 (grub_setcolor): Likewise.
4116 (grub_getcolor): Likewise.
4117 (grub_refresh): Likewise.
4118 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
4119 (write_jump): Add hatch nop.
4120 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
4121 * lib/mips/setjmp.S: New file.
4122 * loader/mips/linux.c: Likewise.
4123 * term/i386/pc/at_keyboard.c: Move from here ...
4124 * term/at_keyboard.c: ... to here.
4125 * term/i386/pc/serial.c: Moved from here ...
4126 * term/serial.c: ... to here. All users updated.
4127 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
4128 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
4129 (serial_translate_key_sequence): Avoid deadlock.
4130 (grub_serial_getkey): Handle backspace.
4131 (grub_serial_putchar): Fix newline handling.
4132 * util/i386/pc/grub-mkimage.c: Move from here ...
4133 * util/grub-mkrawimage.c: ... to here. All users updated.
4134 (generate_image): New parameters 'font_path' and 'format'.
4135 Support embedding font.
4136 Use grub_host_to_target* instead of grub_cpu_to_le*.
4137 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
4138 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
4139 (options): New option "--font".
4141 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
4142 (main): Handle "--font".
4143 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
4144 (grub_virtual_screen_setup): Set bg_color_display.
4145 (redraw_screen_rect): Use bg_color_display instead of incorrect
4147 (grub_gfxterm_cls): Likewise.
4148 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
4149 Support embedding config file.
4150 (add_segments): Likewise.
4151 (options): New option "--config".
4152 (main): Handle "--config".
4153 * video/sm712.c: New file.
4155 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4157 Fix parallel builds.
4159 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
4160 font.c depend on ascii.h).
4162 2010-01-12 Carles Pina i Estany <carles@pina.cat>
4164 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
4166 2010-01-11 Carles Pina i Estany <carles@pina.cat>
4168 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
4169 By default: disabled.
4170 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
4173 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4175 * font/font.c: Update copyright years.
4176 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
4178 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4180 * font/font.c: Include `ascii.h'.
4181 (ASCII_BITMAP_SIZE): New macro.
4182 (ascii_font_glyph): Define.
4183 (ascii_glyph_lookup): New function.
4184 (grub_font_get_string_width): Change comment. If glyph not found, use
4186 (grub_font_get_glyph_with_fallback): If glyph not available returns
4188 * util/grub-mkfont.c (file_formats): New enum.
4189 (options): Add `ascii-bitmaps' new option.
4190 (usage): Add `asii-bitmaps' new option.
4191 (write_font_ascii_bitmap): New function.
4192 (write_font): Rename to ...
4193 (write_font_p2): ... this. Remove print_glyphs call.
4194 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
4195 used. Call print_glyphs.
4196 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
4198 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4200 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
4201 (grub_bin2h_SOURCES): New variable.
4202 * util/bin2h.c: New file.
4204 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4206 * include/multiboot.h: Resynced with spec.
4207 * include/multiboot2.h: Likewise.
4208 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
4209 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
4211 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4213 * include/grub/term.h (grub_term_register_input,
4214 grub_term_register_output): Check return of terminal init()
4215 routines, and abort if errors are raised.
4217 * commands/terminal.c: Update copyright year.
4219 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4221 * commands/terminal.c (grub_cmd_terminal_input)
4222 (grub_cmd_terminal_output): Check return of terminal init()
4223 routines, and abort if errors are raised.
4225 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4227 * include/grub/i386/bsd.h: Fix include pathes.
4229 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4231 Add missing *BSD copyright headers.
4233 * include/grub/aout.h: Add BSD licence.
4234 * include/grub/i386/bsd.h: Parts under different licences moved to ...
4235 * include/grub/i386/freebsd_linker.h: ... here,
4236 * include/grub/i386/freebsd_reboot.h: ... here,
4237 * include/grub/i386/netbsd_bootinfo.h: ... here,
4238 * include/grub/i386/netbsd_reboot.h: ... here,
4239 * include/grub/i386/openbsd_bootarg.h: ... here,
4240 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
4241 licence to each file.
4243 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4245 * acinclude.m4: Remove `nop' assembly instruction; it's not
4246 implemented by all architectures.
4248 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4250 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
4251 ELILO. This is no longer necessary.
4253 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
4255 Added new tool, grub-scrit-check to verify grub.cfg syntax.
4257 * util/grub-script-check.c: grub-script-check tool.
4258 * conf/common.rmk: Make rules for grub-script-check.
4260 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4262 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
4263 spotting it back in 2008. Shame on me for forgetting he did.
4265 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
4267 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4269 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
4270 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
4271 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
4272 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
4273 (GRUB_VIDEO_TYPE_EFI): Rename to ...
4274 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
4276 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
4278 * include/grub/test.h: Add license header.
4279 * tests/example_functional_test.c: Likewise.
4280 * tests/example_unit_test.c: Likewise.
4281 * tests/lib/functional_test.c: Likewise.
4282 * tests/lib/test.c: Likewise.
4283 * tests/lib/unit_test.c: Likewise.
4285 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
4287 Use flag-based instead of hook-based video mode selection and "auto"
4290 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
4291 (grub_video_set_mode): Changed prototype. All users updated.
4292 (grub_video_check_mode_flag): New inline function.
4293 * video/video.c (parse_modespec): New function.
4294 (grub_video_set_mode): Parse flags and keywords.
4296 2010-01-17 Carles Pina i Estany <carles@pina.cat>
4298 * util/misc.c (grub_util_info): Fix the order of the parameters in a
4301 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
4303 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
4305 2010-01-16 Carles Pina i Estany <carles@pina.cat>
4307 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
4309 * util/grub-emu.c (usage): Likewise.
4310 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
4311 * util/i386/efi/grub-mkimage.c (usage): Likewise.
4312 * util/i386/pc/grub-mkimage.c (usage): Likewise.
4313 * util/i386/pc/grub-setup.c (usage): Likewise.
4315 2010-01-16 Carles Pina i Estany <carles@pina.cat>
4317 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
4319 (grub_util_info): Likewise.
4320 (grub_util_error): Likewise.
4321 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
4322 and/or new lines in `grub_util_warna', `grub_util_info',
4323 `grub_util_error' calls.
4324 * util/getroot.c: Likewise.
4325 * util/grub-editenv.c: Likewise.
4326 * util/grub-emu.c: Likewise.
4327 * util/grub-fstest.c: Likewise.
4328 * util/grub-mkdevicemap.c: Likewise.
4329 * util/grub-mkfont.c: Likewise.
4330 * util/grub-mkpasswd-pbkdf2.c: Likewise.
4331 * util/grub-mkrelpath.c: Likewise.
4332 * util/grub-pe2elf.c: Likewise.
4333 * util/grub-probe.c: Likewise.
4334 * util/hostdisk.c: Likewise.
4335 * util/i386/efi/grub-mkimage.c: Likewise.
4336 * util/i386/pc/grub-mkimage.c: Likewise.
4337 * util/i386/pc/grub-setup.c: Likewise.
4338 * util/ieee1275/ofpath.c: Likewise.
4339 * util/mkisofs/eltorito.c: Likewise.
4340 * util/mkisofs/rock.c: Likewise.
4341 * util/mkisofs/write.c: Likewise.
4342 * util/raid.c: Likewise.
4343 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
4344 * util/sparc64/ieee1275/grub-setup.c: Likewise.
4346 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4348 Enable multiboot on non-pc.
4350 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
4351 multiboot.mod and multiboot2.mod to ...
4352 * conf/i386.rmk (pkglib_MODULES): ... here.
4353 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
4355 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
4356 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
4358 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
4359 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
4361 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
4362 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
4364 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
4365 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
4367 (ata_mod_SOURCES): Removed.
4368 (ata_mod_CFLAGS): Likewise.
4369 (ata_mod_LDFLAGS): Likewise.
4370 (relocator_mod_SOURCES): Removed.
4371 (relocator_mod_CFLAGS): Likewise.
4372 (relocator_mod_ASFLAGS): Likewise.
4373 (relocator_mod_LDFLAGS): Likewise.
4375 * include/grub/x86_64/multiboot.h: New file.
4376 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
4379 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4381 Video multiboot support.
4383 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
4385 * include/multiboot.h: Resynced with multiboot specification.
4386 * include/multiboot2.h: Likewise.
4387 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
4388 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
4389 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
4390 (HAS_VGA_TEXT): Likewise.
4391 (accepts_video): New variable.
4392 (grub_multiboot_set_accepts_video): New function.
4393 (grub_multiboot_get_mbi_size): Account for video structures.
4394 (set_video_mode): New function.
4395 (retrieve_video_parameters): Likewise.
4396 (grub_multiboot_make_mbi): Fill video fields.
4398 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4402 * include/grub/video.h (grub_video_driver_id): New type.
4403 (grub_video_adapter): New member 'id'. All users updated.
4404 (grub_video_get_driver_id): New proto.
4405 * video/video.c (grub_video_get_driver_id): New function.
4407 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4409 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
4412 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4414 * normal/cmdline.c (print_completion): Gettextizze.
4416 2001-01-14 Carles Pina i Estany <carles@pina.cat>
4418 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
4420 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4422 * gettext/gettext.c (grub_gettext_translate): Push and pop
4424 (grub_gettext_delete_list): Change comment style.
4425 * kern/err.c (grub_error): Gettextizze.
4426 (grub_fatal): Gettextizze.
4428 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4430 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
4431 (grub_linux16_real_boot): ... this.
4432 * kern/i386/loader.S: Likewise.
4433 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
4434 (grub_linux16_boot): New function. Switches to text mode and calls
4435 grub_linux16_real_boot().
4437 * loader/i386/bsd.c: Include `<grub/video.h>'.
4438 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
4439 text mode before calling grub_unix_real_boot().
4441 * loader/i386/multiboot.c: Include `<grub/video.h>'.
4442 (grub_multiboot_boot): Switch to text mode before calling
4443 grub_relocator32_boot().
4445 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
4446 (grub_chainloader_boot): Switch to text mode before calling
4447 grub_chainloader_real_boot().
4449 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4450 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4452 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
4455 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4456 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4458 * util/grub.d/00_header.in: Define a "savedefault" function for use
4460 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
4462 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4463 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4465 * util/grub-mkconfig_lib.in (save_default_entry): Only set
4466 saved_entry if boot_once is unset.
4467 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
4468 previous saved entry (i.e. grub-reboot).
4470 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4472 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
4474 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4476 * util/grub.d/00_header.in: Use `set var=val' rather than plain
4478 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
4480 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4482 * util/grub-reboot.in: Fix --version output.
4483 * util/grub-set-default.in: Likewise.
4485 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4487 * util/grub.d/00_header.in: Silently ignore zero-sized environment
4490 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4492 * util/grub.d/00_header.in: Quote the value assigned to `default',
4493 in case it contains spaces.
4495 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4497 * util/grub.d/30_os-prober.in: Fix merge error that moved a
4498 `save_default_entry' call from the macosx case to the linux case.
4500 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4501 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
4503 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
4504 in `chosen' environment variable.
4505 * normal/menu_text.c (get_entry_number): Check if the variable
4506 matches the title of a menu entry.
4507 (run_menu): Pass menu to get_entry_number.
4509 * util/grub-reboot.in: New file.
4510 * util/grub-set-default.in: New file.
4511 * conf/common.rmk (grub-reboot): New utility.
4512 (grub-set-default): New utility.
4514 * util/grub-mkconfig_lib.in (save_default_entry): New function.
4515 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
4516 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
4517 move it to `saved_entry' for the next boot. Load environment on
4519 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
4520 * util/grub.d/10_hurd.in: Likewise.
4521 * util/grub.d/10_linux.in (linux_entry): Likewise.
4522 * util/grub.d/10_windows.in: Likewise.
4523 * util/grub.d/30_os-prober.in: Likewise.
4525 * util/grub-install.in: Create environment block.
4526 * util/i386/efi/grub-install.in: Likewise.
4527 * util/ieee1275/grub-install.in: Likewise.
4528 * util/sparc64/ieee1275/grub-install.in: Likewise.
4530 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
4532 Unit testing framework for GRUB.
4534 * Makefile.in: Test framework build rules for 'make check'.
4535 * conf/tests.rmk: Build rules for individual tests and framework.
4537 * include/grub/test.h: Header file for whitebox tests.
4538 * tests/lib/functional_test.c: Framework support for whitebox
4540 * tests/lib/test.c: Common whitebox testing code for unit and
4542 * tests/lib/unit_test.c: Framework support for whitebox unit
4545 * tests/util/grub-shell-tester.in: Support utility for grub-script
4547 * tests/util/grub-shell.in: Utility to execute grub-script
4548 commands in a Qemu instance.
4550 * tests/example_functional_test.c: Example whitebox functional
4552 * tests/example_grub_script_test.in: Example grub-script test.
4553 * tests/example_scripted_test.in: Example scripted test.
4554 * tests/example_unit_test.c: Example whitebox unit test.
4556 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
4558 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
4559 Add loader/i386/multiboot_mbi.c.
4560 (multiboot2_mod_SOURCES): Likewise.
4561 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
4562 (multiboot2_mod_SOURCES): Likewise.
4563 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
4564 (grub_multiboot_make_mbi): Likewise.
4565 (grub_multiboot_free_mbi): Likewise.
4566 (grub_multiboot_init_mbi): Likewise.
4567 (grub_multiboot_add_module): Likewise.
4568 (grub_multiboot_set_bootdev): Likewise.
4569 * loader/i386/multiboot.c (mbi): Removed.
4570 (mbi_dest): Likewise.
4571 (alloc_mbi): New variable.
4572 (grub_multiboot_payload_size): Removed. All users updated.
4573 (grub_multiboot_pure_size): New variable.
4574 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
4575 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
4576 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
4577 (grub_fill_multiboot_mmap): Likewise.
4578 (grub_multiboot_get_bootdev): Likewise.
4579 (grub_multiboot): Use multiboot_mbi functions.
4580 * loader/i386/multiboot_mbi.c: New file.
4582 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4584 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
4585 it would result in module crash.
4587 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4589 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
4590 (grub_ofconsole_getwh): Split to ...
4591 (grub_ofconsole_getwh): ... this.
4592 (grub_ofconsole_dimensions): ...and this.
4593 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
4595 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
4597 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
4599 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4601 * loader/i386/pc/multiboot2.c: Removed stalled file.
4603 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4605 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
4606 Reported by: Grégoire Sutre
4608 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
4610 * util/misc.c (canonicalize_file_name): New function.
4611 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
4612 instead of realpath().
4614 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
4616 * util/grub-install.in (usage): Clarify meaning of --root-directory,
4617 and make it clearer that it's optional. Based on confusion
4620 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4622 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
4623 in premature implicit newline.
4625 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4627 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
4628 which resulted in garbled command line at the end of screen.
4630 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4632 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
4633 initialization with similar approach as with other Linux loaders.
4635 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4637 Fix i386-ieee1275 build.
4639 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
4640 and grub_term_height() for video_{width,height} initialization.
4642 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4646 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
4648 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4649 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4651 Support for multiple terminals.
4653 * Makefile.in (pkglib_DATA): terminal.lst.
4654 (terminal.lst): New target.
4655 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
4656 (GRUB_MOD_INIT(handler)): Likewise.
4657 (GRUB_MOD_FINI(handler)): Likewise.
4658 * commands/help.c (grub_cmd_help): Handle multiple terminals.
4659 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
4660 * commands/sleep.c (do_print): Use grub_term_restore_pos.
4661 (grub_cmd_sleep): Use grub_term_save_pos.
4662 * commands/terminal.c: New file.
4663 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
4664 commands/terminal.c and lib/charset.c.
4665 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
4666 (pkglib_MODULES): Add terminal.mod.
4667 (terminal_mod_SOURCES): New variable.
4668 (terminal_mod_CFLAGS): Likewise.
4669 (terminal_mod_LDFLAGS): Likewise.
4670 * genhandlerlist.sh: Don't handle terminals.
4671 * genmk.rb: Generate terminal-*.lst.
4672 * genterminallist.sh: New file.
4673 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
4674 (grub_is_valid_utf8): Likewise.
4675 (grub_utf8_to_ucs4_alloc): Likewise.
4676 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
4677 (grub_menu_register_viewer): Changed argument.
4678 (grub_menu_try_text): New proto.
4679 (grub_gfxmenu_try_hook): New declaration.
4680 * include/grub/normal.h (grub_normal_exit_level): New declaration.
4681 (grub_menu_init_page): Additional argument term.
4682 (grub_normal_init_page): Likewise.
4683 (grub_cmdline_get): Arguments simplified.
4684 (grub_utf8_to_ucs4_alloc): Removed.
4685 (grub_print_ucs4): Additional argument term.
4686 (grub_getstringwidth): Likewise.
4687 (grub_print_message_indented): Likewise.
4688 (grub_menu_text_register_instances): New proto.
4689 (grub_show_menu): Likewise.
4690 (read_terminal_list): Likewise.
4691 (grub_set_more): Likewise.
4692 * include/grub/parser.h: Include handler.h.
4693 * include/grub/reader.h: Rewritten.
4694 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
4695 (GRUB_TERM_WIDTH): Changed to function.
4696 (GRUB_TERM_HEIGHT): Likewise.
4697 (GRUB_TERM_BORDER_WIDTH): Likewise.
4698 (GRUB_TERM_BORDER_HEIGHT): Likewise.
4699 (GRUB_TERM_NUM_ENTRIES): Likewise.
4700 (GRUB_TERM_ENTRY_WIDTH): Likewise.
4701 (GRUB_TERM_CURSOR_X): Likewise.
4702 (grub_term_input_class): Likewise.
4703 (grub_term_output_class): Likewise.
4704 (grub_term_outputs_disabled): New declaration.
4705 (grub_term_inputs_disabled): Likewise.
4706 (grub_term_outputs): Likewise.
4707 (grub_term_inputs): Likewise.
4708 (grub_term_register_input): Rewritten.
4709 (grub_term_register_output): Likewise.
4710 (grub_term_unregister_input): Likewise.
4711 (grub_term_unregister_output): Likewise.
4712 (FOR_ACTIVE_TERM_INPUTS): New macro.
4713 (FOR_DISABLED_TERM_INPUTS): Likewise.
4714 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
4715 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
4716 * include/grub/terminfo.h: Add oterm argument to all protypes.
4717 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
4718 Use grub_rescue_run.
4719 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
4721 * kern/reader.c: Removed. All users updated.
4722 * kern/rescue_reader.c (grub_rescue_init): Removed.
4723 (grub_rescue_reader): Likewise.
4724 (grub_register_rescue_reader): Likewise.
4725 (grub_rescue_run): New function based on kern/reader.c.
4726 * kern/term.c: Adapted for multiterm.
4727 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
4728 (grub_is_valid_utf8): Likewise.
4729 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
4730 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
4732 * loader/i386/linux.c (grub_linux_boot): Likewise.
4733 * normal/auth.c (grub_username_get): New function.
4734 (grub_auth_check_authentication): Use grub_username_get.
4735 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
4736 * normal/color.c: Adapt for multiterm.
4737 * normal/main.c (read_config_file): Don't use grub_reader_loop.
4738 (grub_normal_init_page): Additional argument term.
4739 (read_lists): Call read_terminal_lists.
4740 (grub_enter_normal_mode): Call grub_cmdline_run.
4741 Handle grub_normal_exit_level.
4742 (grub_cmd_normal): Make reentrant.
4743 (grub_cmd_normal_exit): New function.
4744 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
4745 * normal/menu.c: Adapt for multiterm.
4746 * normal/menu_entry.c: Likewise.
4747 * normal/menu_text.c: Likewise.
4748 * normal/menu_viewer.c: Removed. All users updated.
4749 * normal/term.c: New file.
4750 * util/console.c: Change order of includes to workaround a bug in
4752 * term/terminfo.c: New argument oterm on all exported functions.
4754 * util/grub-editenv.c (grub_term_input_class): Removed.
4755 (grub_term_output_class): Likewise.
4757 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4759 Make loader output a bit more user-friendly.
4761 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
4762 is being loaded. Likewise for the Hurd.
4764 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
4765 that kernel of FreeBSD ${version} is being loaded.
4767 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
4769 (grub_cmd_initrd): Likewise.
4770 * util/grub.d/10_linux.in (linux_entry): Print message indicating
4771 that Linux ${version} is being loaded. Likewise for initrd.
4773 2010-01-09 Carles Pina i Estany <carles@pina.cat>
4775 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
4777 2010-01-08 Carles Pina i Estany <carles@pina.cat>
4779 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
4780 (GRUB_MOD_INIT): Gettextizze.
4781 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
4782 (GRUB_MOD_INIT): Gettextizze.
4783 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
4784 (grub_cmd_linux): Capitalise Linux.
4785 (GRUB_MOD_INIT): Gettextizze.
4786 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
4787 (grub_cmd_linux): Capitalise Linux.
4788 (GRUB_MOD_INIT): Gettextizze.
4789 * loader/i386/linux.c: Include `<grub/i18n.h>'.
4790 (grub_cmd_linux): Capitalise Linux.
4791 (GRUB_MOD_INIT): Gettextizze.
4792 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
4793 (GRUB_MOD_INIT): Gettextizze.
4794 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
4795 (grub_cmd_linux): Capitalise Linux.
4796 (GRUB_MOD_INIT): Gettextizze.
4797 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
4798 (grub_cpu_xnu_init): Gettextizze.
4799 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
4800 (GRUB_MOD_INIT): Gettextizze.
4801 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
4802 (GRUB_MOD_INIT): Gettextizze.
4803 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
4804 (grub_linux_load64): Capitalise Linux.
4805 (GRUB_MOD_INIT): Gettextizze.
4806 * loader/xnu.c: Include `<grub/i18n.h>'.
4807 (GRUB_MOD_INIT): Gettextizze.
4808 * po/POTFILES: Add `loader/efi/appleloader.c',
4809 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
4810 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
4811 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
4812 `loader/i386/xnu.c', `loader/multiboot_loader.c',
4813 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
4816 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
4818 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
4820 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
4822 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
4823 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
4824 * util/mkisofs/mkisofs.c (main): Readjust --version output.
4826 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4828 Reset Multiboot 2 support. New loader implements the draft in
4829 /branches/multiboot2 and shares as much code as possible with the
4830 production Multiboot 1 implementation.
4832 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
4833 * loader/multiboot2.c: Likewise.
4834 * loader/i386/multiboot_helper.S: Likewise.
4835 * include/multiboot2.h: Replace with latest version from the draft
4836 in /branches/multiboot2.
4838 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
4839 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
4840 and `loader/multiboot2.c'.
4841 (pkglib_MODULES): Add `multiboot2.mod'.
4842 (multiboot2_mod_SOURCES): New variable.
4843 (multiboot2_mod_LDFLAGS): Likewise.
4844 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
4846 * conf/i386-pc.rmk: Likewise.
4848 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
4849 (multiboot_mod_SOURCES): Remove variable.
4850 (multiboot_mod_LDFLAGS): Likewise.
4851 (multiboot_mod_CFLAGS): Likewise.
4853 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
4854 `<multiboot2.h>' instead of `<multiboot.h>'.
4855 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
4856 (MULTIBOOT_HEADER_MAGIC): New macros.
4858 * loader/multiboot_loader.c (module_version_status): Remove variable.
4859 (find_multi_boot2_header): Remove function.
4860 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
4861 logic. Always check for the Multiboot version we're compiling for.
4862 (grub_cmd_module_loader): Likewise.
4863 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
4864 command instead of `multiboot'.
4866 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4868 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
4869 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
4872 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4873 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4875 Fix breakage introduced with previous commit.
4877 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
4879 * normal/handler.c (read_handler_list): Revert part of previous commit
4880 affecting this file.
4881 * normal/main.c (read_lists): Move read_handler_list() call back to ...
4882 (grub_normal_execute): ... here.
4884 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4886 Merge prefix-redefinition-fix branch.
4888 * normal/autofs.c (read_fs_list): Make function capable of being
4889 run multiple times, gracefuly replacing the previous data
4891 * normal/dyncmd.c (read_command_list): Likewise.
4892 * normal/handler.c (read_handler_list): Likewise.
4893 * normal/main.c (read_lists): New function. Calls all the
4894 list reading functions.
4895 (grub_normal_execute): Use read_lists() instead of calling all
4896 list reading functions explicitly. Register read_lists() as a
4897 variable hook attached to ${prefix}.
4899 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4901 Merge crypto branch.
4903 * Makefile.in (pkglib_DATA): Add crypto.lst.
4904 (crypto.lst): New target.
4905 * commands/hashsum.c: New file.
4906 * commands/password.c (check_password): Use grub_crypto_memcmp.
4907 * commands/password_pbkdf2.c: New file.
4908 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
4909 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
4910 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
4911 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
4912 -I$(srcdir)/lib/libgcrypt_wrap.
4913 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
4914 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
4915 password_pbkdf2.mod.
4916 (crypto_mod_SOURCES): New variable.
4917 (crypto_mod_CFLAGS): Likewise.
4918 (crypto_mod_LDFLAGS): Likewise.
4919 (hashsum_mod_SOURCES): New variable.
4920 (hashsum_mod_CFLAGS): Likewise.
4921 (hashsum_mod_LDFLAGS): Likewise.
4922 (pbkdf2_mod_SOURCES): New variable.
4923 (pbkdf2_mod_CFLAGS): Likewise.
4924 (pbkdf2_mod_LDFLAGS): Likewise.
4925 (password_pbkdf2_mod_SOURCES): New variable.
4926 (password_pbkdf2_mod_CFLAGS): Likewise.
4927 (password_pbkdf2_mod_LDFLAGS): Likewise.
4928 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
4929 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
4930 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
4931 Include conf/gcry.rmk.
4932 * include/grub/auth.h: Rewritten.
4933 * include/grub/crypto.h: New file.
4934 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
4935 * include/grub/normal.h (read_crypto_list): New prototype.
4936 * lib/crypto.c: New file.
4937 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
4938 * lib/pbkdf2.c: Likewise.
4939 * normal/auth.c (grub_auth_strcmp): Removed.
4940 (grub_iswordseparator): Likewise.
4941 (grub_auth_strword): Likewise.
4942 (is_authenticated): Use grub_strword.
4943 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
4944 and grub_strword. Pass entered password to authentication callback.
4945 * normal/crypto.c: New file.
4946 * normal/main.c: Call read_crypto_list.
4947 * util/grub-mkpasswd-pbkdf2.c: New file.
4948 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
4950 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
4952 Fix descent and ascent calculation.
4954 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
4955 (options): New option "asce".
4957 (add_char): Ignore invalid glyphs for descent calculation.
4958 Calculate ascent from actual content.
4959 (print_glyphs): Use 'asce'.
4960 (write_font): Likewise. Allow ascent override.
4961 (main): Handle "asce" option.
4963 2010-01-06 Carles Pina i Estany <carles@pina.cat>
4965 * kern/err.c: Include `<grub/i18n.h>'.
4966 (grub_print_error): Add full stop. Gettextizze.
4967 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
4968 (grub_bsd_load_elf): Capitalise ELF.
4969 (grub_cmd_freebsd_loadenv): Add `s' in error string.
4970 (grub_cmd_freebsd_module): Likewise.
4971 (grub_cmd_freebsd_module_elf): Likewise.
4972 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
4974 2010-01-06 Carles Pina i Estany <carles@pina.cat>
4976 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
4977 * commands/search_file.c (HELP_MESSAGE): New macro.
4978 * commands/search_label.c (HELP_MESSAGE): Likewise.
4979 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
4980 * po/POTFILES: Add `commands/search_file.c',
4981 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
4982 `commands/search.c'.
4984 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
4986 * config.rpath: Update from Gnulib.
4988 2010-01-05 Yves Blusseau <blusseau@zetam.org>
4990 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
4992 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
4994 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
4996 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4998 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
4999 arguments to fread so that we get a return value in bytes, rather
5000 than something that will normally be rounded down to 0.
5001 Adjust error handling to avoid producing garbage when size_t is not
5002 the same size as long long.
5004 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5006 * util/mkisofs/write.c (padblock_write): Check return value of
5009 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
5011 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
5014 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
5016 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
5018 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
5019 instead of manual alignment.
5020 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
5021 verbose). Avoid attempts to read past end of the device
5022 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
5023 but GRUB_DISK_CACHE_SIZE may exceed that).
5025 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
5027 * commands/crc.c (grub_cmd_crc): Abort on read errors.
5028 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
5031 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5033 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
5035 (grub_efi_piwg_device_path): New structure
5036 (grub_efi_piwg_device_path_t): New type.
5037 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
5038 (devpath_1): Transform to a structure. All users updated.
5039 (devpath_2): Likewise.
5040 (devpath_3): Likewise.
5041 (devpath_4): Likewise.
5042 (devpath_5): Likewise.
5044 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5046 * loader/efi/appleloader.c: Restored. Update all users.
5048 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5050 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
5052 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
5053 (struct boot_blocklist): Move from here ...
5054 * include/grub/i386/pc/boot.h [ASM_FILE]
5055 (struct grub_boot_blocklist): ... to here. Update all users.
5056 (setup): Only initialize `start' member of `first_block'
5057 structure. Add assert() calls to verify the other members.
5059 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
5060 (generate_image): Fix broken blocklist length initialization.
5061 Add assert() call to verify blocklist `segment' field.
5063 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5065 * loader/efi/appleloader.c: Remove. Update all users.
5067 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5069 * boot/i386/pc/boot.S: Update copyright year.
5070 * boot/i386/pc/cdboot.S: Likewise.
5071 * boot/i386/pc/diskboot.S: Likewise.
5072 * boot/i386/pc/lnxboot.S: Likewise.
5073 * boot/i386/pc/pxeboot.S: Likewise.
5074 * bus/pci.c: Likewise.
5075 * commands/cmp.c: Likewise.
5076 * commands/help.c: Likewise.
5077 * commands/hexdump.c: Likewise.
5078 * commands/i386/pc/halt.c: Likewise.
5079 * commands/i386/pc/play.c: Likewise.
5080 * commands/i386/pc/vbeinfo.c: Likewise.
5081 * commands/ls.c: Likewise.
5082 * commands/test.c: Likewise.
5083 * disk/dmraid_nvidia.c: Likewise.
5084 * disk/i386/pc/biosdisk.c: Likewise.
5085 * disk/ieee1275/nand.c: Likewise.
5086 * disk/ieee1275/ofdisk.c: Likewise.
5087 * disk/lvm.c: Likewise.
5088 * disk/raid.c: Likewise.
5089 * disk/raid6_recover.c: Likewise.
5090 * disk/scsi.c: Likewise.
5091 * fs/affs.c: Likewise.
5092 * fs/cpio.c: Likewise.
5093 * fs/ext2.c: Likewise.
5094 * fs/hfs.c: Likewise.
5095 * fs/iso9660.c: Likewise.
5096 * fs/ntfs.c: Likewise.
5097 * fs/sfs.c: Likewise.
5098 * fs/udf.c: Likewise.
5099 * fs/ufs.c: Likewise.
5100 * fs/xfs.c: Likewise.
5101 * gencmdlist.sh: Likewise.
5102 * genmk.rb: Likewise.
5103 * include/grub/disk.h: Likewise.
5104 * include/grub/efi/api.h: Likewise.
5105 * include/grub/efi/efi.h: Likewise.
5106 * include/grub/efi/pe32.h: Likewise.
5107 * include/grub/elf.h: Likewise.
5108 * include/grub/fs.h: Likewise.
5109 * include/grub/i386/at_keyboard.h: Likewise.
5110 * include/grub/i386/pc/memory.h: Likewise.
5111 * include/grub/i386/pc/vbe.h: Likewise.
5112 * include/grub/i386/pci.h: Likewise.
5113 * include/grub/i386/tsc.h: Likewise.
5114 * include/grub/ieee1275/ieee1275.h: Likewise.
5115 * include/grub/ntfs.h: Likewise.
5116 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
5117 * include/grub/sparc64/libgcc.h: Likewise.
5118 * include/grub/symbol.h: Likewise.
5119 * include/grub/types.h: Likewise.
5120 * include/multiboot2.h: Likewise.
5121 * io/gzio.c: Likewise.
5122 * kern/device.c: Likewise.
5123 * kern/disk.c: Likewise.
5124 * kern/efi/efi.c: Likewise.
5125 * kern/efi/mm.c: Likewise.
5126 * kern/elf.c: Likewise.
5127 * kern/file.c: Likewise.
5128 * kern/i386/dl.c: Likewise.
5129 * kern/i386/pc/init.c: Likewise.
5130 * kern/i386/pc/startup.S: Likewise.
5131 * kern/ieee1275/ieee1275.c: Likewise.
5132 * kern/ieee1275/init.c: Likewise.
5133 * kern/main.c: Likewise.
5134 * kern/mm.c: Likewise.
5135 * kern/powerpc/dl.c: Likewise.
5136 * kern/sparc64/dl.c: Likewise.
5137 * kern/x86_64/dl.c: Likewise.
5138 * lib/hexdump.c: Likewise.
5139 * loader/efi/appleloader.c: Likewise.
5140 * loader/i386/ieee1275/linux.c: Likewise.
5141 * loader/i386/pc/chainloader.c: Likewise.
5142 * loader/i386/pc/linux.c: Likewise.
5143 * loader/i386/pc/multiboot2.c: Likewise.
5144 * loader/ieee1275/multiboot2.c: Likewise.
5145 * loader/multiboot2.c: Likewise.
5146 * loader/multiboot_loader.c: Likewise.
5147 * loader/powerpc/ieee1275/linux.c: Likewise.
5148 * normal/completion.c: Likewise.
5149 * normal/menu_entry.c: Likewise.
5150 * partmap/apple.c: Likewise.
5151 * util/grub.d/10_hurd.in: Likewise.
5152 * util/hostfs.c: Likewise.
5153 * video/readers/png.c: Likewise.
5155 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
5157 * include/grub/misc.h (GNUC_PREREQ): New macro.
5158 (ATTRIBUTE_ERROR): New macro.
5159 * include/grub/list.h (grub_bad_type_cast_real): Use
5162 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5164 * normal/menu_text.c (print_message): Change messages.
5166 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5168 * normal/menu_entry.c (store_completion): Gettextizze.
5170 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5172 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
5174 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5176 * po/POTFILES: Sort correctly.
5178 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5180 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
5181 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
5182 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
5184 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
5185 summary. Gettextizze the strings.
5186 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
5187 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
5188 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
5190 (GRUB_MOD_INIT): Remove command name from summary.
5191 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
5193 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
5194 * term/i386/pc/serial.c (options): Add full stops.
5195 (GRUB_MOD_INIT): Remove command name from the summary.
5197 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5199 * commands/acpi.c: Gettextizze help strings and/or options. Include
5200 `grub/i18n.h' if needed.
5201 * commands/blocklist.c: Likewise.
5202 * commands/boot.c: Likewise.
5203 * commands/cat.c: Likewise.
5204 * commands/cmp.c: Likewise.
5205 * commands/configfile.c: Likewise.
5206 * commands/crc.c: Likewise.
5207 * commands/date.c: Likewise.
5208 * commands/echo.c: Likewise.
5209 * commands/efi/fixvideo.c: Likewise.
5210 * commands/efi/loadbios.c: Likewise.
5211 * commands/gptsync.c: Likewise.
5212 * commands/halt.c: Likewise.
5213 * commands/handler.c: Likewise.
5214 * commands/hdparm.c: Likewise.
5215 * commands/hexdump.c: Likewise.
5216 * commands/i386/cpuid.c: Likewise.
5217 * commands/i386/pc/drivemap.c: Likewise.
5218 * commands/i386/pc/halt.c: Likewise.
5219 * commands/i386/pc/pxecmd.c: Likewise.
5220 * commands/i386/pc/vbeinfo.c: Likewise.
5221 * commands/i386/pc/vbetest.c: Likewise.
5222 * commands/ieee1275/suspend.c: Likewise.
5223 * commands/keystatus.c: Likewise.
5224 * commands/loadenv.c: Likewise.
5225 * commands/ls.c: Likewise.
5226 * commands/lsmmap.c: Likewise.
5227 * commands/lspci.c: Likewise.
5228 * commands/memrw.c: Likewise.
5229 * commands/minicmd.c: Likewise.
5230 * commands/parttool.c: Likewise.
5231 * commands/password.c: Likewise.
5232 * commands/probe.c: Likewise.
5233 * commands/read.c: Likewise.
5234 * commands/reboot.c: Likewise.
5235 * commands/search.c: Likewise.
5236 * commands/sleep.c: Likewise.
5237 * commands/test.c: Likewise.
5238 * commands/true.c: Likewise.
5239 * commands/usbtest.c: Likewise.
5240 * commands/videotest.c: Likewise.
5241 * commands/xnu_uuid.c: Likewise.
5242 * disk/loopback.c: Likewise.
5243 * hello/hello.c: Likewise.
5244 * loader/i386/bsd.c: Likewise.
5245 * term/i386/pc/serial.c: Likewise.
5246 * po/POTFILES: Add new files.
5248 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
5250 * term/i386/pc/at_keyboard.c
5251 (keyboard_controller_wait_untill_ready): Rename to ...
5252 (keyboard_controller_wait_until_ready): ... this. Update all users.
5254 2010-01-01 Carles Pina i Estany <carles@pina.cat>
5256 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
5257 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
5258 string using string width.
5259 * normal/menu_text.c (grub_print_message_indented): Use
5260 grub_print_spaces and not print_spaces.
5261 (print_timeout): Likewise.
5262 (print_spaces): Move to...
5263 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
5265 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
5269 * gnulib/getdelim.c: New file.
5270 * gnulib/getline.c: Likewise.
5272 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
5274 * include/grub/list.h (grub_assert_fail): Removed.
5275 (grub_bad_type_cast_real): New function.
5276 (grub_bad_type_cast): New macro.
5277 (GRUB_AS_LIST): Use grub_bad_type_cast.
5278 (GRUB_AS_LIST_P): Likewise.
5279 (GRUB_AS_NAMED_LIST): Likewise.
5280 (GRUB_AS_NAMED_LIST_P): Likewise.
5281 (GRUB_AS_PRIO_LIST): Likewise.
5282 (GRUB_AS_PRIO_LIST_P): Likewise.
5283 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
5285 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
5287 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
5290 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
5292 * configure.ac: Check for TARGET_CFLAGS initialization before we
5293 initialize it ourselves (sigh).
5294 Move a few modifications to TARGET_CFLAGS to be unconditional
5295 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
5298 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
5299 * term/i386/pc/at_keyboard.c
5300 (keyboard_controller_wait_untill_ready): Likewise.
5301 (keyboard_controller_led): Rename `led_status' paramter to avoid
5304 2009-12-28 Carles Pina i Estany <carles@pina.cat>
5306 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
5309 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5311 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
5313 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5315 * normal/menu_text.c (grub_print_message_indented): Prevent
5316 past-the-end-of-array dereference.
5318 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5320 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
5321 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
5323 2009-12-27 Carles Pina i Estany <carles@pina.cat>
5325 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
5326 * normal/main.c (grub_normal_read_line): Remove a space from the
5329 2009-12-27 Carles Pina i Estany <carles@pina.cat>
5331 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
5332 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5333 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5334 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5335 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5336 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5337 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5339 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5341 * video/readers/jpeg.c (cmd): Declare.
5342 (grub_cmd_jpegtest): Use `grub_command_t' type.
5343 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5345 (GRUB_MOD_FINI): Use `cmd' to unregister.
5346 * video/readers/png.c (cmd): Declare.
5347 (grub_cmd_pngtest): Use `grub_command_t' type.
5348 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5350 (GRUB_MOD_FINI): Use `cmd' to unregister.
5351 * video/readers/tga.c (cmd): Declare.
5352 (grub_cmd_tgatest): Use `grub_command_t' type.
5353 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5355 (GRUB_MOD_FINI): Use `cmd' to unregister.
5357 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5359 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
5361 * kern/corecmd.c (grub_register_core_commands): Likewise.
5362 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
5363 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5364 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
5365 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5366 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5367 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
5368 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5369 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
5370 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5371 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5372 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5373 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5374 * normal/handler.c (insert_handler): Likewise.
5375 * normal/main.c (GRUB_MOD_INIT): Likewise.
5376 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
5378 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5380 * commands/help.c (grub_cmd_help): Print the command name before the
5382 (GRUB_MOD_INIT): Remove command name from the summary.
5383 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
5385 * lib/arg.c (find_long): Print the command name before the summary.
5386 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
5388 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
5389 * commands/cat.c (GRUB_MOD_INIT): Likewise.
5390 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
5391 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
5392 * commands/crc.c (GRUB_MOD_INIT): Likewise.
5393 * commands/date.c (GRUB_MOD_INIT): Likewise.
5394 * commands/echo.c (GRUB_MOD_INIT): Likewise.
5395 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
5396 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
5397 * commands/handler.c (GRUB_MOD_INIT): Likewise.
5398 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
5399 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
5400 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
5401 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
5402 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
5403 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
5404 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
5405 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
5406 * commands/ls.c (GRUB_MOD_INIT): Likewise.
5407 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
5408 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
5409 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
5410 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
5411 * commands/password.c (GRUB_MOD_INIT): Likewise.
5412 * commands/probe.c (GRUB_MOD_INIT): Likewise.
5413 * commands/read.c (GRUB_MOD_INIT): Likewise.
5414 * commands/search.c (GRUB_MOD_INIT): Likewise.
5415 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
5416 * commands/test.c (GRUB_MOD_INIT): Likewise.
5417 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
5418 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
5419 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
5420 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
5421 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
5422 * lib/arg.c (GRUB_MOD_INIT): Likewise.
5423 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
5424 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5425 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5426 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5427 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
5428 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
5429 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
5430 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
5432 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5434 Use search command for preliminar UUID search.
5436 * commands/search.c: Split into ...
5437 * commands/search_wrap.c: ...this
5438 * commands/search.c: ...and this.
5439 * commands/search_file.c: New file.
5440 * commands/search_label.c: New file.
5441 * commands/search_uuid.c: New file.
5442 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
5443 Add commands/search_wrap.c, commands/search_file.c,
5444 commands/search_label.c and commands/search_uuid.c.
5445 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
5446 (search_mod_SOURCES): Set to commands/search_wrap.c.
5447 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
5449 (search_fs_file_mod_SOURCES): New variable.
5450 (search_fs_file_mod_CFLAGS): Likewise.
5451 (search_fs_file_mod_LDFLAGS): Likewise.
5452 (search_label_mod_SOURCES): Likewise.
5453 (search_label_mod_CFLAGS): Likewise.
5454 (search_label_mod_LDFLAGS): Likewise.
5455 (search_fs_uuid_mod_SOURCES): New variable.
5456 (search_fs_uuid_mod_CFLAGS): Likewise.
5457 (search_fs_uuid_mod_LDFLAGS): Likewise.
5458 (fs_file_mod_SOURCES): Removed.
5459 (fs_file_mod_CFLAGS): Likewise.
5460 (fs_file_mod_LDFLAGS): Likewise.
5461 (fs_uuid_mod_SOURCES): Removed.
5462 (fs_uuid_mod_CFLAGS): Likewise.
5463 (fs_uuid_mod_LDFLAGS): Likewise.
5464 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
5465 Set to util/grub-install.in.
5466 * disk/fs_file.c: Removed.
5467 * disk/fs_uuid.c: Likewise.
5468 * include/grub/search.h: New file.
5469 * util/grub-install.in: Handle sparc64.
5470 Create and use load.cfg.
5471 * util/sparc64/ieee1275/grub-install.in: Removed.
5473 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5475 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
5476 Ignore return status if CF is cleared.
5477 (grub_biosdisk_get_diskinfo_standard): Likewise.
5479 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5481 * term/i386/pc/at_keyboard.c
5482 (keyboard_controller_wait_untill_ready): New function.
5483 (grub_keyboard_controller_write, grub_keyboard_controller_read)
5484 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
5485 for keyboard polling, rather than duplicate the same loop. This
5486 saves a few bytes in code size.
5488 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5490 Support for (pxe[:server[:gateway]]) syntax and
5491 use environment variable for PXE.
5493 * commands/i386/pc/pxecmd.c (options): Removed.
5494 (print_ip): Removed.
5495 (grub_cmd_pxe): Removed
5496 (grub_cmd_pxe_unload): New function.
5497 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
5498 (grub_pxe_your_ip): Made static.
5499 (grub_pxe_default_server_ip): Likewise.
5500 (grub_pxe_default_gateway_ip): Likewise.
5501 (grub_pxe_blksize): Likewise.
5502 (parse_ip): New function.
5503 (grub_pxe_open): Support server and gateway specification.
5504 (grub_pxe_close): Free disk->data.
5505 (grub_pxefs_open): Use disk->data.
5506 (grub_pxefs_read): Likewise.
5507 (grub_env_write_readonly): New function.
5508 (set_mac_env): Likewise.
5509 (set_env_limn_ro): Likewise.
5510 (parse_dhcp_vendor): Likewise.
5511 (grub_pxe_detect): Set the environment variables.
5512 (set_ip_env): New function.
5513 (write_ip_env): Likewise.
5514 (grub_env_write_pxe_default_server): Likewise.
5515 (grub_env_write_pxe_default_gateway): Likewise.
5516 (grub_env_write_pxe_blocksize): Likewise.
5517 (GRUB_MOD_INIT(pxe)): Set environment variables.
5518 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
5519 (grub_pxe_mac_addr_t): ... this. All users updated.
5520 (grub_pxe_your_ip): Removed.
5521 (grub_pxe_server_ip): Likewise.
5522 (grub_pxe_gateway_ip): Likewise.
5523 (grub_pxe_blksize): Likewise.
5525 2009-12-25 Carles Pina i Estany <carles@pina.cat>
5527 * commands/help.c: Include `<grub/i18n.h>'.
5528 (grub_cmd_help): Gettextizze.
5529 (GRUB_MOD_INIT): Likewise.
5530 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
5531 (GRUB_MOD_INIT): Gettextizze.
5532 * commands/search.c: Include `<grub/i18n.h>'.
5533 (options): Gettextizze.
5534 (GRUB_MOD_INIT): Gettextizze.
5535 * lib/arg.c: Include `<grub/i18n.h>'.
5536 (help_options): Gettextizze.
5537 (find_long): Likewise.
5538 (grub_arg_show_help): Likewise.
5539 * normal/dyncmd.c: Include `<grub/i18n.h>'.
5540 (read_command_list): Gettextizze.
5541 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
5542 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
5544 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5546 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
5547 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
5548 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
5549 (led_status): New variable.
5550 (keyboard_controller_led): New function.
5551 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
5552 update led status for caps lock, num lock and scroll lock.
5554 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
5556 * util/hostdisk.c (open_device): Fix a comment.
5558 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5560 * util/grub-install.in (host_os): New variable.
5561 * util/i386/efi/grub-install.in (host_os): Likewise.
5563 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5565 * util/mkisofs/write.c (padblock_write): Abort when given an
5566 excedingly large embed image, instead of silently truncating it.
5568 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5570 * include/multiboot.h: Indentation fixes.
5572 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5574 * include/multiboot.h (struct multiboot_aout_symbol_table)
5575 (struct multiboot_elf_section_header_table): New structure
5576 declarations (stolen from GRUB Legacy).
5577 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
5580 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
5581 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
5584 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5586 * include/multiboot.h: Make comments src2texi-friendly.
5588 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5590 For consistency with [multiboot]/docs/boot.S.
5592 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
5593 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
5594 (MULTIBOOT_MAGIC2): Rename from this ...
5595 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
5597 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5599 * include/multiboot.h: Remove `<grub/types.h>'.
5600 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
5601 types. Update all users.
5603 2009-12-25 Carles Pina i Estany <carles@pina.cat>
5605 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
5606 `couldn't' and `can not' by `cannot'.
5607 * commands/i386/pc/drivemap.c: Likewise.
5608 * disk/ata.c: Likewise.
5609 * disk/ieee1275/nand.c: Likewise.
5610 * fs/affs.c: Likewise.
5611 * fs/fat.c: Likewise.
5612 * fs/hfs.c: Likewise.
5613 * fs/hfsplus.c: Likewise.
5614 * fs/iso9660.c: Likewise.
5615 * fs/jfs.c: Likewise.
5616 * fs/minix.c: Likewise.
5617 * fs/reiserfs.c: Likewise.
5618 * fs/sfs.c: Likewise.
5619 * fs/udf.c: Likewise.
5620 * fs/ufs.c: Likewise.
5621 * fs/xfs.c: Likewise.
5622 * loader/powerpc/ieee1275/linux.c: Likewise.
5623 * loader/sparc64/ieee1275/linux.c: Likewise.
5624 * util/grub-probe.c: Likewise.
5625 * util/misc.c: Likewise.
5627 2009-12-24 Carles Pina i Estany <carles@pina.cat>
5629 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
5631 * commands/acpi.c: Likewise.
5632 * commands/blocklist.c: Likewise.
5633 * commands/efi/loadbios.c: Likewise.
5634 * commands/i386/pc/drivemap.c: Likewise.
5635 * commands/loadenv.c: Likewise.
5636 * commands/memrw.c: Likewise.
5637 * commands/password.c: Likewise.
5638 * commands/videotest.c: Likewise.
5639 * disk/ata.c: Likewise.
5640 * disk/ata_pthru.c: Likewise.
5641 * disk/dmraid_nvidia.c: Likewise.
5642 * disk/ieee1275/nand.c: Likewise.
5643 * disk/ieee1275/ofdisk.c: Likewise.
5644 * disk/loopback.c: Likewise.
5645 * disk/lvm.c: Likewise.
5646 * disk/mdraid_linux.c: Likewise.
5647 * disk/raid.c: Likewise.
5648 * disk/raid6_recover.c: Likewise.
5649 * disk/scsi.c: Likewise.
5650 * efiemu/main.c: Likewise.
5651 * efiemu/mm.c: Likewise.
5652 * efiemu/pnvram.c: Likewise.
5653 * efiemu/symbols.c: Likewise.
5654 * font/font.c: Likewise.
5655 * fs/cpio.c: Likewise.
5656 * fs/hfsplus.c: Likewise.
5657 * fs/iso9660.c: Likewise.
5658 * fs/jfs.c: Likewise.
5659 * fs/minix.c: Likewise.
5660 * fs/ntfs.c: Likewise.
5661 * fs/ntfscomp.c: Likewise.
5662 * fs/reiserfs.c: Likewise.
5663 * fs/ufs.c: Likewise.
5664 * fs/xfs.c: Likewise.
5665 * gettext/gettext.c: Likewise.
5666 * include/grub/auth.h: Likewise.
5667 * kern/elf.c: Likewise.
5668 * kern/file.c: Likewise.
5669 * kern/ieee1275/init.c: Likewise.
5670 * kern/ieee1275/mmap.c: Likewise.
5671 * kern/ieee1275/openfw.c: Likewise.
5672 * kern/powerpc/dl.c: Likewise.
5673 * kern/sparc64/dl.c: Likewise.
5674 * lib/arg.c: Likewise.
5675 * loader/i386/bsd.c: Likewise.
5676 * loader/i386/bsdXX.c: Likewise.
5677 * loader/i386/efi/linux.c: Likewise.
5678 * loader/i386/efi/xnu.c: Likewise.
5679 * loader/i386/ieee1275/linux.c: Likewise.
5680 * loader/i386/linux.c: Likewise.
5681 * loader/i386/multiboot.c: Likewise.
5682 * loader/i386/pc/linux.c: Likewise.
5683 * loader/i386/pc/multiboot2.c: Likewise.
5684 * loader/i386/xnu.c: Likewise.
5685 * loader/ieee1275/multiboot2.c: Likewise.
5686 * loader/macho.c: Likewise.
5687 * loader/machoXX.c: Likewise.
5688 * loader/multiboot2.c: Likewise.
5689 * loader/multiboot_loader.c: Likewise.
5690 * loader/powerpc/ieee1275/linux.c: Likewise.
5691 * loader/sparc64/ieee1275/linux.c: Likewise.
5692 * loader/xnu.c: Likewise.
5693 * loader/xnu_resume.c: Likewise.
5694 * mmap/i386/pc/mmap.c: Likewise.
5695 * normal/menu_viewer.c: Likewise.
5696 * partmap/acorn.c: Likewise.
5697 * partmap/amiga.c: Likewise.
5698 * partmap/apple.c: Likewise.
5699 * script/lexer.c: Likewise.
5700 * term/gfxterm.c: Likewise.
5701 * term/i386/pc/serial.c: Likewise.
5702 * term/i386/pc/vga.c: Likewise.
5703 * term/ieee1275/ofconsole.c: Likewise.
5704 * term/terminfo.c: Likewise.
5705 * video/bitmap.c: Likewise.
5706 * video/efi_gop.c: Likewise.
5707 * video/efi_uga.c: Likewise.
5708 * video/fb/video_fb.c: Likewise.
5709 * video/i386/pc/vbe.c: Likewise.
5710 * video/readers/tga.c: Likewise.
5711 * video/video.c: Likewise.
5713 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
5715 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
5716 * commands/lspci.c: Likewise.
5717 * commands/probe.c: Likewise.
5718 * commands/xnu_uuid.c: Likewise.
5719 * conf/i386-coreboot.rmk: Likewise.
5720 * conf/i386-efi.rmk: Likewise.
5721 * conf/i386-ieee1275.rmk: Likewise.
5722 * conf/i386-pc.rmk: Likewise.
5723 * conf/powerpc-ieee1275.rmk: Likewise.
5724 * conf/sparc64-ieee1275.rmk: Likewise.
5725 * conf/x86_64-efi.rmk: Likewise.
5726 * fs/i386/pc/pxe.c: Likewise.
5727 * gettext/gettext.c: Likewise.
5728 * include/grub/efi/graphics_output.h: Likewise.
5729 * include/grub/i386/pc/memory.h: Likewise.
5730 * kern/env.c: Likewise.
5731 * kern/i386/qemu/startup.S: Likewise.
5732 * lib/i386/pc/biosnum.c: Likewise.
5733 * lib/i386/relocator.c: Likewise.
5734 * lib/i386/relocator_asm.S: Likewise.
5735 * lib/relocator.c: Likewise.
5736 * loader/i386/bsd.c: Likewise.
5737 * loader/i386/multiboot.c: Likewise.
5738 * loader/i386/pc/chainloader.c: Likewise.
5739 * loader/i386/xnu.c: Likewise.
5740 * loader/xnu.c: Likewise.
5741 * normal/main.c: Likewise.
5742 * normal/menu_text.c: Likewise.
5743 * util/getroot.c: Likewise.
5744 * util/grub-mkconfig_lib.in: Likewise.
5745 * util/grub.d/00_header.in: Likewise.
5746 * util/i386/pc/grub-mkimage.c: Likewise.
5747 * util/mkisofs/eltorito.c: Likewise.
5748 * util/mkisofs/exclude.h: Likewise.
5749 * util/mkisofs/hash.c: Likewise.
5750 * util/mkisofs/iso9660.h: Likewise.
5751 * util/mkisofs/joliet.c: Likewise.
5752 * util/mkisofs/mkisofs.c: Likewise.
5753 * util/mkisofs/mkisofs.h: Likewise.
5754 * util/mkisofs/multi.c: Likewise.
5755 * util/mkisofs/name.c: Likewise.
5756 * util/mkisofs/rock.c: Likewise.
5757 * util/mkisofs/tree.c: Likewise.
5758 * util/mkisofs/write.c: Likewise.
5759 * video/efi_gop.c: Likewise.
5761 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
5763 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
5766 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5768 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
5769 * genmk.rb (class SCRIPT): Modify the target file instead of source.
5771 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5773 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
5774 (GRUB_MOD_INIT(memrw)): Update help line.
5776 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5778 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
5779 Use grub_extcmd_t. All users updated.
5780 (options): New variable.
5781 (grub_cmd_read): Restructure for readability. Support "-v" option.
5782 (grub_cmd_write): Restructure for readability.
5784 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5786 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
5788 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5790 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
5791 with the actual contents of the correspondending make variable.
5792 * util/grub-mkrescue.in (pkglib_DATA): New variable.
5793 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
5794 specifying `*.lst' and `efiemu??.o'
5796 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5798 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
5799 after function name.
5800 Noticed by Rene Engelhard <rene@debian.org>.
5802 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5804 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
5805 (options): New variable.
5806 (iospace): Likewise.
5807 (grub_lspci_iter): List IO spaces if "-i" was given.
5808 (grub_cmd_lspci): Parse options.
5809 (GRUB_MOD_INIT(lspci)): Use extcmd.
5810 (GRUB_MOD_FINI(lspci)): Likewise.
5812 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5814 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
5816 Patch by Tony Mancill <tmancill@debian.org>.
5818 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5820 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
5821 (grub_uhci_portstatus): Likewise.
5822 (grub_uhci_portstatus): Add necessary delay.
5823 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
5825 2009-12-21 Carles Pina i Estany <carles@pina.cat>
5827 * commands/acpi.c (options): Fix capitalizations and/or full stops.
5828 (GRUB_MOD_INIT): Likewise.
5829 * commands/boot.c (GRUB_MOD_INIT): Likewise.
5830 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
5831 * commands/echo.c (options): Fix capitalizations and/or full stops.
5832 * commands/efi/loadbios.c (enable_rom_area): Likewise.
5833 (enable_rom_area): Likewise.
5834 (GRUB_MOD_INIT): Likewise.
5835 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
5836 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
5837 * commands/handler.c (GRUB_MOD_INIT): Likewise.
5838 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
5839 * commands/hexdump.c (options): Likewise.
5840 * commands/i386/cpuid.c (options): Likewise.
5841 (GRUB_MOD_INIT): Likewise.
5842 * commands/i386/pc/drivemap.c (options): Likewise.
5843 (GRUB_MOD_INIT): Likewise.
5844 * commands/i386/pc/halt (options): Likewise.
5845 (GRUB_MOD_INIT): Likewise.
5846 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
5847 * commands/i386/pc/pxecmd.c (options): Likewise.
5848 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
5849 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
5850 * commands/keystatus.c (options): Likewise.
5851 (GRUB_MOD_INIT): Likewise.
5852 * commands/loadenv.c (options): Likewise.
5853 * commands/ls.c (options): Likewise.
5854 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
5855 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
5856 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
5857 * commands/parttool.c (helpmsg): Likewise.
5858 * commands/probe.c (options): Likewise.
5859 * commands/read.c (GRUB_MOD_INIT): Likewise.
5860 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
5861 * commands/search.c (options): Likewise.
5862 * commands/sleep.c (options): Likewise.
5863 * commands/test.c (GRUB_MOD_INIT): Likewise.
5864 * commands/true.c (GRUB_MOD_INIT): Likewise.
5865 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
5866 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
5867 * lib/arg.c (help_options): Likewise.
5868 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
5870 * po/POTFILES: Add `commands/loadenv.c'.
5872 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
5874 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
5875 instead of specifying them explicit.
5877 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5879 * NEWS: Add grub-probe support for GNU/Hurd.
5881 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5883 * NEWS: gettext was added after 1.97.
5885 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5887 * util/mkisofs/msdos_partition.h: New file (based on
5888 include/grub/msdos_partition.h).
5889 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
5890 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
5891 (ld_options, main): Recognize --protective-msdos-label.
5892 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
5893 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
5894 (padblock_write): If `use_protective_msdos_label' is set, patch a
5895 protective DOS-style label in the output image.
5897 * util/grub-mkrescue.in: Use --protective-msdos-label.
5899 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5901 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
5904 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5906 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
5908 (ld_options, main): Recognize `--embedded-boot'.
5909 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
5911 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
5912 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
5913 (padblock_write): Likewise. Rewrite to support embedded boot image.
5915 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
5916 for BIOS-based disk boot instead of only ElTorito.
5918 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5920 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
5921 build (not needed for bootstrap).
5923 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5925 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
5926 from i386-pc build (not needed for bootstrap).
5927 Rewrite a pair of strings.
5929 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5931 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
5933 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
5935 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
5937 2009-12-21 Andreas Born <futur.andy@googlemail.com>
5939 * kern/env.c (grub_env_context_open): Mark exported variable for
5942 2009-12-21 Andreas Born <futur.andy@googlemail.com>
5944 * kern/env.c (grub_env_export): Create nonexistent variables before
5947 2009-12-20 Carles Pina i Estany <carles@pina.cat>
5949 * include/grub/auth.h: Include `<grub/i18n.h>'.
5950 (GRUB_GET_PASSWORD): Gettextizze string.
5951 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
5953 (grub_utf8_to_ucs4_alloc): Fix indentation.
5954 (grub_print_ucs4): Likewise.
5955 (grub_getstringwidth): Likewise.
5956 (print_message_indented): New declaration.
5957 * normal/auth.c: Include `<grub/i18n.h>'.
5958 (grub_auth_check_authentication): Gettexttize string.
5959 * normal/cmdline.c: Include `<grub/i18n.h>'.
5960 (grub_cmdline_get): Gettextizze.
5961 * normal/color.c: Include `<grub/i18n.h>'.
5962 (grub_parse_color_name_pair): Gettexttize strings.
5963 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
5964 string (use `print_message_indented').
5965 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
5966 `include/grub/normal.h'.
5967 (print_message_indented): Renamed to ...
5968 (grub_print_message_indented): ... this. Remove `static' qualifer (now
5969 used in normal/main.c).
5970 (print_message): Use `grub_print_message_indented' instead of
5971 `print_message_indented'.
5972 (print_timeout): Likewise.
5973 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
5974 (grub_normal_print_device_info): Gettexttize strings.
5975 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
5977 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
5979 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
5980 of arguments. Return number of tokens and not arguments. All users
5983 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
5985 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
5986 non-MSDOS paritions.
5988 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
5990 * include/grub/types.h (UNUSED): Removed since it conflicts with
5991 NetBSD headers. All users changed to direct __attribute__ ((unused)).
5992 Reported by Grégoire Sutre.
5994 2009-12-19 Carles Pina i Estany <carles@pina.cat>
5996 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
5997 (grub_print_ucs4_alloc): Likewise.
5998 (grub_getstringwidth): Likewise.
5999 * normal/main.c (grub_normal_init_page): Gettextize version string.
6000 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
6001 (getstringwidth): Renamed to ...
6002 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
6003 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
6004 (grub_print_ucs4): Remove `static' qualifer (now used in
6006 * po/POTFILES: Add normal/main.c.
6008 2009-12-19 Carles Pina i Estany <carles@pina.cat>
6010 * normal/menu_text.c (STANDARD_MARGIN): New macro.
6011 (print_message_indented): Add `margin_left' and `margin_right'
6013 (print_message): Update `print_message_indented' calls. Adds '\n' to the
6015 (print_timeout): Use `print_message_indented' to print the message.
6016 Deletes `second_stage' parameter.
6017 (run_menu): Update `print_timeout' calls.
6019 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6021 Fix console palette on OpenFirmware.
6023 * term/ieee1275/ofconsole.c (MAX): Removed.
6024 (colors): Redone based on VGA palette.
6025 (grub_ofconsole_setcolor): Discard brightness bit since only 8
6026 colors are supported.
6027 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
6029 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6031 Fix potential EfiEmu double prepare.
6033 * efiemu/main.c (prepared): New variable
6034 (grub_efiemu_unload): Set prepare to '0'.
6035 (grub_efiemu_prepare): Return if already prepared. Set prepared.
6037 set_virtual_address_map support.
6039 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
6041 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
6043 (grub_efiemu_crc32): Likewise.
6044 (grub_efiemu_crc64): Likewise.
6045 (grub_efiemu_set_virtual_address_map): Likewise.
6046 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
6048 (grub_autoefi_set_virtual_address_map): Likewise.
6049 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
6050 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
6051 Restructure flow to accomodate it.
6052 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
6053 (grub_efiemu_crc): Recompute CRC32.
6054 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
6055 (efiemu_ptv_relocated): ... this. Made global. All users updated.
6056 * efiemu/symbols.c (relocated_handle): New variable.
6057 (grub_efiemu_free_syms): Free relocated_handle.
6058 (grub_efiemu_alloc_syms): Allocate relocated_handle.
6059 (grub_efiemu_write_sym_markers): New function.
6060 (grub_efiemu_set_virtual_address_map): Likewise.
6062 Newer XNU parameters.
6064 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
6065 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
6066 (grub_xnu_fill_devicetree): New prototype.
6067 (grub_xnu_heap_real_start): New variable.
6068 * loader/xnu.c (get_name_ptr): New function.
6069 (grub_xnu_load_driver): Fill namelen and name.
6073 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
6074 and 'loader/macho64.c'.
6075 * conf/i386-pc.rmk: Likewise.
6076 * conf/x86_64-efi.rmk: Likewise.
6077 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
6078 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
6079 * include/grub/macho.h (grub_macho_segment64): New structure.
6080 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
6081 (grub_macho_size32): ... to this.
6082 (grub_macho32_get_entry_point): Renamed from ...
6083 (grub_macho_get_entry_point32): ... to this.
6084 (grub_macho_contains_macho64): New prototype.
6085 (grub_macho_size64): Likewise.
6086 (grub_macho_get_entry_point64): Likewise.
6087 (grub_macho32_load): Renamed from ...
6088 (grub_macho_load32): ... to this.
6089 (grub_macho32_filesize): Renamed from ...
6090 (grub_macho_filesize32): ... to this.
6091 (grub_macho32_readfile): Renamed from ...
6092 (grub_macho_readfile32): ... to this.
6093 (grub_macho_filesize64): New prototype.
6094 (grub_macho_readfile64): Likewise.
6095 (grub_macho_parse32): Likewise.
6096 (grub_macho_parse64): Likewise.
6097 * loader/macho.c: Split into ...
6098 * loader/machoXX.c: ... and this. Replace 32 with XX.
6099 * loader/macho32.c: New file.
6100 * loader/macho64.c: Likewise.
6101 * loader/xnu.c (grub_xnu_is_64bit): New variable.
6102 (grub_cmd_xnu_kernel): Make 32-bit only.
6103 (grub_cmd_xnu_kernel64): New function.
6104 (grub_xnu_load_driver): Support Mach-O 64.
6105 (grub_cmd_xnu_mkext): Likewise.
6106 * util/grub.d/30_os-prober.in (osx_entry): New function.
6107 Generate entries for 64-bit boot too.
6109 Eliminate ad-hoc tree format in XNU and EfiEmu.
6111 * efiemu/main.c (grub_efiemu_prepare): Update comment.
6112 * efiemu/pnvram.c: Rewritten to use environment variables.
6115 Inline utf16_to_utf8.
6117 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
6118 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
6120 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
6122 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
6123 * commands/usbtest.c (grub_usb_get_string): ... move here.
6124 (usb_print_str): Fix error handling.
6125 * include/grub/usb.h (grub_usb_get_string): Remove.
6127 UTF-8 to UTF-16 transformation.
6129 * conf/common.rmk (pkglib_MODULES): Add charset.mod
6130 (charset_mod_SOURCES): New variable.
6131 (charset_mod_CFLAGS): Likewise.
6132 (charset_mod_LDFLAGS): Likewise.
6133 * include/grub/utf.h: New file.
6134 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
6136 Support for device properties.
6138 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
6139 (grub_xnu_devprop_device_header): Likewise.
6140 (grub_xnu_devprop_device_descriptor): Likewise.
6141 (grub_xnu_devprop_add_device): New prototype.
6142 (grub_xnu_devprop_remove_device): Likewise.
6143 (grub_xnu_devprop_remove_property): Likewise.
6144 (grub_xnu_devprop_add_property_utf8): Likewise.
6145 (grub_xnu_devprop_add_property_utf16): Likewise.
6146 (grub_cpu_xnu_init): Likewise.
6147 (grub_cpu_xnu_fini): Likewise.
6148 (grub_cpu_xnu_unload): Likewise.
6149 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
6150 (property_descriptor): Likewise.
6151 (devices): New variable.
6152 (grub_xnu_devprop_remove_property): New function.
6153 (grub_xnu_devprop_add_device): Likewise.
6154 (grub_xnu_devprop_remove_device): Likewise.
6155 (grub_xnu_devprop_add_property): Likewise.
6156 (grub_xnu_devprop_add_property_utf8): Likewise.
6157 (grub_xnu_devprop_add_property_utf16): Likewise.
6158 (hextoval): Likewise.
6159 (grub_cpu_xnu_fill_devprop): Likewise.
6160 (grub_cmd_devprop_load): Likewise.
6161 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
6162 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
6163 (cmd_devprop_load): New variable.
6164 (grub_cpu_xnu_init): New function.
6165 (grub_cpu_xnu_fini): Likewise.
6166 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
6167 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
6168 (grub_cmd_xnu_devtree): Likewise.
6169 (hextoval): New function.
6170 (unescape): Likewise.
6171 (grub_xnu_fill_devicetree): Likewise.
6173 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
6174 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
6176 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6178 Workaround for broken ATI VBE.
6180 * video/i386/pc/vbe.c (last_set_mode): New variable.
6181 (grub_vbe_set_video_mode): Set 'last_set_mode'.
6182 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
6183 (grub_video_vbe_setup): Don't check for reserved flag.
6185 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
6187 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
6190 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
6192 UUID support for HFS.
6194 * fs/hfs.c (grub_hfs_uuid): New function.
6195 (grub_hfs_fs): New value .uuid.
6196 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
6198 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
6200 Fix a segfault with parsing unknown long options.
6202 * util/grub-mkrelpath.c (options): Zero terminate it.
6204 2009-12-13 Carles Pina i Estany <carles@pina.cat>
6206 * include/grub/misc.h (grub_puts): New declaration.
6207 (grub_puts_): Likewise.
6208 * kern/misc.c (grub_puts): New definition.
6209 (grub_puts_): Likewise.
6211 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6213 * util/grub-probe.c (probe): Improve error message.
6215 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6217 * loader/i386/multiboot_elfxx.c
6218 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
6221 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6225 * loader/i386/xnu_helper.S: Removed. All users updated.
6226 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
6227 (relocator_mod_SOURCES): New variable.
6228 (relocator_mod_CFLAGS): Likewise.
6229 (relocator_mod_LDFLAGS): Likewise.
6230 (relocator_mod_ASFLAGS): Likewise.
6231 * conf/x86_64.rmk: Likewise.
6232 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
6233 (grub_multiboot_payload_entry_offset): Likewise.
6234 (grub_multiboot_forward_relocator): Likewise.
6235 (grub_multiboot_forward_relocator_end): Likewise.
6236 (grub_multiboot_backward_relocator): Likewise.
6237 (grub_multiboot_backward_relocator_end): Likewise.
6238 (grub_multiboot_payload_eip): New variable.
6239 (grub_multiboot_payload_orig): Likewise.
6240 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
6241 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
6242 * include/grub/i386/memory.h
6243 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
6244 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
6245 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
6246 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
6247 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
6248 * include/grub/i386/relocator.h: New file.
6249 * include/grub/x86_64/relocator.h: Likewise.
6250 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
6251 (XNU_RELOCATOR): New macro.
6252 (grub_xnu_launcher_start): Remove.
6253 (grub_xnu_launcher_end): Likewise.
6254 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
6255 (grub_xnu_heap_real_start): Remove.
6256 (grub_xnu_heap_start): Change to void *. All users updated.
6257 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
6258 * lib/i386/relocator.c: New file.
6259 * lib/i386/relocator_asm.S: Likewise.
6260 * lib/i386/relocator_backward.S: Likewise.
6261 * lib/mips/relocator.c: Likewise.
6262 * lib/mips/relocator_asm.S: Likewise.
6263 * lib/relocator.c: Likewise.
6264 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
6266 (playground): Likewise.
6267 (grub_multiboot_payload_orig): New variable.
6268 (grub_multiboot_payload_dest): Likewise.
6269 (grub_multiboot_payload_size): Likewise.
6270 (grub_multiboot_payload_eip): Likewise.
6271 (grub_multiboot_payload_esp): Likewise.
6272 (grub_multiboot_boot): Use grub_relocator32_boot.
6273 (grub_multiboot_unload): Free relocators.
6274 (grub_multiboot): Setup stack. Use relocators.
6275 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
6276 (grub_multiboot_load_elfXX): Use relocators.
6277 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
6278 (grub_multiboot_payload_size): Likewise.
6279 (grub_multiboot_payload_dest): Likewise.
6280 (grub_multiboot_payload_entry_offset): Likewise.
6281 (grub_multiboot_forward_relocator): Likewise.
6282 (grub_multiboot_backward_relocator): Likewise.
6283 (grub_multiboot_real_boot): Likewise.
6284 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
6285 (grub_xnu_entry_point): Likewise.
6286 (grub_xnu_arg1): Likewise.
6287 (grub_xnu_stack): Likewise.
6288 (grub_xnu_launch): Removed.
6289 (grub_xnu_boot_resume): New function.
6290 (grub_xnu_boot): Use relocators.
6291 * loader/i386/xnu_helper.S: Removed.
6292 * loader/xnu.c (grub_xnu_heap_start): New variable.
6293 (grub_xnu_heap_size): Likewise.
6294 (grub_xnu_heap_malloc): Use relocators.
6295 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
6297 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6299 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
6302 2009-12-13 Carles Pina i Estany <carles@pina.cat>
6304 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
6305 GRUB_ERR_NONE before calling grub_env_set.
6307 2009-12-12 Robert Millan <rmh@aybabtu.com>
6309 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
6310 * genmk.rb (video): New variable.
6311 (CLEANFILES, VIDEOFILES): Add #{video}.
6312 (#{video}): New target rule.
6313 * genvideolist.sh: New file.
6314 * Makefile.in (pkglib_DATA): Add video.lst.
6315 (video.lst): New target rule.
6316 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
6318 * util/grub.d/30_os-prober.in: Replace `vbe' with
6319 ${GRUB_VIDEO_BACKEND}.
6321 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
6323 * THANKS: Add David Miller.
6325 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
6327 libpciaccess support.
6329 * Makefile.in (LIBPCIACCESS): New variable.
6330 (enable_grub_emu_pci): Likewise.
6331 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
6332 util/pci.c and commands/lspci.c.
6333 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
6334 * configure.ac (grub-emu-pci): New option.
6335 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
6336 (grub_pci_device_unmap_range): Likewise.
6337 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
6338 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
6339 (grub_pci_address_t) [!GRUB_UTIL]: New type.
6340 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
6341 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
6342 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
6343 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
6344 * include/grub/pciutils.h: New file.
6345 * util/pci.c: Likewise.
6347 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
6349 * util/misc.c: Don't include <errno.h> twice.
6351 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
6353 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
6354 name in an error message.
6355 (grub_biosdisk_rw): Likewise.
6357 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6359 Eliminate NTFS 4Gib barrier.
6361 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
6362 (read_run_data): Likewise.
6363 (grub_ntfs_read_run_list): Likewise.
6364 (grub_ntfs_read_block): Likewise.
6365 (grub_ntfs_iterate_dir): Likewise.
6366 (read_mft): Likewise.
6367 (read_data): Likewise.
6369 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
6370 to avoid 64-bit division
6371 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
6372 (grub_ntfs_rlst): Use grub_disk_addr_t.
6374 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6376 Eliminate grub-fstest 4Gib barrier.
6378 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
6379 (read_file): Fix error reporting.
6381 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6383 Eliminate hexdump 4Gib barrier.
6385 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
6386 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
6388 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6390 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
6393 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
6395 Remove miscellaneous files in distclean target.
6397 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
6399 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
6401 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
6402 if they're already set. This resolves the conflict between my
6403 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
6404 fixing the --grub-probe option again.
6405 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
6406 change on 2009-10-06, so that we now once again source
6407 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
6409 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
6411 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
6412 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
6415 2009-12-08 Carles Pina i Estany <carles@pina.cat>
6417 * include/grub/misc.h (grub_printf_): New declaration.
6418 * kern/misc.c (grub_printf_): New definition.
6419 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
6420 instead of `grub_printf' and `_'.
6421 * normal/menu_entry.c (store_completion): Likewise.
6423 (grub_menu_entry_run): Likewise.
6424 * normal/menu_text.c (grub_wait_after_message): Likewise.
6425 (notify_booting): Likewise.
6426 (notify_fallback): Likewise.
6427 (notify_execution_failure): Likewise.
6429 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
6431 * configure.ac: Check for vasprintf.
6432 * util/misc.c (asprintf): Move allocation from here ...
6433 (vasprintf): ... to here. New function.
6434 (xasprintf): New function.
6435 * include/grub/util/misc.h (vasprintf, xasprintf): Add
6437 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
6438 * util/grub-mkfont.c (write_font): Likewise.
6439 * util/grub-probe.c (probe): Likewise.
6440 * util/hostdisk.c (make_device_name): Likewise.
6442 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
6444 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
6445 anything even prefixed with 'cdrom' as a cdrom.
6447 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
6449 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
6452 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6454 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
6455 grub_gettext_msg_list.
6456 (grub_gettext_gettranslation_from_position): Return const char *
6458 (grub_gettext_translate): Add the translated strings into a list,
6459 returns from the list if existing there.
6460 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
6461 (grub_gettext_delete_list): Delete the list.
6462 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
6463 lang environment variable is changed.
6464 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
6466 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6468 Rename kernel.mod to kernel.img.
6470 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
6471 (kernel_mod_EXPORTS): Rename to ...
6472 (kernel_img_EXPORTS): ... this.
6473 (kernel_mod_SOURCES): Rename to ...
6474 (kernel_img_SOURCES): ... this.
6475 (kernel_mod_HEADERS): Rename to ...
6476 (kernel_img_HEADERS): ... this. All users updated.
6477 (kernel_mod_CFLAGS): Rename to ...
6478 (kernel_img_CFLAGS): ... this.
6479 (kernel_mod_ASFLAGS): Rename to ...
6480 (kernel_img_ASFLAGS): ... this.
6481 (kernel_mod_LDFLAGS): Rename to ...
6482 (kernel_img_LDFLAGS): ... this.
6483 * conf/x86_64-efi.rmk: Likewise.
6484 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
6485 (read_kernel_image): ... this. All users updated.
6486 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
6488 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6490 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
6491 (print_spaces): New function.
6492 (grub_print_ucs4): New function.
6493 (getstringwidth): New function.
6494 (print_message_indented): New function.
6495 (print_message): Gettexttize strings using print_message_indented.
6496 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
6498 (get_entry_number): Gettextize and uses dynamic terminal width.
6499 (notify_booting, notify_fallback, notify_execution_failure):
6501 * normal/menu_entry.c (store_completion): Cleanup the gettextized
6504 (grub_menu_entry_run): Likewise.
6505 * PO/POTFILES: Add normal/menu_entry.c.
6507 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6509 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
6511 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6513 * util/grub-install.in: Install gettext .mo files.
6514 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
6516 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6518 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
6521 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
6523 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
6524 non-firmware-dependant one in realmode.S takes precedence.
6526 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
6528 * commands/halt.c: Replace misc arch-specific headers with
6530 * commands/reboot.c: Likewise.
6531 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
6533 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
6534 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
6535 (kernel_img_SOURCES): ... to here.
6537 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
6538 * include/grub/i386/pc/init.h: Likewise.
6539 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
6540 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
6542 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
6544 * include/grub/i386/halt.h: Remove.
6545 * include/grub/i386/reboot.h: Likewise.
6547 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
6549 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
6551 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
6552 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
6553 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
6555 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6556 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6557 (usage): Add missing comma in printf.
6559 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
6561 Use the same reboot approach on i386 coreboot and qemu as we do on
6564 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
6565 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
6566 * kern/i386/reboot.c: Remove.
6567 * include/grub/i386/reboot.h (grub_reboot): Export function.
6568 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
6569 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
6570 0xf000:0xfff0 instead of 0xffff:0x0000.
6571 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
6572 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
6574 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
6576 Fix $srcdir != $objdir build.
6578 * Makefile.in (po/%.po): Rewrite as ...
6579 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
6581 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
6583 Fix GNU/Hurd grub-install crash.
6584 * util/grub-probe.c (probe): Try to access `path' only when it is not
6587 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6589 Correct module naming.
6591 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6592 (GRUB_MOD_INIT(efi_uga)): ... to this
6593 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6594 (GRUB_MOD_FINI(efi_uga)): ... to this
6595 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6596 (GRUB_MOD_INIT(efi_gop)): ... to this
6597 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6598 (GRUB_MOD_FINI(efi_gop)): ... to this
6600 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
6602 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
6604 (usage): Translate `arg' strings using gettext().
6605 Thanks to Jordi Mallach for the suggestion.
6607 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6609 GOP support. Based on patch from Bean
6610 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
6612 * video/efi_gop.c: New file.
6613 * include/grub/efi/graphics_output.h: Likewise.
6614 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
6615 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
6617 * conf/x86_64-efi.rmk: Likewise.
6619 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6621 Rename efi_fb to efi_uga.
6623 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6625 (efi_fb_mod_SOURCES): Rename this ...
6626 (efi_uga_mod_SOURCES): ... to this.
6627 (efi_fb_mod_CFLAGS): Rename this ...
6628 (efi_uga_mod_CFLAGS): ... to this.
6629 (efi_fb_mod_LDFLAGS): Rename this ...
6630 (efi_uga_mod_LDFLAGS): ... to this.
6631 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6633 (efi_fb_mod_SOURCES): Rename this ...
6634 (efi_uga_mod_SOURCES): ... to this.
6635 (efi_fb_mod_CFLAGS): Rename this ...
6636 (efi_uga_mod_CFLAGS): ... to this.
6637 (efi_fb_mod_LDFLAGS): Rename this ...
6638 (efi_uga_mod_LDFLAGS): ... to this.
6639 * video/efi_fb.c: Move this ...
6640 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
6642 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6644 * po/README: New file. Explain our PO file workflow.
6646 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6648 * po/ChangeLog: Remove. Move relevant entries back to ...
6649 * ChangeLog: ... here.
6650 * po/ca.po: Remove (now handled by TLP).
6651 * po/id.po: Likewise.
6652 * po/zh_CN.po: Likewise.
6653 * Makefile.in (LINGUAS): Initialize in a way that supports
6656 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6658 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
6659 reliing on po/LINGUAS.
6660 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
6661 (po/%.po): ... this.
6663 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6665 * util/i386/efi/grub-mkimage.c: Include "progname.h".
6666 (main): Use `program_name' instead of nonexistent `progname'.
6668 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6670 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6671 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
6673 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6675 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
6677 * conf/i386-efi.rmk: Likewise.
6678 * conf/i386-ieee1275.rmk: Likewise.
6679 * conf/powerpc-ieee1275.rmk: Likewise.
6680 * conf/sparc64-ieee1275.rmk: Likewise.
6681 * conf/x86_64-efi.rmk: Likewise.
6683 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6685 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
6687 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6689 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
6691 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6693 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
6694 (grub_mkdevicemap_SOURCES): New variable.
6695 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
6696 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
6697 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
6698 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
6699 (grub_mkdevicemap_SOURCES): Remove.
6700 * conf/i386-efi.rmk: Likewise.
6701 * conf/i386-ieee1275.rmk: Likewise.
6702 * conf/i386-pc.rmk: Likewise.
6703 * conf/powerpc-ieee1275.rmk: Likewise.
6704 * conf/sparc64-ieee1275.rmk: Likewise.
6705 * conf/x86_64-efi.rmk: Likewise.
6706 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
6707 (usage): Fix strings to use `program_name'.
6708 (main): Initialize gettext.
6709 * util/grub-editenv.c: Likewise.
6710 * util/grub-emu.c: Likewise.
6711 * util/grub-fstest.c: Likewise.
6712 * util/grub-mkdevicemap.c: Likewise.
6713 * util/grub-mkfont.c: Likewise.
6714 * util/grub-mkrelpath.c: Likewise.
6715 * util/grub-pe2elf.c: Likewise.
6716 * util/grub-probe.c: Likewise.
6717 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
6718 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6719 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6721 * util/misc.c: Include `"progname.h"'.
6722 (progname): Remove variable.
6723 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
6725 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
6727 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
6728 printf and print a newline after the menuentry header line.
6729 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
6731 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
6733 autoconf >= 2.60 support $(localedir).
6735 * INSTALL: Note that autoconf 2.60 is required.
6736 * configure.ac (AC_PREREQ): Bump to 2.60.
6737 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
6738 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
6740 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
6742 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
6745 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6747 * normal/main.c (grub_normal_read_line): Fix off-by-one
6750 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6752 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
6753 "parser.grub" in grub_command_execute() call.
6755 2009-11-24 Carles Pina i Estany <carles@pina.cat>
6757 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
6758 * conf/i386-efi.rmk: Likewise.
6759 * conf/i386-ieee1275.rmk: Likewise.
6760 * conf/i386-pc.rmk: Likewise.
6761 * conf/powerpc-ieee1275.rmk: Likewise.
6762 * conf/sparc64-ieee1275.rmk: Likewise.
6763 * conf/x86_64-efi.rmk: Likewise.
6764 * gettext/gettex.c: Include <grub/i18n.h>.
6765 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
6767 * include/grub/i18n.h: ... to here
6768 * include/grub/i18n.h: ... to here.
6769 * kern/misc.c: Include <grub/i18n.h>
6770 (grub_gettext_dummy): Move above user.
6772 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6774 * util/Makefile.in (install-local): Convert a `for' into a normal
6777 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
6779 * autogen.sh: Add automake call.
6780 * config.guess: Remove.
6781 * config.sub: Likewise.
6782 * install-sh: Likewise.
6784 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6786 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
6788 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6790 * util/Makefile.in (install-local): Convert a make `$(foreach)'
6791 function to a normal shell `for'.
6793 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6795 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6797 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6799 * util/grub-mkrelpath.c: New file.
6800 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
6801 (grub_mkrelpath_SOURCES): New variable.
6802 * include/grub/util/misc.h: New function prototype.
6803 * util/misc.c (make_system_path_relative_to_its_root): New function.
6805 * util/grub-mkconfig_lib.in (bindir): New variable.
6806 (grub_mkrelpath): Likewise.
6807 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
6809 * util/probe.c (probe): Make the file path relative to its root.
6810 Change a info message to use the GRUB path. Enable again the
6811 check if we can read the file with GRUB facilities.
6813 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
6816 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6818 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
6821 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6823 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
6826 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6828 * util/getroot.c (grub_util_is_dmraid): New function.
6829 (grub_util_get_dev_abstraction): Treat dmraid and multipath
6830 devices as normal ones, not as LVM.
6832 2009-11-23 Carles Pina i Estany <carles@pina.cat>
6834 * conf/common.rmk: Add grub-gettext_lib target and updates
6835 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
6837 * gettext/gettext.c: New file. (Reads mo files).
6838 * include/grub/file.h (grub_file_pread): New prototype.
6839 * include/grub/i18n.h (_): New prototype.
6840 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
6842 * kern/misc.c (grub_gettext_dummy): New function.
6843 * normal/menu_text.c: Include <grub/i18n.h>.
6844 * normal/menu_text.c (print_timeout): Gettexttize string.
6845 * normal/menu_text.c (print_message): Gettexttize string.
6846 * po/POTFILES: Add `normal/menu_text.c'.
6847 * po/ca.po: Add new translations.
6848 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
6849 gettext module and defines locale_dir and lang in grub.cfg.
6850 * NEWS: Add gettext support.
6852 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6854 * util/hostdisk.c: Include `<grub/i18n.h>'.
6855 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
6856 (make_device_name): Rewrite using asprintf.
6857 (convert_system_partition_to_system_disk): Replace 0 with NULL.
6858 (find_system_device): If a device is not found, generate one just
6859 by reusing the OS path name.
6860 (read_device_map): Make it permissible for device.map not to exist.
6862 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6864 * script/sh/execute.c: Move from here ...
6865 * script/execute.c: ... to here. Update all users.
6866 * script/sh/function.c: Move from here ...
6867 * script/function.c: ... to here. Update all users.
6868 * script/sh/lexer.c: Move from here ...
6869 * script/lexer.c: ... to here. Update all users.
6870 * script/sh/main.c: Move from here ...
6871 * script/main.c: ... to here. Update all users.
6872 * script/sh/parser.y: Move from here ...
6873 * script/parser.y: ... to here. Update all users.
6874 * script/sh/script.c: Move from here ...
6875 * script/script.c: ... to here. Update all users.
6877 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6879 * configure.ac: Detect all `emu' platforms. Define
6880 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
6881 --enable-grub-emu logic. Disable include/grub/machine
6882 symlink on `emu' platforms.
6884 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
6885 * gensymlist.sh.in: Likewise.
6887 * include/grub/i386/coreboot/machine.h: Remove file.
6888 * include/grub/i386/efi/machine.h: Likewise.
6889 * include/grub/i386/ieee1275/machine.h: Likewise.
6890 * include/grub/i386/pc/machine.h: Likewise.
6891 * include/grub/i386/qemu/machine.h: Likewise.
6892 * include/grub/powerpc/ieee1275/machine.h: Likewise.
6893 * include/grub/sparc64/ieee1275/machine.h: Likewise.
6894 * include/grub/x86_64/efi/machine.h: Likewise.
6896 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
6897 * commands/halt.c: Likewise.
6898 * commands/reboot.c: Likewise.
6899 * include/grub/autoefi.h: Likewise.
6900 * include/grub/i386/at_keyboard.h: Likewise.
6901 * include/grub/i386/kernel.h: Likewise.
6902 * include/grub/i386/loader.h: Likewise.
6903 * include/grub/i386/pc/memory.h: Likewise.
6904 * kern/dl.c: Likewise.
6905 * kern/i386/coreboot/init.c: Likewise.
6906 * loader/i386/bsd.c: Likewise.
6907 * loader/i386/linux.c: Likewise.
6908 * loader/multiboot_loader.c: Likewise.
6909 * term/i386/pc/serial.c: Likewise.
6910 * term/usb_keyboard.c: Likewise.
6912 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
6913 `<grub/machine/machine.h>'
6914 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
6915 * util/misc.c: Remove `<grub/machine/machine.h>' and
6916 `<grub/machine/time.h>'.
6918 * Makefile.in (enable_grub_emu): Remove variable.
6919 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
6921 * conf/any-emu.rmk: New file.
6922 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
6923 (grub_emu_init.c): Move from here ...
6924 * conf/any-emu.rmk: ... to here.
6926 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
6927 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
6928 * conf/any-emu.rmk: ... to here.
6930 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6932 * include/grub/parser.h (grub_parser_register): Document need
6933 of `name' parameter.
6934 * normal/main.c (grub_normal_read_line): Simplify prompt string.
6935 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
6938 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6940 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
6942 * include/grub/i18n.h (N_): New macro.
6943 * util/mkisofs/mkisofs.h: Likewise.
6944 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
6946 (usage): Use gettext() to translate help strings when printing them.
6948 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6950 Based on patch from Bean
6951 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
6953 * video/efi_fb.c: New file.
6954 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
6955 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
6957 * conf/x86_64-efi.rmk: Likewise.
6959 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
6961 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
6962 * util/i386/pc/grub-setup.c: Likewise.
6964 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6966 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
6968 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
6969 file_get_storage_info to implement grub_guess_root_device.
6971 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
6973 * Makefile.in (target): Use make's builtin $(shell) function
6974 instead of calling directly $(SHELL) to create the locale directories,
6975 inside the $(foreach) function.
6977 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
6979 * util/grub-mkrescue.in: Print an error and usage if output option
6982 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
6984 Patch from Loïc Minier <loic.minier@ubuntu.com>.
6985 * util/grub.d/30_os-prober.in: Cope with Linux entries where
6986 root and /boot are on different devices.
6988 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6990 Fix build for srcdir != objdir.
6992 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
6993 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
6995 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
6996 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
6997 reference for input.
6999 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7001 * util/grub-mkrescue.in: Use source directory direcly (without copiing
7002 or hardlinking it). Remove -J option, Joliet is not compatible with
7003 multiple source directories.
7005 2009-11-21 Carles Pina i Estany <carles@pina.cat>
7006 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7008 * util/grub-mkrescue.in: Recognize `--override-directory' option.
7009 (process_input_dir): New function. Process an arbitrary input
7011 Misc adjustments to support both "override mode" and system-wide mode.
7013 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
7015 * configure.ac (UNIFONT_BDF): Rename to ...
7016 (FONT_SOURCE): ... this. Update all users.
7018 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
7020 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
7021 to the list of unifont files to look for.
7023 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7025 Patch from Joe Auricchio <jauricchio@gmail.com>
7026 * commands/minicmd.c (grub_mini_cmd_clear): New function.
7027 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
7028 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
7030 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
7032 * Makefile.in (install-local): Add a missing backslash.
7034 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
7036 * include/grub/x86_64/io.h: New file.
7038 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7040 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
7041 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
7042 Include `"progname.h"'.
7043 (main): Initialize gettext.
7044 * util/i386/pc/grub-setup.c: Gettexttize.
7045 * util/i386/pc/grub-mkimage.c: Likewise.
7047 * Makefile.in (po/*.po): Redefine as ...
7048 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
7050 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
7052 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7054 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
7055 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
7056 (program_name): Remove.
7057 (main): Initialize gettext support.
7058 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
7059 Include `<libintl.h>'.
7062 * util/mkisofs/eltorito.c: Gettexttize.
7063 * util/mkisofs/joliet.c: Likewise.
7064 * util/mkisofs/mkisofs.c: Likewise.
7065 * util/mkisofs/multi.c: Likewise.
7066 * util/mkisofs/rock.c: Likewise.
7067 * util/mkisofs/tree.c: Likewise.
7068 * util/mkisofs/write.c: Likewise.
7070 * po/POTFILES: Update with new files.
7072 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7074 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
7075 * util/mkisofs/iso9660.h: Likewise.
7076 * util/mkisofs/joliet.c: Likewise.
7077 * util/mkisofs/mkisofs.c: Likewise.
7078 * util/mkisofs/mkisofs.h: Likewise.
7079 * util/mkisofs/rock.c: Likewise.
7080 * util/mkisofs/tree.c: Likewise.
7081 * util/mkisofs/write.c: Likewise.
7083 * util/mkisofs/eltorito.c (rcsid): Remove.
7084 * util/mkisofs/hash.c: Likewise.
7085 * util/mkisofs/joliet.c: Likewise.
7086 * util/mkisofs/name.c: Likewise.
7087 * util/mkisofs/rock.c: Likewise.
7088 * util/mkisofs/tree.c: Likewise.
7089 * util/mkisofs/write.c: Likewise.
7091 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7093 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
7094 instead of static allocation.
7095 * util/mkisofs/match.h: Likewise.
7097 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7099 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
7100 and `util/grub.d/10_linux.in'.
7101 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
7102 translatable Shell files.
7104 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7106 * Makefile.in ($(srcdir)/aclocal.m4): New target.
7108 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7110 * INSTALL: Document Automake is needed for bootstrap.
7111 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
7112 * util/grub.d/10_kfreebsd.in (bindir): New variable.
7113 Add gettext initialization.
7114 (kfreebsd_entry): Make menuentry output translatable.
7116 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7118 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
7119 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
7120 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
7121 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
7122 (LINGUAS): Auto-generate using `po/LINGUAS'.
7123 * po/LINGUAS: New file.
7125 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7127 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
7129 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
7130 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
7131 bindtextdomain() calls for gettext initialization.
7133 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7135 * gnulib/progname.c: New file (imported from Gnulib).
7136 * gnulib/progname.h: Likewise.
7137 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7138 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
7139 (usage): Replace `progname' with `program_name'.
7140 (main): Use set_program_name() for program name initialization.
7142 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7144 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
7146 * Makefile.in (CPPFLAGS): ... to here.
7148 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7150 * aclocal.m4: Move from here ...
7151 * acinclude.m4: ... to here.
7152 * autogen.sh: Add call to `aclocal'.
7153 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
7155 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7157 * Makefile.in (CLEANFILES): Add `po/*.mo'.
7158 (LINGUAS): New variable.
7159 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
7160 (install-local): Install MO files.
7161 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
7162 * include/grub/i18n.h: New file.
7163 * po/POTFILES: New file.
7164 * po/ca.po: New file.
7165 * util/grub.d/10_linux.in (bindir): New variable.
7166 Add gettext initialization.
7167 (linux_entry): Make menuentry output translatable.
7168 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
7169 (usage): Make --help output translatable.
7170 (main): Initialize gettext.
7172 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7174 * import_gcry.py: New file (written by Vladimir with minor
7176 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
7178 * INSTALL: Document that Python is required for bootstrap.
7180 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7182 Import ciphers from libgcrypt 1.4.4.
7184 * lib/libgcrypt/cipher/ChangeLog
7185 * lib/libgcrypt/cipher/ac.c
7186 * lib/libgcrypt/cipher/arcfour.c
7187 * lib/libgcrypt/cipher/bithelp.h
7188 * lib/libgcrypt/cipher/blowfish.c
7189 * lib/libgcrypt/cipher/camellia-glue.c
7190 * lib/libgcrypt/cipher/camellia.c
7191 * lib/libgcrypt/cipher/camellia.h
7192 * lib/libgcrypt/cipher/cast5.c
7193 * lib/libgcrypt/cipher/cipher.c
7194 * lib/libgcrypt/cipher/crc.c
7195 * lib/libgcrypt/cipher/des.c
7196 * lib/libgcrypt/cipher/dsa.c
7197 * lib/libgcrypt/cipher/ecc.c
7198 * lib/libgcrypt/cipher/elgamal.c
7199 * lib/libgcrypt/cipher/hash-common.c
7200 * lib/libgcrypt/cipher/hash-common.h
7201 * lib/libgcrypt/cipher/hmac-tests.c
7202 * lib/libgcrypt/cipher/md.c
7203 * lib/libgcrypt/cipher/md4.c
7204 * lib/libgcrypt/cipher/md5.c
7205 * lib/libgcrypt/cipher/primegen.c
7206 * lib/libgcrypt/cipher/pubkey.c
7207 * lib/libgcrypt/cipher/rfc2268.c
7208 * lib/libgcrypt/cipher/rijndael-tables.h
7209 * lib/libgcrypt/cipher/rijndael.c
7210 * lib/libgcrypt/cipher/rmd.h
7211 * lib/libgcrypt/cipher/rmd160.c
7212 * lib/libgcrypt/cipher/rsa.c
7213 * lib/libgcrypt/cipher/seed.c
7214 * lib/libgcrypt/cipher/serpent.c
7215 * lib/libgcrypt/cipher/sha1.c
7216 * lib/libgcrypt/cipher/sha256.c
7217 * lib/libgcrypt/cipher/sha512.c
7218 * lib/libgcrypt/cipher/tiger.c
7219 * lib/libgcrypt/cipher/twofish.c
7220 * lib/libgcrypt/cipher/whirlpool.c
7222 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7224 Fix build for systems without error().
7226 * gnulib/error.c: New file (imported from Gnulib).
7227 * gnulib/error.h: Likewise.
7228 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
7229 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
7230 (this variable is now used by error()).
7232 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7234 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
7235 instead of relying that char is signed.
7237 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7239 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
7240 blocksize different from specified.
7241 (grub_pxefs_read): Likewise.
7243 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7245 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
7247 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
7248 (grub_ata_readwrite): Likewise. Update 2 format strings.
7249 (grub_atapi_read): Likewise.
7251 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
7252 * conf/i386.rmk (pkglib_MODULES): ... to here ...
7253 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
7254 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
7255 (ata_mod_LDFLAGS): Move from here ...
7256 * conf/i386.rmk: ... to here ...
7257 * conf/x86_64-efi.rmk: ... and here.
7258 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
7259 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
7261 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7263 Relicense multiboot.h, with RMS' blessing.
7265 * include/multiboot.h: Change to X11 license.
7267 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
7269 Support --version in grub-mkisofs.
7271 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
7272 (OPTION_VERSION): New macro.
7273 (ld_options): Recognize --version.
7274 (usage): Move `program_name' from here ...
7275 (program_name): ... to here. Add `static' qualifier.
7276 (main): Recognize `OPTION_VERSION'.
7278 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
7280 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
7281 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
7283 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7285 Fix help2man generation for mkisofs.
7287 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
7288 (usage): Send output to stdout (rather than stderr).
7290 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7292 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
7293 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7294 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
7295 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7296 (bin_SCRIPTS): Add `grub-mkfloppy'.
7297 (grub_mkfloppy_SOURCES): New variable.
7299 * util/grub-mkrescue.in: New file.
7300 * util/i386/pc/grub-mkfloppy.in: New file.
7302 * util/i386/coreboot/grub-mkrescue.in: Remove.
7303 * util/i386/pc/grub-mkrescue.in: Remove.
7305 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7307 * include/grub/multiboot.h (struct grub_multiboot_header): Move
7309 * include/multiboot.h (struct multiboot_header): ... to here. Update
7311 * include/grub/multiboot.h (struct grub_multiboot_info): Move
7313 * include/multiboot.h (struct multiboot_info): ... to here. Update
7315 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
7317 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
7319 * include/grub/multiboot.h (struct grub_mod_list): Move
7321 * include/multiboot.h (struct multiboot_mod_list): ... to here.
7324 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7326 * include/multiboot2.h (multiboot_word): Rename from this ...
7327 (multiboot2_word): ... to this. Update all users.
7328 (multiboot_header): Rename from this ...
7329 (multiboot2_header): ... to this. Update all users.
7330 (multiboot_tag_header): Rename from this ...
7331 (multiboot2_tag_header): ... to this. Update all users.
7332 (multiboot_tag_start): Rename from this ...
7333 (multiboot2_tag_start): ... to this. Update all users.
7334 (multiboot_tag_name): Rename from this ...
7335 (multiboot2_tag_name): ... to this. Update all users.
7336 (multiboot_tag_module): Rename from this ...
7337 (multiboot2_tag_module): ... to this. Update all users.
7338 (multiboot_tag_memory): Rename from this ...
7339 (multiboot2_tag_memory): ... to this. Update all users.
7340 (multiboot_tag_unused): Rename from this ...
7341 (multiboot2_tag_unused): ... to this. Update all users.
7342 (multiboot_tag_end): Rename from this ...
7343 (multiboot2_tag_end): ... to this. Update all users.
7345 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7347 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
7348 this platform we should support Multiboot1 first.
7350 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
7351 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
7352 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
7354 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7356 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
7357 of write calls (converting them to fwrite() if they aren't already).
7358 (get_torito_desc): Likewise.
7359 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
7361 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7363 * util/i386/pc/grub-install.in: Move from here ...
7364 * util/grub-install.in: ... to here. Update all users.
7366 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
7368 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
7370 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7372 Support for El Torito without floppy emulation.
7374 * util/mkisofs/eltorito.c: Include `<errno.h>'.
7375 (init_boot_catalog): Improve error handling.
7376 (get_torito_desc): Don't use floppy emulation unless requested by
7377 user. Patch boot information table when requested via
7379 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
7380 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
7381 (use_boot_info_table): New variables.
7382 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
7383 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
7384 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
7385 `--eltorito-emul-floppy'.
7386 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
7387 and `OPTION_ELTORITO_EMUL_FLOPPY'.
7388 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
7389 (use_boot_info_table, get_731): New prototypes.
7390 * util/mkisofs/write.c (get_731): New function.
7392 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
7394 Fix the generation of the man page.
7396 * util/pc/i386/grub-install.in: Source
7397 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
7399 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7401 Large file support for grub-mkisofs.
7403 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
7404 * util/mkisofs/mkisofs.c (next_extent, last_extent)
7405 (session_start): Upgrade type to `uint64_t'. Update all users.
7406 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
7407 (struct directory_entry): Upgrade type of `starting_block' and
7408 `size' to `uint64_t'. Update all users.
7409 (struct deferred): Remove unused structure.
7410 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
7412 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
7413 file is larger than `UINT32_MAX'.
7414 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
7415 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
7417 (struct deferred_write): Upgrade type of `extent' and `size' to
7418 `uint64_t'. Update all users.
7419 (last_extent_written): Upgrade type to `uint64_t'. Update all
7421 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
7422 Update all users. Upgrade type of `remain' to `int64_t' and
7423 `use' to `size_t'. Use error() to handle fread() errors.
7424 (write_files): Rely on write_one_file() rather than calling
7427 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
7429 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
7431 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7433 * util/mkisofs/fnmatch.c: Remove.
7434 * util/mkisofs/getopt1.c: Likewise.
7435 * util/mkisofs/getopt.c: Likewise.
7436 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
7437 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
7438 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
7439 `gnulib/getopt1.c' and `gnulib/getopt.c'.
7440 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
7442 * configure.ac: Detect `mingw32msvc' host_os.
7443 Check for lstat(), getuid() and getgid().
7445 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
7446 instances of `u_char' with `uint8_t'.
7448 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
7449 [!HAVE_GETUID] (getuid): New function (stub).
7450 [!HAVE_GETGID] (getgid): Likewise.
7451 [!HAVE_LSTAT] (lstat): Likewise.
7452 [!S_IROTH] (S_IROTH): New macro (dummy).
7453 [!S_IRGRP] (S_IRGRP): Likewise.
7455 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7457 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
7458 conditional expression).
7460 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7464 * gnulib/fnmatch.c: New file.
7465 * gnulib/fnmatch.h: Likewise.
7466 * gnulib/fnmatch_loop.c: Likewise.
7467 * gnulib/getopt.c: Likewise.
7468 * gnulib/getopt.h: Likewise.
7469 * gnulib/getopt1.c: Likewise.
7470 * gnulib/getopt_int.h: Likewise.
7471 * gnulib/gettext.h: Likewise.
7473 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7475 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
7476 * normal/handler.c (read_handler_list): Likewise.
7478 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7482 * kern/command.c (grub_register_command_prio): Use
7483 grub_zalloc() instead of explicitly zeroing data.
7484 * kern/list.c: Include `<grub/mm.h>'.
7485 (grub_named_list_find): Replace `0' with `NULL'.
7486 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
7487 (fs_module_list): Change type to `grub_named_list_t'. Update all
7489 * normal/dyncmd.c (read_command_list): Add space between function
7490 call and parenthesis.
7491 * normal/handler.c (read_handler_list): Likewise.
7493 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7495 * normal/auth.c (punishment_delay): Moved from here ...
7496 (grub_auth_strcmp): ... to here (inside function).
7498 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7500 * include/grub/list.h (struct grub_named_list): Remove `const'
7501 qualifier from `name'.
7502 (struct grub_prio_list): Likewise.
7504 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7506 * normal/auth.c: Include `<grub/time.h>'.
7507 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
7509 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7511 * normal/auth.c (punishment_delay): New variable.
7512 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
7513 (grub_auth_check_authentication): Punish failed login attempts with
7514 an incremental (2^N) delay.
7516 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7518 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
7519 path with $(srcdir).
7521 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7523 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
7525 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7527 * util/i386/coreboot/grub-mkrescue.in: New file.
7528 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
7531 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
7532 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
7533 * configure.ac: Add header and function checks to satisfy grub-mkisofs
7535 * util/mkisofs/defaults.h: New file.
7536 * util/mkisofs/eltorito.c: Likewise.
7537 * util/mkisofs/exclude.h: Likewise.
7538 * util/mkisofs/fnmatch.c: Likewise.
7539 * util/mkisofs/getopt.c: Likewise.
7540 * util/mkisofs/getopt1.c: Likewise.
7541 * util/mkisofs/hash.c: Likewise.
7542 * util/mkisofs/include/fctldefs.h: Likewise.
7543 * util/mkisofs/include/mconfig.h: Likewise.
7544 * util/mkisofs/include/prototyp.h: Likewise.
7545 * util/mkisofs/include/statdefs.h: Likewise.
7546 * util/mkisofs/iso9660.h: Likewise.
7547 * util/mkisofs/joliet.c: Likewise.
7548 * util/mkisofs/match.c: Likewise.
7549 * util/mkisofs/match.h: Likewise.
7550 * util/mkisofs/mkisofs.c: Likewise.
7551 * util/mkisofs/mkisofs.h: Likewise.
7552 * util/mkisofs/multi.c: Likewise.
7553 * util/mkisofs/name.c: Likewise.
7554 * util/mkisofs/rock.c: Likewise.
7555 * util/mkisofs/tree.c: Likewise.
7556 * util/mkisofs/write.c: Likewise.
7558 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7560 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
7563 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7565 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
7566 `grub-mkimage' (and use $0 when possible).
7568 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7570 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
7571 error message for excessively large memory map.
7573 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7575 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
7578 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7580 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
7581 message for coreboot users.
7583 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
7585 Fix build with GNU gold.
7587 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
7588 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
7589 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
7591 * aclocal.m4: Likewise.
7593 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
7595 * configure.ac (AC_PREREQ): Bump to 2.59d.
7596 * INSTALL: Make it more clear when Autoconf and Ruby are
7597 needed and when to run `./autogen.sh'.
7599 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7601 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
7604 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7606 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
7608 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7610 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
7611 giving it to GNU Mach.
7613 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7615 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
7616 GNU partition number to get internal GRUB partition number.
7618 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7620 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
7621 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
7623 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
7625 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
7626 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
7629 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
7631 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
7633 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7637 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
7638 `-isystem=$(srcdir)/include'.
7640 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7642 * util/i386/pc/grub-install.in: Remove hint that device.map should be
7643 checked (grub-install doesn't currently rely on it).
7645 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
7649 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
7650 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7651 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
7652 * conf/i386-ieee1275.rmk: Likewise.
7653 * conf/i386-pc.rmk: Likewise.
7654 * conf/powerpc-ieee1275.rmk: Likewise.
7655 * conf/sparc64-ieee1275.rmk: Likewise.
7656 * conf/x86_64-efi.rmk: Likewise.
7658 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7660 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
7662 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7664 * include/grub/misc.h: Stop checking for APPLE_CC.
7666 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7668 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
7669 doesn't cause an infinite call loop.
7671 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
7673 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
7676 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7678 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
7680 * Makefile.in: Likewise.
7682 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7684 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
7686 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7688 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
7690 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7692 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
7694 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7696 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
7698 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
7700 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7702 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
7703 in $(MAKEINFO) invocation. This makes it clear in output that
7704 errors are being ignored.
7706 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7708 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
7710 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7711 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
7712 * conf/i386-ieee1275.rmk: Likewise.
7713 * conf/i386-pc.rmk: Likewise.
7714 * conf/powerpc-ieee1275.rmk: Likewise.
7715 * conf/sparc64-ieee1275.rmk: Likewise.
7716 * conf/x86_64-efi.rmk: Likewise.
7718 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
7720 * util/grub-editenv.c (main): If only a command is given, use
7721 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
7722 (usage): FILENAME is now optional and has a default.
7724 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
7726 Improve grub-mkconfig performance when there are several menu
7727 entries on a single filesystem.
7729 * util/grub.d/10_linux.in (linux_entry): Cache the output of
7730 prepare_grub_to_access_device.
7731 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
7732 * util/grub.d/30_os-prober.in: Likewise.
7734 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7736 * util/grub.d/10_freebsd.in: Remove.
7737 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
7738 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
7740 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7742 * docs/grub.cfg: Fix example usage of *BSD loaders.
7744 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7746 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
7747 grub_util_error() call.
7749 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7751 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
7752 `reserved_first_sector' member.
7753 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
7754 `reserved_first_sector' to 1.
7755 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
7756 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
7757 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
7758 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
7759 filesystems which begin at first sector.
7760 (options): New option --skip-fs-probe.
7761 (main): Handle --skip-fs-probe and pass it to setup().
7763 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7765 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
7766 (memset): Fix function prototype.
7768 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7769 2009-10-25 Vasily Averin <vvs@parallels.com>
7771 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
7772 `dirent.direntlen == 0'.
7774 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7776 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
7778 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
7780 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7782 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
7783 `__trampoline_setup' and `__ucmpdi2'.
7784 * include/grub/powerpc/libgcc.h: Only export symbols for functions
7785 that libgcc provides.
7787 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7789 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
7790 * include/grub/sparc64/libgcc.h (memset): Likewise.
7791 * include/grub/misc.h (memset, memcmp): New function prototypes.
7793 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7795 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
7797 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
7799 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7801 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
7802 * docs/grub.cfg: Compensate for recent change in multiboot
7803 loader (since 2009-08-14 it won't pass filename to payload).
7804 * util/grub.d/10_hurd.in: Likewise.
7806 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
7808 * config.guess: Update to latest version from config git
7810 * config.sub: Likewise.
7812 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
7814 Fix build on sparc64.
7816 * configure.ac: Perform checks for libgcc symbols before
7817 adding `-nostdlib' to LDFLAGS.
7819 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7821 Let user specify OpenBSD root device.
7823 * loader/i386/bsd.c (openbsd_root): New variable.
7824 (openbsd_opts): New option 'root'.
7825 (OPENBSD_ROOT_ARG): New macro.
7826 (grub_openbsd_boot): Use 'openbsd_root'.
7827 (grub_cmd_openbsd): Fill 'openbsd_root'.
7829 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
7831 * NEWS: Misc adjustments.
7833 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7835 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
7837 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
7839 * configure.ac: Bump version to 1.97.
7841 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
7843 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
7844 -mno-3dnow on x86 architectures. Some toolchains enable these
7845 features by default, but they rely on registers that aren't enabled
7846 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
7848 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
7850 Make entry text a bit more readable.
7852 * util/grub.d/10_linux.in: Add `with' before `Linux'.
7854 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7856 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
7858 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7860 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
7863 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7865 * configure.ac: Add missing dollar.
7867 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7869 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
7871 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
7872 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
7874 * include/grub/sparc64/libgcc.h: Likewise. Use
7875 preprocessor conditionals.
7877 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
7879 * conf/common.rmk (grub-dumpbios): Remove rule.
7880 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
7881 * util/grub-dumpbios.in: Remove file.
7883 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
7885 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
7886 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
7888 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
7889 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
7892 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
7893 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
7894 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
7895 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
7898 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
7900 * term/tparm.c: Switch to GPLv3.
7902 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
7904 * include/grub/i386/cpuid.h: Add header protection.
7906 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
7908 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
7910 * include/grub/i386/cpuid.h: New file.
7911 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
7912 (has_longmode): Rename to ...
7913 (grub_cpuid_has_longmode): ... this. Update all users. Remove
7915 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
7916 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
7917 on a CPU that doesn't implement AMD64 instruction set.
7919 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
7921 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
7922 that version.texi is rebuilt on version number changes.
7924 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
7926 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
7929 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
7931 * util/i386/pc/grub-install.in: Source
7932 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
7933 that the --grub-probe option will work.
7934 * util/sparc64/ieee1275/grub-install.in: Likewise.
7936 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
7938 * configure.ac: Bump version to 1.97~beta4.
7940 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
7942 Resync grub-mkdevicemap in x86_64-efi.
7944 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
7945 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
7948 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
7950 * util/grub-editenv.c (create_envblk_file): Write new block with a
7951 .new suffix and then rename it into place, to ensure atomic
7954 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
7956 Do not automatically install headers.
7958 * Makefile.in (include_DATA): Remove. Update all users.
7960 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
7962 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
7963 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
7965 * util/osdetect.lua: Remove.
7966 * script/lua/lauxlib.c: Likewise.
7967 * script/lua/ldebug.c: Likewise.
7968 * script/lua/grub_main.c: Likewise.
7969 * script/lua/lauxlib.h: Likewise.
7970 * script/lua/ldebug.h: Likewise.
7971 * script/lua/ltablib.c: Likewise.
7972 * script/lua/liolib.c: Likewise.
7973 * script/lua/lstrlib.c: Likewise.
7974 * script/lua/lualib.h: Likewise.
7975 * script/lua/ldo.c: Likewise.
7976 * script/lua/ldump.c: Likewise.
7977 * script/lua/ldo.h: Likewise.
7978 * script/lua/loslib.c: Likewise.
7979 * script/lua/lundump.c: Likewise.
7980 * script/lua/grub_lib.c: Likewise.
7981 * script/lua/ldblib.c: Likewise.
7982 * script/lua/lundump.h: Likewise.
7983 * script/lua/lmem.c: Likewise.
7984 * script/lua/grub_lib.h: Likewise.
7985 * script/lua/lmathlib.c: Likewise.
7986 * script/lua/lstate.c: Likewise.
7987 * script/lua/ltm.c: Likewise.
7988 * script/lua/lvm.c: Likewise.
7989 * script/lua/lmem.h: Likewise.
7990 * script/lua/lstate.h: Likewise.
7991 * script/lua/ltm.h: Likewise.
7992 * script/lua/ltable.c: Likewise.
7993 * script/lua/lvm.h: Likewise.
7994 * script/lua/llex.c: Likewise.
7995 * script/lua/lgc.c: Likewise.
7996 * script/lua/grub_lua.h: Likewise.
7997 * script/lua/loadlib.c: Likewise.
7998 * script/lua/lfunc.c: Likewise.
7999 * script/lua/lopcodes.c: Likewise.
8000 * script/lua/lparser.c: Likewise.
8001 * script/lua/ltable.h: Likewise.
8002 * script/lua/llex.h: Likewise.
8003 * script/lua/lgc.h: Likewise.
8004 * script/lua/lfunc.h: Likewise.
8005 * script/lua/lbaselib.c: Likewise.
8006 * script/lua/lopcodes.h: Likewise.
8007 * script/lua/lparser.h: Likewise.
8008 * script/lua/lzio.c: Likewise.
8009 * script/lua/linit.c: Likewise.
8010 * script/lua/lobject.c: Likewise.
8011 * script/lua/llimits.h: Likewise.
8012 * script/lua/lstring.c: Likewise.
8013 * script/lua/lzio.h: Likewise.
8014 * script/lua/lapi.c: Likewise.
8015 * script/lua/lcode.c: Likewise.
8016 * script/lua/lua.h: Likewise.
8017 * script/lua/lobject.h: Likewise.
8018 * script/lua/lstring.h: Likewise.
8019 * script/lua/lapi.h: Likewise.
8020 * script/lua/lcode.h: Likewise.
8021 * script/lua/luaconf.h: Likewise.
8023 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
8025 * docs/grub.texi (Command-line and menu entry commands): Document
8026 date and echo commands.
8028 2009-09-24 Pavel Roskin <proski@gnu.org>
8030 * include/grub/kernel.h (struct grub_module_header): Remove
8031 `grub_module_header_types'. Make `type' unsigned. Make `size'
8032 32-bit on all platforms.
8033 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
8034 8-bit field. Use grub_host_to_target32() for `size'.
8035 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
8036 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
8037 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
8039 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8041 Fix "lost keypress" bug in at_keyboard.
8043 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
8044 Checks for readyness of input buffer (without flushing it).
8045 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
8046 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
8048 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8050 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
8051 size check within GRUB_MACHINE_PCBIOS section.
8053 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8055 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
8057 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
8058 KEYBOARD_ISREADY check.
8059 (grub_at_keyboard_checkkey): Rename to ...
8060 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
8061 Remove gratuitous cast.
8063 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
8065 * configure.ac: Call AC_PROG_MKDIR_P.
8066 * Makefile.in (docs/stamp-vti): Create docs directory. Create
8067 version.texi in $(builddir) rather than $(srcdir).
8068 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
8069 to makeinfo's @include search path.
8071 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
8073 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
8075 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
8077 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
8080 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
8082 Build info documentation. Some code borrowed from Automake.
8084 * configure.ac: Check for makeinfo.
8085 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
8086 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
8088 (MOSTLYCLEANFILES): Add vti.tmp.
8089 (docs/version.texi, docs/stamp-vti): Update automatically.
8090 (docs/grub.info): Build info documentation. Use --force and ignore
8092 (all-local): Add $(INFOS).
8093 (install-local): Install info files.
8094 (uninstall): Uninstall info files.
8095 * docs/version.texi: Remove from revision control. This file is
8096 automatically generated on build now.
8097 * gendistlist.sh: Add `*.info'.
8099 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
8101 * kern/term.c: Fix indentation.
8103 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
8105 * util/hostdisk.c: Fix a comment.
8107 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
8109 Fix regression introduced in r2539.
8111 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
8114 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
8116 * util/grub.d/30_os-prober.in: Don't throw away stderr from
8117 os-prober. Under normal operation, it does not print anything to
8118 stderr; if it does, we need to debug it, and throwing away stderr
8119 makes that excessively difficult.
8121 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
8123 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
8125 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8127 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
8128 AC_LANG_PROGRAM from autoconf.
8129 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
8130 prototypes (fixes warning).
8132 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
8133 `--disable-werror' was used.
8135 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8137 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
8138 uninitialized `lastaddr'.
8140 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8142 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
8144 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8146 * commands/test.c (get_fileinfo): Return immediately if
8147 grub_fs_probe fails.
8149 2009-09-14 José Martínez <xosemp@gmail.com>
8151 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
8153 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8155 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
8158 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
8160 * configure.ac: Remove --enable-grub-pe2elf. Only build
8161 grub-pe2elf when needed by the build system itself.
8162 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
8164 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8166 * configure.ac: Bump version to 1.97~beta3.
8167 * docs/version.texi: Likewise.
8169 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8171 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
8172 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
8174 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
8175 (grub_linux_setup_video): ... to here (with some adjustments).
8177 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8179 Fix memory corruption issue (spotted by Colin Watson).
8181 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
8182 causing returned size to be stored in an incorrect memory location.
8183 Fix use of uninitialized value when storing the returned size.
8185 2009-09-12 Yves Blusseau <blusseau@zetam.org>
8187 Change clean rules to properly remove files
8189 * genmk.rb: add new clean rules
8190 * Makefile.in (clean): add the new targets
8191 (mostlyclean): likewise
8193 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8195 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
8197 * fs/ntfs.c (init_file): Understand 64-bit sizes for
8200 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8202 * configure.ac: Don't look for help2man when cross-compiling. Fixes
8205 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8207 * util/grub-mkconfig.in: Make the created config mode 400 and
8208 print a warning if it fails.
8210 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
8212 * util/grub.d/40_custom.in: Ask user to type custom entries below
8213 comment, rather than below 'exec tail' line.
8215 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8217 * util/grub.d/40_custom.in: Make sure that the explanatory text is
8218 visible in grub.cfg.
8220 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8222 * util/grub.d/40_custom.in: Make it a little clearer how to use this
8225 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8227 * docs/grub.cfg: Add an example menu entry for memtest86+.
8229 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
8231 * config.guess: Update to latest version from config git.
8232 * config.sub: Likewise.
8234 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
8236 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
8237 unknown-command case. Fixes bug #27320.
8239 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
8241 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
8242 `help' if the command exists.
8244 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
8246 * INSTALL: Require GCC 4.1.3 or later.
8248 2009-09-06 Yves Blusseau <blusseau@zetam.org>
8250 * Makefile.in (RMKFILES): add i386-qemu.rmk
8251 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
8252 $(srcdir)/stamp-h.in
8254 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
8256 * util/grub-probe.c (probe): Comment out buggy codepath, which
8257 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
8258 should be re-enabled after 1.97.
8260 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
8262 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
8265 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
8267 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
8268 unnecessary calls to grub_error.
8270 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
8272 * NEWS: Mention `keystatus' and Unicode fonts.
8274 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
8276 * configure.ac: Bump version to 1.97~beta2.
8277 * docs/version.texi: Likewise.
8279 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
8281 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
8282 containing unwind information in some cases where it previously did
8283 not. Use -fno-dwarf2-cfi-asm if available to restore the old
8284 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
8287 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
8289 Embedding loadenv module into grub-emu
8291 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
8293 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
8294 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
8295 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
8296 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
8297 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
8298 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
8300 2009-09-03 Magnus Granberg <zorry@ume.nu>
8302 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
8303 include -fPIE in the default specs.
8304 * configure.ac: Check if pie_possible is yes and add -fno-PIE
8307 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
8309 * INSTALL: Note that GNU Bison 2.3 or later is required.
8311 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
8313 * kern/i386/pc/startup.S: Fix typo.
8315 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
8317 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
8320 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8322 * docs/grub.texi (Naming convention): Describe one-based partition
8324 (Device syntax): Likewise.
8325 (File name syntax): Likewise.
8326 (Block list syntax): Likewise.
8327 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
8329 (File name syntax): Likewise.
8330 (Command-line and menu entry commands): Document acpi, blocklist,
8331 crc, export, insmod, keystatus, ls, set, and unset commands.
8333 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8335 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
8336 to avoid implying that only one of --shift, --ctrl, or --alt may be
8339 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8341 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
8342 rather than comparing against S_IFREG, which will almost never work.
8344 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
8346 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
8347 (write_blocklists): Likewise.
8349 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
8351 * script/lua/grub_lua.h (fputs): Supply a format string as the first
8352 argument to grub_printf.
8354 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
8356 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
8359 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8361 * kern/file.c (grub_file_read): Spelling fix
8363 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8365 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
8366 loading of headers in some cases.
8368 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
8370 * configure.ac: Bump version to 1.97~beta1.
8371 * docs/version.texi: Likewise.
8373 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8375 * include/grub/i386/xnu.h: Add license header.
8376 include grub/err.h explicitly.
8378 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8380 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
8381 to `ufs' in the vfs.root.mountfrom kernel parameter.
8383 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8385 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
8387 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
8388 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
8390 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
8393 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8395 * kern/file.c (grub_file_read): Check offset.
8396 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
8397 * fs/jfs.c (grub_jfs_read_file): Likewise.
8398 * fs/ntfs.c (grub_ntfs_read): Likewise.
8399 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
8400 * fs/minix.c (grub_minix_read_file): Correct offset check.
8401 * fs/ufs.c (grub_ufs_read_file): Likewise.
8403 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8405 * term/i386/pc/console.c (bios_data_area): Cast
8406 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
8408 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8410 1-bit optimised blitters.
8412 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
8414 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8415 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8416 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8417 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8418 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8419 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8420 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
8422 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8423 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8424 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8425 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8426 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8427 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8428 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
8430 * video/video.c (grub_video_get_blit_format): Return
8431 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
8433 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8435 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
8436 the first argument to grub_printf.
8438 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8439 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
8441 Add `getkeystatus' terminal method. Add a new `keystatus' command
8444 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
8445 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
8446 modifier key bitmasks.
8447 (struct grub_term_input): Add `getkeystatus' member.
8448 (grub_getkeystatus): Add prototype.
8449 * kern/term.c (grub_getkeystatus): New function.
8451 * include/grub/i386/pc/memory.h
8452 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
8453 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
8455 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
8456 (grub_console_term_input): Set `getkeystatus' member.
8457 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
8459 (grub_usb_keyboard_getreport): Likewise.
8460 (grub_usb_keyboard_checkkey): Likewise.
8461 (grub_usb_keyboard_getkeystatus): New function.
8462 (grub_usb_keyboard_term): Set `getkeystatus' member.
8464 * commands/keystatus.c: New file.
8465 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
8466 (keystatus_mod_SOURCES): New variable.
8467 (keystatus_mod_CFLAGS): Likewise.
8468 (keystatus_mod_LDFLAGS): Likewise.
8469 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
8470 commands/keystatus.c.
8471 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8472 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8473 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8474 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8475 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8476 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8478 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8480 Split befs.mod and afs.mod into *_be.mod and *.mod
8482 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
8483 (grub_fstest_SOURCES): Likewise.
8484 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
8485 (afs_be_mod_SOURCES): New variable.
8486 (afs_be_mod_CFLAGS): Likewise.
8487 (afs_be_mod_LDFLAGS): Likewise.
8488 (befs_be_mod_SOURCES): Likewise.
8489 (befs_be_mod_CFLAGS): Likewise.
8490 (befs_be_mod_LDFLAGS): Likewise.
8491 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
8492 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8493 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8494 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
8495 (grub_emu_SOURCES): Likewise.
8496 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8497 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8498 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8499 * fs/afs_be.c: New file.
8500 * fs/befs_be.c: New file.
8501 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
8502 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
8503 (U16): Replaced with ...
8504 (grub_afs_to_cpu16): ...this. All users updated.
8505 (U32): Replaced with ...
8506 (grub_afs_to_cpu32): ...this. All users updated.
8507 (U64): Replaced with ...
8508 (grub_afs_to_cpu64): ...this. All users updated.
8509 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
8510 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
8511 (grub_afs_validate_sblock): Check only one endianness.
8512 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8513 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8514 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8515 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8516 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8517 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8518 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8519 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8521 2009-08-26 Bean <bean123ch@gmail.com>
8523 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
8525 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
8526 (grub_xfs_inode_block): Change return type to grub_uint64_t.
8527 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
8529 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8531 NetBSD memory map support.
8533 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
8534 (grub_netbsd_btinfo_mmap_header): New structure.
8535 (grub_netbsd_btinfo_mmap_entry): Likewise.
8536 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
8538 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8540 Enable bsd.mod on coreboot.
8542 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
8543 (bsd_mod_SOURCES): New variable.
8544 (bsd_mod_CFLAGS): Likewise.
8545 (bsd_mod_LDFLAGS): Likewise.
8546 (bsd_mod_ASFLAGS): Likewise.
8547 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
8548 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
8550 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8552 Cleanup NetBSD root support.
8554 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
8555 grub_bsd_get_device.
8558 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
8560 * util/grub.d/00_header.in: Move check for the video backend of
8561 gfxterm from here ...
8562 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
8563 a suitable video backend.
8565 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8567 Fix breakage in grub-setup.
8569 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
8570 "msdos_partition_map".
8572 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8574 Fix breakage in normal/auth.c.
8576 * normal/auth.c (grub_iswordseparator): New function.
8578 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8580 Authentication support.
8582 * commands/password.c: New file.
8583 * conf/common.rmk (pkglib_MODULES): Add password.mod.
8584 (password_mod_SOURCES): New variable.
8585 (password_mod_CFLAGS): Likewise.
8586 (password_mod_LDFLAGS): Likewise.
8587 (normal_mod_SOURCES): Add normal/auth.c.
8588 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
8590 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8591 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8592 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8593 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8594 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8595 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8596 * include/grub/auth.h: New file.
8597 * include/grub/err.h (grub_err_t): New enum value
8598 GRUB_ERR_ACCESS_DENIED.
8599 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
8601 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
8602 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
8604 * normal/auth.c: New file.
8605 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
8606 (grub_cmdline_run): Don't allow to go to command line without
8608 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
8609 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
8610 menuentry without superuser rights.
8611 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
8612 user isn't a superuser.
8614 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8616 Save space by inlining misc.c functions.
8618 * kern/misc.c (grub_iswordseparator): Made static.
8619 * kern/misc.c (grub_strcat): Moved from here ...
8620 * include/grub/misc.h (grub_strcat): ... here. Inlined.
8621 * kern/misc.c (grub_strncat): Moved from here ...
8622 * include/grub/misc.h (grub_strncat): ... here. Inlined.
8623 * kern/misc.c (grub_strcasecmp): Moved from here ...
8624 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
8625 * kern/misc.c (grub_strncasecmp): Moved from here ...
8626 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
8627 * kern/misc.c (grub_isalpha): Moved from here ...
8628 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
8629 * kern/misc.c (grub_isdigit): Moved from here ...
8630 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
8631 * kern/misc.c (grub_isgraph): Moved from here ...
8632 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
8633 * kern/misc.c (grub_tolower): Moved from here ...
8634 * include/grub/misc.h (grub_tolower): ... here. Inlined.
8636 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8638 * script/sh/function.c (grub_script_function_find): Cut error message
8639 not to flood terminal.
8640 * script/sh/lexer.c (grub_script_yylex): Remove command line length
8642 * script/sh/script.c (grub_script_arg_add): Duplicate string.
8644 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
8646 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
8647 `report' grub_uint8_t *.
8648 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
8649 Use a 50-millisecond timeout rather than just repeating
8650 grub_usb_keyboard_getreport 50 times.
8651 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
8653 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8655 Rename *_partition_map to part_*
8657 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
8658 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
8659 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
8660 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
8662 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
8664 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
8665 * util/grub-probe.c (probe_partmap): Don't transform partition name
8668 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8670 Fix OpenBSD and NetBSD support.
8672 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
8673 memory address conflict.
8674 (OPENBSD_MMAP_ACPI): New definition.
8675 (OPENBSD_MMAP_NVS): Likewise.
8676 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
8677 and OPENBSD_MMAP_NVS.
8678 Add memory map terminator
8679 Explicit cast when calling grub_unix_real_boot.
8680 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
8682 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8684 Let user specify NetBSD root device.
8686 * loader/i386/bsd.c (netbsd_root): New variable.
8687 (netbsd_opts): New option 'root'.
8688 (NETBSD_ROOT_ARG): New macro.
8689 (grub_netbsd_boot): Use 'netbsd_root'.
8690 (grub_bsd_unload): Free 'netbsd_root'.
8691 (grub_cmd_netbsd): Fill 'netbsd_root'.
8693 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8695 Support for 64-bit NetBSD.
8697 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
8698 point when booting non-FreeBSD.
8700 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8702 Support --no-smp and --no-acpi for NetBSD.
8704 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
8705 (NETBSD_AB_NOACPI): Likewise.
8706 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
8707 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
8709 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8711 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
8713 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
8714 errors. Call grub_error when needed.
8716 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8718 * commands/search.c (search_fs): Try searching without autoload first.
8719 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
8720 filesystem module explicitly for faster booting.
8722 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
8724 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
8726 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
8728 * util/grub.d/30_os-prober.in: Disable os-prober if
8729 `GRUB_DISABLE_OS_PROBER' was set to true.
8731 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
8733 * partmap/pc.c: Rename to ...
8734 * partmap/msdos.c: ... this. Update all users.
8735 (grub_pc_partition_map): Rename to ...
8736 (grub_msdos_partition_map): ... this. Update all users.
8738 * parttool/pcpart.c: Rename to ...
8739 * parttool/msdospart.c: ... this. Update all users.
8741 * include/grub/pc_partition.h: Rename to ...
8742 * include/grub/msdos_partition.h: ... this. Update all users.
8743 (grub_pc_partition_bsd_entry): Rename to ...
8744 (grub_msdos_partition_bsd_entry): ... this. Update all users.
8745 (grub_pc_partition_disk_label): Rename to ...
8746 (grub_msdos_partition_disk_label): ... this. Update all users.
8747 (grub_pc_partition_entry): Rename to ...
8748 (grub_msdos_partition_entry): ... this. Update all users.
8749 (grub_pc_partition_mbr): Rename to ...
8750 (grub_msdos_partition_mbr): ... this. Update all users.
8751 (grub_pc_partition): Rename to ...
8752 (grub_msdos_partition): ... this. Update all users.
8753 (grub_pc_partition_is_empty): Rename to ...
8754 (grub_msdos_partition_is_empty): ... this. Update all users.
8755 (grub_pc_partition_is_extended): Rename to ...
8756 (grub_msdos_partition_is_extended): ... this. Update all users.
8757 (grub_pc_partition_is_bsd): Rename to ...
8758 (grub_msdos_partition_is_bsd): ... this. Update all users.
8760 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
8761 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
8762 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
8763 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
8764 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
8765 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
8766 (gpt_mod_LDFLAGS): Rename to ...
8767 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
8768 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
8769 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
8770 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
8771 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
8772 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
8773 (part_gpt_mod_LDFLAGS): ... this.
8774 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
8775 `pcpart.mod' to `msdospart.mod'.
8776 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
8778 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
8779 (msdospart_mod_LDFLAGS): ... this.
8781 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8783 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
8784 (openbsd_opts): Likewise.
8785 (netbsd_opts): Likewise.
8786 (freebsd_flags): Added 0 terminator.
8787 (openbsd_flags): Likewise.
8788 (netbsd_flags): Likewise.
8789 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
8790 (grub_cmd_freebsd): Transformed into extended command.
8791 (grub_cmd_openbsd): Likewise.
8792 (grub_cmd_netbsd): Likewise.
8793 (cmd_freebsd): Changed type to grub_extcmd_t.
8794 (cmd_openbsd): Likewise.
8795 (cmd_netbsd): Likewise.
8796 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
8797 grub_cmd_openbsd as extended commands.
8798 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
8799 cmd_netbsd and cmd_openbsd
8801 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
8803 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
8805 2009-08-21 Pavel Roskin <proski@gnu.org>
8807 * Makefile.in (install-local): When checking if a file is in the
8808 build directory, use "test -e" to detect symlinks.
8810 * Makefile.in (install-local): Remove all files in
8811 $(DESTDIR)$(pkglibdir) before installing new files there.
8813 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
8815 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
8818 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
8820 * util/grub-mkconfig.in: Don't use gfxterm by default if not
8821 explicitly specified by the user.
8823 2009-08-18 Pavel Roskin <proski@gnu.org>
8825 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
8826 grub_uint8_t pointer for data.
8827 * include/grub/fbutil.h (struct grub_video_fbblit_info):
8829 * video/fb/fbutil.c: Remove unnecessary casts.
8831 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
8835 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
8836 (grub_vbe_set_video_mode): Save active mode info
8837 only after setting the mode.
8838 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
8841 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
8843 Rename variables for clarity.
8845 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
8846 (active_vbe_mode_info): ... this. All users updated.
8847 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
8849 (initial_mode): Rename to ...
8850 (initial_vbe_mode): ... this. All users updated.
8851 (mode_in_use): Rename to ..
8852 (vbe_mode_in_use): ... this. All users updated.
8853 (mode_list): Rename to ..
8854 (vbe_mode_list): ... this. All users updated.
8855 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
8856 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
8857 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
8858 'mode_list_size' to 'vbe_mode_list_size'.
8859 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
8860 'best_mode_info' to 'best_vbe_mode_info' and
8861 'best_mode' to 'best_vbe_mode'
8863 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
8865 Remove duplicate grub_video_fb_get_video_ptr.
8867 * include/grub/fbutil.h (get_data_ptr): Rename to ...
8868 (grub_video_fb_get_video_ptr): ... this.
8869 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
8870 * video/fb/fbutil.c: Add comment about addressing.
8871 (get_data_ptr): Rename to ...
8872 (grub_video_fb_get_video_ptr): ... this. All users updated.
8873 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
8875 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
8877 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
8878 grub_dprintf() that was just added.
8880 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
8882 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
8883 (DEFAULT_VIDEO_MODE): Remove macros.
8884 (grub_linux_boot): Remove assumption that Linux has FB support,
8885 and use "text" as default video mode.
8887 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
8889 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
8891 * fs/fat.c (grub_fat_read_data): Likewise.
8893 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8895 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
8897 (grub_module): Likewise.
8899 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8901 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
8902 mbi->cmdline but free playground.
8904 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8906 Handle group offset on UFS1.
8908 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
8909 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
8911 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8913 Split ufs.mod into ufs1.mod and ufs2.mod.
8915 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
8916 (grub_fstest_SOURCES): Likewise.
8917 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
8918 (ufs_mod_SOURCES): Remove.
8919 (ufs_mod_CFLAGS): Likewise.
8920 (ufs_mod_LDFLAGS): Likewise.
8921 (ufs1_mod_SOURCES): New variable.
8922 (ufs1_mod_CFLAGS): Likewise.
8923 (ufs1_mod_LDFLAGS): Likewise.
8924 (ufs2_mod_SOURCES): New variable.
8925 (ufs2_mod_CFLAGS): Likewise.
8926 (ufs2_mod_LDFLAGS): Likewise.
8927 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
8928 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
8930 (grub_emu_SOURCES): Likewise.
8931 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8932 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8933 (grub_setup_SOURCES): Likewise.
8934 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8935 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
8936 (grub_setup_SOURCES): Likewise.
8937 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
8939 * fs/ufs2.c: New file.
8940 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
8942 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8946 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
8947 subsystem at the end.
8948 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
8949 (video_fb_mod_SOURCES): New variable.
8950 (video_fb_mod_CFLAGS): Likewise.
8951 (video_fb_mod_LDFLAGS): Likewise.
8952 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
8953 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
8954 * video/i386/pc/vbeblit.c: Moved from here ...
8955 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
8956 * video/i386/pc/vbefill.c: Moved from here ...
8957 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
8958 * video/i386/pc/vbeutil.c: Moved from here ...
8959 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
8960 * include/grub/i386/pc/vbeblit.h: Moved from here ...
8961 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
8962 * include/grub/i386/pc/vbefill.h: Moved from here ...
8963 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
8964 * include/grub/i386/pc/vbeutil.h: Moved from here ...
8965 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
8966 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
8967 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
8968 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
8969 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
8970 (grub_video_adapter): Added 'get_info_and_fini'.
8971 (grub_video_get_info_and_fini): New prototype.
8972 (grub_video_set_mode): make modestring const char *.
8973 * loader/i386/linux.c (grub_linux_setup_video): Use
8974 grub_video_get_info_and_fini.
8975 (grub_linux_boot): Move modesetting just before booting.
8976 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
8977 grub_video_get_info_and_fini.
8978 * video/i386/pc/vbe.c: Moved framebuffer part ...
8979 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
8980 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
8981 grub_video_fbstd_colors and grub_video_fb_set_palette.
8982 (grub_video_vbe_init): Clear 'framebuffer' variable and use
8984 (grub_video_vbe_fini): Use grub_video_fb_fini.
8985 (grub_video_vbe_setup): Use framebuffer.render_target instead of
8986 render_target and use grub_video_fb_set_active_render_target and
8987 grub_video_fb_set_palette.
8988 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
8989 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
8990 (grub_video_vbe_adapter): Use framebuffer.
8991 * video/video.c (grub_video_get_info_and_fini): New function.
8992 (grub_video_set_mode): Make modestring const char *.
8993 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
8994 values are already initialised.
8996 2009-08-14 Pavel Roskin <proski@gnu.org>
8998 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
9000 * boot/i386/pc/diskboot.S: Likewise.
9001 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
9002 sectors allow compilation on MacOSX.
9003 * conf/i386-pc.rmk: Enable unconditional compilation of
9006 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
9008 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
9009 * util/grub.d/00_header.in: Enter interruptible sleep if
9010 GRUB_HIDDEN_TIMEOUT is set.
9012 2009-08-13 Yves Blusseau <blusseau@zetam.org>
9014 * include/grub/symbol.h: Add the LOCAL macro.
9015 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
9018 2009-08-13 Pavel Roskin <proski@gnu.org>
9020 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
9021 any modern compilers we support.
9023 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
9024 Use local labels starting with "L_" so that Apple assembler
9025 knows they are local.
9027 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
9029 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
9030 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
9031 (bsd_kernel_types): ... this enum.
9033 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
9034 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
9035 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
9037 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
9038 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
9039 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
9042 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
9044 * util/grub-dumpdevtree: Moved from here ...
9045 * util/i386/efi/grub-dumpdevtree: ... to here.
9046 (hexify): New function. Converts a string to its hex version.
9047 Generate hex versions of "efi" and "device-properties" by calling
9048 hexify() on the ASCII strings rather than by hardcoding numbers.
9050 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
9052 * fs/jfs.c: Update copyright year.
9054 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
9056 * util/grub.d/00_header.in: Fix a comment.
9057 * util/grub.d/10_linux.in: Likewise.
9058 * util/grub.d/10_windows.in: Likewise.
9059 * util/grub.d/10_hurd.in: Likewise.
9061 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
9063 * util/grub-mkconfig.in: Allow the user to specify the used font
9066 2009-08-08 Pavel Roskin <proski@gnu.org>
9068 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
9069 available, xfs.mod needs it now.
9071 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
9072 the "g" modifier in sed when the intention is to strip something
9073 once. This fixes comparison of kernels with multiple dashes.
9075 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
9076 on it. Add missing space before closing bracket. Fix
9077 misleading formatting.
9079 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9081 * docs/grub.texi: Major overhaul. Remove all sections that are
9082 specific to GRUB Legacy, or mostly composed of Legacy-specific
9085 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9087 * docs/version.texi: New file. Provides version information for
9090 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9092 * docs/grub.texi: Update CVS information to SVN.
9093 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
9095 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9097 * util/grub-mkconfig.in: Remove a wrong `fi'.
9099 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9101 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
9102 (grub_jfs_uuid): New function.
9103 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
9105 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9107 * util/grub-mkconfig_lib.in (font_path): Move the functionality
9109 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
9110 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
9112 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9114 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
9115 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
9118 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
9119 not just "vmlinu[zx]".
9121 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
9124 * util/grub.d/10_linux.in (find_latest): Moved from here ...
9125 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
9128 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9130 * util/grub.d/10_freebsd.in: Use an absolute device path for
9131 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
9133 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
9135 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
9136 handling of multiple abstraction modules.
9138 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
9140 Fix a bug resulting in black screen when loading Linux using a
9143 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
9146 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
9147 (grub_vbe_bios_getset_dac_palette_width): New function.
9148 (grub_vbe_bios_get_dac_palette_width)
9149 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
9150 grub_vbe_bios_getset_dac_palette_width()).
9152 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
9153 check for return status.
9154 (grub_vbe_get_video_mode_info): When getting information for a packed
9155 mode (<= 8 bpp), obtain DAC palette width using
9156 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
9157 {red,green,blue}_mark_size.
9159 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
9161 * commands/search.c (options): Fix help output to match actual code.
9163 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
9165 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
9168 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9170 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
9173 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9175 Support Apple partition map with sector size different from 512 bytes.
9177 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
9178 (apple_partition_map_iterate): Respect 'aheader.blocksize'
9179 and 'apart.partmap_size'.
9181 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9182 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
9186 * commands/i386/cpuid.c (options): New variable.
9187 (grub_cmd_cpuid): Return real error.
9188 (GRUB_MOD_INIT(cpuid)): Declare options.
9190 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
9192 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
9195 2009-07-31 Bean <bean123ch@gmail.com>
9197 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
9199 (grub_fshelp_node): Move inode field to the end.
9200 (grub_xfs_data): Remove inode field.
9201 (grub_xfs_inode_block): Calculate inode size using sblock.
9202 (grub_xfs_inode_offset): Likewise.
9203 (grub_xfs_read_inode): Calculate inode size using sblock.
9204 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
9205 (grub_xfs_iterate_dir): Calculate inode size using sblock.
9206 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
9207 to match inode size.
9208 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
9209 not accessible when data is null.
9210 (grub_xfs_open): Likewise.
9212 2009-07-31 Bean <bean123ch@gmail.com>
9214 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
9215 Don't change pv->disk if it's already set.
9217 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
9218 (grub_raid_register): ... here.
9219 (grub_raid_rescan): Removed.
9221 * include/grub/raid.h (grub_raid_rescan): Removed.
9223 * util/grub-fstest.c: Remove include file <grub/raid.h>.
9224 (fstest): Replace grub_raid_rescan with module fini function followed
9227 * util/grub-probe.c: Add include file <grub/raid.h>.
9228 (probe_raid_level): New function.
9229 (probe): Detect abstraction by walking the disk device, support two
9230 level of abstraction (LVM on RAID) when detecting partition map.
9232 2009-07-31 Pavel Roskin <proski@gnu.org>
9234 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
9235 to grub_zalloc(), it was erroneous.
9236 Reported by Bean <bean123ch@gmail.com>
9238 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
9240 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
9241 embedding zone, not only the first one.
9243 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
9245 * term/gfxterm.c (clear_char): New function.
9246 (grub_virtual_screen_setup): Use clear_char.
9247 (scroll_up): Likewise.
9248 (grub_virtual_screen_cls): Likewise.
9250 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
9252 * util/deviceiter.c (get_acceleraid_disk_name): New static
9254 (grub_util_iterate_devices): Handle Accelraid devices.
9255 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
9257 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
9259 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
9260 separator for the suggested gfxpayload string (';' collides with the
9261 parser and needs escaping).
9263 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
9265 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
9266 Clear direction flag before jumping to OS.
9267 (grub_multiboot2_real_boot): Likewise.
9269 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
9271 * util/i386/pc/grub-install: Fix parsing of --disk-module
9274 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
9276 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
9279 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
9281 * util/grub-mkconfig.in (package_version): New variable.
9282 Use it do display the version.
9284 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
9286 * kern/file.c (grub_file_open): Revert to previous check with
9289 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9291 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
9292 from help line. It's out of sync with code.
9294 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9296 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
9297 entries on failed boot.
9299 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
9301 * kern/file.c (grub_file_open): Fix an error check.
9303 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
9305 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
9306 partition map couldn't be identified.
9308 2009-07-23 Pavel Roskin <proski@gnu.org>
9310 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
9311 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
9312 case of little endian words becomes just an optimization.
9313 Respect const modifier.
9314 (md5_final): Use code that doesn't depend on endianness.
9316 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
9317 to avoid loss of upper bits if align is unsigned and shorter
9320 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9322 UUID support for UFS
9324 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
9325 (grub_ufs_uuid): New function.
9326 (grub_ufs_fs): add .uuid
9328 2009-07-21 Pavel Roskin <proski@gnu.org>
9330 * kern/dl.c (grub_dl_check_header): Make static.
9332 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
9334 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
9335 add drivemap for Vista. It breaks Windows 7.
9337 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9339 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
9342 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9346 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
9347 (grub_fstest_SOURCES): Likewise.
9348 (pkglib_MODULES): Add befs.mod.
9349 (befs_mod_SOURCES): New variable.
9350 (befs_mod_CFLAGS): Likewise.
9351 (befs_mod_LDFLAGS): Likewise.
9352 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
9353 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9354 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9355 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9356 (grub_setup_SOURCES): Likewise.
9357 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9358 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9359 (grub_setup_SOURCES): Likewise.
9360 * fs/befs.c: New file.
9361 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
9362 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
9363 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
9364 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
9365 (B_KEY_INDEX_ALIGN): New declaration.
9366 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
9367 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
9368 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
9369 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
9370 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
9371 (grub_afs_mount) [MODE_BFS]: Likewise.
9372 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
9373 (grub_afs_fs): Use GRUB_AFS_FSNAME
9374 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
9375 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
9376 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
9377 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
9379 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
9381 * util/getroot.c (find_root_device): Add support for MacOSX.
9382 * util/hostdisk.c: Likewise.
9384 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9386 * font/font.c (find_glyph): Check whether a font is present to avoid
9389 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
9391 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
9393 2009-07-20 Pavel Roskin <proski@gnu.org>
9395 * configure.ac: Trim excessively wordy excuses.
9397 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9399 Add symlink, mtime and label support to AtheFS.
9401 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
9402 (grub_afs_iterate_dir): Handle symlinks.
9403 (grub_afs_open): Use grub_afs_read_symlink.
9404 (grub_afs_dir): Likewise.
9406 (grub_afs_label): New function.
9407 (grub_afs_fs): Add grub_afs_label.
9408 (grub_afs_read_symlink): New function.
9410 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9414 * fs/afs.c: Fix comments style.
9415 (grub_afs_blockrun): Declare as packed.
9416 (grub_afs_datastream): Likewise.
9417 (grub_afs_bnode): Likewise.
9418 (grub_afs_btree): Likewise.
9419 (grub_afs_sblock): Likewise.
9420 Declare `name' as char.
9421 (grub_afs_inode): Declare as packed.
9422 Change void *vnode to grub_uint32_t unused.
9423 (grub_afs_iterate_dir): Check that key_size is positive.
9424 (grub_afs_mount): Don't read superblock twice.
9425 (grub_afs_dir): Don't free node in case of error,
9426 grub_fshelp_find_file already handles this.
9427 (grub_afs_open): Likewise.
9429 2009-07-19 Pavel Roskin <proski@gnu.org>
9431 * Makefile.in: Remove LIBLZO and enable_lzo.
9432 * conf/i386-pc.rmk: Remove lzo support.
9433 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
9434 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
9436 * kern/i386/pc/lzo1x.S: Remove.
9437 * kern/i386/pc/startup.S: Remove lzo support.
9438 * util/i386/pc/grub-mkimage.c: Likewise.
9440 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
9442 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
9443 * fs/xfs.c (grub_xfs_dir): Likewise.
9444 * fs/afs.c (grub_afs_dir): Likewise.
9445 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
9446 (grub_iso9660_open): Likewise.
9447 * fs/jfs.c (grub_jfs_open): Likewise.
9448 * fs/ext2.c (grub_ext2_dir): Likewise.
9449 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
9450 * script/sh/lexer.c (grub_script_yylex): Likewise.
9452 2009-07-16 Pavel Roskin <proski@gnu.org>
9454 * configure.ac: Never add "-c" to CFLAGS.
9456 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
9458 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
9459 grub_cv_cc_efiemu should be used.
9461 * configure.ac: Typo fixes.
9463 * kern/mm.c (grub_zalloc): New function.
9464 (grub_debug_zalloc): Likewise.
9465 * include/grub/mm.h: Declare grub_zalloc() and
9466 grub_debug_zalloc().
9467 * util/misc.c (grub_zalloc): New function.
9468 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
9469 instead of grub_malloc(), remove unneeded initializations.
9470 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
9471 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
9472 * commands/parttool.c (grub_cmd_parttool): Likewise.
9473 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
9474 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
9475 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
9476 * disk/usbms.c (grub_usbms_finddevs): Likewise.
9477 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
9478 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
9479 (grub_cmd_efiemu_pnvram): Likewise.
9480 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
9481 * fs/iso9660.c (grub_iso9660_mount): Likewise.
9482 (grub_iso9660_iterate_dir): Likewise.
9483 * fs/jfs.c (grub_jfs_opendir): Likewise.
9484 * fs/ntfs.c (list_file): Likewise.
9485 (grub_ntfs_mount): Likewise.
9486 * kern/disk.c (grub_disk_open): Likewise.
9487 * kern/dl.c (grub_dl_load_core): Likewise.
9488 * kern/elf.c (grub_elf_file): Likewise.
9489 * kern/env.c (grub_env_context_open): Likewise.
9490 (grub_env_set): Likewise.
9491 (grub_env_set_data_slot): Likewise.
9492 * kern/file.c (grub_file_open): Likewise.
9493 * kern/fs.c (grub_fs_blocklist_open): Likewise.
9494 * loader/i386/multiboot.c (grub_module): Likewise.
9495 * loader/xnu.c (grub_xnu_create_key): Likewise.
9496 (grub_xnu_create_value): Likewise.
9497 * normal/main.c (grub_normal_add_menu_entry): Likewise.
9498 (read_config_file): Likewise.
9499 * normal/menu_entry.c (make_screen): Likewise.
9500 * partmap/sun.c (sun_partition_map_iterate): Likewise.
9501 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
9502 * script/sh/script.c (grub_script_parse): Likewise.
9503 * video/bitmap.c (grub_video_bitmap_create): Likewise.
9504 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
9505 * video/readers/png.c (grub_png_output_byte): Likewise.
9506 (grub_video_reader_png): Likewise.
9508 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9510 Enable all targets that can be built by default
9512 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
9513 grub-mkfont and grub-fstest if they can be built
9515 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9517 Fix hang and segmentation fault in grub-emu-usb
9519 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
9520 * util/usb.c (grub_libusb_devices): likewise
9521 (grub_libusb_init): rename to ...
9522 (GRUB_MOD_INIT (libusb)):...this
9523 (grub_libusb_fini): rename to ..
9524 (GRUB_MOD_FINI (libusb)):...this
9525 * disk/usbms.c (grub_usbms_transfer): fix retry logic
9526 * include/grub/disk.h (grub_raid_init): removed, it's useless
9527 (grub_raid_fini): likewise
9528 (grub_lvm_init): likewise
9529 (grub_lvm_fini): likewise
9530 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
9533 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9537 * Makefile.in (LIBUSB): new macro
9538 * genmk.rb (Utility/print_tail): new method
9539 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
9540 (top level): call util.print_tail at the end.
9542 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9544 Make FreeBSD accept zpool.cache
9546 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
9547 type is /boot/zfs/zpool.cache
9549 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9553 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
9554 correct wrong typedef
9555 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
9557 2009-07-15 Pavel Roskin <proski@gnu.org>
9559 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
9560 * kern/disk.c (struct grub_disk_cache): Likewise.
9562 * commands/probe.c (options): Typo fix.
9564 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
9565 Increase to 0x5a to accommodate FAT32. Adjust other offsets
9567 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
9569 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
9570 the end of "Error" to make the message more readable.
9572 * boot/i386/pc/boot.S (kernel_segment): Remove.
9573 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
9576 * boot/i386/pc/boot.S (boot_version): Remove.
9577 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
9580 * include/grub/i386/pc/boot.h: Sort all offsets.
9581 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
9582 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
9583 * boot/i386/pc/boot.S: Assert location of every offset listed in
9584 include/grub/i386/pc/boot.h.
9586 2009-07-13 Pavel Roskin <proski@gnu.org>
9588 * include/grub/i386/coreboot/machine.h: Rename
9589 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
9590 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
9591 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
9593 * kern/dl.c: Force native word size to suppress warnings when
9596 * kern/device.c (grub_device_iterate): Change struct part_ent to
9597 hold the name, not a pointer to it. Use one grub_malloc() per
9598 partition, not two. Free partition_name if grub_malloc() fails.
9599 Set ents to NULL only before grub_partition_iterate() is called.
9601 2009-07-11 Bean <bean123ch@gmail.com>
9603 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
9606 2009-07-10 Bean <bean123ch@gmail.com>
9607 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
9609 * kern/ieee1275/openfw.c (grub_children_iterate)
9610 (grub_devalias_iterate): Fix size evaluation for property or path
9611 strings, which was broken since r2132.
9613 2009-07-07 Pavel Roskin <proski@gnu.org>
9615 * commands/search.c (search_file): Merge into ...
9616 (search_fs): ... this. Accept search type as argument.
9617 (grub_cmd_search): Pass search type to search_fs().
9619 * include/grub/util/console.h: New file.
9620 * util/console.c: Use it instead of grub/machine/console.h.
9621 * util/grub-emu.c: Likewise.
9623 * lib/arg.c (find_long_option): Remove.
9624 (find_long): Add `len' argument, make `s' const char *.
9625 (grub_arg_parse): Parse long options in place, not in a
9628 2009-07-06 Pavel Roskin <proski@gnu.org>
9630 * commands/search.c (search_fs): Fix potential NULL pointer
9633 * commands/search.c (search_fs): Replace QUID macro with quid_fn
9636 2009-07-06 Daniel Mierswa <impulze@impulze.org>
9638 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
9641 2009-07-05 Pavel Roskin <proski@gnu.org>
9643 * include/grub/i386/linux.h (struct linux_kernel_params):
9644 Restore padding3, it's still needed.
9646 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
9648 * util/osdetect.lua: Likewise.
9650 2009-07-05 Bean <bean123ch@gmail.com>
9652 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
9654 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
9655 (grub_lua_getenv): Likewise.
9656 (grub_lua_setenv): Likewise.
9657 (save_errno): New function.
9658 (push_result): Likewise.
9659 (grub_lua_enum_device): Likewise.
9660 (grub_lua_enum_file): Likewise.
9661 (grub_lua_file_open): Likewise.
9662 (grub_lua_file_close): Likewise.
9663 (grub_lua_file_seek): Likewise.
9664 (grub_lua_file_read): Likewise.
9665 (grub_lua_file_getline): Likewise.
9666 (grub_lua_file_getsize): Likewise.
9667 (grub_lua_file_getpos): Likewise.
9668 (grub_lua_file_eof): Likewise.
9669 (grub_lua_file_exist): Likewise.
9670 (grub_lua_add_menu): Likewise.
9672 * script/lua/grub_lua.h (isupper): New inline function.
9673 (islower): Likewise.
9674 (ispunct): Likewise.
9675 (isxdigit): Likewise.
9676 (strcspn): Change to normal function.
9677 (strpbkr): New function declaration.
9680 * script/lua/grub_main.c (scan_str): New function.
9681 (strcspn): Likewise.
9682 (strpbrk): Likewise.
9685 * script/lua/linit.c (lualibs): Enable the string library.
9687 * util/osdetect.lua: New file.
9689 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
9691 * include/grub/i386/linux.h (struct linux_kernel_params): Add
9692 `capabilities' member.
9694 2009-07-02 Pavel Roskin <proski@gnu.org>
9696 * genparttoollist.sh: Add missing newline at the end.
9698 2009-07-01 Pavel Roskin <proski@gnu.org>
9700 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
9702 * util/hostdisk.c (open_device): Remove `const' from
9703 `sysctl_size', as sysctlbyname() can change it (in this case it
9704 doesn't actually happen).
9706 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
9707 using signed long int constants.
9709 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
9710 constant to avoid a warning on FreeBSD.
9712 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
9715 * Makefile.in: Install include/grub/machine symlink.
9717 * Makefile.in: When installing symlinks, use "cp -fR", which
9718 works on FreeBSD and MacOSX.
9719 From Yves Blusseau <cl7m42e02@sneakemail.com>
9721 * kern/dl.c (grub_dl_resolve_symbol): Make static.
9722 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
9724 * util/misc.c: Move grub_reboot() and grub_halt() ...
9725 * util/grub-emu.c: ... here. Make main_env static.
9726 * include/grub/util/misc.h: Remove main_env.
9728 * kern/mm.c: Use correct format to print size_t.
9730 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
9731 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
9732 * kern/powerpc/dl.c: Likewise.
9733 * kern/sparc64/dl.c: Likewise.
9734 * kern/x86_64/dl.c: Likewise.
9736 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9738 Fix grub-emu build on sparc64-ieee1275.
9740 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
9741 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
9743 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9745 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
9746 (grub_reboot, grub_halt): New functions.
9748 * util/i386/pc/misc.c: Delete. Update all users.
9749 * util/sparc64/ieee1275/misc.c: Likewise.
9750 * util/powerpc/ieee1275/misc.c: Likewise.
9752 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9754 * conf/i386.rmk (setjmp_mod_SOURCES)
9755 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
9756 * conf/common.rmk (setjmp_mod_SOURCES)
9757 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
9758 to use $(target_cpu).
9759 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
9760 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
9761 * conf/powerpc-ieee1275.rmk: Likewise.
9762 * conf/sparc64-ieee1275.rmk: Likewise.
9764 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
9765 $(target_cpu) for kern/$(target_cpu)/dl.c.
9766 * conf/i386-efi.rmk: Likewise.
9767 * conf/i386-ieee1275.rmk: Likewise.
9768 * conf/x86_64-efi.rmk: Likewise.
9769 * conf/i386-coreboot.rmk: Likewise.
9770 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
9771 $(target_cpu) for kern/$(target_cpu)/dl.c and for
9772 kern/$(target_cpu)/cache.S.
9773 * conf/sparc64-ieee1275.rmk: Likewise.
9775 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9777 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
9778 type to `grub_uint8_t', and adjust `padding9' accordingly.
9780 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9782 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
9784 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
9785 assembly in final jump, using register constraints.
9787 (grub_linux_boot): For text mode, initialize `have_vga' using
9788 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
9790 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
9791 right before the final jump.
9793 Set `video_mode' to 0x3.
9795 Document initialization of `video_page', `video_mode' and
9798 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9800 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
9801 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
9802 and set GRUB_LINUX_FLAG_QUIET appropriately.
9804 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9806 Fix build on Debian / sparc.
9808 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
9810 2009-06-28 Pavel Roskin <proski@gnu.org>
9812 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
9815 * util/grub.d/10_linux.in: Match SUSE style initrd names.
9817 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9819 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
9822 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9826 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
9827 file can't be opened. grub_file_open() is already supposed to set
9828 grub_errno / grub_errmsg appropriately.
9829 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9831 2009-06-27 Pavel Roskin <proski@gnu.org>
9832 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9834 * include/grub/dl.h: Include grub/elf.h.
9835 (struct grub_dl): Add symtab field.
9836 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
9837 GRUB_MODULES_MACHINE_READONLY.
9838 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
9839 of the header for read-only modules.
9840 (grub_dl_unload): Free mod->symtab for read-only modules.
9841 * kern/i386/dl.c: Use mod->symtab.
9842 * kern/powerpc/dl.c: Likewise.
9843 * kern/sparc64/dl.c: Likewise.
9844 * kern/x86_64/dl.c: Likewise.
9846 * conf/i386-qemu.rmk: New file.
9847 * kern/i386/qemu/startup.S: Likewise.
9848 * kern/i386/qemu/mmap.c: Likewise.
9849 * boot/i386/qemu/boot.S: Likewise.
9850 * include/grub/i386/qemu/time.h: Likewise.
9851 * include/grub/i386/qemu/serial.h: Likewise.
9852 * include/grub/i386/qemu/kernel.h: Likewise.
9853 * include/grub/i386/qemu/console.h: Likewise.
9854 * include/grub/i386/qemu/boot.h: Likewise.
9855 * include/grub/i386/qemu/init.h: Likewise.
9856 * include/grub/i386/qemu/machine.h: Likewise.
9857 * include/grub/i386/qemu/loader.h: Likewise.
9858 * include/grub/i386/qemu/memory.h: Likewise.
9860 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
9861 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
9862 [qemu] (pkglib_IMAGES): Add `boot.img'.
9863 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
9864 [qemu] (boot_img_FORMAT): New variables.
9865 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
9866 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
9867 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
9868 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
9869 [qemu] (kernel_img_FORMAT): New variables.
9871 * configure.ac: Recognise `i386-qemu'.
9873 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
9874 (for no compression).
9875 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
9876 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
9877 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
9878 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
9881 2009-06-27 Pavel Roskin <proski@gnu.org>
9883 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
9885 * efiemu/prepare32.c: Likewise.
9886 * efiemu/prepare64.c: Likewise.
9888 2009-06-26 Pavel Roskin <proski@gnu.org>
9890 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
9891 * include/grub/elf.h: Define symbols without "32" or "64" based
9892 on GRUB_TARGET_WORDSIZE.
9893 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
9894 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
9896 * efiemu/loadcore64.c: Likewise.
9897 * loader/i386/bsd32.c: Likewise.
9898 * loader/i386/bsd64.c: Likewise.
9899 * kern/dl.c: Remove own ELF definitions.
9900 * util/i386/efi/grub-mkimage.c: Likewise.
9902 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
9904 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
9905 segment 0x0 unconditionally, because the reference generated by
9906 GAS is an absolute address.
9908 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9910 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
9911 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
9913 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9915 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
9916 indexes. Check for -f explicitly.
9917 (search_file): Improve error message.
9918 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
9920 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9922 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
9923 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
9925 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9927 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
9928 * conf/i386-ieee1275.rmk: Likewise.
9929 * conf/i386-coreboot.rmk: Likewise.
9931 * kern/i386/pc/startup.S (grub_stop): Remove function.
9932 * kern/i386/ieee1275/startup.S: Likewise.
9933 * kern/i386/coreboot/startup.S: Likewise.
9934 * kern/i386/misc.S (grub_stop): New function.
9936 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9938 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
9939 * kern/i386/realmode.S (real_to_prot): ... to here.
9941 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9943 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
9945 (kernel_elf_SOURCES): Rename to ...
9946 (kernel_img_SOURCES): ... this.
9947 (kernel_elf_HEADERS): Rename to ...
9948 (kernel_img_HEADERS): ... this. Update all users.
9949 (kernel_elf_ASFLAGS): Rename to ...
9950 (kernel_img_ASFLAGS): ... this.
9951 (kernel_elf_CFLAGS): Rename to ...
9952 (kernel_img_CFLAGS): ... this.
9953 (kernel_elf_LDFLAGS): Rename to ...
9954 (kernel_img_LDFLAGS): ... this.
9955 * conf/i386-coreboot.rmk: Likewise.
9956 * conf/powerpc-ieee1275.rmk: Likewise.
9958 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
9961 2009-06-21 Pavel Roskin <proski@gnu.org>
9963 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
9964 to match nested functions.
9965 * loader/sparc64/ieee1275/linux.c: Likewise.
9967 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
9969 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
9971 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
9974 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
9976 Fix asm file handling on ELF, and remove workarounds.
9978 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
9979 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
9980 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
9981 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
9983 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9985 Load BSD ELF modules
9987 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
9988 and loader/i386/bsd64.c
9989 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
9990 (FREEBSD_MODTYPE_ELF_MODULE): New definition
9991 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
9992 (grub_freebsd_load_elfmodule32): New declaration
9993 (grub_freebsd_load_elfmoduleobj64): Likewise
9994 (grub_freebsd_load_elf_meta32): Likewise
9995 (grub_freebsd_load_elf_meta64): Likewise
9996 (grub_freebsd_add_meta): Likewise
9997 (grub_freebsd_add_meta_module): Likewise
9998 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
9999 (grub_freebsd_add_meta_module): Likewise and move module-specific
10000 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
10001 (grub_cmd_freebsd): Add elf-kernel specific parts
10002 based on grub_freebsd_add_meta_module
10003 (grub_cmd_freebsd_module): Add type parsing moved from
10004 grub_freebsd_add_meta_module
10005 (grub_cmd_freebsd_module_elf): New function
10006 (cmd_freebsd_module_elf): New variable
10007 (GRUB_MOD_INIT): Register freebsd_module_elf
10008 * loader/i386/bsd32.c: New file
10009 * loader/i386/bsd64.c: Likewise
10010 * loader/i386/bsdXX.c: Likewise
10011 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
10012 (grub_elf64_load): Likewise
10013 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
10015 (grub_elf64_load_hook_t): Likewise
10017 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
10019 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
10021 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
10022 don't write a menu entry for recovery mode.
10024 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
10026 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
10027 after it's no longer needed.
10029 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
10031 * include/grub/i386/loader.h (grub_linux_prot_size)
10032 (grub_linux_tmp_addr, grub_linux_real_addr)
10033 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
10034 GRUB_MACHINE_PCBIOS.
10035 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
10036 common grub_util_info() call to ...
10037 (generate_image): ... here.
10038 Fix use of uninitialized memory, comparison of signed with
10039 unsigned integers and memory leak.
10040 Remove bogus module address message.
10042 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
10044 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
10046 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
10048 2009-06-19 Pavel Roskin <proski@gnu.org>
10050 * configure.ac: Remove stray AC_MSG_CHECKING.
10052 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
10054 * disk/scsi.c (grub_scsi_open): use continue instead of big if
10056 2009-06-18 Pavel Roskin <proski@gnu.org>
10058 * conf/common.rmk: Add fs_file.mod.
10059 * disk/fs_file.c: New file.
10060 * include/grub/disk.h (enum grub_disk_dev_id): Add
10061 GRUB_DISK_DEVICE_FILE_ID.
10063 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10065 Fix build with Apple's toolchain. Part 2
10067 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
10070 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10072 Fix build with Apple's toolchain. Part 1
10074 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
10076 * configure.ac: remove a leftover AC_MSG_RESULT
10077 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
10080 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10084 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
10085 (decomp_block): initialize ch
10086 use grub_memcpy instead of memcpy
10088 2009-06-17 Pavel Roskin <proski@gnu.org>
10090 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
10091 version, use declarations needed to use vga_text as the startup
10094 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
10095 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
10097 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
10098 and grub_at_keyboard_fini(), it's done on module load and
10101 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
10103 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
10104 file can't be found.
10105 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10107 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10109 Fix newline handling
10111 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
10112 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
10113 (grub_script_yylex): don't segfault on unterminated script
10114 newline terminates command and variable
10116 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10118 avoid double grub_adjust_range call. Bug reported by David Simner
10120 * kern/disk.c (grub_disk_write): change to raw disk access before
10123 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
10125 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
10126 spaces, for the benefit of help2man.
10127 * util/i386/efi/grub-mkimage.c (usage): Likewise.
10129 2009-06-16 Pavel Roskin <proski@gnu.org>
10131 * kern/i386/halt.c: Include grub/machine/init.h.
10132 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
10134 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
10136 * util/grub.d/30_os-prober.in: Use ${root} in the generated
10137 drivemap menuentry.
10139 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
10141 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
10144 2009-06-16 Pavel Roskin <proski@gnu.org>
10146 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
10147 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
10148 save %dx, we only need %dl and we never change it.
10149 * boot/i386/pc/cdboot.S: Don't set the root drive.
10150 * boot/i386/pc/pxeboot.S: Likewise.
10151 * include/grub/i386/pc/boot.h: Remove
10152 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
10153 GRUB_BOOT_MACHINE_DRIVE_CHECK.
10154 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
10155 * kern/i386/pc/init.c (make_install_device): Remove references
10156 to grub_root_drive.
10157 * kern/i386/pc/startup.S: Likewise.
10158 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
10160 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10164 * commands/xnu_uuid.c: new file
10165 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
10166 (xnu_uuid_mod_SOURCES): new variable
10167 (xnu_uuid_mod_CFLAGS): likewise
10168 (xnu_uuid_mod_LDFLAGS): likewise
10169 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10170 * conf/i386-ieee1275.rmk: likewise
10171 * conf/i386-pc.rmk: likewise
10172 * conf/powerpc-ieee1275.rmk: likewise
10173 * conf/sparc64-ieee1275.rmk: likewise
10174 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
10176 2009-06-16 Pavel Roskin <proski@gnu.org>
10178 * configure.ac: Avoid '==' in test command, it's not portable.
10180 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10184 * commands/probe.c: new file
10185 * conf/common.rmk (pkglib_MODULES): add probe.mod
10186 (probe_mod_SOURCES): new variable
10187 (probe_mod_CFLAGS): likewise
10188 (probe_mod_LDFLAGS): likewise
10189 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10190 * conf/i386-ieee1275.rmk: likewise
10191 * conf/i386-pc.rmk: likewise
10192 * conf/powerpc-ieee1275.rmk: likewise
10193 * conf/sparc64-ieee1275.rmk: likewise
10195 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
10197 Fix handling of string like \"hello\" and "a
10200 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
10201 (grub_script_yylex): fix parsing of quoting, escaping and newline
10203 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
10205 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
10208 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
10210 * util/grub-mkconfig.in: Fix parsing of --output option.
10212 2009-06-12 Pavel Roskin <proski@gnu.org>
10214 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
10215 genmk.rb don't need to be generated or installed.
10217 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
10219 * commands/i386/pc/drivemap_int13h.S: add more comments
10221 2009-06-11 Pavel Roskin <proski@gnu.org>
10223 * Makefile.in (uninstall): Uninstall manuals.
10225 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
10226 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
10227 and update-grub_lib in two places.
10228 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
10230 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
10231 a compiler warning.
10233 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
10234 `entry_lo' to fix variable shadowing.
10236 2009-06-11 Christian Franke <franke@computer.org>
10238 * kern/misc.c (__enable_execute_stack): Add missing return type
10239 to prevent gcc warning.
10241 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
10243 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
10245 2009-06-11 Pavel Roskin <proski@gnu.org>
10247 * Makefile.in: Don't rely on any scripts being executable.
10248 Always use $(SHELL) to run shell scripts.
10250 * configure.ac: Always define ___main if using -nostdlib. This
10251 fixes tests on Cygwin.
10253 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
10257 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
10258 is in bytes and not in blocks
10260 2009-06-11 Pavel Roskin <proski@gnu.org>
10262 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
10265 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
10267 * util/grub.d/30_os-prober.in: Fix a comment. Source
10268 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
10269 to set the root device. Place drivemap command in the generated
10272 2009-06-11 Pavel Roskin <proski@gnu.org>
10274 * configure.ac: Remove host_m32. Issues with 64-bit utilities
10275 have long been resolved.
10277 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
10279 * util/grub.d/10_linux.in: Capitalise "Linux".
10281 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
10283 2009-06-11 Pavel Roskin <proski@gnu.org>
10285 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
10286 fix a gcc warning and ensure that the function won't ever exit.
10288 * kern/i386/ieee1275/init.c: Add missing prototype for
10289 grub_stop_floppy().
10291 * loader/ieee1275/multiboot2.c [__i386__]: Include
10292 grub/cpu/multiboot.h.
10294 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
10295 casts to short - they are not portable and cause warnings. Fix
10296 use of uninitialized values in input_buf. Use ARRAY_SIZE.
10298 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
10302 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
10304 (grub_get_root_biosnumber_saved): new variable
10305 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
10306 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
10307 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
10308 %dx after the call if necessary
10309 * conf/common.rmk (pkglib_MODULES): remove boot.mod
10310 (boot_mod_SOURCES): remove
10311 (boot_mod_CFLAGS): remove
10312 (boot_mod_LDFLAGS): remove
10313 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
10314 (boot_mod_SOURCES): new variable
10315 (boot_mod_CFLAGS): likewise
10316 (boot_mod_LDFLAGS): likewise
10317 * conf/i386-efi.rmk: likewise
10318 * conf/i386-ieee1275.rmk: likewise
10319 * conf/i386-pc.rmk: likewise
10320 * conf/powerpc-ieee1275.rmk: likewise
10321 * conf/sparc64-ieee1275.rmk: likewise
10322 * conf/x86_64-efi.rmk: likewise
10323 * include/grub/i386/pc/biosnum.h: new file
10324 * lib/i386/pc/biosnum.c: likewise
10325 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
10326 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
10327 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
10329 2009-06-10 Pavel Roskin <proski@gnu.org>
10331 * io/gzio.c (test_header): Don't reuse one buffer for all data.
10332 Use separate variables. Read only the file size at the end, but
10333 not the checksum that we don't use.
10335 * kern/file.c (grub_file_read): Use void pointer for the buffer.
10336 Adjust all callers.
10338 * kern/ieee1275/openfw.c: Remove libc includes.
10339 * kern/ieee1275/cmain.c: Likewise.
10340 * include/grub/ieee1275/ieee1275.h: Likewise.
10342 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
10345 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
10347 * Makefile.in: Remove all trailing whitespace.
10348 * conf/i386-pc.rmk: Likewise.
10349 * conf/powerpc-ieee1275.rmk: Likewise.
10350 * conf/sparc64-ieee1275.rmk: Likewise.
10351 * docs/grub.texi: Likewise.
10352 * docs/texinfo.tex: Likewise.
10353 * disk/fs_uuid.c: Likewise.
10354 * disk/lvm.c: Likewise.
10355 * disk/scsi.c: Likewise.
10356 * disk/ata.c: Likewise.
10357 * disk/ieee1275/ofdisk.c: Likewise.
10358 * disk/i386/pc/biosdisk.c: Likewise.
10359 * disk/host.c: Likewise.
10360 * disk/raid.c: Likewise.
10361 * disk/efi/efidisk.c: Likewise.
10362 * disk/usbms.c: Likewise.
10363 * disk/memdisk.c: Likewise.
10364 * disk/loopback.c: Likewise.
10365 * kern/powerpc/dl.c: Likewise.
10366 * kern/device.c: Likewise.
10367 * kern/dl.c: Likewise.
10368 * kern/sparc64/dl.c: Likewise.
10369 * kern/ieee1275/ieee1275.c: Likewise.
10370 * kern/term.c: Likewise.
10371 * kern/fs.c: Likewise.
10372 * kern/i386/dl.c: Likewise.
10373 * kern/i386/pc/startup.S: Likewise.
10374 * kern/i386/pc/init.c: Likewise.
10375 * kern/i386/pc/mmap.c: Likewise.
10376 * kern/i386/pc/lzo1x.S: Likewise.
10377 * kern/i386/ieee1275/init.c: Likewise.
10378 * kern/i386/realmode.S: Likewise.
10379 * kern/i386/tsc.c: Likewise.
10380 * kern/partition.c: Likewise.
10381 * kern/corecmd.c: Likewise.
10382 * kern/file.c: Likewise.
10383 * kern/efi/efi.c: Likewise.
10384 * kern/efi/init.c: Likewise.
10385 * kern/efi/mm.c: Likewise.
10386 * kern/main.c: Likewise.
10387 * kern/err.c: Likewise.
10388 * kern/env.c: Likewise.
10389 * kern/disk.c: Likewise.
10390 * kern/generic/millisleep.c: Likewise.
10391 * kern/generic/rtc_get_time_ms.c: Likewise.
10392 * kern/misc.c: Likewise.
10393 * kern/parser.c: Likewise.
10394 * genmk.rb: Likewise.
10395 * configure.ac: Likewise.
10396 * boot/i386/pc/diskboot.S: Likewise.
10397 * boot/i386/pc/pxeboot.S: Likewise.
10398 * boot/i386/pc/boot.S: Likewise.
10399 * boot/i386/pc/lnxboot.S: Likewise.
10400 * boot/i386/pc/cdboot.S: Likewise.
10401 * parttool/pcpart.c: Likewise.
10402 * video/readers/tga.c: Likewise.
10403 * video/video.c: Likewise.
10404 * video/bitmap.c: Likewise.
10405 * lib/envblk.c: Likewise.
10406 * lib/i386/setjmp.S: Likewise.
10407 * fs/xfs.c: Likewise.
10408 * fs/afs.c: Likewise.
10409 * fs/fat.c: Likewise.
10410 * fs/ntfs.c: Likewise.
10411 * fs/udf.c: Likewise.
10412 * fs/affs.c: Likewise.
10413 * fs/iso9660.c: Likewise.
10414 * fs/hfs.c: Likewise.
10415 * fs/fshelp.c: Likewise.
10416 * fs/ext2.c: Likewise.
10417 * fs/jfs.c: Likewise.
10418 * fs/reiserfs.c: Likewise.
10419 * fs/hfsplus.c: Likewise.
10420 * fs/minix.c: Likewise.
10421 * fs/cpio.c: Likewise.
10422 * fs/sfs.c: Likewise.
10423 * fs/ufs.c: Likewise.
10424 * efiemu/prepare.c: Likewise.
10425 * efiemu/loadcore_common.c: Likewise.
10426 * efiemu/runtime/efiemu.sh: Likewise.
10427 * efiemu/runtime/efiemu.S: Likewise.
10428 * efiemu/runtime/efiemu.c: Likewise.
10429 * efiemu/pnvram.c: Likewise.
10430 * efiemu/main.c: Likewise.
10431 * efiemu/i386/pc/cfgtables.c: Likewise.
10432 * efiemu/i386/loadcore64.c: Likewise.
10433 * efiemu/i386/loadcore32.c: Likewise.
10434 * efiemu/loadcore.c: Likewise.
10435 * efiemu/symbols.c: Likewise.
10436 * efiemu/mm.c: Likewise.
10437 * include/grub/autoefi.h: Likewise.
10438 * include/grub/datetime.h: Likewise.
10439 * include/grub/term.h: Likewise.
10440 * include/grub/hfs.h: Likewise.
10441 * include/grub/lvm.h: Likewise.
10442 * include/grub/i386/tsc.h: Likewise.
10443 * include/grub/i386/linux.h: Likewise.
10444 * include/grub/i386/xnu.h: Likewise.
10445 * include/grub/i386/efiemu.h: Likewise.
10446 * include/grub/i386/pc/biosdisk.h: Likewise.
10447 * include/grub/i386/pc/memory.h: Likewise.
10448 * include/grub/i386/pc/vbe.h: Likewise.
10449 * include/grub/parttool.h: Likewise.
10450 * include/grub/video.h: Likewise.
10451 * include/grub/memory.h: Likewise.
10452 * include/grub/fs.h: Likewise.
10453 * include/grub/partition.h: Likewise.
10454 * include/grub/xnu.h: Likewise.
10455 * include/grub/efi/api.h: Likewise.
10456 * include/grub/efi/pe32.h: Likewise.
10457 * include/grub/efi/memory.h: Likewise.
10458 * include/grub/multiboot.h: Likewise.
10459 * include/grub/usbdesc.h: Likewise.
10460 * include/grub/multiboot2.h: Likewise.
10461 * include/grub/acpi.h: Likewise.
10462 * include/grub/efiemu/efiemu.h: Likewise.
10463 * include/grub/disk.h: Likewise.
10464 * include/grub/ieee1275/ieee1275.h: Likewise.
10465 * include/grub/net.h: Likewise.
10466 * include/grub/machoload.h: Likewise.
10467 * include/grub/macho.h: Likewise.
10468 * include/multiboot.h: Likewise.
10469 * genmoddep.awk: Likewise.
10470 * normal/main.c: Likewise.
10471 * normal/menu_entry.c: Likewise.
10472 * normal/menu_viewer.c: Likewise.
10473 * normal/completion.c: Likewise.
10474 * normal/cmdline.c: Likewise.
10475 * normal/misc.c: Likewise.
10476 * normal/datetime.c: Likewise.
10477 * bus/usb/usbtrans.c: Likewise.
10478 * bus/usb/ohci.c: Likewise.
10479 * bus/usb/uhci.c: Likewise.
10480 * bus/usb/usb.c: Likewise.
10481 * mmap/efi/mmap.c: Likewise.
10482 * mmap/i386/pc/mmap_helper.S: Likewise.
10483 * mmap/i386/pc/mmap.c: Likewise.
10484 * mmap/i386/mmap.c: Likewise.
10485 * mmap/i386/uppermem.c: Likewise.
10486 * mmap/mmap.c: Likewise.
10487 * commands/acpi.c: Likewise.
10488 * commands/echo.c: Likewise.
10489 * commands/blocklist.c: Likewise.
10490 * commands/loadenv.c: Likewise.
10491 * commands/usbtest.c: Likewise.
10492 * commands/boot.c: Likewise.
10493 * commands/parttool.c: Likewise.
10494 * commands/search.c: Likewise.
10495 * commands/cat.c: Likewise.
10496 * commands/i386/pc/play.c: Likewise.
10497 * commands/i386/pc/drivemap.c: Likewise.
10498 * commands/i386/pc/vbeinfo.c: Likewise.
10499 * commands/i386/pc/acpi.c: Likewise.
10500 * commands/i386/pc/vbetest.c: Likewise.
10501 * commands/ls.c: Likewise.
10502 * commands/cmp.c: Likewise.
10503 * commands/test.c: Likewise.
10504 * commands/efi/acpi.c: Likewise.
10505 * commands/gptsync.c: Likewise.
10506 * commands/help.c: Likewise.
10507 * partmap/amiga.c: Likewise.
10508 * partmap/apple.c: Likewise.
10509 * partmap/acorn.c: Likewise.
10510 * partmap/pc.c: Likewise.
10511 * partmap/sun.c: Likewise.
10512 * partmap/gpt.c: Likewise.
10513 * script/sh/lexer.c: Likewise.
10514 * script/sh/function.c: Likewise.
10515 * font/font.c: Likewise.
10516 * font/font_cmd.c: Likewise.
10517 * loader/powerpc/ieee1275/linux.c: Likewise.
10518 * loader/efi/chainloader.c: Likewise.
10519 * loader/multiboot_loader.c: Likewise.
10520 * loader/macho.c: Likewise.
10521 * loader/i386/multiboot.c: Likewise.
10522 * loader/i386/linux.c: Likewise.
10523 * loader/i386/pc/linux.c: Likewise.
10524 * loader/i386/pc/multiboot2.c: Likewise.
10525 * loader/i386/pc/chainloader.c: Likewise.
10526 * loader/i386/pc/xnu.c: Likewise.
10527 * loader/i386/bsd_trampoline.S: Likewise.
10528 * loader/i386/efi/linux.c: Likewise.
10529 * loader/i386/multiboot_elfxx.c: Likewise.
10530 * loader/i386/bsd_helper.S: Likewise.
10531 * loader/i386/bsd.c: Likewise.
10532 * loader/i386/linux_trampoline.S: Likewise.
10533 * loader/i386/xnu_helper.S: Likewise.
10534 * loader/i386/xnu.c: Likewise.
10535 * loader/i386/bsd_pagetable.c: Likewise.
10536 * loader/i386/multiboot_helper.S: Likewise.
10537 * loader/xnu.c: Likewise.
10538 * loader/xnu_resume.c: Likewise.
10539 * io/gzio.c: Likewise.
10540 * term/efi/console.c: Likewise.
10541 * term/terminfo.c: Likewise.
10542 * term/ieee1275/ofconsole.c: Likewise.
10543 * term/i386/pc/serial.c: Likewise.
10544 * term/i386/pc/vesafb.c: Likewise.
10545 * term/i386/pc/vga.c: Likewise.
10546 * term/usb_keyboard.c: Likewise.
10547 * term/gfxterm.c: Likewise.
10548 * aclocal.m4: Likewise.
10549 * util/lvm.c: Likewise.
10550 * util/grub.d/30_os-prober.in: Likewise.
10551 * util/grub.d/10_hurd.in: Likewise.
10552 * util/console.c: Likewise.
10553 * util/grub-macho2img.c: Likewise.
10554 * util/grub-probe.c: Likewise.
10555 * util/hostfs.c: Likewise.
10556 * util/i386/pc/grub-mkimage.c: Likewise.
10557 * util/i386/pc/grub-setup.c: Likewise.
10558 * util/i386/efi/grub-mkimage.c: Likewise.
10559 * util/grub-mkconfig.in: Likewise.
10560 * util/raid.c: Likewise.
10561 * util/resolve.c: Likewise.
10562 * util/grub-mkdevicemap.c: Likewise.
10563 * util/grub-emu.c: Likewise.
10564 * util/getroot.c: Likewise.
10565 * util/hostdisk.c: Likewise.
10566 * util/usb.c: Likewise.
10567 * util/grub-editenv.c: Likewise.
10568 * util/misc.c: Likewise.
10570 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
10572 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
10573 `genparttoollist.sh'.
10574 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
10575 Add `*.sh' to the list find searches for and change `mdate.sh'
10578 2009-06-10 Pavel Roskin <proski@gnu.org>
10580 * include/grub/multiboot2.h: Provide compatibility defines for
10582 * include/multiboot2.h: Include stdint.h only if needed, using
10584 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
10586 * loader/ieee1275/multiboot2.c: Likewise.
10587 * loader/multiboot2.c: Likewise.
10588 * loader/multiboot_loader.c: Likewise.
10590 * configure.ac: Use -nostdlib when probing for the target. It
10591 should not be required to have libc for the target.
10593 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
10594 they fail without libc headers for the target.
10595 * include/grub/powerpc/libgcc.h: Use weak attribute for all
10597 * include/grub/sparc64/libgcc.h: Likewise. Don't use
10598 preprocessor conditionals.
10600 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
10601 build system doesn't need to be aware of the tar.c internals.
10603 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
10605 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
10607 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
10609 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
10610 disk limit to 26 for IDE, Virtio, Xen and SCSI.
10612 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
10614 * util/i386/pc/grub-install.in: Change the error message if UUIDs
10615 aren't available if ata.mod gets used.
10617 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
10619 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
10620 initialising controller.
10621 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
10623 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10625 * util/i386/pc/grub-install.in: Add a parameter --disk-module
10626 to choose between ata and biosdisk module on i386-pc.
10628 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
10630 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
10631 Subclass and Programming Interface fields in terms of the 3 byte
10632 Class Code register.
10633 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
10635 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
10636 interface is OHCI. Add grub_dprintf for symmetry with
10638 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
10639 interface is UHCI. Add interf variable for programming
10640 interface. Print interface with class/subclass.
10642 * bus/usb/ohci.c: Set interf with correct field.
10644 * bus/usb/uhci.c: Remove unneeded doubled lines.
10645 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
10646 Remove whitespace inside comment.
10648 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
10650 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
10651 as fallback an equivalent option without depth.
10653 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10655 Not fail if unable to retrieve C/H/S on LBA disks
10657 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
10658 if unable to retrieve C/H/S on LBA disks
10660 2009-06-08 Pavel Roskin <proski@gnu.org>
10662 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
10665 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10667 * Makefile.in (uninstall): Remove all $lib_DATA files.
10669 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10671 Bugfix: install on partitionless device
10673 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
10676 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10678 * Makefile.in (uninstall): Remove all $include_DATA files.
10680 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10682 * commands/true.c: New file. Implement the true and false commands.
10683 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
10684 (true_mod_SOURCES): New variable.
10685 (true_mod_CFLAGS): Likewise.
10686 (true_mod_LDFLAGS): Likewise.
10688 2009-06-05 Colin D Bennett <colin@gibibit.com>
10690 Optimized font character lookup using binary search instead of linear
10691 search. Fonts now are required to have the character index ordered by
10694 * font/font.c (load_font_index): Verify that fonts have ordered
10696 (find_glyph): Use binary search instead of linear search to find a
10697 character in a font.
10699 2009-06-05 Michael Scherer <misc@mandriva.org>
10701 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
10702 uses case sensitive btree.
10703 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
10704 only for case insensitive filesystems.
10706 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
10708 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
10709 * conf/common.rmk (search_mod_CFLAGS): likewise
10711 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10713 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
10714 compensate a compiler bug
10716 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10718 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
10721 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10723 Definitions for creating asm symbols with Apple's CC
10725 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
10726 [APPLE_CC] (VARIABLE): likewise
10728 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10730 Disable lnxboot.img when compiled
10733 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
10734 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
10735 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
10736 [! APPLE_CC] (CODE_LENG): skip
10737 [! APPLE_CC] (setup_sects): likewise
10738 [! APPLE_CC]: skip filling
10740 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10742 Address in trampolines based on 32-bit registers when compiled
10745 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
10747 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
10749 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10751 Avoid aliases when compiling with Apple's CC for PCBIOS machine
10753 * kern/misc.c [APPLE_CC] (memcpy): new function
10754 [APPLE_CC] (memmove): likewise
10755 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
10756 (memcpy): define alias conditionally on !APPLE_CC
10759 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
10760 APPLE_CC are defined
10761 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
10762 (grub_assert_fail): make prototype conditional
10764 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10766 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
10768 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
10770 (CLEANFILES): add grub-macho2img
10771 (grub_macho2img_SOURCES): new variable
10772 * kern/i386/pc/startup.S (bss_start): new variable
10773 (bss_end): likewise
10774 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
10775 * util/grub-macho2img.c: new file
10777 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10779 Use objconv when compiling with Apple's CC
10781 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
10782 (efiemu64.o): likewise
10783 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
10784 when compiling with Apple's CC
10785 (efiemu64_s.o): likewise
10786 * configure.ac: check for objconv when compiling with Apple's CC
10787 * genmk.rb: use objconv for modules when compiled with Apple's CC
10789 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10791 Define segment as well as section when compiling with
10794 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
10795 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
10796 (efiemu_convert_pointer): likewise
10797 (efiemu_set_virtual_address_map): likewise
10798 (efiemu_convert_pointer): likewise
10799 (efiemu_getcrc32): likewise
10800 (init_crc32_table): likewise
10801 (reflect): likewise
10802 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
10803 (GRUB_MOD_DEP): likewise
10805 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10807 Allow a compilation without -mcmodel=large
10809 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
10810 when compiled without -mcmodel=large
10811 (filter_memory_map): remove memory post 4 GiB when compiled
10812 without -mcmodel=large
10813 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
10814 TARGET_CFLAGS when -mcmodel=large isn't supported
10816 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10818 Remove nested functions in efiemu core
10820 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
10822 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10824 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
10826 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
10828 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
10830 (grub_cpu_is_tsc_supported): likewise
10831 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
10833 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10835 Absolute addressing through constant with Apple's cc
10837 * kern/i386/pc/startup.S: Define necessary constants
10838 and address through it when using ABS with Apple's CC
10839 * boot/i386/pc/diskboot.S: likewise
10840 * boot/i386/pc/boot.S: likewise
10841 * boot/i386/pc/lnxboot.S: likewise
10842 * boot/i386/pc/cdboot.S: likewise
10843 * mmap/i386/pc/mmap_helper.S: likewise
10844 * commands/i386/pc/drivemap_int13h.S: likewise
10846 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10848 Check if compiler is apple cc
10850 * Makefile.in (ASFLAGS): new variable
10851 (TARGET_ASFLAGS): likewise
10852 (TARGET_MODULE_FORMAT): likewise
10853 (TARGET_APPLE_CC): likewise
10854 (OBJCONV): likewise
10855 (TARGET_IMG_CFLAGS): likewise
10856 (TARGET_CPPFLAGS): add includedir
10857 * configure.ac: call grub_apple_cc and grub_apple_target_cc
10858 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
10859 Check for linker script only if compiler isn't Apple's CC
10860 (TARGET_MODULE_FORMAT): set
10861 (TARGET_APPLE_CC): likewise
10862 (TARGET_ASFLAGS): likewise
10863 (ASFLAGS): likewise
10864 Check for objcopy only if compiler isn't Apple's CC
10865 Check for BSS symbol only if compiler isn't Apple's CC
10866 * genmk.rb: adapt nm options if we use Apple's utils
10867 * aclocal.m4 (grub_apple_cc): new test
10868 (grub_apple_target_cc): likewise
10870 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10872 Simplify sed expressions and improve awk
10874 * Makefile.in (install-local): simplify sed expression
10875 * gencmdlist.sh: likewise
10876 * genmoddep.awk: avoid adding module as a dependency of itself
10878 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10880 Add missing start symbols
10882 * boot/i386/pc/boot.S: add start
10883 * boot/i386/pc/pxeboot.S: likewise
10885 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10887 Fix wrong assumptions with grub-mkimage on EFI
10889 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
10890 (relocate_addresses): consider both r_addend and value at offset
10891 (make_mods_section): zerofill modinfo and header
10892 (convert_elf): write prefix here
10894 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10896 Use .asciz instead of .string
10898 * i386/pc/diskboot.S: use .asciz instead of .string
10899 * i386/pc/boot.S: likewise
10900 * include/grub/dl.h (GRUB_MOD_DEP): likewise
10901 (GRUB_MOD_NAME): likewise
10903 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10907 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
10908 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
10909 (grub_video_setup): remove
10910 (grub_video_set_mode): new prototype
10911 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
10913 (linux_vesafb_res): compile only on PCBIOS
10914 (grub_linux_boot): support gfxpayload
10915 * loader/i386/pc/xnu.c (video_hook): new function
10916 (grub_xnu_set_video): support gfxpayload
10917 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
10918 (DEFAULT_VIDEO_HEIGHT): likewise
10919 (DEFAULT_VIDEO_FLAGS): likewise
10920 (DEFAULT_VIDEO_MODE): new definition
10921 (video_hook): new function
10922 (grub_gfxterm_init): use grub_video_set_mode
10923 * util/grub.d/30_os-prober.in: remove explicit modesetting before
10925 * video/video.c (grub_video_setup): removed
10926 (grub_video_set_mode): new function based on grub_gfxterm_init and
10929 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10931 Avoid calling biosdisk in drivemap
10933 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
10934 (revparse_biosdisk): likewise
10935 (list_mappings): derive name from id directly
10936 (grub_cmd_drivemap): use tryparse_diskstring
10938 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10942 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
10943 (grub_lexer_param): add tokenonhold
10944 (grub_script_create_cmdline): remove cmdline. All callers updated
10945 (grub_script_function_create): make functionname
10946 grub_script_arg. All callers updated
10947 (grub_script_execute_argument_to_string): new prototype
10948 * kern/parser.c (state_transitions): reorder
10949 (grub_parser_cmdline_state): fix a bug and make more compact
10950 * script/sh/execute.c (grub_script_execute_argument_to_string):
10952 (grub_script_execute_cmdline): use new format
10953 * script/sh/function.c (grub_script_function_create): make functionname
10954 grub_script_arg. All callers updated
10955 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
10956 (grub_script_yylex): remove
10957 (grub_script_yylex2): renamed to ...
10958 (grub_script_yylex): ...renamed
10959 parse the expressions like a${b}c
10960 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
10961 (GRUB_PARSER_TOKEN_VAR): remove
10962 (GRUB_PARSER_TOKEN_NAME): likewise
10963 ("if"): declare as typeless
10964 ("while"): likewise
10965 ("function"): likewise
10970 (argument): likewise
10971 (script): accept empty scripts and make exit on error
10972 (arguments): use GRUB_PARSER_TOKEN_ARG
10973 (function): likewise
10974 (command): move error handling to script
10975 (menuentry): move grub_script_lexer_ref before
10976 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
10977 argument. All callers updated
10979 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
10981 Prevent GRUB from probing floppies during boot.
10983 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
10984 * commands/search.c (options): Add --no-floppy.
10985 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
10986 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
10987 --no-floppy when searching for UUIDs.
10989 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
10991 Simplify the code duplication in commands/search.c.
10993 * commands/search.c (search_label, search_fs_uuid): Merge into ...
10994 (search_fs): ... this. Update all users.
10996 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
10998 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
11000 2009-05-28 Pavel Roskin <proski@gnu.org>
11002 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
11003 Remove the original symlink explicitly.
11005 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
11006 just one slash. That's how grub_fshelp_find_file() does it.
11008 2009-05-26 Pavel Roskin <proski@gnu.org>
11010 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
11013 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
11016 2009-05-25 Christian Franke <franke@computer.org>
11018 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
11020 (grub_atapi_identify): Add wait after drive select.
11021 (grub_ata_identify): Do more strict status register check before
11022 calling grub_atapi_identify (). Suppress error message if status
11023 register is 0x00 after command failure. Add status register
11024 check after PIO read to avoid bogus identify due to stuck DRQ.
11025 Thanks to Pavel Roskin for testing.
11026 (grub_device_initialize): Remove unsafe status register check.
11027 Thanks to 'phcoder' for problem report and patch.
11028 Prevent sign extension in debug message.
11030 2009-05-23 Colin D Bennett <colin@gibibit.com>
11032 Cleaned up `include/grub/normal.h'. Grouped prototypes by
11033 definition file, and functions defined in `normal/menu.c' have had
11034 their prototypes moved to `include/grub/menu.h' for consistency.
11036 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
11038 (grub_menu_get_entry): Likewise.
11039 (grub_menu_get_timeout): Likewise.
11040 (grub_menu_set_timeout): Likewise.
11041 (grub_menu_execute_entry): Likewise.
11042 (grub_menu_execute_with_fallback): Likewise.
11043 (grub_menu_entry_run): Likewise.
11045 * include/grub/normal.h: Re-ordered and grouped function
11046 prototypes by file that the function is defined in.
11047 (grub_menu_execute_callback): Removed; moved to menu.h.
11048 (grub_menu_get_entry): Likewise.
11049 (grub_menu_get_timeout): Likewise.
11050 (grub_menu_set_timeout): Likewise.
11051 (grub_menu_execute_entry): Likewise.
11052 (grub_menu_execute_with_fallback): Likewise.
11053 (grub_menu_entry_run): Likewise.
11054 (grub_menu_addentry): Renamed from this ...
11055 (grub_normal_add_menu_entry): ... to this.
11057 * normal/main.c (grub_menu_addentry): Renamed from this ...
11058 (grub_normal_add_menu_entry): ... to this.
11060 * script/sh/execute.c (grub_script_execute_menuentry): Update
11061 reference to renamed grub_menu_addentry function.
11063 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
11065 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
11067 2009-05-22 Pavel Roskin <proski@gnu.org>
11069 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
11070 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
11071 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
11072 compiling for the i386 targets, but not for the utilities.
11074 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
11076 (grub_root_drive): Likewise.
11077 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
11079 (grub_root_drive): Change size to byte.
11080 (grub_start_addr): Remove.
11081 (grub_end_addr): Likewise.
11082 (grub_apm_bios_info): Likewise.
11084 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
11086 * normal/i386: Remove.
11087 * normal/powerpc: Likewise.
11088 * normal/sparc64: Likewise.
11089 * normal/x86_64: Likewise.
11091 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
11093 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
11094 * loader/i386/linux_trampoline.S: Fix indentation
11095 * loader/i386/xnu_helper.S: Likewise
11097 2009-05-18 Colin D Bennett <colin@gibibit.com>
11099 Display error messages when parsing a Lua statement fails.
11100 Previously, executing a syntactically invalid statement like
11101 ")foo" or "bar;" would silently fail.
11103 * script/lua/grub_main.c (handle_lua_error): New function.
11104 (grub_lua_parse_line): Improved reporting of Lua parser and
11107 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11109 Remove -Werror which causes build to fail on some systems
11111 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
11112 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
11113 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
11115 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11117 trampoline for linux on 64-bit platform
11119 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
11120 loader/i386/efi/linux_trampoline.S
11121 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
11123 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
11125 * loader/i386/linux_trampoline.S: moved here
11126 * loader/i386/efi/linux.c (allocate_pages): reserve space for
11128 (jumpvector): removed
11129 (grub_linux_trampoline_start): new declaration
11130 (grub_linux_trampoline_end): likewise
11131 (grub_linux_boot): use trampoline when on 64-bit platform
11132 * loader/i386/linux.c: likewise
11134 2009-05-16 Pavel Roskin <proski@gnu.org>
11136 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
11137 const to avoid a warning.
11138 (grub_lua_setenv): Likewise.
11139 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
11140 lmsg to fix a warning.
11142 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11144 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
11145 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11146 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
11147 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11148 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11149 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11150 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11151 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11153 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11155 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
11157 2009-05-16 Bean <bean123ch@gmail.com>
11159 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
11160 (lua_mod_SOURCES): New variable.
11161 (lua_mod_CFLAGS): Likewise.
11162 (lua_mod_LDFLAGS): Likewise.
11164 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
11165 (setjmp_mod_SOURCES): New variable.
11166 (setjmp_mod_CFLAGS): Likewise.
11167 (setjmp_LDFLAGS): Likewise.
11169 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
11170 (setjmp_mod_SOURCES): New variable.
11171 (setjmp_mod_CFLAGS): Likewise.
11172 (setjmp_LDFLAGS): Likewise.
11174 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11175 (setjmp_mod_SOURCES): New variable.
11176 (setjmp_mod_CFLAGS): Likewise.
11177 (setjmp_LDFLAGS): Likewise.
11179 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11180 (setjmp_mod_SOURCES): New variable.
11181 (setjmp_mod_CFLAGS): Likewise.
11182 (setjmp_LDFLAGS): Likewise.
11184 * normal/i386/setjmp.S: Moved from here ...
11185 * lib/i386/setjmp.S: ... Moved here
11186 * normal/x86_64/setjmp.S: Moved from here ...
11187 * lib/x86_64/setjmp.S: ... Moved here
11188 * normal/powerpc/setjmp.S: Moved from here ...
11189 * lib/powerpc/setjmp.S: ... Moved here
11190 * normal/sparc64/setjmp.S: Moved from here ...
11191 * lib/sparc64/setjmp.S: ... Moved here
11193 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
11194 returns_twice in mingw.
11196 * script/lua/grub_lib.c: New file.
11197 * script/lua/grub_lib.h: Likewise.
11198 * script/lua/grub_lua.h: Likewise.
11199 * script/lua/grub_main.c: Likewise.
11200 * script/lua/lapi.c: Likewise.
11201 * script/lua/lapi.h: Likewise.
11202 * script/lua/lauxlib.c: Likewise.
11203 * script/lua/lauxlib.h: Likewise.
11204 * script/lua/lbaselib.c: Likewise.
11205 * script/lua/lcode.c: Likewise.
11206 * script/lua/lcode.h: Likewise.
11207 * script/lua/ldblib.c: Likewise.
11208 * script/lua/ldebug.c: Likewise.
11209 * script/lua/ldebug.h: Likewise.
11210 * script/lua/ldo.c: Likewise.
11211 * script/lua/ldo.h: Likewise.
11212 * script/lua/ldump.c: Likewise.
11213 * script/lua/lfunc.c: Likewise.
11214 * script/lua/lfunc.h: Likewise.
11215 * script/lua/lgc.c: Likewise.
11216 * script/lua/lgc.h: Likewise.
11217 * script/lua/linit.c: Likewise.
11218 * script/lua/liolib.c: Likewise.
11219 * script/lua/llex.c: Likewise.
11220 * script/lua/llex.h: Likewise.
11221 * script/lua/llimits.h: Likewise.
11222 * script/lua/lmathlib.c: Likewise.
11223 * script/lua/lmem.c: Likewise.
11224 * script/lua/lmem.h: Likewise.
11225 * script/lua/loadlib.c: Likewise.
11226 * script/lua/lobject.c: Likewise.
11227 * script/lua/lobject.h: Likewise.
11228 * script/lua/lopcodes.c: Likewise.
11229 * script/lua/lopcodes.h: Likewise.
11230 * script/lua/loslib.c: Likewise.
11231 * script/lua/lparser.c: Likewise.
11232 * script/lua/lparser.h: Likewise.
11233 * script/lua/lstate.c: Likewise.
11234 * script/lua/lstate.h: Likewise.
11235 * script/lua/lstring.c: Likewise.
11236 * script/lua/lstring.h: Likewise.
11237 * script/lua/lstrlib.c: Likewise.
11238 * script/lua/ltable.c: Likewise.
11239 * script/lua/ltable.h: Likewise.
11240 * script/lua/ltablib.c: Likewise.
11241 * script/lua/ltm.c: Likewise.
11242 * script/lua/ltm.h: Likewise.
11243 * script/lua/lua.h: Likewise.
11244 * script/lua/luaconf.h: Likewise.
11245 * script/lua/lualib.h: Likewise.
11246 * script/lua/lundump.c: Likewise.
11247 * script/lua/lundump.h: Likewise.
11248 * script/lua/lvm.c: Likewise.
11249 * script/lua/lvm.h: Likewise.
11250 * script/lua/lzio.c: Likewise.
11251 * script/lua/lzio.h: Likewise.
11253 2009-05-16 Bean <bean123ch@gmail.com>
11255 * include/grub/kernel.h (grub_module_header_types): Add type
11258 * kern/main.c (grub_load_config): New function.
11259 (grub_main): Call grub_load_config to read boot config.
11261 * grub-mkimage (generate_image): New parameter config_path.
11262 (options): New option --config.
11263 (main): Parse --config option, and pass it to generate_image.
11265 2009-05-14 Christian Franke <franke@computer.org>
11267 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
11268 This fixes build on Cygwin.
11270 2009-05-14 Pavel Roskin <proski@gnu.org>
11272 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
11273 jump. This saves two bytes, so the typical case of 2 swapped
11274 drives would fit 32 bytes.
11276 2009-05-13 Pavel Roskin <proski@gnu.org>
11278 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
11279 grub_uint32_t to avoid a warning.
11281 * loader/i386/linux.c (allocate_pages): When assigning
11282 real_mode_mem, cast through grub_size_t to fix a warning. The
11283 code already makes sure that the value would fit a pointer.
11284 (grub_linux_setup_video): Cast render_target->data to
11285 grub_size_t to fix a warning.
11287 2009-05-13 Javier Martín <lordhabbit@gmail.com>
11289 * commands/i386/pc/drivemap.c: New file - implement drivemap
11291 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
11292 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
11294 2009-05-13 Pavel Roskin <proski@gnu.org>
11296 * util/i386/pc/grub-setup.c (setup): Remove unused variable
11297 embedding_area_exists.
11299 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
11301 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
11302 it easier to understand / work with.
11303 Improve warning messages for cases where there's no embedding area,
11304 or when it is too small (or core.img too large).
11306 2009-05-13 Pavel Roskin <proski@gnu.org>
11308 * loader/i386/pc/multiboot2.c: Add necessary includes for
11309 grub_multiboot2_real_boot().
11311 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
11312 PX record is always little-endian. We only need the lower 2
11315 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
11316 facilitate code reuse.
11317 (grub_cpio_mount): Use "struct head", not a char buffer. This
11318 fixes a warning reported by gcc 4.4.
11320 * kernel/disk.c (grub_disk_read): Use void pointer for the
11322 (grub_disk_write): Use const void pointer for the buffer.
11323 Adjust all callers. Remove unnecessary casts.
11325 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
11327 * util/i386/pc/grub-install.in: Update copyright year.
11329 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11333 * commands/gptsync.c: new file
11334 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
11335 (gptsync_mod_SOURCES): new variable
11336 (gptsync_mod_CFLAGS): likewise
11337 (gptsync_mod_LDFLAGS): likewise
11338 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
11340 (GRUB_PC_PARTITION_TYPE_HFS): likewise
11341 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
11342 * conf/i386-ieee1275.rmk: likewise
11343 * conf/i386-pc.rmk: likewise
11344 * conf/powerpc-ieee1275.rmk: likewise
11346 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11350 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
11351 (grub_dl_ref): likewise
11353 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
11355 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
11356 split in two functions (one for msdos and one for gpt).
11358 2009-05-08 Pavel Roskin <proski@gnu.org>
11360 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
11363 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
11364 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
11365 Initialize them with -1. Add sanity check for bad1. Eliminate
11368 2009-05-08 David S. Miller <davem@davemloft.net>
11370 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
11372 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
11374 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
11377 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
11379 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
11380 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
11382 2009-05-05 David S. Miller <davem@davemloft.net>
11384 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
11386 2009-05-05 Pavel Roskin <proski@gnu.org>
11388 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
11389 of grub_dl_ref() and grub_dl_unref().
11390 * commands/parttool.c: Remove preprocessor conditionals around
11391 grub_dl_ref() and grub_dl_unref().
11392 * fs/affs.c: Likewise.
11393 * fs/afs.c: Likewise.
11394 * fs/cpio.c: Likewise.
11395 * fs/ext2.c: Likewise.
11396 * fs/fat.c: Likewise.
11397 * fs/hfs.c: Likewise.
11398 * fs/hfsplus.c: Likewise.
11399 * fs/iso9660.c: Likewise.
11400 * fs/jfs.c: Likewise.
11401 * fs/minix.c: Likewise.
11402 * fs/ntfs.c: Likewise.
11403 * fs/reiserfs.c: Likewise.
11404 * fs/sfs.c: Likewise.
11405 * fs/udf.c: Likewise.
11406 * fs/ufs.c: Likewise.
11407 * fs/xfs.c: Likewise.
11408 * include/grub/dl.h: Likewise.
11409 * loader/xnu.c: Likewise.
11411 2009-05-04 Pavel Roskin <proski@gnu.org>
11413 * commands/acpi.c: Remove unused variable my_mod.
11414 * partmap/amiga.c: Likewise.
11415 * partmap/apple.c: Likewise.
11416 * partmap/gpt.c: Likewise.
11417 * partmap/pc.c: Likewise.
11418 * partmap/sun.c: Likewise.
11419 * term/gfxterm.c: Likewise.
11420 * term/i386/pc/vesafb.c: Likewise.
11421 * term/i386/pc/vga.c: Likewise.
11423 2009-05-04 David S. Miller <davem@davemloft.net>
11425 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
11426 pointer args to grub_ieee1275_get_property().
11428 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
11430 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
11431 devices, and do not traverse down under controller nodes.
11433 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
11434 (grub_ofdisk_open): Use it to un-escape "," characters.
11435 * kern/disk.c (find_part_sep): New.
11436 (grub_disk_open): Use it to find the first non-escaped ','
11437 character in the disk name.
11438 * util/ieee1275/devicemap.c (escape_of_path): New.
11439 (grub_util_emit_devicemap_entry): Use it.
11440 * util/sparc64/ieee1275/grub-install.in: Update script to
11441 strip partition specifiers properly by not triggering on
11442 '\' escaped ',' characters.
11444 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11446 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
11448 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
11450 (linux_vesafb_modes): Add a lot of additional modes to the list (based
11451 on documentation from Wikipedia).
11453 2009-05-04 Pavel Roskin <proski@gnu.org>
11455 * disk/ata.c: Spelling fixes.
11456 * disk/raid.c: Likewise.
11457 * disk/usbms.c: Likewise.
11458 * disk/dmraid_nvidia.c: Likewise.
11459 * kern/ieee1275/openfw.c: Likewise.
11460 * kern/ieee1275/init.c: Likewise.
11461 * kern/ieee1275/cmain.c: Likewise.
11462 * boot/i386/pc/cdboot.S: Likewise.
11463 * video/readers/png.c: Likewise.
11464 * video/i386/pc/vbe.c: Likewise.
11465 * fs/udf.c: Likewise.
11466 * fs/hfs.c: Likewise.
11467 * fs/reiserfs.c: Likewise.
11468 * efiemu/runtime/efiemu.c: Likewise.
11469 * efiemu/main.c: Likewise.
11470 * efiemu/mm.c: Likewise.
11471 * include/grub/elf.h: Likewise.
11472 * include/grub/xnu.h: Likewise.
11473 * include/grub/usbdesc.h: Likewise.
11474 * include/grub/usb.h: Likewise.
11475 * include/grub/script_sh.h: Likewise.
11476 * include/grub/lib/LzmaEnc.h: Likewise.
11477 * include/grub/efiemu/efiemu.h: Likewise.
11478 * include/grub/command.h: Likewise.
11479 * normal/menu.c: Likewise.
11480 * normal/main.c: Likewise.
11481 * normal/datetime.c: Likewise.
11482 * bus/usb/uhci.c: Likewise.
11483 * mmap/i386/uppermem.c: Likewise.
11484 * mmap/mmap.c: Likewise.
11485 * commands/acpi.c: Likewise.
11486 * commands/test.c: Likewise.
11487 * partmap/apple.c: Likewise.
11488 * font/font.c: Likewise.
11489 * loader/sparc64/ieee1275/linux.c: Likewise.
11490 * loader/macho.c: Likewise.
11491 * loader/i386/bsd_trampoline.S: Likewise.
11492 * loader/i386/bsd.c: Likewise.
11493 * loader/xnu.c: Likewise.
11494 * term/i386/pc/vesafb.c: Likewise.
11495 * term/usb_keyboard.c: Likewise.
11496 * util/resolve.c: Likewise.
11497 * util/getroot.c: Likewise.
11499 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
11501 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
11503 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11505 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
11508 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11510 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
11511 parameter only available on BIOS.
11513 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11515 Removed wrong semicolon in declaration
11517 * grub/misc.h (grub_dprintf): remove semicolon
11519 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11521 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
11522 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
11523 is done by grub_cmd_linux() now).
11524 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
11525 restore video to text mode.
11526 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
11527 indicates lack of "vga=" parameter. "vga=0" is mapped to
11528 `GRUB_LINUX_VID_MODE_NORMAL'.
11530 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
11532 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
11533 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
11534 and `normal/script.c'. Add `kern/rescue_reader.c',
11535 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
11536 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
11537 `grub_script.tab.c'.
11539 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11540 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
11541 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11542 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
11543 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11545 * Makefile.in: Remove duplicated 2008 in Copyright line.
11547 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11549 * util/misc.c (grub_util_warn): New function. Emits a warning
11551 * include/grub/util/misc.h (grub_util_warn): New declaration.
11553 * util/i386/pc/grub-install.in: Understand --force and pass it down
11556 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
11558 (setup): Improve error messages and add warnings when requested to
11559 install in odd layouts. Refuse to install using blocklists unless
11562 2009-05-04 martin f. krafft <madduck@madduck.net>
11564 * disk/raid.c (grub_raid_scan_device): Improve debug message.
11566 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11568 Updated copyright year
11570 * fs/hfsplus.c: updated copyright year
11572 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11576 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
11577 in the space previously used by unused3
11578 (grub_hfsplus_uuid): new function
11579 (grub_hfsplus_fs): added uuid field
11581 2009-05-03 Pavel Roskin <proski@gnu.org>
11583 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
11584 suppress warnings. It's no longer needed.
11585 * disk/host.c: Likewise.
11586 * disk/ata_pthru.c: Likewise.
11587 * disk/loopback.c: Likewise.
11588 * hook/datehook.c: Likewise.
11589 * parttool/pcpart.c: Likewise.
11590 * fs/i386/pc/pxe.c: Likewise.
11591 * fs/ntfscomp.c: Likewise.
11592 * efiemu/main.c: Likewise.
11593 * mmap/mmap.c: Likewise.
11594 * commands/crc.c: Likewise.
11595 * commands/hexdump.c: Likewise.
11596 * commands/hdparm.c: Likewise.
11597 * commands/acpi.c: Likewise.
11598 * commands/echo.c: Likewise.
11599 * commands/minicmd.c: Likewise.
11600 * commands/blocklist.c: Likewise.
11601 * commands/memrw.c: Likewise.
11602 * commands/loadenv.c: Likewise.
11603 * commands/usbtest.c: Likewise.
11604 * commands/lsmmap.c: Likewise.
11605 * commands/boot.c: Likewise.
11606 * commands/parttool.c: Likewise.
11607 * commands/configfile.c: Likewise.
11608 * commands/search.c: Likewise.
11609 * commands/ieee1275/suspend.c: Likewise.
11610 * commands/cat.c: Likewise.
11611 * commands/i386/pc/pxecmd.c: Likewise.
11612 * commands/i386/pc/play.c: Likewise.
11613 * commands/i386/pc/halt.c: Likewise.
11614 * commands/i386/pc/vbeinfo.c: Likewise.
11615 * commands/i386/pc/vbetest.c: Likewise.
11616 * commands/lspci.c: Likewise.
11617 * commands/date.c: Likewise.
11618 * commands/handler.c: Likewise.
11619 * commands/ls.c: Likewise.
11620 * commands/test.c: Likewise.
11621 * commands/cmp.c: Likewise.
11622 * commands/efi/loadbios.c: Likewise.
11623 * commands/efi/fixvideo.c: Likewise.
11624 * commands/halt.c: Likewise.
11625 * commands/help.c: Likewise.
11626 * commands/reboot.c: Likewise.
11627 * hello/hello.c: Likewise.
11628 * script/sh/main.c: Likewise.
11629 * loader/xnu.c: Likewise.
11630 * term/terminfo.c: Likewise.
11631 * term/i386/pc/serial.c: Likewise.
11632 * term/usb_keyboard.c: Likewise.
11634 2009-05-03 David S. Miller <davem@davemloft.net>
11636 * normal/menu.c: Include grub/parser.h
11638 2009-05-03 Pavel Roskin <proski@gnu.org>
11640 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
11642 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
11643 Suggested by Javier Martín <lordhabbit@gmail.com>
11645 * util/i386/pc/grub-mkrescue.in: Allow for the case when
11646 efiemu??.o doesn't exist.
11647 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
11650 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
11652 FreeBSD 64-bit support
11654 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
11655 and loader/i386/bsd_trampoline.S
11656 (bsd_mod_ASFLAGS): new variable
11657 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
11658 (FREEBSD_MODTYPE_KERNEL64): likewise
11659 (grub_bsd64_trampoline_start): likewise
11660 (grub_bsd64_trampoline_end): likewise
11661 (grub_bsd64_trampoline_selfjump): likewise
11662 (grub_bsd64_trampoline_gdt): likewise
11663 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
11664 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
11665 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
11666 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
11667 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
11669 * loader/i386/bsd_pagetable.c: new file
11670 * loader/i386/bsd_trampoline.S: likewise
11671 * loader/i386/bsd.c (ALIGN_QWORD): new macro
11672 (ALIGN_VAR): likewise
11673 (entry_hi): new variable
11674 (kern_end_mdofs): likewise
11675 (is_64bit): likewise
11676 (grub_freebsd_add_meta): use ALIGN_VAR
11677 (grub_e820_mmap): new declaration
11678 (grub_freebsd_add_mmap): new function
11679 (grub_freebsd_add_meta_module): support 64 bit kernels
11680 (grub_freebsd_list_modules): use ALIGN_VAR
11681 (gdt_descriptor): new declaration
11682 (grub_freebsd_boot): support 64 bit kernels
11683 (grub_bsd_elf64_hook): new function
11684 (grub_bsd_load_elf): support elf64
11686 2009-05-03 Bean <bean123ch@gmail.com>
11688 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
11689 after we get the result of if statement.
11691 2009-05-03 Bean <bean123ch@gmail.com>
11693 * Makefile.in (enable_efiemu): New variable.
11695 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
11697 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
11699 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
11700 path, add -mno-red-zone option.
11701 (efiemu64_s.o): Likewise.
11702 (efiemu64.o): Use macro $^ for source file.
11704 * configure.ac (--enable-efiemu): New option.
11706 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11710 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
11711 (pkglib_MODULES): add xnu.mod
11712 (xnu_mod_SOURCES): new variable
11713 (xnu_mod_CFLAGS): likewise
11714 (xnu_mod_LDFLAGS): likewise
11715 (xnu_mod_ASFLAGS): likewise
11716 * conf/i386-pc.rmk: likewise
11717 * conf/x86_64-efi.rmk: likewise
11718 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
11720 * include/grub/i386/macho.h: new file
11721 * include/grub/i386/xnu.h: likewise
11722 * include/grub/macho.h: likewise
11723 * include/grub/machoload.h: likewise
11724 * include/grub/x86_64/macho.h: likewise
11725 * include/grub/x86_64/xnu.h: likewise
11726 * include/grub/xnu.h: likewise
11727 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
11728 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
11729 * loader/i386/efi/xnu.c: new file
11730 * loader/i386/pc/xnu.c: likewise
11731 * loader/i386/xnu.c: likewise
11732 * loader/i386/xnu_helper.S: likewise
11733 * loader/macho.c: likewise
11734 * loader/xnu.c: likewise
11735 * loader/xnu_resume.c: likewise
11736 * util/grub-dumpdevtree: likewise
11737 * include/grub/i386/pit.h: include grub/err.h
11738 (grub_pit_wait): export
11739 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
11741 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11745 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
11746 _linux_efi, linux_efi.
11747 new files in grub-emu
11748 new targets efiemu32.o and efiemu64.o
11749 * loader/linux_normal_efiemu.c: likewise
11750 * loader/i386/efi/linux.c: added preliminary efiemu support
11751 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
11753 * include/grub/autoefi.h: new file
11754 * include/grub/i386/efiemu.h: likewise
11755 * include/grub/i386/pc/efiemu.h: likewise
11756 * include/grub/efi/api.h: add LL suffix when necessary
11757 new definitions relating to tables
11758 * include/grub/efiemu/efiemu.h: new file
11759 * include/grub/efiemu/runtime.h: likewise
11760 * efiemu/prepare.c: likewise
11761 * efiemu/loadcore_common.c: likewise
11762 * efiemu/loadcore64.c: likewise
11763 * efiemu/runtime/efiemu.sh: likewise
11764 * efiemu/runtime/efiemu.S: likewise
11765 * efiemu/runtime/efiemu.c: likewise
11766 * efiemu/runtime/config.h: likewise
11767 * efiemu/prepare32.c: likewise
11768 * efiemu/main.c: likewise
11769 * efiemu/modules/pnvram.c: likewise
11770 * efiemu/modules/i386: likewise
11771 * efiemu/modules/i386/pc: likewise
11772 * efiemu/modules/acpi.c: likewise
11773 * efiemu/i386/pc/cfgtables.c: likewise
11774 * efiemu/i386/loadcore64.c: likewise
11775 * efiemu/i386/loadcore32.c: likewise
11776 * efiemu/prepare64.c: likewise
11777 * efiemu/loadcore.c: likewise
11778 * efiemu/symbols.c: likewise
11779 * efiemu/mm.c: likewise
11780 * efiemu/loadcore32.c: likewise
11782 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11786 * commands/acpi.c: new file
11787 * commands/i386/pc/acpi.c: likewise
11788 * commands/efi/acpi.c: likewise
11789 * include/grub/acpi.h: likewise
11790 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
11791 (acpi_mod_SOURCES): new variable
11792 (acpi_mod_CFLAGS): likewise
11793 (acpi_mod_LDFLAGS): likewise
11794 * conf/i386-efi.rmk: likewise
11795 * conf/x86_64-efi.rmk: likewise
11797 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11799 Missing part from mmap patch
11801 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
11802 (grub_mmap_unregister)
11803 (grub_mmap_free_and_unregister): use grub_mmap_register
11805 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11809 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
11810 * loader/i386/linux.c (find_mmap_size): likewise
11811 (allocate_pages): likewise
11812 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
11813 (grub_fill_multiboot_mmap): likewise
11814 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
11815 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
11816 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
11817 (OPENBSD_MMAP_RESERVED): likewise
11818 * include/grub/i386/pc/memory.h: include grub/memory.h
11819 (grub_lower_mem): removed
11820 (grub_upper_mem): likewise
11821 (GRUB_MACHINE_MEMORY_ACPI): new definition
11822 (GRUB_MACHINE_MEMORY_NVS): likewise
11823 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
11824 (GRUB_MACHINE_MEMORY_HOLE): likewise
11825 (grub_machine_mmap_register): likewise
11826 (grub_machine_mmap_unregister): likewise
11827 (grub_machine_get_upper): likewise
11828 (grub_machine_get_lower): likewise
11829 (grub_machine_get_post64): likewise
11830 * include/grub/i386/efi/memory.h: new file
11831 * include/grub/x86_64/efi/memory.h: likewise
11832 * include/grub/efi/memory.h: likewise
11833 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
11834 (mmap_mod_SOURCES): new variable
11835 (mmap_mod_LDFLAGS): likewise
11836 (mmap_mod_ASFLAGS): likewise
11837 * conf/i386-coreboot.rmk: likewise
11838 * conf/i386-ieee1275.rmk: likewise
11839 * conf/i386-efi.rmk: likewise
11840 * conf/x86_64-efi.rmk: likewise
11841 * include/grub/types.h (UINT_TO_PTR): new macro
11842 (PTR_TO_UINT32): likewise
11843 (PTR_TO_UINT64): likewise
11844 * include/grub/memory.h: new file
11845 * mmap/i386/pc/mmap.c: likewise
11846 * mmap/i386/pc/mmap_helper.S: likewise
11847 * mmap/i386/uppermem.c: likewise
11848 * mmap/mmap.c: likewise
11849 * mmap/efi/mmap.c: likewise
11850 * kern/i386/coreboot/init.c (grub_machine_init): don't use
11852 * kern/i386/pc/init.c (grub_lower_mem): removed variable
11853 (grub_upper_mem): likewise
11854 (grub_machine_init): don't use grub_upper_mem,
11855 make grub_lower_mem local
11856 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
11857 grub_mmap_iterate and grub_mmap_get_upper
11858 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
11860 2009-05-02 Bean <bean123ch@gmail.com>
11862 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
11863 script/sh/parser.y.
11864 (pkglib_MODULES): Add normal.mod and sh.mod.
11865 (normal_SOURCES): New variable.
11866 (normal_mod_CFLAGS): Likewise.
11867 (normal_mod_LDFLAGS): Likewise.
11868 (sh_mod_SOURCES): Likewise.
11869 (sh_mod_CFLAGS): Likewise.
11870 (sh_mod_LDFLAGS): Likewise.
11872 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
11873 script/sh/lexer.c_DEPENDENCIES.
11874 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
11875 kern/rescue_reader.c and kern/rescue_parser.c.
11876 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
11877 (grub_emu_SOURCES): Change source files.
11878 (pkglib_MODULES): Remove normal.mod.
11879 (normal_SOURCES): Removed.
11880 (normal_mod_CFLAGS): Likewise.
11881 (normal_mod_LDFLAGS): Likewise.
11882 * conf/i386-coreboot.rmk: Likewise.
11883 * conf/i386-efi.rmk: Likewise.
11884 * conf/i386-ieee1276.rmk: Likewise.
11885 * conf/powerpc-ieee1275.rmk: Likewise.
11886 * conf/sparc64-ieee1275.rmk: Likewise.
11887 * conf/x86_64-efi.rmk: Likewise.
11889 * include/grub/command.h (grub_command_execute): New inline function.
11891 * include/grub/menu.h (grub_menu_entry): Removed commands field.
11893 * include/grub/normal.h: Remove <grub/setjmp.h>.
11894 (grub_fs_module_list): Moved to normal/autofs.c.
11895 (grub_exit_env): Removed.
11896 (grub_command_execute): Likewise.
11897 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
11899 (read_command_list): New function declaration.
11900 (read_fs_list): Likewise.
11902 * include/parser.h: Include <grub/reader.h>.
11903 (grub_parser_split_cmdline): Change type of getline parameter.
11904 (grub_parser): New structure.
11905 (grub_parser_class): New variable.
11906 (grub_parser_execute): New function declaration.
11907 (grub_register_rescue_parser): Likewise.
11908 (grub_parser_register): New inline function.
11909 (grub_parser_unregister): Likewise.
11910 (grub_parser_get_current): Likewise.
11911 (grub_parser_set_current): Likewise.
11913 * include/grub/reader.h: New file.
11914 * kern/reader.c: Likewise.
11915 * kern/rescue_parser.c: Likewise.
11916 * kern/rescue_reader.c: Likewise.
11917 * normal/autofs.c: Likewise.
11918 * normal/dyncmd.c: Likewise.
11920 * include/grub/rescue.h: Removed.
11921 * normal/command.h: Likewise.
11923 * include/grub/script.h: Moved to ...
11924 * include/grub/script_sh.h: ... Moved here.
11925 * normal/execute.c: Moved to ...
11926 * script/sh/execute.c: ... Moved here.
11927 * normal/function.c: Moved to ...
11928 * script/sh/function.c: ... Moved here.
11929 * normal/lexer.c: Moved to ...
11930 * script/sh/lexer.c: ... Moved here.
11931 * normal/parser.y: Moved to ...
11932 * script/sh/parser.y: ... Moved here.
11933 * normal/script.c: Moved to ...
11934 * script/sh/script.c: ... Moved here.
11936 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
11938 (grub_exit_env): Removed.
11939 (fs_module_list): Moved to normal/autofs.c.
11940 (grub_file_getline): Don't handle comment here.
11941 (free_menu): Skip removed field entry->commands.
11942 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
11944 (read_config_file): Removed nested parameter, change getline function.
11945 (grub_enter_normal_mode): Removed.
11946 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
11947 (read_command_list): Likewise.
11948 (autoload_fs_module): Moved to normal/autofs.c.
11949 (read_fs_list): Likewise.
11950 (reader_nested): New variable.
11951 (grub_normal_execute): Run parser.sh to switch to sh parser.
11952 (grub_cmd_rescue): Removed.
11953 (cmd_normal): Removed.
11954 (grub_cmd_normal): Unregister itself at the beginning. Don't register
11956 (grub_cmdline_run): New function.
11957 (grub_normal_reader_init): Likewise.
11958 (grub_normal_read_line): Likewise.
11959 (grub_env_write_pager): Likewise.
11960 (cmdline): New variable.
11961 (grub_normal_reader): Likewise.
11962 (GRUB_MOD_INIT): Register normal reader and set as current, register
11963 pager hook, register normal command with grub_register_command_prio,
11964 so that it won't show up in command.lst.
11965 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
11966 grub_fs_autoload_hook.
11968 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
11969 (grub_menu_execute_entry): Replace grub_script_execute with
11970 grub_parser_execute, change parameter to grub_command_execute.
11972 * normal/menu_text.c: Remove <grub/script.h>.
11974 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
11975 and <grub/parser.h>.
11976 (run): Change editor_getline to use new parser interface. Change
11977 parameter to grub_command_execute.
11979 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
11980 <grub/reader.h> and <grub/parser.h>.
11981 (grub_load_normal_mode): Execute normal command.
11982 (grub_main): Call grub_register_core_commands,
11983 grub_register_rescue_parser and grub_register_rescue_reader, use
11984 grub_reader_loop to enter input loop.
11986 * kern/parser.c (grub_parser_split_cmdline): Change type of
11988 (grub_parser_class): New variable.
11989 (grub_parser_execute): New function.
11991 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
11992 * loader/multiboot2.c: Likewise.
11993 * loader/sparc64/ieee1275/linux.c: Likewise.
11995 * util/grub-emu.c (read_command_list): New dummy function.
11997 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
11999 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
12000 count to 16 for CCISS and IDA.
12002 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
12004 * normal/menu_text.c (grub_wait_after_message): Print a newline
12005 after waiting for user input.
12007 * loader/i386/linux.c: Include `<grub/normal.h>'.
12008 (grub_cmd_linux): Improve the error message about `ask' mode, by
12009 waiting for user input so it's not missed (we can do this, since
12010 user requested interaction).
12012 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12014 Added missing lst to grub-mkrescue
12016 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
12017 and ${input_dir}/parttool.lst
12019 2009-04-30 David S. Miller <davem@davemloft.net>
12021 * util/hostdisk.c (device_is_wholedisk): New function.
12022 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
12023 zero only if device_is_wholedisk() returns true.
12025 * util/hostdisk.c (convert_system_partition_to_system_disk):
12026 Handle virtual disk devices named /dev/vdiskX as found on sparc
12029 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
12030 lettered partition specifier is found, convert to numbered.
12032 2009-04-29 David S. Miller <davem@davemloft.net>
12034 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
12035 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12037 * normal/command.c: Add missing newline at end of file.
12039 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
12041 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
12042 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
12043 grub_ofdisk_read): Likewise, and deal similarly with the fact that
12044 ihandles have a 32-bit type but need to be stored in a "void *".
12046 2009-04-28 Pavel Roskin <proski@gnu.org>
12048 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
12049 not disk. Adjust all dependencies.
12050 (grub_fs_uuid_close): Use grub_device_close(), not
12053 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
12054 parent's partition, don't copy it by reference, as it gets freed
12057 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
12059 Preboot hooks support
12061 * commands/boot.c (struct grub_preboot_t): new declaration
12062 (preboots_head): new variable
12063 (preboots_tail): likewise
12064 (grub_loader_register_preboot_hook): new function
12065 (grub_loader_unregister_preboot_hook): likewise
12066 (grub_loader_set): launch preboot hooks
12067 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
12068 (grub_loader_register_preboot_hook): new declaration
12069 (grub_loader_unregister_preboot_hook): likewise
12071 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
12075 * disk/scsi.c (grub_scsi_open): added missing cast when
12076 calling grub_dprintf
12078 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
12080 Bug and warning fixes
12082 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
12084 * commands/test.c (test_parse): fixed bug with file tests and corrected
12085 declaration of find_file
12087 2009-04-26 Pavel Roskin <proski@gnu.org>
12089 * Makefile.in: Don't install empty manual pages if help2man is
12090 missing. Use help2man option for output, not shell redirection.
12092 2009-04-26 David S. Miller <davem@davemloft.net>
12094 * util/grub-mkdevicemap.c (make_device_map): Add missing
12095 NESTED_FUNC_ATTR to process_device().
12097 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12101 * commands/test.c: rewritten to use bash-like test
12103 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12105 Parttool autoloading and improvements
12107 * Makefile.in (pkglib_DATA): add parttool.lst
12108 (parttool.lst): new target
12109 * genmk.rb: generate parttool-*
12110 (CLEANFILES): add #{parttool}
12111 (PARTTOOLFILES): new variable
12112 * genparttoollist.sh: new file
12113 * parttool/pcpart.c (grub_pcpart_boot): more feedback
12114 (grub_pcpart_type): likewise
12115 * commands/parttool.c (helpmsg): new variable
12116 (grub_cmd_parttool): output help if not enough arguments are supplied
12118 (GRUB_MOD_INIT(parttool)): use helpmsg
12120 2009-04-24 David S. Miller <davem@davemloft.net>
12122 Avoiding opening same device multiple times in device iterator.
12124 * kern/device.c: (grub_device_iterate): Define struct part_ent,
12125 and use it to build a list of partitions in iterate_disk() and
12126 iterate_partition().
12128 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
12131 * disk/ieee1275/nand.c (grub_nand_iterate): Return
12132 grub_devalias_iterate() result instead of unconditional 0.
12133 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
12134 Also, capture hook return value, either directly or via
12135 grub_children_iterate(), and propagate to caller.
12136 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
12137 grub_children_iterate): Return value is now 'int' instead of
12139 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
12140 like a proper iterator, stopping when hooks return non-zero.
12141 (grub_devalias_iterate): Likewise.
12143 2009-04-23 David S. Miller <davem@davemloft.net>
12145 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
12147 2009-04-22 David S. Miller <davem@davemloft.net>
12149 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
12150 is larger than address_cells, use that value for address_cells too.
12152 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
12153 IEEE1275_MAX_PATH_LEN): Define.
12154 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
12155 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
12156 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
12157 'devtype'. Explicitly NULL terminate devalias expansion.
12159 * util/sparc64/ieee1275/misc.c: New file.
12160 * util/sparc64/ieee1275/grub-setup.c: New file.
12161 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
12162 * util/sparc64/ieee1275/grub-mkimage.c: New file.
12163 * util/sparc64/ieee1275/grub-install.in: New file.
12164 * util/ieee1275/ofpath.c: New file.
12165 * util/ieee1275/devicemap.c: New file.
12166 * util/devicemap.c: New file.
12167 * util/deviceiter.c: New file.
12168 * kern/sparc64/ieee1275/init.c: New file.
12169 * include/grub/util/ofpath.h: New file.
12170 * include/grub/util/deviceiter.h: New file.
12171 * util/grub-mkdevicemap.c: Include deviceiter.h.
12172 Implement using grub_util_emit_devicemap_entry and
12173 grub_util_iterate_devices.
12174 * conf/i386-corebook.rmk: Build util/deviceiter.c and
12175 util/devicemap.c into grub-mkdevicemap
12176 * conf/i386-efi.rmk: Likewise.
12177 * conf/i386-ieee1275.rmk: Likewise.
12178 * conf/i386-pc.rmk: Likewise.
12179 * conf/powerpc-ieee1275.rmk: Likewise.
12180 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
12181 images and installation utilities. Build kernel as image
12182 instead of as elf binary. Use common rules as much as possible.
12184 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12186 Correct GPT definition
12188 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
12191 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
12193 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
12195 2009-04-19 David S. Miller <davem@davemloft.net>
12197 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
12198 (grub_rescue_cmd_linux): Rename to...
12199 (grub_cmd_linux): and fix prototype.
12200 (grub_rescue_cmd_initrd): Rename to...
12201 (grub_cmd_initrd): and fix prototype.
12202 (cmd_linux, cmd_initrd): New.
12203 (GRUB_MOD_INIT(linux)): Use grub_register_command().
12204 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
12206 2009-04-17 Pavel Roskin <proski@gnu.org>
12208 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
12210 (grub_ohci_transfer): Likewise.
12212 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
12214 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
12215 return without a value. Fix inconsistent indentation.
12217 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
12218 match struct grub_fs.
12220 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
12221 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
12222 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
12223 * commands/lspci.c (grub_lspci_iter): Likewise.
12225 2009-04-16 Bean <bean123ch@gmail.com>
12227 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
12230 2009-04-15 Pavel Roskin <proski@gnu.org>
12232 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
12233 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
12234 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
12237 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
12239 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
12240 that no multiple data or metadata areas are supported and `Unknown
12243 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12245 Move loader out of the kernel
12247 * kern/loader.c: moved to ...
12248 * commands/boot.c: ... moved here
12249 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
12250 * commands/boot.c (grub_cmd_boot): moved here. All users updated
12251 * include/grub/kernel.h (grub_machine_fini): export
12252 * include/grub/loader.h (grub_loader_is_loaded): update declaration
12253 (grub_loader_set): likewise
12254 (grub_loader_unset): likewise
12255 (grub_loader_boot): likewise
12256 * conf/common.rmk: new module boot.mod
12257 (pkglib_MODULES): add boot.mod
12258 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
12259 (grub_emu_SOURCES): likewise
12260 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
12261 (grub_emu_SOURCES): likewise
12262 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
12263 (grub_emu_SOURCES): likewise
12264 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
12265 (grub_emu_SOURCES): likewise
12266 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
12267 (grub_emu_SOURCES): likewise
12268 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
12269 (grub_emu_SOURCES): likewise
12270 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
12271 (grub_emu_SOURCES): likewise
12273 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12275 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
12277 * kern/misc.c (grub_itoa): Removed function
12278 (grub_ltoa): likewise
12279 (grub_vsprintf): use grub_lltoa
12281 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12285 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
12286 * conf/i386-coreboot.rmk: likewise
12287 * conf/i386-ieee1275.rmk: likewise
12288 * conf/powerpc-ieee1275.rmk: likewise
12290 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
12292 * INSTALL: Add that `./autogen.sh' needs to be run before
12295 2009-04-14 Bean <bean123ch@gmail.com>
12297 * Makefile.in (pkglib_DATA): Add handler.lst.
12298 (handler.lst): New rule.
12300 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
12301 * conf/i386-coreboot.rmk: Likewise.
12302 * conf/i386-ieee1275.rmk: Likewise.
12303 * conf/i386-efi.rmk: Likewise.
12304 * conf/x86_64-efi.rmk: Likewise.
12305 * conf/powerpc-ieee1275.rmk: Likewise.
12306 * conf/sparc64-ieee1275.rmk: Likewise.
12308 * genhandlerlist.sh: New file.
12310 * genmk.rb: Add rules to generate handler.lst.
12312 * include/grub/normal.h (grub_file_getline): New function definition.
12313 (read_handler_list): Likewise.
12314 (free_handler_list): Likewise.
12316 * include/grub/term.h (grub_term_register_input): Add name parameter
12317 for auto generation of handler.lst.
12318 (grub_term_register_output): Likewise.
12320 * normal/handler.c: New file.
12322 * normal/main.c (get_line): Renamed to grub_file_getline.
12323 (read_config_file): Use the newly renamed grub_file_getline.
12324 (read_command_list): Likewise.
12325 (read_fs_list): Likewise.
12326 (grub_normal_execute): Call read_handler_list to parse handler.lst.
12327 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
12329 * term/efi/console.c (grub_console_init): Add name parameter for auto
12330 generation of handler.lst.
12331 * term/gfxterm.c: Likewise.
12332 * term/i386/pc/at_keyboard.c: Likewise.
12333 * term/i386/pc/console.c: Likewise.
12334 * term/i386/pc/serial.c: Likewise.
12335 * term/i386/pc/vesafb.c: Likewise.
12336 * term/i386/pc/vga.c: Likewise.
12337 * term/i386/pc/vga_text.c: Likewise.
12338 * term/ieee1275/ofconsole.c: Likewise.
12339 * term/usb_keyboard.c: Likewise.
12341 2009-04-14 Bean <bean123ch@gmail.com>
12343 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
12344 properly with null character.
12346 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
12348 * configure: Remove.
12349 * config.h.in: Likewise.
12350 * stamp-h.in: Likewise.
12351 * DISTLIST: Likewise.
12352 * conf/common.mk: Likewise.
12353 * conf/i386-coreboot.mk: Likewise.
12354 * conf/i386-efi.mk: Likewise.
12355 * conf/i386-ieee1275.mk: Likewise.
12356 * conf/i386.mk: Likewise.
12357 * conf/i386-pc.mk: Likewise.
12358 * conf/powerpc-ieee1275.mk: Likewise.
12359 * conf/sparc64-ieee1275.mk: Likewise.
12360 * conf/x86_64-efi.mk: Likewise.
12362 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
12365 2009-04-14 John Stanley <jpsinthemix@verizon.net>
12366 David S. Miller <davem@davemloft.net>
12368 * util/hostdisk.c (make_device_name): Fix buffer length
12371 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
12373 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
12374 <sys/param.h> and <sys/sysctl.h>.
12375 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
12376 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
12377 opening the device and reset them afterwards.
12379 2009-04-13 Pavel Roskin <proski@gnu.org>
12381 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
12382 Reported by John Stanley <jpsinthemix@verizon.net>
12384 2009-04-13 Robert Millan <rmh@aybabtu.com>
12386 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
12387 that name for menuentries when appropriate.
12389 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12391 * util/grub.d/10_freebsd.in: Add a missing `fi'.
12393 2009-04-13 Robert Millan <rmh@aybabtu.com>
12395 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
12396 to Linux, simply abort telling the user it's no longer supported.
12398 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12400 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
12401 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
12402 `freebsd_loadenv' only when devices.hints exist.
12404 2009-04-13 Pavel Roskin <proski@gnu.org>
12406 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
12408 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12410 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
12412 (grub_drive): Likewise.
12414 2009-04-13 David S. Miller <davem@davemloft.net>
12416 * kern/sparc64/ieee1275/ieee1275.c: New file.
12417 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
12418 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
12419 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
12420 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
12421 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
12422 grub_ieee1275_alloc_physmem): Declare new exported functions.
12424 * include/grub/sparc64/ieee1275/loader.h: New file.
12425 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12426 * include/grub/sparc64/kernel.h: Likewise.
12427 * loader/sparc64/ieee1275/linux.c: Likewise.
12429 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
12430 (grub_fstest_SOURCES): Likewise.
12432 * util/hostdisk.c (make_device_name): Do not make any assumptions
12433 about the length of drive names.
12435 * kern/dl.c (grub_dl_load_file): Close file immediately when
12436 we are done using it.
12438 2009-04-12 David S. Miller <davem@davemloft.net>
12440 * kern/misc.c (grub_ltoa): Fix cast when handling negative
12441 values. Noticed by Pavel Roskin.
12443 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
12446 * genmk.rb: Add more flexible image type specification, also
12447 pass --strip-unneeded to objcopy.
12448 * conf/i386-pc.rmk: Use *_FORMAT.
12449 * conf/i386-pc.mk: Rebuilt.
12451 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
12452 (OFDISK_HASH_SZ): Define.
12453 (ofdisk_hash): New hash table.
12454 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
12455 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
12456 instead of device phandle which is not unique.
12458 * kern/sparc64/ieee1275/init.c: Delete, replace with...
12459 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
12460 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
12461 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
12462 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
12463 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
12464 GRUB_KERNEL_MACHINE_DATA_END): Define.
12465 (grub_kernel_image_size, grub_total_module_size): Declare.
12467 2009-04-12 Pavel Roskin <proski@gnu.org>
12469 * configure.ac: Change the logic when we check for target tools.
12470 Do it when the target is specified and it's different from the
12471 specified value of the host.
12473 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
12475 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
12476 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
12477 GNU/kFreeBSD. Check if a device is a character device. Use
12478 DIOCGMEDIASIZE to get the size.
12479 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
12480 support for GNU/kFreeBSD.
12481 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
12482 is a character device instead of a block device. Add support for
12483 FreeBSD device names.
12485 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
12486 is a character device instead of a block device.
12488 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
12489 is a character device instead of a block device.
12491 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
12493 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
12494 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
12495 FreeBSD. Check if a device is a character device. Use
12496 DIOCGMEDIASIZE to get the size.
12497 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
12498 support for FreeBSD.
12499 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
12500 is a character device instead of a block device. Add support for
12501 FreeBSD device names.
12503 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
12504 a character device instead of a block device.
12505 (grub_util_check_char_device): New function.
12507 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
12508 a character device instead of a block device.
12510 * include/grub/util/getroot.h (grub_util_check_char_device): New
12513 2009-04-11 David S. Miller <davem@davemloft.net>
12515 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
12517 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
12518 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
12519 function, if present.
12520 (__bswapdi2): Likewise.
12522 * include/grub/sparc64/ieee1275/boot.h: New file.
12523 * boot/sparc64/ieee1275/boot.S: Likewise.
12524 * boot/sparc64/ieee1275/diskboot.S: Likewise.
12526 * kern/misc.c (grub_ltoa): New function.
12527 (grub_vsprintf): Use it to format 'long' integers.
12529 2009-04-10 David S. Miller <davem@davemloft.net>
12531 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
12532 slots are of type grub_ieee1275_cell_t.
12533 (grub_nand_read): Likewise.
12534 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
12535 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
12536 macros are used to compare values in arg/ret block of the call.
12537 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
12538 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
12539 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
12540 grub_ieee1275_instance_to_path, grub_ieee1275_write,
12541 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
12542 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
12543 grub_ieee1275_close, grub_ieee1275_set_property,
12544 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
12545 grub_ieee1275_cell_t.
12546 * kern/ieee1275/openfw.c (grub_map): Likewise.
12547 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
12548 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
12550 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
12551 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
12552 (grub_devalias_iterate): Likewise.
12554 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12558 * fs/ufs.c (INODE_NBLOCKS): new definition
12559 (struct grub_ufs_dirent): added fields for non-BSD dirents
12560 (grub_ufs_get_file_block): fixed double indirect handling
12561 (grub_ufs_lookup_symlink): use more robust way to determine whether
12563 (grub_ufs_find_file): support for non-BSD dirents
12564 (grub_ufs_dir): support for non-BSD dirents
12566 2009-04-10 Bean <bean123ch@gnail.com>
12568 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
12569 attribute, otherwise the size would be wrong for i386 platform.
12571 * include/grub/pci.h (grub_pci_read_word): New inline function.
12572 (grub_pci_read_byte): Likewise.
12573 (grub_pci_write): Likewise.
12574 (grub_pci_write_word): Likewise.
12575 (grub_pci_write_byte): Likewise.
12577 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
12579 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
12580 (find_framebuf): Scan pci to locate the frame buffer address.
12582 * commands/efi/fixvideo.c: New file.
12584 * commands/efi/loadbios.c: Likewise.
12586 * commands/memrw.c: Likewise.
12588 * util/grub-dumpbios.in: Likewise.
12590 * conf/common.rmk (grub-dumpbios): New utility.
12591 (pkglib_MODULES): New module memrw.mod.
12592 (memrw_mod_SOURCE): New macro.
12593 (memrw_mod_CFLAGS): Likewise.
12594 (memrw_mod_LDFLAGS): Likewise.
12596 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
12598 (loadbios_mod_SOURCE): New macro.
12599 (loadbios_mod_CFLAGS): Likewise.
12600 (loadbios_mod_LDFLAGS): Likewise.
12601 (fixvideo_mod_SOURCE): Likewise.
12602 (fixvideo_mod_CFLAGS): Likewise.
12603 (fixvideo_mod_LDFLAGS): Likewise.
12605 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
12607 (loadbios_mod_SOURCE): New macro.
12608 (loadbios_mod_CFLAGS): Likewise.
12609 (loadbios_mod_LDFLAGS): Likewise.
12610 (fixvideo_mod_SOURCE): Likewise.
12611 (fixvideo_mod_CFLAGS): Likewise.
12612 (fixvideo_mod_LDFLAGS): Likewise.
12614 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
12616 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
12618 2009-04-07 David S. Miller <davem@davemloft.net>
12620 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
12621 support for R_SPARC_OLO10 relocations. Fix compile warning for
12622 R_SPARC_WDISP30 case.
12623 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
12625 2009-04-06 Pavel Roskin <proski@gnu.org>
12627 * include/grub/misc.h (ARRAY_SIZE): New macro.
12628 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
12630 * loader/i386/linux.c (allocate_pages): Use free_pages().
12631 (grub_linux_unload): Don't use free_pages().
12632 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
12633 wrong index. Treat all other modes as text modes.
12634 (grub_cmd_linux): Initialize vid_mode unconditionally to
12635 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
12637 * commands/help.c (print_command_help): Use cmd->prio, not
12638 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
12640 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12644 * parttool/pcpart.c: new file
12645 * commands/parttool.c: likewise
12646 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
12647 (parttool_mod_SOURCES): new variable
12648 (parttool_mod_CFLAGS): likewise
12649 (parttool_mod_LDFLAGS): likewise
12650 (pcpart_mod_SOURCES): likewise
12651 (pcpart_mod_CFLAGS): likewise
12652 (pcpart_mod_LDFLAGS): likewise
12653 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
12654 and parttool/pcpart.c
12655 * conf/i386-efi.rmk: likewise
12656 * conf/i386-ieee1275.rmk: likewise
12657 * conf/i386-pc.rmk: likewise
12658 * conf/powerpc-ieee1275.rmk: likewise
12659 * conf/sparc64-ieee1275.rmk: likewise
12660 * conf/x86_64-ieee1275.rmk: likewise
12662 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12664 Support for mtime and further expandability of dir command
12666 * include/grub/lib/datetime.h: moved to ...
12667 * include/grub/datetime.h: ... moved here and added
12668 declaration of grub_unixtime2datetime. All users updated
12669 * include/grub/fs.h: new syntax for dir and mtime functions in
12671 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
12672 and GRUB_FSHELP_FLAGS_MASK
12673 * commands/ls.c (grub_ls_list_files): Write mtime in long format
12674 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
12675 (grub_ext2_mtime): new function
12676 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
12677 (grub_hfsplus_mtime): new function
12678 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
12679 (GRUB_UFS_ATTR_FILE): likewise
12680 (GRUB_UFS_ATTR_LNK): likewise
12681 (struct grub_ufs_sblock): new fields mtime
12682 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
12684 (grub_ufs_dir): mtime support
12685 (grub_ufs_mtime): new function
12686 * fs/affs.c (grub_affs_dir): use new dir syntax
12687 * fs/afs.c (grub_afs_dir): likewise
12688 * fs/cpio.c (grub_cpio_dir): likewise
12689 * fs/fat.c (grub_fat_find_dir): likewise
12690 * fs/hfs.c (grub_hfs_dir): likewise
12691 * fs/iso9660.c (grub_iso9660_dir): likewise
12692 * fs/jfs.c (grub_jfs_dir): likewise
12693 * fs/minix.c (grub_minix_dir): likewise
12694 * fs/ntfs.c (grub_ntfs_dir): likewise
12695 * fs/reiserfs.c (grub_reiserfs_dir): likewise
12696 * fs/sfs.c (grub_sfs_dir): likewise
12697 * fs/xfs.c (grub_xfs_dir): likewise
12698 * util/hostfs.c (grub_hostfs_dir): likewise
12699 * lib/datetime.c: moved to ...
12700 * normal/datetime.c: ... moved here
12701 (grub_unixtime2datetime): new function
12702 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
12703 * normal/completion.c (iterate_dir): use new dir syntax
12704 * normal/misc.c (grub_normal_print_device_info): tell the
12705 last modification time of a volume
12706 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
12707 * conf/common.rmk: added lib/datetime.c to ls.mod
12708 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
12709 (normal_mod_SOURCES): likewise
12710 (datetime_mod_SOURCES): Removed lib/datetime.c
12711 * conf/i386-efi.rmk: likewise
12712 * conf/i386-ieee1275.rmk: likewise
12713 * conf/i386-pc.rmk: likewise
12714 * conf/powerpc-ieee1275.rmk: likewise
12715 * conf/sparc64-ieee1275.rmk: likewise
12716 * conf/x86_64-efi.rmk: likewise
12718 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12720 Trim trailing spaces in FAT label and support mtools-like labels
12722 * fs/fat.c (grub_fat_iterate_dir): New function based
12723 on grub_fat_find_dir
12724 (grub_fat_find_dir): use grub_fat_iterate_dir
12725 (grub_fat_label): likewise
12727 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
12729 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
12731 remove extraneous kernel_elf_HEADERS
12733 2009-04-04 Bean <bean123ch@gnail.com>
12735 * include/grub/util/misc.h: Add dummy function fsync for mingw.
12737 * util/misc.c: Likewise.
12739 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
12741 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
12742 instead of grub_printf.
12744 2009-04-03 Robert Millan <rmh@aybabtu.com>
12746 * loader/i386/linux.c (grub_linux_setup_video): Fill
12747 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
12748 values from `mode info' structure instead of hardcoded
12751 2009-04-01 Pavel Roskin <proski@gnu.org>
12753 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
12755 * genmk.rb: Likewise.
12756 * configure.ac: Likewise.
12758 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
12760 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
12761 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
12763 2009-04-01 David S. Miller <davem@davemloft.net>
12765 * normal/sparc64/setjmp.S: Fix setjmp implementation.
12766 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
12767 (grub_setjmp): Mark with 'returns_twice' attribute.
12768 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
12769 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
12770 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
12772 2009-04-01 Robert Millan <rmh@aybabtu.com>
12774 Reapply fix from 2008-07-28 which was accidentally reverted; also
12775 perform the same fix to a similar check in same function.
12777 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
12778 with the same number are found, just use issue a warning with
12779 grub_dprintf(), as this error has been reported to be non-fatal.
12781 2009-03-31 Pavel Roskin <proski@gnu.org>
12783 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
12784 for cross-compilation.
12786 2009-03-30 Robert Millan <rmh@aybabtu.com>
12788 Fix i386-ieee1275 build.
12790 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
12791 Remove declaration.
12793 2009-03-30 Pavel Roskin <proski@gnu.org>
12795 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
12796 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
12797 zero-terminated, rely only on the strlen value. Fix comparison
12798 of strings differing in length.
12800 2009-03-30 Robert Millan <rmh@aybabtu.com>
12802 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
12803 checking for abi version. Improve error messages on BIOS to notify
12804 user about `linux16' command.
12806 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12810 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
12811 in case of collision
12812 * disk/scsi.c (grub_scsi_open): free scsi in case of error
12814 2009-03-29 Robert Millan <rmh@aybabtu.com>
12816 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
12817 set `vid_mode' accordingly.
12818 (grub_linux_boot): Process `vid_mode' and set video mode.
12820 2009-03-29 Robert Millan <rmh@aybabtu.com>
12822 * util/grub.d/10_linux.in (linux_entry): New function.
12823 Factorize generation of Linux boot entries.
12825 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
12827 Make the format of Environment Block plain text. The boot loader
12828 part is not tested well yet.
12830 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
12832 (envblk): Likewise.
12833 (usage): Remove "info" and "clear". Add "unset". Update the
12834 description of "set", as this does not delete variables any
12836 (create_envblk_file): Complete rewrite.
12837 (open_envblk_file): Likewise.
12838 (cmd_info): Removed.
12839 (cmd_list): Likewise.
12840 (cmd_set): Likewise.
12841 (cmd_clear): Likewise.
12842 (list_variables): New function.
12843 (write_envblk): Likewise.
12844 (set_variables): Likewise.
12845 (unset_variables): Likewise.
12846 (main): Complete rewrite.
12848 * commands/loadenv.c (buffer): Removed.
12849 (envblk): Likewise.
12850 (open_envblk_file): New function.
12851 (read_envblk_file): Complete rewrite.
12852 (grub_cmd_load_env): Likewise.
12853 (grub_cmd_list_env): Likewise.
12854 (struct blocklist): New struct.
12855 (free_blocklists): New function.
12856 (check_blocklists): Likewise.
12857 (write_blocklists): Likewise.
12858 (grub_cmd_save_env): Complete rewrite.
12860 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
12861 a plain text signature.
12862 (GRUB_ENVBLK_MAXLEN): Removed.
12863 (struct grub_envblk): Complete rewrite.
12864 (grub_envblk_find): Removed.
12865 (grub_envblk_insert): Likewise.
12866 (grub_envblk_open): New prototype.
12867 (grub_envblk_set): Likewise.
12868 (grub_envblk_delete): Put const to VALUE.
12869 (grub_envblk_iterate): Put const to NAME and VALUE.
12870 (grub_envblk_close): New prototype.
12871 (grub_envblk_buffer): New inline function.
12872 (grub_envblk_size): Likewise.
12874 * lib/envblk.c: Include grub/mm.h.
12875 (grub_env_find): Removed.
12876 (grub_envblk_open): New function.
12877 (grub_envblk_close): Likewise.
12878 (escaped_value_len): Likewise.
12879 (find_next_line): Likewise.
12880 (grub_envblk_insert): Removed.
12881 (grub_envblk_set): New function.
12882 (grub_envblk_delete): Complete rewrite.
12883 (grub_envblk_iterate): Likewise.
12885 2009-03-28 Robert Millan <rmh@aybabtu.com>
12887 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
12888 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
12889 variables. Use 16-bit loader.
12890 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
12892 * kern/i386/loader.S (grub_linux_boot): Rename to ...
12893 (grub_linux16_boot): ... this. Update all users.
12894 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
12895 (grub_linux_boot): ... this. Update all users.
12897 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
12898 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
12899 commands to `linux16' and `initrd16'.
12900 (GRUB_MOD_FINI(linux)): Rename to ...
12901 (GRUB_MOD_FINI(linux16)): ... this.
12903 2009-03-24 Pavel Roskin <proski@gnu.org>
12905 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
12906 not just for compilation.
12908 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
12910 Move multiboot helper out of kernel
12912 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
12913 `loader/i386/multiboot_helper.S'.
12914 * conf/i386-coreboot.rmk: Likewise
12915 * conf/i386-ieee1275.rmk: Likewise
12917 * kern/i386/loader.S: Move multiboot helpers from here...
12918 * loader/i386/multiboot_helper.S: ...moved here
12919 * include/grub/i386/loader.h: Move declarations of multiboot
12920 helpers from here...
12921 * include/grub/i386/multiboot.h: ...moved here
12922 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
12924 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12926 * kern/env.c (grub_env_context_open): Added an argument to specify
12927 whether a new context inherits exported variables from current
12928 one. This is useful when making a sandbox to interpret a config
12930 All callers updated.
12932 * include/grub/env.h (grub_env_context_open): Updated the prototype.
12934 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12936 * kern/env.c (grub_env_context_close): Fix memory leaks.
12938 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12940 * normal/main.c (grub_normal_execute): Added an argument
12941 BATCH to specify if an interactive interface should be provided
12942 after reading a config file.
12943 All callers updated.
12944 (read_command_list): Prevent being executed twice.
12945 (read_fs_list): Likewise.
12947 * include/grub/normal.h (grub_normal_execute): Updated the
12950 2009-03-22 Pavel Roskin <proski@gno.org>
12952 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
12954 * kern/i386/pc/startup.S: Likewise.
12955 * kern/i386/efi/startup.S: Likewise.
12956 * kern/i386/ieee1275/startup.S: Likewise.
12957 * kern/i386/coreboot/startup.S: Likewise.
12958 * kern/x86_64/efi/startup.S: Likewise.
12960 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
12961 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
12962 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
12964 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
12966 Bugfixes in multiboot for bugs uncovered by solaris kernel.
12968 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
12970 Use vaddr of correct segment for entry_point.
12972 2009-03-21 Bean <bean123ch@gmail.com>
12974 * commands/blocklist.c: Add include file <grub/command.h>, remove
12975 <grub/normal.h> and <grub/arg.h>.
12976 (grub_cmd_blocklist): Use the new command interface.
12977 (GRUB_MOD_INIT): Likewise.
12978 (GRUB_MOD_FINI): Likewise.
12979 * commands/boot.c: Likewise.
12980 * commands/cat.c: Likewise.
12981 * commands/cmp.c: Likewise.
12982 * commands/configfile.c: Likewise.
12983 * commands/crc.c: Likewise.
12984 * commands/echo.c: Likewise.
12985 * commands/halt.c: Likewise.
12986 * commands/handler.c: Likewise.
12987 * commands/hdparm.c: Likewise.
12988 * commands/help.c: Likewise.
12989 * commands/hexdump.c: Likewise.
12990 * commands/loadenv.c: Likewise.
12991 * commands/ls.c: Likewise.
12992 * commands/lsmmap.c: Likewise.
12993 * commands/lspci.c: Likewise.
12994 * commands/loadenv.c: Likewise.
12995 * commands/read.c: Likewise.
12996 * commands/reboot.c: Likewise.
12997 * commands/search.c: Likewise.
12998 * commands/sleep.c: Likewise.
12999 * commands/test.c: Likewise.
13000 * commands/usbtest.c: Likewise.
13001 * commands/videotest.c: Likewise.
13002 * commands/i386/cpuid.c: Likewise.
13003 * commands/i386/pc/halt.c: Likewise.
13004 * commands/i386/pc/play.c: Likewise.
13005 * commands/i386/pc/pxecmd.c: Likewise.
13006 * commands/i386/pc/vbeinfo.c: Likewise.
13007 * commands/i386/pc/vbetest.c: Likewise.
13008 * commands/ieee1275/suspend.c: Likewise.
13009 * disk/loopback.c: Likewise.
13010 * font/font_cmd.c: Likewise.
13011 * hello/hello.c: Likewise.
13012 * loader/efi/appleloader.c: Likewise.
13013 * loader/efi/chainloader.c: Likewise.
13014 * loader/i386/bsd.c: Likewise.
13015 * loader/i386/efi/linux.c: Likewise.
13016 * loader/i386/ieee1275/linux.c: Likewise.
13017 * loader/i386/linux.c: Likewise.
13018 * loader/i386/pc/chainloader.c: Likewise.
13019 * loader/i386/pc/linux.c: Likewise.
13020 * loader/powerpc/ieee1275/linux.c: Likewise.
13021 * loader/multiboot_loader.c: Likewise.
13022 * term/gfxterm.c: Likewise.
13023 * term/i386/pc/serial.c: Likewise.
13024 * term/terminfo.c: Likewise.
13026 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
13027 * term/i386/pc/vga.c: Likewise.
13028 * video/readers/jpeg.c: Likewise.
13029 * video/readers/png.c: Likewise.
13030 * video/readers/tga.c: Likewise.
13032 * util/grub-fstest (cmd_loopback): Removed.
13033 (cmd_blocklist): Likewise.
13034 (cmd_ls): Likewise.
13035 (grub_register_command): Likewise.
13036 (grub_unregister_command): Likewise.
13037 (execute_command): Use grub_command_find to locate command and execute
13040 * include/grub/efi/chainloader.h: Removed.
13041 * loader/efi/chainloader_normal.c: Likewise.
13042 * loader/i386/bsd_normal.c: Likewise.
13043 * loader/i386/pc/chainloader_normal.c: Likewise.
13044 * loader/i386/pc/multiboot_normal.c: Likewise.
13045 * loader/linux_normal.c: Likewise.
13046 * loader/multiboot_loader_normal.c: Likewise.
13047 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
13049 * gencmdlist.sh: Scan new registration command grub_register_extcmd
13050 and grub_register_command_p1.
13052 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
13053 kern/command.c, lib/arg.c and commands/extcmd.c.
13054 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
13055 (minicmd_mod_SOURCES): New variable.
13056 (minicmd_mod_CFLAGS): Likewise.
13057 (minicmd_mod_LDFLAGS): Likewise.
13058 (extcmd_mod_SOURCES): Likewise.
13059 (extcmd_mod_CFLAGS): Likewise.
13060 (extcmd_mod_LDFLAGS): Likewise.
13061 (boot_mod_SOURCES): Removed.
13062 (boot_mod_CFLAGS): Likewise.
13063 (boot_mod_LDFLAGS): Likewise.
13065 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
13067 (kernel_img_HEADERS): Add command.h.
13068 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
13069 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
13071 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
13072 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
13073 remove the corresponding normal mode command.
13074 (normal_mod_SOURCES): Remove normal/arg.c.
13075 * conf/i386-coreboot.rmk: Likewise.
13076 * conf/i386-efi.rmk: Likewise.
13077 * conf/i386-ieee1275.rmk: Likewise.
13078 * conf/powerpc-ieee1275.rmk: Likewise.
13079 * conf/x86_64-efi.rmk: Likewise.
13081 * include/grub/arg.h: Move from here ...
13082 * include/grub/lib/arg.h: ... to here.
13084 * normal/arg.c: Move from here ...
13085 * lib/arg.c: ... to here.
13087 * commands/extcmd.c: New file.
13088 * commands/minicmd.c: Likewise.
13089 * include/grub/command.h: Likewise.
13090 * include/grub/extcmd.h: Likewise.
13091 * kern/command.c: Likewise.
13092 * kern/corecmd.c: Likewise.
13094 * kern/list.c (grub_list_iterate): Return int instead of void.
13095 (grub_list_insert): New function.
13096 (grub_prio_list_insert): Likewise.
13098 * kern/rescue.c (grub_rescue_command): Removed.
13099 (grub_rescue_command_list): Likewise.
13100 (grub_rescue_register_command): Likewise.
13101 (grub_rescue_unregister_command): Likewise.
13102 (grub_rescue_cmd_boot): Move to minicmd.c
13103 (grub_rescue_cmd_help): Likewise.
13104 (grub_rescue_cmd_info): Likewise.
13105 (grub_rescue_cmd_boot): Likewise.
13106 (grub_rescue_cmd_testload): Likewise.
13107 (grub_rescue_cmd_dump): Likewise.
13108 (grub_rescue_cmd_rmmod): Likewise.
13109 (grub_rescue_cmd_lsmod): Likewise.
13110 (grub_rescue_cmd_exit): Likewise.
13111 (grub_rescue_print_devices): Moved to corecmd.c.
13112 (grub_rescue_print_files): Likewise.
13113 (grub_rescue_cmd_ls): Likewise.
13114 (grub_rescue_cmd_insmod): Likewise.
13115 (grub_rescue_cmd_set): Likewise.
13116 (grub_rescue_cmd_unset): Likewise.
13117 (attempt_normal_mode): Use grub_command_find to get normal module.
13118 (grub_enter_rescue_mode): Use grub_register_core_commands to register
13119 commands, remove grub_rescue_register_command calls.
13121 * normal/command.c (grub_register_command): Removed.
13122 (grub_unregister_command): Likewise.
13123 (grub_command_find): Likewise.
13124 (grub_iterate_commands): Likewise.
13125 (rescue_command): Likewise.
13126 (export_command): Moved to corecmd.c.
13127 (set_command): Removed.
13128 (unset_command): Likewise.
13129 (insmod_command): Likewise.
13130 (rmmod_command): Likewise.
13131 (lsmod_command): Likewise.
13132 (grub_command_init): Likewise.
13134 * normal/completion.c (iterate_command): Use cmd->prio to check for
13136 (complete_arguments): Use grub_extcmd_t structure to find options.
13137 (grub_normal_do_completion): Change function grub_iterate_commands to
13138 grub_command_iterate.
13140 * normal/execute.c (grub_script_execute_cmd): No need to parse
13143 * normal/main.c (grub_dyncmd_dispatcher): New function.
13144 (read_command_list): Register unload commands as dyncmd.
13145 (grub_cmd_normal): Use new command interface, register rescue,
13146 unregister normal at entry, register normal, unregister rescue at exit.
13148 * include/grub/list.h (grub_list_test_t): New type.
13149 (grub_list_iterate): Return int instead of void.
13150 (grub_list_insert): New function.
13151 (GRUB_AS_NAMED_LIST_P): New macro.
13152 (GRUB_AS_PRIO_LIST): Likewise.
13153 (GRUB_AS_PRIO_LIST_P): Likewise.
13154 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
13155 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
13156 (grub_prio_list): New structure.
13157 (grub_prio_list_insert): New function.
13158 (grub_prio_list_remove): New inline function.
13160 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
13161 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
13162 (GRUB_COMMAND_FLAG_MENU): Likewise.
13163 (GRUB_COMMAND_FLAG_BOTH): Likewise.
13164 (GRUB_COMMAND_FLAG_TITLE): Likewise.
13165 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
13166 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
13167 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
13168 (grub_command): Likewise.
13169 (grub_register_command): Likewise.
13170 (grub_command_find): Likewise.
13171 (grub_iterate_commands): Likewise.
13172 (grub_command_init): Likewise.
13173 (grub_arg_parse): Likewise.
13174 (grub_arg_show_help): Likewise.
13176 * include/grub/rescue.h (grub_rescue_register_command): Removed.
13177 (grub_rescue_unregister_command): Likewise.
13179 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
13180 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
13181 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
13183 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
13184 grub_rescue_cmd_initrd.
13185 * include/grub/i386/loader.h: Likewise.
13186 * include/grub/x86_64/loader.h: Likewise.
13188 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
13190 2009-03-21 Bean <bean123ch@gmail.com>
13192 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
13193 instead of stat in mingw environment.
13195 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
13197 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
13199 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
13202 2009-03-21 Bean <bean123ch@gmail.com>
13204 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
13205 out of range error.
13207 2009-03-18 Michel Dänzer <michel@daenzer.net>
13209 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
13210 checking inode flags for EXT4_EXTENTS_FLAG.
13212 2009-03-18 Robert Millan <rmh@aybabtu.com>
13214 * loader/i386/linux.c: Include `<grub/video.h>' and
13215 `<grub/i386/pc/vbe.h>'..
13216 (grub_linux_setup_video): New function. Loosely based on the EFI one.
13217 (grub_linux32_boot): Attempt to configure video settings with
13218 grub_linux_setup_video().
13219 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
13220 to avoid grub_console_fini() which would step out of graphical mode
13223 2009-03-14 Robert Millan <rmh@aybabtu.com>
13225 Fix build on powerpc.
13226 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
13228 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
13230 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
13231 background image command.
13233 2009-03-12 Colin D Bennett <colin@gibibit.com>
13235 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
13236 (grub_gfxterm_putchar): Extract pairs of identical calls to
13237 draw_cursor out of conditional blocks.
13239 2009-03-11 Pavel Roskin <proski@gnu.org>
13241 * fs/hfs.c (grub_hfs_strncasecmp): New function.
13242 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
13244 2009-03-11 Robert Millan <rmh@aybabtu.com>
13246 * loader/i386/multiboot_elfxx.c
13247 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
13249 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
13251 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
13254 2009-03-11 Robert Millan <rmh@aybabtu.com>
13256 * loader/i386/multiboot.c (code_size): New variable.
13257 (grub_multiboot): Define offsets by adding to `code_size' rather
13258 than subtracting from `grub_multiboot_payload_size'. Provide
13259 4-byte alignment to MBI and others by increasing
13260 `boot_loader_name_length' appropriately.
13262 * loader/i386/multiboot_elfxx.c
13263 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
13265 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
13267 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
13270 2009-03-08 Robert Millan <rmh@aybabtu.com>
13272 Make loader/i386/linux.c usable on i386-pc again.
13274 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
13276 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
13279 2009-03-07 Bean <bean123ch@gmail.com>
13281 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
13284 2009-03-06 Robert Millan <rmh@aybabtu.com>
13286 Fix display issue on terminals with screen size other than 80x25
13287 (e.g. gfxterm with resolution higher than 640x480).
13289 * normal/main.c (grub_normal_init_page): Display title text in a
13290 position relative to the center of the terminal instead of relying
13291 on a hardcoded offset.
13293 2009-03-04 Robert Millan <rmh@aybabtu.com>
13295 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
13298 * Makefile.in (host_kernel): New variable.
13299 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
13300 scripts instead of just the windows one.
13301 * configure.ac: Initialize and AC_SUBST `host_kernel'.
13303 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13305 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
13307 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13308 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13309 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13310 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13311 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13312 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13314 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13316 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
13317 or if there's no space for the disk label and print the partition number on a
13320 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13322 * util/misc.c: Include <time.h>.
13323 (grub_millisleep): New function.
13325 2009-03-04 Bean <bean123ch@gmail.com>
13327 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
13328 another option -mno-red-zone.
13330 * commands/handler.c: Change module description.
13332 * kern/handler.c: Add missing space at the end of description line.
13334 * kern/list.c: Likewise.
13336 2009-03-03 Robert Millan <rmh@aybabtu.com>
13338 Move more components to the relocation area, and fix mbi pointer
13339 handling to use the destination rather than the origin (thanks to
13340 Vladimir Serbinenko for spotting).
13342 * loader/i386/multiboot.c (mbi_dest): New variable.
13343 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
13344 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
13347 2009-03-01 Bean <bean123ch@gmail.com>
13349 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
13350 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
13351 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
13352 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
13354 * loader/i386/efi/linux.c (acpi_guid): New variable.
13355 (acpi_guid): Likewise.
13356 (EBDA_SEG_ADDR): New constant.
13357 (LOW_MEM_ADDR): Likewise.
13358 (FAKE_EBDA_SEG): Likewise.
13359 (fake_bios_data): New function.
13360 (grub_linux_boot): Call fake_bios_data.
13362 2009-03-01 Bean <bean123ch@gmail.com>
13364 * commands/terminal.c: Removed.
13366 * commands/handler.c: New file.
13368 * include/grub/list.h: Likewise.
13370 * include/grub/handler.h: Likewise.
13372 * kern/list.c: Likewise.
13374 * kern/handler.c: Likewise.
13376 * kern/term.h: Include header file <grub/handler.h>.
13377 (grub_term_input): Move next field to the beginning.
13378 (grub_term_output): Likewise.
13379 (grub_term_input_class): New variable.
13380 (grub_term_output_class): Likewise.
13381 (grub_term_register_input): Changed to inline function.
13382 (grub_term_register_output): Likewise.
13383 (grub_term_unregister_input): Likewise.
13384 (grub_term_unregister_output): Likewise.
13385 (grub_term_set_current_input): Likewise.
13386 (grub_term_set_current_output): Likewise.
13387 (grub_term_get_current_input): Likewise.
13388 (grub_term_get_current_output): Likewise.
13389 (grub_term_iterate_input): Removed.
13390 (grub_term_iterate_output): Likewise.
13392 * kern/term.c (grub_term_list_input): Removed.
13393 (grub_term_list_output): Likewise.
13394 (grub_term_input_class): New variable.
13395 (grub_term_output_class): Likewise.
13396 (grub_cur_term_input): Change variable as macro.
13397 (grub_cur_term_output): Likewise.
13398 (grub_term_register_input): Removed.
13399 (grub_term_register_output): Likewise.
13400 (grub_term_unregister_input): Likewise.
13401 (grub_term_unregister_output): Likewise.
13402 (grub_term_set_current_input): Likewise.
13403 (grub_term_set_current_output): Likewise.
13404 (grub_term_iterate_input): Likewise.
13405 (grub_term_iterate_output): Likewise.
13406 (grub_term_get_current_input): Likewise.
13407 (grub_term_get_current_output): Likewise.
13409 * util/grub-editenv.c: Include header file <grub/handler.h>.
13410 (grub_term_get_current_input): Removed.
13411 (grub_term_get_current_output): Likewise.
13412 (grub_term_input_class): New variable.
13413 (grub_term_output_class): Likewise.
13415 * util/grub-fstest.c (grub_term_get_current_input): Removed.
13416 (grub_term_get_current_output): Likewise.
13417 (grub_term_input_class): New variable.
13418 (grub_term_output_class): Likewise.
13420 * util/grub-probe.c (grub_term_get_current_input): Removed.
13421 (grub_term_get_current_output): Likewise.
13422 (grub_term_input_class): New variable.
13423 (grub_term_output_class): Likewise.
13425 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
13426 (grub_term_get_current_output): Likewise.
13427 (grub_term_input_class): New variable.
13428 (grub_term_output_class): Likewise.
13430 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
13431 (terminal_mod_SOURCES): Likewise.
13432 (terminal_mod_CFLAGS): Likewise.
13433 (terminal_mod_LDFLAGS): Likewise.
13435 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
13437 (kernel_img_SOURCES): Add list.c and handler.c.
13438 (kernel_img_HEADERS): Add list.h and handler.h.
13440 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13442 (kernel_mod_SOURCES): Add list.c and handler.c.
13443 (kernel_mod_HEADERS): Add list.h and handler.h.
13445 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
13447 (kernel_elf_SOURCES): Add list.c and handler.c.
13448 (kernel_elf_HEADERS): Add list.h and handler.h.
13450 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13452 (kernel_elf_SOURCES): Add list.c and handler.c.
13453 (kernel_elf_HEADERS): Add list.h and handler.h.
13455 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13457 (kernel_mod_SOURCES): Add list.c and handler.c.
13458 (kernel_mod_HEADERS): Add list.h and handler.h.
13460 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13462 (kernel_elf_SOURCES): Add list.c and handler.c.
13463 (kernel_elf_HEADERS): Add list.h and handler.h.
13465 2009-02-27 Robert Millan <rmh@aybabtu.com>
13467 Factorize elf32 / elf64 code in Multiboot loader. This will
13468 prevent it from getting out of sync again.
13470 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
13471 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
13472 grub_multiboot_load_elf64): Move from here ...
13473 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
13474 grub_multiboot_load_elf): ... to here (new file).
13476 2009-02-27 Robert Millan <rmh@aybabtu.com>
13478 * util/grub.d/10_linux.in: Rename "single-user mode" to
13481 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
13483 Don't leak in SCSI code.
13484 * disk/scsi.c (grub_scsi_close): free `scsi'.
13486 2009-02-27 Robert Millan <rmh@aybabtu.com>
13488 * loader/i386/pc/multiboot.c: Move from here ...
13489 * loader/i386/multiboot.c: ... to here. Update all users.
13491 2009-02-27 Robert Millan <rmh@aybabtu.com>
13493 Patch from Alexandre Bique <bique.alexandre@gmail.com>
13494 * util/i386/pc/grub-setup.c (setup): Fix directory path.
13496 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
13498 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
13501 2009-02-27 Robert Millan <rmh@aybabtu.com>
13503 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
13504 `0x' qualifier as 0 when base is specified as parameter).
13506 2009-02-24 Bean <bean123ch@gmail.com>
13508 * configure.ac: Check for -mcmodel=large in x86_64 target.
13510 * include/grub/efi/api.h (efi_call_10): New macro.
13511 (efi_wrap_10): New function.
13513 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
13514 (GRUB_PE32_REL_BASED_HIGH): Likewise.
13515 (GRUB_PE32_REL_BASED_LOW): Likewise.
13516 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
13517 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
13518 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
13519 (GRUB_PE32_REL_BASED_SECTION): Likewise.
13520 (GRUB_PE32_REL_BASED_REL): Likewise.
13521 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
13522 (GRUB_PE32_REL_BASED_DIR64): Likewise.
13523 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
13525 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
13528 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
13529 (efi_wrap_10): New function.
13531 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
13533 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
13534 MB/MBP model (NV chipset).
13535 (devdata_devs): Add devpath_5 to the list.
13537 * load/i386/efi/linux.c (video_base): Remove variable.
13538 (RGB_MASK): New macro.
13539 (RGB_MAGIC): Likewise.
13540 (LINE_MIN): Likewise.
13541 (LINE_MAX): Likewise.
13542 (FBTEST_STEP): Likewise.
13543 (FBTEST_COUNT): Likewise.
13544 (fb_list): New variable.
13545 (grub_find_video_card): Remove function.
13546 (find_framebuf): New function.
13547 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
13550 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
13551 problem for x86_64.
13553 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
13555 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
13557 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
13560 2009-02-22 Robert Millan <rmh@aybabtu.com>
13562 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
13563 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
13564 in our relocation, instead of using it directly from heap. Also
13565 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
13567 2009-02-21 Robert Millan <rmh@aybabtu.com>
13569 Implement USB keyboard support (based on patch by Marco Gerards)
13571 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
13572 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
13573 (usb_keyboard_mod_LDFLAGS): New variables.
13575 * term/usb_keyboard.c: New file.
13577 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13579 Corrected wrong declaration
13581 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
13583 2009-02-14 Christian Franke <franke@computer.org>
13585 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
13586 (grub_lspci_iter): Print class code and programming interface byte.
13588 2009-02-14 Christian Franke <franke@computer.org>
13590 * gendistlist.sh: Ignore `.svn' directories.
13592 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
13594 * fs/fat.c: Add 2009 to Copyright line.
13596 2009-02-14 Christian Franke <franke@computer.org>
13598 * commands/hdparm.c: New file. Provides `hdparm' command
13599 which sends ATA commands via grub_disk_ata_pass_through ().
13601 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
13603 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
13604 and <grub/cpu/io.h> to include/grub/ata.h.
13605 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
13606 (GRUB_CDROM_SECTOR_SIZE): Remove.
13607 (GRUB_ATA_*): Move to include/grub/ata.h.
13608 (GRUB_ATAPI_*): Likewise.
13609 (enum grub_ata_commands): Likewise.
13610 (enum grub_ata_timeout_milliseconds): Likewise.
13611 (struct grub_ata_device): Likewise.
13612 (grub_ata_regset): Likewise.
13613 (grub_ata_regget): Likewise.
13614 (grub_ata_regset2): Likewise.
13615 (grub_ata_regget2): Likewise.
13616 (grub_ata_check_ready): Likewise.
13617 (grub_ata_wait_not_busy): Remove static, exported in
13618 include/grub/ata.h.
13619 (grub_ata_wait_drq): Likewise.
13620 (grub_ata_pio_read): Likewise.
13622 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
13623 function for hdparm.mod.
13625 * include/grub/ata.h: New file, contains declarations from
13627 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
13629 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
13630 (grub_disk_ata_pass_through): New exported variable.
13632 * kern/disk.c (grub_disk_ata_pass_through): New variable.
13634 2009-02-13 Colin D Bennett <colin@gibibit.com>
13636 Support multiple fallback entries, and provide an API to support
13637 executing default+fallback menu entries. Renamed the `terminal' menu
13640 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
13641 variable declaration.
13642 (grub_menu_execute_callback): New structure declaration.
13643 (grub_menu_execute_callback_t): New typedef.
13644 (grub_menu_execute_with_fallback): New function declaration.
13645 (grub_menu_get_entry): Likewise.
13646 (grub_menu_get_timeout): Likewise.
13647 (grub_menu_set_timeout): Likewise.
13649 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
13651 * normal/menu.c (grub_wait_after_message): Moved to
13652 `normal/menu_text.c'.
13653 (draw_border): Likewise.
13654 (print_message): Likewise.
13655 (print_entry): Likewise.
13656 (print_entries): Likewise.
13657 (grub_menu_init_page): Likewise.
13658 (get_entry_number): Likewise.
13659 (print_timeout): Likewise.
13660 (run_menu): Likewise.
13661 (grub_menu_execute_entry): Likewise.
13662 (show_text_menu): Likewise.
13663 (get_and_remove_first_entry_number): New function.
13664 (grub_menu_execute_with_fallback): Likewise.
13665 (get_entry): Renamed to ...
13666 (grub_menu_get_entry): .. this and made it global.
13667 (get_timeout): Renamed to ...
13668 (grub_menu_get_timeout): ... this and made it global.
13669 (set_timeout): Renamed to ...
13670 (grub_menu_set_timeout): ... this and made it global.
13671 (grub_normal_terminal_menu_viewer): Renamed to ...
13672 (grub_normal_text_menu_viewer): ... this.
13674 * normal/menu_text.c: New file. Extracted text-menu-specific code
13675 from normal/menu.c.
13677 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
13678 (normal_mod_SOURCES): Likewise.
13680 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13681 (normal_mod_SOURCES): Likewise.
13683 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13684 (normal_mod_SOURCES): Likewise.
13686 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
13687 (normal_mod_SOURCES): Likewise.
13689 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13690 (normal_mod_SOURCES): Likewise.
13692 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13693 (normal_mod_SOURCES): Likewise.
13695 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13696 (normal_mod_SOURCES): Likewise.
13698 2009-02-11 Robert Millan <rmh@aybabtu.com>
13700 * util/grub.d/00_header.in: Update old reference to `font' command.
13702 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
13704 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
13706 Based on patch from Javier Martín.
13708 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
13710 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
13711 to avoid false positives with FAT.
13712 (grub_fstest_SOURCES): Likewise.
13713 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13714 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13715 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13716 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13717 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13718 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13720 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
13722 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
13723 bpb.version_specific.fat12_or_fat16.fstype and
13724 bpb.version_specific.fat32.fstype.
13726 2009-02-08 Robert Millan <rmh@aybabtu.com>
13728 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
13730 2009-02-08 Robert Millan <rmh@aybabtu.com>
13732 * Makefile.in (host_os, host_cpu): New variables.
13733 (target_os): Remove. Update all users.
13735 2009-02-08 Marco Gerards <marco@gnu.org>
13737 * Makefile.in (enable_grub_emu_usb): New variable.
13738 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
13739 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
13740 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
13741 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
13742 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
13743 `usbtest.mod' and `usbms.mod'.
13744 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
13745 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
13746 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
13747 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
13748 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
13751 * disk/usbms.c: New file.
13753 * include/grub/usb.h: Likewise.
13755 * include/grub/usbtrans.h: Likewise.
13757 * include/grub/usbdesc.h: Likewise.
13759 * bus/usb/usbtrans.c: Likewise.
13761 * bus/usb/ohci.c: Likewise.
13763 * bus/usb/uhci.c: Likewise.
13765 * bus/usb/usbhub.c: Likewise.
13767 * bus/usb/usb.c: Likewise.
13769 * commands/usbtest.c: Likewise.
13771 * util/usb.c: Likewise.
13773 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
13775 * configure.ac: Test for libusb presence.
13777 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
13779 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
13781 * kern/mm.c: Add more comments.
13783 2009-02-08 Robert Millan <rmh@aybabtu.com>
13785 Patch from Javier Martín.
13786 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
13787 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
13789 2009-02-08 Robert Millan <rmh@aybabtu.com>
13791 * fs/cpio.c: Split tar functionality to ...
13792 * fs/tar.c: ... here (new file). Update all users.
13794 2009-02-07 Robert Millan <rmh@aybabtu.com>
13796 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
13797 backward-incompatible features.
13799 Based on patch from Javier Martín, with some adjustments.
13801 2009-02-07 Michael Scherer <misc@mandriva.org>
13803 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
13805 2009-02-07 Robert Millan <rmh@aybabtu.com>
13807 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
13808 position of `disk/lvm.c' to ensure grub_init_all() always picks it
13809 after the RAID stuff.
13811 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
13813 Fixes problem when running vbetest command as reported by
13814 Vladimir Serbinenko <phcoder@gmail.com>.
13816 * (grub_vbe_set_video_mode): Fixed problem with text modes.
13818 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
13820 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
13821 /dev/md/NpN style mdraid devices.
13823 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13825 * util/unifont2pff.rb: Remove.
13827 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13829 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
13832 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13834 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
13835 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13836 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13837 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13838 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13839 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13840 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13842 2009-02-02 Christian Franke <franke@computer.org>
13844 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
13846 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
13848 * INSTALL: Note that we now require at least autoconf 2.59 and
13849 that LZO is optional.
13851 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
13853 Base on patch on bug #24154 created by Tomas Tintera
13854 <trosos@seznam.cz>.
13856 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
13858 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
13860 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
13861 <bero@arklinux.org>.
13863 * normal/parser.y (script_init): Add missing semicolon.
13865 2009-01-31 Colin D Bennett <colin@gibibit.com>
13867 * normal/main.c: Add include to grub/menu_viewer.h.
13868 (free_menu_entry_classes): Added.
13869 (grub_normal_menu_addentry): Added class property handling.
13870 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
13871 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
13873 * normal/menu_viewer.c: New file.
13875 * normal/menu.c (run_menu_entry): Renamed to ...
13876 (grub_menu_execute_entry): ... this and made it as global.
13877 (grub_menu_run): Renamed to ...
13878 (show_text_menu): ... this and made it local.
13879 (show_text_menu): Adapt to new function names.
13880 (grub_normal_terminal_menu_viewer): New global variable.
13882 * include/grub/menu.h: New file.
13884 * include/grub/menu_viewer.h: New file.
13886 * include/grub/normal.h: Added include to grub/menu.h.
13887 (grub_menu_entry): Moved to include/grub/menu.h.
13888 (grub_menu_entry_t): Likewise.
13889 (grub_menu): Likewise.
13890 (grub_menu_t): Likewise.
13891 (grub_normal_terminal_menu_viewer): Added.
13892 (grub_menu_execute_entry): Likewise.
13893 (grub_menu_run): Removed.
13895 * DISTLIST: Added include/grub/menu.h.
13896 Added include/grub/menu_viewer.h.
13897 Added normal/menu_viewer.c.
13899 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
13901 * normal/execute.c (grub_script_execute_menuentry): Changed to use
13902 arglist for menutitle arguments.
13904 * normal/main.c (grub_normal_menu_addentry): Likewise.
13906 * normal/parser.y (menuentry): Likewise.
13908 * normal/script.c (grub_script_create_cmdmenu): Likewise.
13910 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
13911 (grub_script_create_cmdmenu): Likewise.
13913 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
13915 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
13918 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
13920 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
13922 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
13924 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13926 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13928 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13930 2009-01-30 Christian Franke <franke@computer.org>
13932 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
13933 in option help text.
13935 2009-01-27 Pavel Roskin <proski@gnu.org>
13937 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
13939 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
13941 * commands/lsmmap.c: Add include to grub/machine/memory.h.
13943 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
13945 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
13946 unregister function.
13948 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
13950 * disk/scsi.c (grub_scsi_read): Fix sign problem.
13952 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
13954 * util/grub-mkfont.c (usage): Fix typo.
13956 * util/elf/grub-mkimage.c (load_modules): Fix warning.
13958 2009-01-26 Daniel Mierswa <impulze@impulze.org>
13960 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
13962 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
13964 * kern/misc.c (grub_strcasecmp): New function.
13965 (grub_strcasecmp): Use grub_size_t instead of int for length.
13967 * include/grub/misc.h: Update function prototypes.
13969 2009-01-26 Robert Millan <rmh@aybabtu.com>
13971 * configure.ac: Fix cross-compilation check.
13973 2009-01-22 Christian Franke <franke@computer.org>
13975 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
13976 (precision) digit string. Allow `.format2' without `format1' (width).
13977 Limit input chars for `%s' output to `format2' if specified. This is
13978 compatible with standard printf ().
13980 2009-01-22 Christian Franke <franke@computer.org>
13982 * disk/ata.c (grub_ata_wait_status): Replace by ...
13983 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
13984 other status bits may be invalid while BSY is asserted.
13985 (grub_ata_check_ready): New function.
13986 (grub_ata_cmd): Removed.
13987 (grub_ata_wait_drq): New function.
13988 (grub_ata_strncpy): Remove inline.
13989 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
13990 and error check now done by grub_ata_wait_drq ().
13991 (grub_ata_pio_write): Likewise.
13992 (grub_atapi_identify): Set DEV before check for !BSY. Use
13993 grub_ata_wait_drq () to wait for data.
13994 (grub_ata_device_initialize): Add status register check to
13995 detect missing SATA slave devices. Add debug messages.
13996 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
13997 (grub_atapi_packet): Set DEV before check for !BSY. Replace
13998 transfer loop by grub_ata_pio_write ().
13999 (grub_ata_identify): Set DEV before check for !BSY. Use
14000 grub_ata_wait_drq () to wait for data.
14001 (grub_ata_setaddress): Set DEV before check for !BSY.
14002 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
14003 read/write in one loop. Fix invalid command on write. Fix incomplete
14004 command on (size % batch) == 0. Add missing error check after write of
14005 last block. Add debug messages.
14006 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
14008 2009-01-19 Christian Franke <franke@computer.org>
14010 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
14011 (GRUB_ATAPI_IREASON_*): Likewise.
14012 (grub_ata_pio_write): Fix timeout error return.
14013 (grub_atapi_identify): Add grub_ata_wait () after cmd.
14014 (grub_atapi_wait_drq): New function.
14015 (grub_atapi_packet): New parameter `size'.
14016 Use grub_atapi_wait_drq () and direct write instead of
14017 grub_ata_pio_write ().
14018 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
14019 reads the number of bytes requested by the device for each DRQ
14021 (grub_atapi_write): Remove old implementation, return not
14022 implemented instead.
14024 2009-01-19 Christian Franke <franke@computer.org>
14026 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
14027 of 512 to calculate data size.
14028 (grub_scsi_read12): Likewise.
14029 (grub_scsi_write10): Likewise.
14030 (grub_scsi_write12): Likewise.
14031 (grub_scsi_read): Adjust size according to blocksize.
14032 Add checks for invalid blocksize and unaligned transfer.
14034 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
14036 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
14038 * term/gfxterm.c (write_char): Fix background rendering for wide
14041 2009-01-19 Robert Millan <rmh@aybabtu.com>
14043 * config.guess: Update to latest version from config git.
14044 * config.sub: Likewise.
14046 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
14048 * Makefile.in: Change font compilation to use new grub-mkfont instead
14051 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
14052 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
14053 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14054 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14055 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
14056 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
14057 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
14058 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
14059 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
14061 2009-01-16 Christian Franke <franke@computer.org>
14063 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
14064 (enum grub_ata_timeout_milliseconds): New enum.
14065 (grub_ata_wait_status): Add parameter milliseconds.
14066 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
14067 recovery from timed-out commands.
14068 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
14069 return grub_errno instead of REG_ERROR.
14070 (grub_ata_pio_write): Add parameter milliseconds.
14071 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
14072 Pass milliseconds to grub_ata_wait_status () and
14073 grub_ata_pio_read ().
14074 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
14075 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
14076 grub_ata_wait_status (). Fix IDENTIFY timeout check.
14077 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
14078 It is not suitable for device detection, because DEV bit is ignored,
14079 the command may run too long, and not all devices set the signature
14081 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
14082 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
14083 Fix device selection, DEV bit must be set first to address the registers
14084 of the correct device.
14085 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
14086 grub_ata_pio_read/write ().
14087 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
14088 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
14090 2009-01-13 Carles Pina i Estany <carles@pina.cat>
14092 * util/grub-editenv.c (main): Use fseeko(), not fseek().
14094 2009-01-13 Bean <bean123ch@gmail.com>
14096 * util/grub-mkfont.c (write_font): forget to remove some debug code.
14098 2009-01-13 Bean <bean123ch@gmail.com>
14100 * Makefile.in: (enable_grub_mkfont): New variable.
14101 (freetype_cflags): Likewise.
14102 (freetype_libs): Likewise.
14104 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
14105 (grub_mkfont_SOURCES): New variable.
14106 (grub_mkfont_CFLAGS): Likewise.
14107 (grub_mkfont_LDFLAGS): Likewise.
14109 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
14110 library if `--enable-grub-mkfont' is requested.
14111 (enable_grub_mkfont): New variable.
14112 (freetype_cflags): Likewise.
14113 (freetype_libs): Likewise.
14115 * util/grub-mkfont.c: New file.
14117 2009-01-12 Christian Franke <franke@computer.org>
14119 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
14120 mode check. Fix setting of compat_use[].
14122 2009-01-10 Robert Millan <rmh@aybabtu.com>
14124 Update a few copyright years which we forgot to do in 2008 (only for
14125 files whose changes made in 2008 were copyright-significant)
14127 * Makefile.in: Add 2008 to Copyright line.
14128 * disk/ieee1275/ofdisk.c: Likewise.
14129 * disk/efi/efidisk.c: Likewise.
14130 * kern/dl.c: Likewise.
14131 * kern/sparc64/ieee1275/init.c: Likewise.
14132 * kern/mm.c: Likewise.
14133 * kern/efi/mm.c: Likewise.
14134 * boot/i386/pc/boot.S: Likewise.
14135 * genfslist.sh: Likewise.
14136 * fs/iso9660.c: Likewise.
14137 * fs/hfs.c: Likewise.
14138 * fs/jfs.c: Likewise.
14139 * fs/minix.c: Likewise.
14140 * fs/ufs.c: Likewise.
14141 * gensymlist.sh.in: Likewise.
14142 * genkernsyms.sh.in: Likewise.
14143 * include/grub/misc.h: Likewise.
14144 * include/grub/types.h: Likewise.
14145 * include/grub/symbol.h: Likewise.
14146 * include/grub/elf.h: Likewise.
14147 * include/grub/kernel.h: Likewise.
14148 * include/grub/disk.h: Likewise.
14149 * include/grub/dl.h: Likewise.
14150 * include/grub/i386/linux.h: Likewise.
14151 * include/grub/i386/pc/biosdisk.h: Likewise.
14152 * include/grub/efi/api.h: Likewise.
14153 * include/grub/efi/pe32.h: Likewise.
14154 * include/grub/util/misc.h: Likewise.
14155 * normal/execute.c: Likewise.
14156 * normal/arg.c: Likewise.
14157 * normal/completion.c: Likewise.
14158 * normal/lexer.c: Likewise.
14159 * normal/parser.y: Likewise.
14160 * normal/misc.c: Likewise.
14161 * commands/i386/pc/vbeinfo.c: Likewise.
14162 * commands/hexdump.c: Likewise.
14163 * commands/terminal.c: Likewise.
14164 * commands/ls.c: Likewise.
14165 * commands/help.c: Likewise.
14166 * partmap/pc.c: Likewise.
14167 * loader/efi/chainloader.c: Likewise.
14168 * loader/multiboot_loader.c: Likewise.
14169 * loader/i386/pc/multiboot2.c: Likewise.
14170 * term/efi/console.c: Likewise.
14171 * term/i386/pc/serial.c: Likewise.
14172 * util/lvm.c: Likewise.
14173 * util/console.c: Likewise.
14174 * util/i386/efi/grub-mkimage.c: Likewise.
14175 * util/raid.c: Likewise.
14177 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
14179 * commands/videotest.c: Removed include to grub/machine/memory.h.
14181 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
14182 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
14183 (video_mod_SOURCES): Removed.
14184 (video_mod_CFLAGS): Likewise.
14185 (video_mod_LDFLAGS): Likewise.
14186 (gfxterm_mod_SOURCES): Likewise.
14187 (gfxterm_mod_CFLAGS): Likewise.
14188 (gfxterm_mod_LDFLAGS): Likewise.
14189 (videotest_mod_SOURCES): Likewise.
14190 (videotest_mod_CFLAGS): Likewise.
14191 (videotest_mod_LDFLAGS): Likewise.
14192 (bitmap_mod_SOURCES): Likewise.
14193 (bitmap_mod_CFLAGS): Likewise.
14194 (bitmap_mod_LDFLAGS): Likewise.
14195 (tga_mod_SOURCES): Likewise.
14196 (tga_mod_CFLAGS): Likewise.
14197 (tga_mod_LDFLAGS): Likewise.
14198 (jpeg_mod_SOURCES): Likewise.
14199 (jpeg_mod_CFLAGS): Likewise.
14200 (jpeg_mod_LDFLAGS): Likewise.
14201 (png_mod_SOURCES): Likewise.
14202 (png_mod_CFLAGS): Likewise.
14203 (png_mod_LDFLAGS): Likewise.
14205 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
14206 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
14207 (video_mod_SOURCES): Added.
14208 (video_mod_CFLAGS): Likewise.
14209 (video_mod_LDFLAGS): Likewise.
14210 (videotest_mod_SOURCES): Likewise.
14211 (videotest_mod_CFLAGS): Likewise.
14212 (videotest_mod_LDFLAGS): Likewise.
14213 (bitmap_mod_SOURCES): Likewise.
14214 (bitmap_mod_CFLAGS): Likewise.
14215 (bitmap_mod_LDFLAGS): Likewise.
14216 (tga_mod_SOURCES): Likewise.
14217 (tga_mod_CFLAGS): Likewise.
14218 (tga_mod_LDFLAGS): Likewise.
14219 (jpeg_mod_SOURCES): Likewise.
14220 (jpeg_mod_CFLAGS): Likewise.
14221 (jpeg_mod_LDFLAGS): Likewise.
14222 (png_mod_SOURCES): Likewise.
14223 (png_mod_CFLAGS): Likewise.
14224 (png_mod_LDFLAGS): Likewise.
14225 (gfxterm_mod_SOURCES): Likewise.
14226 (gfxterm_mod_CFLAGS): Likewise.
14227 (gfxterm_mod_LDFLAGS): Likewise.
14229 * term/gfxterm.c: Removed include to grub/machine/memory.h,
14230 grub/machine/console.h.
14232 2009-01-04 Jerone Young <jerone@gmail.com>
14234 Make on screen instructions clearer
14236 Based on patch created by Jidanni <jidanni@jidanni.org>
14238 * normal/menu.c: print clearer instructions on the screen
14240 2009-01-02 Colin D Bennett <colin@gibibit.com>
14244 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
14245 build system and fixed gfxterm.c to work with different sized fonts.
14247 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
14249 * configure: Re-generated.
14251 * DISTLIST: Removed font/manager.c.
14253 Added font/font_cmd.c.
14255 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
14258 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
14260 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
14262 * kern/term.c: Changed users of grub_utf8_to_ucs4.
14264 * normal/menu.c: Likewise.
14266 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
14267 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
14269 * include/grub/font.h: Replaced with new file.
14271 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
14272 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
14273 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
14274 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
14275 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
14276 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
14277 fg_red, fg_green, fg_blue, fg_alpha.
14278 (grub_video_adapter): Removed blit_glyph.
14279 (grub_video_blit_glyph): Removed.
14281 * font/manager.c: Removed file.
14283 * font/font.c: New file.
14285 * font/font_cmd.c: Likewise.
14287 * video/video.c (grub_video_blit_glyph): Removed.
14289 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
14290 (grub_video_vbe_map_rgba): Likewise.
14291 (grub_video_vbe_unmap_color_int): Likewise.
14292 (grub_video_vbe_blit_glyph): Removed.
14293 (grub_video_vbe_adapter): Removed blit_glyph.
14295 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
14296 (get_pixel): Likewise.
14297 (set_pixel): Likewise.
14299 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
14301 * term/gfxterm.c: Adapted to new font engine.
14303 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
14305 * term/i386/pc/vga.c: Likewise.
14307 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
14309 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
14311 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14313 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14315 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
14317 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
14319 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
14321 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
14323 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
14325 * util/grub.d/00_header.in: Changed to use new loadfont command.
14327 * util/grub-mkconfig_lib.in: Changed font extension.
14329 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
14331 * util/getroot.c (grub_util_get_grub_dev): Add support for
14332 /dev/md/dNNpNN style partitionable mdraid devices.
14334 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
14336 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
14337 at a time limit of the PXE TFTP API correctly.
14338 (grub_pxefs_close): Likewise.
14340 2008-11-29 Robert Millan <rmh@aybabtu.com>
14342 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
14343 grub_ata_device_initialize() calls.
14345 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
14347 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
14349 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
14351 2008-11-28 Robert Millan <rmh@aybabtu.com>
14353 Fix build on powerpc-ieee1275. Based on patch created by
14354 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
14355 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
14356 `kern/ieee1275/mmap.c'.
14357 * include/grub/powerpc/ieee1275/memory.h: New file.
14359 Provide grub-install on coreboot.
14360 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
14361 (grub_install_SOURCES): New variable.
14362 * util/i386/pc/grub-install.in: Add a few condition checks to make it
14363 usable on coreboot.
14365 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
14367 * util/grub-fstest.c (grub_term_get_current_input): Change return type
14368 to `grub_term_input_t'.
14369 (grub_term_get_current_output): Change return type to
14370 `grub_term_output_t'.
14372 2008-11-22 Robert Millan <rmh@aybabtu.com>
14374 Fix breakage on coreboot due to declaration mismatch.
14375 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
14376 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
14377 grub_vga_text_cls().
14379 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
14380 comments. Avoid copying one more byte than necessary (just in case).
14382 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
14383 to 0x200000 (avoids trouble with some OFW implementations, and matches
14384 with the one in Yaboot).
14385 Reported by Manoel Abranches
14387 2008-11-20 Robert Millan <rmh@aybabtu.com>
14389 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
14390 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
14392 * util/grub-mkconfig_lib.in (grub_warn): New function.
14393 (convert_system_path_to_grub_path): Use grub_warn() when issuing
14394 warnings, to obtain consistent formatting.
14395 * util/grub.d/00_header.in: Likewise.
14396 * util/update-grub_lib.in: Likewise.
14398 * loader/i386/linux.c (allocate_pages): Fix a warning.
14399 Move comment text to `#error' stanza.
14401 Harmonize ieee1275's grub_available_iterate() with the generic
14402 grub_machine_mmap_iterate() interface (fixes a recently-introduced
14403 build problem on i386-ieee1275):
14404 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
14405 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
14406 parameter `type'. Update all users of this function.
14407 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
14408 `kern/ieee1275/mmap.c'.
14409 * kern/ieee1275/init.c
14410 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
14412 (grub_machine_mmap_iterate): ... this.
14413 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
14414 return type to `grub_err_t'. Update all implementations of this
14415 function prototype.
14416 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
14419 Add `lsmmap' command (lists firmware-provided memory map):
14420 * commands/lsmmap.c: New file.
14421 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
14422 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
14424 * conf/powerpc-ieee1275.rmk: Likewise.
14425 * conf/i386-coreboot.rmk: Likewise.
14426 * conf/i386-ieee1275.rmk: Likewise.
14428 2008-11-19 Robert Millan <rmh@aybabtu.com>
14430 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
14431 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
14432 constraints to initrd allocation (based on code from
14433 loader/i386/pc/linux.c). Without them, initrd was allocated too high
14434 for Linux to find it.
14436 2008-11-14 Robert Millan <rmh@aybabtu.com>
14438 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
14439 order to cope with duplicate slashes.
14441 2008-11-14 Robert Millan <rmh@aybabtu.com>
14443 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
14444 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
14445 don't want to mess with lower memory, because it is used in the Linux
14448 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
14449 an appropriate place in lower memory, between 0x10000 and 0x90000,
14450 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
14451 is in our heap (probably as a result of it being corrupted during
14452 decompression). Add #error instance with comment to explain why this
14453 loader isn't currently usable on PC/BIOS.
14455 2008-11-14 Robert Millan <rmh@aybabtu.com>
14457 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
14458 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
14460 2008-11-12 Robert Millan <rmh@aybabtu.com>
14462 Make loader/i386/linux.c buildable on i386-pc (although disabled).
14464 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
14465 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
14467 * include/grub/i386/pc/memory.h: ... to here.
14469 2008-11-12 Robert Millan <rmh@aybabtu.com>
14471 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
14474 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
14475 (grub_console_cur_color, grub_console_real_putchar)
14476 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14477 (grub_console_setcolorstate, grub_console_setcolor)
14478 (grub_console_getcolor): Move from here ...
14479 * include/grub/i386/vga_common.h: ... to here (new file).
14481 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
14482 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
14483 `<grub/i386/io.h>'.
14484 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
14485 `<grub/i386/vga_common.h>'.
14487 2008-11-12 Robert Millan <rmh@aybabtu.com>
14489 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
14490 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
14491 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
14493 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14494 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
14496 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
14497 grub_console_init() with call to grub_vga_text_init().
14498 (grub_machine_fini): Replace call to
14499 grub_console_fini() with call to grub_vga_text_fini() and
14500 grub_at_keyboard_fini().
14502 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
14503 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14504 (grub_console_setcolorstate, grub_console_setcolor)
14505 (grub_console_getcolor): New function prototypes.
14507 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
14508 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
14509 (grub_vga_text_setcursor): Static-ize.
14510 (grub_vga_text_term): New structure.
14511 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
14513 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
14514 (grub_console_cur_color, grub_console_standard_color)
14515 (grub_console_normal_color, grub_console_highlight_color)
14516 (map_char, grub_console_putchar, grub_console_getcharwidth)
14517 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
14518 (grub_console_getcolor): Move from here ...
14519 * term/i386/vga_common.c: ... to here (same function names).
14521 2008-11-12 Robert Millan <rmh@aybabtu.com>
14523 Use newly-added Multiboot support in coreboot.
14525 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14526 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
14528 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
14529 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
14530 (codestart): Store the MBI in `startup_multiboot_info' when we're
14531 being loaded using Multiboot.
14533 * kern/i386/coreboot/init.c (grub_machine_init): Move
14534 grub_at_keyboard_init() call to beginning of function (useful for
14535 debugging). Call grub_machine_mmap_init() before attempting to use
14536 grub_machine_mmap_iterate().
14537 (grub_lower_mem, grub_upper_mem): Move from here ...
14538 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
14541 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
14542 function prototype.
14544 2008-11-12 Robert Millan <rmh@aybabtu.com>
14546 Fix a regression introduced by the at_keyboard.mod split. Because
14547 some terminals are default on some platforms and non-default on
14548 others, the first terminal being registered determines which is
14549 going to be default.
14551 * kern/term.c (grub_term_register_input): If this is the first
14552 terminal being registered, set it as the current one.
14553 (grub_term_register_output): Likewise.
14555 * term/efi/console.c (grub_console_init): Do not call
14556 grub_term_set_current_output() or grub_term_set_current_input().
14557 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
14558 * term/i386/pc/console.c (grub_console_init): Likewise.
14559 (grub_console_fini): Do not call grub_term_set_current_input()
14560 (but leave grub_term_set_current_output() to restore text mode).
14562 2008-11-10 Robert Millan <rmh@aybabtu.com>
14564 * util/grub.d/00_header.in: Add backward compatibility check for
14565 versions of terminal.mod that don't understand `terminal_input' or
14568 2008-11-09 Robert Millan <rmh@aybabtu.com>
14570 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
14571 `terminal_input' / `terminal_output', not `terminal'.
14573 2008-11-08 Robert Millan <rmh@aybabtu.com>
14575 * Makefile.in (include_DATA): Fix srcdir=. assumption.
14576 (DISTCLEANFILES): Add `build_env.mk'.
14578 2008-11-08 Robert Millan <rmh@aybabtu.com>
14580 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
14581 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14582 members. Update all users.
14583 * util/console.c (grub_ncurses_term): Split in ...
14584 (grub_ncurses_term_input): ... this, and ...
14585 (grub_ncurses_term_output): ... this. Update all users.
14586 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
14588 2008-11-08 Robert Millan <rmh@aybabtu.com>
14590 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
14591 (PKGDATA): Add $(pkgdata_SRCDIR).
14592 (pkglib_BUILDDIR): New variable.
14593 (pkgdata_SRCDIR): New variable.
14594 (build_env.mk): New target.
14595 (include_DATA): New variable.
14596 (install-local): Install $(include_DATA) files in $(includedir).
14598 2008-11-07 Pavel Roskin <proski@gnu.org>
14600 * gendistlist.sh: Use C locale for sorting to ensure consistent
14601 output on all systems.
14603 * util/grub.d/00_header.in: Remove incorrect space before
14606 2008-11-07 Robert Millan <rmh@aybabtu.com>
14608 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
14610 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
14611 * loader/multiboot_loader.c (find_multi_boot2_header): New function
14612 (based on find_multi_boot1_header).
14613 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
14614 using find_multi_boot2_header(), and abort if neither Multiboot or
14615 Multiboot headers were found.
14617 2008-11-07 Robert Millan <rmh@aybabtu.com>
14619 Modularize at_keyboard.mod:
14621 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
14622 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
14623 (at_keyboard_mod_LDFLAGS): New variables.
14625 Actual terminal split:
14627 * include/grub/term.h (struct grub_term): Split in ...
14628 (struct grub_term_input): ... this, and ...
14629 (struct grub_term_output): ... this. Update all users.
14630 (grub_term_set_current): Split in ...
14631 (grub_term_set_current_input): ... this, and ...
14632 (grub_term_set_current_output): ... this.
14633 (grub_term_get_current): Split in ...
14634 (grub_term_get_current_input): ... this, and ...
14635 (grub_term_get_current_output): ... this.
14636 (grub_term_register): Split in ...
14637 (grub_term_register_input): ... this, and ...
14638 (grub_term_register_output): ... this.
14639 (grub_term_unregister): Split in ...
14640 (grub_term_unregister_input): ... this, and ...
14641 (grub_term_unregister_output): ... this.
14642 (grub_term_iterate): Split in ...
14643 (grub_term_iterate_input): ... this, and ...
14644 (grub_term_iterate_output): ... this.
14646 * kern/term.c (grub_term_list): Split in ...
14647 (grub_term_list_input): ... this, and ...
14648 (grub_term_list_output): ... this. Update all users.
14649 (grub_cur_term): Split in ...
14650 (grub_cur_term_input): ... this, and ...
14651 (grub_cur_term_output): ... this. Update all users.
14652 (grub_term_set_current): Split in ...
14653 (grub_term_set_current_input): ... this, and ...
14654 (grub_term_set_current_output): ... this.
14655 (grub_term_get_current): Split in ...
14656 (grub_term_get_current_input): ... this, and ...
14657 (grub_term_get_current_output): ... this.
14658 (grub_term_register): Split in ...
14659 (grub_term_register_input): ... this, and ...
14660 (grub_term_register_output): ... this.
14661 (grub_term_unregister): Split in ...
14662 (grub_term_unregister_input): ... this, and ...
14663 (grub_term_unregister_output): ... this.
14664 (grub_term_iterate): Split in ...
14665 (grub_term_iterate_input): ... this, and ...
14666 (grub_term_iterate_output): ... this.
14668 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
14669 a check for input and one for output (and only attempt to get keys
14670 from user when input works).
14672 * util/grub-probe.c (grub_term_get_current): Split in ...
14673 (grub_term_get_current_input): ... this, and ...
14674 (grub_term_get_current_output): ... this.
14675 * util/grub-fstest.c: Likewise.
14676 * util/i386/pc/grub-setup.c: Likewise.
14677 * util/grub-editenv.c: Likewise.
14679 Portability adjustments:
14681 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
14682 `term/i386/pc/at_keyboard.c'.
14683 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
14684 grub_keyboard_controller_init() (now handled by terminal .init).
14685 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
14686 grub_at_keyboard_init().
14687 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
14688 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
14689 at_keyboard.mod via input terminal interface).
14690 * include/grub/i386/coreboot/console.h: Convert into a stub for
14691 `<grub/i386/pc/console.h>'.
14693 Migrate full terminals to new API:
14695 * term/efi/console.c (grub_console_term): Split into ...
14696 (grub_console_term_input): ... this, and ...
14697 (grub_console_term_output): ... this. Update all users.
14698 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
14699 (grub_ofconsole_init): Split into ...
14700 (grub_ofconsole_init_input): ... this, and ...
14701 (grub_ofconsole_init_output): ... this.
14702 (grub_ofconsole_term): Split into ...
14703 (grub_ofconsole_term_input): ... this, and ...
14704 (grub_ofconsole_term_output): ... this. Update all users.
14705 * term/i386/pc/serial.c (grub_serial_term): Split into ...
14706 (grub_serial_term_input): ... this, and ...
14707 (grub_serial_term_output): ... this. Update all users.
14708 * term/i386/pc/console.c (grub_console_term): Split into ...
14709 (grub_console_term_input): ... this, and ...
14710 (grub_console_term_output): ... this. Update all users.
14711 (grub_console_term_input): Only enable it on PC/BIOS platform.
14712 (grub_console_init): Remove grub_keyboard_controller_init() call.
14714 Migrate input terminals to new API:
14716 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
14717 `i386' and `i386/pc' to enable build on x86_64 (this driver is
14718 i386-specific anyway).
14719 (grub_console_checkkey): Rename to ...
14720 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
14722 (grub_keyboard_controller_orig): New variable.
14723 (grub_console_getkey): Rename to ...
14724 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
14726 (grub_keyboard_controller_init): Static-ize. Save original
14727 controller value so that it can be restored ...
14728 (grub_keyboard_controller_fini): ... here (new function).
14729 (grub_at_keyboard_term): New structure.
14730 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
14733 Migrate output terminals to new API:
14735 * term/i386/pc/vga.c (grub_vga_term): Change type to
14736 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14737 members. Update all users.
14738 * term/gfxterm.c (grub_video_term): Change type to
14739 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14740 members. Update all users.
14741 * include/grub/i386/pc/console.h (grub_console_checkkey)
14742 (grub_console_getkey): Do not export (no longer needed by gfxterm,
14745 Migrate `terminal' command and userland tools to new API:
14747 * commands/terminal.c (grub_cmd_terminal): Split into ...
14748 (grub_cmd_terminal_input): ... this, and ...
14749 (grub_cmd_terminal_output): ... this.
14750 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
14751 `terminal_input' and `terminal_output'.
14752 * util/grub.d/00_header.in: Adjust `terminal' calls to new
14753 `terminal_input' / `terminal_output' API.
14754 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
14755 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
14756 provided ${GRUB_TERMINAL}, convert it).
14758 2008-11-04 Robert Millan <rmh@aybabtu.com>
14760 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
14762 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
14764 2008-11-03 Bean <bean123ch@gmail.com>
14766 * kern/elf.c (grub_elf32_load): Revert to previous code.
14767 (grub_elf64_load): Likewise.
14769 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
14771 2008-11-01 Robert Millan <rmh@aybabtu.com>
14773 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
14774 (TARGET_CPPFLAGS): Likewise.
14775 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
14777 2008-11-01 Carles Pina i Estany <carles@pina.cat>
14779 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
14781 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
14783 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
14784 addition of objects until the code is not going to be able to fail.
14786 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
14788 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
14789 (add a missing NULL check, and correct them by moving the pointer
14790 operations after the actual check).
14792 2008-10-29 Robert Millan <rmh@aybabtu.com>
14794 * util/i386/pc/grub-install.in: Handle empty string as output from
14795 make_system_path_relative_to_its_root().
14797 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
14799 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
14800 circular metadata worst case scenario. If the metadata is circular
14801 then copy the wrap in place.
14802 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
14803 project lib/format_text/layout.h
14804 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
14806 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
14808 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
14810 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
14812 * util/update-grub_lib.in: Mention filename in warning message.
14814 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
14816 * NEWS: Update for rename of update-grub to grub-mkconfig.
14818 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
14820 * util/update-grub_lib.in: Copy to ...
14821 * util/grub-mkconfig_lib.in: ... this. Update all users.
14822 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
14823 * util/update-grub.in: Rename to ...
14824 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
14825 option. Add `--output' option to allow users to specify the generated
14826 configuration file. Default to stdout.
14827 (update_grub_dir): Rename to ...
14828 (grub_mkconfig_dir): ... this.
14829 (grub_cfg): Default to an empty string.
14830 * conf/common.rmk (update-grub): Rename to ...
14831 (grub-mkconfig): ... this.
14832 (update-grub_lib): Copy to ...
14833 (grub-mkconfig_lib): ... this.
14834 (update-grub_SCRIPTS): Copy to ...
14835 (grub-mkconfig_SCRIPTS): ... this. Update all users.
14836 (update-grub_DATA): Rename to ...
14837 (grub-mkconfig_DATA): ... this.
14839 2008-09-28 Robert Millan <rmh@aybabtu.com>
14841 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
14842 to `modified'. Add the real `created' field.
14843 (grub_iso9660_uuid): Use `modified' rather than `created' for
14844 constructing the UUID.
14846 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
14848 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
14849 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
14851 2008-09-28 Bean <bean123ch@gmail.com>
14853 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
14854 Thanks to Christian Franke for finding this bug.
14856 2008-09-25 Robert Millan <rmh@aybabtu.com>
14858 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
14859 instances of grub_util_get_disk_name() (see previous commit).
14861 2008-09-25 Robert Millan <rmh@aybabtu.com>
14863 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
14864 `util/i386/get_disk_name.c'.
14865 * conf/i386-efi.rmk: Likewise.
14866 * conf/x86_64-efi.rmk: Likewise.
14867 * conf/i386-coreboot.rmk: Likewise.
14868 * conf/i386-ieee1275.rmk: Likewise.
14869 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
14870 `util/ieee1275/get_disk_name.c'.
14871 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
14872 * util/ieee1275/get_disk_name.c: Remove file.
14873 * util/i386/get_disk_name.c: Remove file.
14874 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
14875 "hd%d" for device.map entries, rather than using
14876 grub_util_get_disk_name().
14878 2008-09-24 Carles Pina i Estany <carles@pina.cat>
14880 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
14882 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
14884 2008-09-24 Carles Pina i Estany <carles@pina.cat>
14886 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
14888 (GRUB_TERM_PPAGE): Changed to 0x4900.
14890 2008-09-24 Robert Millan <rmh@aybabtu.com>
14892 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
14893 macros (they were i386-pc specific).
14894 * include/grub/sparc64/ieee1275/console.h: Likewise.
14895 * include/grub/efi/console.h: Likewise.
14897 2008-09-22 Bean <bean123ch@gmail.com>
14899 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
14900 resident and in attribute list.
14902 * include/grub/ntfs.h (BMP_LEN): Removed.
14904 2008-09-22 Bean <bean123ch@gmail.com>
14906 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
14907 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
14909 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
14910 error occurs, as grub_disk_open will call grub_disk_close, which will
14911 call p->close (scsi).
14913 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
14915 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
14916 (AC_PREREQ): Bumped to 2.59.
14917 (AC_TRY_COMPILE): Replace obsolete macro with ...
14918 (AC_COMPILE_IFELSE): ... this.
14919 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
14920 (AC_LINK_IFELSE): ... this.
14922 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
14924 * autogen.sh: Add a call to `gendistlist.sh'.
14926 2008-09-19 Christian Franke <franke@computer.org>
14928 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
14929 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
14930 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
14931 Export __enable_execute_stack() to modules.
14932 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
14935 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
14937 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
14940 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
14942 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
14943 #include <grub/util/hostdisk.h>.
14945 2008-09-08 Robert Millan <rmh@aybabtu.com>
14947 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
14948 segments when their filesz is zero (grub_file_read() interprets
14949 zero-size as "read until EOF", which results in memory corruption).
14950 Use `lowest_segment' rather than 0 for calculating the current
14951 segment load address.
14953 2008-09-08 Robert Millan <rmh@aybabtu.com>
14955 * util/hostdisk.c (open_device): Replace a grub_util_info() call
14956 with grub_dprintf("hostdisk", ...), as it was so verbose that it
14957 clobbered useful information.
14959 2008-09-08 Robert Millan <rmh@aybabtu.com>
14961 * include/grub/util/biosdisk.h: Move to ...
14962 * include/grub/util/hostdisk.h: ... here. Update all users.
14963 * util/biosdisk.c: Move to ...
14964 * util/hostdisk.c: ... here. Update all users.
14966 2008-09-07 Robert Millan <rmh@aybabtu.com>
14968 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
14970 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
14971 and length can be stored directly in the `mbi->mmap_addr' and
14972 `mbi->mmap_length' struct fields.
14974 2008-09-07 Robert Millan <rmh@aybabtu.com>
14976 * conf/i386.rmk: New file. Provides declaration for building
14978 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
14979 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
14981 Include `conf/i386.mk'.
14982 * conf/i386-efi.rmk: Likewise.
14983 * conf/x86_64-efi.rmk: Likewise.
14984 * conf/i386-coreboot.rmk: Likewise.
14985 * conf/i386-ieee1275.rmk: Likewise.
14987 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
14989 Based on patch created by Colin D Bennett <colin@gibibit.com>.
14990 Adds optimization support for BGR based modes.
14992 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
14993 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
14994 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14995 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14996 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14997 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14998 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14999 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15000 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15001 (grub_video_i386_vbeblit_index_index): Likewise.
15002 (grub_video_i386_vbeblit_replace_directN): Added.
15003 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
15004 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
15005 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
15006 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
15007 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
15008 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
15009 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
15010 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
15011 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
15012 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
15013 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
15014 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
15015 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
15017 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
15018 (grub_video_i386_vbefill_R8G8B8): Likewise.
15019 (grub_video_i386_vbefill_index): Likewise.
15020 (grub_video_i386_vbefill_direct32): Added.
15021 (grub_video_i386_vbefill_direct24): Likewise.
15022 (grub_video_i386_vbefill_direct16): Likewise.
15023 (grub_video_i386_vbefill_direct8): Likewise.
15025 * include/grub/video.h (grub_video_blit_format): Removed
15026 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
15027 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
15028 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
15029 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
15030 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
15032 * video/video.c (grub_video_get_blit_format): Updated to use new
15033 blit formats. Added handling for 16 bit color modes.
15035 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
15037 (common_blitter): Updated to use new blitters.
15039 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
15041 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
15042 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
15043 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
15044 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
15045 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
15046 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
15047 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15048 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15049 (grub_video_i386_vbeblit_index_index): Likewise.
15050 (grub_video_i386_vbeblit_replace_directN): Added.
15051 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
15052 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
15053 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
15054 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
15055 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
15056 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
15057 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
15058 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
15059 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
15060 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
15061 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
15062 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
15063 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
15065 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
15066 (grub_video_i386_vbefill_R8G8B8): Likewise.
15067 (grub_video_i386_vbefill_index): Likewise.
15068 (grub_video_i386_vbefill_direct32): Added.
15069 (grub_video_i386_vbefill_direct24): Likewise.
15070 (grub_video_i386_vbefill_direct16): Likewise.
15071 (grub_video_i386_vbefill_direct8): Likewise.
15073 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
15076 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
15079 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
15082 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
15085 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
15087 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
15090 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
15092 * fs/iso9660.c (grub_iso9660_date): New structure.
15093 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
15094 (grub_iso9660_uuid): New function.
15096 2008-09-05 Bean <bean123ch@gmail.com>
15098 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
15100 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
15101 insensitive bit for names in Win32 and Win32 & DOS namespace.
15103 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
15105 * include/grub/types.h (LONG_MAX): Likewise.
15107 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
15109 * util/getroot.c: Include <config.h>.
15110 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
15111 add support for /dev/md/N devices and handle LVM double dash escaping.
15113 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
15115 * config.guess: Update to latest version from config git.
15116 * config.sub: Likewise.
15118 2008-09-03 Robert Millan <rmh@aybabtu.com>
15120 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
15121 `disk->total_sectors'.
15123 2008-09-01 Colin D Bennett <colin@gibibit.com>
15125 * include/grub/normal.h: Fixed incorrect comment for
15126 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
15128 2008-09-01 Colin D Bennett <colin@gibibit.com>
15130 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
15131 values with defines.
15133 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
15134 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
15135 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
15136 (GRUB_VBE_MODEATTR_COLOR): Likewise.
15137 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
15138 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
15139 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
15140 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
15141 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
15142 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
15143 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
15144 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
15145 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
15146 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
15147 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
15148 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
15149 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
15150 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
15151 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
15153 2008-08-31 Robert Millan <rmh@aybabtu.com>
15155 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
15157 (grub_multiboot): Fix a few warnings.
15159 2008-08-31 Robert Millan <rmh@aybabtu.com>
15161 * loader/i386/pc/multiboot.c: Update comment not to say that
15162 boot_device support is unimplemented.
15164 2008-08-31 Robert Millan <rmh@aybabtu.com>
15166 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
15167 or memory map support are unimplemented.
15169 2008-08-31 Colin D Bennett <colin@gibibit.com>
15171 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
15173 2008-08-31 Colin D Bennett <colin@gibibit.com>
15175 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
15176 total video memory in 'vbeinfo' output; show color format details for
15179 2008-08-30 Pavel Roskin <proski@gnu.org>
15181 * util/genmoddep.c: Remove for real this time.
15182 * DISTLIST: Remove util/genmoddep.c.
15184 2008-08-30 Robert Millan <rmh@aybabtu.com>
15186 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
15187 as required by Multiboot spec (it was already 4-byte aligned, but
15190 2008-08-29 Pavel Roskin <proski@gnu.org>
15192 * kern/powerpc/ieee1275/crt0.S: Rename to ...
15193 * kern/powerpc/ieee1275/startup.S: ... this.
15194 * conf/powerpc-ieee1275.rmk: Adjust for the above.
15195 * DISTLIST: Likewise.
15197 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
15198 grub/cpu/kernel.h. Add start label for consistency with other
15199 platforms. Add grub_prefix immediately after start. Add jump
15200 to the code after grub_prefix.
15201 * include/grub/powerpc/kernel.h: Provide valid values for
15202 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
15204 2008-08-29 Bean <bean123ch@gmail.com>
15206 * configure.ac: Change host_os to cygwin for mingw.
15207 (asprintf): New check for function.
15209 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
15210 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
15212 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
15213 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
15214 sync, sleep and grub_util_get_disk_size for mingw.
15216 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
15217 to get size in mingw.
15218 (open_device): Use flag O_BINARY if it's defined.
15219 (find_root_device): Add dummy code for mingw.
15221 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
15222 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
15223 (get_scsi_disk_name): Return 0 for mingw.
15225 * util/hostfs.c: #include <grub/util/misc.h>.
15226 (grub_hostfs_open): Use "rb" flag to open file, use
15227 grub_util_get_disk_size to get disk size for mingw.
15229 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
15230 (asprintf): New function if HAVE_ASPRINTF is not set.
15231 (sync): New function for mingw.
15233 (grub_util_get_disk_size): Likewise.
15235 2008-08-28 Pavel Roskin <proski@gnu.org>
15237 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15240 2008-08-28 Robert Millan <rmh@aybabtu.com>
15242 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
15244 2008-08-28 Robert Millan <rmh@aybabtu.com>
15246 Change find_grub_drive() syntax so it doesn't prevent it from
15247 detecting NULL names as errors.
15249 * util/biosdisk.c (find_grub_drive): Move free slot search code
15251 (find_free_slot): ... to here.
15252 (read_device_map): Use find_free_slot() to search for free slots.
15254 2008-08-27 Marco Gerards <marco@gnu.org>
15256 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
15257 (scsi_mod_SOURCES): New variable.
15258 (scsi_mod_CFLAGS): Likewise
15259 (scsi_mod_LDFLAGS): Likewise.
15261 * disk/scsi.c: New file.
15263 * include/grub/scsi.h: Likewise.
15265 * include/grub/scsicmd.h: Likewise.
15267 * disk/ata.c: Include <grub/scsi.h>.
15268 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
15270 (grub_ata_iterate): Skip ATAPI devices.
15271 (grub_ata_open): Only handle ATAPI devices.
15272 (struct grub_atapi_read): Removed.
15273 (grub_atapi_readsector): Likewise.
15274 (grub_ata_read): No longer handle ATAPI devices.
15275 (grub_ata_write): Likewise.
15276 (grub_atapi_iterate): New function.
15277 (grub_atapi_read): Likewise.
15278 (grub_atapi_write): Likewise.
15279 (grub_atapi_open): Likewise.
15280 (grub_atapi_close): Likewise.
15281 (grub_atapi_dev): New variable.
15282 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
15283 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
15285 * include/grub/disk.h (enum grub_disk_dev_id): Add
15286 `GRUB_DISK_DEVICE_SCSI_ID'.
15288 2008-08-26 Robert Millan <rmh@aybabtu.com>
15290 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
15291 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
15294 2008-08-23 Bean <bean123ch@gmail.com>
15296 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
15297 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15298 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
15299 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
15301 (raid5rec_mod_SOURCES): New macro.
15302 (raid5rec_mod_CFLAGS): Likewise.
15303 (raid5rec_mod_LDFLAGS): Likewise.
15304 (raid6rec_mod_SOURCES): Likewise.
15305 (raid6rec_mod_CFLAGS): Likewise.
15306 (raid6rec_mod_LDFLAGS): Likewise.
15307 (mdraid_mod_SOURCES): Likewise.
15308 (mdraid_mod_CFLAGS): Likewise.
15309 (mdraid_mod_LDFLAGS): Likewise.
15310 (dm_nv_mod_SOURCES): Likewise.
15311 (dm_nv_mod_CFLAGS): Likewise.
15312 (dm_nv_mod_LDFLAGS): Likewise.
15314 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
15315 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15316 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15318 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
15319 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15321 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15323 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15325 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15327 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15329 * disk/raid5_recover.c: New file.
15331 * disk/raid6_recover.c: Likewise.
15333 * disk/mdraid_linux.c: Likewise.
15335 * disk/dmraid_nvidia.c: Likewise.
15337 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
15340 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
15341 calculate the size of raid device.
15342 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
15343 different layout of raid5.
15344 (grub_raid_scan_device): Remove code specific to mdraid.
15345 (grub_raid_list): New variable.
15346 (free_array): New function.
15347 (grub_raid_register): Likewise.
15348 (grub_raid_unregister): Likewise.
15349 (grub_raid_rescan): Likewise.
15350 (GRUB_MOD_INIT): Don't iterate device here.
15351 (GRUB_MOD_FINI): Use free_array to release resource.
15353 * include/grub/raid.h: Remove macro and structure specific to mdraid.
15354 (grub_raid5_recover_func_t): New function variable type.
15355 (grub_raid6_recover_func_t): Likewise.
15356 (grub_raid5_recover_func): New variable.
15357 (grub_raid6_recover_func): Likewise.
15358 (grub_raid_register): New function.
15359 (grub_raid_unregister): Likewise.
15360 (grub_raid_rescan): Likewise.
15361 (grub_raid_block_xor): Likewise.
15363 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
15364 (CMD_CRC): New macro.
15366 (read_file): Handle device as well as file.
15367 (cmd_crc): New function.
15368 (fstest): Handle multiple disks.
15369 (options): Remove part, raw and long, add root and diskcount.
15370 (usage): Add crc, remove -p, -r, -l, add -r and -c.
15371 (main): Find the first non option entry and ignore subsequent options,
15372 add handling for the new options, support multiple disks.
15374 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
15376 2008-08-23 Bean <bean123ch@gmail.com>
15378 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
15380 * genfslist.sh: Ignore kernel.mod.
15382 * genpartmaplist.sh: Likewise.
15384 2008-08-23 Robert Millan <rmh@aybabtu.com>
15386 * util/getroot.c (find_root_device): Skip anything that starts with
15387 a dot, not just directories. This avoids things like /dev/.tmp.md0.
15389 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
15391 * util/update-grub.in (GRUB_GFXMODE): Export variable.
15392 * util/grub.d/00_header.in: Allow the administrator to change default
15393 gfxmode via ${GRUB_GFXMODE}.
15395 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
15397 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
15399 2008-08-21 Robert Millan <rmh@aybabtu.com>
15401 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
15403 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
15404 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
15406 2008-08-20 Carles Pina i Estany <carles@pina.cat>
15408 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
15409 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
15411 2008-08-19 Robert Millan <rmh@aybabtu.com>
15413 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
15414 (struct grub_virtual_screen): Remove `cursor_color'.
15415 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
15417 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
15419 2008-08-18 Robert Millan <rmh@aybabtu.com>
15421 Unify (identical) linux_normal.c files.
15422 * loader/i386/efi/linux_normal.c: Move from here ...
15423 * loader/linux_normal.c: ... to here. Update all users.
15424 * loader/i386/pc/linux_normal.c: Delete. Update all users.
15425 * loader/i386/ieee1275/linux_normal.c: Likewise.
15427 2008-08-18 Robert Millan <rmh@aybabtu.com>
15429 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
15430 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
15431 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
15432 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
15433 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
15435 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
15436 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
15437 (GRUB_LINUX_CL_END_OFFSET): ... to here.
15438 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
15439 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
15440 (GRUB_EFI_CL_END_OFFSET): Rename to ...
15441 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
15442 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
15443 Initialize `params->video_cursor_x' and `params->video_cursor_y'
15444 portably using grub_getxy().
15445 Replace `-EFI' with `-bzImage' in boot message.
15447 2008-08-17 Robert Millan <rmh@aybabtu.com>
15449 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
15451 2008-08-17 Robert Millan <rmh@aybabtu.com>
15453 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
15455 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
15456 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
15457 (grub_machine_mmap_iterate): New function declaration.
15458 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
15460 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
15463 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
15464 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
15465 Move e820 parsing from here ...
15466 * kern/i386/pc/mmap.c: New file.
15467 (grub_machine_mmap_iterate): ... to here.
15469 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
15470 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
15471 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
15472 (grub_available_iterate): Redeclare to return `void', and redeclare
15473 its hook to use grub_uint64_t as addr and size parameters, and rename
15475 (grub_machine_mmap_iterate): ... this. Update all users.
15477 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
15478 to make it more readable. Rename to ...
15479 (grub_machine_mmap_iterate): ... this.
15481 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
15482 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
15483 (grub_multiboot): Allocate an extra region after the payload, and fill
15484 it with a Multiboot memory map. Adjust a.out loader to calculate size
15485 with the extra space.
15486 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
15487 with the extra space.
15489 2008-08-17 Carles Pina i Estany <carles@pina.cat>
15491 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
15493 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
15495 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
15496 mdate-sh to the list `find' searches for.
15497 * DISTLIST: Regenerated.
15499 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
15501 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
15502 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
15503 genmoddep.awk, gensymlist.sh.in.
15504 (DISTDIRS): Add bus, docs, hook, lib.
15505 * DISTLIST: Regenerated.
15506 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
15508 2008-08-16 Robert Millan <rmh@aybabtu.com>
15510 * disk/raid.c (grub_raid_init): Handle/report errors set by
15511 grub_device_iterate().
15512 * disk/lvm.c (grub_lvm_init): Likewise.
15514 2008-08-15 Bean <bean123ch@gmail.com>
15516 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15518 (datetime_mod_SOURCES): New macro.
15519 (datetime_mod_CFLAGS): Likewise.
15520 (datetime_mod_LDFLAGS): Likewise.
15521 (date_mod_SOURCES): Likewise.
15522 (date_mod_CFLAGS): Likewise.
15523 (date_mod_LDFLAGS): Likewise.
15524 (datehook_mod_SOURCES): Likewise.
15525 (datehook_mod_CFLAGS): Likewise.
15526 (datehook_mod_LDFLAGS): Likewise.
15528 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15530 (datetime_mod_SOURCES): New macro.
15531 (datetime_mod_CFLAGS): Likewise.
15532 (datetime_mod_LDFLAGS): Likewise.
15533 (date_mod_SOURCES): Likewise.
15534 (date_mod_CFLAGS): Likewise.
15535 (date_mod_LDFLAGS): Likewise.
15536 (datehook_mod_SOURCES): Likewise.
15537 (datehook_mod_CFLAGS): Likewise.
15538 (datehook_mod_LDFLAGS): Likewise.
15540 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15542 (datetime_mod_SOURCES): New macro.
15543 (datetime_mod_CFLAGS): Likewise.
15544 (datetime_mod_LDFLAGS): Likewise.
15545 (date_mod_SOURCES): Likewise.
15546 (date_mod_CFLAGS): Likewise.
15547 (date_mod_LDFLAGS): Likewise.
15548 (datehook_mod_SOURCES): Likewise.
15549 (datehook_mod_CFLAGS): Likewise.
15550 (datehook_mod_LDFLAGS): Likewise.
15552 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15554 (datetime_mod_SOURCES): New macro.
15555 (datetime_mod_CFLAGS): Likewise.
15556 (datetime_mod_LDFLAGS): Likewise.
15557 (date_mod_SOURCES): Likewise.
15558 (date_mod_CFLAGS): Likewise.
15559 (date_mod_LDFLAGS): Likewise.
15560 (datehook_mod_SOURCES): Likewise.
15561 (datehook_mod_CFLAGS): Likewise.
15562 (datehook_mod_LDFLAGS): Likewise.
15564 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15566 (datetime_mod_SOURCES): New macro.
15567 (datetime_mod_CFLAGS): Likewise.
15568 (datetime_mod_LDFLAGS): Likewise.
15569 (date_mod_SOURCES): Likewise.
15570 (date_mod_CFLAGS): Likewise.
15571 (date_mod_LDFLAGS): Likewise.
15572 (datehook_mod_SOURCES): Likewise.
15573 (datehook_mod_CFLAGS): Likewise.
15574 (datehook_mod_LDFLAGS): Likewise.
15576 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
15578 * commands/date.c: New file.
15580 * hook/datehook.c: Likewise.
15582 * include/grub/lib/datetime.h: Likewise.
15584 * include/grub/i386/cmos.h: Likewise.
15586 * lib/datetime.c: Likewise.
15588 * lib/i386/datetime.c: Likewise.
15590 * lib/efi/datetime.c: Likewise.
15592 2008-08-14 Robert Millan <rmh@aybabtu.com>
15594 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
15595 (grub_mkelfimage_SOURCES): New variable.
15596 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
15598 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
15599 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
15600 * conf/powerpc-ieee1275.rmk: Likewise.
15601 * conf/i386-ieee1275.rmk: Likewise.
15603 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
15604 * kern/i386/coreboot/init.c: Likewise.
15606 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
15607 with `<grub/cpu/kernel.h>'.
15608 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
15610 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
15611 * kern/i386/coreboot/startup.S: Likewise.
15613 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
15614 (GRUB_MOD_GAP): Remove.
15615 * include/grub/powerpc/kernel.h: New file.
15616 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
15617 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15618 * include/grub/i386/kernel.h: New file.
15619 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
15620 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
15621 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15623 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
15625 Use --directory when invoking grub_mkimage.
15627 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
15628 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
15629 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
15630 and GRUB_KERNEL_CPU_PREFIX.
15632 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
15634 * include/grub/err.h (grub_err_printf): New function prototype.
15635 * util/misc.c (grub_err_printf): New function.
15636 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
15638 * kern/err.c (grub_print_error): Use grub_err_printf.
15640 2008-08-13 Robert Millan <rmh@aybabtu.com>
15642 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
15644 2008-08-13 Robert Millan <rmh@aybabtu.com>
15646 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
15649 2008-08-12 Robert Millan <rmh@aybabtu.com>
15651 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
15652 of the relocation code from here ...
15653 (grub_multiboot): ... to here.
15654 (forward_relocator, backward_relocator): Move from here ...
15655 * kern/i386/loader.S (grub_multiboot_forward_relocator)
15656 (grub_multiboot_backward_relocator): ... to here.
15657 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
15658 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
15659 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
15660 (grub_multiboot_forward_relocator_end)
15661 (grub_multiboot_backward_relocator)
15662 (grub_multiboot_backward_relocator_end): New variables.
15664 2008-08-12 Bean <bean123ch@gmail.com>
15666 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
15668 2008-08-11 Robert Millan <rmh@aybabtu.com>
15670 * kern/i386/linuxbios/startup.S: Move from here ...
15671 * kern/i386/coreboot/startup.S: ... to here.
15673 * kern/i386/linuxbios/init.c: Move from here ...
15674 * kern/i386/coreboot/init.c: ... to here.
15676 * kern/i386/linuxbios/table.c: Move from here ...
15677 * kern/i386/coreboot/mmap.c: ... to here.
15679 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
15681 2008-08-11 Robert Millan <rmh@aybabtu.com>
15683 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
15684 errors. Leave it to the upper layer to handle them.
15686 2008-08-09 Christian Franke <franke@computer.org>
15688 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
15689 * conf/common.rmk: Install `grub-pe2elf' only if requested.
15690 Install `grub.d/10_windows' only on Cygwin.
15691 * configure.ac: Add subst of `target_os'.
15692 Check `target_os' also before setting TARGET_OBJ2ELF.
15693 Add `--enable-grub-pe2elf'.
15695 2008-08-08 Robert Millan <rmh@aybabtu.com>
15697 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15698 (grub_last_time): Change type to grub_uint64_t.
15699 (grub_disk_open): Migrate code from to using grub_get_time_ms().
15700 (grub_disk_close): Likewise.
15702 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15703 (run_menu): Migrate code from to using grub_get_time_ms().
15705 * util/misc.c (grub_get_time_ms): New function.
15707 2008-08-08 Marco Gerards <marco@gnu.org>
15709 * disk/ata.c (grub_ata_regget): Change return type to
15711 (grub_ata_regget2): Likewise.
15712 (grub_ata_wait_status): New function.
15713 (grub_ata_wait_busy): Removed function, updated all users to use
15714 `grub_ata_wait_status'.
15715 (grub_ata_wait_drq): Likewise.
15716 (grub_ata_cmd): New function.
15717 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
15719 (grub_ata_pio_write): Add error handling.
15720 (grub_atapi_identify): Likewise.
15721 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
15723 (grub_ata_identify): Use `grub_ata_cmd' and improve error
15724 handling. Actually use the detected registers. Reorder the
15725 detection logic such that it is easier to read.
15726 (grub_ata_pciinit): Do not assign the same ID to each controller.
15727 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
15729 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
15731 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
15733 2008-08-08 Marco Gerards <marco@gnu.org>
15737 2008-08-07 Bean <bean123ch@gmail.com>
15739 * include/grub/x86_64/pci.h: New file.
15741 2008-08-07 Christian Franke <franke@computer.org>
15743 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
15744 (TIMER2_GATE): Likewise.
15745 (grub_pit_wait): Add enable/disable of the timer2 gate
15746 bit of port 0x61. This fixes a possible infinite loop.
15748 2008-08-07 Bean <bean123ch@gmail.com>
15750 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
15751 kern/i386/tsc.c and kern/i386/pit.c.
15753 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
15756 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
15759 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
15761 2008-08-07 Bean <bean123ch@gmail.com>
15763 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
15765 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
15767 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
15768 multiple inclusion. Add #include <grub/types.h>.
15770 2008-08-06 Christian Franke <franke@computer.org>
15772 * conf/common.rmk: Build and install `10_windows'.
15773 * util/grub.d/10_windows.in: New script.
15775 2008-08-06 Pavel Roskin <proski@gnu.org>
15777 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
15779 2008-08-06 Robert Millan <rmh@aybabtu.com>
15781 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
15782 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
15784 2008-08-06 Bean <bean123ch@gmail.com>
15786 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
15787 (grub_pxefs_fs_int): Remove dummy definition.
15788 (grub_pxefs_open): Use data->block_size to store the current block
15790 (grub_pxefs_read): Use block size stored in data->block_size. As the
15791 value of grub_pxe_blksize can be changed after the file is opened.
15793 2008-08-06 Bean <bean123ch@gmail.com>
15795 * fs/i386/pc/pxe.c (curr_file): new variable.
15796 (grub_pxefs_open): Simply the handling of pxe file system. Don't
15797 require the dummy internal file system anymore.
15798 (grub_pxefs_read): Removed.
15799 (grub_pxefs_close): Likewise.
15800 (grub_pxefs_fs_int): Likewise.
15801 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
15802 connection when we switch file.
15803 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
15805 2008-08-06 Robert Millan <rmh@aybabtu.com>
15807 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
15809 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
15810 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
15812 * kern/i386/halt.c: New file.
15813 * kern/i386/reboot.c: Likewise.
15814 * include/grub/i386/reboot.h: Likewise.
15815 * include/grub/i386/halt.h: Likewise.
15817 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
15818 Include `<grub/cpu/halt.h>'.
15819 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
15820 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
15822 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
15823 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
15824 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
15825 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
15826 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
15827 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
15829 * include/grub/i386/at_keyboard.h: ... to here.
15831 2008-08-05 Robert Millan <rmh@aybabtu.com>
15833 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
15834 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
15835 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
15836 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
15837 `kern/generic/millisleep.c'.
15839 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
15840 instead of grub_get_rtc().
15841 (grub_tsc_init): Initialize `tsc_boot_time'.
15843 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
15844 (grub_machine_init): Use grub_tsc_init() rather than
15845 installing an RTC-based handler via grub_install_get_time_ms().
15847 * kern/i386/pit.c: New file.
15848 * include/grub/i386/pit.h: Likewise.
15850 2008-08-05 Bean <bean123ch@gmail.com>
15852 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
15854 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
15855 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
15856 (pxe_mod_SOURCES): New macro.
15857 (pxe_mod_CFLAGS): Likewise.
15858 (pxe_mod_LDFLAGS): Likewise.
15859 (pxecmd_mod_SOURCES): Likewise.
15860 (pxecmd_mod_CFLAGS): Likewise.
15861 (pxecmd_mod_LDFLAGS): Likewise.
15863 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
15864 (grub_pxe_call): Likewise.
15866 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
15868 * commands/i386/pc/pxecmd.c: New file.
15870 * fs/i386/pc/pxe.c: Likewise.
15872 * include/grub/i386/pc/pxe.h: Likewise.
15874 2008-08-05 Bean <bean123ch@gmail.com>
15876 * util/console.c (grub_console_cur_color): New variable.
15877 (grub_console_standard_color): Likewise.
15878 (grub_console_normal_color): Likewise.
15879 (grub_console_highlight_color): Likewise.
15880 (color_map): Likewise.
15881 (use_color): Likewise.
15882 (NUM_COLORS): New macro.
15883 (grub_ncurses_setcolorstate): Handle color properly.
15884 (grub_ncurses_setcolor): Don't change color here, just remember the
15885 settings, color will be set in grub_ncurses_setcolorstate.
15886 (grub_ncurses_getcolor): New function.
15887 (grub_ncurses_init): Initialize color pairs.
15888 (grub_ncurses_term): New member grub_ncurses_getcolor.
15890 2008-08-05 Colin D Bennett <colin@gibibit.com>
15892 High resolution timer support. Implemented for x86 CPUs using TSC.
15893 Extracted generic grub_millisleep() so it's linked in only as needed.
15894 This requires a Pentium compatible CPU; if the RDTSC instruction is
15895 not supported, then it falls back on the generic grub_get_time_ms()
15896 implementation that uses the machine's RTC.
15898 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
15899 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
15900 `kern/generic/millisleep.c'.
15902 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
15903 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
15905 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
15906 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
15908 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
15910 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15911 `kern/generic/millisleep.c'.
15913 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
15915 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
15917 * kern/generic/rtc_get_time_ms.c: New file.
15919 * kern/generic/millisleep.c: New file.
15921 * kern/misc.c: Don't include
15922 <kern/time.h> anymore.
15923 (grub_millisleep_generic): Removed.
15925 * commands/sleep.c (grub_interruptible_millisleep): Uses
15926 grub_get_time_ms() instead of grub_get_rtc().
15928 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
15930 (grub_cpu_is_cpuid_supported): New inline function.
15931 (grub_cpu_is_tsc_supported): New inline function.
15932 (grub_tsc_init): New function prototype.
15933 (grub_tsc_get_time_ms): New function prototype.
15935 * kern/i386/tsc.c (grub_get_time_ms): New file.
15937 * include/grub/time.h: Include <grub/types.h.
15938 (grub_millisleep_generic): Removed.
15939 (grub_get_time_ms): New prototype.
15940 (grub_install_get_time_ms): New prototype.
15941 (grub_rtc_get_time_ms): New prototype.
15943 * kern/time.c (grub_get_time_ms): New function.
15944 (grub_install_get_time_ms): New function.
15946 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
15947 <grub/time.h> anymore.
15948 (grub_millisleep): Removed.
15949 (grub_machine_init): Call grub_tsc_init.
15951 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
15952 get_time_ms() implementation.
15954 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
15955 (ieee1275_get_time_ms): New function.
15956 (grub_machine_init): Install get_time_ms() implementation.
15958 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
15959 (grub_machine_init): Call grub_tsc_init().
15960 (grub_millisleep): Removed.
15962 * kern/ieee1275/init.c (grub_millisleep): Removed.
15963 (grub_machine_init): Install ieee1275_get_time_ms()
15965 (ieee1275_get_time_ms): New function.
15966 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
15969 2008-08-05 Marco Gerards <marco@gnu.org>
15971 * disk/ata.c: Include <grub/pci.h>.
15972 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
15973 (grub_ata_initialize): Rewritten.
15974 (grub_ata_device_initialize): New function.
15976 2008-08-04 Pavel Roskin <proski@gnu.org>
15978 * kern/main.c: Include grub/mm.h.
15980 2008-08-04 Robert Millan <rmh@aybabtu.com>
15982 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
15983 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
15984 corruption problem).
15986 2008-08-04 Robert Millan <rmh@aybabtu.com>
15988 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
15989 warnings introduced in my last commit.
15991 2008-08-03 Robert Millan <rmh@aybabtu.com>
15993 Make PCI available on all i386 architectures.
15995 * include/grub/i386/pc/pci.h: Move from here ...
15996 * include/grub/i386/pci.h: ... to here.
15998 * include/grub/i386/pc/pci.h: Remove.
15999 * include/grub/i386/efi/pci.h: Remove.
16000 * include/grub/x86_64/efi/pci.h: Remove.
16002 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
16003 `<grub/cpu/pci.h>'.
16005 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
16006 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
16007 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
16009 * conf/i386-ieee1275.rmk: Likewise.
16011 2008-08-03 Robert Millan <rmh@aybabtu.com>
16013 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
16014 (grub_console_setcursor): Make it possible to set cursor off.
16016 2008-08-03 Robert Millan <rmh@aybabtu.com>
16018 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
16019 of modules instead of assuming which platform provides what.
16020 * util/update-grub.in: Likewise.
16022 2008-08-03 Robert Millan <rmh@aybabtu.com>
16024 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
16025 instead of `grub_install_dos_part' to determine whether a drive needs
16026 to be prepended to prefix (`grub_install_dos_part' is not reliable,
16027 because it can be overridden when loading GRUB via Multiboot).
16029 2008-08-02 Robert Millan <rmh@aybabtu.com>
16031 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
16033 2008-08-02 Robert Millan <rmh@aybabtu.com>
16035 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
16036 of informational grub_dprintf() calls.
16038 2008-08-02 Robert Millan <rmh@aybabtu.com>
16040 * disk/memdisk.c (memdisk_size): Don't initialize.
16041 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
16043 * include/grub/i386/pc/kernel.h
16044 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
16045 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
16046 (grub_memdisk_image_size, grub_arch_memdisk_addr)
16047 (grub_arch_memdisk_size): Remove.
16049 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
16050 field (was only used to transfer a constant). Add `type' field to
16051 support multiple module types.
16052 (grub_module_iterate): New function.
16054 * kern/device.c (grub_device_open): Do not hide error messages
16055 when grub_disk_open() fails. Use grub_print_error() instead.
16057 * kern/i386/pc/init.c (grub_arch_modules_addr)
16058 (grub_arch_memdisk_size): Remove functions.
16059 (grub_arch_modules_addr): Return the module address in high memory
16060 (now that it isn't copied anymore).
16062 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
16063 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
16064 decompression routine (grub_total_module_size already includes that
16065 now). Don't copy modules back to low memory.
16067 * kern/main.c: Include `<grub/mm.h>'.
16068 (grub_load_modules): Split out (and use) ...
16069 (grub_module_iterate): ... this function, which iterates through
16070 module objects and runs a hook.
16071 Comment out grub_mm_init_region() call, as it would cause non-ELF
16072 modules to be overwritten.
16074 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
16075 the memdisk image in its own region, make it part of the module list.
16076 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
16077 (main): Parse --memdisk|-m option, and pass user-provided path as
16078 parameter to generate_image().
16079 (add_segments): Pass `memdisk_path' down to load_modules().
16080 (load_modules): Embed memdisk image in module section when requested.
16081 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
16082 `header.type' instead of `header.offset'.
16084 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
16085 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
16086 (memdisk_mod_LDFLAGS): New variables.
16087 * conf/i386-coreboot.rmk: Likewise.
16088 * conf/i386-ieee1275.rmk: Likewise.
16090 2008-08-02 Robert Millan <rmh@aybabtu.com>
16092 * loader/i386/pc/multiboot.c (playground, forward_relocator)
16093 (backward_relocator): New variables. Used to allocate and relocate
16094 the payload, respectively.
16095 (grub_multiboot_load_elf32): Load into heap instead of requested
16096 address, install the appropriate relocator code in each bound of
16097 the payload, and set the entry point such that
16098 grub_multiboot_real_boot() will jump to one of them.
16100 * kern/i386/loader.S (grub_multiboot_payload_size)
16101 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16102 (grub_multiboot_payload_entry_offset): New variables.
16103 (grub_multiboot_real_boot): Set cpu context to what the relocator
16104 expects, and jump to the relocator instead of the payload.
16106 * include/grub/i386/loader.h (grub_multiboot_payload_size)
16107 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16108 (grub_multiboot_payload_entry_offset): Export.
16110 2008-08-01 Bean <bean123ch@gmail.com>
16112 * normal/menu_entry.c (editor_getline): Don't return the original
16113 string as result, as it will be released by lexer once it has done
16116 2008-08-01 Robert Millan <rmh@aybabtu.com>
16118 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
16119 within menuentries, not before them.
16120 util/grub.d/10_hurd.in: Likewise.
16122 2008-08-01 Bean <bean123ch@gmail.com>
16124 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
16125 (bufio_mod_SOURCES): New macro.
16126 (bufio_mod_CFLAGS): Likewise.
16127 (bufio_mod_LDFLAGS): Likewise.
16129 * include/grub/bufio.h: New file.
16131 * io/bufio.c: Likewise.
16133 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
16134 (grub_video_reader_png): Use grub_buffile_open to open file.
16136 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
16137 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
16139 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
16140 (grub_video_reader_tga): Use grub_buffile_open to open file.
16142 * font/manager.c: Include <grub/bufio.h>.
16143 (add_font): Use grub_buffile_open to open file.
16145 2008-07-31 Robert Millan <rmh@aybabtu.com>
16147 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
16148 ELF segments, use a macro for arbitrarily accessing any of them instead
16149 of preparing a pointer that allows access to one at a time.
16150 (grub_multiboot_load_elf64): Likewise.
16152 2008-07-31 Bean <bean123ch@gmail.com>
16154 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
16155 GRUB_KERNEL_MACHINE_DATA_END.
16157 2008-07-30 Robert Millan <rmh@aybabtu.com>
16159 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
16160 Increase from 0x50 to 0x60.
16161 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
16162 use UUIDs to identify the root drive for them. If that's not
16164 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
16165 check, for cross-disk installs.
16167 2008-07-30 Robert Millan <rmh@aybabtu.com>
16169 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
16170 is non-empty, use it to set the `prefix' environment variable instead
16171 of the usual approach.
16172 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
16173 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
16174 environment variable instead of dummy make_install_device().
16176 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
16177 (start): Insert a data section, with `grub_prefix' variable.
16178 * kern/i386/linuxbios/startup.S: Likewise.
16180 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
16181 New variable reference.
16182 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
16183 New macro. Defines offset of `grub_prefix' within startup.S (relative
16185 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
16186 section within startup.S (relative to `start').
16187 * include/grub/i386/coreboot/kernel.h: Likewise.
16189 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
16190 Overwrite grub_prefix with its contents, at the beginning of the
16192 (main): Understand -p|--prefix.
16194 2008-07-30 Robert Millan <rmh@aybabtu.com>
16196 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
16198 2008-07-30 Robert Millan <rmh@aybabtu.com>
16200 * term/i386/pc/vga_text.c (grub_console_cls): Use
16201 grub_console_gotoxy() to go back to beginning of the screen.
16202 Found by Patrick Georgi <patrick.georgi@coresystems.de>
16204 2008-07-29 Christian Franke <franke@computer.org>
16206 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
16207 Add conversion of emulated mount points on Cygwin.
16209 2008-07-29 Christian Franke <franke@computer.org>
16211 * util/update-grub.in: Add a check for admin
16213 Remove old `grub.cfg.new' before creation.
16214 Add `-f' to `mv' to handle the different filesystem
16215 semantics of Windows.
16217 2008-07-29 Bean <bean123ch@gmail.com>
16219 * normal/main.c (get_line): Fix buffer overflow bug.
16221 2008-07-28 Robert Millan <rmh@aybabtu.com>
16223 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
16224 (struct grub_apple_header): New struct. Describes the layout of
16225 the partmap header.
16226 (apple_partition_map_iterate): Check the header magic as well as the
16227 partition magic (which was already being checked).
16229 2008-07-28 Pavel Roskin <proski@gnu.org>
16231 * genmk.rb: Add a warning to the beginning of the output that
16232 it's a generated file and should not be edited.
16234 2008-07-28 Robert Millan <rmh@aybabtu.com>
16236 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
16237 with the same number are found, just use issue a warning with
16238 grub_dprintf(), as this error has been reported to be non-fatal.
16240 2008-07-27 Robert Millan <rmh@aybabtu.com>
16242 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
16245 2008-07-27 Bean <bean123ch@gmail.com>
16247 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
16248 (grub_fat_find_dir): Ignore case when comparing filename.
16250 2008-07-27 Bean <bean123ch@gmail.com>
16252 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
16253 smallino, as it's more descriptive, and i8count can be confused with
16254 the other field count.
16255 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
16258 2008-07-27 Bean <bean123ch@gmail.com>
16260 * commands/crc.c: New file.
16262 * lib/crc.c: Likewise.
16264 * include/grub/lib/crc.h: Likewise.
16266 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
16268 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
16269 (hexdump): Move this function to ...
16271 * lib/hexdump.c: ... here.
16273 * include/grub/hexdump.h: Renamed to ...
16275 * include/grub/lib/hexdump.h: ... this.
16277 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
16279 * util/grub-editenv.c: Likewise.
16281 * include/envblk.h: Renamed to ...
16283 * include/lib/envblk.h: ... this.
16285 * util/envblk.c: Renamed to ...
16287 * lib/envblk.c: ... this.
16289 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
16291 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
16292 (pkglib_MODULES): Add crc.mod.
16293 (hexdump_mod_SOURCES): Add lib/hexdump.c.
16294 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
16295 (crc_mod_SOURCES): New macro.
16296 (crc_mod_CFLAGS): Likewise.
16297 (crc_mod_LDFLAGS): Likewise.
16299 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
16301 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16303 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16305 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16307 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16309 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
16311 * commands/help.c: Include <grub/term.h>.
16312 (TERM_WIDTH): Removed. Updated all users.
16314 2008-07-27 Pavel Roskin <proski@gnu.org>
16316 * util/getroot.c (find_root_device): Rephrase a comment to avoid
16317 spurious warnings about a comment within a comment.
16319 2008-07-25 Robert Millan <rmh@aybabtu.com>
16321 * util/getroot.c (find_root_device): Skip devices that match
16322 /dev/dm-[0-9]. This lets the real device be found for any type of
16323 abstraction (LVM, EVMS, RAID..).
16324 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
16325 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
16326 device is found first, find_root_device() will now skip it.
16328 2008-07-24 Pavel Roskin <proski@gnu.org>
16330 * include/grub/types.h: Use __builtin_bswap32() and
16331 __builtin_bswap64() with gcc 4.3 and newer.
16333 2008-07-24 Christian Franke <franke@computer.org>
16335 * util/i386/pc/grub-install.in: If `--debug' is specified,
16336 pass `--verbose' to grub-setup.
16337 Abort script if make_system_path_relative_to_its_root() fails.
16339 2008-07-24 Bean <bean123ch@gmail.com>
16341 * configure.ac: Fixed a bug caused by the previous cygwin patch,
16342 variable `target_platform' should be `platform'.
16344 2008-07-24 Bean <bean123ch@gmail.com>
16346 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
16347 (grub_png_init_fixed_block): New function.
16348 (grub_png_decode_image_data): Handle fixed huffman code compression.
16350 2008-07-24 Bean <bean123ch@gmail.com>
16352 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
16353 (grub_pe2elf_SOURCES): New macro.
16354 (CLEANFILES): Add grub-pe2elf.
16356 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
16357 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
16358 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
16359 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
16360 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
16361 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
16362 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
16363 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
16364 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
16365 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
16366 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
16367 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
16368 (GRUB_PE32_DT_FUNCTION): Likewise.
16369 (GRUB_PE32_REL_I386_DIR32): Likewise.
16370 (GRUB_PE32_REL_I386_REL32): Likewise.
16371 (grub_pe32_symbol): New structure.
16372 (grub_pe32_reloc): Likewise.
16374 * util/grub-pe2elf.c: New file.
16376 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
16377 start symbol in non pc platform.
16379 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
16381 The following patches are from Christian Franke.
16383 * include/grub/dl.h: Remove .previous, gas supports this only
16386 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
16387 Remove .type, gas supports this only for ELF format.
16389 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
16390 nullbytes in symbol table. This fixes an infinite loop if table is
16393 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
16394 TARGET_IMG_LDFLAGS and EXEEXT.
16396 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
16397 TARGET_IMG_LDFLAGS_AC.
16398 (grub_CHECK_STACK_ARG_PROBE): New function.
16400 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
16402 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
16404 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
16405 to set TARGET_IMG_LD* accordingly.
16406 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
16407 Add call to grub_CHECK_STACK_ARG_PROBE.
16408 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
16410 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
16412 * genmk.rb: Add EXEEXT to CLEANFILES.
16414 2008-07-23 Robert Millan <rmh@aybabtu.com>
16416 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
16417 define the codes for arrows and lines used for the menu).
16418 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
16421 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
16422 fonts, because the latter are too slow.
16424 2008-07-21 Bean <bean123ch@gmail.com>
16426 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
16427 a20. Run keyboard test last, as it will cause macbook to halt.
16429 2008-07-18 Pavel Roskin <proski@gnu.org>
16431 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
16432 load foreign architecture modules correctly anyway. Keep
16433 support for loading host architecture modules, whether we
16434 compile them or not.
16436 2008-07-17 Pavel Roskin <proski@gnu.org>
16438 * configure.ac: Use -m32 or -m64 regardless of whether we had to
16439 change target_cpu. The compiler default can mismatch target_cpu
16442 * disk/efi/efidisk.c: Fix format warnings on x86_64.
16443 * kern/efi/efi.c: Likewise.
16445 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
16446 target compiler is functional.
16447 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
16450 * configure.ac: Default to efi platform for x86_64-apple. Allow
16451 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
16452 adjustments from the rest, only do them if target is not
16453 explicitly given. Merge other adjustments with the final sanity
16454 check. Remove an extraneous check for supported CPU. Be
16455 specific which CPU and which platform is not supported.
16457 * configure.ac: Default to pc platform for x86_64.
16459 2008-07-17 Robert Millan <rmh@aybabtu.com>
16461 Partial LinuxBIOS -> Coreboot rename.
16463 * conf/i386-linuxbios.rmk: Renamed to ...
16464 * conf/i386-coreboot.rmk: ... this.
16465 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
16466 * configure.ac: Accept "coreboot" as input platform (but maintain
16467 compatibility with "linuxbios").
16468 * include/grub/i386/linuxbios: Renamed to ...
16469 * include/grub/i386/coreboot: ... this.
16471 2008-07-17 Bean <bean123ch@gmail.com>
16473 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
16474 (appleldr_mod_SOURCE): New variable.
16475 (appleldr_mod_CFLAGS): Likewise.
16476 (appleldr_mod_LDFLAGS): Likewise.
16477 (pci_mod_SOURCES): Likewise.
16478 (pci_mod_CFLAGS): Likewise.
16479 (pci_mod_LDFLAGS): Likewise.
16480 (lspci_mod_SOURCES): Likewise.
16481 (lspci_mod_CFLAGS): Likewise.
16482 (lspci_mod_LDFLAGS): Likewise.
16484 * conf/x86_64-efi.rmk: New file.
16486 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
16488 (grub_efidisk_write): Likewise.
16490 * include/efi/api.h (efi_call_0): New macro.
16491 (efi_call_1): Likewise.
16492 (efi_call_2): Likewise.
16493 (efi_call_3): Likewise.
16494 (efi_call_4): Likewise.
16495 (efi_call_5): Likewise.
16496 (efi_call_6): Likewise.
16498 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
16499 grub_rescue_cmd_chainloader.
16501 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
16502 (grub_pe32_optional_header): Change some fields based on i386 or
16504 (GRUB_PE32_PE32_MAGIC): Likewise.
16506 * include/grub/efi/uga_draw.h: New file.
16508 * include/grub/elf.h (STN_ABS): New constant.
16509 (R_X86_64_NONE): Relocation constant for x86_64.
16510 (R_X86_64_64): Likewise.
16511 (R_X86_64_PC32): Likewise.
16512 (R_X86_64_GOT32): Likewise.
16513 (R_X86_64_PLT32): Likewise.
16514 (R_X86_64_COPY): Likewise.
16515 (R_X86_64_GLOB_DAT): Likewise.
16516 (R_X86_64_JUMP_SLOT): Likewise.
16517 (R_X86_64_RELATIVE): Likewise.
16518 (R_X86_64_GOTPCREL): Likewise.
16519 (R_X86_64_32): Likewise.
16520 (R_X86_64_32S): Likewise.
16521 (R_X86_64_16): Likewise.
16522 (R_X86_64_PC16): Likewise.
16523 (R_X86_64_8): Likewise.
16524 (R_X86_64_PC8): Likewise.
16526 * include/grub/i386/efi/pci.h: New file.
16528 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
16529 Change it value based on platform.
16530 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
16531 (GRUB_E820_RAM): Likewise.
16532 (GRUB_E820_RESERVED): Likewise.
16533 (GRUB_E820_ACPI): Likewise.
16534 (GRUB_E820_NVS): Likewise.
16535 (GRUB_E820_EXEC_CODE): Likewise.
16536 (GRUB_E820_MAX_ENTRY): Likewise.
16537 (grub_e820_mmap): New structure.
16538 (linux_kernel_header): Change the efi field according to different
16539 kernel version, also field from linux_kernel_header.
16541 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
16543 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
16544 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
16545 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
16546 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
16547 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
16548 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
16549 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
16550 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
16551 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
16552 (GRUB_PCI_ADDR_IO_MASK): Likewise.
16554 * include/grub/x86_64/efi/kernel.h: New file.
16556 * include/grub/x86_64/efi/loader.h: Likewise.
16558 * include/grub/x86_64/efi/machine.h: Likewise.
16560 * include/grub/x86_64/efi/pci.h: Likewise.
16562 * include/grub/x86_64/efi/time.h: Likewise.
16564 * include/grub/x86_64/linux.h: Likewise.
16566 * include/grub/x86_64/setjmp.h: Likewise.
16568 * include/grub/x86_64/time.h: Likewise.
16570 * include/grub/x86_64/types.h: Likewise.
16572 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
16573 GRUB_TARGET_SIZEOF_VOID_P.
16575 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
16576 (grub_efi_locate_handle): Likewise.
16577 (grub_efi_open_protocol): Likewise.
16578 (grub_efi_set_text_mode): Likewise.
16579 (grub_efi_stall): Likewise.
16580 (grub_exit): Likewise.
16581 (grub_reboot): Likewise.
16582 (grub_halt): Likewise.
16583 (grub_efi_exit_boot_services): Likewise.
16584 (grub_get_rtc): Likewise.
16586 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
16587 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
16588 (grub_efi_allocate_pages): Wrap efi calls.
16589 (grub_efi_free_pages): Wrap efi calls.
16590 (grub_efi_get_memory_map): Wrap efi calls.
16592 * kern/x86_64/dl.c: New file.
16594 * kern/x86_64/efi/callwrap.S: Likewise.
16596 * kern/x86_64/efi/startup.S: Likewise.
16598 * loader/efi/appleloader.c: Likewise.
16600 * loader/efi/chainloader.c (cmdline): New variable.
16601 (grub_chainloader_unload): Wrap efi calls.
16602 (grub_chainloader_boot): Likewise.
16603 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
16606 * loader/efi/chainloader_normal.c (chainloader_command):
16607 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
16610 * loader/i386/efi/linux.c (allocate_pages): Change allocation
16612 (grub_e820_add_region): New function.
16613 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
16615 (grub_find_video_card): New function.
16616 (grub_linux_setup_video): New function.
16617 (grub_rescue_cmd_linux): Probe for video information.
16619 * normal/x86_64/setjmp.S: New file.
16621 * term/efi/console.c (map_char): New function.
16622 (grub_console_putchar): Map unicode char.
16623 (grub_console_checkkey): Wrap efi calls.
16624 (grub_console_getkey): Likewise.
16625 (grub_console_getwh): Likewise.
16626 (grub_console_gotoxy): Likewise.
16627 (grub_console_cls): Likewise.
16628 (grub_console_setcolorstate): Likewise.
16629 (grub_console_setcursor): Likewise.
16631 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
16633 2008-07-16 Pavel Roskin <proski@gnu.org>
16635 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
16638 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
16639 pointer, not an integer. This fixes a warning and prevents
16640 precision loss on 64-bit systems.
16641 (relocate_addresses): Remove unneeded cast.
16643 2008-07-15 Pavel Roskin <proski@gnu.org>
16645 * kern/i386/ieee1275/init.c: Include grub/cache.h.
16647 * term/ieee1275/ofconsole.c: Disable code unused on i386.
16649 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
16650 Fix comparison between signed and unsigned.
16652 * include/grub/i386/ieee1275/console.h: Declare
16653 grub_console_init() and grub_console_fini().
16655 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
16656 It's empty and unused.
16658 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
16659 beginning to avoid warnings with some compilers.
16661 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
16662 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
16664 2008-07-14 Pavel Roskin <proski@gnu.org>
16666 * kern/env.c (grub_register_variable_hook): Don't copy empty
16667 string, it leaks memory. Pass "" to grub_env_set(), it should
16668 handle constant strings.
16670 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
16671 * commands/cmp.c (grub_cmd_cmp): Likewise.
16672 * kern/dl.c (grub_dl_flush_cache): Likewise.
16673 (grub_dl_load_core): Likewise.
16674 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
16675 (grub_elf64_load_phdrs): Likewise.
16677 2008-07-13 Pavel Roskin <proski@gnu.org>
16679 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
16680 between signed and unsigned.
16681 (LzmaEnc_Finish): Fix warning about an unused parameter.
16683 2008-07-13 Bean <bean123ch@gmail.com>
16685 * Makefile.in (enable_lzo): New rule.
16687 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
16689 * configure.ac (ENABLE_LZO): New option --enable-lzo.
16691 * boot/i386/pc/lnxboot.S: #include <config.h>.
16693 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
16694 its value according to the compression algorithm used, lzo or lzma.
16696 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
16697 compression algorithm according to configure macro.
16699 * kern/i386/pc/startup.S (codestart): Likewise.
16701 * kern/i386/pc/lzma_decode.S: New file.
16703 * include/grub/lib/LzFind.h: Likewise.
16705 * include/grub/lib/LzHash.h: Likewise.
16707 * include/grub/lib/LzmaDec.h: Likewise.
16709 * include/grub/lib/LzmaEnc.h: Likewise.
16711 * include/grub/lib/LzmaTypes.h: Likewise.
16713 * lib/LzFind.c: Likewise.
16715 * lib/LzmaDec.c: Likewise.
16717 * lib/LzmaEnc.c: Likewise.
16719 2008-07-13 Bean <bean123ch@gmail.com>
16721 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
16722 (grub_ext4_extent_header): New structure.
16723 (grub_ext4_extent): Likewise.
16724 (grub_ext4_extent_idx): Likewise.
16725 (grub_ext4_find_leaf): New function.
16726 (grub_ext2_read_block): Handle extents.
16728 2008-07-12 Robert Millan <rmh@aybabtu.com>
16730 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
16732 2008-07-11 Robert Millan <rmh@aybabtu.com>
16734 * util/grub.d/40_custom.in: New file. Example on how to add custom
16735 entries to /etc/grub.d.
16736 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
16737 40_custom (implicitly, by merging all the grub.d rules).
16739 2008-07-11 Pavel Roskin <proski@gnu.org>
16741 * commands/read.c (grub_getline): Fix invalid memory access.
16742 Don't add newline to the variable value.
16744 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
16745 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
16746 (serial_hw_get_port): Check validity of the port number.
16747 (grub_cmd_serial): Check return value of serial_hw_get_port().
16749 2008-07-07 Pavel Roskin <proski@gnu.org>
16751 * boot/i386/pc/diskboot.S (notification_string): Replace
16752 "Loading kernel" with just "loading". This is shorter, less
16753 confusing and saves a few bytes for possible future changes.
16755 2008-07-05 Pavel Roskin <proski@gnu.org>
16757 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
16758 size for ATAPI devices, they are undefined. Output sector
16759 number in decimal form.
16761 * disk/ata.c: Use named constants for status bits.
16763 2008-07-04 Pavel Roskin <proski@gnu.org>
16765 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
16766 grub_addr_t before casting it to the void pointer to fix a
16767 warning. Non-addressable regions are discarded earlier.
16768 (grub_arch_modules_addr): Cast _end to grub_addr_t.
16769 * kern/i386/linuxbios/table.c: Include grub/misc.h.
16770 (check_signature): Don't shadow table_header.
16771 (grub_linuxbios_table_iterate): Cast numeric constants to
16772 grub_linuxbios_table_header_t.
16773 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
16776 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
16779 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
16780 pointer, which can cause warnings. Support 64-bit addresses.
16782 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
16783 of sizeof(long). This fixes PowerPC image generation on x86_64.
16785 2008-07-04 Robert Millan <rmh@aybabtu.com>
16787 This fixes a performance issue when pc & gpt partmap iterators
16788 didn't abort iteration even after our hook found what it was
16789 looking for (often causing expensive probes of non-existent drives).
16791 Some callers relied on previous buggy behaviour, since they would
16792 raise an error when their own hooks caused early abortion of its
16795 * kern/device.c (grub_device_open): Improve error message.
16796 * disk/lvm.c (grub_lvm_open): Likewise.
16797 * disk/raid.c (grub_raid_open): Likewise.
16799 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
16800 when hook requests it, independently of grub_errno.
16801 (pc_partition_map_probe): Do not fail when find_func() caused
16802 early abortion of pc_partition_map_iterate().
16804 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
16805 when hook requests it, independently of grub_errno.
16806 (gpt_partition_map_probe): Do not fail when find_func() caused
16807 early abortion of gpt_partition_map_iterate().
16809 * kern/partition.c (grub_partition_iterate): Abort parent iteration
16810 when hook requests it, independently of grub_errno. Do not fail when
16811 part_map_iterate_hook() caused early abortion of p->iterate().
16813 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
16814 when grub_partition_iterate() returned with non-zero.
16816 2008-07-03 Pavel Roskin <proski@gnu.org>
16818 * disk/ata.c (grub_ata_pio_write): Check status before writing,
16819 like we do in grub_ata_pio_read().
16820 (grub_ata_readwrite): Always write individual sectors. Fix the
16821 sector count for the remainder.
16822 (grub_ata_write): Enable writing to ATA devices. Correctly
16823 report error for ATAPI devices.
16825 2008-07-02 Pavel Roskin <proski@gnu.org>
16827 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
16830 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
16831 for every read sector, we already increment it for the whole
16832 batch. This fixes reading more than 256 sectors at once.
16834 * util/grub-editenv.c (cmd_info): Cast argument to long
16835 explicitly. ptrdiff_t reduces to int on i386.
16837 * util/grub-editenv.c (main): Be specific which parameter is
16840 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
16841 (memdisk): Make memdisk_orig_addr a pointer.
16843 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
16844 for file offsets, use grub_off_t instead. Fix printf format
16847 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
16848 there. Real unexpected warnings should not drown in the noise
16849 about known problems.
16851 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
16852 grub_disk_addr_t for memory addresses.
16854 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
16855 explicitly to fix a warning.
16857 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
16859 * Makefile.in (MODULE_LDFLAGS): New variable.
16860 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
16861 the linker accepts --build-id=none.
16862 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
16864 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
16866 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
16867 those in Linux XFS code. Provide a way to access 64-bit parent
16869 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
16870 the end of struct grub_xfs_dir_header.
16872 2008-07-02 Bean <bean123ch@gmail.com>
16874 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
16875 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
16876 and GRUB_IEEE1275_FLAG_NO_ANSI.
16878 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
16879 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
16880 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
16882 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
16883 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
16885 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
16886 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
16888 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
16889 esc sequence on non ANSI terminal.
16890 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
16892 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
16895 2008-07-02 Bean <bean123ch@gmail.com>
16897 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
16898 (grub_editenv_SOURCES): New variable.
16899 (pkglib_MODULES): Add loadenv.mod.
16900 (loadenv_mod_SOURCES): New variable.
16901 (loadenv_mod_CFLAGS): Likewise.
16902 (loadenv_mod_LDFLAGS): Likewise.
16904 * include/grub/envblk.h: New file.
16906 * util/envblk.c: New file.
16908 * util/grub-editenv.c: New file.
16910 * commands/loadenv.c: New file.
16912 2008-07-01 Pavel Roskin <proski@gnu.org>
16914 * include/multiboot2.h (struct multiboot_tag_module): Use char,
16915 not unsigned char. This fixes warnings and is consistent with
16918 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
16920 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
16922 * term/tparm.c (analyze): Always set *popcount.
16924 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
16925 cast to fix a warning.
16927 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
16928 cast to suppress a warning.
16930 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
16931 grub_fshelp_read_file() expects.
16933 * fs/fat.c: Fix UUID calculation on big-endian systems. We
16934 write uuid as a 32-bit value in CPU byte order, so declare and
16937 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
16938 long if the format specifier expects it.
16939 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
16940 * partmap/pc.c (pc_partition_map_iterate): Likewise.
16941 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
16942 long to fix a warning.
16943 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
16944 grub_dprintf() arguments to fix warnings.
16946 2008-06-30 Pavel Roskin <proski@gnu.org>
16948 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
16949 install_bsd_part immediately before core.img is embedded or
16950 modified on disk. This fixes core.img verification if core.img
16951 cannot be embedded.
16953 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
16954 core_path to calculate the blocklist.
16955 Patch from Javier Martín <lordhabbit@gmail.com>
16957 2008-06-29 Robert Millan <rmh@aybabtu.com>
16959 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
16960 block to disk block.
16961 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
16962 Patch from Niels Böhm <bitbucket@arcor.de>
16964 2008-06-29 Robert Millan <rmh@aybabtu.com>
16966 * util/update-grub_lib.in (font_path): Search for fonts in
16967 /boot/grub first, which is more likely to be readable (we aren't
16968 deciding where fonts live, just looking for them).
16970 2008-06-26 Pavel Roskin <proski@gnu.org>
16972 * util/biosdisk.c (read_device_map): Don't leave dead map
16973 entries for devices failing stat() check.
16975 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
16976 core_path_dev for the core.img path on the target device.
16978 2008-06-26 Robert Millan <rmh@aybabtu.com>
16980 * disk/fs_uuid.c: New file.
16981 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
16982 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
16983 (fs_uuid_mod_LDFLAGS): New variables.
16984 * include/grub/disk.h (grub_disk_dev_id): Add
16985 `GRUB_DISK_DEVICE_UUID_ID'.
16986 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
16987 implement iterate().
16989 2008-06-26 Robert Millan <rmh@aybabtu.com>
16991 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
16992 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
16993 Linux image includes no initrd.
16995 2008-06-21 Javier Martín <lordhabbit@gmail.com>
16997 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
16998 call to resolve the core image location that effectively appended the
17001 2008-06-21 Robert Millan <rmh@aybabtu.com>
17003 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
17006 * util/grub.d/10_hurd.in: ... to here ...
17007 * util/grub.d/10_linux.in: ... and here.
17009 2008-06-19 Robert Millan <rmh@aybabtu.com>
17011 * kern/main.c (grub_main): Export `prefix' variable immediately
17012 after it has been set by grub_machine_set_prefix().
17014 2008-06-19 Robert Millan <rmh@aybabtu.com>
17016 * commands/search.c (search_label, search_fs_uuid, search_file): Print
17017 search result when not saving to variable, not the other way around.
17018 When saving to variable, abort iteration as soon as a match is found.
17020 2008-06-19 Robert Millan <rmh@aybabtu.com>
17022 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
17023 check for partition that provides /boot/grub. Its logic is flawed,
17024 as it prevents prepare_grub_to_access_device() from being called
17027 2008-06-19 Robert Millan <rmh@aybabtu.com>
17029 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
17030 "insmod" command directly when abstraction modules are needed,
17031 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
17032 since it had already been processed).
17034 2008-06-19 Pavel Roskin <proski@gnu.org>
17036 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
17037 changed. This is needed in case GRUB_LIBDIR changes.
17038 * conf/i386-ieee1275.rmk: Likewise.
17039 * conf/i386-linuxbios.rmk: Likewise.
17040 * conf/i386-pc.rmk: Likewise.
17041 * conf/powerpc-ieee1275.rmk: Likewise.
17043 2008-06-18 Pavel Roskin <proski@gnu.org>
17045 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
17046 kernel_elf_symlist.c to symlist.c for consistency with other
17047 architectures. Update all users.
17048 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
17050 2008-06-18 Robert Millan <rmh@aybabtu.com>
17052 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
17055 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
17056 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
17057 a RAID device, run setup() for all members independently on whether
17058 LVM abstraction is being used.
17059 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
17060 If grub-mkimage has set `*install_dos_part == -2', don't override this
17062 Perform *install_dos_part adjustments independently on whether
17063 we're embedding or not.
17064 Clarify error message when image is too big for embedding.
17065 Remove duplicate *install_dos_part stanza.
17067 2008-06-17 Robert Millan <rmh@aybabtu.com>
17069 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
17070 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
17072 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
17073 values in grub_ofconsole_normal_color and
17074 grub_ofconsole_highlight_color (they're not directly related to
17075 background and foreground).
17076 (grub_ofconsole_setcolorstate): Extract background and foreground
17077 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
17079 2008-06-17 Robert Millan <rmh@aybabtu.com>
17081 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
17082 /boot/grub for the check in last commit, not /boot (they could be
17083 different partitions).
17085 2008-06-16 Robert Millan <rmh@aybabtu.com>
17087 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
17088 asked to setup access for the same partition that provides /boot,
17089 don't bother using UUIDs since our root already has the value we
17092 2008-06-16 Robert Millan <rmh@aybabtu.com>
17094 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
17096 Patch from Sven Mueller <sven@debian.org>.
17098 2008-06-16 Robert Millan <rmh@aybabtu.com>
17100 * util/update-grub.in: Check for $EUID instead of $UID.
17101 Reported by Vincent Zweije.
17103 2008-06-16 Bean <bean123ch@gmail.com>
17105 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
17106 (grub_ext2_read_block): Likewise.
17107 (grub_ext2_read_inode): Likewise.
17108 (grub_ext2_mount): Likewise.
17109 (grub_ext2_close): Likewise.
17110 (grub_ext3_get_journal): Removed.
17112 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
17113 (grub_reiserfs_read_symlink): Likewise.
17114 (grub_reiserfs_mount): Likewise.
17115 (grub_reiserfs_open): Likewise.
17116 (grub_reiserfs_read): Likewise.
17117 (grub_reiserfs_close): Likewise.
17118 (grub_reiserfs_get_journal): Removed.
17120 * fs/fshelp.c (grub_fshelp_read): Removed.
17121 (grub_fshelp_map_block): Likewise.
17123 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
17124 (grub_fshelp_journal): Likewise.
17125 (grub_fshelp_read): Likewise.
17126 (grub_fshelp_map_block): Likewise.
17128 2008-06-16 Pavel Roskin <proski@gnu.org>
17130 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
17131 floating point anymore.
17132 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
17134 2008-06-15 Pavel Roskin <proski@gnu.org>
17136 * commands/ls.c (grub_ls_list_files): Use integer calculations
17137 for human readable format, avoid floating point use.
17138 * kern/misc.c (grub_ftoa): Remove.
17139 (grub_vsprintf): Remove floating point support.
17141 2008-06-15 Robert Millan <rmh@aybabtu.com>
17143 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
17145 Reported by Max Vozeler.
17147 2008-06-15 Robert Millan <rmh@aybabtu.com>
17149 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
17150 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
17152 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
17153 the beginning of the prefix.
17155 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
17156 It is assumed that if we have a memdisk, grub-mkimage has set
17157 grub_prefix to include the "(memdisk)" drive in it.
17159 2008-06-15 Robert Millan <rmh@aybabtu.com>
17161 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
17162 Initialize keyboard controller after registering the terminal, so that
17163 grub_printf() can be called from grub_keyboard_controller_init().
17165 2008-06-15 Robert Millan <rmh@aybabtu.com>
17167 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
17168 extent-btree which is written as big endian on disk.
17169 Reported by Alain Greppin <al@chilibi.org>.
17171 2008-06-14 Robert Millan <rmh@aybabtu.com>
17173 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
17174 * util/i386/pc/grub-install.in (modules): Likewise.
17176 2008-06-13 Pavel Roskin <proski@gnu.org>
17178 * commands/ls.c (grub_ls_list_files): Fix format warnings.
17180 2008-06-13 Bean <bean123ch@gmail.com>
17182 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
17184 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
17186 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
17187 to indicate sparse block.
17189 2008-06-12 Pavel Roskin <proski@gnu.org>
17191 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
17192 number, grub_fshelp_read() does it for us.
17194 * fs/fshelp.c (grub_fshelp_read): New function. Implement
17195 linear disk read with journal translation.
17196 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
17197 * include/grub/fshelp.h: Declare grub_fshelp_read().
17199 2008-06-09 Pavel Roskin <proski@gnu.org>
17201 * fs/minix.c (grub_minix_mount): Handle error reading
17204 2008-06-08 Robert Millan <rmh@aybabtu.com>
17206 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
17207 don't append the RAID prefix afterwards.
17208 Reported by Clint Adams.
17210 2008-06-08 Robert Millan <rmh@aybabtu.com>
17212 Based on description from Pavel:
17213 * kern/disk.c (grub_disk_check_range): Rename to ...
17214 (grub_disk_adjust_range): ... this. Add a comment explaining the
17215 tasks performed by this function.
17217 2008-06-08 Robert Millan <rmh@aybabtu.com>
17219 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
17220 `num_serial' (for consistency with other variables).
17221 (struct grub_ntfs_data): Add `uuid' member.
17222 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
17223 (grub_ntfs_uuid): New function.
17224 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
17226 2008-06-07 Pavel Roskin <proski@gnu.org>
17228 * util/biosdisk.c (open_device): Revert last change to the
17229 function, it broke installation. The sector needs to be
17230 different dependent on which device is opened.
17232 2008-06-06 Robert Millan <rmh@aybabtu.com>
17234 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
17235 rest of GRUB, and breakage doesn't happen if its value were modified.
17237 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17238 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
17239 a constant (same value).
17240 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
17241 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
17243 2008-06-06 Robert Millan <rmh@aybabtu.com>
17245 * util/biosdisk.c (open_device): Do not modify sector offset when
17246 accessing a partition. kern/disk.c already handles this for us.
17248 2008-06-06 Robert Millan <rmh@aybabtu.com>
17250 * util/grub-emu.c (grub_machine_init): Move code in this function from
17252 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
17253 segfault in case grub_printf() is called).
17255 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
17256 grub_probe. Update all users not to explicitly add it again.
17257 (grub_device): New variable; contains corresponding device for grubdir.
17258 (fs_module, partmap_module, devabstraction_module): Pass
17259 `--device ${grub_device}' to grub_probe to avoid traversing /dev
17262 2008-06-05 Robert Millan <rmh@aybabtu.com>
17264 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
17265 is found, print it (same layout as with labels).
17267 2008-06-04 Robert Millan <rmh@aybabtu.com>
17269 * util/biosdisk.c (get_drive): Rename to ...
17270 (find_grub_drive): ... this. Update all users.
17272 (get_os_disk): Rename to ...
17273 (convert_system_partition_to_system_disk): ... this. Update all users.
17275 (find_drive): Rename to ...
17276 (find_system_device): ... this. Update all users.
17278 2008-06-04 Robert Millan <rmh@aybabtu.com>
17280 * util/biosdisk.c (get_os_disk): Handle IDA devices.
17281 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17282 (make_device_map): Likewise.
17284 2008-06-01 Robert Millan <rmh@aybabtu.com>
17286 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
17287 before dereferencing it.
17289 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
17290 union with fat12/fat16-specific ones. Add some new fields, including
17291 `num_serial' for both versions.
17292 (struct grub_fat_data): Add `uuid' member.
17293 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
17294 names. Initialize `data->uuid' using `num_serial'.
17295 (grub_fat_uuid): New function.
17296 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
17298 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
17299 (grub_reiserfs_uuid): New function.
17300 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
17303 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
17304 (grub_xfs_uuid): New function.
17305 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
17307 2008-06-01 Robert Millan <rmh@aybabtu.com>
17309 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
17310 code that is backward compatible with pre-uuid search command.
17312 2008-05-31 Robert Millan <rmh@aybabtu.com>
17314 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
17315 floppies after everything else, to ensure floppy drive isn't accessed
17316 unnecessarily (patch from Bean).
17318 2008-05-31 Robert Millan <rmh@aybabtu.com>
17320 * commands/search.c (search_label, search_fs_uuid, search_file): Do
17321 not print device names when we were asked to set a variable.
17323 2008-05-31 Robert Millan <rmh@aybabtu.com>
17325 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
17326 using "cursor-on" and "cursor-off" commands (understood at least by
17327 the Open Firmware flavour on OLPC).
17329 2008-05-31 Michael Gorven <michael@gorven.za.net>
17331 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
17332 on and off sequences.
17334 2008-05-31 Robert Millan <rmh@aybabtu.com>
17336 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
17337 * util/update-grub.in: Likewise.
17339 2008-05-30 Pavel Roskin <proski@gnu.org>
17341 * util/biosdisk.c (linux_find_partition): Simplify logic and
17342 make the code more universal. Keep special processing for
17343 devfs, but use a simple rule for all other devices. If the
17344 device ends with a number, append 'p' and the partition number.
17345 Otherwise, append only the partition number.
17347 2008-05-30 Robert Millan <rmh@aybabtu.com>
17349 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
17350 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
17351 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
17352 the `root' parameter to Linux.
17354 2008-05-30 Robert Millan <rmh@aybabtu.com>
17356 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
17357 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
17358 --fs_uuid with --fs-uuid.
17359 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
17360 all filesystems support them).
17362 2008-05-30 Robert Millan <rmh@aybabtu.com>
17364 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
17365 grub_printf() flags, since we're printing in units of 2 bytes.
17367 2008-05-30 Robert Millan <rmh@aybabtu.com>
17369 * util/grub.d/00_header.in: Remove obsolete comment referencing
17370 convert_system_path_to_grub_path().
17371 * util/update-grub.in: Likewise.
17372 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
17373 (convert_system_path_to_grub_path): Add a warning message explaining
17374 that this function is deprecated. Rely on is_path_readable_by_grub()
17375 for the readability checks.
17376 (font_path): Use is_path_readable_by_grub() for the readability
17377 check rather than convert_system_path_to_grub_path().
17379 2008-05-30 Robert Millan <rmh@aybabtu.com>
17381 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
17382 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
17383 converting it first.
17384 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
17385 grub.cfg for access to font file, and afterwards call it again to set
17388 2008-05-30 Robert Millan <rmh@aybabtu.com>
17390 * commands/search.c (options): Add --fs_uuid option.
17391 (search_fs_uuid): New function.
17392 (grub_cmd_search): Fix --set argument passing.
17393 Use search_fs_uuid() when requested via --fs_uuid.
17394 (grub_search_init): Update help message.
17395 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
17396 and redeclare it as an array of 16-bit words.
17397 (grub_ext2_uuid): New function.
17398 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
17399 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
17400 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
17401 (GRUB_DEVICE_BOOT_UUID): New variables.
17402 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
17403 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
17405 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
17406 just assume `root' variable has the right value.
17407 * util/grub.d/10_linux.in: Likewise.
17408 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
17410 (main): Recognise `-t fs_uuid' argument.
17412 2008-05-30 Robert Millan <rmh@aybabtu.com>
17414 * util/biosdisk.c (map): Redefine structure to hold information
17415 about GRUB drive name.
17416 (get_drive): Reimplement without assuming (and verifying) BIOS-like
17418 (call_hook): Remove.
17419 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
17420 member. Assume drive has partitions.
17421 (grub_util_biosdisk_open): Access device names via `.device' struct
17423 (open_device): Likewise.
17424 (find_drive): Likewise.
17425 (read_device_map): Adjust map[] usage to match the new struct
17426 definition. Don't check for duplicates (still possible, but not cheap
17428 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
17429 (make_device_name): Remove assumption of BIOS-like drive names.
17431 2008-05-30 Pavel Roskin <proski@gnu.org>
17433 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
17434 compiling execute.c doesn't need grub_script.tab.h anymore.
17435 (normal/command.c_DEPENDENCIES): Likewise.
17436 (normal/function.c_DEPENDENCIES): Likewise.
17437 * conf/i386-ieee1275.rmk: Likewise.
17438 * conf/i386-linuxbios.rmk: Likewise.
17439 * conf/i386-pc.rmk: Likewise.
17440 * conf/powerpc-ieee1275.rmk: Likewise.
17441 * conf/sparc64-ieee1275.rmk: Likewise.
17443 2008-05-29 Pavel Roskin <proski@gnu.org>
17445 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
17446 when scanning metadata for volume group name.
17448 * include/grub/script.h: Don't include grub_script.tab.h. It's
17449 a generated file, which may only be included from the files with
17450 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
17451 use union YYSTYPE, as the later allows forward declaration.
17452 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
17454 2008-05-29 Robert Millan <rmh@aybabtu.com>
17456 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
17457 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
17458 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
17459 (grub_console_checkkey): Add grub_dprintf() call to report unknown
17462 2008-05-29 Robert Millan <rmh@aybabtu.com>
17464 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
17465 control key combinations.
17467 2008-05-29 Robert Millan <rmh@aybabtu.com>
17469 * util/powerpc/ieee1275/grub-install.in: Move from here ...
17470 * util/ieee1275/grub-install.in: ... to here.
17471 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
17472 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
17473 (grub_install_SOURCES): Likewise.
17475 2008-05-29 Robert Millan <rmh@aybabtu.com>
17477 * fs/affs.c: Update copyright year.
17478 * fs/ext2.c: Likewise.
17479 * fs/fshelp.c: Likewise.
17480 * fs/hfsplus.c: Likewise.
17481 * fs/ntfs.c: Likewise.
17482 * fs/xfs.c: Likewise.
17483 * include/grub/fshelp.h: Likewise.
17484 * util/grub-mkdevicemap.c: Likewise.
17486 2008-05-28 Robert Millan <rmh@aybabtu.com>
17488 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
17489 might need to be fatfs to support some firmware implementations
17492 2008-05-28 Robert Millan <rmh@aybabtu.com>
17494 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
17496 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17497 (make_device_map): Likewise.
17499 2008-05-20 Bean <bean123ch@gmail.com>
17501 * fs/fshelp.c (grub_fshelp_map_block): New function.
17502 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
17503 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
17505 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
17506 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
17507 (grub_fshelp_journal): New structure.
17508 (grub_fshelp_map_block): New function prototype.
17509 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
17510 (grub_fshelp_map_block): Likewise.
17512 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
17513 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
17514 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
17515 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
17516 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
17517 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
17518 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
17519 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
17520 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
17521 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
17522 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
17523 (grub_ext2_sblock): New members for journal support.
17524 (grub_ext3_journal_header): New structure.
17525 (grub_ext3_journal_revoke_header): Likewise.
17526 (grub_ext3_journal_block_tag): Likewise.
17527 (grub_ext3_journal_sblock): Likewise.
17528 (grub_fshelp_node): New members logfile and journal.
17529 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
17530 grub_fshelp_map_block to get real block number.
17531 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
17533 (grub_ext2_read_inode): Likewise.
17534 (grub_ext3_get_journal): New function.
17535 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
17536 (grub_ext2_close): Release memory used by journal.
17538 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
17539 (REISERFS_MAGIC_DESC_BLOCK): New macro.
17540 (grub_reiserfs_transaction_header): Renamed to
17541 grub_reiserfs_description_block, replace field data with real_blocks.
17542 (grub_reiserfs_commit_block): New structure.
17543 (grub_reiserfs_data): New member journal.
17544 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
17546 (grub_reiserfs_read_symlink): Likewise.
17547 (grub_reiserfs_iterate_dir): Likewise.
17548 (grub_reiserfs_open): Likewise.
17549 (grub_reiserfs_read): Likewise.
17550 (grub_reiserfs_get_journal): New function.
17551 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
17552 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
17553 using grub_reiserfs_get_journal.
17554 (grub_reiserfs_close): Release memory used by journal.
17556 * fs/affs.c (grub_affs_read_block): Change block type to
17557 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
17559 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
17561 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
17563 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
17565 * fs/udf.c (grub_udf_read_block): Change block type to
17566 grub_disk_addr_t. Use type cast to avoid warning.
17568 * fs/xfs.c (grub_xfs_read_block): Likewise.
17570 2008-05-16 Christian Franke <franke@computer.org>
17572 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
17573 to ensure that break with ESC will always work.
17574 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
17575 Remove ESC from keyboard queue.
17577 2008-05-16 Christian Franke <franke@computer.org>
17579 * util/biosdisk.c: [__CYGWIN__] Add includes.
17580 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
17581 (get_os_disk): Move variable declarations to OS specific
17582 parts to avoid warning.
17583 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
17584 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
17585 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
17587 * util/getroot.c: [__CYGWIN__] Add includes.
17588 (strip_extra_slashes): Fix "/" case.
17589 [__CYGWIN__] (get_win32_path): New function.
17590 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
17591 [__CYGWIN__] (find_root_device): Disable.
17592 [__CYGWIN__] (get_bootsec_serial): New function.
17593 [__CYGWIN__] (find_cygwin_root_device): Likewise.
17594 [__linux__] (grub_guess_root_device): Add early returns to simplify
17596 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
17597 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
17598 check for Linux only.
17600 2008-05-15 Bean <bean123ch@gmail.com>
17602 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
17603 keyboard hang problem in apple's intel mac.
17605 2008-05-09 Robert Millan <rmh@aybabtu.com>
17607 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
17609 * util/grub-mkdevicemap.c (get_virtio_disk_name)
17610 (make_device_map): Likewise.
17611 Reported by Aurelien Jarno <aurel32@debian.org>
17613 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
17615 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
17616 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
17617 (make_device_map): Output entries for xvd type disks.
17619 2008-05-07 Robert Millan <rmh@aybabtu.com>
17621 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
17623 * util/grub-mkdevicemap.c (get_cciss_disk_name)
17624 (make_device_map): Likewise.
17625 Reported by Roland Dreier <rdreier@cisco.com>
17627 2008-05-07 Robert Millan <rmh@aybabtu.com>
17629 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
17630 grub_strstr() call. Correct a few mistakes in failure path handling.
17632 2008-05-06 Robert Millan <rmh@aybabtu.com>
17634 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
17635 Do not print a trailing slash (therefore, the root directory is an
17637 (convert_system_path_to_grub_path): Do not remove trailing slash
17638 from make_system_path_relative_to_its_root() output.
17640 * util/i386/pc/grub-install.in: Add trailing slash to output from
17641 make_system_path_relative_to_its_root().
17643 2008-05-06 Robert Millan <rmh@aybabtu.com>
17645 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
17646 ensures that output lines aren't intermangled with those sent to
17647 stderr (via grub_util_info()).
17648 * util/grub-probe.c (grub_refresh): Likewise.
17649 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
17651 2008-05-05 Christian Franke <franke@computer.org>
17653 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
17654 Add Cygwin device names.
17655 (get_ide_disk_name) [__CYGWIN__]: Likewise.
17656 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
17657 (check_device): Return error instead of success on empty name.
17658 (make_device_map): Move label inside linux specific code to
17659 prevent compiler warning.
17661 2008-04-30 Robert Millan <rmh@aybabtu.com>
17663 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
17664 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
17666 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
17668 2008-04-29 Robert Millan <rmh@aybabtu.com>
17670 * docs/grub.cfg: New file (example GRUB configuration).
17672 2008-04-26 Robert Millan <rmh@aybabtu.com>
17674 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
17675 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
17676 and `disk/ieee1275/nand.c'.
17678 2008-04-25 Bean <bean123ch@gmail.com>
17680 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
17683 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
17684 change the buffer size to 4096 for cdrom device.
17686 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
17688 (_linux_mod_SOURCES): New variable.
17689 (_linux_mod_CFLAGS): Likewise.
17690 (_linux_mod_LDFLAGS): Likewise.
17691 (linux_mod_SOURCES): Likewise.
17692 (linux_mod_CFLAGS): Likewise.
17693 (linux_mod_LDFLAGS): Likewise.
17694 (nand_mod_SOURCES): Likewise.
17695 (nand_mod_CFLAGS): Likewise.
17696 (nand_mod_LDFLAGS): Likewise.
17698 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
17699 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
17700 type property. (nand device in olpc don't have this property)
17702 * include/grub/disk.h (grub_disk_dev_id): New macro
17703 GRUB_DISK_DEVICE_NAND_ID.
17705 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
17706 function prototype.
17707 (grub_rescue_cmd_initrd): Likewise.
17709 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
17710 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
17711 ofw_cif_handler and ofw_idt, adjust padding number.
17713 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
17714 GRUB_MACHINE_IEEE1275 is defined.
17716 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
17717 Use NESTED_FUNC_ATTR attribute on the hook parameter.
17719 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
17720 on nested function heap_init.
17721 (grub_upper_mem): New variable for i386-ieee1275.
17722 (grub_get_extended_memory): New function for i386-ieee1275.
17723 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
17725 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
17726 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
17729 * loader/i386/ieee1275/linux.c: New file.
17731 * loader/i386/ieee1275/linux_normal.c: New file.
17733 * disk/ieee1275/nand.c: New file.
17735 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
17737 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
17739 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
17741 2008-04-18 Robert Millan <rmh@aybabtu.com>
17743 Restructures early code path on ieee1275 to unify grub_main() as
17744 the first C function that is executed in every platform.
17746 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
17747 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
17749 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
17750 * kern/ieee1275/cmain.c (cmain): Rename to ...
17751 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
17752 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
17755 2008-04-18 Robert Millan <rmh@aybabtu.com>
17757 * util/update-grub.in: Fix syntax error when setting
17758 `GRUB_PRELOAD_MODULES'.
17759 Reported by Stephane Chazelas <stephane@artesyncp.com>
17761 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
17763 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
17764 section into account, newer toolchains generate unique build ids
17765 * configure.ac: remove the test for --build-id=none acceptance,
17766 we want build ids to be preserved
17767 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
17768 far from other sections don't cause the raw binary images grow
17771 2008-04-15 Robert Millan <rmh@aybabtu.com>
17773 * disk/lvm.c: Update copyright year.
17774 * kern/misc.c: Likewise.
17776 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
17778 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
17779 there is no memory left for physical volume name.
17781 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
17783 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
17784 volume name mapping to support bigger than 9 character names properly.
17786 2008-04-13 Robert Millan <rmh@aybabtu.com>
17788 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
17789 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
17791 2008-04-13 Christian Franke <franke@computer.org>
17793 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
17794 to create a floppy emulation boot CD when non emulation mode
17796 Enable Joliet CD filesystem extension.
17798 2008-04-13 Robert Millan <rmh@aybabtu.com>
17800 * kern/misc.c (grub_strncat): Fix off-by-one error.
17801 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
17803 * kern/env.c (grub_env_context_close): Clear current context, not
17805 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
17807 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
17809 2008-04-13 Robert Millan <rmh@aybabtu.com>
17811 Improve robustness when handling LVM.
17813 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
17814 (and leave `*p' unmodified).
17815 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
17817 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
17818 iterating through it.
17819 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
17821 (grub_lvm_scan_device): Check the return value (and fail gracefully
17822 when due) on each grub_lvm_getvalue() or grub_strstr() call.
17823 Don't assume `vg->pvs != NULL' when iterating through it.
17825 2008-04-13 Robert Millan <rmh@aybabtu.com>
17827 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
17828 * genmk.rb (partmap): New variable.
17829 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
17830 (#{partmap}): New target rule.
17831 * genpartmaplist.sh: New file.
17832 * Makefile.in (pkglib_DATA): Add partmap.lst.
17833 (partmap.lst): New target rule.
17834 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
17835 modules (including all partition maps), instead of preloading them.
17837 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
17839 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
17840 `linux-boot-prober' (if installed) to detect other operating
17841 systems which are installed on the computer and add them to
17843 * conf/common.rmk: Build and install 30_os-prober.
17845 2008-04-12 Robert Millan <rmh@aybabtu.com>
17847 * kern/powerpc/ieee1275/init.c: Move from here ...
17848 * kern/ieee1275/init.c: ... to here. Update all users.
17850 * kern/powerpc/ieee1275/cmain.c: Move from here ...
17851 * kern/ieee1275/cmain.c: ... to here. Update all users.
17853 * kern/powerpc/ieee1275/openfw.c: Move from here ...
17854 * kern/ieee1275/openfw.c: ... to here. Update all users.
17856 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
17857 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
17859 2008-04-10 Pavel Roskin <proski@gnu.org>
17861 * configure.ac: Always use "_cv_" in cache variables for
17862 compatibility with Autoconf 2.62.
17864 2008-04-07 Robert Millan <rmh@aybabtu.com>
17866 Revert grub/machine/init.h addition by Pavel (since it breaks on
17867 i386-ieee1275 and others):
17868 * util/i386/pc/misc.c: Remove grub/machine/init.h.
17869 * util/powerpc/ieee1275/misc.c: Likewise.
17871 2008-04-07 Robert Millan <rmh@aybabtu.com>
17873 * util/grub-probe.c (probe): Improve error message.
17875 2008-04-07 Robert Millan <rmh@aybabtu.com>
17877 * util/biosdisk.c (read_device_map): Skip devices that don't exist
17878 (this prevents the presence of a bogus entry from ruining the whole
17881 2008-04-06 Pavel Roskin <proski@gnu.org>
17883 * util/biosdisk.c: Include grub/util/biosdisk.h.
17884 * util/grub-fstest.c (execute_command): Make static.
17885 * util/grub-mkdevicemap.c (check_device): Likewise.
17886 * util/i386/pc/misc.c: Include grub/machine/init.h.
17887 * util/powerpc/ieee1275/misc.c: Likewise.
17888 * util/lvm.c: Include grub/util/lvm.h.
17889 * util/misc.c: Include grub/kernel.h, grub/misc.h and
17891 * util/raid.c: Include grub/util/raid.h.
17892 (grub_util_getdiskname): Make static.
17894 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
17895 grub_hostfs_fini(), as they are called from grub_init_all() and
17896 grub_fini_all() respectively. This fixes an infinite loop in
17897 grub-fstest due to double registration of hostfs.
17898 Reported by Christian Franke <Christian.Franke@t-online.de>
17900 2008-04-05 Pavel Roskin <proski@gnu.org>
17902 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
17903 all 8 functions. Otherwise, probe function 0 only.
17905 2008-04-04 Pavel Roskin <proski@gnu.org>
17907 * commands/lspci.c (grub_lspci_iter): Print the bus number
17910 * commands/lspci.c (grub_pci_classes): Fix typos.
17911 (grub_lspci_iter): Don't print func twice. Print vendor ID
17912 before device ID, as it's normally done.
17914 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
17915 Fix signedness warnings.
17916 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
17918 * util/ieee1275/get_disk_name.c: Include config.h so that
17919 _GNU_SOURCE is defined and getline() is declared. Mark an
17920 unused argument as such. Fix a signedness warning.
17922 2008-04-02 Pavel Roskin <proski@gnu.org>
17924 * genkernsyms.sh.in: Use more robust assignments for CC and
17925 srcdir. Quote srcdir.
17926 * gensymlist.sh.in: Likewise. Assert at the compile time that
17927 the symbol table is not empty.
17929 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
17930 * fs/cpio.c (grub_cpio_read): Likewise.
17932 2008-04-01 Pavel Roskin <proski@gnu.org>
17934 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
17935 * disk/host.c (grub_host_open): Likewise.
17936 * disk/loopback.c (grub_loopback_open): Likewise.
17937 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
17938 disk->id as in disk/host.c, not a multi-character constant.
17940 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
17941 later is obsolete, potentially dangerous and sets a bad example.
17942 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
17943 * util/misc.c (grub_util_get_image_size): Likewise.
17945 * disk/loopback.c (options): Improve help for "--partitions".
17947 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
17948 options to align them with the short options, e.g. "echo -e".
17950 2008-03-31 Bean <bean123ch@gmail.com>
17952 * video/reader/png.c (grub_png_data): New member is_16bit and
17954 (grub_png_decode_image_header): Detect 16 bit png image.
17955 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
17956 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
17957 (grub_video_reader_png): Release memory occupied by image_data.
17959 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
17961 (grub_nfs_mount): Skip the test for sector per cluster.
17963 * include/grub/ntfs.h (MAX_SPC): Removed.
17965 2008-03-31 Bean <bean123ch@gmail.com>
17967 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
17968 (grub_probe_SOURCES): Add fs/afs.c.
17969 (grub_fstest_SOURCES): Likewise.
17970 (afs_mod_SOURCES): New variable.
17971 (afs_mod_CFLAGS): Likewise.
17972 (afs_mod_LDFLAGS): Likewise.
17974 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
17975 (grub_emu_SOURCES): Likewise.
17977 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17979 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17981 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
17983 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17985 * fs/afs.c: New file.
17987 2008-03-30 Pavel Roskin <proski@gnu.org>
17989 * disk/host.c: Include grub/misc.h to fix a warning.
17990 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
17991 warnings about implicit declarations.
17993 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
17995 * include/grub/i386/loader.h: Change declaration of
17996 grub_linux_boot() to match what grub_loader_set() expects.
17997 * util/getroot.c (grub_guess_root_device): Return const char* to
17999 * util/grub-probe.c (probe): Fix a warning about uninitialized
18000 abstraction_name variable.
18001 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
18002 second argument as unused to fix a warning.
18004 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
18005 missing grub_error() call.
18007 * util/update-grub_lib.in: Define datarootdir, since Autoconf
18008 2.60 and newer uses it to define datadir.
18010 * commands/sleep.c: Fix warning about implicit declaration.
18011 * disk/memdisk.c: Likewise.
18012 * loader/aout.c: Likewise.
18013 * loader/i386/bsd_normal.c: Likewise.
18014 * util/grub-probe.c: Likewise.
18016 * commands/i386/cpuid.c (has_longmode): Make static.
18017 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
18018 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
18020 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
18021 GDT. This is more robust, as %ds can change.
18022 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
18023 calling real_to_prot().
18024 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
18026 2008-03-28 Pavel Roskin <proski@gnu.org>
18028 * kern/i386/pc/startup.S: Assert that uncompressed functions
18029 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
18030 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
18031 code, as they push parts of the code (error handlers) beyond
18032 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
18033 code as correctness and size.
18035 2008-03-28 Pavel Roskin <proski@gnu.org>
18037 * kern/i386/pc/startup.S
18038 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
18039 data block address to the real mode, keep offset minimal. This
18040 works around a bug in AWARD BIOS on old Athlon systems, which
18041 makes CD detection hang.
18043 2008-03-26 Pavel Roskin <proski@gnu.org>
18045 * normal/color.c (grub_parse_color_name_pair): Make `name' a
18047 * include/grub/normal.h: Add grub_parse_color_name_pair()
18050 2008-03-24 Bean <bean123ch@gmail.com>
18052 * disk/i386/pc/biosdisk.c (cd_start): Removed.
18053 (cd_count): Removed.
18054 (cd_drive): New variable.
18055 (grub_biosdisk_get_drive): Don't check for (cdN) device.
18056 (grub_biosdisk_call_hook): Likewise.
18057 (grub_biosdisk_iterate): Change cdrom detection method.
18058 (grub_biosdisk_open): Replace cd_start with cd_drive.
18059 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
18060 detect cdrom device.
18062 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
18064 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
18065 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
18066 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
18067 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
18068 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
18069 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
18070 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
18071 (grub_biosdisk_cdrp): New structure.
18072 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
18074 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
18076 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
18079 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
18082 2008-03-20 Robert Millan <rmh@aybabtu.com>
18084 Remove 2 TiB limit in ata.mod.
18085 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
18086 (grub_ata_dumpinfo): Print sector count with 0x%llx.
18087 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
18088 grub_uint64_t instead of grub_uint32_t.
18090 2008-03-05 Bean <bean123ch@gmail.com>
18092 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
18093 (grub_multiboot): Set boot device.
18095 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
18097 2008-03-02 Bean <bean123ch@gmail.com>
18099 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
18102 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
18104 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
18107 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
18110 * docs/fdl.texi: New file.
18112 * docs/mdate-sh: New file. Copied from gnulib.
18113 * docs/texinfo.tex: Likewise.
18115 * config.guess: Updated from gnulib.
18116 * install-sh: Likewise.
18118 2008-02-28 Robert Millan <rmh@aybabtu.com>
18120 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
18121 (aout_mod_SOURCES): New variable.
18122 (aout_mod_CFLAGS): Likewise.
18123 (aout_mod_LDFLAGS): Likewise.
18125 * conf/i386-ieee1275.rmk: Likewise.
18127 2008-02-28 Robert Millan <rmh@aybabtu.com>
18129 * util/update-grub.in: Reorganise terminal validity check. Accept
18130 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
18131 Based on suggestion by Franklin PIAT.
18133 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
18135 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
18137 * util/getroot.c (grub_util_check_block_device): New function that
18138 returns the given argument if it is a block device and returns NULL else.
18139 * util/grub-probe.c (argument_is_device): New variable.
18140 (probe): Promote device_name from a variable to an argument. Receive
18141 device_name from grub_util_check_block_device() if path is NULL and from
18142 grub_guess_root_device() else. Do not free() device_name anymore.
18143 (options): Introduce new parameter '-d, --device'.
18144 (main): Add description of the new parameter to the help screen.
18145 Rename path variable to argument. Set argument_is_device if the '-d'
18146 option is given. Pass argument to probe() depending on
18147 argument_is_device.
18149 2008-02-24 Bean <bean123ch@gmail.com>
18151 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
18152 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
18153 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
18154 (GRUB_ISO9660_VOLDESC_PART): Likewise.
18155 (GRUB_ISO9660_VOLDESC_END): Likewise.
18156 (grub_iso9660_primary_voldesc): New member escape.
18157 (grub_iso9660_data): New member joliet.
18158 (grub_iso9660_convert_string): New function.
18159 (grub_iso9660_mount): Detect joliet extension.
18160 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
18161 (grub_iso9660_iso9660_label): Likewise.
18163 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
18164 (grub_setup_SOURCES): Add fs/udf.c.
18165 (grub_fstest_SOURCES): Likewise.
18166 (udf_mod_SOURCES): New variable.
18167 (udf_mod_CFLAGS): Likewise.
18168 (udf_mod_LDFLAGS): Likewise.
18170 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
18171 (grub_emu_SOURCES): Likewise.
18173 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18175 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18177 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18179 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18181 * fs/udf.c: New file.
18183 2008-02-24 Robert Millan <rmh@aybabtu.com>
18185 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
18186 (normal/lexer.c_DEPENDENCIES): New variables.
18187 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18188 (normal/lexer.c_DEPENDENCIES): Likewise.
18189 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
18190 (normal/lexer.c_DEPENDENCIES): Likewise.
18191 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
18192 (normal/lexer.c_DEPENDENCIES): Likewise.
18193 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18194 (normal/lexer.c_DEPENDENCIES): Likewise.
18195 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18196 (normal/lexer.c_DEPENDENCIES): Likewise.
18198 2008-02-23 Robert Millan <rmh@aybabtu.com>
18200 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
18201 since they were intended to be in hex. This didn't break previously
18202 because of a bug in gpt_partition_map_iterate() (see below).
18204 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
18205 when checking the validity of GPT header.
18206 Remove `partno', since it always provides the same information as `i'.
18208 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
18210 * include/grub/efi/time.h: Fix a wrong comment.
18212 2008-02-19 Pavel Roskin <proski@gnu.org>
18214 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
18217 2008-02-19 Bean <bean123ch@gmail.com>
18219 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
18220 (aout_mod_SOURCES): New variable.
18221 (aout_mod_CFLAGS): Likewise.
18222 (aout_mod_LDFLAGS): Likewise.
18223 (_bsd_mod_SOURCES): New variable.
18224 (_bsd_mod_CFLAGS): Likewise.
18225 (_bsd_mod_LDFLAGS): Likewise.
18226 (bsd_mod_SOURCES): New variable.
18227 (bsd_mod_CFLAGS): Likewise.
18228 (bsd_mod_LDFLAGS): Likewise.
18230 * include/grub/aout.h: New file.
18232 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
18234 * include/grub/i386/bsd.h: New file.
18236 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
18239 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
18240 function is called, so that it's possible to change it inside the hook.
18241 (grub_elf64_load): Likewise.
18242 (grub_elf_file): Don't close the file if elf header is not found.
18243 (grub_elf_close): Close the file if grub_elf_file fails (The new
18244 grub_elf_file won't close it).
18245 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
18246 (grub_elf64_size): Likewise.
18248 * kern/i386/loader.S (grub_unix_real_boot): New function.
18250 * loader/aout.c: New file.
18252 * loader/i386/bsd.c: New file.
18254 * loader/i386/bsd_normal.c: New file.
18256 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
18258 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
18259 can test other formats.
18261 2008-02-19 Robert Millan <rmh@aybabtu.com>
18263 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
18264 (grub_gpt_partition_type_empty): Redefine with macro from
18265 `<grub/gpt_partition.h>'.
18266 (gpt_partition_map_iterate): Adjust partition type comparison.
18268 Export `entry' as partmap-specific `part.data' struct.
18269 (grub_gpt_header, grub_gpt_partentry): Move from here ...
18271 * include/grub/gpt_partition.h (grub_gpt_header)
18272 (grub_gpt_partentry): ... to here (new file).
18274 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
18276 (grub_gpt_partition_type_bios_boot): New const variable, defined
18277 with macro from `<grub/gpt_partition.h>'.
18279 (setup): Replace `first_start' with `embed_region', which keeps
18280 track of the embed region (and is partmap-agnostic).
18282 Replace find_first_partition_start() with find_usable_region(),
18283 which finds a usable region for embedding using partmap-specific
18284 knowledge (supports PC/MSDOS and GPT).
18286 Fix all assumptions that the embed region start at sector 1, using
18287 `embed_region.start' from now on. Similarly, use `embed_region.end'
18288 rather than `first_start' to calculate available size.
18290 In grub_util_info() message, replace "into after the MBR" with an
18291 indication of the specific sector our embed region starts at.
18293 2008-02-19 Robert Millan <rmh@aybabtu.com>
18295 * DISTLIST: Replace `commands/ieee1275/halt.c' and
18296 `commands/ieee1275/reboot.c' with `commands/halt.c' and
18297 `commands/reboot.c'.
18298 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18299 (halt_mod_SOURCES): Likewise.
18300 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18301 (halt_mod_SOURCES): Likewise.
18303 2008-02-17 Christian Franke <franke@computer.org>
18305 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
18307 2008-02-17 Robert Millan <rmh@aybabtu.com>
18309 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18310 set `first_start' to 0 for non-PC/MSDOS partition maps.
18312 2008-02-16 Robert Millan <rmh@aybabtu.com>
18314 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18315 do not assume partition map is PC/MSDOS before performing checks that
18316 are specific to that layout.
18318 2008-02-13 Robert Millan <rmh@aybabtu.com>
18320 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
18321 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
18322 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
18324 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
18326 * configure.ac: Only a cosmetic change on the handling of
18327 -fno-stack-protector.
18329 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
18331 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
18332 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
18334 (grub_install_SOURCES): Add halt.mod and reboot.mod.
18335 (halt_mod_SOURCES): New variable.
18336 (halt_mod_CFLAGS): Likewise.
18337 (halt_mod_LDFLAGS): Likewise.
18338 (reboot_mod_SOURCES): Likewise.
18339 (reboot_mod_CFLAGS): Likewise.
18340 (reboot_mod_LDFLAGS): Likewise.
18342 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
18343 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
18345 (halt_mod_SOURCES): Likewise.
18346 (reboot_mod_SOURCES): Likewise.
18348 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
18349 commands/i386/pc/reboot.c by commands/reboot.c.
18350 (reboot_mod_SOURCES): Likewise.
18352 * commands/i386/pc/reboot.c: merge this file ...
18354 * commands/ieee1275/reboot.c: ... and this file ...
18356 * commands/reboot.c: ... to this file.
18357 Add some precompiler directive to include the correct header for
18360 * commands/ieee1275/halt.c: move this file ...
18362 * commands/halt.c: ... to here.
18363 Add some precompiler directive to include the correct header for
18366 * include/grub/efi/efi.h (grub_reboot): New function declaration.
18367 (grub_halt): Likewise.
18369 * kern/efi/efi.c (grub_reboot): New function.
18370 (grub_halt): Likewise.
18372 2008-02-12 Robert Millan <rmh@aybabtu.com>
18374 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
18375 /dev (like it is done for /dev/mapper). This doesn't provide support
18376 for EVMS, but at least it is now easy to identify the problem when it
18379 2008-02-11 Robert Millan <rmh@aybabtu.com>
18381 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
18382 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
18383 comparing it with -1, not 0.
18385 2008-02-10 Robert Millan <rmh@aybabtu.com>
18387 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
18389 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18390 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18392 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
18393 `disk/lvm.c' to the end of the list.
18394 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18395 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18397 2008-02-10 Robert Millan <rmh@aybabtu.com>
18399 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
18400 grub_print_error() instead. This will let user know why we're entering
18402 Based on suggestions from Sam Morris.
18404 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
18406 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
18407 on remaining N args, instead of "--" arg N times.
18409 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
18411 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
18412 (fill_with_default_glyph): Changed to use unknown_glyph for fill
18413 pattern for unknown glyphs.
18415 2008-02-09 Robert Millan <rmh@aybabtu.com>
18417 * configure.ac: Probe for `help2man'.
18418 * Makefile.in (builddir): New variable.
18419 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
18420 or otherwise add a few flags/options to it.
18421 (install-local): For every executable utility or script that is
18422 installed, invoke $(HELP2MAN) to install a manpage based on --help
18425 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
18426 that it doesn't prevent --help from working in build tree.
18428 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
18429 with `bug-grub@gnu.org'.
18430 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
18431 * util/update-grub.in (usage): New function.
18432 Implement proper argument check, with support for --help and --version
18433 (as well as existing -y).
18435 2008-02-09 Christian Franke <franke@computer.org>
18437 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
18438 avoid overwriting previous output.
18439 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
18441 2008-02-09 Robert Millan <rmh@aybabtu.com>
18443 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
18446 2008-02-09 Robert Millan <rmh@aybabtu.com>
18448 * commands/sleep.c: New file.
18449 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
18450 (sleep_mod_SOURCES): New variable.
18451 (sleep_mod_CFLAGS): Likewise.
18452 (sleep_mod_LDFLAGS): Likewise.
18454 2008-02-09 Robert Millan <rmh@aybabtu.com>
18456 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
18457 situations in which we can deduce the RAID size and the superblock
18460 2008-02-09 Robert Millan <rmh@aybabtu.com>
18462 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
18463 and return a grub_diskmemberlist_t composed of LVM physical volumes.
18464 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
18466 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
18467 and return a grub_diskmemberlist_t composed of physical array members.
18468 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
18470 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
18472 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
18473 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
18474 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
18476 * util/grub-probe.c (probe): Move partmap probing code from here ...
18477 (probe_partmap): ... to here.
18478 (probe): Use probe_partmap() once for the disk we're probing, and
18479 additionally, when such disk contains a memberlist() struct member,
18480 once for each disk that is contained in the structure returned by
18483 2008-02-09 Robert Millan <rmh@aybabtu.com>
18485 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
18486 environment variable to 'all' in order to obtain debug output from
18488 * util/i386/pc/grub-setup.c (main): Likewise.
18490 2008-02-08 Robert Millan <rmh@aybabtu.com>
18492 * disk/raid.c (grub_raid_scan_device): Check for
18493 `array->device[sb.this_disk.number]' rather than for
18494 `array->device[sb.this_disk.number]->name', since the latter is not
18495 guaranteed to be accessible.
18497 2008-02-08 Robert Millan <rmh@aybabtu.com>
18499 * disk/raid.c: Update copyright.
18500 * fs/cpio.c: Likewise.
18501 * include/grub/raid.h: Likewise.
18502 * loader/i386/pc/multiboot.c: Likewise.
18503 * util/hostfs.c: Likewise.
18505 2008-02-08 Robert Millan <rmh@aybabtu.com>
18507 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
18508 to a grub_disk_t array.
18509 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
18511 (grub_raid_scan_device): Replace `device[x].name' accesses with
18512 `device[x]->name'. Simplify initialization of `array->device[x]'.
18514 2008-02-08 Robert Millan <rmh@aybabtu.com>
18516 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
18517 grub_dprintf() calls.
18518 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
18521 2008-02-07 Christian Franke <franke@computer.org>
18523 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
18524 instead of fseek and ftell to support large files.
18525 (grub_hostfs_read): Likewise.
18527 2008-02-07 Robert Millan <rmh@aybabtu.com>
18529 Patch from Jeroen Dekkers.
18530 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
18531 failure, since successfully reading all array members might not be
18534 2008-02-06 Robert Millan <rmh@aybabtu.com>
18536 * util/grub-probe.c (probe): Simplify partmap probing (with the
18537 assumption that the first word up to the underscore equals to
18540 2008-02-06 Christian Franke <franke@computer.org>
18542 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
18543 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
18544 last block of a cpio or tar stream.
18545 Check for "TRAILER!!!" instead of any empty data
18546 block to detect last block of a cpio stream.
18547 (grub_cpio_dir): Fix constness of variable np.
18548 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
18549 cpio or tar trailer is detected. This fixes a crash
18550 on open of a non existing file.
18552 2008-02-05 Bean <bean123ch@gmail.com>
18554 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
18556 (grub_multiboot_load_elf64): Likewise.
18557 (grub_multiboot): Initialize mbi structure.
18559 * util/grub-fstest.c: Don't include unused header file script.h.
18561 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
18563 (grub_fstest_SOURCES): Likewise.
18565 2008-02-05 Robert Millan <rmh@aybabtu.com>
18567 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
18568 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
18569 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
18570 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
18572 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
18573 (translation_table): Replace hardcoded values with macros
18574 provided by `<grub/term.h>'.
18576 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
18577 (keyboard_map): Correct/add a few values, with macros provided
18578 by `<grub/term.h>'.
18579 (keyboard_map_shift): Zero values that don't differ from their
18580 `keyboard_map' equivalents.
18581 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
18582 Discard the second scan code that is always sent by Caps lock.
18583 Only use `keyboard_map_shift' when it provides a non-zero value,
18584 otherwise fallback to `keyboard_map'.
18586 2008-02-04 Bean <bean123ch@gmail.com>
18588 * Makefile.in (enable_grub_fstest): New variable.
18590 * conf/common.rmk (grub_fstest_init.lst): New rule.
18591 (grub_fstest_init.h): Likewise.
18592 (grub_fstest_init.c): Likewise.
18593 (util/grub-fstest.c_DEPENDENCIES): New variable.
18594 (grub_fstest_SOURCES): Likewise.
18596 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
18598 * util/grub-fstest.c: New file.
18600 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18602 Make grub-setup handle a separate root device.
18604 * util/i386/pc/grub-setup.c (setup): Always open the root device,
18605 so that the root device can be compared with the destination
18607 When embedding the core image, if the root and destination devices
18608 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
18610 When not embedding, set ROOT_DRIVE to 0xFF.
18612 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18614 Add support for having a grub directory in a different drive. This
18615 is still only the data handling part.
18617 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
18618 (codestart): Save %dh in GRUB_ROOT_DRIVE.
18619 (grub_root_drive): New variable.
18621 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
18622 instead of GRUB_BOOT_DRIVE to construct a device name. Set
18623 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
18626 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
18628 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
18630 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
18632 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
18633 is bogus, because PXE booting does not specify any drive
18636 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
18637 am not sure if this is really correct.
18639 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
18640 is always identical to the boot drive when booting from a CD.
18642 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
18644 (root_drive): New variable.
18645 (real_start): Unconditionally set %dh to ROOT_DRIVE.
18646 (setup_sectors): Push %dx right after popping it, because %dh will
18648 (copy_buffer): Restore %dx.
18650 2008-02-03 Robert Millan <rmh@aybabtu.com>
18652 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
18653 use `cdboot.img' for cdrom images.
18655 2008-02-03 Robert Millan <rmh@aybabtu.com>
18657 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
18658 only setup gfxterm when `font' command has succeeded.
18660 2008-02-03 Robert Millan <rmh@aybabtu.com>
18662 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
18663 (grub_rescue_cmd_multiboot_loader)
18664 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
18666 2008-02-03 Pavel Roskin <proski@gnu.org>
18668 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
18669 %edx and %esi from stack only after grub_gate_a20() is called.
18670 grub_gate_a20() clobbers %edx.
18672 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18674 * configure.ac (AC_INIT): Bumped to 1.96.
18676 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
18677 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
18678 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
18679 video/readers/png.c.
18681 2008-02-03 Bean <bean123ch@gmail.com>
18683 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
18684 (cdboot_img_SOURCES): New variable.
18685 (cdboot_img_ASFLAGS): New variable.
18686 (cdboot_img_LDFLAGS): New variable.
18688 * boot/i386/pc/cdboot.S: New file.
18690 * disk/i386/pc/biosdisk.c (cd_start): New variable.
18691 (cd_count): Likewise.
18692 (grub_biosdisk_get_drive): Add support for cd device.
18693 (grub_biosdisk_call_hook): Likewise.
18694 (grub_biosdisk_iterate): Likewise.
18695 (grub_biosdisk_open): Likewise.
18696 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
18697 (grub_biosdisk_rw): Support reading from cd device.
18698 (GRUB_MOD_INIT): Iterate cd devices.
18700 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
18701 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
18702 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
18704 * kern/i386/pc/init.c (make_install_device): Check for cd device.
18706 2008-02-02 Robert Millan <rmh@aybabtu.com>
18708 * commands/read.c: New file.
18709 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
18710 (read_mod_SOURCES): New variable.
18711 (read_mod_CFLAGS): Likewise.
18712 (read_mod_LDFLAGS): Likewise.
18714 2008-02-02 Robert Millan <rmh@aybabtu.com>
18716 * normal/main.c (grub_normal_execute): Check for `menu->size' when
18717 determining whether menu has to be displayed.
18719 2008-02-02 Marco Gerards <marco@gnu.org>
18721 * bus/pci.c: New file.
18723 * include/grub/pci.h: Likewise.
18725 * include/grub/i386/pc/pci.h: Likewise.
18727 * commands/lspci.c: Likewise.
18729 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
18731 (pci_mod_SOURCES): New variable.
18732 (pci_mod_CFLAGS): Likewise.
18733 (pci_mod_LDFLAGS): Likewise.
18734 (lspci_mod_SOURCES): Likewise.
18735 (lspci_mod_CFLAGS): Likewise.
18736 (lspci_mod_LDFLAGS): Likewise.
18738 2008-02-02 Bean <bean123ch@gmail.com>
18740 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
18741 (grub_ufs_get_file_block): Fix indirect block calculation problem.
18743 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
18744 (grub_xfs_btree_node): New structure.
18745 (grub_xfs_btree_root): New structure.
18746 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
18747 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
18748 (GRUB_XFS_EXTENT_BLOCK): Likewise.
18749 (GRUB_XFS_EXTENT_SIZE): Likewise.
18750 (grub_xfs_read_block): Support btree format type.
18751 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
18752 Use directory block as basic unit.
18754 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
18756 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
18757 __attribute__ ((__regparm__ (1))).
18759 2008-02-01 Robert Millan <rmh@aybabtu.com>
18761 Correct a mistake in previous commit.
18763 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
18765 (normal/command.c_DEPENDENCIES): New variable.
18767 2008-02-01 Robert Millan <rmh@aybabtu.com>
18769 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
18771 (normal/command.c_DEPENDENCIES): New variable.
18772 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
18773 * conf/i386-ieee1275.rmk: Likewise.
18774 * conf/i386-linuxbios.rmk: Likewise.
18775 * conf/i386-pc.rmk: Likewise.
18776 * conf/sparc64-ieee1275.rmk: Likewise.
18777 * conf/powerpc-ieee1275.rmk: Likewise.
18778 (grub_emu_SOURCES): Add `fs/fshelp.c'.
18780 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
18782 2008-02-01 Robert Millan <rmh@aybabtu.com>
18784 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
18785 call at beginning of function.
18787 2008-01-31 Pavel Roskin <proski@gnu.org>
18789 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
18790 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
18791 (grub_mkrescue_SOURCES): Likewise.
18792 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
18794 2008-01-30 Robert Millan <rmh@aybabtu.com>
18796 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
18797 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
18798 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
18799 (grub_probe_SOURCES): ... to here.
18801 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
18802 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
18803 * conf/i386-ieee1275.rmk: Likewise.
18804 * conf/i386-linuxbios.rmk: Likewise.
18805 * conf/powerpc-ieee1275.rmk: Likewise.
18807 2008-01-30 Tristan Gingold <gingold@free.fr>
18809 * kern/rescue.c: Silently accept empty lines.
18811 2008-01-29 Bean <bean123ch@gmail.com>
18813 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
18814 (real_code_2): Code cleanup and change comment style.
18815 (move_memory): Avoid using 32-bit address mode.
18817 2008-01-29 Bean <bean123ch@gmail.com>
18819 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
18820 (png_mod_SOURCES): New variable.
18821 (png_mod_CFLAGS): Likewise.
18822 (png_mod_LDFLAGS): Likewise.
18824 * video/readers/png.c: New file.
18826 2008-01-28 Robert Millan <rmh@aybabtu.com>
18828 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
18829 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
18830 `ifndef GRUB_MOD_GAP' hack.
18831 * util/elf/grub-mkimage.c (add_segments): Likewise.
18833 2008-01-27 Robert Millan <rmh@aybabtu.com>
18835 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
18836 `GRUB_MOD_GAP' for platforms in which it's not defined.
18837 * util/elf/grub-mkimage.c (add_segments): Likewise.
18839 2008-01-27 Robert Millan <rmh@aybabtu.com>
18841 Get grub-emu to build again (including parallel builds).
18843 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
18845 (util/grub-emu.c_DEPENDENCIES): ... this, ...
18846 (normal/execute.c_DEPENDENCIES): ... this, ...
18847 (grub-emu_DEPENDENCIES): ... and this.
18849 * conf/i386-efi.rmk: Likewise.
18850 * conf/i386-linuxbios.rmk: Likewise.
18851 * conf/i386-ieee1275.rmk: Likewise.
18852 * conf/powerpc-ieee1275.rmk: Likewise.
18853 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
18855 2008-01-27 Robert Millan <rmh@aybabtu.com>
18857 * NEWS: Add a few items.
18859 2008-01-27 Robert Millan <rmh@aybabtu.com>
18861 Fix parallel builds with grub-emu. Based on earlier commit for
18862 grub-probe and grub-setup.
18864 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18865 (util/grub-emu.c_DEPENDENCIES): ... this.
18866 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18867 (util/grub-emu.c_DEPENDENCIES): ... this.
18868 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18869 (util/grub-emu.c_DEPENDENCIES): ... this.
18870 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18871 (util/grub-emu.c_DEPENDENCIES): ... this.
18872 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18873 (util/grub-emu.c_DEPENDENCIES): ... this.
18875 2008-01-27 Pavel Roskin <proski@gnu.org>
18877 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
18878 to create a gap between _end and the modules added to the image
18879 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
18880 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
18881 * util/elf/grub-mkimage.c (add_segments): Likewise.
18883 2008-01-26 Pavel Roskin <proski@gnu.org>
18885 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
18886 just return an error.
18888 2008-01-26 Bean <bean123ch@gmail.com>
18890 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
18891 (grub_reiserfs_get_item): Save offset of the next item.
18892 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
18894 2008-01-25 Robert Millan <rmh@aybabtu.com>
18896 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
18897 make all filesystem sources appear together (possibly fixing omissions
18899 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18900 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18901 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18902 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18904 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
18906 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
18907 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
18908 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
18909 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
18911 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
18912 (probe): Add a sanity check to make sure of our ability to read
18913 requested files when probing for filesystem type.
18915 * genmk.rb: Update copyright year (2007).
18917 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
18918 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
18919 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
18920 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
18921 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
18922 : Remove function prototypes.
18924 2008-01-25 Robert Millan <rmh@aybabtu.com>
18926 Revert my previous commits (based on wrong assumption of how grub_errno
18929 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
18930 * kern/file.c (grub_file_open): Likewise.
18932 2008-01-24 Pavel Roskin <proski@gnu.org>
18934 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
18935 that hang if GRUB tries to setup colors.
18936 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
18937 colors for firmwares that don't support it.
18938 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
18939 Recognize Open Hack'Ware, set flags to work around its
18942 2008-01-24 Robert Millan <rmh@aybabtu.com>
18944 * kern/file.c (grub_file_open): Do not account previous failures of
18945 unrelated functions when grub_errno is checked for.
18946 Reported by Oleg Strikov.
18948 2008-01-24 Bean <bean123ch@gmail.com>
18950 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
18951 (grub_ufs_sblock): New member volume name.
18952 (grub_ufs_find_file): Fix string copy bug.
18953 (grub_ufs_label): Implement this function properly.
18955 * fs/hfs.c (grub_hfs_cnid_type): New enum.
18956 (grub_hfs_iterate_records): Use the correct file number for extents
18957 and catalog file. Fix problem in next index calculation.
18958 (grub_hfs_find_node): Replace recursive function call with loop.
18959 (grub_hfs_iterate_dir): Replace recursive function call with loop.
18961 2008-01-23 Robert Millan <rmh@aybabtu.com>
18963 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
18964 `<grub/symbol.h>' and `<grub/multiboot.h>'.
18965 (grub_multiboot2_real_boot): New function prototype.
18967 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
18968 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
18970 * kern/i386/ieee1275/init.c (grub_os_area_addr)
18971 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
18973 2008-01-23 Robert Millan <rmh@aybabtu.com>
18975 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
18976 #ifdef'ed out grub_printf().
18978 2008-01-23 Robert Millan <rmh@aybabtu.com>
18980 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
18981 grub_dprintf calls, since they make "debug=all" mode unusable.
18982 (grub_console_checkkey): Likewise.
18984 2008-01-23 Robert Millan <rmh@aybabtu.com>
18986 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
18987 `term/i386/pc/at_keyboard.c'.
18988 (pkglib_MODULES): Add `serial.mod'.
18989 (serial_mod_SOURCES): New variable.
18990 (serial_mod_CFLAGS): Likewise.
18991 (serial_mod_LDFLAGS): Likewise.
18993 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
18994 `<grub/powerpc/ieee1275/console.h>'.
18995 (grub_keyboard_controller_init): New function prototype.
18996 (grub_console_checkkey): Likewise.
18997 (grub_console_getkey): Likewise.
18999 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
19002 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
19003 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
19005 2008-01-23 Robert Millan <rmh@aybabtu.com>
19007 * kern/i386/pc/init.c (make_install_device): When memdisk image is
19008 present, "(memdisk)/boot/grub" becomes the default prefix.
19010 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
19011 a memdisk tarball with all the modules. Add --overlay=DIR option that
19012 allows users to overlay additional files into the image.
19014 2008-01-23 Robert Millan <rmh@aybabtu.com>
19016 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
19017 and `machine/memory.h'.
19018 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
19019 (_multiboot_mod_SOURCES): New variable.
19020 (_multiboot_mod_CFLAGS): Likewise.
19021 (_multiboot_mod_LDFLAGS): Likewise.
19022 (multiboot_mod_SOURCES): Likewise.
19023 (multiboot_mod_CFLAGS): Likewise.
19024 (multiboot_mod_LDFLAGS): Likewise.
19026 * include/grub/i386/ieee1275/loader.h: New file.
19028 * include/grub/i386/ieee1275/machine.h: Likewise.
19030 * include/grub/i386/ieee1275/memory.h: Likewise.
19032 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
19033 variable declaration.
19034 (grub_os_area_size): Likewise.
19036 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
19037 (grub_lower_mem, grub_upper_mem): New variables.
19038 (grub_stop_floppy): New function (just to make
19039 grub_multiboot2_real_boot() happy).
19041 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
19042 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
19043 (grub_stop): New function.
19044 Include `"../realmode.S"' and `"../loader.S"'.
19046 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
19047 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
19049 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
19050 rely on grub_multiboot2_real_boot() for final boot.
19052 2008-01-22 Robert Millan <rmh@aybabtu.com>
19054 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
19055 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
19056 device that doesn't look like an SD card.
19057 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
19058 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
19059 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
19060 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
19063 2008-01-22 Robert Millan <rmh@aybabtu.com>
19065 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
19066 avoid claiming over our own code.
19068 2008-01-22 Bean <bean123ch@gmail.com>
19070 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
19071 (jpeg_mod_SOURCES): New variable.
19072 (jpeg_mod_CFLAGS): Likewise.
19073 (jpeg_mod_LDFLAGS): Likewise.
19075 * video/readers/jpeg.c : New file.
19077 2008-01-22 Bean <bean123ch@gmail.com>
19079 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
19080 there are no more items.
19082 2008-01-21 Robert Millan <rmh@aybabtu.com>
19084 * kern/mm.c (grub_mm_init_region): Improve debug message.
19086 2008-01-21 Robert Millan <rmh@aybabtu.com>
19088 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
19089 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
19091 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
19093 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
19094 Indicates start of upper memory.
19095 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
19096 (generate_image): Abort when image size is big enough to corrupt
19099 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
19100 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
19101 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19102 instead of hardcoding 0xA0000.
19103 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
19104 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19105 instead of hardcoding 0xA0000.
19107 2008-01-21 Robert Millan <rmh@aybabtu.com>
19109 * disk/memdisk.c (memdisk_size): New variable.
19110 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
19112 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
19113 image to dynamic memory.
19114 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
19115 `memdisk_size'. Free memdisk block.
19117 2008-01-21 Robert Millan <rmh@aybabtu.com>
19119 Fix detection of very small filesystems (like tar).
19121 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
19122 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
19123 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
19124 a problem with this disk).
19126 2008-01-21 Robert Millan <rmh@aybabtu.com>
19128 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
19129 on grub_biosdisk_rw_standard() error.
19131 2008-01-21 Robert Millan <rmh@aybabtu.com>
19133 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
19135 * kern/elf.c: Likewise.
19136 * kern/ieee1275/ieee1275.c: Likewise.
19137 * kern/powerpc/ieee1275/openfw.c: Likewise.
19138 * term/ieee1275/ofconsole.c: Likewise.
19140 2008-01-21 Robert Millan <rmh@aybabtu.com>
19142 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
19144 * include/grub/kernel.h (grub_arch_memdisk_addr)
19145 (grub_arch_memdisk_size): Moved from here ...
19147 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
19148 (grub_arch_memdisk_size): ... to here.
19150 2008-01-21 Robert Millan <rmh@aybabtu.com>
19152 Mostly based on bugfix from Bean.
19154 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
19155 attribute with hook() parameter.
19156 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
19158 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
19159 attribute with hook() parameter.
19160 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
19163 2008-01-21 Robert Millan <rmh@aybabtu.com>
19165 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
19166 (pkglib_MODULES): Add `memdisk.mod'.
19167 (memdisk_mod_SOURCES): New variable.
19168 (memdisk_mod_CFLAGS): Likewise.
19169 (memdisk_mod_LDFLAGS): Likewise.
19171 * disk/memdisk.c: New file.
19173 * include/grub/disk.h (grub_disk_dev_id): Add
19174 `GRUB_DISK_DEVICE_MEMDISK_ID'.
19176 * include/grub/i386/pc/kernel.h
19177 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
19178 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
19179 (grub_kernel_image_size): New variable declaration.
19180 (grub_total_module_size): Likewise.
19181 (grub_memdisk_image_size): Likewise.
19183 * include/grub/i386/pc/memory.h
19184 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
19186 * include/grub/kernel.h: Include `<grub/symbol.h>'.
19187 (grub_arch_memdisk_addr): New variable declaration.
19188 (grub_arch_memdisk_size): Likewise.
19190 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
19191 (grub_arch_memdisk_size): Likewise.
19193 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
19194 (codestart): Replace hardcoded `0x100000' with
19195 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
19197 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
19198 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
19199 not NULL, append the contents of the file it refers to, at the end of
19200 the compressed kernel image. Initialize `grub_memdisk_image_size'
19201 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
19202 (options): Add "memdisk"|'m' option.
19203 (main): Parse --memdisk|-m option, and pass user-provided path as
19204 parameter to generate_image().
19206 2008-01-20 Robert Millan <rmh@aybabtu.com>
19208 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
19209 grub_dprintf() calls from here ...
19210 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
19212 2008-01-20 Robert Millan <rmh@aybabtu.com>
19214 Fix detection of "real mode" when /options/real-mode? doesn't exist.
19216 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
19218 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
19219 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
19220 `GRUB_IEEE1275_FLAG_REAL_MODE'.
19221 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
19223 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
19224 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
19226 2008-01-19 Robert Millan <rmh@aybabtu.com>
19228 Get rid of confusing function (superseded by
19229 `grub_ieee1275_get_integer_property')
19230 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
19232 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
19234 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
19235 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
19236 in native endianness from grub_ieee1275_get_integer_property().
19238 2008-01-19 Robert Millan <rmh@aybabtu.com>
19240 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
19241 command after "shut-down", since implementations differ on which
19242 the command for halt is.
19244 2008-01-19 Robert Millan <rmh@aybabtu.com>
19246 * include/grub/i386/linuxbios/console.h: Add header protection.
19247 (grub_keyboard_controller_init): New function prototype.
19248 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
19249 (KEYBOARD_COMMAND_READ): Likewise.
19250 (KEYBOARD_COMMAND_WRITE): Likewise.
19251 (KEYBOARD_SCANCODE_SET1): Likewise.
19252 (grub_keyboard_controller_write): New function.
19253 (grub_keyboard_controller_read): Likewise.
19254 (grub_keyboard_controller_init): Likewise.
19256 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
19257 (grub_console_init): On coreboot/LinuxBIOS, call
19258 grub_keyboard_controller_init().
19260 2008-01-19 Robert Millan <rmh@aybabtu.com>
19262 PowerPC changes provided by Pavel Roskin.
19264 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
19265 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
19266 don't rely on cmain() doing it.
19267 * kern/i386/ieee1275/startup.S (_start): Store %eax in
19268 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
19270 2008-01-16 Robert Millan <rmh@aybabtu.com>
19272 * include/grub/i386/linuxbios/memory.h
19273 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
19274 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
19275 receive `table_header' as argument. Instead, probe for it in the
19276 known memory ranges where it can be present.
19277 (grub_available_iterate): Do not pass a fixed `table_header' address
19278 to grub_linuxbios_table_iterate().
19280 2008-01-15 Robert Millan <rmh@aybabtu.com>
19282 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
19283 * conf/i386-ieee1275.rmk: New file.
19284 * include/grub/i386/ieee1275/console.h: Likewise.
19285 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
19286 * include/grub/i386/ieee1275/kernel.h: Likewise.
19287 * include/grub/i386/ieee1275/time.h: Likewise.
19288 * kern/i386/ieee1275/init.c: Likewise.
19289 * kern/i386/ieee1275/startup.S: Likewise.
19291 2008-01-15 Robert Millan <rmh@aybabtu.com>
19293 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
19294 when pointers are 32-bit (but still do set it to one when they are
19297 2008-01-15 Robert Millan <rmh@aybabtu.com>
19299 * include/grub/ieee1275/ieee1275.h
19300 (grub_ieee1275_get_integer_property): New function prototype.
19302 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
19303 (grub_ieee1275_get_integer_property): New function. Wraps around
19304 grub_ieee1275_get_property() to handle endianness.
19306 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
19307 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
19309 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
19310 (grub_map): Likewise.
19311 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
19313 2008-01-15 Bean <bean123ch@gmail.com>
19315 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
19316 (grub_script_execute_cmdline): Reset grub_errno.
19318 * normal/main.c (read_config_file): Reset grub_errno.
19320 * normal/parse.y (script_init): New.
19321 (script): Move function and menuentry here.
19323 (command): Add delimiter at the end of command.
19324 (commands): Adjust to match the new command.
19325 (commandblock): Remove grub_script_lexer_record_start.
19326 (menuentry): Add grub_script_lexer_record_start, use the new commands.
19327 (if): Use the new commands.
19329 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
19331 2008-01-15 Robert Millan <rmh@aybabtu.com>
19333 * normal/menu.c (run_menu): Move timeout message from here ...
19334 (print_timeout): ... to here.
19335 (run_menu): Use print_timeout() once during initial draw to print
19336 the whole message, and again in every clock tick to update only
19337 the number of seconds.
19339 2008-01-15 Robert Millan <rmh@aybabtu.com>
19341 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
19342 actual size of `available' from grub_ieee1275_get_property(), and
19343 restrict parsing to that bound.
19345 2008-01-15 Christian Franke <franke@computer.org>
19347 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
19348 (argp_program_version): Remove variable.
19349 (argp_program_bug_address): Likewise.
19350 (options): Convert from struct argp_option to struct option.
19351 (struct arguments): Remove.
19352 (parse_opt): Remove.
19353 (usage): New function.
19354 (main): Replace struct args members by simple variables.
19355 Replace argp_parse() by getopt_long().
19356 Add switch to evaluate options.
19357 Add missing "(...)" around root_dev in prefix string.
19359 2008-01-14 Robert Millan <rmh@aybabtu.com>
19361 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
19362 for grub_ieee1275_exit(), in order to improve portability.
19364 2008-01-14 Robert Millan <rmh@aybabtu.com>
19366 * util/grub.d/10_linux.in (prefix): Define.
19367 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
19369 2008-01-13 Pavel Roskin <proski@gnu.org>
19371 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
19372 grub_errno if no errors have been detected.
19374 2008-01-12 Robert Millan <rmh@aybabtu.com>
19376 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
19377 (grub_util_get_dev_abstraction): New function prototype.
19379 * util/getroot.c: Include `<grub/util/getroot.h>'
19380 (grub_util_get_grub_dev): Move detection of abstraction type to ...
19381 (grub_util_get_dev_abstraction): ... here (new function).
19383 * util/grub-probe.c: Convert PRINT_* to an enum. Add
19384 `PRINT_ABSTRACTION'.
19385 (probe): Probe for abstraction type when requested.
19386 (main): Understand `--target=abstraction'.
19388 * util/i386/efi/grub-install.in: Add abstraction module to core
19389 image when it is found to be necessary.
19390 * util/i386/pc/grub-install.in: Likewise.
19391 * util/powerpc/ieee1275/grub-install.in: Likewise.
19393 * util/update-grub_lib.in (font_path): Return system path without
19394 converting to GRUB path.
19395 * util/update-grub.in: Convert system path returned by font_path()
19396 to a GRUB path. Use `grub-probe -t abstraction' to determine what
19397 abstraction module is needed for loading fonts (if any). Export
19398 that as `GRUB_PRELOAD_MODULES'.
19399 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
19402 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
19404 Remove some unused code from reiserfs.
19406 * fs/reiserfs.c (struct grub_reiserfs_key)
19407 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
19408 (struct grub_reiserfs_node_body): Removed.
19409 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19411 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19413 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19415 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19417 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19419 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
19421 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19422 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19423 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19425 2008-01-10 Robert Millan <rmh@aybabtu.com>
19427 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
19428 Determines if a file is garbage left by packaging systems, etc.
19429 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
19430 for processing /etc/grub.d scripts.
19431 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
19432 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
19433 as a condition for processing Linux images.
19435 2008-01-10 Pavel Roskin <proski@gnu.org>
19437 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
19438 to compile reiserfs.c on PowerPC.
19440 2008-01-10 Robert Millan <rmh@aybabtu.com>
19442 * kern/device.c (grub_device_iterate): Do not abort device iteration
19443 when one of the devices cannot be opened.
19444 * kern/disk.c (grub_disk_open): Do not account previous failures of
19445 unrelated functions when grub_errno is checked for.
19447 2008-01-08 Robert Millan <rmh@aybabtu.com>
19449 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
19450 `! grub_linux_is_bzimage', change order of address comparison to make
19451 it more intuitive, and improve "too big zImage" error message.
19453 2008-01-08 Robert Millan <rmh@aybabtu.com>
19455 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
19456 `$(update-grub_DATA)'.
19457 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
19460 2008-01-07 Robert Millan <rmh@aybabtu.com>
19462 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
19463 which instruction is modified by grub-setup during installation
19464 (since it wasn't obvious by only looking at this file).
19466 2008-01-07 Robert Millan <rmh@aybabtu.com>
19468 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
19469 listing actual TODO items.
19471 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19473 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
19475 (grub_reiserfs_get_key_offset): Likewise.
19476 (grub_reiserfs_set_key_offset): Likewise.
19477 (grub_reiserfs_set_key_type): Likewise.
19478 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
19480 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
19481 better to remove the bitfield version completely.
19483 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19485 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
19486 allocated from the heap, due to the fshelp implementation.
19487 (grub_reiserfs_dir): Free NODE, due to the same reason.
19489 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19491 Mostly from Vincent Pelletier:
19493 * fs/reiserfs.c: New file.
19495 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
19496 (reiserfs_mod_SOURCES): New variable.
19497 (reiserfs_mod_CFLAGS): Likewise.
19498 (reiserfs_mod_LDFLAGS): Likewise.
19500 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
19501 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
19502 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
19505 2008-01-06 Robert Millan <rmh@aybabtu.com>
19507 * normal/color.c: Remove `<grub/env.h>'.
19509 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
19511 * include/grub/normal.h: Include <grub/env.h>.
19513 2008-01-05 Robert Millan <rmh@aybabtu.com>
19515 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
19516 usage example with `(hd0,1)'.
19517 Reported by Samuel Thibault.
19519 2008-01-05 Robert Millan <rmh@aybabtu.com>
19521 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
19522 (grub_linux_boot_zimage): Rename to ...
19523 (grub_linux_boot): ... this.
19524 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
19525 (grub_linux_boot_zimage): Conditionalize zImage copy.
19527 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
19528 (grub_linux_boot_bzimage): Remove prototype.
19529 (grub_linux_boot_zimage): Rename to ...
19530 (grub_linux_boot): ... this.
19532 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
19533 (grub_linux_boot): Remove function.
19535 2008-01-05 Robert Millan <rmh@aybabtu.com>
19537 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
19538 (grub_env_write_color_highlight): Likewise.
19539 (grub_wait_after_message): Likewise.
19541 * normal/color.c: New file.
19543 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19544 (normal_mod_DEPENDENCIES): Likewise.
19546 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19547 (normal_mod_DEPENDENCIES): Likewise.
19549 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19550 (normal_mod_DEPENDENCIES): Likewise.
19552 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19553 (normal_mod_DEPENDENCIES): Likewise.
19555 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
19556 for waiting after a message is printed.
19557 * normal/main.c (read_config_file): Likewise.
19558 (grub_normal_init): Register grub_env_write_color_normal() and
19559 grub_env_write_color_highlight() hooks. Mark `color_normal' and
19560 `color_highlight' variables as global.
19562 * normal/menu.c (grub_wait_after_message): New function.
19563 (grub_color_menu_normal): New variable. Replaces ...
19564 (GRUB_COLOR_MENU_NORMAL): ... this macro.
19565 (grub_color_menu_highlight): New variable. Replaces ...
19566 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
19567 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
19568 `GRUB_TERM_COLOR_STANDARD'.
19569 (print_message): Use `grub_setcolorstate' to reload colors. Rename
19570 `normal_code' and `highlight_code' to `old_color_normal' and
19571 `old_color_highlight', respectively.
19572 (grub_menu_init_page): Update colors when drawing the menu, based on
19573 `menu_color_normal' and `menu_color_highlight' variables.
19574 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
19575 a message is printed.
19577 2008-01-05 Robert Millan <rmh@aybabtu.com>
19579 * kern/env.c (grub_env_context_open): Propagate hooks for global
19580 variables to new context.
19582 * kern/main.c (grub_set_root_dev): Export `root' variable.
19584 2008-01-05 Robert Millan <rmh@aybabtu.com>
19586 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
19587 discs unconditionally, since udev and others have options to provide
19590 2008-01-05 Robert Millan <rmh@aybabtu.com>
19592 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
19594 2008-01-04 Christian Franke <franke@computer.org>
19596 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
19599 2008-01-03 Pavel Roskin <proski@gnu.org>
19601 * kern/i386/linuxbios/init.c: Put "void" to all function
19602 declarations with no arguments.
19603 * kern/powerpc/ieee1275/init.c: Likewise.
19604 * term/i386/pc/at_keyboard.c: Likewise.
19605 * term/i386/pc/vga_text.c: Likewise.
19606 * util/grub-mkdevicemap.c: Likewise.
19608 2008-01-02 Robert Millan <rmh@aybabtu.com>
19610 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
19611 message when loaded image is out of bounds.
19612 (grub_multiboot_load_elf64): Likewise.
19614 2008-01-02 Pavel Roskin <proski@gnu.org>
19616 * util/grub.d/10_linux.in: Try version without ".old" when
19617 looking for initrd. It's better to use initrd from the newer
19618 kernel of the same version than no initrd at all.
19620 2008-01-01 Robert Millan <rmh@aybabtu.com>
19622 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
19624 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
19626 * include/grub/video.h: Added grub_video_unmap_color and
19627 grub_video_get_active_render_target.
19628 (grub_video_adapter): Added unmap_color and get_active_render_target.
19630 * video/video.c: Added grub_video_unmap_color and
19631 grub_video_get_active_render_target.
19632 (grub_video_get_info): Changed method to accept NULL pointer as an
19633 argument to allow detection of active video adapter.
19635 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
19636 grub_video_vbe_unmap_color_int.
19637 Added grub_video_vbe_unmap_color and
19638 grub_video_vbe_get_active_render_target.
19639 (grub_video_vbe_adapter): Added unmap_color and
19640 get_active_render_target.
19642 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
19643 with grub_video_vbe_unmap_color_int.
19645 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
19646 (DEFAULT_NORMAL_COLOR): Likewise.
19647 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
19648 (DEFAULT_FG_COLOR): Removed.
19649 (DEFAULT_BG_COLOR): Likewise.
19650 (DEFAULT_CURSOR_COLOR): Changed value.
19651 (grub_virtual_screen): Added standard_color_setting,
19652 normal_color_setting, highlight_color_setting and term_color.
19653 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
19654 (bitmap_width): Added.
19655 (bitmap_height): Likewise.
19656 (bitmap): Likewise.
19657 (set_term_color): Likewise.
19658 (grub_virtual_screen_setup): Changed to use new terminal coloring
19660 (grub_gfxterm_init): Added init for bitmap.
19661 (grub_gfxterm_fini): Added destroy for bitmap.
19662 (redraw_screen_rect): Updated to use background bitmap and new
19664 (scroll_up): Added optimization for case when there is no bitmap.
19665 (grub_gfxterm_cls): Fixed to use correct background color.
19666 (grub_virtual_screen_setcolorstate): Changed to use new terminal
19668 (grub_virtual_screen_setcolor): Likewise.
19669 (grub_virtual_screen_getcolor): Added.
19670 (grub_gfxterm_background_image_cmd): Likewise.
19671 (grub_video_term): Added setcolor and getcolor.
19672 (MOD_INIT): Added registration of background_image command.
19673 (MOD_TERM): Added unregistration for background_image command.
19675 2007-12-30 Pavel Roskin <proski@gnu.org>
19677 * loader/multiboot_loader.c: Fix multiboot command
19678 unregistration. Fix all typos in the word "multiboot".
19680 2007-12-29 Pavel Roskin <proski@gnu.org>
19682 * util/grub.d/10_linux.in: Refactor search for initrd. Add
19683 support for initrd names used in Fedora.
19685 2007-12-26 Bean <bean123ch@gmail.com>
19687 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
19688 (cpio_mod_SOURCES): New variable.
19689 (cpio_mod_CFLAGS): Likewise.
19690 (cpio_mod_LDFLAGS): Likewise.
19692 * fs/cpio.c: New file.
19694 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
19696 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19698 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19700 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19702 2007-12-25 Robert Millan <rmh@aybabtu.com>
19704 * include/grub/term.h (struct grub_term): Add `getcolor' function.
19705 (grub_getcolor): New function.
19707 * kern/term.c (grub_getcolor): New function.
19708 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
19709 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
19710 (print_entry): Set normal and highlight colors to
19711 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
19712 respectively, before printing and restore them to old
19714 (grub_menu_init_page): Likewise. Fill an additional colored space
19715 that would otherwise be left blank.
19717 * term/efi/console.c (grub_console_getcolor): New function.
19718 (struct grub_console_term.getcolor): New variable.
19719 * term/i386/pc/console.c (grub_console_getcolor): New function.
19720 (struct grub_console_term.getcolor): New variable.
19721 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
19722 (struct grub_console_term.getcolor): New variable.
19724 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
19725 (struct grub_console_term.setcolor): Remove variable.
19726 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
19727 (struct grub_console_term.setcolor): Remove variable.
19728 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
19729 (struct grub_console_term.setcolor): Remove variable.
19730 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
19731 (struct grub_console_term.setcolor): Remove variable.
19733 2007-12-25 Robert Millan <rmh@aybabtu.com>
19735 * configure.ac: Search for possible unifont.hex locations, and
19736 define UNIFONT_HEX if found.
19738 * Makefile.in (UNIFONT_HEX): Define variable.
19739 (DATA): Rename to ...
19740 (PKGLIB): ... this. Update all users.
19741 (PKGDATA): New variable.
19742 (pkgdata_IMAGES): Rename to ...
19743 (pkglib_IMAGES): ... this. Update all users.
19744 (pkgdata_MODULES): Rename to ...
19745 (pkglib_MODULES): ... this. Update all users.
19746 (pkgdata_PROGRAMS): Rename to ...
19747 (pkglib_PROGRAMS): ... this. Update all users.
19748 (pkgdata_DATA): Rename to ...
19749 (pkglib_DATA): ... this. Update all users.
19750 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
19751 (unicode.pff, ascii.pff): New rules.
19752 (all-local): Add `$(PKGDATA)' dependency.
19753 (install-local): Process `$(PKGDATA)'.
19755 * util/update-grub_lib.in (font_path): Search for *.pff files in
19756 a few more locations, including `${pkgdata}'.
19758 2007-12-23 Robert Millan <rmh@aybabtu.com>
19760 Patch from Bean <bean123ch@gmail.com>:
19761 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
19764 2007-12-21 Bean <bean123ch@gmail.com>
19766 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
19767 (ntfscomp_mod_SOURCES): New variable.
19768 (ntfscomp_mod_CFLAGS): Likewise.
19769 (ntfscomp_mod_LDFLAGS): Likewise.
19771 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
19772 (grub_probe_SOURCES): Likewise.
19773 (grub_emu_SOURCES): Likewise.
19775 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19776 (grub_emu_SOURCES): Likewise.
19778 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19779 (grub_emu_SOURCES): Likewise.
19781 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19782 (grub_emu_SOURCES): Likewise.
19784 * fs/ntfs.c (grub_ntfscomp_func): New variable.
19785 (read_run_list): Renamed to grub_ntfs_read_run_list.
19786 (decomp_nextvcn): Moved to ntfscomp.c.
19787 (decomp_getch): Likewise.
19788 (decomp_get16): Likewise.
19789 (decomp_block): Likewise.
19790 (read_block): Likewise.
19791 (read_data): Partially moved to ntfscomp.c.
19792 (fixup): Change unsigned to grub_uint16_t.
19793 (read_mft): Change unsigned long to grub_uint32_t.
19794 (read_attr): Likewise.
19795 (read_data): Likewise.
19796 (read_run_data): Likewise.
19797 (read_run_list): Likewise.
19798 (read_mft): Likewise.
19800 * fs/ntfscomp.c: New file.
19802 * include/grub/ntfs.h: New file.
19804 2007-12-16 Robert Millan <rmh@aybabtu.com>
19806 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
19807 IDE disk check, since Linux is known to support 20 IDE disks.
19808 Reported by Colin Watson.
19810 2007-12-15 Bean <bean123ch@gmail.com>
19812 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
19813 (lnxboot_img_SOURCES): New variable.
19814 (lnxboot_img_ASFLAGS): Likewise.
19815 (lnxboot_img_LDFLAGS): Likewise.
19817 * boot/i386/pc/lnxboot.S: New file.
19819 2007-11-24 Pavel Roskin <proski@gnu.org>
19821 * configure.ac: Test if '--build-id=none' is supported by the
19822 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
19823 objcopy to generate incorrect binary files (binutils
19824 2.17.50.0.18-1 as shipped by Fedora 8).
19825 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
19826 linking, so that build ID doesn't break the test.
19828 2007-11-24 Pavel Roskin <proski@gnu.org>
19830 * include/grub/i386/time.h: use "void" in the argument list
19831 of grub_cpu_idle().
19832 * include/grub/powerpc/time.h: Likewise.
19833 * include/grub/sparc64/time.h: Likewise.
19835 2007-11-18 Christian Franke <franke@computer.org>
19837 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
19838 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
19839 This fixes the problem that function keys did not work in grub-emu.
19841 2007-11-18 Christian Franke <franke@computer.org>
19843 * disk/host.c (grub_host_open): Remove attribute unused from
19844 name parameter. Add check for "host". This fixes the problem
19845 that grub-emu does not find partitions.
19847 2007-11-18 Christian Franke <franke@computer.org>
19849 * util/hostfs.c (is_dir): New function.
19850 (grub_hostfs_dir): Handle missing dirent.d_type case.
19851 (grub_hostfs_read): Add missing fseek().
19852 (grub_hostfs_label): Clear label pointer. This fixes a crash
19853 of grub-emu on "ls (host)".
19855 2007-11-18 Christian Franke <franke@computer.org>
19857 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
19858 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
19859 to 64 bit boundary by default.
19861 2007-11-18 Bean <bean123ch@gmail.com>
19863 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
19864 (hexdump_mod_SOURCES): New variable.
19865 (hexdump_mod_CFLAGS): Likewise.
19866 (hexdump_mod_LDFLAGS): Likewise.
19868 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19870 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19872 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19874 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19876 * include/grub/hexdump.h: New file.
19878 * commands/hexdump.c: New file.
19880 2007-11-10 Robert Millan <rmh@aybabtu.com>
19882 * commands/i386/pc/play.c (beep_off): Switch order of arguments
19883 in grub_outb() calls.
19884 (beep_on): Likewise.
19886 2007-11-10 Christian Franke <franke@computer.org>
19888 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
19889 (grub_menu_run): Likewise.
19891 2007-11-10 Robert Millan <rmh@aybabtu.com>
19893 * include/grub/i386/efi/machine.h: New file.
19894 * include/grub/i386/linuxbios/machine.h: Likewise.
19895 * include/grub/i386/pc/machine.h: Likewise.
19896 * include/grub/powerpc/ieee1275/machine.h: Likewise.
19897 * include/grub/sparc64/ieee1275/machine.h: Likewise.
19899 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
19900 (serial_hw_io_addr): New variable.
19901 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
19902 instead of `(unsigned short *) 0x400'.
19904 2007-11-10 Bean <bean123ch@gmail.com>
19906 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
19908 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
19910 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
19911 (vga_mod_SOURCES): Added.
19912 (vga_mod_CFLAGS): Likewise.
19913 (vga_mod_LDFLAGS): Likewise.
19915 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
19917 (set_map_mask): Likewise.
19918 (set_read_map): Likewise.
19919 (set_read_address): Likewise.
19920 (vga_font): Removed variable.
19921 (get_vga_glyph): Removed function.
19922 (invalidate_char): Likewise.
19923 (write_char): Changed to use grub_font_get_glyph() for font
19925 (grub_vga_putchar): Likewise.
19926 (grub_vga_getcharwidth): Likewise.
19928 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
19930 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
19932 (pxeboot_img_LDFLAGS): Likewise.
19933 (diskboot_img_LDFLAGS): Likewise.
19934 (kernel_img_LDFLAGS): Likewise.
19936 2007-11-06 Robert Millan <rmh@aybabtu.com>
19938 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
19939 in grub_outb() calls.
19940 (serial_hw_init): Likewise.
19942 2007-11-05 Robert Millan <rmh@aybabtu.com>
19944 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
19945 spaces. Skip non-regular files.
19947 2007-11-05 Robert Millan <rmh@aybabtu.com>
19949 * kern/disk.c (grub_disk_firmware_fini)
19950 (grub_disk_firmware_is_tainted): New variables.
19952 * include/grub/disk.h (grub_disk_firmware_fini)
19953 (grub_disk_firmware_is_tainted): Likewise.
19955 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
19956 (grub_disk_biosdisk_fini): ... to here.
19957 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
19958 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
19959 is set. Register grub_disk_biosdisk_fini() in
19960 `grub_disk_firmware_fini'.
19962 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
19963 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
19964 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
19965 to finish existing firmware disk interface.
19967 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
19968 (ata_mod_SOURCES): New variable.
19969 (ata_mod_CFLAGS): Likewise.
19970 (ata_mod_LDFLAGS): Likewise.
19972 2007-11-05 Robert Millan <rmh@aybabtu.com>
19974 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
19975 (grub_ata_wait): Reimplement using grub_millisleep().
19977 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
19978 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
19980 2007-11-03 Marco Gerards <marco@gnu.org>
19982 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
19983 (CRTC_ADDR_PORT): New macro.
19984 (CRTC_DATA_PORT): Likewise.
19985 (CRTC_CURSOR): Likewise.
19986 (CRTC_CURSOR_ADDR_HIGH): Likewise.
19987 (CRTC_CURSOR_ADDR_LOW): Likewise.
19988 (update_cursor): New function.
19989 (grub_console_real_putchar): Call `update_cursor'.
19990 (grub_console_gotoxy): Likewise.
19991 (grub_console_cls): Set the default color when clearing the
19993 (grub_console_setcursor): Implemented.
19995 2007-11-03 Marco Gerards <marco@gnu.org>
19997 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
19999 (grub_ata_pio_write): Likewise.
20001 (grub_atapi_identify): Wait after issuing an ATA command.
20002 (grub_atapi_packet): Likewise.
20003 (grub_ata_identify): Likewise.
20004 (grub_ata_readwrite): Likewise.
20006 2007-11-03 Marco Gerards <marco@gnu.org>
20008 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
20009 (grub_ata_pio_write): Likewise.
20010 (grub_ata_readwrite): Use `grub_error', instead of
20011 returning `grub_errno'.
20013 2007-11-03 Marco Gerards <marco@gnu.org>
20015 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
20016 grub_ata_pio_write once for every single sector, instead of for
20019 2007-10-31 Robert Millan <rmh@aybabtu.com>
20021 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
20023 * conf/i386-linuxbios.rmk: New file.
20025 * kern/i386/pc/hardware.c: Likewise.
20026 * term/i386/pc/at_keyboard.c: Likewise.
20027 * term/i386/pc/vga_text.c: Likewise.
20029 * include/grub/i386/linuxbios/boot.h: Likewise.
20030 * include/grub/i386/linuxbios/console.h: Likewise.
20031 * include/grub/i386/linuxbios/init.h: Likewise.
20032 * include/grub/i386/linuxbios/kernel.h: Likewise.
20033 * include/grub/i386/linuxbios/loader.h: Likewise.
20034 * include/grub/i386/linuxbios/memory.h: Likewise.
20035 * include/grub/i386/linuxbios/serial.h: Likewise.
20036 * include/grub/i386/linuxbios/time.h: Likewise.
20038 * kern/i386/linuxbios/init.c: Likewise.
20039 * kern/i386/linuxbios/startup.S: Likewise.
20040 * kern/i386/linuxbios/table.c: Likewise.
20042 2007-10-31 Marco Gerards <marco@gnu.org>
20044 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
20045 (ata_mod_SOURCES): New variable.
20046 (ata_mod_CFLAGS): Likewise.
20047 (ata_mod_LDFLAGS): Likewise.
20049 * disk/ata.c: New file.
20051 * include/grub/disk.h (grub_disk_dev_id): Add
20052 `GRUB_DISK_DEV_ATA_ID'.
20054 2007-10-31 Robert Millan <rmh@aybabtu.com>
20056 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
20057 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
20059 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
20060 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
20062 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
20065 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
20067 2007-10-27 Robert Millan <rmh@aybabtu.com>
20069 * include/grub/types.h (ULONG_MAX): Define macro.
20071 2007-10-22 Robert Millan <rmh@aybabtu.com>
20073 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
20075 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
20077 2007-10-22 Robert Millan <rmh@aybabtu.com>
20079 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
20080 (pkgdata_MODULES): Add `biosdisk.mod'.
20081 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
20084 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
20085 (grub_biosdisk_init): Replace with ...
20086 (GRUB_MOD_INIT(biosdisk)): ... this.
20087 (grub_biosdisk_fini): Replace with ...
20088 (GRUB_MOD_FINI(biosdisk)): ... this.
20090 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
20091 (grub_machine_init): Remove call to grub_biosdisk_init().
20092 (grub_machine_fini): Remove call to grub_machine_fini().
20094 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
20096 2007-10-22 Robert Millan <rmh@aybabtu.com>
20098 * include/grub/time.h: New file.
20099 * include/grub/i386/time.h: Likewise.
20100 * include/grub/powerpc/time.h: Likewise.
20101 * include/grub/sparc64/time.h: Likewise.
20103 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
20105 (KERNEL_MACHINE_TIME_HEADER): ... this.
20106 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20108 (KERNEL_MACHINE_TIME_HEADER): ... this.
20109 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20111 (KERNEL_MACHINE_TIME_HEADER): ... this.
20113 * kern/i386/efi/init.c: Include `<grub/time.h>'.
20114 (grub_millisleep): New function.
20115 * kern/i386/pc/init.c: Include `<grub/time.h>'.
20116 (grub_millisleep): New function.
20117 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
20118 Remove `grub/machine/time.h' include.
20119 (grub_millisleep): New function.
20120 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
20121 Remove `grub/machine/time.h' include.
20122 (grub_millisleep): New function.
20124 * include/grub/misc.h (grub_div_roundup): New function.
20126 * kern/misc.c: Include `<grub/time.h>'.
20127 (grub_millisleep_generic): New function.
20129 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
20131 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
20133 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
20134 `machine/time.h'. Add `time.h'.
20135 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
20137 2007-10-21 Robert Millan <rmh@aybabtu.com>
20139 * include/grub/misc.h (grub_max): New function.
20141 2007-10-21 Robert Millan <rmh@aybabtu.com>
20143 * util/misc.c (grub_util_info): Call fflush() before returning.
20145 2007-10-20 Robert Millan <rmh@aybabtu.com>
20147 * genmk.rb (Image): Copy `extra_flags' from here ...
20148 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
20150 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
20151 to `argc' and `args' arguments.
20153 2007-10-17 Robert Millan <rmh@aybabtu.com>
20155 * kern/i386/loader.S: New file.
20157 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
20158 * kern/i386/loader.S (grub_linux_prot_size)... to here.
20159 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
20160 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
20161 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
20162 * kern/i386/loader.S (grub_linux_real_addr)... to here.
20163 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
20164 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
20165 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
20166 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
20167 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
20168 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
20169 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
20170 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
20172 * kern/i386/realmode.S: New file.
20174 * kern/i386/pc/startup.S (protstack): Moved from here ...
20175 * kern/i386/realmode.S (protstack)... to here.
20176 * kern/i386/pc/startup.S (gdt): Moved from here ...
20177 * kern/i386/realmode.S (gdt)... to here.
20178 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
20179 * kern/i386/realmode.S (prot_to_real)... to here.
20181 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
20182 `kern/i386/realmode.S'.
20184 2007-10-17 Robert Millan <rmh@aybabtu.com>
20186 * include/grub/i386/loader.h: New file.
20188 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
20189 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20190 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20191 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20192 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
20193 * include/grub/i386/loader.h (grub_linux_prot_size)
20194 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20195 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20196 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20197 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
20199 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
20201 2007-10-15 Robert Millan <rmh@aybabtu.com>
20203 * normal/misc.c (grub_normal_print_device_info): Do not probe for
20204 filesystem when dev->disk is unset.
20205 Do probe for filesystem even when dev->disk->has_partitions is set.
20206 In case a filesystem is found, always report it.
20207 In case it isn't, if dev->disk->has_partitions is set, report that
20208 a partition table was found instead of reporting that no filesystem
20209 could be identified.
20211 2007-10-12 Robert Millan <rmh@aybabtu.com>
20213 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
20214 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
20216 * include/grub/types.h (grub_host_to_target16): New macro.
20217 (grub_host_to_target32): Likewise.
20218 (grub_host_to_target64): Likewise.
20219 (grub_target_to_host16): Likewise.
20220 (grub_target_to_host32): Likewise.
20221 (grub_target_to_host64): Likewise.
20223 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
20224 Renamed from to ...
20225 (GRUB_MOD_ALIGN): ...this. Update all users.
20227 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
20228 grub_host_to_target32.
20229 Replace grub_be_to_cpu32 with grub_target_to_host32.
20230 (load_modules): Likewise.
20231 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
20232 Replace grub_be_to_cpu32 with grub_target_to_host32.
20233 Replace grub_cpu_to_be16 with grub_host_to_target16.
20234 Replace grub_cpu_to_be32 grub_host_to_target32.
20236 2007-10-12 Robert Millan <rmh@aybabtu.com>
20238 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
20239 * util/elf/grub-mkimage.c: ... here.
20241 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
20242 `util/powerpc/ieee1275/grub-mkimage.c'.
20244 2007-10-07 Robert Millan <rmh@aybabtu.com>
20246 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
20247 and make it easier to figure out.
20248 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
20249 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
20250 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
20251 leave us with less than HEAP_MIN_SIZE total heap.
20252 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
20254 2007-10-03 Robert Millan <rmh@aybabtu.com>
20256 * include/grub/i386/io.h: New file.
20257 * commands/i386/pc/play.c (inb): Removed.
20259 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20261 * term/i386/pc/serial.c (inb): Removed.
20263 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20265 * term/i386/pc/vga.c (inb): Removed.
20267 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20270 2007-10-02 Robert Millan <rmh@aybabtu.com>
20272 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
20273 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20274 Reported by Marcin Kurek.
20276 2007-09-07 Robert Millan <rmh@aybabtu.com>
20278 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
20279 SmartFirmware version updates (as released by Sven Luther), and avoid
20280 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
20281 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
20284 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20286 From Hitoshi Ozeki:
20287 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
20288 when merging two regions.
20290 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20292 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
20293 * normal/completion.c (grub_normal_do_completion): Likewise.
20294 Reported by Hitoshi Ozeki.
20296 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20298 Do not use devices at boot in chainloading.
20300 * loader/i386/pc/chainloader.c (boot_drive): New variable.
20301 (boot_part_addr): Likewise.
20302 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
20303 with BOOT_DRIVE and BOOT_PART_ADDR.
20304 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
20305 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
20307 2007-08-29 Robert Millan <rmh@aybabtu.com>
20309 Patch from Simon Peter <dn.tlp@gmx.net>:
20310 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
20311 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
20312 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
20313 util/i386/pc/grub-setup.c_DEPENDENCIES.
20314 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
20315 util/grub-probe.c_DEPENDENCIES.
20316 * conf/powerpc-ieee1275.rmk: Likewise.
20318 2007-08-28 Robert Millan <rmh@aybabtu.com>
20320 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
20321 to tell grub-mkdevicemap how to name devices.
20322 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
20325 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
20326 util/i386/get_disk_name.c.
20327 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
20328 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
20329 util/ieee1275/get_disk_name.c.
20331 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
20333 * DISTLIST: Add util/i386/get_disk_name.c and
20334 util/ieee1275/get_disk_name.c.
20336 * util/grub-mkdevicemap.c: Replace device naming logic with
20337 grub_util_get_disk_name() calls.
20339 2007-08-20 Robert Millan <rmh@aybabtu.com>
20341 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
20342 (so that it works for both plural and singular quantities).
20344 2007-08-05 Robert Millan <rmh@aybabtu.com>
20346 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
20347 so that [xz] isn't taken into account when determining order.
20349 2007-08-02 Marco Gerards <marco@gnu.org>
20351 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
20352 `include/multiboot2.h', `include/grub/elfload.h',
20353 `include/multiboot.h', `include/grub/multiboot.h',
20354 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
20355 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
20356 `kern/elf.c', `loader/multiboot_loader.c',
20357 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
20358 `loader/i386/pc/multiboot2.c',
20359 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
20360 `util/i386/pc/grub-mkrescue.in'. Remove
20361 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
20362 `include/grub/i386/pc/util/biosdisk.h' and
20363 `include/grub/powerpc/ieee1275/multiboot.h'.
20365 2007-08-02 Bean <bean123ch@gmail.com>
20367 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
20368 (ntfs_mod_SOURCES): New variable.
20369 (ntfs_mod_CFLAGS): Likewise.
20370 (ntfs_mod_LDFLAGS): Likewise.
20372 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
20373 (grub_probe_SOURCES): Likewise.
20374 (grub_emu_SOURCES): Likewise.
20376 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20377 (grub_emu_SOURCES): Likewise.
20379 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20380 (grub_emu_SOURCES): Likewise.
20382 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
20384 * fs/ntfs.c: New file.
20386 2007-08-02 Bean <bean123ch@gmail.com>
20388 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
20390 * file.h (grub_file): Likewise.
20392 * fshelp.h (grub_fshelp_read_file): Likewise.
20394 * util/i386/pc/grub-setup.c (setup): Likewise.
20395 (save_first_sector): Likewise.
20396 (save_blocklists): Likewise.
20398 * fs/affs.c (grub_affs_read_file): Likewise.
20400 * fs/ext2.c (grub_ext2_read_file): Likewise.
20402 * fs/fat.c (grub_fat_read_data): Likewise.
20404 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
20406 * fs/hfs.c (grub_hfs_read_file): Likewise.
20408 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
20410 * fs/jfs.c (grub_jfs_read_file): Likewise.
20412 * fs/minix.c (grub_minix_read_file): Likewise.
20414 * fs/sfs.c (grub_sfs_read_file): Likewise.
20416 * fs/ufs.c (grub_ufs_read_file): Likewise.
20418 * fs/xfs.c (grub_xfs_read_file): Likewise.
20420 * command/blocklist.c (read_blocklist): Likewise.
20421 (print_blocklist): Likewise.
20423 2007-08-02 Marco Gerards <marco@gnu.org>
20425 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
20428 * disk/host.c: New file.
20430 * util/hostfs.c: Likewise.
20432 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
20433 return `GRUB_ERR_BAD_FS'.
20434 * fs/sfs.c (grub_sfs_mount): Likewise.
20435 * fs/xfs.c (grub_xfs_mount): Likewise.
20437 * include/grub/disk.h (enum grub_disk_dev_id): Add
20438 `GRUB_DISK_DEVICE_HOST_ID'.
20440 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
20442 2007-07-24 Jerone Young <jerone@gmail.com>
20444 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
20445 modules for compilation.
20446 * conf/powerpc-ieee1275.rmk: Likewise.
20448 * include/multiboot.h: Move multiboot definitions to one file. Rename
20449 many definitions to not get grub specific.
20450 * include/multiboot2.h: Create header with multiboot 2 definitions.
20451 * include/grub/multiboot.h: Header for grub specific function
20452 prototypes and definitions.
20453 * include/grub/multiboot2.h: Likewise.
20454 * include/grub/multiboot_loader.h: Likewise.
20455 * include/grub/i386/pc/multiboot.h: Removed.
20456 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
20458 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
20459 and 2 to allow for one multiboot and module commands.
20460 * loader/multiboot2.c: Add multiboot2 functionality.
20461 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
20462 and definition names.
20463 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
20465 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
20466 ieee1275 specific multiboot2 code.
20468 * kern/i386/pc/startup.S: Change headers and definition names for
20469 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
20471 2007-07-22 Robert Millan <rmh@aybabtu.com>
20473 * geninitheader.sh: Process file specified in first parameter rather
20474 than hardcoding grub_modules_init.lst.
20475 * geninit.sh: Likewise. Also, construct header name dynamically rather
20476 than hardcoding grub_modules_init.h.
20478 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
20479 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
20480 grub_probe_init.[ch] and grub_setup_init.[ch].
20482 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
20483 grub_modules_init.h with grub_emu_init.h.
20484 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
20485 grub_probe_init.[ch] files.
20486 * conf/i386-efi.rmk: Likewise.
20487 * conf/i386-pc.rmk: Likewise.
20488 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
20489 grub_setup_init.[ch] files.
20491 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
20492 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
20493 to initialize modules rather than a list of hardcoded functions.
20494 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
20495 grub_init_all() to initialize modules rather than a list of hardcoded
20498 2007-07-22 Robert Millan <rmh@aybabtu.com>
20500 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20501 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
20503 2007-07-22 Robert Millan <rmh@aybabtu.com>
20505 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
20506 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
20507 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
20508 flag when running on SmartFirmware.
20509 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
20510 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
20513 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
20514 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
20515 rather than decreasing it.
20517 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
20518 there's not enough space to do it, fail in the same way as when it
20519 can't be done because there are no partitions.
20521 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
20522 when nvsetenv failed.
20524 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20526 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
20527 because this rule is automatically generated.
20528 (grub-mkrescue): Removed for the same reason as above.
20530 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20532 Migrate to GNU General Public License Version 3.
20534 * COPYING: Replaced with the plain text version of GPLv3.
20536 * config.guess: Updated from gnulib.
20537 * config.sub: Likewise.
20539 * geninit.sh: Output a GPLv3 copyright notice.
20540 * geninitheader.sh: Likewise.
20541 * genmodsrc.sh: Likewise.
20542 * gensymlist.sh.in: Likewise.
20544 * boot/i386/pc/boot.S: Upgraded to GPLv3.
20545 * boot/i386/pc/diskboot.S: Likewise.
20546 * boot/i386/pc/pxeboot.S: Likewise.
20547 * commands/blocklist.c: Likewise.
20548 * commands/boot.c: Likewise.
20549 * commands/cat.c: Likewise.
20550 * commands/cmp.c: Likewise.
20551 * commands/configfile.c: Likewise.
20552 * commands/echo.c: Likewise.
20553 * commands/help.c: Likewise.
20554 * commands/ls.c: Likewise.
20555 * commands/search.c: Likewise.
20556 * commands/terminal.c: Likewise.
20557 * commands/test.c: Likewise.
20558 * commands/videotest.c: Likewise.
20559 * commands/i386/cpuid.c: Likewise.
20560 * commands/i386/pc/halt.c: Likewise.
20561 * commands/i386/pc/play.c: Likewise.
20562 * commands/i386/pc/reboot.c: Likewise.
20563 * commands/i386/pc/vbeinfo.c: Likewise.
20564 * commands/i386/pc/vbetest.c: Likewise.
20565 * commands/ieee1275/halt.c: Likewise.
20566 * commands/ieee1275/reboot.c: Likewise.
20567 * commands/ieee1275/suspend.c: Likewise.
20568 * disk/loopback.c: Likewise.
20569 * disk/lvm.c: Likewise.
20570 * disk/raid.c: Likewise.
20571 * disk/efi/efidisk.c: Likewise.
20572 * disk/i386/pc/biosdisk.c: Likewise.
20573 * disk/ieee1275/ofdisk.c: Likewise.
20574 * font/manager.c: Likewise.
20575 * fs/affs.c: Likewise.
20576 * fs/ext2.c: Likewise.
20577 * fs/fat.c: Likewise.
20578 * fs/fshelp.c: Likewise.
20579 * fs/hfs.c: Likewise.
20580 * fs/hfsplus.c: Likewise.
20581 * fs/iso9660.c: Likewise.
20582 * fs/jfs.c: Likewise.
20583 * fs/minix.c: Likewise.
20584 * fs/sfs.c: Likewise.
20585 * fs/ufs.c: Likewise.
20586 * fs/xfs.c: Likewise.
20587 * hello/hello.c: Likewise.
20588 * include/grub/acorn_filecore.h: Likewise.
20589 * include/grub/arg.h: Likewise.
20590 * include/grub/bitmap.h: Likewise.
20591 * include/grub/boot.h: Likewise.
20592 * include/grub/cache.h: Likewise.
20593 * include/grub/device.h: Likewise.
20594 * include/grub/disk.h: Likewise.
20595 * include/grub/dl.h: Likewise.
20596 * include/grub/elfload.h: Likewise.
20597 * include/grub/env.h: Likewise.
20598 * include/grub/err.h: Likewise.
20599 * include/grub/file.h: Likewise.
20600 * include/grub/font.h: Likewise.
20601 * include/grub/fs.h: Likewise.
20602 * include/grub/fshelp.h: Likewise.
20603 * include/grub/gzio.h: Likewise.
20604 * include/grub/hfs.h: Likewise.
20605 * include/grub/kernel.h: Likewise.
20606 * include/grub/loader.h: Likewise.
20607 * include/grub/lvm.h: Likewise.
20608 * include/grub/misc.h: Likewise.
20609 * include/grub/mm.h: Likewise.
20610 * include/grub/net.h: Likewise.
20611 * include/grub/normal.h: Likewise.
20612 * include/grub/parser.h: Likewise.
20613 * include/grub/partition.h: Likewise.
20614 * include/grub/pc_partition.h: Likewise.
20615 * include/grub/raid.h: Likewise.
20616 * include/grub/rescue.h: Likewise.
20617 * include/grub/script.h: Likewise.
20618 * include/grub/setjmp.h: Likewise.
20619 * include/grub/symbol.h: Likewise.
20620 * include/grub/term.h: Likewise.
20621 * include/grub/terminfo.h: Likewise.
20622 * include/grub/tparm.h: Likewise.
20623 * include/grub/types.h: Likewise.
20624 * include/grub/video.h: Likewise.
20625 * include/grub/efi/api.h: Likewise.
20626 * include/grub/efi/chainloader.h: Likewise.
20627 * include/grub/efi/console.h: Likewise.
20628 * include/grub/efi/console_control.h: Likewise.
20629 * include/grub/efi/disk.h: Likewise.
20630 * include/grub/efi/efi.h: Likewise.
20631 * include/grub/efi/pe32.h: Likewise.
20632 * include/grub/efi/time.h: Likewise.
20633 * include/grub/i386/linux.h: Likewise.
20634 * include/grub/i386/setjmp.h: Likewise.
20635 * include/grub/i386/types.h: Likewise.
20636 * include/grub/i386/efi/kernel.h: Likewise.
20637 * include/grub/i386/efi/loader.h: Likewise.
20638 * include/grub/i386/efi/time.h: Likewise.
20639 * include/grub/i386/pc/biosdisk.h: Likewise.
20640 * include/grub/i386/pc/boot.h: Likewise.
20641 * include/grub/i386/pc/chainloader.h: Likewise.
20642 * include/grub/i386/pc/console.h: Likewise.
20643 * include/grub/i386/pc/init.h: Likewise.
20644 * include/grub/i386/pc/kernel.h: Likewise.
20645 * include/grub/i386/pc/loader.h: Likewise.
20646 * include/grub/i386/pc/memory.h: Likewise.
20647 * include/grub/i386/pc/multiboot.h: Likewise.
20648 * include/grub/i386/pc/serial.h: Likewise.
20649 * include/grub/i386/pc/time.h: Likewise.
20650 * include/grub/i386/pc/vbe.h: Likewise.
20651 * include/grub/i386/pc/vbeblit.h: Likewise.
20652 * include/grub/i386/pc/vbefill.h: Likewise.
20653 * include/grub/i386/pc/vbeutil.h: Likewise.
20654 * include/grub/i386/pc/vga.h: Likewise.
20655 * include/grub/ieee1275/ieee1275.h: Likewise.
20656 * include/grub/ieee1275/ofdisk.h: Likewise.
20657 * include/grub/powerpc/libgcc.h: Likewise.
20658 * include/grub/powerpc/setjmp.h: Likewise.
20659 * include/grub/powerpc/types.h: Likewise.
20660 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
20661 * include/grub/powerpc/ieee1275/console.h: Likewise.
20662 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
20663 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
20664 * include/grub/powerpc/ieee1275/loader.h: Likewise.
20665 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
20666 * include/grub/powerpc/ieee1275/time.h: Likewise.
20667 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
20668 * include/grub/sparc64/libgcc.h: Likewise.
20669 * include/grub/sparc64/setjmp.h: Likewise.
20670 * include/grub/sparc64/types.h: Likewise.
20671 * include/grub/sparc64/ieee1275/console.h: Likewise.
20672 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
20673 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
20674 * include/grub/sparc64/ieee1275/time.h: Likewise.
20675 * include/grub/util/biosdisk.h: Likewise.
20676 * include/grub/util/getroot.h: Likewise.
20677 * include/grub/util/lvm.h: Likewise.
20678 * include/grub/util/misc.h: Likewise.
20679 * include/grub/util/raid.h: Likewise.
20680 * include/grub/util/resolve.h: Likewise.
20681 * io/gzio.c: Likewise.
20682 * kern/device.c: Likewise.
20683 * kern/disk.c: Likewise.
20684 * kern/dl.c: Likewise.
20685 * kern/elf.c: Likewise.
20686 * kern/env.c: Likewise.
20687 * kern/err.c: Likewise.
20688 * kern/file.c: Likewise.
20689 * kern/fs.c: Likewise.
20690 * kern/loader.c: Likewise.
20691 * kern/main.c: Likewise.
20692 * kern/misc.c: Likewise.
20693 * kern/mm.c: Likewise.
20694 * kern/parser.c: Likewise.
20695 * kern/partition.c: Likewise.
20696 * kern/rescue.c: Likewise.
20697 * kern/term.c: Likewise.
20698 * kern/efi/efi.c: Likewise.
20699 * kern/efi/init.c: Likewise.
20700 * kern/efi/mm.c: Likewise.
20701 * kern/i386/dl.c: Likewise.
20702 * kern/i386/efi/init.c: Likewise.
20703 * kern/i386/efi/startup.S: Likewise.
20704 * kern/i386/pc/init.c: Likewise.
20705 * kern/i386/pc/lzo1x.S: Likewise.
20706 * kern/i386/pc/startup.S: Likewise.
20707 * kern/ieee1275/ieee1275.c: Likewise.
20708 * kern/powerpc/cache.S: Likewise.
20709 * kern/powerpc/dl.c: Likewise.
20710 * kern/powerpc/ieee1275/cmain.c: Likewise.
20711 * kern/powerpc/ieee1275/crt0.S: Likewise.
20712 * kern/powerpc/ieee1275/init.c: Likewise.
20713 * kern/powerpc/ieee1275/openfw.c: Likewise.
20714 * kern/sparc64/cache.S: Likewise.
20715 * kern/sparc64/dl.c: Likewise.
20716 * kern/sparc64/ieee1275/init.c: Likewise.
20717 * kern/sparc64/ieee1275/openfw.c: Likewise.
20718 * loader/efi/chainloader.c: Likewise.
20719 * loader/efi/chainloader_normal.c: Likewise.
20720 * loader/i386/efi/linux.c: Likewise.
20721 * loader/i386/efi/linux_normal.c: Likewise.
20722 * loader/i386/pc/chainloader.c: Likewise.
20723 * loader/i386/pc/chainloader_normal.c: Likewise.
20724 * loader/i386/pc/linux.c: Likewise.
20725 * loader/i386/pc/linux_normal.c: Likewise.
20726 * loader/i386/pc/multiboot.c: Likewise.
20727 * loader/i386/pc/multiboot_normal.c: Likewise.
20728 * loader/powerpc/ieee1275/linux.c: Likewise.
20729 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
20730 * normal/arg.c: Likewise.
20731 * normal/cmdline.c: Likewise.
20732 * normal/command.c: Likewise.
20733 * normal/completion.c: Likewise.
20734 * normal/execute.c: Likewise.
20735 * normal/function.c: Likewise.
20736 * normal/lexer.c: Likewise.
20737 * normal/main.c: Likewise.
20738 * normal/menu.c: Likewise.
20739 * normal/menu_entry.c: Likewise.
20740 * normal/misc.c: Likewise.
20741 * normal/parser.y: Likewise.
20742 * normal/script.c: Likewise.
20743 * normal/i386/setjmp.S: Likewise.
20744 * normal/powerpc/setjmp.S: Likewise.
20745 * normal/sparc64/setjmp.S: Likewise.
20746 * partmap/acorn.c: Likewise.
20747 * partmap/amiga.c: Likewise.
20748 * partmap/apple.c: Likewise.
20749 * partmap/gpt.c: Likewise.
20750 * partmap/pc.c: Likewise.
20751 * partmap/sun.c: Likewise.
20752 * term/gfxterm.c: Likewise.
20753 * term/terminfo.c: Likewise.
20754 * term/efi/console.c: Likewise.
20755 * term/i386/pc/console.c: Likewise.
20756 * term/i386/pc/serial.c: Likewise.
20757 * term/i386/pc/vesafb.c: Likewise.
20758 * term/i386/pc/vga.c: Likewise.
20759 * term/ieee1275/ofconsole.c: Likewise.
20760 * util/biosdisk.c: Likewise.
20761 * util/console.c: Likewise.
20762 * util/genmoddep.c: Likewise.
20763 * util/getroot.c: Likewise.
20764 * util/grub-emu.c: Likewise.
20765 * util/grub-mkdevicemap.c: Likewise.
20766 * util/grub-probe.c: Likewise.
20767 * util/lvm.c: Likewise.
20768 * util/misc.c: Likewise.
20769 * util/raid.c: Likewise.
20770 * util/resolve.c: Likewise.
20771 * util/update-grub.in: Likewise.
20772 * util/update-grub_lib.in: Likewise.
20773 * util/grub.d/00_header.in: Likewise.
20774 * util/grub.d/10_hurd.in: Likewise.
20775 * util/grub.d/10_linux.in: Likewise.
20776 * util/i386/efi/grub-install.in: Likewise.
20777 * util/i386/efi/grub-mkimage.c: Likewise.
20778 * util/i386/pc/grub-install.in: Likewise.
20779 * util/i386/pc/grub-mkimage.c: Likewise.
20780 * util/i386/pc/grub-mkrescue.in: Likewise.
20781 * util/i386/pc/grub-setup.c: Likewise.
20782 * util/i386/pc/misc.c: Likewise.
20783 * util/powerpc/ieee1275/grub-install.in: Likewise.
20784 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
20785 * util/powerpc/ieee1275/misc.c: Likewise.
20786 * video/bitmap.c: Likewise.
20787 * video/video.c: Likewise.
20788 * video/i386/pc/vbe.c: Likewise.
20789 * video/i386/pc/vbeblit.c: Likewise.
20790 * video/i386/pc/vbefill.c: Likewise.
20791 * video/i386/pc/vbeutil.c: Likewise.
20792 * video/readers/tga.c: Likewise.
20794 2007-07-02 Robert Millan <rmh@aybabtu.com>
20796 * conf/i386-efi.rmk: Replace obsolete reference to
20797 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
20798 with util/getroot.c.
20799 * conf/powerpc-ieee1275.rmk: Likewise.
20800 * conf/sparc64-ieee1275.rmk: Likewise.
20802 * util/grub-emu.c (main): Fix unchecked pointer handling.
20804 2007-07-02 Robert Millan <rmh@aybabtu.com>
20806 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
20807 invocation to fail, in order to support partition-less media.
20809 * util/i386/pc/grub-install.in: Likewise.
20811 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
20812 which fs or partmap modules are needed (akin to its sister scripts).
20814 Also use grub-probe to get rid of unportable /proc/mounts check.
20816 Print the same informational message that the other scripts do, before
20819 2007-06-23 Robert Millan <rmh@aybabtu.com>
20821 * util/update-grub_lib.in (font_path): New function. Determine whether
20822 a font file can be found and, if so, echo the GRUB path to it.
20824 * util/update-grub.in: Handle multiple terminals depending on user
20825 input, platform availability and font file presence. Propagate
20826 variables of our findings to /etc/grub.d/ children.
20828 * util/grub.d/00_header.in: Handle multiple terminals, based on
20829 environment setup by update-grub.
20831 2007-06-23 Robert Millan <rmh@aybabtu.com>
20833 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
20835 2007-06-21 Robert Millan <rmh@aybabtu.com>
20837 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
20838 indicate end of data section in kernel image.
20839 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
20840 GRUB_KERNEL_MACHINE_DATA_END.
20842 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
20844 * kern/i386/efi/startup.S: Likewise.
20846 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
20847 during image generation. Implement --prefix option to override this
20849 * util/i386/efi/grub-mkimage.c: Likewise.
20851 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
20852 code to make path relative to its root into a separate function.
20854 * util/i386/pc/grub-install.in: Use newly provided
20855 make_system_path_relative_to_its_root() to convert ${grubdir}, then
20856 pass the result to grub-install --prefix.
20858 2007-06-13 Robert Millan <rmh@aybabtu.com>
20860 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
20861 DEFAULT_DEVICE_MAP.
20862 * util/grub-emu.c: Use above definitions from misc.h instead of
20864 * util/grub-mkdevicemap.c: Likewise.
20865 * util/i386/pc/grub-setup.c: Likewise.
20866 * util/grub-probe.c: Likewise.
20867 (probe): Abort with grub_util_error() when either
20868 grub_guess_root_device or grub_util_get_grub_dev fails.
20870 2007-06-12 Robert Millan <rmh@aybabtu.com>
20872 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
20873 "pager" assignment.
20874 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
20876 * util/grub-probe.c (probe): Likewise for "drive_name".
20878 2007-06-11 Robert Millan <rmh@aybabtu.com>
20880 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
20881 not just the cdrom one.
20883 2007-06-11 Robert Millan <rmh@aybabtu.com>
20885 * util/i386/pc/grub-mkrescue.in: Add "set -e".
20886 Add --pkglibdir=DIR option to override pkglibdir.
20887 Mention --image-type=TYPE in help output.
20888 Fix --grub-mkimage (it was a no-op).
20889 Abort gracefully when no parameter is given.
20891 2007-06-11 Robert Millan <rmh@aybabtu.com>
20893 * util/i386/pc/grub-mkrescue.in: New file.
20894 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
20895 * Makefile.in: Handle bin_SCRIPTS.
20897 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
20899 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
20900 list of video modes.
20902 2007-06-06 Robert Millan <rmh@aybabtu.com>
20904 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
20905 file doesn't exist, or if it is in a filesystem grub can't read.
20907 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
20908 not abort if GRUB_DRIVE could not be defined. Rearrange generated
20909 header comment to fit in 80 columns when the variables are resolved.
20911 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
20912 could be identified by update-grub. Remove redundant check for
20913 unifont.pff existence (since convert_system_path_to_grub_path now
20916 2007-06-04 Robert Millan <rmh@aybabtu.com>
20918 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
20920 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
20922 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
20924 2007-06-04 Robert Millan <rmh@aybabtu.com>
20926 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
20928 * include/grub/partition.h: Declare grub_apple_partition_map_init and
20929 grub_apple_partition_map_fini.
20932 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
20933 to access >2 TiB disks).
20935 Print disk->total_sectors with %llu instead of %lu, since this
20936 variable is always 64-bit (prevents wrong disk size from being displayed
20937 on either >2 TiB disk or big-endian CPU).
20939 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
20940 into a generic case that supports all (sane) partition maps.
20942 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
20945 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
20946 and grub_apple_partition_map_fini() after that.
20948 2007-06-01 Robert Millan <rmh@aybabtu.com>
20950 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
20952 * util/grub.d/00_header.in: Only enable gfxterm when
20953 convert_system_path_to_grub_path() succeeds.
20955 2007-05-20 Robert Millan <rmh@aybabtu.com>
20957 * util/update-grub_lib.in: New file.
20958 * DISTLIST: Add update-grub_lib.in.
20959 * conf/common.rmk: Generate update-grub_lib and install it in
20961 * Makefile.in: Add install routine for $(lib_DATA).
20963 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
20964 function provided by update-grub_lib to support arbitrary paths of
20966 * util/update-grub.in: Use convert_system_path_to_grub_path() to
20967 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
20969 2007-05-19 Robert Millan <rmh@aybabtu.com>
20971 * commands/i386/cpuid.c: New module.
20972 * DISTLIST: Add it.
20973 * conf/i386-efi.rmk: Enable cpuid.mod.
20974 * conf/i386-pc.rmk: Likewise.
20976 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
20978 * kern/disk.c (grub_disk_read): Check return value of
20981 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
20983 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
20985 * disk/raid.c (grub_raid_open): Likewise.
20987 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
20989 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
20990 stack instead of on the heap.
20992 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
20993 before doing a read on it.
20995 * configure.ac: Only use -fno-stack-protector for the target
20998 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
21000 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
21001 __attribute_ ((unused)) to mode_type argument.
21003 * util/getroot.c (grub_guess_root_device): Fix #endif.
21005 * kern/misc.c (memcmp): Fix prototype.
21007 * include/grub/partition.h [GRUB_UTIL]
21008 (grub_gpt_partition_map_init): Add prototype.
21009 (grub_gpt_partition_map_fini): Likewise.
21011 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
21012 at the right place.
21014 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
21015 (grub_fat_read_data): Likewise.
21016 (grub_fat_find_dir): Likewise.
21018 * font/manager.c (find_glyph): Make table a const.
21019 (grub_font_get_glyph): Remove bitmap from if statement.
21021 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
21023 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
21024 code, first search for device in /dev/mapper, then in /dev.
21025 (grub_util_get_grub_dev): New function.
21026 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
21028 * util/grub-probe.c (probe): Remove check for RAID, call
21029 grub_util_get_grub_dev() instead of
21030 grub_util_biosdisk_get_grub_dev().
21031 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
21032 grub_util_biosdisk_get_grub_dev().
21033 * util/i386/pc/grub-setup.c (main): Likewise.
21035 2007-05-16 Robert Millan <rmh@aybabtu.com>
21037 * DISTLIST: Update for the latest changes.
21038 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
21039 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
21040 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
21041 grub/util/biosdisk.h.
21042 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
21043 grub/util/biosdisk.h.
21045 2007-05-16 Robert Millan <rmh@aybabtu.com>
21047 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
21049 2007-05-16 Robert Millan <rmh@aybabtu.com>
21051 * util/i386/efi/grub-install.in: New.
21052 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
21053 newly added grub-install.
21054 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
21056 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
21057 grub/util/biosdisk.h.
21058 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
21059 grub/util/biosdisk.h.
21061 2007-05-16 Robert Millan <rmh@aybabtu.com>
21063 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
21064 * include/grub/util/biosdisk.h: ... here.
21065 * util/i386/pc/biosdisk.c: Moved to ...
21066 * util/biosdisk.c: ... here.
21067 * util/i386/pc/getroot.c: Moved to ...
21068 * util/getroot.c: ... here.
21069 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
21070 * util/grub-mkdevicemap.c: ... here.
21071 * util/i386/pc/grub-probe.c: Moved to ...
21072 * util/grub-probe.c: ... here.
21074 2007-05-15 Robert Millan <rmh@aybabtu.com>
21076 * util/update-grub.in: Remove duplicated line in grub.cfg header
21079 2007-05-13 Robert Millan <rmh@aybabtu.com>
21081 * util/update-grub.in: Fix a few assumptions about the devices holding
21082 /, /boot and /boot/grub being the same.
21083 * util/grub.d/00_header.in: Likewise.
21084 * util/grub.d/10_hurd.in: Likewise.
21085 * util/grub.d/10_linux.in: Likewise.
21087 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
21088 patterns. Use that to define the `.old' suffix as older than `'.
21090 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
21092 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
21093 the grub.cfg header message.
21095 2007-05-11 Robert Millan <rmh@aybabtu.com>
21097 * util/update-grub.in: Create device.map if it doesn't already exist,
21098 before attempting to run grub-probe.
21099 Check for grub-probe and grub-mkdevicemap with the same code
21100 grub-install is using.
21103 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
21105 * Makefile.in: Add the datarootdir autoconf variable.
21107 2007-05-09 Robert Millan <rmh@aybabtu.com>
21109 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
21110 fail gracefully if dev->disk->partition == NULL.
21112 2007-05-07 Robert Millan <rmh@aybabtu.com>
21114 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
21115 determine partition map module.
21116 * util/i386/pc/grub-install.in: Use this feature to decide which
21117 partition module to load, instead of hardcoding pc and gpt.
21119 2007-05-07 Robert Millan <rmh@aybabtu.com>
21121 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
21122 source directory differs from build directory.
21124 2007-05-05 Robert Millan <rmh@aybabtu.com>
21126 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
21129 2007-05-05 Robert Millan <rmh@aybabtu.com>
21131 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
21133 2007-05-05 Robert Millan <rmh@aybabtu.com>
21135 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
21136 command-line arguments via ${GRUB_CMDLINE_LINUX}.
21138 2007-05-05 Robert Millan <rmh@aybabtu.com>
21140 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
21141 (grub_probe_SOURCES): Likewise.
21142 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
21143 GPT and initialize dos_part and bsd_part accordingly.
21144 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
21146 (main): Activate gpt module for use during partition identification,
21147 and deactivate it afterwards.
21148 * util/i386/pc/grub-install.in: Add gpt module to core.img.
21149 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
21150 partition identification, and deactivate it afterwards.
21152 2007-05-05 Robert Millan <rmh@aybabtu.com>
21154 * term/i386/pc/console.c (grub_console_fini): Call
21155 grub_term_set_current() before grub_term_unregister().
21157 2007-05-04 Robert Millan <rmh@aybabtu.com>
21159 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
21160 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
21161 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
21162 and update-grub_DATA.
21163 * conf/common.rmk: Build and install update-grub components.
21164 * conf/common.mk: Regenerate.
21165 * util/update-grub.in: New. Core of update-grub.
21166 * util/grub.d/00_header.in: New. Generates grub.cfg header.
21167 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
21168 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
21169 * util/grub.d/README: New. Document grub.d directory layout.
21171 2007-05-01 Robert Millan <rmh@aybabtu.com>
21173 * util/grub-emu.c: Move initialization functions
21174 grub_util_biosdisk_init() and grub_init_all() before
21175 grub_util_biosdisk_get_grub_dev(), which relies on them.
21177 2007-04-19 Robert Millan <rmh@aybabtu.com>
21179 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
21182 2007-04-18 Jerone Young <jerone@gmail.com>
21184 * kernel/elf.c: Add missing parenthesis for conditional statement
21187 2007-04-10 Jerone Young <jerone@gmail.com>
21189 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
21190 continue on and look for device node with real device name.
21192 2007-04-10 Jerone Young <jerone@gmail.com>
21194 * configure.ac: Add argument for autoconf to use transformation
21196 * Makefile.in: Add autoconf package transformation code.
21197 * util/i386/pc/grub-install.in: Likewise.
21198 * util/powerpc/ieee1275/grub-install.in: Likewise.
21200 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
21202 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
21203 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
21204 (EXT2_REVISION): Likewise.
21205 (EXT2_INODE_SIZE): Likewise.
21206 (struct grub_ext2_block_group): Added a missing member
21208 (grub_ext2_read_inode): Divide by the inode size in a superblock
21209 instead of 128 to obtain INODES_PER_BLOCK.
21210 Use the macro EXT2_INODE_SIZE instead of directly using
21211 SBLOCK->INODE_SIZE.
21213 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
21215 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
21216 superblock instead of the structure size to compute an
21217 offset. This fixes the problem that GRUB could not read a
21218 filesystem when inode size is different from 128-byte.
21220 2007-03-05 Marco Gerards <marco@gnu.org>
21222 * normal/main.c (read_config_file): When "menu" is not set, create
21223 an initial context.
21225 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21227 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
21228 (HEAP_LIMIT): New macro.
21229 (grub_claim_heap): Claim memory up to `heaplimit'.
21231 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21233 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
21234 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
21235 (_start): Likewise.
21236 (grub_arch_modules_addr): Return address after `_end'.
21237 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
21238 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
21239 (add_segments): Calculate `_end' from phdr size and location.
21240 (ALIGN_UP): Moved to ...
21241 * include/grub/misc.h: here.
21242 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
21244 (GRUB_IEEE1275_MODULE_BASE): Removed.
21246 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21248 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
21251 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21253 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
21255 (grub_elf64_load_hook_t): Likewise.
21256 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
21259 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21261 * kern/mm.c: Update copyright.
21262 (grub_mm_debug): Correct syntax error.
21263 (grub_mm_dump_free): New function.
21264 (grub_debug_free): Call `grub_free'.
21265 * include/grub/mm.h: Update copyright.
21266 (grub_mm_dump_free): Add declaration.
21268 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21270 * include/grub/ieee1275/ieee1275.h: Update copyright.
21271 * kern/powerpc/ieee1275/init.c: Likewise.
21272 * kern/powerpc/ieee1275/openfw.c: Likewise.
21274 * loader/powerpc/ieee1275/linux.c: Likewise.
21275 * include/grub/elfload.h: Likewise.
21276 * kern/elf.c: Likewise.
21277 (grub_elf32_load): Pass `base' and `size' parameters. Update all
21279 (grub_elf64_load): Likewise.
21280 (grub_elf32_load_segment): Move to a nested function.
21281 (grub_elf64_load_segment): Likewise.
21283 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21285 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
21287 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
21288 (grub_heap_len): Likewise.
21289 (HEAP_SIZE): New macro.
21290 (grub_claim_heap): New function.
21291 (grub_machine_init): Don't claim heap directly. Call
21293 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
21294 (grub_available_iterate): New function.
21296 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
21298 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
21299 * configure.ac: Use it for testing the HOST and TARGET compilers.
21301 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
21303 * Makefile.in (enable_grub_emu): New variable.
21304 * configure.ac (--enable-grub-emu): New option.
21305 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
21306 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
21307 * conf/i386-pc.rmk: Likewise.
21308 * conf/powerpc-ieee1275.rmk: Likewise.
21309 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
21311 2006-12-12 Marco Gerards <marco@gnu.org>
21313 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
21315 * kern/env.c (grub_env_unset): Don't free the member `value' when
21316 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
21319 * normal/main.c (current_menu): Removed.
21320 (free_menu): Unset the `menu' environment variable.
21321 (grub_normal_menu_addentry): Make use of the environment variable
21322 `menu', instead of using the global `current_menu'. Allocate
21323 memory for the sourcecode of this entry.
21324 (read_config_file): New argument `nested', changed all callers.
21325 Only in the case of a new context, initialize a new menu. Set the
21326 `menu' environment variable.
21327 (grub_normal_execute): Don't set and unset the environment
21328 variable `menu' here anymore. Only free the menu when leaving the
21331 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
21334 2006-12-11 Marco Gerards <marco@gnu.org>
21336 * normal/menu_entry.c (run): Fix off by one bug so the last line
21337 is executed. Move the loader check to outside the loop.
21339 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
21341 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
21343 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
21345 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
21346 the number of sectors. Reported by Andrey Shuvikov
21347 <mr_hyro@yahoo.com>.
21349 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
21351 * kern/disk.c (grub_disk_read): When there is a read error, always
21352 try to read only the necessary data.
21354 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
21356 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
21358 [GRUB_UTIL] (grub_raid_fini): Likewise.
21359 [GRUB_UTIL] (grub_lvm_init): Likewise.
21360 [GRUB_UTIL] (grub_lvm_fini): Likewise.
21361 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
21362 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
21363 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
21364 and grub_raid_fini().
21366 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
21368 * include/grub/types.h (__unused): Rename to UNUSED.
21369 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
21370 (grub_elf64_size): Likewise.
21372 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21374 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
21375 grub_error_push and grub_error_pop in the error-handling path.
21376 (grub_elf32_load_segment): Only call grub_file_read with non-zero
21379 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21381 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
21382 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21383 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21384 (kernel_elf_SOURCES): Likewise.
21385 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
21386 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
21387 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21388 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21389 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
21390 (elf_mod_SOURCES): New variable.
21391 (elf_mod_CFLAGS): Likewise.
21392 (elf_mod_LDFLAGS): Likewise.
21393 * include/grub/types.h (__unused): New macro.
21394 * include/grub/elfload.h: New file.
21395 * kern/elf.c: Likewise.
21396 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
21397 (ELF32_LOADMASK): New macro.
21398 (ELF64_LOADMASK): Likewise.
21399 (vmlinux): Removed.
21400 (grub_linux_load32): New function.
21401 (grub_linux_load64): Likewise.
21402 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
21403 Use grub_elf_t instead of grub_file_t.
21405 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
21407 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
21408 `catch_result' to struct set_color_args.
21410 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
21412 * normal/menu.c: Include grub/script.h.
21413 * normal/menu_entry.c: Likewise.
21414 * include/grub/normal.h: Do not include grub/script.h.
21416 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21418 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
21420 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21422 * kern/disk.c (grub_disk_open): Print debug messages when opening a
21424 (grub_disk_close): Print debug messages when closing a disk.
21425 (grub_disk_read): Print debug messages when disk read fails.
21426 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
21428 * kern/partition.c: Include misc.h.
21429 (grub_partition_iterate): Print debug messages when detecting
21432 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21434 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
21436 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
21438 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
21440 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
21441 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
21443 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
21445 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
21446 instead of sizeof(lv). Patch by Michael Guntsche.
21448 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
21450 * disk/lvm.c: Rename VGS to VG_LIST.
21451 (grub_lvm_iterate): Change VGS->LV to VG-LV.
21452 (grub_lvm_open): Likewise.
21453 Thanks to Michael Guntsche for finding this bug.
21455 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
21457 * configure.ac (AC_INIT): Bumped to 1.95.
21459 2006-10-14 Robert Millan <rmh@aybabtu.com>
21461 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
21462 with "/dev/.static/dev/md".
21464 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21466 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
21467 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
21468 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
21469 DRIVE_NAME are always freed.
21471 * util/i386/pc/biosdisk.c (make_device_name): Add one into
21472 DOS_PART, as a DOS partition is counted from one instead of zero
21473 now. Reported by Robert Millan.
21475 2006-10-14 Robert Millan <rmh@aybabtu.com>
21477 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
21478 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
21479 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
21480 string returned by grub_guess_root_device.
21481 * util/i386/pc/grub-setup.c: Likewise.
21482 * util/i386/pc/grub-probefs.c: Likewise.
21484 * util/i386/pc/grub-probefs.c: Rename to ...
21485 * util/i386/pc/grub-probe.c: ... this.
21486 * DISTLIST: Remove grub-probefs, add grub-probe.
21487 * conf/i386-efi.rmk: Likewise.
21488 * conf/i386-pc.rmk: Likewise.
21489 * util/i386/pc/grub-install.in: Likewise.
21491 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
21492 choose which information we want to print.
21494 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21496 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
21497 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
21498 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
21499 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
21500 video/readers/tga.c and video/i386/pc/vbeutil.c.
21502 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
21504 Added support for RAID and LVM.
21506 * disk/lvm.c: New file.
21507 * disk/raid.c: Likewise.
21508 * include/grub/lvm.h: Likewise.
21509 * include/grub/raid.h: Likewise.
21510 * include/grub/util/lvm.h: Likewise.
21511 * include/grub/util/raid.h: Likewise.
21512 * util/lvm.c: Likewise.
21513 * util/raid.c: Likewise.
21515 * include/grub/disk.h (grub_disk_dev_id): Add
21516 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
21517 (grub_disk_get_size): New prototype.
21518 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
21519 returns a partition.
21520 (grub_disk_get_size): New function.
21522 * kern/i386/pc/init.c (make_install_device): Copy the prefix
21523 verbatim if grub_install_dos_part is -2.
21525 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
21528 * util/i386/pc/grub-setup.c (setup): New argument
21529 MUST_EMBED. Force embedding of GRUB when the argument is
21530 true. Close FILE before returning.
21531 (main): Add support for RAID and LVM.
21533 * conf/common.rmk: Add RAID and LVM modules.
21534 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
21536 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
21538 * kern/misc.c (grub_strstr): New function.
21539 * include/grub/misc.h (grub_strstr): New prototype.
21541 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
21543 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
21545 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
21547 * kern/misc.c (grub_strtoull): Guess the base only if not
21550 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21552 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
21555 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21557 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
21559 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
21560 Remove `flags' argument. All callers changed.
21561 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
21562 (IEEE1275_IHANDLE_INVALID): New variable.
21563 (IEEE1275_CELL_INVALID): New variable.
21564 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
21565 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
21566 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
21567 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
21568 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
21569 codes from Open Firmware. All callers updated.
21570 (grub_ieee1275_next_property): Directly return Open Firmware return
21572 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
21573 Standardize error checking from `grub_ieee1275_get_property'.
21574 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
21575 `devalias' to `aliases'. Correct comments. Consolidate error paths.
21577 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21579 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
21580 `instance_to_package_args' to `instance_to_path_args'.
21582 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
21583 `grub_ieee1275_chosen'.
21585 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
21586 `grub_ieee1275_interpret'.
21588 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
21590 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
21592 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
21594 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
21595 (__cmpdi): Likewise.
21597 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
21598 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
21601 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
21603 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
21604 to type `grub_ssize_t'.
21605 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
21607 2006-09-22 Marco Gerards <marco@gnu.org>
21609 * normal/script.c (grub_script_create_cmdmenu): Skip leading
21612 2006-09-22 Marco Gerards <marco@gnu.org>
21614 * commands/echo.c: New file.
21616 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
21618 * conf/common.rmk (echo_mod_SOURCES): New variable.
21619 (echo_mod_CFLAGS): Likewise.
21620 (echo_mod_LDFLAGS): Likewise.
21622 2006-09-22 Marco Gerards <marco@gnu.org>
21624 * normal/main.c (get_line): Malloc memory instead of using
21625 preallocated memory. Removed the arguments `cmdline' and
21626 `max_len'. Updated all callers.
21628 2006-09-22 Marco Gerards <marco@gnu.org>
21630 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
21631 (normal_mod_DEPENDENCIES): Likewise.
21633 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
21634 (normal_mod_DEPENDENCIES): Likewise.
21636 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
21638 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
21640 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
21642 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
21643 (normal_mod_DEPENDENCIES): Likewise.
21644 * conf/i386-pc.mk: Regenerate.
21645 * conf/i386-efi.mk: Likewise
21646 * conf/common.mk: Likewise.
21647 * conf/powerpc-ieee1275.mk: Likewise.
21648 * conf/sparc64-ieee1275.mk: Likewise.
21650 2006-09-22 Robert Millan <rmh@aybabtu.com>
21652 Sync with i386 version.
21653 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
21654 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
21656 2006-09-21 Robert Millan <rmh@aybabtu.com>
21658 Import from GRUB Legacy (lib/device.c):
21659 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
21660 (init_device_map) [__linux__]: Add support for I2O devices.
21662 2006-09-14 Marco Gerards <marco@gnu.org>
21664 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
21667 2006-09-14 Robert Millan <rmh@aybabtu.com>
21669 * util/i386/pc/grub-install.in: Skip menu.lst when removing
21672 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
21674 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
21675 before adding it to device.map.
21677 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
21679 * genmk.rb: Let GCC generate dependencies the first time it
21680 compiles a file; using the -MD option.
21681 * conf/common.mk: Regenerate.
21682 * conf/i386-pc.mk: Likewise.
21683 * conf/i386-efi.mk: Likewise.
21684 * conf/powerpc-ieee1275.mk: Likewise.
21685 * conf/sparc64-ieee1275.mk: Likewise.
21687 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
21689 Move the prototypes of grub_setjmp and grub_longjmp to
21690 cpu/setjmp.h, so that each architecture may specify different
21693 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
21694 (grub_longjmp): Likewise.
21695 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
21696 (grub_longjmp): Likewise.
21697 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
21698 (grub_longjmp): Likewise.
21700 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
21701 [!GRUB_UTIL] (grub_longjmp): Removed.
21703 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
21705 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
21706 "color!" method does not return any value.
21708 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21710 * include/grub/bitmap.h: New file.
21712 * include/grub/i386/pc/vbeutil.h: Likewise.
21714 * video/bitmap.c: Likewise.
21716 * video/readers/tga.c: Likewise.
21718 * video/i386/pc/vbeutil.c: Likewise.
21720 * commands/videotest.c: Code cleanup and updated to reflect to new
21723 * term/gfxterm.c: Likewise.
21725 * video/video.c: Likewise.
21727 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
21728 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
21729 (bitmap_mod_SOURCES): New entry.
21730 (bitmap_mod_CFLAGS): Likewise.
21731 (bitmap_mod_LDFLAGS): Likewise.
21732 (tga_mod_SOURCES): Likewise.
21733 (tga_mod_CFLAGS): Likewise.
21734 (tga_mod_LDFLAGS): Likewise.
21736 * include/grub/video.h (grub_video_blit_operators): New enum type.
21737 (grub_video_render_target): Changed as forward declaration and moved
21738 actual definition to be video driver specific.
21739 (grub_video_adapter.blit_bitmap): Added blitting operator.
21740 (grub_video_adapter.blit_render_target): Likewise.
21741 (grub_video_blit_bitmap): Likewise.
21742 (grub_video_blit_render_target): Likewise.
21744 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
21745 driver specific render target definition.
21746 (grub_video_vbe_map_rgba): Added driver internal helper.
21747 (grub_video_vbe_unmap_color): Updated to use
21748 grub_video_i386_vbeblit_info.
21749 (grub_video_vbe_get_video_ptr): Likewise.
21751 * include/grub/i386/pc/vbeblit.h
21752 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
21753 grub_video_i386_vbeblit_info.
21754 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
21755 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
21756 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
21757 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
21758 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
21759 (grub_video_i386_vbeblit_index_index): Likewise.
21760 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
21761 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
21762 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
21763 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
21765 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
21768 * video/i386/pc/vbeblit.c: Updated to reflect changes on
21769 include/grub/i386/pc/vbeblit.h.
21771 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
21772 Updated to use grub_video_i386_vbeblit_info.
21773 (grub_video_i386_vbefill_R8G8B8): Likewise.
21774 (grub_video_i386_vbefill_index): Likewise.
21775 (grub_video_i386_vbefill): Added generic filler.
21777 * video/i386/pc/vbefill.c: Updated to reflect changes on
21778 include/grub/i386/pc/vbefill.h.
21780 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
21781 grub_video_i386_vbeblit_info.
21782 (grub_video_vbe_unmap_color): Likewise.
21783 (grub_video_vbe_blit_glyph): Likewise.
21784 (grub_video_vbe_scroll): Likewise.
21785 (grub_video_vbe_draw_pixel): Removed function.
21786 (grub_video_vbe_get_pixel): Likewise.
21787 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
21788 updated code to use it.
21789 (common_blitter): Added common blitter for render target and bitmap.
21790 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
21791 (grub_video_vbe_blit_render_target): Likewise.
21793 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
21795 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
21796 is in text mode if there is no console control protocol instance
21799 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21801 * include/grub/video.h: Code cleanup.
21803 * include/grub/i386/pc/vbe.h: Likewise.
21805 * video/i386/pc/vbe.c: Likewise.
21807 * video/i386/pc/vbeblit.c: Likewise.
21809 * video/i386/pc/vbefill.c: Likewise.
21811 * video/video.c: Likewise. Also added more comments.
21813 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21815 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
21816 (struct grub_biosdisk_dap): Likewise.
21818 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
21819 linkage settings for all functions.
21821 2006-07-12 Marco Gerards <marco@gnu.org>
21823 * configure.ac (--enable-mm-debug): Fix typo.
21825 * genkernsyms.sh.in: Use proper quoting for `CC'.
21827 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
21829 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
21830 (normal_mod_ASFLAGS): Remove "-m32".
21832 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
21834 * util/misc.c: Include config.h.
21835 [!HAVE_MEMALIGN]: Do not include malloc.h.
21836 (grub_memalign): Use posix_memalign, if present. Then, use
21837 memalign, if present. Otherwise, emit an error.
21839 * util/grub-emu.c: Do not include malloc.h.
21841 * include/grub/util/misc.h: Include unistd.h. This is required for
21842 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
21843 D. Eades III <hde@foobar-qux.org>.
21845 * configure.ac (AC_GNU_SOURCE): Added.
21846 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
21849 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
21851 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
21852 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
21854 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
21856 * include/grub/types.h (grub_host_addr_t): Rename to
21857 grub_target_addr_t.
21858 (grub_host_off_t): Rename to grub_target_off_t.
21859 (grub_host_size_t): Rename to grub_target_size_t.
21860 (grub_host_ssize_t): Rename to grub_target_ssize_t.
21861 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
21863 * include/grub/kernel.h (struct grub_module_header): Change type
21864 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
21865 (grub_module_info): Likewise.
21867 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
21869 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
21870 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
21871 Velazquez <jesus.velazquez@gmail.com>.
21873 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
21875 Count partitions from 1 instead of 0 in the string representation
21876 of partitions. Still use 0-based internally.
21878 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
21879 (sun_partition_map_iterate): Use grub_partition_t instead of
21880 struct grub_partition *. Cast DESC->START_CYLINDER to
21881 grub_uint64_t after converting the endian.
21882 (sun_partition_map_probe): Subtract 1 for PARTNUM.
21883 (sun_partition_map_get_name): Add 1 to P->INDEX.
21885 * partmap/pc.c (grub_partition_parse): Subtract 1 for
21887 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
21889 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
21890 zero instead of one.
21891 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
21892 (gpt_partition_map_get_name): Add 1 into P->INDEX.
21894 * partmap/apple.c (apple_partition_map_iterate): Change the type
21895 of POS to unsigned.
21896 (apple_partition_map_probe): Subtract 1 for PARTNUM.
21897 (apple_partition_map_get_name): Add 1 into P->INDEX.
21899 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
21900 of POS to unsigned.
21901 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
21902 calculate the offset of a partition.
21903 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
21904 (amiga_partition_map_get_name): Add 1 into P->INDEX.
21906 * partmap/acorn.c (acorn_partition_map_find): Change the type of
21907 SECTOR to grub_disk_addr_t.
21908 (acorn_partition_map_iterate): Likewise.
21909 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
21910 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
21912 (acorn_partition_map_get_name): Add 1 into P->INDEX.
21914 * kern/i386/pc/init.c (make_install_device): Add 1 into
21915 GRUB_INSTALL_DOS_PART.
21917 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
21920 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
21922 Clean up the code to support 64-bit addressing in disks and
21923 files. This change is not enough for filesystems yet.
21925 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
21926 type of "start" to grub_uint64_t.
21927 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
21928 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
21929 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
21932 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
21933 to grub_disk_addr_t.
21935 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
21938 * partmap/pc.c (pc_partition_map_iterate): Likewise.
21940 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
21943 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
21945 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
21947 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
21949 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
21950 to grub_off_t, to detect an error from grub_file_seek.
21951 (grub_multiboot_load_elf32): Likewise.
21953 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
21954 maximum unsigned long value when an overflow is detected.
21955 (grub_strtoull): New function.
21956 (grub_divmod64): Likewise.
21957 (grub_lltoa): use grub_divmod64.
21959 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
21961 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
21962 the pointer to next character. Use grub_strtoull instead of
21964 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
21965 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
21968 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
21969 return value is signed.
21970 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
21971 test if OFFSET is less than zero, as OFFSET is unsigned now.
21973 * kern/disk.c (struct grub_disk_cache): Change the type of
21974 "sector" to grub_disk_addr_t.
21975 (grub_disk_cache_get_index): Change the type of SECTOR to
21976 grub_disk_addr_t. Calculate the hash with SECTOR casted to
21977 unsigned after shifting.
21978 (grub_disk_cache_invalidate): Change the type of SECTOR to
21980 (grub_disk_cache_unlock): Likewise.
21981 (grub_disk_cache_store): Likewise.
21982 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
21983 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
21984 grub_disk_addr_t and grub_uint64_t, respectively.
21985 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
21986 body, as the value of OFFSET is tweaked by
21987 grub_disk_check_range. Change the types of START_SECTOR, LEN and
21988 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
21990 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
21991 body, as the value of OFFSET is tweaked by
21992 grub_disk_check_range. Change the types of LEN and N to
21995 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
21996 and "saved_offset" to grub_off_t.
21997 (test_header): Cast BUF to char *.
21998 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
22000 (grub_gzio_read): Change the types of OFFSET and SIZE to
22001 grub_off_t and grub_size_t, respectively.
22003 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
22005 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
22006 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
22007 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
22008 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
22009 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
22011 * include/grub/types.h (grub_off_t): Unconditionally set to
22013 (grub_disk_addr_t): Changed to grub_uint64_t.
22015 * include/grub/partition.h (struct grub_partition): Change the
22016 types of "start", "len" and "offset" to grub_disk_addr_t,
22017 grub_uint64_t and grub_disk_addr_t, respectively.
22018 (grub_partition_get_start): Return grub_disk_addr_t.
22019 (grub_partition_get_len): Return grub_uint64_t.
22021 * include/grub/misc.h (grub_strtoull): New prototype.
22022 (grub_divmod64): Likewise.
22024 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
22025 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
22026 grub_off_t, respectively.
22027 All callers and references changed.
22029 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
22030 grub_size_t in "read".
22031 All callers and references changed.
22033 * include/grub/file.h (struct grub_file): Change the types of
22034 "offset" and "size" to grub_off_t and grub_off_t,
22035 respectively. Change the type of SECTOR to grub_disk_addr_t in
22037 (grub_file_read): Change the type of LEN to grub_size_t.
22038 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
22040 (grub_file_size): Return grub_off_t.
22041 (grub_file_tell): Likewise.
22042 All callers and references changed.
22044 * include/grub/disk.h (struct grub_disk_dev): Change the types of
22045 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
22047 (struct grub_disk): Change the type of "total_sectors" to
22048 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
22050 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
22051 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
22052 (grub_disk_write): Likewise.
22053 All callers and references changed.
22055 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
22056 char * for grub_strncmp to silence gcc.
22057 (grub_iso9660_mount): Likewise.
22058 (grub_iso9660_mount): Likewise.
22059 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
22061 (grub_iso9660_iterate_dir): Likewise.
22062 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
22064 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
22065 LEN to grub_disk_addr_t and grub_size_t, respectively.
22067 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
22069 * fs/jfs.c (grub_jfs_read_file): Likewise.
22071 * fs/minix.c (grub_jfs_read_file): Likewise.
22073 * fs/sfs.c (grub_jfs_read_file): Likewise.
22075 * fs/ufs.c (grub_jfs_read_file): Likewise.
22077 * fs/xfs.c (grub_jfs_read_file): Likewise.
22079 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
22080 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
22083 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
22084 BLKNR to -1 instead of returning GRUB_ERRNO.
22085 (grub_ext2_read_file): Change the types of SECTOR and
22086 LEN to grub_disk_addr_t and grub_size_t, respectively.
22088 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
22089 LEN to grub_disk_addr_t and grub_size_t, respectively.
22091 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
22094 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
22095 string. Do not cast SECTOR explicitly.
22097 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
22098 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
22099 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
22100 grub_disk_addr_t and grub_size_t, respectively. If the sector is
22101 over 2TB and LBA mode is not supported, raise an error.
22102 (get_safe_sectors): New function.
22103 (grub_biosdisk_read): Use get_safe_sectors.
22104 (grub_biosdisk_write): Likewise.
22106 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
22107 (grub_efidisk_write): Likewise.
22109 * disk/loopback.c (delete_loopback): Cosmetic changes.
22110 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
22112 (grub_loopback_open): Likewise.
22113 (grub_loopback_read): Likewise. Also, change the type of POS to
22114 grub_off_t, and fix the usage of grub_memset.
22116 * commands/i386/pc/play.c: Include grub/machine/time.h.
22118 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
22121 * commands/configfile.c: Include grub/env.h.
22123 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
22124 GRUB_ERRNO directly instead. Change the type of POS to
22125 grub_off_t. Follow the coding standard.
22127 * commands/blocklist.c: Include grub/partition.h.
22128 (grub_cmd_blocklist): Return an error if the underlying device is
22129 not a disk. Take the starting sector of a partition into account,
22130 if a partition is used.
22132 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
22134 (lba_mode): Support 64-bit addresses.
22135 (chs_mode): Likewise.
22136 (copy_buffer): Adapted to the new offsets of a length field and a
22138 (blocklist_default_start): Allocate 64-bit space.
22140 * boot/i386/pc/boot.S (force_lba): Removed.
22141 (boot_drive): Moved to under KERNEL_SECTOR.
22142 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
22144 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
22146 (lba_mode): Refactored to support a 64-bit address. More size
22148 (setup_sectors): Likewise.
22150 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22152 * DISTLIST: Added include/grub/i386/linux.h. Removed
22153 include/grub/i386/pc/linux.h
22155 * configure.ac (AC_INIT): Bumped to 1.94.
22157 * config.guess: Updated from gnulib.
22158 * config.sub: Likewise.
22159 * install-sh: Likewise.
22160 * mkinstalldirs: Likewise.
22162 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22164 * conf/common.rmk (grub_modules_init.lst): Depended on
22165 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
22168 * genmk.rb (PModule::rule): Reverted the previous change.
22170 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22172 * conf/common.rmk (grub_modules_init.lst): Depends on
22173 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
22174 that the target does not exist before producing.
22175 (grub_modules_init.h): Remove the target before generating.
22176 (grub_emu_init.c): Likewise.
22178 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
22180 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
22182 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
22183 for the target-specific tests. Make sure that we also have the
22184 up-to-date target variables for those tests.
22186 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22188 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
22189 (PModule::rule): Likewise.
22191 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22193 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
22194 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
22195 target-specific flags should be prefixed.
22196 (PModule::rule): Likewise.
22198 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
22200 * configure.ac (CMP): Check if cmp is available explicitly.
22202 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
22204 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
22205 (target_cpu): New variable.
22206 (pkglibdir): Use target_cpu instead of host_cpu.
22208 * util/i386/pc/grub-install.in (host_cpu): Removed.
22209 (target_cpu): New variable.
22210 (pkglibdir): Use target_cpu instead of host_cpu.
22212 * util/genmoddep.c: Removed.
22214 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
22215 instead of GRUB_HOST_SIZEOF_VOID_P.
22216 * kern/dl.c: Likewise.
22218 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
22220 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22221 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22222 (GRUB_TARGET_SIZEOF_LONG): ... this.
22223 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22224 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22225 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22227 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22228 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22229 (GRUB_TARGET_SIZEOF_LONG): ... this.
22230 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22231 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22232 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22234 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22235 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22236 (GRUB_TARGET_SIZEOF_LONG): ... this.
22237 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22238 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22240 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
22241 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
22242 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
22243 instead of GRUB_HOST_SIZEOF_LONG.
22244 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
22245 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
22246 GRUB_CPU_WORDS_BIGENDIAN.
22247 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
22248 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
22251 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
22252 (genmoddep_SOURCES): Likewise.
22253 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
22254 (genmoddep_SOURCES): Likewise.
22255 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
22256 (genmoddep_SOURCES): Likewise.
22257 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
22259 (genmoddep_SOURCES): Likewise.
22261 * genmoddep.awk: New file.
22263 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
22264 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
22265 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
22266 (PModule::rule): Likewise.
22267 (Program::rule): Likewise.
22268 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
22269 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
22272 * configure.ac: Rewritten intensively to use host and target
22273 instead of build and host, respectively.
22275 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
22276 (host_cpu): Removed.
22277 (target_cpu): New variable.
22278 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
22279 (BUILD_CC): Removed.
22280 (BUILD_CFLAGS): Likewise.
22281 (BUILD_CPPFLAGS): Likewise.
22282 (TARGET_CC): New variable.
22283 (TARGET_CFLAGS): Likewise.
22284 (TARGET_CPPFLAGS): Likewise.
22285 (TARGET_LDFLAGS): Likewise.
22287 (include): Use target_cpu instead of host_cpu.
22288 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
22290 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
22292 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
22294 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
22295 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
22296 field 'false' to 'exec_on_false'.
22297 (grub_script_create_cmdif): Renamed argument names to reflect above
22300 * normal/execute.c (grub_script_execute_cmdif): Likewise.
22302 * normal/script.c (grub_script_create_cmdif): Likewise.
22304 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
22306 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
22308 (grub_hfsplus_btree_recptr): Likewise.
22309 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
22310 FILEBLOCK both to pass a block number and store next block
22312 (grub_hfsplus_read_block): Rewritten heavily to support an extent
22313 overflow file correctly. Specify errors appropriately, because
22314 fshelp expects that GRUB_ERRNO is set when fails. Reuse
22315 grub_hfsplus_btree_recptr to get the pointer to a found key.
22316 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
22319 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
22321 (_linux_mod_SOURCES): New variable.
22322 (_linux_mod_CFLAGS): Likewise.
22323 (_linux_mod_LDFLAGS): Likewise.
22324 (linux_mod_SOURCES): Likewise.
22325 (linux_mod_CFLAGS): Likewise.
22326 (linux_mod_LDFLAGS): Likewise.
22328 * DISTLIST: Added loader/i386/efi/linux.c,
22329 loader/i386/efi/linux_normal.c and
22330 include/grub/i386/efi/loader.h.
22332 * loader/i386/efi/linux.c: New file.
22333 * loader/i386/efi/linux_normal.c: Likewise.
22334 * include/grub/i386/efi/loader.h: Likewise.
22336 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
22338 * commands/blocklist.c: New file.
22340 * DISTLIST: Added commands/blocklist.c.
22342 * term/efi/console.c (grub_console_highlight_color): Use a lighter
22343 color for the background, and a darker color for the foreground.
22344 (grub_console_checkkey): Return READ_KEY.
22345 (grub_console_cls): Set the background to
22346 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
22348 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
22350 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
22351 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
22353 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
22356 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
22357 BG. The spec is wrong again.
22359 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
22361 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
22363 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
22364 commands/blocklist.c.
22365 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22367 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
22368 (blocklist_mod_SOURCES): New variable.
22369 (blocklist_mod_CFLAGS): Likewise.
22370 (blocklist_mod_LDFLAGS): Likewise.
22372 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
22374 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
22376 (lba_mode): Use %eax more intensively to reduce the code size.
22378 2006-05-20 Marco Gerards <marco@gnu.org>
22380 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
22382 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
22384 (script): Accept leading newlines.
22385 (newlines): New rule to describe 0 or more newlines.
22386 (commands): Accept `command' with trailing newline. Fixed the
22387 order in which arguments were passed to `grub_script_add_cmd'.
22388 Accept commands separated by newlines.
22389 (function): Changed to accept newlines.
22390 (menuentry) Rewritten.
22392 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
22393 front of the list, instead of to the end.
22395 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
22397 * util/i386/pc/grub-install.in (bindir): New variable.
22398 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
22399 Shaver <lbgwjl@gmail.com>.
22401 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
22403 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
22404 grub/machine/linux.h
22405 * loader/i386/pc/linux.c: Likewise.
22407 * include/grub/i386/pc/linux.h: Moved to ...
22408 * include/grub/i386/linux.h: ... here.
22410 * include/grub/i386/linux.h (struct linux_kernel_params): New
22413 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
22415 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
22417 (grub_video_vbe_blit_glyph): Likewise.
22418 (grub_video_vbe_blit_bitmap): Likewise.
22419 (grub_video_vbe_blit_render_target): Likewise.
22421 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
22423 * configure.ac (--with-platform): Properly quote the square
22426 2006-05-08 Marco Gerards <marco@gnu.org>
22428 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
22430 (kernel_elf_HEADERS): ...to this. Updated all users.
22431 (grubof_symlist.c): Renamed from this...
22432 (kernel_elf_symlist.c): ...to this. Updated all users.
22433 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22434 (grubof_SOURCES): Renamed from this...
22435 (kernel_elf_SOURCES): ...to this.
22436 (grubof_HEADERS): Renamed from this...
22437 (kernel_elf_HEADERS): ...to this.
22438 (grubof_CFLAGS): Renamed from this...
22439 (kernel_elf_CFLAGS): ...to this.
22440 (grubof_ASFLAGS): Renamed from this...
22441 (kernel_elf_ASFLAGS): ...to this.
22442 (grubof_LDFLAGS): Renamed from this...
22443 (kernel_elf_LDFLAGS): ...to this.
22445 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
22447 (kernel_elf_HEADERS): ...to this. Updated all users.
22448 (grubof_symlist.c): Renamed from this...
22449 (kernel_elf_symlist.c): ...to this. Updated all users.
22450 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22451 (grubof_SOURCES): Renamed from this...
22452 (kernel_elf_SOURCES): ...to this.
22453 (grubof_HEADERS): Renamed from this...
22454 (kernel_elf_HEADERS): ...to this.
22455 (grubof_CFLAGS): Renamed from this...
22456 (kernel_elf_CFLAGS): ...to this.
22457 (grubof_ASFLAGS): Renamed from this...
22458 (kernel_elf_ASFLAGS): ...to this.
22459 (grubof_LDFLAGS): Renamed from this...
22460 (kernel_elf_LDFLAGS): ...to this.
22462 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
22463 `kernel.elf' instead of `grubof'.
22465 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
22467 Add --with-platform to configure. Use pkglibdir instead of
22468 pkgdatadir. This is reported by Roger Leigh.
22470 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
22471 (host_vendor): Likewise.
22472 (host_os): Likewise.
22473 (pkgdatadir): Likewise.
22474 (platform): New variable.
22475 (pkglibdir): Likewise.
22476 Use PKGLIBDIR instead of PKGDATADIR.
22478 * util/i386/pc/grub-install.in (datadir): Removed.
22479 (host_vendor): Likewise.
22480 (host_os): Likewise.
22481 (pkgdatadir): Likewise.
22482 (platform): New variable.
22483 (pkglibdir): Likewise.
22484 Use PKGLIBDIR instead of PKGDATADIR.
22486 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
22487 instead of GRUB_DATADIR.
22489 * util/i386/pc/grub-mkimage.c (usage): Likewise.
22491 * util/i386/efi/grub-mkimage.c (usage): Likewise.
22494 * configure.ac (--with-platform): New option.
22495 Use PLATFORM instead of HOST_VENDOR to specify a platform.
22497 * Makefile.in: Include a makefile based on PLATFORM instead of
22499 (pkgdatadir): Not appended by the machine type.
22500 (pkglibdir): Appended by the machine type.
22501 (host_vendor): Removed.
22502 (platform): New variable.
22503 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
22504 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
22505 (uninstall): Likewise.
22507 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
22509 Use the environment context in the menu. Remove the commands
22510 "default" and "timeout", and use variables instead.
22512 * normal/menu.c: Include grub/env.h.
22513 (print_entry): Cast TITLE to silence gcc.
22514 (get_timeout): New function.
22515 (set_timeout): Likewise.
22516 (get_entry_number): Likewise.
22517 (run_menu): Use a default entry, a fallback entry and a timeout
22518 in the environment variables "default", "fallback" and
22519 "timeout". Also, tweak the default entry if it is not within the
22520 current menu entries.
22521 (grub_menu_run): Use a fallback entry in the environment variable
22524 * normal/main.c (read_config_file): Do not initialize
22525 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
22527 (grub_normal_execute): Use a data slot to store the menu.
22529 * include/grub/normal.h (struct grub_menu): Removed default_entry,
22530 fallback_entry and timeout.
22531 (struct grub_menu_list): Removed.
22532 (grub_menu_list_t): Likewise.
22533 (struct grub_context): Likewise.
22534 (grub_context_t): Likewise.
22535 (grub_context_get): Likewise.
22536 (grub_context_get_current_menu): Likewise.
22537 (grub_context_push_menu): Likewise.
22538 (grub_context_pop_menu): Likewise.
22539 (grub_default_init): Likewise.
22540 (grub_default_fini): Likewise.
22541 (grub_timeout_init): Likewise.
22542 (grub_timeout_fini): Likewise.
22544 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
22546 (normal_mod_SOURCES): Removed normal/context.c.
22548 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
22549 commands/default.c, commands/timeout.c and normal/context.c.
22550 (normal_mod_SOURCES): Removed normal/context.c.
22552 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
22553 commands/timeout.c and normal/context.c.
22554 (normal_mod_SOURCES): Removed normal/context.c.
22556 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
22557 commands/default.c, commands/timeout.c and normal/context.c.
22558 (normal_mod_SOURCES): Removed normal/context.c.
22560 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
22562 (default_mod_SOURCES): Removed.
22563 (default_mod_CFLAGS): Likewise.
22564 (default_mod_LDFLAGS): Likewise.
22565 (timeout_mod_SOURCES): Removed.
22566 (timeout_mod_CFLAGS): Likewise.
22567 (timeout_mod_LDFLAGS): Likewise.
22569 * DISTLIST: Removed commands/default.c, commands/timeout.c and
22572 * commands/default.c: Removed.
22573 * commands/timeout.c: Likewise.
22574 * normal/context.c: Likewise.
22576 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
22578 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
22580 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
22582 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
22583 "next" to "prev" for readability.
22584 (struct grub_env_sorted_var): New struct.
22585 (grub_env_context): Renamed to ...
22586 (initial_context): ... this.
22587 (grub_env_var_context): Renamed to ...
22588 (current_context): ... this.
22589 (grub_env_find): Look only at CURRENT_CONTEXT.
22590 (grub_env_context_open): Rewritten to copy exported variables from
22592 (grub_env_context_close): Rewritten according to the new
22593 scheme. Also, add an assertion to prevent the initial context from
22595 (grub_env_insert): Removed the code for the sorted list.
22596 (grub_env_remove): Likewise.
22597 (grub_env_export): Simply mark the variable with
22598 GRUB_ENV_VAR_GLOBAL.
22599 (grub_env_set): A cosmetic change for naming consistency.
22600 (grub_env_get): Likewise.
22601 (grub_env_unset): Likewise.
22602 (grub_env_iterate): Rewritten to sort variables within this
22604 (grub_register_variable_hook): Fixed for naming consistency. Call
22605 grub_env_find again, only if NAME is not found at the first time.
22606 (mangle_data_slot_name): New function.
22607 (grub_env_set_data_slot): Likewise.
22608 (grub_env_get_data_slot): Likewise.
22609 (grub_env_unset_data_slot): Likewise.
22611 * include/grub/env.h (grub_env_var_type): New enum.
22612 (GRUB_ENV_VAR_LOCAL): New constant.
22613 (GRUB_ENV_VAR_GLOBAL): Likewise.
22614 (GRUB_ENV_VAR_DATA): Likewise.
22615 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
22617 (grub_env_set): Replace VAR with NAME for consistency.
22618 (grub_register_variable_hook): Likewise.
22619 (grub_env_export): Specify the name of the argument.
22620 (grub_env_set_data_slot): New prototype.
22621 (grub_env_get_data_slot): Likewise.
22622 (grub_env_unset_data_slot): Likewise.
22624 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22626 Extend the loader so that GRUB can accept a loader which comes
22627 back to GRUB when a loaded image exits. Also, this change adds
22628 support for a chainloader on EFI.
22630 * term/efi/console.c: Include grub/misc.h.
22631 (grub_console_checkkey): Display a scan code on the top for
22632 debugging. This will be removed once the EFI port gets stable.
22633 Correct the scan code mapping.
22635 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
22636 allocate memory from larger regions, in order to reduce the number
22637 of allocated regions. Otherwise, the MacOSX loader panics.
22638 (filter_memory_map): Avoid less than 1MB for compatibility with
22640 (add_memory_regions): Allocate from the tail of a region, if
22641 possible, to avoid allocating a region near to 1MB, for the MacOSX
22644 * kern/efi/init.c (grub_efi_set_prefix): Specify
22645 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
22647 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
22648 argument IMAGE_HANDLE and specify it to get a loaded image.
22649 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
22650 grub_efi_get_loaded_image.
22651 (grub_efi_get_filename): Divide the length by the size of
22653 (grub_efi_get_device_path): New function.
22654 (grub_efi_print_device_path): Print End Device Path nodes. Divide
22655 the length by the size of grub_efi_char16_t for a file path device
22658 * kern/loader.c (grub_loader_noreturn): New variable.
22659 (grub_loader_set): Accept a new argument NORETURN. Set
22660 GRUB_LOADER_NORETURN to NORETURN.
22661 All callers changed.
22662 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
22665 * include/grub/efi/efi.h (grub_efi_get_device_path): New
22667 (grub_efi_get_loaded_image): Take an argument to specify an image
22670 * include/grub/loader.h (grub_loader_set): Added one more argument
22673 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
22674 instead of grub_efi_open_protocol.
22675 (grub_efidisk_get_device_name): Likewise.
22676 (grub_efidisk_close): Print a newline.
22677 (grub_efidisk_get_device_handle): Fixed to use
22678 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
22679 GRUB_EFI_DEVICE_PATH_TYPE.
22681 * disk/efi/efidisk.c (device_path_guid): Moved to ...
22682 * kern/efi/efi.c (device_path_guid): ... here.
22684 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
22686 (kernel_mod_HEADERS): Added efi/disk.h.
22687 (_chain_mod_SOURCES): New variable.
22688 (_chain_mod_CFLAGS): Likewise.
22689 (_chain_mod_LDFLAGS): Likewise.
22690 (chain_mod_SOURCES): Likewise.
22691 (chain_mod_CFLAGS): Likewise.
22692 (chain_mod_LDFLAGS): Likewise.
22694 * DISTLIST: Added include/grub/efi/chainloader.h,
22695 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
22697 * include/grub/efi/chainloader.h: New file.
22698 * loader/efi/chainloader.c: Likewise.
22699 * loader/efi/chainloader_normal.c: Likewise.
22701 2006-04-30 Marco Gerards <marco@gnu.org>
22703 * commands/configfile.c (grub_cmd_source): New function.
22704 (GRUB_MOD_INIT): Register the commands `source' and `.'.
22705 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
22707 2006-04-30 Marco Gerards <marco@gnu.org>
22709 * normal/execute.c (grub_script_execute_cmd): Change the return
22710 type to `grub_err_t'. Correctly return the error.
22711 (grub_script_execute_cmdline): In case a command line is not a
22712 command or a function, try to interpret it as an assignment.
22714 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22716 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
22717 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
22718 skip a node whose name is obviously invalid as UTF-16,
22719 i.e. contains a NUL character. Stop the iteration when the last
22720 directory entry is found. Instead of using the return value of
22721 grub_hfsplus_btree_iterate_node, store the value in RET and use
22722 it, because the iterator can be stopped by the last directory
22725 2006-04-30 Marco Gerards <marco@gnu.org>
22727 * include/grub/env.h (grub_env_export): New prototype. Reported
22728 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
22730 2006-04-30 Marco Gerards <marco@gnu.org>
22732 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
22733 size of the extents in a catalog file record.
22735 2006-04-29 Marco Gerards <marco@gnu.org>
22737 * commands/configfile.c (grub_cmd_configfile): Execute the
22738 configfile within its own context.
22740 * include/grub/env.h (grub_env_context_open): New prototype.
22741 (grub_env_context_close): Likewise.
22743 * kern/env.c (grub_env): Removed.
22744 (grub_env_sorted): Likewise.
22745 (grub_env_context): New variable.
22746 (grub_env_var_context): Likewise.
22747 (grub_env_find): Search both the active context and the global
22749 (grub_env_context_open): New function.
22750 (grub_env_context_close): Likewise.
22751 (grub_env_insert): Likewise.
22752 (grub_env_remove): Likewise.
22753 (grub_env_export): Likewise.
22754 (grub_env_set): Changed to use helper functions to avoid code
22756 (grub_env_iterate): Rewritten so both the current context and the
22757 global context are being used.
22759 * normal/command.c (export_command): New function.
22760 (grub_command_init): Register the `export' function.
22762 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
22764 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
22765 explicitly to suppress gcc's warnings.
22766 * fs/fat.c (grub_fat_find_dir): Likewise.
22767 (grub_fat_label): Likewise.
22768 * fs/xfs.c (grub_xfs_read_inode): Likewise.
22769 (grub_xfs_mount): Likewise.
22770 (grub_xfs_label): Likewise.
22771 * fs/affs.c (grub_affs_mount): Likewise.
22772 (grub_affs_label): Likewise.
22773 (grub_affs_iterate_dir): Likewise.
22774 * fs/sfs.c (grub_sfs_mount): Likewise.
22775 (grub_sfs_iterate_dir): Likewise.
22776 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
22777 * fs/hfs.c (grub_hfs_mount): Likewise.
22778 (grub_hfs_cmp_catkeys): Likewise.
22779 (grub_hfs_find_dir): Likewise.
22780 (grub_hfs_dir): Likewise.
22781 (grub_hfs_label): Likewise.
22782 * fs/jfs.c (grub_jfs_mount): Likewise.
22783 (grub_jfs_opendir): Likewise.
22784 (grub_jfs_getent): Likewise.
22785 (grub_jfs_lookup_symlink): Likewise.
22786 (grub_jfs_label): Likewise.
22787 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
22788 (grub_hfsplus_iterate_dir): Likewise.
22789 (grub_hfsplus_btree_iterate_node): Made static.
22791 * util/grub-emu.c (prefix): New variable.
22792 (grub_machine_set_prefix): New function.
22793 (main): Do not set the environment variable "prefix" here. Only
22794 set PREFIX, which is used later by grub_machine_set_prefix.
22796 * include/grub/video.h: Do not include grub/symbol.h.
22797 (grub_video_register): Not exported. This symbol is not defined in
22799 (grub_video_unregister): Likewise.
22800 (grub_video_iterate): Likewise.
22801 (grub_video_setup): Likewise.
22802 (grub_video_restore): Likewise.
22803 (grub_video_get_info): Likewise.
22804 (grub_video_get_blit_format): Likewise.
22805 (grub_video_set_palette): Likewise.
22806 (grub_video_get_palette): Likewise.
22807 (grub_video_set_viewport): Likewise.
22808 (grub_video_get_viewport): Likewise.
22809 (grub_video_map_color): Likewise.
22810 (grub_video_map_rgb): Likewise.
22811 (grub_video_map_rgba): Likewise.
22812 (grub_video_fill_rect): Likewise.
22813 (grub_video_blit_glyph): Likewise.
22814 (grub_video_blit_bitmap): Likewise.
22815 (grub_video_blit_render_target): Likewise.
22816 (grub_video_scroll): Likewise.
22817 (grub_video_swap_buffers): Likewise.
22818 (grub_video_create_render_target): Likewise.
22819 (grub_video_delete_render_target): Likewise.
22820 (grub_video_set_active_render_target): Likewise.
22822 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
22824 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
22826 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
22827 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22828 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22829 instead of $(srcdir)/genkernsyms.sh.
22831 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
22832 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22833 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22834 instead of $(srcdir)/genkernsyms.sh.
22836 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
22837 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22838 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22839 instead of $(srcdir)/genkernsyms.sh.
22841 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
22842 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22843 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22844 instead of $(srcdir)/genkernsyms.sh.
22846 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
22849 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
22851 (gensymlist.sh): New target.
22852 (genkernsyms.sh): Likewise.
22854 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
22855 genkernsyms.sh.in and gensymlist.sh.in.
22857 * genkernsyms.sh: Removed.
22858 * gensymlist.sh: Likewise.
22860 * genkernsyms.sh.in: New file.
22861 * gensymlist.sh.in: Likewise.
22863 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
22865 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
22866 clobber "prefix", since we may have already set it manually.
22868 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
22870 * kern/misc.c (abort): New alias for grub_abort.
22872 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
22874 A new machine-specific function "grub_machine_set_prefix" is
22875 defined. This is called after loading modules, so that a prefix
22876 initialization can use modules. Also, this change adds an
22877 intensive debugging feature for the memory manager via the
22878 configure option "--enable-mm-debug".
22880 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
22883 * kern/sparc64/ieee1275/init.c (abort): Removed.
22884 (grub_stop): Likewise.
22885 (grub_exit): New function.
22886 (grub_set_prefix): Renamed to ...
22887 (grub_machine_set_prefix): ... this.
22888 (grub_machine_init): Do not call grub_set_prefix.
22890 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
22891 (grub_machine_set_prefix): ... this.
22892 (grub_machine_init): Do not call grub_set_prefix.
22894 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
22895 (grub_machine_init): Do not set the prefix here.
22897 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
22899 * kern/efi/init.c: Include grub/mm.h.
22900 (grub_efi_set_prefix): New function.
22902 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
22903 (grub_efi_get_filename): New function.
22904 (grub_print_device_path): Renamed to ...
22905 (grub_efi_print_device_path): ... this.
22907 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
22908 [MM_DEBUG] (grub_realloc): Likewise.
22909 [MM_DEBUG] (grub_free): Likewise.
22910 [MM_DEBUG] (grub_memalign): Likewise.
22911 [MM_DEBUG] (grub_mm_debug): New variable.
22912 [MM_DEBUG] (grub_debug_malloc): New function.
22913 [MM_DEBUG] (grub_debug_free): New function.
22914 [MM_DEBUG] (grub_debug_realloc): New function.
22915 [MM_DEBUG] (grub_debug_memalign): New function.
22917 * kern/misc.c (grub_abort): Print a newline to distinguish
22920 * kern/main.c (grub_main): Call grub_machine_set_prefix and
22921 grub_set_root_dev after loading modules. This is necessary when
22922 setting a prefix depends on modules.
22924 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
22925 (grub_efi_print_device_path): ... this.
22926 (grub_efi_get_filename): New prototype.
22927 (grub_efi_set_prefix): Likewise.
22929 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
22931 (grub_efidisk_get_device_handle): New prototype.
22932 (grub_efidisk_get_device_name): Likewise.
22934 * include/grub/mm.h: Include config.h.
22935 (MM_DEBUG): Removed.
22936 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
22937 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
22938 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
22939 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
22940 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
22941 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
22942 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
22943 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
22944 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
22946 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
22948 * disk/efi/efidisk.c: Include grub/partition.h.
22949 (iterate_child_devices): New function.
22950 (add_device): First, compare only last device path nodes, so that
22951 devices are sorted by the types.
22952 (grub_efidisk_get_device_handle): New function.
22953 (grub_efidisk_get_device_name): Likewise.
22955 * configure.ac (--enable-mm-debug): New option to enable the
22956 memory manager debugging feature. This makes the binary much
22957 bigger, so is disabled by default.
22959 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
22961 Use grub_abort instead of grub_stop, and grub_exit must be
22962 define in each architecture now. Also, this change adds support
22965 * util/i386/pc/grub-probefs.c: Include grub/term.h.
22966 (grub_getkey): New function.
22967 (grub_term_get_current): Likewise.
22969 * util/i386/pc/grub-setup.c: Include grub/term.h.
22970 (grub_getkey): New function.
22971 (grub_term_get_current): Likewise.
22973 * util/misc.c (grub_stop): Renamed to ...
22974 (grub_exit): ... this.
22976 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
22977 (grub_exit): ... this.
22978 (grub_machine_init): Use grub_abort instead of abort.
22979 (grub_stop): Removed.
22981 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
22984 * kern/i386/pc/startup.S (grub_exit): New function.
22985 (cold_reboot): New label.
22987 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
22988 (grub_efi_init): Call grub_efidisk_init.
22989 (grub_efi_fini): Call grub_efidisk_fini.
22991 * kern/efi/efi.c: Include grub/mm.h.
22992 (grub_efi_console_control_guid): Renamed to ...
22993 (console_control_guid): ... this.
22994 (grub_efi_loaded_image_guid): Renamed to ...
22995 (loaded_image_guid): ... this.
22996 (grub_efi_locate_handle): New function.
22997 (grub_efi_open_protocol): Likewise.
22998 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
22999 GRUB_EFI_CONSOLE_CONTROL_GUID.
23000 (grub_efi_exit): Removed.
23001 (grub_stop): Likewise.
23002 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
23003 (grub_exit): New function.
23004 (grub_print_device_path): Likewise.
23006 * kern/rescue.c (grub_rescue_cmd_exit): New function.
23007 (grub_enter_rescue_mode): Register "exit".
23009 * kern/misc.c (grub_real_dprintf): A cosmetic change.
23010 (grub_abort): New function.
23012 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
23014 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
23016 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
23018 * include/grub/efi/efi.h (grub_efi_exit): Removed.
23019 (grub_print_device_path): New prototype.
23020 (grub_efi_locate_handle): Likewise.
23021 (grub_efi_open_protocol): Likewise.
23023 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
23024 * disk/efi/efidisk.c: Likewise.
23026 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
23028 * include/grub/efi/console_control.h
23029 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
23031 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
23032 last 8 bytes as an array.
23033 (GRUB_EFI_DISK_IO_GUID): New macro.
23034 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
23035 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
23036 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
23038 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
23039 (struct grub_efi_device_path): Rename the member "sub_type" to
23041 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
23042 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
23043 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
23044 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
23045 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
23046 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
23047 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
23048 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
23049 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
23050 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
23051 (struct grub_efi_pci_device_path): New structure.
23052 (grub_efi_pci_device_path_t): New type.
23053 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
23054 (struct grub_efi_pccard_device_path): New structure.
23055 (grub_efi_pccard_device_path_t): New type.
23056 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
23057 (struct grub_efi_memory_mapped_device_path): New structure.
23058 (grub_efi_memory_mapped_device_path_t): New type.
23059 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
23060 (struct grub_efi_vendor_device_path): New structure.
23061 (grub_efi_vendor_device_path_t): New type.
23062 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
23063 (struct grub_efi_controller_device_path): New structure.
23064 (grub_efi_controller_device_path_t): New type.
23065 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
23066 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
23067 (struct grub_efi_acpi_device_path): New structure.
23068 (grub_efi_acpi_device_path_t): New type.
23069 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
23070 (struct grub_efi_expanded_acpi_device_path): New structure.
23071 (grub_efi_expanded_acpi_device_path_t): New type.
23072 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
23073 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
23074 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
23075 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
23076 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
23077 (struct grub_efi_atapi_device_path): New structure.
23078 (grub_efi_atapi_device_path_t): New type.
23079 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
23080 (struct grub_efi_fibre_channel_device_path): New structure.
23081 (grub_efi_fibre_channel_device_path_t): New type.
23082 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
23083 (struct grub_efi_1394_device_path): New structure.
23084 (grub_efi_1394_device_path_t): New type.
23085 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
23086 (struct grub_efi_usb_device_path): New structure.
23087 (grub_efi_usb_device_path_t): New type.
23088 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
23089 (struct grub_efi_usb_class_device_path): New structure.
23090 (grub_efi_usb_class_device_path_t): New type.
23091 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
23092 (struct grub_efi_i2o_device_path): New structure.
23093 (grub_efi_i2o_device_path_t): New type.
23094 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
23095 (struct grub_efi_mac_address_device_path): New structure.
23096 (grub_efi_mac_address_device_path_t): New type.
23097 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
23098 (struct grub_efi_ipv4_device_path): New structure.
23099 (grub_efi_ipv4_device_path_t): New type.
23100 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
23101 (struct grub_efi_ipv6_device_path): New structure.
23102 (grub_efi_ipv6_device_path_t): New type.
23103 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
23104 (struct grub_efi_infiniband_device_path): New structure.
23105 (grub_efi_infiniband_device_path_t): New type.
23106 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
23107 (struct grub_efi_uart_device_path): New structure.
23108 (grub_efi_uart_device_path_t): New type.
23109 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
23110 (struct grub_efi_vendor_messaging_device_path): New structure.
23111 (grub_efi_vendor_messaging_device_path_t): New type.
23112 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
23113 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
23114 (struct grub_efi_hard_drive_device_path): New structure.
23115 (grub_efi_hard_drive_device_path_t): New type.
23116 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
23117 (struct grub_efi_cdrom_device_path): New structure.
23118 (grub_efi_cdrom_device_path_t): New type.
23119 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
23120 (struct grub_efi_vendor_media_device_path): New structure.
23121 (grub_efi_vendor_media_device_path_t): New type.
23122 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
23123 (struct grub_efi_file_path_device_path): New structure.
23124 (grub_efi_file_path_device_path_t): New type.
23125 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
23126 (struct grub_efi_protocol_device_path): New structure.
23127 (grub_efi_protocol_device_path_t): New type.
23128 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
23129 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
23130 (struct grub_efi_bios_device_path): New structure.
23131 (grub_efi_bios_device_path_t): New type.
23132 (struct grub_efi_disk_io): New structure.
23133 (grub_efi_disk_io_t): New type.
23134 (struct grub_efi_block_io_media): New structure.
23135 (grub_efi_block_io_media_t): New type.
23136 (struct grub_efi_block_io): New structure.
23137 (grub_efi_block_io_t): New type.
23139 * include/grub/misc.h (grub_stop): Removed.
23140 (grub_exit): New prototype.
23141 (grub_abort): Likewise.
23143 * include/grub/disk.h (enum grub_disk_dev_id): Added
23144 GRUB_DISK_DEVICE_EFIDISK_ID.
23146 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
23147 disk/efi/efidisk.c.
23148 (kernel_syms.lst): Remove the target if an error occurs.
23150 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
23152 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
23153 as it was simply too buggy.
23155 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
23157 * kern/misc.c (grub_lltoa): New function.
23158 (grub_vsprintf): Added support for the long long suffix,
23161 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
23163 * Makefile.in (LDFLAGS): Add variable.
23164 (LD): Remove variable.
23165 * configure.ac: Add -m32 to LDFLAGS.
23166 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
23167 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
23168 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
23169 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
23170 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
23172 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
23173 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
23174 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
23176 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
23178 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
23179 length for unknown glyph.
23181 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23183 Add support for pre-loaded modules into the EFI port.
23185 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
23186 completely. Accept one more argument DIR. The caller has changed.
23188 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
23190 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
23191 (grub_efi_loaded_image_guid): New variable.
23192 (grub_efi_get_loaded_image): New function.
23193 (grub_arch_modules_addr): Likewise.
23195 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
23198 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
23199 (struct grub_efi_loaded_image): New structure.
23200 (grub_efi_loaded_image_t): New type.
23202 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23204 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
23205 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
23206 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
23208 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
23210 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
23212 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
23214 * DISTLIST: Added include/grub/efi/console.h,
23215 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
23216 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23218 * include/grub/efi/console.h: New file.
23219 * include/grub/efi/time.h: Likewise.
23220 * include/grub/i386/efi/kernel.h: Likewise.
23221 * kern/efi/init.c: Likewise.
23222 * kern/efi/mm.c: Likewise.
23223 * term/efi/console.c: Likewise.
23225 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
23226 (grub_stop): Removed.
23227 (grub_get_rtc): Likewise.
23228 (grub_machine_init): Simply call grub_efi_init.
23229 (grub_machine_fini): Call grub_efi_fini.
23231 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
23232 (grub_efi_output_string): Removed.
23233 (grub_efi_stall): New function.
23234 (grub_stop): Likewise.
23235 (grub_get_rtc): Likewise.
23237 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
23238 (grub_efi_stall): New prototype.
23239 (grub_efi_allocate_pages): Likewise.
23240 (grub_efi_free_pages): Likewise.
23241 (grub_efi_get_memory_map): Likewise.
23242 (grub_efi_mm_init): Likewise.
23243 (grub_efi_mm_fini): Likewise.
23244 (grub_efi_init): Likewise.
23245 (grub_efi_fini): Likewise.
23247 * include/grub/i386/efi/time.h: Do not include
23248 grub/symbol.h. Include grub/efi/time.h.
23249 (GRUB_TICKS_PER_SECOND): Removed.
23250 (grub_get_rtc): Likewise.
23252 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
23253 Added padding. The EFI spec is buggy.
23254 (GRUB_EFI_BLACK): New macro.
23255 (GRUB_EFI_BLUE): Likewise.
23256 (GRUB_EFI_GREEN): Likewise.
23257 (GRUB_EFI_CYAN): Likewise.
23258 (GRUB_EFI_RED): Likewise.
23259 (GRUB_EFI_MAGENTA): Likewise.
23260 (GRUB_EFI_BROWN): Likewise.
23261 (GRUB_EFI_LIGHTGRAY): Likewise.
23262 (GRUB_EFI_BRIGHT): Likewise.
23263 (GRUB_EFI_DARKGRAY): Likewise.
23264 (GRUB_EFI_LIGHTBLUE): Likewise.
23265 (GRUB_EFI_LIGHTGREEN): Likewise.
23266 (GRUB_EFI_LIGHTCYAN): Likewise.
23267 (GRUB_EFI_LIGHTRED): Likewise.
23268 (GRUB_EFI_LIGHTMAGENTA): Likewise.
23269 (GRUB_EFI_YELLOW): Likewise.
23270 (GRUB_EFI_WHITE): Likewise.
23271 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
23272 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
23273 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
23274 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
23275 (GRUB_EFI_BACKGROUND_RED): Likewise.
23276 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
23277 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
23278 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
23279 (GRUB_EFI_TEXT_ATTR): Likewise.
23281 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
23282 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23283 (kernel_mod_HEADERS): Added efi/time.h.
23285 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
23287 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
23288 include/grub/efi/api.h, include/grub/efi/console_control.h,
23289 include/grub/efi/efi.h, include/grub/efi/pe32.h,
23290 include/grub/i386/efi/time.h, kern/efi/efi.c,
23291 kern/i386/efi/init.c, kern/i386/efi/startup.S,
23292 and util/i386/efi/grub-mkimage.c.
23294 * Makefile.in (RMKFILES): Added i386-efi.rmk.
23296 * genmk.rb (PModule#rule): Do not export symbols if
23297 #{prefix}_EXPORTS is set to "no".
23299 * conf/i386-efi.mk: New file.
23300 * conf/i386-efi.rmk: Likewise.
23301 * include/grub/efi/api.h: Likewise.
23302 * include/grub/efi/console_control.h: Likewise.
23303 * include/grub/efi/efi.h: Likewise.
23304 * include/grub/efi/pe32.h: Likewise.
23305 * include/grub/i386/efi/time.h: Likewise.
23306 * kern/efi/efi.c: Likewise.
23307 * kern/i386/efi/init.c: Likewise.
23308 * kern/i386/efi/startup.S: Likewise.
23309 * util/i386/efi/grub-mkimage.c: Likewise.
23311 2006-04-17 Marco Gerards <marco@gnu.org>
23313 * include/grub/script.h: Include <grub/parser.h> and
23314 "grub_script.tab.h".
23315 (struct grub_lexer_param): New struct.
23316 (struct grub_parser_param): Likewise.
23317 (grub_script_create_arglist): Pass the state in an argument.
23318 (grub_script_add_arglist): Likewise.
23319 (grub_script_create_cmdline): Likewise.
23320 (grub_script_create_cmdblock): Likewise.
23321 (grub_script_create_cmdif): Likewise.
23322 (grub_script_create_cmdmenu): Likewise.
23323 (grub_script_add_cmd): Likewise.
23324 (grub_script_arg_add): Likewise.
23325 (grub_script_lexer_ref): Likewise.
23326 (grub_script_lexer_deref): Likewise.
23327 (grub_script_lexer_record_start): Likewise.
23328 (grub_script_lexer_record_stop): Likewise.
23329 (grub_script_mem_record): Likewise.
23330 (grub_script_mem_record_stop): Likewise.
23331 (grub_script_malloc): Likewise.
23332 (grub_script_yylex): Likewise.
23333 (grub_script_yyparse): Likewise.
23334 (grub_script_yyerror): Likewise.
23335 (grub_script_yylex): Likewise.
23336 (grub_script_lexer_init): Return the state.
23338 * normal/lexer.c (grub_script_lexer_state): Removed variable.
23339 (grub_script_lexer_done): Likewise.
23340 (grub_script_lexer_getline): Likewise.
23341 (grub_script_lexer_refs): Likewise.
23342 (script): Likewise.
23343 (newscript): Likewise.
23344 (record): Likewise.
23345 (recording): Likewise.
23346 (recordpos): Likewise.
23347 (recordlen): Likewise.
23348 (grub_script_lexer_init): Return the state instead of setting
23350 (grub_script_lexer_ref): Use the newly added argument for state
23351 instead of globals.
23352 (grub_script_lexer_deref): Likewise.
23353 (grub_script_lexer_record_start): Likewise.
23354 (grub_script_lexer_record_stop): Likewise.
23355 (recordchar): Likewise.
23356 (nextchar): Likewise.
23357 (grub_script_yylex2): Likewise.
23358 (grub_script_yylex): Likewise.
23359 (grub_script_yyerror): Likewise.
23361 * normal/parser.y (func_mem): Removed variable.
23362 (menu_entry): Likewise.
23364 (%lex-param): New parser option.
23365 (%parse-param): Likewise.
23366 (script): Always return the AST.
23367 (argument): Pass the state around.
23368 (arguments): Likewise.
23369 (grubcmd): Likewise.
23370 (commands): Likewise.
23371 (function): Likewise.
23372 (menuentry): Likewise.
23373 (if_statement): Likewise.
23376 * normal/script.c (grub_script_memused): Removed variable.
23377 (grub_script_parsed): Likewise.
23378 (grub_script_malloc): Added a state argument. Use that instead of
23380 (grub_script_mem_record): Likewise.
23381 (grub_script_mem_record_stop): Likewise.
23382 (grub_script_arg_add): Likewise.
23383 (grub_script_add_arglist): Likewise.
23384 (grub_script_create_cmdline): Likewise.
23385 (grub_script_create_cmdif): Likewise.
23386 (grub_script_create_cmdmenu): Likewise.
23387 (grub_script_add_cmd): Likewise.
23388 (grub_script_parse): Setup the state before calling the parser.
23390 2006-04-16 Marco Gerards <marco@gnu.org>
23392 * normal/command.c (grub_command_init): Remove the title command.
23394 * normal/lexer.c (grub_script_yylex): Renamed from this...
23395 (grub_script_yylex2): ... to this.
23396 (grub_script_yylex): New function. Temporary
23397 introduced to filter some tokens.
23398 (grub_script_yyerror): Print a newline.
23400 * normal/main.c (read_config_file): Output information about the
23401 lines that contain errors. Wait for a key after all lines have
23402 been processed. Don't return an empty menu.
23404 * normal/parser.y (func_mem): Don't initialize.
23405 (menu_entry): Likewise.
23406 (err): New variable.
23407 (script): Don't return anything when an error was encountered.
23408 (ws, returns): Removed rules.
23409 (argument): Disabled concatenated variable support.
23410 (arguments): Remove explicit separators.
23411 (grubcmd): Likewise.
23412 (function): Likewise.
23413 (menuentry): Likewise.
23415 (commands): Likewise. Add error handling.
23417 * normal/script.c (grub_script_create_cmdline): If
23418 `grub_script_parsed' is 0, assume the parser encountered an error.
23420 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
23422 * configure.ac: Add support for EFI. Fix the typo
23423 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
23425 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23427 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
23428 foreign multibyte characters should be shown correctly.
23430 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23432 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
23434 (read_config_file): Made it to close file before returning.
23436 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
23438 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
23439 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
23440 video/i386/pc/vbefill.c.
23442 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
23443 video/i386/pc/vbefill.c.
23445 * include/grub/video.h (grub_video_blit_format): New enum.
23446 (grub_video_mode_info): Added new member blit_format.
23447 (grub_video_get_blit_format): New function prototype.
23449 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
23450 function prototype.
23451 (grub_video_vbe_map_rgb): Likewise.
23452 (grub_video_vbe_unmap_color): Likewise.
23454 * include/grub/i386/pc/vbeblit.h: New file.
23456 * include/grub/i386/pc/vbefill.h: New file.
23458 * video/video.c (grub_video_get_blit_format): New function.
23459 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
23460 (grub_video_vbe_map_rgb): Likewise.
23461 (grub_video_vbe_unmap_color): Likewise.
23463 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
23465 (grub_video_vbe_blit_render_target): Changed to use more optimized
23467 (grub_video_vbe_setup): Added detection for optimized settings.
23468 (grub_video_vbe_create_render_target): Likewise.
23470 * video/i386/pc/vbeblit.c: New file.
23472 * video/i386/pc/vbefill.c: New file.
23474 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
23476 * font/manager.c (grub_font_get_glyph): Removed font fixup from
23479 * util/unifont2pff.rb: ... and moved it to here. Improved argument
23480 parsing to support both hex and dec ranges. If filename was missing
23481 show usage information.
23483 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
23485 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
23486 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
23488 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
23489 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
23490 (video_mod_SOURCES): Added.
23491 (video_mod_CFLAGS): Likewise.
23492 (video_mod_LDFLAGS): Likewise.
23493 (gfxterm_mod_SOURCES): Likewise.
23494 (gfxterm_mod_CFLAGS): Likewise.
23495 (gfxterm_mod_LDFLAGS): Likewise.
23496 (videotest_mod_SOURCES): Likewise.
23497 (videotest_mod_CFLAGS): Likewise.
23498 (videotest_mod_LDFLAGS): Likewise.
23499 (vesafb_mod_SOURCES): Removed.
23500 (vesafb_mod_CFLAGS): Likewise.
23501 (vesafb_mod_LDFLAGS): Likewise.
23502 (vga_mod_SOURCES): Likewise.
23503 (vga_mod_CFLAGS): Likewise.
23504 (vga_mod_LDFLAGS): Likewise.
23506 * commands/videotest.c: New file.
23508 * font/manager.c (fill_with_default_glyph): Modified to use
23510 (grub_font_get_glyph): Likewise.
23511 (fontmanager): Renamed from this...
23512 (font_manager): ... to this.
23514 * include/grub/font.h (grub_font_glyph): Added new structure.
23515 (grub_font_get_glyph): Modified to use grub_font_glyph.
23517 * include/grub/misc.h (grub_abs): Added as inline function.
23519 * include/grub/video.h: New file.
23521 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
23522 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
23523 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
23524 (grub_vbe_get_controller_info): Renamed from this...
23525 (grub_vbe_bios_get_controller_info): ... to this.
23526 (grub_vbe_get_mode_info): Renamed from this...
23527 (grub_vbe_bios_get_mode_info): ... to this.
23528 (grub_vbe_set_mode): Renamed from this...
23529 (grub_vbe_bios_set_mode): ... to this.
23530 (grub_vbe_get_mode): Renamed from this...
23531 (grub_vbe_bios_get_mode): ... to this.
23532 (grub_vbe_set_memory_window): Renamed from this...
23533 (grub_vbe_bios_set_memory_window): ... to this.
23534 (grub_vbe_get_memory_window): Renamed from this...
23535 (grub_vbe_bios_get_memory_window): ... to this.
23536 (grub_vbe_set_scanline_length): Renamed from this...
23537 (grub_vbe_set_scanline_length): ... to this.
23538 (grub_vbe_get_scanline_length): Renamed from this...
23539 (grub_vbe_bios_get_scanline_length): ... to this.
23540 (grub_vbe_set_display_start): Renamed from this...
23541 (grub_vbe_bios_set_display_start): ... to this.
23542 (grub_vbe_get_display_start): Renamed from this...
23543 (grub_vbe_bios_get_display_start): ... to this.
23544 (grub_vbe_set_palette_data): Renamed from this...
23545 (grub_vbe_bios_set_palette_data): ... to this.
23546 (grub_vbe_set_pixel_rgb): Removed.
23547 (grub_vbe_set_pixel_index): Likewise.
23549 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
23551 (grub_vbe_bios_get_controller_info): ... to this.
23552 (grub_vbe_get_mode_info): Renamed from this...
23553 (grub_vbe_bios_get_mode_info): ... to this.
23554 (grub_vbe_set_mode): Renamed from this...
23555 (grub_vbe_bios_set_mode): ... to this.
23556 (grub_vbe_get_mode): Renamed from this...
23557 (grub_vbe_bios_get_mode): ... to this.
23558 (grub_vbe_set_memory_window): Renamed from this...
23559 (grub_vbe_bios_set_memory_window): ... to this.
23560 (grub_vbe_get_memory_window): Renamed from this...
23561 (grub_vbe_bios_get_memory_window): ... to this.
23562 (grub_vbe_set_scanline_length): Renamed from this...
23563 (grub_vbe_set_scanline_length): ... to this.
23564 (grub_vbe_get_scanline_length): Renamed from this...
23565 (grub_vbe_bios_get_scanline_length): ... to this.
23566 (grub_vbe_set_display_start): Renamed from this...
23567 (grub_vbe_bios_set_display_start): ... to this.
23568 (grub_vbe_get_display_start): Renamed from this...
23569 (grub_vbe_bios_get_display_start): ... to this.
23570 (grub_vbe_set_palette_data): Renamed from this...
23571 (grub_vbe_bios_set_palette_data): ... to this.
23572 (grub_vbe_bios_get_controller_info): Fixed problem with registers
23573 getting corrupted after calling it. Added more pushes and pops.
23574 (grub_vbe_bios_set_mode): Likewise.
23575 (grub_vbe_bios_get_mode): Likewise.
23576 (grub_vbe_bios_get_memory_window): Likewise.
23577 (grub_vbe_bios_set_scanline_length): Likewise.
23578 (grub_vbe_bios_get_scanline_length): Likewise.
23579 (grub_vbe_bios_get_display_start): Likewise.
23580 (grub_vbe_bios_set_palette_data): Likewise.
23582 * normal/cmdline.c (cl_set_pos): Refresh the screen.
23583 (cl_insert): Likewise.
23584 (cl_delete): Likewise.
23586 * term/gfxterm.c: New file.
23588 * term/i386/pc/vesafb.c: Removed file.
23590 * video/video.c: New file.
23592 * video/i386/pc/vbe.c (real2pm): Added new function.
23593 (grub_video_vbe_draw_pixel): Likewise.
23594 (grub_video_vbe_get_video_ptr): Likewise.
23595 (grub_video_vbe_get_pixel): Likewise
23596 (grub_video_vbe_init): Likewise.
23597 (grub_video_vbe_fini): Likewise.
23598 (grub_video_vbe_setup): Likewise.
23599 (grub_video_vbe_get_info): Likewise.
23600 (grub_video_vbe_set_palette): Likewise.
23601 (grub_video_vbe_get_palette): Likewise.
23602 (grub_video_vbe_set_viewport): Likewise.
23603 (grub_video_vbe_get_viewport): Likewise.
23604 (grub_video_vbe_map_color): Likewise.
23605 (grub_video_vbe_map_rgb): Likewise.
23606 (grub_video_vbe_map_rgba): Likewise.
23607 (grub_video_vbe_unmap_color): Likewise.
23608 (grub_video_vbe_fill_rect): Likewise.
23609 (grub_video_vbe_blit_glyph): Likewise.
23610 (grub_video_vbe_blit_bitmap): Likewise.
23611 (grub_video_vbe_blit_render_target): Likewise.
23612 (grub_video_vbe_scroll): Likewise.
23613 (grub_video_vbe_swap_buffers): Likewise.
23614 (grub_video_vbe_create_render_target): Likewise.
23615 (grub_video_vbe_delete_render_target): Likewise.
23616 (grub_video_vbe_set_active_render_target): Likewise.
23617 (grub_vbe_set_pixel_rgb): Remove function.
23618 (grub_vbe_set_pixel_index): Likewise.
23619 (index_color_mode): Remove static variable.
23620 (active_mode): Likewise.
23621 (framebuffer): Likewise.
23622 (bytes_per_scan_line): Likewise.
23623 (grub_video_vbe_adapter): Added new static variable.
23624 (framebuffer): Likewise.
23625 (render_target): Likewise.
23626 (initial_mode): Likewise.
23627 (mode_in_use): Likewise.
23628 (mode_list): Likewise.
23630 2006-03-10 Marco Gerards <marco@gnu.org>
23632 * configure.ac (AC_INIT): Bumped to 1.93.
23634 * DISTLIST: Added `include/grub/hfs.h'.
23636 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
23638 * boot/i386/pc/boot.S (general_error): Before looping, try INT
23639 18H, which might help the BIOS falling back to next boot media.
23641 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
23643 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
23644 Poe Chen <poe.poechen@gmail.com>.
23646 2006-01-17 Marco Gerards <marco@gnu.org>
23648 * include/grub/normal.h: Include <grub/script.h>.
23649 (grub_command_list): Removed struct.
23650 (grub_command_list_t): Removed type.
23651 (grub_menu_entry): Remove members `num' and `command_list'. Add
23652 members `commands' and `sourcecode'.
23653 * include/grub/script.h: Add inclusion guards.
23654 (grub_script_cmd_menuentry): New struct.
23655 (grub_script_execute_menuentry): New prototype.
23656 (grub_script_lexer_record_start): Likewise.
23657 (grub_script_lexer_record_stop): Likewise.
23658 * normal/execute.c (grub_script_execute_menuentry): New function.
23659 * normal/lexer.c (record, recording, recordpos, recordlen): New
23661 (grub_script_lexer_record_start): New function.
23662 (grub_script_lexer_record_stop): Likewise.
23663 (recordchar): Likewise.
23664 (nextchar): Likewise.
23665 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
23666 2048 as the buffer size. Add the tokens `menuentry' and `@'.
23667 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
23668 (current_menu): New variable.
23669 (free_menu): Mainly rewritten.
23670 (grub_normal_menu_addentry): New function.
23671 (read_config_file): Rewritten.
23672 * normal/menu.c (run_menu_entry): Mainly rewritten.
23673 * normal/menu_entry.c (make_screen): Rewritten the code to insert
23675 (run): Mainly rewritten.
23676 * normal/parser.y (menu_entry): New variable.
23677 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
23678 (menuentry): New rule.
23679 (command): Add `menuentry'.
23680 (if_statement): Allow additional returns before `fi'.
23681 * normal/script.c (grub_script_create_cmdmenu): New function.
23683 2006-01-03 Marco Gerards <marco@gnu.org>
23685 * INSTALL: GNU Bison is required.
23686 * configure.ac: Rewritten the test to detect Bison.
23687 * Makefile.in (YACC): New variable. Reported by Xun Sun
23688 <xun.sun.cn@gmail.com>.
23690 2006-01-03 Marco Gerards <marco@gnu.org>
23692 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
23693 the HFS+ filesystem to filesystem blocks.
23694 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
23695 GCC warning is silenced.
23697 2006-01-03 Marco Gerards <marco@gnu.org>
23699 * partmap/apple.c (apple_partition_map_iterate): Convert the data
23700 read from disk from big endian to host byte order.
23702 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
23704 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
23706 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
23707 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
23708 embedded HFS+ filesystem.
23709 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
23710 (grub_hfs_sblock): Move from here...
23711 * include/grub/hfs.h: To here... New file.
23712 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
23714 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
23716 (grub_hfsplus_volheader): Change type of member `magic' to
23718 (grub_hfsplus_data): Add new member `embedded_offset'.
23719 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
23721 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
23722 Calculate the offset.
23724 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23726 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
23728 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
23730 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23732 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
23733 ENV->NAME is NULL after allocating ENV->VALUE.
23735 2005-12-25 Marco Gerards <marco@gnu.org>
23737 * kern/env.c (grub_env_set): Rewritten the error handling code.
23739 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23741 * geninit.sh: Made more robust, and more portable.
23743 2005-12-25 Marco Gerards <marco@gnu.org>
23745 Add support for Apple HFS+ filesystems.
23747 * fs/hfsplus.c: New file.
23749 * DISTLIST: Added `fs/hfsplus.c'.
23751 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
23752 (hfsplus_mod_SOURCES): New variable.
23753 (hfsplus_mod_CFLAGS): Likewise.
23754 (hfsplus_mod_LDFLAGS): Likewise.
23755 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
23756 (grub_setup_SOURCES): Likewise.
23757 (grub_mkdevicemap_SOURCES): Likewise.
23758 (grub_emu_SOURCES): Likewise.
23759 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23761 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
23763 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
23765 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23767 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
23768 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
23769 include/grub/parser.h, include/grub/script.h, kern/parser.c,
23770 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
23771 normal/lexer.c, normal/parser.y, normal/script.c, and
23773 Removed kern/sparc64/cache.c.
23775 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
23776 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
23779 * configure.ac (AC_INIT): Bumped to 1.92.
23781 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
23783 * kern/err.c (grub_error_push): Added new function to support error
23785 (grub_error_pop): Likewise.
23786 (grub_error_stack_items): New local variable to support error stacks.
23787 (grub_error_stack_pos): Likewise.
23788 (grub_error_stack_assert): Likewise.
23789 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
23791 (grub_print_error): Added support to print errors from error stack.
23793 * include/grub/err.h (grub_error_push): Added function prototype.
23794 (grub_error_pop): Likewise.
23796 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
23798 * configure.ac: Accept `powerpc64' as host_cpu.
23799 (amd64): Rename to `biarch32'.
23801 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
23802 non-cacheline-aligned addresses.
23804 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
23805 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
23806 if `size' is non-zero.
23808 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
23810 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
23811 and `cd' to make sure the filename is not prefixed with a
23813 (pkgdata_MODULES): Add `gpt.mod'.
23814 (gpt_mod_SOURCES): New variable.
23815 (gpt_mod_CFLAGS): Likewise.
23816 (gpt_mod_LDFLAGS): Likewise.
23818 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
23820 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
23823 * partmap/gpt.c: New file.
23825 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
23826 GPT partition map is detected.
23828 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
23830 * commands/i386/pc/play.c: New file.
23831 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
23832 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
23835 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
23837 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
23838 ((unused))' to silence gcc warning.
23840 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
23842 * configure.ac: Correct `AC_PROG_YACC' test.
23844 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23846 * util/powerpc/ieee1275/grub-install.in: Run the mount point
23847 check before installing files.
23849 2005-11-22 Mike Small <smallm@panix.com>
23851 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
23852 number regex so multidigit numbers are recognized correctly.
23854 2005-11-22 Mike Small <smallm@panix.com>
23856 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
23857 debugging message before attempting to claim memory.
23858 (grub_rescue_cmd_initrd): Add a claim debugging message and try
23859 multiple addresses in case of failure.
23861 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23863 * term/tparm.c (get_space): Remove empty `if' statement.
23865 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
23867 * kern/parser.c (check_varstate): Rename `state' to 's'.
23869 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23871 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
23872 variable definitions to the beginning of each function. Sort stack
23874 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
23875 `buf' argument to `char *'.
23877 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23879 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
23880 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
23881 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
23882 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
23883 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
23884 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
23885 configfile.mod, search.mod, gzio.mod and test.mod.
23886 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
23887 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
23888 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
23889 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
23890 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
23891 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
23892 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
23893 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
23894 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
23895 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
23896 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
23897 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
23898 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
23899 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
23900 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
23901 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
23902 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
23903 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
23904 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
23905 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
23906 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
23907 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
23908 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
23910 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
23912 (pkgdata_MODULES): Add test.mod.
23914 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23916 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
23917 appending to variables with "+=".
23918 (PModule): Use full pathname to generate *.lst filenames.
23920 * Makefile.in: Fixed list rules moved from genmk.rb.
23921 (.DELETE_ON_ERROR): New special target.
23922 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
23924 * conf/i386-pc.rmk: Include conf/common.mk.
23925 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
23926 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
23927 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
23928 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
23929 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
23930 configfile.mod, search.mod, gzio.mod and test.mod.
23931 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
23932 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
23933 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
23934 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
23935 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
23936 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
23937 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
23938 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
23939 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
23940 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
23941 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
23942 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
23943 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
23944 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
23945 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
23946 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
23947 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
23948 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
23949 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
23950 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
23951 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
23952 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
23953 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
23955 * conf/common.rmk: ... to here. New file.
23957 * conf/common.mk: New file.
23959 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
23961 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
23962 (grub_script.tab.c): ... here.
23964 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
23965 (grub_script.tab.c): ... here.
23967 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
23968 (grub_script.tab.c): ... here.
23970 * normal/command.c (grub_command_find): Fixed a memory leak of
23971 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
23973 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23975 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
23976 "@" which marks the start of a comment on ARM.
23977 (VARIABLE): Likewise.
23979 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23981 Add support for Linux/ADFS partition tables.
23983 * partmap/acorn.c: New file.
23985 * include/grub/acorn_filecore.h: Likewise.
23987 * DISTLIST: Added `partmap/acorn.c' and
23988 `include/grub/acorn_filecore.h'.
23990 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
23992 (pkgdata_MODULES): Add `acorn.mod'.
23993 (acorn_mod_SOURCES): New variable.
23994 (acorn_mod_CFLAGS): Likewise.
23996 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
23998 (pkgdata_MODULES): Add `acorn.mod'.
23999 (acorn_mod_SOURCES): New variable.
24000 (acorn_mod_CFLAGS): Likewise.
24002 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
24003 (pkgdata_MODULES): Add `acorn.mod'.
24004 (acorn_mod_SOURCES): New variable.
24005 (acorn_mod_CFLAGS): Likewise.
24006 (acorn_mod_LDFLAGS): Likewise.
24008 * include/types.h (grub_disk_addr_t): New typedef.
24010 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
24012 * geninit.sh: New file.
24014 * geninitheader.sh: Likewise.
24016 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
24017 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
24018 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
24019 * commands/configfile.c (grub_configfile_init)
24020 (grub_configfile_fini): Likewise.
24021 * commands/default.c (grub_default_init, grub_default_fini):
24023 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
24024 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
24025 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
24026 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
24028 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
24029 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
24031 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
24032 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
24034 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
24036 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
24038 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
24039 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
24040 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
24041 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
24042 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
24043 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
24044 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
24045 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
24046 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
24047 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
24048 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
24049 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
24050 * partmap/amiga.c (grub_amiga_partition_map_init)
24051 (grub_amiga_partition_map_fini): Likewise.
24052 * partmap/apple.c (grub_apple_partition_map_init)
24053 (grub_apple_partition_map_fini): Likewise.
24054 * partmap/pc.c (grub_pc_partition_map_init)
24055 (grub_pc_partition_map_fini): Likewise.
24056 * partmap/sun.c (grub_sun_partition_map_init,
24057 grub_sun_partition_map_fini): Likewise.
24058 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
24061 * util/grub-emu.c: Include <grub_modules_init.h>.
24062 (main): Don't initialize and de-initialize any modules directly,
24063 use `grub_init_all' and `grub_fini_all' instead.
24065 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
24066 `grub_vesafb_mod_init'.
24067 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
24069 * term/i386/pc/vga.c (grub_vga_init): Renamed to
24070 `grub_vga_mod_init'. Updated all users.
24071 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
24073 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
24074 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
24077 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
24078 Generate a function to initialize the module in utilities.
24079 Updated all callers.
24080 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
24081 initialize the module in utilities. Updated all callers.
24083 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24085 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
24086 escape sequence and a literal ^L to clear the screen.
24088 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
24089 when returning from Open Firmware.
24091 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24093 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
24094 (grub_ofconsole_height): Likewise.
24095 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
24096 manually insert a '\n'.
24097 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
24098 `grub_ofconsole_height'. Return early if these are already set.
24100 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
24102 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
24103 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
24104 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
24105 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
24106 and `normal/script.c'.
24107 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24108 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24109 (test_mod_SOURCES): New variable.
24110 (test_mod_CFLAGS): Likewise.
24111 (test_mod_LDFLAGS): Likewise.
24112 (pkgdata_MODULES): Add `test.mod'.
24113 (grub_script.tab.c): New rule.
24114 (grub_script.tab.h): Likewise.
24116 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
24118 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24119 `commands/test.c', `normal/execute.c', `normal/lexer.c',
24120 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24121 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24122 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24123 (test_mod_SOURCES): New variable.
24124 (test_mod_CFLAGS): Likewise.
24125 (pkgdata_MODULES): Add `test.mod'.
24126 (grub_script.tab.c): New rule.
24127 (grub_script.tab.h): Likewise.
24129 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
24131 Add initial scripting support.
24133 * commands/test.c: New file.
24134 * include/grub/script.h: Likewise.
24135 * normal/execute.c: Likewise.
24136 * normal/function.c: Likewise.
24137 * normal/lexer.c: Likewise.
24138 * normal/parser.y: Likewise.
24139 * normal/script.c: Likewise.
24141 * configure.ac: Add `AC_PROG_YACC' test.
24143 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
24144 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
24145 `normal/function.c' and `normal/script.c'.
24146 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24147 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24148 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
24150 (pkgdata_MODULES): Add `test.mod'.
24151 (grub_script.tab.c): New rule.
24152 (grub_script.tab.h): Likewise.
24154 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
24156 * include/grub/normal.h (grub_test_init): New prototype.
24157 (grub_test_fini): Likewise.
24159 * normal/command.c: Include <grub/script.h>.
24160 (grub_command_execute): Rewritten.
24162 * util/grub-emu.c (main): Call `grub_test_init' and
24165 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24167 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
24169 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
24170 there are no pending characters.
24172 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24174 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
24175 `grub_strndup' to drop device arguments. Replace unnecessary
24176 `grub_strndup' with `grub_strdup'.
24178 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24180 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
24181 `debug' environment variable has been set.
24183 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
24185 * Makefile.in (install-local): Use $(DATA).
24186 (uninstall): Likewise.
24187 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
24188 (sbin_UTILITIES): ... to here.
24189 (sbin_SCRIPTS): New variable.
24190 (grub_install_SOURCES): New variable.
24191 * util/powerpc/ieee1275/grub-install.in: New file.
24192 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
24194 (add_segments): Call `grub_util_get_path'.
24196 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
24198 From Timothy Baldwin:
24199 * commands/ls.c (grub_ls_list_files): Close FILE with
24201 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
24203 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
24205 * include/grub/parser.h: New file.
24207 * kern/parser.c: Likewise.
24209 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
24210 (grub_setup_SOURCES): Likewise.
24211 (grub_probefs_SOURCES): Likewise.
24212 (grub_emu_SOURCES): Likewise.
24213 (kernel_img_HEADERS): Add `parser.h'.
24215 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24216 (grub_emu_SOURCES): Add `kern/parser.c'.
24217 (grubof_SOURCES): Likewise.
24219 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24220 (grubof_SOURCES): Add `kern/parser.c'.
24222 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
24224 * kern/misc.c (grub_split_cmdline): Removed function.
24226 * kern/rescue.c: Include <grub/parser.h>.
24227 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
24228 of `grub_split_cmdline'.
24230 * normal/command.c: Include <grub/parser.h>.
24231 (grub_command_execute): Use `grub_parser_split_cmdline' instead
24232 of `grub_split_cmdline'.
24234 * normal/completion.c: Include <grub/parser.h>.
24235 (cmdline_state): New variable.
24236 (iterate_dir): End the filename with a quote depending on the
24237 command line state.
24238 (get_state): new function.
24239 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
24240 split the arguments and determine the current argument. When the
24241 argument string is not quoted, escape all spaces.
24243 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24245 * normal/sparc64/setjmp.S: New file.
24247 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24249 * include/grub/sparc64/libgcc.h: New file.
24250 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
24251 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
24252 normal/sparc64/setjmp.c.
24254 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24256 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
24257 * kern/sparc64/cache.S: New file.
24258 * kern/sparc64/cache.c: Removed.
24259 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
24260 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
24262 (COMMON_LDFLAGS): Add -melf64_sparc.
24263 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
24264 (grubof_SOURCES): Use cache.S instead of cache.c.
24265 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
24266 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
24267 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
24269 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
24270 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
24271 (linux_mod_CFLAGS): Commented out.
24272 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
24273 out because module isn't built.
24274 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
24275 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
24276 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
24277 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
24278 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
24279 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24280 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24281 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
24282 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
24283 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
24284 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24285 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24286 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
24287 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
24289 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
24291 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
24292 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
24293 longer, because HFS should not be used on PC.
24295 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24297 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
24298 consistently within the loop.
24300 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
24302 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
24303 directory can not be read.
24305 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24307 * configure.ac (AC_INIT): Increase the version number to 1.91.
24309 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
24310 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
24311 term/i386/pc/serial.c.
24313 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24315 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
24316 file size must be permitted.
24318 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
24319 between %ah and %al.
24321 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24323 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
24325 Call the hook with a NUL-terminated filename.
24326 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
24329 * kern/term.c (cursor_state): New variable.
24330 (grub_term_set_current): Reset the cursor state on a new
24332 (grub_setcursor): Rewritten to use CURSOR_STATE.
24333 (grub_getcursor): New function.
24335 * include/grub/term.h (grub_getcursor): New prototype.
24337 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
24338 integers on ARM. Reported by Timothy Baldwin
24339 <T.E.Baldwin99@members.leeds.ac.uk>.
24341 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
24343 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
24345 (grub_sfs_dir): Likewise.
24347 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
24349 Add support for the SFS filesystem.
24351 * fs/sfs.c: New file.
24353 * DISTLIST: Added `fs/sfs.c'.
24355 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
24356 (grub_probefs_SOURCES): Likewise.
24357 (grub_emu_SOURCES): Likewise.
24358 (pkgdata_MODULES): Add `sfs.mod'.
24359 (sfs_mod_SOURCES): New variable.
24360 (sfs_mod_CFLAGS): Likewise.
24361 (sfs_mod_LDFLAGS): Likewise.
24363 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
24364 (pkgdata_MODULES): Add `sfs.mod'.
24365 (sfs_mod_SOURCES): New variable.
24366 (sfs_mod_CFLAGS): Likewise.
24368 * util/grub-emu.c (main): Call `grub_sfs_init' and
24371 * include/grub/fs.h (grub_sfs_init): New prototype.
24372 (grub_sfs_fini): Likewise.
24374 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
24376 Add support for the AFFS filesystem.
24378 * fs/affs.c: New file.
24380 * DISTLIST: Added `fs/affs.c'.
24382 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
24383 (grub_probefs_SOURCES): Likewise.
24384 (grub_emu_SOURCES): Likewise.
24385 (pkgdata_MODULES): Add `affs.mod'.
24386 (affs_mod_SOURCES): New variable.
24387 (affs_mod_CFLAGS): Likewise.
24388 (affs_mod_LDFLAGS): Likewise.
24390 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
24391 (pkgdata_MODULES): Add `affs.mod'.
24392 (affs_mod_SOURCES): New variable.
24393 (affs_mod_CFLAGS): Likewise.
24395 * util/grub-emu.c (main): Call `grub_affs_init' and
24398 * include/grub/fs.h (grub_affs_init): New prototype.
24399 (grub_affs_fini): Likewise.
24401 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
24403 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
24405 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
24407 * configure.ac: Accept `x86_64' as host_cpu. In that case add
24410 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
24413 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
24414 (COMMON_LDFLAGS): New variable.
24415 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
24416 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
24417 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
24418 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
24419 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
24420 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
24421 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
24422 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
24423 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
24424 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
24425 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24426 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24427 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
24428 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
24429 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
24431 (normal_mod_ASFLAGS): Add `-m32'.
24433 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
24434 (grub_host_size_t, grub_host_ssize_t): New types.
24435 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
24436 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
24437 `GRUB_HOST_SIZEOF_VOID_P'.
24439 * include/grub/kernel.h (struct grub_module_header): Type of
24440 member offset changed to `grub_host_off_t'. Type of member size
24441 changed to `grub_host_size_t'.
24442 (struct grub_module_info): Type of member offset changed to
24443 `grub_host_off_t'. Type of member size changed to
24444 `grub_host_size_t'.
24446 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
24448 Make GRUB's kernel compliant to Multiboot Specification.
24450 * kern/i386/pc/startup.S (multiboot_header): New label.
24451 (multiboot_entry): Likewise.
24452 (multiboot_trampoline): Likewise.
24454 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
24455 Increased to 0x4A0.
24457 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
24458 put parentheses after a question mark.
24459 [!GRUB_UTIL] (my_mod): New variable.
24461 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
24463 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
24465 Adds support for the XFS filesystem. Btrees are not supported
24468 * fs/xfs.c: New file.
24470 * DISTLIST: Added `fs/xfs.c'.
24472 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
24473 (grub_probefs_SOURCES): Likewise.
24474 (grub_emu_SOURCES): Likewise.
24475 (pkgdata_MODULES): Add `xfs.mod'.
24476 (xfs_mod_SOURCES): New variable.
24477 (xfs_mod_CFLAGS): Likewise.
24479 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
24480 (pkgdata_MODULES): Add `xfs.mod'.
24481 (xfs_mod_SOURCES): New variable.
24482 (xfs_mod_CFLAGS): Likewise.
24484 * util/grub-emu.c (main): Call `grub_xfs_init' and
24487 * include/grub/fs.h (grub_xfs_init): New prototype.
24488 (grub_xfs_fini): Likewise.
24491 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
24493 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
24494 color modes, allow greater than 16 colors to be configured as
24497 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
24499 * normal/completion.c (complete_arguments): Add the qualifier
24500 const into OPTIONS.
24502 From Omniflux <omniflux+lists@omniflux.com>:
24503 * include/grub/terminfo.h: New file.
24504 * include/grub/tparm.h: Likewise.
24505 * include/grub/i386/pc/serial.h: Likewise.
24506 * term/terminfo.c: Likewise.
24507 * term/tparm.c: Likewise.
24508 * term/i386/pc/serial.c: Likewise.
24509 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
24511 (terminfo_mod_SOURCES): New variable.
24512 (terminfo_mod_CFLAGS): Likewise.
24513 (serial_mod_SOURCES): Likewise.
24514 (serial_mod_CFLAGS): Likewise.
24516 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
24518 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
24519 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
24520 and kern/powerpc/ieee1275/cmain.c, respectively.
24522 * boot/powerpc/ieee1275/crt0.S: Moved to ...
24523 * kern/powerpc/ieee1275/crt0.S: ... here.
24525 * boot/powerpc/ieee1275/cmain.c: Moved to ...
24526 * kern/powerpc/ieee1275/cmain.c: ... here.
24528 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
24529 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
24530 instead of boot/powerpc/ieee1275/crt0.S and
24531 boot/powerpc/ieee1275/cmain.c, respectively.
24533 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
24534 sectors. It was not used anyway.
24536 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24538 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
24539 `unused parameter' warning.
24541 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24543 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
24545 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
24548 2005-08-28 Marco Gerards <metgerards@student.han.nl>
24550 * include/grub/normal.h (enum grub_completion_type): Added
24551 `GRUB_COMPLETION_TYPE_ARGUMENT'.
24553 * normal/cmdline.c (print_completion): Handle
24554 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
24555 * normal/menu_entry.c (store_completion): Likewise.
24557 * normal/completion.c (complete_arguments): New function.
24558 (grub_normal_do_completion): Call `complete_arguments' when the
24559 current words start with a dash.
24561 2005-08-27 Marco Gerards <metgerards@student.han.nl>
24563 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
24564 `gzio.mod' instead of `io.mod').
24566 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
24568 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
24569 (DISTDIRS): Added io and video.
24570 Rewrite the search routine to make an output consistently.
24572 * DISTLIST: Added conf/sparc64-ieee1275.mk,
24573 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
24574 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
24575 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
24576 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
24577 util/powerpc/ieee1275/misc.c.
24579 * include/grub/gzio.h: New file.
24580 * io/gzio.c: Likewise.
24582 * kern/file.c (grub_file_close): Call grub_device_close only if
24583 FILE->DEVICE is not NULL.
24585 * include/grub/mm.h [!NULL] (NULL): New macro.
24587 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
24589 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
24590 (pkgdata_MODULES): Added gzio.mod.
24591 (gzio_mod_SOURCES): New variable.
24592 (gzio_mod_CFLAGS): Likewise.
24594 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
24595 (pkgdata_MODULES): Added gzio.mod.
24596 (gzio_mod_SOURCES): New variable.
24597 (gzio_mod_CFLAGS): Likewise.
24599 * commands/cat.c: Include grub/gzio.h.
24600 (grub_cmd_cat): Use grub_gzfile_open instead of
24603 * commands/cmp.c: Include grub/gzio.h.
24604 (grub_cmd_cmp): Use grub_gzfile_open instead of
24607 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
24608 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
24610 (grub_rescue_cmd_module): Likewise.
24612 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24614 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
24615 kern/sparc64/ieee1275/init.c because it contains _start.
24616 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
24618 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24620 * configure.ac: Add support for sparc64 host with ieee1275
24622 * configure: Generated from configure.ac.
24623 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
24625 (grub_ofdisk_read): Likewise.
24626 (grub_ofdisk_open): Use %p to print pointer values, and cast the
24627 pointers as (void *) to remove a warning.
24628 (grub_ofdisk_close): Likewise.
24629 (grub_ofdisk_read): Likewise.
24630 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
24631 returns, so make it return void to remove a warning.
24632 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
24633 Corresponding prototype change.
24634 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
24635 values, and cast the pointers as (void *) to remove a warning.
24636 (grub_mm_dump): Likewise.
24637 * conf/sparc64-ieee1275.mk: New file.
24638 * conf/sparc64-ieee1275.rmk: Likewise.
24639 * include/grub/sparc64/setjmp.h: Likewise.
24640 * include/grub/sparc64/types.h: Likewise.
24641 * include/grub/sparc64/ieee1275/console.h: Likewise.
24642 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
24643 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
24644 * include/grub/sparc64/ieee1275/time.h: Likewise.
24645 * kern/sparc64/cache.c: Likewise.
24646 * kern/sparc64/dl.c: Likewise.
24647 * kern/sparc64/ieee1275/init.c: Likewise.
24648 * kern/sparc64/ieee1275/openfw.c: Likewise.
24650 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
24652 * util/console.c (grub_ncurses_putchar): If C is greater than
24653 0x7f, set C to a question mark.
24654 (grub_ncurses_getcharwidth): New function.
24655 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
24658 * normal/menu.c (print_entry): Made aware of Unicode. First,
24659 convert TITLE to UCS-4, and predict the cursor position by
24662 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
24664 * kern/misc.c (grub_utf16_to_utf8): Likewise.
24666 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24668 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
24669 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24672 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
24673 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24674 grub_strcpy and grub_strlen. Take it into account that a space
24675 character is inserted as a delimiter.
24677 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24679 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
24680 invalid magic in the error.
24682 * commands/search.c: New file.
24684 * util/grub-emu.c (main): Call grub_search_init and
24687 * kern/rescue.c (grub_rescue_print_disks): Removed.
24688 (grub_rescue_print_devices): New function.
24689 (grub_rescue_cmd_ls): Use grub_device_iterate with
24690 grub_rescue_print_devices instead of grub_disk_dev_iterate with
24691 grub_rescue_print_disks.
24693 * kern/partition.c (grub_partition_iterate): Return the result of
24694 PARTMAP->ITERATE instead of GRUB_ERRNO.
24696 * kern/device.c: Include grub/partition.h.
24697 (grub_device_iterate): New function.
24699 * include/grub/partition.h (grub_partition_iterate): Return int
24700 instead of grub_err_t.
24702 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
24704 [GRUB_UTIL] (grub_search_fini): Likewise.
24706 * include/grub/device.h (grub_device_iterate): New prototype.
24708 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
24710 (pkgdata_MODULES): Added search.mod.
24711 (search_mod_SOURCES): New variable.
24712 (search_mod_CFLAGS): Likewise.
24714 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
24715 (pkgdata_MODULES): Added search.mod.
24716 (search_mod_SOURCES): New variable.
24717 (search_mod_CFLAGS): Likewise.
24719 * commands/ls.c (grub_ls_list_disks): Renamed to ...
24720 (grub_ls_list_devices): ... this, and use grub_device_iterate.
24721 All callers changed.
24723 * DISTLIST: Added commands/search.c.
24725 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24727 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
24729 (grub_getcharwidth): New function.
24731 * kern/misc.c (grub_utf8_to_ucs4): New function.
24733 * include/grub/term.h (struct grub_term): Added a new member
24735 (grub_getcharwidth): New prototype.
24737 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
24739 * term/i386/pc/console.c (map_char): New function. Segregated from
24740 grub_console_putchar.
24741 (grub_console_putchar): Use map_char.
24742 (grub_console_getcharwidth): New function.
24743 (grub_console_term): Specified grub_console_getcharwidth as
24746 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
24747 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
24749 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
24751 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
24752 on grub_strtoul completely.
24753 (write_char): Declare local variables in the beginning of the
24755 (grub_vesafb_getcharwidth): New function.
24756 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
24759 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
24761 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
24762 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
24763 commands/i386/pc/vbetest.c.
24765 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
24766 call grub_vbe_get_controller_info again, because the returned
24767 information is volatile.
24768 (grub_vbe_set_video_mode): Mostly rewritten.
24769 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
24770 grub_vbe_status_t correctly.
24771 (grub_vbe_get_video_mode_info): Likewise.
24772 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
24773 several if statements.
24775 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
24776 * commands/i386/pc/vbeinfo.c: ... this.
24778 * commands/i386/pc/vbe_test.c: Renamed to ...
24779 * commands/i386/pc/vbetest.c: ... this.
24781 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
24783 (grub_cmd_vbeinfo): ... this. Save video modes before
24784 iterating. Skip a video mode, if it is not available, not enough
24785 information is given or it is monochrome. Show the memory
24786 model. Leave the interpretation of MODEVAR to grub_strtoul
24788 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
24789 (GRUB_MOD_FINI): Likewise.
24791 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
24792 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
24793 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
24794 duplicated grub_env_get. Leave the interpretation of MODEVAR to
24795 grub_strtoul completely.
24796 (real2pm): Removed.
24797 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
24798 (GRUB_MOD_FINI): Likewise.
24800 * normal/misc.c: Include grub/mm.h.
24802 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
24803 vbe_list_modes with vbetest.mod and vbeinfo.mod.
24804 (vbe_list_modes_mod_SOURCES): Removed.
24805 (vbe_list_modes_mod_CFLAGS): Likewise.
24806 (vbe_test_mod_SOURCES): Likewise.
24807 (vbe_test_mod_CFLAGS): Likewise.
24808 (vbeinfo_mod_SOURCES): New variable.
24809 (vbeinfo_mod_CFLAGS): Likewise.
24810 (vbetest_mod_SOURCES): Likewise.
24811 (vbetest_mod_CFLAGS): Likewise.
24813 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
24815 * normal/misc.c: New file.
24817 * DISTLIST: Added normal/misc.c.
24819 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
24820 DISK to HOOK. Call HOOK with DISK.
24821 * partmap/apple.c (apple_partition_map_iterate): Likewise.
24822 * partmap/pc.c (pc_partition_map_iterate): Likewise.
24823 * partmap/sun.c (sun_partition_map_iterate): Likewise.
24825 * normal/menu_entry.c (struct screen): Added a new member
24826 "completion_shown".
24827 (completion_buffer): New global variable.
24828 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
24829 (store_completion): New function.
24830 (complete): Likewise.
24831 (clear_completions): Likewise.
24832 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
24833 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
24834 a tab, call complete.
24836 * normal/completion.c (disk_dev): Removed.
24837 (print_simple_completion): Likewise.
24838 (print_partition_completion): Likewise.
24839 (print_func): New global variable.
24840 (add_completion): Do not take the arguments WHAT or PRINT any
24841 longer. Added a new argument TYPE. Instead of printing directly,
24842 call PRINT_FUNC if not NULL.
24843 All callers changed.
24844 (complete_device): Use a local variable DEV instead of
24845 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
24846 (grub_normal_do_completion): Take a new argument HOOK. Do not
24847 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
24848 empty string, return NULL instead.
24849 All callers changed.
24851 * normal/cmdline.c (print_completion): New function.
24853 * kern/partition.c (grub_partition_iterate): Add an argument DISK
24855 All callers changed.
24857 * kern/disk.c (grub_print_partinfo): Removed.
24859 * include/grub/partition.h (struct grub_partition_map): Add a new
24860 argument DISK into HOOK of ITERATE.
24861 (grub_partition_iterate): Add a new argument DISK to HOOK.
24863 * include/grub/normal.h (enum grub_completion_type): New enum.
24864 (grub_completion_type_t): New type.
24865 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
24866 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
24867 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
24868 (GRUB_COMPLETION_TYPE_FILE): Likewise.
24869 (grub_normal_do_completion): Added a new argument HOOK.
24870 (grub_normal_print_device_info): New prototype.
24872 * include/grub/disk.h (grub_print_partinfo): Removed.
24874 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
24875 (normal_mod_SOURCES): Likewise.
24876 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24877 (normal_mod_SOURCES): Likewise.
24879 * commands/ls.c (grub_ls_list_disks): Use
24880 grub_normal_print_device_info instead of grub_print_partinfo. Free
24882 (grub_ls_list_files): Use grub_normal_print_device_info instead of
24883 duplicating the code.
24885 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
24887 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
24888 follow GCS more precisely.
24889 * commands/i386/pc/vbe_test.c: Likewise.
24890 * include/grub/i386/pc/vbe.h: Likewise.
24891 * term/i386/pc/vesafb.c: Likewise.
24892 * video/i386/pc/vbe.c: Likewise.
24894 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
24896 * DISTLIST: Added term/i386/pc/vesafb.c
24897 DISTLIST: Added video/i386/pc/vbe.c
24898 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
24899 DISTLIST: Added commands/i386/pc/vbe_test.c.
24900 * commands/i386/pc/vbe_list_modes.c: New file.
24901 * commands/i386/pc/vbe_test.c: Likewise.
24902 * term/i386/pc/vesafb.c: Likewise.
24903 * video/i386/pc/vbe.c: Likewise.
24904 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
24905 (grub_vbe_probe) Added prototype.
24906 (grub_vbe_set_video_mode) Likewise.
24907 (grub_vbe_get_video_mode) Likewise.
24908 (grub_vbe_get_video_mode_info) Likewise.
24909 (grub_vbe_set_pixel_rgb) Likewise.
24910 (grub_vbe_set_pixel_index) Likewise.
24911 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
24912 (pkgdata_MODULES): Added vesafb.mod.
24913 (pkgdata_MODULES): Added vbe_list_modes.mod.
24914 (pkgdata_MODULES): Added vbe_test.mod.
24915 (vbe_mod_SOURCES): Added.
24916 (vbe_mod_CFLAGS): Likewise.
24917 (vesafb_mod_SOURCES): Likewise.
24918 (vesafb_mod_CFLAGS): Likewise.
24919 (vbe_list_modes_mod_SOURCES): Likewise.
24920 (vbe_list_modes_mod_CFLAGS): Likewise.
24921 (vbe_test_mod_SOURCES): Likewise.
24922 (vbe_test_mod_CFLAGS): Likewise.
24924 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
24926 * normal/command.c (grub_command_execute): If INTERACTIVE is
24927 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
24928 CMDLINE. Disable the pager if INTERACTIVE is true.
24929 All callers are changed.
24931 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
24932 before reading a config file.
24933 * normal/main.c (read_config_file): Even if a command is not
24934 found, register it if it is within an entry.
24936 * util/grub-emu.c: Include sys/types.h and unistd.h.
24937 (options): Added --hold.
24938 (struct arguments): Added a new member "hold".
24939 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
24941 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
24942 cleared by a debugger, if it is not zero.
24944 * include/grub/normal.h (grub_command_execute): Add an argument
24947 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
24949 * DISTLIST: Added include/grub/i386/pc/vbe.h.
24951 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
24953 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
24954 program with another one, because the old one didn't detect a bug
24955 in gcc-3.4. Always use regparm 2, because the new test is still
24956 not enough for gcc-4.0. Someone must investigate a simple test
24957 case which detects a bug in gcc-4.0.
24959 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
24961 * DISTLIST: Added normal/completion.c.
24963 * normal/completion.c: New file.
24965 * term/i386/pc/console.c (grub_console_getwh): New function.
24966 (grub_console_term): Assign grub_console_getwh to getwh.
24968 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
24969 function is defined in normal/completion.c as
24970 grub_normal_do_completion.
24971 (grub_cmdline_get): Use grub_normal_do_completion instead of
24974 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
24975 returns non-zero, otherwise return 0.
24976 (grub_partition_iterate): First, probe the partition map. Then,
24977 call ITERATE only for this partition map.
24979 * kern/misc.c (grub_strncmp): Rewritten.
24981 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
24982 returns non-zero. Otherwise return 0.
24984 * include/grub/partition.h (grub_partition_map_iterate): Return
24985 int instead of void.
24987 * include/grub/normal.h (grub_normal_do_completion): New prototype.
24989 * include/grub/misc.h (grub_strncmp): Change the type of N to
24992 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
24995 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
24996 unsigned explicitly before comparing it with I.
24998 * kern/main.c (grub_env_write_root): Add the attribute unused into
25001 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25002 normal/completion.c.
25003 (normal_mod_SOURCES): Likewise.
25004 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
25005 (normal_mod_SOURCES): Likewise.
25007 * normal/command.c (grub_iterate_commands): If ITERATE returns
25008 non-zero, return one immediately.
25010 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
25012 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
25013 * kern/i386/pc/startup.S: Updated Global Descriptor table's
25015 (grub_vbe_get_controller_info): New function.
25016 (grub_vbe_get_mode_info): Likewise.
25017 (grub_vbe_set_mode): Likewise.
25018 (grub_vbe_get_mode): Likewise.
25019 (grub_vbe_set_memory_window): Likewise.
25020 (grub_vbe_get_memory_window): Likewise.
25021 (grub_vbe_set_scanline_length): Likewise.
25022 (grub_vbe_get_scanline_length): Likewise.
25023 (grub_vbe_set_display_start): Likewise.
25024 (grub_vbe_get_display_start): Likewise.
25025 (grub_vbe_set_palette_data): Likewise.
25026 * include/grub/i386/pc/vbe.h: New file.
25028 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25030 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25031 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
25032 * DISTLIST: Likewise.
25033 * kern/ieee1275/of.c: Moved to ...
25034 * kern/ieee1275/ieee1275.c: ... here.
25036 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25038 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
25039 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
25040 Pass 0 as `end' parameter to grub_strtoul().
25042 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25044 * include/grub/powerpc/ieee1275/console.h: Do not include
25045 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
25047 (grub_console_cur_color): Remove i386-specific prototype.
25048 (grub_console_real_putchar): Likewise.
25049 (grub_console_checkkey): Likewise.
25050 (grub_console_getkey): Likewise.
25051 (grub_console_getxy): Likewise.
25052 (grub_console_gotoxy): Likewise.
25053 (grub_console_cls): Likewise.
25054 (grub_console_setcursor): Likewise.
25055 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
25056 Include <grub/machine/console.h>.
25057 * term/ieee1275/ofconsole.c: Likewise.
25059 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
25061 * Makefile.in (LIBLZO): New variable.
25063 * configure.ac: Check for LZO version 2.
25065 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
25066 lzo/lzo1x.h instead of lzo1x.h.
25068 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
25071 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
25072 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
25074 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
25075 copying the data from PARTITION to P.
25077 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25079 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
25080 negative, unload the module.
25082 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
25083 map is "pc_partition_map" but not "pc".
25084 (usage): Fix the description. The options are --boot-image and
25085 --core-image but not --boot-file or --core-file.
25086 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
25087 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
25090 * util/i386/pc/grub-install.in: Do not specify --boot-file or
25091 --core-file. Specify INSTALL_DEVICE as an argument.
25093 * util/console.c: Include config.h.
25094 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
25095 [HAVE_NCURSES_H]: Include ncurses.h.
25096 [HAVE_CURSES_H]: Include curses.h.
25097 [!A_NORMAL] (A_NORMAL): Defined as zero.
25098 [!A_STANDOUT] (A_STANDOUT): Likewise.
25100 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
25102 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
25104 * configure.ac: Check for curses libraries and headers.
25106 * Makefile.in (LIBCURSES): New variable.
25108 * genmk.rb (Script::rule): Set the executable bits.
25110 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
25111 name of the PC partition map is "pc_partition_map" but not "pc".
25113 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25115 * util/i386/pc/grub-install.in (grub_probefs): New variable.
25116 (modules): Likewise.
25117 (usage): Added descriptions for --modules and --grub-probefs.
25118 Handle --modules and --grub-probefs. Save the arguments in MODULES
25119 and GRUB_PROBEFS, respectively.
25120 Auto-detect a filesystem module against GRUBDIR. If the result is
25121 empty and modules are not specified explicitly, abort the
25122 installation. Add the result to MODULES.
25124 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
25125 disk/powerpc/ieee1275/ofdisk.c,
25126 include/grub/powerpc/ieee1275/init.h and
25127 term/powerpc/ieee1275/ofconsole.c.
25128 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
25129 term/ieee1275/ofconsole.c.
25131 * include/grub/powerpc/ieee1275/console.h: Resurrected.
25133 * COPYING: Upgraded to the latest version. Only the address of the
25134 FSF office has changed.
25136 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25138 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25139 kern/ieee1275.c with kern/ieee1275/of.c.
25141 * kern/ieee1275.c: Moved to ...
25142 * kern/ieee1275/of.c: ... here.
25144 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
25146 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
25149 * config.guess: Updated to the latest version from gnulib.
25150 * config.sub: Likewise.
25151 * install.sh: Likewise.
25152 * mkinstalldirs: Likewise.
25154 * include/grub/console.h: Removed. This file is arch-specific. Do
25155 not put this in include/grub.
25157 * include/grub/i386/pc/console.h: Resurrected.
25159 * util/console.c: Include grub/machine/console.h instead of
25161 * util/grub-emu.c: Likewise.
25163 2005-08-04 Marco Gerards <metgerards@student.han.nl>
25165 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
25168 From Vincent Pelletier <subdino2004@yahoo.fr>
25169 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
25170 Redefined to use grub_getwh.
25171 (grub_term): New member named getwh.
25172 (grub_getwh): New prototype.
25173 * kern/term.c (grub_getwh): New function.
25174 * term/i386/pc/console.c (grub_console_getwh): New function.
25175 (grub_console_term): New member `getwh'.
25176 * term/i386/pc/vga.c (grub_vga_getwh): New function.
25177 (grub_vga_term): New member `getwh'.
25178 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
25180 (grub_ofconsole_getw): New function.
25181 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
25182 (grub_ofconsole_term): New field named getwh and new initial
25185 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
25187 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
25188 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
25189 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
25190 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
25191 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
25192 of <grub/machine/ieee1275.h>.
25193 * commands/ieee1275/reboot.c: Likewise.
25194 * boot/powerpc/ieee1275/ieee1275.c: Move ...
25195 * kern/ieee1275.c: ... to here. All users updated. Change all
25196 parameter structs to use new type `grub_ieee1275_cell_t'.
25197 * term/powerpc/ieee1275/ofconsole.c: Move ...
25198 * term/ieee1275/ofconsole.c: ... to here. All users updated.
25199 * disk/powerpc/ieee1275/ofdisk.c: Move ...
25200 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
25201 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
25203 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
25204 Remove unused prototypes. All users updated.
25205 * include/grub/powerpc/ieee1275/console.h: Removed.
25206 * include/grub/powerpc/ieee1275/ieee1275.h: Define
25207 `grub_ieee1275_cell_t'.
25208 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
25209 Cast comparisons with -1 to the correct type.
25210 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
25211 type to match `grub_ieee1275_entry_fn'.
25213 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
25215 * DISTLIST: Added util/i386/pc/grub-probefs.c.
25217 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
25218 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
25220 (grub_probefs_SOURCES): New variable.
25222 * util/i386/pc/grub-probefs.c: New file.
25224 * util/i386/pc/grub-setup.c (main): Call
25225 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
25226 grub_hfs_init and grub_jfs_init to initialize the system. Call
25227 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
25228 grub_pc_partition_map_fini to finish the system.
25230 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
25232 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
25234 (grub_multiboot_load_elf32): Likewise.
25235 (grub_multiboot_is_elf64): Likewise.
25236 (grub_multiboot_load_elf64): Likewise.
25237 (grub_multiboot_load_elf): Likewise.
25238 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
25239 an ELF32 or ELF64 file.
25240 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
25242 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
25243 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
25244 NULL before calling FS->LABEL.
25245 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
25246 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
25247 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
25248 before calling FS->LABEL.
25250 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
25252 * util/i386/pc/grub-install.in (datadir): New variable.
25254 (pkgdatadir): New variable.
25255 (pkglibdir): Removed.
25257 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
25259 * DISTLIST: Added util/i386/pc/grub-install.in.
25261 * util/i386/pc/grub-install.in: New file.
25263 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
25264 (grub_install_SOURCES): Likewise.
25266 * genmk.rb: Added support for scripts.
25267 (Script): New class.
25268 (scripts): New variable.
25270 * Makefile.in (install-local): Install sbin_SCRIPTS by
25272 (uninstall): Remove sbin_SCRIPTS.
25274 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
25275 device, try to get a GRUB device by
25276 grub_util_biosdisk_get_grub_dev.
25279 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
25280 description for --device-map.
25282 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25284 Change the semantics of variable hooks. They now return strings
25285 instead of error values.
25287 * util/i386/pc/grub-setup.c: Include grub/env.h.
25288 (setup): Use grub_device_set_root instead of grub_env_set.
25290 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
25291 grub_env_get instead of grub_device_set_root and
25292 grub_device_get_root, respectively.
25294 * kern/main.c (grub_env_write_root): New function.
25295 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
25296 grub_env_set instead of grub_device_set_root.
25298 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
25300 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
25301 rather than calling ENV->WRITE_HOOK afterwards.
25302 (grub_env_get): Return the result of ENV->READ_HOOK rather than
25303 passing a pointer of a pointer.
25304 (grub_register_variable_hook): Change the types of "read_hook" and
25305 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
25307 Allocate the default empty string on the heap, because this string
25308 may be freed later.
25310 * kern/device.c: Include grub/env.h.
25311 (grub_device_set_root): Removed.
25312 (grub_device_get_root): Likewise.
25313 (grub_device_open): Use grub_env_get instead of
25314 grub_device_get_root.
25316 * include/grub/env.h (grub_env_read_hook_t): New type.
25317 (grub_env_write_hook_t): Likewise.
25318 (grub_env_var): Change the types of "read_hook" and "write_hook"
25319 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
25320 (grub_register_variable_hook): Likewise.
25322 * include/grub/device.h (grub_device_set_root): Removed.
25323 (grub_device_set_root): Likewise.
25325 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
25326 make sure that DIRNAME terminates with '/', so that
25327 grub_fat_find_dir will fail if PATH is not a directory.
25329 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
25331 Use the qualifier auto for print_files and print_files_long.
25332 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
25334 Put a newline only if there is no error.
25335 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
25338 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25340 * kern/partition.c (grub_partition_probe): Initialize PART to
25341 NULL. Otherwise, when no partition map is registered, this returns
25344 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
25346 * partmap/apple.c (apple_partition_map_iterate): Check if POS
25347 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
25350 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
25352 * commands/ls.c (grub_ls_list_disks): Print the filesystem
25353 information on each device, if it does not have partitions. Print
25354 "Device" instead of "Disk", because this function is not specific
25357 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
25358 static to ensure that it is put on the memory rather than a
25361 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25363 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
25364 (grub_cat_init): Likewise.
25365 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
25366 (options): Likewise.
25367 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25368 (grub_configfile_init): Likewise.
25369 * font/manager.c (GRUB_MOD_INIT): Likewise.
25370 * commands/help.c (GRUB_MOD_INIT): Likewise.
25371 (grub_help_init): Likewise.
25372 * normal/command.c (grub_command_init): Likewise.
25373 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
25374 * disk/loopback.c (grub_loop_init): Likewise.
25375 (GRUB_MOD_INIT): Likewise.
25376 * commands/ls.c (grub_ls_init): Likewise.
25377 (GRUB_MOD_INIT): Likewise.
25378 (options): Likewise.
25379 * commands/boot.c (grub_boot_init): Likewise.
25380 (GRUB_MOD_INIT): Likewise.
25381 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
25382 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
25383 (GRUB_MOD_INIT): Likewise.
25384 * commands/cmp.c (grub_cmp_init): Likewise.
25385 (GRUB_MOD_INIT): Likewise.
25387 * normal/arg.c: Use <> instead of "" to include header files.
25388 (SHORT_ARG_HELP): New macro.
25389 (SHORT_ARG_USAGE): Likewise.
25390 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
25391 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
25393 (find_short): Check if C is 'h' or 'u' explicitly.
25394 (grub_arg_show_help): Use space characters instead of tabs. Treat
25395 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
25396 are shown with --help and --usage only if they are not used for
25397 the command itself.
25398 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
25401 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
25402 const into "longarg". Change the type of "shortarg" to int.
25404 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25406 * boot/i386/pc/boot.S (boot_drive_check): New label.
25408 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
25411 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
25412 which do not pass a boot drive correctly. Copied from GRUB Legacy.
25414 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25416 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
25417 When turning off Gate A20, skip the check and return immediately,
25418 because this is not fatal usually.
25420 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25422 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
25423 be 0x7C00 instead of 0x8000.
25425 * boot/i386/pc/pxeboot.S: Rewritten.
25427 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
25429 (gate_a20_check_state): Read a byte from 0x108000. Invert the
25432 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
25434 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
25435 robustness. This routine now supports a BIOS call and System
25436 Control Port A to modify the gate A20.
25438 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25439 Increased to 0x440.
25441 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
25443 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
25444 device path and resulting ihandle.
25445 (grub_ofdisk_close): dprintf the ihandle being closed.
25446 (grub_ofdisk_read): dprintf function parameters.
25447 * kern/mm.c (grub_mm_init_region): Likewise.
25448 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
25449 (grub_linux_boot): dprintf the Linux entry point, initrd address and
25450 size, and boot arguments.
25451 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
25452 before loading into memory.
25453 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
25454 before loading into memory.
25456 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
25458 * kern/mm.c: Added much documentation.
25459 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
25460 8, set to 5 instead of 8.
25462 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
25464 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
25466 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
25467 (grub_mkdevicemap_SOURCES): New variable.
25469 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
25470 lib/device.c of GRUB Legacy.
25472 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
25474 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
25475 instead of PATH is NULL.
25477 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
25479 * commands/cmp.c (BUFFER_SIZE): New macro.
25480 (grub_cmd_cmp): Close the right file at the right time. Compare
25481 only data just read. Don't report files of different size as
25482 identical. Dynamically allocate buffers. Move variable
25483 declarations at the beginning of function.
25485 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
25487 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
25490 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
25492 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
25493 when backspace is pressed at beginning of line.
25495 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
25497 * DISTLIST: Added genfslist.sh.
25499 * normal/main.c (fs_module_list): New variable.
25500 (autoload_fs_module): New function.
25501 (read_fs_list): Likewise.
25502 (grub_normal_execute): Call read_fs_list.
25504 * kern/fs.c (grub_fs_autoload_hook): New variable.
25505 (grub_fs_probe): Added support for auto-loading.
25507 * include/grub/normal.h (struct grub_fs_module_list): New struct.
25508 (grub_fs_module_list_t): New type.
25510 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
25511 (grub_fs_autoload_hook): New prototype.
25513 * genfslist.sh: New file.
25515 * genmk.rb: Added a rule to generate a filesystem list.
25517 2005-06-30 Marco Gerards <metgerards@student.han.nl>
25519 * configure.ac: Fix the test for cross-compiling.
25521 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
25522 define GRUB_UTIL anymore.
25524 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
25525 so this function works on other systems than just big endian.
25526 (load_modules): Likewise.
25527 (add_segments): Likewise.
25529 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
25531 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
25532 contains `l' modifier, get a long from va_arg().
25534 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
25536 * kern/mm.c (grub_free): If the next free block which is being
25537 merged is the first free block, set the first block to the block
25539 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
25541 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25543 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
25544 `grub_ieee1275_chosen'.
25546 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25548 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
25549 (grub_ieee1275_chosen): New variable.
25550 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
25552 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
25553 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
25554 Rename first argument to `phandle' for consistency.
25555 (grub_ieee1275_get_property_length): Likewise.
25556 (grub_ieee1275_next_property): Likewise. Change type of first argument
25557 to grub_ieee1275_phandle_t.
25558 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
25559 Move export next to declaration.
25560 (grub_ieee1275_chosen): New variable.
25561 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
25562 Correct cosmetic typo.
25563 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
25564 `grub_ieee1275_chosen'.
25565 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
25566 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
25567 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
25568 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
25569 `grub_ieee1275_chosen'.
25571 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
25573 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
25575 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
25576 /chosen/bootargs as "variable=value" pairs.
25578 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
25580 * include/grub/misc.h (grub_dprintf): New macro.
25581 (grub_real_dprintf): New prototype.
25582 (grub_strword): Likewise.
25583 (grub_iswordseparator): Likewise.
25584 * kern/misc.c (grub_real_dprintf): New function.
25585 (grub_strword): Likewise.
25586 (grub_iswordseparator): Likewise.
25588 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
25590 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
25591 (roundup): Remove macro.
25592 (grub_ieee1275_flags): Make static.
25593 (grub_ieee1275_realmode): Remove.
25594 (grub_ieee1275_test_flag): New function.
25595 (grub_ieee1275_set_flag): Likewise.
25596 (find_options): Rename to `grub_ieee1275_find_options'; update
25597 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
25598 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
25599 (cmain): New prototype.
25600 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
25601 `grub_ieee1275_flags' directly.
25602 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
25603 machine/biosdisk.h.
25604 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
25605 Don't include grub/machine/init.h.
25606 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
25607 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
25609 (grub_ieee1275_realmode): Likewise.
25610 (grub_ieee1275_flag): New enum.
25611 (grub_ieee1275_test_flag): New prototype.
25612 (grub_ieee1275_set_flag): New prototype.
25613 * include/grub/powerpc/ieee1275/init.h: Remove file.
25614 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
25615 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
25616 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
25617 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
25619 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
25620 `grub_ieee1275_test_flag'.
25621 (grub_ieee1275_encode_devname): Likewise.
25623 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
25625 * include/grub/powerpc/ieee1275/ieee1275.h
25626 (grub_ieee1275_encode_devname): New prototype.
25627 (grub_ieee1275_get_filename): Likewise.
25628 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
25630 (grub_set_prefix): Likewise.
25631 (grub_machine_init): Call grub_set_prefix.
25632 * kern/powerpc/ieee1275/openfw.c: Fix typos.
25633 (grub_parse_type): New enum.
25634 (grub_ieee1275_get_devargs): New function.
25635 (grub_ieee1275_get_devname): Likewise.
25636 (grub_ieee1275_parse_args): Likewise.
25637 (grub_ieee1275_get_filename): Likewise.
25638 (grub_ieee1275_encode_devname): Likewise.
25640 2005-03-30 Marco Gerards <metgerards@student.han.nl>
25642 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
25643 `grub_loader_unset'.
25645 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
25647 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
25648 instead of grub_ieee1275_interpret.
25649 (grub_halt_init): New function.
25650 (grub_halt_fini): Likewise.
25651 (GRUB_MOD_INIT): Correct message grammar.
25652 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
25653 instead of grub_ieee1275_interpret.
25654 (grub_reboot_init): New function.
25655 (grub_reboot_fini): Likewise.
25656 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
25657 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
25658 util/i386/pc/misc.c with commands/ieee1275/halt.c,
25659 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
25660 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
25662 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
25664 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
25666 (grub_halt): Likewise.
25667 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
25668 (cmain): Remove __attribute__((unused)).
25669 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
25670 (grub_heap_len): Likewise.
25671 (grub_machine_fini): New function.
25672 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
25673 (grub_halt): Likewise.
25674 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
25676 * util/powerpc/ieee1275/misc.c: New file.
25678 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
25680 * DISTLIST: New file.
25681 * gendistlist.sh: Likewise.
25683 * Makefile.in (COMMON_DISTFILES): Removed.
25684 (BOOT_DISTFILES): Likewise.
25685 (CONF_DISTFILES): Likewise.
25686 (DISK_DISTFILES): Likewise.
25687 (FS_DISTFILES): Likewise.
25688 (INCLUDE_DISTFILES): Likewise.
25689 (KERN_DISTFILES): Likewise.
25690 (LOADER_DISTFILES): Likewise.
25691 (TERM_DISTFILES): Likewise.
25692 (UTIL_DISTFILES): Likewise.
25693 (DISTFILES): Likewise.
25694 (uninstall): Uninstall files in $(pkgdata_DATA).
25695 (DISTLIST): New target.
25696 (distdir): Use the contents of the file DISTLIST to get a list of
25699 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
25701 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
25702 descriptor. This is ported from GRUB Legacy.
25704 * gencmdlist.sh: Added an extra semicolon to make it work with
25705 old sed versions. Reported by Robert Bihlmeyer
25706 <robbe@orcus.priv.at>.
25708 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
25710 Automatic loading of commands is supported.
25712 * normal/main.c (read_command_list): New function.
25713 (grub_normal_execute): Call read_command_list.
25715 * normal/command.c (grub_register_command): Return zero or CMD.
25716 Allocate CMD->NAME from the heap.
25717 Initialize CMD->MODULE_NAME to zero.
25718 Find the same name as well. If the same command is found and it is
25719 a dummy command, overwrite members. If it is not a dummy command,
25721 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
25722 (grub_command_find): If a dummy command is found, load a module
25723 and retry to find a command only once.
25725 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
25726 make sure that each command is loaded.
25728 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
25730 (struct grub_command): Remove const from the member `name'.
25731 Add a new member `module_name'.
25732 (grub_register_command): Return grub_command_t.
25734 * commands/help.c (grub_cmd_help): Call grub_command_find to make
25735 sure that each command is loaded.
25737 * genmk.rb (PModule::rule): Specify a module name without the
25738 suffix ".mod" to gencmdlist.sh.
25740 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25742 * gencmdlist.sh: New file.
25744 * genmk.rb (PModule::rule): Generate a rule for a command list.
25746 Generate command.lst from $(COMMANDFILES).
25748 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
25749 (DATA): Added $(pkgdata_DATA).
25750 (install-local): Install files in $(pkgdata_DATA).
25752 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25754 * term/i386/pc/vga.c (debug_command): Removed.
25755 (GRUB_MOD_INIT): Do not register the command "debug".
25757 From Hollis Blanchard:
25758 * commands/configfile.c: New file.
25759 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25760 commands/configfile.c.
25761 (pkgdata_MODULES): Added configfile.mod.
25762 (configfile_mod_SOURCES): New variable.
25763 (configfile_mod_CFLAGS): Likewise.
25764 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25765 commands/configfile.c.
25766 (pkgdata_MODULES): Added configfile.mod.
25767 (configfile_mod_SOURCES): New variable.
25768 (configfile_mod_CFLAGS): Likewise.
25769 * util/grub-emu.c (main): Call grub_configfile_init and
25770 grub_configfile_fini.
25771 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
25773 [GRUB_UTIL] (grub_configfile_fini): Likewise.
25775 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
25777 * normal/arg.c (grub_arg_show_help): Do not show the bug report
25780 * commands/help.c (grub_cmd_help): Do not print newlines after
25781 the last command in print_command_help.
25783 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
25785 * commands/default.h: New file.
25786 * commands/timeout.h: Likewise.
25787 * normal/context.c: Likewise.
25789 * util/misc.c: Do not include sys/times.h.
25790 Include sys/time.h and grub/machine/time.h.
25791 (grub_get_rtc): Rewritten with gettimeofday.
25793 * util/grub-emu.c (main): Call grub_default_init and
25794 grub_timeout_init before grub_normal_init, and call
25795 grub_timeout_fini and grub_default_fini after grub_main.
25797 * util/console.c (grub_ncurses_checkkey): Return the read
25800 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
25803 * normal/main.c (read_config_file): Push MENU. If this fails,
25804 print an error and wait for a user input.
25805 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
25806 If a menu is empty or an error occurs, pop MENU.
25807 (grub_normal_execute): Pop and free MENU after grub_menu_run
25810 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
25812 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
25814 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
25816 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
25818 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
25821 * include/grub/normal.h (struct grub_menu_list): New struct.
25822 (grub_menu_list_t): New type.
25823 (struct grub_context): New struct.
25824 (grub_context_t): New type.
25825 (grub_register_command): Got rid of EXPORT_FUNC.
25826 (grub_unregister_command): Likewise.
25827 (grub_context_get): New prototype.
25828 (grub_context_get_current_menu): Likewise.
25829 (grub_context_push_menu): Likewise.
25830 (grub_context_pop_menu): Likewise.
25831 [GRUB_UTIL] (grub_default_init): Likewise.
25832 [GRUB_UTIL] (grub_default_fini): Likewise.
25833 [GRUB_UTIL] (grub_timeout_init): Likewise.
25834 [GRUB_UTIL] (grub_timeout_fini): Likewise.
25836 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
25837 commands/timeout.c and normal/context.c.
25838 (pkgdata_MODULES): Added default.mod and timeout.mod.
25839 (normal_mod_SOURCES): Added normal/context.c.
25840 (default_mod_SOURCES): New variable.
25841 (default_mod_CFLAGS): Likewise.
25842 (timeout_mod_SOURCES): Likewise.
25843 (timeout_mod_CFLAGS): Likewise.
25844 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
25846 (pkgdata_MODULES): Added default.mod and timeout.mod.
25847 (normal_mod_SOURCES): Added normal/context.c.
25848 (default_mod_SOURCES): New variable.
25849 (default_mod_CFLAGS): Likewise.
25850 (timeout_mod_SOURCES): Likewise.
25851 (timeout_mod_CFLAGS): Likewise.
25853 * Makefile.in (all-local): Added $(MKFILES).
25855 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
25857 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
25858 (grub_emu_SOURCES): Likewise.
25859 (pkgdata_MODULES): Add `sun.mod'.
25860 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
25861 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25863 (pkgdata_MODULES): Add `sun.mod'.
25864 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
25865 * include/grub/partition.h (grub_sun_partition_map_init): New
25867 (grub_sun_partition_map_fini): Likewise.
25868 * partmap/sun.c: New file.
25869 * util/grub-emu.c (main): Initialize and de-initialize the sun
25870 partitionmap support.
25872 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
25874 This implements an Emacs-like menu entry editor.
25876 * normal/menu_entry.c: New file.
25878 * util/console.c (grub_ncurses_putchar): Translate some Unicode
25879 characters to ASCII.
25880 (saved_char): New variable.
25881 (grub_ncurses_checkkey): Rewritten completely.
25882 (grub_ncurses_getkey): Likewise.
25883 (grub_ncurses_init): Call raw instead of cbreak.
25885 * normal/menu.c (print_entry): Do not put a space.
25886 (init_page): Renamed to ...
25887 (grub_menu_init_page): ... this. All callers changed.
25888 (edit_menu_entry): Removed.
25889 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
25891 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
25893 * kern/misc.c (grub_vprintf): Call grub_refresh.
25895 * normal/menu.c (DISP_LEFT): Renamed to ...
25896 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
25897 * normal/menu.c (DISP_UP): Renamed to ...
25898 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
25899 * normal/menu.c (DISP_RIGHT): Renamed to ...
25900 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
25901 * normal/menu.c (DISP_DOWN): Renamed to ...
25902 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
25903 * normal/menu.c (DISP_HLINE): Renamed to ...
25904 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
25905 * normal/menu.c (DISP_VLINE): Renamed to ...
25906 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
25907 * normal/menu.c (DISP_UL): Renamed to ...
25908 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
25909 * normal/menu.c (DISP_UR): Renamed to ...
25910 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
25911 * normal/menu.c (DISP_LL): Renamed to ...
25912 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
25913 * normal/menu.c (DISP_LR): Renamed to ...
25914 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
25915 * normal/menu.c (TERM_WIDTH): Renamed to ...
25916 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
25917 * normal/menu.c (TERM_HEIGHT): Renamed to ...
25918 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
25919 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
25920 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
25921 * normal/menu.c (TERM_MARGIN): Renamed to ...
25922 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
25923 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
25924 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
25925 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
25926 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
25927 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
25928 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
25929 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
25930 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
25931 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
25932 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
25933 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
25934 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
25935 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
25936 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
25937 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
25938 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
25939 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
25940 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
25941 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
25942 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
25943 All callers changed.
25945 * include/grub/normal.h: New prototype.
25947 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25948 normal/menu_entry.c.
25949 (normal_mod_SOURCES): Likewise.
25950 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25951 (normal_mod_SOURCES): Likewise.
25953 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
25955 * include/grub/normal.h (grub_halt_init): New prototype.
25956 (grub_halt_fini): Likewise.
25957 (grub_reboot_init): Likewise.
25958 (grub_reboot_fini): Likewise.
25960 * util/grub-emu.c: Include signal.h.
25961 (main_env): New global variable.
25962 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
25964 (grub_machine_fini): New function.
25965 (main): Call grub_halt_init and grub_reboot_init before
25966 grub_main, and grub_reboot_fini and grub_halt_fini after it.
25967 Call setjmp with MAIN_ENV to go back afterwards.
25968 Call grub_machine_fini right before return.
25970 * include/grub/util/misc.h: Include setjmp.h.
25971 (main_env): New prototype.
25973 * include/grub/kernel.h (grub_machine_fini): New prototype.
25974 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
25975 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
25977 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
25978 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
25979 * term/i386/pc/console.c (grub_console_fini): Likewise.
25981 * util/i386/pc/misc.c: New file.
25983 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25984 util/i386/pc/misc.c, commands/i386/pc/halt.c and
25985 commands/i386/pc/reboot.c.
25987 2005-02-14 Guillem Jover <guillem@hadrons.org>
25989 * include/grub/dl.h (grub_dl_check_header): New prototype.
25990 (grub_arch_dl_check_header): Change return type to grub_err_t,
25991 remove size parameter and export function. Update all callers.
25992 * kern/dl.c (grub_dl_check_header): New function.
25993 (grub_dl_load_core): Use `grub_dl_check_header' instead of
25994 `grub_arch_dl_check_header'. Check ELF type. Check if sections
25995 are inside the core.
25996 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
25997 independent ELF header checks.
25998 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
25999 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
26000 `grub_dl_check_header' instead of explicit checks. Check for the
26002 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
26003 `grub_dl_check_header' instead of explicit checks. Remove arch
26004 specific ELF header checks.
26006 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
26009 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
26011 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
26012 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
26014 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
26016 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
26017 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
26018 (part_map_iterate): Clear `grub_errno' and return 0 if
26019 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
26020 * partmap/amiga.c (amiga_partition_map_iterate): Return
26021 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
26022 * partmap/apple.c (apple_partition_map_iterate): Likewise.
26024 2005-02-01 Guillem Jover <guillem@hadrons.org>
26026 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
26029 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26031 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
26033 (grub_rescue_cmd_linux): New prototype.
26034 (grub_rescue_cmd_initrd): Likewise.
26035 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
26037 (grub_linux_release_mem): Release the memory for the initrd.
26038 (grub_load_linux): Renamed from this...
26039 (grub_rescue_cmd_linux): ...To this. Changed all callers.
26040 Changed `entry' not to be static. Loop over memory regions to
26041 find another one when the default fails.
26042 (grub_rescue_cmd_initrd): New function.
26043 (grub_linux_init): Remove function.
26044 (grub_linux_fini): Likewise.
26045 (GRUB_MOD_INIT): Register `initrd'.
26046 (GRUB_MOD_FINI): Unregister `initrd'.
26047 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
26049 (grub_linux_normal_fini): Likewise.
26050 (GRUB_MOD_INIT): Register `initrd'.
26051 (GRUB_MOD_FINI): Unregister `initrd'.
26053 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26055 * commands/help.c: New file.
26056 * normal/arg.c (show_help): Renamed to...
26057 (grub_arg_show_help): ... this.
26058 * commands/i386/pc/halt.c: New file.
26059 * commands/i386/pc/reboot.c: Likewise.
26060 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
26061 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
26062 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
26063 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
26065 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26067 (pkgdata_MODULES): Add `help.mod'.
26068 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
26069 * grub/i386/pc/init.h (grub_reboot): New prototype.
26070 (grub_halt): Likewise.
26071 * include/grub/normal.h (grub_arg_show_help): New prototype.
26072 (grub_help_init): Likewise.
26073 (grub_help_fini): Likewise.
26074 * util/grub-emu.c (main): Initialize and deinitialize the help
26077 * normal/cmdline.c (grub_cmdline_get): Doc fix.
26079 * normal/command.c (grub_command_init): Fixed the description of
26080 the `set' and `unset' commands.
26082 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26084 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
26086 * commands/ieee1275/halt.c: New file.
26087 * commands/ieee1275/reboot.c: Likewise.
26088 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
26089 `__attribute__ ((unused))'. Some GCS related fixed.
26090 (grub_suspend_init) [GRUB_UTIL]: Function removed.
26091 (grub_suspend_fini): Likewise.
26092 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
26094 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
26095 (halt_mod_CFLAGS): New variables.
26096 * include/grub/powerpc/ieee1275/ieee1275.h
26097 (grub_ieee1275_interpret): New prototype.
26099 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
26101 * include/grub/misc.h (memmove): New prototype.
26102 (memcpy): Likewise.
26104 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
26106 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
26107 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
26109 2005-01-22 Marco Gerards <metgerards@student.han.nl>
26111 * kern/misc.c (grub_strndup): Function rewritten.
26113 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
26115 * normal/menu.c (TERM_WIDTH): Macro redefined.
26116 (TERM_TOP_BORDER_Y): Likewise.
26117 (draw_border): Replaced while-loop by a for-loop. Make the number
26118 of lines consistent with the number of lines displayed in
26119 print_entries. Added a margin below the rectangle.
26120 (print_entry): Make the entry fit in the rectangle.
26121 (print_entries): Display the scroll arrows next to the right
26124 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26126 * fs/minix.c (grub_minix_find_file): Reserve more space for
26127 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
26128 `grub_strncpy' to copy `path' into it.
26130 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26132 Add the loopback device, a device via which files can be accessed
26135 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
26136 (pkgdata_MODULES): Add loopback.mod.
26137 (loopback_mod_SOURCES): New variable.
26138 (loopback_mod_CFLAGS): Likewise.
26139 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26141 (pkgdata_MODULES): Add loopback.mod.
26142 (loopback_mod_SOURCES): New variable.
26143 (loopback_mod_CFLAGS): Likewise.
26144 * disk/loopback.c: new file.
26145 * include/grub/normal.h (grub_loop_init): New prototype.
26146 (grub_loop_fini): New prototype.
26147 * util/grub-emu.c (main): Initialize and de-initialize loopback
26149 * include/grub/disk.h (grub_disk_dev_id): Add
26150 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
26152 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
26154 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
26156 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
26157 (suspend_mod_SOURCES): New variable.
26158 (suspend_mod_CFLAGS): Likewise.
26159 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
26161 * commands/ieee1275/suspend.c: New file.
26163 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
26165 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
26166 ((unused))' to `__attribute__ ((used))'.
26167 (GRUB_MOD_FINI): Likewise.
26168 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
26169 * genmk.rb (PModule): Assign space to common symbols when linking
26172 2005-01-20 Marco Gerards <metgerards@student.han.nl>
26174 * include/grub/mm.h (grub_mm_init_region): Change the type of the
26175 `unsigned' arguments to `grub_size_t'.
26176 (grub_malloc): Likewise.
26177 (grub_realloc): Likewise.
26178 (grub_memalign): Likewise.
26179 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
26180 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26181 * util/misc.c (grub_malloc): Likewise.
26182 (grub_realloc): Likewise.
26183 * kern/mm.c (get_header_from_pointer): Change the casts to
26184 `unsigned' into a cast to `grub_size_t'.
26186 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
26187 point to `currnode' when `currnode' is changed.
26189 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
26190 Schottelius <nico-linux@schottelius.org>.
26192 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
26194 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
26195 (note_path): Remove variable.
26196 (GRUB_IEEE1275_NOTE_NAME): New macro.
26197 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
26198 (grub_ieee1275_note_hdr): New structure.
26199 (grub_ieee1275_note_desc): Likewise.
26200 (grub_ieee1275_note): Likewise.
26201 (load_note): Remove `dir' argument. All callers updated. Remove
26202 `note_img' and `path'. Do not load a file from `note_path'.
26203 Initialize a struct grub_ieee1275_note and write that to `out'.
26204 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
26206 2005-01-05 Marco Gerards <metgerards@student.han.nl>
26208 * util/misc.c (grub_util_read_image): Revert last change. It
26209 called `grub_util_read_at', which seeks from the beginning of the
26212 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
26214 * TODO: Add note about endianness in grub-mkimage.
26215 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
26217 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
26218 (grub_mkimage_SOURCES): New target.
26219 * include/grub/kernel.h (grub_start_addr): Remove variable.
26220 (grub_end_addr): Likewise.
26221 (grub_total_module_size): Likewise.
26222 (grub_kernel_image_size): Likewise.
26223 (GRUB_MODULE_MAGIC): New constant.
26224 (grub_module_info): New structure.
26225 (grub_arch_modules_addr): New prototype.
26226 (grub_get_end_addr): Remove prototype.
26227 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
26228 * include/grub/powerpc/ieee1275/kernel.h: New file.
26229 * include/grub/util/misc.h (grub_util_get_fp_size): New
26231 (grub_util_read_at): Likewise.
26232 (grub_util_write_image_at): Likewise.
26233 * kern/main.c (grub_get_end_addr): Remove function.
26234 (grub_load_modules): Call grub_arch_modules_addr instead of using
26235 grub_end_addr. Look for a grub_module_info struct in memory. Use
26236 the grub_module_info fields instead of calling grub_get_end_addr
26237 as loop conditions. Move grub_add_unused_region code here.
26238 (grub_add_unused_region): Remove function.
26239 * kern/i386/pc/init.c: Include grub/cache.h.
26240 (grub_machine_init): Remove call to grub_get_end_addr. Remove
26241 one call to add_mem_region.
26242 (grub_arch_modules_addr): New function.
26243 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
26244 (grub_total_module_size): Likewise.
26245 Include grub/machine/kernel.h.
26246 (grub_arch_modules_addr): New function.
26247 * util/grub-emu.c (grub_end_addr): Remove variable.
26248 (grub_total_module_size): Likewise.
26249 (grub_arch_modules_addr): New function.
26250 * util/misc.c: Include unistd.h.
26251 (grub_util_get_fp_size): New function.
26252 (grub_util_read_at): Likewise.
26253 (grub_util_write_image_at): Likewise.
26254 (grub_util_read_image): Call grub_util_read_at.
26255 (grub_util_write_image): Call grub_util_write_image_at.
26256 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
26257 additional memory in kernel_img for a struct grub_module_info.
26258 Fill in that grub_module_info.
26259 * util/powerpc/ieee1275/grub-mkimage.c: New file.
26261 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26263 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
26265 * include/grub/powerpc/ieee1275/ieee1275.h
26266 (grub_ieee1275_milliseconds): New prototype.
26267 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
26269 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
26270 grub_ieee1275_milliseconds.
26272 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26274 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
26276 (find_options): New function.
26277 (cmain): Call find_options.
26278 * include/grub/powerpc/ieee1275/ieee1275.h
26279 (grub_ieee1275_realmode): New extern variable.
26280 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
26281 grub_map if grub_ieee1275_realmode is false.
26283 2004-12-29 Marco Gerards <metgerards@student.han.nl>
26285 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
26286 lines are inserted and make it work like readline. Reported by
26287 Vincent Pelletier <subdino2004@yahoo.fr>.
26289 2004-12-28 Marco Gerards <metgerards@student.han.nl>
26291 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
26293 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
26294 `kern/powerpc/cache.S'.
26296 2004-12-27 Marco Gerards <metgerards@student.han.nl>
26298 * genmk.rb: Handle the `Program' class in the main loop. Written
26299 by Johan Rydberg <jrydberg@gnu.org>.
26300 (Program): New class.
26301 (programs): New variable.
26302 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
26303 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
26304 instead of "grub/kernel.h". Include <grub/machine/init.h>.
26305 (help_arch): Function removed.
26306 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
26307 `powerpc/libgcc.h' and `loader.h'.
26308 (pkgdata_PROGRAMS): New variable.
26309 (sbin_UTILITIES): Variable removed.
26310 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
26311 (grubof_SOURCES): Variable re-defined so it only includes the
26312 core functionality.
26313 (grubof_CFLAGS): Remove `-DGRUBOF'.
26314 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
26315 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
26316 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
26317 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
26318 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
26319 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
26320 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
26321 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
26322 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
26323 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
26324 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
26325 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
26326 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
26327 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
26328 (pc_mod_CFLAGS): New variables.
26329 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
26330 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
26331 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
26332 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
26334 * include/grub/i386/pc/init.h (grub_os_area_addr)
26335 (rub_os_area_size): ... to here.
26336 * include/grub/powerpc/ieee1275/ieee1275.h
26337 (grub_ieee1275_entry_fn): Export symbol.
26338 * include/grub/powerpc/ieee1275/init.h: New file.
26339 * include/grub/powerpc/libgcc.h: Likewise.
26340 * include/grub/cache.h: Likewise.
26341 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
26342 <hollis@penguinppc.org>.
26343 * kern/dl.c: Include <grub/cache.h>.
26344 (grub_dl_flush_cache): New function.
26345 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
26347 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
26348 (grub_console_init): Removed prototypes.
26349 (grub_machine_init): Don't initialize the modules anymore.
26350 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
26352 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
26353 Macro undef removed.
26354 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
26355 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
26356 relocation `R_PPC_REL32'. Return an error when the relocation is
26358 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
26359 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
26360 * util/misc.c (grub_arch_sync_caches): Likewise.
26362 2004-12-19 Marco Gerards <metgerards@student.han.nl>
26364 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
26365 `symlist.c', add `grubof_symlist.c'.
26366 (symlist.c): Variable removed.
26367 (grubof_HEADERS): Variable added.
26368 (grubof_symlist.c): New target.
26369 (kernel_syms.lst): Use `grubof_HEADERS' instead of
26370 `kernel_img_HEADERS'.
26371 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
26372 * kern/powerpc/dl.c: New file.
26373 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
26375 (grub_arch_dl_relocate_symbols): Likewise.
26376 (grub_register_exported_symbols): Likewise.
26378 2004-12-13 Marco Gerards <metgerards@student.han.nl>
26380 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
26381 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
26382 to fail instead. Reported by Vincent Pelletier
26383 <subdino2004@yahoo.fr>.
26385 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
26386 it is not allocated. Reported by Vincent Pelletier
26387 <subdino2004@yahoo.fr>.
26389 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
26390 output so the output looks better.
26392 2004-12-04 Marco Gerards <metgerards@student.han.nl>
26394 Modulize the partition map support and add support for the amiga
26397 * commands/ls.c: Include <grub/partition.h> instead of
26398 <grub/machine/partition.h>.
26399 * kern/disk.c: Likewise.
26400 * kern/rescue.c: Likewise.
26401 * loader/i386/pc/chainloader.c: Likewise.
26402 * normal/cmdline.c: Likewise.
26403 * kern/powerpc/ieee1275/init.c: Likewise.
26404 (grub_machine_init): Call `grub_pc_partition_map_init',
26405 `grub_amiga_partition_map_init' and
26406 `grub_apple_partition_map_init'.
26407 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
26408 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
26409 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
26410 `partition.h' and `pc_partition.h'.
26411 (grub_setup_SOURCES): Remove
26412 `disk/i386/pc/partition.c'. Add `kern/partition.c',
26413 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26414 (grub_emu_SOURCES): Likewise.
26415 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
26416 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
26417 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
26418 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26419 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
26420 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26421 (grubof_SOURCES): Likewise.
26422 * disk/i386/pc/partition.c: File removed.
26423 * disk/powerpc/ieee1275/partition.c: Likewise.
26424 * include/grub/powerpc/ieee1275/partition.h: Likewise.
26425 * include/grub/i386/pc/partition.h: Likewise.
26426 * kern/partition.c: New file.
26427 * partmap/amiga.c: Likewise.
26428 * partmap/apple.c: Likewise.
26429 * partmap/pc.c: Likewise.
26430 * include/grub/partition.h: Likewise..
26431 * include/grub/pc_partition.h: Likewise.
26432 * util/grub-emu.c: Include <grub/partition.h> instead of
26433 <grub/machine/partition.h>.
26434 (main): Call `grub_pc_partition_map_init',
26435 `grub_amiga_partition_map_init' and
26436 `grub_apple_partition_map_init' and deinitialize afterwards.
26437 * util/i386/pc/biosdisk.c: Include `#include
26438 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26439 `<grub/machine/partition.h>'.
26440 * util/i386/pc/grub-setup.c: Likewise.
26441 * util/i386/pc/biosdisk.c: Likewise.
26442 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
26443 partition information in case of a PC partition.
26444 * util/i386/pc/grub-setup.c: Include `#include
26445 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26446 `<grub/machine/partition.h>'.
26447 (setup): Only access the PC specific partition information in case
26450 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
26452 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
26453 (grub_longjmp): Likewise.
26454 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
26456 * normal/powerpc/setjmp.S: New file.
26457 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
26458 `normal/powerpc/setjmp.S'.
26459 (grubof_CFLAGS): Add `-DGRUBOF'.
26460 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
26461 [GRUB_UTIL && !GRUBOF].
26463 2004-11-16 Marco Gerards <metgerards@student.han.nl>
26465 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
26466 property named `name'. Correctly handle the error returned by
26467 `grub_ieee1275_finddevice' if a device can not be opened.
26469 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
26471 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
26472 `actual' for negativity.
26473 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26476 2004-11-01 Marco Gerards <metgerards@student.han.nl>
26478 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
26479 (PAGE_OFFSET): New macro.
26480 (CRTC_ADDR_PORT): Likewise.
26481 (CRTC_DATA_PORT): Likewise.
26482 (START_ADDR_HIGH_REGISTER): Likewise.
26483 (START_ADDR_LOW_REGISTER): Likewise.
26484 (GRAPHICS_ADDR_PORT): Likewise.
26485 (GRAPHICS_DATA_PORT): Likewise.
26486 (READ_MAP_REGISTER): Likewise.
26487 (INPUT_STATUS1_REGISTER): Likewise.
26488 (INPUT_STATUS1_VERTR_BIT): Likewise.
26489 (page): New variable.
26490 (wait_vretrace): New function.
26491 (set_read_map): Likewise.
26492 (set_start_address): Likewise.
26493 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
26495 (check_vga_mem): Take the page into account.
26496 (write_char): Likewise.
26497 (write_cursor): Likewise.
26498 (scroll_up): Likewise. Copy the page to the page that is not
26499 shown and switch between both pages.
26500 (grub_vga_putchar): Fix off by one error.
26501 (grub_vga_cls): Wait for the vertical retrace. Take the page into
26504 2004-11-01 Marco Gerards <metgerards@student.han.nl>
26506 Add support for iso9660 (including rockridge).
26508 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26509 (iso9660_mod_SOURCES): New variable.
26510 (iso9660_mod_CFLAGS): Likewise.
26511 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26512 * include/grub/fs.h (grub_iso9660_init): New prototype.
26513 * util/grub-emu.c (main): Call `grub_iso9660_init'.
26514 * fs/iso9660.c: New file.
26516 * include/grub/misc.h (grub_strncat): New prototype.
26517 * kern/misc.c (grub_strncat): New function.
26519 * fs/hfs.c (grub_hfs_mount): Translate the error
26520 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
26521 * fs/jfs.c (grub_jfs_mount): Likewise.
26522 * fs/ufs.c (grub_ufs_mount): Likewise.
26524 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
26526 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
26527 which initialized BAT registers.
26528 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
26529 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26531 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
26532 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26534 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
26535 (grub_mapclaim): Likewise.
26536 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
26537 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
26540 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
26542 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
26543 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
26544 -ffreestanding and -msoft-float.
26546 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
26548 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
26549 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
26550 set in grub_ieee1275_flags.
26552 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
26554 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
26556 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
26557 grub_console_init first.
26558 Change the memory range used for grub_ieee1275_claim and
26559 grub_mm_init_region.
26560 Print an error message if the claim fails.
26561 Include <grub/misc.h>.
26563 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
26565 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
26566 Call grub_children_iterate for device nodes of type `scsi',
26568 (grub_ofdisk_open): Remove manual device alias resolution.
26569 Fix memory leak when device cannot be opened.
26570 * include/grub/powerpc/ieee1275/ieee1275.h
26571 (grub_children_iterate): New prototype.
26572 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
26574 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26575 Return -1 if args.size was -1.
26577 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26579 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
26580 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
26581 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
26582 Open Firmware's memory for it; claim memory from _start to _end.
26583 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
26584 (_end): New extern.
26585 (_start): Zero BSS from __bss_start to _end.
26586 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
26588 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
26590 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26592 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
26593 -1 if args.base was -1.
26595 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
26597 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
26598 escape sequence instead of a literal ^L. Also call
26599 grub_ofconsole_gotoxy.
26601 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
26603 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
26604 void * arguments to grub_addr_t. All callers updated. Also make
26605 the `result' argument optional.
26606 (grub_ieee1275_release): change void * arguments to grub_addr_t.
26607 All callers updated.
26609 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
26611 * commands/ls.c (grub_ls_list_files): Use the string following the
26612 initial ')', if present, as the filesystem path.
26613 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
26615 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
26617 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
26619 Make the source code of the menu interface more readable.
26621 * normal/menu.c: Include grub/mm.h.
26622 (TERM_WIDTH): New macro.
26623 (TERM_HEIGHT): Likewise.
26624 (TERM_INFO_HEIGHT): Likewise.
26625 (TERM_MARGIN): Likewise.
26626 (TERM_SCROLL_WIDTH): Likewise.
26627 (TERM_TOP_BORDER_Y): Likewise.
26628 (TERM_LEFT_BORDER_X): Likewise.
26629 (TERM_BORDER_WIDTH): Likewise.
26630 (TERM_MESSAGE_HEIGHT): Likewise.
26631 (TERM_BORDER_HEIGHT): Likewise.
26632 (TERM_NUM_ENTRIES): Likewise.
26633 (TERM_FIRST_ENTRY_Y): Likewise.
26634 (TERM_ENTRY_WIDTH): Likewise.
26635 (TERM_CURSOR_X): Likewise.
26636 (draw_border): Use macros instead of magic numbers.
26637 (print_entry): Likewise.
26638 (print_entries): Likewise.
26639 (run_menu): Likewise. Also, handle the key 'e'.
26640 (run_menu_entry): Ignore empty command lines.
26641 (print_message): Added a new argument EDIT. If EDIT is true,
26642 print a different message.
26643 (init_page): Likewise.
26644 (edit_menu_entry): New function. Not implemented yet.
26646 2004-09-17 Marco Gerards <metgerards@student.han.nl>
26648 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
26649 can be loaded from normal mode.
26651 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
26653 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
26654 (multiboot_mod_CFLAGS): New variables.
26655 * loader/i386/pc/linux_normal.c: New file.
26656 * loader/i386/pc/multiboot_normal.c: Likewise.
26658 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
26659 attribute `unused'.
26661 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
26662 `fdiro' to read the mode information from instead of `diro'.
26664 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
26665 looking up a symlink.
26667 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
26669 * normal/command.c (grub_command_execute): Don't parse the
26670 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
26671 flags of the command.
26673 * normal/menu.c (grub_menu_run): Fix typo.
26675 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
26677 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
26679 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
26680 `y + 1' instead of `y - 1'.
26682 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
26684 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
26686 From Hollis Blanchard <hollis@penguinppc.org>:
26687 * kern/misc.c (memmove): New alias for grub_memmove.
26688 (memcmp): New alias for grub_memcmp.
26689 (memset): New alias for grub_memset.
26690 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26691 Change "int handle" to "grub_ieee1275_phandle_t handle".
26692 * include/grub/powerpc/ieee1275/ieee1275.h
26693 (grub_ieee1275_get_property): Likewise.
26695 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
26697 Added normal mode command `chainloader' as module chain.mod, which
26698 depends on normal.mod and _chain.mod.
26700 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
26701 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
26702 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
26704 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
26705 but arguments parsing moved to ...
26706 (grub_chainloader_cmd): ... here. New function.
26707 * include/grub/i386/pc/chainloader.h: New file.
26708 * loader/i386/pc/chainloader_normal.c: Likewise.
26710 2004-09-11 Marco Gerards <metgerards@student.han.nl>
26712 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
26713 (grub_mkimage_LDFLAGS): Likewise.
26714 (grub_emu_SOURCES): Likewise.
26715 (kernel_img_HEADERS): Added fshelp.h.
26716 * fs/ext2.c: Include <grub/fshelp.h>.
26717 (FILETYPE_REG): New macro.
26718 (FILETYPE_INO_REG): Likewise.
26719 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
26721 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
26723 (grub_fshelp_node): New struct.
26724 (grub_ext2_data): Added member `diropen'. Changed member `inode'
26726 (grub_ext2_get_file_block): Removed function.
26727 (grub_ext2_read_block): New function.
26728 (grub_ext2_read_file): Replaced parameter `data' by `node'.
26729 This function was written.
26730 (grub_ext2_mount): Read the root inode. Create a diropen struct.
26731 (grub_ext2_find_file): Removed function.
26732 (grub_ext2_read_symlink): New function.
26733 (grub_ext2_iterate_dir): Likewise.
26734 (grub_ext2_open): Rewritten.
26735 (grub_ext2_dir): Rewritten.
26736 * include/grub/fshelp.h: New file.
26737 * fs/fshelp.c: Likewise.
26739 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
26741 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
26742 (print_message): Add a missing newline.
26743 (run_menu): Added timeout support.
26744 (run_menu_entry): New local function.
26745 (grub_menu_run): Added support for booting.
26747 * kern/loader.c (grub_loader_is_loaded): New function.
26749 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
26750 (grub_get_rtc): Exported.
26752 * include/grub/i386/pc/time.h: Include grub/symbol.h.
26753 (grub_get_rtc): Exported.
26755 * include/grub/normal.h (struct grub_command_list): Remove
26756 constant from the member `command'.
26758 * include/grub/loader.h (grub_loader_is_loaded): Declared.
26760 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
26762 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
26764 2004-08-28 Marco Gerards <metgerards@student.han.nl>
26766 Add support for the JFS filesystem.
26768 * fs/jfs.c: New file.
26769 * include/grub/fs.h (grub_jfs_init): New prototype.
26770 (grub_jfs_fini): New prototype.
26771 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
26772 (grub_emu_SOURCES): Likewise.
26773 (pkgdata_MODULES): Add jfs.mod.
26774 (jfs_mod_SOURCES): New variable.
26775 (jfs_mod_CFLAGS): Likewise.
26776 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
26777 (grubof_SOURCES): Likewise.
26778 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
26780 * fs/fat.c (grub_fat_find_dir): Convert the filename little
26781 endian to the host endian.
26782 (grub_fat_utf16_to_utf8): Move function from there...
26783 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
26784 the endianness of the source string anymore.
26785 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
26787 2004-08-24 Marco Gerards <metgerards@student.han.nl>
26789 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
26790 (grub_boot_fini) [GRUB_UTIL]: Likewise.
26791 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
26792 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
26794 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
26795 (grub_hfs_iterate_dir): Make the function static. Add prototypes
26796 for `node_found' and `it_dir'.
26797 (grub_hfs_dir): Add prototype for `dir_hook'.
26799 * fs/minix.c (grub_minix_get_file_block): Add prototype for
26800 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
26801 and `indir32' to silence a gcc warning.
26803 * include/grub/fs.h (grub_hfs_init): New prototype.
26804 (grub_hfs_fini): Likewise.
26807 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
26809 Each disk device has its own id now. This is useful to make use
26810 of multiple disk devices.
26812 * include/grub/disk.h (grub_disk_dev_id): New enum.
26813 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
26814 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
26816 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
26817 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
26819 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
26820 GRUB_DISK_DEVICE_OFDISK_ID as an id.
26822 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
26823 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
26825 * include/grub/disk.h (struct grub_disk_dev): Added a new member
26826 "id" which is used by the cache manager.
26828 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
26831 2004-08-18 Marco Gerards <metgerards@student.han.nl>
26833 * fs/hfs.c: New file.
26834 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
26835 (grub_emu_SOURCES): Likewise.
26836 (pkgdata_MODULES): Add hfs.mod.
26837 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
26838 (grubof_SOURCES): Likewise.
26839 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
26841 * include/grub/misc.h (grub_strncasecmp): Add prototype.
26842 * kern/misc.c (grub_strncasecmp): Add function.
26844 2004-08-14 Marco Gerards <metgerards@student.han.nl>
26846 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
26849 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
26850 (grub_ext2_dir): In case the directory entry type is unknown, read
26853 2004-08-02 Peter Bruin <pjbruin@dds.nl>
26855 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
26856 grub_load_linux instead of grub_rescue_cmd_linux as second
26857 argument of grub_rescue_register_command.
26859 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
26861 2004-07-27 Marco Gerards <metgerards@student.han.nl>
26863 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
26865 * commands/boot.c: Remove the check for `GRUB_UTIL'.
26866 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
26867 `loader/powerpc/ieee1275/linux.c',
26868 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
26869 * include/grub/powerpc/ieee1275/ieee1275.h
26870 (grub_ieee1275_release): New prototype.
26871 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
26872 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
26873 normal, boot, linux and linux_normal.
26874 * loader/powerpc/ieee1275/linux.c: New file.
26875 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
26877 2004-07-12 Marco Gerards <metgerards@student.han.nl>
26879 * normal/arg.c (grub_arg_parse): Correct error handling after
26880 reallocating the argumentlist (check if `argl' is not null instead
26881 of checking if `args' is not null).
26882 * kern/mm.c (grub_realloc): Return the same pointer when using the
26883 same region, instead of returning the header address.
26885 2004-07-11 Marco Gerards <metgerards@student.han.nl>
26887 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
26888 one block instead of two when looking for the initial partition.
26889 (grub_partition_probe): Initialize the local variable `p' with 0.
26890 Use base 10 for the grub_strtoul call.
26891 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
26892 need for one local variable.
26893 (grub_strtoul): Don't add the new value to `num', instead of that
26896 2004-07-11 Marco Gerards <metgerards@student.han.nl>
26898 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
26899 (pxeboot_img_SOURCES): New variable.
26900 (pxeboot_img_ASFLAGS): Likewise.
26901 (pxeboot_img_LDFLAGS): Likewise.
26902 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
26903 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
26904 <lode_leroy@hotmail.com>.
26906 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26908 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
26909 there was no input.
26911 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26913 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
26914 the history buffer logic.
26916 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26918 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
26919 (FILETYPE_INO_SYMLINK): New macros.
26920 (grub_ext2_find_file): Check if the node is a directory using the
26921 inode stat information instead of using the filetype in the
26922 dirent. Exclude the first character of an absolute symlink.
26923 (grub_ext2_dir): Mask out the filetype part of the mode member of
26926 2004-05-24 Marco Gerards <metgerards@student.han.nl>
26928 Add support for UFS version 1 and 2. Add support for the minix
26929 filesystem version 1 and 2, both the variants with 14 and 30 long
26932 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
26934 (grub_emu_SOURCES): Likewise.
26935 (pkgdata_MODULES): Add ufs.mod and minix.mod.
26936 (ufs_mod_SOURCES): New variable.
26937 (ufs_mod_CFLAGS): Likewise.
26938 (minix_mod_SOURCES): Likewise.
26939 (minix_mod_CFLAGS): Likewise.
26940 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
26942 (grubof_SOURCES): Likewise.
26943 * fs/ufs.c: New file.
26944 * fs/minix.c: New file.
26945 * include/grub/fs.h (grub_ufs_init): New prototype.
26946 (grub_ufs_fini): Likewise.
26947 (grub_minix_init): Likewise.
26948 (grub_minix_fini): Likewise.
26949 * util/grub-emu.c (main): Initialize and deinitialize UFS and
26952 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
26954 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
26955 commands/ls.c, commands/terminal.c, commands/boot.c,
26956 commands/cmp.c and commands/cat.c.
26957 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
26959 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
26962 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
26964 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
26965 and grub_, respectively. Because the conversion is trivial and
26966 mechanical, I omit the details here. Please refer to the CVS
26967 if you need more information.
26969 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
26971 * include/pupa: Renamed to ...
26972 * include/grub: ... this.
26973 * util/i386/pc/pupa-mkimage.c: Renamed to ...
26974 * util/i386/pc/grub-mkimage.c: ... this.
26975 * util/i386/pc/pupa-setup.c: Renamed to ...
26976 * util/i386/pc/grub-setup.c: ... this.
26977 * util/pupa-emu.c: Renamed to ...
26978 * util/grub-emu.c: ... this.
26980 2004-03-29 Marco Gerards <metgerards@student.han.nl>
26982 Add support for the newworld apple macintosh (PPC). This has been
26983 tested on the powerbook 2000 only. It only adds support for
26984 generic ieee1275 functions, console and disk support. This should
26985 be easy to port to other architectures with support for Open
26988 * configure.ac: Accept the powerpc as host_cpu. In the case of
26989 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
26990 specific tests are only executed while building for the i386.
26991 Inverse test for crosscompile.
26992 * genmk.rb (Utility): Allow assembler files.
26993 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
26994 * conf/powerpc-ieee1275.rmk: New file.
26995 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
26996 * disk/powerpc/ieee1275/partition.c: Likewise.
26997 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
26998 * include/pupa/powerpc/ieee1275/console.h: Likewise.
26999 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
27000 * include/pupa/powerpc/ieee1275/time.h: Likewise.
27001 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
27002 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
27003 * include/pupa/powerpc/ieee1275/loader.h
27004 * include/pupa/powerpc/setjmp.h: Likewise.
27005 * include/pupa/powerpc/types.h: Likewise.
27006 * kern/powerpc/ieee1275/init.c: Likewise.
27007 * kern/powerpc/ieee1275/openfw.c: Likewise.
27008 * term/powerpc/ieee1275/ofconsole.c: Likewise.
27010 These files were written by Johan Rydberg
27011 (jrydberg@night.trouble.net) and I only modified them slightly.
27013 * boot/powerpc/ieee1275/cmain.c: New file.
27014 * boot/powerpc/ieee1275/crt0.S: Likewise.
27015 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
27016 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
27018 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
27020 * Makefile.in: Update copyright.
27021 * genmodsrc.sh: Likewise.
27022 * gensymlist.sh: Likewise.
27023 * term/i386/pc/vga.c: Indent correctly.
27025 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
27026 bugreporting address.
27027 * util/i386/pc/pupa-setup.c (usage): Likewise,
27028 (main): Call pupa_ext2_init and pupa_ext2_fini.
27030 * fs/fat.c (log2): Renamed to ...
27031 (fat_log2): ... this.
27032 All callers changed.
27033 * kern/misc.c (memcpy): Alias to pupa_memmove.
27034 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
27036 * util/console.c (pupa_ncurses_fini): Return 0.
27038 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
27039 Move fail label here.
27040 [__GNU__]: Don't warn when using stat.
27041 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
27042 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
27043 long int. Use strtol instead of strtoul.
27045 2004-03-14 Marco Gerards <metgerards@student.han.nl>
27047 * commands/boot.c: New file.
27048 * commands/cat.c: Likewise.
27049 * commands/cmp.c: Likewise.
27050 * commands/ls.c: Likewise.
27051 * commands/terminal.c: Likewise.
27052 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
27053 (pupa_register_command): Changed interface to match the new
27055 (pupa_command_execute): Changed (almost rewritten) so it uses
27056 pupa_split_command. Added support for setting variables using the
27058 (rescue_command): Changed to work with the new argument parser.
27059 (terminal_command): Moved from here to commands/terminal.c.
27060 (set_command): New function.
27061 (unset_command): New function.
27062 (insmod_command): New function.
27063 (rmmod_command): New function.
27064 (lsmod_command): New function.
27065 (pupa_command_init): Don't initialize the command terminal
27066 anymore. Initialize the commands set, unset, insmod, rmmod and
27068 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
27069 (kernel_img_HEADERS): Add arg.h and env.h.
27070 (pupa_mkimage_LDFLAGS): Add kern/env.c.
27071 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
27072 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
27074 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
27076 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
27077 (boot_mod_SOURCES): New variable.
27078 (terminal_mod_SOURCES): Likewise.
27079 (ls_mod_SOURCES): Likewise.
27080 (cmp_mod_SOURCES): Likewise.
27081 (cat_mod_SOURCES): Likewise.
27083 * normal/arg.c: New file.
27084 * kern/env.c: Likewise.
27085 * include/pupa/arg.h: Likewise.
27086 * include/pupa/env.h: Likewise.
27087 * font/manager.c (font_command): Changed to match argument parsing
27089 (PUPA_MOD_INIT): Likewise.
27090 * hello/hello.c (pupa_cmd_hello): Likewise.
27091 (PUPA_MOD_INIT): Likewise.
27092 * include/pupa/disk.h: Include <pupa/device.h>.
27093 (pupa_print_partinfo): New prototype.
27094 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
27095 (pupa_dl_get_prefix): Likewise.
27096 * include/pupa/misc.h: Include <pupa/err.h>.
27097 (pupa_isgraph): New prototype.
27098 (pupa_isdigit): Likewise.
27099 (pupa_split_cmdline): Likewise.
27100 * include/pupa/normal.h: Include <pupa/arg.h>.
27101 (pupa_command): Changed the prototype of the member `func' to
27102 match the argument parsing interface. Added member `options'.
27103 (pupa_register_command): Updated to match function.
27104 (pupa_arg_parse): New prototype.
27105 (pupa_hello_init) [PUPA_UTIL]: New prototype.
27106 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
27107 (pupa_ls_init) [PUPA_UTIL]: Likewise.
27108 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
27109 (pupa_cat_init) [PUPA_UTIL]: Likewise.
27110 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
27111 (pupa_boot_init) [PUPA_UTIL]: Likewise.
27112 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
27113 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
27114 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
27115 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
27116 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
27117 * kern/disk.c: Include <pupa/file.h>.
27118 (pupa_print_partinfo): New function.
27119 * kern/dl.c: Include <pupa/env.h>.
27120 (pupa_dl_dir): Variable removed.
27121 (pupa_dl_load): Use the environment variable `prefix' instead of
27122 the variable pupa_dl_dir.
27123 (pupa_dl_set_prefix): Function removed.
27124 (pupa_dl_get_prefix): Likewise.
27125 * kern/i386/pc/init.c: Include <pupa/env.h>.
27126 (pupa_machine_init): Use the environment variable `prefix' instead of
27127 using pupa_dl_set_prefix to set the prefix.
27128 * kern/main.c: Include <pupa/env.h>.
27129 (pupa_set_root_dev): Use the environment variable `prefix' instead of
27130 using pupa_dl_get_prefix to get the prefix.
27131 * kern/misc.c: Include <pupa/env.h>.
27132 (pupa_isdigit): New function.
27133 (pupa_isgraph): Likewise.
27134 (pupa_ftoa): Likewise.
27135 (pupa_vsprintf): Added support for printing values of the type
27136 `double'. Make it possible to format variable output when using
27137 formatting like `%1.2%f'.
27138 (pupa_split_cmdline): New function.
27139 * kern/rescue.c: Include <pupa/env.h>.
27140 (next_word): Removed function.
27141 (pupa_rescue_cmd_prefix): Likewise.
27142 (pupa_rescue_cmd_set): New function.
27143 (pupa_rescue_cmd_unset): New function.
27144 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
27145 split the command line instead of splitting it here. Added
27146 support for setting variables using the syntax `foo=bar'. Don't
27147 initialize the prefix command anymore. Initialized the set and
27149 * normal/cmdline.c: Include <pupa/env.h>.
27150 (pupa_tab_complete): Added prototypes for print_simple_completion,
27151 print_partition_completion, add_completion, iterate_commands,
27152 iterate_dev, iterate_part and iterate_dir. Moved code to print
27153 partition information from here to kern/disk.c.
27154 (pupa_cmdline_run): Don't check if the function exists anymore.
27155 * normal/main.c: Include <pupa/env.h>.
27156 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
27157 instead of using pupa_dl_get_prefix to get the prefix.
27158 * term/i386/pc/vga.c: Include <pupa/arg.h>.
27159 (check_vga_mem): Cast pointers to `void *' to silence a gcc
27161 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
27162 (pupa_vga_setcolor): Declare unused variables with `__attribute__
27163 ((unused))' to silence a gcc warning.
27164 (pupa_vga_setcolor): Likewise.
27165 (debug_command): Changed to match argument parsing
27167 * util/pupa-emu.c: Include <pupa/env.h>.
27168 (options): Added 0's for unused fields to silence a gcc warning.
27170 (main): Use the environment variable `prefix' instead of using
27171 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
27172 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
27175 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
27176 * util/misc.c: Include <malloc.h>.
27177 (pupa_malloc): Rewritten so errors are correctly reported.
27178 (pupa_realloc): Likewise.
27179 (pupa_memalign): Likewise.
27180 (pupa_mm_init_region): Declare unused variables with
27181 `__attribute__ ((unused))' to silence a gcc warning.
27182 * normal/i386/setjmp.S: Remove tab at the end of the file to
27183 silence a gcc warning.
27184 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
27185 variables with `__attribute__ ((unused))' to silence a gcc
27187 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
27188 local variable i unsigned to silence a gcc warning.
27190 * kern/term.c: Include <pupa/misc.h>.
27191 (pupa_more_lines): New variable.
27192 (pupa_more): Likewise.
27193 (pupa_putcode): When the pager is active pause at the end of every
27195 (pupa_set_more): New function.
27196 * include/pupa/term.h (pupa_set_more): New prototype.
27199 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
27201 Now this project is GRUB 2 rather than PUPA. The location of
27202 the CVS repository was moved to GRUB's.
27204 * configure.ac: Use bug-grub as the reporting address.
27205 Use GRUB instead of PUPA.
27206 Change the version number to 1.90.
27208 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
27210 * genkernsyms.sh: Updated copyright information.
27211 * genmk.rb: Likewise.
27212 * genmodsrc.sh: Likewise.
27213 * gensymlist.sh: Likewise.
27214 * boot/i386/pc/boot.S: Likewise.
27215 * boot/i386/pc/diskboot.S: Likewise.
27216 * disk/i386/pc/biosdisk.c: Likewise.
27217 * disk/i386/pc/partition.c: Likewise.
27218 * font/manager.c: Likewise.
27219 * fs/ext2.c: Likewise.
27220 * fs/fat.c: Likewise.
27221 * include/pupa/boot.h: Likewise.
27222 * include/pupa/device.h: Likewise.
27223 * include/pupa/disk.h: Likewise.
27224 * include/pupa/dl.h: Likewise.
27225 * include/pupa/elf.h: Likewise.
27226 * include/pupa/err.h: Likewise.
27227 * include/pupa/file.h: Likewise.
27228 * include/pupa/font.h: Likewise.
27229 * include/pupa/fs.h: Likewise.
27230 * include/pupa/kernel.h: Likewise.
27231 * include/pupa/loader.h: Likewise.
27232 * include/pupa/misc.h: Likewise.
27233 * include/pupa/mm.h: Likewise.
27234 * include/pupa/net.h: Likewise.
27235 * include/pupa/normal.h: Likewise.
27236 * include/pupa/rescue.h: Likewise.
27237 * include/pupa/setjmp.h: Likewise.
27238 * include/pupa/symbol.h: Likewise.
27239 * include/pupa/term.h: Likewise.
27240 * include/pupa/types.h: Likewise.
27241 * include/pupa/i386/setjmp.h: Likewise.
27242 * include/pupa/i386/types.h: Likewise.
27243 * include/pupa/i386/pc/biosdisk.h: Likewise.
27244 * include/pupa/i386/pc/boot.h: Likewise.
27245 * include/pupa/i386/pc/console.h: Likewise.
27246 * include/pupa/i386/pc/init.h: Likewise.
27247 * include/pupa/i386/pc/kernel.h: Likewise.
27248 * include/pupa/i386/pc/linux.h: Likewise.
27249 * include/pupa/i386/pc/loader.h: Likewise.
27250 * include/pupa/i386/pc/memory.h: Likewise.
27251 * include/pupa/i386/pc/multiboot.h: Likewise.
27252 * include/pupa/i386/pc/partition.h: Likewise.
27253 * include/pupa/i386/pc/time.h: Likewise.
27254 * include/pupa/i386/pc/vga.h: Likewise.
27255 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
27256 * include/pupa/util/getroot.h: Likewise.
27257 * include/pupa/util/misc.h: Likewise.
27258 * include/pupa/util/resolve.h: Likewise.
27259 * kern/device.c: Likewise.
27260 * kern/disk.c: Likewise.
27261 * kern/dl.c: Likewise.
27262 * kern/err.c: Likewise.
27263 * kern/file.c: Likewise.
27264 * kern/fs.c: Likewise.
27265 * kern/loader.c: Likewise.
27266 * kern/main.c: Likewise.
27267 * kern/misc.c: Likewise.
27268 * kern/mm.c: Likewise.
27269 * kern/rescue.c: Likewise.
27270 * kern/term.c: Likewise.
27271 * kern/i386/dl.c: Likewise.
27272 * kern/i386/pc/init.c: Likewise.
27273 * kern/i386/pc/lzo1x.S: Likewise.
27274 * kern/i386/pc/startup.S: Likewise.
27275 * loader/i386/pc/chainloader.c: Likewise.
27276 * loader/i386/pc/linux.c: Likewise.
27277 * loader/i386/pc/multiboot.c: Likewise.
27278 * normal/cmdline.c: Likewise.
27279 * normal/command.c: Likewise.
27280 * normal/main.c: Likewise.
27281 * normal/menu.c: Likewise.
27282 * normal/i386/setjmp.S: Likewise.
27283 * term/i386/pc/console.c: Likewise.
27284 * term/i386/pc/vga.c: Likewise.
27285 * util/console.c: Likewise.
27286 * util/genmoddep.c: Likewise.
27287 * util/misc.c: Likewise.
27288 * util/pupa-emu.c: Likewise.
27289 * util/resolve.c: Likewise.
27290 * util/unifont2pff.rb: Likewise.
27291 * util/i386/pc/biosdisk.c: Likewise.
27292 * util/i386/pc/getroot.c: Likewise.
27293 * util/i386/pc/pupa-mkimage.c: Likewise.
27294 * util/i386/pc/pupa-setup.c: Likewise.
27296 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
27298 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
27299 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
27300 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
27301 reading and reset it after reading.
27302 (pupa_ext2_close): Return PUPA_ERR_NONE.
27304 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
27306 (struct linux_kernel_header): Add kernel_version and
27308 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
27309 pupa_file_read succeeds.
27310 (pupa_rescue_cmd_initrd): Implement.
27312 2003-12-03 Marco Gerards <metgerards@student.han.nl>
27314 * fs/ext2.c (pupa_ext2_label): New function.
27315 (pupa_ext2_fs): Added label.
27316 * fs/fat.c (pupa_fat_label): New function.
27317 (pupa_fat_fs): Added label.
27318 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
27320 * kern/misc.c (pupa_strndup): New function.
27321 * include/pupa/misc.h (pupa_strndup): New prototype.
27323 * include/pupa/normal.h: Include <pupa/err.h>.
27324 (pupa_set_history): New prototype.
27325 (pupa_iterate_commands): New prototype.
27326 * normal/cmdline.c: Include <pupa/machine/partition.h>,
27327 <pupa/disk.h>, <pupa/file.h>.
27328 (hist_size): New variable.
27329 (hist_lines): Likewise.
27330 (hist_end): Likewise.
27331 (hist_used): Likewise.
27332 (pupa_set_history): New function.
27333 (pupa_history_get): Likewise.
27334 (pupa_history_add): Likewise.
27335 (pupa_history_replace): Likewise.
27336 (pupa_tab_complete): Likewise.
27337 (pupa_cmdline_run): Added tab completion and history buffer. Tab
27338 completion shows partitionnames while completing partitions, this
27339 feature was suggested by Jeff Bailey.
27340 * normal/command.c (pupa_iterate_commands): New function.
27341 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
27342 (pupa_normal_init): Initialize history buffer.
27343 (PUPA_MOD_INIT): Likewise.
27344 (pupa_normal_fini): Free the history buffer.
27345 (PUPA_MOD_FINI): Likewise.
27347 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
27350 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
27351 * configure.ac [i386]: Check for regparam bug.
27352 (NESTED_FUNC_ATTR) [! i386]: Defined.
27354 2003-11-17 Marco Gerards <metgerards@student.han.nl>
27356 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
27357 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
27358 (pupa_emu_SOURCES): New variable.
27359 (pupa_emu_LDFLAGS): Likewise.
27360 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
27361 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
27362 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
27363 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27364 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
27365 (pupa_jmp_buf): New typedef.
27366 (pupa_setjmp) [PUPA_UTIL]: New macro.
27367 (pupa_longjmp) [PUPA_UTIL]: Likewise.
27368 * include/pupa/term.h (struct pupa_term): New member `refresh'.
27369 (pupa_refresh): New prototype.
27370 * include/pupa/util/getroot.h: New file.
27371 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
27373 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
27374 (pupa_rescue_cmd_cat): Likewise.
27375 (pupa_rescue_cmd_ls): Likewise.
27376 (pupa_rescue_cmd_testload): Likewise.
27377 (pupa_rescue_cmd_lsmod): Likewise.
27378 * normal/cmdline.c (pupa_cmdline_get): Likewise.
27379 * normal/menu.c (run_menu): Likewise.
27380 * kern/term.c (pupa_cls): Likewise.
27381 (pupa_refresh): New function.
27382 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
27383 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27384 * util/console.c: New file.
27386 * util/i386/pc/getroot.c: New file.
27387 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
27388 (pupa_putchar): New function.
27389 (pupa_refresh): Likewise.
27390 (xgetcwd): Function moved to ...
27391 (strip_extra_slashes): Likewise.
27392 (get_prefix): Likewise.
27393 * util/i386/pc/getroot.c: ... here.
27394 (find_root_device): Function moved and renamed to...
27395 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
27396 Changed all callers.
27397 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
27399 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
27400 Changed all callers.
27401 * util/misc.c (pupa_memalign): New function.
27402 (pupa_mm_init_region): Likewise.
27403 (pupa_register_exported_symbols): Likewise.
27404 (pupa_putchar): Function removed.
27405 * util/pupa-emu.c: New file.
27407 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
27409 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
27410 (_multiboot_mod_SOURCES): New variable.
27411 (_multiboot_mod_CFLAGS): Likewise.
27412 * loader/i386/pc/multiboot.c: New file.
27413 * include/pupa/i386/pc/multiboot.h: Likewise.
27414 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
27415 (pupa_multiboot_real_boot): New function.
27416 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
27417 (pupa_multiboot_real_boot): New prototype.
27418 (pupa_rescue_cmd_multiboot): Likewise
27419 (pupa_rescue_cmd_module): Likewise.
27421 * kern/loader.c (pupa_loader_set): Continue when
27422 pupa_loader_unload_func() fails.
27423 (pupa_loader_unset): New function.
27424 * include/pupa/loader.h (pupa_loader_unset): New prototype.
27426 * kern/misc.c (pupa_stpcpy): New function.
27427 * include/pupa/misc.h (pupa_stpcpy): New prototype.
27429 2003-11-12 Marco Gerards <metgerards@student.han.nl>
27431 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
27432 for available extensions.
27434 * include/pupa/i386/pc/time.h: New file.
27435 * kern/disk.c: Include <pupa/machine/time.h>.
27436 (PUPA_CACHE_TIMEOUT): New macro.
27437 (pupa_last_time): New variable.
27438 (pupa_disk_open): Flush the cache when there was a timeout.
27439 (pupa_disk_close): Reset the timer.
27440 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
27442 * util/misc.c: Include <sys/times.h>
27443 (pupa_get_rtc): New function.
27445 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
27447 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
27449 (pupa_ext2_get_file_block): Use blocks member.
27451 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
27452 first block. Return -1 instead of pupa_errno on error.
27454 2003-10-27 Marco Gerards <metgerards@student.han.nl>
27456 * README: In the pupa-mkimage example use _chain instead of chain
27457 and ext2 instead of fat.
27458 * TODO: Replace ext2fs with jfs as an example. Add an item for
27459 adding journal playback for ext2fs.
27460 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
27461 (pkgdata_MODULES): Added ext2.mod.
27462 (ext2_mod_SOURCES): New variable.
27463 (ext2_mod_CFLAGS): Likewise.
27464 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
27465 * include/pupa/misc.h (pupa_strncpy): New prototype.
27466 (pupa_strcat): Likewise.
27467 (pupa_strncmp): Likewise.
27468 * kern/misc.c (pupa_strcat): Enable function.
27469 (pupa_strncpy): New function.
27470 (pupa_strncmp): Likewise.
27471 * fs/ext2.c: New file.
27473 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
27474 when the read failed before retrying.
27475 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
27476 (_FILE_OFFSET_BITS): Likewise.
27477 * configure.ac: Added AC_SYS_LARGEFILE.
27479 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27481 * genmk.rb (PModule#rule): Make sure to get only symbol names
27482 from the output of nm.
27483 Reported by Robert Millan <rmh.grub@aybabtu.com>.
27485 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27487 I forgot to check in these changes for a long time. This adds
27488 incomplete support for VGA console, and this is still very
27489 buggy. Also, a lot of consideration is required for I18N,
27490 UNICODE, and VGA font issues. Therefore, assume that this is
27491 such that "better than nothing".
27493 * font/manager.c: New file.
27494 * include/pupa/font.h: Likewise.
27495 * include/pupa/i386/pc/vga.h: Likewise.
27496 * term/i386/pc/vga.c: Likewise.
27497 * util/unifont2pff.rb: Likewise.
27499 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
27500 (pkgdata_MODULES): Added vga.mod and font.mod.
27501 (vga_mod_SOURCES): New variables.
27502 (vga_mod_CFLAGS): Likewise.
27503 (font_mod_SOURCES): Likewise.
27504 (font_mod_CFLAGS): Likewise.
27506 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
27508 * include/pupa/term.h: Include pupa/err.h.
27509 (struct pupa_term): Added init and fini.
27510 Changed the argument of putchar to pupa_uint32_t.
27512 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
27513 (pupa_console_real_putchar): New prototype.
27514 (pupa_console_putchar): Removed.
27515 (pupa_console_checkkey): Exported.
27516 (pupa_console_getkey): Likewise.
27518 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
27521 * kern/term.c (pupa_term_set_current): Rewritten.
27522 (pupa_putchar): Likewise.
27523 (pupa_putcode): New function.
27525 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
27526 (pupa_console_real_putchar): ... this.
27527 (pupa_vga_set_mode): New function.
27528 (pupa_vga_get_font): Likewise.
27530 * normal/command.c: Include pupa/term.h.
27531 (terminal_command): New function.
27532 (pupa_command_init): Register the command "terminal".
27534 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
27535 (DISP_UP): Likewise.
27536 (DISP_RIGHT): Likewise.
27537 (DISP_DOWN): Likewise.
27538 (DISP_HLINE): Likewise.
27539 (DISP_VLINE): Likewise.
27540 (DISP_UL): Likewise.
27541 (DISP_UR): Likewise.
27542 (DISP_LL): Likewise.
27543 (DISP_LR): Likewise.
27545 * term/i386/pc/console.c (pupa_console_putchar): New function.
27547 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
27549 * util/resolve.c (pupa_util_resolve_dependencies): BUG
27550 FIX. Reverse the path_list.
27552 * include/pupa/normal.h: Export pupa_register_command and
27553 pupa_unregister_command.
27555 * hello/hello.c (pupa_cmd_hello): New module.
27556 * conf/i386-pc.rmk: Added hello.mod.
27558 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
27560 * kern/i386/pc/lzo1x.S: New file.
27562 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
27563 (compress_kernel): New variable.
27564 (generate_image): Heavily modified to support compressing a
27565 large part of the core image.
27567 * util/misc.c (pupa_util_read_image): Fix a file descriptor
27569 (pupa_util_load_image): New function.
27571 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
27572 (pupa_compressed_size): New variable.
27573 (codestart): Enable Gate A20 here.
27574 Decompress the compressed part of the core image.
27575 Rearrange the code to put functions and variables which are
27576 required for initialization in the non-compressed part.
27579 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
27582 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
27584 * include/pupa/i386/pc/kernel.h
27585 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
27586 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
27587 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
27588 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
27589 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
27591 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
27593 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
27594 (Utility#rule): Likewise.
27596 * configure.ac: Check if LZO is available.
27598 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
27600 * include/pupa/normal.h: New file.
27601 * include/pupa/setjmp.h: Likewise.
27602 * include/pupa/i386/setjmp.h: Likewise.
27603 * normal/cmdline.c: Likewise.
27604 * normal/command.c: Likewise.
27605 * normal/main.c: Likewise.
27606 * normal/menu.c: Likewise.
27607 * normal/i386/setjmp.S: Likewise.
27609 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
27610 (pupa_rescue_cmd_initrd): Likewise.
27612 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
27615 * kern/i386/pc/startup.S (translation_table): New variable.
27616 (translate_keycode): New function.
27617 (pupa_console_getkey): Call translate_keycode.
27619 * kern/rescue.c (attempt_normal_mode): New function.
27620 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
27621 it failed, print a message.
27623 * kern/mm.c (pupa_real_malloc): Print more information when a
27624 free magic is broken.
27625 (pupa_free): If the first free header is not free actually, set
27628 * kern/main.c (pupa_load_normal_mode): Just load the module
27630 (pupa_main): Don't print the message
27631 "Entering into rescue mode..." here.
27633 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
27635 (pupa_rescue_cmd_initrd): Likewise.
27636 (pupa_rescue_cmd_initrd): Likewise.
27638 * include/pupa/symbol.h (FUNCTION): Specify the type.
27639 (VARIABLE): Likewise.
27641 * include/pupa/err.h (pupa_err_t): Added
27642 PUPA_ERR_UNKNOWN_COMMAND.
27644 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
27645 (pupa_dl_get_prefix): Likewise.
27647 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
27648 Added _chain.mod and _linux.mod instead of chain.mod and
27650 (chain_mod_SOURCES): Renamed to ...
27651 (_chain_mod_SOURCES): ... this.
27652 (chain_mod_CFLAGS): Renamed to ...
27653 (_chain_mod_CFLAGS): ... this.
27654 (linux_mod_SOURCES): Renamed to ...
27655 (_linux_mod_SOURCES): ... this.
27656 (linux_mod_CFLAGS): Renamed to ...
27657 (_linux_mod_CFLAGS): ... this.
27658 (normal_mod_SOURCES): New variable.
27659 (normal_mod_CFLAGS): Likewise.
27660 (normal_mod_ASFLAGS): Likewise.
27662 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
27664 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
27667 * kern/dl.c (pupa_dl_ref): Refer depending modules
27669 (pupa_dl_unref): Unrefer depending modules recursively.
27670 Don't call pupa_dl_unload implicitly, because PUPA can crash if
27671 a module is unloaded before one depending on that module is
27673 (pupa_dl_unload): Unload depending modules explicitly,
27676 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
27678 * include/pupa/i386/pc/linux.h: New file.
27679 * loader/i386/pc/linux.c: Likewise.
27681 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
27683 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
27684 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
27685 of PUPA_CHAINLOADER_BOOT_SECTOR.
27687 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
27688 (pupa_linux_prot_size): New variable.
27689 (pupa_linux_tmp_addr): Likewise.
27690 (pupa_linux_real_addr): Likewise.
27691 (pupa_linux_boot_zimage): New function.
27692 (pupa_linux_boot_bzimage): Likewise.
27694 * kern/i386/pc/init.c (struct mem_region): New structure.
27695 (MAX_REGIONS): New macro.
27696 (mem_regions): New variable.
27697 (num_regions): Likewise.
27698 (pupa_os_area_addr): Likewise.
27699 (pupa_os_area_size): Likewise.
27700 (pupa_lower_mem): Likewise.
27701 (pupa_upper_mem): Likewise.
27702 (add_mem_region): New function.
27703 (compact_mem_regions): Likewise.
27704 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
27705 the size of the conventional memory and that of so-called upper
27706 memory (before the first memory hole).
27707 Instead of adding each found region to free memory, use
27708 add_mem_region and add them after removing overlaps.
27709 Also, add only 1/4 of the upper memory to free memory. The rest
27710 is used for loading OS images. Maybe this is ad hoc, but this
27711 makes it much easier to relocate OS images when booting.
27713 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
27714 (pupa_enter_rescue_mode): Don't register initrd and module.
27716 * kern/mm.c: Include pupa/dl.h.
27718 * kern/main.c: Include pupa/file.h and pupa/device.h.
27720 * kern/loader.c (pupa_loader_load_module_func): Removed.
27721 (pupa_loader_load_module): Likewise.
27723 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
27726 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
27727 (pupa_linux_tmp_addr): Likewise.
27728 (pupa_linux_real_addr): Likewise.
27729 (pupa_linux_boot_zimage): Likewise.
27730 (pupa_linux_boot_bzimage): Likewise.
27732 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
27733 (pupa_upper_mem): Likewise.
27734 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
27735 module is too dangerous.
27737 * include/pupa/loader.h (pupa_os_area_addr): Declared.
27738 (pupa_os_area_size): Likewise.
27739 (pupa_loader_set): Remove the first argument. Loader doesn't
27740 manage modules or initrd any longer.
27741 (pupa_loader_load_module): Removed.
27743 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
27744 (linux_mod_SOURCES): New variable.
27745 (linux_mod_CFLAGS): Likewise.
27747 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
27749 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
27750 the length of a blocklist correctly.
27752 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
27753 Use ioctl only if the OS file is a block device.
27754 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
27755 not very useful for normal files.
27757 * kern/main.c (pupa_set_root_dev): New function.
27758 (pupa_load_normal_mode): Likewise.
27759 (pupa_main): Call those above.
27761 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
27764 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
27766 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27768 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
27769 (setup): Configure the installed partition information and the
27772 * loader/i386/pc/chainloader.c (my_mod): New variable.
27773 (pupa_chainloader_unload): New function.
27774 (pupa_rescue_cmd_chainloader): Refer itself.
27775 (PUPA_MOD_INIT): Save its own module in MY_MOD.
27777 * kern/i386/pc/startup.S (install_partition): Removed.
27778 (version_string): Likewise.
27779 (config_file): Likewise.
27780 (pupa_install_dos_part): New variable.
27781 (pupa_install_bsd_part): Likewise.
27782 (pupa_prefix): Likewise.
27783 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
27785 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
27787 (make_install_device): New function.
27788 (pupa_machine_init): Set the dl prefix.
27790 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
27791 (buf): Renamed to ...
27792 (linebuf): ... this.
27793 (pupa_rescue_cmd_prefix): New function.
27794 (pupa_rescue_cmd_insmod): Likewise.
27795 (pupa_rescue_cmd_rmmod): Likewise.
27796 (pupa_rescue_cmd_lsmod): Likewise.
27797 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
27800 * kern/mm.c (pupa_memalign): If failed even after invalidating
27801 disk caches, unload unneeded modules and retry.
27803 * kern/misc.c (pupa_memmove): New function.
27804 (pupa_memcpy): Removed.
27805 (pupa_strcpy): New function.
27806 (pupa_itoa): Made static.
27808 * kern/dl.c (pupa_dl_iterate): New function.
27809 (pupa_dl_ref): Likewise.
27810 (pupa_dl_unref): Likewise.
27811 (pupa_dl_unload): Return if succeeded or not.
27812 (pupa_dl_unload_unneeded): New function.
27813 (pupa_dl_unload_all): Likewise.
27814 (pupa_dl_init): Renamed to ...
27815 (pupa_dl_set_prefix): ... this.
27816 (pupa_dl_get_prefix): New function.
27818 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
27819 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
27820 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
27821 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
27822 (pupa_install_dos_part): Declared.
27823 (pupa_install_bsd_part): Likewise.
27824 (pupa_prefix): Likewise.
27825 (pupa_boot_drive): Likewise.
27827 * include/pupa/types.h: Fix a typo.
27829 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
27831 (pupa_memmove): Declared.
27832 (pupa_strcpy): Likewise.
27834 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
27835 pupa_mod_init takes one argument, its own module.
27836 (pupa_dl_unload_unneeded): Declared.
27837 (pupa_dl_unload_all): Likewise.
27838 (pupa_dl_ref): Likewise.
27839 (pupa_dl_unref): Likewise.
27840 (pupa_dl_iterate): Likewise.
27841 (pupa_dl_init): Renamed to ...
27842 (pupa_dl_set_prefix): ... this.
27843 (pupa_dl_get_prefix): Declared.
27845 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
27846 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
27848 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
27849 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
27851 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
27852 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
27854 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
27856 * util/i386/pc/pupa-setup.c (setup): Define the internal
27857 function find_first_partition_start at the top level, because GCC
27858 3.0.x cannot compile internal functions in deeper scopes
27860 (find_root_device): Use lstat instead of stat.
27861 Don't follow symbolic links.
27862 Fix the path-constructing code.
27864 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
27865 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
27866 by a BLKGETSIZE ioctl first, because block devices don't fill
27867 the member st_mode of the structure stat on Linux.
27868 [__linux__] (linux_find_partition): Use a temporary buffer
27869 REAL_DEV for the working space. Copy it to DEV before returning.
27870 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
27871 buffer cache consistent.
27872 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
27873 strncmp. The previous value was merely wrong.
27874 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
27876 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
27877 FAT size is 12. The previous value was merely wrong.
27879 * kern/main.c (pupa_main): Don't split the starting message from
27882 * kern/term.c (pupa_putchar): Put CR after LF instead of before
27883 LF, because BIOS goes crazy about character attributes in this
27886 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
27888 * include/i386/pc/util/biosdisk.h: New file.
27889 * util/i386/pc/biosdisk.c: Likewise.
27890 * util/i386/pc/pupa-setup.c: Likewise.
27892 * Makefile.in (INCLUDE_DISTFILES): Added
27893 include/pupa/i386/pc/util/biosdisk.h.
27894 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
27895 directory util/i386/pc.
27896 (install-local): Added a rule for sbin_UTILITIES.
27897 (uninstall): Likewise.
27899 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
27901 * util/misc.c (xrealloc): New function.
27902 (pupa_malloc): Likewise.
27903 (pupa_free): Likewise.
27904 (pupa_realloc): Likewise.
27905 (pupa_stop): Likewise.
27906 (pupa_putchar): Likewise.
27908 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
27910 * include/pupa/util/misc.h (xrealloc): Declared.
27912 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
27914 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
27915 (PUPA_BOOT_MACHINE_BPB_END): ... this.
27917 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
27918 [PUPA_UTIL] (pupa_fat_fini): Likewise.
27920 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
27921 way should be implemented.
27922 [PUPA_UTIL] (pupa_fat_fini): Likewise.
27924 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
27925 the size of NAME for safety.
27926 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
27929 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
27930 (pupa_setup_SOURCES): Likewise.
27932 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
27934 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
27936 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
27937 bunch of pushl's from pusha, because this destroys the return
27940 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
27942 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
27943 This means that any missing prototypes could be fatal. Also, you
27944 must take care when writing assembly code. See the comments at
27945 the beginning of startup.S, for more details.
27947 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
27948 compilation mechanism.
27949 (pupa_chainloader_real_boot): Likewise.
27950 (pupa_biosdisk_rw_int13_extensions): Likewise.
27951 (pupa_biosdisk_rw_standard): Likewise.
27952 (pupa_biosdisk_check_int13_extensions): Likewise.
27953 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
27954 (pupa_biosdisk_get_diskinfo_standard): Likewise.
27955 (pupa_get_memsize): Likewise.
27956 (pupa_get_mmap_entry): Likewise.
27957 (pupa_console_putchar): Likewise.
27958 (pupa_console_setcursor): Likewise.
27959 (pupa_getrtsecs): Use pushl instead of push.
27961 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
27962 memory instead of the stack for a mmap entry, because some
27963 BIOSes may ignore the maximum size and overflow.
27965 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
27967 * genmk.rb (PModule#rule): Compile automatically generated
27968 sources with module-specific CFLAGS as well as other sources.
27970 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27972 * configure.ac: Check ld.
27973 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
27974 respectively, before checking endianness and sizes.
27976 * Makefile.in (LD): New variable.
27978 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27980 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
27982 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27984 * Changelog: New file.