1 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
3 XEN with Linux grub-mkconfig support.
5 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
6 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
7 GRUB_CMDLINE_XEN_DEFAULT.
8 * util/grub.d/20_linux_xen.in: New file.
10 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
12 Initialise VGA video on qemu ourselves.
14 * boot/i386/qemu/boot.S: Don't call 0xc000.
15 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
16 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
17 (kernel_img_HEADERS): Add pci.h.
18 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
19 * configure.ac: Force unifont on qemu and yeeloong.
20 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
21 (grub_vga_palette_write): Use correct register.
22 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
23 Call grub_qemu_init_cirrus.
24 * kern/i386/qemu/init.c: New file.
25 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
29 2010-06-26 Pavel Roskin <proski@gnu.org>
31 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
34 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
36 * docs/grub.texi (Simple configuration): Explain that
37 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
38 set to `true' to disable their respective recovery entries, not
41 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
43 Make the `source' command slightly faster.
45 * normal/main.c (grub_normal_execute): Don't re-read list files when
48 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
50 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
51 field position and mask size to red fields from mode_info, not
53 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
54 Remove redundant tag->common.framebuffer_type assignment.
55 Reported by: Seth Goldberg.
57 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
59 Sync up other versions of the Linux loader with Robert Millan's
60 change of 2010-01-09, "Make loader output a bit more user-friendly".
62 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
64 (grub_cmd_linux): Likewise.
65 (grub_cmd_initrd): Likewise.
66 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
67 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
69 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
71 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
72 larger than MEMORY_MAP_SIZE.
74 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
78 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
80 * script/parser.y: #include grub_script.tab.h header.
82 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
84 Support >3GiB and <16MiB RAM in i386-qemu.
86 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
87 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
88 (grub_lower_mem): Removed.
89 (grub_upper_mem): Likewise.
90 (mem_size): Made static.
91 (above_4g): New variable.
92 (grub_machine_mmap_init): Detect small mem_size and above_4g.
93 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
96 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
98 Cirrus 5446 and Bochs video cards support.
100 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
102 (video_cirrus_mod_SOURCES): New variable.
103 (video_cirrus_mod_CFLAGS): Likewise.
104 (video_cirrus_mod_LDFLAGS): Likewise.
105 (video_bochs_mod_SOURCES): Likewise.
106 (video_bochs_mod_CFLAGS): Likewise.
107 (video_bochs_mod_LDFLAGS): Likewise.
108 * include/grub/vga.h: New file.
109 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
110 (grub_video_fb_set_page_t): New type.
111 (grub_video_fb_setup): New prototype.
112 (grub_video_fb_swap_buffers): Likewise.
113 (grub_video_fb_get_info_and_fini): Likewise.
114 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
115 (CRTC_DATA_PORT): Likewise.
116 (CRTC_CURSOR): Likewise.
117 (CRTC_CURSOR_ADDR_HIGH): Likewise.
118 (CRTC_CURSOR_ADDR_LOW): Likewise.
119 (CRTC_CURSOR_DISABLE): Likewise.
120 (update_cursor): Use grub_vga_cr_write.
121 (grub_vga_text_setcursor): Likewise.
122 * video/bochs.c: New file.
123 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
125 (palette_size): Likewise.
126 (framebuffer): New variable.
127 (grub_video_fb_init): Use 'framebuffer'.
128 (grub_video_fb_fini): Likewise.
129 (grub_video_fb_get_info): Likewise.
130 (grub_video_fb_get_palette): Likewise.
131 (grub_video_fb_set_palette): Likewise.
132 (grub_video_fb_set_viewport): Likewise.
133 (grub_video_fb_get_viewport): Likewise.
134 (grub_video_fb_map_color): Likewise.
135 (grub_video_fb_map_rgb): Likewise.
136 (grub_video_fb_map_rgba): Likewise.
137 (grub_video_fb_unmap_color): Likewise.
138 (grub_video_fb_unmap_color_int): Likewise.
139 (grub_video_fb_fill_rect): Likewise.
140 (grub_video_fb_blit_bitmap): Likewise.
141 (grub_video_fb_blit_render_target): Likewise.
142 (grub_video_fb_scroll): Likewise.
143 (grub_video_fb_create_render_target): Likewise.
144 (grub_video_fb_doublebuf_blit_init): Likewise.
145 (grub_video_fb_set_active_render_target): Handle doublebuffering.
146 (doublebuf_pageflipping_update_screen): New function.
147 (doublebuf_pageflipping_init): Likewise.
148 (grub_video_fb_setup): Likewise.
149 (grub_video_fb_swap_buffers): Likewise.
150 (grub_video_fb_get_info_and_fini): Likewise.
151 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
153 (doublebuf_pageflipping_commit): Restructured into ...
154 (doublebuf_pageflipping_set_page): ... this.
155 (doublebuf_pageflipping_update_screen): Removed.
156 (doublebuf_pageflipping_init): Likewise.
157 (double_buffering_init): Likewise.
158 (grub_video_vbe_setup): Use grub_video_fb_setup.
159 (grub_video_vbe_swap_buffers): Removed.
160 (grub_video_vbe_set_active_render_target): Likewise.
161 (grub_video_vbe_get_active_render_target): Likewise.
162 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
163 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
164 grub_video_fb_set_active_render_target and
165 grub_video_fb_get_active_render_target.
166 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
167 (SEQUENCER_DATA_PORT): Likewise.
168 (MAP_MASK_REGISTER): Likewise.
169 (CRTC_ADDR_PORT): Likewise.
170 (CRTC_DATA_PORT): Likewise.
171 (START_ADDR_HIGH_REGISTER): Likewise.
172 (START_ADDR_LOW_REGISTER): Likewise.
173 (GRAPHICS_ADDR_PORT): Likewise.
174 (GRAPHICS_DATA_PORT): Likewise.
175 (READ_MAP_REGISTER): Likewise.
176 (INPUT_STATUS1_REGISTER): Likewise.
177 (INPUT_STATUS1_VERTR_BIT): Likewise.
178 (get_map_mask): Use grub_vga_sr_read.
179 (set_map_mask): Use grub_vga_sr_write.
180 (set_read_map): Use grub_vga_gr_write.
181 (set_start_address): Use grub_vga_cr_write.
182 * video/sm712.c (framebuffer): Remove leftover fields.
184 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
186 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
187 setting GRUB_VIDEO_BACKEND. Make it available as a user override
188 instead. Replace the gfxterm backend check with a check that
189 ${GRUB_PREFIX}/video.lst is non-empty.
190 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
192 (load_video): New generated function. Call it before loading
193 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
194 * util/grub.d/10_linux.in (linux_entry): Call load_video.
195 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
196 * docs/grub.texi (Simple configuration): Document
199 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
201 Use video functions in linux and xnu loaders.
203 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
204 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
205 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
206 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
207 loader/i386/pc/linux.c.
208 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
209 (find_line_len): Removed.
210 (find_framebuf): Likewise.
211 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
212 * loader/i386/efi/xnu.c: Removed.
213 * loader/i386/pc/xnu.c: Moved from here...
214 * loader/i386/xnu.c: ...here.
216 Enable priorities in video drivers.
218 * include/grub/video.h (grub_video_adapter_prio_t): New type.
219 (grub_video_adapter): New field prio.
220 (grub_video_register): Respect prio when inserting.
221 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
222 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
223 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
224 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
225 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
226 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
227 * video/sm712.c (grub_video_sm712_adapter): Likewise.
231 * include/grub/video.h (grub_video_driver_id_t): New value
232 GRUB_VIDEO_DRIVER_SDL.
233 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
235 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
237 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
239 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
241 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
243 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
244 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
246 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
248 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
249 directly, and recommend grub-install instead.
250 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
252 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
254 Fix i386-pc prefix handling with nested partitions (Debian bug
255 #585068). Note that the case where the core image is booted using
256 multiboot and relocated from its original location still requires
259 * kern/i386/pc/init.c (make_install_device): If the prefix starts
260 with "(,", fill the boot drive in between those two characters, but
261 expect that a full partition specification including partition map
263 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
264 specified, write a prefix without the drive name but including a
265 full partition specification.
267 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
269 * util/grub-mkconfig.in: Ignore non-option arguments, for
270 compatibility with older versions (before 2010-06-12) which did the
271 same. In particular, this makes it easier to ship an update-grub
272 wrapper which is compatible with that used with GRUB Legacy (Debian
275 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
277 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
278 for manual page generation.
280 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
282 * po/POTFILES: Remove leftover commands/handler.c.
284 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
286 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
287 left this script non-functional.
289 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
291 * docs/man/grub-emu.h2m: New file.
293 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
295 * docs/grub.texi (Commands): Document reduced command set in rescue
297 (cpuid): New section.
299 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
301 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
302 new partition naming style.
303 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
305 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
307 Add "-o grub.iso" like cmdline options support.
309 * util/grub-install.in: Improve cmdline option parsing.
310 * util/grub-mkconfig.in: Likewise.
311 * util/grub-mkrescue.in: Likewise.
312 * util/grub-reboot.in: Likewise.
313 * util/grub-set-default.in: Likewise.
314 * util/i386/efi/grub-install.in: Likewise.
315 * util/ieee1275/grub-install.in: Likewise.
316 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
318 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
320 * .bzrignore: Ignore 41_custom.
322 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
324 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
326 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
328 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
329 prototype declarations.
331 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
332 generating fs, partmap, and video lists.
333 * include/grub/fs.h (grub_fs_register): Omit prototype if
334 GRUB_LST_GENERATOR is defined.
335 * include/grub/partition.h (grub_partition_map_register): Likewise.
336 * include/grub/video.h (grub_video_register): Likewise.
338 2010-06-12 Javier Martín <lordhabbit@gmail.com>
340 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
342 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
344 * util/grub-mkrescue.in: Support --xorriso argument.
346 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
348 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
349 Suggested by: Thomas Schmitt.
351 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
353 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
354 Suggested by: Thomas Schmitt.
356 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
360 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
361 * util/grub.d/41_custom.in: New file.
363 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
365 * util/grub-mkrescue.in (make_image): Remove sh module, which has
366 been merged back into normal.
368 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
370 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
371 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
373 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
375 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
376 when generating manual pages.
377 * docs/man/grub-bin2h.h2m: New file.
378 * docs/man/grub-editenv.h2m: New file.
379 * docs/man/grub-fstest.h2m: New file.
380 * docs/man/grub-install.h2m: New file.
381 * docs/man/grub-macho2img.h2m: New file.
382 * docs/man/grub-mkconfig.h2m: New file.
383 * docs/man/grub-mkdevicemap.h2m: New file.
384 * docs/man/grub-mkfont.h2m: New file.
385 * docs/man/grub-mkimage.h2m: New file.
386 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
387 * docs/man/grub-mkrelpath.h2m: New file.
388 * docs/man/grub-mkrescue.h2m: New file.
389 * docs/man/grub-ofpathname.h2m: New file.
390 * docs/man/grub-pe2elf.h2m: New file.
391 * docs/man/grub-probe.h2m: New file.
392 * docs/man/grub-reboot.h2m: New file.
393 * docs/man/grub-script-check.h2m: New file.
394 * docs/man/grub-set-default.h2m: New file.
395 * docs/man/grub-setup.h2m: New file.
397 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
399 Use FOR_* macros instead of *_iterate whenever possible.
401 * commands/handler.c: Removed.
402 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
403 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
404 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
405 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
406 (grub_probe_SOURCES): Remove kern/parser.c.
407 (util/grub-script-check.c_DEPENDENCIES): Removed.
408 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
409 and grub_script_check_init.c.
410 (grub_script_check_init.lst): Removed.
411 (grub_script_check_init.h): Likewise.
412 (grub_script_check_init.c): Likewise.
413 (pkglib_MODULES): Remove handler.mod and sh.mod.
414 (handler_mod_SOURCES): Removed.
415 (handler_mod_CFLAGS): Likewise.
416 (handler_mod_LDFLAGS): Likewise.
417 (normal_mod_SOURCES): Remove normal/handler.c.
418 Add script/main.c, script/script.c, script/execute.c,
419 script/function.c, script/lexer.c, grub_script.tab.c
420 and grub_script.yy.c.
421 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
422 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
423 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
424 (grub_setup_SOURCES): Remove kern/parser.c.
425 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
426 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
427 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
428 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
429 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
430 (grub_setup_SOURCES): Remove kern/parser.c.
431 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
432 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
433 * include/grub/command.h (grub_command_iterate): Removed.
434 (FOR_COMMANDS): New macro.
435 * include/grub/dl.h (grub_dl): New member next.
436 (grub_dl_iterate): Removed.
437 (grub_dl_head): New variable declaration.
438 (FOR_DL_MODULES): New macro.
439 * include/grub/fs.h: Include list.h.
440 (grub_fs): Make next first element.
441 (grub_fs_list): New variable declaration.
442 (grub_fs_register): Make inline.
443 (grub_fs_unregister): Likewise.
444 (grub_fs_iterate): Removed.
445 (FOR_FILESYSTEMS): New macro.
446 * include/grub/handler.h: Removed.
447 * include/grub/list.h (grub_list_hook_t): Removed.
448 (grub_list_test_t): Likewise.
449 (grub_list_pop): Likewise.
450 (grub_list_iterate): Likewise.
451 (grub_list_insert): Likewise.
452 (FOR_LIST_ELEMENTS): New macro.
453 * include/grub/parser.h (grub_parser_class): Removed.
454 (grub_parser_register): Likewise.
455 (grub_parser_unregister): Likewise.
456 (grub_parser_get_current): Likewise.
457 (grub_parser_set_current): Likewise.
458 (grub_register_rescue_parser): Likewise.
459 (grub_rescue_parse_line): New function.
460 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
461 * include/grub/script_sh.h (grub_script_function_list): New variable
463 (FOR_SCRIPT_FUNCTIONS): New macro.
464 (grub_script_function_iterate): Removed.
465 (grub_normal_parse_line): New prototype.
466 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
467 (FOR_DISABLED_TERM_INPUTS): Likewise.
468 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
469 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
470 * include/grub/video.h (grub_video_adapter): Move 'next' to first
472 (grub_video_register): Inline.
473 (grub_video_unregister): Likewise.
474 (grub_video_adapter_list): New variable declaration.
475 (grub_video_iterate): Removed.
476 (FOR_VIDEO_ADAPTERS): New macro.
477 * kern/dl.c (grub_dl_list): Removed. All users updated.
478 (grub_dl_iterate): Removed.
479 * kern/fs.c (grub_fs_list): Make global.
480 (grub_fs_register): Removed.
481 (grub_fs_unregister): Likewise.
482 (grub_fs_iterate): Likewise.
483 * kern/handler.c: Removed.
484 * kern/list.c (grub_list_pop): Removed.
485 (grub_list_iterate): Likewise.
486 (grub_list_insert): Likewise.
487 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
488 (grub_prio_list_insert): Don't use grub_list_insert.
489 * kern/main.c (grub_register_rescue_parser): Don't call
490 grub_register_rescue_parser.
491 * kern/parser.c (grub_parser_class): Removed.
492 (grub_parser_execute): Use grub_rescue_parse_line.
493 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
494 (grub_rescue_parser): Removed.
495 (grub_register_rescue_parser): Likewise.
496 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
497 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
498 (grub_auth_check_authentication): Likewise.
499 * normal/completion.c (iterate_command): Removed.
500 (grub_normal_do_completion): Use FOR_COMMANDS.
501 * normal/handler.c: Removed.
502 * normal/main.c (read_config_file): Remove parser changing.
503 (grub_normal_execute): Don't call read_handler_list.
504 (grub_normal_read_line_real): Statically allocate prompt.
505 (grub_cmdline_run): Use grub_normal_parse_line.
506 (GRUB_MOD_FINI): Don't call free_handler_list.
507 * normal/menu_entry.c (run): Likewise.
508 * script/function.c (grub_script_function_list): Make global.
509 (grub_script_function_iterate): Removed.
510 * script/main.c (grub_normal_parse_line): Make global.
511 (grub_sh_parser): Removed.
512 (GRUB_MOD_INIT): Likewise.
513 (GRUB_MOD_FINI): Likewise.
514 * tests/lib/functional_test.c (grub_functional_test): Use
516 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
517 (grub_test_run): Use FOR_LIST_ELEMENTS.
518 * tests/lib/unit_test.c (main): Likewise.
519 * util/deviceiter.c (grub_util_iterate_devices): Don't use
521 * util/grub-fstest.c (grub_term_input_class): Removed.
522 (grub_term_output_class): Likewise.
523 * util/grub-probe.c: Likewise.
524 * util/i386/pc/grub-setup.c: Likewise.
525 * util/sparc64/ieee1275/grub-setup.c: Likewise.
526 * util/grub-script-check.c (main): Don't call grub_init_all and
528 * video/video.c (grub_video_adapter_list): Make global.
529 (grub_video_register): Removed.
530 (grub_video_unregister): Likewise.
531 (grub_video_iterate): Likewise.
533 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
535 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
536 reported by Henrique Ferreiro.
538 2010-06-09 Robert Millan <rmh@gnu.org>
540 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
541 ones, when both are available.
543 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
545 Make --version uniform and avoid hard-coded program name.
547 * util/grub-mkimage.c (main): Use `program_name' instead of
549 * util/i386/pc/grub-setup.c (main): Likewise.
550 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
551 * util/grub-install.in: Save the basename of $0 in $self, and use the
552 latter in informational messages. Use the same format for --version
553 as the binary programs.
554 * util/grub-mkconfig.in: Likewise.
555 * util/grub-mkrescue.in: Likewise.
556 * util/grub-reboot.in: Likewise.
557 * util/grub-set-default.in: Likewise.
558 * util/i386/efi/grub-install.in: Likewise.
559 * util/ieee1275/grub-install.in: Likewise.
560 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
562 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
564 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
565 embedding area. Use <= instead of == when checking for non-emptiness.
567 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
569 * configure.ac: Add `.' to the directories searched for unifont.
571 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
573 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
576 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
578 * docs/grub.texi (History): Expand to cover GRUB 2.
579 (Serial terminal): Refer to `terminal_input' and `terminal_output'
580 commands, not `terminal'.
582 (terminal_input): New section.
583 (terminal_output): New section.
584 (uppermem): New section (stub).
585 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
587 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
589 * docs/grub.texi (Security): Menu entries are unrestricted by
590 default, not restricted to superusers as I had previously thought.
591 Reword to account for this.
593 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
595 * kern/emu/misc.c (device_mapper_null_log): New function.
596 (grub_device_mapper_supported): New function.
597 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
599 * kern/emu/hostdisk.c (find_partition_start): Check whether
600 device-mapper is supported before trying to use it.
601 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
603 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
605 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
606 (File name syntax): Likewise.
607 (help): --all is no longer supported in GRUB 2. Be more precise
608 about pattern matching.
610 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
612 * normal/completion.c (grub_normal_do_completion): When completing
613 arguments to "set" and the current word contains an equals sign,
614 skip to after the equals sign before starting completion.
616 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
618 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
620 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
622 * docs/grub.texi (Network): New section.
623 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
624 `(nd)' as in GRUB Legacy.
625 (pxe_unload): New section.
627 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
629 * docs/grub.texi (Troubleshooting): `echo' is not usually available
630 in the rescue shell, so recommend using `set' instead. Thanks,
633 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
635 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
636 (password): New section.
637 (password_pbkdf2): New section.
638 (search): New section.
639 (Security): New section.
640 (Troubleshooting): New section, currently very incomplete.
641 (Invoking grub-mkpasswd-pbkdf2): New section.
642 (Internals): New section, currently very incomplete.
644 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
646 * util/grub.d/00_header.in: Add some more quoting (of
647 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
649 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
651 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
653 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
654 to `count', fixing variable shadowing that broke the -c option.
656 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
658 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
659 in case they contain spaces.
661 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
663 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
664 "part_" to partmap module names, in line with grub-install.
665 Reported by: Jindřich Makovička (Debian bug #584426).
667 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
669 * util/grub-mkimage.c: Make target-related error messages slightly
670 more helpful; -O talks about "format". Explicitly point to the use
671 of -O if no target is specified.
672 Reported by: Didier Raboud (Debian bug #584415).
674 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
676 * INSTALL: Document several build requirements for optional features
677 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
679 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
681 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
682 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
683 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
685 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
687 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
688 Thanks to Jordan Uggla for spotting this.
690 2010-06-02 Aleš Nesrsta <starous@volny.cz>
692 Finally make USB usable.
694 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
695 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
696 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
697 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
698 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
699 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
700 (GRUB_OHCI_FSMPS): Likewise.
701 (GRUB_OHCI_PERIODIC_START): Likewise.
702 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
703 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
704 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
705 (GRUB_OHCI_SET_PORT_RESET): Likewise.
706 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
707 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
708 (grub_ohci_transaction): Likewise.
709 (grub_ohci_transfer): Improve condition detection algorithms.
710 Handle toggle property. Program the transactions correctly.
711 Improve error handling. Various important fixups.
712 (grub_ohci_portstatus): Put register writes in right order.
713 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
714 (grub_uhci_transfer): Don't show "failed" message on success.
715 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
717 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
719 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
720 before initialization is completed. Use IN direction for empty
721 transfers. Use last_trans and compute toggle.
722 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
723 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
724 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
725 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
726 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
727 (grub_usb_device): Increase toggle to 256.
728 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
729 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
730 GRUB_USBMS_SUBCLASS_SFF8070.
731 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
732 (grub_scsi_inquiry): New member page and alloc_length.
733 (grub_scsi_request_sense): New structure.
734 (grub_scsi_request_sense_data): Likewise.
735 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
737 * disk/scsi.c (grub_scsi_request_sense): New function.
738 (grub_scsi_test_unit_ready): Likewise.
739 (grub_scsi_inquiry): Fill new fields.
740 (grub_scsi_read_capacity): Likewise.
741 (grub_scsi_read10): Add request sense at the end.
742 (grub_scsi_read12): Likewise.
743 (grub_scsi_write10): Likewise.
744 (grub_scsi_write12): Likewise.
745 (grub_scsi_open): Add Test Unit Ready.
746 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
747 Support additional subclasses. Con't clear halt yet. Activate the
748 proper config. Calculate LUNs correctly.
749 (grub_usbms_transfer): Various important fixups.
751 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
753 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
754 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
755 (grub_ohci_fini_hw): New function.
756 (grub_ohci_restore_hw): Likewise.
757 (GRUB_MOD_INIT(ohci)): Register preboot hook.
758 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
759 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
761 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
763 Dedicated DMA allocations.
765 * bus/pci.c (grub_memalign_dma32): New function
766 (grub_dma_free): Likewise.
767 (grub_dma_get_virt): Likewise.
768 (grub_dma_get_phys): Likewise.
769 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
770 (grub_ohci_pci_iter): Use dma32_alloc.
771 (grub_ohci_transfer): Likewise.
772 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
773 (grub_usb_bulk_readwrite): Likewise.
774 * include/grub/pci.h: Add declarations.
776 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
780 * bus/cs5536.c: New file.
781 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
782 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
783 (cs5536_mod_SOURCES): New variable.
784 (cs5536_mod_CFLAGS): Likewise.
785 (cs5536_mod_LDFLAGS): Likewise.
786 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
788 (kernel_img_SOURCES): Add bus/cs5536.c.
789 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
791 (usb_mod_SOURCES): New variable.
792 (usb_mod_CFLAGS): New variable.
793 (usb_mod_LDFLAGS): New variable.
794 (usbtest_mod_SOURCES): New variable.
795 (usbtest_mod_CFLAGS): New variable.
796 (usbtest_mod_LDFLAGS): New variable.
797 (ohci_mod_SOURCES): New variable.
798 (ohci_mod_CFLAGS): New variable.
799 (ohci_mod_LDFLAGS): New variable.
800 (usbms_mod_SOURCES): New variable.
801 (usbms_mod_CFLAGS): New variable.
802 (usbms_mod_LDFLAGS): New variable.
803 (usb_keyboard_mod_SOURCES): New variable.
804 (usb_keyboard_mod_CFLAGS): New variable.
805 (usb_keyboard_mod_LDFLAGS): New variable.
806 * include/grub/smbus.h: New file.
807 * include/grub/cs5536.h: New file.
809 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
811 * util/grub.d/00_header.in: Add safety check to make sure that
812 ${locale_dir} exists before trying to probe it.
814 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
816 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
817 per the GNU Coding Standards; this is now too obscure to be worth
820 (chainloader): Remove cross-reference to `SCO UnixWare'.
822 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
824 * docs/grub.texi (Chain-loading): New section.
825 (DOS/Windows): New section, borrowed from GRUB Legacy with details
827 (SCO UnixWare): Likewise.
829 (chainloader): Add reference to `Block list syntax'.
830 (drivemap): New section.
831 (parttool): New section.
833 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
835 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
837 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
838 (Installing GRUB using grub-install): Remove reference to the grub
839 shell; mention `grub-mkimage' and `grub-setup' instead.
840 (Invoking grub-install): Likewise.
841 (Interface): Add reference to `Menu entry editor'.
842 (serial): Remove `--device' option.
844 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
846 * docs/grub.texi (Configuration): New section, documenting
847 configuration file generation using grub-mkconfig. I've left a slot
848 for documenting the full shell scripting format but have not yet
849 started on writing that up.
850 (Invoking grub-mkconfig): New section.
852 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
854 * docs/grub.texi (direntry): Remove grub-terminfo reference.
855 (GNU GRUB manual): Likewise.
856 (General commands): Update description of `terminfo' for GRUB 2.
858 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
860 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
861 (GRUB_MOD_INIT): Fix capitalisation.
862 * docs/grub.texi (Command-line and menu entry commands): Document
863 gettext and gptsync commands.
865 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
867 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
868 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
870 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
872 Add btrfs probing support, currently only in the single-device case.
874 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
876 (grub_guess_root_device): Call find_root_device_from_mountinfo
877 before looking in /dev.
879 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
881 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
882 GRUB_DISK_SIZE_UNKNOWN.
883 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
885 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
887 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
888 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
889 corrupted or not synced properly.
891 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
893 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
894 Reported by: Seth Goldberg.
896 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
898 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
900 Reported by: Seth Goldberg.
902 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
904 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
905 Reported by: Seth Goldberg.
907 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
909 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
910 64-bit address as signed on MIPS.
912 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
914 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
917 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
919 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
921 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
922 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
923 * kern/misc.c (__enable_execute_stack): Disable on
926 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
928 Make grub-probe work with symbolic links under /dev/mapper as well
929 as with real block devices. The Linux world seems to be (at best)
930 in transition here, and GRUB shouldn't get caught in the middle.
932 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
935 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
937 * util/grub-script-check.c (main): Ensure defined behaviour on empty
938 input files (in which case exit zero).
940 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
942 * kern/emu/misc.c (canonicalize_file_name): realpath can still
943 return NULL for various reasons even if it has a maximum-length
944 buffer: for example, there might be a symlink loop, or the path
945 might exceed PATH_MAX. If this happens, return NULL.
947 2010-05-27 Robert Millan <rmh@gnu.org>
949 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
950 partmap module to handle cross-partmap setups.
951 Reported by Orestes Mas. Gràcies!
953 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
955 * util/grub-mkrescue.in: Initialise override_dir rather than
956 assuming that it's unset or empty in the environment.
958 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
960 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
961 variable index into p_index to suppress a warning with -Wshadow.
963 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
965 * INSTALL: Added flex >= 2.5.35 requirement.
967 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
969 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
971 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
975 * commands/i386/cmostest.c: New file.
976 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
977 (cmostest_mod_SOURCES): New variable.
978 (cmostest_mod_CFLAGS): Likewise.
979 (cmostest_mod_LDFLAGS): Likewise.
980 * conf/i386-pc.rmk: Likewise.
981 * docs/grub.texi (Vendor power-on keys): New section.
982 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
983 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
984 and GRUB_BUTTON_CMOS_ADDRESS.
985 * util/grub.d/00_header.in: Handle powering-on by separate button.
987 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
989 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
990 Removed drawing_scrollbar argument. All users updated
992 Reported by Jo Shields
994 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
996 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
997 buffer since gfxterm handles double repaint.
999 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1001 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
1002 * term/gfxterm.c (real_scroll): Likewise.
1004 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1006 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
1007 before calling BIOS.
1009 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1011 * include/grub/i18n.h: Always enable grub_gettext.
1013 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1015 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
1016 partition naming style.
1018 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
1020 * util/grub-mkconfig.in: Fix handling of -o so that it works when
1021 not the first option.
1023 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
1025 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
1027 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
1029 * util/misc.c: Move inclusion of <limits.h> to ...
1030 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
1032 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
1034 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
1035 Fix merge error in NetBSD code.
1036 (find_partition_start) [__NetBSD__]: Likewise.
1038 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
1040 Fix grub-mkrescue usage unit testing.
1042 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
1044 2010-05-18 Christian Franke <franke@computer.org>
1046 * util/grub.d/10_windows.in: Use path names instead of
1047 drive letters to prevent warning from Cygwin 1.7.
1048 Add drivemap command to menuentry if needed.
1050 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
1052 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
1053 gnumach and gnumach.gz.
1055 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1057 * include/grub/i18n.h (gettext): Inline instead of using #define.
1058 (grub_gettext): Likewise.
1061 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1063 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
1064 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
1065 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
1066 (main): Add a slash after pkglibdirroot.
1068 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1070 * util/grub-install.in: Add missing "in" keyword.
1072 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1074 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
1075 Reported by: Seth Goldberg.
1077 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1079 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
1081 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1083 * configure.ac: Check for Linux device-mapper support.
1085 * util/hostdisk.c (device_is_mapped): New function.
1086 (find_partition_start): New function, partly broken out from
1087 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
1088 device-mapper support added.
1089 (linux_find_partition): Use find_partition_start.
1090 (convert_system_partition_to_system_disk): Add `st' argument.
1091 Support Linux /dev/mapper/* devices if device-mapper support is
1092 available; only DM-RAID devices are understood at present.
1093 (find_system_device): Add `st' argument. Pass it to
1094 convert_system_partition_to_system_disk.
1095 (grub_util_biosdisk_get_grub_dev): Pass stat result to
1096 find_system_device and convert_system_partition_to_system_disk. Use
1097 find_partition_start.
1099 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
1100 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
1101 * util/deviceiter.c [__linux__]: Define MINOR.
1102 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
1103 * util/mkdevicemap.c (grub_putchar): New function.
1104 (grub_getkey): New function.
1105 (grub_refresh): New function.
1106 (main): Set debug=all if -v -v is used.
1108 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1110 Fix build with non-GNU libcs.
1112 * util/misc.c (canonicalize_file_name): Move to ...
1113 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
1114 grub_make_system_path_relative_to_its_root.
1116 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1118 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
1119 we handle finding grub-mkimage. Default to finding grub-mkimage in
1120 ${bindir} with program_transform_name applied, and provide a
1121 --grub-mkimage option to override this.
1123 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1125 Remove grub-mkisofs.
1127 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
1128 (grub_mkisofs_SOURCES): Removed.
1129 (grub_mkisofs_CFLAGS): Removed.
1130 * util/mkisofs/defaults.h: Removed.
1131 * util/mkisofs/eltorito.c: Likewise.
1132 * util/mkisofs/exclude.h: Likewise.
1133 * util/mkisofs/hash.c: Likewise.
1134 * util/mkisofs/include/: Likewise.
1135 * util/mkisofs/include/fctldefs.h: Likewise.
1136 * util/mkisofs/include/mconfig.h: Likewise.
1137 * util/mkisofs/include/prototyp.h: Likewise.
1138 * util/mkisofs/include/statdefs.h: Likewise.
1139 * util/mkisofs/iso9660.h: Likewise.
1140 * util/mkisofs/joliet.c: Likewise.
1141 * util/mkisofs/match.c: Likewise.
1142 * util/mkisofs/match.h: Likewise.
1143 * util/mkisofs/mkisofs.c: Likewise.
1144 * util/mkisofs/mkisofs.h: Likewise.
1145 * util/mkisofs/msdos_partition.h: Likewise.
1146 * util/mkisofs/multi.c: Likewise.
1147 * util/mkisofs/name.c: Likewise.
1148 * util/mkisofs/rock.c: Likewise.
1149 * util/mkisofs/tree.c: Likewise.
1150 * util/mkisofs/write.c: Likewise.
1152 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1154 Unify grub-mkimage accross platforms.
1156 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
1157 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
1158 (grub_mkelfimage_SOURCES): Removed.
1159 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
1160 (util/grub-mkimage.c_DEPENDENCIES): .. this.
1161 (bin_UTILITIES): Add grub-mkimage.
1162 (grub_mkimage_SOURCES): New variable.
1163 (kernel_img_HEADERS): Remove machine/kernel.h.
1164 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
1165 (pkglib_PROGRAMS): Add kernel.img.
1166 (kernel_img_HEADERS): Add machine/kernel.h.
1167 (kernel_img_FORMAT): Removed.
1168 (bin_UTILITIES): Remove grub-mkimage.
1169 (grub_mkimage_SOURCES): Removed.
1170 (grub_mkimage_CFLAGS): Likewise.
1171 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1172 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
1173 (pkglib_PROGRAMS): Add kernel.img.
1174 (bin_UTILITIES): Remove grub-mkimage.
1175 (grub_mkimage_SOURCES): Removed.
1176 (grub_mkimage_CFLAGS): Likewise.
1177 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1178 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
1179 (pkglib_PROGRAMS): Add kernel.img.
1180 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
1181 (pkglib_PROGRAMS): Add kernel.img.
1182 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
1183 (grub_mkimage_SOURCES): Removed.
1184 (grub_mkimage_CFLAGS): Likewise.
1185 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1186 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
1187 (pkglib_PROGRAMS): Add kernel.img.
1188 (bin_UTILITIES): Remove grub-mkimage.
1189 (grub_mkimage_SOURCES): Removed.
1190 (grub_mkimage_CFLAGS): Likewise.
1191 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1192 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
1193 (grub_mkimage_SOURCES): Removed.
1194 (grub_mkimage_CFLAGS): Likewise.
1195 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1196 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
1197 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
1198 (grub_pe32_optional_header): ... this.
1199 (grub_pe64_optional_header): ... and this. All users updated.
1200 (GRUB_PE32_PE32_MAGIC): Split into ..
1201 (GRUB_PE32_PE32_MAGIC): .. this.
1202 (GRUB_PE32_PE64_MAGIC): .. and this.
1203 (GRUB_PE32_SIGNATURE_SIZE): New definition.
1204 * include/grub/elf.h (PT_GNU_STACK): New definition.
1205 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
1206 * include/grub/i386/efi/kernel.h: Likewise.
1207 * include/grub/i386/kernel.h: Likewise.
1208 * include/grub/i386/pc/kernel.h: Likewise.
1209 * include/grub/i386/qemu/boot.h: Likewise.
1210 * include/grub/mips/kernel.h: Likewise.
1211 * include/grub/mips/qemu-mips/kernel.h: Likewise.
1212 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
1213 * include/grub/powerpc/kernel.h: Likewise.
1214 * include/grub/sparc64/ieee1275/boot.h: Likewise.
1215 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
1216 * include/grub/sparc64/kernel.h: Likewise.
1217 * include/grub/x86_64/efi/kernel.h: Likewise.
1218 * include/grub/x86_64/kernel.h: Likewise.
1219 * include/grub/offsets.h: New file.
1220 * include/grub/kernel.h (grub_module_info): Split into ...
1221 (grub_module_info32): ... this.
1222 (grub_module_info64): ... and this.
1223 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
1224 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
1225 (grub_boot_blocklist): Moved from here ...
1226 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
1227 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
1228 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
1229 * include/grub/types.h (grub_target_to_host16): Removed.
1230 (grub_target_to_host32): Likewise.
1231 (grub_target_to_host64): Likewise.
1232 (grub_host_to_target16): Likewise.
1233 (grub_host_to_target32): Likewise.
1234 (grub_host_to_target64): Likewise.
1235 (grub_host_to_target_addr): Likewise.
1237 Support grub-mkrescue for efi, coreboot and qemu.
1239 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
1240 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
1241 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
1242 * util/grub-mkrawimage.c: Moved from here ...
1243 * util/grub-mkimage.c: ... here. All users updated.
1244 (ALIGN_ADDR): Use image_target.
1245 (TARGET_NO_FIELD): New const.
1246 (image_target_desc): New type.
1247 (image_targets): New array.
1248 (grub_target_to_host64): Use image_target.
1249 (grub_target_to_host32): Likewise.
1250 (grub_target_to_host16): Likewise.
1251 (grub_host_to_target64): Likewise.
1252 (grub_host_to_target32): Likewise.
1253 (grub_host_to_target16): Likewise.
1254 (grub_host_to_target_addr): Likewise.
1255 (generate_image): Handle multiimage.
1256 (main): Require -O parameter. All users updated.
1257 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
1258 util/efi/grub-mkimage.c
1259 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
1260 New option --rom-directory.
1262 * util/i386/efi/grub-mkimage.c: Removed.
1263 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
1264 (grub_target_to_host32): Likewise.
1265 (grub_target_to_host64): Likewise.
1266 (grub_host_to_target16): Likewise.
1267 (grub_host_to_target32): Likewise.
1268 (grub_host_to_target64): Likewise.
1269 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
1270 (grub_target_to_host32): Likewise.
1271 (grub_target_to_host64): Likewise.
1272 (grub_host_to_target16): Likewise.
1273 (grub_host_to_target32): Likewise.
1274 (grub_host_to_target64): Likewise.
1276 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
1278 Source tree is reorganized for emu build.
1280 * include/grub/util/console.h: Move from here...
1281 * include/grub/emu/console.h: ...to here.
1282 * include/grub/util/getroot.h: Move from here...
1283 * include/grub/emu/getroot.h: ...to here.
1284 * include/grub/util/hostdisk.h: Move from here...
1285 * include/grub/emu/hostdisk.h: ...to here.
1286 * util/console.c: Move from here...
1287 * kern/emu/console.c: ...to here.
1288 * util/getroot.c: Move from here...
1289 * kern/emu/getroot.c: ...to here.
1290 * util/grub-emu.c: Move from here...
1291 * kern/emu/main.c: ...to here.
1292 * util/hostdisk.c: Move from here...
1293 * kern/emu/hostdisk.c: ...to here.
1294 * util/hostfs.c: Move from here...
1295 * kern/emu/hostfs.c: ...to here.
1296 * util/mm.c: Move from here...
1297 * kern/emu/mm.c: ...to here.
1298 * util/pci.c: Move from here...
1299 * bus/emu/pci.c: ...to here.
1300 * util/sdl.c: Move from here...
1301 * video/emu/sdl.c: ...to here.
1302 * util/time.c: Move from here...
1303 * kern/emu/time.c: ...to here.
1304 * util/usb.c: Move from here...
1305 * bus/usb/emu/usb.c: ...to here.
1307 * include/grub/emu/misc.h: New header for grub-emu functions.
1308 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
1310 * conf/any-emu.rmk: Rule updates for above renames.
1311 * conf/common.rmk: Likewise.
1312 * conf/i386-pc.rmk: Likewise.
1313 * conf/i386-qemu.rmk: Likewise.
1314 * conf/mips.rmk: Likewise.
1315 * conf/sparc64-ieee1275.rmk: Likewise.
1316 * conf/x86-efi.rmk: Likewise.
1318 * disk/lvm.h: #include updates for above renames.
1319 * util/grub-mkrelpath.c: Likewise.
1320 * util/grub-probe.c: Likewise.
1321 * util/i386/pc/grub-setup.c: Likewise.
1322 * util/sparc64/ieee1275/grub-setup.c: Likewise.
1323 * kern/emu/console.c: Likewise.
1324 * kern/emu/getroot.c: Likewise.
1325 * kern/emu/hostdisk.c: Likewise.
1326 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
1328 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
1329 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
1330 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
1331 * util/misc.c: Remove grub-emu functions.
1333 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1336 Reported by: Thorsten Grützmacher.
1338 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
1340 (circprog_set_property): Register and unregister timeout hook.
1341 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
1342 (label_destroy): Free template. and unregister hook.
1343 (label_set_state): New function.
1344 (label_set_property): Handle templates and hooks.
1345 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
1347 (progress_bar_set_property): Register and unregister timeout hook.
1348 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
1349 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
1350 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
1351 (update_timeout_visit): Removed.
1352 (update_timeouts): New function.
1353 (redraw_timeouts): Likewise.
1354 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
1355 (grub_gfxmenu_clear_timeout): Likewise.
1356 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
1357 (grub_gfxmenu_timeout_notify): Likewise.
1358 (grub_gfxmenu_timeout_notifications): New external variable.
1359 (grub_gfxmenu_timeout_register): New function.
1360 (grub_gfxmenu_timeout_unregister): Likewise.
1362 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1364 Transform (broken) vga terminal into (working) vga video driver.
1366 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
1367 video/i386/pc/vga.c.
1368 * include/grub/video.h (grub_video_driver_id):
1369 Add GRUB_VIDEO_DRIVER_VGA.
1370 * term/i386/pc/vga.c: Renamed to ...
1371 * video/i386/pc/vga.c: ...this
1372 (DEBUG_VGA): Removed.
1373 (CHAR_WIDTH): Likewise.
1374 (CHAR_HEIGHT): Likewise.
1375 (TEXT_WIDTH): Likewise.
1376 (TEXT_HEIGHT): Likewise.
1377 (DEFAULT_FG_COLOR): Likewise.
1378 (DEFAULT_BG_COLOR): Likewise.
1379 (colored_char): Likewise.
1382 (cursor_state): Likewise.
1383 (fg_color): Likewise.
1384 (bg_color): Likewise.
1385 (text_buf): Likewise.
1388 (framebuffer): New variable.
1389 (set_read_map): Disabled.
1390 (setup): New variable.
1391 (is_target): Likewise.
1392 (grub_vga_mod_init): Likewise.
1393 (grub_vga_mod_fini): Likewise.
1394 (check_vga_mem): Likewise.
1395 (write_char): Likewise.
1396 (write_cursor): Likewise.
1397 (scroll_up): Likewise.
1398 (grub_vga_putchar): Likewise.
1399 (grub_vga_getcharwidth): Likewise.
1400 (grub_vga_getwh): Likewise.
1401 (grub_vga_getxy): Likewise.
1402 (grub_vga_gotoxy): Likewise.
1403 (grub_vga_cls): Likewise.
1404 (grub_vga_setcolorstate): Likewise.
1405 (grub_vga_setcursor): Likewise.
1406 (grub_video_vga_init): New function.
1407 (grub_video_vga_setup): Likewise.
1408 (grub_video_vga_fini): Likewise.
1409 (update_target): Likewise.
1410 (grub_video_vga_blit_bitmap): Likewise.
1411 (grub_video_vga_blit_render_target): Likewise.
1412 (grub_video_vga_set_active_render_target): Likewise.
1413 (grub_video_vga_get_active_render_target): Likewise.
1414 (grub_video_vga_swap_buffers): Likewise.
1415 (grub_video_vga_set_palette): Likewise.
1416 (grub_video_vga_get_info_and_fini): Likewise.
1417 (grub_vga_term): Removed.
1418 (grub_video_vga_adapter): New variable.
1419 (GRUB_MOD_INIT): Register a video driver instead of terminal.
1420 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
1422 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1424 * video/readers/jpeg.c: Indented.
1426 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1428 Various jpeg cleanups.
1430 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
1431 (grub_jpeg_decode_quan_table): Use sizeof.
1432 (grub_jpeg_decode_du): Use ARRAY_SIZE.
1434 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
1436 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
1437 tables. Ignore non-last ac bit.
1438 (grub_jpeg_decode_quan_table): Likewise.
1440 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1442 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1443 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
1444 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1445 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
1446 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
1447 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
1449 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1451 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
1454 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1456 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
1458 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1460 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
1463 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1465 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
1468 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1470 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
1473 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1475 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
1477 2010-05-01 Christian Franke <franke@computer.org>
1479 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
1480 Remove broken Cygwin path conversion.
1481 * util/misc.c: [__CYGWIN__] Add include and define.
1482 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
1484 (make_system_path_relative_to_its_root): Simplify loop, replace early
1486 [__CYGWIN__] Add conversion to win32 path.
1487 Include "/" case in trailing slash removal.
1489 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1491 * kern/main.c (grub_load_config): Fix copy-pasted comment.
1492 Reported by: Seth Goldberg
1494 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1496 * commands/help.c (grub_cmd_help): Fix a typo.
1497 Reported by: Seth Goldberg
1499 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1501 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
1503 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
1504 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
1505 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
1506 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
1507 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
1508 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
1509 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
1510 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
1511 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
1512 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
1513 * normal/context.c (GRUB_MOD_INIT): Likewise.
1514 * normal/main.c (GRUB_MOD_INIT): Likewise.
1515 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
1516 * term/serial.c (GRUB_MOD_INIT): Likewise.
1517 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
1519 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1521 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
1524 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1526 * commands/iorw.c: New file.
1527 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
1528 (iorw_mod_SOURCES): New variable.
1529 (iorw_mod_CFLAGS): Likewise.
1530 (iorw_mod_LDFLAGS): Likewise.
1532 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1536 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
1537 * normal/main.c (hotkey_aliases): New variable.
1538 (grub_normal_add_menu_entry): Parse "--hotkey".
1539 * normal/menu_text.c (run_menu): Handle hotkeys.
1541 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1543 * kern/i386/coreboot/init.c (grub_machine_init): Call
1544 grub_machine_mmap_init on qemu.
1546 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1548 * boot/i386/qemu/boot.S: Add a missing .code16.
1550 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1552 Use LBIO on coreboot.
1554 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
1555 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
1556 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
1558 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
1559 grub_machine_mmap_init on coreboot.
1560 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
1561 GRUB_LINUXBIOS_MEMBER_LINK.
1562 (grub_machine_mmap_iterate): Fix declaration.
1563 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
1565 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1567 Split coreboot and multiboot ports.
1569 * conf/i386-multiboot.rmk: New file.
1570 * configure.ac: Add multiboot port.
1571 * include/grub/i386/multiboot/boot.h: New file.
1572 * include/grub/i386/multiboot/console.h: Likewise.
1573 * include/grub/i386/multiboot/init.h: Likewise.
1574 * include/grub/i386/multiboot/kernel.h: Likewise.
1575 * include/grub/i386/multiboot/loader.h: Likewise.
1576 * include/grub/i386/multiboot/memory.h: Likewise.
1577 * include/grub/i386/multiboot/serial.h: Likewise.
1578 * include/grub/i386/multiboot/time.h: Likewise.
1579 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
1580 * loader/multiboot.c: Likewise.
1581 * loader/multiboot_mbi2.c: Likewise.
1582 * util/grub-mkrescue.in: Generate multiboot rescue.
1584 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1586 * kern/parser.c (grub_parser_execute): Cope with read-only config.
1588 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1590 Merge handling of input and output terminals. Fix a hang.
1592 * commands/terminal.c (abstract_terminal): New struct.
1593 (handle_command): New function. Based on grub_cmd_terminal_input.
1594 (grub_cmd_terminal_input): Use handle_command.
1595 (grub_cmd_terminal_output): Use handle_command.
1597 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
1599 Fix comment handling.
1601 * tests/grub_script_comments.in: New testcase.
1602 * conf/tests.rmk: Rules for new testcase.
1603 * script/yylex.l: Updated flex rules.
1605 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
1607 * docs/grub.texi (play): Document that zero pitches produce rests.
1608 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
1611 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1613 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
1616 2010-04-26 Christian Franke <franke@computer.org>
1618 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
1619 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
1620 (grub_get_prefix): Remove function.
1621 * util/grub-emu.c (main): Replace grub_get_prefix () call by
1622 make_system_path_relative_to_its_root ().
1623 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
1625 2010-04-24 Christian Franke <franke@computer.org>
1627 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
1628 (kernel_img_LDFLAGS): Remove -static-libgcc.
1630 2010-04-24 Christian Franke <franke@computer.org>
1632 * configure.ac: Do not CHECK_BSS_START_SYMBOL
1633 and CHECK_END_SYMBOL if grub-emu is built.
1634 Unset TARGET_OBJ2ELF if grub-emu is built
1635 without module support.
1637 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
1641 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
1642 (grub_fstest_SOURCES): Likewise.
1643 (pkglib_MODULES): Add nilfs2.mod.
1644 (nilfs2_mod_SOURCES): New variable.
1645 (nilfs2_mod_CFLAGS): Likewise.
1646 (nilfs2_mod_LDFLAGS): Likewise.
1647 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1648 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1649 * fs/nilfs2.c: New file.
1651 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
1653 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
1656 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
1658 Add grub-mkconfig support for NetBSD.
1660 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
1661 * util/grub-mkconfig.in: export new NetBSD specific variables.
1662 * po/POTFILES-shell: added 10_netbsd.in.
1663 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
1665 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
1667 Fix emu build with grub-emu-pci and grub-emu-modules.
1669 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
1671 * include/grub/libpciaccess.h: New file.
1672 * conf/any-emu.rmk: Update kernel headers for emu build.
1674 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1676 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
1678 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1680 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
1682 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1684 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
1685 Retrieve chosen/bootpath if bootpath isn't hardcoded.
1686 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
1687 util/ieee1275/ofpath.c.
1688 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
1689 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
1690 * include/grub/sparc64/ieee1275/boot.h
1691 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
1692 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
1693 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
1694 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
1696 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
1697 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
1698 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
1701 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
1703 * util/grub-mkconfig.in: Corrected two == equality tests.
1704 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
1705 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
1706 expect a number appended to it.
1707 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
1708 expects a number appended to it.
1710 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1712 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
1714 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1716 * util/hostdisk.c (make_device_name): Change to new partition naming.
1718 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1720 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
1722 2010-04-17 Christian Franke <franke@computer.org>
1724 * Makefile.in: Add missing localedir setting.
1726 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
1728 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
1729 mistake in r2156. Noticed by Anthony Fok.
1731 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
1733 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
1735 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
1737 Fix a spurious, uninitialized variable warning.
1739 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
1740 Initialize variable, shdr.
1741 (grub_freebsd_load_elfmodule): Likewise.
1742 (grub_freebsd_load_elf_meta): Likewise.
1744 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
1746 Fix for escaped dollar in double quoted strings.
1748 * script/yylex.l: Updated flex rules.
1749 * conf/tests.rmk: Rule for new testcase.
1750 * tests/grub_script_dollar.in: New testcase.
1752 2010-04-13 Carles Pina i Estany <carles@pina.cat>
1753 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
1755 Enclose all translated strings in grub.cfg in single quotes, and
1756 escape them appropriately (Ubuntu bug #552921).
1758 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
1759 * util/grub.d/10_hurd.in: Use it.
1760 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
1761 * util/grub.d/10_linux.in (linux_entry): Likewise.
1763 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1765 Fix cygwin compilation.
1767 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
1768 * include/grub/misc.h (__register_frame_info)
1769 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
1770 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
1771 * kern/misc.c (__register_frame_info)
1772 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
1773 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
1775 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1777 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
1779 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1781 Unify libgcc processing.
1783 * Makefile.in (kernel_img_LDFLAGS): New variable.
1784 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
1785 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
1787 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
1788 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
1789 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
1790 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
1791 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
1792 overwriting. Remove -lgcc and -static-libgcc
1793 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
1794 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
1795 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
1796 (kernel_img_LDFLAGS): Append instead of overwriting.
1797 Remove -lgcc and -static-libgcc
1798 * conf/sparc64-ieee1275.rmk: Likewise.
1799 * include/grub/powerpc/libgcc.h: Move to ...
1800 * include/grub/libgcc.h: .. this.
1801 * include/grub/libgcc.h: Don't export most of the function on x86.
1802 (__bswapsi2): New export.
1803 (__bswapdi2): Likewise.
1804 * include/grub/mips/libgcc.h: Removed.
1805 * include/grub/sparc64/libgcc.h: Likewise.
1807 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1809 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
1810 disk_info_msg (conflicts with gettexting into languages with cases).
1812 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
1814 Add grub-probe support for NetBSD.
1816 * util/getroot.c (find_root_device): Convert block device to
1817 character device on NetBSD.
1818 * util/probe.c (probe): Require character device on NetBSD.
1819 * util/hostdisk.c: NetBSD specific headers.
1820 (configure_device_driver): new function to tune device driver
1821 parameters (currently only for NetBSD floppy driver).
1822 (grub_util_biosdisk_open): NetBSD specific code (get disk size
1823 via disklabel ioctl).
1824 (open_device): call configure_device_driver on NetBSD.
1825 (convert_system_partition_to_system_disk): NetBSD specific code.
1826 (device_is_wholedisk): Likewise.
1827 (grub_util_biosdisk_get_grub_dev): Likewise.
1828 (make_device_name): Fixed a typo in bsd_part_str.
1829 * configure.ac: check for opendisk() and getrawpartition() on
1830 NetBSD and set LIBUTIL.
1831 * Makefile.in: add LIBUTIL to LIBS.
1833 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
1837 * util/grub-script-check.c: Better help message.
1839 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
1843 * configure.ac: Flex version check.
1844 * conf/common.rmk: Add -Wno-error to sh.mod.
1845 * script/yylex.l: Remove all #pragma.
1847 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1849 * include/grub/util/misc.h (canonicalise_file_name): Add missing
1851 Reported by: Seth Goldberg.
1853 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1855 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
1856 Rename "module" to "module2".
1857 Reported by: Seth Goldberg.
1859 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1861 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
1863 Reported by: Seth Goldberg.
1865 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1867 * lib/posix_wrap/locale.h: Add missing file.
1868 Reported by: Seth Goldberg.
1870 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1872 grub-emu module load support.
1874 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
1875 NO_DYNAMIC_MODULES switched to this.
1876 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
1878 * conf/any-emu.rmk: Generate symlist.
1879 (kernel_img_HEADERS): Add util/datetime.h.
1880 (kernel_img_HEADERS) [sdl]: Add sdl.h.
1881 (kernel_img_HEADERS) [libusb]: Add libusb.h.
1882 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
1883 kern/$(target_cpu)/cache.S.
1884 * configure.ac (grub-emu-modules): New option.
1885 * genmk.rb: Handle multiple source lists.
1886 * include/grub/sdl.h: New file.
1887 * include/grub/libusb.h: Likewise.
1888 * util/grub-emu.c (main): Hanle (host) root.
1889 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
1890 GRUB_ERR_UNKNOWN_DEVICE.
1891 * util/misc.c: Move mm functions to ...
1892 * util/mm.c: ... here. All users updated.
1894 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1896 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
1897 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
1899 (maintainer-clean): Remove libgcrypt-grub.
1901 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1903 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
1905 2010-04-09 EFI Coder <eficoder@hotmail.com>
1907 * normal/menu_text.c (print_message): Clean up the message and show
1908 the Fn information when on EFI
1909 * term/efi/console.c (grub_console_checkkey): Add F4 support.
1911 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1913 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
1915 * normal/crypto.c (read_crypto_list): Likewise.
1916 * normal/dyncmd.c (read_command_list): Likewise.
1917 * normal/term.c (read_terminal_list): Likewise.
1918 * normal/main.c (read_lists): Use explicit prefix.
1919 (read_lists_hook): Use read_lists.
1920 (grub_normal_execute): Likewise.
1922 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1924 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
1925 Reported by: Thomas Schmitt.
1926 Add -no-emul-boot to grub-mkisofs parameters.
1928 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1930 * font/font.c: Indented.
1932 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
1934 Elif support to GRUB script (by Deepak Vankadaru).
1936 * tests/grub_script_if.in: New testcase.
1937 * conf/tests.rmk: Rule for new testcase.
1938 * script/parser.y: Grammar rules for elif.
1940 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
1942 While and until loops support to GRUB script.
1944 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
1945 (grub_script_create_cmdwhile): New function prototype.
1946 (grub_script_execute_cmdwhile): New function prototype.
1947 * script/execute.c (grub_script_execute_cmdwhile): New function.
1948 * script/parser.y (command): New commands.
1949 (whilecmd): New grammar rule.
1950 (untilcmd): New grammar rule.
1951 * script/script.c (grub_script_create_cmdwhile): New function.
1952 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
1955 * tests/grub_script_while1.in: New testcase.
1956 * conf/tests.rmk: Rule for new testcase.
1958 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1960 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
1963 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
1965 GRUB_BACKGROUND support.
1967 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
1968 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
1970 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1972 Load fonts and modules for gfxmenu in grub-mkconfig.
1973 Idea by: Mario Vazquez
1975 * util/grub.d/00_header.in: Load pf2 and image modules.
1977 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1979 grub-mkconfig multiple terminal support.
1981 * util/grub-mkconfig.in: Handle multiple terminals correctly.
1982 * util/grub.d/00_header.in: Likewise.
1984 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1986 * Makefile.in: Specify files explicitly instead of using $< and $@ since
1987 we use cd $(srcdir).
1989 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
1991 * util/grub.d/10_linux.in: Only use the first word of
1992 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
1993 spaces in GRUB_DISTRIBUTOR.
1994 * util/grub.d/10_kfreebsd.in: Likewise.
1995 * util/grub.d/10_hurd.in: Likewise.
1997 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
1999 Fix unit testing framework for Qemu 0.12.
2001 * tests/util/grub-shell.in: Remove -serial stdio option.
2003 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2005 POSIX header file wrappers.
2007 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
2009 * lib/posix_wrap/ctype.h: Likewise.
2010 * lib/posix_wrap/errno.h: Likewise.
2011 * lib/posix_wrap/langinfo.h: Likewise.
2012 * lib/posix_wrap/limits.h: Likewise.
2013 * lib/posix_wrap/localcharset.h: Likewise.
2014 * lib/posix_wrap/stdint.h: Likewise.
2015 * lib/posix_wrap/stdio.h: Likewise.
2016 * lib/posix_wrap/stdlib.h: Likewise.
2017 * lib/posix_wrap/string.h: Likewise.
2018 * lib/posix_wrap/sys/types.h: Likewise.
2019 * lib/posix_wrap/unistd.h: Likewise.
2020 * lib/posix_wrap/wchar.h: Likewise.
2021 * lib/posix_wrap/wctype.h: Likewise.
2022 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
2023 (grub_script.yy.h): Likewise.
2024 * script/yylex.l: Remove POSIX emulation #defines.
2025 * Makefile.in (POSIX_CFLAGS): New variable.
2026 (GNULIB_UTIL_CFLAGS): Likewise.
2030 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
2031 (regexp_mod_SOURCES): New variable.
2032 (regexp_mod_CFLAGS): Likewise.
2033 (regexp_mod_LDFLAGS): Likewise.
2034 * commands/regexp.c: New file.
2035 * gnulib/regcomp.c: New file. Imported from gnulib.
2036 * gnulib/regex.c: Likewise.
2037 * gnulib/regex_internal.c: Likewise.
2038 * gnulib/regex_internal.h: Likewise.
2039 * gnulib/regexec.c: Likewise.
2040 * gnulib/regex.h: Likewise.
2042 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2044 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
2045 unsupported video mode types.
2047 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2049 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
2051 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2053 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
2054 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
2056 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2058 Remove unused grub_vga_get_font.
2060 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
2061 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
2063 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2065 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
2066 * include/grub/misc.h: Likewise.
2068 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2070 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
2071 for which failure is fatal.
2073 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2075 * util/grub-install.in: Use mkdir -p to create grub directory.
2076 * util/i386/efi/grub-install.in: Likewise.
2077 * util/ieee1275/grub-install.in: Likewise.
2079 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2081 * Makefile.in (LEX): new variable.
2083 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2085 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
2086 `=' and added double quotes on operands of this equality test.
2088 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2090 * Makefile.in (uninstall): Remove a leftover debug echo.
2091 Reported by: Grégoire Sutre
2093 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2095 MIPS multiboot2 support.
2097 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
2098 (multiboot2_mod_SOURCES): New variable.
2099 (multiboot2_mod_CFLAGS): Likewise.
2100 (multiboot2_mod_LDFLAGS): Likewise.
2101 (multiboot2_mod_ASFLAGS): Likewise.
2102 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
2104 (MULTIBOOT_ENTRY_REGISTER): Likewise.
2105 (MULTIBOOT_MBI_REGISTER): Likewise.
2106 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
2107 (MULTIBOOT_ELF32_MACHINE): Likewise.
2108 (MULTIBOOT_ELF64_MACHINE): Likewise.
2109 * include/grub/mips/multiboot.h: New file.
2110 * include/grub/video.h (grub_video_driver_id): New type
2111 GRUB_VIDEO_DRIVER_SM712.
2112 (grub_video_get_info_and_fini): Export.
2113 (grub_video_get_palette): Likewise.
2114 (grub_video_get_driver_id): Likewise.
2115 * include/multiboot2.h: Resynced with spec.
2116 * loader/i386/multiboot.c: Moved from here ...
2117 * loader/multiboot.c: ... here. All users updated.
2118 (grub_multiboot_boot): Use platform-specific macros.
2119 * loader/i386/multiboot_elfxx.c: Moved from here ...
2120 * loader/multiboot_elfxx.c: ... here. All users updated.
2121 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
2122 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
2123 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
2125 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2127 Import gnulib argp module.
2129 * gnulib/argp-ba.c: New file.
2130 * gnulib/argp-eexst.c: Likewise.
2131 * gnulib/argp-fmtstream.c: Likewise.
2132 * gnulib/argp-fmtstream.h: Likewise.
2133 * gnulib/argp-fs-xinl.c: Likewise.
2134 * gnulib/argp-help.c: Likewise.
2135 * gnulib/argp-namefrob.h: Likewise.
2136 * gnulib/argp-parse.c: Likewise.
2137 * gnulib/argp-pin.c: Likewise.
2138 * gnulib/argp-pv.c: Likewise.
2139 * gnulib/argp-pvh.c: Likewise.
2140 * gnulib/argp-version-etc.c: Likewise.
2141 * gnulib/argp-version-etc.h: Likewise.
2142 * gnulib/argp-xinl.c: Likewise.
2143 * gnulib/argp.h: Likewise.
2145 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2147 * kern/device.c (grub_device_iterate): Clear errors after failed
2150 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2152 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
2153 returned by firmware.
2155 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
2157 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
2158 compilation on coreboot and qemu
2160 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2162 * include/multiboot2.h: Resync with spec.
2164 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2166 Multiboot2 tag support
2168 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
2169 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
2170 Remove loader/multiboot_loader.c.
2171 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
2172 (grub_multiboot2_real_boot): Likewise.
2173 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
2174 (grub_get_multiboot_mmap_count): New proto.
2175 (grub_fill_multiboot_mmap): Likewise.
2176 (grub_multiboot_set_video_mode): Likewise.
2177 (grub_multiboot_set_console): Likewise.
2178 (grub_multiboot_load): Likewise.
2179 (grub_multiboot_load_elf): Likewise.
2180 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
2181 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
2182 * include/multiboot.h: Resynced with specification.
2183 * include/multiboot2.h: Resynced with specification.
2184 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
2185 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
2186 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
2187 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
2189 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
2190 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
2191 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
2193 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
2195 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
2196 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
2198 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
2199 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
2200 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
2202 * loader/i386/multiboot_mbi2.c: New file.
2204 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2208 * Makefile.in (GNULIB_CFLAGS): New variable.
2209 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
2210 (grub_script_check_CFLAGS): New variable.
2211 * gnulib/alloca.h: Resync with gnulib.
2212 * gnulib/error.c: Likewise.
2213 * gnulib/error.h: Likewise.
2214 * gnulib/fnmatch.c: Likewise.
2215 * gnulib/fnmatch_loop.c: Likewise.
2216 * gnulib/getdelim.c: Likewise.
2217 * gnulib/getline.c: Likewise.
2218 * gnulib/getopt.c: Likewise.
2219 * gnulib/getopt1.c: Likewise.
2220 * gnulib/getopt_int.h: Likewise.
2221 * gnulib/gettext.h: Likewise.
2222 * gnulib/progname.c: Likewise.
2223 * gnulib/progname.h: Likewise.
2225 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
2227 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
2228 which is the case with --disabled-nls.
2230 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
2231 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
2232 * util/misc.c: Likewise.
2233 * util/mkisofs/mkisofs.c: Likewise.
2234 * util/mkisofs/mkisofs.h: Likewise.
2236 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2238 Simplify Apple CC support.
2240 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
2241 Add 0 byte at the end not to have a symbol with empty target.
2242 * mmap/i386/pc/mmap_helper.S: Likewise.
2243 * genmk.rb: Ignore errors 2030 and 2050.
2244 * kern/i386/pc/startup.S: Use LOCAL when possible.
2246 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
2248 Testcase and the fix for final semicolon on cmdline.
2250 * tests/grub_script_final_semicolon.in: New testcase.
2251 * conf/tests.rmk: Rules for the new testcase.
2252 * script/parser.y: Grammar fix.
2254 2010-03-26 BVK Chaitanya <bvk@localhost>
2256 Blank lines testcase for GRUB script.
2258 * tests/grub_script_blanklines.in: New testcase.
2259 * conf/tests.rmk: Rules for the new testcase.
2261 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2265 * genmk.rb: Add -DGRUB_FILE to all C targets.
2266 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
2267 * include/grub/list.h: Likewise.
2268 * include/grub/misc.h: Likewise.
2269 * include/grub/mm.h: Likewise.
2270 * include/grub/test.h: Likewise.
2271 * kern/mm.c: Likewise.
2272 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
2274 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2276 Sunpc partitions support.
2278 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
2279 (grub_fstest_SOURCES): Likewise.
2280 (pkglib_MODULES): Add part_sunpc.mod.
2281 (part_sunpc_mod_SOURCES): New variable.
2282 (part_sunpc_mod_CFLAGS): Likewise.
2283 (part_sunpc_mod_LDFLAGS): Likewise.
2284 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
2285 * partmap/sunpc.c: New file.
2287 2010-03-26 BVK Chaitanya <bvk@localhost>
2289 For loop support to GRUB script.
2291 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
2292 (grub_script_create_cmdfor): New function prototype.
2293 (grub_script_execute_cmdfor): New function prototype.
2294 * script/execute.c (grub_script_execute_cmdfor): New function.
2295 * script/parser.y (command): New for command.
2296 (forcmd): New grammar rule.
2297 * script/script.c (grub_script_create_cmdfor): New function.
2298 * util/grub-script-check.c (grub_script_execute_cmdfor): New
2300 * tests/grub_script_for1.in: New testcase.
2301 * conf/tests.rmk: Rules for new testcase.
2303 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2307 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
2308 'partition' is NULL, grub_partition_get_start already does that.
2309 * commands/loadenv.c (check_blocklists): Likewise.
2310 (write_blocklists): Likewise.
2311 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
2312 (grub_fstest_SOURCES): Likewise.
2313 (pkglib_MODULES): Add part_bsd.mod.
2314 (part_bsd_mod_SOURCES): New variable.
2315 (part_bsd_mod_CFLAGS): Likewise.
2316 (part_bsd_mod_LDFLAGS): Likewise.
2317 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
2318 (grub_emu_SOURCES): Likewise.
2319 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2320 * include/grub/bsdlabel.h: New file.
2321 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
2323 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
2324 (grub_partition_map_list): New variable.
2325 (grub_partition_map_register): Inline.
2326 (grub_partition_map_unregister): Likewise.
2327 (FOR_PARTITION_MAPS): New macro.
2328 (grub_partition_map_iterate): Removed.
2329 (grub_partition_get_start): Handle nested partitions.
2330 * include/grub/msdos_partition.h: Remove bsd-related entries.
2331 (grub_pc_partition): Remove.
2332 * kern/disk.c (grub_disk_close): Free partition data.
2333 (grub_disk_adjust_range): Handle nested partitions.
2334 * kern/partition.c (grub_partition_map_probe): New function.
2335 (grub_partition_probe): Parse name to number, handle subpartitions.
2336 (get_partmap): New function.
2337 (grub_partition_iterate): Handle subpartitions.
2338 (grub_partition_get_name): Likewise.
2339 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
2340 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
2341 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
2342 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
2344 (acorn_partition_map_probe): Remove.
2345 (acorn_partition_map_get_name): Likewise.
2346 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
2348 Set 'index' to 0 since there can be only one partition entry per sector.
2349 (amiga_partition_map_probe): Remove.
2350 (amiga_partition_map_get_name): Likewise.
2351 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
2353 Set 'offset' and 'index' to real positions of partitions.
2354 (apple_partition_map_probe): Remove.
2355 (apple_partition_map_get_name): Likewise.
2356 * partmap/bsdlabel.c: New file.
2357 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
2359 Allocate 'data' so it can be correctly freed.
2360 Set 'index' to offset inside sector.
2361 (gpt_partition_map_probe): Remove.
2362 (gpt_partition_map_get_name): Likewise.
2363 * partmap/msdos.c (grub_partition_parse): Remove.
2364 (pc_partition_map_iterate): Don't force raw access.
2366 Make 'ext_offset' a local variable.
2367 (pc_partition_map_probe): Remove.
2368 (pc_partition_map_get_name): Remove.
2369 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
2371 (sun_partition_map_probe): Remove.
2372 (sun_partition_map_get_name): Likewise.
2373 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
2374 (grub_pcpart_type): Likewise.
2375 * util/hostdisk.c (open_device): Handle new numbering scheme.
2376 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
2377 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
2378 * util/grub-probe.c (probe_partmap): Handle nested paritions.
2379 * util/grub-install.in: Insert all subpartition modules.
2380 * util/ieee1275/grub-install.in: Likewise.
2382 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
2384 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
2387 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
2389 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
2391 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
2393 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
2394 match where 'make install' puts them.
2395 * util/i386/efi/grub-install.in: Likewise.
2397 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
2399 * .bzrignore: Add gentrigtables, grub-script-check,
2400 grub_script_check_init.c, grub_script_check_init.h, and
2403 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
2405 * kern/parser.c: Indented.
2407 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2409 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
2411 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2413 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
2414 alpha_mask_size == 0 case.
2416 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
2418 GRUB shell lexer and parser improvements.
2420 * conf/any-emu.rmk: Build rule updates.
2421 * conf/common.rmk: Likewise.
2422 * conf/i386-coreboot.rmk: Likewise.
2423 * conf/i386-efi.rmk: Likewise.
2424 * conf/i386-ieee1275.rmk: Likewise.
2425 * conf/i386-pc.rmk: Likewise.
2426 * conf/powerpc-ieee1275.rmk: Likewise.
2427 * conf/x86_64-efi.rmk: Likewise.
2429 * configure.ac: Configure check for flex.
2431 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
2433 (grub_lexer_param): Struct member updates.
2434 (grub_parser_param): Likewise.
2435 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
2436 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
2437 (grub_script_lexer_init): Prototype update.
2438 (grub_script_lexer_record_start): Likewise.
2439 (grub_script_lexer_record_stop): Likewise.
2440 (grub_script_lexer_yywrap): New function prototype.
2441 (grub_script_lexer_fini): Likewise.
2442 (grub_script_execute_argument_to_string): Removed by...
2443 (grub_script_execute_argument_to_argv): ...better version.
2445 * script/execute.c (ROUND_UPTO): New macro.
2446 (grub_script_execute_cmdline): Out of memory fixes.
2447 (grub_script_execute_menuentry): Likewise.
2448 (grub_script_execute_argument_to_string): Removed. Update all
2450 (grub_script_execute_argument_to_argv): ...better version.
2451 * script/function.c (grub_script_function_create): Use
2452 grub_script_execute_argument_to_argv instead of
2453 grub_script_execute_argument_to_string.
2455 * script/lexer.c (check_varstate): Removed.
2456 (check_textstate): Removed.
2457 (grub_script_lexer_record_start): Likewise.
2458 (grub_script_lexer_record_stop): Likewise.
2459 (recordchar): Replaced with...
2460 (grub_script_lexer_record): ...new function.
2461 (nextchar): Removed.
2462 (grub_script_lexer_init): Rewritten.
2463 (grub_script_yylex): Rewritten.
2464 (append_newline): New function.
2465 (grub_script_lexer_yywrap): New function.
2466 (grub_script_lexer_fini): New function.
2467 (grub_script_yyerror): Sets error flag.
2469 * script/yylex.l: New file.
2470 (grub_lexer_yyfree): Wrapper for flex yyffre.
2471 (grub_lexer_yyalloc): Likewise.
2472 (grub_lexer_yyrealloc): Likewise.
2473 * script/parser.y: Refactored.
2475 * script/script.c (grub_script_arg_add): Out of memory fixes.
2476 (grub_script_add_arglist): Likewise.
2477 (grub_script_create_cmdline): Likewise.
2478 (grub_script_create_cmdmenu): Likewise.
2479 (grub_script_add_cmd): Likewise.
2480 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
2481 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
2484 * tests/grub_script_echo1.in: New testcase.
2485 * tests/grub_script_vars1.in: New testcase.
2486 * tests/grub_script_echo_keywords.in: New testcase.
2488 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2490 Remove some redundancy in build system.
2492 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
2493 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
2494 (TARGET_LDFLAGS): Add -nostdlib.
2495 (TARGET_IMG_LDFLAGS): Likewise.
2496 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
2497 anything since mmap isn't available.
2498 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
2500 (pkglib_MODULES): Remove reboot.mod.
2501 (reboot_mod_SOURCES): Removed.
2502 (reboot_mod_CFLAGS): Likewise.
2503 (reboot_mod_LDFLAGS): Likewise.
2504 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
2505 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
2506 (DEFSYMFILES): Add kernel_syms.lst.
2507 (kernel_img_HEADERS): Add common headers.
2508 (symlist.c): New target.
2509 (kernel_syms.lst): Likewise.
2510 (pkglib_MODULES): Add memdisk.mod.
2511 (memdisk_mod_SOURCES): New variable.
2512 (memdisk_mod_CFLAGS): Likewise.
2513 (memdisk_mod_LDFLAGS): Likewise.
2514 (pkglib_MODULES): Add reboot.mod.
2515 (reboot_mod_SOURCES): New variable.
2516 (reboot_mod_CFLAGS): Likewise.
2517 (reboot_mod_LDFLAGS): Likewise.
2518 (pkglib_MODULES): Add date.mod.
2519 (date_mod_SOURCES): New variable.
2520 (date_mod_CFLAGS): Likewise.
2521 (date_mod_LDFLAGS): Likewise.
2522 (pkglib_MODULES): Add datehook.mod.
2523 (datehook_mod_SOURCES): New variable.
2524 (datehook_mod_CFLAGS): Likewise.
2525 (datehook_mod_LDFLAGS): Likewise.
2526 (pkglib_MODULES): Add lsmmap.mod.
2527 (lsmmap_mod_SOURCES): New variable.
2528 (lsmmap_mod_CFLAGS): Likewise.
2529 (lsmmap_mod_LDFLAGS): Likewise.
2530 (pkglib_MODULES): Add boot.mod.
2531 (boot_mod_SOURCES): New variable.
2532 (boot_mod_CFLAGS): Likewise.
2533 (boot_mod_LDFLAGS): Likewise.
2534 * conf/i386-coreboot.rmk: Removed redundant parts.
2535 * conf/i386-ieee1275.rmk: Likewise.
2536 * conf/i386-pc.rmk: Likewise.
2537 * conf/mips-yeeloong.rmk: Likewise.
2538 * conf/mips.rmk: Likewise.
2539 * conf/powerpc-ieee1275.rmk: Likewise.
2540 * conf/sparc64-ieee1275.rmk: Likewise.
2541 * conf/x86_64-efi.rmk: Likewise.
2542 * conf/i386-coreboot.rmk: Moved qemu parts ..
2543 * conf/i386-qemu.rmk: ... here
2544 * conf/i386-efi.rmk: Moved common parts to...
2545 * conf/x86-efi.rmk: ... here.
2546 * conf/i386.rmk: Added modules common to all x86 variants.
2547 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
2548 * disk/memdisk.c: Remove grub/machine/kernel.h.
2549 * gensymlist.sh.in: Include symbol.h.
2550 * hook/datehook.c: Correct module name.
2551 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
2552 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
2553 * include/grub/i386/efi/serial.h: New file.
2554 * include/grub/x86_64/efi/serial.h: Likewise.
2555 * util/time.c: Likewise.
2556 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
2558 2010-03-14 Colin King <colin.king@ubuntu.com>
2559 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
2561 Shrink the pre-partition-table part of boot.img by eight bytes.
2563 * boot/i386/pc/boot.S (ERR): New macro.
2564 (chs_mode): Use ERR.
2565 (geometry_error): Likewise.
2566 (hd_probe_error): Remove. This is only used once, so we wrwite
2568 (read_error): Instead of printing read_error_string, just set up
2569 %si and fall through to ...
2570 (error_message): ... this new function, also used by ERR.
2572 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
2574 Speed up consecutive hostdisk operations on the same device.
2576 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
2577 (grub_util_biosdisk_open): Initialise disk->data.
2578 (struct linux_partition_cache): New structure.
2579 (linux_find_partition): Cache partition start positions; these are
2580 expensive to compute on every read and write.
2581 (open_device): Cache open file descriptor in disk->data, so that we
2582 don't have to reopen it and flush the buffer cache for consecutive
2583 operations on the same device.
2584 (grub_util_biosdisk_close): New function.
2585 (grub_util_biosdisk_dev): Set `close' member.
2587 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
2588 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
2589 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
2590 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
2591 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
2593 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2595 Compile parts of grub-emu as modules.
2597 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
2598 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
2599 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
2600 (all-local): Add $(GRUB_EMU).
2601 (install-local): Install $(GRUB_EMU).
2602 (uninstall): Uninstall $(GRUB_EMU).
2603 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
2604 * kern/dl.c: Likewise.
2605 * commands/sleep.c: Not include machine/time.h.
2606 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
2607 (COMMON_CFLAGS): Likewise.
2608 (sbin_UTILITIES): Remove grub-emu.
2609 (grub_emu_SOURCES): Removed.
2610 (kernel_img_RELOCATABLE): New variable.
2611 (pkglib_PROGRAMS): Add kernel.img.
2612 (kernel_img_SOURCES): New variable
2613 (kernel_img_CFLAGS): Likewise.
2614 (kernel_img_LDFLAGS): Likewise.
2615 (TARGET_NO_STRIP): Likewise.
2616 (TARGET_NO_DYNAMIC_MODULES): Likewise.
2617 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
2618 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
2619 (grub-emu): New target.
2620 (GRUB_EMU): New variable.
2621 * configure.ac: Whitelist -emu as possible x86_64 architecture.
2622 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
2623 * loader/xnu.c: Likewise.
2624 * include/grub/pci.h: Likewise.
2625 * genemuinit.sh: New file.
2626 * genemuinitheader.sh: Likewise.
2627 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
2628 Support TARGET_NO_DYNAMIC_MODULES.
2629 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
2630 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
2631 * disk/loopback.c: Likewise.
2632 * font/font_cmd.c: Likewise.
2633 * partmap/acorn.c: Likewise.
2634 * partmap/amiga.c: Likewise.
2635 * partmap/apple.c: Likewise.
2636 * partmap/gpt.c: Likewise.
2637 * partmap/msdos.c: Likewise.
2638 * partmap/sun.c: Likewise.
2639 * parttool/msdospart.c: Likewise.
2640 * term/gfxterm.c: Likewise.
2641 * video/bitmap.c: Likewise.
2642 * video/readers/jpeg.c: Likewise.
2643 * video/readers/png.c: Likewise.
2644 * video/readers/tga.c: Likewise.
2645 * video/video.c: Likewise.
2646 * util/grub-emu.c (read_command_list): Removed.
2647 (main): Don't call util_init_nls.
2648 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
2649 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
2651 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2653 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
2654 date.mod, datehook.mod.
2655 (datetime_mod_SOURCES): New variable.
2656 (datetime_mod_CFLAGS): Likewise.
2657 (datetime_mod_LDFLAGS): Likewise.
2658 (date_mod_SOURCES): Likewise.
2659 (date_mod_CFLAGS): Likewise.
2660 (date_mod_LDFLAGS): Likewise.
2661 (datehook_mod_SOURCES): Likewise.
2662 (datehook_mod_CFLAGS): Likewise.
2663 (datehook_mod_LDFLAGS): Likewise.
2664 * conf/sparc64-ieee1275.rmk: Likewise.
2665 * lib/ieee1275/datetime.c: New file.
2667 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2669 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
2670 (ieee1275_fb_mod_SOURCES): New variable.
2671 (ieee1275_fb_mod_CFLAGS): Likewise.
2672 (ieee1275_fb_mod_LDFLAGS): Likewise.
2673 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
2675 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
2676 (HEAP_MAX_ADDR): Likewise.
2677 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
2679 Correct stop condition.
2680 (grub_ieee1275_devices_iterate): New function.
2681 * video/ieee1275.c: New file.
2683 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2685 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
2687 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
2689 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
2690 SCRATCH_PAD_DISKBOOT as scratch.
2691 (bootit): Pass Openfirmware pointer in %o4.
2692 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
2694 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
2695 with util/grub-mkrawimage.c.
2696 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
2697 * include/grub/aout.h (AOUT_MID_SUN): New definition.
2698 (grub_aout_get_type) [GRUB_UTIL]: Removed.
2699 (grub_aout_load) [GRUB_UTIL]: Likewise.
2700 * include/grub/kernel.h (grub_modules_get_end): New proto.
2701 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
2702 (SCRATCH_PAD_BOOT): New definition.
2703 (SCRATCH_PAD_DISKBOOT): Likewise.
2704 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
2705 * include/grub/sparc64/ieee1275/ieee1275.h
2706 (grub_ieee1275_original_stack): New variable
2707 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
2709 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
2710 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
2711 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
2712 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
2713 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
2714 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
2715 (grub_platform_image_format_t): New type.
2716 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
2717 * kern/main.c (grub_modules_get_end)
2718 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
2719 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
2720 (codestart): Switch stacks.
2721 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
2723 (grub_heap_init): Use grub_modules_get_end.
2724 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
2726 * util/grub-mkrawimage.c (generate_image): Support sparc64.
2728 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
2730 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
2732 * util/grub-mkrescue.in: Base ISO UUID on UTC.
2734 2010-03-08 Matt Kraai <kraai@ftbfs.org>
2736 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
2739 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
2741 * genmoddep.awk: Output all missing symbols and not only first.
2743 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2745 * NEWS: Put the date of 1.98 release.
2747 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2749 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
2752 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2754 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
2755 completition in the middle of string.
2757 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2759 * util/grub-mkrescue.in: Use mktemp with explicit template.
2761 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2763 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
2765 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2767 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
2770 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2772 Fix FreeBSD compilation.
2774 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
2775 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
2777 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2779 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
2781 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2783 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
2785 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2787 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
2789 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
2791 Support relative image path in theme file.
2793 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
2794 (image_set_property): Handle theme_dir and relative path.
2796 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2798 * configure.ac: Alias amd64 to x86_64.
2800 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2802 * NEWS: mention multiboot on EFI.
2804 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2806 * kern/main.c (grub_load_modules): Handle errors from init functions of
2809 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2811 * normal/autofs.c (autoload_fs_module): Handle errors.
2813 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2815 Disable linux.mod on qemu-mips since it's not functional and leads
2816 to compilation failure.
2818 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
2819 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
2820 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
2821 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
2822 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
2823 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
2824 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
2825 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
2826 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
2827 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
2828 Reported by: BVK Chaitanya
2830 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
2832 * INSTALL: Add gettext as a dependency and add qemu to a new section
2833 "Prerequisites for make-check".
2835 2010-03-04 Christian Franke <franke@computer.org>
2837 * util/grub-pe2elf.c: Add missing include "progname.h".
2839 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2841 * normal/crypto.c (read_crypto_list): Fix a typo.
2842 Reported by: Seth Goldberg.
2844 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2846 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
2847 Reported by: Seth Goldberg.
2849 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2851 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
2854 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2856 * genmk.rb: Remove terminal*.lst in make clean.
2857 Reported by: Seth Goldberg.
2859 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2861 * util/i386/efi/grub-install.in: Copy gettext files.
2863 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2865 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
2867 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2869 Wait for user entry basing on presence of output rather than on errors.
2871 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
2872 (grub_install_newline_hook): Likewise.
2873 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
2874 * normal/menu.c (show_menu): Check line_counter to determine presence
2876 * normal/term.c (grub_normal_line_counter): New variable.
2877 (grub_normal_get_line_counter): New function.
2878 (grub_install_newline_hook): Likewise.
2880 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2882 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
2884 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2886 * configure.ac: Update version to 1.98.
2888 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
2890 * util/grub.d/10_linux.in (linux_entry): Don't default to
2891 gfxpayload=keep if Linux doesn't support video handover.
2893 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
2895 Don't compile video modules on yeeloong since video subsystem is part
2898 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
2899 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
2900 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
2901 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
2902 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
2903 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
2904 * include/grub/bitmap_scale.h: Likewise.
2905 * include/grub/bufio.h: Likewise.
2906 * include/grub/font.h: Likewise.
2907 * include/grub/gfxterm.h: Likewise.
2908 * include/grub/video.h: Likewise.
2909 * include/grub/vbe.h: Don't include video_fb.h.
2910 * video/i386/pc/vbe.c: Include video_fb.h.
2911 * commands/i386/pc/vbetest.c: Include video.h.
2913 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
2915 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
2916 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
2917 default entry if GRUB_SAVEDEFAULT=true. This allows using
2918 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
2919 saving a new default on every boot.
2921 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
2923 * normal/crypto.c (read_crypto_list): Fix a memory leak.
2924 * normal/term.c (read_terminal_list): Likewise.
2925 * normal/main.c (grub_normal_init_page): Likewise.
2926 (grub_normal_read_line_real): Likewise.
2928 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
2930 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
2932 Reported by: Seth Goldberg.
2934 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
2936 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
2937 duplicate declaration of `start'.
2939 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
2941 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
2943 Reported by: Georgy Buranov
2945 2010-02-20 Carles Pina i Estany <carles@pina.cat>
2947 * util/grub-mkrawimage.c (usage): Change string formatting to
2950 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
2952 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
2955 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
2957 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
2958 Reported by: Michael Suchanek.
2960 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2962 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
2963 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
2965 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
2967 Remove any reference to non-free fonts.
2969 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
2970 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
2971 uses non-free components.
2972 * font/font.c (grub_font_get_name): Remove example name.
2973 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
2974 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
2975 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
2976 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
2978 2010-02-16 Georgy Buranov <gburanov@gmail.com>
2980 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
2982 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
2984 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
2986 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
2988 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
2990 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
2992 * gensymlist.sh.in: Use TARGET_CC instead of CC.
2994 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2996 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
2997 * docs/grub.texi (Command-line and menu entry commands): Document play
3000 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3002 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
3003 parse arguments as inline tempo and notes. Move code for playing notes
3005 (play): ... new function.
3007 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3009 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
3010 grub_uint16_t instead of short.
3011 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
3012 disk from little endian to cpu endianness.
3014 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3016 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
3017 GRUB_TICKS_PER_SECOND instead of 120.
3019 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3021 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
3022 escape sequence after \e.
3024 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3026 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
3027 non-ASCII characters.
3029 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3031 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
3032 set root in single quotes to prevent \, from being unescaped.
3034 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3036 Prevent unknown commands from stopping menuentry execution.
3038 * script/execute.c (grub_script_execute_cmdline): Print error after
3041 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3043 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
3044 Reported by: Pavel Pisa.
3046 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3048 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
3050 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3052 Merge grub_ieee1275_map_physical into grub_map and rename to
3055 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
3056 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
3058 * kern/ieee1275/openfw.c (grub_map): Rename to ...
3059 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
3061 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
3063 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3065 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
3066 opening and not after.
3068 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3070 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
3073 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3075 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
3076 (alloc_phys): Use ALIGN_UP instead of align_addr.
3078 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3080 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
3082 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3084 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
3086 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3088 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
3091 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3093 Fix over-4GiB seek on sparc64.
3095 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
3096 Replace pos_i and pos_lo with pos. All users updated.
3097 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3099 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3101 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
3104 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3106 * util/grub-mkrawimage.c (main): Call set_program_name.
3108 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3110 Properly align 64-bit targets.
3112 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
3113 (generate_image): Use ALIGN_ADDR.
3115 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3117 Properly create cross-endian images.
3119 * include/grub/types.h (grub_host_to_target_addr): New macro
3120 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
3122 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3124 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
3126 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3128 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
3130 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
3131 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
3132 (grub_linux_boot): Divide by 64K when on VESA.
3134 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3136 Support GRUB_GFXPAYLOAD_LINUX.
3138 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
3139 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
3141 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3143 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
3144 to show messages instead of discarding them.
3145 Process errors after executing command and not before. Keep old method
3148 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
3150 * configure.ac: Check for ft2build.h.
3152 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3154 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
3156 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3158 * genkernsyms.sh.in: Use TARGET_CC.
3160 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
3164 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3166 * include/grub/multiboot2.h: Remove leftover file.
3167 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
3168 * include/grub/partition.h [GRUB_UTIL]: Likewise.
3170 2010-02-07 Yves Blusseau <blusseau@zetam.org>
3172 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
3174 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3176 Fix warnings in grub-emu when compiling with maximum warning options.
3178 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
3179 (grub_arch_modules_addr): Return 0 and not NULL.
3180 * util/misc.c (ENABLE_RELOCATABLE): New definition.
3181 (xstrdup): Use newstr instead of dup.
3182 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
3183 of disk to dsk to avoid shadowing.
3184 (find_free_slot): Fix prototype.
3185 * util/getroot.c (grub_util_is_dmraid): Make static.
3186 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
3187 Add missing prototype.
3188 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
3190 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3192 * loader/i386/linux.c (grub_linux_setup_video): Handle error
3195 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3197 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
3200 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3202 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
3203 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
3204 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
3205 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
3206 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
3207 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
3209 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3211 * include/grub/err.h (grub_err_printf): Don't export.
3213 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3215 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
3217 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3219 * include/grub/i18n.h (grub_gettext_dummy): Removed.
3220 * kern/misc.c (grub_gettext_dummy): Make static.
3222 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3224 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
3226 * kern/term.c (grub_putchar): Likewise.
3228 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3230 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
3231 buggy hook call and memory leak.
3233 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3235 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
3237 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3239 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
3241 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3243 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
3245 Return grub_errno on allocation error.
3247 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3249 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
3251 2010-02-06 Yves Blusseau <blusseau@zetam.org>
3253 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
3254 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
3256 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3258 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
3260 (grub_pxefs_open): Likewise.
3262 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3264 * util/grub.d/10_hurd.in: Add --class information to menuentries.
3265 * util/grub.d/10_kfreebsd.in: Likewise.
3266 * util/grub.d/10_linux.in: Likewise.
3268 2010-02-06 Colin D Bennett <colin@gibibit.com>
3270 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
3271 (gfxmenu_mod_SOURCES): New variable.
3272 (gfxmenu_mod_CFLAGS): Likewise.
3273 (gfxmenu_mod_LDFLAGS): Likewise.
3274 * include/grub/term.h (grub_term_set_current_output): Declare
3276 * docs/gfxmenu-theme-example.txt: New file.
3277 * gfxmenu/gfxmenu.c: Likewise.
3278 * gfxmenu/gui_box.c: Likewise.
3279 * gfxmenu/gui_canvas.c: Likewise.
3280 * gfxmenu/gui_circular_progress.c: Likewise.
3281 * gfxmenu/gui_image.c: Likewise.
3282 * gfxmenu/gui_label.c: Likewise.
3283 * gfxmenu/gui_list.c: Likewise.
3284 * gfxmenu/gui_progress_bar.c: Likewise.
3285 * gfxmenu/gui_string_util.c: Likewise.
3286 * gfxmenu/gui_util.c: Likewise.
3287 * gfxmenu/icon_manager.c: Likewise.
3288 * gfxmenu/model.c: Likewise.
3289 * gfxmenu/named_colors.c: Likewise.
3290 * gfxmenu/theme_loader.c: Likewise.
3291 * gfxmenu/view.c: Likewise.
3292 * gfxmenu/widget-box.c: Likewise.
3293 * include/grub/gfxmenu_model.h: Likewise.
3294 * include/grub/gfxmenu_view.h: Likewise.
3295 * include/grub/gfxwidgets.h: Likewise.
3296 * include/grub/gui.h: Likewise.
3297 * include/grub/gui_string_util.h: Likewise.
3298 * include/grub/icon_manager.h: Likewise.
3300 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3302 Agglomerate scrolling in gfxterm.
3304 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
3305 (grub_virtual_screen_setup): Initialise 'total_screen'.
3306 (write_char): Split to ...
3307 (paint_char): ... this ...
3308 (write_char): ... and this.
3309 (paint_char): Handle delayed scrolling.
3310 (draw_cursor): Likewise.
3311 (scroll_up): Split to ...
3312 (real_scroll): ... this ...
3313 (scroll_up): ... and this.
3314 (real_scroll): Handle multi-line scroll and draw below-the-bottom
3316 (grub_gfxterm_refresh): Call real_scroll.
3318 2010-02-06 Colin D Bennett <colin@gibibit.com>
3320 * include/grub/misc.h (grub_iscntrl): New inline function.
3321 (grub_isalnum): Likewise.
3322 (grub_strtol): Likewise.
3324 2010-02-06 Colin D Bennett <colin@gibibit.com>
3326 * normal/menu_text.c (get_entry_number): Move from here ...
3327 * normal/menu.c (get_entry_number): ... moved here.
3328 * include/grub/menu.h (grub_menu_get_default_entry_index):
3330 * normal/menu.c (grub_menu_get_default_entry_index): New function.
3331 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
3332 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
3333 (grub_menu_viewer_should_return): Likewise.
3334 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
3335 * normal/menu_text.c (run_menu): Enable menu switching.
3336 * normal/menu_viewer.c (should_return): New variable.
3337 (menu_viewer_changed): Likewise.
3338 (grub_menu_viewer_show_menu): Handle menu viewer changes.
3339 (grub_menu_viewer_should_return): New function.
3340 (menuviewer_write_hook): Likewise.
3341 (grub_menu_viewer_init): Likewise.
3343 2010-02-06 Colin D Bennet <colin@gibibit.com>
3344 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3346 Support for gfxterm in a window.
3348 * include/grub/gfxterm.h: New file.
3349 * include/grub/video.h (struct grub_video_rect): New declaration.
3350 (grub_video_rect_t): Likewise.
3351 * term/gfxterm.c (struct grub_gfxterm_window): New type.
3352 (refcount): New variable.
3353 (render_target): Likewise.
3355 (repaint_callback): Likewise.
3356 (grub_virtual_screen_setup): Use 'render_target'.
3357 (init_window): New function.
3358 (grub_gfxterm_init_window): Likewise.
3359 (grub_gfxterm_init): Check reference counter.
3361 (destroy_window): New function.
3362 (grub_gfxterm_destroy_window): Likewise.
3363 (grub_gfxterm_fini): Check reference counter.
3365 (redraw_screen_rect): Restore viewport.
3366 Use 'render_target' and 'window'.
3367 Call 'repaint_callback'.
3368 (write_char): Use 'render_target'.
3369 (draw_cursor): Likewise.
3370 (scroll_up): Restore viewport.
3371 Use 'render_target' and 'window'.
3372 Call 'repaint_callback'.
3373 (grub_gfxterm_cls): Likewise.
3374 (grub_gfxterm_refresh): Use 'window'.
3375 (grub_gfxterm_set_repaint_callback): New function.
3376 (grub_gfxterm_background_image_cmd): Use 'window'.
3377 (grub_gfxterm_get_term): New function.
3378 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
3380 2010-02-06 Colin D Bennett <colin@gibibit.com>
3382 Bitmap scaling support.
3384 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
3385 (bitmap_scale_mod_SOURCES): New variable.
3386 (bitmap_scale_mod_CFLAGS): Likewise.
3387 (bitmap_scale_mod_LDFLAGS): Likewise.
3388 * include/grub/bitmap_scale.h: New file.
3389 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
3390 (background_image_cmd_options): New variable.
3391 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
3392 (cmd): Rename and change type to ...
3393 (background_image_cmd_handle): ... this. All users updated.
3394 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
3395 * video/bitmap_scale.c: New file.
3397 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3401 * Makefile.in (LIBSDL): New variable.
3402 (enable_grub_emu_sdl): Likewise.
3403 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
3404 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
3405 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
3406 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
3407 * util/sdl.c: New file.
3409 2010-02-06 Colin D Bennett <colin@gibibit.com>
3410 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3412 Double buffering support.
3414 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
3415 * include/grub/video.h: Update comment.
3416 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
3418 (grub_video_fb_doublebuf_blit_init): New prototype.
3419 * term/gfxterm.c (scroll_up): Support double buffering.
3420 (grub_gfxterm_refresh): Likewise.
3421 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
3422 (grub_video_fb_doublebuf_blit_init): Likewise.
3423 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
3424 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
3425 'displayed_page', 'render_page' and 'update_screen'.
3426 (grub_video_vbe_fini): Free offscreen buffer.
3427 (doublebuf_pageflipping_commit): New function.
3428 (doublebuf_pageflipping_update_screen): Likewise.
3429 (doublebuf_pageflipping_init): Likewise.
3430 (double_buffering_init): Likewise.
3431 (grub_video_vbe_setup): Enable doublebuffering.
3432 (grub_video_vbe_swap_buffers): Implement.
3433 (grub_video_vbe_set_active_render_target): Handle double buffering.
3434 (grub_video_vbe_get_active_render_target): Likewise.
3435 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
3436 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
3437 (grub_video_vbe_enable_double_buffering): Likewise.
3438 (grub_video_vbe_swap_buffers): Use update_screen.
3439 (grub_video_set_mode): Use double buffering.
3441 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3443 * maintainance/gentrigtables.py: Remove.
3444 * lib/trig.c: Likewise.
3446 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
3448 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
3450 (trigtables.c): New rule.
3451 (gentrigtables): Likewise.
3452 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
3454 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3456 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
3459 2010-02-06 Colin D Bennet <colin@gibibit.com>
3461 Trigonometry support.
3463 * include/grub/trig.h: New file.
3464 * lib/trig.c: Likewise.
3465 * maintainance/gentrigtables.py: Likewise.
3466 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
3467 (trig_mod_SOURCES): New variable.
3468 (trig_mod_CFLAGS): Likewise.
3469 (trig_mod_LDFLAGS): Likewise.
3471 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3473 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
3476 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3478 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
3481 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3483 * util/hostdisk.c (open_device): Don't use partition device when reading
3484 before the partition.
3485 (grub_util_biosdisk_read): Don't read from partition and before the
3486 partition in single operation.
3487 (grub_util_biosdisk_write): Don't write to partition and before the
3488 partition in single operation.
3490 2010-02-03 Torsten Landschoff <torsten@debian.org>
3492 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3495 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3497 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
3499 (grub_biosdisk_write): Refuse to write to CDROM.
3501 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3503 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
3505 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3507 * font/font.c (find_glyph): Check that bmp_idx is available before
3509 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
3510 with (font == NULL).
3512 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
3514 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
3516 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
3518 * include/grub/script_sh.h (sourcecode): Add const qualifier.
3519 * util/grub-script-check.c (getline): Fix empty lines case.
3521 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
3523 * Makefile.in (check): Exit with fail status when one of the tests
3525 * tests/example_functional_test.c (example_test): Fix reversed assert.
3526 * tests/example_unit_test.c (example_test): Likewise.
3528 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
3530 * util/grub.d/10_linux.in: This script does not use any of the
3531 contents of gettext.sh, only the external command `gettext', so stop
3532 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
3533 the same prefix as GRUB.)
3534 * util/grub.d/10_kfreebsd.in: Likewise.
3536 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3538 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
3541 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3543 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3546 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3548 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
3549 having a 4KiB and not 32KiB buffer size.
3551 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3553 * util/hostfs.c: Include `<errno.h>'.
3554 (grub_hostfs_read): Handle errors from fseeko() and fread().
3556 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3558 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
3559 loop when using read hooks on files whose size isn't sector-aligned.
3561 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3563 Remove unused parameter.
3565 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
3566 (grub_iso9660_open): Remove initialization of `data->length'.
3568 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3570 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
3573 2010-01-27 Carles Pina i Estany <carles@pina.cat>
3575 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
3576 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
3578 2010-01-26 Carles Pina i Estany <carles@pina.cat>
3580 * util/bin2h.c (usage): Fix warning (space after backslash).
3582 2010-01-26 Carles Pina i Estany <carles@pina.cat>
3584 * font/font.c: Include `grub/fontformat.h.
3585 Remove font file format constants.
3586 (grub_font_load): Use the new macros.
3587 * include/grub/fontformat.h: New file.
3588 * util/grub-mkfont.c: Include `grub/fontformat.c'.
3589 (write_font_pf2): Use the new macros.
3591 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3593 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
3596 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3598 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
3600 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
3601 (_start): Macroify `0x7F'.
3603 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
3604 (make_install_device): Use "(pxe)" as fallback prefix when booting
3607 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
3609 * configure.ac: Reset LIBS after check for libgcc symbols.
3611 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
3613 * util/hostdisk.c (open_device): Add trailing newline to debug
3616 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
3618 * configure.ac: Check for `limits.h'.
3619 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
3621 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
3623 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
3624 capitalize error strings.
3626 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3628 * util/grub.d/10_hurd.in: Add a recovery mode.
3630 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
3632 * configure.ac: Check for libgcc symbols with -nostdlib.
3634 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
3636 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
3638 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3640 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
3641 stack since heap may be unavailable at that point.
3642 (grub_ofconsole_gotoxy): Likewise.
3644 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3646 * configure.ac: Check for _restgpr_14_x.
3647 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
3648 and _savegpr_* prototypes.
3650 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
3652 Use generic grub_reboot() for i386-efi.
3654 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
3655 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
3656 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
3658 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3660 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
3661 presence of "prefix" variable as it breaks when normal.mod is
3664 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3666 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
3667 stack since heap is unavailable at that point.
3669 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3671 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
3672 (grub_freebsd_bootinfo): Rewritten.
3673 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
3675 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3677 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
3679 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
3681 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
3684 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
3686 * util/misc.c (make_system_path_relative_to_its_root): Change the work
3687 around for handling "/" to the correct fix. Fix a memory leak. Use
3688 xstrdup instead of strdup.
3690 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3692 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
3694 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3696 Optimise glyph lookup by Basic Multilingual Plane lookup array.
3698 * font/font.c (struct grub_font): New member 'bmp_idx'.
3699 (font_init): Initialise 'bmp_idx'.
3700 (load_font_index): Fill 'bmp_idx'.
3701 (find_glyph): Make inline. Use bmp_idx for BMP characters.
3703 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3705 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
3708 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3710 Move context handling out of the kernel.
3712 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
3713 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
3714 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
3715 * conf/i386-efi.rmk: Likewise.
3716 * conf/i386-ieee1275.rmk: Likewise.
3717 * conf/i386-pc.rmk: Likewise.
3718 * conf/powerpc-ieee1275.rmk: Likewise.
3719 * conf/sparc64-ieee1275.rmk: Likewise.
3720 * conf/x86_64-efi.rmk: Likewise.
3721 * include/grub/env.h: Include grub/menu.h.
3722 (grub_env_var_type): Removed.
3723 (grub_env_var): Replaced field 'type' with 'global'.
3724 (grub_env_find): New prototype.
3725 (grub_env_context_open): Remove EXPORT_FUNC.
3726 (grub_env_context_close): Likewise.
3727 (grub_env_export): Likewise.
3728 (grub_env_set_data_slot): Removed.
3729 (grub_env_get_data_slot): Likewise.
3730 (grub_env_unset_data_slot): Likewise.
3731 (grub_env_unset_menu): New prototype.
3732 (grub_env_set_menu): Likewise.
3733 (grub_env_get_menu): Likewise.
3734 * include/grub/env_private.h: New file.
3735 * include/grub/normal.h (grub_context_init): New prototype.
3736 (grub_context_fini): Likewise.
3737 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
3738 * normal/context.c (grub_cmd_export): ... to here.
3739 * kern/env.c: Include env_private.h.
3740 (HASHSZ): Moved to include/grub/env_private.h.
3741 (grub_env_context): Likewise.
3742 (grub_env_sorted_var): Likewise.
3743 (current_context): Renamed from this ...
3744 (grub_current_context): ...to this. 'static' removed. All users updated.
3745 (grub_env_find): Removed 'static'.
3746 (grub_env_context_open): Moved to normal/context.c.
3747 (grub_env_context_close): Likewise.
3748 (grub_env_export): Likewise.
3749 (mangle_data_slot_name): Removed.
3750 (grub_env_set_data_slot): Likewise.
3751 (grub_env_get_data_slot): Likewise.
3752 (grub_env_unset_data_slot): Likewise.
3753 * kern/main.c (grub_set_root_dev): Don't export root.
3754 It will be done later.
3755 (grub_main): Don't export prefix.
3756 It will be done later.
3757 * normal/context.c: New file.
3758 * normal/main.c (free_menu): Use grub_env_unset_menu.
3759 (grub_normal_add_menu_entry): Use grub_env_get_menu.
3760 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
3761 (GRUB_MOD_INIT(normal)): Call grub_context_init.
3762 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
3764 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3768 * commands/setpci.c: New file.
3769 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
3770 (setpci_mod_SOURCES): New variable.
3771 (setpci_mod_CFLAGS): Likewise.
3772 (setpci_mod_LDFLAGS): Likewise.
3774 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3776 Byte-addressable PCI configuration space.
3778 * bus/pci.c (grub_pci_make_address): Use byte address instead of
3780 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
3781 GRUB_PCI_REG_CACHELINE.
3782 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
3783 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
3784 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
3785 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
3786 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
3787 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
3788 grub_pci_make_address.
3789 (lock_rom_area): Likewise.
3790 * commands/lspci.c (grub_lspci_iter): Use macroses
3791 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
3792 of grub_pci_make_address.
3793 * disk/ata.c (grub_ata_pciinit): Likewise.
3794 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
3795 (GRUB_PCI_REG_VENDOR): Likewise.
3796 (GRUB_PCI_REG_DEVICE): Likewise.
3797 (GRUB_PCI_REG_COMMAND): Likewise.
3798 (GRUB_PCI_REG_STATUS): Likewise.
3799 (GRUB_PCI_REG_REVISION): Likewise.
3800 (GRUB_PCI_REG_CLASS): Likewise.
3801 (GRUB_PCI_REG_CACHELINE): Likewise.
3802 (GRUB_PCI_REG_LAT_TIMER): Likewise.
3803 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
3804 (GRUB_PCI_REG_BIST): Likewise.
3805 (GRUB_PCI_REG_ADDRESSES): Likewise.
3806 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3807 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3808 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3809 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3810 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3811 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3812 (GRUB_PCI_REG_CIS_POINTER): Likewise.
3813 (GRUB_PCI_REG_SUBVENDOR): Likewise.
3814 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
3815 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
3816 (GRUB_PCI_REG_CAP_POINTER): Likewise.
3817 (GRUB_PCI_REG_IRQ_LINE): Likewise.
3818 (GRUB_PCI_REG_IRQ_PIN): Likewise.
3819 (GRUB_PCI_REG_MIN_GNT): Likewise.
3820 (GRUB_PCI_REG_MAX_LAT): Likewise.
3821 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
3822 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
3823 * video/efi_uga.c (find_framebuf): Likewise.
3824 * video/sm712.c (grub_video_sm712_setup): Likewise.
3825 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
3828 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3830 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
3831 can be reliably determined to be supported.
3833 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3835 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
3836 that VESA is supported.
3837 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
3840 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3842 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
3844 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3846 * util/misc.c (make_system_path_relative_to_its_root): Work around
3847 special-casing of "/", as previous incarnation of this routine did.
3849 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3851 Fix any-emu compilation.
3853 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
3854 * grub_bin2h_SOURCES: New variable.
3856 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3858 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
3860 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3862 * util/grub.d/00_header.in: Fix handling of locale_dir.
3864 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3866 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
3867 as possible unifont location (Gentoo).
3868 Reported by: Alexander Brüning
3870 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3872 Don't try to generate lists for kernel.img.
3874 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
3875 (pkglib_MODULES): Remove kernel.img.
3876 (kernel_img_EXPORTS): Removed.
3877 (kernel_img_RELOCATABLE): New variable.
3878 * conf/x86_64-efi.rmk: Likewise.
3879 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
3881 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3883 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
3884 grub_xasprintf or grub_snprintf.
3885 (grub_vsprintf): Likewise.
3886 (grub_snprintf): New proto.
3887 (grub_vsnprintf): Likewise.
3888 (grub_xasprintf): Likewise.
3889 (grub_xvasprintf): Likewise.
3890 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
3891 (grub_sprintf): Removed.
3892 (grub_vsnprintf): New function.
3893 (grub_snprintf): Likewise.
3894 (grub_xvasprintf): Likewise.
3895 (grub_xasprintf): Likewise.
3896 (grub_vsprintf): Renamed to ...
3897 (grub_vsnprintf_real): ...this. New argument max_len.
3899 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
3901 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
3902 fix grub-script-check warning.
3904 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3906 * include/grub/font.h (grub_font_load): Fix prototype.
3908 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3910 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
3912 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3914 * include/grub/x86_64/at_keyboard.h: New file.
3916 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3918 * loader/mips/linux.c: Include missing grub/i18n.h.
3920 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3922 * normal/menu.c (notify_execution_failure): Clarify error message.
3924 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3926 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
3927 return value (and revert all return statements). Update users.
3929 2010-01-20 Dan Merillat <debian@dan.merillat.org>
3931 * kern/device.c (grub_device_iterate): Allocate new part_ent
3932 structure based on sizeof (*p) rather than sizeof (p->next), to
3933 account for structure padding.
3935 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
3936 disk is NULL, which might happen for LVM physical volumes with no
3939 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3941 * loader/mips/linux.c (grub_cmd_initrd)
3942 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
3944 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3946 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
3947 (grub_video_video_init, grub_video_bitmap_init)
3948 (grub_font_manager_init, grub_term_gfxterm_init)
3949 (grub_at_keyboard_init): New extern declarations.
3950 (grub_machine_init): Initialize gfxterm and at_keyboard.
3952 * kern/main.c (grub_main): Revert grub_printf delay kludge.
3954 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
3955 `gfxterm.mod' into core image.
3957 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3958 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3959 (kernel_img_FORMAT): Copy to ...
3961 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3962 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3963 (kernel_img_FORMAT): ... here, and ...
3965 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3966 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3967 (kernel_img_FORMAT): ... here.
3969 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
3970 and input (at_keyboard) terminals in kernel.
3971 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
3973 (pkglib_MODULES): Remove `pci.mod'.
3974 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
3975 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
3976 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
3977 (at_keyboard_mod_LDFLAGS): Remove variables.
3979 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
3981 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
3983 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
3985 * include/grub/mips/libgcc.h: Only export symbols for functions
3986 that libgcc provides.
3988 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
3992 * bus/bonito.c: New file.
3993 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
3994 GRUB_PCI_NUM_DEVICES.
3995 * term/i386/pc/serial.c: Move to ...
3996 * term/serial.c: ... here. All users updated.
3997 * util/i386/pc/grub-mkimage.c: Move to ...
3998 * util/grub-mkrawimage.c: ... here. All users updated.
3999 * term/i386/pc/at_keyboard.c: Move to ...
4000 * term/at_keyboard.c: ... here. All users updated.
4001 * conf/mips-qemu-mips.rmk: New file.
4002 * conf/mips-yeeloong.rmk: Likewise.
4003 * conf/mips.rmk: Likewise.
4004 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
4006 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
4008 (grub_ata_pciinit): Support CS5536.
4009 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
4010 * font/font_cmd.c (loadfont_command): Open file before passing it to
4012 (pseudo_file_read): New function.
4013 (pseudo_file_close): Likewise.
4014 (pseudo_fs): New structure.
4015 (load_font_module): New function.
4016 (GRUB_MOD_INIT(font_manager)): Load embedded font.
4017 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
4018 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
4019 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
4020 * include/grub/i386/at_keyboard.h: Split into ...
4021 * include/grub/at_keyboard.h: ... this ...
4022 * include/grub/i386/at_keyboard.h: ... and this.
4023 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
4025 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
4027 (grub_elf64_size): Likewise.
4028 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
4030 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
4031 * include/grub/i386/coreboot/serial.h: Rewritten.
4032 * include/grub/i386/ieee1275/serial.h: Include
4033 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
4034 * include/grub/i386/pc/serial.h: Moved from here ...
4035 * include/grub/serial.h: ... to here. All users updated.
4036 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
4037 (GRUB_PCI_NUM_BUS): Likewise.
4038 (GRUB_PCI_NUM_DEVICES): Likewise.
4039 (grub_pci_device_map_range): Add missing volatile keyword.
4040 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
4041 * include/grub/mips/at_keyboard.h: New file.
4042 * include/grub/mips/cache.h: Likewise.
4043 * include/grub/mips/io.h: Likewise.
4044 * include/grub/mips/kernel.h: Likewise.
4045 * include/grub/mips/libgcc.h: Likewise.
4046 * include/grub/mips/pci.h: Likewise.
4047 * include/grub/mips/qemu-mips/boot.h: Likewise.
4048 * include/grub/mips/qemu-mips/kernel.h: Likewise.
4049 * include/grub/mips/qemu-mips/loader.h: Likewise.
4050 * include/grub/mips/qemu-mips/memory.h: Likewise.
4051 * include/grub/mips/qemu-mips/serial.h: Likewise.
4052 * include/grub/mips/qemu-mips/time.h: Likewise.
4053 * include/grub/mips/relocator.h: Likewise.
4054 * include/grub/mips/time.h: Likewise.
4055 * include/grub/mips/types.h: Likewise.
4056 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
4057 * include/grub/mips/yeeloong/boot.h: Likewise.
4058 * include/grub/mips/yeeloong/kernel.h: Likewise.
4059 * include/grub/mips/yeeloong/loader.h: Likewise.
4060 * include/grub/mips/yeeloong/memory.h: Likewise.
4061 * include/grub/mips/yeeloong/pci.h: Likewise.
4062 * include/grub/mips/yeeloong/serial.h: Likewise.
4063 * include/grub/mips/yeeloong/time.h: Likewise.
4064 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
4065 * kern/elf.c (grub_elf32_size): New parameter. All users
4067 (grub_elf64_size): Likewise.
4068 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
4069 Load modules before saying "Welcome to GRUB!".
4070 Call grub_refresh after saying "Welcome to GRUB!".
4071 * kern/mips/cache.S: New file.
4072 * kern/mips/cache_flush.S: Likewise.
4073 * kern/mips/dl.c: Likewise.
4074 * kern/mips/init.c: Likewise.
4075 * kern/mips/qemu-mips/init.c: Likewise.
4076 * kern/mips/startup.S: Likewise.
4077 * kern/mips/yeeloong/init.c: Likewise.
4078 * kern/term.c (grub_putcode): Handle NULL terminal.
4079 (grub_getcharwidth): Likewise.
4080 (grub_getkey): Likewise.
4081 (grub_checkkey): Likewise.
4082 (grub_getkeystatus): Likewise.
4083 (grub_getxy): Likewise.
4084 (grub_getwh): Likewise.
4085 (grub_gotoxy): Likewise.
4086 (grub_cls): Likewise.
4087 (grub_setcolorstate): Likewise.
4088 (grub_setcolor): Likewise.
4089 (grub_getcolor): Likewise.
4090 (grub_refresh): Likewise.
4091 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
4092 (write_jump): Add hatch nop.
4093 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
4094 * lib/mips/setjmp.S: New file.
4095 * loader/mips/linux.c: Likewise.
4096 * term/i386/pc/at_keyboard.c: Move from here ...
4097 * term/at_keyboard.c: ... to here.
4098 * term/i386/pc/serial.c: Moved from here ...
4099 * term/serial.c: ... to here. All users updated.
4100 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
4101 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
4102 (serial_translate_key_sequence): Avoid deadlock.
4103 (grub_serial_getkey): Handle backspace.
4104 (grub_serial_putchar): Fix newline handling.
4105 * util/i386/pc/grub-mkimage.c: Move from here ...
4106 * util/grub-mkrawimage.c: ... to here. All users updated.
4107 (generate_image): New parameters 'font_path' and 'format'.
4108 Support embedding font.
4109 Use grub_host_to_target* instead of grub_cpu_to_le*.
4110 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
4111 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
4112 (options): New option "--font".
4114 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
4115 (main): Handle "--font".
4116 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
4117 (grub_virtual_screen_setup): Set bg_color_display.
4118 (redraw_screen_rect): Use bg_color_display instead of incorrect
4120 (grub_gfxterm_cls): Likewise.
4121 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
4122 Support embedding config file.
4123 (add_segments): Likewise.
4124 (options): New option "--config".
4125 (main): Handle "--config".
4126 * video/sm712.c: New file.
4128 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4130 Fix parallel builds.
4132 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
4133 font.c depend on ascii.h).
4135 2010-01-12 Carles Pina i Estany <carles@pina.cat>
4137 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
4139 2010-01-11 Carles Pina i Estany <carles@pina.cat>
4141 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
4142 By default: disabled.
4143 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
4146 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4148 * font/font.c: Update copyright years.
4149 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
4151 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4153 * font/font.c: Include `ascii.h'.
4154 (ASCII_BITMAP_SIZE): New macro.
4155 (ascii_font_glyph): Define.
4156 (ascii_glyph_lookup): New function.
4157 (grub_font_get_string_width): Change comment. If glyph not found, use
4159 (grub_font_get_glyph_with_fallback): If glyph not available returns
4161 * util/grub-mkfont.c (file_formats): New enum.
4162 (options): Add `ascii-bitmaps' new option.
4163 (usage): Add `asii-bitmaps' new option.
4164 (write_font_ascii_bitmap): New function.
4165 (write_font): Rename to ...
4166 (write_font_p2): ... this. Remove print_glyphs call.
4167 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
4168 used. Call print_glyphs.
4169 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
4171 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4173 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
4174 (grub_bin2h_SOURCES): New variable.
4175 * util/bin2h.c: New file.
4177 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4179 * include/multiboot.h: Resynced with spec.
4180 * include/multiboot2.h: Likewise.
4181 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
4182 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
4184 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4186 * include/grub/term.h (grub_term_register_input,
4187 grub_term_register_output): Check return of terminal init()
4188 routines, and abort if errors are raised.
4190 * commands/terminal.c: Update copyright year.
4192 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4194 * commands/terminal.c (grub_cmd_terminal_input)
4195 (grub_cmd_terminal_output): Check return of terminal init()
4196 routines, and abort if errors are raised.
4198 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4200 * include/grub/i386/bsd.h: Fix include pathes.
4202 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4204 Add missing *BSD copyright headers.
4206 * include/grub/aout.h: Add BSD licence.
4207 * include/grub/i386/bsd.h: Parts under different licences moved to ...
4208 * include/grub/i386/freebsd_linker.h: ... here,
4209 * include/grub/i386/freebsd_reboot.h: ... here,
4210 * include/grub/i386/netbsd_bootinfo.h: ... here,
4211 * include/grub/i386/netbsd_reboot.h: ... here,
4212 * include/grub/i386/openbsd_bootarg.h: ... here,
4213 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
4214 licence to each file.
4216 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4218 * acinclude.m4: Remove `nop' assembly instruction; it's not
4219 implemented by all architectures.
4221 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4223 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
4224 ELILO. This is no longer necessary.
4226 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
4228 Added new tool, grub-scrit-check to verify grub.cfg syntax.
4230 * util/grub-script-check.c: grub-script-check tool.
4231 * conf/common.rmk: Make rules for grub-script-check.
4233 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4235 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
4236 spotting it back in 2008. Shame on me for forgetting he did.
4238 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
4240 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4242 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
4243 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
4244 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
4245 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
4246 (GRUB_VIDEO_TYPE_EFI): Rename to ...
4247 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
4249 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
4251 * include/grub/test.h: Add license header.
4252 * tests/example_functional_test.c: Likewise.
4253 * tests/example_unit_test.c: Likewise.
4254 * tests/lib/functional_test.c: Likewise.
4255 * tests/lib/test.c: Likewise.
4256 * tests/lib/unit_test.c: Likewise.
4258 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
4260 Use flag-based instead of hook-based video mode selection and "auto"
4263 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
4264 (grub_video_set_mode): Changed prototype. All users updated.
4265 (grub_video_check_mode_flag): New inline function.
4266 * video/video.c (parse_modespec): New function.
4267 (grub_video_set_mode): Parse flags and keywords.
4269 2010-01-17 Carles Pina i Estany <carles@pina.cat>
4271 * util/misc.c (grub_util_info): Fix the order of the parameters in a
4274 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
4276 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
4278 2010-01-16 Carles Pina i Estany <carles@pina.cat>
4280 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
4282 * util/grub-emu.c (usage): Likewise.
4283 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
4284 * util/i386/efi/grub-mkimage.c (usage): Likewise.
4285 * util/i386/pc/grub-mkimage.c (usage): Likewise.
4286 * util/i386/pc/grub-setup.c (usage): Likewise.
4288 2010-01-16 Carles Pina i Estany <carles@pina.cat>
4290 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
4292 (grub_util_info): Likewise.
4293 (grub_util_error): Likewise.
4294 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
4295 and/or new lines in `grub_util_warna', `grub_util_info',
4296 `grub_util_error' calls.
4297 * util/getroot.c: Likewise.
4298 * util/grub-editenv.c: Likewise.
4299 * util/grub-emu.c: Likewise.
4300 * util/grub-fstest.c: Likewise.
4301 * util/grub-mkdevicemap.c: Likewise.
4302 * util/grub-mkfont.c: Likewise.
4303 * util/grub-mkpasswd-pbkdf2.c: Likewise.
4304 * util/grub-mkrelpath.c: Likewise.
4305 * util/grub-pe2elf.c: Likewise.
4306 * util/grub-probe.c: Likewise.
4307 * util/hostdisk.c: Likewise.
4308 * util/i386/efi/grub-mkimage.c: Likewise.
4309 * util/i386/pc/grub-mkimage.c: Likewise.
4310 * util/i386/pc/grub-setup.c: Likewise.
4311 * util/ieee1275/ofpath.c: Likewise.
4312 * util/mkisofs/eltorito.c: Likewise.
4313 * util/mkisofs/rock.c: Likewise.
4314 * util/mkisofs/write.c: Likewise.
4315 * util/raid.c: Likewise.
4316 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
4317 * util/sparc64/ieee1275/grub-setup.c: Likewise.
4319 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4321 Enable multiboot on non-pc.
4323 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
4324 multiboot.mod and multiboot2.mod to ...
4325 * conf/i386.rmk (pkglib_MODULES): ... here.
4326 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
4328 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
4329 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
4331 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
4332 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
4334 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
4335 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
4337 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
4338 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
4340 (ata_mod_SOURCES): Removed.
4341 (ata_mod_CFLAGS): Likewise.
4342 (ata_mod_LDFLAGS): Likewise.
4343 (relocator_mod_SOURCES): Removed.
4344 (relocator_mod_CFLAGS): Likewise.
4345 (relocator_mod_ASFLAGS): Likewise.
4346 (relocator_mod_LDFLAGS): Likewise.
4348 * include/grub/x86_64/multiboot.h: New file.
4349 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
4352 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4354 Video multiboot support.
4356 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
4358 * include/multiboot.h: Resynced with multiboot specification.
4359 * include/multiboot2.h: Likewise.
4360 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
4361 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
4362 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
4363 (HAS_VGA_TEXT): Likewise.
4364 (accepts_video): New variable.
4365 (grub_multiboot_set_accepts_video): New function.
4366 (grub_multiboot_get_mbi_size): Account for video structures.
4367 (set_video_mode): New function.
4368 (retrieve_video_parameters): Likewise.
4369 (grub_multiboot_make_mbi): Fill video fields.
4371 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4375 * include/grub/video.h (grub_video_driver_id): New type.
4376 (grub_video_adapter): New member 'id'. All users updated.
4377 (grub_video_get_driver_id): New proto.
4378 * video/video.c (grub_video_get_driver_id): New function.
4380 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4382 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
4385 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4387 * normal/cmdline.c (print_completion): Gettextizze.
4389 2001-01-14 Carles Pina i Estany <carles@pina.cat>
4391 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
4393 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4395 * gettext/gettext.c (grub_gettext_translate): Push and pop
4397 (grub_gettext_delete_list): Change comment style.
4398 * kern/err.c (grub_error): Gettextizze.
4399 (grub_fatal): Gettextizze.
4401 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4403 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
4404 (grub_linux16_real_boot): ... this.
4405 * kern/i386/loader.S: Likewise.
4406 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
4407 (grub_linux16_boot): New function. Switches to text mode and calls
4408 grub_linux16_real_boot().
4410 * loader/i386/bsd.c: Include `<grub/video.h>'.
4411 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
4412 text mode before calling grub_unix_real_boot().
4414 * loader/i386/multiboot.c: Include `<grub/video.h>'.
4415 (grub_multiboot_boot): Switch to text mode before calling
4416 grub_relocator32_boot().
4418 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
4419 (grub_chainloader_boot): Switch to text mode before calling
4420 grub_chainloader_real_boot().
4422 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4423 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4425 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
4428 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4429 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4431 * util/grub.d/00_header.in: Define a "savedefault" function for use
4433 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
4435 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4436 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4438 * util/grub-mkconfig_lib.in (save_default_entry): Only set
4439 saved_entry if boot_once is unset.
4440 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
4441 previous saved entry (i.e. grub-reboot).
4443 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4445 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
4447 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4449 * util/grub.d/00_header.in: Use `set var=val' rather than plain
4451 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
4453 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4455 * util/grub-reboot.in: Fix --version output.
4456 * util/grub-set-default.in: Likewise.
4458 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4460 * util/grub.d/00_header.in: Silently ignore zero-sized environment
4463 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4465 * util/grub.d/00_header.in: Quote the value assigned to `default',
4466 in case it contains spaces.
4468 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4470 * util/grub.d/30_os-prober.in: Fix merge error that moved a
4471 `save_default_entry' call from the macosx case to the linux case.
4473 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4474 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
4476 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
4477 in `chosen' environment variable.
4478 * normal/menu_text.c (get_entry_number): Check if the variable
4479 matches the title of a menu entry.
4480 (run_menu): Pass menu to get_entry_number.
4482 * util/grub-reboot.in: New file.
4483 * util/grub-set-default.in: New file.
4484 * conf/common.rmk (grub-reboot): New utility.
4485 (grub-set-default): New utility.
4487 * util/grub-mkconfig_lib.in (save_default_entry): New function.
4488 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
4489 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
4490 move it to `saved_entry' for the next boot. Load environment on
4492 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
4493 * util/grub.d/10_hurd.in: Likewise.
4494 * util/grub.d/10_linux.in (linux_entry): Likewise.
4495 * util/grub.d/10_windows.in: Likewise.
4496 * util/grub.d/30_os-prober.in: Likewise.
4498 * util/grub-install.in: Create environment block.
4499 * util/i386/efi/grub-install.in: Likewise.
4500 * util/ieee1275/grub-install.in: Likewise.
4501 * util/sparc64/ieee1275/grub-install.in: Likewise.
4503 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
4505 Unit testing framework for GRUB.
4507 * Makefile.in: Test framework build rules for 'make check'.
4508 * conf/tests.rmk: Build rules for individual tests and framework.
4510 * include/grub/test.h: Header file for whitebox tests.
4511 * tests/lib/functional_test.c: Framework support for whitebox
4513 * tests/lib/test.c: Common whitebox testing code for unit and
4515 * tests/lib/unit_test.c: Framework support for whitebox unit
4518 * tests/util/grub-shell-tester.in: Support utility for grub-script
4520 * tests/util/grub-shell.in: Utility to execute grub-script
4521 commands in a Qemu instance.
4523 * tests/example_functional_test.c: Example whitebox functional
4525 * tests/example_grub_script_test.in: Example grub-script test.
4526 * tests/example_scripted_test.in: Example scripted test.
4527 * tests/example_unit_test.c: Example whitebox unit test.
4529 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
4531 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
4532 Add loader/i386/multiboot_mbi.c.
4533 (multiboot2_mod_SOURCES): Likewise.
4534 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
4535 (multiboot2_mod_SOURCES): Likewise.
4536 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
4537 (grub_multiboot_make_mbi): Likewise.
4538 (grub_multiboot_free_mbi): Likewise.
4539 (grub_multiboot_init_mbi): Likewise.
4540 (grub_multiboot_add_module): Likewise.
4541 (grub_multiboot_set_bootdev): Likewise.
4542 * loader/i386/multiboot.c (mbi): Removed.
4543 (mbi_dest): Likewise.
4544 (alloc_mbi): New variable.
4545 (grub_multiboot_payload_size): Removed. All users updated.
4546 (grub_multiboot_pure_size): New variable.
4547 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
4548 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
4549 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
4550 (grub_fill_multiboot_mmap): Likewise.
4551 (grub_multiboot_get_bootdev): Likewise.
4552 (grub_multiboot): Use multiboot_mbi functions.
4553 * loader/i386/multiboot_mbi.c: New file.
4555 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4557 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
4558 it would result in module crash.
4560 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4562 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
4563 (grub_ofconsole_getwh): Split to ...
4564 (grub_ofconsole_getwh): ... this.
4565 (grub_ofconsole_dimensions): ...and this.
4566 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
4568 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
4570 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
4572 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4574 * loader/i386/pc/multiboot2.c: Removed stalled file.
4576 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4578 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
4579 Reported by: Grégoire Sutre
4581 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
4583 * util/misc.c (canonicalize_file_name): New function.
4584 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
4585 instead of realpath().
4587 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
4589 * util/grub-install.in (usage): Clarify meaning of --root-directory,
4590 and make it clearer that it's optional. Based on confusion
4593 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4595 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
4596 in premature implicit newline.
4598 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4600 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
4601 which resulted in garbled command line at the end of screen.
4603 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4605 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
4606 initialization with similar approach as with other Linux loaders.
4608 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4610 Fix i386-ieee1275 build.
4612 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
4613 and grub_term_height() for video_{width,height} initialization.
4615 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4619 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
4621 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4622 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4624 Support for multiple terminals.
4626 * Makefile.in (pkglib_DATA): terminal.lst.
4627 (terminal.lst): New target.
4628 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
4629 (GRUB_MOD_INIT(handler)): Likewise.
4630 (GRUB_MOD_FINI(handler)): Likewise.
4631 * commands/help.c (grub_cmd_help): Handle multiple terminals.
4632 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
4633 * commands/sleep.c (do_print): Use grub_term_restore_pos.
4634 (grub_cmd_sleep): Use grub_term_save_pos.
4635 * commands/terminal.c: New file.
4636 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
4637 commands/terminal.c and lib/charset.c.
4638 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
4639 (pkglib_MODULES): Add terminal.mod.
4640 (terminal_mod_SOURCES): New variable.
4641 (terminal_mod_CFLAGS): Likewise.
4642 (terminal_mod_LDFLAGS): Likewise.
4643 * genhandlerlist.sh: Don't handle terminals.
4644 * genmk.rb: Generate terminal-*.lst.
4645 * genterminallist.sh: New file.
4646 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
4647 (grub_is_valid_utf8): Likewise.
4648 (grub_utf8_to_ucs4_alloc): Likewise.
4649 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
4650 (grub_menu_register_viewer): Changed argument.
4651 (grub_menu_try_text): New proto.
4652 (grub_gfxmenu_try_hook): New declaration.
4653 * include/grub/normal.h (grub_normal_exit_level): New declaration.
4654 (grub_menu_init_page): Additional argument term.
4655 (grub_normal_init_page): Likewise.
4656 (grub_cmdline_get): Arguments simplified.
4657 (grub_utf8_to_ucs4_alloc): Removed.
4658 (grub_print_ucs4): Additional argument term.
4659 (grub_getstringwidth): Likewise.
4660 (grub_print_message_indented): Likewise.
4661 (grub_menu_text_register_instances): New proto.
4662 (grub_show_menu): Likewise.
4663 (read_terminal_list): Likewise.
4664 (grub_set_more): Likewise.
4665 * include/grub/parser.h: Include handler.h.
4666 * include/grub/reader.h: Rewritten.
4667 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
4668 (GRUB_TERM_WIDTH): Changed to function.
4669 (GRUB_TERM_HEIGHT): Likewise.
4670 (GRUB_TERM_BORDER_WIDTH): Likewise.
4671 (GRUB_TERM_BORDER_HEIGHT): Likewise.
4672 (GRUB_TERM_NUM_ENTRIES): Likewise.
4673 (GRUB_TERM_ENTRY_WIDTH): Likewise.
4674 (GRUB_TERM_CURSOR_X): Likewise.
4675 (grub_term_input_class): Likewise.
4676 (grub_term_output_class): Likewise.
4677 (grub_term_outputs_disabled): New declaration.
4678 (grub_term_inputs_disabled): Likewise.
4679 (grub_term_outputs): Likewise.
4680 (grub_term_inputs): Likewise.
4681 (grub_term_register_input): Rewritten.
4682 (grub_term_register_output): Likewise.
4683 (grub_term_unregister_input): Likewise.
4684 (grub_term_unregister_output): Likewise.
4685 (FOR_ACTIVE_TERM_INPUTS): New macro.
4686 (FOR_DISABLED_TERM_INPUTS): Likewise.
4687 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
4688 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
4689 * include/grub/terminfo.h: Add oterm argument to all protypes.
4690 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
4691 Use grub_rescue_run.
4692 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
4694 * kern/reader.c: Removed. All users updated.
4695 * kern/rescue_reader.c (grub_rescue_init): Removed.
4696 (grub_rescue_reader): Likewise.
4697 (grub_register_rescue_reader): Likewise.
4698 (grub_rescue_run): New function based on kern/reader.c.
4699 * kern/term.c: Adapted for multiterm.
4700 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
4701 (grub_is_valid_utf8): Likewise.
4702 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
4703 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
4705 * loader/i386/linux.c (grub_linux_boot): Likewise.
4706 * normal/auth.c (grub_username_get): New function.
4707 (grub_auth_check_authentication): Use grub_username_get.
4708 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
4709 * normal/color.c: Adapt for multiterm.
4710 * normal/main.c (read_config_file): Don't use grub_reader_loop.
4711 (grub_normal_init_page): Additional argument term.
4712 (read_lists): Call read_terminal_lists.
4713 (grub_enter_normal_mode): Call grub_cmdline_run.
4714 Handle grub_normal_exit_level.
4715 (grub_cmd_normal): Make reentrant.
4716 (grub_cmd_normal_exit): New function.
4717 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
4718 * normal/menu.c: Adapt for multiterm.
4719 * normal/menu_entry.c: Likewise.
4720 * normal/menu_text.c: Likewise.
4721 * normal/menu_viewer.c: Removed. All users updated.
4722 * normal/term.c: New file.
4723 * util/console.c: Change order of includes to workaround a bug in
4725 * term/terminfo.c: New argument oterm on all exported functions.
4727 * util/grub-editenv.c (grub_term_input_class): Removed.
4728 (grub_term_output_class): Likewise.
4730 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4732 Make loader output a bit more user-friendly.
4734 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
4735 is being loaded. Likewise for the Hurd.
4737 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
4738 that kernel of FreeBSD ${version} is being loaded.
4740 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
4742 (grub_cmd_initrd): Likewise.
4743 * util/grub.d/10_linux.in (linux_entry): Print message indicating
4744 that Linux ${version} is being loaded. Likewise for initrd.
4746 2010-01-09 Carles Pina i Estany <carles@pina.cat>
4748 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
4750 2010-01-08 Carles Pina i Estany <carles@pina.cat>
4752 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
4753 (GRUB_MOD_INIT): Gettextizze.
4754 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
4755 (GRUB_MOD_INIT): Gettextizze.
4756 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
4757 (grub_cmd_linux): Capitalise Linux.
4758 (GRUB_MOD_INIT): Gettextizze.
4759 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
4760 (grub_cmd_linux): Capitalise Linux.
4761 (GRUB_MOD_INIT): Gettextizze.
4762 * loader/i386/linux.c: Include `<grub/i18n.h>'.
4763 (grub_cmd_linux): Capitalise Linux.
4764 (GRUB_MOD_INIT): Gettextizze.
4765 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
4766 (GRUB_MOD_INIT): Gettextizze.
4767 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
4768 (grub_cmd_linux): Capitalise Linux.
4769 (GRUB_MOD_INIT): Gettextizze.
4770 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
4771 (grub_cpu_xnu_init): Gettextizze.
4772 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
4773 (GRUB_MOD_INIT): Gettextizze.
4774 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
4775 (GRUB_MOD_INIT): Gettextizze.
4776 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
4777 (grub_linux_load64): Capitalise Linux.
4778 (GRUB_MOD_INIT): Gettextizze.
4779 * loader/xnu.c: Include `<grub/i18n.h>'.
4780 (GRUB_MOD_INIT): Gettextizze.
4781 * po/POTFILES: Add `loader/efi/appleloader.c',
4782 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
4783 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
4784 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
4785 `loader/i386/xnu.c', `loader/multiboot_loader.c',
4786 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
4789 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
4791 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
4793 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
4795 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
4796 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
4797 * util/mkisofs/mkisofs.c (main): Readjust --version output.
4799 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4801 Reset Multiboot 2 support. New loader implements the draft in
4802 /branches/multiboot2 and shares as much code as possible with the
4803 production Multiboot 1 implementation.
4805 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
4806 * loader/multiboot2.c: Likewise.
4807 * loader/i386/multiboot_helper.S: Likewise.
4808 * include/multiboot2.h: Replace with latest version from the draft
4809 in /branches/multiboot2.
4811 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
4812 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
4813 and `loader/multiboot2.c'.
4814 (pkglib_MODULES): Add `multiboot2.mod'.
4815 (multiboot2_mod_SOURCES): New variable.
4816 (multiboot2_mod_LDFLAGS): Likewise.
4817 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
4819 * conf/i386-pc.rmk: Likewise.
4821 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
4822 (multiboot_mod_SOURCES): Remove variable.
4823 (multiboot_mod_LDFLAGS): Likewise.
4824 (multiboot_mod_CFLAGS): Likewise.
4826 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
4827 `<multiboot2.h>' instead of `<multiboot.h>'.
4828 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
4829 (MULTIBOOT_HEADER_MAGIC): New macros.
4831 * loader/multiboot_loader.c (module_version_status): Remove variable.
4832 (find_multi_boot2_header): Remove function.
4833 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
4834 logic. Always check for the Multiboot version we're compiling for.
4835 (grub_cmd_module_loader): Likewise.
4836 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
4837 command instead of `multiboot'.
4839 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4841 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
4842 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
4845 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4846 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4848 Fix breakage introduced with previous commit.
4850 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
4852 * normal/handler.c (read_handler_list): Revert part of previous commit
4853 affecting this file.
4854 * normal/main.c (read_lists): Move read_handler_list() call back to ...
4855 (grub_normal_execute): ... here.
4857 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4859 Merge prefix-redefinition-fix branch.
4861 * normal/autofs.c (read_fs_list): Make function capable of being
4862 run multiple times, gracefuly replacing the previous data
4864 * normal/dyncmd.c (read_command_list): Likewise.
4865 * normal/handler.c (read_handler_list): Likewise.
4866 * normal/main.c (read_lists): New function. Calls all the
4867 list reading functions.
4868 (grub_normal_execute): Use read_lists() instead of calling all
4869 list reading functions explicitly. Register read_lists() as a
4870 variable hook attached to ${prefix}.
4872 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4874 Merge crypto branch.
4876 * Makefile.in (pkglib_DATA): Add crypto.lst.
4877 (crypto.lst): New target.
4878 * commands/hashsum.c: New file.
4879 * commands/password.c (check_password): Use grub_crypto_memcmp.
4880 * commands/password_pbkdf2.c: New file.
4881 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
4882 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
4883 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
4884 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
4885 -I$(srcdir)/lib/libgcrypt_wrap.
4886 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
4887 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
4888 password_pbkdf2.mod.
4889 (crypto_mod_SOURCES): New variable.
4890 (crypto_mod_CFLAGS): Likewise.
4891 (crypto_mod_LDFLAGS): Likewise.
4892 (hashsum_mod_SOURCES): New variable.
4893 (hashsum_mod_CFLAGS): Likewise.
4894 (hashsum_mod_LDFLAGS): Likewise.
4895 (pbkdf2_mod_SOURCES): New variable.
4896 (pbkdf2_mod_CFLAGS): Likewise.
4897 (pbkdf2_mod_LDFLAGS): Likewise.
4898 (password_pbkdf2_mod_SOURCES): New variable.
4899 (password_pbkdf2_mod_CFLAGS): Likewise.
4900 (password_pbkdf2_mod_LDFLAGS): Likewise.
4901 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
4902 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
4903 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
4904 Include conf/gcry.rmk.
4905 * include/grub/auth.h: Rewritten.
4906 * include/grub/crypto.h: New file.
4907 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
4908 * include/grub/normal.h (read_crypto_list): New prototype.
4909 * lib/crypto.c: New file.
4910 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
4911 * lib/pbkdf2.c: Likewise.
4912 * normal/auth.c (grub_auth_strcmp): Removed.
4913 (grub_iswordseparator): Likewise.
4914 (grub_auth_strword): Likewise.
4915 (is_authenticated): Use grub_strword.
4916 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
4917 and grub_strword. Pass entered password to authentication callback.
4918 * normal/crypto.c: New file.
4919 * normal/main.c: Call read_crypto_list.
4920 * util/grub-mkpasswd-pbkdf2.c: New file.
4921 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
4923 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
4925 Fix descent and ascent calculation.
4927 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
4928 (options): New option "asce".
4930 (add_char): Ignore invalid glyphs for descent calculation.
4931 Calculate ascent from actual content.
4932 (print_glyphs): Use 'asce'.
4933 (write_font): Likewise. Allow ascent override.
4934 (main): Handle "asce" option.
4936 2010-01-06 Carles Pina i Estany <carles@pina.cat>
4938 * kern/err.c: Include `<grub/i18n.h>'.
4939 (grub_print_error): Add full stop. Gettextizze.
4940 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
4941 (grub_bsd_load_elf): Capitalise ELF.
4942 (grub_cmd_freebsd_loadenv): Add `s' in error string.
4943 (grub_cmd_freebsd_module): Likewise.
4944 (grub_cmd_freebsd_module_elf): Likewise.
4945 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
4947 2010-01-06 Carles Pina i Estany <carles@pina.cat>
4949 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
4950 * commands/search_file.c (HELP_MESSAGE): New macro.
4951 * commands/search_label.c (HELP_MESSAGE): Likewise.
4952 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
4953 * po/POTFILES: Add `commands/search_file.c',
4954 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
4955 `commands/search.c'.
4957 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
4959 * config.rpath: Update from Gnulib.
4961 2010-01-05 Yves Blusseau <blusseau@zetam.org>
4963 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
4965 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
4967 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
4969 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4971 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
4972 arguments to fread so that we get a return value in bytes, rather
4973 than something that will normally be rounded down to 0.
4974 Adjust error handling to avoid producing garbage when size_t is not
4975 the same size as long long.
4977 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4979 * util/mkisofs/write.c (padblock_write): Check return value of
4982 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
4984 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
4987 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
4989 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
4991 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
4992 instead of manual alignment.
4993 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
4994 verbose). Avoid attempts to read past end of the device
4995 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
4996 but GRUB_DISK_CACHE_SIZE may exceed that).
4998 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
5000 * commands/crc.c (grub_cmd_crc): Abort on read errors.
5001 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
5004 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5006 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
5008 (grub_efi_piwg_device_path): New structure
5009 (grub_efi_piwg_device_path_t): New type.
5010 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
5011 (devpath_1): Transform to a structure. All users updated.
5012 (devpath_2): Likewise.
5013 (devpath_3): Likewise.
5014 (devpath_4): Likewise.
5015 (devpath_5): Likewise.
5017 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5019 * loader/efi/appleloader.c: Restored. Update all users.
5021 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5023 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
5025 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
5026 (struct boot_blocklist): Move from here ...
5027 * include/grub/i386/pc/boot.h [ASM_FILE]
5028 (struct grub_boot_blocklist): ... to here. Update all users.
5029 (setup): Only initialize `start' member of `first_block'
5030 structure. Add assert() calls to verify the other members.
5032 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
5033 (generate_image): Fix broken blocklist length initialization.
5034 Add assert() call to verify blocklist `segment' field.
5036 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5038 * loader/efi/appleloader.c: Remove. Update all users.
5040 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5042 * boot/i386/pc/boot.S: Update copyright year.
5043 * boot/i386/pc/cdboot.S: Likewise.
5044 * boot/i386/pc/diskboot.S: Likewise.
5045 * boot/i386/pc/lnxboot.S: Likewise.
5046 * boot/i386/pc/pxeboot.S: Likewise.
5047 * bus/pci.c: Likewise.
5048 * commands/cmp.c: Likewise.
5049 * commands/help.c: Likewise.
5050 * commands/hexdump.c: Likewise.
5051 * commands/i386/pc/halt.c: Likewise.
5052 * commands/i386/pc/play.c: Likewise.
5053 * commands/i386/pc/vbeinfo.c: Likewise.
5054 * commands/ls.c: Likewise.
5055 * commands/test.c: Likewise.
5056 * disk/dmraid_nvidia.c: Likewise.
5057 * disk/i386/pc/biosdisk.c: Likewise.
5058 * disk/ieee1275/nand.c: Likewise.
5059 * disk/ieee1275/ofdisk.c: Likewise.
5060 * disk/lvm.c: Likewise.
5061 * disk/raid.c: Likewise.
5062 * disk/raid6_recover.c: Likewise.
5063 * disk/scsi.c: Likewise.
5064 * fs/affs.c: Likewise.
5065 * fs/cpio.c: Likewise.
5066 * fs/ext2.c: Likewise.
5067 * fs/hfs.c: Likewise.
5068 * fs/iso9660.c: Likewise.
5069 * fs/ntfs.c: Likewise.
5070 * fs/sfs.c: Likewise.
5071 * fs/udf.c: Likewise.
5072 * fs/ufs.c: Likewise.
5073 * fs/xfs.c: Likewise.
5074 * gencmdlist.sh: Likewise.
5075 * genmk.rb: Likewise.
5076 * include/grub/disk.h: Likewise.
5077 * include/grub/efi/api.h: Likewise.
5078 * include/grub/efi/efi.h: Likewise.
5079 * include/grub/efi/pe32.h: Likewise.
5080 * include/grub/elf.h: Likewise.
5081 * include/grub/fs.h: Likewise.
5082 * include/grub/i386/at_keyboard.h: Likewise.
5083 * include/grub/i386/pc/memory.h: Likewise.
5084 * include/grub/i386/pc/vbe.h: Likewise.
5085 * include/grub/i386/pci.h: Likewise.
5086 * include/grub/i386/tsc.h: Likewise.
5087 * include/grub/ieee1275/ieee1275.h: Likewise.
5088 * include/grub/ntfs.h: Likewise.
5089 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
5090 * include/grub/sparc64/libgcc.h: Likewise.
5091 * include/grub/symbol.h: Likewise.
5092 * include/grub/types.h: Likewise.
5093 * include/multiboot2.h: Likewise.
5094 * io/gzio.c: Likewise.
5095 * kern/device.c: Likewise.
5096 * kern/disk.c: Likewise.
5097 * kern/efi/efi.c: Likewise.
5098 * kern/efi/mm.c: Likewise.
5099 * kern/elf.c: Likewise.
5100 * kern/file.c: Likewise.
5101 * kern/i386/dl.c: Likewise.
5102 * kern/i386/pc/init.c: Likewise.
5103 * kern/i386/pc/startup.S: Likewise.
5104 * kern/ieee1275/ieee1275.c: Likewise.
5105 * kern/ieee1275/init.c: Likewise.
5106 * kern/main.c: Likewise.
5107 * kern/mm.c: Likewise.
5108 * kern/powerpc/dl.c: Likewise.
5109 * kern/sparc64/dl.c: Likewise.
5110 * kern/x86_64/dl.c: Likewise.
5111 * lib/hexdump.c: Likewise.
5112 * loader/efi/appleloader.c: Likewise.
5113 * loader/i386/ieee1275/linux.c: Likewise.
5114 * loader/i386/pc/chainloader.c: Likewise.
5115 * loader/i386/pc/linux.c: Likewise.
5116 * loader/i386/pc/multiboot2.c: Likewise.
5117 * loader/ieee1275/multiboot2.c: Likewise.
5118 * loader/multiboot2.c: Likewise.
5119 * loader/multiboot_loader.c: Likewise.
5120 * loader/powerpc/ieee1275/linux.c: Likewise.
5121 * normal/completion.c: Likewise.
5122 * normal/menu_entry.c: Likewise.
5123 * partmap/apple.c: Likewise.
5124 * util/grub.d/10_hurd.in: Likewise.
5125 * util/hostfs.c: Likewise.
5126 * video/readers/png.c: Likewise.
5128 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
5130 * include/grub/misc.h (GNUC_PREREQ): New macro.
5131 (ATTRIBUTE_ERROR): New macro.
5132 * include/grub/list.h (grub_bad_type_cast_real): Use
5135 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5137 * normal/menu_text.c (print_message): Change messages.
5139 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5141 * normal/menu_entry.c (store_completion): Gettextizze.
5143 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5145 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
5147 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5149 * po/POTFILES: Sort correctly.
5151 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5153 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
5154 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
5155 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
5157 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
5158 summary. Gettextizze the strings.
5159 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
5160 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
5161 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
5163 (GRUB_MOD_INIT): Remove command name from summary.
5164 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
5166 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
5167 * term/i386/pc/serial.c (options): Add full stops.
5168 (GRUB_MOD_INIT): Remove command name from the summary.
5170 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5172 * commands/acpi.c: Gettextizze help strings and/or options. Include
5173 `grub/i18n.h' if needed.
5174 * commands/blocklist.c: Likewise.
5175 * commands/boot.c: Likewise.
5176 * commands/cat.c: Likewise.
5177 * commands/cmp.c: Likewise.
5178 * commands/configfile.c: Likewise.
5179 * commands/crc.c: Likewise.
5180 * commands/date.c: Likewise.
5181 * commands/echo.c: Likewise.
5182 * commands/efi/fixvideo.c: Likewise.
5183 * commands/efi/loadbios.c: Likewise.
5184 * commands/gptsync.c: Likewise.
5185 * commands/halt.c: Likewise.
5186 * commands/handler.c: Likewise.
5187 * commands/hdparm.c: Likewise.
5188 * commands/hexdump.c: Likewise.
5189 * commands/i386/cpuid.c: Likewise.
5190 * commands/i386/pc/drivemap.c: Likewise.
5191 * commands/i386/pc/halt.c: Likewise.
5192 * commands/i386/pc/pxecmd.c: Likewise.
5193 * commands/i386/pc/vbeinfo.c: Likewise.
5194 * commands/i386/pc/vbetest.c: Likewise.
5195 * commands/ieee1275/suspend.c: Likewise.
5196 * commands/keystatus.c: Likewise.
5197 * commands/loadenv.c: Likewise.
5198 * commands/ls.c: Likewise.
5199 * commands/lsmmap.c: Likewise.
5200 * commands/lspci.c: Likewise.
5201 * commands/memrw.c: Likewise.
5202 * commands/minicmd.c: Likewise.
5203 * commands/parttool.c: Likewise.
5204 * commands/password.c: Likewise.
5205 * commands/probe.c: Likewise.
5206 * commands/read.c: Likewise.
5207 * commands/reboot.c: Likewise.
5208 * commands/search.c: Likewise.
5209 * commands/sleep.c: Likewise.
5210 * commands/test.c: Likewise.
5211 * commands/true.c: Likewise.
5212 * commands/usbtest.c: Likewise.
5213 * commands/videotest.c: Likewise.
5214 * commands/xnu_uuid.c: Likewise.
5215 * disk/loopback.c: Likewise.
5216 * hello/hello.c: Likewise.
5217 * loader/i386/bsd.c: Likewise.
5218 * term/i386/pc/serial.c: Likewise.
5219 * po/POTFILES: Add new files.
5221 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
5223 * term/i386/pc/at_keyboard.c
5224 (keyboard_controller_wait_untill_ready): Rename to ...
5225 (keyboard_controller_wait_until_ready): ... this. Update all users.
5227 2010-01-01 Carles Pina i Estany <carles@pina.cat>
5229 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
5230 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
5231 string using string width.
5232 * normal/menu_text.c (grub_print_message_indented): Use
5233 grub_print_spaces and not print_spaces.
5234 (print_timeout): Likewise.
5235 (print_spaces): Move to...
5236 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
5238 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
5242 * gnulib/getdelim.c: New file.
5243 * gnulib/getline.c: Likewise.
5245 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
5247 * include/grub/list.h (grub_assert_fail): Removed.
5248 (grub_bad_type_cast_real): New function.
5249 (grub_bad_type_cast): New macro.
5250 (GRUB_AS_LIST): Use grub_bad_type_cast.
5251 (GRUB_AS_LIST_P): Likewise.
5252 (GRUB_AS_NAMED_LIST): Likewise.
5253 (GRUB_AS_NAMED_LIST_P): Likewise.
5254 (GRUB_AS_PRIO_LIST): Likewise.
5255 (GRUB_AS_PRIO_LIST_P): Likewise.
5256 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
5258 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
5260 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
5263 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
5265 * configure.ac: Check for TARGET_CFLAGS initialization before we
5266 initialize it ourselves (sigh).
5267 Move a few modifications to TARGET_CFLAGS to be unconditional
5268 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
5271 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
5272 * term/i386/pc/at_keyboard.c
5273 (keyboard_controller_wait_untill_ready): Likewise.
5274 (keyboard_controller_led): Rename `led_status' paramter to avoid
5277 2009-12-28 Carles Pina i Estany <carles@pina.cat>
5279 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
5282 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5284 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
5286 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5288 * normal/menu_text.c (grub_print_message_indented): Prevent
5289 past-the-end-of-array dereference.
5291 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5293 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
5294 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
5296 2009-12-27 Carles Pina i Estany <carles@pina.cat>
5298 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
5299 * normal/main.c (grub_normal_read_line): Remove a space from the
5302 2009-12-27 Carles Pina i Estany <carles@pina.cat>
5304 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
5305 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5306 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5307 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5308 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5309 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5310 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5312 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5314 * video/readers/jpeg.c (cmd): Declare.
5315 (grub_cmd_jpegtest): Use `grub_command_t' type.
5316 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5318 (GRUB_MOD_FINI): Use `cmd' to unregister.
5319 * video/readers/png.c (cmd): Declare.
5320 (grub_cmd_pngtest): Use `grub_command_t' type.
5321 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5323 (GRUB_MOD_FINI): Use `cmd' to unregister.
5324 * video/readers/tga.c (cmd): Declare.
5325 (grub_cmd_tgatest): Use `grub_command_t' type.
5326 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5328 (GRUB_MOD_FINI): Use `cmd' to unregister.
5330 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5332 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
5334 * kern/corecmd.c (grub_register_core_commands): Likewise.
5335 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
5336 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5337 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
5338 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5339 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5340 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
5341 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5342 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
5343 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5344 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5345 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5346 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5347 * normal/handler.c (insert_handler): Likewise.
5348 * normal/main.c (GRUB_MOD_INIT): Likewise.
5349 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
5351 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5353 * commands/help.c (grub_cmd_help): Print the command name before the
5355 (GRUB_MOD_INIT): Remove command name from the summary.
5356 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
5358 * lib/arg.c (find_long): Print the command name before the summary.
5359 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
5361 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
5362 * commands/cat.c (GRUB_MOD_INIT): Likewise.
5363 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
5364 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
5365 * commands/crc.c (GRUB_MOD_INIT): Likewise.
5366 * commands/date.c (GRUB_MOD_INIT): Likewise.
5367 * commands/echo.c (GRUB_MOD_INIT): Likewise.
5368 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
5369 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
5370 * commands/handler.c (GRUB_MOD_INIT): Likewise.
5371 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
5372 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
5373 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
5374 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
5375 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
5376 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
5377 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
5378 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
5379 * commands/ls.c (GRUB_MOD_INIT): Likewise.
5380 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
5381 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
5382 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
5383 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
5384 * commands/password.c (GRUB_MOD_INIT): Likewise.
5385 * commands/probe.c (GRUB_MOD_INIT): Likewise.
5386 * commands/read.c (GRUB_MOD_INIT): Likewise.
5387 * commands/search.c (GRUB_MOD_INIT): Likewise.
5388 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
5389 * commands/test.c (GRUB_MOD_INIT): Likewise.
5390 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
5391 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
5392 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
5393 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
5394 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
5395 * lib/arg.c (GRUB_MOD_INIT): Likewise.
5396 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
5397 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5398 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5399 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5400 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
5401 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
5402 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
5403 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
5405 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5407 Use search command for preliminar UUID search.
5409 * commands/search.c: Split into ...
5410 * commands/search_wrap.c: ...this
5411 * commands/search.c: ...and this.
5412 * commands/search_file.c: New file.
5413 * commands/search_label.c: New file.
5414 * commands/search_uuid.c: New file.
5415 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
5416 Add commands/search_wrap.c, commands/search_file.c,
5417 commands/search_label.c and commands/search_uuid.c.
5418 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
5419 (search_mod_SOURCES): Set to commands/search_wrap.c.
5420 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
5422 (search_fs_file_mod_SOURCES): New variable.
5423 (search_fs_file_mod_CFLAGS): Likewise.
5424 (search_fs_file_mod_LDFLAGS): Likewise.
5425 (search_label_mod_SOURCES): Likewise.
5426 (search_label_mod_CFLAGS): Likewise.
5427 (search_label_mod_LDFLAGS): Likewise.
5428 (search_fs_uuid_mod_SOURCES): New variable.
5429 (search_fs_uuid_mod_CFLAGS): Likewise.
5430 (search_fs_uuid_mod_LDFLAGS): Likewise.
5431 (fs_file_mod_SOURCES): Removed.
5432 (fs_file_mod_CFLAGS): Likewise.
5433 (fs_file_mod_LDFLAGS): Likewise.
5434 (fs_uuid_mod_SOURCES): Removed.
5435 (fs_uuid_mod_CFLAGS): Likewise.
5436 (fs_uuid_mod_LDFLAGS): Likewise.
5437 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
5438 Set to util/grub-install.in.
5439 * disk/fs_file.c: Removed.
5440 * disk/fs_uuid.c: Likewise.
5441 * include/grub/search.h: New file.
5442 * util/grub-install.in: Handle sparc64.
5443 Create and use load.cfg.
5444 * util/sparc64/ieee1275/grub-install.in: Removed.
5446 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5448 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
5449 Ignore return status if CF is cleared.
5450 (grub_biosdisk_get_diskinfo_standard): Likewise.
5452 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5454 * term/i386/pc/at_keyboard.c
5455 (keyboard_controller_wait_untill_ready): New function.
5456 (grub_keyboard_controller_write, grub_keyboard_controller_read)
5457 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
5458 for keyboard polling, rather than duplicate the same loop. This
5459 saves a few bytes in code size.
5461 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5463 Support for (pxe[:server[:gateway]]) syntax and
5464 use environment variable for PXE.
5466 * commands/i386/pc/pxecmd.c (options): Removed.
5467 (print_ip): Removed.
5468 (grub_cmd_pxe): Removed
5469 (grub_cmd_pxe_unload): New function.
5470 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
5471 (grub_pxe_your_ip): Made static.
5472 (grub_pxe_default_server_ip): Likewise.
5473 (grub_pxe_default_gateway_ip): Likewise.
5474 (grub_pxe_blksize): Likewise.
5475 (parse_ip): New function.
5476 (grub_pxe_open): Support server and gateway specification.
5477 (grub_pxe_close): Free disk->data.
5478 (grub_pxefs_open): Use disk->data.
5479 (grub_pxefs_read): Likewise.
5480 (grub_env_write_readonly): New function.
5481 (set_mac_env): Likewise.
5482 (set_env_limn_ro): Likewise.
5483 (parse_dhcp_vendor): Likewise.
5484 (grub_pxe_detect): Set the environment variables.
5485 (set_ip_env): New function.
5486 (write_ip_env): Likewise.
5487 (grub_env_write_pxe_default_server): Likewise.
5488 (grub_env_write_pxe_default_gateway): Likewise.
5489 (grub_env_write_pxe_blocksize): Likewise.
5490 (GRUB_MOD_INIT(pxe)): Set environment variables.
5491 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
5492 (grub_pxe_mac_addr_t): ... this. All users updated.
5493 (grub_pxe_your_ip): Removed.
5494 (grub_pxe_server_ip): Likewise.
5495 (grub_pxe_gateway_ip): Likewise.
5496 (grub_pxe_blksize): Likewise.
5498 2009-12-25 Carles Pina i Estany <carles@pina.cat>
5500 * commands/help.c: Include `<grub/i18n.h>'.
5501 (grub_cmd_help): Gettextizze.
5502 (GRUB_MOD_INIT): Likewise.
5503 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
5504 (GRUB_MOD_INIT): Gettextizze.
5505 * commands/search.c: Include `<grub/i18n.h>'.
5506 (options): Gettextizze.
5507 (GRUB_MOD_INIT): Gettextizze.
5508 * lib/arg.c: Include `<grub/i18n.h>'.
5509 (help_options): Gettextizze.
5510 (find_long): Likewise.
5511 (grub_arg_show_help): Likewise.
5512 * normal/dyncmd.c: Include `<grub/i18n.h>'.
5513 (read_command_list): Gettextizze.
5514 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
5515 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
5517 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5519 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
5520 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
5521 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
5522 (led_status): New variable.
5523 (keyboard_controller_led): New function.
5524 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
5525 update led status for caps lock, num lock and scroll lock.
5527 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
5529 * util/hostdisk.c (open_device): Fix a comment.
5531 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5533 * util/grub-install.in (host_os): New variable.
5534 * util/i386/efi/grub-install.in (host_os): Likewise.
5536 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5538 * util/mkisofs/write.c (padblock_write): Abort when given an
5539 excedingly large embed image, instead of silently truncating it.
5541 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5543 * include/multiboot.h: Indentation fixes.
5545 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5547 * include/multiboot.h (struct multiboot_aout_symbol_table)
5548 (struct multiboot_elf_section_header_table): New structure
5549 declarations (stolen from GRUB Legacy).
5550 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
5553 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
5554 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
5557 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5559 * include/multiboot.h: Make comments src2texi-friendly.
5561 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5563 For consistency with [multiboot]/docs/boot.S.
5565 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
5566 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
5567 (MULTIBOOT_MAGIC2): Rename from this ...
5568 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
5570 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5572 * include/multiboot.h: Remove `<grub/types.h>'.
5573 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
5574 types. Update all users.
5576 2009-12-25 Carles Pina i Estany <carles@pina.cat>
5578 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
5579 `couldn't' and `can not' by `cannot'.
5580 * commands/i386/pc/drivemap.c: Likewise.
5581 * disk/ata.c: Likewise.
5582 * disk/ieee1275/nand.c: Likewise.
5583 * fs/affs.c: Likewise.
5584 * fs/fat.c: Likewise.
5585 * fs/hfs.c: Likewise.
5586 * fs/hfsplus.c: Likewise.
5587 * fs/iso9660.c: Likewise.
5588 * fs/jfs.c: Likewise.
5589 * fs/minix.c: Likewise.
5590 * fs/reiserfs.c: Likewise.
5591 * fs/sfs.c: Likewise.
5592 * fs/udf.c: Likewise.
5593 * fs/ufs.c: Likewise.
5594 * fs/xfs.c: Likewise.
5595 * loader/powerpc/ieee1275/linux.c: Likewise.
5596 * loader/sparc64/ieee1275/linux.c: Likewise.
5597 * util/grub-probe.c: Likewise.
5598 * util/misc.c: Likewise.
5600 2009-12-24 Carles Pina i Estany <carles@pina.cat>
5602 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
5604 * commands/acpi.c: Likewise.
5605 * commands/blocklist.c: Likewise.
5606 * commands/efi/loadbios.c: Likewise.
5607 * commands/i386/pc/drivemap.c: Likewise.
5608 * commands/loadenv.c: Likewise.
5609 * commands/memrw.c: Likewise.
5610 * commands/password.c: Likewise.
5611 * commands/videotest.c: Likewise.
5612 * disk/ata.c: Likewise.
5613 * disk/ata_pthru.c: Likewise.
5614 * disk/dmraid_nvidia.c: Likewise.
5615 * disk/ieee1275/nand.c: Likewise.
5616 * disk/ieee1275/ofdisk.c: Likewise.
5617 * disk/loopback.c: Likewise.
5618 * disk/lvm.c: Likewise.
5619 * disk/mdraid_linux.c: Likewise.
5620 * disk/raid.c: Likewise.
5621 * disk/raid6_recover.c: Likewise.
5622 * disk/scsi.c: Likewise.
5623 * efiemu/main.c: Likewise.
5624 * efiemu/mm.c: Likewise.
5625 * efiemu/pnvram.c: Likewise.
5626 * efiemu/symbols.c: Likewise.
5627 * font/font.c: Likewise.
5628 * fs/cpio.c: Likewise.
5629 * fs/hfsplus.c: Likewise.
5630 * fs/iso9660.c: Likewise.
5631 * fs/jfs.c: Likewise.
5632 * fs/minix.c: Likewise.
5633 * fs/ntfs.c: Likewise.
5634 * fs/ntfscomp.c: Likewise.
5635 * fs/reiserfs.c: Likewise.
5636 * fs/ufs.c: Likewise.
5637 * fs/xfs.c: Likewise.
5638 * gettext/gettext.c: Likewise.
5639 * include/grub/auth.h: Likewise.
5640 * kern/elf.c: Likewise.
5641 * kern/file.c: Likewise.
5642 * kern/ieee1275/init.c: Likewise.
5643 * kern/ieee1275/mmap.c: Likewise.
5644 * kern/ieee1275/openfw.c: Likewise.
5645 * kern/powerpc/dl.c: Likewise.
5646 * kern/sparc64/dl.c: Likewise.
5647 * lib/arg.c: Likewise.
5648 * loader/i386/bsd.c: Likewise.
5649 * loader/i386/bsdXX.c: Likewise.
5650 * loader/i386/efi/linux.c: Likewise.
5651 * loader/i386/efi/xnu.c: Likewise.
5652 * loader/i386/ieee1275/linux.c: Likewise.
5653 * loader/i386/linux.c: Likewise.
5654 * loader/i386/multiboot.c: Likewise.
5655 * loader/i386/pc/linux.c: Likewise.
5656 * loader/i386/pc/multiboot2.c: Likewise.
5657 * loader/i386/xnu.c: Likewise.
5658 * loader/ieee1275/multiboot2.c: Likewise.
5659 * loader/macho.c: Likewise.
5660 * loader/machoXX.c: Likewise.
5661 * loader/multiboot2.c: Likewise.
5662 * loader/multiboot_loader.c: Likewise.
5663 * loader/powerpc/ieee1275/linux.c: Likewise.
5664 * loader/sparc64/ieee1275/linux.c: Likewise.
5665 * loader/xnu.c: Likewise.
5666 * loader/xnu_resume.c: Likewise.
5667 * mmap/i386/pc/mmap.c: Likewise.
5668 * normal/menu_viewer.c: Likewise.
5669 * partmap/acorn.c: Likewise.
5670 * partmap/amiga.c: Likewise.
5671 * partmap/apple.c: Likewise.
5672 * script/lexer.c: Likewise.
5673 * term/gfxterm.c: Likewise.
5674 * term/i386/pc/serial.c: Likewise.
5675 * term/i386/pc/vga.c: Likewise.
5676 * term/ieee1275/ofconsole.c: Likewise.
5677 * term/terminfo.c: Likewise.
5678 * video/bitmap.c: Likewise.
5679 * video/efi_gop.c: Likewise.
5680 * video/efi_uga.c: Likewise.
5681 * video/fb/video_fb.c: Likewise.
5682 * video/i386/pc/vbe.c: Likewise.
5683 * video/readers/tga.c: Likewise.
5684 * video/video.c: Likewise.
5686 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
5688 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
5689 * commands/lspci.c: Likewise.
5690 * commands/probe.c: Likewise.
5691 * commands/xnu_uuid.c: Likewise.
5692 * conf/i386-coreboot.rmk: Likewise.
5693 * conf/i386-efi.rmk: Likewise.
5694 * conf/i386-ieee1275.rmk: Likewise.
5695 * conf/i386-pc.rmk: Likewise.
5696 * conf/powerpc-ieee1275.rmk: Likewise.
5697 * conf/sparc64-ieee1275.rmk: Likewise.
5698 * conf/x86_64-efi.rmk: Likewise.
5699 * fs/i386/pc/pxe.c: Likewise.
5700 * gettext/gettext.c: Likewise.
5701 * include/grub/efi/graphics_output.h: Likewise.
5702 * include/grub/i386/pc/memory.h: Likewise.
5703 * kern/env.c: Likewise.
5704 * kern/i386/qemu/startup.S: Likewise.
5705 * lib/i386/pc/biosnum.c: Likewise.
5706 * lib/i386/relocator.c: Likewise.
5707 * lib/i386/relocator_asm.S: Likewise.
5708 * lib/relocator.c: Likewise.
5709 * loader/i386/bsd.c: Likewise.
5710 * loader/i386/multiboot.c: Likewise.
5711 * loader/i386/pc/chainloader.c: Likewise.
5712 * loader/i386/xnu.c: Likewise.
5713 * loader/xnu.c: Likewise.
5714 * normal/main.c: Likewise.
5715 * normal/menu_text.c: Likewise.
5716 * util/getroot.c: Likewise.
5717 * util/grub-mkconfig_lib.in: Likewise.
5718 * util/grub.d/00_header.in: Likewise.
5719 * util/i386/pc/grub-mkimage.c: Likewise.
5720 * util/mkisofs/eltorito.c: Likewise.
5721 * util/mkisofs/exclude.h: Likewise.
5722 * util/mkisofs/hash.c: Likewise.
5723 * util/mkisofs/iso9660.h: Likewise.
5724 * util/mkisofs/joliet.c: Likewise.
5725 * util/mkisofs/mkisofs.c: Likewise.
5726 * util/mkisofs/mkisofs.h: Likewise.
5727 * util/mkisofs/multi.c: Likewise.
5728 * util/mkisofs/name.c: Likewise.
5729 * util/mkisofs/rock.c: Likewise.
5730 * util/mkisofs/tree.c: Likewise.
5731 * util/mkisofs/write.c: Likewise.
5732 * video/efi_gop.c: Likewise.
5734 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
5736 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
5739 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5741 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
5742 * genmk.rb (class SCRIPT): Modify the target file instead of source.
5744 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5746 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
5747 (GRUB_MOD_INIT(memrw)): Update help line.
5749 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5751 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
5752 Use grub_extcmd_t. All users updated.
5753 (options): New variable.
5754 (grub_cmd_read): Restructure for readability. Support "-v" option.
5755 (grub_cmd_write): Restructure for readability.
5757 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5759 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
5761 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5763 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
5764 with the actual contents of the correspondending make variable.
5765 * util/grub-mkrescue.in (pkglib_DATA): New variable.
5766 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
5767 specifying `*.lst' and `efiemu??.o'
5769 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5771 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
5772 after function name.
5773 Noticed by Rene Engelhard <rene@debian.org>.
5775 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5777 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
5778 (options): New variable.
5779 (iospace): Likewise.
5780 (grub_lspci_iter): List IO spaces if "-i" was given.
5781 (grub_cmd_lspci): Parse options.
5782 (GRUB_MOD_INIT(lspci)): Use extcmd.
5783 (GRUB_MOD_FINI(lspci)): Likewise.
5785 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5787 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
5789 Patch by Tony Mancill <tmancill@debian.org>.
5791 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5793 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
5794 (grub_uhci_portstatus): Likewise.
5795 (grub_uhci_portstatus): Add necessary delay.
5796 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
5798 2009-12-21 Carles Pina i Estany <carles@pina.cat>
5800 * commands/acpi.c (options): Fix capitalizations and/or full stops.
5801 (GRUB_MOD_INIT): Likewise.
5802 * commands/boot.c (GRUB_MOD_INIT): Likewise.
5803 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
5804 * commands/echo.c (options): Fix capitalizations and/or full stops.
5805 * commands/efi/loadbios.c (enable_rom_area): Likewise.
5806 (enable_rom_area): Likewise.
5807 (GRUB_MOD_INIT): Likewise.
5808 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
5809 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
5810 * commands/handler.c (GRUB_MOD_INIT): Likewise.
5811 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
5812 * commands/hexdump.c (options): Likewise.
5813 * commands/i386/cpuid.c (options): Likewise.
5814 (GRUB_MOD_INIT): Likewise.
5815 * commands/i386/pc/drivemap.c (options): Likewise.
5816 (GRUB_MOD_INIT): Likewise.
5817 * commands/i386/pc/halt (options): Likewise.
5818 (GRUB_MOD_INIT): Likewise.
5819 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
5820 * commands/i386/pc/pxecmd.c (options): Likewise.
5821 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
5822 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
5823 * commands/keystatus.c (options): Likewise.
5824 (GRUB_MOD_INIT): Likewise.
5825 * commands/loadenv.c (options): Likewise.
5826 * commands/ls.c (options): Likewise.
5827 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
5828 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
5829 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
5830 * commands/parttool.c (helpmsg): Likewise.
5831 * commands/probe.c (options): Likewise.
5832 * commands/read.c (GRUB_MOD_INIT): Likewise.
5833 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
5834 * commands/search.c (options): Likewise.
5835 * commands/sleep.c (options): Likewise.
5836 * commands/test.c (GRUB_MOD_INIT): Likewise.
5837 * commands/true.c (GRUB_MOD_INIT): Likewise.
5838 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
5839 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
5840 * lib/arg.c (help_options): Likewise.
5841 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
5843 * po/POTFILES: Add `commands/loadenv.c'.
5845 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
5847 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
5848 instead of specifying them explicit.
5850 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5852 * NEWS: Add grub-probe support for GNU/Hurd.
5854 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5856 * NEWS: gettext was added after 1.97.
5858 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5860 * util/mkisofs/msdos_partition.h: New file (based on
5861 include/grub/msdos_partition.h).
5862 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
5863 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
5864 (ld_options, main): Recognize --protective-msdos-label.
5865 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
5866 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
5867 (padblock_write): If `use_protective_msdos_label' is set, patch a
5868 protective DOS-style label in the output image.
5870 * util/grub-mkrescue.in: Use --protective-msdos-label.
5872 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5874 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
5877 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5879 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
5881 (ld_options, main): Recognize `--embedded-boot'.
5882 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
5884 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
5885 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
5886 (padblock_write): Likewise. Rewrite to support embedded boot image.
5888 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
5889 for BIOS-based disk boot instead of only ElTorito.
5891 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5893 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
5894 build (not needed for bootstrap).
5896 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5898 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
5899 from i386-pc build (not needed for bootstrap).
5900 Rewrite a pair of strings.
5902 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5904 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
5906 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
5908 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
5910 2009-12-21 Andreas Born <futur.andy@googlemail.com>
5912 * kern/env.c (grub_env_context_open): Mark exported variable for
5915 2009-12-21 Andreas Born <futur.andy@googlemail.com>
5917 * kern/env.c (grub_env_export): Create nonexistent variables before
5920 2009-12-20 Carles Pina i Estany <carles@pina.cat>
5922 * include/grub/auth.h: Include `<grub/i18n.h>'.
5923 (GRUB_GET_PASSWORD): Gettextizze string.
5924 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
5926 (grub_utf8_to_ucs4_alloc): Fix indentation.
5927 (grub_print_ucs4): Likewise.
5928 (grub_getstringwidth): Likewise.
5929 (print_message_indented): New declaration.
5930 * normal/auth.c: Include `<grub/i18n.h>'.
5931 (grub_auth_check_authentication): Gettexttize string.
5932 * normal/cmdline.c: Include `<grub/i18n.h>'.
5933 (grub_cmdline_get): Gettextizze.
5934 * normal/color.c: Include `<grub/i18n.h>'.
5935 (grub_parse_color_name_pair): Gettexttize strings.
5936 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
5937 string (use `print_message_indented').
5938 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
5939 `include/grub/normal.h'.
5940 (print_message_indented): Renamed to ...
5941 (grub_print_message_indented): ... this. Remove `static' qualifer (now
5942 used in normal/main.c).
5943 (print_message): Use `grub_print_message_indented' instead of
5944 `print_message_indented'.
5945 (print_timeout): Likewise.
5946 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
5947 (grub_normal_print_device_info): Gettexttize strings.
5948 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
5950 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
5952 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
5953 of arguments. Return number of tokens and not arguments. All users
5956 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
5958 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
5959 non-MSDOS paritions.
5961 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
5963 * include/grub/types.h (UNUSED): Removed since it conflicts with
5964 NetBSD headers. All users changed to direct __attribute__ ((unused)).
5965 Reported by Grégoire Sutre.
5967 2009-12-19 Carles Pina i Estany <carles@pina.cat>
5969 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
5970 (grub_print_ucs4_alloc): Likewise.
5971 (grub_getstringwidth): Likewise.
5972 * normal/main.c (grub_normal_init_page): Gettextize version string.
5973 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
5974 (getstringwidth): Renamed to ...
5975 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
5976 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
5977 (grub_print_ucs4): Remove `static' qualifer (now used in
5979 * po/POTFILES: Add normal/main.c.
5981 2009-12-19 Carles Pina i Estany <carles@pina.cat>
5983 * normal/menu_text.c (STANDARD_MARGIN): New macro.
5984 (print_message_indented): Add `margin_left' and `margin_right'
5986 (print_message): Update `print_message_indented' calls. Adds '\n' to the
5988 (print_timeout): Use `print_message_indented' to print the message.
5989 Deletes `second_stage' parameter.
5990 (run_menu): Update `print_timeout' calls.
5992 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
5994 Fix console palette on OpenFirmware.
5996 * term/ieee1275/ofconsole.c (MAX): Removed.
5997 (colors): Redone based on VGA palette.
5998 (grub_ofconsole_setcolor): Discard brightness bit since only 8
5999 colors are supported.
6000 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
6002 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6004 Fix potential EfiEmu double prepare.
6006 * efiemu/main.c (prepared): New variable
6007 (grub_efiemu_unload): Set prepare to '0'.
6008 (grub_efiemu_prepare): Return if already prepared. Set prepared.
6010 set_virtual_address_map support.
6012 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
6014 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
6016 (grub_efiemu_crc32): Likewise.
6017 (grub_efiemu_crc64): Likewise.
6018 (grub_efiemu_set_virtual_address_map): Likewise.
6019 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
6021 (grub_autoefi_set_virtual_address_map): Likewise.
6022 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
6023 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
6024 Restructure flow to accomodate it.
6025 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
6026 (grub_efiemu_crc): Recompute CRC32.
6027 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
6028 (efiemu_ptv_relocated): ... this. Made global. All users updated.
6029 * efiemu/symbols.c (relocated_handle): New variable.
6030 (grub_efiemu_free_syms): Free relocated_handle.
6031 (grub_efiemu_alloc_syms): Allocate relocated_handle.
6032 (grub_efiemu_write_sym_markers): New function.
6033 (grub_efiemu_set_virtual_address_map): Likewise.
6035 Newer XNU parameters.
6037 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
6038 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
6039 (grub_xnu_fill_devicetree): New prototype.
6040 (grub_xnu_heap_real_start): New variable.
6041 * loader/xnu.c (get_name_ptr): New function.
6042 (grub_xnu_load_driver): Fill namelen and name.
6046 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
6047 and 'loader/macho64.c'.
6048 * conf/i386-pc.rmk: Likewise.
6049 * conf/x86_64-efi.rmk: Likewise.
6050 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
6051 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
6052 * include/grub/macho.h (grub_macho_segment64): New structure.
6053 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
6054 (grub_macho_size32): ... to this.
6055 (grub_macho32_get_entry_point): Renamed from ...
6056 (grub_macho_get_entry_point32): ... to this.
6057 (grub_macho_contains_macho64): New prototype.
6058 (grub_macho_size64): Likewise.
6059 (grub_macho_get_entry_point64): Likewise.
6060 (grub_macho32_load): Renamed from ...
6061 (grub_macho_load32): ... to this.
6062 (grub_macho32_filesize): Renamed from ...
6063 (grub_macho_filesize32): ... to this.
6064 (grub_macho32_readfile): Renamed from ...
6065 (grub_macho_readfile32): ... to this.
6066 (grub_macho_filesize64): New prototype.
6067 (grub_macho_readfile64): Likewise.
6068 (grub_macho_parse32): Likewise.
6069 (grub_macho_parse64): Likewise.
6070 * loader/macho.c: Split into ...
6071 * loader/machoXX.c: ... and this. Replace 32 with XX.
6072 * loader/macho32.c: New file.
6073 * loader/macho64.c: Likewise.
6074 * loader/xnu.c (grub_xnu_is_64bit): New variable.
6075 (grub_cmd_xnu_kernel): Make 32-bit only.
6076 (grub_cmd_xnu_kernel64): New function.
6077 (grub_xnu_load_driver): Support Mach-O 64.
6078 (grub_cmd_xnu_mkext): Likewise.
6079 * util/grub.d/30_os-prober.in (osx_entry): New function.
6080 Generate entries for 64-bit boot too.
6082 Eliminate ad-hoc tree format in XNU and EfiEmu.
6084 * efiemu/main.c (grub_efiemu_prepare): Update comment.
6085 * efiemu/pnvram.c: Rewritten to use environment variables.
6088 Inline utf16_to_utf8.
6090 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
6091 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
6093 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
6095 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
6096 * commands/usbtest.c (grub_usb_get_string): ... move here.
6097 (usb_print_str): Fix error handling.
6098 * include/grub/usb.h (grub_usb_get_string): Remove.
6100 UTF-8 to UTF-16 transformation.
6102 * conf/common.rmk (pkglib_MODULES): Add charset.mod
6103 (charset_mod_SOURCES): New variable.
6104 (charset_mod_CFLAGS): Likewise.
6105 (charset_mod_LDFLAGS): Likewise.
6106 * include/grub/utf.h: New file.
6107 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
6109 Support for device properties.
6111 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
6112 (grub_xnu_devprop_device_header): Likewise.
6113 (grub_xnu_devprop_device_descriptor): Likewise.
6114 (grub_xnu_devprop_add_device): New prototype.
6115 (grub_xnu_devprop_remove_device): Likewise.
6116 (grub_xnu_devprop_remove_property): Likewise.
6117 (grub_xnu_devprop_add_property_utf8): Likewise.
6118 (grub_xnu_devprop_add_property_utf16): Likewise.
6119 (grub_cpu_xnu_init): Likewise.
6120 (grub_cpu_xnu_fini): Likewise.
6121 (grub_cpu_xnu_unload): Likewise.
6122 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
6123 (property_descriptor): Likewise.
6124 (devices): New variable.
6125 (grub_xnu_devprop_remove_property): New function.
6126 (grub_xnu_devprop_add_device): Likewise.
6127 (grub_xnu_devprop_remove_device): Likewise.
6128 (grub_xnu_devprop_add_property): Likewise.
6129 (grub_xnu_devprop_add_property_utf8): Likewise.
6130 (grub_xnu_devprop_add_property_utf16): Likewise.
6131 (hextoval): Likewise.
6132 (grub_cpu_xnu_fill_devprop): Likewise.
6133 (grub_cmd_devprop_load): Likewise.
6134 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
6135 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
6136 (cmd_devprop_load): New variable.
6137 (grub_cpu_xnu_init): New function.
6138 (grub_cpu_xnu_fini): Likewise.
6139 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
6140 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
6141 (grub_cmd_xnu_devtree): Likewise.
6142 (hextoval): New function.
6143 (unescape): Likewise.
6144 (grub_xnu_fill_devicetree): Likewise.
6146 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
6147 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
6149 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6151 Workaround for broken ATI VBE.
6153 * video/i386/pc/vbe.c (last_set_mode): New variable.
6154 (grub_vbe_set_video_mode): Set 'last_set_mode'.
6155 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
6156 (grub_video_vbe_setup): Don't check for reserved flag.
6158 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
6160 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
6163 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
6165 UUID support for HFS.
6167 * fs/hfs.c (grub_hfs_uuid): New function.
6168 (grub_hfs_fs): New value .uuid.
6169 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
6171 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
6173 Fix a segfault with parsing unknown long options.
6175 * util/grub-mkrelpath.c (options): Zero terminate it.
6177 2009-12-13 Carles Pina i Estany <carles@pina.cat>
6179 * include/grub/misc.h (grub_puts): New declaration.
6180 (grub_puts_): Likewise.
6181 * kern/misc.c (grub_puts): New definition.
6182 (grub_puts_): Likewise.
6184 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6186 * util/grub-probe.c (probe): Improve error message.
6188 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6190 * loader/i386/multiboot_elfxx.c
6191 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
6194 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6198 * loader/i386/xnu_helper.S: Removed. All users updated.
6199 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
6200 (relocator_mod_SOURCES): New variable.
6201 (relocator_mod_CFLAGS): Likewise.
6202 (relocator_mod_LDFLAGS): Likewise.
6203 (relocator_mod_ASFLAGS): Likewise.
6204 * conf/x86_64.rmk: Likewise.
6205 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
6206 (grub_multiboot_payload_entry_offset): Likewise.
6207 (grub_multiboot_forward_relocator): Likewise.
6208 (grub_multiboot_forward_relocator_end): Likewise.
6209 (grub_multiboot_backward_relocator): Likewise.
6210 (grub_multiboot_backward_relocator_end): Likewise.
6211 (grub_multiboot_payload_eip): New variable.
6212 (grub_multiboot_payload_orig): Likewise.
6213 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
6214 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
6215 * include/grub/i386/memory.h
6216 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
6217 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
6218 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
6219 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
6220 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
6221 * include/grub/i386/relocator.h: New file.
6222 * include/grub/x86_64/relocator.h: Likewise.
6223 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
6224 (XNU_RELOCATOR): New macro.
6225 (grub_xnu_launcher_start): Remove.
6226 (grub_xnu_launcher_end): Likewise.
6227 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
6228 (grub_xnu_heap_real_start): Remove.
6229 (grub_xnu_heap_start): Change to void *. All users updated.
6230 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
6231 * lib/i386/relocator.c: New file.
6232 * lib/i386/relocator_asm.S: Likewise.
6233 * lib/i386/relocator_backward.S: Likewise.
6234 * lib/mips/relocator.c: Likewise.
6235 * lib/mips/relocator_asm.S: Likewise.
6236 * lib/relocator.c: Likewise.
6237 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
6239 (playground): Likewise.
6240 (grub_multiboot_payload_orig): New variable.
6241 (grub_multiboot_payload_dest): Likewise.
6242 (grub_multiboot_payload_size): Likewise.
6243 (grub_multiboot_payload_eip): Likewise.
6244 (grub_multiboot_payload_esp): Likewise.
6245 (grub_multiboot_boot): Use grub_relocator32_boot.
6246 (grub_multiboot_unload): Free relocators.
6247 (grub_multiboot): Setup stack. Use relocators.
6248 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
6249 (grub_multiboot_load_elfXX): Use relocators.
6250 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
6251 (grub_multiboot_payload_size): Likewise.
6252 (grub_multiboot_payload_dest): Likewise.
6253 (grub_multiboot_payload_entry_offset): Likewise.
6254 (grub_multiboot_forward_relocator): Likewise.
6255 (grub_multiboot_backward_relocator): Likewise.
6256 (grub_multiboot_real_boot): Likewise.
6257 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
6258 (grub_xnu_entry_point): Likewise.
6259 (grub_xnu_arg1): Likewise.
6260 (grub_xnu_stack): Likewise.
6261 (grub_xnu_launch): Removed.
6262 (grub_xnu_boot_resume): New function.
6263 (grub_xnu_boot): Use relocators.
6264 * loader/i386/xnu_helper.S: Removed.
6265 * loader/xnu.c (grub_xnu_heap_start): New variable.
6266 (grub_xnu_heap_size): Likewise.
6267 (grub_xnu_heap_malloc): Use relocators.
6268 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
6270 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6272 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
6275 2009-12-13 Carles Pina i Estany <carles@pina.cat>
6277 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
6278 GRUB_ERR_NONE before calling grub_env_set.
6280 2009-12-12 Robert Millan <rmh@aybabtu.com>
6282 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
6283 * genmk.rb (video): New variable.
6284 (CLEANFILES, VIDEOFILES): Add #{video}.
6285 (#{video}): New target rule.
6286 * genvideolist.sh: New file.
6287 * Makefile.in (pkglib_DATA): Add video.lst.
6288 (video.lst): New target rule.
6289 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
6291 * util/grub.d/30_os-prober.in: Replace `vbe' with
6292 ${GRUB_VIDEO_BACKEND}.
6294 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
6296 * THANKS: Add David Miller.
6298 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
6300 libpciaccess support.
6302 * Makefile.in (LIBPCIACCESS): New variable.
6303 (enable_grub_emu_pci): Likewise.
6304 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
6305 util/pci.c and commands/lspci.c.
6306 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
6307 * configure.ac (grub-emu-pci): New option.
6308 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
6309 (grub_pci_device_unmap_range): Likewise.
6310 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
6311 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
6312 (grub_pci_address_t) [!GRUB_UTIL]: New type.
6313 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
6314 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
6315 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
6316 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
6317 * include/grub/pciutils.h: New file.
6318 * util/pci.c: Likewise.
6320 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
6322 * util/misc.c: Don't include <errno.h> twice.
6324 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
6326 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
6327 name in an error message.
6328 (grub_biosdisk_rw): Likewise.
6330 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6332 Eliminate NTFS 4Gib barrier.
6334 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
6335 (read_run_data): Likewise.
6336 (grub_ntfs_read_run_list): Likewise.
6337 (grub_ntfs_read_block): Likewise.
6338 (grub_ntfs_iterate_dir): Likewise.
6339 (read_mft): Likewise.
6340 (read_data): Likewise.
6342 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
6343 to avoid 64-bit division
6344 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
6345 (grub_ntfs_rlst): Use grub_disk_addr_t.
6347 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6349 Eliminate grub-fstest 4Gib barrier.
6351 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
6352 (read_file): Fix error reporting.
6354 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6356 Eliminate hexdump 4Gib barrier.
6358 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
6359 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
6361 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6363 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
6366 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
6368 Remove miscellaneous files in distclean target.
6370 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
6372 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
6374 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
6375 if they're already set. This resolves the conflict between my
6376 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
6377 fixing the --grub-probe option again.
6378 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
6379 change on 2009-10-06, so that we now once again source
6380 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
6382 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
6384 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
6385 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
6388 2009-12-08 Carles Pina i Estany <carles@pina.cat>
6390 * include/grub/misc.h (grub_printf_): New declaration.
6391 * kern/misc.c (grub_printf_): New definition.
6392 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
6393 instead of `grub_printf' and `_'.
6394 * normal/menu_entry.c (store_completion): Likewise.
6396 (grub_menu_entry_run): Likewise.
6397 * normal/menu_text.c (grub_wait_after_message): Likewise.
6398 (notify_booting): Likewise.
6399 (notify_fallback): Likewise.
6400 (notify_execution_failure): Likewise.
6402 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
6404 * configure.ac: Check for vasprintf.
6405 * util/misc.c (asprintf): Move allocation from here ...
6406 (vasprintf): ... to here. New function.
6407 (xasprintf): New function.
6408 * include/grub/util/misc.h (vasprintf, xasprintf): Add
6410 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
6411 * util/grub-mkfont.c (write_font): Likewise.
6412 * util/grub-probe.c (probe): Likewise.
6413 * util/hostdisk.c (make_device_name): Likewise.
6415 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
6417 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
6418 anything even prefixed with 'cdrom' as a cdrom.
6420 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
6422 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
6425 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6427 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
6428 grub_gettext_msg_list.
6429 (grub_gettext_gettranslation_from_position): Return const char *
6431 (grub_gettext_translate): Add the translated strings into a list,
6432 returns from the list if existing there.
6433 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
6434 (grub_gettext_delete_list): Delete the list.
6435 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
6436 lang environment variable is changed.
6437 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
6439 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6441 Rename kernel.mod to kernel.img.
6443 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
6444 (kernel_mod_EXPORTS): Rename to ...
6445 (kernel_img_EXPORTS): ... this.
6446 (kernel_mod_SOURCES): Rename to ...
6447 (kernel_img_SOURCES): ... this.
6448 (kernel_mod_HEADERS): Rename to ...
6449 (kernel_img_HEADERS): ... this. All users updated.
6450 (kernel_mod_CFLAGS): Rename to ...
6451 (kernel_img_CFLAGS): ... this.
6452 (kernel_mod_ASFLAGS): Rename to ...
6453 (kernel_img_ASFLAGS): ... this.
6454 (kernel_mod_LDFLAGS): Rename to ...
6455 (kernel_img_LDFLAGS): ... this.
6456 * conf/x86_64-efi.rmk: Likewise.
6457 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
6458 (read_kernel_image): ... this. All users updated.
6459 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
6461 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6463 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
6464 (print_spaces): New function.
6465 (grub_print_ucs4): New function.
6466 (getstringwidth): New function.
6467 (print_message_indented): New function.
6468 (print_message): Gettexttize strings using print_message_indented.
6469 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
6471 (get_entry_number): Gettextize and uses dynamic terminal width.
6472 (notify_booting, notify_fallback, notify_execution_failure):
6474 * normal/menu_entry.c (store_completion): Cleanup the gettextized
6477 (grub_menu_entry_run): Likewise.
6478 * PO/POTFILES: Add normal/menu_entry.c.
6480 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6482 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
6484 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6486 * util/grub-install.in: Install gettext .mo files.
6487 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
6489 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6491 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
6494 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
6496 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
6497 non-firmware-dependant one in realmode.S takes precedence.
6499 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
6501 * commands/halt.c: Replace misc arch-specific headers with
6503 * commands/reboot.c: Likewise.
6504 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
6506 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
6507 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
6508 (kernel_img_SOURCES): ... to here.
6510 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
6511 * include/grub/i386/pc/init.h: Likewise.
6512 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
6513 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
6515 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
6517 * include/grub/i386/halt.h: Remove.
6518 * include/grub/i386/reboot.h: Likewise.
6520 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
6522 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
6524 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
6525 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
6526 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
6528 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6529 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6530 (usage): Add missing comma in printf.
6532 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
6534 Use the same reboot approach on i386 coreboot and qemu as we do on
6537 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
6538 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
6539 * kern/i386/reboot.c: Remove.
6540 * include/grub/i386/reboot.h (grub_reboot): Export function.
6541 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
6542 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
6543 0xf000:0xfff0 instead of 0xffff:0x0000.
6544 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
6545 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
6547 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
6549 Fix $srcdir != $objdir build.
6551 * Makefile.in (po/%.po): Rewrite as ...
6552 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
6554 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
6556 Fix GNU/Hurd grub-install crash.
6557 * util/grub-probe.c (probe): Try to access `path' only when it is not
6560 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6562 Correct module naming.
6564 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6565 (GRUB_MOD_INIT(efi_uga)): ... to this
6566 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6567 (GRUB_MOD_FINI(efi_uga)): ... to this
6568 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6569 (GRUB_MOD_INIT(efi_gop)): ... to this
6570 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6571 (GRUB_MOD_FINI(efi_gop)): ... to this
6573 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
6575 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
6577 (usage): Translate `arg' strings using gettext().
6578 Thanks to Jordi Mallach for the suggestion.
6580 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6582 GOP support. Based on patch from Bean
6583 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
6585 * video/efi_gop.c: New file.
6586 * include/grub/efi/graphics_output.h: Likewise.
6587 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
6588 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
6590 * conf/x86_64-efi.rmk: Likewise.
6592 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6594 Rename efi_fb to efi_uga.
6596 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6598 (efi_fb_mod_SOURCES): Rename this ...
6599 (efi_uga_mod_SOURCES): ... to this.
6600 (efi_fb_mod_CFLAGS): Rename this ...
6601 (efi_uga_mod_CFLAGS): ... to this.
6602 (efi_fb_mod_LDFLAGS): Rename this ...
6603 (efi_uga_mod_LDFLAGS): ... to this.
6604 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6606 (efi_fb_mod_SOURCES): Rename this ...
6607 (efi_uga_mod_SOURCES): ... to this.
6608 (efi_fb_mod_CFLAGS): Rename this ...
6609 (efi_uga_mod_CFLAGS): ... to this.
6610 (efi_fb_mod_LDFLAGS): Rename this ...
6611 (efi_uga_mod_LDFLAGS): ... to this.
6612 * video/efi_fb.c: Move this ...
6613 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
6615 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6617 * po/README: New file. Explain our PO file workflow.
6619 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6621 * po/ChangeLog: Remove. Move relevant entries back to ...
6622 * ChangeLog: ... here.
6623 * po/ca.po: Remove (now handled by TLP).
6624 * po/id.po: Likewise.
6625 * po/zh_CN.po: Likewise.
6626 * Makefile.in (LINGUAS): Initialize in a way that supports
6629 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6631 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
6632 reliing on po/LINGUAS.
6633 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
6634 (po/%.po): ... this.
6636 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6638 * util/i386/efi/grub-mkimage.c: Include "progname.h".
6639 (main): Use `program_name' instead of nonexistent `progname'.
6641 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6643 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6644 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
6646 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6648 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
6650 * conf/i386-efi.rmk: Likewise.
6651 * conf/i386-ieee1275.rmk: Likewise.
6652 * conf/powerpc-ieee1275.rmk: Likewise.
6653 * conf/sparc64-ieee1275.rmk: Likewise.
6654 * conf/x86_64-efi.rmk: Likewise.
6656 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6658 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
6660 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6662 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
6664 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6666 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
6667 (grub_mkdevicemap_SOURCES): New variable.
6668 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
6669 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
6670 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
6671 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
6672 (grub_mkdevicemap_SOURCES): Remove.
6673 * conf/i386-efi.rmk: Likewise.
6674 * conf/i386-ieee1275.rmk: Likewise.
6675 * conf/i386-pc.rmk: Likewise.
6676 * conf/powerpc-ieee1275.rmk: Likewise.
6677 * conf/sparc64-ieee1275.rmk: Likewise.
6678 * conf/x86_64-efi.rmk: Likewise.
6679 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
6680 (usage): Fix strings to use `program_name'.
6681 (main): Initialize gettext.
6682 * util/grub-editenv.c: Likewise.
6683 * util/grub-emu.c: Likewise.
6684 * util/grub-fstest.c: Likewise.
6685 * util/grub-mkdevicemap.c: Likewise.
6686 * util/grub-mkfont.c: Likewise.
6687 * util/grub-mkrelpath.c: Likewise.
6688 * util/grub-pe2elf.c: Likewise.
6689 * util/grub-probe.c: Likewise.
6690 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
6691 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6692 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6694 * util/misc.c: Include `"progname.h"'.
6695 (progname): Remove variable.
6696 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
6698 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
6700 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
6701 printf and print a newline after the menuentry header line.
6702 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
6704 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
6706 autoconf >= 2.60 support $(localedir).
6708 * INSTALL: Note that autoconf 2.60 is required.
6709 * configure.ac (AC_PREREQ): Bump to 2.60.
6710 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
6711 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
6713 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
6715 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
6718 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6720 * normal/main.c (grub_normal_read_line): Fix off-by-one
6723 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6725 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
6726 "parser.grub" in grub_command_execute() call.
6728 2009-11-24 Carles Pina i Estany <carles@pina.cat>
6730 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
6731 * conf/i386-efi.rmk: Likewise.
6732 * conf/i386-ieee1275.rmk: Likewise.
6733 * conf/i386-pc.rmk: Likewise.
6734 * conf/powerpc-ieee1275.rmk: Likewise.
6735 * conf/sparc64-ieee1275.rmk: Likewise.
6736 * conf/x86_64-efi.rmk: Likewise.
6737 * gettext/gettex.c: Include <grub/i18n.h>.
6738 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
6740 * include/grub/i18n.h: ... to here
6741 * include/grub/i18n.h: ... to here.
6742 * kern/misc.c: Include <grub/i18n.h>
6743 (grub_gettext_dummy): Move above user.
6745 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6747 * util/Makefile.in (install-local): Convert a `for' into a normal
6750 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
6752 * autogen.sh: Add automake call.
6753 * config.guess: Remove.
6754 * config.sub: Likewise.
6755 * install-sh: Likewise.
6757 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6759 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
6761 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6763 * util/Makefile.in (install-local): Convert a make `$(foreach)'
6764 function to a normal shell `for'.
6766 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6768 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6770 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6772 * util/grub-mkrelpath.c: New file.
6773 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
6774 (grub_mkrelpath_SOURCES): New variable.
6775 * include/grub/util/misc.h: New function prototype.
6776 * util/misc.c (make_system_path_relative_to_its_root): New function.
6778 * util/grub-mkconfig_lib.in (bindir): New variable.
6779 (grub_mkrelpath): Likewise.
6780 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
6782 * util/probe.c (probe): Make the file path relative to its root.
6783 Change a info message to use the GRUB path. Enable again the
6784 check if we can read the file with GRUB facilities.
6786 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
6789 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6791 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
6794 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6796 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
6799 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6801 * util/getroot.c (grub_util_is_dmraid): New function.
6802 (grub_util_get_dev_abstraction): Treat dmraid and multipath
6803 devices as normal ones, not as LVM.
6805 2009-11-23 Carles Pina i Estany <carles@pina.cat>
6807 * conf/common.rmk: Add grub-gettext_lib target and updates
6808 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
6810 * gettext/gettext.c: New file. (Reads mo files).
6811 * include/grub/file.h (grub_file_pread): New prototype.
6812 * include/grub/i18n.h (_): New prototype.
6813 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
6815 * kern/misc.c (grub_gettext_dummy): New function.
6816 * normal/menu_text.c: Include <grub/i18n.h>.
6817 * normal/menu_text.c (print_timeout): Gettexttize string.
6818 * normal/menu_text.c (print_message): Gettexttize string.
6819 * po/POTFILES: Add `normal/menu_text.c'.
6820 * po/ca.po: Add new translations.
6821 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
6822 gettext module and defines locale_dir and lang in grub.cfg.
6823 * NEWS: Add gettext support.
6825 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6827 * util/hostdisk.c: Include `<grub/i18n.h>'.
6828 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
6829 (make_device_name): Rewrite using asprintf.
6830 (convert_system_partition_to_system_disk): Replace 0 with NULL.
6831 (find_system_device): If a device is not found, generate one just
6832 by reusing the OS path name.
6833 (read_device_map): Make it permissible for device.map not to exist.
6835 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6837 * script/sh/execute.c: Move from here ...
6838 * script/execute.c: ... to here. Update all users.
6839 * script/sh/function.c: Move from here ...
6840 * script/function.c: ... to here. Update all users.
6841 * script/sh/lexer.c: Move from here ...
6842 * script/lexer.c: ... to here. Update all users.
6843 * script/sh/main.c: Move from here ...
6844 * script/main.c: ... to here. Update all users.
6845 * script/sh/parser.y: Move from here ...
6846 * script/parser.y: ... to here. Update all users.
6847 * script/sh/script.c: Move from here ...
6848 * script/script.c: ... to here. Update all users.
6850 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6852 * configure.ac: Detect all `emu' platforms. Define
6853 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
6854 --enable-grub-emu logic. Disable include/grub/machine
6855 symlink on `emu' platforms.
6857 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
6858 * gensymlist.sh.in: Likewise.
6860 * include/grub/i386/coreboot/machine.h: Remove file.
6861 * include/grub/i386/efi/machine.h: Likewise.
6862 * include/grub/i386/ieee1275/machine.h: Likewise.
6863 * include/grub/i386/pc/machine.h: Likewise.
6864 * include/grub/i386/qemu/machine.h: Likewise.
6865 * include/grub/powerpc/ieee1275/machine.h: Likewise.
6866 * include/grub/sparc64/ieee1275/machine.h: Likewise.
6867 * include/grub/x86_64/efi/machine.h: Likewise.
6869 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
6870 * commands/halt.c: Likewise.
6871 * commands/reboot.c: Likewise.
6872 * include/grub/autoefi.h: Likewise.
6873 * include/grub/i386/at_keyboard.h: Likewise.
6874 * include/grub/i386/kernel.h: Likewise.
6875 * include/grub/i386/loader.h: Likewise.
6876 * include/grub/i386/pc/memory.h: Likewise.
6877 * kern/dl.c: Likewise.
6878 * kern/i386/coreboot/init.c: Likewise.
6879 * loader/i386/bsd.c: Likewise.
6880 * loader/i386/linux.c: Likewise.
6881 * loader/multiboot_loader.c: Likewise.
6882 * term/i386/pc/serial.c: Likewise.
6883 * term/usb_keyboard.c: Likewise.
6885 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
6886 `<grub/machine/machine.h>'
6887 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
6888 * util/misc.c: Remove `<grub/machine/machine.h>' and
6889 `<grub/machine/time.h>'.
6891 * Makefile.in (enable_grub_emu): Remove variable.
6892 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
6894 * conf/any-emu.rmk: New file.
6895 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
6896 (grub_emu_init.c): Move from here ...
6897 * conf/any-emu.rmk: ... to here.
6899 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
6900 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
6901 * conf/any-emu.rmk: ... to here.
6903 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6905 * include/grub/parser.h (grub_parser_register): Document need
6906 of `name' parameter.
6907 * normal/main.c (grub_normal_read_line): Simplify prompt string.
6908 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
6911 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6913 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
6915 * include/grub/i18n.h (N_): New macro.
6916 * util/mkisofs/mkisofs.h: Likewise.
6917 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
6919 (usage): Use gettext() to translate help strings when printing them.
6921 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6923 Based on patch from Bean
6924 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
6926 * video/efi_fb.c: New file.
6927 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
6928 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
6930 * conf/x86_64-efi.rmk: Likewise.
6932 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
6934 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
6935 * util/i386/pc/grub-setup.c: Likewise.
6937 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6939 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
6941 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
6942 file_get_storage_info to implement grub_guess_root_device.
6944 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
6946 * Makefile.in (target): Use make's builtin $(shell) function
6947 instead of calling directly $(SHELL) to create the locale directories,
6948 inside the $(foreach) function.
6950 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
6952 * util/grub-mkrescue.in: Print an error and usage if output option
6955 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
6957 Patch from Loïc Minier <loic.minier@ubuntu.com>.
6958 * util/grub.d/30_os-prober.in: Cope with Linux entries where
6959 root and /boot are on different devices.
6961 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6963 Fix build for srcdir != objdir.
6965 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
6966 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
6968 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
6969 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
6970 reference for input.
6972 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6974 * util/grub-mkrescue.in: Use source directory direcly (without copiing
6975 or hardlinking it). Remove -J option, Joliet is not compatible with
6976 multiple source directories.
6978 2009-11-21 Carles Pina i Estany <carles@pina.cat>
6979 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6981 * util/grub-mkrescue.in: Recognize `--override-directory' option.
6982 (process_input_dir): New function. Process an arbitrary input
6984 Misc adjustments to support both "override mode" and system-wide mode.
6986 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
6988 * configure.ac (UNIFONT_BDF): Rename to ...
6989 (FONT_SOURCE): ... this. Update all users.
6991 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
6993 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
6994 to the list of unifont files to look for.
6996 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
6998 Patch from Joe Auricchio <jauricchio@gmail.com>
6999 * commands/minicmd.c (grub_mini_cmd_clear): New function.
7000 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
7001 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
7003 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
7005 * Makefile.in (install-local): Add a missing backslash.
7007 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
7009 * include/grub/x86_64/io.h: New file.
7011 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7013 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
7014 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
7015 Include `"progname.h"'.
7016 (main): Initialize gettext.
7017 * util/i386/pc/grub-setup.c: Gettexttize.
7018 * util/i386/pc/grub-mkimage.c: Likewise.
7020 * Makefile.in (po/*.po): Redefine as ...
7021 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
7023 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
7025 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7027 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
7028 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
7029 (program_name): Remove.
7030 (main): Initialize gettext support.
7031 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
7032 Include `<libintl.h>'.
7035 * util/mkisofs/eltorito.c: Gettexttize.
7036 * util/mkisofs/joliet.c: Likewise.
7037 * util/mkisofs/mkisofs.c: Likewise.
7038 * util/mkisofs/multi.c: Likewise.
7039 * util/mkisofs/rock.c: Likewise.
7040 * util/mkisofs/tree.c: Likewise.
7041 * util/mkisofs/write.c: Likewise.
7043 * po/POTFILES: Update with new files.
7045 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7047 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
7048 * util/mkisofs/iso9660.h: Likewise.
7049 * util/mkisofs/joliet.c: Likewise.
7050 * util/mkisofs/mkisofs.c: Likewise.
7051 * util/mkisofs/mkisofs.h: Likewise.
7052 * util/mkisofs/rock.c: Likewise.
7053 * util/mkisofs/tree.c: Likewise.
7054 * util/mkisofs/write.c: Likewise.
7056 * util/mkisofs/eltorito.c (rcsid): Remove.
7057 * util/mkisofs/hash.c: Likewise.
7058 * util/mkisofs/joliet.c: Likewise.
7059 * util/mkisofs/name.c: Likewise.
7060 * util/mkisofs/rock.c: Likewise.
7061 * util/mkisofs/tree.c: Likewise.
7062 * util/mkisofs/write.c: Likewise.
7064 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7066 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
7067 instead of static allocation.
7068 * util/mkisofs/match.h: Likewise.
7070 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7072 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
7073 and `util/grub.d/10_linux.in'.
7074 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
7075 translatable Shell files.
7077 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7079 * Makefile.in ($(srcdir)/aclocal.m4): New target.
7081 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7083 * INSTALL: Document Automake is needed for bootstrap.
7084 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
7085 * util/grub.d/10_kfreebsd.in (bindir): New variable.
7086 Add gettext initialization.
7087 (kfreebsd_entry): Make menuentry output translatable.
7089 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7091 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
7092 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
7093 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
7094 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
7095 (LINGUAS): Auto-generate using `po/LINGUAS'.
7096 * po/LINGUAS: New file.
7098 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7100 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
7102 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
7103 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
7104 bindtextdomain() calls for gettext initialization.
7106 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7108 * gnulib/progname.c: New file (imported from Gnulib).
7109 * gnulib/progname.h: Likewise.
7110 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7111 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
7112 (usage): Replace `progname' with `program_name'.
7113 (main): Use set_program_name() for program name initialization.
7115 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7117 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
7119 * Makefile.in (CPPFLAGS): ... to here.
7121 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7123 * aclocal.m4: Move from here ...
7124 * acinclude.m4: ... to here.
7125 * autogen.sh: Add call to `aclocal'.
7126 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
7128 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7130 * Makefile.in (CLEANFILES): Add `po/*.mo'.
7131 (LINGUAS): New variable.
7132 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
7133 (install-local): Install MO files.
7134 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
7135 * include/grub/i18n.h: New file.
7136 * po/POTFILES: New file.
7137 * po/ca.po: New file.
7138 * util/grub.d/10_linux.in (bindir): New variable.
7139 Add gettext initialization.
7140 (linux_entry): Make menuentry output translatable.
7141 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
7142 (usage): Make --help output translatable.
7143 (main): Initialize gettext.
7145 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7147 * import_gcry.py: New file (written by Vladimir with minor
7149 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
7151 * INSTALL: Document that Python is required for bootstrap.
7153 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7155 Import ciphers from libgcrypt 1.4.4.
7157 * lib/libgcrypt/cipher/ChangeLog
7158 * lib/libgcrypt/cipher/ac.c
7159 * lib/libgcrypt/cipher/arcfour.c
7160 * lib/libgcrypt/cipher/bithelp.h
7161 * lib/libgcrypt/cipher/blowfish.c
7162 * lib/libgcrypt/cipher/camellia-glue.c
7163 * lib/libgcrypt/cipher/camellia.c
7164 * lib/libgcrypt/cipher/camellia.h
7165 * lib/libgcrypt/cipher/cast5.c
7166 * lib/libgcrypt/cipher/cipher.c
7167 * lib/libgcrypt/cipher/crc.c
7168 * lib/libgcrypt/cipher/des.c
7169 * lib/libgcrypt/cipher/dsa.c
7170 * lib/libgcrypt/cipher/ecc.c
7171 * lib/libgcrypt/cipher/elgamal.c
7172 * lib/libgcrypt/cipher/hash-common.c
7173 * lib/libgcrypt/cipher/hash-common.h
7174 * lib/libgcrypt/cipher/hmac-tests.c
7175 * lib/libgcrypt/cipher/md.c
7176 * lib/libgcrypt/cipher/md4.c
7177 * lib/libgcrypt/cipher/md5.c
7178 * lib/libgcrypt/cipher/primegen.c
7179 * lib/libgcrypt/cipher/pubkey.c
7180 * lib/libgcrypt/cipher/rfc2268.c
7181 * lib/libgcrypt/cipher/rijndael-tables.h
7182 * lib/libgcrypt/cipher/rijndael.c
7183 * lib/libgcrypt/cipher/rmd.h
7184 * lib/libgcrypt/cipher/rmd160.c
7185 * lib/libgcrypt/cipher/rsa.c
7186 * lib/libgcrypt/cipher/seed.c
7187 * lib/libgcrypt/cipher/serpent.c
7188 * lib/libgcrypt/cipher/sha1.c
7189 * lib/libgcrypt/cipher/sha256.c
7190 * lib/libgcrypt/cipher/sha512.c
7191 * lib/libgcrypt/cipher/tiger.c
7192 * lib/libgcrypt/cipher/twofish.c
7193 * lib/libgcrypt/cipher/whirlpool.c
7195 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7197 Fix build for systems without error().
7199 * gnulib/error.c: New file (imported from Gnulib).
7200 * gnulib/error.h: Likewise.
7201 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
7202 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
7203 (this variable is now used by error()).
7205 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7207 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
7208 instead of relying that char is signed.
7210 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7212 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
7213 blocksize different from specified.
7214 (grub_pxefs_read): Likewise.
7216 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7218 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
7220 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
7221 (grub_ata_readwrite): Likewise. Update 2 format strings.
7222 (grub_atapi_read): Likewise.
7224 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
7225 * conf/i386.rmk (pkglib_MODULES): ... to here ...
7226 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
7227 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
7228 (ata_mod_LDFLAGS): Move from here ...
7229 * conf/i386.rmk: ... to here ...
7230 * conf/x86_64-efi.rmk: ... and here.
7231 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
7232 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
7234 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7236 Relicense multiboot.h, with RMS' blessing.
7238 * include/multiboot.h: Change to X11 license.
7240 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
7242 Support --version in grub-mkisofs.
7244 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
7245 (OPTION_VERSION): New macro.
7246 (ld_options): Recognize --version.
7247 (usage): Move `program_name' from here ...
7248 (program_name): ... to here. Add `static' qualifier.
7249 (main): Recognize `OPTION_VERSION'.
7251 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
7253 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
7254 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
7256 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7258 Fix help2man generation for mkisofs.
7260 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
7261 (usage): Send output to stdout (rather than stderr).
7263 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7265 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
7266 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7267 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
7268 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7269 (bin_SCRIPTS): Add `grub-mkfloppy'.
7270 (grub_mkfloppy_SOURCES): New variable.
7272 * util/grub-mkrescue.in: New file.
7273 * util/i386/pc/grub-mkfloppy.in: New file.
7275 * util/i386/coreboot/grub-mkrescue.in: Remove.
7276 * util/i386/pc/grub-mkrescue.in: Remove.
7278 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7280 * include/grub/multiboot.h (struct grub_multiboot_header): Move
7282 * include/multiboot.h (struct multiboot_header): ... to here. Update
7284 * include/grub/multiboot.h (struct grub_multiboot_info): Move
7286 * include/multiboot.h (struct multiboot_info): ... to here. Update
7288 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
7290 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
7292 * include/grub/multiboot.h (struct grub_mod_list): Move
7294 * include/multiboot.h (struct multiboot_mod_list): ... to here.
7297 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7299 * include/multiboot2.h (multiboot_word): Rename from this ...
7300 (multiboot2_word): ... to this. Update all users.
7301 (multiboot_header): Rename from this ...
7302 (multiboot2_header): ... to this. Update all users.
7303 (multiboot_tag_header): Rename from this ...
7304 (multiboot2_tag_header): ... to this. Update all users.
7305 (multiboot_tag_start): Rename from this ...
7306 (multiboot2_tag_start): ... to this. Update all users.
7307 (multiboot_tag_name): Rename from this ...
7308 (multiboot2_tag_name): ... to this. Update all users.
7309 (multiboot_tag_module): Rename from this ...
7310 (multiboot2_tag_module): ... to this. Update all users.
7311 (multiboot_tag_memory): Rename from this ...
7312 (multiboot2_tag_memory): ... to this. Update all users.
7313 (multiboot_tag_unused): Rename from this ...
7314 (multiboot2_tag_unused): ... to this. Update all users.
7315 (multiboot_tag_end): Rename from this ...
7316 (multiboot2_tag_end): ... to this. Update all users.
7318 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7320 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
7321 this platform we should support Multiboot1 first.
7323 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
7324 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
7325 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
7327 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7329 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
7330 of write calls (converting them to fwrite() if they aren't already).
7331 (get_torito_desc): Likewise.
7332 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
7334 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7336 * util/i386/pc/grub-install.in: Move from here ...
7337 * util/grub-install.in: ... to here. Update all users.
7339 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
7341 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
7343 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7345 Support for El Torito without floppy emulation.
7347 * util/mkisofs/eltorito.c: Include `<errno.h>'.
7348 (init_boot_catalog): Improve error handling.
7349 (get_torito_desc): Don't use floppy emulation unless requested by
7350 user. Patch boot information table when requested via
7352 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
7353 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
7354 (use_boot_info_table): New variables.
7355 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
7356 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
7357 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
7358 `--eltorito-emul-floppy'.
7359 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
7360 and `OPTION_ELTORITO_EMUL_FLOPPY'.
7361 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
7362 (use_boot_info_table, get_731): New prototypes.
7363 * util/mkisofs/write.c (get_731): New function.
7365 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
7367 Fix the generation of the man page.
7369 * util/pc/i386/grub-install.in: Source
7370 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
7372 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7374 Large file support for grub-mkisofs.
7376 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
7377 * util/mkisofs/mkisofs.c (next_extent, last_extent)
7378 (session_start): Upgrade type to `uint64_t'. Update all users.
7379 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
7380 (struct directory_entry): Upgrade type of `starting_block' and
7381 `size' to `uint64_t'. Update all users.
7382 (struct deferred): Remove unused structure.
7383 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
7385 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
7386 file is larger than `UINT32_MAX'.
7387 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
7388 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
7390 (struct deferred_write): Upgrade type of `extent' and `size' to
7391 `uint64_t'. Update all users.
7392 (last_extent_written): Upgrade type to `uint64_t'. Update all
7394 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
7395 Update all users. Upgrade type of `remain' to `int64_t' and
7396 `use' to `size_t'. Use error() to handle fread() errors.
7397 (write_files): Rely on write_one_file() rather than calling
7400 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
7402 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
7404 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7406 * util/mkisofs/fnmatch.c: Remove.
7407 * util/mkisofs/getopt1.c: Likewise.
7408 * util/mkisofs/getopt.c: Likewise.
7409 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
7410 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
7411 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
7412 `gnulib/getopt1.c' and `gnulib/getopt.c'.
7413 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
7415 * configure.ac: Detect `mingw32msvc' host_os.
7416 Check for lstat(), getuid() and getgid().
7418 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
7419 instances of `u_char' with `uint8_t'.
7421 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
7422 [!HAVE_GETUID] (getuid): New function (stub).
7423 [!HAVE_GETGID] (getgid): Likewise.
7424 [!HAVE_LSTAT] (lstat): Likewise.
7425 [!S_IROTH] (S_IROTH): New macro (dummy).
7426 [!S_IRGRP] (S_IRGRP): Likewise.
7428 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7430 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
7431 conditional expression).
7433 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7437 * gnulib/fnmatch.c: New file.
7438 * gnulib/fnmatch.h: Likewise.
7439 * gnulib/fnmatch_loop.c: Likewise.
7440 * gnulib/getopt.c: Likewise.
7441 * gnulib/getopt.h: Likewise.
7442 * gnulib/getopt1.c: Likewise.
7443 * gnulib/getopt_int.h: Likewise.
7444 * gnulib/gettext.h: Likewise.
7446 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7448 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
7449 * normal/handler.c (read_handler_list): Likewise.
7451 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7455 * kern/command.c (grub_register_command_prio): Use
7456 grub_zalloc() instead of explicitly zeroing data.
7457 * kern/list.c: Include `<grub/mm.h>'.
7458 (grub_named_list_find): Replace `0' with `NULL'.
7459 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
7460 (fs_module_list): Change type to `grub_named_list_t'. Update all
7462 * normal/dyncmd.c (read_command_list): Add space between function
7463 call and parenthesis.
7464 * normal/handler.c (read_handler_list): Likewise.
7466 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7468 * normal/auth.c (punishment_delay): Moved from here ...
7469 (grub_auth_strcmp): ... to here (inside function).
7471 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7473 * include/grub/list.h (struct grub_named_list): Remove `const'
7474 qualifier from `name'.
7475 (struct grub_prio_list): Likewise.
7477 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7479 * normal/auth.c: Include `<grub/time.h>'.
7480 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
7482 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7484 * normal/auth.c (punishment_delay): New variable.
7485 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
7486 (grub_auth_check_authentication): Punish failed login attempts with
7487 an incremental (2^N) delay.
7489 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7491 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
7492 path with $(srcdir).
7494 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7496 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
7498 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7500 * util/i386/coreboot/grub-mkrescue.in: New file.
7501 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
7504 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
7505 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
7506 * configure.ac: Add header and function checks to satisfy grub-mkisofs
7508 * util/mkisofs/defaults.h: New file.
7509 * util/mkisofs/eltorito.c: Likewise.
7510 * util/mkisofs/exclude.h: Likewise.
7511 * util/mkisofs/fnmatch.c: Likewise.
7512 * util/mkisofs/getopt.c: Likewise.
7513 * util/mkisofs/getopt1.c: Likewise.
7514 * util/mkisofs/hash.c: Likewise.
7515 * util/mkisofs/include/fctldefs.h: Likewise.
7516 * util/mkisofs/include/mconfig.h: Likewise.
7517 * util/mkisofs/include/prototyp.h: Likewise.
7518 * util/mkisofs/include/statdefs.h: Likewise.
7519 * util/mkisofs/iso9660.h: Likewise.
7520 * util/mkisofs/joliet.c: Likewise.
7521 * util/mkisofs/match.c: Likewise.
7522 * util/mkisofs/match.h: Likewise.
7523 * util/mkisofs/mkisofs.c: Likewise.
7524 * util/mkisofs/mkisofs.h: Likewise.
7525 * util/mkisofs/multi.c: Likewise.
7526 * util/mkisofs/name.c: Likewise.
7527 * util/mkisofs/rock.c: Likewise.
7528 * util/mkisofs/tree.c: Likewise.
7529 * util/mkisofs/write.c: Likewise.
7531 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7533 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
7536 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7538 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
7539 `grub-mkimage' (and use $0 when possible).
7541 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7543 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
7544 error message for excessively large memory map.
7546 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7548 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
7551 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7553 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
7554 message for coreboot users.
7556 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
7558 Fix build with GNU gold.
7560 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
7561 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
7562 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
7564 * aclocal.m4: Likewise.
7566 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
7568 * configure.ac (AC_PREREQ): Bump to 2.59d.
7569 * INSTALL: Make it more clear when Autoconf and Ruby are
7570 needed and when to run `./autogen.sh'.
7572 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7574 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
7577 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7579 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
7581 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7583 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
7584 giving it to GNU Mach.
7586 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7588 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
7589 GNU partition number to get internal GRUB partition number.
7591 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7593 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
7594 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
7596 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
7598 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
7599 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
7602 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
7604 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
7606 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7610 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
7611 `-isystem=$(srcdir)/include'.
7613 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7615 * util/i386/pc/grub-install.in: Remove hint that device.map should be
7616 checked (grub-install doesn't currently rely on it).
7618 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
7622 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
7623 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7624 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
7625 * conf/i386-ieee1275.rmk: Likewise.
7626 * conf/i386-pc.rmk: Likewise.
7627 * conf/powerpc-ieee1275.rmk: Likewise.
7628 * conf/sparc64-ieee1275.rmk: Likewise.
7629 * conf/x86_64-efi.rmk: Likewise.
7631 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7633 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
7635 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7637 * include/grub/misc.h: Stop checking for APPLE_CC.
7639 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7641 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
7642 doesn't cause an infinite call loop.
7644 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
7646 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
7649 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7651 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
7653 * Makefile.in: Likewise.
7655 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7657 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
7659 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7661 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
7663 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7665 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
7667 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7669 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
7671 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
7673 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7675 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
7676 in $(MAKEINFO) invocation. This makes it clear in output that
7677 errors are being ignored.
7679 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7681 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
7683 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7684 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
7685 * conf/i386-ieee1275.rmk: Likewise.
7686 * conf/i386-pc.rmk: Likewise.
7687 * conf/powerpc-ieee1275.rmk: Likewise.
7688 * conf/sparc64-ieee1275.rmk: Likewise.
7689 * conf/x86_64-efi.rmk: Likewise.
7691 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
7693 * util/grub-editenv.c (main): If only a command is given, use
7694 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
7695 (usage): FILENAME is now optional and has a default.
7697 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
7699 Improve grub-mkconfig performance when there are several menu
7700 entries on a single filesystem.
7702 * util/grub.d/10_linux.in (linux_entry): Cache the output of
7703 prepare_grub_to_access_device.
7704 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
7705 * util/grub.d/30_os-prober.in: Likewise.
7707 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7709 * util/grub.d/10_freebsd.in: Remove.
7710 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
7711 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
7713 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7715 * docs/grub.cfg: Fix example usage of *BSD loaders.
7717 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7719 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
7720 grub_util_error() call.
7722 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7724 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
7725 `reserved_first_sector' member.
7726 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
7727 `reserved_first_sector' to 1.
7728 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
7729 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
7730 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
7731 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
7732 filesystems which begin at first sector.
7733 (options): New option --skip-fs-probe.
7734 (main): Handle --skip-fs-probe and pass it to setup().
7736 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7738 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
7739 (memset): Fix function prototype.
7741 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7742 2009-10-25 Vasily Averin <vvs@parallels.com>
7744 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
7745 `dirent.direntlen == 0'.
7747 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7749 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
7751 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
7753 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7755 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
7756 `__trampoline_setup' and `__ucmpdi2'.
7757 * include/grub/powerpc/libgcc.h: Only export symbols for functions
7758 that libgcc provides.
7760 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7762 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
7763 * include/grub/sparc64/libgcc.h (memset): Likewise.
7764 * include/grub/misc.h (memset, memcmp): New function prototypes.
7766 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7768 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
7770 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
7772 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7774 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
7775 * docs/grub.cfg: Compensate for recent change in multiboot
7776 loader (since 2009-08-14 it won't pass filename to payload).
7777 * util/grub.d/10_hurd.in: Likewise.
7779 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
7781 * config.guess: Update to latest version from config git
7783 * config.sub: Likewise.
7785 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
7787 Fix build on sparc64.
7789 * configure.ac: Perform checks for libgcc symbols before
7790 adding `-nostdlib' to LDFLAGS.
7792 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7794 Let user specify OpenBSD root device.
7796 * loader/i386/bsd.c (openbsd_root): New variable.
7797 (openbsd_opts): New option 'root'.
7798 (OPENBSD_ROOT_ARG): New macro.
7799 (grub_openbsd_boot): Use 'openbsd_root'.
7800 (grub_cmd_openbsd): Fill 'openbsd_root'.
7802 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
7804 * NEWS: Misc adjustments.
7806 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7808 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
7810 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
7812 * configure.ac: Bump version to 1.97.
7814 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
7816 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
7817 -mno-3dnow on x86 architectures. Some toolchains enable these
7818 features by default, but they rely on registers that aren't enabled
7819 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
7821 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
7823 Make entry text a bit more readable.
7825 * util/grub.d/10_linux.in: Add `with' before `Linux'.
7827 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7829 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
7831 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7833 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
7836 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7838 * configure.ac: Add missing dollar.
7840 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7842 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
7844 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
7845 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
7847 * include/grub/sparc64/libgcc.h: Likewise. Use
7848 preprocessor conditionals.
7850 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
7852 * conf/common.rmk (grub-dumpbios): Remove rule.
7853 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
7854 * util/grub-dumpbios.in: Remove file.
7856 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
7858 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
7859 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
7861 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
7862 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
7865 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
7866 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
7867 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
7868 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
7871 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
7873 * term/tparm.c: Switch to GPLv3.
7875 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
7877 * include/grub/i386/cpuid.h: Add header protection.
7879 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
7881 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
7883 * include/grub/i386/cpuid.h: New file.
7884 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
7885 (has_longmode): Rename to ...
7886 (grub_cpuid_has_longmode): ... this. Update all users. Remove
7888 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
7889 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
7890 on a CPU that doesn't implement AMD64 instruction set.
7892 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
7894 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
7895 that version.texi is rebuilt on version number changes.
7897 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
7899 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
7902 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
7904 * util/i386/pc/grub-install.in: Source
7905 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
7906 that the --grub-probe option will work.
7907 * util/sparc64/ieee1275/grub-install.in: Likewise.
7909 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
7911 * configure.ac: Bump version to 1.97~beta4.
7913 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
7915 Resync grub-mkdevicemap in x86_64-efi.
7917 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
7918 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
7921 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
7923 * util/grub-editenv.c (create_envblk_file): Write new block with a
7924 .new suffix and then rename it into place, to ensure atomic
7927 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
7929 Do not automatically install headers.
7931 * Makefile.in (include_DATA): Remove. Update all users.
7933 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
7935 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
7936 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
7938 * util/osdetect.lua: Remove.
7939 * script/lua/lauxlib.c: Likewise.
7940 * script/lua/ldebug.c: Likewise.
7941 * script/lua/grub_main.c: Likewise.
7942 * script/lua/lauxlib.h: Likewise.
7943 * script/lua/ldebug.h: Likewise.
7944 * script/lua/ltablib.c: Likewise.
7945 * script/lua/liolib.c: Likewise.
7946 * script/lua/lstrlib.c: Likewise.
7947 * script/lua/lualib.h: Likewise.
7948 * script/lua/ldo.c: Likewise.
7949 * script/lua/ldump.c: Likewise.
7950 * script/lua/ldo.h: Likewise.
7951 * script/lua/loslib.c: Likewise.
7952 * script/lua/lundump.c: Likewise.
7953 * script/lua/grub_lib.c: Likewise.
7954 * script/lua/ldblib.c: Likewise.
7955 * script/lua/lundump.h: Likewise.
7956 * script/lua/lmem.c: Likewise.
7957 * script/lua/grub_lib.h: Likewise.
7958 * script/lua/lmathlib.c: Likewise.
7959 * script/lua/lstate.c: Likewise.
7960 * script/lua/ltm.c: Likewise.
7961 * script/lua/lvm.c: Likewise.
7962 * script/lua/lmem.h: Likewise.
7963 * script/lua/lstate.h: Likewise.
7964 * script/lua/ltm.h: Likewise.
7965 * script/lua/ltable.c: Likewise.
7966 * script/lua/lvm.h: Likewise.
7967 * script/lua/llex.c: Likewise.
7968 * script/lua/lgc.c: Likewise.
7969 * script/lua/grub_lua.h: Likewise.
7970 * script/lua/loadlib.c: Likewise.
7971 * script/lua/lfunc.c: Likewise.
7972 * script/lua/lopcodes.c: Likewise.
7973 * script/lua/lparser.c: Likewise.
7974 * script/lua/ltable.h: Likewise.
7975 * script/lua/llex.h: Likewise.
7976 * script/lua/lgc.h: Likewise.
7977 * script/lua/lfunc.h: Likewise.
7978 * script/lua/lbaselib.c: Likewise.
7979 * script/lua/lopcodes.h: Likewise.
7980 * script/lua/lparser.h: Likewise.
7981 * script/lua/lzio.c: Likewise.
7982 * script/lua/linit.c: Likewise.
7983 * script/lua/lobject.c: Likewise.
7984 * script/lua/llimits.h: Likewise.
7985 * script/lua/lstring.c: Likewise.
7986 * script/lua/lzio.h: Likewise.
7987 * script/lua/lapi.c: Likewise.
7988 * script/lua/lcode.c: Likewise.
7989 * script/lua/lua.h: Likewise.
7990 * script/lua/lobject.h: Likewise.
7991 * script/lua/lstring.h: Likewise.
7992 * script/lua/lapi.h: Likewise.
7993 * script/lua/lcode.h: Likewise.
7994 * script/lua/luaconf.h: Likewise.
7996 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
7998 * docs/grub.texi (Command-line and menu entry commands): Document
7999 date and echo commands.
8001 2009-09-24 Pavel Roskin <proski@gnu.org>
8003 * include/grub/kernel.h (struct grub_module_header): Remove
8004 `grub_module_header_types'. Make `type' unsigned. Make `size'
8005 32-bit on all platforms.
8006 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
8007 8-bit field. Use grub_host_to_target32() for `size'.
8008 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
8009 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
8010 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
8012 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8014 Fix "lost keypress" bug in at_keyboard.
8016 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
8017 Checks for readyness of input buffer (without flushing it).
8018 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
8019 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
8021 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8023 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
8024 size check within GRUB_MACHINE_PCBIOS section.
8026 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8028 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
8030 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
8031 KEYBOARD_ISREADY check.
8032 (grub_at_keyboard_checkkey): Rename to ...
8033 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
8034 Remove gratuitous cast.
8036 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
8038 * configure.ac: Call AC_PROG_MKDIR_P.
8039 * Makefile.in (docs/stamp-vti): Create docs directory. Create
8040 version.texi in $(builddir) rather than $(srcdir).
8041 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
8042 to makeinfo's @include search path.
8044 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
8046 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
8048 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
8050 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
8053 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
8055 Build info documentation. Some code borrowed from Automake.
8057 * configure.ac: Check for makeinfo.
8058 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
8059 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
8061 (MOSTLYCLEANFILES): Add vti.tmp.
8062 (docs/version.texi, docs/stamp-vti): Update automatically.
8063 (docs/grub.info): Build info documentation. Use --force and ignore
8065 (all-local): Add $(INFOS).
8066 (install-local): Install info files.
8067 (uninstall): Uninstall info files.
8068 * docs/version.texi: Remove from revision control. This file is
8069 automatically generated on build now.
8070 * gendistlist.sh: Add `*.info'.
8072 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
8074 * kern/term.c: Fix indentation.
8076 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
8078 * util/hostdisk.c: Fix a comment.
8080 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
8082 Fix regression introduced in r2539.
8084 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
8087 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
8089 * util/grub.d/30_os-prober.in: Don't throw away stderr from
8090 os-prober. Under normal operation, it does not print anything to
8091 stderr; if it does, we need to debug it, and throwing away stderr
8092 makes that excessively difficult.
8094 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
8096 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
8098 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8100 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
8101 AC_LANG_PROGRAM from autoconf.
8102 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
8103 prototypes (fixes warning).
8105 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
8106 `--disable-werror' was used.
8108 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8110 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
8111 uninitialized `lastaddr'.
8113 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8115 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
8117 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8119 * commands/test.c (get_fileinfo): Return immediately if
8120 grub_fs_probe fails.
8122 2009-09-14 José Martínez <xosemp@gmail.com>
8124 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
8126 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8128 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
8131 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
8133 * configure.ac: Remove --enable-grub-pe2elf. Only build
8134 grub-pe2elf when needed by the build system itself.
8135 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
8137 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8139 * configure.ac: Bump version to 1.97~beta3.
8140 * docs/version.texi: Likewise.
8142 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8144 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
8145 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
8147 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
8148 (grub_linux_setup_video): ... to here (with some adjustments).
8150 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8152 Fix memory corruption issue (spotted by Colin Watson).
8154 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
8155 causing returned size to be stored in an incorrect memory location.
8156 Fix use of uninitialized value when storing the returned size.
8158 2009-09-12 Yves Blusseau <blusseau@zetam.org>
8160 Change clean rules to properly remove files
8162 * genmk.rb: add new clean rules
8163 * Makefile.in (clean): add the new targets
8164 (mostlyclean): likewise
8166 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8168 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
8170 * fs/ntfs.c (init_file): Understand 64-bit sizes for
8173 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8175 * configure.ac: Don't look for help2man when cross-compiling. Fixes
8178 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8180 * util/grub-mkconfig.in: Make the created config mode 400 and
8181 print a warning if it fails.
8183 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
8185 * util/grub.d/40_custom.in: Ask user to type custom entries below
8186 comment, rather than below 'exec tail' line.
8188 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8190 * util/grub.d/40_custom.in: Make sure that the explanatory text is
8191 visible in grub.cfg.
8193 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8195 * util/grub.d/40_custom.in: Make it a little clearer how to use this
8198 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8200 * docs/grub.cfg: Add an example menu entry for memtest86+.
8202 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
8204 * config.guess: Update to latest version from config git.
8205 * config.sub: Likewise.
8207 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
8209 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
8210 unknown-command case. Fixes bug #27320.
8212 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
8214 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
8215 `help' if the command exists.
8217 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
8219 * INSTALL: Require GCC 4.1.3 or later.
8221 2009-09-06 Yves Blusseau <blusseau@zetam.org>
8223 * Makefile.in (RMKFILES): add i386-qemu.rmk
8224 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
8225 $(srcdir)/stamp-h.in
8227 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
8229 * util/grub-probe.c (probe): Comment out buggy codepath, which
8230 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
8231 should be re-enabled after 1.97.
8233 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
8235 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
8238 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
8240 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
8241 unnecessary calls to grub_error.
8243 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
8245 * NEWS: Mention `keystatus' and Unicode fonts.
8247 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
8249 * configure.ac: Bump version to 1.97~beta2.
8250 * docs/version.texi: Likewise.
8252 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
8254 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
8255 containing unwind information in some cases where it previously did
8256 not. Use -fno-dwarf2-cfi-asm if available to restore the old
8257 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
8260 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
8262 Embedding loadenv module into grub-emu
8264 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
8266 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
8267 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
8268 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
8269 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
8270 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
8271 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
8273 2009-09-03 Magnus Granberg <zorry@ume.nu>
8275 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
8276 include -fPIE in the default specs.
8277 * configure.ac: Check if pie_possible is yes and add -fno-PIE
8280 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
8282 * INSTALL: Note that GNU Bison 2.3 or later is required.
8284 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
8286 * kern/i386/pc/startup.S: Fix typo.
8288 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
8290 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
8293 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8295 * docs/grub.texi (Naming convention): Describe one-based partition
8297 (Device syntax): Likewise.
8298 (File name syntax): Likewise.
8299 (Block list syntax): Likewise.
8300 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
8302 (File name syntax): Likewise.
8303 (Command-line and menu entry commands): Document acpi, blocklist,
8304 crc, export, insmod, keystatus, ls, set, and unset commands.
8306 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8308 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
8309 to avoid implying that only one of --shift, --ctrl, or --alt may be
8312 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8314 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
8315 rather than comparing against S_IFREG, which will almost never work.
8317 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
8319 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
8320 (write_blocklists): Likewise.
8322 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
8324 * script/lua/grub_lua.h (fputs): Supply a format string as the first
8325 argument to grub_printf.
8327 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
8329 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
8332 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8334 * kern/file.c (grub_file_read): Spelling fix
8336 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8338 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
8339 loading of headers in some cases.
8341 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
8343 * configure.ac: Bump version to 1.97~beta1.
8344 * docs/version.texi: Likewise.
8346 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8348 * include/grub/i386/xnu.h: Add license header.
8349 include grub/err.h explicitly.
8351 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8353 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
8354 to `ufs' in the vfs.root.mountfrom kernel parameter.
8356 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8358 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
8360 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
8361 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
8363 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
8366 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8368 * kern/file.c (grub_file_read): Check offset.
8369 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
8370 * fs/jfs.c (grub_jfs_read_file): Likewise.
8371 * fs/ntfs.c (grub_ntfs_read): Likewise.
8372 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
8373 * fs/minix.c (grub_minix_read_file): Correct offset check.
8374 * fs/ufs.c (grub_ufs_read_file): Likewise.
8376 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8378 * term/i386/pc/console.c (bios_data_area): Cast
8379 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
8381 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8383 1-bit optimised blitters.
8385 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
8387 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8388 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8389 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8390 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8391 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8392 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8393 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
8395 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8396 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8397 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8398 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8399 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8400 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8401 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
8403 * video/video.c (grub_video_get_blit_format): Return
8404 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
8406 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8408 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
8409 the first argument to grub_printf.
8411 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8412 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
8414 Add `getkeystatus' terminal method. Add a new `keystatus' command
8417 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
8418 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
8419 modifier key bitmasks.
8420 (struct grub_term_input): Add `getkeystatus' member.
8421 (grub_getkeystatus): Add prototype.
8422 * kern/term.c (grub_getkeystatus): New function.
8424 * include/grub/i386/pc/memory.h
8425 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
8426 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
8428 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
8429 (grub_console_term_input): Set `getkeystatus' member.
8430 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
8432 (grub_usb_keyboard_getreport): Likewise.
8433 (grub_usb_keyboard_checkkey): Likewise.
8434 (grub_usb_keyboard_getkeystatus): New function.
8435 (grub_usb_keyboard_term): Set `getkeystatus' member.
8437 * commands/keystatus.c: New file.
8438 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
8439 (keystatus_mod_SOURCES): New variable.
8440 (keystatus_mod_CFLAGS): Likewise.
8441 (keystatus_mod_LDFLAGS): Likewise.
8442 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
8443 commands/keystatus.c.
8444 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8445 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8446 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8447 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8448 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8449 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8451 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8453 Split befs.mod and afs.mod into *_be.mod and *.mod
8455 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
8456 (grub_fstest_SOURCES): Likewise.
8457 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
8458 (afs_be_mod_SOURCES): New variable.
8459 (afs_be_mod_CFLAGS): Likewise.
8460 (afs_be_mod_LDFLAGS): Likewise.
8461 (befs_be_mod_SOURCES): Likewise.
8462 (befs_be_mod_CFLAGS): Likewise.
8463 (befs_be_mod_LDFLAGS): Likewise.
8464 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
8465 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8466 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8467 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
8468 (grub_emu_SOURCES): Likewise.
8469 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8470 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8471 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8472 * fs/afs_be.c: New file.
8473 * fs/befs_be.c: New file.
8474 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
8475 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
8476 (U16): Replaced with ...
8477 (grub_afs_to_cpu16): ...this. All users updated.
8478 (U32): Replaced with ...
8479 (grub_afs_to_cpu32): ...this. All users updated.
8480 (U64): Replaced with ...
8481 (grub_afs_to_cpu64): ...this. All users updated.
8482 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
8483 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
8484 (grub_afs_validate_sblock): Check only one endianness.
8485 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8486 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8487 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8488 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8489 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8490 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8491 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8492 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8494 2009-08-26 Bean <bean123ch@gmail.com>
8496 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
8498 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
8499 (grub_xfs_inode_block): Change return type to grub_uint64_t.
8500 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
8502 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8504 NetBSD memory map support.
8506 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
8507 (grub_netbsd_btinfo_mmap_header): New structure.
8508 (grub_netbsd_btinfo_mmap_entry): Likewise.
8509 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
8511 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8513 Enable bsd.mod on coreboot.
8515 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
8516 (bsd_mod_SOURCES): New variable.
8517 (bsd_mod_CFLAGS): Likewise.
8518 (bsd_mod_LDFLAGS): Likewise.
8519 (bsd_mod_ASFLAGS): Likewise.
8520 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
8521 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
8523 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8525 Cleanup NetBSD root support.
8527 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
8528 grub_bsd_get_device.
8531 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
8533 * util/grub.d/00_header.in: Move check for the video backend of
8534 gfxterm from here ...
8535 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
8536 a suitable video backend.
8538 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8540 Fix breakage in grub-setup.
8542 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
8543 "msdos_partition_map".
8545 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8547 Fix breakage in normal/auth.c.
8549 * normal/auth.c (grub_iswordseparator): New function.
8551 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8553 Authentication support.
8555 * commands/password.c: New file.
8556 * conf/common.rmk (pkglib_MODULES): Add password.mod.
8557 (password_mod_SOURCES): New variable.
8558 (password_mod_CFLAGS): Likewise.
8559 (password_mod_LDFLAGS): Likewise.
8560 (normal_mod_SOURCES): Add normal/auth.c.
8561 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
8563 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8564 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8565 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8566 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8567 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8568 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8569 * include/grub/auth.h: New file.
8570 * include/grub/err.h (grub_err_t): New enum value
8571 GRUB_ERR_ACCESS_DENIED.
8572 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
8574 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
8575 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
8577 * normal/auth.c: New file.
8578 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
8579 (grub_cmdline_run): Don't allow to go to command line without
8581 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
8582 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
8583 menuentry without superuser rights.
8584 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
8585 user isn't a superuser.
8587 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8589 Save space by inlining misc.c functions.
8591 * kern/misc.c (grub_iswordseparator): Made static.
8592 * kern/misc.c (grub_strcat): Moved from here ...
8593 * include/grub/misc.h (grub_strcat): ... here. Inlined.
8594 * kern/misc.c (grub_strncat): Moved from here ...
8595 * include/grub/misc.h (grub_strncat): ... here. Inlined.
8596 * kern/misc.c (grub_strcasecmp): Moved from here ...
8597 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
8598 * kern/misc.c (grub_strncasecmp): Moved from here ...
8599 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
8600 * kern/misc.c (grub_isalpha): Moved from here ...
8601 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
8602 * kern/misc.c (grub_isdigit): Moved from here ...
8603 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
8604 * kern/misc.c (grub_isgraph): Moved from here ...
8605 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
8606 * kern/misc.c (grub_tolower): Moved from here ...
8607 * include/grub/misc.h (grub_tolower): ... here. Inlined.
8609 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8611 * script/sh/function.c (grub_script_function_find): Cut error message
8612 not to flood terminal.
8613 * script/sh/lexer.c (grub_script_yylex): Remove command line length
8615 * script/sh/script.c (grub_script_arg_add): Duplicate string.
8617 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
8619 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
8620 `report' grub_uint8_t *.
8621 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
8622 Use a 50-millisecond timeout rather than just repeating
8623 grub_usb_keyboard_getreport 50 times.
8624 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
8626 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8628 Rename *_partition_map to part_*
8630 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
8631 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
8632 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
8633 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
8635 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
8637 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
8638 * util/grub-probe.c (probe_partmap): Don't transform partition name
8641 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8643 Fix OpenBSD and NetBSD support.
8645 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
8646 memory address conflict.
8647 (OPENBSD_MMAP_ACPI): New definition.
8648 (OPENBSD_MMAP_NVS): Likewise.
8649 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
8650 and OPENBSD_MMAP_NVS.
8651 Add memory map terminator
8652 Explicit cast when calling grub_unix_real_boot.
8653 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
8655 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8657 Let user specify NetBSD root device.
8659 * loader/i386/bsd.c (netbsd_root): New variable.
8660 (netbsd_opts): New option 'root'.
8661 (NETBSD_ROOT_ARG): New macro.
8662 (grub_netbsd_boot): Use 'netbsd_root'.
8663 (grub_bsd_unload): Free 'netbsd_root'.
8664 (grub_cmd_netbsd): Fill 'netbsd_root'.
8666 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8668 Support for 64-bit NetBSD.
8670 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
8671 point when booting non-FreeBSD.
8673 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8675 Support --no-smp and --no-acpi for NetBSD.
8677 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
8678 (NETBSD_AB_NOACPI): Likewise.
8679 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
8680 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
8682 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8684 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
8686 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
8687 errors. Call grub_error when needed.
8689 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8691 * commands/search.c (search_fs): Try searching without autoload first.
8692 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
8693 filesystem module explicitly for faster booting.
8695 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
8697 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
8699 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
8701 * util/grub.d/30_os-prober.in: Disable os-prober if
8702 `GRUB_DISABLE_OS_PROBER' was set to true.
8704 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
8706 * partmap/pc.c: Rename to ...
8707 * partmap/msdos.c: ... this. Update all users.
8708 (grub_pc_partition_map): Rename to ...
8709 (grub_msdos_partition_map): ... this. Update all users.
8711 * parttool/pcpart.c: Rename to ...
8712 * parttool/msdospart.c: ... this. Update all users.
8714 * include/grub/pc_partition.h: Rename to ...
8715 * include/grub/msdos_partition.h: ... this. Update all users.
8716 (grub_pc_partition_bsd_entry): Rename to ...
8717 (grub_msdos_partition_bsd_entry): ... this. Update all users.
8718 (grub_pc_partition_disk_label): Rename to ...
8719 (grub_msdos_partition_disk_label): ... this. Update all users.
8720 (grub_pc_partition_entry): Rename to ...
8721 (grub_msdos_partition_entry): ... this. Update all users.
8722 (grub_pc_partition_mbr): Rename to ...
8723 (grub_msdos_partition_mbr): ... this. Update all users.
8724 (grub_pc_partition): Rename to ...
8725 (grub_msdos_partition): ... this. Update all users.
8726 (grub_pc_partition_is_empty): Rename to ...
8727 (grub_msdos_partition_is_empty): ... this. Update all users.
8728 (grub_pc_partition_is_extended): Rename to ...
8729 (grub_msdos_partition_is_extended): ... this. Update all users.
8730 (grub_pc_partition_is_bsd): Rename to ...
8731 (grub_msdos_partition_is_bsd): ... this. Update all users.
8733 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
8734 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
8735 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
8736 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
8737 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
8738 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
8739 (gpt_mod_LDFLAGS): Rename to ...
8740 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
8741 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
8742 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
8743 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
8744 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
8745 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
8746 (part_gpt_mod_LDFLAGS): ... this.
8747 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
8748 `pcpart.mod' to `msdospart.mod'.
8749 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
8751 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
8752 (msdospart_mod_LDFLAGS): ... this.
8754 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8756 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
8757 (openbsd_opts): Likewise.
8758 (netbsd_opts): Likewise.
8759 (freebsd_flags): Added 0 terminator.
8760 (openbsd_flags): Likewise.
8761 (netbsd_flags): Likewise.
8762 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
8763 (grub_cmd_freebsd): Transformed into extended command.
8764 (grub_cmd_openbsd): Likewise.
8765 (grub_cmd_netbsd): Likewise.
8766 (cmd_freebsd): Changed type to grub_extcmd_t.
8767 (cmd_openbsd): Likewise.
8768 (cmd_netbsd): Likewise.
8769 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
8770 grub_cmd_openbsd as extended commands.
8771 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
8772 cmd_netbsd and cmd_openbsd
8774 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
8776 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
8778 2009-08-21 Pavel Roskin <proski@gnu.org>
8780 * Makefile.in (install-local): When checking if a file is in the
8781 build directory, use "test -e" to detect symlinks.
8783 * Makefile.in (install-local): Remove all files in
8784 $(DESTDIR)$(pkglibdir) before installing new files there.
8786 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
8788 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
8791 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
8793 * util/grub-mkconfig.in: Don't use gfxterm by default if not
8794 explicitly specified by the user.
8796 2009-08-18 Pavel Roskin <proski@gnu.org>
8798 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
8799 grub_uint8_t pointer for data.
8800 * include/grub/fbutil.h (struct grub_video_fbblit_info):
8802 * video/fb/fbutil.c: Remove unnecessary casts.
8804 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
8808 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
8809 (grub_vbe_set_video_mode): Save active mode info
8810 only after setting the mode.
8811 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
8814 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
8816 Rename variables for clarity.
8818 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
8819 (active_vbe_mode_info): ... this. All users updated.
8820 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
8822 (initial_mode): Rename to ...
8823 (initial_vbe_mode): ... this. All users updated.
8824 (mode_in_use): Rename to ..
8825 (vbe_mode_in_use): ... this. All users updated.
8826 (mode_list): Rename to ..
8827 (vbe_mode_list): ... this. All users updated.
8828 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
8829 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
8830 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
8831 'mode_list_size' to 'vbe_mode_list_size'.
8832 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
8833 'best_mode_info' to 'best_vbe_mode_info' and
8834 'best_mode' to 'best_vbe_mode'
8836 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
8838 Remove duplicate grub_video_fb_get_video_ptr.
8840 * include/grub/fbutil.h (get_data_ptr): Rename to ...
8841 (grub_video_fb_get_video_ptr): ... this.
8842 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
8843 * video/fb/fbutil.c: Add comment about addressing.
8844 (get_data_ptr): Rename to ...
8845 (grub_video_fb_get_video_ptr): ... this. All users updated.
8846 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
8848 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
8850 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
8851 grub_dprintf() that was just added.
8853 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
8855 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
8856 (DEFAULT_VIDEO_MODE): Remove macros.
8857 (grub_linux_boot): Remove assumption that Linux has FB support,
8858 and use "text" as default video mode.
8860 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
8862 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
8864 * fs/fat.c (grub_fat_read_data): Likewise.
8866 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8868 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
8870 (grub_module): Likewise.
8872 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8874 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
8875 mbi->cmdline but free playground.
8877 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8879 Handle group offset on UFS1.
8881 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
8882 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
8884 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8886 Split ufs.mod into ufs1.mod and ufs2.mod.
8888 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
8889 (grub_fstest_SOURCES): Likewise.
8890 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
8891 (ufs_mod_SOURCES): Remove.
8892 (ufs_mod_CFLAGS): Likewise.
8893 (ufs_mod_LDFLAGS): Likewise.
8894 (ufs1_mod_SOURCES): New variable.
8895 (ufs1_mod_CFLAGS): Likewise.
8896 (ufs1_mod_LDFLAGS): Likewise.
8897 (ufs2_mod_SOURCES): New variable.
8898 (ufs2_mod_CFLAGS): Likewise.
8899 (ufs2_mod_LDFLAGS): Likewise.
8900 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
8901 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
8903 (grub_emu_SOURCES): Likewise.
8904 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8905 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8906 (grub_setup_SOURCES): Likewise.
8907 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8908 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
8909 (grub_setup_SOURCES): Likewise.
8910 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
8912 * fs/ufs2.c: New file.
8913 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
8915 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8919 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
8920 subsystem at the end.
8921 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
8922 (video_fb_mod_SOURCES): New variable.
8923 (video_fb_mod_CFLAGS): Likewise.
8924 (video_fb_mod_LDFLAGS): Likewise.
8925 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
8926 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
8927 * video/i386/pc/vbeblit.c: Moved from here ...
8928 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
8929 * video/i386/pc/vbefill.c: Moved from here ...
8930 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
8931 * video/i386/pc/vbeutil.c: Moved from here ...
8932 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
8933 * include/grub/i386/pc/vbeblit.h: Moved from here ...
8934 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
8935 * include/grub/i386/pc/vbefill.h: Moved from here ...
8936 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
8937 * include/grub/i386/pc/vbeutil.h: Moved from here ...
8938 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
8939 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
8940 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
8941 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
8942 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
8943 (grub_video_adapter): Added 'get_info_and_fini'.
8944 (grub_video_get_info_and_fini): New prototype.
8945 (grub_video_set_mode): make modestring const char *.
8946 * loader/i386/linux.c (grub_linux_setup_video): Use
8947 grub_video_get_info_and_fini.
8948 (grub_linux_boot): Move modesetting just before booting.
8949 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
8950 grub_video_get_info_and_fini.
8951 * video/i386/pc/vbe.c: Moved framebuffer part ...
8952 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
8953 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
8954 grub_video_fbstd_colors and grub_video_fb_set_palette.
8955 (grub_video_vbe_init): Clear 'framebuffer' variable and use
8957 (grub_video_vbe_fini): Use grub_video_fb_fini.
8958 (grub_video_vbe_setup): Use framebuffer.render_target instead of
8959 render_target and use grub_video_fb_set_active_render_target and
8960 grub_video_fb_set_palette.
8961 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
8962 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
8963 (grub_video_vbe_adapter): Use framebuffer.
8964 * video/video.c (grub_video_get_info_and_fini): New function.
8965 (grub_video_set_mode): Make modestring const char *.
8966 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
8967 values are already initialised.
8969 2009-08-14 Pavel Roskin <proski@gnu.org>
8971 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
8973 * boot/i386/pc/diskboot.S: Likewise.
8974 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
8975 sectors allow compilation on MacOSX.
8976 * conf/i386-pc.rmk: Enable unconditional compilation of
8979 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
8981 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
8982 * util/grub.d/00_header.in: Enter interruptible sleep if
8983 GRUB_HIDDEN_TIMEOUT is set.
8985 2009-08-13 Yves Blusseau <blusseau@zetam.org>
8987 * include/grub/symbol.h: Add the LOCAL macro.
8988 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
8991 2009-08-13 Pavel Roskin <proski@gnu.org>
8993 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
8994 any modern compilers we support.
8996 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
8997 Use local labels starting with "L_" so that Apple assembler
8998 knows they are local.
9000 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
9002 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
9003 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
9004 (bsd_kernel_types): ... this enum.
9006 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
9007 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
9008 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
9010 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
9011 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
9012 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
9015 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
9017 * util/grub-dumpdevtree: Moved from here ...
9018 * util/i386/efi/grub-dumpdevtree: ... to here.
9019 (hexify): New function. Converts a string to its hex version.
9020 Generate hex versions of "efi" and "device-properties" by calling
9021 hexify() on the ASCII strings rather than by hardcoding numbers.
9023 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
9025 * fs/jfs.c: Update copyright year.
9027 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
9029 * util/grub.d/00_header.in: Fix a comment.
9030 * util/grub.d/10_linux.in: Likewise.
9031 * util/grub.d/10_windows.in: Likewise.
9032 * util/grub.d/10_hurd.in: Likewise.
9034 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
9036 * util/grub-mkconfig.in: Allow the user to specify the used font
9039 2009-08-08 Pavel Roskin <proski@gnu.org>
9041 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
9042 available, xfs.mod needs it now.
9044 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
9045 the "g" modifier in sed when the intention is to strip something
9046 once. This fixes comparison of kernels with multiple dashes.
9048 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
9049 on it. Add missing space before closing bracket. Fix
9050 misleading formatting.
9052 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9054 * docs/grub.texi: Major overhaul. Remove all sections that are
9055 specific to GRUB Legacy, or mostly composed of Legacy-specific
9058 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9060 * docs/version.texi: New file. Provides version information for
9063 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9065 * docs/grub.texi: Update CVS information to SVN.
9066 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
9068 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9070 * util/grub-mkconfig.in: Remove a wrong `fi'.
9072 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9074 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
9075 (grub_jfs_uuid): New function.
9076 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
9078 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9080 * util/grub-mkconfig_lib.in (font_path): Move the functionality
9082 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
9083 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
9085 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9087 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
9088 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
9091 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
9092 not just "vmlinu[zx]".
9094 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
9097 * util/grub.d/10_linux.in (find_latest): Moved from here ...
9098 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
9101 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9103 * util/grub.d/10_freebsd.in: Use an absolute device path for
9104 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
9106 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
9108 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
9109 handling of multiple abstraction modules.
9111 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
9113 Fix a bug resulting in black screen when loading Linux using a
9116 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
9119 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
9120 (grub_vbe_bios_getset_dac_palette_width): New function.
9121 (grub_vbe_bios_get_dac_palette_width)
9122 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
9123 grub_vbe_bios_getset_dac_palette_width()).
9125 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
9126 check for return status.
9127 (grub_vbe_get_video_mode_info): When getting information for a packed
9128 mode (<= 8 bpp), obtain DAC palette width using
9129 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
9130 {red,green,blue}_mark_size.
9132 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
9134 * commands/search.c (options): Fix help output to match actual code.
9136 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
9138 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
9141 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9143 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
9146 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9148 Support Apple partition map with sector size different from 512 bytes.
9150 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
9151 (apple_partition_map_iterate): Respect 'aheader.blocksize'
9152 and 'apart.partmap_size'.
9154 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9155 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
9159 * commands/i386/cpuid.c (options): New variable.
9160 (grub_cmd_cpuid): Return real error.
9161 (GRUB_MOD_INIT(cpuid)): Declare options.
9163 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
9165 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
9168 2009-07-31 Bean <bean123ch@gmail.com>
9170 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
9172 (grub_fshelp_node): Move inode field to the end.
9173 (grub_xfs_data): Remove inode field.
9174 (grub_xfs_inode_block): Calculate inode size using sblock.
9175 (grub_xfs_inode_offset): Likewise.
9176 (grub_xfs_read_inode): Calculate inode size using sblock.
9177 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
9178 (grub_xfs_iterate_dir): Calculate inode size using sblock.
9179 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
9180 to match inode size.
9181 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
9182 not accessible when data is null.
9183 (grub_xfs_open): Likewise.
9185 2009-07-31 Bean <bean123ch@gmail.com>
9187 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
9188 Don't change pv->disk if it's already set.
9190 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
9191 (grub_raid_register): ... here.
9192 (grub_raid_rescan): Removed.
9194 * include/grub/raid.h (grub_raid_rescan): Removed.
9196 * util/grub-fstest.c: Remove include file <grub/raid.h>.
9197 (fstest): Replace grub_raid_rescan with module fini function followed
9200 * util/grub-probe.c: Add include file <grub/raid.h>.
9201 (probe_raid_level): New function.
9202 (probe): Detect abstraction by walking the disk device, support two
9203 level of abstraction (LVM on RAID) when detecting partition map.
9205 2009-07-31 Pavel Roskin <proski@gnu.org>
9207 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
9208 to grub_zalloc(), it was erroneous.
9209 Reported by Bean <bean123ch@gmail.com>
9211 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
9213 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
9214 embedding zone, not only the first one.
9216 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
9218 * term/gfxterm.c (clear_char): New function.
9219 (grub_virtual_screen_setup): Use clear_char.
9220 (scroll_up): Likewise.
9221 (grub_virtual_screen_cls): Likewise.
9223 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
9225 * util/deviceiter.c (get_acceleraid_disk_name): New static
9227 (grub_util_iterate_devices): Handle Accelraid devices.
9228 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
9230 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
9232 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
9233 separator for the suggested gfxpayload string (';' collides with the
9234 parser and needs escaping).
9236 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
9238 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
9239 Clear direction flag before jumping to OS.
9240 (grub_multiboot2_real_boot): Likewise.
9242 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
9244 * util/i386/pc/grub-install: Fix parsing of --disk-module
9247 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
9249 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
9252 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
9254 * util/grub-mkconfig.in (package_version): New variable.
9255 Use it do display the version.
9257 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
9259 * kern/file.c (grub_file_open): Revert to previous check with
9262 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9264 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
9265 from help line. It's out of sync with code.
9267 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9269 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
9270 entries on failed boot.
9272 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
9274 * kern/file.c (grub_file_open): Fix an error check.
9276 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
9278 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
9279 partition map couldn't be identified.
9281 2009-07-23 Pavel Roskin <proski@gnu.org>
9283 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
9284 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
9285 case of little endian words becomes just an optimization.
9286 Respect const modifier.
9287 (md5_final): Use code that doesn't depend on endianness.
9289 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
9290 to avoid loss of upper bits if align is unsigned and shorter
9293 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9295 UUID support for UFS
9297 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
9298 (grub_ufs_uuid): New function.
9299 (grub_ufs_fs): add .uuid
9301 2009-07-21 Pavel Roskin <proski@gnu.org>
9303 * kern/dl.c (grub_dl_check_header): Make static.
9305 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
9307 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
9308 add drivemap for Vista. It breaks Windows 7.
9310 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9312 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
9315 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9319 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
9320 (grub_fstest_SOURCES): Likewise.
9321 (pkglib_MODULES): Add befs.mod.
9322 (befs_mod_SOURCES): New variable.
9323 (befs_mod_CFLAGS): Likewise.
9324 (befs_mod_LDFLAGS): Likewise.
9325 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
9326 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9327 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9328 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9329 (grub_setup_SOURCES): Likewise.
9330 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9331 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9332 (grub_setup_SOURCES): Likewise.
9333 * fs/befs.c: New file.
9334 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
9335 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
9336 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
9337 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
9338 (B_KEY_INDEX_ALIGN): New declaration.
9339 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
9340 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
9341 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
9342 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
9343 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
9344 (grub_afs_mount) [MODE_BFS]: Likewise.
9345 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
9346 (grub_afs_fs): Use GRUB_AFS_FSNAME
9347 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
9348 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
9349 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
9350 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
9352 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
9354 * util/getroot.c (find_root_device): Add support for MacOSX.
9355 * util/hostdisk.c: Likewise.
9357 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9359 * font/font.c (find_glyph): Check whether a font is present to avoid
9362 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
9364 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
9366 2009-07-20 Pavel Roskin <proski@gnu.org>
9368 * configure.ac: Trim excessively wordy excuses.
9370 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9372 Add symlink, mtime and label support to AtheFS.
9374 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
9375 (grub_afs_iterate_dir): Handle symlinks.
9376 (grub_afs_open): Use grub_afs_read_symlink.
9377 (grub_afs_dir): Likewise.
9379 (grub_afs_label): New function.
9380 (grub_afs_fs): Add grub_afs_label.
9381 (grub_afs_read_symlink): New function.
9383 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9387 * fs/afs.c: Fix comments style.
9388 (grub_afs_blockrun): Declare as packed.
9389 (grub_afs_datastream): Likewise.
9390 (grub_afs_bnode): Likewise.
9391 (grub_afs_btree): Likewise.
9392 (grub_afs_sblock): Likewise.
9393 Declare `name' as char.
9394 (grub_afs_inode): Declare as packed.
9395 Change void *vnode to grub_uint32_t unused.
9396 (grub_afs_iterate_dir): Check that key_size is positive.
9397 (grub_afs_mount): Don't read superblock twice.
9398 (grub_afs_dir): Don't free node in case of error,
9399 grub_fshelp_find_file already handles this.
9400 (grub_afs_open): Likewise.
9402 2009-07-19 Pavel Roskin <proski@gnu.org>
9404 * Makefile.in: Remove LIBLZO and enable_lzo.
9405 * conf/i386-pc.rmk: Remove lzo support.
9406 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
9407 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
9409 * kern/i386/pc/lzo1x.S: Remove.
9410 * kern/i386/pc/startup.S: Remove lzo support.
9411 * util/i386/pc/grub-mkimage.c: Likewise.
9413 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
9415 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
9416 * fs/xfs.c (grub_xfs_dir): Likewise.
9417 * fs/afs.c (grub_afs_dir): Likewise.
9418 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
9419 (grub_iso9660_open): Likewise.
9420 * fs/jfs.c (grub_jfs_open): Likewise.
9421 * fs/ext2.c (grub_ext2_dir): Likewise.
9422 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
9423 * script/sh/lexer.c (grub_script_yylex): Likewise.
9425 2009-07-16 Pavel Roskin <proski@gnu.org>
9427 * configure.ac: Never add "-c" to CFLAGS.
9429 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
9431 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
9432 grub_cv_cc_efiemu should be used.
9434 * configure.ac: Typo fixes.
9436 * kern/mm.c (grub_zalloc): New function.
9437 (grub_debug_zalloc): Likewise.
9438 * include/grub/mm.h: Declare grub_zalloc() and
9439 grub_debug_zalloc().
9440 * util/misc.c (grub_zalloc): New function.
9441 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
9442 instead of grub_malloc(), remove unneeded initializations.
9443 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
9444 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
9445 * commands/parttool.c (grub_cmd_parttool): Likewise.
9446 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
9447 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
9448 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
9449 * disk/usbms.c (grub_usbms_finddevs): Likewise.
9450 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
9451 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
9452 (grub_cmd_efiemu_pnvram): Likewise.
9453 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
9454 * fs/iso9660.c (grub_iso9660_mount): Likewise.
9455 (grub_iso9660_iterate_dir): Likewise.
9456 * fs/jfs.c (grub_jfs_opendir): Likewise.
9457 * fs/ntfs.c (list_file): Likewise.
9458 (grub_ntfs_mount): Likewise.
9459 * kern/disk.c (grub_disk_open): Likewise.
9460 * kern/dl.c (grub_dl_load_core): Likewise.
9461 * kern/elf.c (grub_elf_file): Likewise.
9462 * kern/env.c (grub_env_context_open): Likewise.
9463 (grub_env_set): Likewise.
9464 (grub_env_set_data_slot): Likewise.
9465 * kern/file.c (grub_file_open): Likewise.
9466 * kern/fs.c (grub_fs_blocklist_open): Likewise.
9467 * loader/i386/multiboot.c (grub_module): Likewise.
9468 * loader/xnu.c (grub_xnu_create_key): Likewise.
9469 (grub_xnu_create_value): Likewise.
9470 * normal/main.c (grub_normal_add_menu_entry): Likewise.
9471 (read_config_file): Likewise.
9472 * normal/menu_entry.c (make_screen): Likewise.
9473 * partmap/sun.c (sun_partition_map_iterate): Likewise.
9474 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
9475 * script/sh/script.c (grub_script_parse): Likewise.
9476 * video/bitmap.c (grub_video_bitmap_create): Likewise.
9477 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
9478 * video/readers/png.c (grub_png_output_byte): Likewise.
9479 (grub_video_reader_png): Likewise.
9481 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9483 Enable all targets that can be built by default
9485 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
9486 grub-mkfont and grub-fstest if they can be built
9488 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9490 Fix hang and segmentation fault in grub-emu-usb
9492 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
9493 * util/usb.c (grub_libusb_devices): likewise
9494 (grub_libusb_init): rename to ...
9495 (GRUB_MOD_INIT (libusb)):...this
9496 (grub_libusb_fini): rename to ..
9497 (GRUB_MOD_FINI (libusb)):...this
9498 * disk/usbms.c (grub_usbms_transfer): fix retry logic
9499 * include/grub/disk.h (grub_raid_init): removed, it's useless
9500 (grub_raid_fini): likewise
9501 (grub_lvm_init): likewise
9502 (grub_lvm_fini): likewise
9503 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
9506 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9510 * Makefile.in (LIBUSB): new macro
9511 * genmk.rb (Utility/print_tail): new method
9512 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
9513 (top level): call util.print_tail at the end.
9515 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9517 Make FreeBSD accept zpool.cache
9519 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
9520 type is /boot/zfs/zpool.cache
9522 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9526 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
9527 correct wrong typedef
9528 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
9530 2009-07-15 Pavel Roskin <proski@gnu.org>
9532 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
9533 * kern/disk.c (struct grub_disk_cache): Likewise.
9535 * commands/probe.c (options): Typo fix.
9537 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
9538 Increase to 0x5a to accommodate FAT32. Adjust other offsets
9540 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
9542 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
9543 the end of "Error" to make the message more readable.
9545 * boot/i386/pc/boot.S (kernel_segment): Remove.
9546 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
9549 * boot/i386/pc/boot.S (boot_version): Remove.
9550 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
9553 * include/grub/i386/pc/boot.h: Sort all offsets.
9554 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
9555 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
9556 * boot/i386/pc/boot.S: Assert location of every offset listed in
9557 include/grub/i386/pc/boot.h.
9559 2009-07-13 Pavel Roskin <proski@gnu.org>
9561 * include/grub/i386/coreboot/machine.h: Rename
9562 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
9563 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
9564 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
9566 * kern/dl.c: Force native word size to suppress warnings when
9569 * kern/device.c (grub_device_iterate): Change struct part_ent to
9570 hold the name, not a pointer to it. Use one grub_malloc() per
9571 partition, not two. Free partition_name if grub_malloc() fails.
9572 Set ents to NULL only before grub_partition_iterate() is called.
9574 2009-07-11 Bean <bean123ch@gmail.com>
9576 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
9579 2009-07-10 Bean <bean123ch@gmail.com>
9580 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
9582 * kern/ieee1275/openfw.c (grub_children_iterate)
9583 (grub_devalias_iterate): Fix size evaluation for property or path
9584 strings, which was broken since r2132.
9586 2009-07-07 Pavel Roskin <proski@gnu.org>
9588 * commands/search.c (search_file): Merge into ...
9589 (search_fs): ... this. Accept search type as argument.
9590 (grub_cmd_search): Pass search type to search_fs().
9592 * include/grub/util/console.h: New file.
9593 * util/console.c: Use it instead of grub/machine/console.h.
9594 * util/grub-emu.c: Likewise.
9596 * lib/arg.c (find_long_option): Remove.
9597 (find_long): Add `len' argument, make `s' const char *.
9598 (grub_arg_parse): Parse long options in place, not in a
9601 2009-07-06 Pavel Roskin <proski@gnu.org>
9603 * commands/search.c (search_fs): Fix potential NULL pointer
9606 * commands/search.c (search_fs): Replace QUID macro with quid_fn
9609 2009-07-06 Daniel Mierswa <impulze@impulze.org>
9611 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
9614 2009-07-05 Pavel Roskin <proski@gnu.org>
9616 * include/grub/i386/linux.h (struct linux_kernel_params):
9617 Restore padding3, it's still needed.
9619 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
9621 * util/osdetect.lua: Likewise.
9623 2009-07-05 Bean <bean123ch@gmail.com>
9625 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
9627 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
9628 (grub_lua_getenv): Likewise.
9629 (grub_lua_setenv): Likewise.
9630 (save_errno): New function.
9631 (push_result): Likewise.
9632 (grub_lua_enum_device): Likewise.
9633 (grub_lua_enum_file): Likewise.
9634 (grub_lua_file_open): Likewise.
9635 (grub_lua_file_close): Likewise.
9636 (grub_lua_file_seek): Likewise.
9637 (grub_lua_file_read): Likewise.
9638 (grub_lua_file_getline): Likewise.
9639 (grub_lua_file_getsize): Likewise.
9640 (grub_lua_file_getpos): Likewise.
9641 (grub_lua_file_eof): Likewise.
9642 (grub_lua_file_exist): Likewise.
9643 (grub_lua_add_menu): Likewise.
9645 * script/lua/grub_lua.h (isupper): New inline function.
9646 (islower): Likewise.
9647 (ispunct): Likewise.
9648 (isxdigit): Likewise.
9649 (strcspn): Change to normal function.
9650 (strpbkr): New function declaration.
9653 * script/lua/grub_main.c (scan_str): New function.
9654 (strcspn): Likewise.
9655 (strpbrk): Likewise.
9658 * script/lua/linit.c (lualibs): Enable the string library.
9660 * util/osdetect.lua: New file.
9662 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
9664 * include/grub/i386/linux.h (struct linux_kernel_params): Add
9665 `capabilities' member.
9667 2009-07-02 Pavel Roskin <proski@gnu.org>
9669 * genparttoollist.sh: Add missing newline at the end.
9671 2009-07-01 Pavel Roskin <proski@gnu.org>
9673 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
9675 * util/hostdisk.c (open_device): Remove `const' from
9676 `sysctl_size', as sysctlbyname() can change it (in this case it
9677 doesn't actually happen).
9679 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
9680 using signed long int constants.
9682 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
9683 constant to avoid a warning on FreeBSD.
9685 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
9688 * Makefile.in: Install include/grub/machine symlink.
9690 * Makefile.in: When installing symlinks, use "cp -fR", which
9691 works on FreeBSD and MacOSX.
9692 From Yves Blusseau <cl7m42e02@sneakemail.com>
9694 * kern/dl.c (grub_dl_resolve_symbol): Make static.
9695 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
9697 * util/misc.c: Move grub_reboot() and grub_halt() ...
9698 * util/grub-emu.c: ... here. Make main_env static.
9699 * include/grub/util/misc.h: Remove main_env.
9701 * kern/mm.c: Use correct format to print size_t.
9703 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
9704 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
9705 * kern/powerpc/dl.c: Likewise.
9706 * kern/sparc64/dl.c: Likewise.
9707 * kern/x86_64/dl.c: Likewise.
9709 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9711 Fix grub-emu build on sparc64-ieee1275.
9713 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
9714 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
9716 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9718 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
9719 (grub_reboot, grub_halt): New functions.
9721 * util/i386/pc/misc.c: Delete. Update all users.
9722 * util/sparc64/ieee1275/misc.c: Likewise.
9723 * util/powerpc/ieee1275/misc.c: Likewise.
9725 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9727 * conf/i386.rmk (setjmp_mod_SOURCES)
9728 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
9729 * conf/common.rmk (setjmp_mod_SOURCES)
9730 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
9731 to use $(target_cpu).
9732 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
9733 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
9734 * conf/powerpc-ieee1275.rmk: Likewise.
9735 * conf/sparc64-ieee1275.rmk: Likewise.
9737 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
9738 $(target_cpu) for kern/$(target_cpu)/dl.c.
9739 * conf/i386-efi.rmk: Likewise.
9740 * conf/i386-ieee1275.rmk: Likewise.
9741 * conf/x86_64-efi.rmk: Likewise.
9742 * conf/i386-coreboot.rmk: Likewise.
9743 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
9744 $(target_cpu) for kern/$(target_cpu)/dl.c and for
9745 kern/$(target_cpu)/cache.S.
9746 * conf/sparc64-ieee1275.rmk: Likewise.
9748 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9750 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
9751 type to `grub_uint8_t', and adjust `padding9' accordingly.
9753 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9755 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
9757 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
9758 assembly in final jump, using register constraints.
9760 (grub_linux_boot): For text mode, initialize `have_vga' using
9761 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
9763 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
9764 right before the final jump.
9766 Set `video_mode' to 0x3.
9768 Document initialization of `video_page', `video_mode' and
9771 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9773 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
9774 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
9775 and set GRUB_LINUX_FLAG_QUIET appropriately.
9777 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9779 Fix build on Debian / sparc.
9781 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
9783 2009-06-28 Pavel Roskin <proski@gnu.org>
9785 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
9788 * util/grub.d/10_linux.in: Match SUSE style initrd names.
9790 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9792 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
9795 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9799 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
9800 file can't be opened. grub_file_open() is already supposed to set
9801 grub_errno / grub_errmsg appropriately.
9802 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9804 2009-06-27 Pavel Roskin <proski@gnu.org>
9805 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9807 * include/grub/dl.h: Include grub/elf.h.
9808 (struct grub_dl): Add symtab field.
9809 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
9810 GRUB_MODULES_MACHINE_READONLY.
9811 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
9812 of the header for read-only modules.
9813 (grub_dl_unload): Free mod->symtab for read-only modules.
9814 * kern/i386/dl.c: Use mod->symtab.
9815 * kern/powerpc/dl.c: Likewise.
9816 * kern/sparc64/dl.c: Likewise.
9817 * kern/x86_64/dl.c: Likewise.
9819 * conf/i386-qemu.rmk: New file.
9820 * kern/i386/qemu/startup.S: Likewise.
9821 * kern/i386/qemu/mmap.c: Likewise.
9822 * boot/i386/qemu/boot.S: Likewise.
9823 * include/grub/i386/qemu/time.h: Likewise.
9824 * include/grub/i386/qemu/serial.h: Likewise.
9825 * include/grub/i386/qemu/kernel.h: Likewise.
9826 * include/grub/i386/qemu/console.h: Likewise.
9827 * include/grub/i386/qemu/boot.h: Likewise.
9828 * include/grub/i386/qemu/init.h: Likewise.
9829 * include/grub/i386/qemu/machine.h: Likewise.
9830 * include/grub/i386/qemu/loader.h: Likewise.
9831 * include/grub/i386/qemu/memory.h: Likewise.
9833 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
9834 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
9835 [qemu] (pkglib_IMAGES): Add `boot.img'.
9836 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
9837 [qemu] (boot_img_FORMAT): New variables.
9838 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
9839 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
9840 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
9841 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
9842 [qemu] (kernel_img_FORMAT): New variables.
9844 * configure.ac: Recognise `i386-qemu'.
9846 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
9847 (for no compression).
9848 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
9849 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
9850 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
9851 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
9854 2009-06-27 Pavel Roskin <proski@gnu.org>
9856 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
9858 * efiemu/prepare32.c: Likewise.
9859 * efiemu/prepare64.c: Likewise.
9861 2009-06-26 Pavel Roskin <proski@gnu.org>
9863 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
9864 * include/grub/elf.h: Define symbols without "32" or "64" based
9865 on GRUB_TARGET_WORDSIZE.
9866 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
9867 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
9869 * efiemu/loadcore64.c: Likewise.
9870 * loader/i386/bsd32.c: Likewise.
9871 * loader/i386/bsd64.c: Likewise.
9872 * kern/dl.c: Remove own ELF definitions.
9873 * util/i386/efi/grub-mkimage.c: Likewise.
9875 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
9877 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
9878 segment 0x0 unconditionally, because the reference generated by
9879 GAS is an absolute address.
9881 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9883 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
9884 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
9886 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9888 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
9889 indexes. Check for -f explicitly.
9890 (search_file): Improve error message.
9891 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
9893 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9895 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
9896 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
9898 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9900 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
9901 * conf/i386-ieee1275.rmk: Likewise.
9902 * conf/i386-coreboot.rmk: Likewise.
9904 * kern/i386/pc/startup.S (grub_stop): Remove function.
9905 * kern/i386/ieee1275/startup.S: Likewise.
9906 * kern/i386/coreboot/startup.S: Likewise.
9907 * kern/i386/misc.S (grub_stop): New function.
9909 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9911 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
9912 * kern/i386/realmode.S (real_to_prot): ... to here.
9914 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9916 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
9918 (kernel_elf_SOURCES): Rename to ...
9919 (kernel_img_SOURCES): ... this.
9920 (kernel_elf_HEADERS): Rename to ...
9921 (kernel_img_HEADERS): ... this. Update all users.
9922 (kernel_elf_ASFLAGS): Rename to ...
9923 (kernel_img_ASFLAGS): ... this.
9924 (kernel_elf_CFLAGS): Rename to ...
9925 (kernel_img_CFLAGS): ... this.
9926 (kernel_elf_LDFLAGS): Rename to ...
9927 (kernel_img_LDFLAGS): ... this.
9928 * conf/i386-coreboot.rmk: Likewise.
9929 * conf/powerpc-ieee1275.rmk: Likewise.
9931 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
9934 2009-06-21 Pavel Roskin <proski@gnu.org>
9936 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
9937 to match nested functions.
9938 * loader/sparc64/ieee1275/linux.c: Likewise.
9940 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
9942 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
9944 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
9947 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
9949 Fix asm file handling on ELF, and remove workarounds.
9951 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
9952 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
9953 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
9954 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
9956 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9958 Load BSD ELF modules
9960 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
9961 and loader/i386/bsd64.c
9962 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
9963 (FREEBSD_MODTYPE_ELF_MODULE): New definition
9964 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
9965 (grub_freebsd_load_elfmodule32): New declaration
9966 (grub_freebsd_load_elfmoduleobj64): Likewise
9967 (grub_freebsd_load_elf_meta32): Likewise
9968 (grub_freebsd_load_elf_meta64): Likewise
9969 (grub_freebsd_add_meta): Likewise
9970 (grub_freebsd_add_meta_module): Likewise
9971 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
9972 (grub_freebsd_add_meta_module): Likewise and move module-specific
9973 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
9974 (grub_cmd_freebsd): Add elf-kernel specific parts
9975 based on grub_freebsd_add_meta_module
9976 (grub_cmd_freebsd_module): Add type parsing moved from
9977 grub_freebsd_add_meta_module
9978 (grub_cmd_freebsd_module_elf): New function
9979 (cmd_freebsd_module_elf): New variable
9980 (GRUB_MOD_INIT): Register freebsd_module_elf
9981 * loader/i386/bsd32.c: New file
9982 * loader/i386/bsd64.c: Likewise
9983 * loader/i386/bsdXX.c: Likewise
9984 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
9985 (grub_elf64_load): Likewise
9986 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
9988 (grub_elf64_load_hook_t): Likewise
9990 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
9992 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
9994 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
9995 don't write a menu entry for recovery mode.
9997 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
9999 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
10000 after it's no longer needed.
10002 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
10004 * include/grub/i386/loader.h (grub_linux_prot_size)
10005 (grub_linux_tmp_addr, grub_linux_real_addr)
10006 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
10007 GRUB_MACHINE_PCBIOS.
10008 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
10009 common grub_util_info() call to ...
10010 (generate_image): ... here.
10011 Fix use of uninitialized memory, comparison of signed with
10012 unsigned integers and memory leak.
10013 Remove bogus module address message.
10015 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
10017 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
10019 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
10021 2009-06-19 Pavel Roskin <proski@gnu.org>
10023 * configure.ac: Remove stray AC_MSG_CHECKING.
10025 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
10027 * disk/scsi.c (grub_scsi_open): use continue instead of big if
10029 2009-06-18 Pavel Roskin <proski@gnu.org>
10031 * conf/common.rmk: Add fs_file.mod.
10032 * disk/fs_file.c: New file.
10033 * include/grub/disk.h (enum grub_disk_dev_id): Add
10034 GRUB_DISK_DEVICE_FILE_ID.
10036 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10038 Fix build with Apple's toolchain. Part 2
10040 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
10043 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10045 Fix build with Apple's toolchain. Part 1
10047 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
10049 * configure.ac: remove a leftover AC_MSG_RESULT
10050 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
10053 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10057 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
10058 (decomp_block): initialize ch
10059 use grub_memcpy instead of memcpy
10061 2009-06-17 Pavel Roskin <proski@gnu.org>
10063 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
10064 version, use declarations needed to use vga_text as the startup
10067 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
10068 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
10070 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
10071 and grub_at_keyboard_fini(), it's done on module load and
10074 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
10076 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
10077 file can't be found.
10078 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10080 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10082 Fix newline handling
10084 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
10085 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
10086 (grub_script_yylex): don't segfault on unterminated script
10087 newline terminates command and variable
10089 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10091 avoid double grub_adjust_range call. Bug reported by David Simner
10093 * kern/disk.c (grub_disk_write): change to raw disk access before
10096 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
10098 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
10099 spaces, for the benefit of help2man.
10100 * util/i386/efi/grub-mkimage.c (usage): Likewise.
10102 2009-06-16 Pavel Roskin <proski@gnu.org>
10104 * kern/i386/halt.c: Include grub/machine/init.h.
10105 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
10107 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
10109 * util/grub.d/30_os-prober.in: Use ${root} in the generated
10110 drivemap menuentry.
10112 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
10114 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
10117 2009-06-16 Pavel Roskin <proski@gnu.org>
10119 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
10120 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
10121 save %dx, we only need %dl and we never change it.
10122 * boot/i386/pc/cdboot.S: Don't set the root drive.
10123 * boot/i386/pc/pxeboot.S: Likewise.
10124 * include/grub/i386/pc/boot.h: Remove
10125 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
10126 GRUB_BOOT_MACHINE_DRIVE_CHECK.
10127 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
10128 * kern/i386/pc/init.c (make_install_device): Remove references
10129 to grub_root_drive.
10130 * kern/i386/pc/startup.S: Likewise.
10131 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
10133 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10137 * commands/xnu_uuid.c: new file
10138 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
10139 (xnu_uuid_mod_SOURCES): new variable
10140 (xnu_uuid_mod_CFLAGS): likewise
10141 (xnu_uuid_mod_LDFLAGS): likewise
10142 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10143 * conf/i386-ieee1275.rmk: likewise
10144 * conf/i386-pc.rmk: likewise
10145 * conf/powerpc-ieee1275.rmk: likewise
10146 * conf/sparc64-ieee1275.rmk: likewise
10147 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
10149 2009-06-16 Pavel Roskin <proski@gnu.org>
10151 * configure.ac: Avoid '==' in test command, it's not portable.
10153 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10157 * commands/probe.c: new file
10158 * conf/common.rmk (pkglib_MODULES): add probe.mod
10159 (probe_mod_SOURCES): new variable
10160 (probe_mod_CFLAGS): likewise
10161 (probe_mod_LDFLAGS): likewise
10162 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10163 * conf/i386-ieee1275.rmk: likewise
10164 * conf/i386-pc.rmk: likewise
10165 * conf/powerpc-ieee1275.rmk: likewise
10166 * conf/sparc64-ieee1275.rmk: likewise
10168 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
10170 Fix handling of string like \"hello\" and "a
10173 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
10174 (grub_script_yylex): fix parsing of quoting, escaping and newline
10176 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
10178 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
10181 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
10183 * util/grub-mkconfig.in: Fix parsing of --output option.
10185 2009-06-12 Pavel Roskin <proski@gnu.org>
10187 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
10188 genmk.rb don't need to be generated or installed.
10190 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
10192 * commands/i386/pc/drivemap_int13h.S: add more comments
10194 2009-06-11 Pavel Roskin <proski@gnu.org>
10196 * Makefile.in (uninstall): Uninstall manuals.
10198 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
10199 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
10200 and update-grub_lib in two places.
10201 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
10203 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
10204 a compiler warning.
10206 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
10207 `entry_lo' to fix variable shadowing.
10209 2009-06-11 Christian Franke <franke@computer.org>
10211 * kern/misc.c (__enable_execute_stack): Add missing return type
10212 to prevent gcc warning.
10214 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
10216 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
10218 2009-06-11 Pavel Roskin <proski@gnu.org>
10220 * Makefile.in: Don't rely on any scripts being executable.
10221 Always use $(SHELL) to run shell scripts.
10223 * configure.ac: Always define ___main if using -nostdlib. This
10224 fixes tests on Cygwin.
10226 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
10230 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
10231 is in bytes and not in blocks
10233 2009-06-11 Pavel Roskin <proski@gnu.org>
10235 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
10238 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
10240 * util/grub.d/30_os-prober.in: Fix a comment. Source
10241 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
10242 to set the root device. Place drivemap command in the generated
10245 2009-06-11 Pavel Roskin <proski@gnu.org>
10247 * configure.ac: Remove host_m32. Issues with 64-bit utilities
10248 have long been resolved.
10250 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
10252 * util/grub.d/10_linux.in: Capitalise "Linux".
10254 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
10256 2009-06-11 Pavel Roskin <proski@gnu.org>
10258 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
10259 fix a gcc warning and ensure that the function won't ever exit.
10261 * kern/i386/ieee1275/init.c: Add missing prototype for
10262 grub_stop_floppy().
10264 * loader/ieee1275/multiboot2.c [__i386__]: Include
10265 grub/cpu/multiboot.h.
10267 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
10268 casts to short - they are not portable and cause warnings. Fix
10269 use of uninitialized values in input_buf. Use ARRAY_SIZE.
10271 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
10275 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
10277 (grub_get_root_biosnumber_saved): new variable
10278 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
10279 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
10280 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
10281 %dx after the call if necessary
10282 * conf/common.rmk (pkglib_MODULES): remove boot.mod
10283 (boot_mod_SOURCES): remove
10284 (boot_mod_CFLAGS): remove
10285 (boot_mod_LDFLAGS): remove
10286 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
10287 (boot_mod_SOURCES): new variable
10288 (boot_mod_CFLAGS): likewise
10289 (boot_mod_LDFLAGS): likewise
10290 * conf/i386-efi.rmk: likewise
10291 * conf/i386-ieee1275.rmk: likewise
10292 * conf/i386-pc.rmk: likewise
10293 * conf/powerpc-ieee1275.rmk: likewise
10294 * conf/sparc64-ieee1275.rmk: likewise
10295 * conf/x86_64-efi.rmk: likewise
10296 * include/grub/i386/pc/biosnum.h: new file
10297 * lib/i386/pc/biosnum.c: likewise
10298 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
10299 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
10300 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
10302 2009-06-10 Pavel Roskin <proski@gnu.org>
10304 * io/gzio.c (test_header): Don't reuse one buffer for all data.
10305 Use separate variables. Read only the file size at the end, but
10306 not the checksum that we don't use.
10308 * kern/file.c (grub_file_read): Use void pointer for the buffer.
10309 Adjust all callers.
10311 * kern/ieee1275/openfw.c: Remove libc includes.
10312 * kern/ieee1275/cmain.c: Likewise.
10313 * include/grub/ieee1275/ieee1275.h: Likewise.
10315 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
10318 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
10320 * Makefile.in: Remove all trailing whitespace.
10321 * conf/i386-pc.rmk: Likewise.
10322 * conf/powerpc-ieee1275.rmk: Likewise.
10323 * conf/sparc64-ieee1275.rmk: Likewise.
10324 * docs/grub.texi: Likewise.
10325 * docs/texinfo.tex: Likewise.
10326 * disk/fs_uuid.c: Likewise.
10327 * disk/lvm.c: Likewise.
10328 * disk/scsi.c: Likewise.
10329 * disk/ata.c: Likewise.
10330 * disk/ieee1275/ofdisk.c: Likewise.
10331 * disk/i386/pc/biosdisk.c: Likewise.
10332 * disk/host.c: Likewise.
10333 * disk/raid.c: Likewise.
10334 * disk/efi/efidisk.c: Likewise.
10335 * disk/usbms.c: Likewise.
10336 * disk/memdisk.c: Likewise.
10337 * disk/loopback.c: Likewise.
10338 * kern/powerpc/dl.c: Likewise.
10339 * kern/device.c: Likewise.
10340 * kern/dl.c: Likewise.
10341 * kern/sparc64/dl.c: Likewise.
10342 * kern/ieee1275/ieee1275.c: Likewise.
10343 * kern/term.c: Likewise.
10344 * kern/fs.c: Likewise.
10345 * kern/i386/dl.c: Likewise.
10346 * kern/i386/pc/startup.S: Likewise.
10347 * kern/i386/pc/init.c: Likewise.
10348 * kern/i386/pc/mmap.c: Likewise.
10349 * kern/i386/pc/lzo1x.S: Likewise.
10350 * kern/i386/ieee1275/init.c: Likewise.
10351 * kern/i386/realmode.S: Likewise.
10352 * kern/i386/tsc.c: Likewise.
10353 * kern/partition.c: Likewise.
10354 * kern/corecmd.c: Likewise.
10355 * kern/file.c: Likewise.
10356 * kern/efi/efi.c: Likewise.
10357 * kern/efi/init.c: Likewise.
10358 * kern/efi/mm.c: Likewise.
10359 * kern/main.c: Likewise.
10360 * kern/err.c: Likewise.
10361 * kern/env.c: Likewise.
10362 * kern/disk.c: Likewise.
10363 * kern/generic/millisleep.c: Likewise.
10364 * kern/generic/rtc_get_time_ms.c: Likewise.
10365 * kern/misc.c: Likewise.
10366 * kern/parser.c: Likewise.
10367 * genmk.rb: Likewise.
10368 * configure.ac: Likewise.
10369 * boot/i386/pc/diskboot.S: Likewise.
10370 * boot/i386/pc/pxeboot.S: Likewise.
10371 * boot/i386/pc/boot.S: Likewise.
10372 * boot/i386/pc/lnxboot.S: Likewise.
10373 * boot/i386/pc/cdboot.S: Likewise.
10374 * parttool/pcpart.c: Likewise.
10375 * video/readers/tga.c: Likewise.
10376 * video/video.c: Likewise.
10377 * video/bitmap.c: Likewise.
10378 * lib/envblk.c: Likewise.
10379 * lib/i386/setjmp.S: Likewise.
10380 * fs/xfs.c: Likewise.
10381 * fs/afs.c: Likewise.
10382 * fs/fat.c: Likewise.
10383 * fs/ntfs.c: Likewise.
10384 * fs/udf.c: Likewise.
10385 * fs/affs.c: Likewise.
10386 * fs/iso9660.c: Likewise.
10387 * fs/hfs.c: Likewise.
10388 * fs/fshelp.c: Likewise.
10389 * fs/ext2.c: Likewise.
10390 * fs/jfs.c: Likewise.
10391 * fs/reiserfs.c: Likewise.
10392 * fs/hfsplus.c: Likewise.
10393 * fs/minix.c: Likewise.
10394 * fs/cpio.c: Likewise.
10395 * fs/sfs.c: Likewise.
10396 * fs/ufs.c: Likewise.
10397 * efiemu/prepare.c: Likewise.
10398 * efiemu/loadcore_common.c: Likewise.
10399 * efiemu/runtime/efiemu.sh: Likewise.
10400 * efiemu/runtime/efiemu.S: Likewise.
10401 * efiemu/runtime/efiemu.c: Likewise.
10402 * efiemu/pnvram.c: Likewise.
10403 * efiemu/main.c: Likewise.
10404 * efiemu/i386/pc/cfgtables.c: Likewise.
10405 * efiemu/i386/loadcore64.c: Likewise.
10406 * efiemu/i386/loadcore32.c: Likewise.
10407 * efiemu/loadcore.c: Likewise.
10408 * efiemu/symbols.c: Likewise.
10409 * efiemu/mm.c: Likewise.
10410 * include/grub/autoefi.h: Likewise.
10411 * include/grub/datetime.h: Likewise.
10412 * include/grub/term.h: Likewise.
10413 * include/grub/hfs.h: Likewise.
10414 * include/grub/lvm.h: Likewise.
10415 * include/grub/i386/tsc.h: Likewise.
10416 * include/grub/i386/linux.h: Likewise.
10417 * include/grub/i386/xnu.h: Likewise.
10418 * include/grub/i386/efiemu.h: Likewise.
10419 * include/grub/i386/pc/biosdisk.h: Likewise.
10420 * include/grub/i386/pc/memory.h: Likewise.
10421 * include/grub/i386/pc/vbe.h: Likewise.
10422 * include/grub/parttool.h: Likewise.
10423 * include/grub/video.h: Likewise.
10424 * include/grub/memory.h: Likewise.
10425 * include/grub/fs.h: Likewise.
10426 * include/grub/partition.h: Likewise.
10427 * include/grub/xnu.h: Likewise.
10428 * include/grub/efi/api.h: Likewise.
10429 * include/grub/efi/pe32.h: Likewise.
10430 * include/grub/efi/memory.h: Likewise.
10431 * include/grub/multiboot.h: Likewise.
10432 * include/grub/usbdesc.h: Likewise.
10433 * include/grub/multiboot2.h: Likewise.
10434 * include/grub/acpi.h: Likewise.
10435 * include/grub/efiemu/efiemu.h: Likewise.
10436 * include/grub/disk.h: Likewise.
10437 * include/grub/ieee1275/ieee1275.h: Likewise.
10438 * include/grub/net.h: Likewise.
10439 * include/grub/machoload.h: Likewise.
10440 * include/grub/macho.h: Likewise.
10441 * include/multiboot.h: Likewise.
10442 * genmoddep.awk: Likewise.
10443 * normal/main.c: Likewise.
10444 * normal/menu_entry.c: Likewise.
10445 * normal/menu_viewer.c: Likewise.
10446 * normal/completion.c: Likewise.
10447 * normal/cmdline.c: Likewise.
10448 * normal/misc.c: Likewise.
10449 * normal/datetime.c: Likewise.
10450 * bus/usb/usbtrans.c: Likewise.
10451 * bus/usb/ohci.c: Likewise.
10452 * bus/usb/uhci.c: Likewise.
10453 * bus/usb/usb.c: Likewise.
10454 * mmap/efi/mmap.c: Likewise.
10455 * mmap/i386/pc/mmap_helper.S: Likewise.
10456 * mmap/i386/pc/mmap.c: Likewise.
10457 * mmap/i386/mmap.c: Likewise.
10458 * mmap/i386/uppermem.c: Likewise.
10459 * mmap/mmap.c: Likewise.
10460 * commands/acpi.c: Likewise.
10461 * commands/echo.c: Likewise.
10462 * commands/blocklist.c: Likewise.
10463 * commands/loadenv.c: Likewise.
10464 * commands/usbtest.c: Likewise.
10465 * commands/boot.c: Likewise.
10466 * commands/parttool.c: Likewise.
10467 * commands/search.c: Likewise.
10468 * commands/cat.c: Likewise.
10469 * commands/i386/pc/play.c: Likewise.
10470 * commands/i386/pc/drivemap.c: Likewise.
10471 * commands/i386/pc/vbeinfo.c: Likewise.
10472 * commands/i386/pc/acpi.c: Likewise.
10473 * commands/i386/pc/vbetest.c: Likewise.
10474 * commands/ls.c: Likewise.
10475 * commands/cmp.c: Likewise.
10476 * commands/test.c: Likewise.
10477 * commands/efi/acpi.c: Likewise.
10478 * commands/gptsync.c: Likewise.
10479 * commands/help.c: Likewise.
10480 * partmap/amiga.c: Likewise.
10481 * partmap/apple.c: Likewise.
10482 * partmap/acorn.c: Likewise.
10483 * partmap/pc.c: Likewise.
10484 * partmap/sun.c: Likewise.
10485 * partmap/gpt.c: Likewise.
10486 * script/sh/lexer.c: Likewise.
10487 * script/sh/function.c: Likewise.
10488 * font/font.c: Likewise.
10489 * font/font_cmd.c: Likewise.
10490 * loader/powerpc/ieee1275/linux.c: Likewise.
10491 * loader/efi/chainloader.c: Likewise.
10492 * loader/multiboot_loader.c: Likewise.
10493 * loader/macho.c: Likewise.
10494 * loader/i386/multiboot.c: Likewise.
10495 * loader/i386/linux.c: Likewise.
10496 * loader/i386/pc/linux.c: Likewise.
10497 * loader/i386/pc/multiboot2.c: Likewise.
10498 * loader/i386/pc/chainloader.c: Likewise.
10499 * loader/i386/pc/xnu.c: Likewise.
10500 * loader/i386/bsd_trampoline.S: Likewise.
10501 * loader/i386/efi/linux.c: Likewise.
10502 * loader/i386/multiboot_elfxx.c: Likewise.
10503 * loader/i386/bsd_helper.S: Likewise.
10504 * loader/i386/bsd.c: Likewise.
10505 * loader/i386/linux_trampoline.S: Likewise.
10506 * loader/i386/xnu_helper.S: Likewise.
10507 * loader/i386/xnu.c: Likewise.
10508 * loader/i386/bsd_pagetable.c: Likewise.
10509 * loader/i386/multiboot_helper.S: Likewise.
10510 * loader/xnu.c: Likewise.
10511 * loader/xnu_resume.c: Likewise.
10512 * io/gzio.c: Likewise.
10513 * term/efi/console.c: Likewise.
10514 * term/terminfo.c: Likewise.
10515 * term/ieee1275/ofconsole.c: Likewise.
10516 * term/i386/pc/serial.c: Likewise.
10517 * term/i386/pc/vesafb.c: Likewise.
10518 * term/i386/pc/vga.c: Likewise.
10519 * term/usb_keyboard.c: Likewise.
10520 * term/gfxterm.c: Likewise.
10521 * aclocal.m4: Likewise.
10522 * util/lvm.c: Likewise.
10523 * util/grub.d/30_os-prober.in: Likewise.
10524 * util/grub.d/10_hurd.in: Likewise.
10525 * util/console.c: Likewise.
10526 * util/grub-macho2img.c: Likewise.
10527 * util/grub-probe.c: Likewise.
10528 * util/hostfs.c: Likewise.
10529 * util/i386/pc/grub-mkimage.c: Likewise.
10530 * util/i386/pc/grub-setup.c: Likewise.
10531 * util/i386/efi/grub-mkimage.c: Likewise.
10532 * util/grub-mkconfig.in: Likewise.
10533 * util/raid.c: Likewise.
10534 * util/resolve.c: Likewise.
10535 * util/grub-mkdevicemap.c: Likewise.
10536 * util/grub-emu.c: Likewise.
10537 * util/getroot.c: Likewise.
10538 * util/hostdisk.c: Likewise.
10539 * util/usb.c: Likewise.
10540 * util/grub-editenv.c: Likewise.
10541 * util/misc.c: Likewise.
10543 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
10545 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
10546 `genparttoollist.sh'.
10547 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
10548 Add `*.sh' to the list find searches for and change `mdate.sh'
10551 2009-06-10 Pavel Roskin <proski@gnu.org>
10553 * include/grub/multiboot2.h: Provide compatibility defines for
10555 * include/multiboot2.h: Include stdint.h only if needed, using
10557 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
10559 * loader/ieee1275/multiboot2.c: Likewise.
10560 * loader/multiboot2.c: Likewise.
10561 * loader/multiboot_loader.c: Likewise.
10563 * configure.ac: Use -nostdlib when probing for the target. It
10564 should not be required to have libc for the target.
10566 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
10567 they fail without libc headers for the target.
10568 * include/grub/powerpc/libgcc.h: Use weak attribute for all
10570 * include/grub/sparc64/libgcc.h: Likewise. Don't use
10571 preprocessor conditionals.
10573 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
10574 build system doesn't need to be aware of the tar.c internals.
10576 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
10578 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
10580 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
10582 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
10583 disk limit to 26 for IDE, Virtio, Xen and SCSI.
10585 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
10587 * util/i386/pc/grub-install.in: Change the error message if UUIDs
10588 aren't available if ata.mod gets used.
10590 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
10592 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
10593 initialising controller.
10594 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
10596 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10598 * util/i386/pc/grub-install.in: Add a parameter --disk-module
10599 to choose between ata and biosdisk module on i386-pc.
10601 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
10603 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
10604 Subclass and Programming Interface fields in terms of the 3 byte
10605 Class Code register.
10606 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
10608 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
10609 interface is OHCI. Add grub_dprintf for symmetry with
10611 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
10612 interface is UHCI. Add interf variable for programming
10613 interface. Print interface with class/subclass.
10615 * bus/usb/ohci.c: Set interf with correct field.
10617 * bus/usb/uhci.c: Remove unneeded doubled lines.
10618 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
10619 Remove whitespace inside comment.
10621 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
10623 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
10624 as fallback an equivalent option without depth.
10626 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10628 Not fail if unable to retrieve C/H/S on LBA disks
10630 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
10631 if unable to retrieve C/H/S on LBA disks
10633 2009-06-08 Pavel Roskin <proski@gnu.org>
10635 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
10638 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10640 * Makefile.in (uninstall): Remove all $lib_DATA files.
10642 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10644 Bugfix: install on partitionless device
10646 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
10649 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10651 * Makefile.in (uninstall): Remove all $include_DATA files.
10653 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10655 * commands/true.c: New file. Implement the true and false commands.
10656 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
10657 (true_mod_SOURCES): New variable.
10658 (true_mod_CFLAGS): Likewise.
10659 (true_mod_LDFLAGS): Likewise.
10661 2009-06-05 Colin D Bennett <colin@gibibit.com>
10663 Optimized font character lookup using binary search instead of linear
10664 search. Fonts now are required to have the character index ordered by
10667 * font/font.c (load_font_index): Verify that fonts have ordered
10669 (find_glyph): Use binary search instead of linear search to find a
10670 character in a font.
10672 2009-06-05 Michael Scherer <misc@mandriva.org>
10674 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
10675 uses case sensitive btree.
10676 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
10677 only for case insensitive filesystems.
10679 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
10681 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
10682 * conf/common.rmk (search_mod_CFLAGS): likewise
10684 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10686 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
10687 compensate a compiler bug
10689 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10691 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
10694 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10696 Definitions for creating asm symbols with Apple's CC
10698 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
10699 [APPLE_CC] (VARIABLE): likewise
10701 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10703 Disable lnxboot.img when compiled
10706 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
10707 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
10708 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
10709 [! APPLE_CC] (CODE_LENG): skip
10710 [! APPLE_CC] (setup_sects): likewise
10711 [! APPLE_CC]: skip filling
10713 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10715 Address in trampolines based on 32-bit registers when compiled
10718 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
10720 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
10722 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10724 Avoid aliases when compiling with Apple's CC for PCBIOS machine
10726 * kern/misc.c [APPLE_CC] (memcpy): new function
10727 [APPLE_CC] (memmove): likewise
10728 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
10729 (memcpy): define alias conditionally on !APPLE_CC
10732 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
10733 APPLE_CC are defined
10734 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
10735 (grub_assert_fail): make prototype conditional
10737 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10739 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
10741 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
10743 (CLEANFILES): add grub-macho2img
10744 (grub_macho2img_SOURCES): new variable
10745 * kern/i386/pc/startup.S (bss_start): new variable
10746 (bss_end): likewise
10747 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
10748 * util/grub-macho2img.c: new file
10750 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10752 Use objconv when compiling with Apple's CC
10754 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
10755 (efiemu64.o): likewise
10756 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
10757 when compiling with Apple's CC
10758 (efiemu64_s.o): likewise
10759 * configure.ac: check for objconv when compiling with Apple's CC
10760 * genmk.rb: use objconv for modules when compiled with Apple's CC
10762 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10764 Define segment as well as section when compiling with
10767 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
10768 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
10769 (efiemu_convert_pointer): likewise
10770 (efiemu_set_virtual_address_map): likewise
10771 (efiemu_convert_pointer): likewise
10772 (efiemu_getcrc32): likewise
10773 (init_crc32_table): likewise
10774 (reflect): likewise
10775 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
10776 (GRUB_MOD_DEP): likewise
10778 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10780 Allow a compilation without -mcmodel=large
10782 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
10783 when compiled without -mcmodel=large
10784 (filter_memory_map): remove memory post 4 GiB when compiled
10785 without -mcmodel=large
10786 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
10787 TARGET_CFLAGS when -mcmodel=large isn't supported
10789 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10791 Remove nested functions in efiemu core
10793 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
10795 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10797 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
10799 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
10801 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
10803 (grub_cpu_is_tsc_supported): likewise
10804 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
10806 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10808 Absolute addressing through constant with Apple's cc
10810 * kern/i386/pc/startup.S: Define necessary constants
10811 and address through it when using ABS with Apple's CC
10812 * boot/i386/pc/diskboot.S: likewise
10813 * boot/i386/pc/boot.S: likewise
10814 * boot/i386/pc/lnxboot.S: likewise
10815 * boot/i386/pc/cdboot.S: likewise
10816 * mmap/i386/pc/mmap_helper.S: likewise
10817 * commands/i386/pc/drivemap_int13h.S: likewise
10819 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10821 Check if compiler is apple cc
10823 * Makefile.in (ASFLAGS): new variable
10824 (TARGET_ASFLAGS): likewise
10825 (TARGET_MODULE_FORMAT): likewise
10826 (TARGET_APPLE_CC): likewise
10827 (OBJCONV): likewise
10828 (TARGET_IMG_CFLAGS): likewise
10829 (TARGET_CPPFLAGS): add includedir
10830 * configure.ac: call grub_apple_cc and grub_apple_target_cc
10831 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
10832 Check for linker script only if compiler isn't Apple's CC
10833 (TARGET_MODULE_FORMAT): set
10834 (TARGET_APPLE_CC): likewise
10835 (TARGET_ASFLAGS): likewise
10836 (ASFLAGS): likewise
10837 Check for objcopy only if compiler isn't Apple's CC
10838 Check for BSS symbol only if compiler isn't Apple's CC
10839 * genmk.rb: adapt nm options if we use Apple's utils
10840 * aclocal.m4 (grub_apple_cc): new test
10841 (grub_apple_target_cc): likewise
10843 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10845 Simplify sed expressions and improve awk
10847 * Makefile.in (install-local): simplify sed expression
10848 * gencmdlist.sh: likewise
10849 * genmoddep.awk: avoid adding module as a dependency of itself
10851 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10853 Add missing start symbols
10855 * boot/i386/pc/boot.S: add start
10856 * boot/i386/pc/pxeboot.S: likewise
10858 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10860 Fix wrong assumptions with grub-mkimage on EFI
10862 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
10863 (relocate_addresses): consider both r_addend and value at offset
10864 (make_mods_section): zerofill modinfo and header
10865 (convert_elf): write prefix here
10867 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10869 Use .asciz instead of .string
10871 * i386/pc/diskboot.S: use .asciz instead of .string
10872 * i386/pc/boot.S: likewise
10873 * include/grub/dl.h (GRUB_MOD_DEP): likewise
10874 (GRUB_MOD_NAME): likewise
10876 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10880 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
10881 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
10882 (grub_video_setup): remove
10883 (grub_video_set_mode): new prototype
10884 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
10886 (linux_vesafb_res): compile only on PCBIOS
10887 (grub_linux_boot): support gfxpayload
10888 * loader/i386/pc/xnu.c (video_hook): new function
10889 (grub_xnu_set_video): support gfxpayload
10890 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
10891 (DEFAULT_VIDEO_HEIGHT): likewise
10892 (DEFAULT_VIDEO_FLAGS): likewise
10893 (DEFAULT_VIDEO_MODE): new definition
10894 (video_hook): new function
10895 (grub_gfxterm_init): use grub_video_set_mode
10896 * util/grub.d/30_os-prober.in: remove explicit modesetting before
10898 * video/video.c (grub_video_setup): removed
10899 (grub_video_set_mode): new function based on grub_gfxterm_init and
10902 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10904 Avoid calling biosdisk in drivemap
10906 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
10907 (revparse_biosdisk): likewise
10908 (list_mappings): derive name from id directly
10909 (grub_cmd_drivemap): use tryparse_diskstring
10911 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10915 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
10916 (grub_lexer_param): add tokenonhold
10917 (grub_script_create_cmdline): remove cmdline. All callers updated
10918 (grub_script_function_create): make functionname
10919 grub_script_arg. All callers updated
10920 (grub_script_execute_argument_to_string): new prototype
10921 * kern/parser.c (state_transitions): reorder
10922 (grub_parser_cmdline_state): fix a bug and make more compact
10923 * script/sh/execute.c (grub_script_execute_argument_to_string):
10925 (grub_script_execute_cmdline): use new format
10926 * script/sh/function.c (grub_script_function_create): make functionname
10927 grub_script_arg. All callers updated
10928 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
10929 (grub_script_yylex): remove
10930 (grub_script_yylex2): renamed to ...
10931 (grub_script_yylex): ...renamed
10932 parse the expressions like a${b}c
10933 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
10934 (GRUB_PARSER_TOKEN_VAR): remove
10935 (GRUB_PARSER_TOKEN_NAME): likewise
10936 ("if"): declare as typeless
10937 ("while"): likewise
10938 ("function"): likewise
10943 (argument): likewise
10944 (script): accept empty scripts and make exit on error
10945 (arguments): use GRUB_PARSER_TOKEN_ARG
10946 (function): likewise
10947 (command): move error handling to script
10948 (menuentry): move grub_script_lexer_ref before
10949 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
10950 argument. All callers updated
10952 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
10954 Prevent GRUB from probing floppies during boot.
10956 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
10957 * commands/search.c (options): Add --no-floppy.
10958 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
10959 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
10960 --no-floppy when searching for UUIDs.
10962 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
10964 Simplify the code duplication in commands/search.c.
10966 * commands/search.c (search_label, search_fs_uuid): Merge into ...
10967 (search_fs): ... this. Update all users.
10969 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
10971 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
10973 2009-05-28 Pavel Roskin <proski@gnu.org>
10975 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
10976 Remove the original symlink explicitly.
10978 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
10979 just one slash. That's how grub_fshelp_find_file() does it.
10981 2009-05-26 Pavel Roskin <proski@gnu.org>
10983 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
10986 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
10989 2009-05-25 Christian Franke <franke@computer.org>
10991 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
10993 (grub_atapi_identify): Add wait after drive select.
10994 (grub_ata_identify): Do more strict status register check before
10995 calling grub_atapi_identify (). Suppress error message if status
10996 register is 0x00 after command failure. Add status register
10997 check after PIO read to avoid bogus identify due to stuck DRQ.
10998 Thanks to Pavel Roskin for testing.
10999 (grub_device_initialize): Remove unsafe status register check.
11000 Thanks to 'phcoder' for problem report and patch.
11001 Prevent sign extension in debug message.
11003 2009-05-23 Colin D Bennett <colin@gibibit.com>
11005 Cleaned up `include/grub/normal.h'. Grouped prototypes by
11006 definition file, and functions defined in `normal/menu.c' have had
11007 their prototypes moved to `include/grub/menu.h' for consistency.
11009 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
11011 (grub_menu_get_entry): Likewise.
11012 (grub_menu_get_timeout): Likewise.
11013 (grub_menu_set_timeout): Likewise.
11014 (grub_menu_execute_entry): Likewise.
11015 (grub_menu_execute_with_fallback): Likewise.
11016 (grub_menu_entry_run): Likewise.
11018 * include/grub/normal.h: Re-ordered and grouped function
11019 prototypes by file that the function is defined in.
11020 (grub_menu_execute_callback): Removed; moved to menu.h.
11021 (grub_menu_get_entry): Likewise.
11022 (grub_menu_get_timeout): Likewise.
11023 (grub_menu_set_timeout): Likewise.
11024 (grub_menu_execute_entry): Likewise.
11025 (grub_menu_execute_with_fallback): Likewise.
11026 (grub_menu_entry_run): Likewise.
11027 (grub_menu_addentry): Renamed from this ...
11028 (grub_normal_add_menu_entry): ... to this.
11030 * normal/main.c (grub_menu_addentry): Renamed from this ...
11031 (grub_normal_add_menu_entry): ... to this.
11033 * script/sh/execute.c (grub_script_execute_menuentry): Update
11034 reference to renamed grub_menu_addentry function.
11036 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
11038 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
11040 2009-05-22 Pavel Roskin <proski@gnu.org>
11042 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
11043 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
11044 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
11045 compiling for the i386 targets, but not for the utilities.
11047 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
11049 (grub_root_drive): Likewise.
11050 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
11052 (grub_root_drive): Change size to byte.
11053 (grub_start_addr): Remove.
11054 (grub_end_addr): Likewise.
11055 (grub_apm_bios_info): Likewise.
11057 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
11059 * normal/i386: Remove.
11060 * normal/powerpc: Likewise.
11061 * normal/sparc64: Likewise.
11062 * normal/x86_64: Likewise.
11064 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
11066 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
11067 * loader/i386/linux_trampoline.S: Fix indentation
11068 * loader/i386/xnu_helper.S: Likewise
11070 2009-05-18 Colin D Bennett <colin@gibibit.com>
11072 Display error messages when parsing a Lua statement fails.
11073 Previously, executing a syntactically invalid statement like
11074 ")foo" or "bar;" would silently fail.
11076 * script/lua/grub_main.c (handle_lua_error): New function.
11077 (grub_lua_parse_line): Improved reporting of Lua parser and
11080 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11082 Remove -Werror which causes build to fail on some systems
11084 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
11085 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
11086 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
11088 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11090 trampoline for linux on 64-bit platform
11092 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
11093 loader/i386/efi/linux_trampoline.S
11094 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
11096 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
11098 * loader/i386/linux_trampoline.S: moved here
11099 * loader/i386/efi/linux.c (allocate_pages): reserve space for
11101 (jumpvector): removed
11102 (grub_linux_trampoline_start): new declaration
11103 (grub_linux_trampoline_end): likewise
11104 (grub_linux_boot): use trampoline when on 64-bit platform
11105 * loader/i386/linux.c: likewise
11107 2009-05-16 Pavel Roskin <proski@gnu.org>
11109 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
11110 const to avoid a warning.
11111 (grub_lua_setenv): Likewise.
11112 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
11113 lmsg to fix a warning.
11115 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11117 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
11118 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11119 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
11120 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11121 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11122 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11123 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11124 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11126 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11128 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
11130 2009-05-16 Bean <bean123ch@gmail.com>
11132 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
11133 (lua_mod_SOURCES): New variable.
11134 (lua_mod_CFLAGS): Likewise.
11135 (lua_mod_LDFLAGS): Likewise.
11137 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
11138 (setjmp_mod_SOURCES): New variable.
11139 (setjmp_mod_CFLAGS): Likewise.
11140 (setjmp_LDFLAGS): Likewise.
11142 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
11143 (setjmp_mod_SOURCES): New variable.
11144 (setjmp_mod_CFLAGS): Likewise.
11145 (setjmp_LDFLAGS): Likewise.
11147 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11148 (setjmp_mod_SOURCES): New variable.
11149 (setjmp_mod_CFLAGS): Likewise.
11150 (setjmp_LDFLAGS): Likewise.
11152 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11153 (setjmp_mod_SOURCES): New variable.
11154 (setjmp_mod_CFLAGS): Likewise.
11155 (setjmp_LDFLAGS): Likewise.
11157 * normal/i386/setjmp.S: Moved from here ...
11158 * lib/i386/setjmp.S: ... Moved here
11159 * normal/x86_64/setjmp.S: Moved from here ...
11160 * lib/x86_64/setjmp.S: ... Moved here
11161 * normal/powerpc/setjmp.S: Moved from here ...
11162 * lib/powerpc/setjmp.S: ... Moved here
11163 * normal/sparc64/setjmp.S: Moved from here ...
11164 * lib/sparc64/setjmp.S: ... Moved here
11166 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
11167 returns_twice in mingw.
11169 * script/lua/grub_lib.c: New file.
11170 * script/lua/grub_lib.h: Likewise.
11171 * script/lua/grub_lua.h: Likewise.
11172 * script/lua/grub_main.c: Likewise.
11173 * script/lua/lapi.c: Likewise.
11174 * script/lua/lapi.h: Likewise.
11175 * script/lua/lauxlib.c: Likewise.
11176 * script/lua/lauxlib.h: Likewise.
11177 * script/lua/lbaselib.c: Likewise.
11178 * script/lua/lcode.c: Likewise.
11179 * script/lua/lcode.h: Likewise.
11180 * script/lua/ldblib.c: Likewise.
11181 * script/lua/ldebug.c: Likewise.
11182 * script/lua/ldebug.h: Likewise.
11183 * script/lua/ldo.c: Likewise.
11184 * script/lua/ldo.h: Likewise.
11185 * script/lua/ldump.c: Likewise.
11186 * script/lua/lfunc.c: Likewise.
11187 * script/lua/lfunc.h: Likewise.
11188 * script/lua/lgc.c: Likewise.
11189 * script/lua/lgc.h: Likewise.
11190 * script/lua/linit.c: Likewise.
11191 * script/lua/liolib.c: Likewise.
11192 * script/lua/llex.c: Likewise.
11193 * script/lua/llex.h: Likewise.
11194 * script/lua/llimits.h: Likewise.
11195 * script/lua/lmathlib.c: Likewise.
11196 * script/lua/lmem.c: Likewise.
11197 * script/lua/lmem.h: Likewise.
11198 * script/lua/loadlib.c: Likewise.
11199 * script/lua/lobject.c: Likewise.
11200 * script/lua/lobject.h: Likewise.
11201 * script/lua/lopcodes.c: Likewise.
11202 * script/lua/lopcodes.h: Likewise.
11203 * script/lua/loslib.c: Likewise.
11204 * script/lua/lparser.c: Likewise.
11205 * script/lua/lparser.h: Likewise.
11206 * script/lua/lstate.c: Likewise.
11207 * script/lua/lstate.h: Likewise.
11208 * script/lua/lstring.c: Likewise.
11209 * script/lua/lstring.h: Likewise.
11210 * script/lua/lstrlib.c: Likewise.
11211 * script/lua/ltable.c: Likewise.
11212 * script/lua/ltable.h: Likewise.
11213 * script/lua/ltablib.c: Likewise.
11214 * script/lua/ltm.c: Likewise.
11215 * script/lua/ltm.h: Likewise.
11216 * script/lua/lua.h: Likewise.
11217 * script/lua/luaconf.h: Likewise.
11218 * script/lua/lualib.h: Likewise.
11219 * script/lua/lundump.c: Likewise.
11220 * script/lua/lundump.h: Likewise.
11221 * script/lua/lvm.c: Likewise.
11222 * script/lua/lvm.h: Likewise.
11223 * script/lua/lzio.c: Likewise.
11224 * script/lua/lzio.h: Likewise.
11226 2009-05-16 Bean <bean123ch@gmail.com>
11228 * include/grub/kernel.h (grub_module_header_types): Add type
11231 * kern/main.c (grub_load_config): New function.
11232 (grub_main): Call grub_load_config to read boot config.
11234 * grub-mkimage (generate_image): New parameter config_path.
11235 (options): New option --config.
11236 (main): Parse --config option, and pass it to generate_image.
11238 2009-05-14 Christian Franke <franke@computer.org>
11240 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
11241 This fixes build on Cygwin.
11243 2009-05-14 Pavel Roskin <proski@gnu.org>
11245 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
11246 jump. This saves two bytes, so the typical case of 2 swapped
11247 drives would fit 32 bytes.
11249 2009-05-13 Pavel Roskin <proski@gnu.org>
11251 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
11252 grub_uint32_t to avoid a warning.
11254 * loader/i386/linux.c (allocate_pages): When assigning
11255 real_mode_mem, cast through grub_size_t to fix a warning. The
11256 code already makes sure that the value would fit a pointer.
11257 (grub_linux_setup_video): Cast render_target->data to
11258 grub_size_t to fix a warning.
11260 2009-05-13 Javier Martín <lordhabbit@gmail.com>
11262 * commands/i386/pc/drivemap.c: New file - implement drivemap
11264 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
11265 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
11267 2009-05-13 Pavel Roskin <proski@gnu.org>
11269 * util/i386/pc/grub-setup.c (setup): Remove unused variable
11270 embedding_area_exists.
11272 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
11274 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
11275 it easier to understand / work with.
11276 Improve warning messages for cases where there's no embedding area,
11277 or when it is too small (or core.img too large).
11279 2009-05-13 Pavel Roskin <proski@gnu.org>
11281 * loader/i386/pc/multiboot2.c: Add necessary includes for
11282 grub_multiboot2_real_boot().
11284 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
11285 PX record is always little-endian. We only need the lower 2
11288 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
11289 facilitate code reuse.
11290 (grub_cpio_mount): Use "struct head", not a char buffer. This
11291 fixes a warning reported by gcc 4.4.
11293 * kernel/disk.c (grub_disk_read): Use void pointer for the
11295 (grub_disk_write): Use const void pointer for the buffer.
11296 Adjust all callers. Remove unnecessary casts.
11298 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
11300 * util/i386/pc/grub-install.in: Update copyright year.
11302 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11306 * commands/gptsync.c: new file
11307 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
11308 (gptsync_mod_SOURCES): new variable
11309 (gptsync_mod_CFLAGS): likewise
11310 (gptsync_mod_LDFLAGS): likewise
11311 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
11313 (GRUB_PC_PARTITION_TYPE_HFS): likewise
11314 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
11315 * conf/i386-ieee1275.rmk: likewise
11316 * conf/i386-pc.rmk: likewise
11317 * conf/powerpc-ieee1275.rmk: likewise
11319 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11323 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
11324 (grub_dl_ref): likewise
11326 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
11328 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
11329 split in two functions (one for msdos and one for gpt).
11331 2009-05-08 Pavel Roskin <proski@gnu.org>
11333 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
11336 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
11337 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
11338 Initialize them with -1. Add sanity check for bad1. Eliminate
11341 2009-05-08 David S. Miller <davem@davemloft.net>
11343 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
11345 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
11347 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
11350 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
11352 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
11353 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
11355 2009-05-05 David S. Miller <davem@davemloft.net>
11357 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
11359 2009-05-05 Pavel Roskin <proski@gnu.org>
11361 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
11362 of grub_dl_ref() and grub_dl_unref().
11363 * commands/parttool.c: Remove preprocessor conditionals around
11364 grub_dl_ref() and grub_dl_unref().
11365 * fs/affs.c: Likewise.
11366 * fs/afs.c: Likewise.
11367 * fs/cpio.c: Likewise.
11368 * fs/ext2.c: Likewise.
11369 * fs/fat.c: Likewise.
11370 * fs/hfs.c: Likewise.
11371 * fs/hfsplus.c: Likewise.
11372 * fs/iso9660.c: Likewise.
11373 * fs/jfs.c: Likewise.
11374 * fs/minix.c: Likewise.
11375 * fs/ntfs.c: Likewise.
11376 * fs/reiserfs.c: Likewise.
11377 * fs/sfs.c: Likewise.
11378 * fs/udf.c: Likewise.
11379 * fs/ufs.c: Likewise.
11380 * fs/xfs.c: Likewise.
11381 * include/grub/dl.h: Likewise.
11382 * loader/xnu.c: Likewise.
11384 2009-05-04 Pavel Roskin <proski@gnu.org>
11386 * commands/acpi.c: Remove unused variable my_mod.
11387 * partmap/amiga.c: Likewise.
11388 * partmap/apple.c: Likewise.
11389 * partmap/gpt.c: Likewise.
11390 * partmap/pc.c: Likewise.
11391 * partmap/sun.c: Likewise.
11392 * term/gfxterm.c: Likewise.
11393 * term/i386/pc/vesafb.c: Likewise.
11394 * term/i386/pc/vga.c: Likewise.
11396 2009-05-04 David S. Miller <davem@davemloft.net>
11398 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
11399 pointer args to grub_ieee1275_get_property().
11401 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
11403 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
11404 devices, and do not traverse down under controller nodes.
11406 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
11407 (grub_ofdisk_open): Use it to un-escape "," characters.
11408 * kern/disk.c (find_part_sep): New.
11409 (grub_disk_open): Use it to find the first non-escaped ','
11410 character in the disk name.
11411 * util/ieee1275/devicemap.c (escape_of_path): New.
11412 (grub_util_emit_devicemap_entry): Use it.
11413 * util/sparc64/ieee1275/grub-install.in: Update script to
11414 strip partition specifiers properly by not triggering on
11415 '\' escaped ',' characters.
11417 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11419 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
11421 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
11423 (linux_vesafb_modes): Add a lot of additional modes to the list (based
11424 on documentation from Wikipedia).
11426 2009-05-04 Pavel Roskin <proski@gnu.org>
11428 * disk/ata.c: Spelling fixes.
11429 * disk/raid.c: Likewise.
11430 * disk/usbms.c: Likewise.
11431 * disk/dmraid_nvidia.c: Likewise.
11432 * kern/ieee1275/openfw.c: Likewise.
11433 * kern/ieee1275/init.c: Likewise.
11434 * kern/ieee1275/cmain.c: Likewise.
11435 * boot/i386/pc/cdboot.S: Likewise.
11436 * video/readers/png.c: Likewise.
11437 * video/i386/pc/vbe.c: Likewise.
11438 * fs/udf.c: Likewise.
11439 * fs/hfs.c: Likewise.
11440 * fs/reiserfs.c: Likewise.
11441 * efiemu/runtime/efiemu.c: Likewise.
11442 * efiemu/main.c: Likewise.
11443 * efiemu/mm.c: Likewise.
11444 * include/grub/elf.h: Likewise.
11445 * include/grub/xnu.h: Likewise.
11446 * include/grub/usbdesc.h: Likewise.
11447 * include/grub/usb.h: Likewise.
11448 * include/grub/script_sh.h: Likewise.
11449 * include/grub/lib/LzmaEnc.h: Likewise.
11450 * include/grub/efiemu/efiemu.h: Likewise.
11451 * include/grub/command.h: Likewise.
11452 * normal/menu.c: Likewise.
11453 * normal/main.c: Likewise.
11454 * normal/datetime.c: Likewise.
11455 * bus/usb/uhci.c: Likewise.
11456 * mmap/i386/uppermem.c: Likewise.
11457 * mmap/mmap.c: Likewise.
11458 * commands/acpi.c: Likewise.
11459 * commands/test.c: Likewise.
11460 * partmap/apple.c: Likewise.
11461 * font/font.c: Likewise.
11462 * loader/sparc64/ieee1275/linux.c: Likewise.
11463 * loader/macho.c: Likewise.
11464 * loader/i386/bsd_trampoline.S: Likewise.
11465 * loader/i386/bsd.c: Likewise.
11466 * loader/xnu.c: Likewise.
11467 * term/i386/pc/vesafb.c: Likewise.
11468 * term/usb_keyboard.c: Likewise.
11469 * util/resolve.c: Likewise.
11470 * util/getroot.c: Likewise.
11472 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
11474 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
11476 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11478 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
11481 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11483 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
11484 parameter only available on BIOS.
11486 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11488 Removed wrong semicolon in declaration
11490 * grub/misc.h (grub_dprintf): remove semicolon
11492 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11494 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
11495 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
11496 is done by grub_cmd_linux() now).
11497 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
11498 restore video to text mode.
11499 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
11500 indicates lack of "vga=" parameter. "vga=0" is mapped to
11501 `GRUB_LINUX_VID_MODE_NORMAL'.
11503 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
11505 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
11506 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
11507 and `normal/script.c'. Add `kern/rescue_reader.c',
11508 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
11509 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
11510 `grub_script.tab.c'.
11512 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11513 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
11514 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11515 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
11516 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11518 * Makefile.in: Remove duplicated 2008 in Copyright line.
11520 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11522 * util/misc.c (grub_util_warn): New function. Emits a warning
11524 * include/grub/util/misc.h (grub_util_warn): New declaration.
11526 * util/i386/pc/grub-install.in: Understand --force and pass it down
11529 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
11531 (setup): Improve error messages and add warnings when requested to
11532 install in odd layouts. Refuse to install using blocklists unless
11535 2009-05-04 martin f. krafft <madduck@madduck.net>
11537 * disk/raid.c (grub_raid_scan_device): Improve debug message.
11539 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11541 Updated copyright year
11543 * fs/hfsplus.c: updated copyright year
11545 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11549 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
11550 in the space previously used by unused3
11551 (grub_hfsplus_uuid): new function
11552 (grub_hfsplus_fs): added uuid field
11554 2009-05-03 Pavel Roskin <proski@gnu.org>
11556 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
11557 suppress warnings. It's no longer needed.
11558 * disk/host.c: Likewise.
11559 * disk/ata_pthru.c: Likewise.
11560 * disk/loopback.c: Likewise.
11561 * hook/datehook.c: Likewise.
11562 * parttool/pcpart.c: Likewise.
11563 * fs/i386/pc/pxe.c: Likewise.
11564 * fs/ntfscomp.c: Likewise.
11565 * efiemu/main.c: Likewise.
11566 * mmap/mmap.c: Likewise.
11567 * commands/crc.c: Likewise.
11568 * commands/hexdump.c: Likewise.
11569 * commands/hdparm.c: Likewise.
11570 * commands/acpi.c: Likewise.
11571 * commands/echo.c: Likewise.
11572 * commands/minicmd.c: Likewise.
11573 * commands/blocklist.c: Likewise.
11574 * commands/memrw.c: Likewise.
11575 * commands/loadenv.c: Likewise.
11576 * commands/usbtest.c: Likewise.
11577 * commands/lsmmap.c: Likewise.
11578 * commands/boot.c: Likewise.
11579 * commands/parttool.c: Likewise.
11580 * commands/configfile.c: Likewise.
11581 * commands/search.c: Likewise.
11582 * commands/ieee1275/suspend.c: Likewise.
11583 * commands/cat.c: Likewise.
11584 * commands/i386/pc/pxecmd.c: Likewise.
11585 * commands/i386/pc/play.c: Likewise.
11586 * commands/i386/pc/halt.c: Likewise.
11587 * commands/i386/pc/vbeinfo.c: Likewise.
11588 * commands/i386/pc/vbetest.c: Likewise.
11589 * commands/lspci.c: Likewise.
11590 * commands/date.c: Likewise.
11591 * commands/handler.c: Likewise.
11592 * commands/ls.c: Likewise.
11593 * commands/test.c: Likewise.
11594 * commands/cmp.c: Likewise.
11595 * commands/efi/loadbios.c: Likewise.
11596 * commands/efi/fixvideo.c: Likewise.
11597 * commands/halt.c: Likewise.
11598 * commands/help.c: Likewise.
11599 * commands/reboot.c: Likewise.
11600 * hello/hello.c: Likewise.
11601 * script/sh/main.c: Likewise.
11602 * loader/xnu.c: Likewise.
11603 * term/terminfo.c: Likewise.
11604 * term/i386/pc/serial.c: Likewise.
11605 * term/usb_keyboard.c: Likewise.
11607 2009-05-03 David S. Miller <davem@davemloft.net>
11609 * normal/menu.c: Include grub/parser.h
11611 2009-05-03 Pavel Roskin <proski@gnu.org>
11613 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
11615 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
11616 Suggested by Javier Martín <lordhabbit@gmail.com>
11618 * util/i386/pc/grub-mkrescue.in: Allow for the case when
11619 efiemu??.o doesn't exist.
11620 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
11623 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
11625 FreeBSD 64-bit support
11627 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
11628 and loader/i386/bsd_trampoline.S
11629 (bsd_mod_ASFLAGS): new variable
11630 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
11631 (FREEBSD_MODTYPE_KERNEL64): likewise
11632 (grub_bsd64_trampoline_start): likewise
11633 (grub_bsd64_trampoline_end): likewise
11634 (grub_bsd64_trampoline_selfjump): likewise
11635 (grub_bsd64_trampoline_gdt): likewise
11636 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
11637 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
11638 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
11639 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
11640 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
11642 * loader/i386/bsd_pagetable.c: new file
11643 * loader/i386/bsd_trampoline.S: likewise
11644 * loader/i386/bsd.c (ALIGN_QWORD): new macro
11645 (ALIGN_VAR): likewise
11646 (entry_hi): new variable
11647 (kern_end_mdofs): likewise
11648 (is_64bit): likewise
11649 (grub_freebsd_add_meta): use ALIGN_VAR
11650 (grub_e820_mmap): new declaration
11651 (grub_freebsd_add_mmap): new function
11652 (grub_freebsd_add_meta_module): support 64 bit kernels
11653 (grub_freebsd_list_modules): use ALIGN_VAR
11654 (gdt_descriptor): new declaration
11655 (grub_freebsd_boot): support 64 bit kernels
11656 (grub_bsd_elf64_hook): new function
11657 (grub_bsd_load_elf): support elf64
11659 2009-05-03 Bean <bean123ch@gmail.com>
11661 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
11662 after we get the result of if statement.
11664 2009-05-03 Bean <bean123ch@gmail.com>
11666 * Makefile.in (enable_efiemu): New variable.
11668 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
11670 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
11672 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
11673 path, add -mno-red-zone option.
11674 (efiemu64_s.o): Likewise.
11675 (efiemu64.o): Use macro $^ for source file.
11677 * configure.ac (--enable-efiemu): New option.
11679 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11683 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
11684 (pkglib_MODULES): add xnu.mod
11685 (xnu_mod_SOURCES): new variable
11686 (xnu_mod_CFLAGS): likewise
11687 (xnu_mod_LDFLAGS): likewise
11688 (xnu_mod_ASFLAGS): likewise
11689 * conf/i386-pc.rmk: likewise
11690 * conf/x86_64-efi.rmk: likewise
11691 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
11693 * include/grub/i386/macho.h: new file
11694 * include/grub/i386/xnu.h: likewise
11695 * include/grub/macho.h: likewise
11696 * include/grub/machoload.h: likewise
11697 * include/grub/x86_64/macho.h: likewise
11698 * include/grub/x86_64/xnu.h: likewise
11699 * include/grub/xnu.h: likewise
11700 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
11701 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
11702 * loader/i386/efi/xnu.c: new file
11703 * loader/i386/pc/xnu.c: likewise
11704 * loader/i386/xnu.c: likewise
11705 * loader/i386/xnu_helper.S: likewise
11706 * loader/macho.c: likewise
11707 * loader/xnu.c: likewise
11708 * loader/xnu_resume.c: likewise
11709 * util/grub-dumpdevtree: likewise
11710 * include/grub/i386/pit.h: include grub/err.h
11711 (grub_pit_wait): export
11712 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
11714 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11718 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
11719 _linux_efi, linux_efi.
11720 new files in grub-emu
11721 new targets efiemu32.o and efiemu64.o
11722 * loader/linux_normal_efiemu.c: likewise
11723 * loader/i386/efi/linux.c: added preliminary efiemu support
11724 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
11726 * include/grub/autoefi.h: new file
11727 * include/grub/i386/efiemu.h: likewise
11728 * include/grub/i386/pc/efiemu.h: likewise
11729 * include/grub/efi/api.h: add LL suffix when necessary
11730 new definitions relating to tables
11731 * include/grub/efiemu/efiemu.h: new file
11732 * include/grub/efiemu/runtime.h: likewise
11733 * efiemu/prepare.c: likewise
11734 * efiemu/loadcore_common.c: likewise
11735 * efiemu/loadcore64.c: likewise
11736 * efiemu/runtime/efiemu.sh: likewise
11737 * efiemu/runtime/efiemu.S: likewise
11738 * efiemu/runtime/efiemu.c: likewise
11739 * efiemu/runtime/config.h: likewise
11740 * efiemu/prepare32.c: likewise
11741 * efiemu/main.c: likewise
11742 * efiemu/modules/pnvram.c: likewise
11743 * efiemu/modules/i386: likewise
11744 * efiemu/modules/i386/pc: likewise
11745 * efiemu/modules/acpi.c: likewise
11746 * efiemu/i386/pc/cfgtables.c: likewise
11747 * efiemu/i386/loadcore64.c: likewise
11748 * efiemu/i386/loadcore32.c: likewise
11749 * efiemu/prepare64.c: likewise
11750 * efiemu/loadcore.c: likewise
11751 * efiemu/symbols.c: likewise
11752 * efiemu/mm.c: likewise
11753 * efiemu/loadcore32.c: likewise
11755 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11759 * commands/acpi.c: new file
11760 * commands/i386/pc/acpi.c: likewise
11761 * commands/efi/acpi.c: likewise
11762 * include/grub/acpi.h: likewise
11763 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
11764 (acpi_mod_SOURCES): new variable
11765 (acpi_mod_CFLAGS): likewise
11766 (acpi_mod_LDFLAGS): likewise
11767 * conf/i386-efi.rmk: likewise
11768 * conf/x86_64-efi.rmk: likewise
11770 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11772 Missing part from mmap patch
11774 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
11775 (grub_mmap_unregister)
11776 (grub_mmap_free_and_unregister): use grub_mmap_register
11778 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11782 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
11783 * loader/i386/linux.c (find_mmap_size): likewise
11784 (allocate_pages): likewise
11785 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
11786 (grub_fill_multiboot_mmap): likewise
11787 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
11788 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
11789 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
11790 (OPENBSD_MMAP_RESERVED): likewise
11791 * include/grub/i386/pc/memory.h: include grub/memory.h
11792 (grub_lower_mem): removed
11793 (grub_upper_mem): likewise
11794 (GRUB_MACHINE_MEMORY_ACPI): new definition
11795 (GRUB_MACHINE_MEMORY_NVS): likewise
11796 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
11797 (GRUB_MACHINE_MEMORY_HOLE): likewise
11798 (grub_machine_mmap_register): likewise
11799 (grub_machine_mmap_unregister): likewise
11800 (grub_machine_get_upper): likewise
11801 (grub_machine_get_lower): likewise
11802 (grub_machine_get_post64): likewise
11803 * include/grub/i386/efi/memory.h: new file
11804 * include/grub/x86_64/efi/memory.h: likewise
11805 * include/grub/efi/memory.h: likewise
11806 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
11807 (mmap_mod_SOURCES): new variable
11808 (mmap_mod_LDFLAGS): likewise
11809 (mmap_mod_ASFLAGS): likewise
11810 * conf/i386-coreboot.rmk: likewise
11811 * conf/i386-ieee1275.rmk: likewise
11812 * conf/i386-efi.rmk: likewise
11813 * conf/x86_64-efi.rmk: likewise
11814 * include/grub/types.h (UINT_TO_PTR): new macro
11815 (PTR_TO_UINT32): likewise
11816 (PTR_TO_UINT64): likewise
11817 * include/grub/memory.h: new file
11818 * mmap/i386/pc/mmap.c: likewise
11819 * mmap/i386/pc/mmap_helper.S: likewise
11820 * mmap/i386/uppermem.c: likewise
11821 * mmap/mmap.c: likewise
11822 * mmap/efi/mmap.c: likewise
11823 * kern/i386/coreboot/init.c (grub_machine_init): don't use
11825 * kern/i386/pc/init.c (grub_lower_mem): removed variable
11826 (grub_upper_mem): likewise
11827 (grub_machine_init): don't use grub_upper_mem,
11828 make grub_lower_mem local
11829 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
11830 grub_mmap_iterate and grub_mmap_get_upper
11831 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
11833 2009-05-02 Bean <bean123ch@gmail.com>
11835 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
11836 script/sh/parser.y.
11837 (pkglib_MODULES): Add normal.mod and sh.mod.
11838 (normal_SOURCES): New variable.
11839 (normal_mod_CFLAGS): Likewise.
11840 (normal_mod_LDFLAGS): Likewise.
11841 (sh_mod_SOURCES): Likewise.
11842 (sh_mod_CFLAGS): Likewise.
11843 (sh_mod_LDFLAGS): Likewise.
11845 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
11846 script/sh/lexer.c_DEPENDENCIES.
11847 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
11848 kern/rescue_reader.c and kern/rescue_parser.c.
11849 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
11850 (grub_emu_SOURCES): Change source files.
11851 (pkglib_MODULES): Remove normal.mod.
11852 (normal_SOURCES): Removed.
11853 (normal_mod_CFLAGS): Likewise.
11854 (normal_mod_LDFLAGS): Likewise.
11855 * conf/i386-coreboot.rmk: Likewise.
11856 * conf/i386-efi.rmk: Likewise.
11857 * conf/i386-ieee1276.rmk: Likewise.
11858 * conf/powerpc-ieee1275.rmk: Likewise.
11859 * conf/sparc64-ieee1275.rmk: Likewise.
11860 * conf/x86_64-efi.rmk: Likewise.
11862 * include/grub/command.h (grub_command_execute): New inline function.
11864 * include/grub/menu.h (grub_menu_entry): Removed commands field.
11866 * include/grub/normal.h: Remove <grub/setjmp.h>.
11867 (grub_fs_module_list): Moved to normal/autofs.c.
11868 (grub_exit_env): Removed.
11869 (grub_command_execute): Likewise.
11870 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
11872 (read_command_list): New function declaration.
11873 (read_fs_list): Likewise.
11875 * include/parser.h: Include <grub/reader.h>.
11876 (grub_parser_split_cmdline): Change type of getline parameter.
11877 (grub_parser): New structure.
11878 (grub_parser_class): New variable.
11879 (grub_parser_execute): New function declaration.
11880 (grub_register_rescue_parser): Likewise.
11881 (grub_parser_register): New inline function.
11882 (grub_parser_unregister): Likewise.
11883 (grub_parser_get_current): Likewise.
11884 (grub_parser_set_current): Likewise.
11886 * include/grub/reader.h: New file.
11887 * kern/reader.c: Likewise.
11888 * kern/rescue_parser.c: Likewise.
11889 * kern/rescue_reader.c: Likewise.
11890 * normal/autofs.c: Likewise.
11891 * normal/dyncmd.c: Likewise.
11893 * include/grub/rescue.h: Removed.
11894 * normal/command.h: Likewise.
11896 * include/grub/script.h: Moved to ...
11897 * include/grub/script_sh.h: ... Moved here.
11898 * normal/execute.c: Moved to ...
11899 * script/sh/execute.c: ... Moved here.
11900 * normal/function.c: Moved to ...
11901 * script/sh/function.c: ... Moved here.
11902 * normal/lexer.c: Moved to ...
11903 * script/sh/lexer.c: ... Moved here.
11904 * normal/parser.y: Moved to ...
11905 * script/sh/parser.y: ... Moved here.
11906 * normal/script.c: Moved to ...
11907 * script/sh/script.c: ... Moved here.
11909 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
11911 (grub_exit_env): Removed.
11912 (fs_module_list): Moved to normal/autofs.c.
11913 (grub_file_getline): Don't handle comment here.
11914 (free_menu): Skip removed field entry->commands.
11915 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
11917 (read_config_file): Removed nested parameter, change getline function.
11918 (grub_enter_normal_mode): Removed.
11919 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
11920 (read_command_list): Likewise.
11921 (autoload_fs_module): Moved to normal/autofs.c.
11922 (read_fs_list): Likewise.
11923 (reader_nested): New variable.
11924 (grub_normal_execute): Run parser.sh to switch to sh parser.
11925 (grub_cmd_rescue): Removed.
11926 (cmd_normal): Removed.
11927 (grub_cmd_normal): Unregister itself at the beginning. Don't register
11929 (grub_cmdline_run): New function.
11930 (grub_normal_reader_init): Likewise.
11931 (grub_normal_read_line): Likewise.
11932 (grub_env_write_pager): Likewise.
11933 (cmdline): New variable.
11934 (grub_normal_reader): Likewise.
11935 (GRUB_MOD_INIT): Register normal reader and set as current, register
11936 pager hook, register normal command with grub_register_command_prio,
11937 so that it won't show up in command.lst.
11938 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
11939 grub_fs_autoload_hook.
11941 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
11942 (grub_menu_execute_entry): Replace grub_script_execute with
11943 grub_parser_execute, change parameter to grub_command_execute.
11945 * normal/menu_text.c: Remove <grub/script.h>.
11947 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
11948 and <grub/parser.h>.
11949 (run): Change editor_getline to use new parser interface. Change
11950 parameter to grub_command_execute.
11952 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
11953 <grub/reader.h> and <grub/parser.h>.
11954 (grub_load_normal_mode): Execute normal command.
11955 (grub_main): Call grub_register_core_commands,
11956 grub_register_rescue_parser and grub_register_rescue_reader, use
11957 grub_reader_loop to enter input loop.
11959 * kern/parser.c (grub_parser_split_cmdline): Change type of
11961 (grub_parser_class): New variable.
11962 (grub_parser_execute): New function.
11964 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
11965 * loader/multiboot2.c: Likewise.
11966 * loader/sparc64/ieee1275/linux.c: Likewise.
11968 * util/grub-emu.c (read_command_list): New dummy function.
11970 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
11972 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
11973 count to 16 for CCISS and IDA.
11975 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
11977 * normal/menu_text.c (grub_wait_after_message): Print a newline
11978 after waiting for user input.
11980 * loader/i386/linux.c: Include `<grub/normal.h>'.
11981 (grub_cmd_linux): Improve the error message about `ask' mode, by
11982 waiting for user input so it's not missed (we can do this, since
11983 user requested interaction).
11985 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11987 Added missing lst to grub-mkrescue
11989 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
11990 and ${input_dir}/parttool.lst
11992 2009-04-30 David S. Miller <davem@davemloft.net>
11994 * util/hostdisk.c (device_is_wholedisk): New function.
11995 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
11996 zero only if device_is_wholedisk() returns true.
11998 * util/hostdisk.c (convert_system_partition_to_system_disk):
11999 Handle virtual disk devices named /dev/vdiskX as found on sparc
12002 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
12003 lettered partition specifier is found, convert to numbered.
12005 2009-04-29 David S. Miller <davem@davemloft.net>
12007 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
12008 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12010 * normal/command.c: Add missing newline at end of file.
12012 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
12014 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
12015 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
12016 grub_ofdisk_read): Likewise, and deal similarly with the fact that
12017 ihandles have a 32-bit type but need to be stored in a "void *".
12019 2009-04-28 Pavel Roskin <proski@gnu.org>
12021 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
12022 not disk. Adjust all dependencies.
12023 (grub_fs_uuid_close): Use grub_device_close(), not
12026 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
12027 parent's partition, don't copy it by reference, as it gets freed
12030 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
12032 Preboot hooks support
12034 * commands/boot.c (struct grub_preboot_t): new declaration
12035 (preboots_head): new variable
12036 (preboots_tail): likewise
12037 (grub_loader_register_preboot_hook): new function
12038 (grub_loader_unregister_preboot_hook): likewise
12039 (grub_loader_set): launch preboot hooks
12040 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
12041 (grub_loader_register_preboot_hook): new declaration
12042 (grub_loader_unregister_preboot_hook): likewise
12044 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
12048 * disk/scsi.c (grub_scsi_open): added missing cast when
12049 calling grub_dprintf
12051 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
12053 Bug and warning fixes
12055 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
12057 * commands/test.c (test_parse): fixed bug with file tests and corrected
12058 declaration of find_file
12060 2009-04-26 Pavel Roskin <proski@gnu.org>
12062 * Makefile.in: Don't install empty manual pages if help2man is
12063 missing. Use help2man option for output, not shell redirection.
12065 2009-04-26 David S. Miller <davem@davemloft.net>
12067 * util/grub-mkdevicemap.c (make_device_map): Add missing
12068 NESTED_FUNC_ATTR to process_device().
12070 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12074 * commands/test.c: rewritten to use bash-like test
12076 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12078 Parttool autoloading and improvements
12080 * Makefile.in (pkglib_DATA): add parttool.lst
12081 (parttool.lst): new target
12082 * genmk.rb: generate parttool-*
12083 (CLEANFILES): add #{parttool}
12084 (PARTTOOLFILES): new variable
12085 * genparttoollist.sh: new file
12086 * parttool/pcpart.c (grub_pcpart_boot): more feedback
12087 (grub_pcpart_type): likewise
12088 * commands/parttool.c (helpmsg): new variable
12089 (grub_cmd_parttool): output help if not enough arguments are supplied
12091 (GRUB_MOD_INIT(parttool)): use helpmsg
12093 2009-04-24 David S. Miller <davem@davemloft.net>
12095 Avoiding opening same device multiple times in device iterator.
12097 * kern/device.c: (grub_device_iterate): Define struct part_ent,
12098 and use it to build a list of partitions in iterate_disk() and
12099 iterate_partition().
12101 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
12104 * disk/ieee1275/nand.c (grub_nand_iterate): Return
12105 grub_devalias_iterate() result instead of unconditional 0.
12106 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
12107 Also, capture hook return value, either directly or via
12108 grub_children_iterate(), and propagate to caller.
12109 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
12110 grub_children_iterate): Return value is now 'int' instead of
12112 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
12113 like a proper iterator, stopping when hooks return non-zero.
12114 (grub_devalias_iterate): Likewise.
12116 2009-04-23 David S. Miller <davem@davemloft.net>
12118 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
12120 2009-04-22 David S. Miller <davem@davemloft.net>
12122 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
12123 is larger than address_cells, use that value for address_cells too.
12125 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
12126 IEEE1275_MAX_PATH_LEN): Define.
12127 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
12128 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
12129 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
12130 'devtype'. Explicitly NULL terminate devalias expansion.
12132 * util/sparc64/ieee1275/misc.c: New file.
12133 * util/sparc64/ieee1275/grub-setup.c: New file.
12134 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
12135 * util/sparc64/ieee1275/grub-mkimage.c: New file.
12136 * util/sparc64/ieee1275/grub-install.in: New file.
12137 * util/ieee1275/ofpath.c: New file.
12138 * util/ieee1275/devicemap.c: New file.
12139 * util/devicemap.c: New file.
12140 * util/deviceiter.c: New file.
12141 * kern/sparc64/ieee1275/init.c: New file.
12142 * include/grub/util/ofpath.h: New file.
12143 * include/grub/util/deviceiter.h: New file.
12144 * util/grub-mkdevicemap.c: Include deviceiter.h.
12145 Implement using grub_util_emit_devicemap_entry and
12146 grub_util_iterate_devices.
12147 * conf/i386-corebook.rmk: Build util/deviceiter.c and
12148 util/devicemap.c into grub-mkdevicemap
12149 * conf/i386-efi.rmk: Likewise.
12150 * conf/i386-ieee1275.rmk: Likewise.
12151 * conf/i386-pc.rmk: Likewise.
12152 * conf/powerpc-ieee1275.rmk: Likewise.
12153 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
12154 images and installation utilities. Build kernel as image
12155 instead of as elf binary. Use common rules as much as possible.
12157 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12159 Correct GPT definition
12161 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
12164 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
12166 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
12168 2009-04-19 David S. Miller <davem@davemloft.net>
12170 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
12171 (grub_rescue_cmd_linux): Rename to...
12172 (grub_cmd_linux): and fix prototype.
12173 (grub_rescue_cmd_initrd): Rename to...
12174 (grub_cmd_initrd): and fix prototype.
12175 (cmd_linux, cmd_initrd): New.
12176 (GRUB_MOD_INIT(linux)): Use grub_register_command().
12177 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
12179 2009-04-17 Pavel Roskin <proski@gnu.org>
12181 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
12183 (grub_ohci_transfer): Likewise.
12185 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
12187 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
12188 return without a value. Fix inconsistent indentation.
12190 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
12191 match struct grub_fs.
12193 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
12194 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
12195 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
12196 * commands/lspci.c (grub_lspci_iter): Likewise.
12198 2009-04-16 Bean <bean123ch@gmail.com>
12200 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
12203 2009-04-15 Pavel Roskin <proski@gnu.org>
12205 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
12206 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
12207 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
12210 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
12212 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
12213 that no multiple data or metadata areas are supported and `Unknown
12216 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12218 Move loader out of the kernel
12220 * kern/loader.c: moved to ...
12221 * commands/boot.c: ... moved here
12222 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
12223 * commands/boot.c (grub_cmd_boot): moved here. All users updated
12224 * include/grub/kernel.h (grub_machine_fini): export
12225 * include/grub/loader.h (grub_loader_is_loaded): update declaration
12226 (grub_loader_set): likewise
12227 (grub_loader_unset): likewise
12228 (grub_loader_boot): likewise
12229 * conf/common.rmk: new module boot.mod
12230 (pkglib_MODULES): add boot.mod
12231 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
12232 (grub_emu_SOURCES): likewise
12233 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
12234 (grub_emu_SOURCES): likewise
12235 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
12236 (grub_emu_SOURCES): likewise
12237 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
12238 (grub_emu_SOURCES): likewise
12239 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
12240 (grub_emu_SOURCES): likewise
12241 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
12242 (grub_emu_SOURCES): likewise
12243 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
12244 (grub_emu_SOURCES): likewise
12246 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12248 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
12250 * kern/misc.c (grub_itoa): Removed function
12251 (grub_ltoa): likewise
12252 (grub_vsprintf): use grub_lltoa
12254 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12258 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
12259 * conf/i386-coreboot.rmk: likewise
12260 * conf/i386-ieee1275.rmk: likewise
12261 * conf/powerpc-ieee1275.rmk: likewise
12263 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
12265 * INSTALL: Add that `./autogen.sh' needs to be run before
12268 2009-04-14 Bean <bean123ch@gmail.com>
12270 * Makefile.in (pkglib_DATA): Add handler.lst.
12271 (handler.lst): New rule.
12273 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
12274 * conf/i386-coreboot.rmk: Likewise.
12275 * conf/i386-ieee1275.rmk: Likewise.
12276 * conf/i386-efi.rmk: Likewise.
12277 * conf/x86_64-efi.rmk: Likewise.
12278 * conf/powerpc-ieee1275.rmk: Likewise.
12279 * conf/sparc64-ieee1275.rmk: Likewise.
12281 * genhandlerlist.sh: New file.
12283 * genmk.rb: Add rules to generate handler.lst.
12285 * include/grub/normal.h (grub_file_getline): New function definition.
12286 (read_handler_list): Likewise.
12287 (free_handler_list): Likewise.
12289 * include/grub/term.h (grub_term_register_input): Add name parameter
12290 for auto generation of handler.lst.
12291 (grub_term_register_output): Likewise.
12293 * normal/handler.c: New file.
12295 * normal/main.c (get_line): Renamed to grub_file_getline.
12296 (read_config_file): Use the newly renamed grub_file_getline.
12297 (read_command_list): Likewise.
12298 (read_fs_list): Likewise.
12299 (grub_normal_execute): Call read_handler_list to parse handler.lst.
12300 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
12302 * term/efi/console.c (grub_console_init): Add name parameter for auto
12303 generation of handler.lst.
12304 * term/gfxterm.c: Likewise.
12305 * term/i386/pc/at_keyboard.c: Likewise.
12306 * term/i386/pc/console.c: Likewise.
12307 * term/i386/pc/serial.c: Likewise.
12308 * term/i386/pc/vesafb.c: Likewise.
12309 * term/i386/pc/vga.c: Likewise.
12310 * term/i386/pc/vga_text.c: Likewise.
12311 * term/ieee1275/ofconsole.c: Likewise.
12312 * term/usb_keyboard.c: Likewise.
12314 2009-04-14 Bean <bean123ch@gmail.com>
12316 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
12317 properly with null character.
12319 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
12321 * configure: Remove.
12322 * config.h.in: Likewise.
12323 * stamp-h.in: Likewise.
12324 * DISTLIST: Likewise.
12325 * conf/common.mk: Likewise.
12326 * conf/i386-coreboot.mk: Likewise.
12327 * conf/i386-efi.mk: Likewise.
12328 * conf/i386-ieee1275.mk: Likewise.
12329 * conf/i386.mk: Likewise.
12330 * conf/i386-pc.mk: Likewise.
12331 * conf/powerpc-ieee1275.mk: Likewise.
12332 * conf/sparc64-ieee1275.mk: Likewise.
12333 * conf/x86_64-efi.mk: Likewise.
12335 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
12338 2009-04-14 John Stanley <jpsinthemix@verizon.net>
12339 David S. Miller <davem@davemloft.net>
12341 * util/hostdisk.c (make_device_name): Fix buffer length
12344 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
12346 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
12347 <sys/param.h> and <sys/sysctl.h>.
12348 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
12349 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
12350 opening the device and reset them afterwards.
12352 2009-04-13 Pavel Roskin <proski@gnu.org>
12354 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
12355 Reported by John Stanley <jpsinthemix@verizon.net>
12357 2009-04-13 Robert Millan <rmh@aybabtu.com>
12359 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
12360 that name for menuentries when appropriate.
12362 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12364 * util/grub.d/10_freebsd.in: Add a missing `fi'.
12366 2009-04-13 Robert Millan <rmh@aybabtu.com>
12368 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
12369 to Linux, simply abort telling the user it's no longer supported.
12371 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12373 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
12374 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
12375 `freebsd_loadenv' only when devices.hints exist.
12377 2009-04-13 Pavel Roskin <proski@gnu.org>
12379 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
12381 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12383 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
12385 (grub_drive): Likewise.
12387 2009-04-13 David S. Miller <davem@davemloft.net>
12389 * kern/sparc64/ieee1275/ieee1275.c: New file.
12390 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
12391 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
12392 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
12393 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
12394 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
12395 grub_ieee1275_alloc_physmem): Declare new exported functions.
12397 * include/grub/sparc64/ieee1275/loader.h: New file.
12398 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12399 * include/grub/sparc64/kernel.h: Likewise.
12400 * loader/sparc64/ieee1275/linux.c: Likewise.
12402 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
12403 (grub_fstest_SOURCES): Likewise.
12405 * util/hostdisk.c (make_device_name): Do not make any assumptions
12406 about the length of drive names.
12408 * kern/dl.c (grub_dl_load_file): Close file immediately when
12409 we are done using it.
12411 2009-04-12 David S. Miller <davem@davemloft.net>
12413 * kern/misc.c (grub_ltoa): Fix cast when handling negative
12414 values. Noticed by Pavel Roskin.
12416 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
12419 * genmk.rb: Add more flexible image type specification, also
12420 pass --strip-unneeded to objcopy.
12421 * conf/i386-pc.rmk: Use *_FORMAT.
12422 * conf/i386-pc.mk: Rebuilt.
12424 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
12425 (OFDISK_HASH_SZ): Define.
12426 (ofdisk_hash): New hash table.
12427 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
12428 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
12429 instead of device phandle which is not unique.
12431 * kern/sparc64/ieee1275/init.c: Delete, replace with...
12432 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
12433 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
12434 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
12435 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
12436 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
12437 GRUB_KERNEL_MACHINE_DATA_END): Define.
12438 (grub_kernel_image_size, grub_total_module_size): Declare.
12440 2009-04-12 Pavel Roskin <proski@gnu.org>
12442 * configure.ac: Change the logic when we check for target tools.
12443 Do it when the target is specified and it's different from the
12444 specified value of the host.
12446 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
12448 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
12449 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
12450 GNU/kFreeBSD. Check if a device is a character device. Use
12451 DIOCGMEDIASIZE to get the size.
12452 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
12453 support for GNU/kFreeBSD.
12454 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
12455 is a character device instead of a block device. Add support for
12456 FreeBSD device names.
12458 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
12459 is a character device instead of a block device.
12461 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
12462 is a character device instead of a block device.
12464 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
12466 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
12467 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
12468 FreeBSD. Check if a device is a character device. Use
12469 DIOCGMEDIASIZE to get the size.
12470 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
12471 support for FreeBSD.
12472 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
12473 is a character device instead of a block device. Add support for
12474 FreeBSD device names.
12476 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
12477 a character device instead of a block device.
12478 (grub_util_check_char_device): New function.
12480 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
12481 a character device instead of a block device.
12483 * include/grub/util/getroot.h (grub_util_check_char_device): New
12486 2009-04-11 David S. Miller <davem@davemloft.net>
12488 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
12490 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
12491 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
12492 function, if present.
12493 (__bswapdi2): Likewise.
12495 * include/grub/sparc64/ieee1275/boot.h: New file.
12496 * boot/sparc64/ieee1275/boot.S: Likewise.
12497 * boot/sparc64/ieee1275/diskboot.S: Likewise.
12499 * kern/misc.c (grub_ltoa): New function.
12500 (grub_vsprintf): Use it to format 'long' integers.
12502 2009-04-10 David S. Miller <davem@davemloft.net>
12504 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
12505 slots are of type grub_ieee1275_cell_t.
12506 (grub_nand_read): Likewise.
12507 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
12508 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
12509 macros are used to compare values in arg/ret block of the call.
12510 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
12511 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
12512 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
12513 grub_ieee1275_instance_to_path, grub_ieee1275_write,
12514 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
12515 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
12516 grub_ieee1275_close, grub_ieee1275_set_property,
12517 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
12518 grub_ieee1275_cell_t.
12519 * kern/ieee1275/openfw.c (grub_map): Likewise.
12520 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
12521 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
12523 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
12524 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
12525 (grub_devalias_iterate): Likewise.
12527 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12531 * fs/ufs.c (INODE_NBLOCKS): new definition
12532 (struct grub_ufs_dirent): added fields for non-BSD dirents
12533 (grub_ufs_get_file_block): fixed double indirect handling
12534 (grub_ufs_lookup_symlink): use more robust way to determine whether
12536 (grub_ufs_find_file): support for non-BSD dirents
12537 (grub_ufs_dir): support for non-BSD dirents
12539 2009-04-10 Bean <bean123ch@gnail.com>
12541 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
12542 attribute, otherwise the size would be wrong for i386 platform.
12544 * include/grub/pci.h (grub_pci_read_word): New inline function.
12545 (grub_pci_read_byte): Likewise.
12546 (grub_pci_write): Likewise.
12547 (grub_pci_write_word): Likewise.
12548 (grub_pci_write_byte): Likewise.
12550 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
12552 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
12553 (find_framebuf): Scan pci to locate the frame buffer address.
12555 * commands/efi/fixvideo.c: New file.
12557 * commands/efi/loadbios.c: Likewise.
12559 * commands/memrw.c: Likewise.
12561 * util/grub-dumpbios.in: Likewise.
12563 * conf/common.rmk (grub-dumpbios): New utility.
12564 (pkglib_MODULES): New module memrw.mod.
12565 (memrw_mod_SOURCE): New macro.
12566 (memrw_mod_CFLAGS): Likewise.
12567 (memrw_mod_LDFLAGS): Likewise.
12569 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
12571 (loadbios_mod_SOURCE): New macro.
12572 (loadbios_mod_CFLAGS): Likewise.
12573 (loadbios_mod_LDFLAGS): Likewise.
12574 (fixvideo_mod_SOURCE): Likewise.
12575 (fixvideo_mod_CFLAGS): Likewise.
12576 (fixvideo_mod_LDFLAGS): Likewise.
12578 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
12580 (loadbios_mod_SOURCE): New macro.
12581 (loadbios_mod_CFLAGS): Likewise.
12582 (loadbios_mod_LDFLAGS): Likewise.
12583 (fixvideo_mod_SOURCE): Likewise.
12584 (fixvideo_mod_CFLAGS): Likewise.
12585 (fixvideo_mod_LDFLAGS): Likewise.
12587 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
12589 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
12591 2009-04-07 David S. Miller <davem@davemloft.net>
12593 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
12594 support for R_SPARC_OLO10 relocations. Fix compile warning for
12595 R_SPARC_WDISP30 case.
12596 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
12598 2009-04-06 Pavel Roskin <proski@gnu.org>
12600 * include/grub/misc.h (ARRAY_SIZE): New macro.
12601 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
12603 * loader/i386/linux.c (allocate_pages): Use free_pages().
12604 (grub_linux_unload): Don't use free_pages().
12605 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
12606 wrong index. Treat all other modes as text modes.
12607 (grub_cmd_linux): Initialize vid_mode unconditionally to
12608 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
12610 * commands/help.c (print_command_help): Use cmd->prio, not
12611 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
12613 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12617 * parttool/pcpart.c: new file
12618 * commands/parttool.c: likewise
12619 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
12620 (parttool_mod_SOURCES): new variable
12621 (parttool_mod_CFLAGS): likewise
12622 (parttool_mod_LDFLAGS): likewise
12623 (pcpart_mod_SOURCES): likewise
12624 (pcpart_mod_CFLAGS): likewise
12625 (pcpart_mod_LDFLAGS): likewise
12626 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
12627 and parttool/pcpart.c
12628 * conf/i386-efi.rmk: likewise
12629 * conf/i386-ieee1275.rmk: likewise
12630 * conf/i386-pc.rmk: likewise
12631 * conf/powerpc-ieee1275.rmk: likewise
12632 * conf/sparc64-ieee1275.rmk: likewise
12633 * conf/x86_64-ieee1275.rmk: likewise
12635 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12637 Support for mtime and further expandability of dir command
12639 * include/grub/lib/datetime.h: moved to ...
12640 * include/grub/datetime.h: ... moved here and added
12641 declaration of grub_unixtime2datetime. All users updated
12642 * include/grub/fs.h: new syntax for dir and mtime functions in
12644 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
12645 and GRUB_FSHELP_FLAGS_MASK
12646 * commands/ls.c (grub_ls_list_files): Write mtime in long format
12647 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
12648 (grub_ext2_mtime): new function
12649 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
12650 (grub_hfsplus_mtime): new function
12651 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
12652 (GRUB_UFS_ATTR_FILE): likewise
12653 (GRUB_UFS_ATTR_LNK): likewise
12654 (struct grub_ufs_sblock): new fields mtime
12655 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
12657 (grub_ufs_dir): mtime support
12658 (grub_ufs_mtime): new function
12659 * fs/affs.c (grub_affs_dir): use new dir syntax
12660 * fs/afs.c (grub_afs_dir): likewise
12661 * fs/cpio.c (grub_cpio_dir): likewise
12662 * fs/fat.c (grub_fat_find_dir): likewise
12663 * fs/hfs.c (grub_hfs_dir): likewise
12664 * fs/iso9660.c (grub_iso9660_dir): likewise
12665 * fs/jfs.c (grub_jfs_dir): likewise
12666 * fs/minix.c (grub_minix_dir): likewise
12667 * fs/ntfs.c (grub_ntfs_dir): likewise
12668 * fs/reiserfs.c (grub_reiserfs_dir): likewise
12669 * fs/sfs.c (grub_sfs_dir): likewise
12670 * fs/xfs.c (grub_xfs_dir): likewise
12671 * util/hostfs.c (grub_hostfs_dir): likewise
12672 * lib/datetime.c: moved to ...
12673 * normal/datetime.c: ... moved here
12674 (grub_unixtime2datetime): new function
12675 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
12676 * normal/completion.c (iterate_dir): use new dir syntax
12677 * normal/misc.c (grub_normal_print_device_info): tell the
12678 last modification time of a volume
12679 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
12680 * conf/common.rmk: added lib/datetime.c to ls.mod
12681 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
12682 (normal_mod_SOURCES): likewise
12683 (datetime_mod_SOURCES): Removed lib/datetime.c
12684 * conf/i386-efi.rmk: likewise
12685 * conf/i386-ieee1275.rmk: likewise
12686 * conf/i386-pc.rmk: likewise
12687 * conf/powerpc-ieee1275.rmk: likewise
12688 * conf/sparc64-ieee1275.rmk: likewise
12689 * conf/x86_64-efi.rmk: likewise
12691 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12693 Trim trailing spaces in FAT label and support mtools-like labels
12695 * fs/fat.c (grub_fat_iterate_dir): New function based
12696 on grub_fat_find_dir
12697 (grub_fat_find_dir): use grub_fat_iterate_dir
12698 (grub_fat_label): likewise
12700 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
12702 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
12704 remove extraneous kernel_elf_HEADERS
12706 2009-04-04 Bean <bean123ch@gnail.com>
12708 * include/grub/util/misc.h: Add dummy function fsync for mingw.
12710 * util/misc.c: Likewise.
12712 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
12714 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
12715 instead of grub_printf.
12717 2009-04-03 Robert Millan <rmh@aybabtu.com>
12719 * loader/i386/linux.c (grub_linux_setup_video): Fill
12720 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
12721 values from `mode info' structure instead of hardcoded
12724 2009-04-01 Pavel Roskin <proski@gnu.org>
12726 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
12728 * genmk.rb: Likewise.
12729 * configure.ac: Likewise.
12731 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
12733 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
12734 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
12736 2009-04-01 David S. Miller <davem@davemloft.net>
12738 * normal/sparc64/setjmp.S: Fix setjmp implementation.
12739 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
12740 (grub_setjmp): Mark with 'returns_twice' attribute.
12741 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
12742 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
12743 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
12745 2009-04-01 Robert Millan <rmh@aybabtu.com>
12747 Reapply fix from 2008-07-28 which was accidentally reverted; also
12748 perform the same fix to a similar check in same function.
12750 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
12751 with the same number are found, just use issue a warning with
12752 grub_dprintf(), as this error has been reported to be non-fatal.
12754 2009-03-31 Pavel Roskin <proski@gnu.org>
12756 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
12757 for cross-compilation.
12759 2009-03-30 Robert Millan <rmh@aybabtu.com>
12761 Fix i386-ieee1275 build.
12763 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
12764 Remove declaration.
12766 2009-03-30 Pavel Roskin <proski@gnu.org>
12768 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
12769 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
12770 zero-terminated, rely only on the strlen value. Fix comparison
12771 of strings differing in length.
12773 2009-03-30 Robert Millan <rmh@aybabtu.com>
12775 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
12776 checking for abi version. Improve error messages on BIOS to notify
12777 user about `linux16' command.
12779 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12783 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
12784 in case of collision
12785 * disk/scsi.c (grub_scsi_open): free scsi in case of error
12787 2009-03-29 Robert Millan <rmh@aybabtu.com>
12789 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
12790 set `vid_mode' accordingly.
12791 (grub_linux_boot): Process `vid_mode' and set video mode.
12793 2009-03-29 Robert Millan <rmh@aybabtu.com>
12795 * util/grub.d/10_linux.in (linux_entry): New function.
12796 Factorize generation of Linux boot entries.
12798 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
12800 Make the format of Environment Block plain text. The boot loader
12801 part is not tested well yet.
12803 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
12805 (envblk): Likewise.
12806 (usage): Remove "info" and "clear". Add "unset". Update the
12807 description of "set", as this does not delete variables any
12809 (create_envblk_file): Complete rewrite.
12810 (open_envblk_file): Likewise.
12811 (cmd_info): Removed.
12812 (cmd_list): Likewise.
12813 (cmd_set): Likewise.
12814 (cmd_clear): Likewise.
12815 (list_variables): New function.
12816 (write_envblk): Likewise.
12817 (set_variables): Likewise.
12818 (unset_variables): Likewise.
12819 (main): Complete rewrite.
12821 * commands/loadenv.c (buffer): Removed.
12822 (envblk): Likewise.
12823 (open_envblk_file): New function.
12824 (read_envblk_file): Complete rewrite.
12825 (grub_cmd_load_env): Likewise.
12826 (grub_cmd_list_env): Likewise.
12827 (struct blocklist): New struct.
12828 (free_blocklists): New function.
12829 (check_blocklists): Likewise.
12830 (write_blocklists): Likewise.
12831 (grub_cmd_save_env): Complete rewrite.
12833 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
12834 a plain text signature.
12835 (GRUB_ENVBLK_MAXLEN): Removed.
12836 (struct grub_envblk): Complete rewrite.
12837 (grub_envblk_find): Removed.
12838 (grub_envblk_insert): Likewise.
12839 (grub_envblk_open): New prototype.
12840 (grub_envblk_set): Likewise.
12841 (grub_envblk_delete): Put const to VALUE.
12842 (grub_envblk_iterate): Put const to NAME and VALUE.
12843 (grub_envblk_close): New prototype.
12844 (grub_envblk_buffer): New inline function.
12845 (grub_envblk_size): Likewise.
12847 * lib/envblk.c: Include grub/mm.h.
12848 (grub_env_find): Removed.
12849 (grub_envblk_open): New function.
12850 (grub_envblk_close): Likewise.
12851 (escaped_value_len): Likewise.
12852 (find_next_line): Likewise.
12853 (grub_envblk_insert): Removed.
12854 (grub_envblk_set): New function.
12855 (grub_envblk_delete): Complete rewrite.
12856 (grub_envblk_iterate): Likewise.
12858 2009-03-28 Robert Millan <rmh@aybabtu.com>
12860 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
12861 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
12862 variables. Use 16-bit loader.
12863 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
12865 * kern/i386/loader.S (grub_linux_boot): Rename to ...
12866 (grub_linux16_boot): ... this. Update all users.
12867 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
12868 (grub_linux_boot): ... this. Update all users.
12870 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
12871 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
12872 commands to `linux16' and `initrd16'.
12873 (GRUB_MOD_FINI(linux)): Rename to ...
12874 (GRUB_MOD_FINI(linux16)): ... this.
12876 2009-03-24 Pavel Roskin <proski@gnu.org>
12878 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
12879 not just for compilation.
12881 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
12883 Move multiboot helper out of kernel
12885 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
12886 `loader/i386/multiboot_helper.S'.
12887 * conf/i386-coreboot.rmk: Likewise
12888 * conf/i386-ieee1275.rmk: Likewise
12890 * kern/i386/loader.S: Move multiboot helpers from here...
12891 * loader/i386/multiboot_helper.S: ...moved here
12892 * include/grub/i386/loader.h: Move declarations of multiboot
12893 helpers from here...
12894 * include/grub/i386/multiboot.h: ...moved here
12895 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
12897 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12899 * kern/env.c (grub_env_context_open): Added an argument to specify
12900 whether a new context inherits exported variables from current
12901 one. This is useful when making a sandbox to interpret a config
12903 All callers updated.
12905 * include/grub/env.h (grub_env_context_open): Updated the prototype.
12907 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12909 * kern/env.c (grub_env_context_close): Fix memory leaks.
12911 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12913 * normal/main.c (grub_normal_execute): Added an argument
12914 BATCH to specify if an interactive interface should be provided
12915 after reading a config file.
12916 All callers updated.
12917 (read_command_list): Prevent being executed twice.
12918 (read_fs_list): Likewise.
12920 * include/grub/normal.h (grub_normal_execute): Updated the
12923 2009-03-22 Pavel Roskin <proski@gno.org>
12925 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
12927 * kern/i386/pc/startup.S: Likewise.
12928 * kern/i386/efi/startup.S: Likewise.
12929 * kern/i386/ieee1275/startup.S: Likewise.
12930 * kern/i386/coreboot/startup.S: Likewise.
12931 * kern/x86_64/efi/startup.S: Likewise.
12933 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
12934 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
12935 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
12937 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
12939 Bugfixes in multiboot for bugs uncovered by solaris kernel.
12941 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
12943 Use vaddr of correct segment for entry_point.
12945 2009-03-21 Bean <bean123ch@gmail.com>
12947 * commands/blocklist.c: Add include file <grub/command.h>, remove
12948 <grub/normal.h> and <grub/arg.h>.
12949 (grub_cmd_blocklist): Use the new command interface.
12950 (GRUB_MOD_INIT): Likewise.
12951 (GRUB_MOD_FINI): Likewise.
12952 * commands/boot.c: Likewise.
12953 * commands/cat.c: Likewise.
12954 * commands/cmp.c: Likewise.
12955 * commands/configfile.c: Likewise.
12956 * commands/crc.c: Likewise.
12957 * commands/echo.c: Likewise.
12958 * commands/halt.c: Likewise.
12959 * commands/handler.c: Likewise.
12960 * commands/hdparm.c: Likewise.
12961 * commands/help.c: Likewise.
12962 * commands/hexdump.c: Likewise.
12963 * commands/loadenv.c: Likewise.
12964 * commands/ls.c: Likewise.
12965 * commands/lsmmap.c: Likewise.
12966 * commands/lspci.c: Likewise.
12967 * commands/loadenv.c: Likewise.
12968 * commands/read.c: Likewise.
12969 * commands/reboot.c: Likewise.
12970 * commands/search.c: Likewise.
12971 * commands/sleep.c: Likewise.
12972 * commands/test.c: Likewise.
12973 * commands/usbtest.c: Likewise.
12974 * commands/videotest.c: Likewise.
12975 * commands/i386/cpuid.c: Likewise.
12976 * commands/i386/pc/halt.c: Likewise.
12977 * commands/i386/pc/play.c: Likewise.
12978 * commands/i386/pc/pxecmd.c: Likewise.
12979 * commands/i386/pc/vbeinfo.c: Likewise.
12980 * commands/i386/pc/vbetest.c: Likewise.
12981 * commands/ieee1275/suspend.c: Likewise.
12982 * disk/loopback.c: Likewise.
12983 * font/font_cmd.c: Likewise.
12984 * hello/hello.c: Likewise.
12985 * loader/efi/appleloader.c: Likewise.
12986 * loader/efi/chainloader.c: Likewise.
12987 * loader/i386/bsd.c: Likewise.
12988 * loader/i386/efi/linux.c: Likewise.
12989 * loader/i386/ieee1275/linux.c: Likewise.
12990 * loader/i386/linux.c: Likewise.
12991 * loader/i386/pc/chainloader.c: Likewise.
12992 * loader/i386/pc/linux.c: Likewise.
12993 * loader/powerpc/ieee1275/linux.c: Likewise.
12994 * loader/multiboot_loader.c: Likewise.
12995 * term/gfxterm.c: Likewise.
12996 * term/i386/pc/serial.c: Likewise.
12997 * term/terminfo.c: Likewise.
12999 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
13000 * term/i386/pc/vga.c: Likewise.
13001 * video/readers/jpeg.c: Likewise.
13002 * video/readers/png.c: Likewise.
13003 * video/readers/tga.c: Likewise.
13005 * util/grub-fstest (cmd_loopback): Removed.
13006 (cmd_blocklist): Likewise.
13007 (cmd_ls): Likewise.
13008 (grub_register_command): Likewise.
13009 (grub_unregister_command): Likewise.
13010 (execute_command): Use grub_command_find to locate command and execute
13013 * include/grub/efi/chainloader.h: Removed.
13014 * loader/efi/chainloader_normal.c: Likewise.
13015 * loader/i386/bsd_normal.c: Likewise.
13016 * loader/i386/pc/chainloader_normal.c: Likewise.
13017 * loader/i386/pc/multiboot_normal.c: Likewise.
13018 * loader/linux_normal.c: Likewise.
13019 * loader/multiboot_loader_normal.c: Likewise.
13020 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
13022 * gencmdlist.sh: Scan new registration command grub_register_extcmd
13023 and grub_register_command_p1.
13025 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
13026 kern/command.c, lib/arg.c and commands/extcmd.c.
13027 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
13028 (minicmd_mod_SOURCES): New variable.
13029 (minicmd_mod_CFLAGS): Likewise.
13030 (minicmd_mod_LDFLAGS): Likewise.
13031 (extcmd_mod_SOURCES): Likewise.
13032 (extcmd_mod_CFLAGS): Likewise.
13033 (extcmd_mod_LDFLAGS): Likewise.
13034 (boot_mod_SOURCES): Removed.
13035 (boot_mod_CFLAGS): Likewise.
13036 (boot_mod_LDFLAGS): Likewise.
13038 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
13040 (kernel_img_HEADERS): Add command.h.
13041 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
13042 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
13044 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
13045 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
13046 remove the corresponding normal mode command.
13047 (normal_mod_SOURCES): Remove normal/arg.c.
13048 * conf/i386-coreboot.rmk: Likewise.
13049 * conf/i386-efi.rmk: Likewise.
13050 * conf/i386-ieee1275.rmk: Likewise.
13051 * conf/powerpc-ieee1275.rmk: Likewise.
13052 * conf/x86_64-efi.rmk: Likewise.
13054 * include/grub/arg.h: Move from here ...
13055 * include/grub/lib/arg.h: ... to here.
13057 * normal/arg.c: Move from here ...
13058 * lib/arg.c: ... to here.
13060 * commands/extcmd.c: New file.
13061 * commands/minicmd.c: Likewise.
13062 * include/grub/command.h: Likewise.
13063 * include/grub/extcmd.h: Likewise.
13064 * kern/command.c: Likewise.
13065 * kern/corecmd.c: Likewise.
13067 * kern/list.c (grub_list_iterate): Return int instead of void.
13068 (grub_list_insert): New function.
13069 (grub_prio_list_insert): Likewise.
13071 * kern/rescue.c (grub_rescue_command): Removed.
13072 (grub_rescue_command_list): Likewise.
13073 (grub_rescue_register_command): Likewise.
13074 (grub_rescue_unregister_command): Likewise.
13075 (grub_rescue_cmd_boot): Move to minicmd.c
13076 (grub_rescue_cmd_help): Likewise.
13077 (grub_rescue_cmd_info): Likewise.
13078 (grub_rescue_cmd_boot): Likewise.
13079 (grub_rescue_cmd_testload): Likewise.
13080 (grub_rescue_cmd_dump): Likewise.
13081 (grub_rescue_cmd_rmmod): Likewise.
13082 (grub_rescue_cmd_lsmod): Likewise.
13083 (grub_rescue_cmd_exit): Likewise.
13084 (grub_rescue_print_devices): Moved to corecmd.c.
13085 (grub_rescue_print_files): Likewise.
13086 (grub_rescue_cmd_ls): Likewise.
13087 (grub_rescue_cmd_insmod): Likewise.
13088 (grub_rescue_cmd_set): Likewise.
13089 (grub_rescue_cmd_unset): Likewise.
13090 (attempt_normal_mode): Use grub_command_find to get normal module.
13091 (grub_enter_rescue_mode): Use grub_register_core_commands to register
13092 commands, remove grub_rescue_register_command calls.
13094 * normal/command.c (grub_register_command): Removed.
13095 (grub_unregister_command): Likewise.
13096 (grub_command_find): Likewise.
13097 (grub_iterate_commands): Likewise.
13098 (rescue_command): Likewise.
13099 (export_command): Moved to corecmd.c.
13100 (set_command): Removed.
13101 (unset_command): Likewise.
13102 (insmod_command): Likewise.
13103 (rmmod_command): Likewise.
13104 (lsmod_command): Likewise.
13105 (grub_command_init): Likewise.
13107 * normal/completion.c (iterate_command): Use cmd->prio to check for
13109 (complete_arguments): Use grub_extcmd_t structure to find options.
13110 (grub_normal_do_completion): Change function grub_iterate_commands to
13111 grub_command_iterate.
13113 * normal/execute.c (grub_script_execute_cmd): No need to parse
13116 * normal/main.c (grub_dyncmd_dispatcher): New function.
13117 (read_command_list): Register unload commands as dyncmd.
13118 (grub_cmd_normal): Use new command interface, register rescue,
13119 unregister normal at entry, register normal, unregister rescue at exit.
13121 * include/grub/list.h (grub_list_test_t): New type.
13122 (grub_list_iterate): Return int instead of void.
13123 (grub_list_insert): New function.
13124 (GRUB_AS_NAMED_LIST_P): New macro.
13125 (GRUB_AS_PRIO_LIST): Likewise.
13126 (GRUB_AS_PRIO_LIST_P): Likewise.
13127 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
13128 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
13129 (grub_prio_list): New structure.
13130 (grub_prio_list_insert): New function.
13131 (grub_prio_list_remove): New inline function.
13133 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
13134 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
13135 (GRUB_COMMAND_FLAG_MENU): Likewise.
13136 (GRUB_COMMAND_FLAG_BOTH): Likewise.
13137 (GRUB_COMMAND_FLAG_TITLE): Likewise.
13138 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
13139 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
13140 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
13141 (grub_command): Likewise.
13142 (grub_register_command): Likewise.
13143 (grub_command_find): Likewise.
13144 (grub_iterate_commands): Likewise.
13145 (grub_command_init): Likewise.
13146 (grub_arg_parse): Likewise.
13147 (grub_arg_show_help): Likewise.
13149 * include/grub/rescue.h (grub_rescue_register_command): Removed.
13150 (grub_rescue_unregister_command): Likewise.
13152 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
13153 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
13154 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
13156 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
13157 grub_rescue_cmd_initrd.
13158 * include/grub/i386/loader.h: Likewise.
13159 * include/grub/x86_64/loader.h: Likewise.
13161 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
13163 2009-03-21 Bean <bean123ch@gmail.com>
13165 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
13166 instead of stat in mingw environment.
13168 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
13170 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
13172 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
13175 2009-03-21 Bean <bean123ch@gmail.com>
13177 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
13178 out of range error.
13180 2009-03-18 Michel Dänzer <michel@daenzer.net>
13182 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
13183 checking inode flags for EXT4_EXTENTS_FLAG.
13185 2009-03-18 Robert Millan <rmh@aybabtu.com>
13187 * loader/i386/linux.c: Include `<grub/video.h>' and
13188 `<grub/i386/pc/vbe.h>'..
13189 (grub_linux_setup_video): New function. Loosely based on the EFI one.
13190 (grub_linux32_boot): Attempt to configure video settings with
13191 grub_linux_setup_video().
13192 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
13193 to avoid grub_console_fini() which would step out of graphical mode
13196 2009-03-14 Robert Millan <rmh@aybabtu.com>
13198 Fix build on powerpc.
13199 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
13201 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
13203 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
13204 background image command.
13206 2009-03-12 Colin D Bennett <colin@gibibit.com>
13208 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
13209 (grub_gfxterm_putchar): Extract pairs of identical calls to
13210 draw_cursor out of conditional blocks.
13212 2009-03-11 Pavel Roskin <proski@gnu.org>
13214 * fs/hfs.c (grub_hfs_strncasecmp): New function.
13215 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
13217 2009-03-11 Robert Millan <rmh@aybabtu.com>
13219 * loader/i386/multiboot_elfxx.c
13220 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
13222 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
13224 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
13227 2009-03-11 Robert Millan <rmh@aybabtu.com>
13229 * loader/i386/multiboot.c (code_size): New variable.
13230 (grub_multiboot): Define offsets by adding to `code_size' rather
13231 than subtracting from `grub_multiboot_payload_size'. Provide
13232 4-byte alignment to MBI and others by increasing
13233 `boot_loader_name_length' appropriately.
13235 * loader/i386/multiboot_elfxx.c
13236 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
13238 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
13240 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
13243 2009-03-08 Robert Millan <rmh@aybabtu.com>
13245 Make loader/i386/linux.c usable on i386-pc again.
13247 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
13249 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
13252 2009-03-07 Bean <bean123ch@gmail.com>
13254 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
13257 2009-03-06 Robert Millan <rmh@aybabtu.com>
13259 Fix display issue on terminals with screen size other than 80x25
13260 (e.g. gfxterm with resolution higher than 640x480).
13262 * normal/main.c (grub_normal_init_page): Display title text in a
13263 position relative to the center of the terminal instead of relying
13264 on a hardcoded offset.
13266 2009-03-04 Robert Millan <rmh@aybabtu.com>
13268 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
13271 * Makefile.in (host_kernel): New variable.
13272 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
13273 scripts instead of just the windows one.
13274 * configure.ac: Initialize and AC_SUBST `host_kernel'.
13276 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13278 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
13280 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13281 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13282 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13283 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13284 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13285 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13287 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13289 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
13290 or if there's no space for the disk label and print the partition number on a
13293 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13295 * util/misc.c: Include <time.h>.
13296 (grub_millisleep): New function.
13298 2009-03-04 Bean <bean123ch@gmail.com>
13300 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
13301 another option -mno-red-zone.
13303 * commands/handler.c: Change module description.
13305 * kern/handler.c: Add missing space at the end of description line.
13307 * kern/list.c: Likewise.
13309 2009-03-03 Robert Millan <rmh@aybabtu.com>
13311 Move more components to the relocation area, and fix mbi pointer
13312 handling to use the destination rather than the origin (thanks to
13313 Vladimir Serbinenko for spotting).
13315 * loader/i386/multiboot.c (mbi_dest): New variable.
13316 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
13317 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
13320 2009-03-01 Bean <bean123ch@gmail.com>
13322 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
13323 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
13324 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
13325 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
13327 * loader/i386/efi/linux.c (acpi_guid): New variable.
13328 (acpi_guid): Likewise.
13329 (EBDA_SEG_ADDR): New constant.
13330 (LOW_MEM_ADDR): Likewise.
13331 (FAKE_EBDA_SEG): Likewise.
13332 (fake_bios_data): New function.
13333 (grub_linux_boot): Call fake_bios_data.
13335 2009-03-01 Bean <bean123ch@gmail.com>
13337 * commands/terminal.c: Removed.
13339 * commands/handler.c: New file.
13341 * include/grub/list.h: Likewise.
13343 * include/grub/handler.h: Likewise.
13345 * kern/list.c: Likewise.
13347 * kern/handler.c: Likewise.
13349 * kern/term.h: Include header file <grub/handler.h>.
13350 (grub_term_input): Move next field to the beginning.
13351 (grub_term_output): Likewise.
13352 (grub_term_input_class): New variable.
13353 (grub_term_output_class): Likewise.
13354 (grub_term_register_input): Changed to inline function.
13355 (grub_term_register_output): Likewise.
13356 (grub_term_unregister_input): Likewise.
13357 (grub_term_unregister_output): Likewise.
13358 (grub_term_set_current_input): Likewise.
13359 (grub_term_set_current_output): Likewise.
13360 (grub_term_get_current_input): Likewise.
13361 (grub_term_get_current_output): Likewise.
13362 (grub_term_iterate_input): Removed.
13363 (grub_term_iterate_output): Likewise.
13365 * kern/term.c (grub_term_list_input): Removed.
13366 (grub_term_list_output): Likewise.
13367 (grub_term_input_class): New variable.
13368 (grub_term_output_class): Likewise.
13369 (grub_cur_term_input): Change variable as macro.
13370 (grub_cur_term_output): Likewise.
13371 (grub_term_register_input): Removed.
13372 (grub_term_register_output): Likewise.
13373 (grub_term_unregister_input): Likewise.
13374 (grub_term_unregister_output): Likewise.
13375 (grub_term_set_current_input): Likewise.
13376 (grub_term_set_current_output): Likewise.
13377 (grub_term_iterate_input): Likewise.
13378 (grub_term_iterate_output): Likewise.
13379 (grub_term_get_current_input): Likewise.
13380 (grub_term_get_current_output): Likewise.
13382 * util/grub-editenv.c: Include header file <grub/handler.h>.
13383 (grub_term_get_current_input): Removed.
13384 (grub_term_get_current_output): Likewise.
13385 (grub_term_input_class): New variable.
13386 (grub_term_output_class): Likewise.
13388 * util/grub-fstest.c (grub_term_get_current_input): Removed.
13389 (grub_term_get_current_output): Likewise.
13390 (grub_term_input_class): New variable.
13391 (grub_term_output_class): Likewise.
13393 * util/grub-probe.c (grub_term_get_current_input): Removed.
13394 (grub_term_get_current_output): Likewise.
13395 (grub_term_input_class): New variable.
13396 (grub_term_output_class): Likewise.
13398 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
13399 (grub_term_get_current_output): Likewise.
13400 (grub_term_input_class): New variable.
13401 (grub_term_output_class): Likewise.
13403 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
13404 (terminal_mod_SOURCES): Likewise.
13405 (terminal_mod_CFLAGS): Likewise.
13406 (terminal_mod_LDFLAGS): Likewise.
13408 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
13410 (kernel_img_SOURCES): Add list.c and handler.c.
13411 (kernel_img_HEADERS): Add list.h and handler.h.
13413 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13415 (kernel_mod_SOURCES): Add list.c and handler.c.
13416 (kernel_mod_HEADERS): Add list.h and handler.h.
13418 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
13420 (kernel_elf_SOURCES): Add list.c and handler.c.
13421 (kernel_elf_HEADERS): Add list.h and handler.h.
13423 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13425 (kernel_elf_SOURCES): Add list.c and handler.c.
13426 (kernel_elf_HEADERS): Add list.h and handler.h.
13428 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13430 (kernel_mod_SOURCES): Add list.c and handler.c.
13431 (kernel_mod_HEADERS): Add list.h and handler.h.
13433 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13435 (kernel_elf_SOURCES): Add list.c and handler.c.
13436 (kernel_elf_HEADERS): Add list.h and handler.h.
13438 2009-02-27 Robert Millan <rmh@aybabtu.com>
13440 Factorize elf32 / elf64 code in Multiboot loader. This will
13441 prevent it from getting out of sync again.
13443 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
13444 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
13445 grub_multiboot_load_elf64): Move from here ...
13446 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
13447 grub_multiboot_load_elf): ... to here (new file).
13449 2009-02-27 Robert Millan <rmh@aybabtu.com>
13451 * util/grub.d/10_linux.in: Rename "single-user mode" to
13454 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
13456 Don't leak in SCSI code.
13457 * disk/scsi.c (grub_scsi_close): free `scsi'.
13459 2009-02-27 Robert Millan <rmh@aybabtu.com>
13461 * loader/i386/pc/multiboot.c: Move from here ...
13462 * loader/i386/multiboot.c: ... to here. Update all users.
13464 2009-02-27 Robert Millan <rmh@aybabtu.com>
13466 Patch from Alexandre Bique <bique.alexandre@gmail.com>
13467 * util/i386/pc/grub-setup.c (setup): Fix directory path.
13469 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
13471 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
13474 2009-02-27 Robert Millan <rmh@aybabtu.com>
13476 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
13477 `0x' qualifier as 0 when base is specified as parameter).
13479 2009-02-24 Bean <bean123ch@gmail.com>
13481 * configure.ac: Check for -mcmodel=large in x86_64 target.
13483 * include/grub/efi/api.h (efi_call_10): New macro.
13484 (efi_wrap_10): New function.
13486 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
13487 (GRUB_PE32_REL_BASED_HIGH): Likewise.
13488 (GRUB_PE32_REL_BASED_LOW): Likewise.
13489 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
13490 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
13491 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
13492 (GRUB_PE32_REL_BASED_SECTION): Likewise.
13493 (GRUB_PE32_REL_BASED_REL): Likewise.
13494 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
13495 (GRUB_PE32_REL_BASED_DIR64): Likewise.
13496 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
13498 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
13501 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
13502 (efi_wrap_10): New function.
13504 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
13506 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
13507 MB/MBP model (NV chipset).
13508 (devdata_devs): Add devpath_5 to the list.
13510 * load/i386/efi/linux.c (video_base): Remove variable.
13511 (RGB_MASK): New macro.
13512 (RGB_MAGIC): Likewise.
13513 (LINE_MIN): Likewise.
13514 (LINE_MAX): Likewise.
13515 (FBTEST_STEP): Likewise.
13516 (FBTEST_COUNT): Likewise.
13517 (fb_list): New variable.
13518 (grub_find_video_card): Remove function.
13519 (find_framebuf): New function.
13520 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
13523 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
13524 problem for x86_64.
13526 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
13528 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
13530 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
13533 2009-02-22 Robert Millan <rmh@aybabtu.com>
13535 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
13536 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
13537 in our relocation, instead of using it directly from heap. Also
13538 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
13540 2009-02-21 Robert Millan <rmh@aybabtu.com>
13542 Implement USB keyboard support (based on patch by Marco Gerards)
13544 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
13545 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
13546 (usb_keyboard_mod_LDFLAGS): New variables.
13548 * term/usb_keyboard.c: New file.
13550 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13552 Corrected wrong declaration
13554 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
13556 2009-02-14 Christian Franke <franke@computer.org>
13558 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
13559 (grub_lspci_iter): Print class code and programming interface byte.
13561 2009-02-14 Christian Franke <franke@computer.org>
13563 * gendistlist.sh: Ignore `.svn' directories.
13565 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
13567 * fs/fat.c: Add 2009 to Copyright line.
13569 2009-02-14 Christian Franke <franke@computer.org>
13571 * commands/hdparm.c: New file. Provides `hdparm' command
13572 which sends ATA commands via grub_disk_ata_pass_through ().
13574 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
13576 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
13577 and <grub/cpu/io.h> to include/grub/ata.h.
13578 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
13579 (GRUB_CDROM_SECTOR_SIZE): Remove.
13580 (GRUB_ATA_*): Move to include/grub/ata.h.
13581 (GRUB_ATAPI_*): Likewise.
13582 (enum grub_ata_commands): Likewise.
13583 (enum grub_ata_timeout_milliseconds): Likewise.
13584 (struct grub_ata_device): Likewise.
13585 (grub_ata_regset): Likewise.
13586 (grub_ata_regget): Likewise.
13587 (grub_ata_regset2): Likewise.
13588 (grub_ata_regget2): Likewise.
13589 (grub_ata_check_ready): Likewise.
13590 (grub_ata_wait_not_busy): Remove static, exported in
13591 include/grub/ata.h.
13592 (grub_ata_wait_drq): Likewise.
13593 (grub_ata_pio_read): Likewise.
13595 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
13596 function for hdparm.mod.
13598 * include/grub/ata.h: New file, contains declarations from
13600 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
13602 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
13603 (grub_disk_ata_pass_through): New exported variable.
13605 * kern/disk.c (grub_disk_ata_pass_through): New variable.
13607 2009-02-13 Colin D Bennett <colin@gibibit.com>
13609 Support multiple fallback entries, and provide an API to support
13610 executing default+fallback menu entries. Renamed the `terminal' menu
13613 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
13614 variable declaration.
13615 (grub_menu_execute_callback): New structure declaration.
13616 (grub_menu_execute_callback_t): New typedef.
13617 (grub_menu_execute_with_fallback): New function declaration.
13618 (grub_menu_get_entry): Likewise.
13619 (grub_menu_get_timeout): Likewise.
13620 (grub_menu_set_timeout): Likewise.
13622 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
13624 * normal/menu.c (grub_wait_after_message): Moved to
13625 `normal/menu_text.c'.
13626 (draw_border): Likewise.
13627 (print_message): Likewise.
13628 (print_entry): Likewise.
13629 (print_entries): Likewise.
13630 (grub_menu_init_page): Likewise.
13631 (get_entry_number): Likewise.
13632 (print_timeout): Likewise.
13633 (run_menu): Likewise.
13634 (grub_menu_execute_entry): Likewise.
13635 (show_text_menu): Likewise.
13636 (get_and_remove_first_entry_number): New function.
13637 (grub_menu_execute_with_fallback): Likewise.
13638 (get_entry): Renamed to ...
13639 (grub_menu_get_entry): .. this and made it global.
13640 (get_timeout): Renamed to ...
13641 (grub_menu_get_timeout): ... this and made it global.
13642 (set_timeout): Renamed to ...
13643 (grub_menu_set_timeout): ... this and made it global.
13644 (grub_normal_terminal_menu_viewer): Renamed to ...
13645 (grub_normal_text_menu_viewer): ... this.
13647 * normal/menu_text.c: New file. Extracted text-menu-specific code
13648 from normal/menu.c.
13650 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
13651 (normal_mod_SOURCES): Likewise.
13653 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13654 (normal_mod_SOURCES): Likewise.
13656 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13657 (normal_mod_SOURCES): Likewise.
13659 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
13660 (normal_mod_SOURCES): Likewise.
13662 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13663 (normal_mod_SOURCES): Likewise.
13665 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13666 (normal_mod_SOURCES): Likewise.
13668 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13669 (normal_mod_SOURCES): Likewise.
13671 2009-02-11 Robert Millan <rmh@aybabtu.com>
13673 * util/grub.d/00_header.in: Update old reference to `font' command.
13675 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
13677 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
13679 Based on patch from Javier Martín.
13681 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
13683 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
13684 to avoid false positives with FAT.
13685 (grub_fstest_SOURCES): Likewise.
13686 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13687 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13688 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13689 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13690 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13691 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13693 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
13695 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
13696 bpb.version_specific.fat12_or_fat16.fstype and
13697 bpb.version_specific.fat32.fstype.
13699 2009-02-08 Robert Millan <rmh@aybabtu.com>
13701 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
13703 2009-02-08 Robert Millan <rmh@aybabtu.com>
13705 * Makefile.in (host_os, host_cpu): New variables.
13706 (target_os): Remove. Update all users.
13708 2009-02-08 Marco Gerards <marco@gnu.org>
13710 * Makefile.in (enable_grub_emu_usb): New variable.
13711 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
13712 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
13713 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
13714 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
13715 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
13716 `usbtest.mod' and `usbms.mod'.
13717 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
13718 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
13719 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
13720 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
13721 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
13724 * disk/usbms.c: New file.
13726 * include/grub/usb.h: Likewise.
13728 * include/grub/usbtrans.h: Likewise.
13730 * include/grub/usbdesc.h: Likewise.
13732 * bus/usb/usbtrans.c: Likewise.
13734 * bus/usb/ohci.c: Likewise.
13736 * bus/usb/uhci.c: Likewise.
13738 * bus/usb/usbhub.c: Likewise.
13740 * bus/usb/usb.c: Likewise.
13742 * commands/usbtest.c: Likewise.
13744 * util/usb.c: Likewise.
13746 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
13748 * configure.ac: Test for libusb presence.
13750 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
13752 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
13754 * kern/mm.c: Add more comments.
13756 2009-02-08 Robert Millan <rmh@aybabtu.com>
13758 Patch from Javier Martín.
13759 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
13760 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
13762 2009-02-08 Robert Millan <rmh@aybabtu.com>
13764 * fs/cpio.c: Split tar functionality to ...
13765 * fs/tar.c: ... here (new file). Update all users.
13767 2009-02-07 Robert Millan <rmh@aybabtu.com>
13769 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
13770 backward-incompatible features.
13772 Based on patch from Javier Martín, with some adjustments.
13774 2009-02-07 Michael Scherer <misc@mandriva.org>
13776 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
13778 2009-02-07 Robert Millan <rmh@aybabtu.com>
13780 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
13781 position of `disk/lvm.c' to ensure grub_init_all() always picks it
13782 after the RAID stuff.
13784 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
13786 Fixes problem when running vbetest command as reported by
13787 Vladimir Serbinenko <phcoder@gmail.com>.
13789 * (grub_vbe_set_video_mode): Fixed problem with text modes.
13791 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
13793 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
13794 /dev/md/NpN style mdraid devices.
13796 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13798 * util/unifont2pff.rb: Remove.
13800 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13802 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
13805 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13807 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
13808 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13809 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13810 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13811 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13812 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13813 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13815 2009-02-02 Christian Franke <franke@computer.org>
13817 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
13819 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
13821 * INSTALL: Note that we now require at least autoconf 2.59 and
13822 that LZO is optional.
13824 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
13826 Base on patch on bug #24154 created by Tomas Tintera
13827 <trosos@seznam.cz>.
13829 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
13831 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
13833 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
13834 <bero@arklinux.org>.
13836 * normal/parser.y (script_init): Add missing semicolon.
13838 2009-01-31 Colin D Bennett <colin@gibibit.com>
13840 * normal/main.c: Add include to grub/menu_viewer.h.
13841 (free_menu_entry_classes): Added.
13842 (grub_normal_menu_addentry): Added class property handling.
13843 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
13844 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
13846 * normal/menu_viewer.c: New file.
13848 * normal/menu.c (run_menu_entry): Renamed to ...
13849 (grub_menu_execute_entry): ... this and made it as global.
13850 (grub_menu_run): Renamed to ...
13851 (show_text_menu): ... this and made it local.
13852 (show_text_menu): Adapt to new function names.
13853 (grub_normal_terminal_menu_viewer): New global variable.
13855 * include/grub/menu.h: New file.
13857 * include/grub/menu_viewer.h: New file.
13859 * include/grub/normal.h: Added include to grub/menu.h.
13860 (grub_menu_entry): Moved to include/grub/menu.h.
13861 (grub_menu_entry_t): Likewise.
13862 (grub_menu): Likewise.
13863 (grub_menu_t): Likewise.
13864 (grub_normal_terminal_menu_viewer): Added.
13865 (grub_menu_execute_entry): Likewise.
13866 (grub_menu_run): Removed.
13868 * DISTLIST: Added include/grub/menu.h.
13869 Added include/grub/menu_viewer.h.
13870 Added normal/menu_viewer.c.
13872 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
13874 * normal/execute.c (grub_script_execute_menuentry): Changed to use
13875 arglist for menutitle arguments.
13877 * normal/main.c (grub_normal_menu_addentry): Likewise.
13879 * normal/parser.y (menuentry): Likewise.
13881 * normal/script.c (grub_script_create_cmdmenu): Likewise.
13883 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
13884 (grub_script_create_cmdmenu): Likewise.
13886 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
13888 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
13891 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
13893 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
13895 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
13897 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13899 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13901 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13903 2009-01-30 Christian Franke <franke@computer.org>
13905 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
13906 in option help text.
13908 2009-01-27 Pavel Roskin <proski@gnu.org>
13910 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
13912 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
13914 * commands/lsmmap.c: Add include to grub/machine/memory.h.
13916 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
13918 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
13919 unregister function.
13921 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
13923 * disk/scsi.c (grub_scsi_read): Fix sign problem.
13925 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
13927 * util/grub-mkfont.c (usage): Fix typo.
13929 * util/elf/grub-mkimage.c (load_modules): Fix warning.
13931 2009-01-26 Daniel Mierswa <impulze@impulze.org>
13933 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
13935 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
13937 * kern/misc.c (grub_strcasecmp): New function.
13938 (grub_strcasecmp): Use grub_size_t instead of int for length.
13940 * include/grub/misc.h: Update function prototypes.
13942 2009-01-26 Robert Millan <rmh@aybabtu.com>
13944 * configure.ac: Fix cross-compilation check.
13946 2009-01-22 Christian Franke <franke@computer.org>
13948 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
13949 (precision) digit string. Allow `.format2' without `format1' (width).
13950 Limit input chars for `%s' output to `format2' if specified. This is
13951 compatible with standard printf ().
13953 2009-01-22 Christian Franke <franke@computer.org>
13955 * disk/ata.c (grub_ata_wait_status): Replace by ...
13956 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
13957 other status bits may be invalid while BSY is asserted.
13958 (grub_ata_check_ready): New function.
13959 (grub_ata_cmd): Removed.
13960 (grub_ata_wait_drq): New function.
13961 (grub_ata_strncpy): Remove inline.
13962 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
13963 and error check now done by grub_ata_wait_drq ().
13964 (grub_ata_pio_write): Likewise.
13965 (grub_atapi_identify): Set DEV before check for !BSY. Use
13966 grub_ata_wait_drq () to wait for data.
13967 (grub_ata_device_initialize): Add status register check to
13968 detect missing SATA slave devices. Add debug messages.
13969 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
13970 (grub_atapi_packet): Set DEV before check for !BSY. Replace
13971 transfer loop by grub_ata_pio_write ().
13972 (grub_ata_identify): Set DEV before check for !BSY. Use
13973 grub_ata_wait_drq () to wait for data.
13974 (grub_ata_setaddress): Set DEV before check for !BSY.
13975 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
13976 read/write in one loop. Fix invalid command on write. Fix incomplete
13977 command on (size % batch) == 0. Add missing error check after write of
13978 last block. Add debug messages.
13979 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
13981 2009-01-19 Christian Franke <franke@computer.org>
13983 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
13984 (GRUB_ATAPI_IREASON_*): Likewise.
13985 (grub_ata_pio_write): Fix timeout error return.
13986 (grub_atapi_identify): Add grub_ata_wait () after cmd.
13987 (grub_atapi_wait_drq): New function.
13988 (grub_atapi_packet): New parameter `size'.
13989 Use grub_atapi_wait_drq () and direct write instead of
13990 grub_ata_pio_write ().
13991 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
13992 reads the number of bytes requested by the device for each DRQ
13994 (grub_atapi_write): Remove old implementation, return not
13995 implemented instead.
13997 2009-01-19 Christian Franke <franke@computer.org>
13999 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
14000 of 512 to calculate data size.
14001 (grub_scsi_read12): Likewise.
14002 (grub_scsi_write10): Likewise.
14003 (grub_scsi_write12): Likewise.
14004 (grub_scsi_read): Adjust size according to blocksize.
14005 Add checks for invalid blocksize and unaligned transfer.
14007 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
14009 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
14011 * term/gfxterm.c (write_char): Fix background rendering for wide
14014 2009-01-19 Robert Millan <rmh@aybabtu.com>
14016 * config.guess: Update to latest version from config git.
14017 * config.sub: Likewise.
14019 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
14021 * Makefile.in: Change font compilation to use new grub-mkfont instead
14024 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
14025 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
14026 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14027 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14028 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
14029 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
14030 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
14031 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
14032 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
14034 2009-01-16 Christian Franke <franke@computer.org>
14036 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
14037 (enum grub_ata_timeout_milliseconds): New enum.
14038 (grub_ata_wait_status): Add parameter milliseconds.
14039 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
14040 recovery from timed-out commands.
14041 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
14042 return grub_errno instead of REG_ERROR.
14043 (grub_ata_pio_write): Add parameter milliseconds.
14044 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
14045 Pass milliseconds to grub_ata_wait_status () and
14046 grub_ata_pio_read ().
14047 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
14048 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
14049 grub_ata_wait_status (). Fix IDENTIFY timeout check.
14050 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
14051 It is not suitable for device detection, because DEV bit is ignored,
14052 the command may run too long, and not all devices set the signature
14054 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
14055 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
14056 Fix device selection, DEV bit must be set first to address the registers
14057 of the correct device.
14058 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
14059 grub_ata_pio_read/write ().
14060 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
14061 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
14063 2009-01-13 Carles Pina i Estany <carles@pina.cat>
14065 * util/grub-editenv.c (main): Use fseeko(), not fseek().
14067 2009-01-13 Bean <bean123ch@gmail.com>
14069 * util/grub-mkfont.c (write_font): forget to remove some debug code.
14071 2009-01-13 Bean <bean123ch@gmail.com>
14073 * Makefile.in: (enable_grub_mkfont): New variable.
14074 (freetype_cflags): Likewise.
14075 (freetype_libs): Likewise.
14077 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
14078 (grub_mkfont_SOURCES): New variable.
14079 (grub_mkfont_CFLAGS): Likewise.
14080 (grub_mkfont_LDFLAGS): Likewise.
14082 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
14083 library if `--enable-grub-mkfont' is requested.
14084 (enable_grub_mkfont): New variable.
14085 (freetype_cflags): Likewise.
14086 (freetype_libs): Likewise.
14088 * util/grub-mkfont.c: New file.
14090 2009-01-12 Christian Franke <franke@computer.org>
14092 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
14093 mode check. Fix setting of compat_use[].
14095 2009-01-10 Robert Millan <rmh@aybabtu.com>
14097 Update a few copyright years which we forgot to do in 2008 (only for
14098 files whose changes made in 2008 were copyright-significant)
14100 * Makefile.in: Add 2008 to Copyright line.
14101 * disk/ieee1275/ofdisk.c: Likewise.
14102 * disk/efi/efidisk.c: Likewise.
14103 * kern/dl.c: Likewise.
14104 * kern/sparc64/ieee1275/init.c: Likewise.
14105 * kern/mm.c: Likewise.
14106 * kern/efi/mm.c: Likewise.
14107 * boot/i386/pc/boot.S: Likewise.
14108 * genfslist.sh: Likewise.
14109 * fs/iso9660.c: Likewise.
14110 * fs/hfs.c: Likewise.
14111 * fs/jfs.c: Likewise.
14112 * fs/minix.c: Likewise.
14113 * fs/ufs.c: Likewise.
14114 * gensymlist.sh.in: Likewise.
14115 * genkernsyms.sh.in: Likewise.
14116 * include/grub/misc.h: Likewise.
14117 * include/grub/types.h: Likewise.
14118 * include/grub/symbol.h: Likewise.
14119 * include/grub/elf.h: Likewise.
14120 * include/grub/kernel.h: Likewise.
14121 * include/grub/disk.h: Likewise.
14122 * include/grub/dl.h: Likewise.
14123 * include/grub/i386/linux.h: Likewise.
14124 * include/grub/i386/pc/biosdisk.h: Likewise.
14125 * include/grub/efi/api.h: Likewise.
14126 * include/grub/efi/pe32.h: Likewise.
14127 * include/grub/util/misc.h: Likewise.
14128 * normal/execute.c: Likewise.
14129 * normal/arg.c: Likewise.
14130 * normal/completion.c: Likewise.
14131 * normal/lexer.c: Likewise.
14132 * normal/parser.y: Likewise.
14133 * normal/misc.c: Likewise.
14134 * commands/i386/pc/vbeinfo.c: Likewise.
14135 * commands/hexdump.c: Likewise.
14136 * commands/terminal.c: Likewise.
14137 * commands/ls.c: Likewise.
14138 * commands/help.c: Likewise.
14139 * partmap/pc.c: Likewise.
14140 * loader/efi/chainloader.c: Likewise.
14141 * loader/multiboot_loader.c: Likewise.
14142 * loader/i386/pc/multiboot2.c: Likewise.
14143 * term/efi/console.c: Likewise.
14144 * term/i386/pc/serial.c: Likewise.
14145 * util/lvm.c: Likewise.
14146 * util/console.c: Likewise.
14147 * util/i386/efi/grub-mkimage.c: Likewise.
14148 * util/raid.c: Likewise.
14150 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
14152 * commands/videotest.c: Removed include to grub/machine/memory.h.
14154 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
14155 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
14156 (video_mod_SOURCES): Removed.
14157 (video_mod_CFLAGS): Likewise.
14158 (video_mod_LDFLAGS): Likewise.
14159 (gfxterm_mod_SOURCES): Likewise.
14160 (gfxterm_mod_CFLAGS): Likewise.
14161 (gfxterm_mod_LDFLAGS): Likewise.
14162 (videotest_mod_SOURCES): Likewise.
14163 (videotest_mod_CFLAGS): Likewise.
14164 (videotest_mod_LDFLAGS): Likewise.
14165 (bitmap_mod_SOURCES): Likewise.
14166 (bitmap_mod_CFLAGS): Likewise.
14167 (bitmap_mod_LDFLAGS): Likewise.
14168 (tga_mod_SOURCES): Likewise.
14169 (tga_mod_CFLAGS): Likewise.
14170 (tga_mod_LDFLAGS): Likewise.
14171 (jpeg_mod_SOURCES): Likewise.
14172 (jpeg_mod_CFLAGS): Likewise.
14173 (jpeg_mod_LDFLAGS): Likewise.
14174 (png_mod_SOURCES): Likewise.
14175 (png_mod_CFLAGS): Likewise.
14176 (png_mod_LDFLAGS): Likewise.
14178 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
14179 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
14180 (video_mod_SOURCES): Added.
14181 (video_mod_CFLAGS): Likewise.
14182 (video_mod_LDFLAGS): Likewise.
14183 (videotest_mod_SOURCES): Likewise.
14184 (videotest_mod_CFLAGS): Likewise.
14185 (videotest_mod_LDFLAGS): Likewise.
14186 (bitmap_mod_SOURCES): Likewise.
14187 (bitmap_mod_CFLAGS): Likewise.
14188 (bitmap_mod_LDFLAGS): Likewise.
14189 (tga_mod_SOURCES): Likewise.
14190 (tga_mod_CFLAGS): Likewise.
14191 (tga_mod_LDFLAGS): Likewise.
14192 (jpeg_mod_SOURCES): Likewise.
14193 (jpeg_mod_CFLAGS): Likewise.
14194 (jpeg_mod_LDFLAGS): Likewise.
14195 (png_mod_SOURCES): Likewise.
14196 (png_mod_CFLAGS): Likewise.
14197 (png_mod_LDFLAGS): Likewise.
14198 (gfxterm_mod_SOURCES): Likewise.
14199 (gfxterm_mod_CFLAGS): Likewise.
14200 (gfxterm_mod_LDFLAGS): Likewise.
14202 * term/gfxterm.c: Removed include to grub/machine/memory.h,
14203 grub/machine/console.h.
14205 2009-01-04 Jerone Young <jerone@gmail.com>
14207 Make on screen instructions clearer
14209 Based on patch created by Jidanni <jidanni@jidanni.org>
14211 * normal/menu.c: print clearer instructions on the screen
14213 2009-01-02 Colin D Bennett <colin@gibibit.com>
14217 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
14218 build system and fixed gfxterm.c to work with different sized fonts.
14220 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
14222 * configure: Re-generated.
14224 * DISTLIST: Removed font/manager.c.
14226 Added font/font_cmd.c.
14228 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
14231 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
14233 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
14235 * kern/term.c: Changed users of grub_utf8_to_ucs4.
14237 * normal/menu.c: Likewise.
14239 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
14240 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
14242 * include/grub/font.h: Replaced with new file.
14244 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
14245 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
14246 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
14247 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
14248 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
14249 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
14250 fg_red, fg_green, fg_blue, fg_alpha.
14251 (grub_video_adapter): Removed blit_glyph.
14252 (grub_video_blit_glyph): Removed.
14254 * font/manager.c: Removed file.
14256 * font/font.c: New file.
14258 * font/font_cmd.c: Likewise.
14260 * video/video.c (grub_video_blit_glyph): Removed.
14262 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
14263 (grub_video_vbe_map_rgba): Likewise.
14264 (grub_video_vbe_unmap_color_int): Likewise.
14265 (grub_video_vbe_blit_glyph): Removed.
14266 (grub_video_vbe_adapter): Removed blit_glyph.
14268 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
14269 (get_pixel): Likewise.
14270 (set_pixel): Likewise.
14272 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
14274 * term/gfxterm.c: Adapted to new font engine.
14276 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
14278 * term/i386/pc/vga.c: Likewise.
14280 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
14282 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
14284 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14286 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14288 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
14290 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
14292 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
14294 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
14296 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
14298 * util/grub.d/00_header.in: Changed to use new loadfont command.
14300 * util/grub-mkconfig_lib.in: Changed font extension.
14302 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
14304 * util/getroot.c (grub_util_get_grub_dev): Add support for
14305 /dev/md/dNNpNN style partitionable mdraid devices.
14307 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
14309 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
14310 at a time limit of the PXE TFTP API correctly.
14311 (grub_pxefs_close): Likewise.
14313 2008-11-29 Robert Millan <rmh@aybabtu.com>
14315 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
14316 grub_ata_device_initialize() calls.
14318 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
14320 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
14322 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
14324 2008-11-28 Robert Millan <rmh@aybabtu.com>
14326 Fix build on powerpc-ieee1275. Based on patch created by
14327 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
14328 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
14329 `kern/ieee1275/mmap.c'.
14330 * include/grub/powerpc/ieee1275/memory.h: New file.
14332 Provide grub-install on coreboot.
14333 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
14334 (grub_install_SOURCES): New variable.
14335 * util/i386/pc/grub-install.in: Add a few condition checks to make it
14336 usable on coreboot.
14338 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
14340 * util/grub-fstest.c (grub_term_get_current_input): Change return type
14341 to `grub_term_input_t'.
14342 (grub_term_get_current_output): Change return type to
14343 `grub_term_output_t'.
14345 2008-11-22 Robert Millan <rmh@aybabtu.com>
14347 Fix breakage on coreboot due to declaration mismatch.
14348 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
14349 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
14350 grub_vga_text_cls().
14352 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
14353 comments. Avoid copying one more byte than necessary (just in case).
14355 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
14356 to 0x200000 (avoids trouble with some OFW implementations, and matches
14357 with the one in Yaboot).
14358 Reported by Manoel Abranches
14360 2008-11-20 Robert Millan <rmh@aybabtu.com>
14362 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
14363 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
14365 * util/grub-mkconfig_lib.in (grub_warn): New function.
14366 (convert_system_path_to_grub_path): Use grub_warn() when issuing
14367 warnings, to obtain consistent formatting.
14368 * util/grub.d/00_header.in: Likewise.
14369 * util/update-grub_lib.in: Likewise.
14371 * loader/i386/linux.c (allocate_pages): Fix a warning.
14372 Move comment text to `#error' stanza.
14374 Harmonize ieee1275's grub_available_iterate() with the generic
14375 grub_machine_mmap_iterate() interface (fixes a recently-introduced
14376 build problem on i386-ieee1275):
14377 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
14378 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
14379 parameter `type'. Update all users of this function.
14380 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
14381 `kern/ieee1275/mmap.c'.
14382 * kern/ieee1275/init.c
14383 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
14385 (grub_machine_mmap_iterate): ... this.
14386 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
14387 return type to `grub_err_t'. Update all implementations of this
14388 function prototype.
14389 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
14392 Add `lsmmap' command (lists firmware-provided memory map):
14393 * commands/lsmmap.c: New file.
14394 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
14395 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
14397 * conf/powerpc-ieee1275.rmk: Likewise.
14398 * conf/i386-coreboot.rmk: Likewise.
14399 * conf/i386-ieee1275.rmk: Likewise.
14401 2008-11-19 Robert Millan <rmh@aybabtu.com>
14403 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
14404 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
14405 constraints to initrd allocation (based on code from
14406 loader/i386/pc/linux.c). Without them, initrd was allocated too high
14407 for Linux to find it.
14409 2008-11-14 Robert Millan <rmh@aybabtu.com>
14411 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
14412 order to cope with duplicate slashes.
14414 2008-11-14 Robert Millan <rmh@aybabtu.com>
14416 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
14417 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
14418 don't want to mess with lower memory, because it is used in the Linux
14421 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
14422 an appropriate place in lower memory, between 0x10000 and 0x90000,
14423 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
14424 is in our heap (probably as a result of it being corrupted during
14425 decompression). Add #error instance with comment to explain why this
14426 loader isn't currently usable on PC/BIOS.
14428 2008-11-14 Robert Millan <rmh@aybabtu.com>
14430 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
14431 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
14433 2008-11-12 Robert Millan <rmh@aybabtu.com>
14435 Make loader/i386/linux.c buildable on i386-pc (although disabled).
14437 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
14438 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
14440 * include/grub/i386/pc/memory.h: ... to here.
14442 2008-11-12 Robert Millan <rmh@aybabtu.com>
14444 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
14447 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
14448 (grub_console_cur_color, grub_console_real_putchar)
14449 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14450 (grub_console_setcolorstate, grub_console_setcolor)
14451 (grub_console_getcolor): Move from here ...
14452 * include/grub/i386/vga_common.h: ... to here (new file).
14454 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
14455 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
14456 `<grub/i386/io.h>'.
14457 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
14458 `<grub/i386/vga_common.h>'.
14460 2008-11-12 Robert Millan <rmh@aybabtu.com>
14462 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
14463 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
14464 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
14466 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14467 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
14469 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
14470 grub_console_init() with call to grub_vga_text_init().
14471 (grub_machine_fini): Replace call to
14472 grub_console_fini() with call to grub_vga_text_fini() and
14473 grub_at_keyboard_fini().
14475 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
14476 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14477 (grub_console_setcolorstate, grub_console_setcolor)
14478 (grub_console_getcolor): New function prototypes.
14480 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
14481 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
14482 (grub_vga_text_setcursor): Static-ize.
14483 (grub_vga_text_term): New structure.
14484 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
14486 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
14487 (grub_console_cur_color, grub_console_standard_color)
14488 (grub_console_normal_color, grub_console_highlight_color)
14489 (map_char, grub_console_putchar, grub_console_getcharwidth)
14490 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
14491 (grub_console_getcolor): Move from here ...
14492 * term/i386/vga_common.c: ... to here (same function names).
14494 2008-11-12 Robert Millan <rmh@aybabtu.com>
14496 Use newly-added Multiboot support in coreboot.
14498 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14499 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
14501 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
14502 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
14503 (codestart): Store the MBI in `startup_multiboot_info' when we're
14504 being loaded using Multiboot.
14506 * kern/i386/coreboot/init.c (grub_machine_init): Move
14507 grub_at_keyboard_init() call to beginning of function (useful for
14508 debugging). Call grub_machine_mmap_init() before attempting to use
14509 grub_machine_mmap_iterate().
14510 (grub_lower_mem, grub_upper_mem): Move from here ...
14511 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
14514 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
14515 function prototype.
14517 2008-11-12 Robert Millan <rmh@aybabtu.com>
14519 Fix a regression introduced by the at_keyboard.mod split. Because
14520 some terminals are default on some platforms and non-default on
14521 others, the first terminal being registered determines which is
14522 going to be default.
14524 * kern/term.c (grub_term_register_input): If this is the first
14525 terminal being registered, set it as the current one.
14526 (grub_term_register_output): Likewise.
14528 * term/efi/console.c (grub_console_init): Do not call
14529 grub_term_set_current_output() or grub_term_set_current_input().
14530 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
14531 * term/i386/pc/console.c (grub_console_init): Likewise.
14532 (grub_console_fini): Do not call grub_term_set_current_input()
14533 (but leave grub_term_set_current_output() to restore text mode).
14535 2008-11-10 Robert Millan <rmh@aybabtu.com>
14537 * util/grub.d/00_header.in: Add backward compatibility check for
14538 versions of terminal.mod that don't understand `terminal_input' or
14541 2008-11-09 Robert Millan <rmh@aybabtu.com>
14543 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
14544 `terminal_input' / `terminal_output', not `terminal'.
14546 2008-11-08 Robert Millan <rmh@aybabtu.com>
14548 * Makefile.in (include_DATA): Fix srcdir=. assumption.
14549 (DISTCLEANFILES): Add `build_env.mk'.
14551 2008-11-08 Robert Millan <rmh@aybabtu.com>
14553 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
14554 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14555 members. Update all users.
14556 * util/console.c (grub_ncurses_term): Split in ...
14557 (grub_ncurses_term_input): ... this, and ...
14558 (grub_ncurses_term_output): ... this. Update all users.
14559 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
14561 2008-11-08 Robert Millan <rmh@aybabtu.com>
14563 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
14564 (PKGDATA): Add $(pkgdata_SRCDIR).
14565 (pkglib_BUILDDIR): New variable.
14566 (pkgdata_SRCDIR): New variable.
14567 (build_env.mk): New target.
14568 (include_DATA): New variable.
14569 (install-local): Install $(include_DATA) files in $(includedir).
14571 2008-11-07 Pavel Roskin <proski@gnu.org>
14573 * gendistlist.sh: Use C locale for sorting to ensure consistent
14574 output on all systems.
14576 * util/grub.d/00_header.in: Remove incorrect space before
14579 2008-11-07 Robert Millan <rmh@aybabtu.com>
14581 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
14583 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
14584 * loader/multiboot_loader.c (find_multi_boot2_header): New function
14585 (based on find_multi_boot1_header).
14586 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
14587 using find_multi_boot2_header(), and abort if neither Multiboot or
14588 Multiboot headers were found.
14590 2008-11-07 Robert Millan <rmh@aybabtu.com>
14592 Modularize at_keyboard.mod:
14594 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
14595 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
14596 (at_keyboard_mod_LDFLAGS): New variables.
14598 Actual terminal split:
14600 * include/grub/term.h (struct grub_term): Split in ...
14601 (struct grub_term_input): ... this, and ...
14602 (struct grub_term_output): ... this. Update all users.
14603 (grub_term_set_current): Split in ...
14604 (grub_term_set_current_input): ... this, and ...
14605 (grub_term_set_current_output): ... this.
14606 (grub_term_get_current): Split in ...
14607 (grub_term_get_current_input): ... this, and ...
14608 (grub_term_get_current_output): ... this.
14609 (grub_term_register): Split in ...
14610 (grub_term_register_input): ... this, and ...
14611 (grub_term_register_output): ... this.
14612 (grub_term_unregister): Split in ...
14613 (grub_term_unregister_input): ... this, and ...
14614 (grub_term_unregister_output): ... this.
14615 (grub_term_iterate): Split in ...
14616 (grub_term_iterate_input): ... this, and ...
14617 (grub_term_iterate_output): ... this.
14619 * kern/term.c (grub_term_list): Split in ...
14620 (grub_term_list_input): ... this, and ...
14621 (grub_term_list_output): ... this. Update all users.
14622 (grub_cur_term): Split in ...
14623 (grub_cur_term_input): ... this, and ...
14624 (grub_cur_term_output): ... this. Update all users.
14625 (grub_term_set_current): Split in ...
14626 (grub_term_set_current_input): ... this, and ...
14627 (grub_term_set_current_output): ... this.
14628 (grub_term_get_current): Split in ...
14629 (grub_term_get_current_input): ... this, and ...
14630 (grub_term_get_current_output): ... this.
14631 (grub_term_register): Split in ...
14632 (grub_term_register_input): ... this, and ...
14633 (grub_term_register_output): ... this.
14634 (grub_term_unregister): Split in ...
14635 (grub_term_unregister_input): ... this, and ...
14636 (grub_term_unregister_output): ... this.
14637 (grub_term_iterate): Split in ...
14638 (grub_term_iterate_input): ... this, and ...
14639 (grub_term_iterate_output): ... this.
14641 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
14642 a check for input and one for output (and only attempt to get keys
14643 from user when input works).
14645 * util/grub-probe.c (grub_term_get_current): Split in ...
14646 (grub_term_get_current_input): ... this, and ...
14647 (grub_term_get_current_output): ... this.
14648 * util/grub-fstest.c: Likewise.
14649 * util/i386/pc/grub-setup.c: Likewise.
14650 * util/grub-editenv.c: Likewise.
14652 Portability adjustments:
14654 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
14655 `term/i386/pc/at_keyboard.c'.
14656 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
14657 grub_keyboard_controller_init() (now handled by terminal .init).
14658 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
14659 grub_at_keyboard_init().
14660 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
14661 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
14662 at_keyboard.mod via input terminal interface).
14663 * include/grub/i386/coreboot/console.h: Convert into a stub for
14664 `<grub/i386/pc/console.h>'.
14666 Migrate full terminals to new API:
14668 * term/efi/console.c (grub_console_term): Split into ...
14669 (grub_console_term_input): ... this, and ...
14670 (grub_console_term_output): ... this. Update all users.
14671 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
14672 (grub_ofconsole_init): Split into ...
14673 (grub_ofconsole_init_input): ... this, and ...
14674 (grub_ofconsole_init_output): ... this.
14675 (grub_ofconsole_term): Split into ...
14676 (grub_ofconsole_term_input): ... this, and ...
14677 (grub_ofconsole_term_output): ... this. Update all users.
14678 * term/i386/pc/serial.c (grub_serial_term): Split into ...
14679 (grub_serial_term_input): ... this, and ...
14680 (grub_serial_term_output): ... this. Update all users.
14681 * term/i386/pc/console.c (grub_console_term): Split into ...
14682 (grub_console_term_input): ... this, and ...
14683 (grub_console_term_output): ... this. Update all users.
14684 (grub_console_term_input): Only enable it on PC/BIOS platform.
14685 (grub_console_init): Remove grub_keyboard_controller_init() call.
14687 Migrate input terminals to new API:
14689 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
14690 `i386' and `i386/pc' to enable build on x86_64 (this driver is
14691 i386-specific anyway).
14692 (grub_console_checkkey): Rename to ...
14693 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
14695 (grub_keyboard_controller_orig): New variable.
14696 (grub_console_getkey): Rename to ...
14697 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
14699 (grub_keyboard_controller_init): Static-ize. Save original
14700 controller value so that it can be restored ...
14701 (grub_keyboard_controller_fini): ... here (new function).
14702 (grub_at_keyboard_term): New structure.
14703 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
14706 Migrate output terminals to new API:
14708 * term/i386/pc/vga.c (grub_vga_term): Change type to
14709 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14710 members. Update all users.
14711 * term/gfxterm.c (grub_video_term): Change type to
14712 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14713 members. Update all users.
14714 * include/grub/i386/pc/console.h (grub_console_checkkey)
14715 (grub_console_getkey): Do not export (no longer needed by gfxterm,
14718 Migrate `terminal' command and userland tools to new API:
14720 * commands/terminal.c (grub_cmd_terminal): Split into ...
14721 (grub_cmd_terminal_input): ... this, and ...
14722 (grub_cmd_terminal_output): ... this.
14723 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
14724 `terminal_input' and `terminal_output'.
14725 * util/grub.d/00_header.in: Adjust `terminal' calls to new
14726 `terminal_input' / `terminal_output' API.
14727 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
14728 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
14729 provided ${GRUB_TERMINAL}, convert it).
14731 2008-11-04 Robert Millan <rmh@aybabtu.com>
14733 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
14735 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
14737 2008-11-03 Bean <bean123ch@gmail.com>
14739 * kern/elf.c (grub_elf32_load): Revert to previous code.
14740 (grub_elf64_load): Likewise.
14742 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
14744 2008-11-01 Robert Millan <rmh@aybabtu.com>
14746 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
14747 (TARGET_CPPFLAGS): Likewise.
14748 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
14750 2008-11-01 Carles Pina i Estany <carles@pina.cat>
14752 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
14754 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
14756 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
14757 addition of objects until the code is not going to be able to fail.
14759 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
14761 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
14762 (add a missing NULL check, and correct them by moving the pointer
14763 operations after the actual check).
14765 2008-10-29 Robert Millan <rmh@aybabtu.com>
14767 * util/i386/pc/grub-install.in: Handle empty string as output from
14768 make_system_path_relative_to_its_root().
14770 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
14772 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
14773 circular metadata worst case scenario. If the metadata is circular
14774 then copy the wrap in place.
14775 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
14776 project lib/format_text/layout.h
14777 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
14779 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
14781 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
14783 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
14785 * util/update-grub_lib.in: Mention filename in warning message.
14787 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
14789 * NEWS: Update for rename of update-grub to grub-mkconfig.
14791 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
14793 * util/update-grub_lib.in: Copy to ...
14794 * util/grub-mkconfig_lib.in: ... this. Update all users.
14795 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
14796 * util/update-grub.in: Rename to ...
14797 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
14798 option. Add `--output' option to allow users to specify the generated
14799 configuration file. Default to stdout.
14800 (update_grub_dir): Rename to ...
14801 (grub_mkconfig_dir): ... this.
14802 (grub_cfg): Default to an empty string.
14803 * conf/common.rmk (update-grub): Rename to ...
14804 (grub-mkconfig): ... this.
14805 (update-grub_lib): Copy to ...
14806 (grub-mkconfig_lib): ... this.
14807 (update-grub_SCRIPTS): Copy to ...
14808 (grub-mkconfig_SCRIPTS): ... this. Update all users.
14809 (update-grub_DATA): Rename to ...
14810 (grub-mkconfig_DATA): ... this.
14812 2008-09-28 Robert Millan <rmh@aybabtu.com>
14814 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
14815 to `modified'. Add the real `created' field.
14816 (grub_iso9660_uuid): Use `modified' rather than `created' for
14817 constructing the UUID.
14819 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
14821 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
14822 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
14824 2008-09-28 Bean <bean123ch@gmail.com>
14826 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
14827 Thanks to Christian Franke for finding this bug.
14829 2008-09-25 Robert Millan <rmh@aybabtu.com>
14831 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
14832 instances of grub_util_get_disk_name() (see previous commit).
14834 2008-09-25 Robert Millan <rmh@aybabtu.com>
14836 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
14837 `util/i386/get_disk_name.c'.
14838 * conf/i386-efi.rmk: Likewise.
14839 * conf/x86_64-efi.rmk: Likewise.
14840 * conf/i386-coreboot.rmk: Likewise.
14841 * conf/i386-ieee1275.rmk: Likewise.
14842 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
14843 `util/ieee1275/get_disk_name.c'.
14844 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
14845 * util/ieee1275/get_disk_name.c: Remove file.
14846 * util/i386/get_disk_name.c: Remove file.
14847 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
14848 "hd%d" for device.map entries, rather than using
14849 grub_util_get_disk_name().
14851 2008-09-24 Carles Pina i Estany <carles@pina.cat>
14853 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
14855 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
14857 2008-09-24 Carles Pina i Estany <carles@pina.cat>
14859 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
14861 (GRUB_TERM_PPAGE): Changed to 0x4900.
14863 2008-09-24 Robert Millan <rmh@aybabtu.com>
14865 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
14866 macros (they were i386-pc specific).
14867 * include/grub/sparc64/ieee1275/console.h: Likewise.
14868 * include/grub/efi/console.h: Likewise.
14870 2008-09-22 Bean <bean123ch@gmail.com>
14872 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
14873 resident and in attribute list.
14875 * include/grub/ntfs.h (BMP_LEN): Removed.
14877 2008-09-22 Bean <bean123ch@gmail.com>
14879 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
14880 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
14882 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
14883 error occurs, as grub_disk_open will call grub_disk_close, which will
14884 call p->close (scsi).
14886 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
14888 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
14889 (AC_PREREQ): Bumped to 2.59.
14890 (AC_TRY_COMPILE): Replace obsolete macro with ...
14891 (AC_COMPILE_IFELSE): ... this.
14892 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
14893 (AC_LINK_IFELSE): ... this.
14895 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
14897 * autogen.sh: Add a call to `gendistlist.sh'.
14899 2008-09-19 Christian Franke <franke@computer.org>
14901 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
14902 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
14903 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
14904 Export __enable_execute_stack() to modules.
14905 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
14908 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
14910 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
14913 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
14915 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
14916 #include <grub/util/hostdisk.h>.
14918 2008-09-08 Robert Millan <rmh@aybabtu.com>
14920 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
14921 segments when their filesz is zero (grub_file_read() interprets
14922 zero-size as "read until EOF", which results in memory corruption).
14923 Use `lowest_segment' rather than 0 for calculating the current
14924 segment load address.
14926 2008-09-08 Robert Millan <rmh@aybabtu.com>
14928 * util/hostdisk.c (open_device): Replace a grub_util_info() call
14929 with grub_dprintf("hostdisk", ...), as it was so verbose that it
14930 clobbered useful information.
14932 2008-09-08 Robert Millan <rmh@aybabtu.com>
14934 * include/grub/util/biosdisk.h: Move to ...
14935 * include/grub/util/hostdisk.h: ... here. Update all users.
14936 * util/biosdisk.c: Move to ...
14937 * util/hostdisk.c: ... here. Update all users.
14939 2008-09-07 Robert Millan <rmh@aybabtu.com>
14941 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
14943 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
14944 and length can be stored directly in the `mbi->mmap_addr' and
14945 `mbi->mmap_length' struct fields.
14947 2008-09-07 Robert Millan <rmh@aybabtu.com>
14949 * conf/i386.rmk: New file. Provides declaration for building
14951 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
14952 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
14954 Include `conf/i386.mk'.
14955 * conf/i386-efi.rmk: Likewise.
14956 * conf/x86_64-efi.rmk: Likewise.
14957 * conf/i386-coreboot.rmk: Likewise.
14958 * conf/i386-ieee1275.rmk: Likewise.
14960 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
14962 Based on patch created by Colin D Bennett <colin@gibibit.com>.
14963 Adds optimization support for BGR based modes.
14965 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
14966 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
14967 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14968 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14969 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14970 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14971 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14972 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14973 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14974 (grub_video_i386_vbeblit_index_index): Likewise.
14975 (grub_video_i386_vbeblit_replace_directN): Added.
14976 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
14977 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
14978 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
14979 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
14980 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
14981 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
14982 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
14983 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
14984 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
14985 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
14986 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
14987 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
14988 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
14990 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
14991 (grub_video_i386_vbefill_R8G8B8): Likewise.
14992 (grub_video_i386_vbefill_index): Likewise.
14993 (grub_video_i386_vbefill_direct32): Added.
14994 (grub_video_i386_vbefill_direct24): Likewise.
14995 (grub_video_i386_vbefill_direct16): Likewise.
14996 (grub_video_i386_vbefill_direct8): Likewise.
14998 * include/grub/video.h (grub_video_blit_format): Removed
14999 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
15000 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
15001 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
15002 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
15003 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
15005 * video/video.c (grub_video_get_blit_format): Updated to use new
15006 blit formats. Added handling for 16 bit color modes.
15008 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
15010 (common_blitter): Updated to use new blitters.
15012 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
15014 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
15015 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
15016 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
15017 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
15018 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
15019 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
15020 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15021 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15022 (grub_video_i386_vbeblit_index_index): Likewise.
15023 (grub_video_i386_vbeblit_replace_directN): Added.
15024 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
15025 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
15026 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
15027 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
15028 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
15029 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
15030 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
15031 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
15032 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
15033 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
15034 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
15035 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
15036 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
15038 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
15039 (grub_video_i386_vbefill_R8G8B8): Likewise.
15040 (grub_video_i386_vbefill_index): Likewise.
15041 (grub_video_i386_vbefill_direct32): Added.
15042 (grub_video_i386_vbefill_direct24): Likewise.
15043 (grub_video_i386_vbefill_direct16): Likewise.
15044 (grub_video_i386_vbefill_direct8): Likewise.
15046 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
15049 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
15052 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
15055 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
15058 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
15060 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
15063 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
15065 * fs/iso9660.c (grub_iso9660_date): New structure.
15066 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
15067 (grub_iso9660_uuid): New function.
15069 2008-09-05 Bean <bean123ch@gmail.com>
15071 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
15073 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
15074 insensitive bit for names in Win32 and Win32 & DOS namespace.
15076 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
15078 * include/grub/types.h (LONG_MAX): Likewise.
15080 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
15082 * util/getroot.c: Include <config.h>.
15083 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
15084 add support for /dev/md/N devices and handle LVM double dash escaping.
15086 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
15088 * config.guess: Update to latest version from config git.
15089 * config.sub: Likewise.
15091 2008-09-03 Robert Millan <rmh@aybabtu.com>
15093 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
15094 `disk->total_sectors'.
15096 2008-09-01 Colin D Bennett <colin@gibibit.com>
15098 * include/grub/normal.h: Fixed incorrect comment for
15099 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
15101 2008-09-01 Colin D Bennett <colin@gibibit.com>
15103 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
15104 values with defines.
15106 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
15107 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
15108 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
15109 (GRUB_VBE_MODEATTR_COLOR): Likewise.
15110 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
15111 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
15112 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
15113 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
15114 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
15115 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
15116 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
15117 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
15118 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
15119 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
15120 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
15121 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
15122 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
15123 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
15124 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
15126 2008-08-31 Robert Millan <rmh@aybabtu.com>
15128 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
15130 (grub_multiboot): Fix a few warnings.
15132 2008-08-31 Robert Millan <rmh@aybabtu.com>
15134 * loader/i386/pc/multiboot.c: Update comment not to say that
15135 boot_device support is unimplemented.
15137 2008-08-31 Robert Millan <rmh@aybabtu.com>
15139 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
15140 or memory map support are unimplemented.
15142 2008-08-31 Colin D Bennett <colin@gibibit.com>
15144 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
15146 2008-08-31 Colin D Bennett <colin@gibibit.com>
15148 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
15149 total video memory in 'vbeinfo' output; show color format details for
15152 2008-08-30 Pavel Roskin <proski@gnu.org>
15154 * util/genmoddep.c: Remove for real this time.
15155 * DISTLIST: Remove util/genmoddep.c.
15157 2008-08-30 Robert Millan <rmh@aybabtu.com>
15159 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
15160 as required by Multiboot spec (it was already 4-byte aligned, but
15163 2008-08-29 Pavel Roskin <proski@gnu.org>
15165 * kern/powerpc/ieee1275/crt0.S: Rename to ...
15166 * kern/powerpc/ieee1275/startup.S: ... this.
15167 * conf/powerpc-ieee1275.rmk: Adjust for the above.
15168 * DISTLIST: Likewise.
15170 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
15171 grub/cpu/kernel.h. Add start label for consistency with other
15172 platforms. Add grub_prefix immediately after start. Add jump
15173 to the code after grub_prefix.
15174 * include/grub/powerpc/kernel.h: Provide valid values for
15175 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
15177 2008-08-29 Bean <bean123ch@gmail.com>
15179 * configure.ac: Change host_os to cygwin for mingw.
15180 (asprintf): New check for function.
15182 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
15183 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
15185 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
15186 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
15187 sync, sleep and grub_util_get_disk_size for mingw.
15189 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
15190 to get size in mingw.
15191 (open_device): Use flag O_BINARY if it's defined.
15192 (find_root_device): Add dummy code for mingw.
15194 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
15195 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
15196 (get_scsi_disk_name): Return 0 for mingw.
15198 * util/hostfs.c: #include <grub/util/misc.h>.
15199 (grub_hostfs_open): Use "rb" flag to open file, use
15200 grub_util_get_disk_size to get disk size for mingw.
15202 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
15203 (asprintf): New function if HAVE_ASPRINTF is not set.
15204 (sync): New function for mingw.
15206 (grub_util_get_disk_size): Likewise.
15208 2008-08-28 Pavel Roskin <proski@gnu.org>
15210 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15213 2008-08-28 Robert Millan <rmh@aybabtu.com>
15215 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
15217 2008-08-28 Robert Millan <rmh@aybabtu.com>
15219 Change find_grub_drive() syntax so it doesn't prevent it from
15220 detecting NULL names as errors.
15222 * util/biosdisk.c (find_grub_drive): Move free slot search code
15224 (find_free_slot): ... to here.
15225 (read_device_map): Use find_free_slot() to search for free slots.
15227 2008-08-27 Marco Gerards <marco@gnu.org>
15229 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
15230 (scsi_mod_SOURCES): New variable.
15231 (scsi_mod_CFLAGS): Likewise
15232 (scsi_mod_LDFLAGS): Likewise.
15234 * disk/scsi.c: New file.
15236 * include/grub/scsi.h: Likewise.
15238 * include/grub/scsicmd.h: Likewise.
15240 * disk/ata.c: Include <grub/scsi.h>.
15241 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
15243 (grub_ata_iterate): Skip ATAPI devices.
15244 (grub_ata_open): Only handle ATAPI devices.
15245 (struct grub_atapi_read): Removed.
15246 (grub_atapi_readsector): Likewise.
15247 (grub_ata_read): No longer handle ATAPI devices.
15248 (grub_ata_write): Likewise.
15249 (grub_atapi_iterate): New function.
15250 (grub_atapi_read): Likewise.
15251 (grub_atapi_write): Likewise.
15252 (grub_atapi_open): Likewise.
15253 (grub_atapi_close): Likewise.
15254 (grub_atapi_dev): New variable.
15255 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
15256 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
15258 * include/grub/disk.h (enum grub_disk_dev_id): Add
15259 `GRUB_DISK_DEVICE_SCSI_ID'.
15261 2008-08-26 Robert Millan <rmh@aybabtu.com>
15263 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
15264 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
15267 2008-08-23 Bean <bean123ch@gmail.com>
15269 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
15270 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15271 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
15272 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
15274 (raid5rec_mod_SOURCES): New macro.
15275 (raid5rec_mod_CFLAGS): Likewise.
15276 (raid5rec_mod_LDFLAGS): Likewise.
15277 (raid6rec_mod_SOURCES): Likewise.
15278 (raid6rec_mod_CFLAGS): Likewise.
15279 (raid6rec_mod_LDFLAGS): Likewise.
15280 (mdraid_mod_SOURCES): Likewise.
15281 (mdraid_mod_CFLAGS): Likewise.
15282 (mdraid_mod_LDFLAGS): Likewise.
15283 (dm_nv_mod_SOURCES): Likewise.
15284 (dm_nv_mod_CFLAGS): Likewise.
15285 (dm_nv_mod_LDFLAGS): Likewise.
15287 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
15288 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15289 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15291 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
15292 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15294 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15296 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15298 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15300 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15302 * disk/raid5_recover.c: New file.
15304 * disk/raid6_recover.c: Likewise.
15306 * disk/mdraid_linux.c: Likewise.
15308 * disk/dmraid_nvidia.c: Likewise.
15310 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
15313 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
15314 calculate the size of raid device.
15315 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
15316 different layout of raid5.
15317 (grub_raid_scan_device): Remove code specific to mdraid.
15318 (grub_raid_list): New variable.
15319 (free_array): New function.
15320 (grub_raid_register): Likewise.
15321 (grub_raid_unregister): Likewise.
15322 (grub_raid_rescan): Likewise.
15323 (GRUB_MOD_INIT): Don't iterate device here.
15324 (GRUB_MOD_FINI): Use free_array to release resource.
15326 * include/grub/raid.h: Remove macro and structure specific to mdraid.
15327 (grub_raid5_recover_func_t): New function variable type.
15328 (grub_raid6_recover_func_t): Likewise.
15329 (grub_raid5_recover_func): New variable.
15330 (grub_raid6_recover_func): Likewise.
15331 (grub_raid_register): New function.
15332 (grub_raid_unregister): Likewise.
15333 (grub_raid_rescan): Likewise.
15334 (grub_raid_block_xor): Likewise.
15336 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
15337 (CMD_CRC): New macro.
15339 (read_file): Handle device as well as file.
15340 (cmd_crc): New function.
15341 (fstest): Handle multiple disks.
15342 (options): Remove part, raw and long, add root and diskcount.
15343 (usage): Add crc, remove -p, -r, -l, add -r and -c.
15344 (main): Find the first non option entry and ignore subsequent options,
15345 add handling for the new options, support multiple disks.
15347 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
15349 2008-08-23 Bean <bean123ch@gmail.com>
15351 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
15353 * genfslist.sh: Ignore kernel.mod.
15355 * genpartmaplist.sh: Likewise.
15357 2008-08-23 Robert Millan <rmh@aybabtu.com>
15359 * util/getroot.c (find_root_device): Skip anything that starts with
15360 a dot, not just directories. This avoids things like /dev/.tmp.md0.
15362 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
15364 * util/update-grub.in (GRUB_GFXMODE): Export variable.
15365 * util/grub.d/00_header.in: Allow the administrator to change default
15366 gfxmode via ${GRUB_GFXMODE}.
15368 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
15370 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
15372 2008-08-21 Robert Millan <rmh@aybabtu.com>
15374 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
15376 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
15377 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
15379 2008-08-20 Carles Pina i Estany <carles@pina.cat>
15381 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
15382 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
15384 2008-08-19 Robert Millan <rmh@aybabtu.com>
15386 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
15387 (struct grub_virtual_screen): Remove `cursor_color'.
15388 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
15390 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
15392 2008-08-18 Robert Millan <rmh@aybabtu.com>
15394 Unify (identical) linux_normal.c files.
15395 * loader/i386/efi/linux_normal.c: Move from here ...
15396 * loader/linux_normal.c: ... to here. Update all users.
15397 * loader/i386/pc/linux_normal.c: Delete. Update all users.
15398 * loader/i386/ieee1275/linux_normal.c: Likewise.
15400 2008-08-18 Robert Millan <rmh@aybabtu.com>
15402 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
15403 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
15404 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
15405 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
15406 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
15408 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
15409 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
15410 (GRUB_LINUX_CL_END_OFFSET): ... to here.
15411 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
15412 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
15413 (GRUB_EFI_CL_END_OFFSET): Rename to ...
15414 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
15415 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
15416 Initialize `params->video_cursor_x' and `params->video_cursor_y'
15417 portably using grub_getxy().
15418 Replace `-EFI' with `-bzImage' in boot message.
15420 2008-08-17 Robert Millan <rmh@aybabtu.com>
15422 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
15424 2008-08-17 Robert Millan <rmh@aybabtu.com>
15426 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
15428 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
15429 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
15430 (grub_machine_mmap_iterate): New function declaration.
15431 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
15433 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
15436 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
15437 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
15438 Move e820 parsing from here ...
15439 * kern/i386/pc/mmap.c: New file.
15440 (grub_machine_mmap_iterate): ... to here.
15442 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
15443 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
15444 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
15445 (grub_available_iterate): Redeclare to return `void', and redeclare
15446 its hook to use grub_uint64_t as addr and size parameters, and rename
15448 (grub_machine_mmap_iterate): ... this. Update all users.
15450 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
15451 to make it more readable. Rename to ...
15452 (grub_machine_mmap_iterate): ... this.
15454 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
15455 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
15456 (grub_multiboot): Allocate an extra region after the payload, and fill
15457 it with a Multiboot memory map. Adjust a.out loader to calculate size
15458 with the extra space.
15459 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
15460 with the extra space.
15462 2008-08-17 Carles Pina i Estany <carles@pina.cat>
15464 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
15466 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
15468 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
15469 mdate-sh to the list `find' searches for.
15470 * DISTLIST: Regenerated.
15472 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
15474 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
15475 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
15476 genmoddep.awk, gensymlist.sh.in.
15477 (DISTDIRS): Add bus, docs, hook, lib.
15478 * DISTLIST: Regenerated.
15479 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
15481 2008-08-16 Robert Millan <rmh@aybabtu.com>
15483 * disk/raid.c (grub_raid_init): Handle/report errors set by
15484 grub_device_iterate().
15485 * disk/lvm.c (grub_lvm_init): Likewise.
15487 2008-08-15 Bean <bean123ch@gmail.com>
15489 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15491 (datetime_mod_SOURCES): New macro.
15492 (datetime_mod_CFLAGS): Likewise.
15493 (datetime_mod_LDFLAGS): Likewise.
15494 (date_mod_SOURCES): Likewise.
15495 (date_mod_CFLAGS): Likewise.
15496 (date_mod_LDFLAGS): Likewise.
15497 (datehook_mod_SOURCES): Likewise.
15498 (datehook_mod_CFLAGS): Likewise.
15499 (datehook_mod_LDFLAGS): Likewise.
15501 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15503 (datetime_mod_SOURCES): New macro.
15504 (datetime_mod_CFLAGS): Likewise.
15505 (datetime_mod_LDFLAGS): Likewise.
15506 (date_mod_SOURCES): Likewise.
15507 (date_mod_CFLAGS): Likewise.
15508 (date_mod_LDFLAGS): Likewise.
15509 (datehook_mod_SOURCES): Likewise.
15510 (datehook_mod_CFLAGS): Likewise.
15511 (datehook_mod_LDFLAGS): Likewise.
15513 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15515 (datetime_mod_SOURCES): New macro.
15516 (datetime_mod_CFLAGS): Likewise.
15517 (datetime_mod_LDFLAGS): Likewise.
15518 (date_mod_SOURCES): Likewise.
15519 (date_mod_CFLAGS): Likewise.
15520 (date_mod_LDFLAGS): Likewise.
15521 (datehook_mod_SOURCES): Likewise.
15522 (datehook_mod_CFLAGS): Likewise.
15523 (datehook_mod_LDFLAGS): Likewise.
15525 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15527 (datetime_mod_SOURCES): New macro.
15528 (datetime_mod_CFLAGS): Likewise.
15529 (datetime_mod_LDFLAGS): Likewise.
15530 (date_mod_SOURCES): Likewise.
15531 (date_mod_CFLAGS): Likewise.
15532 (date_mod_LDFLAGS): Likewise.
15533 (datehook_mod_SOURCES): Likewise.
15534 (datehook_mod_CFLAGS): Likewise.
15535 (datehook_mod_LDFLAGS): Likewise.
15537 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15539 (datetime_mod_SOURCES): New macro.
15540 (datetime_mod_CFLAGS): Likewise.
15541 (datetime_mod_LDFLAGS): Likewise.
15542 (date_mod_SOURCES): Likewise.
15543 (date_mod_CFLAGS): Likewise.
15544 (date_mod_LDFLAGS): Likewise.
15545 (datehook_mod_SOURCES): Likewise.
15546 (datehook_mod_CFLAGS): Likewise.
15547 (datehook_mod_LDFLAGS): Likewise.
15549 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
15551 * commands/date.c: New file.
15553 * hook/datehook.c: Likewise.
15555 * include/grub/lib/datetime.h: Likewise.
15557 * include/grub/i386/cmos.h: Likewise.
15559 * lib/datetime.c: Likewise.
15561 * lib/i386/datetime.c: Likewise.
15563 * lib/efi/datetime.c: Likewise.
15565 2008-08-14 Robert Millan <rmh@aybabtu.com>
15567 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
15568 (grub_mkelfimage_SOURCES): New variable.
15569 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
15571 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
15572 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
15573 * conf/powerpc-ieee1275.rmk: Likewise.
15574 * conf/i386-ieee1275.rmk: Likewise.
15576 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
15577 * kern/i386/coreboot/init.c: Likewise.
15579 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
15580 with `<grub/cpu/kernel.h>'.
15581 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
15583 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
15584 * kern/i386/coreboot/startup.S: Likewise.
15586 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
15587 (GRUB_MOD_GAP): Remove.
15588 * include/grub/powerpc/kernel.h: New file.
15589 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
15590 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15591 * include/grub/i386/kernel.h: New file.
15592 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
15593 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
15594 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15596 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
15598 Use --directory when invoking grub_mkimage.
15600 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
15601 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
15602 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
15603 and GRUB_KERNEL_CPU_PREFIX.
15605 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
15607 * include/grub/err.h (grub_err_printf): New function prototype.
15608 * util/misc.c (grub_err_printf): New function.
15609 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
15611 * kern/err.c (grub_print_error): Use grub_err_printf.
15613 2008-08-13 Robert Millan <rmh@aybabtu.com>
15615 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
15617 2008-08-13 Robert Millan <rmh@aybabtu.com>
15619 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
15622 2008-08-12 Robert Millan <rmh@aybabtu.com>
15624 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
15625 of the relocation code from here ...
15626 (grub_multiboot): ... to here.
15627 (forward_relocator, backward_relocator): Move from here ...
15628 * kern/i386/loader.S (grub_multiboot_forward_relocator)
15629 (grub_multiboot_backward_relocator): ... to here.
15630 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
15631 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
15632 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
15633 (grub_multiboot_forward_relocator_end)
15634 (grub_multiboot_backward_relocator)
15635 (grub_multiboot_backward_relocator_end): New variables.
15637 2008-08-12 Bean <bean123ch@gmail.com>
15639 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
15641 2008-08-11 Robert Millan <rmh@aybabtu.com>
15643 * kern/i386/linuxbios/startup.S: Move from here ...
15644 * kern/i386/coreboot/startup.S: ... to here.
15646 * kern/i386/linuxbios/init.c: Move from here ...
15647 * kern/i386/coreboot/init.c: ... to here.
15649 * kern/i386/linuxbios/table.c: Move from here ...
15650 * kern/i386/coreboot/mmap.c: ... to here.
15652 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
15654 2008-08-11 Robert Millan <rmh@aybabtu.com>
15656 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
15657 errors. Leave it to the upper layer to handle them.
15659 2008-08-09 Christian Franke <franke@computer.org>
15661 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
15662 * conf/common.rmk: Install `grub-pe2elf' only if requested.
15663 Install `grub.d/10_windows' only on Cygwin.
15664 * configure.ac: Add subst of `target_os'.
15665 Check `target_os' also before setting TARGET_OBJ2ELF.
15666 Add `--enable-grub-pe2elf'.
15668 2008-08-08 Robert Millan <rmh@aybabtu.com>
15670 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15671 (grub_last_time): Change type to grub_uint64_t.
15672 (grub_disk_open): Migrate code from to using grub_get_time_ms().
15673 (grub_disk_close): Likewise.
15675 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15676 (run_menu): Migrate code from to using grub_get_time_ms().
15678 * util/misc.c (grub_get_time_ms): New function.
15680 2008-08-08 Marco Gerards <marco@gnu.org>
15682 * disk/ata.c (grub_ata_regget): Change return type to
15684 (grub_ata_regget2): Likewise.
15685 (grub_ata_wait_status): New function.
15686 (grub_ata_wait_busy): Removed function, updated all users to use
15687 `grub_ata_wait_status'.
15688 (grub_ata_wait_drq): Likewise.
15689 (grub_ata_cmd): New function.
15690 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
15692 (grub_ata_pio_write): Add error handling.
15693 (grub_atapi_identify): Likewise.
15694 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
15696 (grub_ata_identify): Use `grub_ata_cmd' and improve error
15697 handling. Actually use the detected registers. Reorder the
15698 detection logic such that it is easier to read.
15699 (grub_ata_pciinit): Do not assign the same ID to each controller.
15700 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
15702 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
15704 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
15706 2008-08-08 Marco Gerards <marco@gnu.org>
15710 2008-08-07 Bean <bean123ch@gmail.com>
15712 * include/grub/x86_64/pci.h: New file.
15714 2008-08-07 Christian Franke <franke@computer.org>
15716 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
15717 (TIMER2_GATE): Likewise.
15718 (grub_pit_wait): Add enable/disable of the timer2 gate
15719 bit of port 0x61. This fixes a possible infinite loop.
15721 2008-08-07 Bean <bean123ch@gmail.com>
15723 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
15724 kern/i386/tsc.c and kern/i386/pit.c.
15726 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
15729 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
15732 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
15734 2008-08-07 Bean <bean123ch@gmail.com>
15736 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
15738 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
15740 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
15741 multiple inclusion. Add #include <grub/types.h>.
15743 2008-08-06 Christian Franke <franke@computer.org>
15745 * conf/common.rmk: Build and install `10_windows'.
15746 * util/grub.d/10_windows.in: New script.
15748 2008-08-06 Pavel Roskin <proski@gnu.org>
15750 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
15752 2008-08-06 Robert Millan <rmh@aybabtu.com>
15754 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
15755 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
15757 2008-08-06 Bean <bean123ch@gmail.com>
15759 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
15760 (grub_pxefs_fs_int): Remove dummy definition.
15761 (grub_pxefs_open): Use data->block_size to store the current block
15763 (grub_pxefs_read): Use block size stored in data->block_size. As the
15764 value of grub_pxe_blksize can be changed after the file is opened.
15766 2008-08-06 Bean <bean123ch@gmail.com>
15768 * fs/i386/pc/pxe.c (curr_file): new variable.
15769 (grub_pxefs_open): Simply the handling of pxe file system. Don't
15770 require the dummy internal file system anymore.
15771 (grub_pxefs_read): Removed.
15772 (grub_pxefs_close): Likewise.
15773 (grub_pxefs_fs_int): Likewise.
15774 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
15775 connection when we switch file.
15776 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
15778 2008-08-06 Robert Millan <rmh@aybabtu.com>
15780 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
15782 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
15783 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
15785 * kern/i386/halt.c: New file.
15786 * kern/i386/reboot.c: Likewise.
15787 * include/grub/i386/reboot.h: Likewise.
15788 * include/grub/i386/halt.h: Likewise.
15790 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
15791 Include `<grub/cpu/halt.h>'.
15792 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
15793 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
15795 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
15796 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
15797 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
15798 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
15799 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
15800 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
15802 * include/grub/i386/at_keyboard.h: ... to here.
15804 2008-08-05 Robert Millan <rmh@aybabtu.com>
15806 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
15807 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
15808 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
15809 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
15810 `kern/generic/millisleep.c'.
15812 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
15813 instead of grub_get_rtc().
15814 (grub_tsc_init): Initialize `tsc_boot_time'.
15816 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
15817 (grub_machine_init): Use grub_tsc_init() rather than
15818 installing an RTC-based handler via grub_install_get_time_ms().
15820 * kern/i386/pit.c: New file.
15821 * include/grub/i386/pit.h: Likewise.
15823 2008-08-05 Bean <bean123ch@gmail.com>
15825 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
15827 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
15828 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
15829 (pxe_mod_SOURCES): New macro.
15830 (pxe_mod_CFLAGS): Likewise.
15831 (pxe_mod_LDFLAGS): Likewise.
15832 (pxecmd_mod_SOURCES): Likewise.
15833 (pxecmd_mod_CFLAGS): Likewise.
15834 (pxecmd_mod_LDFLAGS): Likewise.
15836 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
15837 (grub_pxe_call): Likewise.
15839 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
15841 * commands/i386/pc/pxecmd.c: New file.
15843 * fs/i386/pc/pxe.c: Likewise.
15845 * include/grub/i386/pc/pxe.h: Likewise.
15847 2008-08-05 Bean <bean123ch@gmail.com>
15849 * util/console.c (grub_console_cur_color): New variable.
15850 (grub_console_standard_color): Likewise.
15851 (grub_console_normal_color): Likewise.
15852 (grub_console_highlight_color): Likewise.
15853 (color_map): Likewise.
15854 (use_color): Likewise.
15855 (NUM_COLORS): New macro.
15856 (grub_ncurses_setcolorstate): Handle color properly.
15857 (grub_ncurses_setcolor): Don't change color here, just remember the
15858 settings, color will be set in grub_ncurses_setcolorstate.
15859 (grub_ncurses_getcolor): New function.
15860 (grub_ncurses_init): Initialize color pairs.
15861 (grub_ncurses_term): New member grub_ncurses_getcolor.
15863 2008-08-05 Colin D Bennett <colin@gibibit.com>
15865 High resolution timer support. Implemented for x86 CPUs using TSC.
15866 Extracted generic grub_millisleep() so it's linked in only as needed.
15867 This requires a Pentium compatible CPU; if the RDTSC instruction is
15868 not supported, then it falls back on the generic grub_get_time_ms()
15869 implementation that uses the machine's RTC.
15871 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
15872 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
15873 `kern/generic/millisleep.c'.
15875 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
15876 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
15878 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
15879 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
15881 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
15883 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15884 `kern/generic/millisleep.c'.
15886 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
15888 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
15890 * kern/generic/rtc_get_time_ms.c: New file.
15892 * kern/generic/millisleep.c: New file.
15894 * kern/misc.c: Don't include
15895 <kern/time.h> anymore.
15896 (grub_millisleep_generic): Removed.
15898 * commands/sleep.c (grub_interruptible_millisleep): Uses
15899 grub_get_time_ms() instead of grub_get_rtc().
15901 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
15903 (grub_cpu_is_cpuid_supported): New inline function.
15904 (grub_cpu_is_tsc_supported): New inline function.
15905 (grub_tsc_init): New function prototype.
15906 (grub_tsc_get_time_ms): New function prototype.
15908 * kern/i386/tsc.c (grub_get_time_ms): New file.
15910 * include/grub/time.h: Include <grub/types.h.
15911 (grub_millisleep_generic): Removed.
15912 (grub_get_time_ms): New prototype.
15913 (grub_install_get_time_ms): New prototype.
15914 (grub_rtc_get_time_ms): New prototype.
15916 * kern/time.c (grub_get_time_ms): New function.
15917 (grub_install_get_time_ms): New function.
15919 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
15920 <grub/time.h> anymore.
15921 (grub_millisleep): Removed.
15922 (grub_machine_init): Call grub_tsc_init.
15924 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
15925 get_time_ms() implementation.
15927 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
15928 (ieee1275_get_time_ms): New function.
15929 (grub_machine_init): Install get_time_ms() implementation.
15931 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
15932 (grub_machine_init): Call grub_tsc_init().
15933 (grub_millisleep): Removed.
15935 * kern/ieee1275/init.c (grub_millisleep): Removed.
15936 (grub_machine_init): Install ieee1275_get_time_ms()
15938 (ieee1275_get_time_ms): New function.
15939 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
15942 2008-08-05 Marco Gerards <marco@gnu.org>
15944 * disk/ata.c: Include <grub/pci.h>.
15945 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
15946 (grub_ata_initialize): Rewritten.
15947 (grub_ata_device_initialize): New function.
15949 2008-08-04 Pavel Roskin <proski@gnu.org>
15951 * kern/main.c: Include grub/mm.h.
15953 2008-08-04 Robert Millan <rmh@aybabtu.com>
15955 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
15956 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
15957 corruption problem).
15959 2008-08-04 Robert Millan <rmh@aybabtu.com>
15961 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
15962 warnings introduced in my last commit.
15964 2008-08-03 Robert Millan <rmh@aybabtu.com>
15966 Make PCI available on all i386 architectures.
15968 * include/grub/i386/pc/pci.h: Move from here ...
15969 * include/grub/i386/pci.h: ... to here.
15971 * include/grub/i386/pc/pci.h: Remove.
15972 * include/grub/i386/efi/pci.h: Remove.
15973 * include/grub/x86_64/efi/pci.h: Remove.
15975 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
15976 `<grub/cpu/pci.h>'.
15978 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
15979 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
15980 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
15982 * conf/i386-ieee1275.rmk: Likewise.
15984 2008-08-03 Robert Millan <rmh@aybabtu.com>
15986 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
15987 (grub_console_setcursor): Make it possible to set cursor off.
15989 2008-08-03 Robert Millan <rmh@aybabtu.com>
15991 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
15992 of modules instead of assuming which platform provides what.
15993 * util/update-grub.in: Likewise.
15995 2008-08-03 Robert Millan <rmh@aybabtu.com>
15997 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
15998 instead of `grub_install_dos_part' to determine whether a drive needs
15999 to be prepended to prefix (`grub_install_dos_part' is not reliable,
16000 because it can be overridden when loading GRUB via Multiboot).
16002 2008-08-02 Robert Millan <rmh@aybabtu.com>
16004 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
16006 2008-08-02 Robert Millan <rmh@aybabtu.com>
16008 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
16009 of informational grub_dprintf() calls.
16011 2008-08-02 Robert Millan <rmh@aybabtu.com>
16013 * disk/memdisk.c (memdisk_size): Don't initialize.
16014 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
16016 * include/grub/i386/pc/kernel.h
16017 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
16018 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
16019 (grub_memdisk_image_size, grub_arch_memdisk_addr)
16020 (grub_arch_memdisk_size): Remove.
16022 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
16023 field (was only used to transfer a constant). Add `type' field to
16024 support multiple module types.
16025 (grub_module_iterate): New function.
16027 * kern/device.c (grub_device_open): Do not hide error messages
16028 when grub_disk_open() fails. Use grub_print_error() instead.
16030 * kern/i386/pc/init.c (grub_arch_modules_addr)
16031 (grub_arch_memdisk_size): Remove functions.
16032 (grub_arch_modules_addr): Return the module address in high memory
16033 (now that it isn't copied anymore).
16035 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
16036 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
16037 decompression routine (grub_total_module_size already includes that
16038 now). Don't copy modules back to low memory.
16040 * kern/main.c: Include `<grub/mm.h>'.
16041 (grub_load_modules): Split out (and use) ...
16042 (grub_module_iterate): ... this function, which iterates through
16043 module objects and runs a hook.
16044 Comment out grub_mm_init_region() call, as it would cause non-ELF
16045 modules to be overwritten.
16047 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
16048 the memdisk image in its own region, make it part of the module list.
16049 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
16050 (main): Parse --memdisk|-m option, and pass user-provided path as
16051 parameter to generate_image().
16052 (add_segments): Pass `memdisk_path' down to load_modules().
16053 (load_modules): Embed memdisk image in module section when requested.
16054 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
16055 `header.type' instead of `header.offset'.
16057 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
16058 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
16059 (memdisk_mod_LDFLAGS): New variables.
16060 * conf/i386-coreboot.rmk: Likewise.
16061 * conf/i386-ieee1275.rmk: Likewise.
16063 2008-08-02 Robert Millan <rmh@aybabtu.com>
16065 * loader/i386/pc/multiboot.c (playground, forward_relocator)
16066 (backward_relocator): New variables. Used to allocate and relocate
16067 the payload, respectively.
16068 (grub_multiboot_load_elf32): Load into heap instead of requested
16069 address, install the appropriate relocator code in each bound of
16070 the payload, and set the entry point such that
16071 grub_multiboot_real_boot() will jump to one of them.
16073 * kern/i386/loader.S (grub_multiboot_payload_size)
16074 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16075 (grub_multiboot_payload_entry_offset): New variables.
16076 (grub_multiboot_real_boot): Set cpu context to what the relocator
16077 expects, and jump to the relocator instead of the payload.
16079 * include/grub/i386/loader.h (grub_multiboot_payload_size)
16080 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16081 (grub_multiboot_payload_entry_offset): Export.
16083 2008-08-01 Bean <bean123ch@gmail.com>
16085 * normal/menu_entry.c (editor_getline): Don't return the original
16086 string as result, as it will be released by lexer once it has done
16089 2008-08-01 Robert Millan <rmh@aybabtu.com>
16091 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
16092 within menuentries, not before them.
16093 util/grub.d/10_hurd.in: Likewise.
16095 2008-08-01 Bean <bean123ch@gmail.com>
16097 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
16098 (bufio_mod_SOURCES): New macro.
16099 (bufio_mod_CFLAGS): Likewise.
16100 (bufio_mod_LDFLAGS): Likewise.
16102 * include/grub/bufio.h: New file.
16104 * io/bufio.c: Likewise.
16106 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
16107 (grub_video_reader_png): Use grub_buffile_open to open file.
16109 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
16110 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
16112 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
16113 (grub_video_reader_tga): Use grub_buffile_open to open file.
16115 * font/manager.c: Include <grub/bufio.h>.
16116 (add_font): Use grub_buffile_open to open file.
16118 2008-07-31 Robert Millan <rmh@aybabtu.com>
16120 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
16121 ELF segments, use a macro for arbitrarily accessing any of them instead
16122 of preparing a pointer that allows access to one at a time.
16123 (grub_multiboot_load_elf64): Likewise.
16125 2008-07-31 Bean <bean123ch@gmail.com>
16127 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
16128 GRUB_KERNEL_MACHINE_DATA_END.
16130 2008-07-30 Robert Millan <rmh@aybabtu.com>
16132 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
16133 Increase from 0x50 to 0x60.
16134 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
16135 use UUIDs to identify the root drive for them. If that's not
16137 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
16138 check, for cross-disk installs.
16140 2008-07-30 Robert Millan <rmh@aybabtu.com>
16142 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
16143 is non-empty, use it to set the `prefix' environment variable instead
16144 of the usual approach.
16145 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
16146 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
16147 environment variable instead of dummy make_install_device().
16149 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
16150 (start): Insert a data section, with `grub_prefix' variable.
16151 * kern/i386/linuxbios/startup.S: Likewise.
16153 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
16154 New variable reference.
16155 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
16156 New macro. Defines offset of `grub_prefix' within startup.S (relative
16158 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
16159 section within startup.S (relative to `start').
16160 * include/grub/i386/coreboot/kernel.h: Likewise.
16162 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
16163 Overwrite grub_prefix with its contents, at the beginning of the
16165 (main): Understand -p|--prefix.
16167 2008-07-30 Robert Millan <rmh@aybabtu.com>
16169 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
16171 2008-07-30 Robert Millan <rmh@aybabtu.com>
16173 * term/i386/pc/vga_text.c (grub_console_cls): Use
16174 grub_console_gotoxy() to go back to beginning of the screen.
16175 Found by Patrick Georgi <patrick.georgi@coresystems.de>
16177 2008-07-29 Christian Franke <franke@computer.org>
16179 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
16180 Add conversion of emulated mount points on Cygwin.
16182 2008-07-29 Christian Franke <franke@computer.org>
16184 * util/update-grub.in: Add a check for admin
16186 Remove old `grub.cfg.new' before creation.
16187 Add `-f' to `mv' to handle the different filesystem
16188 semantics of Windows.
16190 2008-07-29 Bean <bean123ch@gmail.com>
16192 * normal/main.c (get_line): Fix buffer overflow bug.
16194 2008-07-28 Robert Millan <rmh@aybabtu.com>
16196 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
16197 (struct grub_apple_header): New struct. Describes the layout of
16198 the partmap header.
16199 (apple_partition_map_iterate): Check the header magic as well as the
16200 partition magic (which was already being checked).
16202 2008-07-28 Pavel Roskin <proski@gnu.org>
16204 * genmk.rb: Add a warning to the beginning of the output that
16205 it's a generated file and should not be edited.
16207 2008-07-28 Robert Millan <rmh@aybabtu.com>
16209 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
16210 with the same number are found, just use issue a warning with
16211 grub_dprintf(), as this error has been reported to be non-fatal.
16213 2008-07-27 Robert Millan <rmh@aybabtu.com>
16215 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
16218 2008-07-27 Bean <bean123ch@gmail.com>
16220 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
16221 (grub_fat_find_dir): Ignore case when comparing filename.
16223 2008-07-27 Bean <bean123ch@gmail.com>
16225 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
16226 smallino, as it's more descriptive, and i8count can be confused with
16227 the other field count.
16228 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
16231 2008-07-27 Bean <bean123ch@gmail.com>
16233 * commands/crc.c: New file.
16235 * lib/crc.c: Likewise.
16237 * include/grub/lib/crc.h: Likewise.
16239 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
16241 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
16242 (hexdump): Move this function to ...
16244 * lib/hexdump.c: ... here.
16246 * include/grub/hexdump.h: Renamed to ...
16248 * include/grub/lib/hexdump.h: ... this.
16250 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
16252 * util/grub-editenv.c: Likewise.
16254 * include/envblk.h: Renamed to ...
16256 * include/lib/envblk.h: ... this.
16258 * util/envblk.c: Renamed to ...
16260 * lib/envblk.c: ... this.
16262 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
16264 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
16265 (pkglib_MODULES): Add crc.mod.
16266 (hexdump_mod_SOURCES): Add lib/hexdump.c.
16267 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
16268 (crc_mod_SOURCES): New macro.
16269 (crc_mod_CFLAGS): Likewise.
16270 (crc_mod_LDFLAGS): Likewise.
16272 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
16274 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16276 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16278 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16280 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16282 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
16284 * commands/help.c: Include <grub/term.h>.
16285 (TERM_WIDTH): Removed. Updated all users.
16287 2008-07-27 Pavel Roskin <proski@gnu.org>
16289 * util/getroot.c (find_root_device): Rephrase a comment to avoid
16290 spurious warnings about a comment within a comment.
16292 2008-07-25 Robert Millan <rmh@aybabtu.com>
16294 * util/getroot.c (find_root_device): Skip devices that match
16295 /dev/dm-[0-9]. This lets the real device be found for any type of
16296 abstraction (LVM, EVMS, RAID..).
16297 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
16298 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
16299 device is found first, find_root_device() will now skip it.
16301 2008-07-24 Pavel Roskin <proski@gnu.org>
16303 * include/grub/types.h: Use __builtin_bswap32() and
16304 __builtin_bswap64() with gcc 4.3 and newer.
16306 2008-07-24 Christian Franke <franke@computer.org>
16308 * util/i386/pc/grub-install.in: If `--debug' is specified,
16309 pass `--verbose' to grub-setup.
16310 Abort script if make_system_path_relative_to_its_root() fails.
16312 2008-07-24 Bean <bean123ch@gmail.com>
16314 * configure.ac: Fixed a bug caused by the previous cygwin patch,
16315 variable `target_platform' should be `platform'.
16317 2008-07-24 Bean <bean123ch@gmail.com>
16319 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
16320 (grub_png_init_fixed_block): New function.
16321 (grub_png_decode_image_data): Handle fixed huffman code compression.
16323 2008-07-24 Bean <bean123ch@gmail.com>
16325 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
16326 (grub_pe2elf_SOURCES): New macro.
16327 (CLEANFILES): Add grub-pe2elf.
16329 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
16330 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
16331 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
16332 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
16333 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
16334 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
16335 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
16336 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
16337 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
16338 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
16339 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
16340 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
16341 (GRUB_PE32_DT_FUNCTION): Likewise.
16342 (GRUB_PE32_REL_I386_DIR32): Likewise.
16343 (GRUB_PE32_REL_I386_REL32): Likewise.
16344 (grub_pe32_symbol): New structure.
16345 (grub_pe32_reloc): Likewise.
16347 * util/grub-pe2elf.c: New file.
16349 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
16350 start symbol in non pc platform.
16352 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
16354 The following patches are from Christian Franke.
16356 * include/grub/dl.h: Remove .previous, gas supports this only
16359 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
16360 Remove .type, gas supports this only for ELF format.
16362 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
16363 nullbytes in symbol table. This fixes an infinite loop if table is
16366 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
16367 TARGET_IMG_LDFLAGS and EXEEXT.
16369 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
16370 TARGET_IMG_LDFLAGS_AC.
16371 (grub_CHECK_STACK_ARG_PROBE): New function.
16373 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
16375 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
16377 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
16378 to set TARGET_IMG_LD* accordingly.
16379 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
16380 Add call to grub_CHECK_STACK_ARG_PROBE.
16381 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
16383 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
16385 * genmk.rb: Add EXEEXT to CLEANFILES.
16387 2008-07-23 Robert Millan <rmh@aybabtu.com>
16389 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
16390 define the codes for arrows and lines used for the menu).
16391 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
16394 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
16395 fonts, because the latter are too slow.
16397 2008-07-21 Bean <bean123ch@gmail.com>
16399 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
16400 a20. Run keyboard test last, as it will cause macbook to halt.
16402 2008-07-18 Pavel Roskin <proski@gnu.org>
16404 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
16405 load foreign architecture modules correctly anyway. Keep
16406 support for loading host architecture modules, whether we
16407 compile them or not.
16409 2008-07-17 Pavel Roskin <proski@gnu.org>
16411 * configure.ac: Use -m32 or -m64 regardless of whether we had to
16412 change target_cpu. The compiler default can mismatch target_cpu
16415 * disk/efi/efidisk.c: Fix format warnings on x86_64.
16416 * kern/efi/efi.c: Likewise.
16418 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
16419 target compiler is functional.
16420 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
16423 * configure.ac: Default to efi platform for x86_64-apple. Allow
16424 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
16425 adjustments from the rest, only do them if target is not
16426 explicitly given. Merge other adjustments with the final sanity
16427 check. Remove an extraneous check for supported CPU. Be
16428 specific which CPU and which platform is not supported.
16430 * configure.ac: Default to pc platform for x86_64.
16432 2008-07-17 Robert Millan <rmh@aybabtu.com>
16434 Partial LinuxBIOS -> Coreboot rename.
16436 * conf/i386-linuxbios.rmk: Renamed to ...
16437 * conf/i386-coreboot.rmk: ... this.
16438 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
16439 * configure.ac: Accept "coreboot" as input platform (but maintain
16440 compatibility with "linuxbios").
16441 * include/grub/i386/linuxbios: Renamed to ...
16442 * include/grub/i386/coreboot: ... this.
16444 2008-07-17 Bean <bean123ch@gmail.com>
16446 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
16447 (appleldr_mod_SOURCE): New variable.
16448 (appleldr_mod_CFLAGS): Likewise.
16449 (appleldr_mod_LDFLAGS): Likewise.
16450 (pci_mod_SOURCES): Likewise.
16451 (pci_mod_CFLAGS): Likewise.
16452 (pci_mod_LDFLAGS): Likewise.
16453 (lspci_mod_SOURCES): Likewise.
16454 (lspci_mod_CFLAGS): Likewise.
16455 (lspci_mod_LDFLAGS): Likewise.
16457 * conf/x86_64-efi.rmk: New file.
16459 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
16461 (grub_efidisk_write): Likewise.
16463 * include/efi/api.h (efi_call_0): New macro.
16464 (efi_call_1): Likewise.
16465 (efi_call_2): Likewise.
16466 (efi_call_3): Likewise.
16467 (efi_call_4): Likewise.
16468 (efi_call_5): Likewise.
16469 (efi_call_6): Likewise.
16471 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
16472 grub_rescue_cmd_chainloader.
16474 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
16475 (grub_pe32_optional_header): Change some fields based on i386 or
16477 (GRUB_PE32_PE32_MAGIC): Likewise.
16479 * include/grub/efi/uga_draw.h: New file.
16481 * include/grub/elf.h (STN_ABS): New constant.
16482 (R_X86_64_NONE): Relocation constant for x86_64.
16483 (R_X86_64_64): Likewise.
16484 (R_X86_64_PC32): Likewise.
16485 (R_X86_64_GOT32): Likewise.
16486 (R_X86_64_PLT32): Likewise.
16487 (R_X86_64_COPY): Likewise.
16488 (R_X86_64_GLOB_DAT): Likewise.
16489 (R_X86_64_JUMP_SLOT): Likewise.
16490 (R_X86_64_RELATIVE): Likewise.
16491 (R_X86_64_GOTPCREL): Likewise.
16492 (R_X86_64_32): Likewise.
16493 (R_X86_64_32S): Likewise.
16494 (R_X86_64_16): Likewise.
16495 (R_X86_64_PC16): Likewise.
16496 (R_X86_64_8): Likewise.
16497 (R_X86_64_PC8): Likewise.
16499 * include/grub/i386/efi/pci.h: New file.
16501 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
16502 Change it value based on platform.
16503 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
16504 (GRUB_E820_RAM): Likewise.
16505 (GRUB_E820_RESERVED): Likewise.
16506 (GRUB_E820_ACPI): Likewise.
16507 (GRUB_E820_NVS): Likewise.
16508 (GRUB_E820_EXEC_CODE): Likewise.
16509 (GRUB_E820_MAX_ENTRY): Likewise.
16510 (grub_e820_mmap): New structure.
16511 (linux_kernel_header): Change the efi field according to different
16512 kernel version, also field from linux_kernel_header.
16514 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
16516 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
16517 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
16518 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
16519 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
16520 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
16521 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
16522 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
16523 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
16524 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
16525 (GRUB_PCI_ADDR_IO_MASK): Likewise.
16527 * include/grub/x86_64/efi/kernel.h: New file.
16529 * include/grub/x86_64/efi/loader.h: Likewise.
16531 * include/grub/x86_64/efi/machine.h: Likewise.
16533 * include/grub/x86_64/efi/pci.h: Likewise.
16535 * include/grub/x86_64/efi/time.h: Likewise.
16537 * include/grub/x86_64/linux.h: Likewise.
16539 * include/grub/x86_64/setjmp.h: Likewise.
16541 * include/grub/x86_64/time.h: Likewise.
16543 * include/grub/x86_64/types.h: Likewise.
16545 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
16546 GRUB_TARGET_SIZEOF_VOID_P.
16548 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
16549 (grub_efi_locate_handle): Likewise.
16550 (grub_efi_open_protocol): Likewise.
16551 (grub_efi_set_text_mode): Likewise.
16552 (grub_efi_stall): Likewise.
16553 (grub_exit): Likewise.
16554 (grub_reboot): Likewise.
16555 (grub_halt): Likewise.
16556 (grub_efi_exit_boot_services): Likewise.
16557 (grub_get_rtc): Likewise.
16559 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
16560 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
16561 (grub_efi_allocate_pages): Wrap efi calls.
16562 (grub_efi_free_pages): Wrap efi calls.
16563 (grub_efi_get_memory_map): Wrap efi calls.
16565 * kern/x86_64/dl.c: New file.
16567 * kern/x86_64/efi/callwrap.S: Likewise.
16569 * kern/x86_64/efi/startup.S: Likewise.
16571 * loader/efi/appleloader.c: Likewise.
16573 * loader/efi/chainloader.c (cmdline): New variable.
16574 (grub_chainloader_unload): Wrap efi calls.
16575 (grub_chainloader_boot): Likewise.
16576 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
16579 * loader/efi/chainloader_normal.c (chainloader_command):
16580 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
16583 * loader/i386/efi/linux.c (allocate_pages): Change allocation
16585 (grub_e820_add_region): New function.
16586 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
16588 (grub_find_video_card): New function.
16589 (grub_linux_setup_video): New function.
16590 (grub_rescue_cmd_linux): Probe for video information.
16592 * normal/x86_64/setjmp.S: New file.
16594 * term/efi/console.c (map_char): New function.
16595 (grub_console_putchar): Map unicode char.
16596 (grub_console_checkkey): Wrap efi calls.
16597 (grub_console_getkey): Likewise.
16598 (grub_console_getwh): Likewise.
16599 (grub_console_gotoxy): Likewise.
16600 (grub_console_cls): Likewise.
16601 (grub_console_setcolorstate): Likewise.
16602 (grub_console_setcursor): Likewise.
16604 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
16606 2008-07-16 Pavel Roskin <proski@gnu.org>
16608 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
16611 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
16612 pointer, not an integer. This fixes a warning and prevents
16613 precision loss on 64-bit systems.
16614 (relocate_addresses): Remove unneeded cast.
16616 2008-07-15 Pavel Roskin <proski@gnu.org>
16618 * kern/i386/ieee1275/init.c: Include grub/cache.h.
16620 * term/ieee1275/ofconsole.c: Disable code unused on i386.
16622 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
16623 Fix comparison between signed and unsigned.
16625 * include/grub/i386/ieee1275/console.h: Declare
16626 grub_console_init() and grub_console_fini().
16628 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
16629 It's empty and unused.
16631 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
16632 beginning to avoid warnings with some compilers.
16634 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
16635 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
16637 2008-07-14 Pavel Roskin <proski@gnu.org>
16639 * kern/env.c (grub_register_variable_hook): Don't copy empty
16640 string, it leaks memory. Pass "" to grub_env_set(), it should
16641 handle constant strings.
16643 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
16644 * commands/cmp.c (grub_cmd_cmp): Likewise.
16645 * kern/dl.c (grub_dl_flush_cache): Likewise.
16646 (grub_dl_load_core): Likewise.
16647 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
16648 (grub_elf64_load_phdrs): Likewise.
16650 2008-07-13 Pavel Roskin <proski@gnu.org>
16652 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
16653 between signed and unsigned.
16654 (LzmaEnc_Finish): Fix warning about an unused parameter.
16656 2008-07-13 Bean <bean123ch@gmail.com>
16658 * Makefile.in (enable_lzo): New rule.
16660 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
16662 * configure.ac (ENABLE_LZO): New option --enable-lzo.
16664 * boot/i386/pc/lnxboot.S: #include <config.h>.
16666 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
16667 its value according to the compression algorithm used, lzo or lzma.
16669 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
16670 compression algorithm according to configure macro.
16672 * kern/i386/pc/startup.S (codestart): Likewise.
16674 * kern/i386/pc/lzma_decode.S: New file.
16676 * include/grub/lib/LzFind.h: Likewise.
16678 * include/grub/lib/LzHash.h: Likewise.
16680 * include/grub/lib/LzmaDec.h: Likewise.
16682 * include/grub/lib/LzmaEnc.h: Likewise.
16684 * include/grub/lib/LzmaTypes.h: Likewise.
16686 * lib/LzFind.c: Likewise.
16688 * lib/LzmaDec.c: Likewise.
16690 * lib/LzmaEnc.c: Likewise.
16692 2008-07-13 Bean <bean123ch@gmail.com>
16694 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
16695 (grub_ext4_extent_header): New structure.
16696 (grub_ext4_extent): Likewise.
16697 (grub_ext4_extent_idx): Likewise.
16698 (grub_ext4_find_leaf): New function.
16699 (grub_ext2_read_block): Handle extents.
16701 2008-07-12 Robert Millan <rmh@aybabtu.com>
16703 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
16705 2008-07-11 Robert Millan <rmh@aybabtu.com>
16707 * util/grub.d/40_custom.in: New file. Example on how to add custom
16708 entries to /etc/grub.d.
16709 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
16710 40_custom (implicitly, by merging all the grub.d rules).
16712 2008-07-11 Pavel Roskin <proski@gnu.org>
16714 * commands/read.c (grub_getline): Fix invalid memory access.
16715 Don't add newline to the variable value.
16717 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
16718 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
16719 (serial_hw_get_port): Check validity of the port number.
16720 (grub_cmd_serial): Check return value of serial_hw_get_port().
16722 2008-07-07 Pavel Roskin <proski@gnu.org>
16724 * boot/i386/pc/diskboot.S (notification_string): Replace
16725 "Loading kernel" with just "loading". This is shorter, less
16726 confusing and saves a few bytes for possible future changes.
16728 2008-07-05 Pavel Roskin <proski@gnu.org>
16730 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
16731 size for ATAPI devices, they are undefined. Output sector
16732 number in decimal form.
16734 * disk/ata.c: Use named constants for status bits.
16736 2008-07-04 Pavel Roskin <proski@gnu.org>
16738 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
16739 grub_addr_t before casting it to the void pointer to fix a
16740 warning. Non-addressable regions are discarded earlier.
16741 (grub_arch_modules_addr): Cast _end to grub_addr_t.
16742 * kern/i386/linuxbios/table.c: Include grub/misc.h.
16743 (check_signature): Don't shadow table_header.
16744 (grub_linuxbios_table_iterate): Cast numeric constants to
16745 grub_linuxbios_table_header_t.
16746 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
16749 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
16752 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
16753 pointer, which can cause warnings. Support 64-bit addresses.
16755 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
16756 of sizeof(long). This fixes PowerPC image generation on x86_64.
16758 2008-07-04 Robert Millan <rmh@aybabtu.com>
16760 This fixes a performance issue when pc & gpt partmap iterators
16761 didn't abort iteration even after our hook found what it was
16762 looking for (often causing expensive probes of non-existent drives).
16764 Some callers relied on previous buggy behaviour, since they would
16765 raise an error when their own hooks caused early abortion of its
16768 * kern/device.c (grub_device_open): Improve error message.
16769 * disk/lvm.c (grub_lvm_open): Likewise.
16770 * disk/raid.c (grub_raid_open): Likewise.
16772 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
16773 when hook requests it, independently of grub_errno.
16774 (pc_partition_map_probe): Do not fail when find_func() caused
16775 early abortion of pc_partition_map_iterate().
16777 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
16778 when hook requests it, independently of grub_errno.
16779 (gpt_partition_map_probe): Do not fail when find_func() caused
16780 early abortion of gpt_partition_map_iterate().
16782 * kern/partition.c (grub_partition_iterate): Abort parent iteration
16783 when hook requests it, independently of grub_errno. Do not fail when
16784 part_map_iterate_hook() caused early abortion of p->iterate().
16786 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
16787 when grub_partition_iterate() returned with non-zero.
16789 2008-07-03 Pavel Roskin <proski@gnu.org>
16791 * disk/ata.c (grub_ata_pio_write): Check status before writing,
16792 like we do in grub_ata_pio_read().
16793 (grub_ata_readwrite): Always write individual sectors. Fix the
16794 sector count for the remainder.
16795 (grub_ata_write): Enable writing to ATA devices. Correctly
16796 report error for ATAPI devices.
16798 2008-07-02 Pavel Roskin <proski@gnu.org>
16800 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
16803 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
16804 for every read sector, we already increment it for the whole
16805 batch. This fixes reading more than 256 sectors at once.
16807 * util/grub-editenv.c (cmd_info): Cast argument to long
16808 explicitly. ptrdiff_t reduces to int on i386.
16810 * util/grub-editenv.c (main): Be specific which parameter is
16813 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
16814 (memdisk): Make memdisk_orig_addr a pointer.
16816 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
16817 for file offsets, use grub_off_t instead. Fix printf format
16820 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
16821 there. Real unexpected warnings should not drown in the noise
16822 about known problems.
16824 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
16825 grub_disk_addr_t for memory addresses.
16827 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
16828 explicitly to fix a warning.
16830 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
16832 * Makefile.in (MODULE_LDFLAGS): New variable.
16833 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
16834 the linker accepts --build-id=none.
16835 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
16837 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
16839 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
16840 those in Linux XFS code. Provide a way to access 64-bit parent
16842 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
16843 the end of struct grub_xfs_dir_header.
16845 2008-07-02 Bean <bean123ch@gmail.com>
16847 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
16848 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
16849 and GRUB_IEEE1275_FLAG_NO_ANSI.
16851 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
16852 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
16853 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
16855 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
16856 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
16858 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
16859 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
16861 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
16862 esc sequence on non ANSI terminal.
16863 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
16865 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
16868 2008-07-02 Bean <bean123ch@gmail.com>
16870 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
16871 (grub_editenv_SOURCES): New variable.
16872 (pkglib_MODULES): Add loadenv.mod.
16873 (loadenv_mod_SOURCES): New variable.
16874 (loadenv_mod_CFLAGS): Likewise.
16875 (loadenv_mod_LDFLAGS): Likewise.
16877 * include/grub/envblk.h: New file.
16879 * util/envblk.c: New file.
16881 * util/grub-editenv.c: New file.
16883 * commands/loadenv.c: New file.
16885 2008-07-01 Pavel Roskin <proski@gnu.org>
16887 * include/multiboot2.h (struct multiboot_tag_module): Use char,
16888 not unsigned char. This fixes warnings and is consistent with
16891 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
16893 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
16895 * term/tparm.c (analyze): Always set *popcount.
16897 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
16898 cast to fix a warning.
16900 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
16901 cast to suppress a warning.
16903 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
16904 grub_fshelp_read_file() expects.
16906 * fs/fat.c: Fix UUID calculation on big-endian systems. We
16907 write uuid as a 32-bit value in CPU byte order, so declare and
16910 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
16911 long if the format specifier expects it.
16912 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
16913 * partmap/pc.c (pc_partition_map_iterate): Likewise.
16914 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
16915 long to fix a warning.
16916 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
16917 grub_dprintf() arguments to fix warnings.
16919 2008-06-30 Pavel Roskin <proski@gnu.org>
16921 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
16922 install_bsd_part immediately before core.img is embedded or
16923 modified on disk. This fixes core.img verification if core.img
16924 cannot be embedded.
16926 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
16927 core_path to calculate the blocklist.
16928 Patch from Javier Martín <lordhabbit@gmail.com>
16930 2008-06-29 Robert Millan <rmh@aybabtu.com>
16932 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
16933 block to disk block.
16934 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
16935 Patch from Niels Böhm <bitbucket@arcor.de>
16937 2008-06-29 Robert Millan <rmh@aybabtu.com>
16939 * util/update-grub_lib.in (font_path): Search for fonts in
16940 /boot/grub first, which is more likely to be readable (we aren't
16941 deciding where fonts live, just looking for them).
16943 2008-06-26 Pavel Roskin <proski@gnu.org>
16945 * util/biosdisk.c (read_device_map): Don't leave dead map
16946 entries for devices failing stat() check.
16948 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
16949 core_path_dev for the core.img path on the target device.
16951 2008-06-26 Robert Millan <rmh@aybabtu.com>
16953 * disk/fs_uuid.c: New file.
16954 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
16955 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
16956 (fs_uuid_mod_LDFLAGS): New variables.
16957 * include/grub/disk.h (grub_disk_dev_id): Add
16958 `GRUB_DISK_DEVICE_UUID_ID'.
16959 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
16960 implement iterate().
16962 2008-06-26 Robert Millan <rmh@aybabtu.com>
16964 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
16965 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
16966 Linux image includes no initrd.
16968 2008-06-21 Javier Martín <lordhabbit@gmail.com>
16970 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
16971 call to resolve the core image location that effectively appended the
16974 2008-06-21 Robert Millan <rmh@aybabtu.com>
16976 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
16979 * util/grub.d/10_hurd.in: ... to here ...
16980 * util/grub.d/10_linux.in: ... and here.
16982 2008-06-19 Robert Millan <rmh@aybabtu.com>
16984 * kern/main.c (grub_main): Export `prefix' variable immediately
16985 after it has been set by grub_machine_set_prefix().
16987 2008-06-19 Robert Millan <rmh@aybabtu.com>
16989 * commands/search.c (search_label, search_fs_uuid, search_file): Print
16990 search result when not saving to variable, not the other way around.
16991 When saving to variable, abort iteration as soon as a match is found.
16993 2008-06-19 Robert Millan <rmh@aybabtu.com>
16995 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
16996 check for partition that provides /boot/grub. Its logic is flawed,
16997 as it prevents prepare_grub_to_access_device() from being called
17000 2008-06-19 Robert Millan <rmh@aybabtu.com>
17002 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
17003 "insmod" command directly when abstraction modules are needed,
17004 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
17005 since it had already been processed).
17007 2008-06-19 Pavel Roskin <proski@gnu.org>
17009 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
17010 changed. This is needed in case GRUB_LIBDIR changes.
17011 * conf/i386-ieee1275.rmk: Likewise.
17012 * conf/i386-linuxbios.rmk: Likewise.
17013 * conf/i386-pc.rmk: Likewise.
17014 * conf/powerpc-ieee1275.rmk: Likewise.
17016 2008-06-18 Pavel Roskin <proski@gnu.org>
17018 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
17019 kernel_elf_symlist.c to symlist.c for consistency with other
17020 architectures. Update all users.
17021 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
17023 2008-06-18 Robert Millan <rmh@aybabtu.com>
17025 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
17028 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
17029 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
17030 a RAID device, run setup() for all members independently on whether
17031 LVM abstraction is being used.
17032 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
17033 If grub-mkimage has set `*install_dos_part == -2', don't override this
17035 Perform *install_dos_part adjustments independently on whether
17036 we're embedding or not.
17037 Clarify error message when image is too big for embedding.
17038 Remove duplicate *install_dos_part stanza.
17040 2008-06-17 Robert Millan <rmh@aybabtu.com>
17042 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
17043 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
17045 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
17046 values in grub_ofconsole_normal_color and
17047 grub_ofconsole_highlight_color (they're not directly related to
17048 background and foreground).
17049 (grub_ofconsole_setcolorstate): Extract background and foreground
17050 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
17052 2008-06-17 Robert Millan <rmh@aybabtu.com>
17054 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
17055 /boot/grub for the check in last commit, not /boot (they could be
17056 different partitions).
17058 2008-06-16 Robert Millan <rmh@aybabtu.com>
17060 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
17061 asked to setup access for the same partition that provides /boot,
17062 don't bother using UUIDs since our root already has the value we
17065 2008-06-16 Robert Millan <rmh@aybabtu.com>
17067 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
17069 Patch from Sven Mueller <sven@debian.org>.
17071 2008-06-16 Robert Millan <rmh@aybabtu.com>
17073 * util/update-grub.in: Check for $EUID instead of $UID.
17074 Reported by Vincent Zweije.
17076 2008-06-16 Bean <bean123ch@gmail.com>
17078 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
17079 (grub_ext2_read_block): Likewise.
17080 (grub_ext2_read_inode): Likewise.
17081 (grub_ext2_mount): Likewise.
17082 (grub_ext2_close): Likewise.
17083 (grub_ext3_get_journal): Removed.
17085 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
17086 (grub_reiserfs_read_symlink): Likewise.
17087 (grub_reiserfs_mount): Likewise.
17088 (grub_reiserfs_open): Likewise.
17089 (grub_reiserfs_read): Likewise.
17090 (grub_reiserfs_close): Likewise.
17091 (grub_reiserfs_get_journal): Removed.
17093 * fs/fshelp.c (grub_fshelp_read): Removed.
17094 (grub_fshelp_map_block): Likewise.
17096 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
17097 (grub_fshelp_journal): Likewise.
17098 (grub_fshelp_read): Likewise.
17099 (grub_fshelp_map_block): Likewise.
17101 2008-06-16 Pavel Roskin <proski@gnu.org>
17103 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
17104 floating point anymore.
17105 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
17107 2008-06-15 Pavel Roskin <proski@gnu.org>
17109 * commands/ls.c (grub_ls_list_files): Use integer calculations
17110 for human readable format, avoid floating point use.
17111 * kern/misc.c (grub_ftoa): Remove.
17112 (grub_vsprintf): Remove floating point support.
17114 2008-06-15 Robert Millan <rmh@aybabtu.com>
17116 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
17118 Reported by Max Vozeler.
17120 2008-06-15 Robert Millan <rmh@aybabtu.com>
17122 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
17123 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
17125 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
17126 the beginning of the prefix.
17128 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
17129 It is assumed that if we have a memdisk, grub-mkimage has set
17130 grub_prefix to include the "(memdisk)" drive in it.
17132 2008-06-15 Robert Millan <rmh@aybabtu.com>
17134 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
17135 Initialize keyboard controller after registering the terminal, so that
17136 grub_printf() can be called from grub_keyboard_controller_init().
17138 2008-06-15 Robert Millan <rmh@aybabtu.com>
17140 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
17141 extent-btree which is written as big endian on disk.
17142 Reported by Alain Greppin <al@chilibi.org>.
17144 2008-06-14 Robert Millan <rmh@aybabtu.com>
17146 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
17147 * util/i386/pc/grub-install.in (modules): Likewise.
17149 2008-06-13 Pavel Roskin <proski@gnu.org>
17151 * commands/ls.c (grub_ls_list_files): Fix format warnings.
17153 2008-06-13 Bean <bean123ch@gmail.com>
17155 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
17157 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
17159 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
17160 to indicate sparse block.
17162 2008-06-12 Pavel Roskin <proski@gnu.org>
17164 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
17165 number, grub_fshelp_read() does it for us.
17167 * fs/fshelp.c (grub_fshelp_read): New function. Implement
17168 linear disk read with journal translation.
17169 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
17170 * include/grub/fshelp.h: Declare grub_fshelp_read().
17172 2008-06-09 Pavel Roskin <proski@gnu.org>
17174 * fs/minix.c (grub_minix_mount): Handle error reading
17177 2008-06-08 Robert Millan <rmh@aybabtu.com>
17179 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
17180 don't append the RAID prefix afterwards.
17181 Reported by Clint Adams.
17183 2008-06-08 Robert Millan <rmh@aybabtu.com>
17185 Based on description from Pavel:
17186 * kern/disk.c (grub_disk_check_range): Rename to ...
17187 (grub_disk_adjust_range): ... this. Add a comment explaining the
17188 tasks performed by this function.
17190 2008-06-08 Robert Millan <rmh@aybabtu.com>
17192 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
17193 `num_serial' (for consistency with other variables).
17194 (struct grub_ntfs_data): Add `uuid' member.
17195 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
17196 (grub_ntfs_uuid): New function.
17197 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
17199 2008-06-07 Pavel Roskin <proski@gnu.org>
17201 * util/biosdisk.c (open_device): Revert last change to the
17202 function, it broke installation. The sector needs to be
17203 different dependent on which device is opened.
17205 2008-06-06 Robert Millan <rmh@aybabtu.com>
17207 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
17208 rest of GRUB, and breakage doesn't happen if its value were modified.
17210 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17211 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
17212 a constant (same value).
17213 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
17214 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
17216 2008-06-06 Robert Millan <rmh@aybabtu.com>
17218 * util/biosdisk.c (open_device): Do not modify sector offset when
17219 accessing a partition. kern/disk.c already handles this for us.
17221 2008-06-06 Robert Millan <rmh@aybabtu.com>
17223 * util/grub-emu.c (grub_machine_init): Move code in this function from
17225 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
17226 segfault in case grub_printf() is called).
17228 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
17229 grub_probe. Update all users not to explicitly add it again.
17230 (grub_device): New variable; contains corresponding device for grubdir.
17231 (fs_module, partmap_module, devabstraction_module): Pass
17232 `--device ${grub_device}' to grub_probe to avoid traversing /dev
17235 2008-06-05 Robert Millan <rmh@aybabtu.com>
17237 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
17238 is found, print it (same layout as with labels).
17240 2008-06-04 Robert Millan <rmh@aybabtu.com>
17242 * util/biosdisk.c (get_drive): Rename to ...
17243 (find_grub_drive): ... this. Update all users.
17245 (get_os_disk): Rename to ...
17246 (convert_system_partition_to_system_disk): ... this. Update all users.
17248 (find_drive): Rename to ...
17249 (find_system_device): ... this. Update all users.
17251 2008-06-04 Robert Millan <rmh@aybabtu.com>
17253 * util/biosdisk.c (get_os_disk): Handle IDA devices.
17254 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17255 (make_device_map): Likewise.
17257 2008-06-01 Robert Millan <rmh@aybabtu.com>
17259 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
17260 before dereferencing it.
17262 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
17263 union with fat12/fat16-specific ones. Add some new fields, including
17264 `num_serial' for both versions.
17265 (struct grub_fat_data): Add `uuid' member.
17266 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
17267 names. Initialize `data->uuid' using `num_serial'.
17268 (grub_fat_uuid): New function.
17269 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
17271 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
17272 (grub_reiserfs_uuid): New function.
17273 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
17276 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
17277 (grub_xfs_uuid): New function.
17278 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
17280 2008-06-01 Robert Millan <rmh@aybabtu.com>
17282 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
17283 code that is backward compatible with pre-uuid search command.
17285 2008-05-31 Robert Millan <rmh@aybabtu.com>
17287 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
17288 floppies after everything else, to ensure floppy drive isn't accessed
17289 unnecessarily (patch from Bean).
17291 2008-05-31 Robert Millan <rmh@aybabtu.com>
17293 * commands/search.c (search_label, search_fs_uuid, search_file): Do
17294 not print device names when we were asked to set a variable.
17296 2008-05-31 Robert Millan <rmh@aybabtu.com>
17298 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
17299 using "cursor-on" and "cursor-off" commands (understood at least by
17300 the Open Firmware flavour on OLPC).
17302 2008-05-31 Michael Gorven <michael@gorven.za.net>
17304 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
17305 on and off sequences.
17307 2008-05-31 Robert Millan <rmh@aybabtu.com>
17309 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
17310 * util/update-grub.in: Likewise.
17312 2008-05-30 Pavel Roskin <proski@gnu.org>
17314 * util/biosdisk.c (linux_find_partition): Simplify logic and
17315 make the code more universal. Keep special processing for
17316 devfs, but use a simple rule for all other devices. If the
17317 device ends with a number, append 'p' and the partition number.
17318 Otherwise, append only the partition number.
17320 2008-05-30 Robert Millan <rmh@aybabtu.com>
17322 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
17323 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
17324 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
17325 the `root' parameter to Linux.
17327 2008-05-30 Robert Millan <rmh@aybabtu.com>
17329 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
17330 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
17331 --fs_uuid with --fs-uuid.
17332 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
17333 all filesystems support them).
17335 2008-05-30 Robert Millan <rmh@aybabtu.com>
17337 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
17338 grub_printf() flags, since we're printing in units of 2 bytes.
17340 2008-05-30 Robert Millan <rmh@aybabtu.com>
17342 * util/grub.d/00_header.in: Remove obsolete comment referencing
17343 convert_system_path_to_grub_path().
17344 * util/update-grub.in: Likewise.
17345 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
17346 (convert_system_path_to_grub_path): Add a warning message explaining
17347 that this function is deprecated. Rely on is_path_readable_by_grub()
17348 for the readability checks.
17349 (font_path): Use is_path_readable_by_grub() for the readability
17350 check rather than convert_system_path_to_grub_path().
17352 2008-05-30 Robert Millan <rmh@aybabtu.com>
17354 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
17355 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
17356 converting it first.
17357 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
17358 grub.cfg for access to font file, and afterwards call it again to set
17361 2008-05-30 Robert Millan <rmh@aybabtu.com>
17363 * commands/search.c (options): Add --fs_uuid option.
17364 (search_fs_uuid): New function.
17365 (grub_cmd_search): Fix --set argument passing.
17366 Use search_fs_uuid() when requested via --fs_uuid.
17367 (grub_search_init): Update help message.
17368 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
17369 and redeclare it as an array of 16-bit words.
17370 (grub_ext2_uuid): New function.
17371 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
17372 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
17373 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
17374 (GRUB_DEVICE_BOOT_UUID): New variables.
17375 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
17376 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
17378 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
17379 just assume `root' variable has the right value.
17380 * util/grub.d/10_linux.in: Likewise.
17381 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
17383 (main): Recognise `-t fs_uuid' argument.
17385 2008-05-30 Robert Millan <rmh@aybabtu.com>
17387 * util/biosdisk.c (map): Redefine structure to hold information
17388 about GRUB drive name.
17389 (get_drive): Reimplement without assuming (and verifying) BIOS-like
17391 (call_hook): Remove.
17392 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
17393 member. Assume drive has partitions.
17394 (grub_util_biosdisk_open): Access device names via `.device' struct
17396 (open_device): Likewise.
17397 (find_drive): Likewise.
17398 (read_device_map): Adjust map[] usage to match the new struct
17399 definition. Don't check for duplicates (still possible, but not cheap
17401 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
17402 (make_device_name): Remove assumption of BIOS-like drive names.
17404 2008-05-30 Pavel Roskin <proski@gnu.org>
17406 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
17407 compiling execute.c doesn't need grub_script.tab.h anymore.
17408 (normal/command.c_DEPENDENCIES): Likewise.
17409 (normal/function.c_DEPENDENCIES): Likewise.
17410 * conf/i386-ieee1275.rmk: Likewise.
17411 * conf/i386-linuxbios.rmk: Likewise.
17412 * conf/i386-pc.rmk: Likewise.
17413 * conf/powerpc-ieee1275.rmk: Likewise.
17414 * conf/sparc64-ieee1275.rmk: Likewise.
17416 2008-05-29 Pavel Roskin <proski@gnu.org>
17418 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
17419 when scanning metadata for volume group name.
17421 * include/grub/script.h: Don't include grub_script.tab.h. It's
17422 a generated file, which may only be included from the files with
17423 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
17424 use union YYSTYPE, as the later allows forward declaration.
17425 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
17427 2008-05-29 Robert Millan <rmh@aybabtu.com>
17429 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
17430 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
17431 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
17432 (grub_console_checkkey): Add grub_dprintf() call to report unknown
17435 2008-05-29 Robert Millan <rmh@aybabtu.com>
17437 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
17438 control key combinations.
17440 2008-05-29 Robert Millan <rmh@aybabtu.com>
17442 * util/powerpc/ieee1275/grub-install.in: Move from here ...
17443 * util/ieee1275/grub-install.in: ... to here.
17444 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
17445 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
17446 (grub_install_SOURCES): Likewise.
17448 2008-05-29 Robert Millan <rmh@aybabtu.com>
17450 * fs/affs.c: Update copyright year.
17451 * fs/ext2.c: Likewise.
17452 * fs/fshelp.c: Likewise.
17453 * fs/hfsplus.c: Likewise.
17454 * fs/ntfs.c: Likewise.
17455 * fs/xfs.c: Likewise.
17456 * include/grub/fshelp.h: Likewise.
17457 * util/grub-mkdevicemap.c: Likewise.
17459 2008-05-28 Robert Millan <rmh@aybabtu.com>
17461 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
17462 might need to be fatfs to support some firmware implementations
17465 2008-05-28 Robert Millan <rmh@aybabtu.com>
17467 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
17469 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17470 (make_device_map): Likewise.
17472 2008-05-20 Bean <bean123ch@gmail.com>
17474 * fs/fshelp.c (grub_fshelp_map_block): New function.
17475 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
17476 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
17478 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
17479 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
17480 (grub_fshelp_journal): New structure.
17481 (grub_fshelp_map_block): New function prototype.
17482 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
17483 (grub_fshelp_map_block): Likewise.
17485 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
17486 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
17487 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
17488 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
17489 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
17490 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
17491 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
17492 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
17493 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
17494 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
17495 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
17496 (grub_ext2_sblock): New members for journal support.
17497 (grub_ext3_journal_header): New structure.
17498 (grub_ext3_journal_revoke_header): Likewise.
17499 (grub_ext3_journal_block_tag): Likewise.
17500 (grub_ext3_journal_sblock): Likewise.
17501 (grub_fshelp_node): New members logfile and journal.
17502 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
17503 grub_fshelp_map_block to get real block number.
17504 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
17506 (grub_ext2_read_inode): Likewise.
17507 (grub_ext3_get_journal): New function.
17508 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
17509 (grub_ext2_close): Release memory used by journal.
17511 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
17512 (REISERFS_MAGIC_DESC_BLOCK): New macro.
17513 (grub_reiserfs_transaction_header): Renamed to
17514 grub_reiserfs_description_block, replace field data with real_blocks.
17515 (grub_reiserfs_commit_block): New structure.
17516 (grub_reiserfs_data): New member journal.
17517 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
17519 (grub_reiserfs_read_symlink): Likewise.
17520 (grub_reiserfs_iterate_dir): Likewise.
17521 (grub_reiserfs_open): Likewise.
17522 (grub_reiserfs_read): Likewise.
17523 (grub_reiserfs_get_journal): New function.
17524 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
17525 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
17526 using grub_reiserfs_get_journal.
17527 (grub_reiserfs_close): Release memory used by journal.
17529 * fs/affs.c (grub_affs_read_block): Change block type to
17530 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
17532 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
17534 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
17536 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
17538 * fs/udf.c (grub_udf_read_block): Change block type to
17539 grub_disk_addr_t. Use type cast to avoid warning.
17541 * fs/xfs.c (grub_xfs_read_block): Likewise.
17543 2008-05-16 Christian Franke <franke@computer.org>
17545 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
17546 to ensure that break with ESC will always work.
17547 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
17548 Remove ESC from keyboard queue.
17550 2008-05-16 Christian Franke <franke@computer.org>
17552 * util/biosdisk.c: [__CYGWIN__] Add includes.
17553 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
17554 (get_os_disk): Move variable declarations to OS specific
17555 parts to avoid warning.
17556 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
17557 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
17558 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
17560 * util/getroot.c: [__CYGWIN__] Add includes.
17561 (strip_extra_slashes): Fix "/" case.
17562 [__CYGWIN__] (get_win32_path): New function.
17563 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
17564 [__CYGWIN__] (find_root_device): Disable.
17565 [__CYGWIN__] (get_bootsec_serial): New function.
17566 [__CYGWIN__] (find_cygwin_root_device): Likewise.
17567 [__linux__] (grub_guess_root_device): Add early returns to simplify
17569 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
17570 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
17571 check for Linux only.
17573 2008-05-15 Bean <bean123ch@gmail.com>
17575 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
17576 keyboard hang problem in apple's intel mac.
17578 2008-05-09 Robert Millan <rmh@aybabtu.com>
17580 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
17582 * util/grub-mkdevicemap.c (get_virtio_disk_name)
17583 (make_device_map): Likewise.
17584 Reported by Aurelien Jarno <aurel32@debian.org>
17586 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
17588 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
17589 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
17590 (make_device_map): Output entries for xvd type disks.
17592 2008-05-07 Robert Millan <rmh@aybabtu.com>
17594 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
17596 * util/grub-mkdevicemap.c (get_cciss_disk_name)
17597 (make_device_map): Likewise.
17598 Reported by Roland Dreier <rdreier@cisco.com>
17600 2008-05-07 Robert Millan <rmh@aybabtu.com>
17602 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
17603 grub_strstr() call. Correct a few mistakes in failure path handling.
17605 2008-05-06 Robert Millan <rmh@aybabtu.com>
17607 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
17608 Do not print a trailing slash (therefore, the root directory is an
17610 (convert_system_path_to_grub_path): Do not remove trailing slash
17611 from make_system_path_relative_to_its_root() output.
17613 * util/i386/pc/grub-install.in: Add trailing slash to output from
17614 make_system_path_relative_to_its_root().
17616 2008-05-06 Robert Millan <rmh@aybabtu.com>
17618 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
17619 ensures that output lines aren't intermangled with those sent to
17620 stderr (via grub_util_info()).
17621 * util/grub-probe.c (grub_refresh): Likewise.
17622 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
17624 2008-05-05 Christian Franke <franke@computer.org>
17626 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
17627 Add Cygwin device names.
17628 (get_ide_disk_name) [__CYGWIN__]: Likewise.
17629 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
17630 (check_device): Return error instead of success on empty name.
17631 (make_device_map): Move label inside linux specific code to
17632 prevent compiler warning.
17634 2008-04-30 Robert Millan <rmh@aybabtu.com>
17636 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
17637 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
17639 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
17641 2008-04-29 Robert Millan <rmh@aybabtu.com>
17643 * docs/grub.cfg: New file (example GRUB configuration).
17645 2008-04-26 Robert Millan <rmh@aybabtu.com>
17647 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
17648 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
17649 and `disk/ieee1275/nand.c'.
17651 2008-04-25 Bean <bean123ch@gmail.com>
17653 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
17656 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
17657 change the buffer size to 4096 for cdrom device.
17659 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
17661 (_linux_mod_SOURCES): New variable.
17662 (_linux_mod_CFLAGS): Likewise.
17663 (_linux_mod_LDFLAGS): Likewise.
17664 (linux_mod_SOURCES): Likewise.
17665 (linux_mod_CFLAGS): Likewise.
17666 (linux_mod_LDFLAGS): Likewise.
17667 (nand_mod_SOURCES): Likewise.
17668 (nand_mod_CFLAGS): Likewise.
17669 (nand_mod_LDFLAGS): Likewise.
17671 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
17672 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
17673 type property. (nand device in olpc don't have this property)
17675 * include/grub/disk.h (grub_disk_dev_id): New macro
17676 GRUB_DISK_DEVICE_NAND_ID.
17678 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
17679 function prototype.
17680 (grub_rescue_cmd_initrd): Likewise.
17682 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
17683 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
17684 ofw_cif_handler and ofw_idt, adjust padding number.
17686 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
17687 GRUB_MACHINE_IEEE1275 is defined.
17689 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
17690 Use NESTED_FUNC_ATTR attribute on the hook parameter.
17692 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
17693 on nested function heap_init.
17694 (grub_upper_mem): New variable for i386-ieee1275.
17695 (grub_get_extended_memory): New function for i386-ieee1275.
17696 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
17698 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
17699 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
17702 * loader/i386/ieee1275/linux.c: New file.
17704 * loader/i386/ieee1275/linux_normal.c: New file.
17706 * disk/ieee1275/nand.c: New file.
17708 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
17710 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
17712 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
17714 2008-04-18 Robert Millan <rmh@aybabtu.com>
17716 Restructures early code path on ieee1275 to unify grub_main() as
17717 the first C function that is executed in every platform.
17719 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
17720 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
17722 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
17723 * kern/ieee1275/cmain.c (cmain): Rename to ...
17724 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
17725 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
17728 2008-04-18 Robert Millan <rmh@aybabtu.com>
17730 * util/update-grub.in: Fix syntax error when setting
17731 `GRUB_PRELOAD_MODULES'.
17732 Reported by Stephane Chazelas <stephane@artesyncp.com>
17734 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
17736 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
17737 section into account, newer toolchains generate unique build ids
17738 * configure.ac: remove the test for --build-id=none acceptance,
17739 we want build ids to be preserved
17740 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
17741 far from other sections don't cause the raw binary images grow
17744 2008-04-15 Robert Millan <rmh@aybabtu.com>
17746 * disk/lvm.c: Update copyright year.
17747 * kern/misc.c: Likewise.
17749 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
17751 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
17752 there is no memory left for physical volume name.
17754 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
17756 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
17757 volume name mapping to support bigger than 9 character names properly.
17759 2008-04-13 Robert Millan <rmh@aybabtu.com>
17761 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
17762 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
17764 2008-04-13 Christian Franke <franke@computer.org>
17766 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
17767 to create a floppy emulation boot CD when non emulation mode
17769 Enable Joliet CD filesystem extension.
17771 2008-04-13 Robert Millan <rmh@aybabtu.com>
17773 * kern/misc.c (grub_strncat): Fix off-by-one error.
17774 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
17776 * kern/env.c (grub_env_context_close): Clear current context, not
17778 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
17780 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
17782 2008-04-13 Robert Millan <rmh@aybabtu.com>
17784 Improve robustness when handling LVM.
17786 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
17787 (and leave `*p' unmodified).
17788 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
17790 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
17791 iterating through it.
17792 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
17794 (grub_lvm_scan_device): Check the return value (and fail gracefully
17795 when due) on each grub_lvm_getvalue() or grub_strstr() call.
17796 Don't assume `vg->pvs != NULL' when iterating through it.
17798 2008-04-13 Robert Millan <rmh@aybabtu.com>
17800 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
17801 * genmk.rb (partmap): New variable.
17802 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
17803 (#{partmap}): New target rule.
17804 * genpartmaplist.sh: New file.
17805 * Makefile.in (pkglib_DATA): Add partmap.lst.
17806 (partmap.lst): New target rule.
17807 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
17808 modules (including all partition maps), instead of preloading them.
17810 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
17812 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
17813 `linux-boot-prober' (if installed) to detect other operating
17814 systems which are installed on the computer and add them to
17816 * conf/common.rmk: Build and install 30_os-prober.
17818 2008-04-12 Robert Millan <rmh@aybabtu.com>
17820 * kern/powerpc/ieee1275/init.c: Move from here ...
17821 * kern/ieee1275/init.c: ... to here. Update all users.
17823 * kern/powerpc/ieee1275/cmain.c: Move from here ...
17824 * kern/ieee1275/cmain.c: ... to here. Update all users.
17826 * kern/powerpc/ieee1275/openfw.c: Move from here ...
17827 * kern/ieee1275/openfw.c: ... to here. Update all users.
17829 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
17830 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
17832 2008-04-10 Pavel Roskin <proski@gnu.org>
17834 * configure.ac: Always use "_cv_" in cache variables for
17835 compatibility with Autoconf 2.62.
17837 2008-04-07 Robert Millan <rmh@aybabtu.com>
17839 Revert grub/machine/init.h addition by Pavel (since it breaks on
17840 i386-ieee1275 and others):
17841 * util/i386/pc/misc.c: Remove grub/machine/init.h.
17842 * util/powerpc/ieee1275/misc.c: Likewise.
17844 2008-04-07 Robert Millan <rmh@aybabtu.com>
17846 * util/grub-probe.c (probe): Improve error message.
17848 2008-04-07 Robert Millan <rmh@aybabtu.com>
17850 * util/biosdisk.c (read_device_map): Skip devices that don't exist
17851 (this prevents the presence of a bogus entry from ruining the whole
17854 2008-04-06 Pavel Roskin <proski@gnu.org>
17856 * util/biosdisk.c: Include grub/util/biosdisk.h.
17857 * util/grub-fstest.c (execute_command): Make static.
17858 * util/grub-mkdevicemap.c (check_device): Likewise.
17859 * util/i386/pc/misc.c: Include grub/machine/init.h.
17860 * util/powerpc/ieee1275/misc.c: Likewise.
17861 * util/lvm.c: Include grub/util/lvm.h.
17862 * util/misc.c: Include grub/kernel.h, grub/misc.h and
17864 * util/raid.c: Include grub/util/raid.h.
17865 (grub_util_getdiskname): Make static.
17867 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
17868 grub_hostfs_fini(), as they are called from grub_init_all() and
17869 grub_fini_all() respectively. This fixes an infinite loop in
17870 grub-fstest due to double registration of hostfs.
17871 Reported by Christian Franke <Christian.Franke@t-online.de>
17873 2008-04-05 Pavel Roskin <proski@gnu.org>
17875 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
17876 all 8 functions. Otherwise, probe function 0 only.
17878 2008-04-04 Pavel Roskin <proski@gnu.org>
17880 * commands/lspci.c (grub_lspci_iter): Print the bus number
17883 * commands/lspci.c (grub_pci_classes): Fix typos.
17884 (grub_lspci_iter): Don't print func twice. Print vendor ID
17885 before device ID, as it's normally done.
17887 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
17888 Fix signedness warnings.
17889 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
17891 * util/ieee1275/get_disk_name.c: Include config.h so that
17892 _GNU_SOURCE is defined and getline() is declared. Mark an
17893 unused argument as such. Fix a signedness warning.
17895 2008-04-02 Pavel Roskin <proski@gnu.org>
17897 * genkernsyms.sh.in: Use more robust assignments for CC and
17898 srcdir. Quote srcdir.
17899 * gensymlist.sh.in: Likewise. Assert at the compile time that
17900 the symbol table is not empty.
17902 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
17903 * fs/cpio.c (grub_cpio_read): Likewise.
17905 2008-04-01 Pavel Roskin <proski@gnu.org>
17907 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
17908 * disk/host.c (grub_host_open): Likewise.
17909 * disk/loopback.c (grub_loopback_open): Likewise.
17910 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
17911 disk->id as in disk/host.c, not a multi-character constant.
17913 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
17914 later is obsolete, potentially dangerous and sets a bad example.
17915 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
17916 * util/misc.c (grub_util_get_image_size): Likewise.
17918 * disk/loopback.c (options): Improve help for "--partitions".
17920 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
17921 options to align them with the short options, e.g. "echo -e".
17923 2008-03-31 Bean <bean123ch@gmail.com>
17925 * video/reader/png.c (grub_png_data): New member is_16bit and
17927 (grub_png_decode_image_header): Detect 16 bit png image.
17928 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
17929 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
17930 (grub_video_reader_png): Release memory occupied by image_data.
17932 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
17934 (grub_nfs_mount): Skip the test for sector per cluster.
17936 * include/grub/ntfs.h (MAX_SPC): Removed.
17938 2008-03-31 Bean <bean123ch@gmail.com>
17940 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
17941 (grub_probe_SOURCES): Add fs/afs.c.
17942 (grub_fstest_SOURCES): Likewise.
17943 (afs_mod_SOURCES): New variable.
17944 (afs_mod_CFLAGS): Likewise.
17945 (afs_mod_LDFLAGS): Likewise.
17947 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
17948 (grub_emu_SOURCES): Likewise.
17950 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17952 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17954 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
17956 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17958 * fs/afs.c: New file.
17960 2008-03-30 Pavel Roskin <proski@gnu.org>
17962 * disk/host.c: Include grub/misc.h to fix a warning.
17963 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
17964 warnings about implicit declarations.
17966 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
17968 * include/grub/i386/loader.h: Change declaration of
17969 grub_linux_boot() to match what grub_loader_set() expects.
17970 * util/getroot.c (grub_guess_root_device): Return const char* to
17972 * util/grub-probe.c (probe): Fix a warning about uninitialized
17973 abstraction_name variable.
17974 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
17975 second argument as unused to fix a warning.
17977 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
17978 missing grub_error() call.
17980 * util/update-grub_lib.in: Define datarootdir, since Autoconf
17981 2.60 and newer uses it to define datadir.
17983 * commands/sleep.c: Fix warning about implicit declaration.
17984 * disk/memdisk.c: Likewise.
17985 * loader/aout.c: Likewise.
17986 * loader/i386/bsd_normal.c: Likewise.
17987 * util/grub-probe.c: Likewise.
17989 * commands/i386/cpuid.c (has_longmode): Make static.
17990 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
17991 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
17993 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
17994 GDT. This is more robust, as %ds can change.
17995 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
17996 calling real_to_prot().
17997 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
17999 2008-03-28 Pavel Roskin <proski@gnu.org>
18001 * kern/i386/pc/startup.S: Assert that uncompressed functions
18002 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
18003 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
18004 code, as they push parts of the code (error handlers) beyond
18005 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
18006 code as correctness and size.
18008 2008-03-28 Pavel Roskin <proski@gnu.org>
18010 * kern/i386/pc/startup.S
18011 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
18012 data block address to the real mode, keep offset minimal. This
18013 works around a bug in AWARD BIOS on old Athlon systems, which
18014 makes CD detection hang.
18016 2008-03-26 Pavel Roskin <proski@gnu.org>
18018 * normal/color.c (grub_parse_color_name_pair): Make `name' a
18020 * include/grub/normal.h: Add grub_parse_color_name_pair()
18023 2008-03-24 Bean <bean123ch@gmail.com>
18025 * disk/i386/pc/biosdisk.c (cd_start): Removed.
18026 (cd_count): Removed.
18027 (cd_drive): New variable.
18028 (grub_biosdisk_get_drive): Don't check for (cdN) device.
18029 (grub_biosdisk_call_hook): Likewise.
18030 (grub_biosdisk_iterate): Change cdrom detection method.
18031 (grub_biosdisk_open): Replace cd_start with cd_drive.
18032 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
18033 detect cdrom device.
18035 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
18037 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
18038 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
18039 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
18040 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
18041 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
18042 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
18043 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
18044 (grub_biosdisk_cdrp): New structure.
18045 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
18047 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
18049 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
18052 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
18055 2008-03-20 Robert Millan <rmh@aybabtu.com>
18057 Remove 2 TiB limit in ata.mod.
18058 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
18059 (grub_ata_dumpinfo): Print sector count with 0x%llx.
18060 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
18061 grub_uint64_t instead of grub_uint32_t.
18063 2008-03-05 Bean <bean123ch@gmail.com>
18065 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
18066 (grub_multiboot): Set boot device.
18068 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
18070 2008-03-02 Bean <bean123ch@gmail.com>
18072 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
18075 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
18077 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
18080 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
18083 * docs/fdl.texi: New file.
18085 * docs/mdate-sh: New file. Copied from gnulib.
18086 * docs/texinfo.tex: Likewise.
18088 * config.guess: Updated from gnulib.
18089 * install-sh: Likewise.
18091 2008-02-28 Robert Millan <rmh@aybabtu.com>
18093 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
18094 (aout_mod_SOURCES): New variable.
18095 (aout_mod_CFLAGS): Likewise.
18096 (aout_mod_LDFLAGS): Likewise.
18098 * conf/i386-ieee1275.rmk: Likewise.
18100 2008-02-28 Robert Millan <rmh@aybabtu.com>
18102 * util/update-grub.in: Reorganise terminal validity check. Accept
18103 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
18104 Based on suggestion by Franklin PIAT.
18106 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
18108 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
18110 * util/getroot.c (grub_util_check_block_device): New function that
18111 returns the given argument if it is a block device and returns NULL else.
18112 * util/grub-probe.c (argument_is_device): New variable.
18113 (probe): Promote device_name from a variable to an argument. Receive
18114 device_name from grub_util_check_block_device() if path is NULL and from
18115 grub_guess_root_device() else. Do not free() device_name anymore.
18116 (options): Introduce new parameter '-d, --device'.
18117 (main): Add description of the new parameter to the help screen.
18118 Rename path variable to argument. Set argument_is_device if the '-d'
18119 option is given. Pass argument to probe() depending on
18120 argument_is_device.
18122 2008-02-24 Bean <bean123ch@gmail.com>
18124 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
18125 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
18126 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
18127 (GRUB_ISO9660_VOLDESC_PART): Likewise.
18128 (GRUB_ISO9660_VOLDESC_END): Likewise.
18129 (grub_iso9660_primary_voldesc): New member escape.
18130 (grub_iso9660_data): New member joliet.
18131 (grub_iso9660_convert_string): New function.
18132 (grub_iso9660_mount): Detect joliet extension.
18133 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
18134 (grub_iso9660_iso9660_label): Likewise.
18136 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
18137 (grub_setup_SOURCES): Add fs/udf.c.
18138 (grub_fstest_SOURCES): Likewise.
18139 (udf_mod_SOURCES): New variable.
18140 (udf_mod_CFLAGS): Likewise.
18141 (udf_mod_LDFLAGS): Likewise.
18143 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
18144 (grub_emu_SOURCES): Likewise.
18146 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18148 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18150 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18152 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18154 * fs/udf.c: New file.
18156 2008-02-24 Robert Millan <rmh@aybabtu.com>
18158 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
18159 (normal/lexer.c_DEPENDENCIES): New variables.
18160 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18161 (normal/lexer.c_DEPENDENCIES): Likewise.
18162 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
18163 (normal/lexer.c_DEPENDENCIES): Likewise.
18164 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
18165 (normal/lexer.c_DEPENDENCIES): Likewise.
18166 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18167 (normal/lexer.c_DEPENDENCIES): Likewise.
18168 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18169 (normal/lexer.c_DEPENDENCIES): Likewise.
18171 2008-02-23 Robert Millan <rmh@aybabtu.com>
18173 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
18174 since they were intended to be in hex. This didn't break previously
18175 because of a bug in gpt_partition_map_iterate() (see below).
18177 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
18178 when checking the validity of GPT header.
18179 Remove `partno', since it always provides the same information as `i'.
18181 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
18183 * include/grub/efi/time.h: Fix a wrong comment.
18185 2008-02-19 Pavel Roskin <proski@gnu.org>
18187 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
18190 2008-02-19 Bean <bean123ch@gmail.com>
18192 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
18193 (aout_mod_SOURCES): New variable.
18194 (aout_mod_CFLAGS): Likewise.
18195 (aout_mod_LDFLAGS): Likewise.
18196 (_bsd_mod_SOURCES): New variable.
18197 (_bsd_mod_CFLAGS): Likewise.
18198 (_bsd_mod_LDFLAGS): Likewise.
18199 (bsd_mod_SOURCES): New variable.
18200 (bsd_mod_CFLAGS): Likewise.
18201 (bsd_mod_LDFLAGS): Likewise.
18203 * include/grub/aout.h: New file.
18205 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
18207 * include/grub/i386/bsd.h: New file.
18209 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
18212 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
18213 function is called, so that it's possible to change it inside the hook.
18214 (grub_elf64_load): Likewise.
18215 (grub_elf_file): Don't close the file if elf header is not found.
18216 (grub_elf_close): Close the file if grub_elf_file fails (The new
18217 grub_elf_file won't close it).
18218 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
18219 (grub_elf64_size): Likewise.
18221 * kern/i386/loader.S (grub_unix_real_boot): New function.
18223 * loader/aout.c: New file.
18225 * loader/i386/bsd.c: New file.
18227 * loader/i386/bsd_normal.c: New file.
18229 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
18231 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
18232 can test other formats.
18234 2008-02-19 Robert Millan <rmh@aybabtu.com>
18236 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
18237 (grub_gpt_partition_type_empty): Redefine with macro from
18238 `<grub/gpt_partition.h>'.
18239 (gpt_partition_map_iterate): Adjust partition type comparison.
18241 Export `entry' as partmap-specific `part.data' struct.
18242 (grub_gpt_header, grub_gpt_partentry): Move from here ...
18244 * include/grub/gpt_partition.h (grub_gpt_header)
18245 (grub_gpt_partentry): ... to here (new file).
18247 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
18249 (grub_gpt_partition_type_bios_boot): New const variable, defined
18250 with macro from `<grub/gpt_partition.h>'.
18252 (setup): Replace `first_start' with `embed_region', which keeps
18253 track of the embed region (and is partmap-agnostic).
18255 Replace find_first_partition_start() with find_usable_region(),
18256 which finds a usable region for embedding using partmap-specific
18257 knowledge (supports PC/MSDOS and GPT).
18259 Fix all assumptions that the embed region start at sector 1, using
18260 `embed_region.start' from now on. Similarly, use `embed_region.end'
18261 rather than `first_start' to calculate available size.
18263 In grub_util_info() message, replace "into after the MBR" with an
18264 indication of the specific sector our embed region starts at.
18266 2008-02-19 Robert Millan <rmh@aybabtu.com>
18268 * DISTLIST: Replace `commands/ieee1275/halt.c' and
18269 `commands/ieee1275/reboot.c' with `commands/halt.c' and
18270 `commands/reboot.c'.
18271 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18272 (halt_mod_SOURCES): Likewise.
18273 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18274 (halt_mod_SOURCES): Likewise.
18276 2008-02-17 Christian Franke <franke@computer.org>
18278 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
18280 2008-02-17 Robert Millan <rmh@aybabtu.com>
18282 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18283 set `first_start' to 0 for non-PC/MSDOS partition maps.
18285 2008-02-16 Robert Millan <rmh@aybabtu.com>
18287 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18288 do not assume partition map is PC/MSDOS before performing checks that
18289 are specific to that layout.
18291 2008-02-13 Robert Millan <rmh@aybabtu.com>
18293 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
18294 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
18295 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
18297 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
18299 * configure.ac: Only a cosmetic change on the handling of
18300 -fno-stack-protector.
18302 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
18304 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
18305 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
18307 (grub_install_SOURCES): Add halt.mod and reboot.mod.
18308 (halt_mod_SOURCES): New variable.
18309 (halt_mod_CFLAGS): Likewise.
18310 (halt_mod_LDFLAGS): Likewise.
18311 (reboot_mod_SOURCES): Likewise.
18312 (reboot_mod_CFLAGS): Likewise.
18313 (reboot_mod_LDFLAGS): Likewise.
18315 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
18316 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
18318 (halt_mod_SOURCES): Likewise.
18319 (reboot_mod_SOURCES): Likewise.
18321 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
18322 commands/i386/pc/reboot.c by commands/reboot.c.
18323 (reboot_mod_SOURCES): Likewise.
18325 * commands/i386/pc/reboot.c: merge this file ...
18327 * commands/ieee1275/reboot.c: ... and this file ...
18329 * commands/reboot.c: ... to this file.
18330 Add some precompiler directive to include the correct header for
18333 * commands/ieee1275/halt.c: move this file ...
18335 * commands/halt.c: ... to here.
18336 Add some precompiler directive to include the correct header for
18339 * include/grub/efi/efi.h (grub_reboot): New function declaration.
18340 (grub_halt): Likewise.
18342 * kern/efi/efi.c (grub_reboot): New function.
18343 (grub_halt): Likewise.
18345 2008-02-12 Robert Millan <rmh@aybabtu.com>
18347 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
18348 /dev (like it is done for /dev/mapper). This doesn't provide support
18349 for EVMS, but at least it is now easy to identify the problem when it
18352 2008-02-11 Robert Millan <rmh@aybabtu.com>
18354 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
18355 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
18356 comparing it with -1, not 0.
18358 2008-02-10 Robert Millan <rmh@aybabtu.com>
18360 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
18362 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18363 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18365 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
18366 `disk/lvm.c' to the end of the list.
18367 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18368 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18370 2008-02-10 Robert Millan <rmh@aybabtu.com>
18372 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
18373 grub_print_error() instead. This will let user know why we're entering
18375 Based on suggestions from Sam Morris.
18377 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
18379 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
18380 on remaining N args, instead of "--" arg N times.
18382 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
18384 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
18385 (fill_with_default_glyph): Changed to use unknown_glyph for fill
18386 pattern for unknown glyphs.
18388 2008-02-09 Robert Millan <rmh@aybabtu.com>
18390 * configure.ac: Probe for `help2man'.
18391 * Makefile.in (builddir): New variable.
18392 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
18393 or otherwise add a few flags/options to it.
18394 (install-local): For every executable utility or script that is
18395 installed, invoke $(HELP2MAN) to install a manpage based on --help
18398 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
18399 that it doesn't prevent --help from working in build tree.
18401 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
18402 with `bug-grub@gnu.org'.
18403 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
18404 * util/update-grub.in (usage): New function.
18405 Implement proper argument check, with support for --help and --version
18406 (as well as existing -y).
18408 2008-02-09 Christian Franke <franke@computer.org>
18410 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
18411 avoid overwriting previous output.
18412 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
18414 2008-02-09 Robert Millan <rmh@aybabtu.com>
18416 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
18419 2008-02-09 Robert Millan <rmh@aybabtu.com>
18421 * commands/sleep.c: New file.
18422 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
18423 (sleep_mod_SOURCES): New variable.
18424 (sleep_mod_CFLAGS): Likewise.
18425 (sleep_mod_LDFLAGS): Likewise.
18427 2008-02-09 Robert Millan <rmh@aybabtu.com>
18429 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
18430 situations in which we can deduce the RAID size and the superblock
18433 2008-02-09 Robert Millan <rmh@aybabtu.com>
18435 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
18436 and return a grub_diskmemberlist_t composed of LVM physical volumes.
18437 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
18439 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
18440 and return a grub_diskmemberlist_t composed of physical array members.
18441 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
18443 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
18445 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
18446 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
18447 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
18449 * util/grub-probe.c (probe): Move partmap probing code from here ...
18450 (probe_partmap): ... to here.
18451 (probe): Use probe_partmap() once for the disk we're probing, and
18452 additionally, when such disk contains a memberlist() struct member,
18453 once for each disk that is contained in the structure returned by
18456 2008-02-09 Robert Millan <rmh@aybabtu.com>
18458 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
18459 environment variable to 'all' in order to obtain debug output from
18461 * util/i386/pc/grub-setup.c (main): Likewise.
18463 2008-02-08 Robert Millan <rmh@aybabtu.com>
18465 * disk/raid.c (grub_raid_scan_device): Check for
18466 `array->device[sb.this_disk.number]' rather than for
18467 `array->device[sb.this_disk.number]->name', since the latter is not
18468 guaranteed to be accessible.
18470 2008-02-08 Robert Millan <rmh@aybabtu.com>
18472 * disk/raid.c: Update copyright.
18473 * fs/cpio.c: Likewise.
18474 * include/grub/raid.h: Likewise.
18475 * loader/i386/pc/multiboot.c: Likewise.
18476 * util/hostfs.c: Likewise.
18478 2008-02-08 Robert Millan <rmh@aybabtu.com>
18480 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
18481 to a grub_disk_t array.
18482 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
18484 (grub_raid_scan_device): Replace `device[x].name' accesses with
18485 `device[x]->name'. Simplify initialization of `array->device[x]'.
18487 2008-02-08 Robert Millan <rmh@aybabtu.com>
18489 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
18490 grub_dprintf() calls.
18491 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
18494 2008-02-07 Christian Franke <franke@computer.org>
18496 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
18497 instead of fseek and ftell to support large files.
18498 (grub_hostfs_read): Likewise.
18500 2008-02-07 Robert Millan <rmh@aybabtu.com>
18502 Patch from Jeroen Dekkers.
18503 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
18504 failure, since successfully reading all array members might not be
18507 2008-02-06 Robert Millan <rmh@aybabtu.com>
18509 * util/grub-probe.c (probe): Simplify partmap probing (with the
18510 assumption that the first word up to the underscore equals to
18513 2008-02-06 Christian Franke <franke@computer.org>
18515 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
18516 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
18517 last block of a cpio or tar stream.
18518 Check for "TRAILER!!!" instead of any empty data
18519 block to detect last block of a cpio stream.
18520 (grub_cpio_dir): Fix constness of variable np.
18521 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
18522 cpio or tar trailer is detected. This fixes a crash
18523 on open of a non existing file.
18525 2008-02-05 Bean <bean123ch@gmail.com>
18527 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
18529 (grub_multiboot_load_elf64): Likewise.
18530 (grub_multiboot): Initialize mbi structure.
18532 * util/grub-fstest.c: Don't include unused header file script.h.
18534 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
18536 (grub_fstest_SOURCES): Likewise.
18538 2008-02-05 Robert Millan <rmh@aybabtu.com>
18540 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
18541 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
18542 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
18543 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
18545 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
18546 (translation_table): Replace hardcoded values with macros
18547 provided by `<grub/term.h>'.
18549 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
18550 (keyboard_map): Correct/add a few values, with macros provided
18551 by `<grub/term.h>'.
18552 (keyboard_map_shift): Zero values that don't differ from their
18553 `keyboard_map' equivalents.
18554 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
18555 Discard the second scan code that is always sent by Caps lock.
18556 Only use `keyboard_map_shift' when it provides a non-zero value,
18557 otherwise fallback to `keyboard_map'.
18559 2008-02-04 Bean <bean123ch@gmail.com>
18561 * Makefile.in (enable_grub_fstest): New variable.
18563 * conf/common.rmk (grub_fstest_init.lst): New rule.
18564 (grub_fstest_init.h): Likewise.
18565 (grub_fstest_init.c): Likewise.
18566 (util/grub-fstest.c_DEPENDENCIES): New variable.
18567 (grub_fstest_SOURCES): Likewise.
18569 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
18571 * util/grub-fstest.c: New file.
18573 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18575 Make grub-setup handle a separate root device.
18577 * util/i386/pc/grub-setup.c (setup): Always open the root device,
18578 so that the root device can be compared with the destination
18580 When embedding the core image, if the root and destination devices
18581 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
18583 When not embedding, set ROOT_DRIVE to 0xFF.
18585 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18587 Add support for having a grub directory in a different drive. This
18588 is still only the data handling part.
18590 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
18591 (codestart): Save %dh in GRUB_ROOT_DRIVE.
18592 (grub_root_drive): New variable.
18594 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
18595 instead of GRUB_BOOT_DRIVE to construct a device name. Set
18596 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
18599 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
18601 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
18603 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
18605 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
18606 is bogus, because PXE booting does not specify any drive
18609 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
18610 am not sure if this is really correct.
18612 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
18613 is always identical to the boot drive when booting from a CD.
18615 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
18617 (root_drive): New variable.
18618 (real_start): Unconditionally set %dh to ROOT_DRIVE.
18619 (setup_sectors): Push %dx right after popping it, because %dh will
18621 (copy_buffer): Restore %dx.
18623 2008-02-03 Robert Millan <rmh@aybabtu.com>
18625 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
18626 use `cdboot.img' for cdrom images.
18628 2008-02-03 Robert Millan <rmh@aybabtu.com>
18630 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
18631 only setup gfxterm when `font' command has succeeded.
18633 2008-02-03 Robert Millan <rmh@aybabtu.com>
18635 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
18636 (grub_rescue_cmd_multiboot_loader)
18637 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
18639 2008-02-03 Pavel Roskin <proski@gnu.org>
18641 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
18642 %edx and %esi from stack only after grub_gate_a20() is called.
18643 grub_gate_a20() clobbers %edx.
18645 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18647 * configure.ac (AC_INIT): Bumped to 1.96.
18649 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
18650 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
18651 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
18652 video/readers/png.c.
18654 2008-02-03 Bean <bean123ch@gmail.com>
18656 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
18657 (cdboot_img_SOURCES): New variable.
18658 (cdboot_img_ASFLAGS): New variable.
18659 (cdboot_img_LDFLAGS): New variable.
18661 * boot/i386/pc/cdboot.S: New file.
18663 * disk/i386/pc/biosdisk.c (cd_start): New variable.
18664 (cd_count): Likewise.
18665 (grub_biosdisk_get_drive): Add support for cd device.
18666 (grub_biosdisk_call_hook): Likewise.
18667 (grub_biosdisk_iterate): Likewise.
18668 (grub_biosdisk_open): Likewise.
18669 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
18670 (grub_biosdisk_rw): Support reading from cd device.
18671 (GRUB_MOD_INIT): Iterate cd devices.
18673 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
18674 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
18675 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
18677 * kern/i386/pc/init.c (make_install_device): Check for cd device.
18679 2008-02-02 Robert Millan <rmh@aybabtu.com>
18681 * commands/read.c: New file.
18682 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
18683 (read_mod_SOURCES): New variable.
18684 (read_mod_CFLAGS): Likewise.
18685 (read_mod_LDFLAGS): Likewise.
18687 2008-02-02 Robert Millan <rmh@aybabtu.com>
18689 * normal/main.c (grub_normal_execute): Check for `menu->size' when
18690 determining whether menu has to be displayed.
18692 2008-02-02 Marco Gerards <marco@gnu.org>
18694 * bus/pci.c: New file.
18696 * include/grub/pci.h: Likewise.
18698 * include/grub/i386/pc/pci.h: Likewise.
18700 * commands/lspci.c: Likewise.
18702 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
18704 (pci_mod_SOURCES): New variable.
18705 (pci_mod_CFLAGS): Likewise.
18706 (pci_mod_LDFLAGS): Likewise.
18707 (lspci_mod_SOURCES): Likewise.
18708 (lspci_mod_CFLAGS): Likewise.
18709 (lspci_mod_LDFLAGS): Likewise.
18711 2008-02-02 Bean <bean123ch@gmail.com>
18713 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
18714 (grub_ufs_get_file_block): Fix indirect block calculation problem.
18716 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
18717 (grub_xfs_btree_node): New structure.
18718 (grub_xfs_btree_root): New structure.
18719 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
18720 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
18721 (GRUB_XFS_EXTENT_BLOCK): Likewise.
18722 (GRUB_XFS_EXTENT_SIZE): Likewise.
18723 (grub_xfs_read_block): Support btree format type.
18724 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
18725 Use directory block as basic unit.
18727 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
18729 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
18730 __attribute__ ((__regparm__ (1))).
18732 2008-02-01 Robert Millan <rmh@aybabtu.com>
18734 Correct a mistake in previous commit.
18736 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
18738 (normal/command.c_DEPENDENCIES): New variable.
18740 2008-02-01 Robert Millan <rmh@aybabtu.com>
18742 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
18744 (normal/command.c_DEPENDENCIES): New variable.
18745 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
18746 * conf/i386-ieee1275.rmk: Likewise.
18747 * conf/i386-linuxbios.rmk: Likewise.
18748 * conf/i386-pc.rmk: Likewise.
18749 * conf/sparc64-ieee1275.rmk: Likewise.
18750 * conf/powerpc-ieee1275.rmk: Likewise.
18751 (grub_emu_SOURCES): Add `fs/fshelp.c'.
18753 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
18755 2008-02-01 Robert Millan <rmh@aybabtu.com>
18757 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
18758 call at beginning of function.
18760 2008-01-31 Pavel Roskin <proski@gnu.org>
18762 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
18763 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
18764 (grub_mkrescue_SOURCES): Likewise.
18765 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
18767 2008-01-30 Robert Millan <rmh@aybabtu.com>
18769 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
18770 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
18771 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
18772 (grub_probe_SOURCES): ... to here.
18774 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
18775 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
18776 * conf/i386-ieee1275.rmk: Likewise.
18777 * conf/i386-linuxbios.rmk: Likewise.
18778 * conf/powerpc-ieee1275.rmk: Likewise.
18780 2008-01-30 Tristan Gingold <gingold@free.fr>
18782 * kern/rescue.c: Silently accept empty lines.
18784 2008-01-29 Bean <bean123ch@gmail.com>
18786 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
18787 (real_code_2): Code cleanup and change comment style.
18788 (move_memory): Avoid using 32-bit address mode.
18790 2008-01-29 Bean <bean123ch@gmail.com>
18792 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
18793 (png_mod_SOURCES): New variable.
18794 (png_mod_CFLAGS): Likewise.
18795 (png_mod_LDFLAGS): Likewise.
18797 * video/readers/png.c: New file.
18799 2008-01-28 Robert Millan <rmh@aybabtu.com>
18801 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
18802 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
18803 `ifndef GRUB_MOD_GAP' hack.
18804 * util/elf/grub-mkimage.c (add_segments): Likewise.
18806 2008-01-27 Robert Millan <rmh@aybabtu.com>
18808 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
18809 `GRUB_MOD_GAP' for platforms in which it's not defined.
18810 * util/elf/grub-mkimage.c (add_segments): Likewise.
18812 2008-01-27 Robert Millan <rmh@aybabtu.com>
18814 Get grub-emu to build again (including parallel builds).
18816 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
18818 (util/grub-emu.c_DEPENDENCIES): ... this, ...
18819 (normal/execute.c_DEPENDENCIES): ... this, ...
18820 (grub-emu_DEPENDENCIES): ... and this.
18822 * conf/i386-efi.rmk: Likewise.
18823 * conf/i386-linuxbios.rmk: Likewise.
18824 * conf/i386-ieee1275.rmk: Likewise.
18825 * conf/powerpc-ieee1275.rmk: Likewise.
18826 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
18828 2008-01-27 Robert Millan <rmh@aybabtu.com>
18830 * NEWS: Add a few items.
18832 2008-01-27 Robert Millan <rmh@aybabtu.com>
18834 Fix parallel builds with grub-emu. Based on earlier commit for
18835 grub-probe and grub-setup.
18837 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18838 (util/grub-emu.c_DEPENDENCIES): ... this.
18839 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18840 (util/grub-emu.c_DEPENDENCIES): ... this.
18841 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18842 (util/grub-emu.c_DEPENDENCIES): ... this.
18843 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18844 (util/grub-emu.c_DEPENDENCIES): ... this.
18845 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18846 (util/grub-emu.c_DEPENDENCIES): ... this.
18848 2008-01-27 Pavel Roskin <proski@gnu.org>
18850 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
18851 to create a gap between _end and the modules added to the image
18852 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
18853 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
18854 * util/elf/grub-mkimage.c (add_segments): Likewise.
18856 2008-01-26 Pavel Roskin <proski@gnu.org>
18858 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
18859 just return an error.
18861 2008-01-26 Bean <bean123ch@gmail.com>
18863 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
18864 (grub_reiserfs_get_item): Save offset of the next item.
18865 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
18867 2008-01-25 Robert Millan <rmh@aybabtu.com>
18869 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
18870 make all filesystem sources appear together (possibly fixing omissions
18872 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18873 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18874 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18875 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18877 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
18879 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
18880 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
18881 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
18882 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
18884 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
18885 (probe): Add a sanity check to make sure of our ability to read
18886 requested files when probing for filesystem type.
18888 * genmk.rb: Update copyright year (2007).
18890 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
18891 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
18892 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
18893 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
18894 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
18895 : Remove function prototypes.
18897 2008-01-25 Robert Millan <rmh@aybabtu.com>
18899 Revert my previous commits (based on wrong assumption of how grub_errno
18902 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
18903 * kern/file.c (grub_file_open): Likewise.
18905 2008-01-24 Pavel Roskin <proski@gnu.org>
18907 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
18908 that hang if GRUB tries to setup colors.
18909 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
18910 colors for firmwares that don't support it.
18911 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
18912 Recognize Open Hack'Ware, set flags to work around its
18915 2008-01-24 Robert Millan <rmh@aybabtu.com>
18917 * kern/file.c (grub_file_open): Do not account previous failures of
18918 unrelated functions when grub_errno is checked for.
18919 Reported by Oleg Strikov.
18921 2008-01-24 Bean <bean123ch@gmail.com>
18923 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
18924 (grub_ufs_sblock): New member volume name.
18925 (grub_ufs_find_file): Fix string copy bug.
18926 (grub_ufs_label): Implement this function properly.
18928 * fs/hfs.c (grub_hfs_cnid_type): New enum.
18929 (grub_hfs_iterate_records): Use the correct file number for extents
18930 and catalog file. Fix problem in next index calculation.
18931 (grub_hfs_find_node): Replace recursive function call with loop.
18932 (grub_hfs_iterate_dir): Replace recursive function call with loop.
18934 2008-01-23 Robert Millan <rmh@aybabtu.com>
18936 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
18937 `<grub/symbol.h>' and `<grub/multiboot.h>'.
18938 (grub_multiboot2_real_boot): New function prototype.
18940 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
18941 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
18943 * kern/i386/ieee1275/init.c (grub_os_area_addr)
18944 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
18946 2008-01-23 Robert Millan <rmh@aybabtu.com>
18948 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
18949 #ifdef'ed out grub_printf().
18951 2008-01-23 Robert Millan <rmh@aybabtu.com>
18953 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
18954 grub_dprintf calls, since they make "debug=all" mode unusable.
18955 (grub_console_checkkey): Likewise.
18957 2008-01-23 Robert Millan <rmh@aybabtu.com>
18959 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
18960 `term/i386/pc/at_keyboard.c'.
18961 (pkglib_MODULES): Add `serial.mod'.
18962 (serial_mod_SOURCES): New variable.
18963 (serial_mod_CFLAGS): Likewise.
18964 (serial_mod_LDFLAGS): Likewise.
18966 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
18967 `<grub/powerpc/ieee1275/console.h>'.
18968 (grub_keyboard_controller_init): New function prototype.
18969 (grub_console_checkkey): Likewise.
18970 (grub_console_getkey): Likewise.
18972 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
18975 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
18976 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
18978 2008-01-23 Robert Millan <rmh@aybabtu.com>
18980 * kern/i386/pc/init.c (make_install_device): When memdisk image is
18981 present, "(memdisk)/boot/grub" becomes the default prefix.
18983 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
18984 a memdisk tarball with all the modules. Add --overlay=DIR option that
18985 allows users to overlay additional files into the image.
18987 2008-01-23 Robert Millan <rmh@aybabtu.com>
18989 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
18990 and `machine/memory.h'.
18991 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
18992 (_multiboot_mod_SOURCES): New variable.
18993 (_multiboot_mod_CFLAGS): Likewise.
18994 (_multiboot_mod_LDFLAGS): Likewise.
18995 (multiboot_mod_SOURCES): Likewise.
18996 (multiboot_mod_CFLAGS): Likewise.
18997 (multiboot_mod_LDFLAGS): Likewise.
18999 * include/grub/i386/ieee1275/loader.h: New file.
19001 * include/grub/i386/ieee1275/machine.h: Likewise.
19003 * include/grub/i386/ieee1275/memory.h: Likewise.
19005 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
19006 variable declaration.
19007 (grub_os_area_size): Likewise.
19009 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
19010 (grub_lower_mem, grub_upper_mem): New variables.
19011 (grub_stop_floppy): New function (just to make
19012 grub_multiboot2_real_boot() happy).
19014 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
19015 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
19016 (grub_stop): New function.
19017 Include `"../realmode.S"' and `"../loader.S"'.
19019 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
19020 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
19022 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
19023 rely on grub_multiboot2_real_boot() for final boot.
19025 2008-01-22 Robert Millan <rmh@aybabtu.com>
19027 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
19028 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
19029 device that doesn't look like an SD card.
19030 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
19031 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
19032 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
19033 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
19036 2008-01-22 Robert Millan <rmh@aybabtu.com>
19038 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
19039 avoid claiming over our own code.
19041 2008-01-22 Bean <bean123ch@gmail.com>
19043 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
19044 (jpeg_mod_SOURCES): New variable.
19045 (jpeg_mod_CFLAGS): Likewise.
19046 (jpeg_mod_LDFLAGS): Likewise.
19048 * video/readers/jpeg.c : New file.
19050 2008-01-22 Bean <bean123ch@gmail.com>
19052 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
19053 there are no more items.
19055 2008-01-21 Robert Millan <rmh@aybabtu.com>
19057 * kern/mm.c (grub_mm_init_region): Improve debug message.
19059 2008-01-21 Robert Millan <rmh@aybabtu.com>
19061 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
19062 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
19064 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
19066 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
19067 Indicates start of upper memory.
19068 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
19069 (generate_image): Abort when image size is big enough to corrupt
19072 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
19073 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
19074 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19075 instead of hardcoding 0xA0000.
19076 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
19077 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19078 instead of hardcoding 0xA0000.
19080 2008-01-21 Robert Millan <rmh@aybabtu.com>
19082 * disk/memdisk.c (memdisk_size): New variable.
19083 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
19085 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
19086 image to dynamic memory.
19087 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
19088 `memdisk_size'. Free memdisk block.
19090 2008-01-21 Robert Millan <rmh@aybabtu.com>
19092 Fix detection of very small filesystems (like tar).
19094 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
19095 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
19096 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
19097 a problem with this disk).
19099 2008-01-21 Robert Millan <rmh@aybabtu.com>
19101 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
19102 on grub_biosdisk_rw_standard() error.
19104 2008-01-21 Robert Millan <rmh@aybabtu.com>
19106 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
19108 * kern/elf.c: Likewise.
19109 * kern/ieee1275/ieee1275.c: Likewise.
19110 * kern/powerpc/ieee1275/openfw.c: Likewise.
19111 * term/ieee1275/ofconsole.c: Likewise.
19113 2008-01-21 Robert Millan <rmh@aybabtu.com>
19115 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
19117 * include/grub/kernel.h (grub_arch_memdisk_addr)
19118 (grub_arch_memdisk_size): Moved from here ...
19120 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
19121 (grub_arch_memdisk_size): ... to here.
19123 2008-01-21 Robert Millan <rmh@aybabtu.com>
19125 Mostly based on bugfix from Bean.
19127 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
19128 attribute with hook() parameter.
19129 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
19131 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
19132 attribute with hook() parameter.
19133 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
19136 2008-01-21 Robert Millan <rmh@aybabtu.com>
19138 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
19139 (pkglib_MODULES): Add `memdisk.mod'.
19140 (memdisk_mod_SOURCES): New variable.
19141 (memdisk_mod_CFLAGS): Likewise.
19142 (memdisk_mod_LDFLAGS): Likewise.
19144 * disk/memdisk.c: New file.
19146 * include/grub/disk.h (grub_disk_dev_id): Add
19147 `GRUB_DISK_DEVICE_MEMDISK_ID'.
19149 * include/grub/i386/pc/kernel.h
19150 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
19151 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
19152 (grub_kernel_image_size): New variable declaration.
19153 (grub_total_module_size): Likewise.
19154 (grub_memdisk_image_size): Likewise.
19156 * include/grub/i386/pc/memory.h
19157 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
19159 * include/grub/kernel.h: Include `<grub/symbol.h>'.
19160 (grub_arch_memdisk_addr): New variable declaration.
19161 (grub_arch_memdisk_size): Likewise.
19163 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
19164 (grub_arch_memdisk_size): Likewise.
19166 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
19167 (codestart): Replace hardcoded `0x100000' with
19168 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
19170 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
19171 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
19172 not NULL, append the contents of the file it refers to, at the end of
19173 the compressed kernel image. Initialize `grub_memdisk_image_size'
19174 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
19175 (options): Add "memdisk"|'m' option.
19176 (main): Parse --memdisk|-m option, and pass user-provided path as
19177 parameter to generate_image().
19179 2008-01-20 Robert Millan <rmh@aybabtu.com>
19181 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
19182 grub_dprintf() calls from here ...
19183 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
19185 2008-01-20 Robert Millan <rmh@aybabtu.com>
19187 Fix detection of "real mode" when /options/real-mode? doesn't exist.
19189 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
19191 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
19192 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
19193 `GRUB_IEEE1275_FLAG_REAL_MODE'.
19194 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
19196 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
19197 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
19199 2008-01-19 Robert Millan <rmh@aybabtu.com>
19201 Get rid of confusing function (superseded by
19202 `grub_ieee1275_get_integer_property')
19203 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
19205 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
19207 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
19208 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
19209 in native endianness from grub_ieee1275_get_integer_property().
19211 2008-01-19 Robert Millan <rmh@aybabtu.com>
19213 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
19214 command after "shut-down", since implementations differ on which
19215 the command for halt is.
19217 2008-01-19 Robert Millan <rmh@aybabtu.com>
19219 * include/grub/i386/linuxbios/console.h: Add header protection.
19220 (grub_keyboard_controller_init): New function prototype.
19221 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
19222 (KEYBOARD_COMMAND_READ): Likewise.
19223 (KEYBOARD_COMMAND_WRITE): Likewise.
19224 (KEYBOARD_SCANCODE_SET1): Likewise.
19225 (grub_keyboard_controller_write): New function.
19226 (grub_keyboard_controller_read): Likewise.
19227 (grub_keyboard_controller_init): Likewise.
19229 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
19230 (grub_console_init): On coreboot/LinuxBIOS, call
19231 grub_keyboard_controller_init().
19233 2008-01-19 Robert Millan <rmh@aybabtu.com>
19235 PowerPC changes provided by Pavel Roskin.
19237 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
19238 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
19239 don't rely on cmain() doing it.
19240 * kern/i386/ieee1275/startup.S (_start): Store %eax in
19241 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
19243 2008-01-16 Robert Millan <rmh@aybabtu.com>
19245 * include/grub/i386/linuxbios/memory.h
19246 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
19247 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
19248 receive `table_header' as argument. Instead, probe for it in the
19249 known memory ranges where it can be present.
19250 (grub_available_iterate): Do not pass a fixed `table_header' address
19251 to grub_linuxbios_table_iterate().
19253 2008-01-15 Robert Millan <rmh@aybabtu.com>
19255 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
19256 * conf/i386-ieee1275.rmk: New file.
19257 * include/grub/i386/ieee1275/console.h: Likewise.
19258 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
19259 * include/grub/i386/ieee1275/kernel.h: Likewise.
19260 * include/grub/i386/ieee1275/time.h: Likewise.
19261 * kern/i386/ieee1275/init.c: Likewise.
19262 * kern/i386/ieee1275/startup.S: Likewise.
19264 2008-01-15 Robert Millan <rmh@aybabtu.com>
19266 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
19267 when pointers are 32-bit (but still do set it to one when they are
19270 2008-01-15 Robert Millan <rmh@aybabtu.com>
19272 * include/grub/ieee1275/ieee1275.h
19273 (grub_ieee1275_get_integer_property): New function prototype.
19275 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
19276 (grub_ieee1275_get_integer_property): New function. Wraps around
19277 grub_ieee1275_get_property() to handle endianness.
19279 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
19280 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
19282 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
19283 (grub_map): Likewise.
19284 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
19286 2008-01-15 Bean <bean123ch@gmail.com>
19288 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
19289 (grub_script_execute_cmdline): Reset grub_errno.
19291 * normal/main.c (read_config_file): Reset grub_errno.
19293 * normal/parse.y (script_init): New.
19294 (script): Move function and menuentry here.
19296 (command): Add delimiter at the end of command.
19297 (commands): Adjust to match the new command.
19298 (commandblock): Remove grub_script_lexer_record_start.
19299 (menuentry): Add grub_script_lexer_record_start, use the new commands.
19300 (if): Use the new commands.
19302 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
19304 2008-01-15 Robert Millan <rmh@aybabtu.com>
19306 * normal/menu.c (run_menu): Move timeout message from here ...
19307 (print_timeout): ... to here.
19308 (run_menu): Use print_timeout() once during initial draw to print
19309 the whole message, and again in every clock tick to update only
19310 the number of seconds.
19312 2008-01-15 Robert Millan <rmh@aybabtu.com>
19314 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
19315 actual size of `available' from grub_ieee1275_get_property(), and
19316 restrict parsing to that bound.
19318 2008-01-15 Christian Franke <franke@computer.org>
19320 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
19321 (argp_program_version): Remove variable.
19322 (argp_program_bug_address): Likewise.
19323 (options): Convert from struct argp_option to struct option.
19324 (struct arguments): Remove.
19325 (parse_opt): Remove.
19326 (usage): New function.
19327 (main): Replace struct args members by simple variables.
19328 Replace argp_parse() by getopt_long().
19329 Add switch to evaluate options.
19330 Add missing "(...)" around root_dev in prefix string.
19332 2008-01-14 Robert Millan <rmh@aybabtu.com>
19334 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
19335 for grub_ieee1275_exit(), in order to improve portability.
19337 2008-01-14 Robert Millan <rmh@aybabtu.com>
19339 * util/grub.d/10_linux.in (prefix): Define.
19340 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
19342 2008-01-13 Pavel Roskin <proski@gnu.org>
19344 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
19345 grub_errno if no errors have been detected.
19347 2008-01-12 Robert Millan <rmh@aybabtu.com>
19349 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
19350 (grub_util_get_dev_abstraction): New function prototype.
19352 * util/getroot.c: Include `<grub/util/getroot.h>'
19353 (grub_util_get_grub_dev): Move detection of abstraction type to ...
19354 (grub_util_get_dev_abstraction): ... here (new function).
19356 * util/grub-probe.c: Convert PRINT_* to an enum. Add
19357 `PRINT_ABSTRACTION'.
19358 (probe): Probe for abstraction type when requested.
19359 (main): Understand `--target=abstraction'.
19361 * util/i386/efi/grub-install.in: Add abstraction module to core
19362 image when it is found to be necessary.
19363 * util/i386/pc/grub-install.in: Likewise.
19364 * util/powerpc/ieee1275/grub-install.in: Likewise.
19366 * util/update-grub_lib.in (font_path): Return system path without
19367 converting to GRUB path.
19368 * util/update-grub.in: Convert system path returned by font_path()
19369 to a GRUB path. Use `grub-probe -t abstraction' to determine what
19370 abstraction module is needed for loading fonts (if any). Export
19371 that as `GRUB_PRELOAD_MODULES'.
19372 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
19375 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
19377 Remove some unused code from reiserfs.
19379 * fs/reiserfs.c (struct grub_reiserfs_key)
19380 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
19381 (struct grub_reiserfs_node_body): Removed.
19382 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19384 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19386 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19388 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19390 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19392 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
19394 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19395 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19396 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19398 2008-01-10 Robert Millan <rmh@aybabtu.com>
19400 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
19401 Determines if a file is garbage left by packaging systems, etc.
19402 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
19403 for processing /etc/grub.d scripts.
19404 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
19405 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
19406 as a condition for processing Linux images.
19408 2008-01-10 Pavel Roskin <proski@gnu.org>
19410 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
19411 to compile reiserfs.c on PowerPC.
19413 2008-01-10 Robert Millan <rmh@aybabtu.com>
19415 * kern/device.c (grub_device_iterate): Do not abort device iteration
19416 when one of the devices cannot be opened.
19417 * kern/disk.c (grub_disk_open): Do not account previous failures of
19418 unrelated functions when grub_errno is checked for.
19420 2008-01-08 Robert Millan <rmh@aybabtu.com>
19422 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
19423 `! grub_linux_is_bzimage', change order of address comparison to make
19424 it more intuitive, and improve "too big zImage" error message.
19426 2008-01-08 Robert Millan <rmh@aybabtu.com>
19428 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
19429 `$(update-grub_DATA)'.
19430 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
19433 2008-01-07 Robert Millan <rmh@aybabtu.com>
19435 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
19436 which instruction is modified by grub-setup during installation
19437 (since it wasn't obvious by only looking at this file).
19439 2008-01-07 Robert Millan <rmh@aybabtu.com>
19441 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
19442 listing actual TODO items.
19444 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19446 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
19448 (grub_reiserfs_get_key_offset): Likewise.
19449 (grub_reiserfs_set_key_offset): Likewise.
19450 (grub_reiserfs_set_key_type): Likewise.
19451 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
19453 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
19454 better to remove the bitfield version completely.
19456 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19458 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
19459 allocated from the heap, due to the fshelp implementation.
19460 (grub_reiserfs_dir): Free NODE, due to the same reason.
19462 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19464 Mostly from Vincent Pelletier:
19466 * fs/reiserfs.c: New file.
19468 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
19469 (reiserfs_mod_SOURCES): New variable.
19470 (reiserfs_mod_CFLAGS): Likewise.
19471 (reiserfs_mod_LDFLAGS): Likewise.
19473 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
19474 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
19475 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
19478 2008-01-06 Robert Millan <rmh@aybabtu.com>
19480 * normal/color.c: Remove `<grub/env.h>'.
19482 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
19484 * include/grub/normal.h: Include <grub/env.h>.
19486 2008-01-05 Robert Millan <rmh@aybabtu.com>
19488 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
19489 usage example with `(hd0,1)'.
19490 Reported by Samuel Thibault.
19492 2008-01-05 Robert Millan <rmh@aybabtu.com>
19494 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
19495 (grub_linux_boot_zimage): Rename to ...
19496 (grub_linux_boot): ... this.
19497 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
19498 (grub_linux_boot_zimage): Conditionalize zImage copy.
19500 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
19501 (grub_linux_boot_bzimage): Remove prototype.
19502 (grub_linux_boot_zimage): Rename to ...
19503 (grub_linux_boot): ... this.
19505 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
19506 (grub_linux_boot): Remove function.
19508 2008-01-05 Robert Millan <rmh@aybabtu.com>
19510 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
19511 (grub_env_write_color_highlight): Likewise.
19512 (grub_wait_after_message): Likewise.
19514 * normal/color.c: New file.
19516 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19517 (normal_mod_DEPENDENCIES): Likewise.
19519 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19520 (normal_mod_DEPENDENCIES): Likewise.
19522 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19523 (normal_mod_DEPENDENCIES): Likewise.
19525 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19526 (normal_mod_DEPENDENCIES): Likewise.
19528 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
19529 for waiting after a message is printed.
19530 * normal/main.c (read_config_file): Likewise.
19531 (grub_normal_init): Register grub_env_write_color_normal() and
19532 grub_env_write_color_highlight() hooks. Mark `color_normal' and
19533 `color_highlight' variables as global.
19535 * normal/menu.c (grub_wait_after_message): New function.
19536 (grub_color_menu_normal): New variable. Replaces ...
19537 (GRUB_COLOR_MENU_NORMAL): ... this macro.
19538 (grub_color_menu_highlight): New variable. Replaces ...
19539 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
19540 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
19541 `GRUB_TERM_COLOR_STANDARD'.
19542 (print_message): Use `grub_setcolorstate' to reload colors. Rename
19543 `normal_code' and `highlight_code' to `old_color_normal' and
19544 `old_color_highlight', respectively.
19545 (grub_menu_init_page): Update colors when drawing the menu, based on
19546 `menu_color_normal' and `menu_color_highlight' variables.
19547 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
19548 a message is printed.
19550 2008-01-05 Robert Millan <rmh@aybabtu.com>
19552 * kern/env.c (grub_env_context_open): Propagate hooks for global
19553 variables to new context.
19555 * kern/main.c (grub_set_root_dev): Export `root' variable.
19557 2008-01-05 Robert Millan <rmh@aybabtu.com>
19559 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
19560 discs unconditionally, since udev and others have options to provide
19563 2008-01-05 Robert Millan <rmh@aybabtu.com>
19565 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
19567 2008-01-04 Christian Franke <franke@computer.org>
19569 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
19572 2008-01-03 Pavel Roskin <proski@gnu.org>
19574 * kern/i386/linuxbios/init.c: Put "void" to all function
19575 declarations with no arguments.
19576 * kern/powerpc/ieee1275/init.c: Likewise.
19577 * term/i386/pc/at_keyboard.c: Likewise.
19578 * term/i386/pc/vga_text.c: Likewise.
19579 * util/grub-mkdevicemap.c: Likewise.
19581 2008-01-02 Robert Millan <rmh@aybabtu.com>
19583 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
19584 message when loaded image is out of bounds.
19585 (grub_multiboot_load_elf64): Likewise.
19587 2008-01-02 Pavel Roskin <proski@gnu.org>
19589 * util/grub.d/10_linux.in: Try version without ".old" when
19590 looking for initrd. It's better to use initrd from the newer
19591 kernel of the same version than no initrd at all.
19593 2008-01-01 Robert Millan <rmh@aybabtu.com>
19595 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
19597 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
19599 * include/grub/video.h: Added grub_video_unmap_color and
19600 grub_video_get_active_render_target.
19601 (grub_video_adapter): Added unmap_color and get_active_render_target.
19603 * video/video.c: Added grub_video_unmap_color and
19604 grub_video_get_active_render_target.
19605 (grub_video_get_info): Changed method to accept NULL pointer as an
19606 argument to allow detection of active video adapter.
19608 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
19609 grub_video_vbe_unmap_color_int.
19610 Added grub_video_vbe_unmap_color and
19611 grub_video_vbe_get_active_render_target.
19612 (grub_video_vbe_adapter): Added unmap_color and
19613 get_active_render_target.
19615 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
19616 with grub_video_vbe_unmap_color_int.
19618 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
19619 (DEFAULT_NORMAL_COLOR): Likewise.
19620 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
19621 (DEFAULT_FG_COLOR): Removed.
19622 (DEFAULT_BG_COLOR): Likewise.
19623 (DEFAULT_CURSOR_COLOR): Changed value.
19624 (grub_virtual_screen): Added standard_color_setting,
19625 normal_color_setting, highlight_color_setting and term_color.
19626 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
19627 (bitmap_width): Added.
19628 (bitmap_height): Likewise.
19629 (bitmap): Likewise.
19630 (set_term_color): Likewise.
19631 (grub_virtual_screen_setup): Changed to use new terminal coloring
19633 (grub_gfxterm_init): Added init for bitmap.
19634 (grub_gfxterm_fini): Added destroy for bitmap.
19635 (redraw_screen_rect): Updated to use background bitmap and new
19637 (scroll_up): Added optimization for case when there is no bitmap.
19638 (grub_gfxterm_cls): Fixed to use correct background color.
19639 (grub_virtual_screen_setcolorstate): Changed to use new terminal
19641 (grub_virtual_screen_setcolor): Likewise.
19642 (grub_virtual_screen_getcolor): Added.
19643 (grub_gfxterm_background_image_cmd): Likewise.
19644 (grub_video_term): Added setcolor and getcolor.
19645 (MOD_INIT): Added registration of background_image command.
19646 (MOD_TERM): Added unregistration for background_image command.
19648 2007-12-30 Pavel Roskin <proski@gnu.org>
19650 * loader/multiboot_loader.c: Fix multiboot command
19651 unregistration. Fix all typos in the word "multiboot".
19653 2007-12-29 Pavel Roskin <proski@gnu.org>
19655 * util/grub.d/10_linux.in: Refactor search for initrd. Add
19656 support for initrd names used in Fedora.
19658 2007-12-26 Bean <bean123ch@gmail.com>
19660 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
19661 (cpio_mod_SOURCES): New variable.
19662 (cpio_mod_CFLAGS): Likewise.
19663 (cpio_mod_LDFLAGS): Likewise.
19665 * fs/cpio.c: New file.
19667 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
19669 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19671 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19673 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19675 2007-12-25 Robert Millan <rmh@aybabtu.com>
19677 * include/grub/term.h (struct grub_term): Add `getcolor' function.
19678 (grub_getcolor): New function.
19680 * kern/term.c (grub_getcolor): New function.
19681 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
19682 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
19683 (print_entry): Set normal and highlight colors to
19684 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
19685 respectively, before printing and restore them to old
19687 (grub_menu_init_page): Likewise. Fill an additional colored space
19688 that would otherwise be left blank.
19690 * term/efi/console.c (grub_console_getcolor): New function.
19691 (struct grub_console_term.getcolor): New variable.
19692 * term/i386/pc/console.c (grub_console_getcolor): New function.
19693 (struct grub_console_term.getcolor): New variable.
19694 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
19695 (struct grub_console_term.getcolor): New variable.
19697 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
19698 (struct grub_console_term.setcolor): Remove variable.
19699 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
19700 (struct grub_console_term.setcolor): Remove variable.
19701 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
19702 (struct grub_console_term.setcolor): Remove variable.
19703 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
19704 (struct grub_console_term.setcolor): Remove variable.
19706 2007-12-25 Robert Millan <rmh@aybabtu.com>
19708 * configure.ac: Search for possible unifont.hex locations, and
19709 define UNIFONT_HEX if found.
19711 * Makefile.in (UNIFONT_HEX): Define variable.
19712 (DATA): Rename to ...
19713 (PKGLIB): ... this. Update all users.
19714 (PKGDATA): New variable.
19715 (pkgdata_IMAGES): Rename to ...
19716 (pkglib_IMAGES): ... this. Update all users.
19717 (pkgdata_MODULES): Rename to ...
19718 (pkglib_MODULES): ... this. Update all users.
19719 (pkgdata_PROGRAMS): Rename to ...
19720 (pkglib_PROGRAMS): ... this. Update all users.
19721 (pkgdata_DATA): Rename to ...
19722 (pkglib_DATA): ... this. Update all users.
19723 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
19724 (unicode.pff, ascii.pff): New rules.
19725 (all-local): Add `$(PKGDATA)' dependency.
19726 (install-local): Process `$(PKGDATA)'.
19728 * util/update-grub_lib.in (font_path): Search for *.pff files in
19729 a few more locations, including `${pkgdata}'.
19731 2007-12-23 Robert Millan <rmh@aybabtu.com>
19733 Patch from Bean <bean123ch@gmail.com>:
19734 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
19737 2007-12-21 Bean <bean123ch@gmail.com>
19739 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
19740 (ntfscomp_mod_SOURCES): New variable.
19741 (ntfscomp_mod_CFLAGS): Likewise.
19742 (ntfscomp_mod_LDFLAGS): Likewise.
19744 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
19745 (grub_probe_SOURCES): Likewise.
19746 (grub_emu_SOURCES): Likewise.
19748 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19749 (grub_emu_SOURCES): Likewise.
19751 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19752 (grub_emu_SOURCES): Likewise.
19754 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19755 (grub_emu_SOURCES): Likewise.
19757 * fs/ntfs.c (grub_ntfscomp_func): New variable.
19758 (read_run_list): Renamed to grub_ntfs_read_run_list.
19759 (decomp_nextvcn): Moved to ntfscomp.c.
19760 (decomp_getch): Likewise.
19761 (decomp_get16): Likewise.
19762 (decomp_block): Likewise.
19763 (read_block): Likewise.
19764 (read_data): Partially moved to ntfscomp.c.
19765 (fixup): Change unsigned to grub_uint16_t.
19766 (read_mft): Change unsigned long to grub_uint32_t.
19767 (read_attr): Likewise.
19768 (read_data): Likewise.
19769 (read_run_data): Likewise.
19770 (read_run_list): Likewise.
19771 (read_mft): Likewise.
19773 * fs/ntfscomp.c: New file.
19775 * include/grub/ntfs.h: New file.
19777 2007-12-16 Robert Millan <rmh@aybabtu.com>
19779 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
19780 IDE disk check, since Linux is known to support 20 IDE disks.
19781 Reported by Colin Watson.
19783 2007-12-15 Bean <bean123ch@gmail.com>
19785 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
19786 (lnxboot_img_SOURCES): New variable.
19787 (lnxboot_img_ASFLAGS): Likewise.
19788 (lnxboot_img_LDFLAGS): Likewise.
19790 * boot/i386/pc/lnxboot.S: New file.
19792 2007-11-24 Pavel Roskin <proski@gnu.org>
19794 * configure.ac: Test if '--build-id=none' is supported by the
19795 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
19796 objcopy to generate incorrect binary files (binutils
19797 2.17.50.0.18-1 as shipped by Fedora 8).
19798 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
19799 linking, so that build ID doesn't break the test.
19801 2007-11-24 Pavel Roskin <proski@gnu.org>
19803 * include/grub/i386/time.h: use "void" in the argument list
19804 of grub_cpu_idle().
19805 * include/grub/powerpc/time.h: Likewise.
19806 * include/grub/sparc64/time.h: Likewise.
19808 2007-11-18 Christian Franke <franke@computer.org>
19810 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
19811 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
19812 This fixes the problem that function keys did not work in grub-emu.
19814 2007-11-18 Christian Franke <franke@computer.org>
19816 * disk/host.c (grub_host_open): Remove attribute unused from
19817 name parameter. Add check for "host". This fixes the problem
19818 that grub-emu does not find partitions.
19820 2007-11-18 Christian Franke <franke@computer.org>
19822 * util/hostfs.c (is_dir): New function.
19823 (grub_hostfs_dir): Handle missing dirent.d_type case.
19824 (grub_hostfs_read): Add missing fseek().
19825 (grub_hostfs_label): Clear label pointer. This fixes a crash
19826 of grub-emu on "ls (host)".
19828 2007-11-18 Christian Franke <franke@computer.org>
19830 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
19831 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
19832 to 64 bit boundary by default.
19834 2007-11-18 Bean <bean123ch@gmail.com>
19836 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
19837 (hexdump_mod_SOURCES): New variable.
19838 (hexdump_mod_CFLAGS): Likewise.
19839 (hexdump_mod_LDFLAGS): Likewise.
19841 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19843 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19845 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19847 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19849 * include/grub/hexdump.h: New file.
19851 * commands/hexdump.c: New file.
19853 2007-11-10 Robert Millan <rmh@aybabtu.com>
19855 * commands/i386/pc/play.c (beep_off): Switch order of arguments
19856 in grub_outb() calls.
19857 (beep_on): Likewise.
19859 2007-11-10 Christian Franke <franke@computer.org>
19861 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
19862 (grub_menu_run): Likewise.
19864 2007-11-10 Robert Millan <rmh@aybabtu.com>
19866 * include/grub/i386/efi/machine.h: New file.
19867 * include/grub/i386/linuxbios/machine.h: Likewise.
19868 * include/grub/i386/pc/machine.h: Likewise.
19869 * include/grub/powerpc/ieee1275/machine.h: Likewise.
19870 * include/grub/sparc64/ieee1275/machine.h: Likewise.
19872 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
19873 (serial_hw_io_addr): New variable.
19874 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
19875 instead of `(unsigned short *) 0x400'.
19877 2007-11-10 Bean <bean123ch@gmail.com>
19879 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
19881 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
19883 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
19884 (vga_mod_SOURCES): Added.
19885 (vga_mod_CFLAGS): Likewise.
19886 (vga_mod_LDFLAGS): Likewise.
19888 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
19890 (set_map_mask): Likewise.
19891 (set_read_map): Likewise.
19892 (set_read_address): Likewise.
19893 (vga_font): Removed variable.
19894 (get_vga_glyph): Removed function.
19895 (invalidate_char): Likewise.
19896 (write_char): Changed to use grub_font_get_glyph() for font
19898 (grub_vga_putchar): Likewise.
19899 (grub_vga_getcharwidth): Likewise.
19901 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
19903 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
19905 (pxeboot_img_LDFLAGS): Likewise.
19906 (diskboot_img_LDFLAGS): Likewise.
19907 (kernel_img_LDFLAGS): Likewise.
19909 2007-11-06 Robert Millan <rmh@aybabtu.com>
19911 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
19912 in grub_outb() calls.
19913 (serial_hw_init): Likewise.
19915 2007-11-05 Robert Millan <rmh@aybabtu.com>
19917 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
19918 spaces. Skip non-regular files.
19920 2007-11-05 Robert Millan <rmh@aybabtu.com>
19922 * kern/disk.c (grub_disk_firmware_fini)
19923 (grub_disk_firmware_is_tainted): New variables.
19925 * include/grub/disk.h (grub_disk_firmware_fini)
19926 (grub_disk_firmware_is_tainted): Likewise.
19928 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
19929 (grub_disk_biosdisk_fini): ... to here.
19930 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
19931 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
19932 is set. Register grub_disk_biosdisk_fini() in
19933 `grub_disk_firmware_fini'.
19935 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
19936 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
19937 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
19938 to finish existing firmware disk interface.
19940 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
19941 (ata_mod_SOURCES): New variable.
19942 (ata_mod_CFLAGS): Likewise.
19943 (ata_mod_LDFLAGS): Likewise.
19945 2007-11-05 Robert Millan <rmh@aybabtu.com>
19947 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
19948 (grub_ata_wait): Reimplement using grub_millisleep().
19950 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
19951 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
19953 2007-11-03 Marco Gerards <marco@gnu.org>
19955 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
19956 (CRTC_ADDR_PORT): New macro.
19957 (CRTC_DATA_PORT): Likewise.
19958 (CRTC_CURSOR): Likewise.
19959 (CRTC_CURSOR_ADDR_HIGH): Likewise.
19960 (CRTC_CURSOR_ADDR_LOW): Likewise.
19961 (update_cursor): New function.
19962 (grub_console_real_putchar): Call `update_cursor'.
19963 (grub_console_gotoxy): Likewise.
19964 (grub_console_cls): Set the default color when clearing the
19966 (grub_console_setcursor): Implemented.
19968 2007-11-03 Marco Gerards <marco@gnu.org>
19970 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
19972 (grub_ata_pio_write): Likewise.
19974 (grub_atapi_identify): Wait after issuing an ATA command.
19975 (grub_atapi_packet): Likewise.
19976 (grub_ata_identify): Likewise.
19977 (grub_ata_readwrite): Likewise.
19979 2007-11-03 Marco Gerards <marco@gnu.org>
19981 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
19982 (grub_ata_pio_write): Likewise.
19983 (grub_ata_readwrite): Use `grub_error', instead of
19984 returning `grub_errno'.
19986 2007-11-03 Marco Gerards <marco@gnu.org>
19988 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
19989 grub_ata_pio_write once for every single sector, instead of for
19992 2007-10-31 Robert Millan <rmh@aybabtu.com>
19994 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
19996 * conf/i386-linuxbios.rmk: New file.
19998 * kern/i386/pc/hardware.c: Likewise.
19999 * term/i386/pc/at_keyboard.c: Likewise.
20000 * term/i386/pc/vga_text.c: Likewise.
20002 * include/grub/i386/linuxbios/boot.h: Likewise.
20003 * include/grub/i386/linuxbios/console.h: Likewise.
20004 * include/grub/i386/linuxbios/init.h: Likewise.
20005 * include/grub/i386/linuxbios/kernel.h: Likewise.
20006 * include/grub/i386/linuxbios/loader.h: Likewise.
20007 * include/grub/i386/linuxbios/memory.h: Likewise.
20008 * include/grub/i386/linuxbios/serial.h: Likewise.
20009 * include/grub/i386/linuxbios/time.h: Likewise.
20011 * kern/i386/linuxbios/init.c: Likewise.
20012 * kern/i386/linuxbios/startup.S: Likewise.
20013 * kern/i386/linuxbios/table.c: Likewise.
20015 2007-10-31 Marco Gerards <marco@gnu.org>
20017 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
20018 (ata_mod_SOURCES): New variable.
20019 (ata_mod_CFLAGS): Likewise.
20020 (ata_mod_LDFLAGS): Likewise.
20022 * disk/ata.c: New file.
20024 * include/grub/disk.h (grub_disk_dev_id): Add
20025 `GRUB_DISK_DEV_ATA_ID'.
20027 2007-10-31 Robert Millan <rmh@aybabtu.com>
20029 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
20030 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
20032 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
20033 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
20035 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
20038 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
20040 2007-10-27 Robert Millan <rmh@aybabtu.com>
20042 * include/grub/types.h (ULONG_MAX): Define macro.
20044 2007-10-22 Robert Millan <rmh@aybabtu.com>
20046 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
20048 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
20050 2007-10-22 Robert Millan <rmh@aybabtu.com>
20052 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
20053 (pkgdata_MODULES): Add `biosdisk.mod'.
20054 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
20057 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
20058 (grub_biosdisk_init): Replace with ...
20059 (GRUB_MOD_INIT(biosdisk)): ... this.
20060 (grub_biosdisk_fini): Replace with ...
20061 (GRUB_MOD_FINI(biosdisk)): ... this.
20063 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
20064 (grub_machine_init): Remove call to grub_biosdisk_init().
20065 (grub_machine_fini): Remove call to grub_machine_fini().
20067 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
20069 2007-10-22 Robert Millan <rmh@aybabtu.com>
20071 * include/grub/time.h: New file.
20072 * include/grub/i386/time.h: Likewise.
20073 * include/grub/powerpc/time.h: Likewise.
20074 * include/grub/sparc64/time.h: Likewise.
20076 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
20078 (KERNEL_MACHINE_TIME_HEADER): ... this.
20079 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20081 (KERNEL_MACHINE_TIME_HEADER): ... this.
20082 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20084 (KERNEL_MACHINE_TIME_HEADER): ... this.
20086 * kern/i386/efi/init.c: Include `<grub/time.h>'.
20087 (grub_millisleep): New function.
20088 * kern/i386/pc/init.c: Include `<grub/time.h>'.
20089 (grub_millisleep): New function.
20090 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
20091 Remove `grub/machine/time.h' include.
20092 (grub_millisleep): New function.
20093 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
20094 Remove `grub/machine/time.h' include.
20095 (grub_millisleep): New function.
20097 * include/grub/misc.h (grub_div_roundup): New function.
20099 * kern/misc.c: Include `<grub/time.h>'.
20100 (grub_millisleep_generic): New function.
20102 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
20104 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
20106 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
20107 `machine/time.h'. Add `time.h'.
20108 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
20110 2007-10-21 Robert Millan <rmh@aybabtu.com>
20112 * include/grub/misc.h (grub_max): New function.
20114 2007-10-21 Robert Millan <rmh@aybabtu.com>
20116 * util/misc.c (grub_util_info): Call fflush() before returning.
20118 2007-10-20 Robert Millan <rmh@aybabtu.com>
20120 * genmk.rb (Image): Copy `extra_flags' from here ...
20121 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
20123 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
20124 to `argc' and `args' arguments.
20126 2007-10-17 Robert Millan <rmh@aybabtu.com>
20128 * kern/i386/loader.S: New file.
20130 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
20131 * kern/i386/loader.S (grub_linux_prot_size)... to here.
20132 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
20133 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
20134 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
20135 * kern/i386/loader.S (grub_linux_real_addr)... to here.
20136 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
20137 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
20138 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
20139 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
20140 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
20141 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
20142 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
20143 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
20145 * kern/i386/realmode.S: New file.
20147 * kern/i386/pc/startup.S (protstack): Moved from here ...
20148 * kern/i386/realmode.S (protstack)... to here.
20149 * kern/i386/pc/startup.S (gdt): Moved from here ...
20150 * kern/i386/realmode.S (gdt)... to here.
20151 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
20152 * kern/i386/realmode.S (prot_to_real)... to here.
20154 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
20155 `kern/i386/realmode.S'.
20157 2007-10-17 Robert Millan <rmh@aybabtu.com>
20159 * include/grub/i386/loader.h: New file.
20161 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
20162 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20163 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20164 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20165 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
20166 * include/grub/i386/loader.h (grub_linux_prot_size)
20167 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20168 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20169 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20170 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
20172 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
20174 2007-10-15 Robert Millan <rmh@aybabtu.com>
20176 * normal/misc.c (grub_normal_print_device_info): Do not probe for
20177 filesystem when dev->disk is unset.
20178 Do probe for filesystem even when dev->disk->has_partitions is set.
20179 In case a filesystem is found, always report it.
20180 In case it isn't, if dev->disk->has_partitions is set, report that
20181 a partition table was found instead of reporting that no filesystem
20182 could be identified.
20184 2007-10-12 Robert Millan <rmh@aybabtu.com>
20186 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
20187 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
20189 * include/grub/types.h (grub_host_to_target16): New macro.
20190 (grub_host_to_target32): Likewise.
20191 (grub_host_to_target64): Likewise.
20192 (grub_target_to_host16): Likewise.
20193 (grub_target_to_host32): Likewise.
20194 (grub_target_to_host64): Likewise.
20196 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
20197 Renamed from to ...
20198 (GRUB_MOD_ALIGN): ...this. Update all users.
20200 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
20201 grub_host_to_target32.
20202 Replace grub_be_to_cpu32 with grub_target_to_host32.
20203 (load_modules): Likewise.
20204 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
20205 Replace grub_be_to_cpu32 with grub_target_to_host32.
20206 Replace grub_cpu_to_be16 with grub_host_to_target16.
20207 Replace grub_cpu_to_be32 grub_host_to_target32.
20209 2007-10-12 Robert Millan <rmh@aybabtu.com>
20211 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
20212 * util/elf/grub-mkimage.c: ... here.
20214 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
20215 `util/powerpc/ieee1275/grub-mkimage.c'.
20217 2007-10-07 Robert Millan <rmh@aybabtu.com>
20219 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
20220 and make it easier to figure out.
20221 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
20222 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
20223 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
20224 leave us with less than HEAP_MIN_SIZE total heap.
20225 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
20227 2007-10-03 Robert Millan <rmh@aybabtu.com>
20229 * include/grub/i386/io.h: New file.
20230 * commands/i386/pc/play.c (inb): Removed.
20232 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20234 * term/i386/pc/serial.c (inb): Removed.
20236 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20238 * term/i386/pc/vga.c (inb): Removed.
20240 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20243 2007-10-02 Robert Millan <rmh@aybabtu.com>
20245 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
20246 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20247 Reported by Marcin Kurek.
20249 2007-09-07 Robert Millan <rmh@aybabtu.com>
20251 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
20252 SmartFirmware version updates (as released by Sven Luther), and avoid
20253 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
20254 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
20257 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20259 From Hitoshi Ozeki:
20260 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
20261 when merging two regions.
20263 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20265 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
20266 * normal/completion.c (grub_normal_do_completion): Likewise.
20267 Reported by Hitoshi Ozeki.
20269 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20271 Do not use devices at boot in chainloading.
20273 * loader/i386/pc/chainloader.c (boot_drive): New variable.
20274 (boot_part_addr): Likewise.
20275 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
20276 with BOOT_DRIVE and BOOT_PART_ADDR.
20277 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
20278 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
20280 2007-08-29 Robert Millan <rmh@aybabtu.com>
20282 Patch from Simon Peter <dn.tlp@gmx.net>:
20283 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
20284 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
20285 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
20286 util/i386/pc/grub-setup.c_DEPENDENCIES.
20287 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
20288 util/grub-probe.c_DEPENDENCIES.
20289 * conf/powerpc-ieee1275.rmk: Likewise.
20291 2007-08-28 Robert Millan <rmh@aybabtu.com>
20293 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
20294 to tell grub-mkdevicemap how to name devices.
20295 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
20298 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
20299 util/i386/get_disk_name.c.
20300 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
20301 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
20302 util/ieee1275/get_disk_name.c.
20304 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
20306 * DISTLIST: Add util/i386/get_disk_name.c and
20307 util/ieee1275/get_disk_name.c.
20309 * util/grub-mkdevicemap.c: Replace device naming logic with
20310 grub_util_get_disk_name() calls.
20312 2007-08-20 Robert Millan <rmh@aybabtu.com>
20314 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
20315 (so that it works for both plural and singular quantities).
20317 2007-08-05 Robert Millan <rmh@aybabtu.com>
20319 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
20320 so that [xz] isn't taken into account when determining order.
20322 2007-08-02 Marco Gerards <marco@gnu.org>
20324 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
20325 `include/multiboot2.h', `include/grub/elfload.h',
20326 `include/multiboot.h', `include/grub/multiboot.h',
20327 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
20328 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
20329 `kern/elf.c', `loader/multiboot_loader.c',
20330 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
20331 `loader/i386/pc/multiboot2.c',
20332 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
20333 `util/i386/pc/grub-mkrescue.in'. Remove
20334 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
20335 `include/grub/i386/pc/util/biosdisk.h' and
20336 `include/grub/powerpc/ieee1275/multiboot.h'.
20338 2007-08-02 Bean <bean123ch@gmail.com>
20340 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
20341 (ntfs_mod_SOURCES): New variable.
20342 (ntfs_mod_CFLAGS): Likewise.
20343 (ntfs_mod_LDFLAGS): Likewise.
20345 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
20346 (grub_probe_SOURCES): Likewise.
20347 (grub_emu_SOURCES): Likewise.
20349 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20350 (grub_emu_SOURCES): Likewise.
20352 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20353 (grub_emu_SOURCES): Likewise.
20355 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
20357 * fs/ntfs.c: New file.
20359 2007-08-02 Bean <bean123ch@gmail.com>
20361 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
20363 * file.h (grub_file): Likewise.
20365 * fshelp.h (grub_fshelp_read_file): Likewise.
20367 * util/i386/pc/grub-setup.c (setup): Likewise.
20368 (save_first_sector): Likewise.
20369 (save_blocklists): Likewise.
20371 * fs/affs.c (grub_affs_read_file): Likewise.
20373 * fs/ext2.c (grub_ext2_read_file): Likewise.
20375 * fs/fat.c (grub_fat_read_data): Likewise.
20377 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
20379 * fs/hfs.c (grub_hfs_read_file): Likewise.
20381 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
20383 * fs/jfs.c (grub_jfs_read_file): Likewise.
20385 * fs/minix.c (grub_minix_read_file): Likewise.
20387 * fs/sfs.c (grub_sfs_read_file): Likewise.
20389 * fs/ufs.c (grub_ufs_read_file): Likewise.
20391 * fs/xfs.c (grub_xfs_read_file): Likewise.
20393 * command/blocklist.c (read_blocklist): Likewise.
20394 (print_blocklist): Likewise.
20396 2007-08-02 Marco Gerards <marco@gnu.org>
20398 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
20401 * disk/host.c: New file.
20403 * util/hostfs.c: Likewise.
20405 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
20406 return `GRUB_ERR_BAD_FS'.
20407 * fs/sfs.c (grub_sfs_mount): Likewise.
20408 * fs/xfs.c (grub_xfs_mount): Likewise.
20410 * include/grub/disk.h (enum grub_disk_dev_id): Add
20411 `GRUB_DISK_DEVICE_HOST_ID'.
20413 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
20415 2007-07-24 Jerone Young <jerone@gmail.com>
20417 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
20418 modules for compilation.
20419 * conf/powerpc-ieee1275.rmk: Likewise.
20421 * include/multiboot.h: Move multiboot definitions to one file. Rename
20422 many definitions to not get grub specific.
20423 * include/multiboot2.h: Create header with multiboot 2 definitions.
20424 * include/grub/multiboot.h: Header for grub specific function
20425 prototypes and definitions.
20426 * include/grub/multiboot2.h: Likewise.
20427 * include/grub/multiboot_loader.h: Likewise.
20428 * include/grub/i386/pc/multiboot.h: Removed.
20429 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
20431 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
20432 and 2 to allow for one multiboot and module commands.
20433 * loader/multiboot2.c: Add multiboot2 functionality.
20434 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
20435 and definition names.
20436 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
20438 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
20439 ieee1275 specific multiboot2 code.
20441 * kern/i386/pc/startup.S: Change headers and definition names for
20442 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
20444 2007-07-22 Robert Millan <rmh@aybabtu.com>
20446 * geninitheader.sh: Process file specified in first parameter rather
20447 than hardcoding grub_modules_init.lst.
20448 * geninit.sh: Likewise. Also, construct header name dynamically rather
20449 than hardcoding grub_modules_init.h.
20451 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
20452 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
20453 grub_probe_init.[ch] and grub_setup_init.[ch].
20455 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
20456 grub_modules_init.h with grub_emu_init.h.
20457 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
20458 grub_probe_init.[ch] files.
20459 * conf/i386-efi.rmk: Likewise.
20460 * conf/i386-pc.rmk: Likewise.
20461 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
20462 grub_setup_init.[ch] files.
20464 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
20465 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
20466 to initialize modules rather than a list of hardcoded functions.
20467 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
20468 grub_init_all() to initialize modules rather than a list of hardcoded
20471 2007-07-22 Robert Millan <rmh@aybabtu.com>
20473 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20474 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
20476 2007-07-22 Robert Millan <rmh@aybabtu.com>
20478 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
20479 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
20480 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
20481 flag when running on SmartFirmware.
20482 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
20483 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
20486 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
20487 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
20488 rather than decreasing it.
20490 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
20491 there's not enough space to do it, fail in the same way as when it
20492 can't be done because there are no partitions.
20494 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
20495 when nvsetenv failed.
20497 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20499 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
20500 because this rule is automatically generated.
20501 (grub-mkrescue): Removed for the same reason as above.
20503 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20505 Migrate to GNU General Public License Version 3.
20507 * COPYING: Replaced with the plain text version of GPLv3.
20509 * config.guess: Updated from gnulib.
20510 * config.sub: Likewise.
20512 * geninit.sh: Output a GPLv3 copyright notice.
20513 * geninitheader.sh: Likewise.
20514 * genmodsrc.sh: Likewise.
20515 * gensymlist.sh.in: Likewise.
20517 * boot/i386/pc/boot.S: Upgraded to GPLv3.
20518 * boot/i386/pc/diskboot.S: Likewise.
20519 * boot/i386/pc/pxeboot.S: Likewise.
20520 * commands/blocklist.c: Likewise.
20521 * commands/boot.c: Likewise.
20522 * commands/cat.c: Likewise.
20523 * commands/cmp.c: Likewise.
20524 * commands/configfile.c: Likewise.
20525 * commands/echo.c: Likewise.
20526 * commands/help.c: Likewise.
20527 * commands/ls.c: Likewise.
20528 * commands/search.c: Likewise.
20529 * commands/terminal.c: Likewise.
20530 * commands/test.c: Likewise.
20531 * commands/videotest.c: Likewise.
20532 * commands/i386/cpuid.c: Likewise.
20533 * commands/i386/pc/halt.c: Likewise.
20534 * commands/i386/pc/play.c: Likewise.
20535 * commands/i386/pc/reboot.c: Likewise.
20536 * commands/i386/pc/vbeinfo.c: Likewise.
20537 * commands/i386/pc/vbetest.c: Likewise.
20538 * commands/ieee1275/halt.c: Likewise.
20539 * commands/ieee1275/reboot.c: Likewise.
20540 * commands/ieee1275/suspend.c: Likewise.
20541 * disk/loopback.c: Likewise.
20542 * disk/lvm.c: Likewise.
20543 * disk/raid.c: Likewise.
20544 * disk/efi/efidisk.c: Likewise.
20545 * disk/i386/pc/biosdisk.c: Likewise.
20546 * disk/ieee1275/ofdisk.c: Likewise.
20547 * font/manager.c: Likewise.
20548 * fs/affs.c: Likewise.
20549 * fs/ext2.c: Likewise.
20550 * fs/fat.c: Likewise.
20551 * fs/fshelp.c: Likewise.
20552 * fs/hfs.c: Likewise.
20553 * fs/hfsplus.c: Likewise.
20554 * fs/iso9660.c: Likewise.
20555 * fs/jfs.c: Likewise.
20556 * fs/minix.c: Likewise.
20557 * fs/sfs.c: Likewise.
20558 * fs/ufs.c: Likewise.
20559 * fs/xfs.c: Likewise.
20560 * hello/hello.c: Likewise.
20561 * include/grub/acorn_filecore.h: Likewise.
20562 * include/grub/arg.h: Likewise.
20563 * include/grub/bitmap.h: Likewise.
20564 * include/grub/boot.h: Likewise.
20565 * include/grub/cache.h: Likewise.
20566 * include/grub/device.h: Likewise.
20567 * include/grub/disk.h: Likewise.
20568 * include/grub/dl.h: Likewise.
20569 * include/grub/elfload.h: Likewise.
20570 * include/grub/env.h: Likewise.
20571 * include/grub/err.h: Likewise.
20572 * include/grub/file.h: Likewise.
20573 * include/grub/font.h: Likewise.
20574 * include/grub/fs.h: Likewise.
20575 * include/grub/fshelp.h: Likewise.
20576 * include/grub/gzio.h: Likewise.
20577 * include/grub/hfs.h: Likewise.
20578 * include/grub/kernel.h: Likewise.
20579 * include/grub/loader.h: Likewise.
20580 * include/grub/lvm.h: Likewise.
20581 * include/grub/misc.h: Likewise.
20582 * include/grub/mm.h: Likewise.
20583 * include/grub/net.h: Likewise.
20584 * include/grub/normal.h: Likewise.
20585 * include/grub/parser.h: Likewise.
20586 * include/grub/partition.h: Likewise.
20587 * include/grub/pc_partition.h: Likewise.
20588 * include/grub/raid.h: Likewise.
20589 * include/grub/rescue.h: Likewise.
20590 * include/grub/script.h: Likewise.
20591 * include/grub/setjmp.h: Likewise.
20592 * include/grub/symbol.h: Likewise.
20593 * include/grub/term.h: Likewise.
20594 * include/grub/terminfo.h: Likewise.
20595 * include/grub/tparm.h: Likewise.
20596 * include/grub/types.h: Likewise.
20597 * include/grub/video.h: Likewise.
20598 * include/grub/efi/api.h: Likewise.
20599 * include/grub/efi/chainloader.h: Likewise.
20600 * include/grub/efi/console.h: Likewise.
20601 * include/grub/efi/console_control.h: Likewise.
20602 * include/grub/efi/disk.h: Likewise.
20603 * include/grub/efi/efi.h: Likewise.
20604 * include/grub/efi/pe32.h: Likewise.
20605 * include/grub/efi/time.h: Likewise.
20606 * include/grub/i386/linux.h: Likewise.
20607 * include/grub/i386/setjmp.h: Likewise.
20608 * include/grub/i386/types.h: Likewise.
20609 * include/grub/i386/efi/kernel.h: Likewise.
20610 * include/grub/i386/efi/loader.h: Likewise.
20611 * include/grub/i386/efi/time.h: Likewise.
20612 * include/grub/i386/pc/biosdisk.h: Likewise.
20613 * include/grub/i386/pc/boot.h: Likewise.
20614 * include/grub/i386/pc/chainloader.h: Likewise.
20615 * include/grub/i386/pc/console.h: Likewise.
20616 * include/grub/i386/pc/init.h: Likewise.
20617 * include/grub/i386/pc/kernel.h: Likewise.
20618 * include/grub/i386/pc/loader.h: Likewise.
20619 * include/grub/i386/pc/memory.h: Likewise.
20620 * include/grub/i386/pc/multiboot.h: Likewise.
20621 * include/grub/i386/pc/serial.h: Likewise.
20622 * include/grub/i386/pc/time.h: Likewise.
20623 * include/grub/i386/pc/vbe.h: Likewise.
20624 * include/grub/i386/pc/vbeblit.h: Likewise.
20625 * include/grub/i386/pc/vbefill.h: Likewise.
20626 * include/grub/i386/pc/vbeutil.h: Likewise.
20627 * include/grub/i386/pc/vga.h: Likewise.
20628 * include/grub/ieee1275/ieee1275.h: Likewise.
20629 * include/grub/ieee1275/ofdisk.h: Likewise.
20630 * include/grub/powerpc/libgcc.h: Likewise.
20631 * include/grub/powerpc/setjmp.h: Likewise.
20632 * include/grub/powerpc/types.h: Likewise.
20633 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
20634 * include/grub/powerpc/ieee1275/console.h: Likewise.
20635 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
20636 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
20637 * include/grub/powerpc/ieee1275/loader.h: Likewise.
20638 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
20639 * include/grub/powerpc/ieee1275/time.h: Likewise.
20640 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
20641 * include/grub/sparc64/libgcc.h: Likewise.
20642 * include/grub/sparc64/setjmp.h: Likewise.
20643 * include/grub/sparc64/types.h: Likewise.
20644 * include/grub/sparc64/ieee1275/console.h: Likewise.
20645 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
20646 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
20647 * include/grub/sparc64/ieee1275/time.h: Likewise.
20648 * include/grub/util/biosdisk.h: Likewise.
20649 * include/grub/util/getroot.h: Likewise.
20650 * include/grub/util/lvm.h: Likewise.
20651 * include/grub/util/misc.h: Likewise.
20652 * include/grub/util/raid.h: Likewise.
20653 * include/grub/util/resolve.h: Likewise.
20654 * io/gzio.c: Likewise.
20655 * kern/device.c: Likewise.
20656 * kern/disk.c: Likewise.
20657 * kern/dl.c: Likewise.
20658 * kern/elf.c: Likewise.
20659 * kern/env.c: Likewise.
20660 * kern/err.c: Likewise.
20661 * kern/file.c: Likewise.
20662 * kern/fs.c: Likewise.
20663 * kern/loader.c: Likewise.
20664 * kern/main.c: Likewise.
20665 * kern/misc.c: Likewise.
20666 * kern/mm.c: Likewise.
20667 * kern/parser.c: Likewise.
20668 * kern/partition.c: Likewise.
20669 * kern/rescue.c: Likewise.
20670 * kern/term.c: Likewise.
20671 * kern/efi/efi.c: Likewise.
20672 * kern/efi/init.c: Likewise.
20673 * kern/efi/mm.c: Likewise.
20674 * kern/i386/dl.c: Likewise.
20675 * kern/i386/efi/init.c: Likewise.
20676 * kern/i386/efi/startup.S: Likewise.
20677 * kern/i386/pc/init.c: Likewise.
20678 * kern/i386/pc/lzo1x.S: Likewise.
20679 * kern/i386/pc/startup.S: Likewise.
20680 * kern/ieee1275/ieee1275.c: Likewise.
20681 * kern/powerpc/cache.S: Likewise.
20682 * kern/powerpc/dl.c: Likewise.
20683 * kern/powerpc/ieee1275/cmain.c: Likewise.
20684 * kern/powerpc/ieee1275/crt0.S: Likewise.
20685 * kern/powerpc/ieee1275/init.c: Likewise.
20686 * kern/powerpc/ieee1275/openfw.c: Likewise.
20687 * kern/sparc64/cache.S: Likewise.
20688 * kern/sparc64/dl.c: Likewise.
20689 * kern/sparc64/ieee1275/init.c: Likewise.
20690 * kern/sparc64/ieee1275/openfw.c: Likewise.
20691 * loader/efi/chainloader.c: Likewise.
20692 * loader/efi/chainloader_normal.c: Likewise.
20693 * loader/i386/efi/linux.c: Likewise.
20694 * loader/i386/efi/linux_normal.c: Likewise.
20695 * loader/i386/pc/chainloader.c: Likewise.
20696 * loader/i386/pc/chainloader_normal.c: Likewise.
20697 * loader/i386/pc/linux.c: Likewise.
20698 * loader/i386/pc/linux_normal.c: Likewise.
20699 * loader/i386/pc/multiboot.c: Likewise.
20700 * loader/i386/pc/multiboot_normal.c: Likewise.
20701 * loader/powerpc/ieee1275/linux.c: Likewise.
20702 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
20703 * normal/arg.c: Likewise.
20704 * normal/cmdline.c: Likewise.
20705 * normal/command.c: Likewise.
20706 * normal/completion.c: Likewise.
20707 * normal/execute.c: Likewise.
20708 * normal/function.c: Likewise.
20709 * normal/lexer.c: Likewise.
20710 * normal/main.c: Likewise.
20711 * normal/menu.c: Likewise.
20712 * normal/menu_entry.c: Likewise.
20713 * normal/misc.c: Likewise.
20714 * normal/parser.y: Likewise.
20715 * normal/script.c: Likewise.
20716 * normal/i386/setjmp.S: Likewise.
20717 * normal/powerpc/setjmp.S: Likewise.
20718 * normal/sparc64/setjmp.S: Likewise.
20719 * partmap/acorn.c: Likewise.
20720 * partmap/amiga.c: Likewise.
20721 * partmap/apple.c: Likewise.
20722 * partmap/gpt.c: Likewise.
20723 * partmap/pc.c: Likewise.
20724 * partmap/sun.c: Likewise.
20725 * term/gfxterm.c: Likewise.
20726 * term/terminfo.c: Likewise.
20727 * term/efi/console.c: Likewise.
20728 * term/i386/pc/console.c: Likewise.
20729 * term/i386/pc/serial.c: Likewise.
20730 * term/i386/pc/vesafb.c: Likewise.
20731 * term/i386/pc/vga.c: Likewise.
20732 * term/ieee1275/ofconsole.c: Likewise.
20733 * util/biosdisk.c: Likewise.
20734 * util/console.c: Likewise.
20735 * util/genmoddep.c: Likewise.
20736 * util/getroot.c: Likewise.
20737 * util/grub-emu.c: Likewise.
20738 * util/grub-mkdevicemap.c: Likewise.
20739 * util/grub-probe.c: Likewise.
20740 * util/lvm.c: Likewise.
20741 * util/misc.c: Likewise.
20742 * util/raid.c: Likewise.
20743 * util/resolve.c: Likewise.
20744 * util/update-grub.in: Likewise.
20745 * util/update-grub_lib.in: Likewise.
20746 * util/grub.d/00_header.in: Likewise.
20747 * util/grub.d/10_hurd.in: Likewise.
20748 * util/grub.d/10_linux.in: Likewise.
20749 * util/i386/efi/grub-install.in: Likewise.
20750 * util/i386/efi/grub-mkimage.c: Likewise.
20751 * util/i386/pc/grub-install.in: Likewise.
20752 * util/i386/pc/grub-mkimage.c: Likewise.
20753 * util/i386/pc/grub-mkrescue.in: Likewise.
20754 * util/i386/pc/grub-setup.c: Likewise.
20755 * util/i386/pc/misc.c: Likewise.
20756 * util/powerpc/ieee1275/grub-install.in: Likewise.
20757 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
20758 * util/powerpc/ieee1275/misc.c: Likewise.
20759 * video/bitmap.c: Likewise.
20760 * video/video.c: Likewise.
20761 * video/i386/pc/vbe.c: Likewise.
20762 * video/i386/pc/vbeblit.c: Likewise.
20763 * video/i386/pc/vbefill.c: Likewise.
20764 * video/i386/pc/vbeutil.c: Likewise.
20765 * video/readers/tga.c: Likewise.
20767 2007-07-02 Robert Millan <rmh@aybabtu.com>
20769 * conf/i386-efi.rmk: Replace obsolete reference to
20770 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
20771 with util/getroot.c.
20772 * conf/powerpc-ieee1275.rmk: Likewise.
20773 * conf/sparc64-ieee1275.rmk: Likewise.
20775 * util/grub-emu.c (main): Fix unchecked pointer handling.
20777 2007-07-02 Robert Millan <rmh@aybabtu.com>
20779 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
20780 invocation to fail, in order to support partition-less media.
20782 * util/i386/pc/grub-install.in: Likewise.
20784 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
20785 which fs or partmap modules are needed (akin to its sister scripts).
20787 Also use grub-probe to get rid of unportable /proc/mounts check.
20789 Print the same informational message that the other scripts do, before
20792 2007-06-23 Robert Millan <rmh@aybabtu.com>
20794 * util/update-grub_lib.in (font_path): New function. Determine whether
20795 a font file can be found and, if so, echo the GRUB path to it.
20797 * util/update-grub.in: Handle multiple terminals depending on user
20798 input, platform availability and font file presence. Propagate
20799 variables of our findings to /etc/grub.d/ children.
20801 * util/grub.d/00_header.in: Handle multiple terminals, based on
20802 environment setup by update-grub.
20804 2007-06-23 Robert Millan <rmh@aybabtu.com>
20806 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
20808 2007-06-21 Robert Millan <rmh@aybabtu.com>
20810 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
20811 indicate end of data section in kernel image.
20812 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
20813 GRUB_KERNEL_MACHINE_DATA_END.
20815 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
20817 * kern/i386/efi/startup.S: Likewise.
20819 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
20820 during image generation. Implement --prefix option to override this
20822 * util/i386/efi/grub-mkimage.c: Likewise.
20824 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
20825 code to make path relative to its root into a separate function.
20827 * util/i386/pc/grub-install.in: Use newly provided
20828 make_system_path_relative_to_its_root() to convert ${grubdir}, then
20829 pass the result to grub-install --prefix.
20831 2007-06-13 Robert Millan <rmh@aybabtu.com>
20833 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
20834 DEFAULT_DEVICE_MAP.
20835 * util/grub-emu.c: Use above definitions from misc.h instead of
20837 * util/grub-mkdevicemap.c: Likewise.
20838 * util/i386/pc/grub-setup.c: Likewise.
20839 * util/grub-probe.c: Likewise.
20840 (probe): Abort with grub_util_error() when either
20841 grub_guess_root_device or grub_util_get_grub_dev fails.
20843 2007-06-12 Robert Millan <rmh@aybabtu.com>
20845 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
20846 "pager" assignment.
20847 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
20849 * util/grub-probe.c (probe): Likewise for "drive_name".
20851 2007-06-11 Robert Millan <rmh@aybabtu.com>
20853 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
20854 not just the cdrom one.
20856 2007-06-11 Robert Millan <rmh@aybabtu.com>
20858 * util/i386/pc/grub-mkrescue.in: Add "set -e".
20859 Add --pkglibdir=DIR option to override pkglibdir.
20860 Mention --image-type=TYPE in help output.
20861 Fix --grub-mkimage (it was a no-op).
20862 Abort gracefully when no parameter is given.
20864 2007-06-11 Robert Millan <rmh@aybabtu.com>
20866 * util/i386/pc/grub-mkrescue.in: New file.
20867 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
20868 * Makefile.in: Handle bin_SCRIPTS.
20870 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
20872 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
20873 list of video modes.
20875 2007-06-06 Robert Millan <rmh@aybabtu.com>
20877 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
20878 file doesn't exist, or if it is in a filesystem grub can't read.
20880 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
20881 not abort if GRUB_DRIVE could not be defined. Rearrange generated
20882 header comment to fit in 80 columns when the variables are resolved.
20884 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
20885 could be identified by update-grub. Remove redundant check for
20886 unifont.pff existence (since convert_system_path_to_grub_path now
20889 2007-06-04 Robert Millan <rmh@aybabtu.com>
20891 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
20893 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
20895 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
20897 2007-06-04 Robert Millan <rmh@aybabtu.com>
20899 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
20901 * include/grub/partition.h: Declare grub_apple_partition_map_init and
20902 grub_apple_partition_map_fini.
20905 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
20906 to access >2 TiB disks).
20908 Print disk->total_sectors with %llu instead of %lu, since this
20909 variable is always 64-bit (prevents wrong disk size from being displayed
20910 on either >2 TiB disk or big-endian CPU).
20912 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
20913 into a generic case that supports all (sane) partition maps.
20915 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
20918 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
20919 and grub_apple_partition_map_fini() after that.
20921 2007-06-01 Robert Millan <rmh@aybabtu.com>
20923 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
20925 * util/grub.d/00_header.in: Only enable gfxterm when
20926 convert_system_path_to_grub_path() succeeds.
20928 2007-05-20 Robert Millan <rmh@aybabtu.com>
20930 * util/update-grub_lib.in: New file.
20931 * DISTLIST: Add update-grub_lib.in.
20932 * conf/common.rmk: Generate update-grub_lib and install it in
20934 * Makefile.in: Add install routine for $(lib_DATA).
20936 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
20937 function provided by update-grub_lib to support arbitrary paths of
20939 * util/update-grub.in: Use convert_system_path_to_grub_path() to
20940 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
20942 2007-05-19 Robert Millan <rmh@aybabtu.com>
20944 * commands/i386/cpuid.c: New module.
20945 * DISTLIST: Add it.
20946 * conf/i386-efi.rmk: Enable cpuid.mod.
20947 * conf/i386-pc.rmk: Likewise.
20949 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
20951 * kern/disk.c (grub_disk_read): Check return value of
20954 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
20956 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
20958 * disk/raid.c (grub_raid_open): Likewise.
20960 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
20962 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
20963 stack instead of on the heap.
20965 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
20966 before doing a read on it.
20968 * configure.ac: Only use -fno-stack-protector for the target
20971 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
20973 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
20974 __attribute_ ((unused)) to mode_type argument.
20976 * util/getroot.c (grub_guess_root_device): Fix #endif.
20978 * kern/misc.c (memcmp): Fix prototype.
20980 * include/grub/partition.h [GRUB_UTIL]
20981 (grub_gpt_partition_map_init): Add prototype.
20982 (grub_gpt_partition_map_fini): Likewise.
20984 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
20985 at the right place.
20987 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
20988 (grub_fat_read_data): Likewise.
20989 (grub_fat_find_dir): Likewise.
20991 * font/manager.c (find_glyph): Make table a const.
20992 (grub_font_get_glyph): Remove bitmap from if statement.
20994 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
20996 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
20997 code, first search for device in /dev/mapper, then in /dev.
20998 (grub_util_get_grub_dev): New function.
20999 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
21001 * util/grub-probe.c (probe): Remove check for RAID, call
21002 grub_util_get_grub_dev() instead of
21003 grub_util_biosdisk_get_grub_dev().
21004 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
21005 grub_util_biosdisk_get_grub_dev().
21006 * util/i386/pc/grub-setup.c (main): Likewise.
21008 2007-05-16 Robert Millan <rmh@aybabtu.com>
21010 * DISTLIST: Update for the latest changes.
21011 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
21012 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
21013 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
21014 grub/util/biosdisk.h.
21015 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
21016 grub/util/biosdisk.h.
21018 2007-05-16 Robert Millan <rmh@aybabtu.com>
21020 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
21022 2007-05-16 Robert Millan <rmh@aybabtu.com>
21024 * util/i386/efi/grub-install.in: New.
21025 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
21026 newly added grub-install.
21027 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
21029 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
21030 grub/util/biosdisk.h.
21031 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
21032 grub/util/biosdisk.h.
21034 2007-05-16 Robert Millan <rmh@aybabtu.com>
21036 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
21037 * include/grub/util/biosdisk.h: ... here.
21038 * util/i386/pc/biosdisk.c: Moved to ...
21039 * util/biosdisk.c: ... here.
21040 * util/i386/pc/getroot.c: Moved to ...
21041 * util/getroot.c: ... here.
21042 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
21043 * util/grub-mkdevicemap.c: ... here.
21044 * util/i386/pc/grub-probe.c: Moved to ...
21045 * util/grub-probe.c: ... here.
21047 2007-05-15 Robert Millan <rmh@aybabtu.com>
21049 * util/update-grub.in: Remove duplicated line in grub.cfg header
21052 2007-05-13 Robert Millan <rmh@aybabtu.com>
21054 * util/update-grub.in: Fix a few assumptions about the devices holding
21055 /, /boot and /boot/grub being the same.
21056 * util/grub.d/00_header.in: Likewise.
21057 * util/grub.d/10_hurd.in: Likewise.
21058 * util/grub.d/10_linux.in: Likewise.
21060 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
21061 patterns. Use that to define the `.old' suffix as older than `'.
21063 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
21065 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
21066 the grub.cfg header message.
21068 2007-05-11 Robert Millan <rmh@aybabtu.com>
21070 * util/update-grub.in: Create device.map if it doesn't already exist,
21071 before attempting to run grub-probe.
21072 Check for grub-probe and grub-mkdevicemap with the same code
21073 grub-install is using.
21076 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
21078 * Makefile.in: Add the datarootdir autoconf variable.
21080 2007-05-09 Robert Millan <rmh@aybabtu.com>
21082 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
21083 fail gracefully if dev->disk->partition == NULL.
21085 2007-05-07 Robert Millan <rmh@aybabtu.com>
21087 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
21088 determine partition map module.
21089 * util/i386/pc/grub-install.in: Use this feature to decide which
21090 partition module to load, instead of hardcoding pc and gpt.
21092 2007-05-07 Robert Millan <rmh@aybabtu.com>
21094 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
21095 source directory differs from build directory.
21097 2007-05-05 Robert Millan <rmh@aybabtu.com>
21099 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
21102 2007-05-05 Robert Millan <rmh@aybabtu.com>
21104 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
21106 2007-05-05 Robert Millan <rmh@aybabtu.com>
21108 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
21109 command-line arguments via ${GRUB_CMDLINE_LINUX}.
21111 2007-05-05 Robert Millan <rmh@aybabtu.com>
21113 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
21114 (grub_probe_SOURCES): Likewise.
21115 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
21116 GPT and initialize dos_part and bsd_part accordingly.
21117 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
21119 (main): Activate gpt module for use during partition identification,
21120 and deactivate it afterwards.
21121 * util/i386/pc/grub-install.in: Add gpt module to core.img.
21122 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
21123 partition identification, and deactivate it afterwards.
21125 2007-05-05 Robert Millan <rmh@aybabtu.com>
21127 * term/i386/pc/console.c (grub_console_fini): Call
21128 grub_term_set_current() before grub_term_unregister().
21130 2007-05-04 Robert Millan <rmh@aybabtu.com>
21132 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
21133 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
21134 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
21135 and update-grub_DATA.
21136 * conf/common.rmk: Build and install update-grub components.
21137 * conf/common.mk: Regenerate.
21138 * util/update-grub.in: New. Core of update-grub.
21139 * util/grub.d/00_header.in: New. Generates grub.cfg header.
21140 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
21141 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
21142 * util/grub.d/README: New. Document grub.d directory layout.
21144 2007-05-01 Robert Millan <rmh@aybabtu.com>
21146 * util/grub-emu.c: Move initialization functions
21147 grub_util_biosdisk_init() and grub_init_all() before
21148 grub_util_biosdisk_get_grub_dev(), which relies on them.
21150 2007-04-19 Robert Millan <rmh@aybabtu.com>
21152 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
21155 2007-04-18 Jerone Young <jerone@gmail.com>
21157 * kernel/elf.c: Add missing parenthesis for conditional statement
21160 2007-04-10 Jerone Young <jerone@gmail.com>
21162 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
21163 continue on and look for device node with real device name.
21165 2007-04-10 Jerone Young <jerone@gmail.com>
21167 * configure.ac: Add argument for autoconf to use transformation
21169 * Makefile.in: Add autoconf package transformation code.
21170 * util/i386/pc/grub-install.in: Likewise.
21171 * util/powerpc/ieee1275/grub-install.in: Likewise.
21173 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
21175 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
21176 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
21177 (EXT2_REVISION): Likewise.
21178 (EXT2_INODE_SIZE): Likewise.
21179 (struct grub_ext2_block_group): Added a missing member
21181 (grub_ext2_read_inode): Divide by the inode size in a superblock
21182 instead of 128 to obtain INODES_PER_BLOCK.
21183 Use the macro EXT2_INODE_SIZE instead of directly using
21184 SBLOCK->INODE_SIZE.
21186 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
21188 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
21189 superblock instead of the structure size to compute an
21190 offset. This fixes the problem that GRUB could not read a
21191 filesystem when inode size is different from 128-byte.
21193 2007-03-05 Marco Gerards <marco@gnu.org>
21195 * normal/main.c (read_config_file): When "menu" is not set, create
21196 an initial context.
21198 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21200 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
21201 (HEAP_LIMIT): New macro.
21202 (grub_claim_heap): Claim memory up to `heaplimit'.
21204 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21206 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
21207 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
21208 (_start): Likewise.
21209 (grub_arch_modules_addr): Return address after `_end'.
21210 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
21211 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
21212 (add_segments): Calculate `_end' from phdr size and location.
21213 (ALIGN_UP): Moved to ...
21214 * include/grub/misc.h: here.
21215 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
21217 (GRUB_IEEE1275_MODULE_BASE): Removed.
21219 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21221 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
21224 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21226 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
21228 (grub_elf64_load_hook_t): Likewise.
21229 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
21232 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21234 * kern/mm.c: Update copyright.
21235 (grub_mm_debug): Correct syntax error.
21236 (grub_mm_dump_free): New function.
21237 (grub_debug_free): Call `grub_free'.
21238 * include/grub/mm.h: Update copyright.
21239 (grub_mm_dump_free): Add declaration.
21241 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21243 * include/grub/ieee1275/ieee1275.h: Update copyright.
21244 * kern/powerpc/ieee1275/init.c: Likewise.
21245 * kern/powerpc/ieee1275/openfw.c: Likewise.
21247 * loader/powerpc/ieee1275/linux.c: Likewise.
21248 * include/grub/elfload.h: Likewise.
21249 * kern/elf.c: Likewise.
21250 (grub_elf32_load): Pass `base' and `size' parameters. Update all
21252 (grub_elf64_load): Likewise.
21253 (grub_elf32_load_segment): Move to a nested function.
21254 (grub_elf64_load_segment): Likewise.
21256 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21258 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
21260 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
21261 (grub_heap_len): Likewise.
21262 (HEAP_SIZE): New macro.
21263 (grub_claim_heap): New function.
21264 (grub_machine_init): Don't claim heap directly. Call
21266 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
21267 (grub_available_iterate): New function.
21269 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
21271 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
21272 * configure.ac: Use it for testing the HOST and TARGET compilers.
21274 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
21276 * Makefile.in (enable_grub_emu): New variable.
21277 * configure.ac (--enable-grub-emu): New option.
21278 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
21279 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
21280 * conf/i386-pc.rmk: Likewise.
21281 * conf/powerpc-ieee1275.rmk: Likewise.
21282 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
21284 2006-12-12 Marco Gerards <marco@gnu.org>
21286 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
21288 * kern/env.c (grub_env_unset): Don't free the member `value' when
21289 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
21292 * normal/main.c (current_menu): Removed.
21293 (free_menu): Unset the `menu' environment variable.
21294 (grub_normal_menu_addentry): Make use of the environment variable
21295 `menu', instead of using the global `current_menu'. Allocate
21296 memory for the sourcecode of this entry.
21297 (read_config_file): New argument `nested', changed all callers.
21298 Only in the case of a new context, initialize a new menu. Set the
21299 `menu' environment variable.
21300 (grub_normal_execute): Don't set and unset the environment
21301 variable `menu' here anymore. Only free the menu when leaving the
21304 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
21307 2006-12-11 Marco Gerards <marco@gnu.org>
21309 * normal/menu_entry.c (run): Fix off by one bug so the last line
21310 is executed. Move the loader check to outside the loop.
21312 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
21314 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
21316 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
21318 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
21319 the number of sectors. Reported by Andrey Shuvikov
21320 <mr_hyro@yahoo.com>.
21322 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
21324 * kern/disk.c (grub_disk_read): When there is a read error, always
21325 try to read only the necessary data.
21327 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
21329 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
21331 [GRUB_UTIL] (grub_raid_fini): Likewise.
21332 [GRUB_UTIL] (grub_lvm_init): Likewise.
21333 [GRUB_UTIL] (grub_lvm_fini): Likewise.
21334 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
21335 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
21336 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
21337 and grub_raid_fini().
21339 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
21341 * include/grub/types.h (__unused): Rename to UNUSED.
21342 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
21343 (grub_elf64_size): Likewise.
21345 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21347 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
21348 grub_error_push and grub_error_pop in the error-handling path.
21349 (grub_elf32_load_segment): Only call grub_file_read with non-zero
21352 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21354 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
21355 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21356 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21357 (kernel_elf_SOURCES): Likewise.
21358 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
21359 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
21360 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21361 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21362 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
21363 (elf_mod_SOURCES): New variable.
21364 (elf_mod_CFLAGS): Likewise.
21365 (elf_mod_LDFLAGS): Likewise.
21366 * include/grub/types.h (__unused): New macro.
21367 * include/grub/elfload.h: New file.
21368 * kern/elf.c: Likewise.
21369 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
21370 (ELF32_LOADMASK): New macro.
21371 (ELF64_LOADMASK): Likewise.
21372 (vmlinux): Removed.
21373 (grub_linux_load32): New function.
21374 (grub_linux_load64): Likewise.
21375 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
21376 Use grub_elf_t instead of grub_file_t.
21378 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
21380 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
21381 `catch_result' to struct set_color_args.
21383 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
21385 * normal/menu.c: Include grub/script.h.
21386 * normal/menu_entry.c: Likewise.
21387 * include/grub/normal.h: Do not include grub/script.h.
21389 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21391 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
21393 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21395 * kern/disk.c (grub_disk_open): Print debug messages when opening a
21397 (grub_disk_close): Print debug messages when closing a disk.
21398 (grub_disk_read): Print debug messages when disk read fails.
21399 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
21401 * kern/partition.c: Include misc.h.
21402 (grub_partition_iterate): Print debug messages when detecting
21405 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21407 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
21409 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
21411 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
21413 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
21414 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
21416 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
21418 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
21419 instead of sizeof(lv). Patch by Michael Guntsche.
21421 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
21423 * disk/lvm.c: Rename VGS to VG_LIST.
21424 (grub_lvm_iterate): Change VGS->LV to VG-LV.
21425 (grub_lvm_open): Likewise.
21426 Thanks to Michael Guntsche for finding this bug.
21428 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
21430 * configure.ac (AC_INIT): Bumped to 1.95.
21432 2006-10-14 Robert Millan <rmh@aybabtu.com>
21434 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
21435 with "/dev/.static/dev/md".
21437 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21439 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
21440 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
21441 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
21442 DRIVE_NAME are always freed.
21444 * util/i386/pc/biosdisk.c (make_device_name): Add one into
21445 DOS_PART, as a DOS partition is counted from one instead of zero
21446 now. Reported by Robert Millan.
21448 2006-10-14 Robert Millan <rmh@aybabtu.com>
21450 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
21451 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
21452 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
21453 string returned by grub_guess_root_device.
21454 * util/i386/pc/grub-setup.c: Likewise.
21455 * util/i386/pc/grub-probefs.c: Likewise.
21457 * util/i386/pc/grub-probefs.c: Rename to ...
21458 * util/i386/pc/grub-probe.c: ... this.
21459 * DISTLIST: Remove grub-probefs, add grub-probe.
21460 * conf/i386-efi.rmk: Likewise.
21461 * conf/i386-pc.rmk: Likewise.
21462 * util/i386/pc/grub-install.in: Likewise.
21464 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
21465 choose which information we want to print.
21467 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21469 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
21470 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
21471 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
21472 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
21473 video/readers/tga.c and video/i386/pc/vbeutil.c.
21475 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
21477 Added support for RAID and LVM.
21479 * disk/lvm.c: New file.
21480 * disk/raid.c: Likewise.
21481 * include/grub/lvm.h: Likewise.
21482 * include/grub/raid.h: Likewise.
21483 * include/grub/util/lvm.h: Likewise.
21484 * include/grub/util/raid.h: Likewise.
21485 * util/lvm.c: Likewise.
21486 * util/raid.c: Likewise.
21488 * include/grub/disk.h (grub_disk_dev_id): Add
21489 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
21490 (grub_disk_get_size): New prototype.
21491 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
21492 returns a partition.
21493 (grub_disk_get_size): New function.
21495 * kern/i386/pc/init.c (make_install_device): Copy the prefix
21496 verbatim if grub_install_dos_part is -2.
21498 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
21501 * util/i386/pc/grub-setup.c (setup): New argument
21502 MUST_EMBED. Force embedding of GRUB when the argument is
21503 true. Close FILE before returning.
21504 (main): Add support for RAID and LVM.
21506 * conf/common.rmk: Add RAID and LVM modules.
21507 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
21509 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
21511 * kern/misc.c (grub_strstr): New function.
21512 * include/grub/misc.h (grub_strstr): New prototype.
21514 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
21516 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
21518 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
21520 * kern/misc.c (grub_strtoull): Guess the base only if not
21523 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21525 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
21528 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21530 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
21532 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
21533 Remove `flags' argument. All callers changed.
21534 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
21535 (IEEE1275_IHANDLE_INVALID): New variable.
21536 (IEEE1275_CELL_INVALID): New variable.
21537 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
21538 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
21539 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
21540 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
21541 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
21542 codes from Open Firmware. All callers updated.
21543 (grub_ieee1275_next_property): Directly return Open Firmware return
21545 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
21546 Standardize error checking from `grub_ieee1275_get_property'.
21547 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
21548 `devalias' to `aliases'. Correct comments. Consolidate error paths.
21550 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21552 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
21553 `instance_to_package_args' to `instance_to_path_args'.
21555 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
21556 `grub_ieee1275_chosen'.
21558 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
21559 `grub_ieee1275_interpret'.
21561 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
21563 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
21565 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
21567 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
21568 (__cmpdi): Likewise.
21570 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
21571 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
21574 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
21576 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
21577 to type `grub_ssize_t'.
21578 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
21580 2006-09-22 Marco Gerards <marco@gnu.org>
21582 * normal/script.c (grub_script_create_cmdmenu): Skip leading
21585 2006-09-22 Marco Gerards <marco@gnu.org>
21587 * commands/echo.c: New file.
21589 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
21591 * conf/common.rmk (echo_mod_SOURCES): New variable.
21592 (echo_mod_CFLAGS): Likewise.
21593 (echo_mod_LDFLAGS): Likewise.
21595 2006-09-22 Marco Gerards <marco@gnu.org>
21597 * normal/main.c (get_line): Malloc memory instead of using
21598 preallocated memory. Removed the arguments `cmdline' and
21599 `max_len'. Updated all callers.
21601 2006-09-22 Marco Gerards <marco@gnu.org>
21603 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
21604 (normal_mod_DEPENDENCIES): Likewise.
21606 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
21607 (normal_mod_DEPENDENCIES): Likewise.
21609 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
21611 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
21613 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
21615 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
21616 (normal_mod_DEPENDENCIES): Likewise.
21617 * conf/i386-pc.mk: Regenerate.
21618 * conf/i386-efi.mk: Likewise
21619 * conf/common.mk: Likewise.
21620 * conf/powerpc-ieee1275.mk: Likewise.
21621 * conf/sparc64-ieee1275.mk: Likewise.
21623 2006-09-22 Robert Millan <rmh@aybabtu.com>
21625 Sync with i386 version.
21626 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
21627 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
21629 2006-09-21 Robert Millan <rmh@aybabtu.com>
21631 Import from GRUB Legacy (lib/device.c):
21632 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
21633 (init_device_map) [__linux__]: Add support for I2O devices.
21635 2006-09-14 Marco Gerards <marco@gnu.org>
21637 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
21640 2006-09-14 Robert Millan <rmh@aybabtu.com>
21642 * util/i386/pc/grub-install.in: Skip menu.lst when removing
21645 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
21647 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
21648 before adding it to device.map.
21650 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
21652 * genmk.rb: Let GCC generate dependencies the first time it
21653 compiles a file; using the -MD option.
21654 * conf/common.mk: Regenerate.
21655 * conf/i386-pc.mk: Likewise.
21656 * conf/i386-efi.mk: Likewise.
21657 * conf/powerpc-ieee1275.mk: Likewise.
21658 * conf/sparc64-ieee1275.mk: Likewise.
21660 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
21662 Move the prototypes of grub_setjmp and grub_longjmp to
21663 cpu/setjmp.h, so that each architecture may specify different
21666 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
21667 (grub_longjmp): Likewise.
21668 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
21669 (grub_longjmp): Likewise.
21670 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
21671 (grub_longjmp): Likewise.
21673 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
21674 [!GRUB_UTIL] (grub_longjmp): Removed.
21676 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
21678 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
21679 "color!" method does not return any value.
21681 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21683 * include/grub/bitmap.h: New file.
21685 * include/grub/i386/pc/vbeutil.h: Likewise.
21687 * video/bitmap.c: Likewise.
21689 * video/readers/tga.c: Likewise.
21691 * video/i386/pc/vbeutil.c: Likewise.
21693 * commands/videotest.c: Code cleanup and updated to reflect to new
21696 * term/gfxterm.c: Likewise.
21698 * video/video.c: Likewise.
21700 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
21701 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
21702 (bitmap_mod_SOURCES): New entry.
21703 (bitmap_mod_CFLAGS): Likewise.
21704 (bitmap_mod_LDFLAGS): Likewise.
21705 (tga_mod_SOURCES): Likewise.
21706 (tga_mod_CFLAGS): Likewise.
21707 (tga_mod_LDFLAGS): Likewise.
21709 * include/grub/video.h (grub_video_blit_operators): New enum type.
21710 (grub_video_render_target): Changed as forward declaration and moved
21711 actual definition to be video driver specific.
21712 (grub_video_adapter.blit_bitmap): Added blitting operator.
21713 (grub_video_adapter.blit_render_target): Likewise.
21714 (grub_video_blit_bitmap): Likewise.
21715 (grub_video_blit_render_target): Likewise.
21717 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
21718 driver specific render target definition.
21719 (grub_video_vbe_map_rgba): Added driver internal helper.
21720 (grub_video_vbe_unmap_color): Updated to use
21721 grub_video_i386_vbeblit_info.
21722 (grub_video_vbe_get_video_ptr): Likewise.
21724 * include/grub/i386/pc/vbeblit.h
21725 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
21726 grub_video_i386_vbeblit_info.
21727 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
21728 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
21729 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
21730 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
21731 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
21732 (grub_video_i386_vbeblit_index_index): Likewise.
21733 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
21734 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
21735 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
21736 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
21738 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
21741 * video/i386/pc/vbeblit.c: Updated to reflect changes on
21742 include/grub/i386/pc/vbeblit.h.
21744 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
21745 Updated to use grub_video_i386_vbeblit_info.
21746 (grub_video_i386_vbefill_R8G8B8): Likewise.
21747 (grub_video_i386_vbefill_index): Likewise.
21748 (grub_video_i386_vbefill): Added generic filler.
21750 * video/i386/pc/vbefill.c: Updated to reflect changes on
21751 include/grub/i386/pc/vbefill.h.
21753 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
21754 grub_video_i386_vbeblit_info.
21755 (grub_video_vbe_unmap_color): Likewise.
21756 (grub_video_vbe_blit_glyph): Likewise.
21757 (grub_video_vbe_scroll): Likewise.
21758 (grub_video_vbe_draw_pixel): Removed function.
21759 (grub_video_vbe_get_pixel): Likewise.
21760 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
21761 updated code to use it.
21762 (common_blitter): Added common blitter for render target and bitmap.
21763 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
21764 (grub_video_vbe_blit_render_target): Likewise.
21766 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
21768 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
21769 is in text mode if there is no console control protocol instance
21772 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21774 * include/grub/video.h: Code cleanup.
21776 * include/grub/i386/pc/vbe.h: Likewise.
21778 * video/i386/pc/vbe.c: Likewise.
21780 * video/i386/pc/vbeblit.c: Likewise.
21782 * video/i386/pc/vbefill.c: Likewise.
21784 * video/video.c: Likewise. Also added more comments.
21786 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21788 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
21789 (struct grub_biosdisk_dap): Likewise.
21791 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
21792 linkage settings for all functions.
21794 2006-07-12 Marco Gerards <marco@gnu.org>
21796 * configure.ac (--enable-mm-debug): Fix typo.
21798 * genkernsyms.sh.in: Use proper quoting for `CC'.
21800 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
21802 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
21803 (normal_mod_ASFLAGS): Remove "-m32".
21805 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
21807 * util/misc.c: Include config.h.
21808 [!HAVE_MEMALIGN]: Do not include malloc.h.
21809 (grub_memalign): Use posix_memalign, if present. Then, use
21810 memalign, if present. Otherwise, emit an error.
21812 * util/grub-emu.c: Do not include malloc.h.
21814 * include/grub/util/misc.h: Include unistd.h. This is required for
21815 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
21816 D. Eades III <hde@foobar-qux.org>.
21818 * configure.ac (AC_GNU_SOURCE): Added.
21819 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
21822 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
21824 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
21825 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
21827 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
21829 * include/grub/types.h (grub_host_addr_t): Rename to
21830 grub_target_addr_t.
21831 (grub_host_off_t): Rename to grub_target_off_t.
21832 (grub_host_size_t): Rename to grub_target_size_t.
21833 (grub_host_ssize_t): Rename to grub_target_ssize_t.
21834 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
21836 * include/grub/kernel.h (struct grub_module_header): Change type
21837 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
21838 (grub_module_info): Likewise.
21840 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
21842 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
21843 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
21844 Velazquez <jesus.velazquez@gmail.com>.
21846 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
21848 Count partitions from 1 instead of 0 in the string representation
21849 of partitions. Still use 0-based internally.
21851 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
21852 (sun_partition_map_iterate): Use grub_partition_t instead of
21853 struct grub_partition *. Cast DESC->START_CYLINDER to
21854 grub_uint64_t after converting the endian.
21855 (sun_partition_map_probe): Subtract 1 for PARTNUM.
21856 (sun_partition_map_get_name): Add 1 to P->INDEX.
21858 * partmap/pc.c (grub_partition_parse): Subtract 1 for
21860 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
21862 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
21863 zero instead of one.
21864 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
21865 (gpt_partition_map_get_name): Add 1 into P->INDEX.
21867 * partmap/apple.c (apple_partition_map_iterate): Change the type
21868 of POS to unsigned.
21869 (apple_partition_map_probe): Subtract 1 for PARTNUM.
21870 (apple_partition_map_get_name): Add 1 into P->INDEX.
21872 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
21873 of POS to unsigned.
21874 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
21875 calculate the offset of a partition.
21876 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
21877 (amiga_partition_map_get_name): Add 1 into P->INDEX.
21879 * partmap/acorn.c (acorn_partition_map_find): Change the type of
21880 SECTOR to grub_disk_addr_t.
21881 (acorn_partition_map_iterate): Likewise.
21882 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
21883 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
21885 (acorn_partition_map_get_name): Add 1 into P->INDEX.
21887 * kern/i386/pc/init.c (make_install_device): Add 1 into
21888 GRUB_INSTALL_DOS_PART.
21890 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
21893 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
21895 Clean up the code to support 64-bit addressing in disks and
21896 files. This change is not enough for filesystems yet.
21898 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
21899 type of "start" to grub_uint64_t.
21900 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
21901 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
21902 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
21905 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
21906 to grub_disk_addr_t.
21908 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
21911 * partmap/pc.c (pc_partition_map_iterate): Likewise.
21913 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
21916 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
21918 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
21920 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
21922 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
21923 to grub_off_t, to detect an error from grub_file_seek.
21924 (grub_multiboot_load_elf32): Likewise.
21926 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
21927 maximum unsigned long value when an overflow is detected.
21928 (grub_strtoull): New function.
21929 (grub_divmod64): Likewise.
21930 (grub_lltoa): use grub_divmod64.
21932 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
21934 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
21935 the pointer to next character. Use grub_strtoull instead of
21937 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
21938 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
21941 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
21942 return value is signed.
21943 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
21944 test if OFFSET is less than zero, as OFFSET is unsigned now.
21946 * kern/disk.c (struct grub_disk_cache): Change the type of
21947 "sector" to grub_disk_addr_t.
21948 (grub_disk_cache_get_index): Change the type of SECTOR to
21949 grub_disk_addr_t. Calculate the hash with SECTOR casted to
21950 unsigned after shifting.
21951 (grub_disk_cache_invalidate): Change the type of SECTOR to
21953 (grub_disk_cache_unlock): Likewise.
21954 (grub_disk_cache_store): Likewise.
21955 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
21956 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
21957 grub_disk_addr_t and grub_uint64_t, respectively.
21958 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
21959 body, as the value of OFFSET is tweaked by
21960 grub_disk_check_range. Change the types of START_SECTOR, LEN and
21961 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
21963 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
21964 body, as the value of OFFSET is tweaked by
21965 grub_disk_check_range. Change the types of LEN and N to
21968 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
21969 and "saved_offset" to grub_off_t.
21970 (test_header): Cast BUF to char *.
21971 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
21973 (grub_gzio_read): Change the types of OFFSET and SIZE to
21974 grub_off_t and grub_size_t, respectively.
21976 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
21978 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
21979 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
21980 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
21981 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
21982 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
21984 * include/grub/types.h (grub_off_t): Unconditionally set to
21986 (grub_disk_addr_t): Changed to grub_uint64_t.
21988 * include/grub/partition.h (struct grub_partition): Change the
21989 types of "start", "len" and "offset" to grub_disk_addr_t,
21990 grub_uint64_t and grub_disk_addr_t, respectively.
21991 (grub_partition_get_start): Return grub_disk_addr_t.
21992 (grub_partition_get_len): Return grub_uint64_t.
21994 * include/grub/misc.h (grub_strtoull): New prototype.
21995 (grub_divmod64): Likewise.
21997 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
21998 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
21999 grub_off_t, respectively.
22000 All callers and references changed.
22002 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
22003 grub_size_t in "read".
22004 All callers and references changed.
22006 * include/grub/file.h (struct grub_file): Change the types of
22007 "offset" and "size" to grub_off_t and grub_off_t,
22008 respectively. Change the type of SECTOR to grub_disk_addr_t in
22010 (grub_file_read): Change the type of LEN to grub_size_t.
22011 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
22013 (grub_file_size): Return grub_off_t.
22014 (grub_file_tell): Likewise.
22015 All callers and references changed.
22017 * include/grub/disk.h (struct grub_disk_dev): Change the types of
22018 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
22020 (struct grub_disk): Change the type of "total_sectors" to
22021 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
22023 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
22024 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
22025 (grub_disk_write): Likewise.
22026 All callers and references changed.
22028 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
22029 char * for grub_strncmp to silence gcc.
22030 (grub_iso9660_mount): Likewise.
22031 (grub_iso9660_mount): Likewise.
22032 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
22034 (grub_iso9660_iterate_dir): Likewise.
22035 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
22037 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
22038 LEN to grub_disk_addr_t and grub_size_t, respectively.
22040 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
22042 * fs/jfs.c (grub_jfs_read_file): Likewise.
22044 * fs/minix.c (grub_jfs_read_file): Likewise.
22046 * fs/sfs.c (grub_jfs_read_file): Likewise.
22048 * fs/ufs.c (grub_jfs_read_file): Likewise.
22050 * fs/xfs.c (grub_jfs_read_file): Likewise.
22052 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
22053 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
22056 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
22057 BLKNR to -1 instead of returning GRUB_ERRNO.
22058 (grub_ext2_read_file): Change the types of SECTOR and
22059 LEN to grub_disk_addr_t and grub_size_t, respectively.
22061 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
22062 LEN to grub_disk_addr_t and grub_size_t, respectively.
22064 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
22067 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
22068 string. Do not cast SECTOR explicitly.
22070 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
22071 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
22072 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
22073 grub_disk_addr_t and grub_size_t, respectively. If the sector is
22074 over 2TB and LBA mode is not supported, raise an error.
22075 (get_safe_sectors): New function.
22076 (grub_biosdisk_read): Use get_safe_sectors.
22077 (grub_biosdisk_write): Likewise.
22079 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
22080 (grub_efidisk_write): Likewise.
22082 * disk/loopback.c (delete_loopback): Cosmetic changes.
22083 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
22085 (grub_loopback_open): Likewise.
22086 (grub_loopback_read): Likewise. Also, change the type of POS to
22087 grub_off_t, and fix the usage of grub_memset.
22089 * commands/i386/pc/play.c: Include grub/machine/time.h.
22091 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
22094 * commands/configfile.c: Include grub/env.h.
22096 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
22097 GRUB_ERRNO directly instead. Change the type of POS to
22098 grub_off_t. Follow the coding standard.
22100 * commands/blocklist.c: Include grub/partition.h.
22101 (grub_cmd_blocklist): Return an error if the underlying device is
22102 not a disk. Take the starting sector of a partition into account,
22103 if a partition is used.
22105 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
22107 (lba_mode): Support 64-bit addresses.
22108 (chs_mode): Likewise.
22109 (copy_buffer): Adapted to the new offsets of a length field and a
22111 (blocklist_default_start): Allocate 64-bit space.
22113 * boot/i386/pc/boot.S (force_lba): Removed.
22114 (boot_drive): Moved to under KERNEL_SECTOR.
22115 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
22117 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
22119 (lba_mode): Refactored to support a 64-bit address. More size
22121 (setup_sectors): Likewise.
22123 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22125 * DISTLIST: Added include/grub/i386/linux.h. Removed
22126 include/grub/i386/pc/linux.h
22128 * configure.ac (AC_INIT): Bumped to 1.94.
22130 * config.guess: Updated from gnulib.
22131 * config.sub: Likewise.
22132 * install-sh: Likewise.
22133 * mkinstalldirs: Likewise.
22135 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22137 * conf/common.rmk (grub_modules_init.lst): Depended on
22138 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
22141 * genmk.rb (PModule::rule): Reverted the previous change.
22143 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22145 * conf/common.rmk (grub_modules_init.lst): Depends on
22146 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
22147 that the target does not exist before producing.
22148 (grub_modules_init.h): Remove the target before generating.
22149 (grub_emu_init.c): Likewise.
22151 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
22153 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
22155 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
22156 for the target-specific tests. Make sure that we also have the
22157 up-to-date target variables for those tests.
22159 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22161 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
22162 (PModule::rule): Likewise.
22164 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22166 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
22167 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
22168 target-specific flags should be prefixed.
22169 (PModule::rule): Likewise.
22171 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
22173 * configure.ac (CMP): Check if cmp is available explicitly.
22175 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
22177 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
22178 (target_cpu): New variable.
22179 (pkglibdir): Use target_cpu instead of host_cpu.
22181 * util/i386/pc/grub-install.in (host_cpu): Removed.
22182 (target_cpu): New variable.
22183 (pkglibdir): Use target_cpu instead of host_cpu.
22185 * util/genmoddep.c: Removed.
22187 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
22188 instead of GRUB_HOST_SIZEOF_VOID_P.
22189 * kern/dl.c: Likewise.
22191 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
22193 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22194 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22195 (GRUB_TARGET_SIZEOF_LONG): ... this.
22196 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22197 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22198 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22200 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22201 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22202 (GRUB_TARGET_SIZEOF_LONG): ... this.
22203 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22204 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22205 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22207 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22208 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22209 (GRUB_TARGET_SIZEOF_LONG): ... this.
22210 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22211 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22213 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
22214 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
22215 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
22216 instead of GRUB_HOST_SIZEOF_LONG.
22217 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
22218 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
22219 GRUB_CPU_WORDS_BIGENDIAN.
22220 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
22221 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
22224 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
22225 (genmoddep_SOURCES): Likewise.
22226 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
22227 (genmoddep_SOURCES): Likewise.
22228 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
22229 (genmoddep_SOURCES): Likewise.
22230 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
22232 (genmoddep_SOURCES): Likewise.
22234 * genmoddep.awk: New file.
22236 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
22237 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
22238 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
22239 (PModule::rule): Likewise.
22240 (Program::rule): Likewise.
22241 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
22242 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
22245 * configure.ac: Rewritten intensively to use host and target
22246 instead of build and host, respectively.
22248 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
22249 (host_cpu): Removed.
22250 (target_cpu): New variable.
22251 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
22252 (BUILD_CC): Removed.
22253 (BUILD_CFLAGS): Likewise.
22254 (BUILD_CPPFLAGS): Likewise.
22255 (TARGET_CC): New variable.
22256 (TARGET_CFLAGS): Likewise.
22257 (TARGET_CPPFLAGS): Likewise.
22258 (TARGET_LDFLAGS): Likewise.
22260 (include): Use target_cpu instead of host_cpu.
22261 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
22263 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
22265 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
22267 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
22268 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
22269 field 'false' to 'exec_on_false'.
22270 (grub_script_create_cmdif): Renamed argument names to reflect above
22273 * normal/execute.c (grub_script_execute_cmdif): Likewise.
22275 * normal/script.c (grub_script_create_cmdif): Likewise.
22277 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
22279 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
22281 (grub_hfsplus_btree_recptr): Likewise.
22282 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
22283 FILEBLOCK both to pass a block number and store next block
22285 (grub_hfsplus_read_block): Rewritten heavily to support an extent
22286 overflow file correctly. Specify errors appropriately, because
22287 fshelp expects that GRUB_ERRNO is set when fails. Reuse
22288 grub_hfsplus_btree_recptr to get the pointer to a found key.
22289 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
22292 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
22294 (_linux_mod_SOURCES): New variable.
22295 (_linux_mod_CFLAGS): Likewise.
22296 (_linux_mod_LDFLAGS): Likewise.
22297 (linux_mod_SOURCES): Likewise.
22298 (linux_mod_CFLAGS): Likewise.
22299 (linux_mod_LDFLAGS): Likewise.
22301 * DISTLIST: Added loader/i386/efi/linux.c,
22302 loader/i386/efi/linux_normal.c and
22303 include/grub/i386/efi/loader.h.
22305 * loader/i386/efi/linux.c: New file.
22306 * loader/i386/efi/linux_normal.c: Likewise.
22307 * include/grub/i386/efi/loader.h: Likewise.
22309 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
22311 * commands/blocklist.c: New file.
22313 * DISTLIST: Added commands/blocklist.c.
22315 * term/efi/console.c (grub_console_highlight_color): Use a lighter
22316 color for the background, and a darker color for the foreground.
22317 (grub_console_checkkey): Return READ_KEY.
22318 (grub_console_cls): Set the background to
22319 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
22321 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
22323 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
22324 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
22326 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
22329 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
22330 BG. The spec is wrong again.
22332 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
22334 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
22336 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
22337 commands/blocklist.c.
22338 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22340 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
22341 (blocklist_mod_SOURCES): New variable.
22342 (blocklist_mod_CFLAGS): Likewise.
22343 (blocklist_mod_LDFLAGS): Likewise.
22345 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
22347 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
22349 (lba_mode): Use %eax more intensively to reduce the code size.
22351 2006-05-20 Marco Gerards <marco@gnu.org>
22353 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
22355 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
22357 (script): Accept leading newlines.
22358 (newlines): New rule to describe 0 or more newlines.
22359 (commands): Accept `command' with trailing newline. Fixed the
22360 order in which arguments were passed to `grub_script_add_cmd'.
22361 Accept commands separated by newlines.
22362 (function): Changed to accept newlines.
22363 (menuentry) Rewritten.
22365 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
22366 front of the list, instead of to the end.
22368 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
22370 * util/i386/pc/grub-install.in (bindir): New variable.
22371 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
22372 Shaver <lbgwjl@gmail.com>.
22374 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
22376 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
22377 grub/machine/linux.h
22378 * loader/i386/pc/linux.c: Likewise.
22380 * include/grub/i386/pc/linux.h: Moved to ...
22381 * include/grub/i386/linux.h: ... here.
22383 * include/grub/i386/linux.h (struct linux_kernel_params): New
22386 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
22388 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
22390 (grub_video_vbe_blit_glyph): Likewise.
22391 (grub_video_vbe_blit_bitmap): Likewise.
22392 (grub_video_vbe_blit_render_target): Likewise.
22394 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
22396 * configure.ac (--with-platform): Properly quote the square
22399 2006-05-08 Marco Gerards <marco@gnu.org>
22401 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
22403 (kernel_elf_HEADERS): ...to this. Updated all users.
22404 (grubof_symlist.c): Renamed from this...
22405 (kernel_elf_symlist.c): ...to this. Updated all users.
22406 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22407 (grubof_SOURCES): Renamed from this...
22408 (kernel_elf_SOURCES): ...to this.
22409 (grubof_HEADERS): Renamed from this...
22410 (kernel_elf_HEADERS): ...to this.
22411 (grubof_CFLAGS): Renamed from this...
22412 (kernel_elf_CFLAGS): ...to this.
22413 (grubof_ASFLAGS): Renamed from this...
22414 (kernel_elf_ASFLAGS): ...to this.
22415 (grubof_LDFLAGS): Renamed from this...
22416 (kernel_elf_LDFLAGS): ...to this.
22418 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
22420 (kernel_elf_HEADERS): ...to this. Updated all users.
22421 (grubof_symlist.c): Renamed from this...
22422 (kernel_elf_symlist.c): ...to this. Updated all users.
22423 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22424 (grubof_SOURCES): Renamed from this...
22425 (kernel_elf_SOURCES): ...to this.
22426 (grubof_HEADERS): Renamed from this...
22427 (kernel_elf_HEADERS): ...to this.
22428 (grubof_CFLAGS): Renamed from this...
22429 (kernel_elf_CFLAGS): ...to this.
22430 (grubof_ASFLAGS): Renamed from this...
22431 (kernel_elf_ASFLAGS): ...to this.
22432 (grubof_LDFLAGS): Renamed from this...
22433 (kernel_elf_LDFLAGS): ...to this.
22435 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
22436 `kernel.elf' instead of `grubof'.
22438 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
22440 Add --with-platform to configure. Use pkglibdir instead of
22441 pkgdatadir. This is reported by Roger Leigh.
22443 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
22444 (host_vendor): Likewise.
22445 (host_os): Likewise.
22446 (pkgdatadir): Likewise.
22447 (platform): New variable.
22448 (pkglibdir): Likewise.
22449 Use PKGLIBDIR instead of PKGDATADIR.
22451 * util/i386/pc/grub-install.in (datadir): Removed.
22452 (host_vendor): Likewise.
22453 (host_os): Likewise.
22454 (pkgdatadir): Likewise.
22455 (platform): New variable.
22456 (pkglibdir): Likewise.
22457 Use PKGLIBDIR instead of PKGDATADIR.
22459 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
22460 instead of GRUB_DATADIR.
22462 * util/i386/pc/grub-mkimage.c (usage): Likewise.
22464 * util/i386/efi/grub-mkimage.c (usage): Likewise.
22467 * configure.ac (--with-platform): New option.
22468 Use PLATFORM instead of HOST_VENDOR to specify a platform.
22470 * Makefile.in: Include a makefile based on PLATFORM instead of
22472 (pkgdatadir): Not appended by the machine type.
22473 (pkglibdir): Appended by the machine type.
22474 (host_vendor): Removed.
22475 (platform): New variable.
22476 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
22477 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
22478 (uninstall): Likewise.
22480 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
22482 Use the environment context in the menu. Remove the commands
22483 "default" and "timeout", and use variables instead.
22485 * normal/menu.c: Include grub/env.h.
22486 (print_entry): Cast TITLE to silence gcc.
22487 (get_timeout): New function.
22488 (set_timeout): Likewise.
22489 (get_entry_number): Likewise.
22490 (run_menu): Use a default entry, a fallback entry and a timeout
22491 in the environment variables "default", "fallback" and
22492 "timeout". Also, tweak the default entry if it is not within the
22493 current menu entries.
22494 (grub_menu_run): Use a fallback entry in the environment variable
22497 * normal/main.c (read_config_file): Do not initialize
22498 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
22500 (grub_normal_execute): Use a data slot to store the menu.
22502 * include/grub/normal.h (struct grub_menu): Removed default_entry,
22503 fallback_entry and timeout.
22504 (struct grub_menu_list): Removed.
22505 (grub_menu_list_t): Likewise.
22506 (struct grub_context): Likewise.
22507 (grub_context_t): Likewise.
22508 (grub_context_get): Likewise.
22509 (grub_context_get_current_menu): Likewise.
22510 (grub_context_push_menu): Likewise.
22511 (grub_context_pop_menu): Likewise.
22512 (grub_default_init): Likewise.
22513 (grub_default_fini): Likewise.
22514 (grub_timeout_init): Likewise.
22515 (grub_timeout_fini): Likewise.
22517 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
22519 (normal_mod_SOURCES): Removed normal/context.c.
22521 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
22522 commands/default.c, commands/timeout.c and normal/context.c.
22523 (normal_mod_SOURCES): Removed normal/context.c.
22525 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
22526 commands/timeout.c and normal/context.c.
22527 (normal_mod_SOURCES): Removed normal/context.c.
22529 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
22530 commands/default.c, commands/timeout.c and normal/context.c.
22531 (normal_mod_SOURCES): Removed normal/context.c.
22533 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
22535 (default_mod_SOURCES): Removed.
22536 (default_mod_CFLAGS): Likewise.
22537 (default_mod_LDFLAGS): Likewise.
22538 (timeout_mod_SOURCES): Removed.
22539 (timeout_mod_CFLAGS): Likewise.
22540 (timeout_mod_LDFLAGS): Likewise.
22542 * DISTLIST: Removed commands/default.c, commands/timeout.c and
22545 * commands/default.c: Removed.
22546 * commands/timeout.c: Likewise.
22547 * normal/context.c: Likewise.
22549 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
22551 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
22553 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
22555 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
22556 "next" to "prev" for readability.
22557 (struct grub_env_sorted_var): New struct.
22558 (grub_env_context): Renamed to ...
22559 (initial_context): ... this.
22560 (grub_env_var_context): Renamed to ...
22561 (current_context): ... this.
22562 (grub_env_find): Look only at CURRENT_CONTEXT.
22563 (grub_env_context_open): Rewritten to copy exported variables from
22565 (grub_env_context_close): Rewritten according to the new
22566 scheme. Also, add an assertion to prevent the initial context from
22568 (grub_env_insert): Removed the code for the sorted list.
22569 (grub_env_remove): Likewise.
22570 (grub_env_export): Simply mark the variable with
22571 GRUB_ENV_VAR_GLOBAL.
22572 (grub_env_set): A cosmetic change for naming consistency.
22573 (grub_env_get): Likewise.
22574 (grub_env_unset): Likewise.
22575 (grub_env_iterate): Rewritten to sort variables within this
22577 (grub_register_variable_hook): Fixed for naming consistency. Call
22578 grub_env_find again, only if NAME is not found at the first time.
22579 (mangle_data_slot_name): New function.
22580 (grub_env_set_data_slot): Likewise.
22581 (grub_env_get_data_slot): Likewise.
22582 (grub_env_unset_data_slot): Likewise.
22584 * include/grub/env.h (grub_env_var_type): New enum.
22585 (GRUB_ENV_VAR_LOCAL): New constant.
22586 (GRUB_ENV_VAR_GLOBAL): Likewise.
22587 (GRUB_ENV_VAR_DATA): Likewise.
22588 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
22590 (grub_env_set): Replace VAR with NAME for consistency.
22591 (grub_register_variable_hook): Likewise.
22592 (grub_env_export): Specify the name of the argument.
22593 (grub_env_set_data_slot): New prototype.
22594 (grub_env_get_data_slot): Likewise.
22595 (grub_env_unset_data_slot): Likewise.
22597 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22599 Extend the loader so that GRUB can accept a loader which comes
22600 back to GRUB when a loaded image exits. Also, this change adds
22601 support for a chainloader on EFI.
22603 * term/efi/console.c: Include grub/misc.h.
22604 (grub_console_checkkey): Display a scan code on the top for
22605 debugging. This will be removed once the EFI port gets stable.
22606 Correct the scan code mapping.
22608 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
22609 allocate memory from larger regions, in order to reduce the number
22610 of allocated regions. Otherwise, the MacOSX loader panics.
22611 (filter_memory_map): Avoid less than 1MB for compatibility with
22613 (add_memory_regions): Allocate from the tail of a region, if
22614 possible, to avoid allocating a region near to 1MB, for the MacOSX
22617 * kern/efi/init.c (grub_efi_set_prefix): Specify
22618 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
22620 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
22621 argument IMAGE_HANDLE and specify it to get a loaded image.
22622 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
22623 grub_efi_get_loaded_image.
22624 (grub_efi_get_filename): Divide the length by the size of
22626 (grub_efi_get_device_path): New function.
22627 (grub_efi_print_device_path): Print End Device Path nodes. Divide
22628 the length by the size of grub_efi_char16_t for a file path device
22631 * kern/loader.c (grub_loader_noreturn): New variable.
22632 (grub_loader_set): Accept a new argument NORETURN. Set
22633 GRUB_LOADER_NORETURN to NORETURN.
22634 All callers changed.
22635 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
22638 * include/grub/efi/efi.h (grub_efi_get_device_path): New
22640 (grub_efi_get_loaded_image): Take an argument to specify an image
22643 * include/grub/loader.h (grub_loader_set): Added one more argument
22646 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
22647 instead of grub_efi_open_protocol.
22648 (grub_efidisk_get_device_name): Likewise.
22649 (grub_efidisk_close): Print a newline.
22650 (grub_efidisk_get_device_handle): Fixed to use
22651 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
22652 GRUB_EFI_DEVICE_PATH_TYPE.
22654 * disk/efi/efidisk.c (device_path_guid): Moved to ...
22655 * kern/efi/efi.c (device_path_guid): ... here.
22657 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
22659 (kernel_mod_HEADERS): Added efi/disk.h.
22660 (_chain_mod_SOURCES): New variable.
22661 (_chain_mod_CFLAGS): Likewise.
22662 (_chain_mod_LDFLAGS): Likewise.
22663 (chain_mod_SOURCES): Likewise.
22664 (chain_mod_CFLAGS): Likewise.
22665 (chain_mod_LDFLAGS): Likewise.
22667 * DISTLIST: Added include/grub/efi/chainloader.h,
22668 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
22670 * include/grub/efi/chainloader.h: New file.
22671 * loader/efi/chainloader.c: Likewise.
22672 * loader/efi/chainloader_normal.c: Likewise.
22674 2006-04-30 Marco Gerards <marco@gnu.org>
22676 * commands/configfile.c (grub_cmd_source): New function.
22677 (GRUB_MOD_INIT): Register the commands `source' and `.'.
22678 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
22680 2006-04-30 Marco Gerards <marco@gnu.org>
22682 * normal/execute.c (grub_script_execute_cmd): Change the return
22683 type to `grub_err_t'. Correctly return the error.
22684 (grub_script_execute_cmdline): In case a command line is not a
22685 command or a function, try to interpret it as an assignment.
22687 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22689 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
22690 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
22691 skip a node whose name is obviously invalid as UTF-16,
22692 i.e. contains a NUL character. Stop the iteration when the last
22693 directory entry is found. Instead of using the return value of
22694 grub_hfsplus_btree_iterate_node, store the value in RET and use
22695 it, because the iterator can be stopped by the last directory
22698 2006-04-30 Marco Gerards <marco@gnu.org>
22700 * include/grub/env.h (grub_env_export): New prototype. Reported
22701 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
22703 2006-04-30 Marco Gerards <marco@gnu.org>
22705 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
22706 size of the extents in a catalog file record.
22708 2006-04-29 Marco Gerards <marco@gnu.org>
22710 * commands/configfile.c (grub_cmd_configfile): Execute the
22711 configfile within its own context.
22713 * include/grub/env.h (grub_env_context_open): New prototype.
22714 (grub_env_context_close): Likewise.
22716 * kern/env.c (grub_env): Removed.
22717 (grub_env_sorted): Likewise.
22718 (grub_env_context): New variable.
22719 (grub_env_var_context): Likewise.
22720 (grub_env_find): Search both the active context and the global
22722 (grub_env_context_open): New function.
22723 (grub_env_context_close): Likewise.
22724 (grub_env_insert): Likewise.
22725 (grub_env_remove): Likewise.
22726 (grub_env_export): Likewise.
22727 (grub_env_set): Changed to use helper functions to avoid code
22729 (grub_env_iterate): Rewritten so both the current context and the
22730 global context are being used.
22732 * normal/command.c (export_command): New function.
22733 (grub_command_init): Register the `export' function.
22735 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
22737 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
22738 explicitly to suppress gcc's warnings.
22739 * fs/fat.c (grub_fat_find_dir): Likewise.
22740 (grub_fat_label): Likewise.
22741 * fs/xfs.c (grub_xfs_read_inode): Likewise.
22742 (grub_xfs_mount): Likewise.
22743 (grub_xfs_label): Likewise.
22744 * fs/affs.c (grub_affs_mount): Likewise.
22745 (grub_affs_label): Likewise.
22746 (grub_affs_iterate_dir): Likewise.
22747 * fs/sfs.c (grub_sfs_mount): Likewise.
22748 (grub_sfs_iterate_dir): Likewise.
22749 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
22750 * fs/hfs.c (grub_hfs_mount): Likewise.
22751 (grub_hfs_cmp_catkeys): Likewise.
22752 (grub_hfs_find_dir): Likewise.
22753 (grub_hfs_dir): Likewise.
22754 (grub_hfs_label): Likewise.
22755 * fs/jfs.c (grub_jfs_mount): Likewise.
22756 (grub_jfs_opendir): Likewise.
22757 (grub_jfs_getent): Likewise.
22758 (grub_jfs_lookup_symlink): Likewise.
22759 (grub_jfs_label): Likewise.
22760 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
22761 (grub_hfsplus_iterate_dir): Likewise.
22762 (grub_hfsplus_btree_iterate_node): Made static.
22764 * util/grub-emu.c (prefix): New variable.
22765 (grub_machine_set_prefix): New function.
22766 (main): Do not set the environment variable "prefix" here. Only
22767 set PREFIX, which is used later by grub_machine_set_prefix.
22769 * include/grub/video.h: Do not include grub/symbol.h.
22770 (grub_video_register): Not exported. This symbol is not defined in
22772 (grub_video_unregister): Likewise.
22773 (grub_video_iterate): Likewise.
22774 (grub_video_setup): Likewise.
22775 (grub_video_restore): Likewise.
22776 (grub_video_get_info): Likewise.
22777 (grub_video_get_blit_format): Likewise.
22778 (grub_video_set_palette): Likewise.
22779 (grub_video_get_palette): Likewise.
22780 (grub_video_set_viewport): Likewise.
22781 (grub_video_get_viewport): Likewise.
22782 (grub_video_map_color): Likewise.
22783 (grub_video_map_rgb): Likewise.
22784 (grub_video_map_rgba): Likewise.
22785 (grub_video_fill_rect): Likewise.
22786 (grub_video_blit_glyph): Likewise.
22787 (grub_video_blit_bitmap): Likewise.
22788 (grub_video_blit_render_target): Likewise.
22789 (grub_video_scroll): Likewise.
22790 (grub_video_swap_buffers): Likewise.
22791 (grub_video_create_render_target): Likewise.
22792 (grub_video_delete_render_target): Likewise.
22793 (grub_video_set_active_render_target): Likewise.
22795 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
22797 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
22799 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
22800 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22801 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22802 instead of $(srcdir)/genkernsyms.sh.
22804 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
22805 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22806 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22807 instead of $(srcdir)/genkernsyms.sh.
22809 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
22810 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22811 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22812 instead of $(srcdir)/genkernsyms.sh.
22814 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
22815 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22816 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22817 instead of $(srcdir)/genkernsyms.sh.
22819 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
22822 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
22824 (gensymlist.sh): New target.
22825 (genkernsyms.sh): Likewise.
22827 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
22828 genkernsyms.sh.in and gensymlist.sh.in.
22830 * genkernsyms.sh: Removed.
22831 * gensymlist.sh: Likewise.
22833 * genkernsyms.sh.in: New file.
22834 * gensymlist.sh.in: Likewise.
22836 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
22838 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
22839 clobber "prefix", since we may have already set it manually.
22841 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
22843 * kern/misc.c (abort): New alias for grub_abort.
22845 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
22847 A new machine-specific function "grub_machine_set_prefix" is
22848 defined. This is called after loading modules, so that a prefix
22849 initialization can use modules. Also, this change adds an
22850 intensive debugging feature for the memory manager via the
22851 configure option "--enable-mm-debug".
22853 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
22856 * kern/sparc64/ieee1275/init.c (abort): Removed.
22857 (grub_stop): Likewise.
22858 (grub_exit): New function.
22859 (grub_set_prefix): Renamed to ...
22860 (grub_machine_set_prefix): ... this.
22861 (grub_machine_init): Do not call grub_set_prefix.
22863 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
22864 (grub_machine_set_prefix): ... this.
22865 (grub_machine_init): Do not call grub_set_prefix.
22867 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
22868 (grub_machine_init): Do not set the prefix here.
22870 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
22872 * kern/efi/init.c: Include grub/mm.h.
22873 (grub_efi_set_prefix): New function.
22875 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
22876 (grub_efi_get_filename): New function.
22877 (grub_print_device_path): Renamed to ...
22878 (grub_efi_print_device_path): ... this.
22880 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
22881 [MM_DEBUG] (grub_realloc): Likewise.
22882 [MM_DEBUG] (grub_free): Likewise.
22883 [MM_DEBUG] (grub_memalign): Likewise.
22884 [MM_DEBUG] (grub_mm_debug): New variable.
22885 [MM_DEBUG] (grub_debug_malloc): New function.
22886 [MM_DEBUG] (grub_debug_free): New function.
22887 [MM_DEBUG] (grub_debug_realloc): New function.
22888 [MM_DEBUG] (grub_debug_memalign): New function.
22890 * kern/misc.c (grub_abort): Print a newline to distinguish
22893 * kern/main.c (grub_main): Call grub_machine_set_prefix and
22894 grub_set_root_dev after loading modules. This is necessary when
22895 setting a prefix depends on modules.
22897 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
22898 (grub_efi_print_device_path): ... this.
22899 (grub_efi_get_filename): New prototype.
22900 (grub_efi_set_prefix): Likewise.
22902 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
22904 (grub_efidisk_get_device_handle): New prototype.
22905 (grub_efidisk_get_device_name): Likewise.
22907 * include/grub/mm.h: Include config.h.
22908 (MM_DEBUG): Removed.
22909 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
22910 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
22911 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
22912 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
22913 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
22914 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
22915 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
22916 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
22917 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
22919 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
22921 * disk/efi/efidisk.c: Include grub/partition.h.
22922 (iterate_child_devices): New function.
22923 (add_device): First, compare only last device path nodes, so that
22924 devices are sorted by the types.
22925 (grub_efidisk_get_device_handle): New function.
22926 (grub_efidisk_get_device_name): Likewise.
22928 * configure.ac (--enable-mm-debug): New option to enable the
22929 memory manager debugging feature. This makes the binary much
22930 bigger, so is disabled by default.
22932 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
22934 Use grub_abort instead of grub_stop, and grub_exit must be
22935 define in each architecture now. Also, this change adds support
22938 * util/i386/pc/grub-probefs.c: Include grub/term.h.
22939 (grub_getkey): New function.
22940 (grub_term_get_current): Likewise.
22942 * util/i386/pc/grub-setup.c: Include grub/term.h.
22943 (grub_getkey): New function.
22944 (grub_term_get_current): Likewise.
22946 * util/misc.c (grub_stop): Renamed to ...
22947 (grub_exit): ... this.
22949 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
22950 (grub_exit): ... this.
22951 (grub_machine_init): Use grub_abort instead of abort.
22952 (grub_stop): Removed.
22954 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
22957 * kern/i386/pc/startup.S (grub_exit): New function.
22958 (cold_reboot): New label.
22960 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
22961 (grub_efi_init): Call grub_efidisk_init.
22962 (grub_efi_fini): Call grub_efidisk_fini.
22964 * kern/efi/efi.c: Include grub/mm.h.
22965 (grub_efi_console_control_guid): Renamed to ...
22966 (console_control_guid): ... this.
22967 (grub_efi_loaded_image_guid): Renamed to ...
22968 (loaded_image_guid): ... this.
22969 (grub_efi_locate_handle): New function.
22970 (grub_efi_open_protocol): Likewise.
22971 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
22972 GRUB_EFI_CONSOLE_CONTROL_GUID.
22973 (grub_efi_exit): Removed.
22974 (grub_stop): Likewise.
22975 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
22976 (grub_exit): New function.
22977 (grub_print_device_path): Likewise.
22979 * kern/rescue.c (grub_rescue_cmd_exit): New function.
22980 (grub_enter_rescue_mode): Register "exit".
22982 * kern/misc.c (grub_real_dprintf): A cosmetic change.
22983 (grub_abort): New function.
22985 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
22987 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
22989 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
22991 * include/grub/efi/efi.h (grub_efi_exit): Removed.
22992 (grub_print_device_path): New prototype.
22993 (grub_efi_locate_handle): Likewise.
22994 (grub_efi_open_protocol): Likewise.
22996 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
22997 * disk/efi/efidisk.c: Likewise.
22999 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
23001 * include/grub/efi/console_control.h
23002 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
23004 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
23005 last 8 bytes as an array.
23006 (GRUB_EFI_DISK_IO_GUID): New macro.
23007 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
23008 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
23009 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
23011 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
23012 (struct grub_efi_device_path): Rename the member "sub_type" to
23014 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
23015 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
23016 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
23017 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
23018 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
23019 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
23020 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
23021 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
23022 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
23023 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
23024 (struct grub_efi_pci_device_path): New structure.
23025 (grub_efi_pci_device_path_t): New type.
23026 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
23027 (struct grub_efi_pccard_device_path): New structure.
23028 (grub_efi_pccard_device_path_t): New type.
23029 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
23030 (struct grub_efi_memory_mapped_device_path): New structure.
23031 (grub_efi_memory_mapped_device_path_t): New type.
23032 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
23033 (struct grub_efi_vendor_device_path): New structure.
23034 (grub_efi_vendor_device_path_t): New type.
23035 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
23036 (struct grub_efi_controller_device_path): New structure.
23037 (grub_efi_controller_device_path_t): New type.
23038 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
23039 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
23040 (struct grub_efi_acpi_device_path): New structure.
23041 (grub_efi_acpi_device_path_t): New type.
23042 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
23043 (struct grub_efi_expanded_acpi_device_path): New structure.
23044 (grub_efi_expanded_acpi_device_path_t): New type.
23045 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
23046 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
23047 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
23048 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
23049 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
23050 (struct grub_efi_atapi_device_path): New structure.
23051 (grub_efi_atapi_device_path_t): New type.
23052 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
23053 (struct grub_efi_fibre_channel_device_path): New structure.
23054 (grub_efi_fibre_channel_device_path_t): New type.
23055 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
23056 (struct grub_efi_1394_device_path): New structure.
23057 (grub_efi_1394_device_path_t): New type.
23058 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
23059 (struct grub_efi_usb_device_path): New structure.
23060 (grub_efi_usb_device_path_t): New type.
23061 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
23062 (struct grub_efi_usb_class_device_path): New structure.
23063 (grub_efi_usb_class_device_path_t): New type.
23064 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
23065 (struct grub_efi_i2o_device_path): New structure.
23066 (grub_efi_i2o_device_path_t): New type.
23067 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
23068 (struct grub_efi_mac_address_device_path): New structure.
23069 (grub_efi_mac_address_device_path_t): New type.
23070 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
23071 (struct grub_efi_ipv4_device_path): New structure.
23072 (grub_efi_ipv4_device_path_t): New type.
23073 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
23074 (struct grub_efi_ipv6_device_path): New structure.
23075 (grub_efi_ipv6_device_path_t): New type.
23076 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
23077 (struct grub_efi_infiniband_device_path): New structure.
23078 (grub_efi_infiniband_device_path_t): New type.
23079 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
23080 (struct grub_efi_uart_device_path): New structure.
23081 (grub_efi_uart_device_path_t): New type.
23082 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
23083 (struct grub_efi_vendor_messaging_device_path): New structure.
23084 (grub_efi_vendor_messaging_device_path_t): New type.
23085 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
23086 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
23087 (struct grub_efi_hard_drive_device_path): New structure.
23088 (grub_efi_hard_drive_device_path_t): New type.
23089 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
23090 (struct grub_efi_cdrom_device_path): New structure.
23091 (grub_efi_cdrom_device_path_t): New type.
23092 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
23093 (struct grub_efi_vendor_media_device_path): New structure.
23094 (grub_efi_vendor_media_device_path_t): New type.
23095 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
23096 (struct grub_efi_file_path_device_path): New structure.
23097 (grub_efi_file_path_device_path_t): New type.
23098 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
23099 (struct grub_efi_protocol_device_path): New structure.
23100 (grub_efi_protocol_device_path_t): New type.
23101 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
23102 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
23103 (struct grub_efi_bios_device_path): New structure.
23104 (grub_efi_bios_device_path_t): New type.
23105 (struct grub_efi_disk_io): New structure.
23106 (grub_efi_disk_io_t): New type.
23107 (struct grub_efi_block_io_media): New structure.
23108 (grub_efi_block_io_media_t): New type.
23109 (struct grub_efi_block_io): New structure.
23110 (grub_efi_block_io_t): New type.
23112 * include/grub/misc.h (grub_stop): Removed.
23113 (grub_exit): New prototype.
23114 (grub_abort): Likewise.
23116 * include/grub/disk.h (enum grub_disk_dev_id): Added
23117 GRUB_DISK_DEVICE_EFIDISK_ID.
23119 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
23120 disk/efi/efidisk.c.
23121 (kernel_syms.lst): Remove the target if an error occurs.
23123 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
23125 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
23126 as it was simply too buggy.
23128 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
23130 * kern/misc.c (grub_lltoa): New function.
23131 (grub_vsprintf): Added support for the long long suffix,
23134 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
23136 * Makefile.in (LDFLAGS): Add variable.
23137 (LD): Remove variable.
23138 * configure.ac: Add -m32 to LDFLAGS.
23139 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
23140 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
23141 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
23142 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
23143 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
23145 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
23146 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
23147 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
23149 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
23151 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
23152 length for unknown glyph.
23154 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23156 Add support for pre-loaded modules into the EFI port.
23158 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
23159 completely. Accept one more argument DIR. The caller has changed.
23161 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
23163 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
23164 (grub_efi_loaded_image_guid): New variable.
23165 (grub_efi_get_loaded_image): New function.
23166 (grub_arch_modules_addr): Likewise.
23168 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
23171 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
23172 (struct grub_efi_loaded_image): New structure.
23173 (grub_efi_loaded_image_t): New type.
23175 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23177 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
23178 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
23179 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
23181 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
23183 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
23185 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
23187 * DISTLIST: Added include/grub/efi/console.h,
23188 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
23189 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23191 * include/grub/efi/console.h: New file.
23192 * include/grub/efi/time.h: Likewise.
23193 * include/grub/i386/efi/kernel.h: Likewise.
23194 * kern/efi/init.c: Likewise.
23195 * kern/efi/mm.c: Likewise.
23196 * term/efi/console.c: Likewise.
23198 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
23199 (grub_stop): Removed.
23200 (grub_get_rtc): Likewise.
23201 (grub_machine_init): Simply call grub_efi_init.
23202 (grub_machine_fini): Call grub_efi_fini.
23204 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
23205 (grub_efi_output_string): Removed.
23206 (grub_efi_stall): New function.
23207 (grub_stop): Likewise.
23208 (grub_get_rtc): Likewise.
23210 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
23211 (grub_efi_stall): New prototype.
23212 (grub_efi_allocate_pages): Likewise.
23213 (grub_efi_free_pages): Likewise.
23214 (grub_efi_get_memory_map): Likewise.
23215 (grub_efi_mm_init): Likewise.
23216 (grub_efi_mm_fini): Likewise.
23217 (grub_efi_init): Likewise.
23218 (grub_efi_fini): Likewise.
23220 * include/grub/i386/efi/time.h: Do not include
23221 grub/symbol.h. Include grub/efi/time.h.
23222 (GRUB_TICKS_PER_SECOND): Removed.
23223 (grub_get_rtc): Likewise.
23225 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
23226 Added padding. The EFI spec is buggy.
23227 (GRUB_EFI_BLACK): New macro.
23228 (GRUB_EFI_BLUE): Likewise.
23229 (GRUB_EFI_GREEN): Likewise.
23230 (GRUB_EFI_CYAN): Likewise.
23231 (GRUB_EFI_RED): Likewise.
23232 (GRUB_EFI_MAGENTA): Likewise.
23233 (GRUB_EFI_BROWN): Likewise.
23234 (GRUB_EFI_LIGHTGRAY): Likewise.
23235 (GRUB_EFI_BRIGHT): Likewise.
23236 (GRUB_EFI_DARKGRAY): Likewise.
23237 (GRUB_EFI_LIGHTBLUE): Likewise.
23238 (GRUB_EFI_LIGHTGREEN): Likewise.
23239 (GRUB_EFI_LIGHTCYAN): Likewise.
23240 (GRUB_EFI_LIGHTRED): Likewise.
23241 (GRUB_EFI_LIGHTMAGENTA): Likewise.
23242 (GRUB_EFI_YELLOW): Likewise.
23243 (GRUB_EFI_WHITE): Likewise.
23244 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
23245 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
23246 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
23247 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
23248 (GRUB_EFI_BACKGROUND_RED): Likewise.
23249 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
23250 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
23251 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
23252 (GRUB_EFI_TEXT_ATTR): Likewise.
23254 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
23255 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23256 (kernel_mod_HEADERS): Added efi/time.h.
23258 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
23260 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
23261 include/grub/efi/api.h, include/grub/efi/console_control.h,
23262 include/grub/efi/efi.h, include/grub/efi/pe32.h,
23263 include/grub/i386/efi/time.h, kern/efi/efi.c,
23264 kern/i386/efi/init.c, kern/i386/efi/startup.S,
23265 and util/i386/efi/grub-mkimage.c.
23267 * Makefile.in (RMKFILES): Added i386-efi.rmk.
23269 * genmk.rb (PModule#rule): Do not export symbols if
23270 #{prefix}_EXPORTS is set to "no".
23272 * conf/i386-efi.mk: New file.
23273 * conf/i386-efi.rmk: Likewise.
23274 * include/grub/efi/api.h: Likewise.
23275 * include/grub/efi/console_control.h: Likewise.
23276 * include/grub/efi/efi.h: Likewise.
23277 * include/grub/efi/pe32.h: Likewise.
23278 * include/grub/i386/efi/time.h: Likewise.
23279 * kern/efi/efi.c: Likewise.
23280 * kern/i386/efi/init.c: Likewise.
23281 * kern/i386/efi/startup.S: Likewise.
23282 * util/i386/efi/grub-mkimage.c: Likewise.
23284 2006-04-17 Marco Gerards <marco@gnu.org>
23286 * include/grub/script.h: Include <grub/parser.h> and
23287 "grub_script.tab.h".
23288 (struct grub_lexer_param): New struct.
23289 (struct grub_parser_param): Likewise.
23290 (grub_script_create_arglist): Pass the state in an argument.
23291 (grub_script_add_arglist): Likewise.
23292 (grub_script_create_cmdline): Likewise.
23293 (grub_script_create_cmdblock): Likewise.
23294 (grub_script_create_cmdif): Likewise.
23295 (grub_script_create_cmdmenu): Likewise.
23296 (grub_script_add_cmd): Likewise.
23297 (grub_script_arg_add): Likewise.
23298 (grub_script_lexer_ref): Likewise.
23299 (grub_script_lexer_deref): Likewise.
23300 (grub_script_lexer_record_start): Likewise.
23301 (grub_script_lexer_record_stop): Likewise.
23302 (grub_script_mem_record): Likewise.
23303 (grub_script_mem_record_stop): Likewise.
23304 (grub_script_malloc): Likewise.
23305 (grub_script_yylex): Likewise.
23306 (grub_script_yyparse): Likewise.
23307 (grub_script_yyerror): Likewise.
23308 (grub_script_yylex): Likewise.
23309 (grub_script_lexer_init): Return the state.
23311 * normal/lexer.c (grub_script_lexer_state): Removed variable.
23312 (grub_script_lexer_done): Likewise.
23313 (grub_script_lexer_getline): Likewise.
23314 (grub_script_lexer_refs): Likewise.
23315 (script): Likewise.
23316 (newscript): Likewise.
23317 (record): Likewise.
23318 (recording): Likewise.
23319 (recordpos): Likewise.
23320 (recordlen): Likewise.
23321 (grub_script_lexer_init): Return the state instead of setting
23323 (grub_script_lexer_ref): Use the newly added argument for state
23324 instead of globals.
23325 (grub_script_lexer_deref): Likewise.
23326 (grub_script_lexer_record_start): Likewise.
23327 (grub_script_lexer_record_stop): Likewise.
23328 (recordchar): Likewise.
23329 (nextchar): Likewise.
23330 (grub_script_yylex2): Likewise.
23331 (grub_script_yylex): Likewise.
23332 (grub_script_yyerror): Likewise.
23334 * normal/parser.y (func_mem): Removed variable.
23335 (menu_entry): Likewise.
23337 (%lex-param): New parser option.
23338 (%parse-param): Likewise.
23339 (script): Always return the AST.
23340 (argument): Pass the state around.
23341 (arguments): Likewise.
23342 (grubcmd): Likewise.
23343 (commands): Likewise.
23344 (function): Likewise.
23345 (menuentry): Likewise.
23346 (if_statement): Likewise.
23349 * normal/script.c (grub_script_memused): Removed variable.
23350 (grub_script_parsed): Likewise.
23351 (grub_script_malloc): Added a state argument. Use that instead of
23353 (grub_script_mem_record): Likewise.
23354 (grub_script_mem_record_stop): Likewise.
23355 (grub_script_arg_add): Likewise.
23356 (grub_script_add_arglist): Likewise.
23357 (grub_script_create_cmdline): Likewise.
23358 (grub_script_create_cmdif): Likewise.
23359 (grub_script_create_cmdmenu): Likewise.
23360 (grub_script_add_cmd): Likewise.
23361 (grub_script_parse): Setup the state before calling the parser.
23363 2006-04-16 Marco Gerards <marco@gnu.org>
23365 * normal/command.c (grub_command_init): Remove the title command.
23367 * normal/lexer.c (grub_script_yylex): Renamed from this...
23368 (grub_script_yylex2): ... to this.
23369 (grub_script_yylex): New function. Temporary
23370 introduced to filter some tokens.
23371 (grub_script_yyerror): Print a newline.
23373 * normal/main.c (read_config_file): Output information about the
23374 lines that contain errors. Wait for a key after all lines have
23375 been processed. Don't return an empty menu.
23377 * normal/parser.y (func_mem): Don't initialize.
23378 (menu_entry): Likewise.
23379 (err): New variable.
23380 (script): Don't return anything when an error was encountered.
23381 (ws, returns): Removed rules.
23382 (argument): Disabled concatenated variable support.
23383 (arguments): Remove explicit separators.
23384 (grubcmd): Likewise.
23385 (function): Likewise.
23386 (menuentry): Likewise.
23388 (commands): Likewise. Add error handling.
23390 * normal/script.c (grub_script_create_cmdline): If
23391 `grub_script_parsed' is 0, assume the parser encountered an error.
23393 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
23395 * configure.ac: Add support for EFI. Fix the typo
23396 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
23398 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23400 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
23401 foreign multibyte characters should be shown correctly.
23403 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23405 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
23407 (read_config_file): Made it to close file before returning.
23409 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
23411 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
23412 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
23413 video/i386/pc/vbefill.c.
23415 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
23416 video/i386/pc/vbefill.c.
23418 * include/grub/video.h (grub_video_blit_format): New enum.
23419 (grub_video_mode_info): Added new member blit_format.
23420 (grub_video_get_blit_format): New function prototype.
23422 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
23423 function prototype.
23424 (grub_video_vbe_map_rgb): Likewise.
23425 (grub_video_vbe_unmap_color): Likewise.
23427 * include/grub/i386/pc/vbeblit.h: New file.
23429 * include/grub/i386/pc/vbefill.h: New file.
23431 * video/video.c (grub_video_get_blit_format): New function.
23432 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
23433 (grub_video_vbe_map_rgb): Likewise.
23434 (grub_video_vbe_unmap_color): Likewise.
23436 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
23438 (grub_video_vbe_blit_render_target): Changed to use more optimized
23440 (grub_video_vbe_setup): Added detection for optimized settings.
23441 (grub_video_vbe_create_render_target): Likewise.
23443 * video/i386/pc/vbeblit.c: New file.
23445 * video/i386/pc/vbefill.c: New file.
23447 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
23449 * font/manager.c (grub_font_get_glyph): Removed font fixup from
23452 * util/unifont2pff.rb: ... and moved it to here. Improved argument
23453 parsing to support both hex and dec ranges. If filename was missing
23454 show usage information.
23456 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
23458 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
23459 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
23461 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
23462 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
23463 (video_mod_SOURCES): Added.
23464 (video_mod_CFLAGS): Likewise.
23465 (video_mod_LDFLAGS): Likewise.
23466 (gfxterm_mod_SOURCES): Likewise.
23467 (gfxterm_mod_CFLAGS): Likewise.
23468 (gfxterm_mod_LDFLAGS): Likewise.
23469 (videotest_mod_SOURCES): Likewise.
23470 (videotest_mod_CFLAGS): Likewise.
23471 (videotest_mod_LDFLAGS): Likewise.
23472 (vesafb_mod_SOURCES): Removed.
23473 (vesafb_mod_CFLAGS): Likewise.
23474 (vesafb_mod_LDFLAGS): Likewise.
23475 (vga_mod_SOURCES): Likewise.
23476 (vga_mod_CFLAGS): Likewise.
23477 (vga_mod_LDFLAGS): Likewise.
23479 * commands/videotest.c: New file.
23481 * font/manager.c (fill_with_default_glyph): Modified to use
23483 (grub_font_get_glyph): Likewise.
23484 (fontmanager): Renamed from this...
23485 (font_manager): ... to this.
23487 * include/grub/font.h (grub_font_glyph): Added new structure.
23488 (grub_font_get_glyph): Modified to use grub_font_glyph.
23490 * include/grub/misc.h (grub_abs): Added as inline function.
23492 * include/grub/video.h: New file.
23494 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
23495 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
23496 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
23497 (grub_vbe_get_controller_info): Renamed from this...
23498 (grub_vbe_bios_get_controller_info): ... to this.
23499 (grub_vbe_get_mode_info): Renamed from this...
23500 (grub_vbe_bios_get_mode_info): ... to this.
23501 (grub_vbe_set_mode): Renamed from this...
23502 (grub_vbe_bios_set_mode): ... to this.
23503 (grub_vbe_get_mode): Renamed from this...
23504 (grub_vbe_bios_get_mode): ... to this.
23505 (grub_vbe_set_memory_window): Renamed from this...
23506 (grub_vbe_bios_set_memory_window): ... to this.
23507 (grub_vbe_get_memory_window): Renamed from this...
23508 (grub_vbe_bios_get_memory_window): ... to this.
23509 (grub_vbe_set_scanline_length): Renamed from this...
23510 (grub_vbe_set_scanline_length): ... to this.
23511 (grub_vbe_get_scanline_length): Renamed from this...
23512 (grub_vbe_bios_get_scanline_length): ... to this.
23513 (grub_vbe_set_display_start): Renamed from this...
23514 (grub_vbe_bios_set_display_start): ... to this.
23515 (grub_vbe_get_display_start): Renamed from this...
23516 (grub_vbe_bios_get_display_start): ... to this.
23517 (grub_vbe_set_palette_data): Renamed from this...
23518 (grub_vbe_bios_set_palette_data): ... to this.
23519 (grub_vbe_set_pixel_rgb): Removed.
23520 (grub_vbe_set_pixel_index): Likewise.
23522 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
23524 (grub_vbe_bios_get_controller_info): ... to this.
23525 (grub_vbe_get_mode_info): Renamed from this...
23526 (grub_vbe_bios_get_mode_info): ... to this.
23527 (grub_vbe_set_mode): Renamed from this...
23528 (grub_vbe_bios_set_mode): ... to this.
23529 (grub_vbe_get_mode): Renamed from this...
23530 (grub_vbe_bios_get_mode): ... to this.
23531 (grub_vbe_set_memory_window): Renamed from this...
23532 (grub_vbe_bios_set_memory_window): ... to this.
23533 (grub_vbe_get_memory_window): Renamed from this...
23534 (grub_vbe_bios_get_memory_window): ... to this.
23535 (grub_vbe_set_scanline_length): Renamed from this...
23536 (grub_vbe_set_scanline_length): ... to this.
23537 (grub_vbe_get_scanline_length): Renamed from this...
23538 (grub_vbe_bios_get_scanline_length): ... to this.
23539 (grub_vbe_set_display_start): Renamed from this...
23540 (grub_vbe_bios_set_display_start): ... to this.
23541 (grub_vbe_get_display_start): Renamed from this...
23542 (grub_vbe_bios_get_display_start): ... to this.
23543 (grub_vbe_set_palette_data): Renamed from this...
23544 (grub_vbe_bios_set_palette_data): ... to this.
23545 (grub_vbe_bios_get_controller_info): Fixed problem with registers
23546 getting corrupted after calling it. Added more pushes and pops.
23547 (grub_vbe_bios_set_mode): Likewise.
23548 (grub_vbe_bios_get_mode): Likewise.
23549 (grub_vbe_bios_get_memory_window): Likewise.
23550 (grub_vbe_bios_set_scanline_length): Likewise.
23551 (grub_vbe_bios_get_scanline_length): Likewise.
23552 (grub_vbe_bios_get_display_start): Likewise.
23553 (grub_vbe_bios_set_palette_data): Likewise.
23555 * normal/cmdline.c (cl_set_pos): Refresh the screen.
23556 (cl_insert): Likewise.
23557 (cl_delete): Likewise.
23559 * term/gfxterm.c: New file.
23561 * term/i386/pc/vesafb.c: Removed file.
23563 * video/video.c: New file.
23565 * video/i386/pc/vbe.c (real2pm): Added new function.
23566 (grub_video_vbe_draw_pixel): Likewise.
23567 (grub_video_vbe_get_video_ptr): Likewise.
23568 (grub_video_vbe_get_pixel): Likewise
23569 (grub_video_vbe_init): Likewise.
23570 (grub_video_vbe_fini): Likewise.
23571 (grub_video_vbe_setup): Likewise.
23572 (grub_video_vbe_get_info): Likewise.
23573 (grub_video_vbe_set_palette): Likewise.
23574 (grub_video_vbe_get_palette): Likewise.
23575 (grub_video_vbe_set_viewport): Likewise.
23576 (grub_video_vbe_get_viewport): Likewise.
23577 (grub_video_vbe_map_color): Likewise.
23578 (grub_video_vbe_map_rgb): Likewise.
23579 (grub_video_vbe_map_rgba): Likewise.
23580 (grub_video_vbe_unmap_color): Likewise.
23581 (grub_video_vbe_fill_rect): Likewise.
23582 (grub_video_vbe_blit_glyph): Likewise.
23583 (grub_video_vbe_blit_bitmap): Likewise.
23584 (grub_video_vbe_blit_render_target): Likewise.
23585 (grub_video_vbe_scroll): Likewise.
23586 (grub_video_vbe_swap_buffers): Likewise.
23587 (grub_video_vbe_create_render_target): Likewise.
23588 (grub_video_vbe_delete_render_target): Likewise.
23589 (grub_video_vbe_set_active_render_target): Likewise.
23590 (grub_vbe_set_pixel_rgb): Remove function.
23591 (grub_vbe_set_pixel_index): Likewise.
23592 (index_color_mode): Remove static variable.
23593 (active_mode): Likewise.
23594 (framebuffer): Likewise.
23595 (bytes_per_scan_line): Likewise.
23596 (grub_video_vbe_adapter): Added new static variable.
23597 (framebuffer): Likewise.
23598 (render_target): Likewise.
23599 (initial_mode): Likewise.
23600 (mode_in_use): Likewise.
23601 (mode_list): Likewise.
23603 2006-03-10 Marco Gerards <marco@gnu.org>
23605 * configure.ac (AC_INIT): Bumped to 1.93.
23607 * DISTLIST: Added `include/grub/hfs.h'.
23609 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
23611 * boot/i386/pc/boot.S (general_error): Before looping, try INT
23612 18H, which might help the BIOS falling back to next boot media.
23614 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
23616 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
23617 Poe Chen <poe.poechen@gmail.com>.
23619 2006-01-17 Marco Gerards <marco@gnu.org>
23621 * include/grub/normal.h: Include <grub/script.h>.
23622 (grub_command_list): Removed struct.
23623 (grub_command_list_t): Removed type.
23624 (grub_menu_entry): Remove members `num' and `command_list'. Add
23625 members `commands' and `sourcecode'.
23626 * include/grub/script.h: Add inclusion guards.
23627 (grub_script_cmd_menuentry): New struct.
23628 (grub_script_execute_menuentry): New prototype.
23629 (grub_script_lexer_record_start): Likewise.
23630 (grub_script_lexer_record_stop): Likewise.
23631 * normal/execute.c (grub_script_execute_menuentry): New function.
23632 * normal/lexer.c (record, recording, recordpos, recordlen): New
23634 (grub_script_lexer_record_start): New function.
23635 (grub_script_lexer_record_stop): Likewise.
23636 (recordchar): Likewise.
23637 (nextchar): Likewise.
23638 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
23639 2048 as the buffer size. Add the tokens `menuentry' and `@'.
23640 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
23641 (current_menu): New variable.
23642 (free_menu): Mainly rewritten.
23643 (grub_normal_menu_addentry): New function.
23644 (read_config_file): Rewritten.
23645 * normal/menu.c (run_menu_entry): Mainly rewritten.
23646 * normal/menu_entry.c (make_screen): Rewritten the code to insert
23648 (run): Mainly rewritten.
23649 * normal/parser.y (menu_entry): New variable.
23650 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
23651 (menuentry): New rule.
23652 (command): Add `menuentry'.
23653 (if_statement): Allow additional returns before `fi'.
23654 * normal/script.c (grub_script_create_cmdmenu): New function.
23656 2006-01-03 Marco Gerards <marco@gnu.org>
23658 * INSTALL: GNU Bison is required.
23659 * configure.ac: Rewritten the test to detect Bison.
23660 * Makefile.in (YACC): New variable. Reported by Xun Sun
23661 <xun.sun.cn@gmail.com>.
23663 2006-01-03 Marco Gerards <marco@gnu.org>
23665 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
23666 the HFS+ filesystem to filesystem blocks.
23667 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
23668 GCC warning is silenced.
23670 2006-01-03 Marco Gerards <marco@gnu.org>
23672 * partmap/apple.c (apple_partition_map_iterate): Convert the data
23673 read from disk from big endian to host byte order.
23675 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
23677 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
23679 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
23680 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
23681 embedded HFS+ filesystem.
23682 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
23683 (grub_hfs_sblock): Move from here...
23684 * include/grub/hfs.h: To here... New file.
23685 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
23687 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
23689 (grub_hfsplus_volheader): Change type of member `magic' to
23691 (grub_hfsplus_data): Add new member `embedded_offset'.
23692 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
23694 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
23695 Calculate the offset.
23697 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23699 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
23701 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
23703 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23705 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
23706 ENV->NAME is NULL after allocating ENV->VALUE.
23708 2005-12-25 Marco Gerards <marco@gnu.org>
23710 * kern/env.c (grub_env_set): Rewritten the error handling code.
23712 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23714 * geninit.sh: Made more robust, and more portable.
23716 2005-12-25 Marco Gerards <marco@gnu.org>
23718 Add support for Apple HFS+ filesystems.
23720 * fs/hfsplus.c: New file.
23722 * DISTLIST: Added `fs/hfsplus.c'.
23724 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
23725 (hfsplus_mod_SOURCES): New variable.
23726 (hfsplus_mod_CFLAGS): Likewise.
23727 (hfsplus_mod_LDFLAGS): Likewise.
23728 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
23729 (grub_setup_SOURCES): Likewise.
23730 (grub_mkdevicemap_SOURCES): Likewise.
23731 (grub_emu_SOURCES): Likewise.
23732 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23734 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
23736 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
23738 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23740 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
23741 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
23742 include/grub/parser.h, include/grub/script.h, kern/parser.c,
23743 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
23744 normal/lexer.c, normal/parser.y, normal/script.c, and
23746 Removed kern/sparc64/cache.c.
23748 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
23749 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
23752 * configure.ac (AC_INIT): Bumped to 1.92.
23754 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
23756 * kern/err.c (grub_error_push): Added new function to support error
23758 (grub_error_pop): Likewise.
23759 (grub_error_stack_items): New local variable to support error stacks.
23760 (grub_error_stack_pos): Likewise.
23761 (grub_error_stack_assert): Likewise.
23762 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
23764 (grub_print_error): Added support to print errors from error stack.
23766 * include/grub/err.h (grub_error_push): Added function prototype.
23767 (grub_error_pop): Likewise.
23769 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
23771 * configure.ac: Accept `powerpc64' as host_cpu.
23772 (amd64): Rename to `biarch32'.
23774 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
23775 non-cacheline-aligned addresses.
23777 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
23778 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
23779 if `size' is non-zero.
23781 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
23783 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
23784 and `cd' to make sure the filename is not prefixed with a
23786 (pkgdata_MODULES): Add `gpt.mod'.
23787 (gpt_mod_SOURCES): New variable.
23788 (gpt_mod_CFLAGS): Likewise.
23789 (gpt_mod_LDFLAGS): Likewise.
23791 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
23793 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
23796 * partmap/gpt.c: New file.
23798 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
23799 GPT partition map is detected.
23801 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
23803 * commands/i386/pc/play.c: New file.
23804 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
23805 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
23808 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
23810 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
23811 ((unused))' to silence gcc warning.
23813 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
23815 * configure.ac: Correct `AC_PROG_YACC' test.
23817 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23819 * util/powerpc/ieee1275/grub-install.in: Run the mount point
23820 check before installing files.
23822 2005-11-22 Mike Small <smallm@panix.com>
23824 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
23825 number regex so multidigit numbers are recognized correctly.
23827 2005-11-22 Mike Small <smallm@panix.com>
23829 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
23830 debugging message before attempting to claim memory.
23831 (grub_rescue_cmd_initrd): Add a claim debugging message and try
23832 multiple addresses in case of failure.
23834 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23836 * term/tparm.c (get_space): Remove empty `if' statement.
23838 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
23840 * kern/parser.c (check_varstate): Rename `state' to 's'.
23842 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23844 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
23845 variable definitions to the beginning of each function. Sort stack
23847 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
23848 `buf' argument to `char *'.
23850 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23852 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
23853 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
23854 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
23855 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
23856 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
23857 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
23858 configfile.mod, search.mod, gzio.mod and test.mod.
23859 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
23860 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
23861 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
23862 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
23863 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
23864 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
23865 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
23866 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
23867 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
23868 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
23869 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
23870 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
23871 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
23872 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
23873 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
23874 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
23875 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
23876 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
23877 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
23878 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
23879 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
23880 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
23881 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
23883 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
23885 (pkgdata_MODULES): Add test.mod.
23887 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23889 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
23890 appending to variables with "+=".
23891 (PModule): Use full pathname to generate *.lst filenames.
23893 * Makefile.in: Fixed list rules moved from genmk.rb.
23894 (.DELETE_ON_ERROR): New special target.
23895 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
23897 * conf/i386-pc.rmk: Include conf/common.mk.
23898 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
23899 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
23900 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
23901 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
23902 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
23903 configfile.mod, search.mod, gzio.mod and test.mod.
23904 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
23905 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
23906 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
23907 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
23908 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
23909 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
23910 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
23911 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
23912 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
23913 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
23914 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
23915 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
23916 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
23917 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
23918 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
23919 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
23920 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
23921 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
23922 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
23923 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
23924 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
23925 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
23926 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
23928 * conf/common.rmk: ... to here. New file.
23930 * conf/common.mk: New file.
23932 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
23934 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
23935 (grub_script.tab.c): ... here.
23937 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
23938 (grub_script.tab.c): ... here.
23940 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
23941 (grub_script.tab.c): ... here.
23943 * normal/command.c (grub_command_find): Fixed a memory leak of
23944 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
23946 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23948 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
23949 "@" which marks the start of a comment on ARM.
23950 (VARIABLE): Likewise.
23952 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23954 Add support for Linux/ADFS partition tables.
23956 * partmap/acorn.c: New file.
23958 * include/grub/acorn_filecore.h: Likewise.
23960 * DISTLIST: Added `partmap/acorn.c' and
23961 `include/grub/acorn_filecore.h'.
23963 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
23965 (pkgdata_MODULES): Add `acorn.mod'.
23966 (acorn_mod_SOURCES): New variable.
23967 (acorn_mod_CFLAGS): Likewise.
23969 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
23971 (pkgdata_MODULES): Add `acorn.mod'.
23972 (acorn_mod_SOURCES): New variable.
23973 (acorn_mod_CFLAGS): Likewise.
23975 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
23976 (pkgdata_MODULES): Add `acorn.mod'.
23977 (acorn_mod_SOURCES): New variable.
23978 (acorn_mod_CFLAGS): Likewise.
23979 (acorn_mod_LDFLAGS): Likewise.
23981 * include/types.h (grub_disk_addr_t): New typedef.
23983 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
23985 * geninit.sh: New file.
23987 * geninitheader.sh: Likewise.
23989 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
23990 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
23991 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
23992 * commands/configfile.c (grub_configfile_init)
23993 (grub_configfile_fini): Likewise.
23994 * commands/default.c (grub_default_init, grub_default_fini):
23996 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
23997 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
23998 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
23999 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
24001 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
24002 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
24004 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
24005 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
24007 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
24009 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
24011 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
24012 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
24013 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
24014 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
24015 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
24016 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
24017 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
24018 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
24019 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
24020 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
24021 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
24022 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
24023 * partmap/amiga.c (grub_amiga_partition_map_init)
24024 (grub_amiga_partition_map_fini): Likewise.
24025 * partmap/apple.c (grub_apple_partition_map_init)
24026 (grub_apple_partition_map_fini): Likewise.
24027 * partmap/pc.c (grub_pc_partition_map_init)
24028 (grub_pc_partition_map_fini): Likewise.
24029 * partmap/sun.c (grub_sun_partition_map_init,
24030 grub_sun_partition_map_fini): Likewise.
24031 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
24034 * util/grub-emu.c: Include <grub_modules_init.h>.
24035 (main): Don't initialize and de-initialize any modules directly,
24036 use `grub_init_all' and `grub_fini_all' instead.
24038 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
24039 `grub_vesafb_mod_init'.
24040 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
24042 * term/i386/pc/vga.c (grub_vga_init): Renamed to
24043 `grub_vga_mod_init'. Updated all users.
24044 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
24046 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
24047 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
24050 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
24051 Generate a function to initialize the module in utilities.
24052 Updated all callers.
24053 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
24054 initialize the module in utilities. Updated all callers.
24056 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24058 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
24059 escape sequence and a literal ^L to clear the screen.
24061 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
24062 when returning from Open Firmware.
24064 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24066 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
24067 (grub_ofconsole_height): Likewise.
24068 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
24069 manually insert a '\n'.
24070 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
24071 `grub_ofconsole_height'. Return early if these are already set.
24073 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
24075 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
24076 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
24077 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
24078 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
24079 and `normal/script.c'.
24080 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24081 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24082 (test_mod_SOURCES): New variable.
24083 (test_mod_CFLAGS): Likewise.
24084 (test_mod_LDFLAGS): Likewise.
24085 (pkgdata_MODULES): Add `test.mod'.
24086 (grub_script.tab.c): New rule.
24087 (grub_script.tab.h): Likewise.
24089 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
24091 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24092 `commands/test.c', `normal/execute.c', `normal/lexer.c',
24093 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24094 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24095 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24096 (test_mod_SOURCES): New variable.
24097 (test_mod_CFLAGS): Likewise.
24098 (pkgdata_MODULES): Add `test.mod'.
24099 (grub_script.tab.c): New rule.
24100 (grub_script.tab.h): Likewise.
24102 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
24104 Add initial scripting support.
24106 * commands/test.c: New file.
24107 * include/grub/script.h: Likewise.
24108 * normal/execute.c: Likewise.
24109 * normal/function.c: Likewise.
24110 * normal/lexer.c: Likewise.
24111 * normal/parser.y: Likewise.
24112 * normal/script.c: Likewise.
24114 * configure.ac: Add `AC_PROG_YACC' test.
24116 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
24117 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
24118 `normal/function.c' and `normal/script.c'.
24119 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24120 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24121 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
24123 (pkgdata_MODULES): Add `test.mod'.
24124 (grub_script.tab.c): New rule.
24125 (grub_script.tab.h): Likewise.
24127 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
24129 * include/grub/normal.h (grub_test_init): New prototype.
24130 (grub_test_fini): Likewise.
24132 * normal/command.c: Include <grub/script.h>.
24133 (grub_command_execute): Rewritten.
24135 * util/grub-emu.c (main): Call `grub_test_init' and
24138 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24140 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
24142 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
24143 there are no pending characters.
24145 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24147 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
24148 `grub_strndup' to drop device arguments. Replace unnecessary
24149 `grub_strndup' with `grub_strdup'.
24151 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24153 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
24154 `debug' environment variable has been set.
24156 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
24158 * Makefile.in (install-local): Use $(DATA).
24159 (uninstall): Likewise.
24160 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
24161 (sbin_UTILITIES): ... to here.
24162 (sbin_SCRIPTS): New variable.
24163 (grub_install_SOURCES): New variable.
24164 * util/powerpc/ieee1275/grub-install.in: New file.
24165 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
24167 (add_segments): Call `grub_util_get_path'.
24169 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
24171 From Timothy Baldwin:
24172 * commands/ls.c (grub_ls_list_files): Close FILE with
24174 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
24176 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
24178 * include/grub/parser.h: New file.
24180 * kern/parser.c: Likewise.
24182 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
24183 (grub_setup_SOURCES): Likewise.
24184 (grub_probefs_SOURCES): Likewise.
24185 (grub_emu_SOURCES): Likewise.
24186 (kernel_img_HEADERS): Add `parser.h'.
24188 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24189 (grub_emu_SOURCES): Add `kern/parser.c'.
24190 (grubof_SOURCES): Likewise.
24192 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24193 (grubof_SOURCES): Add `kern/parser.c'.
24195 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
24197 * kern/misc.c (grub_split_cmdline): Removed function.
24199 * kern/rescue.c: Include <grub/parser.h>.
24200 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
24201 of `grub_split_cmdline'.
24203 * normal/command.c: Include <grub/parser.h>.
24204 (grub_command_execute): Use `grub_parser_split_cmdline' instead
24205 of `grub_split_cmdline'.
24207 * normal/completion.c: Include <grub/parser.h>.
24208 (cmdline_state): New variable.
24209 (iterate_dir): End the filename with a quote depending on the
24210 command line state.
24211 (get_state): new function.
24212 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
24213 split the arguments and determine the current argument. When the
24214 argument string is not quoted, escape all spaces.
24216 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24218 * normal/sparc64/setjmp.S: New file.
24220 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24222 * include/grub/sparc64/libgcc.h: New file.
24223 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
24224 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
24225 normal/sparc64/setjmp.c.
24227 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24229 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
24230 * kern/sparc64/cache.S: New file.
24231 * kern/sparc64/cache.c: Removed.
24232 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
24233 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
24235 (COMMON_LDFLAGS): Add -melf64_sparc.
24236 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
24237 (grubof_SOURCES): Use cache.S instead of cache.c.
24238 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
24239 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
24240 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
24242 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
24243 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
24244 (linux_mod_CFLAGS): Commented out.
24245 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
24246 out because module isn't built.
24247 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
24248 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
24249 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
24250 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
24251 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
24252 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24253 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24254 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
24255 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
24256 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
24257 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24258 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24259 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
24260 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
24262 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
24264 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
24265 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
24266 longer, because HFS should not be used on PC.
24268 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24270 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
24271 consistently within the loop.
24273 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
24275 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
24276 directory can not be read.
24278 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24280 * configure.ac (AC_INIT): Increase the version number to 1.91.
24282 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
24283 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
24284 term/i386/pc/serial.c.
24286 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24288 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
24289 file size must be permitted.
24291 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
24292 between %ah and %al.
24294 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24296 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
24298 Call the hook with a NUL-terminated filename.
24299 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
24302 * kern/term.c (cursor_state): New variable.
24303 (grub_term_set_current): Reset the cursor state on a new
24305 (grub_setcursor): Rewritten to use CURSOR_STATE.
24306 (grub_getcursor): New function.
24308 * include/grub/term.h (grub_getcursor): New prototype.
24310 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
24311 integers on ARM. Reported by Timothy Baldwin
24312 <T.E.Baldwin99@members.leeds.ac.uk>.
24314 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
24316 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
24318 (grub_sfs_dir): Likewise.
24320 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
24322 Add support for the SFS filesystem.
24324 * fs/sfs.c: New file.
24326 * DISTLIST: Added `fs/sfs.c'.
24328 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
24329 (grub_probefs_SOURCES): Likewise.
24330 (grub_emu_SOURCES): Likewise.
24331 (pkgdata_MODULES): Add `sfs.mod'.
24332 (sfs_mod_SOURCES): New variable.
24333 (sfs_mod_CFLAGS): Likewise.
24334 (sfs_mod_LDFLAGS): Likewise.
24336 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
24337 (pkgdata_MODULES): Add `sfs.mod'.
24338 (sfs_mod_SOURCES): New variable.
24339 (sfs_mod_CFLAGS): Likewise.
24341 * util/grub-emu.c (main): Call `grub_sfs_init' and
24344 * include/grub/fs.h (grub_sfs_init): New prototype.
24345 (grub_sfs_fini): Likewise.
24347 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
24349 Add support for the AFFS filesystem.
24351 * fs/affs.c: New file.
24353 * DISTLIST: Added `fs/affs.c'.
24355 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
24356 (grub_probefs_SOURCES): Likewise.
24357 (grub_emu_SOURCES): Likewise.
24358 (pkgdata_MODULES): Add `affs.mod'.
24359 (affs_mod_SOURCES): New variable.
24360 (affs_mod_CFLAGS): Likewise.
24361 (affs_mod_LDFLAGS): Likewise.
24363 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
24364 (pkgdata_MODULES): Add `affs.mod'.
24365 (affs_mod_SOURCES): New variable.
24366 (affs_mod_CFLAGS): Likewise.
24368 * util/grub-emu.c (main): Call `grub_affs_init' and
24371 * include/grub/fs.h (grub_affs_init): New prototype.
24372 (grub_affs_fini): Likewise.
24374 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
24376 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
24378 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
24380 * configure.ac: Accept `x86_64' as host_cpu. In that case add
24383 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
24386 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
24387 (COMMON_LDFLAGS): New variable.
24388 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
24389 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
24390 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
24391 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
24392 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
24393 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
24394 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
24395 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
24396 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
24397 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
24398 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24399 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24400 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
24401 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
24402 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
24404 (normal_mod_ASFLAGS): Add `-m32'.
24406 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
24407 (grub_host_size_t, grub_host_ssize_t): New types.
24408 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
24409 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
24410 `GRUB_HOST_SIZEOF_VOID_P'.
24412 * include/grub/kernel.h (struct grub_module_header): Type of
24413 member offset changed to `grub_host_off_t'. Type of member size
24414 changed to `grub_host_size_t'.
24415 (struct grub_module_info): Type of member offset changed to
24416 `grub_host_off_t'. Type of member size changed to
24417 `grub_host_size_t'.
24419 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
24421 Make GRUB's kernel compliant to Multiboot Specification.
24423 * kern/i386/pc/startup.S (multiboot_header): New label.
24424 (multiboot_entry): Likewise.
24425 (multiboot_trampoline): Likewise.
24427 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
24428 Increased to 0x4A0.
24430 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
24431 put parentheses after a question mark.
24432 [!GRUB_UTIL] (my_mod): New variable.
24434 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
24436 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
24438 Adds support for the XFS filesystem. Btrees are not supported
24441 * fs/xfs.c: New file.
24443 * DISTLIST: Added `fs/xfs.c'.
24445 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
24446 (grub_probefs_SOURCES): Likewise.
24447 (grub_emu_SOURCES): Likewise.
24448 (pkgdata_MODULES): Add `xfs.mod'.
24449 (xfs_mod_SOURCES): New variable.
24450 (xfs_mod_CFLAGS): Likewise.
24452 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
24453 (pkgdata_MODULES): Add `xfs.mod'.
24454 (xfs_mod_SOURCES): New variable.
24455 (xfs_mod_CFLAGS): Likewise.
24457 * util/grub-emu.c (main): Call `grub_xfs_init' and
24460 * include/grub/fs.h (grub_xfs_init): New prototype.
24461 (grub_xfs_fini): Likewise.
24464 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
24466 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
24467 color modes, allow greater than 16 colors to be configured as
24470 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
24472 * normal/completion.c (complete_arguments): Add the qualifier
24473 const into OPTIONS.
24475 From Omniflux <omniflux+lists@omniflux.com>:
24476 * include/grub/terminfo.h: New file.
24477 * include/grub/tparm.h: Likewise.
24478 * include/grub/i386/pc/serial.h: Likewise.
24479 * term/terminfo.c: Likewise.
24480 * term/tparm.c: Likewise.
24481 * term/i386/pc/serial.c: Likewise.
24482 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
24484 (terminfo_mod_SOURCES): New variable.
24485 (terminfo_mod_CFLAGS): Likewise.
24486 (serial_mod_SOURCES): Likewise.
24487 (serial_mod_CFLAGS): Likewise.
24489 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
24491 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
24492 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
24493 and kern/powerpc/ieee1275/cmain.c, respectively.
24495 * boot/powerpc/ieee1275/crt0.S: Moved to ...
24496 * kern/powerpc/ieee1275/crt0.S: ... here.
24498 * boot/powerpc/ieee1275/cmain.c: Moved to ...
24499 * kern/powerpc/ieee1275/cmain.c: ... here.
24501 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
24502 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
24503 instead of boot/powerpc/ieee1275/crt0.S and
24504 boot/powerpc/ieee1275/cmain.c, respectively.
24506 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
24507 sectors. It was not used anyway.
24509 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24511 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
24512 `unused parameter' warning.
24514 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24516 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
24518 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
24521 2005-08-28 Marco Gerards <metgerards@student.han.nl>
24523 * include/grub/normal.h (enum grub_completion_type): Added
24524 `GRUB_COMPLETION_TYPE_ARGUMENT'.
24526 * normal/cmdline.c (print_completion): Handle
24527 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
24528 * normal/menu_entry.c (store_completion): Likewise.
24530 * normal/completion.c (complete_arguments): New function.
24531 (grub_normal_do_completion): Call `complete_arguments' when the
24532 current words start with a dash.
24534 2005-08-27 Marco Gerards <metgerards@student.han.nl>
24536 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
24537 `gzio.mod' instead of `io.mod').
24539 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
24541 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
24542 (DISTDIRS): Added io and video.
24543 Rewrite the search routine to make an output consistently.
24545 * DISTLIST: Added conf/sparc64-ieee1275.mk,
24546 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
24547 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
24548 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
24549 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
24550 util/powerpc/ieee1275/misc.c.
24552 * include/grub/gzio.h: New file.
24553 * io/gzio.c: Likewise.
24555 * kern/file.c (grub_file_close): Call grub_device_close only if
24556 FILE->DEVICE is not NULL.
24558 * include/grub/mm.h [!NULL] (NULL): New macro.
24560 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
24562 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
24563 (pkgdata_MODULES): Added gzio.mod.
24564 (gzio_mod_SOURCES): New variable.
24565 (gzio_mod_CFLAGS): Likewise.
24567 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
24568 (pkgdata_MODULES): Added gzio.mod.
24569 (gzio_mod_SOURCES): New variable.
24570 (gzio_mod_CFLAGS): Likewise.
24572 * commands/cat.c: Include grub/gzio.h.
24573 (grub_cmd_cat): Use grub_gzfile_open instead of
24576 * commands/cmp.c: Include grub/gzio.h.
24577 (grub_cmd_cmp): Use grub_gzfile_open instead of
24580 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
24581 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
24583 (grub_rescue_cmd_module): Likewise.
24585 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24587 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
24588 kern/sparc64/ieee1275/init.c because it contains _start.
24589 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
24591 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24593 * configure.ac: Add support for sparc64 host with ieee1275
24595 * configure: Generated from configure.ac.
24596 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
24598 (grub_ofdisk_read): Likewise.
24599 (grub_ofdisk_open): Use %p to print pointer values, and cast the
24600 pointers as (void *) to remove a warning.
24601 (grub_ofdisk_close): Likewise.
24602 (grub_ofdisk_read): Likewise.
24603 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
24604 returns, so make it return void to remove a warning.
24605 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
24606 Corresponding prototype change.
24607 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
24608 values, and cast the pointers as (void *) to remove a warning.
24609 (grub_mm_dump): Likewise.
24610 * conf/sparc64-ieee1275.mk: New file.
24611 * conf/sparc64-ieee1275.rmk: Likewise.
24612 * include/grub/sparc64/setjmp.h: Likewise.
24613 * include/grub/sparc64/types.h: Likewise.
24614 * include/grub/sparc64/ieee1275/console.h: Likewise.
24615 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
24616 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
24617 * include/grub/sparc64/ieee1275/time.h: Likewise.
24618 * kern/sparc64/cache.c: Likewise.
24619 * kern/sparc64/dl.c: Likewise.
24620 * kern/sparc64/ieee1275/init.c: Likewise.
24621 * kern/sparc64/ieee1275/openfw.c: Likewise.
24623 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
24625 * util/console.c (grub_ncurses_putchar): If C is greater than
24626 0x7f, set C to a question mark.
24627 (grub_ncurses_getcharwidth): New function.
24628 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
24631 * normal/menu.c (print_entry): Made aware of Unicode. First,
24632 convert TITLE to UCS-4, and predict the cursor position by
24635 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
24637 * kern/misc.c (grub_utf16_to_utf8): Likewise.
24639 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24641 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
24642 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24645 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
24646 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24647 grub_strcpy and grub_strlen. Take it into account that a space
24648 character is inserted as a delimiter.
24650 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24652 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
24653 invalid magic in the error.
24655 * commands/search.c: New file.
24657 * util/grub-emu.c (main): Call grub_search_init and
24660 * kern/rescue.c (grub_rescue_print_disks): Removed.
24661 (grub_rescue_print_devices): New function.
24662 (grub_rescue_cmd_ls): Use grub_device_iterate with
24663 grub_rescue_print_devices instead of grub_disk_dev_iterate with
24664 grub_rescue_print_disks.
24666 * kern/partition.c (grub_partition_iterate): Return the result of
24667 PARTMAP->ITERATE instead of GRUB_ERRNO.
24669 * kern/device.c: Include grub/partition.h.
24670 (grub_device_iterate): New function.
24672 * include/grub/partition.h (grub_partition_iterate): Return int
24673 instead of grub_err_t.
24675 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
24677 [GRUB_UTIL] (grub_search_fini): Likewise.
24679 * include/grub/device.h (grub_device_iterate): New prototype.
24681 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
24683 (pkgdata_MODULES): Added search.mod.
24684 (search_mod_SOURCES): New variable.
24685 (search_mod_CFLAGS): Likewise.
24687 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
24688 (pkgdata_MODULES): Added search.mod.
24689 (search_mod_SOURCES): New variable.
24690 (search_mod_CFLAGS): Likewise.
24692 * commands/ls.c (grub_ls_list_disks): Renamed to ...
24693 (grub_ls_list_devices): ... this, and use grub_device_iterate.
24694 All callers changed.
24696 * DISTLIST: Added commands/search.c.
24698 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24700 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
24702 (grub_getcharwidth): New function.
24704 * kern/misc.c (grub_utf8_to_ucs4): New function.
24706 * include/grub/term.h (struct grub_term): Added a new member
24708 (grub_getcharwidth): New prototype.
24710 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
24712 * term/i386/pc/console.c (map_char): New function. Segregated from
24713 grub_console_putchar.
24714 (grub_console_putchar): Use map_char.
24715 (grub_console_getcharwidth): New function.
24716 (grub_console_term): Specified grub_console_getcharwidth as
24719 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
24720 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
24722 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
24724 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
24725 on grub_strtoul completely.
24726 (write_char): Declare local variables in the beginning of the
24728 (grub_vesafb_getcharwidth): New function.
24729 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
24732 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
24734 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
24735 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
24736 commands/i386/pc/vbetest.c.
24738 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
24739 call grub_vbe_get_controller_info again, because the returned
24740 information is volatile.
24741 (grub_vbe_set_video_mode): Mostly rewritten.
24742 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
24743 grub_vbe_status_t correctly.
24744 (grub_vbe_get_video_mode_info): Likewise.
24745 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
24746 several if statements.
24748 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
24749 * commands/i386/pc/vbeinfo.c: ... this.
24751 * commands/i386/pc/vbe_test.c: Renamed to ...
24752 * commands/i386/pc/vbetest.c: ... this.
24754 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
24756 (grub_cmd_vbeinfo): ... this. Save video modes before
24757 iterating. Skip a video mode, if it is not available, not enough
24758 information is given or it is monochrome. Show the memory
24759 model. Leave the interpretation of MODEVAR to grub_strtoul
24761 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
24762 (GRUB_MOD_FINI): Likewise.
24764 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
24765 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
24766 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
24767 duplicated grub_env_get. Leave the interpretation of MODEVAR to
24768 grub_strtoul completely.
24769 (real2pm): Removed.
24770 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
24771 (GRUB_MOD_FINI): Likewise.
24773 * normal/misc.c: Include grub/mm.h.
24775 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
24776 vbe_list_modes with vbetest.mod and vbeinfo.mod.
24777 (vbe_list_modes_mod_SOURCES): Removed.
24778 (vbe_list_modes_mod_CFLAGS): Likewise.
24779 (vbe_test_mod_SOURCES): Likewise.
24780 (vbe_test_mod_CFLAGS): Likewise.
24781 (vbeinfo_mod_SOURCES): New variable.
24782 (vbeinfo_mod_CFLAGS): Likewise.
24783 (vbetest_mod_SOURCES): Likewise.
24784 (vbetest_mod_CFLAGS): Likewise.
24786 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
24788 * normal/misc.c: New file.
24790 * DISTLIST: Added normal/misc.c.
24792 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
24793 DISK to HOOK. Call HOOK with DISK.
24794 * partmap/apple.c (apple_partition_map_iterate): Likewise.
24795 * partmap/pc.c (pc_partition_map_iterate): Likewise.
24796 * partmap/sun.c (sun_partition_map_iterate): Likewise.
24798 * normal/menu_entry.c (struct screen): Added a new member
24799 "completion_shown".
24800 (completion_buffer): New global variable.
24801 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
24802 (store_completion): New function.
24803 (complete): Likewise.
24804 (clear_completions): Likewise.
24805 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
24806 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
24807 a tab, call complete.
24809 * normal/completion.c (disk_dev): Removed.
24810 (print_simple_completion): Likewise.
24811 (print_partition_completion): Likewise.
24812 (print_func): New global variable.
24813 (add_completion): Do not take the arguments WHAT or PRINT any
24814 longer. Added a new argument TYPE. Instead of printing directly,
24815 call PRINT_FUNC if not NULL.
24816 All callers changed.
24817 (complete_device): Use a local variable DEV instead of
24818 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
24819 (grub_normal_do_completion): Take a new argument HOOK. Do not
24820 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
24821 empty string, return NULL instead.
24822 All callers changed.
24824 * normal/cmdline.c (print_completion): New function.
24826 * kern/partition.c (grub_partition_iterate): Add an argument DISK
24828 All callers changed.
24830 * kern/disk.c (grub_print_partinfo): Removed.
24832 * include/grub/partition.h (struct grub_partition_map): Add a new
24833 argument DISK into HOOK of ITERATE.
24834 (grub_partition_iterate): Add a new argument DISK to HOOK.
24836 * include/grub/normal.h (enum grub_completion_type): New enum.
24837 (grub_completion_type_t): New type.
24838 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
24839 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
24840 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
24841 (GRUB_COMPLETION_TYPE_FILE): Likewise.
24842 (grub_normal_do_completion): Added a new argument HOOK.
24843 (grub_normal_print_device_info): New prototype.
24845 * include/grub/disk.h (grub_print_partinfo): Removed.
24847 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
24848 (normal_mod_SOURCES): Likewise.
24849 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24850 (normal_mod_SOURCES): Likewise.
24852 * commands/ls.c (grub_ls_list_disks): Use
24853 grub_normal_print_device_info instead of grub_print_partinfo. Free
24855 (grub_ls_list_files): Use grub_normal_print_device_info instead of
24856 duplicating the code.
24858 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
24860 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
24861 follow GCS more precisely.
24862 * commands/i386/pc/vbe_test.c: Likewise.
24863 * include/grub/i386/pc/vbe.h: Likewise.
24864 * term/i386/pc/vesafb.c: Likewise.
24865 * video/i386/pc/vbe.c: Likewise.
24867 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
24869 * DISTLIST: Added term/i386/pc/vesafb.c
24870 DISTLIST: Added video/i386/pc/vbe.c
24871 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
24872 DISTLIST: Added commands/i386/pc/vbe_test.c.
24873 * commands/i386/pc/vbe_list_modes.c: New file.
24874 * commands/i386/pc/vbe_test.c: Likewise.
24875 * term/i386/pc/vesafb.c: Likewise.
24876 * video/i386/pc/vbe.c: Likewise.
24877 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
24878 (grub_vbe_probe) Added prototype.
24879 (grub_vbe_set_video_mode) Likewise.
24880 (grub_vbe_get_video_mode) Likewise.
24881 (grub_vbe_get_video_mode_info) Likewise.
24882 (grub_vbe_set_pixel_rgb) Likewise.
24883 (grub_vbe_set_pixel_index) Likewise.
24884 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
24885 (pkgdata_MODULES): Added vesafb.mod.
24886 (pkgdata_MODULES): Added vbe_list_modes.mod.
24887 (pkgdata_MODULES): Added vbe_test.mod.
24888 (vbe_mod_SOURCES): Added.
24889 (vbe_mod_CFLAGS): Likewise.
24890 (vesafb_mod_SOURCES): Likewise.
24891 (vesafb_mod_CFLAGS): Likewise.
24892 (vbe_list_modes_mod_SOURCES): Likewise.
24893 (vbe_list_modes_mod_CFLAGS): Likewise.
24894 (vbe_test_mod_SOURCES): Likewise.
24895 (vbe_test_mod_CFLAGS): Likewise.
24897 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
24899 * normal/command.c (grub_command_execute): If INTERACTIVE is
24900 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
24901 CMDLINE. Disable the pager if INTERACTIVE is true.
24902 All callers are changed.
24904 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
24905 before reading a config file.
24906 * normal/main.c (read_config_file): Even if a command is not
24907 found, register it if it is within an entry.
24909 * util/grub-emu.c: Include sys/types.h and unistd.h.
24910 (options): Added --hold.
24911 (struct arguments): Added a new member "hold".
24912 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
24914 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
24915 cleared by a debugger, if it is not zero.
24917 * include/grub/normal.h (grub_command_execute): Add an argument
24920 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
24922 * DISTLIST: Added include/grub/i386/pc/vbe.h.
24924 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
24926 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
24927 program with another one, because the old one didn't detect a bug
24928 in gcc-3.4. Always use regparm 2, because the new test is still
24929 not enough for gcc-4.0. Someone must investigate a simple test
24930 case which detects a bug in gcc-4.0.
24932 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
24934 * DISTLIST: Added normal/completion.c.
24936 * normal/completion.c: New file.
24938 * term/i386/pc/console.c (grub_console_getwh): New function.
24939 (grub_console_term): Assign grub_console_getwh to getwh.
24941 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
24942 function is defined in normal/completion.c as
24943 grub_normal_do_completion.
24944 (grub_cmdline_get): Use grub_normal_do_completion instead of
24947 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
24948 returns non-zero, otherwise return 0.
24949 (grub_partition_iterate): First, probe the partition map. Then,
24950 call ITERATE only for this partition map.
24952 * kern/misc.c (grub_strncmp): Rewritten.
24954 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
24955 returns non-zero. Otherwise return 0.
24957 * include/grub/partition.h (grub_partition_map_iterate): Return
24958 int instead of void.
24960 * include/grub/normal.h (grub_normal_do_completion): New prototype.
24962 * include/grub/misc.h (grub_strncmp): Change the type of N to
24965 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
24968 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
24969 unsigned explicitly before comparing it with I.
24971 * kern/main.c (grub_env_write_root): Add the attribute unused into
24974 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
24975 normal/completion.c.
24976 (normal_mod_SOURCES): Likewise.
24977 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24978 (normal_mod_SOURCES): Likewise.
24980 * normal/command.c (grub_iterate_commands): If ITERATE returns
24981 non-zero, return one immediately.
24983 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
24985 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
24986 * kern/i386/pc/startup.S: Updated Global Descriptor table's
24988 (grub_vbe_get_controller_info): New function.
24989 (grub_vbe_get_mode_info): Likewise.
24990 (grub_vbe_set_mode): Likewise.
24991 (grub_vbe_get_mode): Likewise.
24992 (grub_vbe_set_memory_window): Likewise.
24993 (grub_vbe_get_memory_window): Likewise.
24994 (grub_vbe_set_scanline_length): Likewise.
24995 (grub_vbe_get_scanline_length): Likewise.
24996 (grub_vbe_set_display_start): Likewise.
24997 (grub_vbe_get_display_start): Likewise.
24998 (grub_vbe_set_palette_data): Likewise.
24999 * include/grub/i386/pc/vbe.h: New file.
25001 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25003 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25004 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
25005 * DISTLIST: Likewise.
25006 * kern/ieee1275/of.c: Moved to ...
25007 * kern/ieee1275/ieee1275.c: ... here.
25009 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25011 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
25012 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
25013 Pass 0 as `end' parameter to grub_strtoul().
25015 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25017 * include/grub/powerpc/ieee1275/console.h: Do not include
25018 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
25020 (grub_console_cur_color): Remove i386-specific prototype.
25021 (grub_console_real_putchar): Likewise.
25022 (grub_console_checkkey): Likewise.
25023 (grub_console_getkey): Likewise.
25024 (grub_console_getxy): Likewise.
25025 (grub_console_gotoxy): Likewise.
25026 (grub_console_cls): Likewise.
25027 (grub_console_setcursor): Likewise.
25028 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
25029 Include <grub/machine/console.h>.
25030 * term/ieee1275/ofconsole.c: Likewise.
25032 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
25034 * Makefile.in (LIBLZO): New variable.
25036 * configure.ac: Check for LZO version 2.
25038 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
25039 lzo/lzo1x.h instead of lzo1x.h.
25041 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
25044 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
25045 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
25047 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
25048 copying the data from PARTITION to P.
25050 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25052 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
25053 negative, unload the module.
25055 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
25056 map is "pc_partition_map" but not "pc".
25057 (usage): Fix the description. The options are --boot-image and
25058 --core-image but not --boot-file or --core-file.
25059 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
25060 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
25063 * util/i386/pc/grub-install.in: Do not specify --boot-file or
25064 --core-file. Specify INSTALL_DEVICE as an argument.
25066 * util/console.c: Include config.h.
25067 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
25068 [HAVE_NCURSES_H]: Include ncurses.h.
25069 [HAVE_CURSES_H]: Include curses.h.
25070 [!A_NORMAL] (A_NORMAL): Defined as zero.
25071 [!A_STANDOUT] (A_STANDOUT): Likewise.
25073 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
25075 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
25077 * configure.ac: Check for curses libraries and headers.
25079 * Makefile.in (LIBCURSES): New variable.
25081 * genmk.rb (Script::rule): Set the executable bits.
25083 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
25084 name of the PC partition map is "pc_partition_map" but not "pc".
25086 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25088 * util/i386/pc/grub-install.in (grub_probefs): New variable.
25089 (modules): Likewise.
25090 (usage): Added descriptions for --modules and --grub-probefs.
25091 Handle --modules and --grub-probefs. Save the arguments in MODULES
25092 and GRUB_PROBEFS, respectively.
25093 Auto-detect a filesystem module against GRUBDIR. If the result is
25094 empty and modules are not specified explicitly, abort the
25095 installation. Add the result to MODULES.
25097 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
25098 disk/powerpc/ieee1275/ofdisk.c,
25099 include/grub/powerpc/ieee1275/init.h and
25100 term/powerpc/ieee1275/ofconsole.c.
25101 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
25102 term/ieee1275/ofconsole.c.
25104 * include/grub/powerpc/ieee1275/console.h: Resurrected.
25106 * COPYING: Upgraded to the latest version. Only the address of the
25107 FSF office has changed.
25109 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25111 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25112 kern/ieee1275.c with kern/ieee1275/of.c.
25114 * kern/ieee1275.c: Moved to ...
25115 * kern/ieee1275/of.c: ... here.
25117 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
25119 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
25122 * config.guess: Updated to the latest version from gnulib.
25123 * config.sub: Likewise.
25124 * install.sh: Likewise.
25125 * mkinstalldirs: Likewise.
25127 * include/grub/console.h: Removed. This file is arch-specific. Do
25128 not put this in include/grub.
25130 * include/grub/i386/pc/console.h: Resurrected.
25132 * util/console.c: Include grub/machine/console.h instead of
25134 * util/grub-emu.c: Likewise.
25136 2005-08-04 Marco Gerards <metgerards@student.han.nl>
25138 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
25141 From Vincent Pelletier <subdino2004@yahoo.fr>
25142 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
25143 Redefined to use grub_getwh.
25144 (grub_term): New member named getwh.
25145 (grub_getwh): New prototype.
25146 * kern/term.c (grub_getwh): New function.
25147 * term/i386/pc/console.c (grub_console_getwh): New function.
25148 (grub_console_term): New member `getwh'.
25149 * term/i386/pc/vga.c (grub_vga_getwh): New function.
25150 (grub_vga_term): New member `getwh'.
25151 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
25153 (grub_ofconsole_getw): New function.
25154 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
25155 (grub_ofconsole_term): New field named getwh and new initial
25158 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
25160 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
25161 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
25162 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
25163 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
25164 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
25165 of <grub/machine/ieee1275.h>.
25166 * commands/ieee1275/reboot.c: Likewise.
25167 * boot/powerpc/ieee1275/ieee1275.c: Move ...
25168 * kern/ieee1275.c: ... to here. All users updated. Change all
25169 parameter structs to use new type `grub_ieee1275_cell_t'.
25170 * term/powerpc/ieee1275/ofconsole.c: Move ...
25171 * term/ieee1275/ofconsole.c: ... to here. All users updated.
25172 * disk/powerpc/ieee1275/ofdisk.c: Move ...
25173 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
25174 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
25176 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
25177 Remove unused prototypes. All users updated.
25178 * include/grub/powerpc/ieee1275/console.h: Removed.
25179 * include/grub/powerpc/ieee1275/ieee1275.h: Define
25180 `grub_ieee1275_cell_t'.
25181 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
25182 Cast comparisons with -1 to the correct type.
25183 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
25184 type to match `grub_ieee1275_entry_fn'.
25186 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
25188 * DISTLIST: Added util/i386/pc/grub-probefs.c.
25190 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
25191 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
25193 (grub_probefs_SOURCES): New variable.
25195 * util/i386/pc/grub-probefs.c: New file.
25197 * util/i386/pc/grub-setup.c (main): Call
25198 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
25199 grub_hfs_init and grub_jfs_init to initialize the system. Call
25200 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
25201 grub_pc_partition_map_fini to finish the system.
25203 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
25205 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
25207 (grub_multiboot_load_elf32): Likewise.
25208 (grub_multiboot_is_elf64): Likewise.
25209 (grub_multiboot_load_elf64): Likewise.
25210 (grub_multiboot_load_elf): Likewise.
25211 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
25212 an ELF32 or ELF64 file.
25213 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
25215 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
25216 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
25217 NULL before calling FS->LABEL.
25218 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
25219 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
25220 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
25221 before calling FS->LABEL.
25223 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
25225 * util/i386/pc/grub-install.in (datadir): New variable.
25227 (pkgdatadir): New variable.
25228 (pkglibdir): Removed.
25230 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
25232 * DISTLIST: Added util/i386/pc/grub-install.in.
25234 * util/i386/pc/grub-install.in: New file.
25236 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
25237 (grub_install_SOURCES): Likewise.
25239 * genmk.rb: Added support for scripts.
25240 (Script): New class.
25241 (scripts): New variable.
25243 * Makefile.in (install-local): Install sbin_SCRIPTS by
25245 (uninstall): Remove sbin_SCRIPTS.
25247 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
25248 device, try to get a GRUB device by
25249 grub_util_biosdisk_get_grub_dev.
25252 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
25253 description for --device-map.
25255 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25257 Change the semantics of variable hooks. They now return strings
25258 instead of error values.
25260 * util/i386/pc/grub-setup.c: Include grub/env.h.
25261 (setup): Use grub_device_set_root instead of grub_env_set.
25263 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
25264 grub_env_get instead of grub_device_set_root and
25265 grub_device_get_root, respectively.
25267 * kern/main.c (grub_env_write_root): New function.
25268 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
25269 grub_env_set instead of grub_device_set_root.
25271 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
25273 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
25274 rather than calling ENV->WRITE_HOOK afterwards.
25275 (grub_env_get): Return the result of ENV->READ_HOOK rather than
25276 passing a pointer of a pointer.
25277 (grub_register_variable_hook): Change the types of "read_hook" and
25278 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
25280 Allocate the default empty string on the heap, because this string
25281 may be freed later.
25283 * kern/device.c: Include grub/env.h.
25284 (grub_device_set_root): Removed.
25285 (grub_device_get_root): Likewise.
25286 (grub_device_open): Use grub_env_get instead of
25287 grub_device_get_root.
25289 * include/grub/env.h (grub_env_read_hook_t): New type.
25290 (grub_env_write_hook_t): Likewise.
25291 (grub_env_var): Change the types of "read_hook" and "write_hook"
25292 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
25293 (grub_register_variable_hook): Likewise.
25295 * include/grub/device.h (grub_device_set_root): Removed.
25296 (grub_device_set_root): Likewise.
25298 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
25299 make sure that DIRNAME terminates with '/', so that
25300 grub_fat_find_dir will fail if PATH is not a directory.
25302 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
25304 Use the qualifier auto for print_files and print_files_long.
25305 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
25307 Put a newline only if there is no error.
25308 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
25311 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25313 * kern/partition.c (grub_partition_probe): Initialize PART to
25314 NULL. Otherwise, when no partition map is registered, this returns
25317 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
25319 * partmap/apple.c (apple_partition_map_iterate): Check if POS
25320 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
25323 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
25325 * commands/ls.c (grub_ls_list_disks): Print the filesystem
25326 information on each device, if it does not have partitions. Print
25327 "Device" instead of "Disk", because this function is not specific
25330 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
25331 static to ensure that it is put on the memory rather than a
25334 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25336 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
25337 (grub_cat_init): Likewise.
25338 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
25339 (options): Likewise.
25340 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25341 (grub_configfile_init): Likewise.
25342 * font/manager.c (GRUB_MOD_INIT): Likewise.
25343 * commands/help.c (GRUB_MOD_INIT): Likewise.
25344 (grub_help_init): Likewise.
25345 * normal/command.c (grub_command_init): Likewise.
25346 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
25347 * disk/loopback.c (grub_loop_init): Likewise.
25348 (GRUB_MOD_INIT): Likewise.
25349 * commands/ls.c (grub_ls_init): Likewise.
25350 (GRUB_MOD_INIT): Likewise.
25351 (options): Likewise.
25352 * commands/boot.c (grub_boot_init): Likewise.
25353 (GRUB_MOD_INIT): Likewise.
25354 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
25355 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
25356 (GRUB_MOD_INIT): Likewise.
25357 * commands/cmp.c (grub_cmp_init): Likewise.
25358 (GRUB_MOD_INIT): Likewise.
25360 * normal/arg.c: Use <> instead of "" to include header files.
25361 (SHORT_ARG_HELP): New macro.
25362 (SHORT_ARG_USAGE): Likewise.
25363 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
25364 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
25366 (find_short): Check if C is 'h' or 'u' explicitly.
25367 (grub_arg_show_help): Use space characters instead of tabs. Treat
25368 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
25369 are shown with --help and --usage only if they are not used for
25370 the command itself.
25371 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
25374 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
25375 const into "longarg". Change the type of "shortarg" to int.
25377 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25379 * boot/i386/pc/boot.S (boot_drive_check): New label.
25381 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
25384 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
25385 which do not pass a boot drive correctly. Copied from GRUB Legacy.
25387 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25389 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
25390 When turning off Gate A20, skip the check and return immediately,
25391 because this is not fatal usually.
25393 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25395 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
25396 be 0x7C00 instead of 0x8000.
25398 * boot/i386/pc/pxeboot.S: Rewritten.
25400 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
25402 (gate_a20_check_state): Read a byte from 0x108000. Invert the
25405 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
25407 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
25408 robustness. This routine now supports a BIOS call and System
25409 Control Port A to modify the gate A20.
25411 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25412 Increased to 0x440.
25414 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
25416 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
25417 device path and resulting ihandle.
25418 (grub_ofdisk_close): dprintf the ihandle being closed.
25419 (grub_ofdisk_read): dprintf function parameters.
25420 * kern/mm.c (grub_mm_init_region): Likewise.
25421 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
25422 (grub_linux_boot): dprintf the Linux entry point, initrd address and
25423 size, and boot arguments.
25424 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
25425 before loading into memory.
25426 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
25427 before loading into memory.
25429 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
25431 * kern/mm.c: Added much documentation.
25432 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
25433 8, set to 5 instead of 8.
25435 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
25437 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
25439 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
25440 (grub_mkdevicemap_SOURCES): New variable.
25442 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
25443 lib/device.c of GRUB Legacy.
25445 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
25447 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
25448 instead of PATH is NULL.
25450 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
25452 * commands/cmp.c (BUFFER_SIZE): New macro.
25453 (grub_cmd_cmp): Close the right file at the right time. Compare
25454 only data just read. Don't report files of different size as
25455 identical. Dynamically allocate buffers. Move variable
25456 declarations at the beginning of function.
25458 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
25460 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
25463 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
25465 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
25466 when backspace is pressed at beginning of line.
25468 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
25470 * DISTLIST: Added genfslist.sh.
25472 * normal/main.c (fs_module_list): New variable.
25473 (autoload_fs_module): New function.
25474 (read_fs_list): Likewise.
25475 (grub_normal_execute): Call read_fs_list.
25477 * kern/fs.c (grub_fs_autoload_hook): New variable.
25478 (grub_fs_probe): Added support for auto-loading.
25480 * include/grub/normal.h (struct grub_fs_module_list): New struct.
25481 (grub_fs_module_list_t): New type.
25483 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
25484 (grub_fs_autoload_hook): New prototype.
25486 * genfslist.sh: New file.
25488 * genmk.rb: Added a rule to generate a filesystem list.
25490 2005-06-30 Marco Gerards <metgerards@student.han.nl>
25492 * configure.ac: Fix the test for cross-compiling.
25494 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
25495 define GRUB_UTIL anymore.
25497 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
25498 so this function works on other systems than just big endian.
25499 (load_modules): Likewise.
25500 (add_segments): Likewise.
25502 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
25504 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
25505 contains `l' modifier, get a long from va_arg().
25507 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
25509 * kern/mm.c (grub_free): If the next free block which is being
25510 merged is the first free block, set the first block to the block
25512 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
25514 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25516 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
25517 `grub_ieee1275_chosen'.
25519 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25521 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
25522 (grub_ieee1275_chosen): New variable.
25523 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
25525 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
25526 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
25527 Rename first argument to `phandle' for consistency.
25528 (grub_ieee1275_get_property_length): Likewise.
25529 (grub_ieee1275_next_property): Likewise. Change type of first argument
25530 to grub_ieee1275_phandle_t.
25531 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
25532 Move export next to declaration.
25533 (grub_ieee1275_chosen): New variable.
25534 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
25535 Correct cosmetic typo.
25536 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
25537 `grub_ieee1275_chosen'.
25538 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
25539 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
25540 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
25541 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
25542 `grub_ieee1275_chosen'.
25544 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
25546 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
25548 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
25549 /chosen/bootargs as "variable=value" pairs.
25551 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
25553 * include/grub/misc.h (grub_dprintf): New macro.
25554 (grub_real_dprintf): New prototype.
25555 (grub_strword): Likewise.
25556 (grub_iswordseparator): Likewise.
25557 * kern/misc.c (grub_real_dprintf): New function.
25558 (grub_strword): Likewise.
25559 (grub_iswordseparator): Likewise.
25561 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
25563 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
25564 (roundup): Remove macro.
25565 (grub_ieee1275_flags): Make static.
25566 (grub_ieee1275_realmode): Remove.
25567 (grub_ieee1275_test_flag): New function.
25568 (grub_ieee1275_set_flag): Likewise.
25569 (find_options): Rename to `grub_ieee1275_find_options'; update
25570 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
25571 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
25572 (cmain): New prototype.
25573 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
25574 `grub_ieee1275_flags' directly.
25575 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
25576 machine/biosdisk.h.
25577 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
25578 Don't include grub/machine/init.h.
25579 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
25580 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
25582 (grub_ieee1275_realmode): Likewise.
25583 (grub_ieee1275_flag): New enum.
25584 (grub_ieee1275_test_flag): New prototype.
25585 (grub_ieee1275_set_flag): New prototype.
25586 * include/grub/powerpc/ieee1275/init.h: Remove file.
25587 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
25588 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
25589 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
25590 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
25592 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
25593 `grub_ieee1275_test_flag'.
25594 (grub_ieee1275_encode_devname): Likewise.
25596 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
25598 * include/grub/powerpc/ieee1275/ieee1275.h
25599 (grub_ieee1275_encode_devname): New prototype.
25600 (grub_ieee1275_get_filename): Likewise.
25601 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
25603 (grub_set_prefix): Likewise.
25604 (grub_machine_init): Call grub_set_prefix.
25605 * kern/powerpc/ieee1275/openfw.c: Fix typos.
25606 (grub_parse_type): New enum.
25607 (grub_ieee1275_get_devargs): New function.
25608 (grub_ieee1275_get_devname): Likewise.
25609 (grub_ieee1275_parse_args): Likewise.
25610 (grub_ieee1275_get_filename): Likewise.
25611 (grub_ieee1275_encode_devname): Likewise.
25613 2005-03-30 Marco Gerards <metgerards@student.han.nl>
25615 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
25616 `grub_loader_unset'.
25618 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
25620 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
25621 instead of grub_ieee1275_interpret.
25622 (grub_halt_init): New function.
25623 (grub_halt_fini): Likewise.
25624 (GRUB_MOD_INIT): Correct message grammar.
25625 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
25626 instead of grub_ieee1275_interpret.
25627 (grub_reboot_init): New function.
25628 (grub_reboot_fini): Likewise.
25629 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
25630 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
25631 util/i386/pc/misc.c with commands/ieee1275/halt.c,
25632 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
25633 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
25635 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
25637 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
25639 (grub_halt): Likewise.
25640 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
25641 (cmain): Remove __attribute__((unused)).
25642 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
25643 (grub_heap_len): Likewise.
25644 (grub_machine_fini): New function.
25645 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
25646 (grub_halt): Likewise.
25647 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
25649 * util/powerpc/ieee1275/misc.c: New file.
25651 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
25653 * DISTLIST: New file.
25654 * gendistlist.sh: Likewise.
25656 * Makefile.in (COMMON_DISTFILES): Removed.
25657 (BOOT_DISTFILES): Likewise.
25658 (CONF_DISTFILES): Likewise.
25659 (DISK_DISTFILES): Likewise.
25660 (FS_DISTFILES): Likewise.
25661 (INCLUDE_DISTFILES): Likewise.
25662 (KERN_DISTFILES): Likewise.
25663 (LOADER_DISTFILES): Likewise.
25664 (TERM_DISTFILES): Likewise.
25665 (UTIL_DISTFILES): Likewise.
25666 (DISTFILES): Likewise.
25667 (uninstall): Uninstall files in $(pkgdata_DATA).
25668 (DISTLIST): New target.
25669 (distdir): Use the contents of the file DISTLIST to get a list of
25672 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
25674 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
25675 descriptor. This is ported from GRUB Legacy.
25677 * gencmdlist.sh: Added an extra semicolon to make it work with
25678 old sed versions. Reported by Robert Bihlmeyer
25679 <robbe@orcus.priv.at>.
25681 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
25683 Automatic loading of commands is supported.
25685 * normal/main.c (read_command_list): New function.
25686 (grub_normal_execute): Call read_command_list.
25688 * normal/command.c (grub_register_command): Return zero or CMD.
25689 Allocate CMD->NAME from the heap.
25690 Initialize CMD->MODULE_NAME to zero.
25691 Find the same name as well. If the same command is found and it is
25692 a dummy command, overwrite members. If it is not a dummy command,
25694 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
25695 (grub_command_find): If a dummy command is found, load a module
25696 and retry to find a command only once.
25698 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
25699 make sure that each command is loaded.
25701 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
25703 (struct grub_command): Remove const from the member `name'.
25704 Add a new member `module_name'.
25705 (grub_register_command): Return grub_command_t.
25707 * commands/help.c (grub_cmd_help): Call grub_command_find to make
25708 sure that each command is loaded.
25710 * genmk.rb (PModule::rule): Specify a module name without the
25711 suffix ".mod" to gencmdlist.sh.
25713 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25715 * gencmdlist.sh: New file.
25717 * genmk.rb (PModule::rule): Generate a rule for a command list.
25719 Generate command.lst from $(COMMANDFILES).
25721 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
25722 (DATA): Added $(pkgdata_DATA).
25723 (install-local): Install files in $(pkgdata_DATA).
25725 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25727 * term/i386/pc/vga.c (debug_command): Removed.
25728 (GRUB_MOD_INIT): Do not register the command "debug".
25730 From Hollis Blanchard:
25731 * commands/configfile.c: New file.
25732 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25733 commands/configfile.c.
25734 (pkgdata_MODULES): Added configfile.mod.
25735 (configfile_mod_SOURCES): New variable.
25736 (configfile_mod_CFLAGS): Likewise.
25737 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25738 commands/configfile.c.
25739 (pkgdata_MODULES): Added configfile.mod.
25740 (configfile_mod_SOURCES): New variable.
25741 (configfile_mod_CFLAGS): Likewise.
25742 * util/grub-emu.c (main): Call grub_configfile_init and
25743 grub_configfile_fini.
25744 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
25746 [GRUB_UTIL] (grub_configfile_fini): Likewise.
25748 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
25750 * normal/arg.c (grub_arg_show_help): Do not show the bug report
25753 * commands/help.c (grub_cmd_help): Do not print newlines after
25754 the last command in print_command_help.
25756 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
25758 * commands/default.h: New file.
25759 * commands/timeout.h: Likewise.
25760 * normal/context.c: Likewise.
25762 * util/misc.c: Do not include sys/times.h.
25763 Include sys/time.h and grub/machine/time.h.
25764 (grub_get_rtc): Rewritten with gettimeofday.
25766 * util/grub-emu.c (main): Call grub_default_init and
25767 grub_timeout_init before grub_normal_init, and call
25768 grub_timeout_fini and grub_default_fini after grub_main.
25770 * util/console.c (grub_ncurses_checkkey): Return the read
25773 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
25776 * normal/main.c (read_config_file): Push MENU. If this fails,
25777 print an error and wait for a user input.
25778 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
25779 If a menu is empty or an error occurs, pop MENU.
25780 (grub_normal_execute): Pop and free MENU after grub_menu_run
25783 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
25785 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
25787 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
25789 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
25791 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
25794 * include/grub/normal.h (struct grub_menu_list): New struct.
25795 (grub_menu_list_t): New type.
25796 (struct grub_context): New struct.
25797 (grub_context_t): New type.
25798 (grub_register_command): Got rid of EXPORT_FUNC.
25799 (grub_unregister_command): Likewise.
25800 (grub_context_get): New prototype.
25801 (grub_context_get_current_menu): Likewise.
25802 (grub_context_push_menu): Likewise.
25803 (grub_context_pop_menu): Likewise.
25804 [GRUB_UTIL] (grub_default_init): Likewise.
25805 [GRUB_UTIL] (grub_default_fini): Likewise.
25806 [GRUB_UTIL] (grub_timeout_init): Likewise.
25807 [GRUB_UTIL] (grub_timeout_fini): Likewise.
25809 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
25810 commands/timeout.c and normal/context.c.
25811 (pkgdata_MODULES): Added default.mod and timeout.mod.
25812 (normal_mod_SOURCES): Added normal/context.c.
25813 (default_mod_SOURCES): New variable.
25814 (default_mod_CFLAGS): Likewise.
25815 (timeout_mod_SOURCES): Likewise.
25816 (timeout_mod_CFLAGS): Likewise.
25817 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
25819 (pkgdata_MODULES): Added default.mod and timeout.mod.
25820 (normal_mod_SOURCES): Added normal/context.c.
25821 (default_mod_SOURCES): New variable.
25822 (default_mod_CFLAGS): Likewise.
25823 (timeout_mod_SOURCES): Likewise.
25824 (timeout_mod_CFLAGS): Likewise.
25826 * Makefile.in (all-local): Added $(MKFILES).
25828 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
25830 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
25831 (grub_emu_SOURCES): Likewise.
25832 (pkgdata_MODULES): Add `sun.mod'.
25833 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
25834 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25836 (pkgdata_MODULES): Add `sun.mod'.
25837 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
25838 * include/grub/partition.h (grub_sun_partition_map_init): New
25840 (grub_sun_partition_map_fini): Likewise.
25841 * partmap/sun.c: New file.
25842 * util/grub-emu.c (main): Initialize and de-initialize the sun
25843 partitionmap support.
25845 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
25847 This implements an Emacs-like menu entry editor.
25849 * normal/menu_entry.c: New file.
25851 * util/console.c (grub_ncurses_putchar): Translate some Unicode
25852 characters to ASCII.
25853 (saved_char): New variable.
25854 (grub_ncurses_checkkey): Rewritten completely.
25855 (grub_ncurses_getkey): Likewise.
25856 (grub_ncurses_init): Call raw instead of cbreak.
25858 * normal/menu.c (print_entry): Do not put a space.
25859 (init_page): Renamed to ...
25860 (grub_menu_init_page): ... this. All callers changed.
25861 (edit_menu_entry): Removed.
25862 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
25864 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
25866 * kern/misc.c (grub_vprintf): Call grub_refresh.
25868 * normal/menu.c (DISP_LEFT): Renamed to ...
25869 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
25870 * normal/menu.c (DISP_UP): Renamed to ...
25871 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
25872 * normal/menu.c (DISP_RIGHT): Renamed to ...
25873 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
25874 * normal/menu.c (DISP_DOWN): Renamed to ...
25875 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
25876 * normal/menu.c (DISP_HLINE): Renamed to ...
25877 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
25878 * normal/menu.c (DISP_VLINE): Renamed to ...
25879 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
25880 * normal/menu.c (DISP_UL): Renamed to ...
25881 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
25882 * normal/menu.c (DISP_UR): Renamed to ...
25883 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
25884 * normal/menu.c (DISP_LL): Renamed to ...
25885 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
25886 * normal/menu.c (DISP_LR): Renamed to ...
25887 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
25888 * normal/menu.c (TERM_WIDTH): Renamed to ...
25889 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
25890 * normal/menu.c (TERM_HEIGHT): Renamed to ...
25891 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
25892 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
25893 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
25894 * normal/menu.c (TERM_MARGIN): Renamed to ...
25895 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
25896 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
25897 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
25898 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
25899 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
25900 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
25901 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
25902 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
25903 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
25904 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
25905 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
25906 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
25907 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
25908 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
25909 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
25910 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
25911 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
25912 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
25913 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
25914 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
25915 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
25916 All callers changed.
25918 * include/grub/normal.h: New prototype.
25920 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25921 normal/menu_entry.c.
25922 (normal_mod_SOURCES): Likewise.
25923 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25924 (normal_mod_SOURCES): Likewise.
25926 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
25928 * include/grub/normal.h (grub_halt_init): New prototype.
25929 (grub_halt_fini): Likewise.
25930 (grub_reboot_init): Likewise.
25931 (grub_reboot_fini): Likewise.
25933 * util/grub-emu.c: Include signal.h.
25934 (main_env): New global variable.
25935 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
25937 (grub_machine_fini): New function.
25938 (main): Call grub_halt_init and grub_reboot_init before
25939 grub_main, and grub_reboot_fini and grub_halt_fini after it.
25940 Call setjmp with MAIN_ENV to go back afterwards.
25941 Call grub_machine_fini right before return.
25943 * include/grub/util/misc.h: Include setjmp.h.
25944 (main_env): New prototype.
25946 * include/grub/kernel.h (grub_machine_fini): New prototype.
25947 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
25948 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
25950 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
25951 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
25952 * term/i386/pc/console.c (grub_console_fini): Likewise.
25954 * util/i386/pc/misc.c: New file.
25956 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25957 util/i386/pc/misc.c, commands/i386/pc/halt.c and
25958 commands/i386/pc/reboot.c.
25960 2005-02-14 Guillem Jover <guillem@hadrons.org>
25962 * include/grub/dl.h (grub_dl_check_header): New prototype.
25963 (grub_arch_dl_check_header): Change return type to grub_err_t,
25964 remove size parameter and export function. Update all callers.
25965 * kern/dl.c (grub_dl_check_header): New function.
25966 (grub_dl_load_core): Use `grub_dl_check_header' instead of
25967 `grub_arch_dl_check_header'. Check ELF type. Check if sections
25968 are inside the core.
25969 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
25970 independent ELF header checks.
25971 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
25972 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
25973 `grub_dl_check_header' instead of explicit checks. Check for the
25975 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
25976 `grub_dl_check_header' instead of explicit checks. Remove arch
25977 specific ELF header checks.
25979 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
25982 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
25984 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
25985 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
25987 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
25989 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
25990 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
25991 (part_map_iterate): Clear `grub_errno' and return 0 if
25992 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
25993 * partmap/amiga.c (amiga_partition_map_iterate): Return
25994 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
25995 * partmap/apple.c (apple_partition_map_iterate): Likewise.
25997 2005-02-01 Guillem Jover <guillem@hadrons.org>
25999 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
26002 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26004 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
26006 (grub_rescue_cmd_linux): New prototype.
26007 (grub_rescue_cmd_initrd): Likewise.
26008 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
26010 (grub_linux_release_mem): Release the memory for the initrd.
26011 (grub_load_linux): Renamed from this...
26012 (grub_rescue_cmd_linux): ...To this. Changed all callers.
26013 Changed `entry' not to be static. Loop over memory regions to
26014 find another one when the default fails.
26015 (grub_rescue_cmd_initrd): New function.
26016 (grub_linux_init): Remove function.
26017 (grub_linux_fini): Likewise.
26018 (GRUB_MOD_INIT): Register `initrd'.
26019 (GRUB_MOD_FINI): Unregister `initrd'.
26020 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
26022 (grub_linux_normal_fini): Likewise.
26023 (GRUB_MOD_INIT): Register `initrd'.
26024 (GRUB_MOD_FINI): Unregister `initrd'.
26026 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26028 * commands/help.c: New file.
26029 * normal/arg.c (show_help): Renamed to...
26030 (grub_arg_show_help): ... this.
26031 * commands/i386/pc/halt.c: New file.
26032 * commands/i386/pc/reboot.c: Likewise.
26033 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
26034 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
26035 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
26036 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
26038 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26040 (pkgdata_MODULES): Add `help.mod'.
26041 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
26042 * grub/i386/pc/init.h (grub_reboot): New prototype.
26043 (grub_halt): Likewise.
26044 * include/grub/normal.h (grub_arg_show_help): New prototype.
26045 (grub_help_init): Likewise.
26046 (grub_help_fini): Likewise.
26047 * util/grub-emu.c (main): Initialize and deinitialize the help
26050 * normal/cmdline.c (grub_cmdline_get): Doc fix.
26052 * normal/command.c (grub_command_init): Fixed the description of
26053 the `set' and `unset' commands.
26055 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26057 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
26059 * commands/ieee1275/halt.c: New file.
26060 * commands/ieee1275/reboot.c: Likewise.
26061 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
26062 `__attribute__ ((unused))'. Some GCS related fixed.
26063 (grub_suspend_init) [GRUB_UTIL]: Function removed.
26064 (grub_suspend_fini): Likewise.
26065 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
26067 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
26068 (halt_mod_CFLAGS): New variables.
26069 * include/grub/powerpc/ieee1275/ieee1275.h
26070 (grub_ieee1275_interpret): New prototype.
26072 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
26074 * include/grub/misc.h (memmove): New prototype.
26075 (memcpy): Likewise.
26077 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
26079 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
26080 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
26082 2005-01-22 Marco Gerards <metgerards@student.han.nl>
26084 * kern/misc.c (grub_strndup): Function rewritten.
26086 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
26088 * normal/menu.c (TERM_WIDTH): Macro redefined.
26089 (TERM_TOP_BORDER_Y): Likewise.
26090 (draw_border): Replaced while-loop by a for-loop. Make the number
26091 of lines consistent with the number of lines displayed in
26092 print_entries. Added a margin below the rectangle.
26093 (print_entry): Make the entry fit in the rectangle.
26094 (print_entries): Display the scroll arrows next to the right
26097 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26099 * fs/minix.c (grub_minix_find_file): Reserve more space for
26100 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
26101 `grub_strncpy' to copy `path' into it.
26103 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26105 Add the loopback device, a device via which files can be accessed
26108 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
26109 (pkgdata_MODULES): Add loopback.mod.
26110 (loopback_mod_SOURCES): New variable.
26111 (loopback_mod_CFLAGS): Likewise.
26112 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26114 (pkgdata_MODULES): Add loopback.mod.
26115 (loopback_mod_SOURCES): New variable.
26116 (loopback_mod_CFLAGS): Likewise.
26117 * disk/loopback.c: new file.
26118 * include/grub/normal.h (grub_loop_init): New prototype.
26119 (grub_loop_fini): New prototype.
26120 * util/grub-emu.c (main): Initialize and de-initialize loopback
26122 * include/grub/disk.h (grub_disk_dev_id): Add
26123 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
26125 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
26127 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
26129 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
26130 (suspend_mod_SOURCES): New variable.
26131 (suspend_mod_CFLAGS): Likewise.
26132 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
26134 * commands/ieee1275/suspend.c: New file.
26136 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
26138 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
26139 ((unused))' to `__attribute__ ((used))'.
26140 (GRUB_MOD_FINI): Likewise.
26141 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
26142 * genmk.rb (PModule): Assign space to common symbols when linking
26145 2005-01-20 Marco Gerards <metgerards@student.han.nl>
26147 * include/grub/mm.h (grub_mm_init_region): Change the type of the
26148 `unsigned' arguments to `grub_size_t'.
26149 (grub_malloc): Likewise.
26150 (grub_realloc): Likewise.
26151 (grub_memalign): Likewise.
26152 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
26153 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26154 * util/misc.c (grub_malloc): Likewise.
26155 (grub_realloc): Likewise.
26156 * kern/mm.c (get_header_from_pointer): Change the casts to
26157 `unsigned' into a cast to `grub_size_t'.
26159 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
26160 point to `currnode' when `currnode' is changed.
26162 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
26163 Schottelius <nico-linux@schottelius.org>.
26165 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
26167 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
26168 (note_path): Remove variable.
26169 (GRUB_IEEE1275_NOTE_NAME): New macro.
26170 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
26171 (grub_ieee1275_note_hdr): New structure.
26172 (grub_ieee1275_note_desc): Likewise.
26173 (grub_ieee1275_note): Likewise.
26174 (load_note): Remove `dir' argument. All callers updated. Remove
26175 `note_img' and `path'. Do not load a file from `note_path'.
26176 Initialize a struct grub_ieee1275_note and write that to `out'.
26177 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
26179 2005-01-05 Marco Gerards <metgerards@student.han.nl>
26181 * util/misc.c (grub_util_read_image): Revert last change. It
26182 called `grub_util_read_at', which seeks from the beginning of the
26185 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
26187 * TODO: Add note about endianness in grub-mkimage.
26188 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
26190 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
26191 (grub_mkimage_SOURCES): New target.
26192 * include/grub/kernel.h (grub_start_addr): Remove variable.
26193 (grub_end_addr): Likewise.
26194 (grub_total_module_size): Likewise.
26195 (grub_kernel_image_size): Likewise.
26196 (GRUB_MODULE_MAGIC): New constant.
26197 (grub_module_info): New structure.
26198 (grub_arch_modules_addr): New prototype.
26199 (grub_get_end_addr): Remove prototype.
26200 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
26201 * include/grub/powerpc/ieee1275/kernel.h: New file.
26202 * include/grub/util/misc.h (grub_util_get_fp_size): New
26204 (grub_util_read_at): Likewise.
26205 (grub_util_write_image_at): Likewise.
26206 * kern/main.c (grub_get_end_addr): Remove function.
26207 (grub_load_modules): Call grub_arch_modules_addr instead of using
26208 grub_end_addr. Look for a grub_module_info struct in memory. Use
26209 the grub_module_info fields instead of calling grub_get_end_addr
26210 as loop conditions. Move grub_add_unused_region code here.
26211 (grub_add_unused_region): Remove function.
26212 * kern/i386/pc/init.c: Include grub/cache.h.
26213 (grub_machine_init): Remove call to grub_get_end_addr. Remove
26214 one call to add_mem_region.
26215 (grub_arch_modules_addr): New function.
26216 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
26217 (grub_total_module_size): Likewise.
26218 Include grub/machine/kernel.h.
26219 (grub_arch_modules_addr): New function.
26220 * util/grub-emu.c (grub_end_addr): Remove variable.
26221 (grub_total_module_size): Likewise.
26222 (grub_arch_modules_addr): New function.
26223 * util/misc.c: Include unistd.h.
26224 (grub_util_get_fp_size): New function.
26225 (grub_util_read_at): Likewise.
26226 (grub_util_write_image_at): Likewise.
26227 (grub_util_read_image): Call grub_util_read_at.
26228 (grub_util_write_image): Call grub_util_write_image_at.
26229 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
26230 additional memory in kernel_img for a struct grub_module_info.
26231 Fill in that grub_module_info.
26232 * util/powerpc/ieee1275/grub-mkimage.c: New file.
26234 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26236 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
26238 * include/grub/powerpc/ieee1275/ieee1275.h
26239 (grub_ieee1275_milliseconds): New prototype.
26240 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
26242 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
26243 grub_ieee1275_milliseconds.
26245 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26247 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
26249 (find_options): New function.
26250 (cmain): Call find_options.
26251 * include/grub/powerpc/ieee1275/ieee1275.h
26252 (grub_ieee1275_realmode): New extern variable.
26253 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
26254 grub_map if grub_ieee1275_realmode is false.
26256 2004-12-29 Marco Gerards <metgerards@student.han.nl>
26258 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
26259 lines are inserted and make it work like readline. Reported by
26260 Vincent Pelletier <subdino2004@yahoo.fr>.
26262 2004-12-28 Marco Gerards <metgerards@student.han.nl>
26264 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
26266 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
26267 `kern/powerpc/cache.S'.
26269 2004-12-27 Marco Gerards <metgerards@student.han.nl>
26271 * genmk.rb: Handle the `Program' class in the main loop. Written
26272 by Johan Rydberg <jrydberg@gnu.org>.
26273 (Program): New class.
26274 (programs): New variable.
26275 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
26276 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
26277 instead of "grub/kernel.h". Include <grub/machine/init.h>.
26278 (help_arch): Function removed.
26279 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
26280 `powerpc/libgcc.h' and `loader.h'.
26281 (pkgdata_PROGRAMS): New variable.
26282 (sbin_UTILITIES): Variable removed.
26283 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
26284 (grubof_SOURCES): Variable re-defined so it only includes the
26285 core functionality.
26286 (grubof_CFLAGS): Remove `-DGRUBOF'.
26287 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
26288 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
26289 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
26290 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
26291 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
26292 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
26293 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
26294 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
26295 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
26296 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
26297 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
26298 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
26299 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
26300 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
26301 (pc_mod_CFLAGS): New variables.
26302 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
26303 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
26304 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
26305 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
26307 * include/grub/i386/pc/init.h (grub_os_area_addr)
26308 (rub_os_area_size): ... to here.
26309 * include/grub/powerpc/ieee1275/ieee1275.h
26310 (grub_ieee1275_entry_fn): Export symbol.
26311 * include/grub/powerpc/ieee1275/init.h: New file.
26312 * include/grub/powerpc/libgcc.h: Likewise.
26313 * include/grub/cache.h: Likewise.
26314 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
26315 <hollis@penguinppc.org>.
26316 * kern/dl.c: Include <grub/cache.h>.
26317 (grub_dl_flush_cache): New function.
26318 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
26320 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
26321 (grub_console_init): Removed prototypes.
26322 (grub_machine_init): Don't initialize the modules anymore.
26323 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
26325 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
26326 Macro undef removed.
26327 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
26328 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
26329 relocation `R_PPC_REL32'. Return an error when the relocation is
26331 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
26332 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
26333 * util/misc.c (grub_arch_sync_caches): Likewise.
26335 2004-12-19 Marco Gerards <metgerards@student.han.nl>
26337 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
26338 `symlist.c', add `grubof_symlist.c'.
26339 (symlist.c): Variable removed.
26340 (grubof_HEADERS): Variable added.
26341 (grubof_symlist.c): New target.
26342 (kernel_syms.lst): Use `grubof_HEADERS' instead of
26343 `kernel_img_HEADERS'.
26344 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
26345 * kern/powerpc/dl.c: New file.
26346 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
26348 (grub_arch_dl_relocate_symbols): Likewise.
26349 (grub_register_exported_symbols): Likewise.
26351 2004-12-13 Marco Gerards <metgerards@student.han.nl>
26353 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
26354 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
26355 to fail instead. Reported by Vincent Pelletier
26356 <subdino2004@yahoo.fr>.
26358 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
26359 it is not allocated. Reported by Vincent Pelletier
26360 <subdino2004@yahoo.fr>.
26362 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
26363 output so the output looks better.
26365 2004-12-04 Marco Gerards <metgerards@student.han.nl>
26367 Modulize the partition map support and add support for the amiga
26370 * commands/ls.c: Include <grub/partition.h> instead of
26371 <grub/machine/partition.h>.
26372 * kern/disk.c: Likewise.
26373 * kern/rescue.c: Likewise.
26374 * loader/i386/pc/chainloader.c: Likewise.
26375 * normal/cmdline.c: Likewise.
26376 * kern/powerpc/ieee1275/init.c: Likewise.
26377 (grub_machine_init): Call `grub_pc_partition_map_init',
26378 `grub_amiga_partition_map_init' and
26379 `grub_apple_partition_map_init'.
26380 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
26381 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
26382 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
26383 `partition.h' and `pc_partition.h'.
26384 (grub_setup_SOURCES): Remove
26385 `disk/i386/pc/partition.c'. Add `kern/partition.c',
26386 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26387 (grub_emu_SOURCES): Likewise.
26388 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
26389 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
26390 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
26391 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26392 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
26393 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26394 (grubof_SOURCES): Likewise.
26395 * disk/i386/pc/partition.c: File removed.
26396 * disk/powerpc/ieee1275/partition.c: Likewise.
26397 * include/grub/powerpc/ieee1275/partition.h: Likewise.
26398 * include/grub/i386/pc/partition.h: Likewise.
26399 * kern/partition.c: New file.
26400 * partmap/amiga.c: Likewise.
26401 * partmap/apple.c: Likewise.
26402 * partmap/pc.c: Likewise.
26403 * include/grub/partition.h: Likewise..
26404 * include/grub/pc_partition.h: Likewise.
26405 * util/grub-emu.c: Include <grub/partition.h> instead of
26406 <grub/machine/partition.h>.
26407 (main): Call `grub_pc_partition_map_init',
26408 `grub_amiga_partition_map_init' and
26409 `grub_apple_partition_map_init' and deinitialize afterwards.
26410 * util/i386/pc/biosdisk.c: Include `#include
26411 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26412 `<grub/machine/partition.h>'.
26413 * util/i386/pc/grub-setup.c: Likewise.
26414 * util/i386/pc/biosdisk.c: Likewise.
26415 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
26416 partition information in case of a PC partition.
26417 * util/i386/pc/grub-setup.c: Include `#include
26418 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26419 `<grub/machine/partition.h>'.
26420 (setup): Only access the PC specific partition information in case
26423 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
26425 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
26426 (grub_longjmp): Likewise.
26427 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
26429 * normal/powerpc/setjmp.S: New file.
26430 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
26431 `normal/powerpc/setjmp.S'.
26432 (grubof_CFLAGS): Add `-DGRUBOF'.
26433 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
26434 [GRUB_UTIL && !GRUBOF].
26436 2004-11-16 Marco Gerards <metgerards@student.han.nl>
26438 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
26439 property named `name'. Correctly handle the error returned by
26440 `grub_ieee1275_finddevice' if a device can not be opened.
26442 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
26444 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
26445 `actual' for negativity.
26446 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26449 2004-11-01 Marco Gerards <metgerards@student.han.nl>
26451 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
26452 (PAGE_OFFSET): New macro.
26453 (CRTC_ADDR_PORT): Likewise.
26454 (CRTC_DATA_PORT): Likewise.
26455 (START_ADDR_HIGH_REGISTER): Likewise.
26456 (START_ADDR_LOW_REGISTER): Likewise.
26457 (GRAPHICS_ADDR_PORT): Likewise.
26458 (GRAPHICS_DATA_PORT): Likewise.
26459 (READ_MAP_REGISTER): Likewise.
26460 (INPUT_STATUS1_REGISTER): Likewise.
26461 (INPUT_STATUS1_VERTR_BIT): Likewise.
26462 (page): New variable.
26463 (wait_vretrace): New function.
26464 (set_read_map): Likewise.
26465 (set_start_address): Likewise.
26466 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
26468 (check_vga_mem): Take the page into account.
26469 (write_char): Likewise.
26470 (write_cursor): Likewise.
26471 (scroll_up): Likewise. Copy the page to the page that is not
26472 shown and switch between both pages.
26473 (grub_vga_putchar): Fix off by one error.
26474 (grub_vga_cls): Wait for the vertical retrace. Take the page into
26477 2004-11-01 Marco Gerards <metgerards@student.han.nl>
26479 Add support for iso9660 (including rockridge).
26481 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26482 (iso9660_mod_SOURCES): New variable.
26483 (iso9660_mod_CFLAGS): Likewise.
26484 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26485 * include/grub/fs.h (grub_iso9660_init): New prototype.
26486 * util/grub-emu.c (main): Call `grub_iso9660_init'.
26487 * fs/iso9660.c: New file.
26489 * include/grub/misc.h (grub_strncat): New prototype.
26490 * kern/misc.c (grub_strncat): New function.
26492 * fs/hfs.c (grub_hfs_mount): Translate the error
26493 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
26494 * fs/jfs.c (grub_jfs_mount): Likewise.
26495 * fs/ufs.c (grub_ufs_mount): Likewise.
26497 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
26499 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
26500 which initialized BAT registers.
26501 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
26502 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26504 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
26505 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26507 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
26508 (grub_mapclaim): Likewise.
26509 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
26510 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
26513 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
26515 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
26516 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
26517 -ffreestanding and -msoft-float.
26519 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
26521 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
26522 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
26523 set in grub_ieee1275_flags.
26525 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
26527 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
26529 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
26530 grub_console_init first.
26531 Change the memory range used for grub_ieee1275_claim and
26532 grub_mm_init_region.
26533 Print an error message if the claim fails.
26534 Include <grub/misc.h>.
26536 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
26538 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
26539 Call grub_children_iterate for device nodes of type `scsi',
26541 (grub_ofdisk_open): Remove manual device alias resolution.
26542 Fix memory leak when device cannot be opened.
26543 * include/grub/powerpc/ieee1275/ieee1275.h
26544 (grub_children_iterate): New prototype.
26545 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
26547 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26548 Return -1 if args.size was -1.
26550 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26552 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
26553 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
26554 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
26555 Open Firmware's memory for it; claim memory from _start to _end.
26556 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
26557 (_end): New extern.
26558 (_start): Zero BSS from __bss_start to _end.
26559 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
26561 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
26563 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26565 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
26566 -1 if args.base was -1.
26568 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
26570 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
26571 escape sequence instead of a literal ^L. Also call
26572 grub_ofconsole_gotoxy.
26574 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
26576 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
26577 void * arguments to grub_addr_t. All callers updated. Also make
26578 the `result' argument optional.
26579 (grub_ieee1275_release): change void * arguments to grub_addr_t.
26580 All callers updated.
26582 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
26584 * commands/ls.c (grub_ls_list_files): Use the string following the
26585 initial ')', if present, as the filesystem path.
26586 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
26588 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
26590 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
26592 Make the source code of the menu interface more readable.
26594 * normal/menu.c: Include grub/mm.h.
26595 (TERM_WIDTH): New macro.
26596 (TERM_HEIGHT): Likewise.
26597 (TERM_INFO_HEIGHT): Likewise.
26598 (TERM_MARGIN): Likewise.
26599 (TERM_SCROLL_WIDTH): Likewise.
26600 (TERM_TOP_BORDER_Y): Likewise.
26601 (TERM_LEFT_BORDER_X): Likewise.
26602 (TERM_BORDER_WIDTH): Likewise.
26603 (TERM_MESSAGE_HEIGHT): Likewise.
26604 (TERM_BORDER_HEIGHT): Likewise.
26605 (TERM_NUM_ENTRIES): Likewise.
26606 (TERM_FIRST_ENTRY_Y): Likewise.
26607 (TERM_ENTRY_WIDTH): Likewise.
26608 (TERM_CURSOR_X): Likewise.
26609 (draw_border): Use macros instead of magic numbers.
26610 (print_entry): Likewise.
26611 (print_entries): Likewise.
26612 (run_menu): Likewise. Also, handle the key 'e'.
26613 (run_menu_entry): Ignore empty command lines.
26614 (print_message): Added a new argument EDIT. If EDIT is true,
26615 print a different message.
26616 (init_page): Likewise.
26617 (edit_menu_entry): New function. Not implemented yet.
26619 2004-09-17 Marco Gerards <metgerards@student.han.nl>
26621 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
26622 can be loaded from normal mode.
26624 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
26626 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
26627 (multiboot_mod_CFLAGS): New variables.
26628 * loader/i386/pc/linux_normal.c: New file.
26629 * loader/i386/pc/multiboot_normal.c: Likewise.
26631 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
26632 attribute `unused'.
26634 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
26635 `fdiro' to read the mode information from instead of `diro'.
26637 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
26638 looking up a symlink.
26640 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
26642 * normal/command.c (grub_command_execute): Don't parse the
26643 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
26644 flags of the command.
26646 * normal/menu.c (grub_menu_run): Fix typo.
26648 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
26650 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
26652 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
26653 `y + 1' instead of `y - 1'.
26655 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
26657 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
26659 From Hollis Blanchard <hollis@penguinppc.org>:
26660 * kern/misc.c (memmove): New alias for grub_memmove.
26661 (memcmp): New alias for grub_memcmp.
26662 (memset): New alias for grub_memset.
26663 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26664 Change "int handle" to "grub_ieee1275_phandle_t handle".
26665 * include/grub/powerpc/ieee1275/ieee1275.h
26666 (grub_ieee1275_get_property): Likewise.
26668 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
26670 Added normal mode command `chainloader' as module chain.mod, which
26671 depends on normal.mod and _chain.mod.
26673 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
26674 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
26675 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
26677 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
26678 but arguments parsing moved to ...
26679 (grub_chainloader_cmd): ... here. New function.
26680 * include/grub/i386/pc/chainloader.h: New file.
26681 * loader/i386/pc/chainloader_normal.c: Likewise.
26683 2004-09-11 Marco Gerards <metgerards@student.han.nl>
26685 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
26686 (grub_mkimage_LDFLAGS): Likewise.
26687 (grub_emu_SOURCES): Likewise.
26688 (kernel_img_HEADERS): Added fshelp.h.
26689 * fs/ext2.c: Include <grub/fshelp.h>.
26690 (FILETYPE_REG): New macro.
26691 (FILETYPE_INO_REG): Likewise.
26692 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
26694 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
26696 (grub_fshelp_node): New struct.
26697 (grub_ext2_data): Added member `diropen'. Changed member `inode'
26699 (grub_ext2_get_file_block): Removed function.
26700 (grub_ext2_read_block): New function.
26701 (grub_ext2_read_file): Replaced parameter `data' by `node'.
26702 This function was written.
26703 (grub_ext2_mount): Read the root inode. Create a diropen struct.
26704 (grub_ext2_find_file): Removed function.
26705 (grub_ext2_read_symlink): New function.
26706 (grub_ext2_iterate_dir): Likewise.
26707 (grub_ext2_open): Rewritten.
26708 (grub_ext2_dir): Rewritten.
26709 * include/grub/fshelp.h: New file.
26710 * fs/fshelp.c: Likewise.
26712 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
26714 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
26715 (print_message): Add a missing newline.
26716 (run_menu): Added timeout support.
26717 (run_menu_entry): New local function.
26718 (grub_menu_run): Added support for booting.
26720 * kern/loader.c (grub_loader_is_loaded): New function.
26722 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
26723 (grub_get_rtc): Exported.
26725 * include/grub/i386/pc/time.h: Include grub/symbol.h.
26726 (grub_get_rtc): Exported.
26728 * include/grub/normal.h (struct grub_command_list): Remove
26729 constant from the member `command'.
26731 * include/grub/loader.h (grub_loader_is_loaded): Declared.
26733 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
26735 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
26737 2004-08-28 Marco Gerards <metgerards@student.han.nl>
26739 Add support for the JFS filesystem.
26741 * fs/jfs.c: New file.
26742 * include/grub/fs.h (grub_jfs_init): New prototype.
26743 (grub_jfs_fini): New prototype.
26744 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
26745 (grub_emu_SOURCES): Likewise.
26746 (pkgdata_MODULES): Add jfs.mod.
26747 (jfs_mod_SOURCES): New variable.
26748 (jfs_mod_CFLAGS): Likewise.
26749 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
26750 (grubof_SOURCES): Likewise.
26751 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
26753 * fs/fat.c (grub_fat_find_dir): Convert the filename little
26754 endian to the host endian.
26755 (grub_fat_utf16_to_utf8): Move function from there...
26756 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
26757 the endianness of the source string anymore.
26758 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
26760 2004-08-24 Marco Gerards <metgerards@student.han.nl>
26762 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
26763 (grub_boot_fini) [GRUB_UTIL]: Likewise.
26764 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
26765 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
26767 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
26768 (grub_hfs_iterate_dir): Make the function static. Add prototypes
26769 for `node_found' and `it_dir'.
26770 (grub_hfs_dir): Add prototype for `dir_hook'.
26772 * fs/minix.c (grub_minix_get_file_block): Add prototype for
26773 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
26774 and `indir32' to silence a gcc warning.
26776 * include/grub/fs.h (grub_hfs_init): New prototype.
26777 (grub_hfs_fini): Likewise.
26780 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
26782 Each disk device has its own id now. This is useful to make use
26783 of multiple disk devices.
26785 * include/grub/disk.h (grub_disk_dev_id): New enum.
26786 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
26787 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
26789 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
26790 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
26792 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
26793 GRUB_DISK_DEVICE_OFDISK_ID as an id.
26795 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
26796 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
26798 * include/grub/disk.h (struct grub_disk_dev): Added a new member
26799 "id" which is used by the cache manager.
26801 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
26804 2004-08-18 Marco Gerards <metgerards@student.han.nl>
26806 * fs/hfs.c: New file.
26807 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
26808 (grub_emu_SOURCES): Likewise.
26809 (pkgdata_MODULES): Add hfs.mod.
26810 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
26811 (grubof_SOURCES): Likewise.
26812 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
26814 * include/grub/misc.h (grub_strncasecmp): Add prototype.
26815 * kern/misc.c (grub_strncasecmp): Add function.
26817 2004-08-14 Marco Gerards <metgerards@student.han.nl>
26819 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
26822 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
26823 (grub_ext2_dir): In case the directory entry type is unknown, read
26826 2004-08-02 Peter Bruin <pjbruin@dds.nl>
26828 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
26829 grub_load_linux instead of grub_rescue_cmd_linux as second
26830 argument of grub_rescue_register_command.
26832 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
26834 2004-07-27 Marco Gerards <metgerards@student.han.nl>
26836 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
26838 * commands/boot.c: Remove the check for `GRUB_UTIL'.
26839 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
26840 `loader/powerpc/ieee1275/linux.c',
26841 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
26842 * include/grub/powerpc/ieee1275/ieee1275.h
26843 (grub_ieee1275_release): New prototype.
26844 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
26845 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
26846 normal, boot, linux and linux_normal.
26847 * loader/powerpc/ieee1275/linux.c: New file.
26848 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
26850 2004-07-12 Marco Gerards <metgerards@student.han.nl>
26852 * normal/arg.c (grub_arg_parse): Correct error handling after
26853 reallocating the argumentlist (check if `argl' is not null instead
26854 of checking if `args' is not null).
26855 * kern/mm.c (grub_realloc): Return the same pointer when using the
26856 same region, instead of returning the header address.
26858 2004-07-11 Marco Gerards <metgerards@student.han.nl>
26860 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
26861 one block instead of two when looking for the initial partition.
26862 (grub_partition_probe): Initialize the local variable `p' with 0.
26863 Use base 10 for the grub_strtoul call.
26864 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
26865 need for one local variable.
26866 (grub_strtoul): Don't add the new value to `num', instead of that
26869 2004-07-11 Marco Gerards <metgerards@student.han.nl>
26871 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
26872 (pxeboot_img_SOURCES): New variable.
26873 (pxeboot_img_ASFLAGS): Likewise.
26874 (pxeboot_img_LDFLAGS): Likewise.
26875 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
26876 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
26877 <lode_leroy@hotmail.com>.
26879 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26881 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
26882 there was no input.
26884 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26886 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
26887 the history buffer logic.
26889 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26891 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
26892 (FILETYPE_INO_SYMLINK): New macros.
26893 (grub_ext2_find_file): Check if the node is a directory using the
26894 inode stat information instead of using the filetype in the
26895 dirent. Exclude the first character of an absolute symlink.
26896 (grub_ext2_dir): Mask out the filetype part of the mode member of
26899 2004-05-24 Marco Gerards <metgerards@student.han.nl>
26901 Add support for UFS version 1 and 2. Add support for the minix
26902 filesystem version 1 and 2, both the variants with 14 and 30 long
26905 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
26907 (grub_emu_SOURCES): Likewise.
26908 (pkgdata_MODULES): Add ufs.mod and minix.mod.
26909 (ufs_mod_SOURCES): New variable.
26910 (ufs_mod_CFLAGS): Likewise.
26911 (minix_mod_SOURCES): Likewise.
26912 (minix_mod_CFLAGS): Likewise.
26913 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
26915 (grubof_SOURCES): Likewise.
26916 * fs/ufs.c: New file.
26917 * fs/minix.c: New file.
26918 * include/grub/fs.h (grub_ufs_init): New prototype.
26919 (grub_ufs_fini): Likewise.
26920 (grub_minix_init): Likewise.
26921 (grub_minix_fini): Likewise.
26922 * util/grub-emu.c (main): Initialize and deinitialize UFS and
26925 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
26927 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
26928 commands/ls.c, commands/terminal.c, commands/boot.c,
26929 commands/cmp.c and commands/cat.c.
26930 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
26932 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
26935 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
26937 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
26938 and grub_, respectively. Because the conversion is trivial and
26939 mechanical, I omit the details here. Please refer to the CVS
26940 if you need more information.
26942 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
26944 * include/pupa: Renamed to ...
26945 * include/grub: ... this.
26946 * util/i386/pc/pupa-mkimage.c: Renamed to ...
26947 * util/i386/pc/grub-mkimage.c: ... this.
26948 * util/i386/pc/pupa-setup.c: Renamed to ...
26949 * util/i386/pc/grub-setup.c: ... this.
26950 * util/pupa-emu.c: Renamed to ...
26951 * util/grub-emu.c: ... this.
26953 2004-03-29 Marco Gerards <metgerards@student.han.nl>
26955 Add support for the newworld apple macintosh (PPC). This has been
26956 tested on the powerbook 2000 only. It only adds support for
26957 generic ieee1275 functions, console and disk support. This should
26958 be easy to port to other architectures with support for Open
26961 * configure.ac: Accept the powerpc as host_cpu. In the case of
26962 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
26963 specific tests are only executed while building for the i386.
26964 Inverse test for crosscompile.
26965 * genmk.rb (Utility): Allow assembler files.
26966 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
26967 * conf/powerpc-ieee1275.rmk: New file.
26968 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
26969 * disk/powerpc/ieee1275/partition.c: Likewise.
26970 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
26971 * include/pupa/powerpc/ieee1275/console.h: Likewise.
26972 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
26973 * include/pupa/powerpc/ieee1275/time.h: Likewise.
26974 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
26975 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
26976 * include/pupa/powerpc/ieee1275/loader.h
26977 * include/pupa/powerpc/setjmp.h: Likewise.
26978 * include/pupa/powerpc/types.h: Likewise.
26979 * kern/powerpc/ieee1275/init.c: Likewise.
26980 * kern/powerpc/ieee1275/openfw.c: Likewise.
26981 * term/powerpc/ieee1275/ofconsole.c: Likewise.
26983 These files were written by Johan Rydberg
26984 (jrydberg@night.trouble.net) and I only modified them slightly.
26986 * boot/powerpc/ieee1275/cmain.c: New file.
26987 * boot/powerpc/ieee1275/crt0.S: Likewise.
26988 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
26989 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
26991 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
26993 * Makefile.in: Update copyright.
26994 * genmodsrc.sh: Likewise.
26995 * gensymlist.sh: Likewise.
26996 * term/i386/pc/vga.c: Indent correctly.
26998 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
26999 bugreporting address.
27000 * util/i386/pc/pupa-setup.c (usage): Likewise,
27001 (main): Call pupa_ext2_init and pupa_ext2_fini.
27003 * fs/fat.c (log2): Renamed to ...
27004 (fat_log2): ... this.
27005 All callers changed.
27006 * kern/misc.c (memcpy): Alias to pupa_memmove.
27007 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
27009 * util/console.c (pupa_ncurses_fini): Return 0.
27011 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
27012 Move fail label here.
27013 [__GNU__]: Don't warn when using stat.
27014 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
27015 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
27016 long int. Use strtol instead of strtoul.
27018 2004-03-14 Marco Gerards <metgerards@student.han.nl>
27020 * commands/boot.c: New file.
27021 * commands/cat.c: Likewise.
27022 * commands/cmp.c: Likewise.
27023 * commands/ls.c: Likewise.
27024 * commands/terminal.c: Likewise.
27025 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
27026 (pupa_register_command): Changed interface to match the new
27028 (pupa_command_execute): Changed (almost rewritten) so it uses
27029 pupa_split_command. Added support for setting variables using the
27031 (rescue_command): Changed to work with the new argument parser.
27032 (terminal_command): Moved from here to commands/terminal.c.
27033 (set_command): New function.
27034 (unset_command): New function.
27035 (insmod_command): New function.
27036 (rmmod_command): New function.
27037 (lsmod_command): New function.
27038 (pupa_command_init): Don't initialize the command terminal
27039 anymore. Initialize the commands set, unset, insmod, rmmod and
27041 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
27042 (kernel_img_HEADERS): Add arg.h and env.h.
27043 (pupa_mkimage_LDFLAGS): Add kern/env.c.
27044 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
27045 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
27047 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
27049 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
27050 (boot_mod_SOURCES): New variable.
27051 (terminal_mod_SOURCES): Likewise.
27052 (ls_mod_SOURCES): Likewise.
27053 (cmp_mod_SOURCES): Likewise.
27054 (cat_mod_SOURCES): Likewise.
27056 * normal/arg.c: New file.
27057 * kern/env.c: Likewise.
27058 * include/pupa/arg.h: Likewise.
27059 * include/pupa/env.h: Likewise.
27060 * font/manager.c (font_command): Changed to match argument parsing
27062 (PUPA_MOD_INIT): Likewise.
27063 * hello/hello.c (pupa_cmd_hello): Likewise.
27064 (PUPA_MOD_INIT): Likewise.
27065 * include/pupa/disk.h: Include <pupa/device.h>.
27066 (pupa_print_partinfo): New prototype.
27067 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
27068 (pupa_dl_get_prefix): Likewise.
27069 * include/pupa/misc.h: Include <pupa/err.h>.
27070 (pupa_isgraph): New prototype.
27071 (pupa_isdigit): Likewise.
27072 (pupa_split_cmdline): Likewise.
27073 * include/pupa/normal.h: Include <pupa/arg.h>.
27074 (pupa_command): Changed the prototype of the member `func' to
27075 match the argument parsing interface. Added member `options'.
27076 (pupa_register_command): Updated to match function.
27077 (pupa_arg_parse): New prototype.
27078 (pupa_hello_init) [PUPA_UTIL]: New prototype.
27079 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
27080 (pupa_ls_init) [PUPA_UTIL]: Likewise.
27081 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
27082 (pupa_cat_init) [PUPA_UTIL]: Likewise.
27083 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
27084 (pupa_boot_init) [PUPA_UTIL]: Likewise.
27085 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
27086 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
27087 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
27088 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
27089 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
27090 * kern/disk.c: Include <pupa/file.h>.
27091 (pupa_print_partinfo): New function.
27092 * kern/dl.c: Include <pupa/env.h>.
27093 (pupa_dl_dir): Variable removed.
27094 (pupa_dl_load): Use the environment variable `prefix' instead of
27095 the variable pupa_dl_dir.
27096 (pupa_dl_set_prefix): Function removed.
27097 (pupa_dl_get_prefix): Likewise.
27098 * kern/i386/pc/init.c: Include <pupa/env.h>.
27099 (pupa_machine_init): Use the environment variable `prefix' instead of
27100 using pupa_dl_set_prefix to set the prefix.
27101 * kern/main.c: Include <pupa/env.h>.
27102 (pupa_set_root_dev): Use the environment variable `prefix' instead of
27103 using pupa_dl_get_prefix to get the prefix.
27104 * kern/misc.c: Include <pupa/env.h>.
27105 (pupa_isdigit): New function.
27106 (pupa_isgraph): Likewise.
27107 (pupa_ftoa): Likewise.
27108 (pupa_vsprintf): Added support for printing values of the type
27109 `double'. Make it possible to format variable output when using
27110 formatting like `%1.2%f'.
27111 (pupa_split_cmdline): New function.
27112 * kern/rescue.c: Include <pupa/env.h>.
27113 (next_word): Removed function.
27114 (pupa_rescue_cmd_prefix): Likewise.
27115 (pupa_rescue_cmd_set): New function.
27116 (pupa_rescue_cmd_unset): New function.
27117 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
27118 split the command line instead of splitting it here. Added
27119 support for setting variables using the syntax `foo=bar'. Don't
27120 initialize the prefix command anymore. Initialized the set and
27122 * normal/cmdline.c: Include <pupa/env.h>.
27123 (pupa_tab_complete): Added prototypes for print_simple_completion,
27124 print_partition_completion, add_completion, iterate_commands,
27125 iterate_dev, iterate_part and iterate_dir. Moved code to print
27126 partition information from here to kern/disk.c.
27127 (pupa_cmdline_run): Don't check if the function exists anymore.
27128 * normal/main.c: Include <pupa/env.h>.
27129 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
27130 instead of using pupa_dl_get_prefix to get the prefix.
27131 * term/i386/pc/vga.c: Include <pupa/arg.h>.
27132 (check_vga_mem): Cast pointers to `void *' to silence a gcc
27134 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
27135 (pupa_vga_setcolor): Declare unused variables with `__attribute__
27136 ((unused))' to silence a gcc warning.
27137 (pupa_vga_setcolor): Likewise.
27138 (debug_command): Changed to match argument parsing
27140 * util/pupa-emu.c: Include <pupa/env.h>.
27141 (options): Added 0's for unused fields to silence a gcc warning.
27143 (main): Use the environment variable `prefix' instead of using
27144 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
27145 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
27148 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
27149 * util/misc.c: Include <malloc.h>.
27150 (pupa_malloc): Rewritten so errors are correctly reported.
27151 (pupa_realloc): Likewise.
27152 (pupa_memalign): Likewise.
27153 (pupa_mm_init_region): Declare unused variables with
27154 `__attribute__ ((unused))' to silence a gcc warning.
27155 * normal/i386/setjmp.S: Remove tab at the end of the file to
27156 silence a gcc warning.
27157 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
27158 variables with `__attribute__ ((unused))' to silence a gcc
27160 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
27161 local variable i unsigned to silence a gcc warning.
27163 * kern/term.c: Include <pupa/misc.h>.
27164 (pupa_more_lines): New variable.
27165 (pupa_more): Likewise.
27166 (pupa_putcode): When the pager is active pause at the end of every
27168 (pupa_set_more): New function.
27169 * include/pupa/term.h (pupa_set_more): New prototype.
27172 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
27174 Now this project is GRUB 2 rather than PUPA. The location of
27175 the CVS repository was moved to GRUB's.
27177 * configure.ac: Use bug-grub as the reporting address.
27178 Use GRUB instead of PUPA.
27179 Change the version number to 1.90.
27181 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
27183 * genkernsyms.sh: Updated copyright information.
27184 * genmk.rb: Likewise.
27185 * genmodsrc.sh: Likewise.
27186 * gensymlist.sh: Likewise.
27187 * boot/i386/pc/boot.S: Likewise.
27188 * boot/i386/pc/diskboot.S: Likewise.
27189 * disk/i386/pc/biosdisk.c: Likewise.
27190 * disk/i386/pc/partition.c: Likewise.
27191 * font/manager.c: Likewise.
27192 * fs/ext2.c: Likewise.
27193 * fs/fat.c: Likewise.
27194 * include/pupa/boot.h: Likewise.
27195 * include/pupa/device.h: Likewise.
27196 * include/pupa/disk.h: Likewise.
27197 * include/pupa/dl.h: Likewise.
27198 * include/pupa/elf.h: Likewise.
27199 * include/pupa/err.h: Likewise.
27200 * include/pupa/file.h: Likewise.
27201 * include/pupa/font.h: Likewise.
27202 * include/pupa/fs.h: Likewise.
27203 * include/pupa/kernel.h: Likewise.
27204 * include/pupa/loader.h: Likewise.
27205 * include/pupa/misc.h: Likewise.
27206 * include/pupa/mm.h: Likewise.
27207 * include/pupa/net.h: Likewise.
27208 * include/pupa/normal.h: Likewise.
27209 * include/pupa/rescue.h: Likewise.
27210 * include/pupa/setjmp.h: Likewise.
27211 * include/pupa/symbol.h: Likewise.
27212 * include/pupa/term.h: Likewise.
27213 * include/pupa/types.h: Likewise.
27214 * include/pupa/i386/setjmp.h: Likewise.
27215 * include/pupa/i386/types.h: Likewise.
27216 * include/pupa/i386/pc/biosdisk.h: Likewise.
27217 * include/pupa/i386/pc/boot.h: Likewise.
27218 * include/pupa/i386/pc/console.h: Likewise.
27219 * include/pupa/i386/pc/init.h: Likewise.
27220 * include/pupa/i386/pc/kernel.h: Likewise.
27221 * include/pupa/i386/pc/linux.h: Likewise.
27222 * include/pupa/i386/pc/loader.h: Likewise.
27223 * include/pupa/i386/pc/memory.h: Likewise.
27224 * include/pupa/i386/pc/multiboot.h: Likewise.
27225 * include/pupa/i386/pc/partition.h: Likewise.
27226 * include/pupa/i386/pc/time.h: Likewise.
27227 * include/pupa/i386/pc/vga.h: Likewise.
27228 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
27229 * include/pupa/util/getroot.h: Likewise.
27230 * include/pupa/util/misc.h: Likewise.
27231 * include/pupa/util/resolve.h: Likewise.
27232 * kern/device.c: Likewise.
27233 * kern/disk.c: Likewise.
27234 * kern/dl.c: Likewise.
27235 * kern/err.c: Likewise.
27236 * kern/file.c: Likewise.
27237 * kern/fs.c: Likewise.
27238 * kern/loader.c: Likewise.
27239 * kern/main.c: Likewise.
27240 * kern/misc.c: Likewise.
27241 * kern/mm.c: Likewise.
27242 * kern/rescue.c: Likewise.
27243 * kern/term.c: Likewise.
27244 * kern/i386/dl.c: Likewise.
27245 * kern/i386/pc/init.c: Likewise.
27246 * kern/i386/pc/lzo1x.S: Likewise.
27247 * kern/i386/pc/startup.S: Likewise.
27248 * loader/i386/pc/chainloader.c: Likewise.
27249 * loader/i386/pc/linux.c: Likewise.
27250 * loader/i386/pc/multiboot.c: Likewise.
27251 * normal/cmdline.c: Likewise.
27252 * normal/command.c: Likewise.
27253 * normal/main.c: Likewise.
27254 * normal/menu.c: Likewise.
27255 * normal/i386/setjmp.S: Likewise.
27256 * term/i386/pc/console.c: Likewise.
27257 * term/i386/pc/vga.c: Likewise.
27258 * util/console.c: Likewise.
27259 * util/genmoddep.c: Likewise.
27260 * util/misc.c: Likewise.
27261 * util/pupa-emu.c: Likewise.
27262 * util/resolve.c: Likewise.
27263 * util/unifont2pff.rb: Likewise.
27264 * util/i386/pc/biosdisk.c: Likewise.
27265 * util/i386/pc/getroot.c: Likewise.
27266 * util/i386/pc/pupa-mkimage.c: Likewise.
27267 * util/i386/pc/pupa-setup.c: Likewise.
27269 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
27271 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
27272 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
27273 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
27274 reading and reset it after reading.
27275 (pupa_ext2_close): Return PUPA_ERR_NONE.
27277 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
27279 (struct linux_kernel_header): Add kernel_version and
27281 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
27282 pupa_file_read succeeds.
27283 (pupa_rescue_cmd_initrd): Implement.
27285 2003-12-03 Marco Gerards <metgerards@student.han.nl>
27287 * fs/ext2.c (pupa_ext2_label): New function.
27288 (pupa_ext2_fs): Added label.
27289 * fs/fat.c (pupa_fat_label): New function.
27290 (pupa_fat_fs): Added label.
27291 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
27293 * kern/misc.c (pupa_strndup): New function.
27294 * include/pupa/misc.h (pupa_strndup): New prototype.
27296 * include/pupa/normal.h: Include <pupa/err.h>.
27297 (pupa_set_history): New prototype.
27298 (pupa_iterate_commands): New prototype.
27299 * normal/cmdline.c: Include <pupa/machine/partition.h>,
27300 <pupa/disk.h>, <pupa/file.h>.
27301 (hist_size): New variable.
27302 (hist_lines): Likewise.
27303 (hist_end): Likewise.
27304 (hist_used): Likewise.
27305 (pupa_set_history): New function.
27306 (pupa_history_get): Likewise.
27307 (pupa_history_add): Likewise.
27308 (pupa_history_replace): Likewise.
27309 (pupa_tab_complete): Likewise.
27310 (pupa_cmdline_run): Added tab completion and history buffer. Tab
27311 completion shows partitionnames while completing partitions, this
27312 feature was suggested by Jeff Bailey.
27313 * normal/command.c (pupa_iterate_commands): New function.
27314 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
27315 (pupa_normal_init): Initialize history buffer.
27316 (PUPA_MOD_INIT): Likewise.
27317 (pupa_normal_fini): Free the history buffer.
27318 (PUPA_MOD_FINI): Likewise.
27320 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
27323 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
27324 * configure.ac [i386]: Check for regparam bug.
27325 (NESTED_FUNC_ATTR) [! i386]: Defined.
27327 2003-11-17 Marco Gerards <metgerards@student.han.nl>
27329 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
27330 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
27331 (pupa_emu_SOURCES): New variable.
27332 (pupa_emu_LDFLAGS): Likewise.
27333 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
27334 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
27335 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
27336 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27337 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
27338 (pupa_jmp_buf): New typedef.
27339 (pupa_setjmp) [PUPA_UTIL]: New macro.
27340 (pupa_longjmp) [PUPA_UTIL]: Likewise.
27341 * include/pupa/term.h (struct pupa_term): New member `refresh'.
27342 (pupa_refresh): New prototype.
27343 * include/pupa/util/getroot.h: New file.
27344 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
27346 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
27347 (pupa_rescue_cmd_cat): Likewise.
27348 (pupa_rescue_cmd_ls): Likewise.
27349 (pupa_rescue_cmd_testload): Likewise.
27350 (pupa_rescue_cmd_lsmod): Likewise.
27351 * normal/cmdline.c (pupa_cmdline_get): Likewise.
27352 * normal/menu.c (run_menu): Likewise.
27353 * kern/term.c (pupa_cls): Likewise.
27354 (pupa_refresh): New function.
27355 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
27356 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27357 * util/console.c: New file.
27359 * util/i386/pc/getroot.c: New file.
27360 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
27361 (pupa_putchar): New function.
27362 (pupa_refresh): Likewise.
27363 (xgetcwd): Function moved to ...
27364 (strip_extra_slashes): Likewise.
27365 (get_prefix): Likewise.
27366 * util/i386/pc/getroot.c: ... here.
27367 (find_root_device): Function moved and renamed to...
27368 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
27369 Changed all callers.
27370 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
27372 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
27373 Changed all callers.
27374 * util/misc.c (pupa_memalign): New function.
27375 (pupa_mm_init_region): Likewise.
27376 (pupa_register_exported_symbols): Likewise.
27377 (pupa_putchar): Function removed.
27378 * util/pupa-emu.c: New file.
27380 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
27382 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
27383 (_multiboot_mod_SOURCES): New variable.
27384 (_multiboot_mod_CFLAGS): Likewise.
27385 * loader/i386/pc/multiboot.c: New file.
27386 * include/pupa/i386/pc/multiboot.h: Likewise.
27387 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
27388 (pupa_multiboot_real_boot): New function.
27389 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
27390 (pupa_multiboot_real_boot): New prototype.
27391 (pupa_rescue_cmd_multiboot): Likewise
27392 (pupa_rescue_cmd_module): Likewise.
27394 * kern/loader.c (pupa_loader_set): Continue when
27395 pupa_loader_unload_func() fails.
27396 (pupa_loader_unset): New function.
27397 * include/pupa/loader.h (pupa_loader_unset): New prototype.
27399 * kern/misc.c (pupa_stpcpy): New function.
27400 * include/pupa/misc.h (pupa_stpcpy): New prototype.
27402 2003-11-12 Marco Gerards <metgerards@student.han.nl>
27404 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
27405 for available extensions.
27407 * include/pupa/i386/pc/time.h: New file.
27408 * kern/disk.c: Include <pupa/machine/time.h>.
27409 (PUPA_CACHE_TIMEOUT): New macro.
27410 (pupa_last_time): New variable.
27411 (pupa_disk_open): Flush the cache when there was a timeout.
27412 (pupa_disk_close): Reset the timer.
27413 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
27415 * util/misc.c: Include <sys/times.h>
27416 (pupa_get_rtc): New function.
27418 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
27420 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
27422 (pupa_ext2_get_file_block): Use blocks member.
27424 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
27425 first block. Return -1 instead of pupa_errno on error.
27427 2003-10-27 Marco Gerards <metgerards@student.han.nl>
27429 * README: In the pupa-mkimage example use _chain instead of chain
27430 and ext2 instead of fat.
27431 * TODO: Replace ext2fs with jfs as an example. Add an item for
27432 adding journal playback for ext2fs.
27433 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
27434 (pkgdata_MODULES): Added ext2.mod.
27435 (ext2_mod_SOURCES): New variable.
27436 (ext2_mod_CFLAGS): Likewise.
27437 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
27438 * include/pupa/misc.h (pupa_strncpy): New prototype.
27439 (pupa_strcat): Likewise.
27440 (pupa_strncmp): Likewise.
27441 * kern/misc.c (pupa_strcat): Enable function.
27442 (pupa_strncpy): New function.
27443 (pupa_strncmp): Likewise.
27444 * fs/ext2.c: New file.
27446 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
27447 when the read failed before retrying.
27448 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
27449 (_FILE_OFFSET_BITS): Likewise.
27450 * configure.ac: Added AC_SYS_LARGEFILE.
27452 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27454 * genmk.rb (PModule#rule): Make sure to get only symbol names
27455 from the output of nm.
27456 Reported by Robert Millan <rmh.grub@aybabtu.com>.
27458 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27460 I forgot to check in these changes for a long time. This adds
27461 incomplete support for VGA console, and this is still very
27462 buggy. Also, a lot of consideration is required for I18N,
27463 UNICODE, and VGA font issues. Therefore, assume that this is
27464 such that "better than nothing".
27466 * font/manager.c: New file.
27467 * include/pupa/font.h: Likewise.
27468 * include/pupa/i386/pc/vga.h: Likewise.
27469 * term/i386/pc/vga.c: Likewise.
27470 * util/unifont2pff.rb: Likewise.
27472 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
27473 (pkgdata_MODULES): Added vga.mod and font.mod.
27474 (vga_mod_SOURCES): New variables.
27475 (vga_mod_CFLAGS): Likewise.
27476 (font_mod_SOURCES): Likewise.
27477 (font_mod_CFLAGS): Likewise.
27479 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
27481 * include/pupa/term.h: Include pupa/err.h.
27482 (struct pupa_term): Added init and fini.
27483 Changed the argument of putchar to pupa_uint32_t.
27485 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
27486 (pupa_console_real_putchar): New prototype.
27487 (pupa_console_putchar): Removed.
27488 (pupa_console_checkkey): Exported.
27489 (pupa_console_getkey): Likewise.
27491 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
27494 * kern/term.c (pupa_term_set_current): Rewritten.
27495 (pupa_putchar): Likewise.
27496 (pupa_putcode): New function.
27498 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
27499 (pupa_console_real_putchar): ... this.
27500 (pupa_vga_set_mode): New function.
27501 (pupa_vga_get_font): Likewise.
27503 * normal/command.c: Include pupa/term.h.
27504 (terminal_command): New function.
27505 (pupa_command_init): Register the command "terminal".
27507 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
27508 (DISP_UP): Likewise.
27509 (DISP_RIGHT): Likewise.
27510 (DISP_DOWN): Likewise.
27511 (DISP_HLINE): Likewise.
27512 (DISP_VLINE): Likewise.
27513 (DISP_UL): Likewise.
27514 (DISP_UR): Likewise.
27515 (DISP_LL): Likewise.
27516 (DISP_LR): Likewise.
27518 * term/i386/pc/console.c (pupa_console_putchar): New function.
27520 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
27522 * util/resolve.c (pupa_util_resolve_dependencies): BUG
27523 FIX. Reverse the path_list.
27525 * include/pupa/normal.h: Export pupa_register_command and
27526 pupa_unregister_command.
27528 * hello/hello.c (pupa_cmd_hello): New module.
27529 * conf/i386-pc.rmk: Added hello.mod.
27531 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
27533 * kern/i386/pc/lzo1x.S: New file.
27535 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
27536 (compress_kernel): New variable.
27537 (generate_image): Heavily modified to support compressing a
27538 large part of the core image.
27540 * util/misc.c (pupa_util_read_image): Fix a file descriptor
27542 (pupa_util_load_image): New function.
27544 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
27545 (pupa_compressed_size): New variable.
27546 (codestart): Enable Gate A20 here.
27547 Decompress the compressed part of the core image.
27548 Rearrange the code to put functions and variables which are
27549 required for initialization in the non-compressed part.
27552 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
27555 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
27557 * include/pupa/i386/pc/kernel.h
27558 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
27559 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
27560 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
27561 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
27562 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
27564 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
27566 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
27567 (Utility#rule): Likewise.
27569 * configure.ac: Check if LZO is available.
27571 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
27573 * include/pupa/normal.h: New file.
27574 * include/pupa/setjmp.h: Likewise.
27575 * include/pupa/i386/setjmp.h: Likewise.
27576 * normal/cmdline.c: Likewise.
27577 * normal/command.c: Likewise.
27578 * normal/main.c: Likewise.
27579 * normal/menu.c: Likewise.
27580 * normal/i386/setjmp.S: Likewise.
27582 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
27583 (pupa_rescue_cmd_initrd): Likewise.
27585 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
27588 * kern/i386/pc/startup.S (translation_table): New variable.
27589 (translate_keycode): New function.
27590 (pupa_console_getkey): Call translate_keycode.
27592 * kern/rescue.c (attempt_normal_mode): New function.
27593 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
27594 it failed, print a message.
27596 * kern/mm.c (pupa_real_malloc): Print more information when a
27597 free magic is broken.
27598 (pupa_free): If the first free header is not free actually, set
27601 * kern/main.c (pupa_load_normal_mode): Just load the module
27603 (pupa_main): Don't print the message
27604 "Entering into rescue mode..." here.
27606 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
27608 (pupa_rescue_cmd_initrd): Likewise.
27609 (pupa_rescue_cmd_initrd): Likewise.
27611 * include/pupa/symbol.h (FUNCTION): Specify the type.
27612 (VARIABLE): Likewise.
27614 * include/pupa/err.h (pupa_err_t): Added
27615 PUPA_ERR_UNKNOWN_COMMAND.
27617 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
27618 (pupa_dl_get_prefix): Likewise.
27620 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
27621 Added _chain.mod and _linux.mod instead of chain.mod and
27623 (chain_mod_SOURCES): Renamed to ...
27624 (_chain_mod_SOURCES): ... this.
27625 (chain_mod_CFLAGS): Renamed to ...
27626 (_chain_mod_CFLAGS): ... this.
27627 (linux_mod_SOURCES): Renamed to ...
27628 (_linux_mod_SOURCES): ... this.
27629 (linux_mod_CFLAGS): Renamed to ...
27630 (_linux_mod_CFLAGS): ... this.
27631 (normal_mod_SOURCES): New variable.
27632 (normal_mod_CFLAGS): Likewise.
27633 (normal_mod_ASFLAGS): Likewise.
27635 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
27637 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
27640 * kern/dl.c (pupa_dl_ref): Refer depending modules
27642 (pupa_dl_unref): Unrefer depending modules recursively.
27643 Don't call pupa_dl_unload implicitly, because PUPA can crash if
27644 a module is unloaded before one depending on that module is
27646 (pupa_dl_unload): Unload depending modules explicitly,
27649 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
27651 * include/pupa/i386/pc/linux.h: New file.
27652 * loader/i386/pc/linux.c: Likewise.
27654 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
27656 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
27657 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
27658 of PUPA_CHAINLOADER_BOOT_SECTOR.
27660 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
27661 (pupa_linux_prot_size): New variable.
27662 (pupa_linux_tmp_addr): Likewise.
27663 (pupa_linux_real_addr): Likewise.
27664 (pupa_linux_boot_zimage): New function.
27665 (pupa_linux_boot_bzimage): Likewise.
27667 * kern/i386/pc/init.c (struct mem_region): New structure.
27668 (MAX_REGIONS): New macro.
27669 (mem_regions): New variable.
27670 (num_regions): Likewise.
27671 (pupa_os_area_addr): Likewise.
27672 (pupa_os_area_size): Likewise.
27673 (pupa_lower_mem): Likewise.
27674 (pupa_upper_mem): Likewise.
27675 (add_mem_region): New function.
27676 (compact_mem_regions): Likewise.
27677 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
27678 the size of the conventional memory and that of so-called upper
27679 memory (before the first memory hole).
27680 Instead of adding each found region to free memory, use
27681 add_mem_region and add them after removing overlaps.
27682 Also, add only 1/4 of the upper memory to free memory. The rest
27683 is used for loading OS images. Maybe this is ad hoc, but this
27684 makes it much easier to relocate OS images when booting.
27686 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
27687 (pupa_enter_rescue_mode): Don't register initrd and module.
27689 * kern/mm.c: Include pupa/dl.h.
27691 * kern/main.c: Include pupa/file.h and pupa/device.h.
27693 * kern/loader.c (pupa_loader_load_module_func): Removed.
27694 (pupa_loader_load_module): Likewise.
27696 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
27699 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
27700 (pupa_linux_tmp_addr): Likewise.
27701 (pupa_linux_real_addr): Likewise.
27702 (pupa_linux_boot_zimage): Likewise.
27703 (pupa_linux_boot_bzimage): Likewise.
27705 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
27706 (pupa_upper_mem): Likewise.
27707 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
27708 module is too dangerous.
27710 * include/pupa/loader.h (pupa_os_area_addr): Declared.
27711 (pupa_os_area_size): Likewise.
27712 (pupa_loader_set): Remove the first argument. Loader doesn't
27713 manage modules or initrd any longer.
27714 (pupa_loader_load_module): Removed.
27716 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
27717 (linux_mod_SOURCES): New variable.
27718 (linux_mod_CFLAGS): Likewise.
27720 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
27722 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
27723 the length of a blocklist correctly.
27725 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
27726 Use ioctl only if the OS file is a block device.
27727 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
27728 not very useful for normal files.
27730 * kern/main.c (pupa_set_root_dev): New function.
27731 (pupa_load_normal_mode): Likewise.
27732 (pupa_main): Call those above.
27734 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
27737 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
27739 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27741 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
27742 (setup): Configure the installed partition information and the
27745 * loader/i386/pc/chainloader.c (my_mod): New variable.
27746 (pupa_chainloader_unload): New function.
27747 (pupa_rescue_cmd_chainloader): Refer itself.
27748 (PUPA_MOD_INIT): Save its own module in MY_MOD.
27750 * kern/i386/pc/startup.S (install_partition): Removed.
27751 (version_string): Likewise.
27752 (config_file): Likewise.
27753 (pupa_install_dos_part): New variable.
27754 (pupa_install_bsd_part): Likewise.
27755 (pupa_prefix): Likewise.
27756 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
27758 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
27760 (make_install_device): New function.
27761 (pupa_machine_init): Set the dl prefix.
27763 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
27764 (buf): Renamed to ...
27765 (linebuf): ... this.
27766 (pupa_rescue_cmd_prefix): New function.
27767 (pupa_rescue_cmd_insmod): Likewise.
27768 (pupa_rescue_cmd_rmmod): Likewise.
27769 (pupa_rescue_cmd_lsmod): Likewise.
27770 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
27773 * kern/mm.c (pupa_memalign): If failed even after invalidating
27774 disk caches, unload unneeded modules and retry.
27776 * kern/misc.c (pupa_memmove): New function.
27777 (pupa_memcpy): Removed.
27778 (pupa_strcpy): New function.
27779 (pupa_itoa): Made static.
27781 * kern/dl.c (pupa_dl_iterate): New function.
27782 (pupa_dl_ref): Likewise.
27783 (pupa_dl_unref): Likewise.
27784 (pupa_dl_unload): Return if succeeded or not.
27785 (pupa_dl_unload_unneeded): New function.
27786 (pupa_dl_unload_all): Likewise.
27787 (pupa_dl_init): Renamed to ...
27788 (pupa_dl_set_prefix): ... this.
27789 (pupa_dl_get_prefix): New function.
27791 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
27792 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
27793 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
27794 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
27795 (pupa_install_dos_part): Declared.
27796 (pupa_install_bsd_part): Likewise.
27797 (pupa_prefix): Likewise.
27798 (pupa_boot_drive): Likewise.
27800 * include/pupa/types.h: Fix a typo.
27802 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
27804 (pupa_memmove): Declared.
27805 (pupa_strcpy): Likewise.
27807 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
27808 pupa_mod_init takes one argument, its own module.
27809 (pupa_dl_unload_unneeded): Declared.
27810 (pupa_dl_unload_all): Likewise.
27811 (pupa_dl_ref): Likewise.
27812 (pupa_dl_unref): Likewise.
27813 (pupa_dl_iterate): Likewise.
27814 (pupa_dl_init): Renamed to ...
27815 (pupa_dl_set_prefix): ... this.
27816 (pupa_dl_get_prefix): Declared.
27818 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
27819 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
27821 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
27822 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
27824 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
27825 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
27827 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
27829 * util/i386/pc/pupa-setup.c (setup): Define the internal
27830 function find_first_partition_start at the top level, because GCC
27831 3.0.x cannot compile internal functions in deeper scopes
27833 (find_root_device): Use lstat instead of stat.
27834 Don't follow symbolic links.
27835 Fix the path-constructing code.
27837 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
27838 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
27839 by a BLKGETSIZE ioctl first, because block devices don't fill
27840 the member st_mode of the structure stat on Linux.
27841 [__linux__] (linux_find_partition): Use a temporary buffer
27842 REAL_DEV for the working space. Copy it to DEV before returning.
27843 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
27844 buffer cache consistent.
27845 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
27846 strncmp. The previous value was merely wrong.
27847 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
27849 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
27850 FAT size is 12. The previous value was merely wrong.
27852 * kern/main.c (pupa_main): Don't split the starting message from
27855 * kern/term.c (pupa_putchar): Put CR after LF instead of before
27856 LF, because BIOS goes crazy about character attributes in this
27859 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
27861 * include/i386/pc/util/biosdisk.h: New file.
27862 * util/i386/pc/biosdisk.c: Likewise.
27863 * util/i386/pc/pupa-setup.c: Likewise.
27865 * Makefile.in (INCLUDE_DISTFILES): Added
27866 include/pupa/i386/pc/util/biosdisk.h.
27867 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
27868 directory util/i386/pc.
27869 (install-local): Added a rule for sbin_UTILITIES.
27870 (uninstall): Likewise.
27872 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
27874 * util/misc.c (xrealloc): New function.
27875 (pupa_malloc): Likewise.
27876 (pupa_free): Likewise.
27877 (pupa_realloc): Likewise.
27878 (pupa_stop): Likewise.
27879 (pupa_putchar): Likewise.
27881 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
27883 * include/pupa/util/misc.h (xrealloc): Declared.
27885 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
27887 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
27888 (PUPA_BOOT_MACHINE_BPB_END): ... this.
27890 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
27891 [PUPA_UTIL] (pupa_fat_fini): Likewise.
27893 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
27894 way should be implemented.
27895 [PUPA_UTIL] (pupa_fat_fini): Likewise.
27897 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
27898 the size of NAME for safety.
27899 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
27902 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
27903 (pupa_setup_SOURCES): Likewise.
27905 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
27907 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
27909 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
27910 bunch of pushl's from pusha, because this destroys the return
27913 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
27915 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
27916 This means that any missing prototypes could be fatal. Also, you
27917 must take care when writing assembly code. See the comments at
27918 the beginning of startup.S, for more details.
27920 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
27921 compilation mechanism.
27922 (pupa_chainloader_real_boot): Likewise.
27923 (pupa_biosdisk_rw_int13_extensions): Likewise.
27924 (pupa_biosdisk_rw_standard): Likewise.
27925 (pupa_biosdisk_check_int13_extensions): Likewise.
27926 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
27927 (pupa_biosdisk_get_diskinfo_standard): Likewise.
27928 (pupa_get_memsize): Likewise.
27929 (pupa_get_mmap_entry): Likewise.
27930 (pupa_console_putchar): Likewise.
27931 (pupa_console_setcursor): Likewise.
27932 (pupa_getrtsecs): Use pushl instead of push.
27934 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
27935 memory instead of the stack for a mmap entry, because some
27936 BIOSes may ignore the maximum size and overflow.
27938 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
27940 * genmk.rb (PModule#rule): Compile automatically generated
27941 sources with module-specific CFLAGS as well as other sources.
27943 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27945 * configure.ac: Check ld.
27946 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
27947 respectively, before checking endianness and sizes.
27949 * Makefile.in (LD): New variable.
27951 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27953 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
27955 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27957 * Changelog: New file.