1 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3 Cirrus 5446 and Bochs video cards support.
5 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
7 (video_cirrus_mod_SOURCES): New variable.
8 (video_cirrus_mod_CFLAGS): Likewise.
9 (video_cirrus_mod_LDFLAGS): Likewise.
10 (video_bochs_mod_SOURCES): Likewise.
11 (video_bochs_mod_CFLAGS): Likewise.
12 (video_bochs_mod_LDFLAGS): Likewise.
13 * include/grub/vga.h: New file.
14 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
15 (grub_video_fb_set_page_t): New type.
16 (grub_video_fb_setup): New prototype.
17 (grub_video_fb_swap_buffers): Likewise.
18 (grub_video_fb_get_info_and_fini): Likewise.
19 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
20 (CRTC_DATA_PORT): Likewise.
21 (CRTC_CURSOR): Likewise.
22 (CRTC_CURSOR_ADDR_HIGH): Likewise.
23 (CRTC_CURSOR_ADDR_LOW): Likewise.
24 (CRTC_CURSOR_DISABLE): Likewise.
25 (update_cursor): Use grub_vga_cr_write.
26 (grub_vga_text_setcursor): Likewise.
27 * video/bochs.c: New file.
28 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
30 (palette_size): Likewise.
31 (framebuffer): New variable.
32 (grub_video_fb_init): Use 'framebuffer'.
33 (grub_video_fb_fini): Likewise.
34 (grub_video_fb_get_info): Likewise.
35 (grub_video_fb_get_palette): Likewise.
36 (grub_video_fb_set_palette): Likewise.
37 (grub_video_fb_set_viewport): Likewise.
38 (grub_video_fb_get_viewport): Likewise.
39 (grub_video_fb_map_color): Likewise.
40 (grub_video_fb_map_rgb): Likewise.
41 (grub_video_fb_map_rgba): Likewise.
42 (grub_video_fb_unmap_color): Likewise.
43 (grub_video_fb_unmap_color_int): Likewise.
44 (grub_video_fb_fill_rect): Likewise.
45 (grub_video_fb_blit_bitmap): Likewise.
46 (grub_video_fb_blit_render_target): Likewise.
47 (grub_video_fb_scroll): Likewise.
48 (grub_video_fb_create_render_target): Likewise.
49 (grub_video_fb_doublebuf_blit_init): Likewise.
50 (grub_video_fb_set_active_render_target): Handle doublebuffering.
51 (doublebuf_pageflipping_update_screen): New function.
52 (doublebuf_pageflipping_init): Likewise.
53 (grub_video_fb_setup): Likewise.
54 (grub_video_fb_swap_buffers): Likewise.
55 (grub_video_fb_get_info_and_fini): Likewise.
56 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
58 (doublebuf_pageflipping_commit): Restructured into ...
59 (doublebuf_pageflipping_set_page): ... this.
60 (doublebuf_pageflipping_update_screen): Removed.
61 (doublebuf_pageflipping_init): Likewise.
62 (double_buffering_init): Likewise.
63 (grub_video_vbe_setup): Use grub_video_fb_setup.
64 (grub_video_vbe_swap_buffers): Removed.
65 (grub_video_vbe_set_active_render_target): Likewise.
66 (grub_video_vbe_get_active_render_target): Likewise.
67 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
68 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
69 grub_video_fb_set_active_render_target and
70 grub_video_fb_get_active_render_target.
71 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
72 (SEQUENCER_DATA_PORT): Likewise.
73 (MAP_MASK_REGISTER): Likewise.
74 (CRTC_ADDR_PORT): Likewise.
75 (CRTC_DATA_PORT): Likewise.
76 (START_ADDR_HIGH_REGISTER): Likewise.
77 (START_ADDR_LOW_REGISTER): Likewise.
78 (GRAPHICS_ADDR_PORT): Likewise.
79 (GRAPHICS_DATA_PORT): Likewise.
80 (READ_MAP_REGISTER): Likewise.
81 (INPUT_STATUS1_REGISTER): Likewise.
82 (INPUT_STATUS1_VERTR_BIT): Likewise.
83 (get_map_mask): Use grub_vga_sr_read.
84 (set_map_mask): Use grub_vga_sr_write.
85 (set_read_map): Use grub_vga_gr_write.
86 (set_start_address): Use grub_vga_cr_write.
87 * video/sm712.c (framebuffer): Remove leftover fields.
89 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
91 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
92 setting GRUB_VIDEO_BACKEND. Make it available as a user override
93 instead. Replace the gfxterm backend check with a check that
94 ${GRUB_PREFIX}/video.lst is non-empty.
95 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
97 (load_video): New generated function. Call it before loading
98 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
99 * util/grub.d/10_linux.in (linux_entry): Call load_video.
100 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
101 * docs/grub.texi (Simple configuration): Document
104 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
106 Use video functions in linux and xnu loaders.
108 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
109 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
110 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
111 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
112 loader/i386/pc/linux.c.
113 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
114 (find_line_len): Removed.
115 (find_framebuf): Likewise.
116 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
117 * loader/i386/efi/xnu.c: Removed.
118 * loader/i386/pc/xnu.c: Moved from here...
119 * loader/i386/xnu.c: ...here.
121 Enable priorities in video drivers.
123 * include/grub/video.h (grub_video_adapter_prio_t): New type.
124 (grub_video_adapter): New field prio.
125 (grub_video_register): Respect prio when inserting.
126 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
127 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
128 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
129 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
130 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
131 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
132 * video/sm712.c (grub_video_sm712_adapter): Likewise.
136 * include/grub/video.h (grub_video_driver_id_t): New value
137 GRUB_VIDEO_DRIVER_SDL.
138 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
140 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
142 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
144 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
146 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
148 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
149 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
151 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
153 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
154 directly, and recommend grub-install instead.
155 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
157 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
159 Fix i386-pc prefix handling with nested partitions (Debian bug
160 #585068). Note that the case where the core image is booted using
161 multiboot and relocated from its original location still requires
164 * kern/i386/pc/init.c (make_install_device): If the prefix starts
165 with "(,", fill the boot drive in between those two characters, but
166 expect that a full partition specification including partition map
168 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
169 specified, write a prefix without the drive name but including a
170 full partition specification.
172 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
174 * util/grub-mkconfig.in: Ignore non-option arguments, for
175 compatibility with older versions (before 2010-06-12) which did the
176 same. In particular, this makes it easier to ship an update-grub
177 wrapper which is compatible with that used with GRUB Legacy (Debian
180 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
182 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
183 for manual page generation.
185 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
187 * po/POTFILES: Remove leftover commands/handler.c.
189 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
191 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
192 left this script non-functional.
194 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
196 * docs/man/grub-emu.h2m: New file.
198 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
200 * docs/grub.texi (Commands): Document reduced command set in rescue
202 (cpuid): New section.
204 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
206 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
207 new partition naming style.
208 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
210 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
212 Add "-o grub.iso" like cmdline options support.
214 * util/grub-install.in: Improve cmdline option parsing.
215 * util/grub-mkconfig.in: Likewise.
216 * util/grub-mkrescue.in: Likewise.
217 * util/grub-reboot.in: Likewise.
218 * util/grub-set-default.in: Likewise.
219 * util/i386/efi/grub-install.in: Likewise.
220 * util/ieee1275/grub-install.in: Likewise.
221 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
223 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
225 * .bzrignore: Ignore 41_custom.
227 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
229 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
231 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
233 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
234 prototype declarations.
236 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
237 generating fs, partmap, and video lists.
238 * include/grub/fs.h (grub_fs_register): Omit prototype if
239 GRUB_LST_GENERATOR is defined.
240 * include/grub/partition.h (grub_partition_map_register): Likewise.
241 * include/grub/video.h (grub_video_register): Likewise.
243 2010-06-12 Javier Martín <lordhabbit@gmail.com>
245 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
247 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
249 * util/grub-mkrescue.in: Support --xorriso argument.
251 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
253 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
254 Suggested by: Thomas Schmitt.
256 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
258 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
259 Suggested by: Thomas Schmitt.
261 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
265 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
266 * util/grub.d/41_custom.in: New file.
268 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
270 * util/grub-mkrescue.in (make_image): Remove sh module, which has
271 been merged back into normal.
273 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
275 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
276 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
278 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
280 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
281 when generating manual pages.
282 * docs/man/grub-bin2h.h2m: New file.
283 * docs/man/grub-editenv.h2m: New file.
284 * docs/man/grub-fstest.h2m: New file.
285 * docs/man/grub-install.h2m: New file.
286 * docs/man/grub-macho2img.h2m: New file.
287 * docs/man/grub-mkconfig.h2m: New file.
288 * docs/man/grub-mkdevicemap.h2m: New file.
289 * docs/man/grub-mkfont.h2m: New file.
290 * docs/man/grub-mkimage.h2m: New file.
291 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
292 * docs/man/grub-mkrelpath.h2m: New file.
293 * docs/man/grub-mkrescue.h2m: New file.
294 * docs/man/grub-ofpathname.h2m: New file.
295 * docs/man/grub-pe2elf.h2m: New file.
296 * docs/man/grub-probe.h2m: New file.
297 * docs/man/grub-reboot.h2m: New file.
298 * docs/man/grub-script-check.h2m: New file.
299 * docs/man/grub-set-default.h2m: New file.
300 * docs/man/grub-setup.h2m: New file.
302 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
304 Use FOR_* macros instead of *_iterate whenever possible.
306 * commands/handler.c: Removed.
307 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
308 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
309 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
310 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
311 (grub_probe_SOURCES): Remove kern/parser.c.
312 (util/grub-script-check.c_DEPENDENCIES): Removed.
313 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
314 and grub_script_check_init.c.
315 (grub_script_check_init.lst): Removed.
316 (grub_script_check_init.h): Likewise.
317 (grub_script_check_init.c): Likewise.
318 (pkglib_MODULES): Remove handler.mod and sh.mod.
319 (handler_mod_SOURCES): Removed.
320 (handler_mod_CFLAGS): Likewise.
321 (handler_mod_LDFLAGS): Likewise.
322 (normal_mod_SOURCES): Remove normal/handler.c.
323 Add script/main.c, script/script.c, script/execute.c,
324 script/function.c, script/lexer.c, grub_script.tab.c
325 and grub_script.yy.c.
326 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
327 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
328 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
329 (grub_setup_SOURCES): Remove kern/parser.c.
330 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
331 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
332 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
333 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
334 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
335 (grub_setup_SOURCES): Remove kern/parser.c.
336 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
337 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
338 * include/grub/command.h (grub_command_iterate): Removed.
339 (FOR_COMMANDS): New macro.
340 * include/grub/dl.h (grub_dl): New member next.
341 (grub_dl_iterate): Removed.
342 (grub_dl_head): New variable declaration.
343 (FOR_DL_MODULES): New macro.
344 * include/grub/fs.h: Include list.h.
345 (grub_fs): Make next first element.
346 (grub_fs_list): New variable declaration.
347 (grub_fs_register): Make inline.
348 (grub_fs_unregister): Likewise.
349 (grub_fs_iterate): Removed.
350 (FOR_FILESYSTEMS): New macro.
351 * include/grub/handler.h: Removed.
352 * include/grub/list.h (grub_list_hook_t): Removed.
353 (grub_list_test_t): Likewise.
354 (grub_list_pop): Likewise.
355 (grub_list_iterate): Likewise.
356 (grub_list_insert): Likewise.
357 (FOR_LIST_ELEMENTS): New macro.
358 * include/grub/parser.h (grub_parser_class): Removed.
359 (grub_parser_register): Likewise.
360 (grub_parser_unregister): Likewise.
361 (grub_parser_get_current): Likewise.
362 (grub_parser_set_current): Likewise.
363 (grub_register_rescue_parser): Likewise.
364 (grub_rescue_parse_line): New function.
365 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
366 * include/grub/script_sh.h (grub_script_function_list): New variable
368 (FOR_SCRIPT_FUNCTIONS): New macro.
369 (grub_script_function_iterate): Removed.
370 (grub_normal_parse_line): New prototype.
371 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
372 (FOR_DISABLED_TERM_INPUTS): Likewise.
373 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
374 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
375 * include/grub/video.h (grub_video_adapter): Move 'next' to first
377 (grub_video_register): Inline.
378 (grub_video_unregister): Likewise.
379 (grub_video_adapter_list): New variable declaration.
380 (grub_video_iterate): Removed.
381 (FOR_VIDEO_ADAPTERS): New macro.
382 * kern/dl.c (grub_dl_list): Removed. All users updated.
383 (grub_dl_iterate): Removed.
384 * kern/fs.c (grub_fs_list): Make global.
385 (grub_fs_register): Removed.
386 (grub_fs_unregister): Likewise.
387 (grub_fs_iterate): Likewise.
388 * kern/handler.c: Removed.
389 * kern/list.c (grub_list_pop): Removed.
390 (grub_list_iterate): Likewise.
391 (grub_list_insert): Likewise.
392 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
393 (grub_prio_list_insert): Don't use grub_list_insert.
394 * kern/main.c (grub_register_rescue_parser): Don't call
395 grub_register_rescue_parser.
396 * kern/parser.c (grub_parser_class): Removed.
397 (grub_parser_execute): Use grub_rescue_parse_line.
398 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
399 (grub_rescue_parser): Removed.
400 (grub_register_rescue_parser): Likewise.
401 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
402 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
403 (grub_auth_check_authentication): Likewise.
404 * normal/completion.c (iterate_command): Removed.
405 (grub_normal_do_completion): Use FOR_COMMANDS.
406 * normal/handler.c: Removed.
407 * normal/main.c (read_config_file): Remove parser changing.
408 (grub_normal_execute): Don't call read_handler_list.
409 (grub_normal_read_line_real): Statically allocate prompt.
410 (grub_cmdline_run): Use grub_normal_parse_line.
411 (GRUB_MOD_FINI): Don't call free_handler_list.
412 * normal/menu_entry.c (run): Likewise.
413 * script/function.c (grub_script_function_list): Make global.
414 (grub_script_function_iterate): Removed.
415 * script/main.c (grub_normal_parse_line): Make global.
416 (grub_sh_parser): Removed.
417 (GRUB_MOD_INIT): Likewise.
418 (GRUB_MOD_FINI): Likewise.
419 * tests/lib/functional_test.c (grub_functional_test): Use
421 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
422 (grub_test_run): Use FOR_LIST_ELEMENTS.
423 * tests/lib/unit_test.c (main): Likewise.
424 * util/deviceiter.c (grub_util_iterate_devices): Don't use
426 * util/grub-fstest.c (grub_term_input_class): Removed.
427 (grub_term_output_class): Likewise.
428 * util/grub-probe.c: Likewise.
429 * util/i386/pc/grub-setup.c: Likewise.
430 * util/sparc64/ieee1275/grub-setup.c: Likewise.
431 * util/grub-script-check.c (main): Don't call grub_init_all and
433 * video/video.c (grub_video_adapter_list): Make global.
434 (grub_video_register): Removed.
435 (grub_video_unregister): Likewise.
436 (grub_video_iterate): Likewise.
438 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
440 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
441 reported by Henrique Ferreiro.
443 2010-06-09 Robert Millan <rmh@gnu.org>
445 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
446 ones, when both are available.
448 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
450 Make --version uniform and avoid hard-coded program name.
452 * util/grub-mkimage.c (main): Use `program_name' instead of
454 * util/i386/pc/grub-setup.c (main): Likewise.
455 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
456 * util/grub-install.in: Save the basename of $0 in $self, and use the
457 latter in informational messages. Use the same format for --version
458 as the binary programs.
459 * util/grub-mkconfig.in: Likewise.
460 * util/grub-mkrescue.in: Likewise.
461 * util/grub-reboot.in: Likewise.
462 * util/grub-set-default.in: Likewise.
463 * util/i386/efi/grub-install.in: Likewise.
464 * util/ieee1275/grub-install.in: Likewise.
465 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
467 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
469 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
470 embedding area. Use <= instead of == when checking for non-emptiness.
472 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
474 * configure.ac: Add `.' to the directories searched for unifont.
476 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
478 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
481 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
483 * docs/grub.texi (History): Expand to cover GRUB 2.
484 (Serial terminal): Refer to `terminal_input' and `terminal_output'
485 commands, not `terminal'.
487 (terminal_input): New section.
488 (terminal_output): New section.
489 (uppermem): New section (stub).
490 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
492 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
494 * docs/grub.texi (Security): Menu entries are unrestricted by
495 default, not restricted to superusers as I had previously thought.
496 Reword to account for this.
498 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
500 * kern/emu/misc.c (device_mapper_null_log): New function.
501 (grub_device_mapper_supported): New function.
502 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
504 * kern/emu/hostdisk.c (find_partition_start): Check whether
505 device-mapper is supported before trying to use it.
506 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
508 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
510 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
511 (File name syntax): Likewise.
512 (help): --all is no longer supported in GRUB 2. Be more precise
513 about pattern matching.
515 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
517 * normal/completion.c (grub_normal_do_completion): When completing
518 arguments to "set" and the current word contains an equals sign,
519 skip to after the equals sign before starting completion.
521 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
523 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
525 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
527 * docs/grub.texi (Network): New section.
528 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
529 `(nd)' as in GRUB Legacy.
530 (pxe_unload): New section.
532 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
534 * docs/grub.texi (Troubleshooting): `echo' is not usually available
535 in the rescue shell, so recommend using `set' instead. Thanks,
538 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
540 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
541 (password): New section.
542 (password_pbkdf2): New section.
543 (search): New section.
544 (Security): New section.
545 (Troubleshooting): New section, currently very incomplete.
546 (Invoking grub-mkpasswd-pbkdf2): New section.
547 (Internals): New section, currently very incomplete.
549 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
551 * util/grub.d/00_header.in: Add some more quoting (of
552 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
554 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
556 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
558 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
559 to `count', fixing variable shadowing that broke the -c option.
561 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
563 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
564 in case they contain spaces.
566 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
568 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
569 "part_" to partmap module names, in line with grub-install.
570 Reported by: Jindřich Makovička (Debian bug #584426).
572 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
574 * util/grub-mkimage.c: Make target-related error messages slightly
575 more helpful; -O talks about "format". Explicitly point to the use
576 of -O if no target is specified.
577 Reported by: Didier Raboud (Debian bug #584415).
579 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
581 * INSTALL: Document several build requirements for optional features
582 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
584 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
586 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
587 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
588 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
590 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
592 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
593 Thanks to Jordan Uggla for spotting this.
595 2010-06-02 Aleš Nesrsta <starous@volny.cz>
597 Finally make USB usable.
599 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
600 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
601 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
602 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
603 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
604 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
605 (GRUB_OHCI_FSMPS): Likewise.
606 (GRUB_OHCI_PERIODIC_START): Likewise.
607 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
608 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
609 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
610 (GRUB_OHCI_SET_PORT_RESET): Likewise.
611 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
612 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
613 (grub_ohci_transaction): Likewise.
614 (grub_ohci_transfer): Improve condition detection algorithms.
615 Handle toggle property. Program the transactions correctly.
616 Improve error handling. Various important fixups.
617 (grub_ohci_portstatus): Put register writes in right order.
618 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
619 (grub_uhci_transfer): Don't show "failed" message on success.
620 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
622 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
624 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
625 before initialization is completed. Use IN direction for empty
626 transfers. Use last_trans and compute toggle.
627 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
628 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
629 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
630 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
631 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
632 (grub_usb_device): Increase toggle to 256.
633 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
634 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
635 GRUB_USBMS_SUBCLASS_SFF8070.
636 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
637 (grub_scsi_inquiry): New member page and alloc_length.
638 (grub_scsi_request_sense): New structure.
639 (grub_scsi_request_sense_data): Likewise.
640 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
642 * disk/scsi.c (grub_scsi_request_sense): New function.
643 (grub_scsi_test_unit_ready): Likewise.
644 (grub_scsi_inquiry): Fill new fields.
645 (grub_scsi_read_capacity): Likewise.
646 (grub_scsi_read10): Add request sense at the end.
647 (grub_scsi_read12): Likewise.
648 (grub_scsi_write10): Likewise.
649 (grub_scsi_write12): Likewise.
650 (grub_scsi_open): Add Test Unit Ready.
651 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
652 Support additional subclasses. Con't clear halt yet. Activate the
653 proper config. Calculate LUNs correctly.
654 (grub_usbms_transfer): Various important fixups.
656 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
658 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
659 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
660 (grub_ohci_fini_hw): New function.
661 (grub_ohci_restore_hw): Likewise.
662 (GRUB_MOD_INIT(ohci)): Register preboot hook.
663 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
664 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
666 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
668 Dedicated DMA allocations.
670 * bus/pci.c (grub_memalign_dma32): New function
671 (grub_dma_free): Likewise.
672 (grub_dma_get_virt): Likewise.
673 (grub_dma_get_phys): Likewise.
674 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
675 (grub_ohci_pci_iter): Use dma32_alloc.
676 (grub_ohci_transfer): Likewise.
677 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
678 (grub_usb_bulk_readwrite): Likewise.
679 * include/grub/pci.h: Add declarations.
681 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
685 * bus/cs5536.c: New file.
686 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
687 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
688 (cs5536_mod_SOURCES): New variable.
689 (cs5536_mod_CFLAGS): Likewise.
690 (cs5536_mod_LDFLAGS): Likewise.
691 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
693 (kernel_img_SOURCES): Add bus/cs5536.c.
694 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
696 (usb_mod_SOURCES): New variable.
697 (usb_mod_CFLAGS): New variable.
698 (usb_mod_LDFLAGS): New variable.
699 (usbtest_mod_SOURCES): New variable.
700 (usbtest_mod_CFLAGS): New variable.
701 (usbtest_mod_LDFLAGS): New variable.
702 (ohci_mod_SOURCES): New variable.
703 (ohci_mod_CFLAGS): New variable.
704 (ohci_mod_LDFLAGS): New variable.
705 (usbms_mod_SOURCES): New variable.
706 (usbms_mod_CFLAGS): New variable.
707 (usbms_mod_LDFLAGS): New variable.
708 (usb_keyboard_mod_SOURCES): New variable.
709 (usb_keyboard_mod_CFLAGS): New variable.
710 (usb_keyboard_mod_LDFLAGS): New variable.
711 * include/grub/smbus.h: New file.
712 * include/grub/cs5536.h: New file.
714 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
716 * util/grub.d/00_header.in: Add safety check to make sure that
717 ${locale_dir} exists before trying to probe it.
719 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
721 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
722 per the GNU Coding Standards; this is now too obscure to be worth
725 (chainloader): Remove cross-reference to `SCO UnixWare'.
727 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
729 * docs/grub.texi (Chain-loading): New section.
730 (DOS/Windows): New section, borrowed from GRUB Legacy with details
732 (SCO UnixWare): Likewise.
734 (chainloader): Add reference to `Block list syntax'.
735 (drivemap): New section.
736 (parttool): New section.
738 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
740 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
742 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
743 (Installing GRUB using grub-install): Remove reference to the grub
744 shell; mention `grub-mkimage' and `grub-setup' instead.
745 (Invoking grub-install): Likewise.
746 (Interface): Add reference to `Menu entry editor'.
747 (serial): Remove `--device' option.
749 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
751 * docs/grub.texi (Configuration): New section, documenting
752 configuration file generation using grub-mkconfig. I've left a slot
753 for documenting the full shell scripting format but have not yet
754 started on writing that up.
755 (Invoking grub-mkconfig): New section.
757 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
759 * docs/grub.texi (direntry): Remove grub-terminfo reference.
760 (GNU GRUB manual): Likewise.
761 (General commands): Update description of `terminfo' for GRUB 2.
763 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
765 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
766 (GRUB_MOD_INIT): Fix capitalisation.
767 * docs/grub.texi (Command-line and menu entry commands): Document
768 gettext and gptsync commands.
770 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
772 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
773 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
775 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
777 Add btrfs probing support, currently only in the single-device case.
779 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
781 (grub_guess_root_device): Call find_root_device_from_mountinfo
782 before looking in /dev.
784 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
786 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
787 GRUB_DISK_SIZE_UNKNOWN.
788 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
790 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
792 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
793 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
794 corrupted or not synced properly.
796 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
798 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
799 Reported by: Seth Goldberg.
801 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
803 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
805 Reported by: Seth Goldberg.
807 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
809 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
810 Reported by: Seth Goldberg.
812 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
814 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
815 64-bit address as signed on MIPS.
817 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
819 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
822 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
824 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
826 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
827 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
828 * kern/misc.c (__enable_execute_stack): Disable on
831 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
833 Make grub-probe work with symbolic links under /dev/mapper as well
834 as with real block devices. The Linux world seems to be (at best)
835 in transition here, and GRUB shouldn't get caught in the middle.
837 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
840 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
842 * util/grub-script-check.c (main): Ensure defined behaviour on empty
843 input files (in which case exit zero).
845 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
847 * kern/emu/misc.c (canonicalize_file_name): realpath can still
848 return NULL for various reasons even if it has a maximum-length
849 buffer: for example, there might be a symlink loop, or the path
850 might exceed PATH_MAX. If this happens, return NULL.
852 2010-05-27 Robert Millan <rmh@gnu.org>
854 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
855 partmap module to handle cross-partmap setups.
856 Reported by Orestes Mas. Gràcies!
858 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
860 * util/grub-mkrescue.in: Initialise override_dir rather than
861 assuming that it's unset or empty in the environment.
863 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
865 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
866 variable index into p_index to suppress a warning with -Wshadow.
868 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
870 * INSTALL: Added flex >= 2.5.35 requirement.
872 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
874 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
876 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
880 * commands/i386/cmostest.c: New file.
881 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
882 (cmostest_mod_SOURCES): New variable.
883 (cmostest_mod_CFLAGS): Likewise.
884 (cmostest_mod_LDFLAGS): Likewise.
885 * conf/i386-pc.rmk: Likewise.
886 * docs/grub.texi (Vendor power-on keys): New section.
887 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
888 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
889 and GRUB_BUTTON_CMOS_ADDRESS.
890 * util/grub.d/00_header.in: Handle powering-on by separate button.
892 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
894 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
895 Removed drawing_scrollbar argument. All users updated
897 Reported by Jo Shields
899 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
901 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
902 buffer since gfxterm handles double repaint.
904 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
906 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
907 * term/gfxterm.c (real_scroll): Likewise.
909 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
911 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
914 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
916 * include/grub/i18n.h: Always enable grub_gettext.
918 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
920 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
921 partition naming style.
923 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
925 * util/grub-mkconfig.in: Fix handling of -o so that it works when
926 not the first option.
928 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
930 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
932 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
934 * util/misc.c: Move inclusion of <limits.h> to ...
935 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
937 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
939 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
940 Fix merge error in NetBSD code.
941 (find_partition_start) [__NetBSD__]: Likewise.
943 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
945 Fix grub-mkrescue usage unit testing.
947 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
949 2010-05-18 Christian Franke <franke@computer.org>
951 * util/grub.d/10_windows.in: Use path names instead of
952 drive letters to prevent warning from Cygwin 1.7.
953 Add drivemap command to menuentry if needed.
955 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
957 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
958 gnumach and gnumach.gz.
960 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
962 * include/grub/i18n.h (gettext): Inline instead of using #define.
963 (grub_gettext): Likewise.
966 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
968 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
969 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
970 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
971 (main): Add a slash after pkglibdirroot.
973 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
975 * util/grub-install.in: Add missing "in" keyword.
977 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
979 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
980 Reported by: Seth Goldberg.
982 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
984 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
986 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
988 * configure.ac: Check for Linux device-mapper support.
990 * util/hostdisk.c (device_is_mapped): New function.
991 (find_partition_start): New function, partly broken out from
992 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
993 device-mapper support added.
994 (linux_find_partition): Use find_partition_start.
995 (convert_system_partition_to_system_disk): Add `st' argument.
996 Support Linux /dev/mapper/* devices if device-mapper support is
997 available; only DM-RAID devices are understood at present.
998 (find_system_device): Add `st' argument. Pass it to
999 convert_system_partition_to_system_disk.
1000 (grub_util_biosdisk_get_grub_dev): Pass stat result to
1001 find_system_device and convert_system_partition_to_system_disk. Use
1002 find_partition_start.
1004 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
1005 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
1006 * util/deviceiter.c [__linux__]: Define MINOR.
1007 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
1008 * util/mkdevicemap.c (grub_putchar): New function.
1009 (grub_getkey): New function.
1010 (grub_refresh): New function.
1011 (main): Set debug=all if -v -v is used.
1013 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1015 Fix build with non-GNU libcs.
1017 * util/misc.c (canonicalize_file_name): Move to ...
1018 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
1019 grub_make_system_path_relative_to_its_root.
1021 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1023 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
1024 we handle finding grub-mkimage. Default to finding grub-mkimage in
1025 ${bindir} with program_transform_name applied, and provide a
1026 --grub-mkimage option to override this.
1028 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1030 Remove grub-mkisofs.
1032 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
1033 (grub_mkisofs_SOURCES): Removed.
1034 (grub_mkisofs_CFLAGS): Removed.
1035 * util/mkisofs/defaults.h: Removed.
1036 * util/mkisofs/eltorito.c: Likewise.
1037 * util/mkisofs/exclude.h: Likewise.
1038 * util/mkisofs/hash.c: Likewise.
1039 * util/mkisofs/include/: Likewise.
1040 * util/mkisofs/include/fctldefs.h: Likewise.
1041 * util/mkisofs/include/mconfig.h: Likewise.
1042 * util/mkisofs/include/prototyp.h: Likewise.
1043 * util/mkisofs/include/statdefs.h: Likewise.
1044 * util/mkisofs/iso9660.h: Likewise.
1045 * util/mkisofs/joliet.c: Likewise.
1046 * util/mkisofs/match.c: Likewise.
1047 * util/mkisofs/match.h: Likewise.
1048 * util/mkisofs/mkisofs.c: Likewise.
1049 * util/mkisofs/mkisofs.h: Likewise.
1050 * util/mkisofs/msdos_partition.h: Likewise.
1051 * util/mkisofs/multi.c: Likewise.
1052 * util/mkisofs/name.c: Likewise.
1053 * util/mkisofs/rock.c: Likewise.
1054 * util/mkisofs/tree.c: Likewise.
1055 * util/mkisofs/write.c: Likewise.
1057 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1059 Unify grub-mkimage accross platforms.
1061 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
1062 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
1063 (grub_mkelfimage_SOURCES): Removed.
1064 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
1065 (util/grub-mkimage.c_DEPENDENCIES): .. this.
1066 (bin_UTILITIES): Add grub-mkimage.
1067 (grub_mkimage_SOURCES): New variable.
1068 (kernel_img_HEADERS): Remove machine/kernel.h.
1069 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
1070 (pkglib_PROGRAMS): Add kernel.img.
1071 (kernel_img_HEADERS): Add machine/kernel.h.
1072 (kernel_img_FORMAT): Removed.
1073 (bin_UTILITIES): Remove grub-mkimage.
1074 (grub_mkimage_SOURCES): Removed.
1075 (grub_mkimage_CFLAGS): Likewise.
1076 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1077 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
1078 (pkglib_PROGRAMS): Add kernel.img.
1079 (bin_UTILITIES): Remove grub-mkimage.
1080 (grub_mkimage_SOURCES): Removed.
1081 (grub_mkimage_CFLAGS): Likewise.
1082 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1083 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
1084 (pkglib_PROGRAMS): Add kernel.img.
1085 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
1086 (pkglib_PROGRAMS): Add kernel.img.
1087 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
1088 (grub_mkimage_SOURCES): Removed.
1089 (grub_mkimage_CFLAGS): Likewise.
1090 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1091 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
1092 (pkglib_PROGRAMS): Add kernel.img.
1093 (bin_UTILITIES): Remove grub-mkimage.
1094 (grub_mkimage_SOURCES): Removed.
1095 (grub_mkimage_CFLAGS): Likewise.
1096 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1097 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
1098 (grub_mkimage_SOURCES): Removed.
1099 (grub_mkimage_CFLAGS): Likewise.
1100 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1101 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
1102 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
1103 (grub_pe32_optional_header): ... this.
1104 (grub_pe64_optional_header): ... and this. All users updated.
1105 (GRUB_PE32_PE32_MAGIC): Split into ..
1106 (GRUB_PE32_PE32_MAGIC): .. this.
1107 (GRUB_PE32_PE64_MAGIC): .. and this.
1108 (GRUB_PE32_SIGNATURE_SIZE): New definition.
1109 * include/grub/elf.h (PT_GNU_STACK): New definition.
1110 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
1111 * include/grub/i386/efi/kernel.h: Likewise.
1112 * include/grub/i386/kernel.h: Likewise.
1113 * include/grub/i386/pc/kernel.h: Likewise.
1114 * include/grub/i386/qemu/boot.h: Likewise.
1115 * include/grub/mips/kernel.h: Likewise.
1116 * include/grub/mips/qemu-mips/kernel.h: Likewise.
1117 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
1118 * include/grub/powerpc/kernel.h: Likewise.
1119 * include/grub/sparc64/ieee1275/boot.h: Likewise.
1120 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
1121 * include/grub/sparc64/kernel.h: Likewise.
1122 * include/grub/x86_64/efi/kernel.h: Likewise.
1123 * include/grub/x86_64/kernel.h: Likewise.
1124 * include/grub/offsets.h: New file.
1125 * include/grub/kernel.h (grub_module_info): Split into ...
1126 (grub_module_info32): ... this.
1127 (grub_module_info64): ... and this.
1128 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
1129 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
1130 (grub_boot_blocklist): Moved from here ...
1131 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
1132 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
1133 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
1134 * include/grub/types.h (grub_target_to_host16): Removed.
1135 (grub_target_to_host32): Likewise.
1136 (grub_target_to_host64): Likewise.
1137 (grub_host_to_target16): Likewise.
1138 (grub_host_to_target32): Likewise.
1139 (grub_host_to_target64): Likewise.
1140 (grub_host_to_target_addr): Likewise.
1142 Support grub-mkrescue for efi, coreboot and qemu.
1144 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
1145 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
1146 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
1147 * util/grub-mkrawimage.c: Moved from here ...
1148 * util/grub-mkimage.c: ... here. All users updated.
1149 (ALIGN_ADDR): Use image_target.
1150 (TARGET_NO_FIELD): New const.
1151 (image_target_desc): New type.
1152 (image_targets): New array.
1153 (grub_target_to_host64): Use image_target.
1154 (grub_target_to_host32): Likewise.
1155 (grub_target_to_host16): Likewise.
1156 (grub_host_to_target64): Likewise.
1157 (grub_host_to_target32): Likewise.
1158 (grub_host_to_target16): Likewise.
1159 (grub_host_to_target_addr): Likewise.
1160 (generate_image): Handle multiimage.
1161 (main): Require -O parameter. All users updated.
1162 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
1163 util/efi/grub-mkimage.c
1164 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
1165 New option --rom-directory.
1167 * util/i386/efi/grub-mkimage.c: Removed.
1168 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
1169 (grub_target_to_host32): Likewise.
1170 (grub_target_to_host64): Likewise.
1171 (grub_host_to_target16): Likewise.
1172 (grub_host_to_target32): Likewise.
1173 (grub_host_to_target64): Likewise.
1174 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
1175 (grub_target_to_host32): Likewise.
1176 (grub_target_to_host64): Likewise.
1177 (grub_host_to_target16): Likewise.
1178 (grub_host_to_target32): Likewise.
1179 (grub_host_to_target64): Likewise.
1181 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
1183 Source tree is reorganized for emu build.
1185 * include/grub/util/console.h: Move from here...
1186 * include/grub/emu/console.h: ...to here.
1187 * include/grub/util/getroot.h: Move from here...
1188 * include/grub/emu/getroot.h: ...to here.
1189 * include/grub/util/hostdisk.h: Move from here...
1190 * include/grub/emu/hostdisk.h: ...to here.
1191 * util/console.c: Move from here...
1192 * kern/emu/console.c: ...to here.
1193 * util/getroot.c: Move from here...
1194 * kern/emu/getroot.c: ...to here.
1195 * util/grub-emu.c: Move from here...
1196 * kern/emu/main.c: ...to here.
1197 * util/hostdisk.c: Move from here...
1198 * kern/emu/hostdisk.c: ...to here.
1199 * util/hostfs.c: Move from here...
1200 * kern/emu/hostfs.c: ...to here.
1201 * util/mm.c: Move from here...
1202 * kern/emu/mm.c: ...to here.
1203 * util/pci.c: Move from here...
1204 * bus/emu/pci.c: ...to here.
1205 * util/sdl.c: Move from here...
1206 * video/emu/sdl.c: ...to here.
1207 * util/time.c: Move from here...
1208 * kern/emu/time.c: ...to here.
1209 * util/usb.c: Move from here...
1210 * bus/usb/emu/usb.c: ...to here.
1212 * include/grub/emu/misc.h: New header for grub-emu functions.
1213 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
1215 * conf/any-emu.rmk: Rule updates for above renames.
1216 * conf/common.rmk: Likewise.
1217 * conf/i386-pc.rmk: Likewise.
1218 * conf/i386-qemu.rmk: Likewise.
1219 * conf/mips.rmk: Likewise.
1220 * conf/sparc64-ieee1275.rmk: Likewise.
1221 * conf/x86-efi.rmk: Likewise.
1223 * disk/lvm.h: #include updates for above renames.
1224 * util/grub-mkrelpath.c: Likewise.
1225 * util/grub-probe.c: Likewise.
1226 * util/i386/pc/grub-setup.c: Likewise.
1227 * util/sparc64/ieee1275/grub-setup.c: Likewise.
1228 * kern/emu/console.c: Likewise.
1229 * kern/emu/getroot.c: Likewise.
1230 * kern/emu/hostdisk.c: Likewise.
1231 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
1233 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
1234 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
1235 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
1236 * util/misc.c: Remove grub-emu functions.
1238 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1241 Reported by: Thorsten Grützmacher.
1243 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
1245 (circprog_set_property): Register and unregister timeout hook.
1246 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
1247 (label_destroy): Free template. and unregister hook.
1248 (label_set_state): New function.
1249 (label_set_property): Handle templates and hooks.
1250 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
1252 (progress_bar_set_property): Register and unregister timeout hook.
1253 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
1254 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
1255 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
1256 (update_timeout_visit): Removed.
1257 (update_timeouts): New function.
1258 (redraw_timeouts): Likewise.
1259 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
1260 (grub_gfxmenu_clear_timeout): Likewise.
1261 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
1262 (grub_gfxmenu_timeout_notify): Likewise.
1263 (grub_gfxmenu_timeout_notifications): New external variable.
1264 (grub_gfxmenu_timeout_register): New function.
1265 (grub_gfxmenu_timeout_unregister): Likewise.
1267 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1269 Transform (broken) vga terminal into (working) vga video driver.
1271 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
1272 video/i386/pc/vga.c.
1273 * include/grub/video.h (grub_video_driver_id):
1274 Add GRUB_VIDEO_DRIVER_VGA.
1275 * term/i386/pc/vga.c: Renamed to ...
1276 * video/i386/pc/vga.c: ...this
1277 (DEBUG_VGA): Removed.
1278 (CHAR_WIDTH): Likewise.
1279 (CHAR_HEIGHT): Likewise.
1280 (TEXT_WIDTH): Likewise.
1281 (TEXT_HEIGHT): Likewise.
1282 (DEFAULT_FG_COLOR): Likewise.
1283 (DEFAULT_BG_COLOR): Likewise.
1284 (colored_char): Likewise.
1287 (cursor_state): Likewise.
1288 (fg_color): Likewise.
1289 (bg_color): Likewise.
1290 (text_buf): Likewise.
1293 (framebuffer): New variable.
1294 (set_read_map): Disabled.
1295 (setup): New variable.
1296 (is_target): Likewise.
1297 (grub_vga_mod_init): Likewise.
1298 (grub_vga_mod_fini): Likewise.
1299 (check_vga_mem): Likewise.
1300 (write_char): Likewise.
1301 (write_cursor): Likewise.
1302 (scroll_up): Likewise.
1303 (grub_vga_putchar): Likewise.
1304 (grub_vga_getcharwidth): Likewise.
1305 (grub_vga_getwh): Likewise.
1306 (grub_vga_getxy): Likewise.
1307 (grub_vga_gotoxy): Likewise.
1308 (grub_vga_cls): Likewise.
1309 (grub_vga_setcolorstate): Likewise.
1310 (grub_vga_setcursor): Likewise.
1311 (grub_video_vga_init): New function.
1312 (grub_video_vga_setup): Likewise.
1313 (grub_video_vga_fini): Likewise.
1314 (update_target): Likewise.
1315 (grub_video_vga_blit_bitmap): Likewise.
1316 (grub_video_vga_blit_render_target): Likewise.
1317 (grub_video_vga_set_active_render_target): Likewise.
1318 (grub_video_vga_get_active_render_target): Likewise.
1319 (grub_video_vga_swap_buffers): Likewise.
1320 (grub_video_vga_set_palette): Likewise.
1321 (grub_video_vga_get_info_and_fini): Likewise.
1322 (grub_vga_term): Removed.
1323 (grub_video_vga_adapter): New variable.
1324 (GRUB_MOD_INIT): Register a video driver instead of terminal.
1325 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
1327 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1329 * video/readers/jpeg.c: Indented.
1331 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1333 Various jpeg cleanups.
1335 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
1336 (grub_jpeg_decode_quan_table): Use sizeof.
1337 (grub_jpeg_decode_du): Use ARRAY_SIZE.
1339 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
1341 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
1342 tables. Ignore non-last ac bit.
1343 (grub_jpeg_decode_quan_table): Likewise.
1345 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1347 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1348 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
1349 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1350 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
1351 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
1352 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
1354 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1356 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
1359 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1361 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
1363 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1365 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
1368 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1370 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
1373 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1375 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
1378 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1380 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
1382 2010-05-01 Christian Franke <franke@computer.org>
1384 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
1385 Remove broken Cygwin path conversion.
1386 * util/misc.c: [__CYGWIN__] Add include and define.
1387 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
1389 (make_system_path_relative_to_its_root): Simplify loop, replace early
1391 [__CYGWIN__] Add conversion to win32 path.
1392 Include "/" case in trailing slash removal.
1394 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1396 * kern/main.c (grub_load_config): Fix copy-pasted comment.
1397 Reported by: Seth Goldberg
1399 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1401 * commands/help.c (grub_cmd_help): Fix a typo.
1402 Reported by: Seth Goldberg
1404 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1406 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
1408 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
1409 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
1410 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
1411 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
1412 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
1413 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
1414 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
1415 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
1416 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
1417 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
1418 * normal/context.c (GRUB_MOD_INIT): Likewise.
1419 * normal/main.c (GRUB_MOD_INIT): Likewise.
1420 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
1421 * term/serial.c (GRUB_MOD_INIT): Likewise.
1422 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
1424 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1426 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
1429 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1431 * commands/iorw.c: New file.
1432 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
1433 (iorw_mod_SOURCES): New variable.
1434 (iorw_mod_CFLAGS): Likewise.
1435 (iorw_mod_LDFLAGS): Likewise.
1437 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1441 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
1442 * normal/main.c (hotkey_aliases): New variable.
1443 (grub_normal_add_menu_entry): Parse "--hotkey".
1444 * normal/menu_text.c (run_menu): Handle hotkeys.
1446 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1448 * kern/i386/coreboot/init.c (grub_machine_init): Call
1449 grub_machine_mmap_init on qemu.
1451 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1453 * boot/i386/qemu/boot.S: Add a missing .code16.
1455 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1457 Use LBIO on coreboot.
1459 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
1460 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
1461 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
1463 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
1464 grub_machine_mmap_init on coreboot.
1465 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
1466 GRUB_LINUXBIOS_MEMBER_LINK.
1467 (grub_machine_mmap_iterate): Fix declaration.
1468 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
1470 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1472 Split coreboot and multiboot ports.
1474 * conf/i386-multiboot.rmk: New file.
1475 * configure.ac: Add multiboot port.
1476 * include/grub/i386/multiboot/boot.h: New file.
1477 * include/grub/i386/multiboot/console.h: Likewise.
1478 * include/grub/i386/multiboot/init.h: Likewise.
1479 * include/grub/i386/multiboot/kernel.h: Likewise.
1480 * include/grub/i386/multiboot/loader.h: Likewise.
1481 * include/grub/i386/multiboot/memory.h: Likewise.
1482 * include/grub/i386/multiboot/serial.h: Likewise.
1483 * include/grub/i386/multiboot/time.h: Likewise.
1484 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
1485 * loader/multiboot.c: Likewise.
1486 * loader/multiboot_mbi2.c: Likewise.
1487 * util/grub-mkrescue.in: Generate multiboot rescue.
1489 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1491 * kern/parser.c (grub_parser_execute): Cope with read-only config.
1493 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1495 Merge handling of input and output terminals. Fix a hang.
1497 * commands/terminal.c (abstract_terminal): New struct.
1498 (handle_command): New function. Based on grub_cmd_terminal_input.
1499 (grub_cmd_terminal_input): Use handle_command.
1500 (grub_cmd_terminal_output): Use handle_command.
1502 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
1504 Fix comment handling.
1506 * tests/grub_script_comments.in: New testcase.
1507 * conf/tests.rmk: Rules for new testcase.
1508 * script/yylex.l: Updated flex rules.
1510 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
1512 * docs/grub.texi (play): Document that zero pitches produce rests.
1513 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
1516 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1518 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
1521 2010-04-26 Christian Franke <franke@computer.org>
1523 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
1524 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
1525 (grub_get_prefix): Remove function.
1526 * util/grub-emu.c (main): Replace grub_get_prefix () call by
1527 make_system_path_relative_to_its_root ().
1528 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
1530 2010-04-24 Christian Franke <franke@computer.org>
1532 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
1533 (kernel_img_LDFLAGS): Remove -static-libgcc.
1535 2010-04-24 Christian Franke <franke@computer.org>
1537 * configure.ac: Do not CHECK_BSS_START_SYMBOL
1538 and CHECK_END_SYMBOL if grub-emu is built.
1539 Unset TARGET_OBJ2ELF if grub-emu is built
1540 without module support.
1542 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
1546 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
1547 (grub_fstest_SOURCES): Likewise.
1548 (pkglib_MODULES): Add nilfs2.mod.
1549 (nilfs2_mod_SOURCES): New variable.
1550 (nilfs2_mod_CFLAGS): Likewise.
1551 (nilfs2_mod_LDFLAGS): Likewise.
1552 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1553 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1554 * fs/nilfs2.c: New file.
1556 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
1558 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
1561 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
1563 Add grub-mkconfig support for NetBSD.
1565 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
1566 * util/grub-mkconfig.in: export new NetBSD specific variables.
1567 * po/POTFILES-shell: added 10_netbsd.in.
1568 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
1570 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
1572 Fix emu build with grub-emu-pci and grub-emu-modules.
1574 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
1576 * include/grub/libpciaccess.h: New file.
1577 * conf/any-emu.rmk: Update kernel headers for emu build.
1579 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1581 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
1583 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1585 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
1587 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1589 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
1590 Retrieve chosen/bootpath if bootpath isn't hardcoded.
1591 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
1592 util/ieee1275/ofpath.c.
1593 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
1594 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
1595 * include/grub/sparc64/ieee1275/boot.h
1596 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
1597 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
1598 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
1599 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
1601 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
1602 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
1603 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
1606 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
1608 * util/grub-mkconfig.in: Corrected two == equality tests.
1609 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
1610 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
1611 expect a number appended to it.
1612 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
1613 expects a number appended to it.
1615 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1617 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
1619 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1621 * util/hostdisk.c (make_device_name): Change to new partition naming.
1623 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1625 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
1627 2010-04-17 Christian Franke <franke@computer.org>
1629 * Makefile.in: Add missing localedir setting.
1631 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
1633 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
1634 mistake in r2156. Noticed by Anthony Fok.
1636 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
1638 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
1640 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
1642 Fix a spurious, uninitialized variable warning.
1644 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
1645 Initialize variable, shdr.
1646 (grub_freebsd_load_elfmodule): Likewise.
1647 (grub_freebsd_load_elf_meta): Likewise.
1649 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
1651 Fix for escaped dollar in double quoted strings.
1653 * script/yylex.l: Updated flex rules.
1654 * conf/tests.rmk: Rule for new testcase.
1655 * tests/grub_script_dollar.in: New testcase.
1657 2010-04-13 Carles Pina i Estany <carles@pina.cat>
1658 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
1660 Enclose all translated strings in grub.cfg in single quotes, and
1661 escape them appropriately (Ubuntu bug #552921).
1663 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
1664 * util/grub.d/10_hurd.in: Use it.
1665 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
1666 * util/grub.d/10_linux.in (linux_entry): Likewise.
1668 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1670 Fix cygwin compilation.
1672 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
1673 * include/grub/misc.h (__register_frame_info)
1674 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
1675 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
1676 * kern/misc.c (__register_frame_info)
1677 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
1678 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
1680 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1682 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
1684 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1686 Unify libgcc processing.
1688 * Makefile.in (kernel_img_LDFLAGS): New variable.
1689 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
1690 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
1692 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
1693 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
1694 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
1695 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
1696 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
1697 overwriting. Remove -lgcc and -static-libgcc
1698 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
1699 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
1700 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
1701 (kernel_img_LDFLAGS): Append instead of overwriting.
1702 Remove -lgcc and -static-libgcc
1703 * conf/sparc64-ieee1275.rmk: Likewise.
1704 * include/grub/powerpc/libgcc.h: Move to ...
1705 * include/grub/libgcc.h: .. this.
1706 * include/grub/libgcc.h: Don't export most of the function on x86.
1707 (__bswapsi2): New export.
1708 (__bswapdi2): Likewise.
1709 * include/grub/mips/libgcc.h: Removed.
1710 * include/grub/sparc64/libgcc.h: Likewise.
1712 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1714 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
1715 disk_info_msg (conflicts with gettexting into languages with cases).
1717 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
1719 Add grub-probe support for NetBSD.
1721 * util/getroot.c (find_root_device): Convert block device to
1722 character device on NetBSD.
1723 * util/probe.c (probe): Require character device on NetBSD.
1724 * util/hostdisk.c: NetBSD specific headers.
1725 (configure_device_driver): new function to tune device driver
1726 parameters (currently only for NetBSD floppy driver).
1727 (grub_util_biosdisk_open): NetBSD specific code (get disk size
1728 via disklabel ioctl).
1729 (open_device): call configure_device_driver on NetBSD.
1730 (convert_system_partition_to_system_disk): NetBSD specific code.
1731 (device_is_wholedisk): Likewise.
1732 (grub_util_biosdisk_get_grub_dev): Likewise.
1733 (make_device_name): Fixed a typo in bsd_part_str.
1734 * configure.ac: check for opendisk() and getrawpartition() on
1735 NetBSD and set LIBUTIL.
1736 * Makefile.in: add LIBUTIL to LIBS.
1738 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
1742 * util/grub-script-check.c: Better help message.
1744 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
1748 * configure.ac: Flex version check.
1749 * conf/common.rmk: Add -Wno-error to sh.mod.
1750 * script/yylex.l: Remove all #pragma.
1752 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1754 * include/grub/util/misc.h (canonicalise_file_name): Add missing
1756 Reported by: Seth Goldberg.
1758 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1760 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
1761 Rename "module" to "module2".
1762 Reported by: Seth Goldberg.
1764 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1766 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
1768 Reported by: Seth Goldberg.
1770 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1772 * lib/posix_wrap/locale.h: Add missing file.
1773 Reported by: Seth Goldberg.
1775 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1777 grub-emu module load support.
1779 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
1780 NO_DYNAMIC_MODULES switched to this.
1781 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
1783 * conf/any-emu.rmk: Generate symlist.
1784 (kernel_img_HEADERS): Add util/datetime.h.
1785 (kernel_img_HEADERS) [sdl]: Add sdl.h.
1786 (kernel_img_HEADERS) [libusb]: Add libusb.h.
1787 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
1788 kern/$(target_cpu)/cache.S.
1789 * configure.ac (grub-emu-modules): New option.
1790 * genmk.rb: Handle multiple source lists.
1791 * include/grub/sdl.h: New file.
1792 * include/grub/libusb.h: Likewise.
1793 * util/grub-emu.c (main): Hanle (host) root.
1794 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
1795 GRUB_ERR_UNKNOWN_DEVICE.
1796 * util/misc.c: Move mm functions to ...
1797 * util/mm.c: ... here. All users updated.
1799 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1801 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
1802 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
1804 (maintainer-clean): Remove libgcrypt-grub.
1806 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1808 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
1810 2010-04-09 EFI Coder <eficoder@hotmail.com>
1812 * normal/menu_text.c (print_message): Clean up the message and show
1813 the Fn information when on EFI
1814 * term/efi/console.c (grub_console_checkkey): Add F4 support.
1816 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1818 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
1820 * normal/crypto.c (read_crypto_list): Likewise.
1821 * normal/dyncmd.c (read_command_list): Likewise.
1822 * normal/term.c (read_terminal_list): Likewise.
1823 * normal/main.c (read_lists): Use explicit prefix.
1824 (read_lists_hook): Use read_lists.
1825 (grub_normal_execute): Likewise.
1827 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1829 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
1830 Reported by: Thomas Schmitt.
1831 Add -no-emul-boot to grub-mkisofs parameters.
1833 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1835 * font/font.c: Indented.
1837 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
1839 Elif support to GRUB script (by Deepak Vankadaru).
1841 * tests/grub_script_if.in: New testcase.
1842 * conf/tests.rmk: Rule for new testcase.
1843 * script/parser.y: Grammar rules for elif.
1845 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
1847 While and until loops support to GRUB script.
1849 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
1850 (grub_script_create_cmdwhile): New function prototype.
1851 (grub_script_execute_cmdwhile): New function prototype.
1852 * script/execute.c (grub_script_execute_cmdwhile): New function.
1853 * script/parser.y (command): New commands.
1854 (whilecmd): New grammar rule.
1855 (untilcmd): New grammar rule.
1856 * script/script.c (grub_script_create_cmdwhile): New function.
1857 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
1860 * tests/grub_script_while1.in: New testcase.
1861 * conf/tests.rmk: Rule for new testcase.
1863 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1865 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
1868 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
1870 GRUB_BACKGROUND support.
1872 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
1873 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
1875 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1877 Load fonts and modules for gfxmenu in grub-mkconfig.
1878 Idea by: Mario Vazquez
1880 * util/grub.d/00_header.in: Load pf2 and image modules.
1882 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1884 grub-mkconfig multiple terminal support.
1886 * util/grub-mkconfig.in: Handle multiple terminals correctly.
1887 * util/grub.d/00_header.in: Likewise.
1889 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1891 * Makefile.in: Specify files explicitly instead of using $< and $@ since
1892 we use cd $(srcdir).
1894 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
1896 * util/grub.d/10_linux.in: Only use the first word of
1897 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
1898 spaces in GRUB_DISTRIBUTOR.
1899 * util/grub.d/10_kfreebsd.in: Likewise.
1900 * util/grub.d/10_hurd.in: Likewise.
1902 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
1904 Fix unit testing framework for Qemu 0.12.
1906 * tests/util/grub-shell.in: Remove -serial stdio option.
1908 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1910 POSIX header file wrappers.
1912 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
1914 * lib/posix_wrap/ctype.h: Likewise.
1915 * lib/posix_wrap/errno.h: Likewise.
1916 * lib/posix_wrap/langinfo.h: Likewise.
1917 * lib/posix_wrap/limits.h: Likewise.
1918 * lib/posix_wrap/localcharset.h: Likewise.
1919 * lib/posix_wrap/stdint.h: Likewise.
1920 * lib/posix_wrap/stdio.h: Likewise.
1921 * lib/posix_wrap/stdlib.h: Likewise.
1922 * lib/posix_wrap/string.h: Likewise.
1923 * lib/posix_wrap/sys/types.h: Likewise.
1924 * lib/posix_wrap/unistd.h: Likewise.
1925 * lib/posix_wrap/wchar.h: Likewise.
1926 * lib/posix_wrap/wctype.h: Likewise.
1927 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
1928 (grub_script.yy.h): Likewise.
1929 * script/yylex.l: Remove POSIX emulation #defines.
1930 * Makefile.in (POSIX_CFLAGS): New variable.
1931 (GNULIB_UTIL_CFLAGS): Likewise.
1935 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
1936 (regexp_mod_SOURCES): New variable.
1937 (regexp_mod_CFLAGS): Likewise.
1938 (regexp_mod_LDFLAGS): Likewise.
1939 * commands/regexp.c: New file.
1940 * gnulib/regcomp.c: New file. Imported from gnulib.
1941 * gnulib/regex.c: Likewise.
1942 * gnulib/regex_internal.c: Likewise.
1943 * gnulib/regex_internal.h: Likewise.
1944 * gnulib/regexec.c: Likewise.
1945 * gnulib/regex.h: Likewise.
1947 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1949 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
1950 unsupported video mode types.
1952 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1954 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
1956 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1958 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
1959 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
1961 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1963 Remove unused grub_vga_get_font.
1965 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
1966 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
1968 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1970 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
1971 * include/grub/misc.h: Likewise.
1973 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1975 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
1976 for which failure is fatal.
1978 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1980 * util/grub-install.in: Use mkdir -p to create grub directory.
1981 * util/i386/efi/grub-install.in: Likewise.
1982 * util/ieee1275/grub-install.in: Likewise.
1984 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1986 * Makefile.in (LEX): new variable.
1988 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1990 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
1991 `=' and added double quotes on operands of this equality test.
1993 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1995 * Makefile.in (uninstall): Remove a leftover debug echo.
1996 Reported by: Grégoire Sutre
1998 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2000 MIPS multiboot2 support.
2002 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
2003 (multiboot2_mod_SOURCES): New variable.
2004 (multiboot2_mod_CFLAGS): Likewise.
2005 (multiboot2_mod_LDFLAGS): Likewise.
2006 (multiboot2_mod_ASFLAGS): Likewise.
2007 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
2009 (MULTIBOOT_ENTRY_REGISTER): Likewise.
2010 (MULTIBOOT_MBI_REGISTER): Likewise.
2011 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
2012 (MULTIBOOT_ELF32_MACHINE): Likewise.
2013 (MULTIBOOT_ELF64_MACHINE): Likewise.
2014 * include/grub/mips/multiboot.h: New file.
2015 * include/grub/video.h (grub_video_driver_id): New type
2016 GRUB_VIDEO_DRIVER_SM712.
2017 (grub_video_get_info_and_fini): Export.
2018 (grub_video_get_palette): Likewise.
2019 (grub_video_get_driver_id): Likewise.
2020 * include/multiboot2.h: Resynced with spec.
2021 * loader/i386/multiboot.c: Moved from here ...
2022 * loader/multiboot.c: ... here. All users updated.
2023 (grub_multiboot_boot): Use platform-specific macros.
2024 * loader/i386/multiboot_elfxx.c: Moved from here ...
2025 * loader/multiboot_elfxx.c: ... here. All users updated.
2026 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
2027 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
2028 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
2030 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2032 Import gnulib argp module.
2034 * gnulib/argp-ba.c: New file.
2035 * gnulib/argp-eexst.c: Likewise.
2036 * gnulib/argp-fmtstream.c: Likewise.
2037 * gnulib/argp-fmtstream.h: Likewise.
2038 * gnulib/argp-fs-xinl.c: Likewise.
2039 * gnulib/argp-help.c: Likewise.
2040 * gnulib/argp-namefrob.h: Likewise.
2041 * gnulib/argp-parse.c: Likewise.
2042 * gnulib/argp-pin.c: Likewise.
2043 * gnulib/argp-pv.c: Likewise.
2044 * gnulib/argp-pvh.c: Likewise.
2045 * gnulib/argp-version-etc.c: Likewise.
2046 * gnulib/argp-version-etc.h: Likewise.
2047 * gnulib/argp-xinl.c: Likewise.
2048 * gnulib/argp.h: Likewise.
2050 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2052 * kern/device.c (grub_device_iterate): Clear errors after failed
2055 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2057 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
2058 returned by firmware.
2060 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
2062 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
2063 compilation on coreboot and qemu
2065 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2067 * include/multiboot2.h: Resync with spec.
2069 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2071 Multiboot2 tag support
2073 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
2074 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
2075 Remove loader/multiboot_loader.c.
2076 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
2077 (grub_multiboot2_real_boot): Likewise.
2078 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
2079 (grub_get_multiboot_mmap_count): New proto.
2080 (grub_fill_multiboot_mmap): Likewise.
2081 (grub_multiboot_set_video_mode): Likewise.
2082 (grub_multiboot_set_console): Likewise.
2083 (grub_multiboot_load): Likewise.
2084 (grub_multiboot_load_elf): Likewise.
2085 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
2086 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
2087 * include/multiboot.h: Resynced with specification.
2088 * include/multiboot2.h: Resynced with specification.
2089 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
2090 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
2091 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
2092 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
2094 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
2095 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
2096 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
2098 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
2100 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
2101 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
2103 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
2104 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
2105 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
2107 * loader/i386/multiboot_mbi2.c: New file.
2109 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2113 * Makefile.in (GNULIB_CFLAGS): New variable.
2114 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
2115 (grub_script_check_CFLAGS): New variable.
2116 * gnulib/alloca.h: Resync with gnulib.
2117 * gnulib/error.c: Likewise.
2118 * gnulib/error.h: Likewise.
2119 * gnulib/fnmatch.c: Likewise.
2120 * gnulib/fnmatch_loop.c: Likewise.
2121 * gnulib/getdelim.c: Likewise.
2122 * gnulib/getline.c: Likewise.
2123 * gnulib/getopt.c: Likewise.
2124 * gnulib/getopt1.c: Likewise.
2125 * gnulib/getopt_int.h: Likewise.
2126 * gnulib/gettext.h: Likewise.
2127 * gnulib/progname.c: Likewise.
2128 * gnulib/progname.h: Likewise.
2130 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
2132 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
2133 which is the case with --disabled-nls.
2135 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
2136 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
2137 * util/misc.c: Likewise.
2138 * util/mkisofs/mkisofs.c: Likewise.
2139 * util/mkisofs/mkisofs.h: Likewise.
2141 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2143 Simplify Apple CC support.
2145 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
2146 Add 0 byte at the end not to have a symbol with empty target.
2147 * mmap/i386/pc/mmap_helper.S: Likewise.
2148 * genmk.rb: Ignore errors 2030 and 2050.
2149 * kern/i386/pc/startup.S: Use LOCAL when possible.
2151 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
2153 Testcase and the fix for final semicolon on cmdline.
2155 * tests/grub_script_final_semicolon.in: New testcase.
2156 * conf/tests.rmk: Rules for the new testcase.
2157 * script/parser.y: Grammar fix.
2159 2010-03-26 BVK Chaitanya <bvk@localhost>
2161 Blank lines testcase for GRUB script.
2163 * tests/grub_script_blanklines.in: New testcase.
2164 * conf/tests.rmk: Rules for the new testcase.
2166 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2170 * genmk.rb: Add -DGRUB_FILE to all C targets.
2171 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
2172 * include/grub/list.h: Likewise.
2173 * include/grub/misc.h: Likewise.
2174 * include/grub/mm.h: Likewise.
2175 * include/grub/test.h: Likewise.
2176 * kern/mm.c: Likewise.
2177 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
2179 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2181 Sunpc partitions support.
2183 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
2184 (grub_fstest_SOURCES): Likewise.
2185 (pkglib_MODULES): Add part_sunpc.mod.
2186 (part_sunpc_mod_SOURCES): New variable.
2187 (part_sunpc_mod_CFLAGS): Likewise.
2188 (part_sunpc_mod_LDFLAGS): Likewise.
2189 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
2190 * partmap/sunpc.c: New file.
2192 2010-03-26 BVK Chaitanya <bvk@localhost>
2194 For loop support to GRUB script.
2196 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
2197 (grub_script_create_cmdfor): New function prototype.
2198 (grub_script_execute_cmdfor): New function prototype.
2199 * script/execute.c (grub_script_execute_cmdfor): New function.
2200 * script/parser.y (command): New for command.
2201 (forcmd): New grammar rule.
2202 * script/script.c (grub_script_create_cmdfor): New function.
2203 * util/grub-script-check.c (grub_script_execute_cmdfor): New
2205 * tests/grub_script_for1.in: New testcase.
2206 * conf/tests.rmk: Rules for new testcase.
2208 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2212 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
2213 'partition' is NULL, grub_partition_get_start already does that.
2214 * commands/loadenv.c (check_blocklists): Likewise.
2215 (write_blocklists): Likewise.
2216 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
2217 (grub_fstest_SOURCES): Likewise.
2218 (pkglib_MODULES): Add part_bsd.mod.
2219 (part_bsd_mod_SOURCES): New variable.
2220 (part_bsd_mod_CFLAGS): Likewise.
2221 (part_bsd_mod_LDFLAGS): Likewise.
2222 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
2223 (grub_emu_SOURCES): Likewise.
2224 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2225 * include/grub/bsdlabel.h: New file.
2226 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
2228 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
2229 (grub_partition_map_list): New variable.
2230 (grub_partition_map_register): Inline.
2231 (grub_partition_map_unregister): Likewise.
2232 (FOR_PARTITION_MAPS): New macro.
2233 (grub_partition_map_iterate): Removed.
2234 (grub_partition_get_start): Handle nested partitions.
2235 * include/grub/msdos_partition.h: Remove bsd-related entries.
2236 (grub_pc_partition): Remove.
2237 * kern/disk.c (grub_disk_close): Free partition data.
2238 (grub_disk_adjust_range): Handle nested partitions.
2239 * kern/partition.c (grub_partition_map_probe): New function.
2240 (grub_partition_probe): Parse name to number, handle subpartitions.
2241 (get_partmap): New function.
2242 (grub_partition_iterate): Handle subpartitions.
2243 (grub_partition_get_name): Likewise.
2244 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
2245 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
2246 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
2247 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
2249 (acorn_partition_map_probe): Remove.
2250 (acorn_partition_map_get_name): Likewise.
2251 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
2253 Set 'index' to 0 since there can be only one partition entry per sector.
2254 (amiga_partition_map_probe): Remove.
2255 (amiga_partition_map_get_name): Likewise.
2256 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
2258 Set 'offset' and 'index' to real positions of partitions.
2259 (apple_partition_map_probe): Remove.
2260 (apple_partition_map_get_name): Likewise.
2261 * partmap/bsdlabel.c: New file.
2262 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
2264 Allocate 'data' so it can be correctly freed.
2265 Set 'index' to offset inside sector.
2266 (gpt_partition_map_probe): Remove.
2267 (gpt_partition_map_get_name): Likewise.
2268 * partmap/msdos.c (grub_partition_parse): Remove.
2269 (pc_partition_map_iterate): Don't force raw access.
2271 Make 'ext_offset' a local variable.
2272 (pc_partition_map_probe): Remove.
2273 (pc_partition_map_get_name): Remove.
2274 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
2276 (sun_partition_map_probe): Remove.
2277 (sun_partition_map_get_name): Likewise.
2278 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
2279 (grub_pcpart_type): Likewise.
2280 * util/hostdisk.c (open_device): Handle new numbering scheme.
2281 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
2282 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
2283 * util/grub-probe.c (probe_partmap): Handle nested paritions.
2284 * util/grub-install.in: Insert all subpartition modules.
2285 * util/ieee1275/grub-install.in: Likewise.
2287 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
2289 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
2292 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
2294 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
2296 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
2298 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
2299 match where 'make install' puts them.
2300 * util/i386/efi/grub-install.in: Likewise.
2302 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
2304 * .bzrignore: Add gentrigtables, grub-script-check,
2305 grub_script_check_init.c, grub_script_check_init.h, and
2308 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
2310 * kern/parser.c: Indented.
2312 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2314 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
2316 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2318 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
2319 alpha_mask_size == 0 case.
2321 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
2323 GRUB shell lexer and parser improvements.
2325 * conf/any-emu.rmk: Build rule updates.
2326 * conf/common.rmk: Likewise.
2327 * conf/i386-coreboot.rmk: Likewise.
2328 * conf/i386-efi.rmk: Likewise.
2329 * conf/i386-ieee1275.rmk: Likewise.
2330 * conf/i386-pc.rmk: Likewise.
2331 * conf/powerpc-ieee1275.rmk: Likewise.
2332 * conf/x86_64-efi.rmk: Likewise.
2334 * configure.ac: Configure check for flex.
2336 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
2338 (grub_lexer_param): Struct member updates.
2339 (grub_parser_param): Likewise.
2340 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
2341 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
2342 (grub_script_lexer_init): Prototype update.
2343 (grub_script_lexer_record_start): Likewise.
2344 (grub_script_lexer_record_stop): Likewise.
2345 (grub_script_lexer_yywrap): New function prototype.
2346 (grub_script_lexer_fini): Likewise.
2347 (grub_script_execute_argument_to_string): Removed by...
2348 (grub_script_execute_argument_to_argv): ...better version.
2350 * script/execute.c (ROUND_UPTO): New macro.
2351 (grub_script_execute_cmdline): Out of memory fixes.
2352 (grub_script_execute_menuentry): Likewise.
2353 (grub_script_execute_argument_to_string): Removed. Update all
2355 (grub_script_execute_argument_to_argv): ...better version.
2356 * script/function.c (grub_script_function_create): Use
2357 grub_script_execute_argument_to_argv instead of
2358 grub_script_execute_argument_to_string.
2360 * script/lexer.c (check_varstate): Removed.
2361 (check_textstate): Removed.
2362 (grub_script_lexer_record_start): Likewise.
2363 (grub_script_lexer_record_stop): Likewise.
2364 (recordchar): Replaced with...
2365 (grub_script_lexer_record): ...new function.
2366 (nextchar): Removed.
2367 (grub_script_lexer_init): Rewritten.
2368 (grub_script_yylex): Rewritten.
2369 (append_newline): New function.
2370 (grub_script_lexer_yywrap): New function.
2371 (grub_script_lexer_fini): New function.
2372 (grub_script_yyerror): Sets error flag.
2374 * script/yylex.l: New file.
2375 (grub_lexer_yyfree): Wrapper for flex yyffre.
2376 (grub_lexer_yyalloc): Likewise.
2377 (grub_lexer_yyrealloc): Likewise.
2378 * script/parser.y: Refactored.
2380 * script/script.c (grub_script_arg_add): Out of memory fixes.
2381 (grub_script_add_arglist): Likewise.
2382 (grub_script_create_cmdline): Likewise.
2383 (grub_script_create_cmdmenu): Likewise.
2384 (grub_script_add_cmd): Likewise.
2385 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
2386 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
2389 * tests/grub_script_echo1.in: New testcase.
2390 * tests/grub_script_vars1.in: New testcase.
2391 * tests/grub_script_echo_keywords.in: New testcase.
2393 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2395 Remove some redundancy in build system.
2397 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
2398 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
2399 (TARGET_LDFLAGS): Add -nostdlib.
2400 (TARGET_IMG_LDFLAGS): Likewise.
2401 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
2402 anything since mmap isn't available.
2403 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
2405 (pkglib_MODULES): Remove reboot.mod.
2406 (reboot_mod_SOURCES): Removed.
2407 (reboot_mod_CFLAGS): Likewise.
2408 (reboot_mod_LDFLAGS): Likewise.
2409 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
2410 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
2411 (DEFSYMFILES): Add kernel_syms.lst.
2412 (kernel_img_HEADERS): Add common headers.
2413 (symlist.c): New target.
2414 (kernel_syms.lst): Likewise.
2415 (pkglib_MODULES): Add memdisk.mod.
2416 (memdisk_mod_SOURCES): New variable.
2417 (memdisk_mod_CFLAGS): Likewise.
2418 (memdisk_mod_LDFLAGS): Likewise.
2419 (pkglib_MODULES): Add reboot.mod.
2420 (reboot_mod_SOURCES): New variable.
2421 (reboot_mod_CFLAGS): Likewise.
2422 (reboot_mod_LDFLAGS): Likewise.
2423 (pkglib_MODULES): Add date.mod.
2424 (date_mod_SOURCES): New variable.
2425 (date_mod_CFLAGS): Likewise.
2426 (date_mod_LDFLAGS): Likewise.
2427 (pkglib_MODULES): Add datehook.mod.
2428 (datehook_mod_SOURCES): New variable.
2429 (datehook_mod_CFLAGS): Likewise.
2430 (datehook_mod_LDFLAGS): Likewise.
2431 (pkglib_MODULES): Add lsmmap.mod.
2432 (lsmmap_mod_SOURCES): New variable.
2433 (lsmmap_mod_CFLAGS): Likewise.
2434 (lsmmap_mod_LDFLAGS): Likewise.
2435 (pkglib_MODULES): Add boot.mod.
2436 (boot_mod_SOURCES): New variable.
2437 (boot_mod_CFLAGS): Likewise.
2438 (boot_mod_LDFLAGS): Likewise.
2439 * conf/i386-coreboot.rmk: Removed redundant parts.
2440 * conf/i386-ieee1275.rmk: Likewise.
2441 * conf/i386-pc.rmk: Likewise.
2442 * conf/mips-yeeloong.rmk: Likewise.
2443 * conf/mips.rmk: Likewise.
2444 * conf/powerpc-ieee1275.rmk: Likewise.
2445 * conf/sparc64-ieee1275.rmk: Likewise.
2446 * conf/x86_64-efi.rmk: Likewise.
2447 * conf/i386-coreboot.rmk: Moved qemu parts ..
2448 * conf/i386-qemu.rmk: ... here
2449 * conf/i386-efi.rmk: Moved common parts to...
2450 * conf/x86-efi.rmk: ... here.
2451 * conf/i386.rmk: Added modules common to all x86 variants.
2452 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
2453 * disk/memdisk.c: Remove grub/machine/kernel.h.
2454 * gensymlist.sh.in: Include symbol.h.
2455 * hook/datehook.c: Correct module name.
2456 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
2457 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
2458 * include/grub/i386/efi/serial.h: New file.
2459 * include/grub/x86_64/efi/serial.h: Likewise.
2460 * util/time.c: Likewise.
2461 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
2463 2010-03-14 Colin King <colin.king@ubuntu.com>
2464 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
2466 Shrink the pre-partition-table part of boot.img by eight bytes.
2468 * boot/i386/pc/boot.S (ERR): New macro.
2469 (chs_mode): Use ERR.
2470 (geometry_error): Likewise.
2471 (hd_probe_error): Remove. This is only used once, so we wrwite
2473 (read_error): Instead of printing read_error_string, just set up
2474 %si and fall through to ...
2475 (error_message): ... this new function, also used by ERR.
2477 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
2479 Speed up consecutive hostdisk operations on the same device.
2481 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
2482 (grub_util_biosdisk_open): Initialise disk->data.
2483 (struct linux_partition_cache): New structure.
2484 (linux_find_partition): Cache partition start positions; these are
2485 expensive to compute on every read and write.
2486 (open_device): Cache open file descriptor in disk->data, so that we
2487 don't have to reopen it and flush the buffer cache for consecutive
2488 operations on the same device.
2489 (grub_util_biosdisk_close): New function.
2490 (grub_util_biosdisk_dev): Set `close' member.
2492 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
2493 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
2494 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
2495 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
2496 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
2498 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2500 Compile parts of grub-emu as modules.
2502 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
2503 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
2504 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
2505 (all-local): Add $(GRUB_EMU).
2506 (install-local): Install $(GRUB_EMU).
2507 (uninstall): Uninstall $(GRUB_EMU).
2508 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
2509 * kern/dl.c: Likewise.
2510 * commands/sleep.c: Not include machine/time.h.
2511 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
2512 (COMMON_CFLAGS): Likewise.
2513 (sbin_UTILITIES): Remove grub-emu.
2514 (grub_emu_SOURCES): Removed.
2515 (kernel_img_RELOCATABLE): New variable.
2516 (pkglib_PROGRAMS): Add kernel.img.
2517 (kernel_img_SOURCES): New variable
2518 (kernel_img_CFLAGS): Likewise.
2519 (kernel_img_LDFLAGS): Likewise.
2520 (TARGET_NO_STRIP): Likewise.
2521 (TARGET_NO_DYNAMIC_MODULES): Likewise.
2522 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
2523 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
2524 (grub-emu): New target.
2525 (GRUB_EMU): New variable.
2526 * configure.ac: Whitelist -emu as possible x86_64 architecture.
2527 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
2528 * loader/xnu.c: Likewise.
2529 * include/grub/pci.h: Likewise.
2530 * genemuinit.sh: New file.
2531 * genemuinitheader.sh: Likewise.
2532 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
2533 Support TARGET_NO_DYNAMIC_MODULES.
2534 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
2535 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
2536 * disk/loopback.c: Likewise.
2537 * font/font_cmd.c: Likewise.
2538 * partmap/acorn.c: Likewise.
2539 * partmap/amiga.c: Likewise.
2540 * partmap/apple.c: Likewise.
2541 * partmap/gpt.c: Likewise.
2542 * partmap/msdos.c: Likewise.
2543 * partmap/sun.c: Likewise.
2544 * parttool/msdospart.c: Likewise.
2545 * term/gfxterm.c: Likewise.
2546 * video/bitmap.c: Likewise.
2547 * video/readers/jpeg.c: Likewise.
2548 * video/readers/png.c: Likewise.
2549 * video/readers/tga.c: Likewise.
2550 * video/video.c: Likewise.
2551 * util/grub-emu.c (read_command_list): Removed.
2552 (main): Don't call util_init_nls.
2553 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
2554 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
2556 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2558 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
2559 date.mod, datehook.mod.
2560 (datetime_mod_SOURCES): New variable.
2561 (datetime_mod_CFLAGS): Likewise.
2562 (datetime_mod_LDFLAGS): Likewise.
2563 (date_mod_SOURCES): Likewise.
2564 (date_mod_CFLAGS): Likewise.
2565 (date_mod_LDFLAGS): Likewise.
2566 (datehook_mod_SOURCES): Likewise.
2567 (datehook_mod_CFLAGS): Likewise.
2568 (datehook_mod_LDFLAGS): Likewise.
2569 * conf/sparc64-ieee1275.rmk: Likewise.
2570 * lib/ieee1275/datetime.c: New file.
2572 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2574 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
2575 (ieee1275_fb_mod_SOURCES): New variable.
2576 (ieee1275_fb_mod_CFLAGS): Likewise.
2577 (ieee1275_fb_mod_LDFLAGS): Likewise.
2578 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
2580 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
2581 (HEAP_MAX_ADDR): Likewise.
2582 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
2584 Correct stop condition.
2585 (grub_ieee1275_devices_iterate): New function.
2586 * video/ieee1275.c: New file.
2588 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2590 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
2592 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
2594 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
2595 SCRATCH_PAD_DISKBOOT as scratch.
2596 (bootit): Pass Openfirmware pointer in %o4.
2597 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
2599 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
2600 with util/grub-mkrawimage.c.
2601 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
2602 * include/grub/aout.h (AOUT_MID_SUN): New definition.
2603 (grub_aout_get_type) [GRUB_UTIL]: Removed.
2604 (grub_aout_load) [GRUB_UTIL]: Likewise.
2605 * include/grub/kernel.h (grub_modules_get_end): New proto.
2606 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
2607 (SCRATCH_PAD_BOOT): New definition.
2608 (SCRATCH_PAD_DISKBOOT): Likewise.
2609 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
2610 * include/grub/sparc64/ieee1275/ieee1275.h
2611 (grub_ieee1275_original_stack): New variable
2612 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
2614 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
2615 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
2616 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
2617 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
2618 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
2619 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
2620 (grub_platform_image_format_t): New type.
2621 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
2622 * kern/main.c (grub_modules_get_end)
2623 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
2624 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
2625 (codestart): Switch stacks.
2626 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
2628 (grub_heap_init): Use grub_modules_get_end.
2629 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
2631 * util/grub-mkrawimage.c (generate_image): Support sparc64.
2633 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
2635 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
2637 * util/grub-mkrescue.in: Base ISO UUID on UTC.
2639 2010-03-08 Matt Kraai <kraai@ftbfs.org>
2641 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
2644 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
2646 * genmoddep.awk: Output all missing symbols and not only first.
2648 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2650 * NEWS: Put the date of 1.98 release.
2652 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2654 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
2657 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2659 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
2660 completition in the middle of string.
2662 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2664 * util/grub-mkrescue.in: Use mktemp with explicit template.
2666 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2668 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
2670 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2672 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
2675 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2677 Fix FreeBSD compilation.
2679 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
2680 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
2682 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2684 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
2686 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2688 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
2690 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2692 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
2694 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
2696 Support relative image path in theme file.
2698 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
2699 (image_set_property): Handle theme_dir and relative path.
2701 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2703 * configure.ac: Alias amd64 to x86_64.
2705 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2707 * NEWS: mention multiboot on EFI.
2709 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2711 * kern/main.c (grub_load_modules): Handle errors from init functions of
2714 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2716 * normal/autofs.c (autoload_fs_module): Handle errors.
2718 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2720 Disable linux.mod on qemu-mips since it's not functional and leads
2721 to compilation failure.
2723 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
2724 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
2725 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
2726 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
2727 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
2728 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
2729 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
2730 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
2731 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
2732 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
2733 Reported by: BVK Chaitanya
2735 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
2737 * INSTALL: Add gettext as a dependency and add qemu to a new section
2738 "Prerequisites for make-check".
2740 2010-03-04 Christian Franke <franke@computer.org>
2742 * util/grub-pe2elf.c: Add missing include "progname.h".
2744 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2746 * normal/crypto.c (read_crypto_list): Fix a typo.
2747 Reported by: Seth Goldberg.
2749 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2751 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
2752 Reported by: Seth Goldberg.
2754 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2756 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
2759 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2761 * genmk.rb: Remove terminal*.lst in make clean.
2762 Reported by: Seth Goldberg.
2764 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2766 * util/i386/efi/grub-install.in: Copy gettext files.
2768 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2770 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
2772 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2774 Wait for user entry basing on presence of output rather than on errors.
2776 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
2777 (grub_install_newline_hook): Likewise.
2778 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
2779 * normal/menu.c (show_menu): Check line_counter to determine presence
2781 * normal/term.c (grub_normal_line_counter): New variable.
2782 (grub_normal_get_line_counter): New function.
2783 (grub_install_newline_hook): Likewise.
2785 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2787 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
2789 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2791 * configure.ac: Update version to 1.98.
2793 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
2795 * util/grub.d/10_linux.in (linux_entry): Don't default to
2796 gfxpayload=keep if Linux doesn't support video handover.
2798 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
2800 Don't compile video modules on yeeloong since video subsystem is part
2803 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
2804 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
2805 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
2806 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
2807 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
2808 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
2809 * include/grub/bitmap_scale.h: Likewise.
2810 * include/grub/bufio.h: Likewise.
2811 * include/grub/font.h: Likewise.
2812 * include/grub/gfxterm.h: Likewise.
2813 * include/grub/video.h: Likewise.
2814 * include/grub/vbe.h: Don't include video_fb.h.
2815 * video/i386/pc/vbe.c: Include video_fb.h.
2816 * commands/i386/pc/vbetest.c: Include video.h.
2818 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
2820 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
2821 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
2822 default entry if GRUB_SAVEDEFAULT=true. This allows using
2823 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
2824 saving a new default on every boot.
2826 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
2828 * normal/crypto.c (read_crypto_list): Fix a memory leak.
2829 * normal/term.c (read_terminal_list): Likewise.
2830 * normal/main.c (grub_normal_init_page): Likewise.
2831 (grub_normal_read_line_real): Likewise.
2833 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
2835 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
2837 Reported by: Seth Goldberg.
2839 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
2841 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
2842 duplicate declaration of `start'.
2844 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
2846 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
2848 Reported by: Georgy Buranov
2850 2010-02-20 Carles Pina i Estany <carles@pina.cat>
2852 * util/grub-mkrawimage.c (usage): Change string formatting to
2855 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
2857 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
2860 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
2862 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
2863 Reported by: Michael Suchanek.
2865 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2867 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
2868 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
2870 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
2872 Remove any reference to non-free fonts.
2874 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
2875 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
2876 uses non-free components.
2877 * font/font.c (grub_font_get_name): Remove example name.
2878 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
2879 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
2880 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
2881 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
2883 2010-02-16 Georgy Buranov <gburanov@gmail.com>
2885 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
2887 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
2889 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
2891 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
2893 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
2895 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
2897 * gensymlist.sh.in: Use TARGET_CC instead of CC.
2899 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2901 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
2902 * docs/grub.texi (Command-line and menu entry commands): Document play
2905 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2907 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
2908 parse arguments as inline tempo and notes. Move code for playing notes
2910 (play): ... new function.
2912 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2914 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
2915 grub_uint16_t instead of short.
2916 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
2917 disk from little endian to cpu endianness.
2919 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
2921 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
2922 GRUB_TICKS_PER_SECOND instead of 120.
2924 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2926 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
2927 escape sequence after \e.
2929 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2931 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
2932 non-ASCII characters.
2934 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2936 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
2937 set root in single quotes to prevent \, from being unescaped.
2939 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2941 Prevent unknown commands from stopping menuentry execution.
2943 * script/execute.c (grub_script_execute_cmdline): Print error after
2946 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2948 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
2949 Reported by: Pavel Pisa.
2951 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2953 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
2955 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2957 Merge grub_ieee1275_map_physical into grub_map and rename to
2960 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
2961 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
2963 * kern/ieee1275/openfw.c (grub_map): Rename to ...
2964 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
2966 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
2968 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2970 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
2971 opening and not after.
2973 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2975 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
2978 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2980 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
2981 (alloc_phys): Use ALIGN_UP instead of align_addr.
2983 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2985 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
2987 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2989 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
2991 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2993 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
2996 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2998 Fix over-4GiB seek on sparc64.
3000 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
3001 Replace pos_i and pos_lo with pos. All users updated.
3002 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3004 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3006 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
3009 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3011 * util/grub-mkrawimage.c (main): Call set_program_name.
3013 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3015 Properly align 64-bit targets.
3017 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
3018 (generate_image): Use ALIGN_ADDR.
3020 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3022 Properly create cross-endian images.
3024 * include/grub/types.h (grub_host_to_target_addr): New macro
3025 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
3027 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3029 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
3031 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3033 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
3035 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
3036 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
3037 (grub_linux_boot): Divide by 64K when on VESA.
3039 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3041 Support GRUB_GFXPAYLOAD_LINUX.
3043 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
3044 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
3046 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3048 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
3049 to show messages instead of discarding them.
3050 Process errors after executing command and not before. Keep old method
3053 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
3055 * configure.ac: Check for ft2build.h.
3057 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3059 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
3061 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3063 * genkernsyms.sh.in: Use TARGET_CC.
3065 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
3069 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3071 * include/grub/multiboot2.h: Remove leftover file.
3072 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
3073 * include/grub/partition.h [GRUB_UTIL]: Likewise.
3075 2010-02-07 Yves Blusseau <blusseau@zetam.org>
3077 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
3079 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3081 Fix warnings in grub-emu when compiling with maximum warning options.
3083 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
3084 (grub_arch_modules_addr): Return 0 and not NULL.
3085 * util/misc.c (ENABLE_RELOCATABLE): New definition.
3086 (xstrdup): Use newstr instead of dup.
3087 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
3088 of disk to dsk to avoid shadowing.
3089 (find_free_slot): Fix prototype.
3090 * util/getroot.c (grub_util_is_dmraid): Make static.
3091 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
3092 Add missing prototype.
3093 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
3095 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3097 * loader/i386/linux.c (grub_linux_setup_video): Handle error
3100 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3102 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
3105 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3107 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
3108 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
3109 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
3110 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
3111 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
3112 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
3114 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3116 * include/grub/err.h (grub_err_printf): Don't export.
3118 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3120 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
3122 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3124 * include/grub/i18n.h (grub_gettext_dummy): Removed.
3125 * kern/misc.c (grub_gettext_dummy): Make static.
3127 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3129 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
3131 * kern/term.c (grub_putchar): Likewise.
3133 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3135 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
3136 buggy hook call and memory leak.
3138 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3140 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
3142 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3144 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
3146 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3148 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
3150 Return grub_errno on allocation error.
3152 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3154 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
3156 2010-02-06 Yves Blusseau <blusseau@zetam.org>
3158 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
3159 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
3161 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3163 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
3165 (grub_pxefs_open): Likewise.
3167 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3169 * util/grub.d/10_hurd.in: Add --class information to menuentries.
3170 * util/grub.d/10_kfreebsd.in: Likewise.
3171 * util/grub.d/10_linux.in: Likewise.
3173 2010-02-06 Colin D Bennett <colin@gibibit.com>
3175 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
3176 (gfxmenu_mod_SOURCES): New variable.
3177 (gfxmenu_mod_CFLAGS): Likewise.
3178 (gfxmenu_mod_LDFLAGS): Likewise.
3179 * include/grub/term.h (grub_term_set_current_output): Declare
3181 * docs/gfxmenu-theme-example.txt: New file.
3182 * gfxmenu/gfxmenu.c: Likewise.
3183 * gfxmenu/gui_box.c: Likewise.
3184 * gfxmenu/gui_canvas.c: Likewise.
3185 * gfxmenu/gui_circular_progress.c: Likewise.
3186 * gfxmenu/gui_image.c: Likewise.
3187 * gfxmenu/gui_label.c: Likewise.
3188 * gfxmenu/gui_list.c: Likewise.
3189 * gfxmenu/gui_progress_bar.c: Likewise.
3190 * gfxmenu/gui_string_util.c: Likewise.
3191 * gfxmenu/gui_util.c: Likewise.
3192 * gfxmenu/icon_manager.c: Likewise.
3193 * gfxmenu/model.c: Likewise.
3194 * gfxmenu/named_colors.c: Likewise.
3195 * gfxmenu/theme_loader.c: Likewise.
3196 * gfxmenu/view.c: Likewise.
3197 * gfxmenu/widget-box.c: Likewise.
3198 * include/grub/gfxmenu_model.h: Likewise.
3199 * include/grub/gfxmenu_view.h: Likewise.
3200 * include/grub/gfxwidgets.h: Likewise.
3201 * include/grub/gui.h: Likewise.
3202 * include/grub/gui_string_util.h: Likewise.
3203 * include/grub/icon_manager.h: Likewise.
3205 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3207 Agglomerate scrolling in gfxterm.
3209 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
3210 (grub_virtual_screen_setup): Initialise 'total_screen'.
3211 (write_char): Split to ...
3212 (paint_char): ... this ...
3213 (write_char): ... and this.
3214 (paint_char): Handle delayed scrolling.
3215 (draw_cursor): Likewise.
3216 (scroll_up): Split to ...
3217 (real_scroll): ... this ...
3218 (scroll_up): ... and this.
3219 (real_scroll): Handle multi-line scroll and draw below-the-bottom
3221 (grub_gfxterm_refresh): Call real_scroll.
3223 2010-02-06 Colin D Bennett <colin@gibibit.com>
3225 * include/grub/misc.h (grub_iscntrl): New inline function.
3226 (grub_isalnum): Likewise.
3227 (grub_strtol): Likewise.
3229 2010-02-06 Colin D Bennett <colin@gibibit.com>
3231 * normal/menu_text.c (get_entry_number): Move from here ...
3232 * normal/menu.c (get_entry_number): ... moved here.
3233 * include/grub/menu.h (grub_menu_get_default_entry_index):
3235 * normal/menu.c (grub_menu_get_default_entry_index): New function.
3236 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
3237 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
3238 (grub_menu_viewer_should_return): Likewise.
3239 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
3240 * normal/menu_text.c (run_menu): Enable menu switching.
3241 * normal/menu_viewer.c (should_return): New variable.
3242 (menu_viewer_changed): Likewise.
3243 (grub_menu_viewer_show_menu): Handle menu viewer changes.
3244 (grub_menu_viewer_should_return): New function.
3245 (menuviewer_write_hook): Likewise.
3246 (grub_menu_viewer_init): Likewise.
3248 2010-02-06 Colin D Bennet <colin@gibibit.com>
3249 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3251 Support for gfxterm in a window.
3253 * include/grub/gfxterm.h: New file.
3254 * include/grub/video.h (struct grub_video_rect): New declaration.
3255 (grub_video_rect_t): Likewise.
3256 * term/gfxterm.c (struct grub_gfxterm_window): New type.
3257 (refcount): New variable.
3258 (render_target): Likewise.
3260 (repaint_callback): Likewise.
3261 (grub_virtual_screen_setup): Use 'render_target'.
3262 (init_window): New function.
3263 (grub_gfxterm_init_window): Likewise.
3264 (grub_gfxterm_init): Check reference counter.
3266 (destroy_window): New function.
3267 (grub_gfxterm_destroy_window): Likewise.
3268 (grub_gfxterm_fini): Check reference counter.
3270 (redraw_screen_rect): Restore viewport.
3271 Use 'render_target' and 'window'.
3272 Call 'repaint_callback'.
3273 (write_char): Use 'render_target'.
3274 (draw_cursor): Likewise.
3275 (scroll_up): Restore viewport.
3276 Use 'render_target' and 'window'.
3277 Call 'repaint_callback'.
3278 (grub_gfxterm_cls): Likewise.
3279 (grub_gfxterm_refresh): Use 'window'.
3280 (grub_gfxterm_set_repaint_callback): New function.
3281 (grub_gfxterm_background_image_cmd): Use 'window'.
3282 (grub_gfxterm_get_term): New function.
3283 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
3285 2010-02-06 Colin D Bennett <colin@gibibit.com>
3287 Bitmap scaling support.
3289 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
3290 (bitmap_scale_mod_SOURCES): New variable.
3291 (bitmap_scale_mod_CFLAGS): Likewise.
3292 (bitmap_scale_mod_LDFLAGS): Likewise.
3293 * include/grub/bitmap_scale.h: New file.
3294 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
3295 (background_image_cmd_options): New variable.
3296 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
3297 (cmd): Rename and change type to ...
3298 (background_image_cmd_handle): ... this. All users updated.
3299 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
3300 * video/bitmap_scale.c: New file.
3302 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3306 * Makefile.in (LIBSDL): New variable.
3307 (enable_grub_emu_sdl): Likewise.
3308 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
3309 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
3310 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
3311 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
3312 * util/sdl.c: New file.
3314 2010-02-06 Colin D Bennett <colin@gibibit.com>
3315 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3317 Double buffering support.
3319 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
3320 * include/grub/video.h: Update comment.
3321 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
3323 (grub_video_fb_doublebuf_blit_init): New prototype.
3324 * term/gfxterm.c (scroll_up): Support double buffering.
3325 (grub_gfxterm_refresh): Likewise.
3326 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
3327 (grub_video_fb_doublebuf_blit_init): Likewise.
3328 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
3329 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
3330 'displayed_page', 'render_page' and 'update_screen'.
3331 (grub_video_vbe_fini): Free offscreen buffer.
3332 (doublebuf_pageflipping_commit): New function.
3333 (doublebuf_pageflipping_update_screen): Likewise.
3334 (doublebuf_pageflipping_init): Likewise.
3335 (double_buffering_init): Likewise.
3336 (grub_video_vbe_setup): Enable doublebuffering.
3337 (grub_video_vbe_swap_buffers): Implement.
3338 (grub_video_vbe_set_active_render_target): Handle double buffering.
3339 (grub_video_vbe_get_active_render_target): Likewise.
3340 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
3341 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
3342 (grub_video_vbe_enable_double_buffering): Likewise.
3343 (grub_video_vbe_swap_buffers): Use update_screen.
3344 (grub_video_set_mode): Use double buffering.
3346 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3348 * maintainance/gentrigtables.py: Remove.
3349 * lib/trig.c: Likewise.
3351 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
3353 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
3355 (trigtables.c): New rule.
3356 (gentrigtables): Likewise.
3357 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
3359 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3361 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
3364 2010-02-06 Colin D Bennet <colin@gibibit.com>
3366 Trigonometry support.
3368 * include/grub/trig.h: New file.
3369 * lib/trig.c: Likewise.
3370 * maintainance/gentrigtables.py: Likewise.
3371 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
3372 (trig_mod_SOURCES): New variable.
3373 (trig_mod_CFLAGS): Likewise.
3374 (trig_mod_LDFLAGS): Likewise.
3376 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3378 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
3381 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3383 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
3386 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3388 * util/hostdisk.c (open_device): Don't use partition device when reading
3389 before the partition.
3390 (grub_util_biosdisk_read): Don't read from partition and before the
3391 partition in single operation.
3392 (grub_util_biosdisk_write): Don't write to partition and before the
3393 partition in single operation.
3395 2010-02-03 Torsten Landschoff <torsten@debian.org>
3397 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3400 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3402 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
3404 (grub_biosdisk_write): Refuse to write to CDROM.
3406 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3408 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
3410 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3412 * font/font.c (find_glyph): Check that bmp_idx is available before
3414 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
3415 with (font == NULL).
3417 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
3419 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
3421 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
3423 * include/grub/script_sh.h (sourcecode): Add const qualifier.
3424 * util/grub-script-check.c (getline): Fix empty lines case.
3426 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
3428 * Makefile.in (check): Exit with fail status when one of the tests
3430 * tests/example_functional_test.c (example_test): Fix reversed assert.
3431 * tests/example_unit_test.c (example_test): Likewise.
3433 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
3435 * util/grub.d/10_linux.in: This script does not use any of the
3436 contents of gettext.sh, only the external command `gettext', so stop
3437 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
3438 the same prefix as GRUB.)
3439 * util/grub.d/10_kfreebsd.in: Likewise.
3441 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3443 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
3446 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3448 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3451 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3453 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
3454 having a 4KiB and not 32KiB buffer size.
3456 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3458 * util/hostfs.c: Include `<errno.h>'.
3459 (grub_hostfs_read): Handle errors from fseeko() and fread().
3461 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3463 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
3464 loop when using read hooks on files whose size isn't sector-aligned.
3466 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3468 Remove unused parameter.
3470 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
3471 (grub_iso9660_open): Remove initialization of `data->length'.
3473 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3475 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
3478 2010-01-27 Carles Pina i Estany <carles@pina.cat>
3480 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
3481 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
3483 2010-01-26 Carles Pina i Estany <carles@pina.cat>
3485 * util/bin2h.c (usage): Fix warning (space after backslash).
3487 2010-01-26 Carles Pina i Estany <carles@pina.cat>
3489 * font/font.c: Include `grub/fontformat.h.
3490 Remove font file format constants.
3491 (grub_font_load): Use the new macros.
3492 * include/grub/fontformat.h: New file.
3493 * util/grub-mkfont.c: Include `grub/fontformat.c'.
3494 (write_font_pf2): Use the new macros.
3496 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3498 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
3501 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3503 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
3505 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
3506 (_start): Macroify `0x7F'.
3508 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
3509 (make_install_device): Use "(pxe)" as fallback prefix when booting
3512 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
3514 * configure.ac: Reset LIBS after check for libgcc symbols.
3516 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
3518 * util/hostdisk.c (open_device): Add trailing newline to debug
3521 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
3523 * configure.ac: Check for `limits.h'.
3524 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
3526 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
3528 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
3529 capitalize error strings.
3531 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3533 * util/grub.d/10_hurd.in: Add a recovery mode.
3535 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
3537 * configure.ac: Check for libgcc symbols with -nostdlib.
3539 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
3541 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
3543 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3545 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
3546 stack since heap may be unavailable at that point.
3547 (grub_ofconsole_gotoxy): Likewise.
3549 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3551 * configure.ac: Check for _restgpr_14_x.
3552 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
3553 and _savegpr_* prototypes.
3555 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
3557 Use generic grub_reboot() for i386-efi.
3559 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
3560 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
3561 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
3563 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3565 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
3566 presence of "prefix" variable as it breaks when normal.mod is
3569 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3571 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
3572 stack since heap is unavailable at that point.
3574 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3576 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
3577 (grub_freebsd_bootinfo): Rewritten.
3578 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
3580 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3582 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
3584 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
3586 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
3589 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
3591 * util/misc.c (make_system_path_relative_to_its_root): Change the work
3592 around for handling "/" to the correct fix. Fix a memory leak. Use
3593 xstrdup instead of strdup.
3595 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3597 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
3599 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3601 Optimise glyph lookup by Basic Multilingual Plane lookup array.
3603 * font/font.c (struct grub_font): New member 'bmp_idx'.
3604 (font_init): Initialise 'bmp_idx'.
3605 (load_font_index): Fill 'bmp_idx'.
3606 (find_glyph): Make inline. Use bmp_idx for BMP characters.
3608 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3610 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
3613 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3615 Move context handling out of the kernel.
3617 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
3618 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
3619 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
3620 * conf/i386-efi.rmk: Likewise.
3621 * conf/i386-ieee1275.rmk: Likewise.
3622 * conf/i386-pc.rmk: Likewise.
3623 * conf/powerpc-ieee1275.rmk: Likewise.
3624 * conf/sparc64-ieee1275.rmk: Likewise.
3625 * conf/x86_64-efi.rmk: Likewise.
3626 * include/grub/env.h: Include grub/menu.h.
3627 (grub_env_var_type): Removed.
3628 (grub_env_var): Replaced field 'type' with 'global'.
3629 (grub_env_find): New prototype.
3630 (grub_env_context_open): Remove EXPORT_FUNC.
3631 (grub_env_context_close): Likewise.
3632 (grub_env_export): Likewise.
3633 (grub_env_set_data_slot): Removed.
3634 (grub_env_get_data_slot): Likewise.
3635 (grub_env_unset_data_slot): Likewise.
3636 (grub_env_unset_menu): New prototype.
3637 (grub_env_set_menu): Likewise.
3638 (grub_env_get_menu): Likewise.
3639 * include/grub/env_private.h: New file.
3640 * include/grub/normal.h (grub_context_init): New prototype.
3641 (grub_context_fini): Likewise.
3642 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
3643 * normal/context.c (grub_cmd_export): ... to here.
3644 * kern/env.c: Include env_private.h.
3645 (HASHSZ): Moved to include/grub/env_private.h.
3646 (grub_env_context): Likewise.
3647 (grub_env_sorted_var): Likewise.
3648 (current_context): Renamed from this ...
3649 (grub_current_context): ...to this. 'static' removed. All users updated.
3650 (grub_env_find): Removed 'static'.
3651 (grub_env_context_open): Moved to normal/context.c.
3652 (grub_env_context_close): Likewise.
3653 (grub_env_export): Likewise.
3654 (mangle_data_slot_name): Removed.
3655 (grub_env_set_data_slot): Likewise.
3656 (grub_env_get_data_slot): Likewise.
3657 (grub_env_unset_data_slot): Likewise.
3658 * kern/main.c (grub_set_root_dev): Don't export root.
3659 It will be done later.
3660 (grub_main): Don't export prefix.
3661 It will be done later.
3662 * normal/context.c: New file.
3663 * normal/main.c (free_menu): Use grub_env_unset_menu.
3664 (grub_normal_add_menu_entry): Use grub_env_get_menu.
3665 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
3666 (GRUB_MOD_INIT(normal)): Call grub_context_init.
3667 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
3669 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3673 * commands/setpci.c: New file.
3674 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
3675 (setpci_mod_SOURCES): New variable.
3676 (setpci_mod_CFLAGS): Likewise.
3677 (setpci_mod_LDFLAGS): Likewise.
3679 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3681 Byte-addressable PCI configuration space.
3683 * bus/pci.c (grub_pci_make_address): Use byte address instead of
3685 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
3686 GRUB_PCI_REG_CACHELINE.
3687 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
3688 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
3689 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
3690 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
3691 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
3692 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
3693 grub_pci_make_address.
3694 (lock_rom_area): Likewise.
3695 * commands/lspci.c (grub_lspci_iter): Use macroses
3696 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
3697 of grub_pci_make_address.
3698 * disk/ata.c (grub_ata_pciinit): Likewise.
3699 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
3700 (GRUB_PCI_REG_VENDOR): Likewise.
3701 (GRUB_PCI_REG_DEVICE): Likewise.
3702 (GRUB_PCI_REG_COMMAND): Likewise.
3703 (GRUB_PCI_REG_STATUS): Likewise.
3704 (GRUB_PCI_REG_REVISION): Likewise.
3705 (GRUB_PCI_REG_CLASS): Likewise.
3706 (GRUB_PCI_REG_CACHELINE): Likewise.
3707 (GRUB_PCI_REG_LAT_TIMER): Likewise.
3708 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
3709 (GRUB_PCI_REG_BIST): Likewise.
3710 (GRUB_PCI_REG_ADDRESSES): Likewise.
3711 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3712 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3713 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3714 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3715 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3716 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3717 (GRUB_PCI_REG_CIS_POINTER): Likewise.
3718 (GRUB_PCI_REG_SUBVENDOR): Likewise.
3719 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
3720 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
3721 (GRUB_PCI_REG_CAP_POINTER): Likewise.
3722 (GRUB_PCI_REG_IRQ_LINE): Likewise.
3723 (GRUB_PCI_REG_IRQ_PIN): Likewise.
3724 (GRUB_PCI_REG_MIN_GNT): Likewise.
3725 (GRUB_PCI_REG_MAX_LAT): Likewise.
3726 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
3727 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
3728 * video/efi_uga.c (find_framebuf): Likewise.
3729 * video/sm712.c (grub_video_sm712_setup): Likewise.
3730 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
3733 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3735 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
3736 can be reliably determined to be supported.
3738 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3740 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
3741 that VESA is supported.
3742 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
3745 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3747 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
3749 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3751 * util/misc.c (make_system_path_relative_to_its_root): Work around
3752 special-casing of "/", as previous incarnation of this routine did.
3754 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3756 Fix any-emu compilation.
3758 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
3759 * grub_bin2h_SOURCES: New variable.
3761 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3763 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
3765 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3767 * util/grub.d/00_header.in: Fix handling of locale_dir.
3769 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3771 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
3772 as possible unifont location (Gentoo).
3773 Reported by: Alexander Brüning
3775 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3777 Don't try to generate lists for kernel.img.
3779 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
3780 (pkglib_MODULES): Remove kernel.img.
3781 (kernel_img_EXPORTS): Removed.
3782 (kernel_img_RELOCATABLE): New variable.
3783 * conf/x86_64-efi.rmk: Likewise.
3784 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
3786 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3788 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
3789 grub_xasprintf or grub_snprintf.
3790 (grub_vsprintf): Likewise.
3791 (grub_snprintf): New proto.
3792 (grub_vsnprintf): Likewise.
3793 (grub_xasprintf): Likewise.
3794 (grub_xvasprintf): Likewise.
3795 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
3796 (grub_sprintf): Removed.
3797 (grub_vsnprintf): New function.
3798 (grub_snprintf): Likewise.
3799 (grub_xvasprintf): Likewise.
3800 (grub_xasprintf): Likewise.
3801 (grub_vsprintf): Renamed to ...
3802 (grub_vsnprintf_real): ...this. New argument max_len.
3804 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
3806 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
3807 fix grub-script-check warning.
3809 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3811 * include/grub/font.h (grub_font_load): Fix prototype.
3813 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3815 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
3817 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3819 * include/grub/x86_64/at_keyboard.h: New file.
3821 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3823 * loader/mips/linux.c: Include missing grub/i18n.h.
3825 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3827 * normal/menu.c (notify_execution_failure): Clarify error message.
3829 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3831 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
3832 return value (and revert all return statements). Update users.
3834 2010-01-20 Dan Merillat <debian@dan.merillat.org>
3836 * kern/device.c (grub_device_iterate): Allocate new part_ent
3837 structure based on sizeof (*p) rather than sizeof (p->next), to
3838 account for structure padding.
3840 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
3841 disk is NULL, which might happen for LVM physical volumes with no
3844 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3846 * loader/mips/linux.c (grub_cmd_initrd)
3847 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
3849 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3851 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
3852 (grub_video_video_init, grub_video_bitmap_init)
3853 (grub_font_manager_init, grub_term_gfxterm_init)
3854 (grub_at_keyboard_init): New extern declarations.
3855 (grub_machine_init): Initialize gfxterm and at_keyboard.
3857 * kern/main.c (grub_main): Revert grub_printf delay kludge.
3859 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
3860 `gfxterm.mod' into core image.
3862 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3863 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3864 (kernel_img_FORMAT): Copy to ...
3866 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3867 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3868 (kernel_img_FORMAT): ... here, and ...
3870 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3871 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3872 (kernel_img_FORMAT): ... here.
3874 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
3875 and input (at_keyboard) terminals in kernel.
3876 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
3878 (pkglib_MODULES): Remove `pci.mod'.
3879 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
3880 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
3881 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
3882 (at_keyboard_mod_LDFLAGS): Remove variables.
3884 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
3886 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
3888 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
3890 * include/grub/mips/libgcc.h: Only export symbols for functions
3891 that libgcc provides.
3893 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
3897 * bus/bonito.c: New file.
3898 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
3899 GRUB_PCI_NUM_DEVICES.
3900 * term/i386/pc/serial.c: Move to ...
3901 * term/serial.c: ... here. All users updated.
3902 * util/i386/pc/grub-mkimage.c: Move to ...
3903 * util/grub-mkrawimage.c: ... here. All users updated.
3904 * term/i386/pc/at_keyboard.c: Move to ...
3905 * term/at_keyboard.c: ... here. All users updated.
3906 * conf/mips-qemu-mips.rmk: New file.
3907 * conf/mips-yeeloong.rmk: Likewise.
3908 * conf/mips.rmk: Likewise.
3909 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
3911 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
3913 (grub_ata_pciinit): Support CS5536.
3914 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
3915 * font/font_cmd.c (loadfont_command): Open file before passing it to
3917 (pseudo_file_read): New function.
3918 (pseudo_file_close): Likewise.
3919 (pseudo_fs): New structure.
3920 (load_font_module): New function.
3921 (GRUB_MOD_INIT(font_manager)): Load embedded font.
3922 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
3923 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
3924 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
3925 * include/grub/i386/at_keyboard.h: Split into ...
3926 * include/grub/at_keyboard.h: ... this ...
3927 * include/grub/i386/at_keyboard.h: ... and this.
3928 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
3930 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
3932 (grub_elf64_size): Likewise.
3933 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
3935 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
3936 * include/grub/i386/coreboot/serial.h: Rewritten.
3937 * include/grub/i386/ieee1275/serial.h: Include
3938 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
3939 * include/grub/i386/pc/serial.h: Moved from here ...
3940 * include/grub/serial.h: ... to here. All users updated.
3941 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
3942 (GRUB_PCI_NUM_BUS): Likewise.
3943 (GRUB_PCI_NUM_DEVICES): Likewise.
3944 (grub_pci_device_map_range): Add missing volatile keyword.
3945 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
3946 * include/grub/mips/at_keyboard.h: New file.
3947 * include/grub/mips/cache.h: Likewise.
3948 * include/grub/mips/io.h: Likewise.
3949 * include/grub/mips/kernel.h: Likewise.
3950 * include/grub/mips/libgcc.h: Likewise.
3951 * include/grub/mips/pci.h: Likewise.
3952 * include/grub/mips/qemu-mips/boot.h: Likewise.
3953 * include/grub/mips/qemu-mips/kernel.h: Likewise.
3954 * include/grub/mips/qemu-mips/loader.h: Likewise.
3955 * include/grub/mips/qemu-mips/memory.h: Likewise.
3956 * include/grub/mips/qemu-mips/serial.h: Likewise.
3957 * include/grub/mips/qemu-mips/time.h: Likewise.
3958 * include/grub/mips/relocator.h: Likewise.
3959 * include/grub/mips/time.h: Likewise.
3960 * include/grub/mips/types.h: Likewise.
3961 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
3962 * include/grub/mips/yeeloong/boot.h: Likewise.
3963 * include/grub/mips/yeeloong/kernel.h: Likewise.
3964 * include/grub/mips/yeeloong/loader.h: Likewise.
3965 * include/grub/mips/yeeloong/memory.h: Likewise.
3966 * include/grub/mips/yeeloong/pci.h: Likewise.
3967 * include/grub/mips/yeeloong/serial.h: Likewise.
3968 * include/grub/mips/yeeloong/time.h: Likewise.
3969 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
3970 * kern/elf.c (grub_elf32_size): New parameter. All users
3972 (grub_elf64_size): Likewise.
3973 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
3974 Load modules before saying "Welcome to GRUB!".
3975 Call grub_refresh after saying "Welcome to GRUB!".
3976 * kern/mips/cache.S: New file.
3977 * kern/mips/cache_flush.S: Likewise.
3978 * kern/mips/dl.c: Likewise.
3979 * kern/mips/init.c: Likewise.
3980 * kern/mips/qemu-mips/init.c: Likewise.
3981 * kern/mips/startup.S: Likewise.
3982 * kern/mips/yeeloong/init.c: Likewise.
3983 * kern/term.c (grub_putcode): Handle NULL terminal.
3984 (grub_getcharwidth): Likewise.
3985 (grub_getkey): Likewise.
3986 (grub_checkkey): Likewise.
3987 (grub_getkeystatus): Likewise.
3988 (grub_getxy): Likewise.
3989 (grub_getwh): Likewise.
3990 (grub_gotoxy): Likewise.
3991 (grub_cls): Likewise.
3992 (grub_setcolorstate): Likewise.
3993 (grub_setcolor): Likewise.
3994 (grub_getcolor): Likewise.
3995 (grub_refresh): Likewise.
3996 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
3997 (write_jump): Add hatch nop.
3998 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
3999 * lib/mips/setjmp.S: New file.
4000 * loader/mips/linux.c: Likewise.
4001 * term/i386/pc/at_keyboard.c: Move from here ...
4002 * term/at_keyboard.c: ... to here.
4003 * term/i386/pc/serial.c: Moved from here ...
4004 * term/serial.c: ... to here. All users updated.
4005 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
4006 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
4007 (serial_translate_key_sequence): Avoid deadlock.
4008 (grub_serial_getkey): Handle backspace.
4009 (grub_serial_putchar): Fix newline handling.
4010 * util/i386/pc/grub-mkimage.c: Move from here ...
4011 * util/grub-mkrawimage.c: ... to here. All users updated.
4012 (generate_image): New parameters 'font_path' and 'format'.
4013 Support embedding font.
4014 Use grub_host_to_target* instead of grub_cpu_to_le*.
4015 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
4016 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
4017 (options): New option "--font".
4019 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
4020 (main): Handle "--font".
4021 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
4022 (grub_virtual_screen_setup): Set bg_color_display.
4023 (redraw_screen_rect): Use bg_color_display instead of incorrect
4025 (grub_gfxterm_cls): Likewise.
4026 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
4027 Support embedding config file.
4028 (add_segments): Likewise.
4029 (options): New option "--config".
4030 (main): Handle "--config".
4031 * video/sm712.c: New file.
4033 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4035 Fix parallel builds.
4037 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
4038 font.c depend on ascii.h).
4040 2010-01-12 Carles Pina i Estany <carles@pina.cat>
4042 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
4044 2010-01-11 Carles Pina i Estany <carles@pina.cat>
4046 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
4047 By default: disabled.
4048 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
4051 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4053 * font/font.c: Update copyright years.
4054 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
4056 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4058 * font/font.c: Include `ascii.h'.
4059 (ASCII_BITMAP_SIZE): New macro.
4060 (ascii_font_glyph): Define.
4061 (ascii_glyph_lookup): New function.
4062 (grub_font_get_string_width): Change comment. If glyph not found, use
4064 (grub_font_get_glyph_with_fallback): If glyph not available returns
4066 * util/grub-mkfont.c (file_formats): New enum.
4067 (options): Add `ascii-bitmaps' new option.
4068 (usage): Add `asii-bitmaps' new option.
4069 (write_font_ascii_bitmap): New function.
4070 (write_font): Rename to ...
4071 (write_font_p2): ... this. Remove print_glyphs call.
4072 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
4073 used. Call print_glyphs.
4074 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
4076 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4078 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
4079 (grub_bin2h_SOURCES): New variable.
4080 * util/bin2h.c: New file.
4082 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4084 * include/multiboot.h: Resynced with spec.
4085 * include/multiboot2.h: Likewise.
4086 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
4087 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
4089 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4091 * include/grub/term.h (grub_term_register_input,
4092 grub_term_register_output): Check return of terminal init()
4093 routines, and abort if errors are raised.
4095 * commands/terminal.c: Update copyright year.
4097 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4099 * commands/terminal.c (grub_cmd_terminal_input)
4100 (grub_cmd_terminal_output): Check return of terminal init()
4101 routines, and abort if errors are raised.
4103 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4105 * include/grub/i386/bsd.h: Fix include pathes.
4107 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4109 Add missing *BSD copyright headers.
4111 * include/grub/aout.h: Add BSD licence.
4112 * include/grub/i386/bsd.h: Parts under different licences moved to ...
4113 * include/grub/i386/freebsd_linker.h: ... here,
4114 * include/grub/i386/freebsd_reboot.h: ... here,
4115 * include/grub/i386/netbsd_bootinfo.h: ... here,
4116 * include/grub/i386/netbsd_reboot.h: ... here,
4117 * include/grub/i386/openbsd_bootarg.h: ... here,
4118 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
4119 licence to each file.
4121 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4123 * acinclude.m4: Remove `nop' assembly instruction; it's not
4124 implemented by all architectures.
4126 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4128 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
4129 ELILO. This is no longer necessary.
4131 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
4133 Added new tool, grub-scrit-check to verify grub.cfg syntax.
4135 * util/grub-script-check.c: grub-script-check tool.
4136 * conf/common.rmk: Make rules for grub-script-check.
4138 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4140 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
4141 spotting it back in 2008. Shame on me for forgetting he did.
4143 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
4145 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4147 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
4148 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
4149 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
4150 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
4151 (GRUB_VIDEO_TYPE_EFI): Rename to ...
4152 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
4154 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
4156 * include/grub/test.h: Add license header.
4157 * tests/example_functional_test.c: Likewise.
4158 * tests/example_unit_test.c: Likewise.
4159 * tests/lib/functional_test.c: Likewise.
4160 * tests/lib/test.c: Likewise.
4161 * tests/lib/unit_test.c: Likewise.
4163 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
4165 Use flag-based instead of hook-based video mode selection and "auto"
4168 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
4169 (grub_video_set_mode): Changed prototype. All users updated.
4170 (grub_video_check_mode_flag): New inline function.
4171 * video/video.c (parse_modespec): New function.
4172 (grub_video_set_mode): Parse flags and keywords.
4174 2010-01-17 Carles Pina i Estany <carles@pina.cat>
4176 * util/misc.c (grub_util_info): Fix the order of the parameters in a
4179 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
4181 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
4183 2010-01-16 Carles Pina i Estany <carles@pina.cat>
4185 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
4187 * util/grub-emu.c (usage): Likewise.
4188 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
4189 * util/i386/efi/grub-mkimage.c (usage): Likewise.
4190 * util/i386/pc/grub-mkimage.c (usage): Likewise.
4191 * util/i386/pc/grub-setup.c (usage): Likewise.
4193 2010-01-16 Carles Pina i Estany <carles@pina.cat>
4195 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
4197 (grub_util_info): Likewise.
4198 (grub_util_error): Likewise.
4199 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
4200 and/or new lines in `grub_util_warna', `grub_util_info',
4201 `grub_util_error' calls.
4202 * util/getroot.c: Likewise.
4203 * util/grub-editenv.c: Likewise.
4204 * util/grub-emu.c: Likewise.
4205 * util/grub-fstest.c: Likewise.
4206 * util/grub-mkdevicemap.c: Likewise.
4207 * util/grub-mkfont.c: Likewise.
4208 * util/grub-mkpasswd-pbkdf2.c: Likewise.
4209 * util/grub-mkrelpath.c: Likewise.
4210 * util/grub-pe2elf.c: Likewise.
4211 * util/grub-probe.c: Likewise.
4212 * util/hostdisk.c: Likewise.
4213 * util/i386/efi/grub-mkimage.c: Likewise.
4214 * util/i386/pc/grub-mkimage.c: Likewise.
4215 * util/i386/pc/grub-setup.c: Likewise.
4216 * util/ieee1275/ofpath.c: Likewise.
4217 * util/mkisofs/eltorito.c: Likewise.
4218 * util/mkisofs/rock.c: Likewise.
4219 * util/mkisofs/write.c: Likewise.
4220 * util/raid.c: Likewise.
4221 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
4222 * util/sparc64/ieee1275/grub-setup.c: Likewise.
4224 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4226 Enable multiboot on non-pc.
4228 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
4229 multiboot.mod and multiboot2.mod to ...
4230 * conf/i386.rmk (pkglib_MODULES): ... here.
4231 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
4233 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
4234 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
4236 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
4237 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
4239 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
4240 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
4242 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
4243 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
4245 (ata_mod_SOURCES): Removed.
4246 (ata_mod_CFLAGS): Likewise.
4247 (ata_mod_LDFLAGS): Likewise.
4248 (relocator_mod_SOURCES): Removed.
4249 (relocator_mod_CFLAGS): Likewise.
4250 (relocator_mod_ASFLAGS): Likewise.
4251 (relocator_mod_LDFLAGS): Likewise.
4253 * include/grub/x86_64/multiboot.h: New file.
4254 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
4257 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4259 Video multiboot support.
4261 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
4263 * include/multiboot.h: Resynced with multiboot specification.
4264 * include/multiboot2.h: Likewise.
4265 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
4266 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
4267 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
4268 (HAS_VGA_TEXT): Likewise.
4269 (accepts_video): New variable.
4270 (grub_multiboot_set_accepts_video): New function.
4271 (grub_multiboot_get_mbi_size): Account for video structures.
4272 (set_video_mode): New function.
4273 (retrieve_video_parameters): Likewise.
4274 (grub_multiboot_make_mbi): Fill video fields.
4276 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4280 * include/grub/video.h (grub_video_driver_id): New type.
4281 (grub_video_adapter): New member 'id'. All users updated.
4282 (grub_video_get_driver_id): New proto.
4283 * video/video.c (grub_video_get_driver_id): New function.
4285 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4287 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
4290 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4292 * normal/cmdline.c (print_completion): Gettextizze.
4294 2001-01-14 Carles Pina i Estany <carles@pina.cat>
4296 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
4298 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4300 * gettext/gettext.c (grub_gettext_translate): Push and pop
4302 (grub_gettext_delete_list): Change comment style.
4303 * kern/err.c (grub_error): Gettextizze.
4304 (grub_fatal): Gettextizze.
4306 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4308 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
4309 (grub_linux16_real_boot): ... this.
4310 * kern/i386/loader.S: Likewise.
4311 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
4312 (grub_linux16_boot): New function. Switches to text mode and calls
4313 grub_linux16_real_boot().
4315 * loader/i386/bsd.c: Include `<grub/video.h>'.
4316 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
4317 text mode before calling grub_unix_real_boot().
4319 * loader/i386/multiboot.c: Include `<grub/video.h>'.
4320 (grub_multiboot_boot): Switch to text mode before calling
4321 grub_relocator32_boot().
4323 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
4324 (grub_chainloader_boot): Switch to text mode before calling
4325 grub_chainloader_real_boot().
4327 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4328 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4330 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
4333 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4334 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4336 * util/grub.d/00_header.in: Define a "savedefault" function for use
4338 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
4340 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4341 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4343 * util/grub-mkconfig_lib.in (save_default_entry): Only set
4344 saved_entry if boot_once is unset.
4345 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
4346 previous saved entry (i.e. grub-reboot).
4348 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4350 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
4352 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4354 * util/grub.d/00_header.in: Use `set var=val' rather than plain
4356 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
4358 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4360 * util/grub-reboot.in: Fix --version output.
4361 * util/grub-set-default.in: Likewise.
4363 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4365 * util/grub.d/00_header.in: Silently ignore zero-sized environment
4368 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4370 * util/grub.d/00_header.in: Quote the value assigned to `default',
4371 in case it contains spaces.
4373 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4375 * util/grub.d/30_os-prober.in: Fix merge error that moved a
4376 `save_default_entry' call from the macosx case to the linux case.
4378 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4379 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
4381 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
4382 in `chosen' environment variable.
4383 * normal/menu_text.c (get_entry_number): Check if the variable
4384 matches the title of a menu entry.
4385 (run_menu): Pass menu to get_entry_number.
4387 * util/grub-reboot.in: New file.
4388 * util/grub-set-default.in: New file.
4389 * conf/common.rmk (grub-reboot): New utility.
4390 (grub-set-default): New utility.
4392 * util/grub-mkconfig_lib.in (save_default_entry): New function.
4393 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
4394 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
4395 move it to `saved_entry' for the next boot. Load environment on
4397 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
4398 * util/grub.d/10_hurd.in: Likewise.
4399 * util/grub.d/10_linux.in (linux_entry): Likewise.
4400 * util/grub.d/10_windows.in: Likewise.
4401 * util/grub.d/30_os-prober.in: Likewise.
4403 * util/grub-install.in: Create environment block.
4404 * util/i386/efi/grub-install.in: Likewise.
4405 * util/ieee1275/grub-install.in: Likewise.
4406 * util/sparc64/ieee1275/grub-install.in: Likewise.
4408 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
4410 Unit testing framework for GRUB.
4412 * Makefile.in: Test framework build rules for 'make check'.
4413 * conf/tests.rmk: Build rules for individual tests and framework.
4415 * include/grub/test.h: Header file for whitebox tests.
4416 * tests/lib/functional_test.c: Framework support for whitebox
4418 * tests/lib/test.c: Common whitebox testing code for unit and
4420 * tests/lib/unit_test.c: Framework support for whitebox unit
4423 * tests/util/grub-shell-tester.in: Support utility for grub-script
4425 * tests/util/grub-shell.in: Utility to execute grub-script
4426 commands in a Qemu instance.
4428 * tests/example_functional_test.c: Example whitebox functional
4430 * tests/example_grub_script_test.in: Example grub-script test.
4431 * tests/example_scripted_test.in: Example scripted test.
4432 * tests/example_unit_test.c: Example whitebox unit test.
4434 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
4436 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
4437 Add loader/i386/multiboot_mbi.c.
4438 (multiboot2_mod_SOURCES): Likewise.
4439 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
4440 (multiboot2_mod_SOURCES): Likewise.
4441 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
4442 (grub_multiboot_make_mbi): Likewise.
4443 (grub_multiboot_free_mbi): Likewise.
4444 (grub_multiboot_init_mbi): Likewise.
4445 (grub_multiboot_add_module): Likewise.
4446 (grub_multiboot_set_bootdev): Likewise.
4447 * loader/i386/multiboot.c (mbi): Removed.
4448 (mbi_dest): Likewise.
4449 (alloc_mbi): New variable.
4450 (grub_multiboot_payload_size): Removed. All users updated.
4451 (grub_multiboot_pure_size): New variable.
4452 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
4453 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
4454 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
4455 (grub_fill_multiboot_mmap): Likewise.
4456 (grub_multiboot_get_bootdev): Likewise.
4457 (grub_multiboot): Use multiboot_mbi functions.
4458 * loader/i386/multiboot_mbi.c: New file.
4460 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4462 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
4463 it would result in module crash.
4465 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4467 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
4468 (grub_ofconsole_getwh): Split to ...
4469 (grub_ofconsole_getwh): ... this.
4470 (grub_ofconsole_dimensions): ...and this.
4471 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
4473 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
4475 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
4477 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4479 * loader/i386/pc/multiboot2.c: Removed stalled file.
4481 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4483 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
4484 Reported by: Grégoire Sutre
4486 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
4488 * util/misc.c (canonicalize_file_name): New function.
4489 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
4490 instead of realpath().
4492 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
4494 * util/grub-install.in (usage): Clarify meaning of --root-directory,
4495 and make it clearer that it's optional. Based on confusion
4498 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4500 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
4501 in premature implicit newline.
4503 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4505 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
4506 which resulted in garbled command line at the end of screen.
4508 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4510 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
4511 initialization with similar approach as with other Linux loaders.
4513 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4515 Fix i386-ieee1275 build.
4517 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
4518 and grub_term_height() for video_{width,height} initialization.
4520 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4524 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
4526 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4527 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4529 Support for multiple terminals.
4531 * Makefile.in (pkglib_DATA): terminal.lst.
4532 (terminal.lst): New target.
4533 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
4534 (GRUB_MOD_INIT(handler)): Likewise.
4535 (GRUB_MOD_FINI(handler)): Likewise.
4536 * commands/help.c (grub_cmd_help): Handle multiple terminals.
4537 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
4538 * commands/sleep.c (do_print): Use grub_term_restore_pos.
4539 (grub_cmd_sleep): Use grub_term_save_pos.
4540 * commands/terminal.c: New file.
4541 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
4542 commands/terminal.c and lib/charset.c.
4543 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
4544 (pkglib_MODULES): Add terminal.mod.
4545 (terminal_mod_SOURCES): New variable.
4546 (terminal_mod_CFLAGS): Likewise.
4547 (terminal_mod_LDFLAGS): Likewise.
4548 * genhandlerlist.sh: Don't handle terminals.
4549 * genmk.rb: Generate terminal-*.lst.
4550 * genterminallist.sh: New file.
4551 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
4552 (grub_is_valid_utf8): Likewise.
4553 (grub_utf8_to_ucs4_alloc): Likewise.
4554 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
4555 (grub_menu_register_viewer): Changed argument.
4556 (grub_menu_try_text): New proto.
4557 (grub_gfxmenu_try_hook): New declaration.
4558 * include/grub/normal.h (grub_normal_exit_level): New declaration.
4559 (grub_menu_init_page): Additional argument term.
4560 (grub_normal_init_page): Likewise.
4561 (grub_cmdline_get): Arguments simplified.
4562 (grub_utf8_to_ucs4_alloc): Removed.
4563 (grub_print_ucs4): Additional argument term.
4564 (grub_getstringwidth): Likewise.
4565 (grub_print_message_indented): Likewise.
4566 (grub_menu_text_register_instances): New proto.
4567 (grub_show_menu): Likewise.
4568 (read_terminal_list): Likewise.
4569 (grub_set_more): Likewise.
4570 * include/grub/parser.h: Include handler.h.
4571 * include/grub/reader.h: Rewritten.
4572 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
4573 (GRUB_TERM_WIDTH): Changed to function.
4574 (GRUB_TERM_HEIGHT): Likewise.
4575 (GRUB_TERM_BORDER_WIDTH): Likewise.
4576 (GRUB_TERM_BORDER_HEIGHT): Likewise.
4577 (GRUB_TERM_NUM_ENTRIES): Likewise.
4578 (GRUB_TERM_ENTRY_WIDTH): Likewise.
4579 (GRUB_TERM_CURSOR_X): Likewise.
4580 (grub_term_input_class): Likewise.
4581 (grub_term_output_class): Likewise.
4582 (grub_term_outputs_disabled): New declaration.
4583 (grub_term_inputs_disabled): Likewise.
4584 (grub_term_outputs): Likewise.
4585 (grub_term_inputs): Likewise.
4586 (grub_term_register_input): Rewritten.
4587 (grub_term_register_output): Likewise.
4588 (grub_term_unregister_input): Likewise.
4589 (grub_term_unregister_output): Likewise.
4590 (FOR_ACTIVE_TERM_INPUTS): New macro.
4591 (FOR_DISABLED_TERM_INPUTS): Likewise.
4592 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
4593 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
4594 * include/grub/terminfo.h: Add oterm argument to all protypes.
4595 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
4596 Use grub_rescue_run.
4597 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
4599 * kern/reader.c: Removed. All users updated.
4600 * kern/rescue_reader.c (grub_rescue_init): Removed.
4601 (grub_rescue_reader): Likewise.
4602 (grub_register_rescue_reader): Likewise.
4603 (grub_rescue_run): New function based on kern/reader.c.
4604 * kern/term.c: Adapted for multiterm.
4605 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
4606 (grub_is_valid_utf8): Likewise.
4607 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
4608 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
4610 * loader/i386/linux.c (grub_linux_boot): Likewise.
4611 * normal/auth.c (grub_username_get): New function.
4612 (grub_auth_check_authentication): Use grub_username_get.
4613 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
4614 * normal/color.c: Adapt for multiterm.
4615 * normal/main.c (read_config_file): Don't use grub_reader_loop.
4616 (grub_normal_init_page): Additional argument term.
4617 (read_lists): Call read_terminal_lists.
4618 (grub_enter_normal_mode): Call grub_cmdline_run.
4619 Handle grub_normal_exit_level.
4620 (grub_cmd_normal): Make reentrant.
4621 (grub_cmd_normal_exit): New function.
4622 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
4623 * normal/menu.c: Adapt for multiterm.
4624 * normal/menu_entry.c: Likewise.
4625 * normal/menu_text.c: Likewise.
4626 * normal/menu_viewer.c: Removed. All users updated.
4627 * normal/term.c: New file.
4628 * util/console.c: Change order of includes to workaround a bug in
4630 * term/terminfo.c: New argument oterm on all exported functions.
4632 * util/grub-editenv.c (grub_term_input_class): Removed.
4633 (grub_term_output_class): Likewise.
4635 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4637 Make loader output a bit more user-friendly.
4639 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
4640 is being loaded. Likewise for the Hurd.
4642 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
4643 that kernel of FreeBSD ${version} is being loaded.
4645 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
4647 (grub_cmd_initrd): Likewise.
4648 * util/grub.d/10_linux.in (linux_entry): Print message indicating
4649 that Linux ${version} is being loaded. Likewise for initrd.
4651 2010-01-09 Carles Pina i Estany <carles@pina.cat>
4653 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
4655 2010-01-08 Carles Pina i Estany <carles@pina.cat>
4657 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
4658 (GRUB_MOD_INIT): Gettextizze.
4659 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
4660 (GRUB_MOD_INIT): Gettextizze.
4661 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
4662 (grub_cmd_linux): Capitalise Linux.
4663 (GRUB_MOD_INIT): Gettextizze.
4664 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
4665 (grub_cmd_linux): Capitalise Linux.
4666 (GRUB_MOD_INIT): Gettextizze.
4667 * loader/i386/linux.c: Include `<grub/i18n.h>'.
4668 (grub_cmd_linux): Capitalise Linux.
4669 (GRUB_MOD_INIT): Gettextizze.
4670 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
4671 (GRUB_MOD_INIT): Gettextizze.
4672 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
4673 (grub_cmd_linux): Capitalise Linux.
4674 (GRUB_MOD_INIT): Gettextizze.
4675 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
4676 (grub_cpu_xnu_init): Gettextizze.
4677 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
4678 (GRUB_MOD_INIT): Gettextizze.
4679 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
4680 (GRUB_MOD_INIT): Gettextizze.
4681 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
4682 (grub_linux_load64): Capitalise Linux.
4683 (GRUB_MOD_INIT): Gettextizze.
4684 * loader/xnu.c: Include `<grub/i18n.h>'.
4685 (GRUB_MOD_INIT): Gettextizze.
4686 * po/POTFILES: Add `loader/efi/appleloader.c',
4687 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
4688 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
4689 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
4690 `loader/i386/xnu.c', `loader/multiboot_loader.c',
4691 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
4694 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
4696 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
4698 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
4700 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
4701 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
4702 * util/mkisofs/mkisofs.c (main): Readjust --version output.
4704 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4706 Reset Multiboot 2 support. New loader implements the draft in
4707 /branches/multiboot2 and shares as much code as possible with the
4708 production Multiboot 1 implementation.
4710 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
4711 * loader/multiboot2.c: Likewise.
4712 * loader/i386/multiboot_helper.S: Likewise.
4713 * include/multiboot2.h: Replace with latest version from the draft
4714 in /branches/multiboot2.
4716 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
4717 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
4718 and `loader/multiboot2.c'.
4719 (pkglib_MODULES): Add `multiboot2.mod'.
4720 (multiboot2_mod_SOURCES): New variable.
4721 (multiboot2_mod_LDFLAGS): Likewise.
4722 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
4724 * conf/i386-pc.rmk: Likewise.
4726 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
4727 (multiboot_mod_SOURCES): Remove variable.
4728 (multiboot_mod_LDFLAGS): Likewise.
4729 (multiboot_mod_CFLAGS): Likewise.
4731 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
4732 `<multiboot2.h>' instead of `<multiboot.h>'.
4733 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
4734 (MULTIBOOT_HEADER_MAGIC): New macros.
4736 * loader/multiboot_loader.c (module_version_status): Remove variable.
4737 (find_multi_boot2_header): Remove function.
4738 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
4739 logic. Always check for the Multiboot version we're compiling for.
4740 (grub_cmd_module_loader): Likewise.
4741 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
4742 command instead of `multiboot'.
4744 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4746 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
4747 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
4750 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4751 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4753 Fix breakage introduced with previous commit.
4755 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
4757 * normal/handler.c (read_handler_list): Revert part of previous commit
4758 affecting this file.
4759 * normal/main.c (read_lists): Move read_handler_list() call back to ...
4760 (grub_normal_execute): ... here.
4762 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4764 Merge prefix-redefinition-fix branch.
4766 * normal/autofs.c (read_fs_list): Make function capable of being
4767 run multiple times, gracefuly replacing the previous data
4769 * normal/dyncmd.c (read_command_list): Likewise.
4770 * normal/handler.c (read_handler_list): Likewise.
4771 * normal/main.c (read_lists): New function. Calls all the
4772 list reading functions.
4773 (grub_normal_execute): Use read_lists() instead of calling all
4774 list reading functions explicitly. Register read_lists() as a
4775 variable hook attached to ${prefix}.
4777 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4779 Merge crypto branch.
4781 * Makefile.in (pkglib_DATA): Add crypto.lst.
4782 (crypto.lst): New target.
4783 * commands/hashsum.c: New file.
4784 * commands/password.c (check_password): Use grub_crypto_memcmp.
4785 * commands/password_pbkdf2.c: New file.
4786 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
4787 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
4788 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
4789 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
4790 -I$(srcdir)/lib/libgcrypt_wrap.
4791 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
4792 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
4793 password_pbkdf2.mod.
4794 (crypto_mod_SOURCES): New variable.
4795 (crypto_mod_CFLAGS): Likewise.
4796 (crypto_mod_LDFLAGS): Likewise.
4797 (hashsum_mod_SOURCES): New variable.
4798 (hashsum_mod_CFLAGS): Likewise.
4799 (hashsum_mod_LDFLAGS): Likewise.
4800 (pbkdf2_mod_SOURCES): New variable.
4801 (pbkdf2_mod_CFLAGS): Likewise.
4802 (pbkdf2_mod_LDFLAGS): Likewise.
4803 (password_pbkdf2_mod_SOURCES): New variable.
4804 (password_pbkdf2_mod_CFLAGS): Likewise.
4805 (password_pbkdf2_mod_LDFLAGS): Likewise.
4806 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
4807 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
4808 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
4809 Include conf/gcry.rmk.
4810 * include/grub/auth.h: Rewritten.
4811 * include/grub/crypto.h: New file.
4812 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
4813 * include/grub/normal.h (read_crypto_list): New prototype.
4814 * lib/crypto.c: New file.
4815 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
4816 * lib/pbkdf2.c: Likewise.
4817 * normal/auth.c (grub_auth_strcmp): Removed.
4818 (grub_iswordseparator): Likewise.
4819 (grub_auth_strword): Likewise.
4820 (is_authenticated): Use grub_strword.
4821 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
4822 and grub_strword. Pass entered password to authentication callback.
4823 * normal/crypto.c: New file.
4824 * normal/main.c: Call read_crypto_list.
4825 * util/grub-mkpasswd-pbkdf2.c: New file.
4826 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
4828 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
4830 Fix descent and ascent calculation.
4832 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
4833 (options): New option "asce".
4835 (add_char): Ignore invalid glyphs for descent calculation.
4836 Calculate ascent from actual content.
4837 (print_glyphs): Use 'asce'.
4838 (write_font): Likewise. Allow ascent override.
4839 (main): Handle "asce" option.
4841 2010-01-06 Carles Pina i Estany <carles@pina.cat>
4843 * kern/err.c: Include `<grub/i18n.h>'.
4844 (grub_print_error): Add full stop. Gettextizze.
4845 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
4846 (grub_bsd_load_elf): Capitalise ELF.
4847 (grub_cmd_freebsd_loadenv): Add `s' in error string.
4848 (grub_cmd_freebsd_module): Likewise.
4849 (grub_cmd_freebsd_module_elf): Likewise.
4850 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
4852 2010-01-06 Carles Pina i Estany <carles@pina.cat>
4854 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
4855 * commands/search_file.c (HELP_MESSAGE): New macro.
4856 * commands/search_label.c (HELP_MESSAGE): Likewise.
4857 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
4858 * po/POTFILES: Add `commands/search_file.c',
4859 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
4860 `commands/search.c'.
4862 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
4864 * config.rpath: Update from Gnulib.
4866 2010-01-05 Yves Blusseau <blusseau@zetam.org>
4868 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
4870 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
4872 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
4874 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4876 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
4877 arguments to fread so that we get a return value in bytes, rather
4878 than something that will normally be rounded down to 0.
4879 Adjust error handling to avoid producing garbage when size_t is not
4880 the same size as long long.
4882 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4884 * util/mkisofs/write.c (padblock_write): Check return value of
4887 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
4889 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
4892 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
4894 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
4896 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
4897 instead of manual alignment.
4898 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
4899 verbose). Avoid attempts to read past end of the device
4900 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
4901 but GRUB_DISK_CACHE_SIZE may exceed that).
4903 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
4905 * commands/crc.c (grub_cmd_crc): Abort on read errors.
4906 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
4909 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4911 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
4913 (grub_efi_piwg_device_path): New structure
4914 (grub_efi_piwg_device_path_t): New type.
4915 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
4916 (devpath_1): Transform to a structure. All users updated.
4917 (devpath_2): Likewise.
4918 (devpath_3): Likewise.
4919 (devpath_4): Likewise.
4920 (devpath_5): Likewise.
4922 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4924 * loader/efi/appleloader.c: Restored. Update all users.
4926 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
4928 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
4930 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
4931 (struct boot_blocklist): Move from here ...
4932 * include/grub/i386/pc/boot.h [ASM_FILE]
4933 (struct grub_boot_blocklist): ... to here. Update all users.
4934 (setup): Only initialize `start' member of `first_block'
4935 structure. Add assert() calls to verify the other members.
4937 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
4938 (generate_image): Fix broken blocklist length initialization.
4939 Add assert() call to verify blocklist `segment' field.
4941 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
4943 * loader/efi/appleloader.c: Remove. Update all users.
4945 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
4947 * boot/i386/pc/boot.S: Update copyright year.
4948 * boot/i386/pc/cdboot.S: Likewise.
4949 * boot/i386/pc/diskboot.S: Likewise.
4950 * boot/i386/pc/lnxboot.S: Likewise.
4951 * boot/i386/pc/pxeboot.S: Likewise.
4952 * bus/pci.c: Likewise.
4953 * commands/cmp.c: Likewise.
4954 * commands/help.c: Likewise.
4955 * commands/hexdump.c: Likewise.
4956 * commands/i386/pc/halt.c: Likewise.
4957 * commands/i386/pc/play.c: Likewise.
4958 * commands/i386/pc/vbeinfo.c: Likewise.
4959 * commands/ls.c: Likewise.
4960 * commands/test.c: Likewise.
4961 * disk/dmraid_nvidia.c: Likewise.
4962 * disk/i386/pc/biosdisk.c: Likewise.
4963 * disk/ieee1275/nand.c: Likewise.
4964 * disk/ieee1275/ofdisk.c: Likewise.
4965 * disk/lvm.c: Likewise.
4966 * disk/raid.c: Likewise.
4967 * disk/raid6_recover.c: Likewise.
4968 * disk/scsi.c: Likewise.
4969 * fs/affs.c: Likewise.
4970 * fs/cpio.c: Likewise.
4971 * fs/ext2.c: Likewise.
4972 * fs/hfs.c: Likewise.
4973 * fs/iso9660.c: Likewise.
4974 * fs/ntfs.c: Likewise.
4975 * fs/sfs.c: Likewise.
4976 * fs/udf.c: Likewise.
4977 * fs/ufs.c: Likewise.
4978 * fs/xfs.c: Likewise.
4979 * gencmdlist.sh: Likewise.
4980 * genmk.rb: Likewise.
4981 * include/grub/disk.h: Likewise.
4982 * include/grub/efi/api.h: Likewise.
4983 * include/grub/efi/efi.h: Likewise.
4984 * include/grub/efi/pe32.h: Likewise.
4985 * include/grub/elf.h: Likewise.
4986 * include/grub/fs.h: Likewise.
4987 * include/grub/i386/at_keyboard.h: Likewise.
4988 * include/grub/i386/pc/memory.h: Likewise.
4989 * include/grub/i386/pc/vbe.h: Likewise.
4990 * include/grub/i386/pci.h: Likewise.
4991 * include/grub/i386/tsc.h: Likewise.
4992 * include/grub/ieee1275/ieee1275.h: Likewise.
4993 * include/grub/ntfs.h: Likewise.
4994 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
4995 * include/grub/sparc64/libgcc.h: Likewise.
4996 * include/grub/symbol.h: Likewise.
4997 * include/grub/types.h: Likewise.
4998 * include/multiboot2.h: Likewise.
4999 * io/gzio.c: Likewise.
5000 * kern/device.c: Likewise.
5001 * kern/disk.c: Likewise.
5002 * kern/efi/efi.c: Likewise.
5003 * kern/efi/mm.c: Likewise.
5004 * kern/elf.c: Likewise.
5005 * kern/file.c: Likewise.
5006 * kern/i386/dl.c: Likewise.
5007 * kern/i386/pc/init.c: Likewise.
5008 * kern/i386/pc/startup.S: Likewise.
5009 * kern/ieee1275/ieee1275.c: Likewise.
5010 * kern/ieee1275/init.c: Likewise.
5011 * kern/main.c: Likewise.
5012 * kern/mm.c: Likewise.
5013 * kern/powerpc/dl.c: Likewise.
5014 * kern/sparc64/dl.c: Likewise.
5015 * kern/x86_64/dl.c: Likewise.
5016 * lib/hexdump.c: Likewise.
5017 * loader/efi/appleloader.c: Likewise.
5018 * loader/i386/ieee1275/linux.c: Likewise.
5019 * loader/i386/pc/chainloader.c: Likewise.
5020 * loader/i386/pc/linux.c: Likewise.
5021 * loader/i386/pc/multiboot2.c: Likewise.
5022 * loader/ieee1275/multiboot2.c: Likewise.
5023 * loader/multiboot2.c: Likewise.
5024 * loader/multiboot_loader.c: Likewise.
5025 * loader/powerpc/ieee1275/linux.c: Likewise.
5026 * normal/completion.c: Likewise.
5027 * normal/menu_entry.c: Likewise.
5028 * partmap/apple.c: Likewise.
5029 * util/grub.d/10_hurd.in: Likewise.
5030 * util/hostfs.c: Likewise.
5031 * video/readers/png.c: Likewise.
5033 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
5035 * include/grub/misc.h (GNUC_PREREQ): New macro.
5036 (ATTRIBUTE_ERROR): New macro.
5037 * include/grub/list.h (grub_bad_type_cast_real): Use
5040 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5042 * normal/menu_text.c (print_message): Change messages.
5044 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5046 * normal/menu_entry.c (store_completion): Gettextizze.
5048 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5050 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
5052 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5054 * po/POTFILES: Sort correctly.
5056 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5058 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
5059 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
5060 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
5062 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
5063 summary. Gettextizze the strings.
5064 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
5065 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
5066 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
5068 (GRUB_MOD_INIT): Remove command name from summary.
5069 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
5071 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
5072 * term/i386/pc/serial.c (options): Add full stops.
5073 (GRUB_MOD_INIT): Remove command name from the summary.
5075 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5077 * commands/acpi.c: Gettextizze help strings and/or options. Include
5078 `grub/i18n.h' if needed.
5079 * commands/blocklist.c: Likewise.
5080 * commands/boot.c: Likewise.
5081 * commands/cat.c: Likewise.
5082 * commands/cmp.c: Likewise.
5083 * commands/configfile.c: Likewise.
5084 * commands/crc.c: Likewise.
5085 * commands/date.c: Likewise.
5086 * commands/echo.c: Likewise.
5087 * commands/efi/fixvideo.c: Likewise.
5088 * commands/efi/loadbios.c: Likewise.
5089 * commands/gptsync.c: Likewise.
5090 * commands/halt.c: Likewise.
5091 * commands/handler.c: Likewise.
5092 * commands/hdparm.c: Likewise.
5093 * commands/hexdump.c: Likewise.
5094 * commands/i386/cpuid.c: Likewise.
5095 * commands/i386/pc/drivemap.c: Likewise.
5096 * commands/i386/pc/halt.c: Likewise.
5097 * commands/i386/pc/pxecmd.c: Likewise.
5098 * commands/i386/pc/vbeinfo.c: Likewise.
5099 * commands/i386/pc/vbetest.c: Likewise.
5100 * commands/ieee1275/suspend.c: Likewise.
5101 * commands/keystatus.c: Likewise.
5102 * commands/loadenv.c: Likewise.
5103 * commands/ls.c: Likewise.
5104 * commands/lsmmap.c: Likewise.
5105 * commands/lspci.c: Likewise.
5106 * commands/memrw.c: Likewise.
5107 * commands/minicmd.c: Likewise.
5108 * commands/parttool.c: Likewise.
5109 * commands/password.c: Likewise.
5110 * commands/probe.c: Likewise.
5111 * commands/read.c: Likewise.
5112 * commands/reboot.c: Likewise.
5113 * commands/search.c: Likewise.
5114 * commands/sleep.c: Likewise.
5115 * commands/test.c: Likewise.
5116 * commands/true.c: Likewise.
5117 * commands/usbtest.c: Likewise.
5118 * commands/videotest.c: Likewise.
5119 * commands/xnu_uuid.c: Likewise.
5120 * disk/loopback.c: Likewise.
5121 * hello/hello.c: Likewise.
5122 * loader/i386/bsd.c: Likewise.
5123 * term/i386/pc/serial.c: Likewise.
5124 * po/POTFILES: Add new files.
5126 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
5128 * term/i386/pc/at_keyboard.c
5129 (keyboard_controller_wait_untill_ready): Rename to ...
5130 (keyboard_controller_wait_until_ready): ... this. Update all users.
5132 2010-01-01 Carles Pina i Estany <carles@pina.cat>
5134 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
5135 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
5136 string using string width.
5137 * normal/menu_text.c (grub_print_message_indented): Use
5138 grub_print_spaces and not print_spaces.
5139 (print_timeout): Likewise.
5140 (print_spaces): Move to...
5141 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
5143 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
5147 * gnulib/getdelim.c: New file.
5148 * gnulib/getline.c: Likewise.
5150 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
5152 * include/grub/list.h (grub_assert_fail): Removed.
5153 (grub_bad_type_cast_real): New function.
5154 (grub_bad_type_cast): New macro.
5155 (GRUB_AS_LIST): Use grub_bad_type_cast.
5156 (GRUB_AS_LIST_P): Likewise.
5157 (GRUB_AS_NAMED_LIST): Likewise.
5158 (GRUB_AS_NAMED_LIST_P): Likewise.
5159 (GRUB_AS_PRIO_LIST): Likewise.
5160 (GRUB_AS_PRIO_LIST_P): Likewise.
5161 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
5163 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
5165 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
5168 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
5170 * configure.ac: Check for TARGET_CFLAGS initialization before we
5171 initialize it ourselves (sigh).
5172 Move a few modifications to TARGET_CFLAGS to be unconditional
5173 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
5176 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
5177 * term/i386/pc/at_keyboard.c
5178 (keyboard_controller_wait_untill_ready): Likewise.
5179 (keyboard_controller_led): Rename `led_status' paramter to avoid
5182 2009-12-28 Carles Pina i Estany <carles@pina.cat>
5184 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
5187 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5189 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
5191 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5193 * normal/menu_text.c (grub_print_message_indented): Prevent
5194 past-the-end-of-array dereference.
5196 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5198 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
5199 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
5201 2009-12-27 Carles Pina i Estany <carles@pina.cat>
5203 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
5204 * normal/main.c (grub_normal_read_line): Remove a space from the
5207 2009-12-27 Carles Pina i Estany <carles@pina.cat>
5209 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
5210 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5211 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5212 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5213 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5214 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5215 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5217 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5219 * video/readers/jpeg.c (cmd): Declare.
5220 (grub_cmd_jpegtest): Use `grub_command_t' type.
5221 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5223 (GRUB_MOD_FINI): Use `cmd' to unregister.
5224 * video/readers/png.c (cmd): Declare.
5225 (grub_cmd_pngtest): Use `grub_command_t' type.
5226 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5228 (GRUB_MOD_FINI): Use `cmd' to unregister.
5229 * video/readers/tga.c (cmd): Declare.
5230 (grub_cmd_tgatest): Use `grub_command_t' type.
5231 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5233 (GRUB_MOD_FINI): Use `cmd' to unregister.
5235 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5237 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
5239 * kern/corecmd.c (grub_register_core_commands): Likewise.
5240 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
5241 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5242 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
5243 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5244 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5245 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
5246 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5247 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
5248 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5249 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5250 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5251 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5252 * normal/handler.c (insert_handler): Likewise.
5253 * normal/main.c (GRUB_MOD_INIT): Likewise.
5254 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
5256 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5258 * commands/help.c (grub_cmd_help): Print the command name before the
5260 (GRUB_MOD_INIT): Remove command name from the summary.
5261 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
5263 * lib/arg.c (find_long): Print the command name before the summary.
5264 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
5266 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
5267 * commands/cat.c (GRUB_MOD_INIT): Likewise.
5268 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
5269 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
5270 * commands/crc.c (GRUB_MOD_INIT): Likewise.
5271 * commands/date.c (GRUB_MOD_INIT): Likewise.
5272 * commands/echo.c (GRUB_MOD_INIT): Likewise.
5273 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
5274 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
5275 * commands/handler.c (GRUB_MOD_INIT): Likewise.
5276 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
5277 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
5278 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
5279 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
5280 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
5281 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
5282 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
5283 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
5284 * commands/ls.c (GRUB_MOD_INIT): Likewise.
5285 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
5286 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
5287 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
5288 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
5289 * commands/password.c (GRUB_MOD_INIT): Likewise.
5290 * commands/probe.c (GRUB_MOD_INIT): Likewise.
5291 * commands/read.c (GRUB_MOD_INIT): Likewise.
5292 * commands/search.c (GRUB_MOD_INIT): Likewise.
5293 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
5294 * commands/test.c (GRUB_MOD_INIT): Likewise.
5295 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
5296 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
5297 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
5298 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
5299 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
5300 * lib/arg.c (GRUB_MOD_INIT): Likewise.
5301 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
5302 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5303 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5304 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5305 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
5306 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
5307 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
5308 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
5310 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5312 Use search command for preliminar UUID search.
5314 * commands/search.c: Split into ...
5315 * commands/search_wrap.c: ...this
5316 * commands/search.c: ...and this.
5317 * commands/search_file.c: New file.
5318 * commands/search_label.c: New file.
5319 * commands/search_uuid.c: New file.
5320 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
5321 Add commands/search_wrap.c, commands/search_file.c,
5322 commands/search_label.c and commands/search_uuid.c.
5323 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
5324 (search_mod_SOURCES): Set to commands/search_wrap.c.
5325 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
5327 (search_fs_file_mod_SOURCES): New variable.
5328 (search_fs_file_mod_CFLAGS): Likewise.
5329 (search_fs_file_mod_LDFLAGS): Likewise.
5330 (search_label_mod_SOURCES): Likewise.
5331 (search_label_mod_CFLAGS): Likewise.
5332 (search_label_mod_LDFLAGS): Likewise.
5333 (search_fs_uuid_mod_SOURCES): New variable.
5334 (search_fs_uuid_mod_CFLAGS): Likewise.
5335 (search_fs_uuid_mod_LDFLAGS): Likewise.
5336 (fs_file_mod_SOURCES): Removed.
5337 (fs_file_mod_CFLAGS): Likewise.
5338 (fs_file_mod_LDFLAGS): Likewise.
5339 (fs_uuid_mod_SOURCES): Removed.
5340 (fs_uuid_mod_CFLAGS): Likewise.
5341 (fs_uuid_mod_LDFLAGS): Likewise.
5342 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
5343 Set to util/grub-install.in.
5344 * disk/fs_file.c: Removed.
5345 * disk/fs_uuid.c: Likewise.
5346 * include/grub/search.h: New file.
5347 * util/grub-install.in: Handle sparc64.
5348 Create and use load.cfg.
5349 * util/sparc64/ieee1275/grub-install.in: Removed.
5351 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5353 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
5354 Ignore return status if CF is cleared.
5355 (grub_biosdisk_get_diskinfo_standard): Likewise.
5357 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5359 * term/i386/pc/at_keyboard.c
5360 (keyboard_controller_wait_untill_ready): New function.
5361 (grub_keyboard_controller_write, grub_keyboard_controller_read)
5362 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
5363 for keyboard polling, rather than duplicate the same loop. This
5364 saves a few bytes in code size.
5366 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5368 Support for (pxe[:server[:gateway]]) syntax and
5369 use environment variable for PXE.
5371 * commands/i386/pc/pxecmd.c (options): Removed.
5372 (print_ip): Removed.
5373 (grub_cmd_pxe): Removed
5374 (grub_cmd_pxe_unload): New function.
5375 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
5376 (grub_pxe_your_ip): Made static.
5377 (grub_pxe_default_server_ip): Likewise.
5378 (grub_pxe_default_gateway_ip): Likewise.
5379 (grub_pxe_blksize): Likewise.
5380 (parse_ip): New function.
5381 (grub_pxe_open): Support server and gateway specification.
5382 (grub_pxe_close): Free disk->data.
5383 (grub_pxefs_open): Use disk->data.
5384 (grub_pxefs_read): Likewise.
5385 (grub_env_write_readonly): New function.
5386 (set_mac_env): Likewise.
5387 (set_env_limn_ro): Likewise.
5388 (parse_dhcp_vendor): Likewise.
5389 (grub_pxe_detect): Set the environment variables.
5390 (set_ip_env): New function.
5391 (write_ip_env): Likewise.
5392 (grub_env_write_pxe_default_server): Likewise.
5393 (grub_env_write_pxe_default_gateway): Likewise.
5394 (grub_env_write_pxe_blocksize): Likewise.
5395 (GRUB_MOD_INIT(pxe)): Set environment variables.
5396 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
5397 (grub_pxe_mac_addr_t): ... this. All users updated.
5398 (grub_pxe_your_ip): Removed.
5399 (grub_pxe_server_ip): Likewise.
5400 (grub_pxe_gateway_ip): Likewise.
5401 (grub_pxe_blksize): Likewise.
5403 2009-12-25 Carles Pina i Estany <carles@pina.cat>
5405 * commands/help.c: Include `<grub/i18n.h>'.
5406 (grub_cmd_help): Gettextizze.
5407 (GRUB_MOD_INIT): Likewise.
5408 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
5409 (GRUB_MOD_INIT): Gettextizze.
5410 * commands/search.c: Include `<grub/i18n.h>'.
5411 (options): Gettextizze.
5412 (GRUB_MOD_INIT): Gettextizze.
5413 * lib/arg.c: Include `<grub/i18n.h>'.
5414 (help_options): Gettextizze.
5415 (find_long): Likewise.
5416 (grub_arg_show_help): Likewise.
5417 * normal/dyncmd.c: Include `<grub/i18n.h>'.
5418 (read_command_list): Gettextizze.
5419 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
5420 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
5422 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5424 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
5425 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
5426 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
5427 (led_status): New variable.
5428 (keyboard_controller_led): New function.
5429 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
5430 update led status for caps lock, num lock and scroll lock.
5432 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
5434 * util/hostdisk.c (open_device): Fix a comment.
5436 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5438 * util/grub-install.in (host_os): New variable.
5439 * util/i386/efi/grub-install.in (host_os): Likewise.
5441 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5443 * util/mkisofs/write.c (padblock_write): Abort when given an
5444 excedingly large embed image, instead of silently truncating it.
5446 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5448 * include/multiboot.h: Indentation fixes.
5450 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5452 * include/multiboot.h (struct multiboot_aout_symbol_table)
5453 (struct multiboot_elf_section_header_table): New structure
5454 declarations (stolen from GRUB Legacy).
5455 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
5458 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
5459 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
5462 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5464 * include/multiboot.h: Make comments src2texi-friendly.
5466 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5468 For consistency with [multiboot]/docs/boot.S.
5470 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
5471 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
5472 (MULTIBOOT_MAGIC2): Rename from this ...
5473 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
5475 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5477 * include/multiboot.h: Remove `<grub/types.h>'.
5478 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
5479 types. Update all users.
5481 2009-12-25 Carles Pina i Estany <carles@pina.cat>
5483 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
5484 `couldn't' and `can not' by `cannot'.
5485 * commands/i386/pc/drivemap.c: Likewise.
5486 * disk/ata.c: Likewise.
5487 * disk/ieee1275/nand.c: Likewise.
5488 * fs/affs.c: Likewise.
5489 * fs/fat.c: Likewise.
5490 * fs/hfs.c: Likewise.
5491 * fs/hfsplus.c: Likewise.
5492 * fs/iso9660.c: Likewise.
5493 * fs/jfs.c: Likewise.
5494 * fs/minix.c: Likewise.
5495 * fs/reiserfs.c: Likewise.
5496 * fs/sfs.c: Likewise.
5497 * fs/udf.c: Likewise.
5498 * fs/ufs.c: Likewise.
5499 * fs/xfs.c: Likewise.
5500 * loader/powerpc/ieee1275/linux.c: Likewise.
5501 * loader/sparc64/ieee1275/linux.c: Likewise.
5502 * util/grub-probe.c: Likewise.
5503 * util/misc.c: Likewise.
5505 2009-12-24 Carles Pina i Estany <carles@pina.cat>
5507 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
5509 * commands/acpi.c: Likewise.
5510 * commands/blocklist.c: Likewise.
5511 * commands/efi/loadbios.c: Likewise.
5512 * commands/i386/pc/drivemap.c: Likewise.
5513 * commands/loadenv.c: Likewise.
5514 * commands/memrw.c: Likewise.
5515 * commands/password.c: Likewise.
5516 * commands/videotest.c: Likewise.
5517 * disk/ata.c: Likewise.
5518 * disk/ata_pthru.c: Likewise.
5519 * disk/dmraid_nvidia.c: Likewise.
5520 * disk/ieee1275/nand.c: Likewise.
5521 * disk/ieee1275/ofdisk.c: Likewise.
5522 * disk/loopback.c: Likewise.
5523 * disk/lvm.c: Likewise.
5524 * disk/mdraid_linux.c: Likewise.
5525 * disk/raid.c: Likewise.
5526 * disk/raid6_recover.c: Likewise.
5527 * disk/scsi.c: Likewise.
5528 * efiemu/main.c: Likewise.
5529 * efiemu/mm.c: Likewise.
5530 * efiemu/pnvram.c: Likewise.
5531 * efiemu/symbols.c: Likewise.
5532 * font/font.c: Likewise.
5533 * fs/cpio.c: Likewise.
5534 * fs/hfsplus.c: Likewise.
5535 * fs/iso9660.c: Likewise.
5536 * fs/jfs.c: Likewise.
5537 * fs/minix.c: Likewise.
5538 * fs/ntfs.c: Likewise.
5539 * fs/ntfscomp.c: Likewise.
5540 * fs/reiserfs.c: Likewise.
5541 * fs/ufs.c: Likewise.
5542 * fs/xfs.c: Likewise.
5543 * gettext/gettext.c: Likewise.
5544 * include/grub/auth.h: Likewise.
5545 * kern/elf.c: Likewise.
5546 * kern/file.c: Likewise.
5547 * kern/ieee1275/init.c: Likewise.
5548 * kern/ieee1275/mmap.c: Likewise.
5549 * kern/ieee1275/openfw.c: Likewise.
5550 * kern/powerpc/dl.c: Likewise.
5551 * kern/sparc64/dl.c: Likewise.
5552 * lib/arg.c: Likewise.
5553 * loader/i386/bsd.c: Likewise.
5554 * loader/i386/bsdXX.c: Likewise.
5555 * loader/i386/efi/linux.c: Likewise.
5556 * loader/i386/efi/xnu.c: Likewise.
5557 * loader/i386/ieee1275/linux.c: Likewise.
5558 * loader/i386/linux.c: Likewise.
5559 * loader/i386/multiboot.c: Likewise.
5560 * loader/i386/pc/linux.c: Likewise.
5561 * loader/i386/pc/multiboot2.c: Likewise.
5562 * loader/i386/xnu.c: Likewise.
5563 * loader/ieee1275/multiboot2.c: Likewise.
5564 * loader/macho.c: Likewise.
5565 * loader/machoXX.c: Likewise.
5566 * loader/multiboot2.c: Likewise.
5567 * loader/multiboot_loader.c: Likewise.
5568 * loader/powerpc/ieee1275/linux.c: Likewise.
5569 * loader/sparc64/ieee1275/linux.c: Likewise.
5570 * loader/xnu.c: Likewise.
5571 * loader/xnu_resume.c: Likewise.
5572 * mmap/i386/pc/mmap.c: Likewise.
5573 * normal/menu_viewer.c: Likewise.
5574 * partmap/acorn.c: Likewise.
5575 * partmap/amiga.c: Likewise.
5576 * partmap/apple.c: Likewise.
5577 * script/lexer.c: Likewise.
5578 * term/gfxterm.c: Likewise.
5579 * term/i386/pc/serial.c: Likewise.
5580 * term/i386/pc/vga.c: Likewise.
5581 * term/ieee1275/ofconsole.c: Likewise.
5582 * term/terminfo.c: Likewise.
5583 * video/bitmap.c: Likewise.
5584 * video/efi_gop.c: Likewise.
5585 * video/efi_uga.c: Likewise.
5586 * video/fb/video_fb.c: Likewise.
5587 * video/i386/pc/vbe.c: Likewise.
5588 * video/readers/tga.c: Likewise.
5589 * video/video.c: Likewise.
5591 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
5593 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
5594 * commands/lspci.c: Likewise.
5595 * commands/probe.c: Likewise.
5596 * commands/xnu_uuid.c: Likewise.
5597 * conf/i386-coreboot.rmk: Likewise.
5598 * conf/i386-efi.rmk: Likewise.
5599 * conf/i386-ieee1275.rmk: Likewise.
5600 * conf/i386-pc.rmk: Likewise.
5601 * conf/powerpc-ieee1275.rmk: Likewise.
5602 * conf/sparc64-ieee1275.rmk: Likewise.
5603 * conf/x86_64-efi.rmk: Likewise.
5604 * fs/i386/pc/pxe.c: Likewise.
5605 * gettext/gettext.c: Likewise.
5606 * include/grub/efi/graphics_output.h: Likewise.
5607 * include/grub/i386/pc/memory.h: Likewise.
5608 * kern/env.c: Likewise.
5609 * kern/i386/qemu/startup.S: Likewise.
5610 * lib/i386/pc/biosnum.c: Likewise.
5611 * lib/i386/relocator.c: Likewise.
5612 * lib/i386/relocator_asm.S: Likewise.
5613 * lib/relocator.c: Likewise.
5614 * loader/i386/bsd.c: Likewise.
5615 * loader/i386/multiboot.c: Likewise.
5616 * loader/i386/pc/chainloader.c: Likewise.
5617 * loader/i386/xnu.c: Likewise.
5618 * loader/xnu.c: Likewise.
5619 * normal/main.c: Likewise.
5620 * normal/menu_text.c: Likewise.
5621 * util/getroot.c: Likewise.
5622 * util/grub-mkconfig_lib.in: Likewise.
5623 * util/grub.d/00_header.in: Likewise.
5624 * util/i386/pc/grub-mkimage.c: Likewise.
5625 * util/mkisofs/eltorito.c: Likewise.
5626 * util/mkisofs/exclude.h: Likewise.
5627 * util/mkisofs/hash.c: Likewise.
5628 * util/mkisofs/iso9660.h: Likewise.
5629 * util/mkisofs/joliet.c: Likewise.
5630 * util/mkisofs/mkisofs.c: Likewise.
5631 * util/mkisofs/mkisofs.h: Likewise.
5632 * util/mkisofs/multi.c: Likewise.
5633 * util/mkisofs/name.c: Likewise.
5634 * util/mkisofs/rock.c: Likewise.
5635 * util/mkisofs/tree.c: Likewise.
5636 * util/mkisofs/write.c: Likewise.
5637 * video/efi_gop.c: Likewise.
5639 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
5641 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
5644 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5646 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
5647 * genmk.rb (class SCRIPT): Modify the target file instead of source.
5649 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5651 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
5652 (GRUB_MOD_INIT(memrw)): Update help line.
5654 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5656 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
5657 Use grub_extcmd_t. All users updated.
5658 (options): New variable.
5659 (grub_cmd_read): Restructure for readability. Support "-v" option.
5660 (grub_cmd_write): Restructure for readability.
5662 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5664 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
5666 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5668 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
5669 with the actual contents of the correspondending make variable.
5670 * util/grub-mkrescue.in (pkglib_DATA): New variable.
5671 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
5672 specifying `*.lst' and `efiemu??.o'
5674 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5676 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
5677 after function name.
5678 Noticed by Rene Engelhard <rene@debian.org>.
5680 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5682 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
5683 (options): New variable.
5684 (iospace): Likewise.
5685 (grub_lspci_iter): List IO spaces if "-i" was given.
5686 (grub_cmd_lspci): Parse options.
5687 (GRUB_MOD_INIT(lspci)): Use extcmd.
5688 (GRUB_MOD_FINI(lspci)): Likewise.
5690 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5692 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
5694 Patch by Tony Mancill <tmancill@debian.org>.
5696 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5698 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
5699 (grub_uhci_portstatus): Likewise.
5700 (grub_uhci_portstatus): Add necessary delay.
5701 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
5703 2009-12-21 Carles Pina i Estany <carles@pina.cat>
5705 * commands/acpi.c (options): Fix capitalizations and/or full stops.
5706 (GRUB_MOD_INIT): Likewise.
5707 * commands/boot.c (GRUB_MOD_INIT): Likewise.
5708 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
5709 * commands/echo.c (options): Fix capitalizations and/or full stops.
5710 * commands/efi/loadbios.c (enable_rom_area): Likewise.
5711 (enable_rom_area): Likewise.
5712 (GRUB_MOD_INIT): Likewise.
5713 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
5714 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
5715 * commands/handler.c (GRUB_MOD_INIT): Likewise.
5716 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
5717 * commands/hexdump.c (options): Likewise.
5718 * commands/i386/cpuid.c (options): Likewise.
5719 (GRUB_MOD_INIT): Likewise.
5720 * commands/i386/pc/drivemap.c (options): Likewise.
5721 (GRUB_MOD_INIT): Likewise.
5722 * commands/i386/pc/halt (options): Likewise.
5723 (GRUB_MOD_INIT): Likewise.
5724 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
5725 * commands/i386/pc/pxecmd.c (options): Likewise.
5726 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
5727 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
5728 * commands/keystatus.c (options): Likewise.
5729 (GRUB_MOD_INIT): Likewise.
5730 * commands/loadenv.c (options): Likewise.
5731 * commands/ls.c (options): Likewise.
5732 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
5733 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
5734 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
5735 * commands/parttool.c (helpmsg): Likewise.
5736 * commands/probe.c (options): Likewise.
5737 * commands/read.c (GRUB_MOD_INIT): Likewise.
5738 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
5739 * commands/search.c (options): Likewise.
5740 * commands/sleep.c (options): Likewise.
5741 * commands/test.c (GRUB_MOD_INIT): Likewise.
5742 * commands/true.c (GRUB_MOD_INIT): Likewise.
5743 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
5744 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
5745 * lib/arg.c (help_options): Likewise.
5746 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
5748 * po/POTFILES: Add `commands/loadenv.c'.
5750 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
5752 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
5753 instead of specifying them explicit.
5755 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5757 * NEWS: Add grub-probe support for GNU/Hurd.
5759 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5761 * NEWS: gettext was added after 1.97.
5763 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5765 * util/mkisofs/msdos_partition.h: New file (based on
5766 include/grub/msdos_partition.h).
5767 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
5768 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
5769 (ld_options, main): Recognize --protective-msdos-label.
5770 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
5771 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
5772 (padblock_write): If `use_protective_msdos_label' is set, patch a
5773 protective DOS-style label in the output image.
5775 * util/grub-mkrescue.in: Use --protective-msdos-label.
5777 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5779 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
5782 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5784 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
5786 (ld_options, main): Recognize `--embedded-boot'.
5787 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
5789 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
5790 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
5791 (padblock_write): Likewise. Rewrite to support embedded boot image.
5793 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
5794 for BIOS-based disk boot instead of only ElTorito.
5796 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5798 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
5799 build (not needed for bootstrap).
5801 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5803 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
5804 from i386-pc build (not needed for bootstrap).
5805 Rewrite a pair of strings.
5807 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5809 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
5811 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
5813 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
5815 2009-12-21 Andreas Born <futur.andy@googlemail.com>
5817 * kern/env.c (grub_env_context_open): Mark exported variable for
5820 2009-12-21 Andreas Born <futur.andy@googlemail.com>
5822 * kern/env.c (grub_env_export): Create nonexistent variables before
5825 2009-12-20 Carles Pina i Estany <carles@pina.cat>
5827 * include/grub/auth.h: Include `<grub/i18n.h>'.
5828 (GRUB_GET_PASSWORD): Gettextizze string.
5829 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
5831 (grub_utf8_to_ucs4_alloc): Fix indentation.
5832 (grub_print_ucs4): Likewise.
5833 (grub_getstringwidth): Likewise.
5834 (print_message_indented): New declaration.
5835 * normal/auth.c: Include `<grub/i18n.h>'.
5836 (grub_auth_check_authentication): Gettexttize string.
5837 * normal/cmdline.c: Include `<grub/i18n.h>'.
5838 (grub_cmdline_get): Gettextizze.
5839 * normal/color.c: Include `<grub/i18n.h>'.
5840 (grub_parse_color_name_pair): Gettexttize strings.
5841 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
5842 string (use `print_message_indented').
5843 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
5844 `include/grub/normal.h'.
5845 (print_message_indented): Renamed to ...
5846 (grub_print_message_indented): ... this. Remove `static' qualifer (now
5847 used in normal/main.c).
5848 (print_message): Use `grub_print_message_indented' instead of
5849 `print_message_indented'.
5850 (print_timeout): Likewise.
5851 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
5852 (grub_normal_print_device_info): Gettexttize strings.
5853 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
5855 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
5857 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
5858 of arguments. Return number of tokens and not arguments. All users
5861 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
5863 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
5864 non-MSDOS paritions.
5866 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
5868 * include/grub/types.h (UNUSED): Removed since it conflicts with
5869 NetBSD headers. All users changed to direct __attribute__ ((unused)).
5870 Reported by Grégoire Sutre.
5872 2009-12-19 Carles Pina i Estany <carles@pina.cat>
5874 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
5875 (grub_print_ucs4_alloc): Likewise.
5876 (grub_getstringwidth): Likewise.
5877 * normal/main.c (grub_normal_init_page): Gettextize version string.
5878 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
5879 (getstringwidth): Renamed to ...
5880 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
5881 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
5882 (grub_print_ucs4): Remove `static' qualifer (now used in
5884 * po/POTFILES: Add normal/main.c.
5886 2009-12-19 Carles Pina i Estany <carles@pina.cat>
5888 * normal/menu_text.c (STANDARD_MARGIN): New macro.
5889 (print_message_indented): Add `margin_left' and `margin_right'
5891 (print_message): Update `print_message_indented' calls. Adds '\n' to the
5893 (print_timeout): Use `print_message_indented' to print the message.
5894 Deletes `second_stage' parameter.
5895 (run_menu): Update `print_timeout' calls.
5897 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
5899 Fix console palette on OpenFirmware.
5901 * term/ieee1275/ofconsole.c (MAX): Removed.
5902 (colors): Redone based on VGA palette.
5903 (grub_ofconsole_setcolor): Discard brightness bit since only 8
5904 colors are supported.
5905 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
5907 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
5909 Fix potential EfiEmu double prepare.
5911 * efiemu/main.c (prepared): New variable
5912 (grub_efiemu_unload): Set prepare to '0'.
5913 (grub_efiemu_prepare): Return if already prepared. Set prepared.
5915 set_virtual_address_map support.
5917 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
5919 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
5921 (grub_efiemu_crc32): Likewise.
5922 (grub_efiemu_crc64): Likewise.
5923 (grub_efiemu_set_virtual_address_map): Likewise.
5924 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
5926 (grub_autoefi_set_virtual_address_map): Likewise.
5927 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
5928 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
5929 Restructure flow to accomodate it.
5930 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
5931 (grub_efiemu_crc): Recompute CRC32.
5932 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
5933 (efiemu_ptv_relocated): ... this. Made global. All users updated.
5934 * efiemu/symbols.c (relocated_handle): New variable.
5935 (grub_efiemu_free_syms): Free relocated_handle.
5936 (grub_efiemu_alloc_syms): Allocate relocated_handle.
5937 (grub_efiemu_write_sym_markers): New function.
5938 (grub_efiemu_set_virtual_address_map): Likewise.
5940 Newer XNU parameters.
5942 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
5943 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
5944 (grub_xnu_fill_devicetree): New prototype.
5945 (grub_xnu_heap_real_start): New variable.
5946 * loader/xnu.c (get_name_ptr): New function.
5947 (grub_xnu_load_driver): Fill namelen and name.
5951 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
5952 and 'loader/macho64.c'.
5953 * conf/i386-pc.rmk: Likewise.
5954 * conf/x86_64-efi.rmk: Likewise.
5955 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
5956 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
5957 * include/grub/macho.h (grub_macho_segment64): New structure.
5958 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
5959 (grub_macho_size32): ... to this.
5960 (grub_macho32_get_entry_point): Renamed from ...
5961 (grub_macho_get_entry_point32): ... to this.
5962 (grub_macho_contains_macho64): New prototype.
5963 (grub_macho_size64): Likewise.
5964 (grub_macho_get_entry_point64): Likewise.
5965 (grub_macho32_load): Renamed from ...
5966 (grub_macho_load32): ... to this.
5967 (grub_macho32_filesize): Renamed from ...
5968 (grub_macho_filesize32): ... to this.
5969 (grub_macho32_readfile): Renamed from ...
5970 (grub_macho_readfile32): ... to this.
5971 (grub_macho_filesize64): New prototype.
5972 (grub_macho_readfile64): Likewise.
5973 (grub_macho_parse32): Likewise.
5974 (grub_macho_parse64): Likewise.
5975 * loader/macho.c: Split into ...
5976 * loader/machoXX.c: ... and this. Replace 32 with XX.
5977 * loader/macho32.c: New file.
5978 * loader/macho64.c: Likewise.
5979 * loader/xnu.c (grub_xnu_is_64bit): New variable.
5980 (grub_cmd_xnu_kernel): Make 32-bit only.
5981 (grub_cmd_xnu_kernel64): New function.
5982 (grub_xnu_load_driver): Support Mach-O 64.
5983 (grub_cmd_xnu_mkext): Likewise.
5984 * util/grub.d/30_os-prober.in (osx_entry): New function.
5985 Generate entries for 64-bit boot too.
5987 Eliminate ad-hoc tree format in XNU and EfiEmu.
5989 * efiemu/main.c (grub_efiemu_prepare): Update comment.
5990 * efiemu/pnvram.c: Rewritten to use environment variables.
5993 Inline utf16_to_utf8.
5995 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
5996 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
5998 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
6000 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
6001 * commands/usbtest.c (grub_usb_get_string): ... move here.
6002 (usb_print_str): Fix error handling.
6003 * include/grub/usb.h (grub_usb_get_string): Remove.
6005 UTF-8 to UTF-16 transformation.
6007 * conf/common.rmk (pkglib_MODULES): Add charset.mod
6008 (charset_mod_SOURCES): New variable.
6009 (charset_mod_CFLAGS): Likewise.
6010 (charset_mod_LDFLAGS): Likewise.
6011 * include/grub/utf.h: New file.
6012 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
6014 Support for device properties.
6016 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
6017 (grub_xnu_devprop_device_header): Likewise.
6018 (grub_xnu_devprop_device_descriptor): Likewise.
6019 (grub_xnu_devprop_add_device): New prototype.
6020 (grub_xnu_devprop_remove_device): Likewise.
6021 (grub_xnu_devprop_remove_property): Likewise.
6022 (grub_xnu_devprop_add_property_utf8): Likewise.
6023 (grub_xnu_devprop_add_property_utf16): Likewise.
6024 (grub_cpu_xnu_init): Likewise.
6025 (grub_cpu_xnu_fini): Likewise.
6026 (grub_cpu_xnu_unload): Likewise.
6027 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
6028 (property_descriptor): Likewise.
6029 (devices): New variable.
6030 (grub_xnu_devprop_remove_property): New function.
6031 (grub_xnu_devprop_add_device): Likewise.
6032 (grub_xnu_devprop_remove_device): Likewise.
6033 (grub_xnu_devprop_add_property): Likewise.
6034 (grub_xnu_devprop_add_property_utf8): Likewise.
6035 (grub_xnu_devprop_add_property_utf16): Likewise.
6036 (hextoval): Likewise.
6037 (grub_cpu_xnu_fill_devprop): Likewise.
6038 (grub_cmd_devprop_load): Likewise.
6039 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
6040 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
6041 (cmd_devprop_load): New variable.
6042 (grub_cpu_xnu_init): New function.
6043 (grub_cpu_xnu_fini): Likewise.
6044 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
6045 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
6046 (grub_cmd_xnu_devtree): Likewise.
6047 (hextoval): New function.
6048 (unescape): Likewise.
6049 (grub_xnu_fill_devicetree): Likewise.
6051 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
6052 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
6054 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6056 Workaround for broken ATI VBE.
6058 * video/i386/pc/vbe.c (last_set_mode): New variable.
6059 (grub_vbe_set_video_mode): Set 'last_set_mode'.
6060 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
6061 (grub_video_vbe_setup): Don't check for reserved flag.
6063 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
6065 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
6068 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
6070 UUID support for HFS.
6072 * fs/hfs.c (grub_hfs_uuid): New function.
6073 (grub_hfs_fs): New value .uuid.
6074 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
6076 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
6078 Fix a segfault with parsing unknown long options.
6080 * util/grub-mkrelpath.c (options): Zero terminate it.
6082 2009-12-13 Carles Pina i Estany <carles@pina.cat>
6084 * include/grub/misc.h (grub_puts): New declaration.
6085 (grub_puts_): Likewise.
6086 * kern/misc.c (grub_puts): New definition.
6087 (grub_puts_): Likewise.
6089 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6091 * util/grub-probe.c (probe): Improve error message.
6093 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6095 * loader/i386/multiboot_elfxx.c
6096 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
6099 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6103 * loader/i386/xnu_helper.S: Removed. All users updated.
6104 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
6105 (relocator_mod_SOURCES): New variable.
6106 (relocator_mod_CFLAGS): Likewise.
6107 (relocator_mod_LDFLAGS): Likewise.
6108 (relocator_mod_ASFLAGS): Likewise.
6109 * conf/x86_64.rmk: Likewise.
6110 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
6111 (grub_multiboot_payload_entry_offset): Likewise.
6112 (grub_multiboot_forward_relocator): Likewise.
6113 (grub_multiboot_forward_relocator_end): Likewise.
6114 (grub_multiboot_backward_relocator): Likewise.
6115 (grub_multiboot_backward_relocator_end): Likewise.
6116 (grub_multiboot_payload_eip): New variable.
6117 (grub_multiboot_payload_orig): Likewise.
6118 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
6119 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
6120 * include/grub/i386/memory.h
6121 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
6122 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
6123 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
6124 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
6125 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
6126 * include/grub/i386/relocator.h: New file.
6127 * include/grub/x86_64/relocator.h: Likewise.
6128 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
6129 (XNU_RELOCATOR): New macro.
6130 (grub_xnu_launcher_start): Remove.
6131 (grub_xnu_launcher_end): Likewise.
6132 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
6133 (grub_xnu_heap_real_start): Remove.
6134 (grub_xnu_heap_start): Change to void *. All users updated.
6135 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
6136 * lib/i386/relocator.c: New file.
6137 * lib/i386/relocator_asm.S: Likewise.
6138 * lib/i386/relocator_backward.S: Likewise.
6139 * lib/mips/relocator.c: Likewise.
6140 * lib/mips/relocator_asm.S: Likewise.
6141 * lib/relocator.c: Likewise.
6142 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
6144 (playground): Likewise.
6145 (grub_multiboot_payload_orig): New variable.
6146 (grub_multiboot_payload_dest): Likewise.
6147 (grub_multiboot_payload_size): Likewise.
6148 (grub_multiboot_payload_eip): Likewise.
6149 (grub_multiboot_payload_esp): Likewise.
6150 (grub_multiboot_boot): Use grub_relocator32_boot.
6151 (grub_multiboot_unload): Free relocators.
6152 (grub_multiboot): Setup stack. Use relocators.
6153 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
6154 (grub_multiboot_load_elfXX): Use relocators.
6155 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
6156 (grub_multiboot_payload_size): Likewise.
6157 (grub_multiboot_payload_dest): Likewise.
6158 (grub_multiboot_payload_entry_offset): Likewise.
6159 (grub_multiboot_forward_relocator): Likewise.
6160 (grub_multiboot_backward_relocator): Likewise.
6161 (grub_multiboot_real_boot): Likewise.
6162 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
6163 (grub_xnu_entry_point): Likewise.
6164 (grub_xnu_arg1): Likewise.
6165 (grub_xnu_stack): Likewise.
6166 (grub_xnu_launch): Removed.
6167 (grub_xnu_boot_resume): New function.
6168 (grub_xnu_boot): Use relocators.
6169 * loader/i386/xnu_helper.S: Removed.
6170 * loader/xnu.c (grub_xnu_heap_start): New variable.
6171 (grub_xnu_heap_size): Likewise.
6172 (grub_xnu_heap_malloc): Use relocators.
6173 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
6175 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6177 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
6180 2009-12-13 Carles Pina i Estany <carles@pina.cat>
6182 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
6183 GRUB_ERR_NONE before calling grub_env_set.
6185 2009-12-12 Robert Millan <rmh@aybabtu.com>
6187 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
6188 * genmk.rb (video): New variable.
6189 (CLEANFILES, VIDEOFILES): Add #{video}.
6190 (#{video}): New target rule.
6191 * genvideolist.sh: New file.
6192 * Makefile.in (pkglib_DATA): Add video.lst.
6193 (video.lst): New target rule.
6194 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
6196 * util/grub.d/30_os-prober.in: Replace `vbe' with
6197 ${GRUB_VIDEO_BACKEND}.
6199 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
6201 * THANKS: Add David Miller.
6203 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
6205 libpciaccess support.
6207 * Makefile.in (LIBPCIACCESS): New variable.
6208 (enable_grub_emu_pci): Likewise.
6209 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
6210 util/pci.c and commands/lspci.c.
6211 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
6212 * configure.ac (grub-emu-pci): New option.
6213 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
6214 (grub_pci_device_unmap_range): Likewise.
6215 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
6216 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
6217 (grub_pci_address_t) [!GRUB_UTIL]: New type.
6218 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
6219 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
6220 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
6221 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
6222 * include/grub/pciutils.h: New file.
6223 * util/pci.c: Likewise.
6225 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
6227 * util/misc.c: Don't include <errno.h> twice.
6229 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
6231 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
6232 name in an error message.
6233 (grub_biosdisk_rw): Likewise.
6235 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6237 Eliminate NTFS 4Gib barrier.
6239 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
6240 (read_run_data): Likewise.
6241 (grub_ntfs_read_run_list): Likewise.
6242 (grub_ntfs_read_block): Likewise.
6243 (grub_ntfs_iterate_dir): Likewise.
6244 (read_mft): Likewise.
6245 (read_data): Likewise.
6247 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
6248 to avoid 64-bit division
6249 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
6250 (grub_ntfs_rlst): Use grub_disk_addr_t.
6252 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6254 Eliminate grub-fstest 4Gib barrier.
6256 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
6257 (read_file): Fix error reporting.
6259 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6261 Eliminate hexdump 4Gib barrier.
6263 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
6264 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
6266 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6268 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
6271 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
6273 Remove miscellaneous files in distclean target.
6275 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
6277 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
6279 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
6280 if they're already set. This resolves the conflict between my
6281 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
6282 fixing the --grub-probe option again.
6283 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
6284 change on 2009-10-06, so that we now once again source
6285 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
6287 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
6289 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
6290 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
6293 2009-12-08 Carles Pina i Estany <carles@pina.cat>
6295 * include/grub/misc.h (grub_printf_): New declaration.
6296 * kern/misc.c (grub_printf_): New definition.
6297 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
6298 instead of `grub_printf' and `_'.
6299 * normal/menu_entry.c (store_completion): Likewise.
6301 (grub_menu_entry_run): Likewise.
6302 * normal/menu_text.c (grub_wait_after_message): Likewise.
6303 (notify_booting): Likewise.
6304 (notify_fallback): Likewise.
6305 (notify_execution_failure): Likewise.
6307 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
6309 * configure.ac: Check for vasprintf.
6310 * util/misc.c (asprintf): Move allocation from here ...
6311 (vasprintf): ... to here. New function.
6312 (xasprintf): New function.
6313 * include/grub/util/misc.h (vasprintf, xasprintf): Add
6315 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
6316 * util/grub-mkfont.c (write_font): Likewise.
6317 * util/grub-probe.c (probe): Likewise.
6318 * util/hostdisk.c (make_device_name): Likewise.
6320 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
6322 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
6323 anything even prefixed with 'cdrom' as a cdrom.
6325 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
6327 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
6330 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6332 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
6333 grub_gettext_msg_list.
6334 (grub_gettext_gettranslation_from_position): Return const char *
6336 (grub_gettext_translate): Add the translated strings into a list,
6337 returns from the list if existing there.
6338 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
6339 (grub_gettext_delete_list): Delete the list.
6340 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
6341 lang environment variable is changed.
6342 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
6344 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6346 Rename kernel.mod to kernel.img.
6348 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
6349 (kernel_mod_EXPORTS): Rename to ...
6350 (kernel_img_EXPORTS): ... this.
6351 (kernel_mod_SOURCES): Rename to ...
6352 (kernel_img_SOURCES): ... this.
6353 (kernel_mod_HEADERS): Rename to ...
6354 (kernel_img_HEADERS): ... this. All users updated.
6355 (kernel_mod_CFLAGS): Rename to ...
6356 (kernel_img_CFLAGS): ... this.
6357 (kernel_mod_ASFLAGS): Rename to ...
6358 (kernel_img_ASFLAGS): ... this.
6359 (kernel_mod_LDFLAGS): Rename to ...
6360 (kernel_img_LDFLAGS): ... this.
6361 * conf/x86_64-efi.rmk: Likewise.
6362 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
6363 (read_kernel_image): ... this. All users updated.
6364 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
6366 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6368 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
6369 (print_spaces): New function.
6370 (grub_print_ucs4): New function.
6371 (getstringwidth): New function.
6372 (print_message_indented): New function.
6373 (print_message): Gettexttize strings using print_message_indented.
6374 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
6376 (get_entry_number): Gettextize and uses dynamic terminal width.
6377 (notify_booting, notify_fallback, notify_execution_failure):
6379 * normal/menu_entry.c (store_completion): Cleanup the gettextized
6382 (grub_menu_entry_run): Likewise.
6383 * PO/POTFILES: Add normal/menu_entry.c.
6385 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6387 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
6389 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6391 * util/grub-install.in: Install gettext .mo files.
6392 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
6394 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6396 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
6399 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
6401 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
6402 non-firmware-dependant one in realmode.S takes precedence.
6404 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
6406 * commands/halt.c: Replace misc arch-specific headers with
6408 * commands/reboot.c: Likewise.
6409 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
6411 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
6412 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
6413 (kernel_img_SOURCES): ... to here.
6415 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
6416 * include/grub/i386/pc/init.h: Likewise.
6417 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
6418 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
6420 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
6422 * include/grub/i386/halt.h: Remove.
6423 * include/grub/i386/reboot.h: Likewise.
6425 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
6427 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
6429 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
6430 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
6431 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
6433 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6434 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6435 (usage): Add missing comma in printf.
6437 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
6439 Use the same reboot approach on i386 coreboot and qemu as we do on
6442 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
6443 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
6444 * kern/i386/reboot.c: Remove.
6445 * include/grub/i386/reboot.h (grub_reboot): Export function.
6446 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
6447 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
6448 0xf000:0xfff0 instead of 0xffff:0x0000.
6449 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
6450 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
6452 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
6454 Fix $srcdir != $objdir build.
6456 * Makefile.in (po/%.po): Rewrite as ...
6457 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
6459 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
6461 Fix GNU/Hurd grub-install crash.
6462 * util/grub-probe.c (probe): Try to access `path' only when it is not
6465 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6467 Correct module naming.
6469 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6470 (GRUB_MOD_INIT(efi_uga)): ... to this
6471 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6472 (GRUB_MOD_FINI(efi_uga)): ... to this
6473 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6474 (GRUB_MOD_INIT(efi_gop)): ... to this
6475 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6476 (GRUB_MOD_FINI(efi_gop)): ... to this
6478 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
6480 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
6482 (usage): Translate `arg' strings using gettext().
6483 Thanks to Jordi Mallach for the suggestion.
6485 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6487 GOP support. Based on patch from Bean
6488 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
6490 * video/efi_gop.c: New file.
6491 * include/grub/efi/graphics_output.h: Likewise.
6492 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
6493 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
6495 * conf/x86_64-efi.rmk: Likewise.
6497 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6499 Rename efi_fb to efi_uga.
6501 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6503 (efi_fb_mod_SOURCES): Rename this ...
6504 (efi_uga_mod_SOURCES): ... to this.
6505 (efi_fb_mod_CFLAGS): Rename this ...
6506 (efi_uga_mod_CFLAGS): ... to this.
6507 (efi_fb_mod_LDFLAGS): Rename this ...
6508 (efi_uga_mod_LDFLAGS): ... to this.
6509 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6511 (efi_fb_mod_SOURCES): Rename this ...
6512 (efi_uga_mod_SOURCES): ... to this.
6513 (efi_fb_mod_CFLAGS): Rename this ...
6514 (efi_uga_mod_CFLAGS): ... to this.
6515 (efi_fb_mod_LDFLAGS): Rename this ...
6516 (efi_uga_mod_LDFLAGS): ... to this.
6517 * video/efi_fb.c: Move this ...
6518 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
6520 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6522 * po/README: New file. Explain our PO file workflow.
6524 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6526 * po/ChangeLog: Remove. Move relevant entries back to ...
6527 * ChangeLog: ... here.
6528 * po/ca.po: Remove (now handled by TLP).
6529 * po/id.po: Likewise.
6530 * po/zh_CN.po: Likewise.
6531 * Makefile.in (LINGUAS): Initialize in a way that supports
6534 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6536 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
6537 reliing on po/LINGUAS.
6538 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
6539 (po/%.po): ... this.
6541 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6543 * util/i386/efi/grub-mkimage.c: Include "progname.h".
6544 (main): Use `program_name' instead of nonexistent `progname'.
6546 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6548 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6549 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
6551 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6553 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
6555 * conf/i386-efi.rmk: Likewise.
6556 * conf/i386-ieee1275.rmk: Likewise.
6557 * conf/powerpc-ieee1275.rmk: Likewise.
6558 * conf/sparc64-ieee1275.rmk: Likewise.
6559 * conf/x86_64-efi.rmk: Likewise.
6561 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6563 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
6565 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6567 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
6569 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6571 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
6572 (grub_mkdevicemap_SOURCES): New variable.
6573 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
6574 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
6575 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
6576 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
6577 (grub_mkdevicemap_SOURCES): Remove.
6578 * conf/i386-efi.rmk: Likewise.
6579 * conf/i386-ieee1275.rmk: Likewise.
6580 * conf/i386-pc.rmk: Likewise.
6581 * conf/powerpc-ieee1275.rmk: Likewise.
6582 * conf/sparc64-ieee1275.rmk: Likewise.
6583 * conf/x86_64-efi.rmk: Likewise.
6584 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
6585 (usage): Fix strings to use `program_name'.
6586 (main): Initialize gettext.
6587 * util/grub-editenv.c: Likewise.
6588 * util/grub-emu.c: Likewise.
6589 * util/grub-fstest.c: Likewise.
6590 * util/grub-mkdevicemap.c: Likewise.
6591 * util/grub-mkfont.c: Likewise.
6592 * util/grub-mkrelpath.c: Likewise.
6593 * util/grub-pe2elf.c: Likewise.
6594 * util/grub-probe.c: Likewise.
6595 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
6596 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6597 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6599 * util/misc.c: Include `"progname.h"'.
6600 (progname): Remove variable.
6601 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
6603 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
6605 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
6606 printf and print a newline after the menuentry header line.
6607 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
6609 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
6611 autoconf >= 2.60 support $(localedir).
6613 * INSTALL: Note that autoconf 2.60 is required.
6614 * configure.ac (AC_PREREQ): Bump to 2.60.
6615 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
6616 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
6618 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
6620 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
6623 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6625 * normal/main.c (grub_normal_read_line): Fix off-by-one
6628 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6630 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
6631 "parser.grub" in grub_command_execute() call.
6633 2009-11-24 Carles Pina i Estany <carles@pina.cat>
6635 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
6636 * conf/i386-efi.rmk: Likewise.
6637 * conf/i386-ieee1275.rmk: Likewise.
6638 * conf/i386-pc.rmk: Likewise.
6639 * conf/powerpc-ieee1275.rmk: Likewise.
6640 * conf/sparc64-ieee1275.rmk: Likewise.
6641 * conf/x86_64-efi.rmk: Likewise.
6642 * gettext/gettex.c: Include <grub/i18n.h>.
6643 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
6645 * include/grub/i18n.h: ... to here
6646 * include/grub/i18n.h: ... to here.
6647 * kern/misc.c: Include <grub/i18n.h>
6648 (grub_gettext_dummy): Move above user.
6650 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6652 * util/Makefile.in (install-local): Convert a `for' into a normal
6655 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
6657 * autogen.sh: Add automake call.
6658 * config.guess: Remove.
6659 * config.sub: Likewise.
6660 * install-sh: Likewise.
6662 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6664 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
6666 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6668 * util/Makefile.in (install-local): Convert a make `$(foreach)'
6669 function to a normal shell `for'.
6671 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6673 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6675 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6677 * util/grub-mkrelpath.c: New file.
6678 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
6679 (grub_mkrelpath_SOURCES): New variable.
6680 * include/grub/util/misc.h: New function prototype.
6681 * util/misc.c (make_system_path_relative_to_its_root): New function.
6683 * util/grub-mkconfig_lib.in (bindir): New variable.
6684 (grub_mkrelpath): Likewise.
6685 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
6687 * util/probe.c (probe): Make the file path relative to its root.
6688 Change a info message to use the GRUB path. Enable again the
6689 check if we can read the file with GRUB facilities.
6691 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
6694 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6696 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
6699 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6701 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
6704 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6706 * util/getroot.c (grub_util_is_dmraid): New function.
6707 (grub_util_get_dev_abstraction): Treat dmraid and multipath
6708 devices as normal ones, not as LVM.
6710 2009-11-23 Carles Pina i Estany <carles@pina.cat>
6712 * conf/common.rmk: Add grub-gettext_lib target and updates
6713 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
6715 * gettext/gettext.c: New file. (Reads mo files).
6716 * include/grub/file.h (grub_file_pread): New prototype.
6717 * include/grub/i18n.h (_): New prototype.
6718 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
6720 * kern/misc.c (grub_gettext_dummy): New function.
6721 * normal/menu_text.c: Include <grub/i18n.h>.
6722 * normal/menu_text.c (print_timeout): Gettexttize string.
6723 * normal/menu_text.c (print_message): Gettexttize string.
6724 * po/POTFILES: Add `normal/menu_text.c'.
6725 * po/ca.po: Add new translations.
6726 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
6727 gettext module and defines locale_dir and lang in grub.cfg.
6728 * NEWS: Add gettext support.
6730 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6732 * util/hostdisk.c: Include `<grub/i18n.h>'.
6733 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
6734 (make_device_name): Rewrite using asprintf.
6735 (convert_system_partition_to_system_disk): Replace 0 with NULL.
6736 (find_system_device): If a device is not found, generate one just
6737 by reusing the OS path name.
6738 (read_device_map): Make it permissible for device.map not to exist.
6740 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6742 * script/sh/execute.c: Move from here ...
6743 * script/execute.c: ... to here. Update all users.
6744 * script/sh/function.c: Move from here ...
6745 * script/function.c: ... to here. Update all users.
6746 * script/sh/lexer.c: Move from here ...
6747 * script/lexer.c: ... to here. Update all users.
6748 * script/sh/main.c: Move from here ...
6749 * script/main.c: ... to here. Update all users.
6750 * script/sh/parser.y: Move from here ...
6751 * script/parser.y: ... to here. Update all users.
6752 * script/sh/script.c: Move from here ...
6753 * script/script.c: ... to here. Update all users.
6755 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6757 * configure.ac: Detect all `emu' platforms. Define
6758 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
6759 --enable-grub-emu logic. Disable include/grub/machine
6760 symlink on `emu' platforms.
6762 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
6763 * gensymlist.sh.in: Likewise.
6765 * include/grub/i386/coreboot/machine.h: Remove file.
6766 * include/grub/i386/efi/machine.h: Likewise.
6767 * include/grub/i386/ieee1275/machine.h: Likewise.
6768 * include/grub/i386/pc/machine.h: Likewise.
6769 * include/grub/i386/qemu/machine.h: Likewise.
6770 * include/grub/powerpc/ieee1275/machine.h: Likewise.
6771 * include/grub/sparc64/ieee1275/machine.h: Likewise.
6772 * include/grub/x86_64/efi/machine.h: Likewise.
6774 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
6775 * commands/halt.c: Likewise.
6776 * commands/reboot.c: Likewise.
6777 * include/grub/autoefi.h: Likewise.
6778 * include/grub/i386/at_keyboard.h: Likewise.
6779 * include/grub/i386/kernel.h: Likewise.
6780 * include/grub/i386/loader.h: Likewise.
6781 * include/grub/i386/pc/memory.h: Likewise.
6782 * kern/dl.c: Likewise.
6783 * kern/i386/coreboot/init.c: Likewise.
6784 * loader/i386/bsd.c: Likewise.
6785 * loader/i386/linux.c: Likewise.
6786 * loader/multiboot_loader.c: Likewise.
6787 * term/i386/pc/serial.c: Likewise.
6788 * term/usb_keyboard.c: Likewise.
6790 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
6791 `<grub/machine/machine.h>'
6792 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
6793 * util/misc.c: Remove `<grub/machine/machine.h>' and
6794 `<grub/machine/time.h>'.
6796 * Makefile.in (enable_grub_emu): Remove variable.
6797 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
6799 * conf/any-emu.rmk: New file.
6800 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
6801 (grub_emu_init.c): Move from here ...
6802 * conf/any-emu.rmk: ... to here.
6804 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
6805 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
6806 * conf/any-emu.rmk: ... to here.
6808 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6810 * include/grub/parser.h (grub_parser_register): Document need
6811 of `name' parameter.
6812 * normal/main.c (grub_normal_read_line): Simplify prompt string.
6813 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
6816 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6818 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
6820 * include/grub/i18n.h (N_): New macro.
6821 * util/mkisofs/mkisofs.h: Likewise.
6822 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
6824 (usage): Use gettext() to translate help strings when printing them.
6826 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6828 Based on patch from Bean
6829 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
6831 * video/efi_fb.c: New file.
6832 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
6833 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
6835 * conf/x86_64-efi.rmk: Likewise.
6837 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
6839 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
6840 * util/i386/pc/grub-setup.c: Likewise.
6842 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6844 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
6846 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
6847 file_get_storage_info to implement grub_guess_root_device.
6849 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
6851 * Makefile.in (target): Use make's builtin $(shell) function
6852 instead of calling directly $(SHELL) to create the locale directories,
6853 inside the $(foreach) function.
6855 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
6857 * util/grub-mkrescue.in: Print an error and usage if output option
6860 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
6862 Patch from Loïc Minier <loic.minier@ubuntu.com>.
6863 * util/grub.d/30_os-prober.in: Cope with Linux entries where
6864 root and /boot are on different devices.
6866 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6868 Fix build for srcdir != objdir.
6870 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
6871 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
6873 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
6874 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
6875 reference for input.
6877 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6879 * util/grub-mkrescue.in: Use source directory direcly (without copiing
6880 or hardlinking it). Remove -J option, Joliet is not compatible with
6881 multiple source directories.
6883 2009-11-21 Carles Pina i Estany <carles@pina.cat>
6884 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6886 * util/grub-mkrescue.in: Recognize `--override-directory' option.
6887 (process_input_dir): New function. Process an arbitrary input
6889 Misc adjustments to support both "override mode" and system-wide mode.
6891 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
6893 * configure.ac (UNIFONT_BDF): Rename to ...
6894 (FONT_SOURCE): ... this. Update all users.
6896 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
6898 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
6899 to the list of unifont files to look for.
6901 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
6903 Patch from Joe Auricchio <jauricchio@gmail.com>
6904 * commands/minicmd.c (grub_mini_cmd_clear): New function.
6905 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
6906 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
6908 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
6910 * Makefile.in (install-local): Add a missing backslash.
6912 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
6914 * include/grub/x86_64/io.h: New file.
6916 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
6918 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
6919 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
6920 Include `"progname.h"'.
6921 (main): Initialize gettext.
6922 * util/i386/pc/grub-setup.c: Gettexttize.
6923 * util/i386/pc/grub-mkimage.c: Likewise.
6925 * Makefile.in (po/*.po): Redefine as ...
6926 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
6928 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
6930 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
6932 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
6933 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
6934 (program_name): Remove.
6935 (main): Initialize gettext support.
6936 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
6937 Include `<libintl.h>'.
6940 * util/mkisofs/eltorito.c: Gettexttize.
6941 * util/mkisofs/joliet.c: Likewise.
6942 * util/mkisofs/mkisofs.c: Likewise.
6943 * util/mkisofs/multi.c: Likewise.
6944 * util/mkisofs/rock.c: Likewise.
6945 * util/mkisofs/tree.c: Likewise.
6946 * util/mkisofs/write.c: Likewise.
6948 * po/POTFILES: Update with new files.
6950 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6952 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
6953 * util/mkisofs/iso9660.h: Likewise.
6954 * util/mkisofs/joliet.c: Likewise.
6955 * util/mkisofs/mkisofs.c: Likewise.
6956 * util/mkisofs/mkisofs.h: Likewise.
6957 * util/mkisofs/rock.c: Likewise.
6958 * util/mkisofs/tree.c: Likewise.
6959 * util/mkisofs/write.c: Likewise.
6961 * util/mkisofs/eltorito.c (rcsid): Remove.
6962 * util/mkisofs/hash.c: Likewise.
6963 * util/mkisofs/joliet.c: Likewise.
6964 * util/mkisofs/name.c: Likewise.
6965 * util/mkisofs/rock.c: Likewise.
6966 * util/mkisofs/tree.c: Likewise.
6967 * util/mkisofs/write.c: Likewise.
6969 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6971 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
6972 instead of static allocation.
6973 * util/mkisofs/match.h: Likewise.
6975 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6977 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
6978 and `util/grub.d/10_linux.in'.
6979 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
6980 translatable Shell files.
6982 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6984 * Makefile.in ($(srcdir)/aclocal.m4): New target.
6986 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6988 * INSTALL: Document Automake is needed for bootstrap.
6989 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
6990 * util/grub.d/10_kfreebsd.in (bindir): New variable.
6991 Add gettext initialization.
6992 (kfreebsd_entry): Make menuentry output translatable.
6994 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6996 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
6997 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
6998 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
6999 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
7000 (LINGUAS): Auto-generate using `po/LINGUAS'.
7001 * po/LINGUAS: New file.
7003 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7005 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
7007 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
7008 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
7009 bindtextdomain() calls for gettext initialization.
7011 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7013 * gnulib/progname.c: New file (imported from Gnulib).
7014 * gnulib/progname.h: Likewise.
7015 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7016 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
7017 (usage): Replace `progname' with `program_name'.
7018 (main): Use set_program_name() for program name initialization.
7020 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7022 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
7024 * Makefile.in (CPPFLAGS): ... to here.
7026 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7028 * aclocal.m4: Move from here ...
7029 * acinclude.m4: ... to here.
7030 * autogen.sh: Add call to `aclocal'.
7031 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
7033 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7035 * Makefile.in (CLEANFILES): Add `po/*.mo'.
7036 (LINGUAS): New variable.
7037 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
7038 (install-local): Install MO files.
7039 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
7040 * include/grub/i18n.h: New file.
7041 * po/POTFILES: New file.
7042 * po/ca.po: New file.
7043 * util/grub.d/10_linux.in (bindir): New variable.
7044 Add gettext initialization.
7045 (linux_entry): Make menuentry output translatable.
7046 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
7047 (usage): Make --help output translatable.
7048 (main): Initialize gettext.
7050 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7052 * import_gcry.py: New file (written by Vladimir with minor
7054 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
7056 * INSTALL: Document that Python is required for bootstrap.
7058 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7060 Import ciphers from libgcrypt 1.4.4.
7062 * lib/libgcrypt/cipher/ChangeLog
7063 * lib/libgcrypt/cipher/ac.c
7064 * lib/libgcrypt/cipher/arcfour.c
7065 * lib/libgcrypt/cipher/bithelp.h
7066 * lib/libgcrypt/cipher/blowfish.c
7067 * lib/libgcrypt/cipher/camellia-glue.c
7068 * lib/libgcrypt/cipher/camellia.c
7069 * lib/libgcrypt/cipher/camellia.h
7070 * lib/libgcrypt/cipher/cast5.c
7071 * lib/libgcrypt/cipher/cipher.c
7072 * lib/libgcrypt/cipher/crc.c
7073 * lib/libgcrypt/cipher/des.c
7074 * lib/libgcrypt/cipher/dsa.c
7075 * lib/libgcrypt/cipher/ecc.c
7076 * lib/libgcrypt/cipher/elgamal.c
7077 * lib/libgcrypt/cipher/hash-common.c
7078 * lib/libgcrypt/cipher/hash-common.h
7079 * lib/libgcrypt/cipher/hmac-tests.c
7080 * lib/libgcrypt/cipher/md.c
7081 * lib/libgcrypt/cipher/md4.c
7082 * lib/libgcrypt/cipher/md5.c
7083 * lib/libgcrypt/cipher/primegen.c
7084 * lib/libgcrypt/cipher/pubkey.c
7085 * lib/libgcrypt/cipher/rfc2268.c
7086 * lib/libgcrypt/cipher/rijndael-tables.h
7087 * lib/libgcrypt/cipher/rijndael.c
7088 * lib/libgcrypt/cipher/rmd.h
7089 * lib/libgcrypt/cipher/rmd160.c
7090 * lib/libgcrypt/cipher/rsa.c
7091 * lib/libgcrypt/cipher/seed.c
7092 * lib/libgcrypt/cipher/serpent.c
7093 * lib/libgcrypt/cipher/sha1.c
7094 * lib/libgcrypt/cipher/sha256.c
7095 * lib/libgcrypt/cipher/sha512.c
7096 * lib/libgcrypt/cipher/tiger.c
7097 * lib/libgcrypt/cipher/twofish.c
7098 * lib/libgcrypt/cipher/whirlpool.c
7100 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7102 Fix build for systems without error().
7104 * gnulib/error.c: New file (imported from Gnulib).
7105 * gnulib/error.h: Likewise.
7106 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
7107 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
7108 (this variable is now used by error()).
7110 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7112 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
7113 instead of relying that char is signed.
7115 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7117 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
7118 blocksize different from specified.
7119 (grub_pxefs_read): Likewise.
7121 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7123 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
7125 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
7126 (grub_ata_readwrite): Likewise. Update 2 format strings.
7127 (grub_atapi_read): Likewise.
7129 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
7130 * conf/i386.rmk (pkglib_MODULES): ... to here ...
7131 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
7132 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
7133 (ata_mod_LDFLAGS): Move from here ...
7134 * conf/i386.rmk: ... to here ...
7135 * conf/x86_64-efi.rmk: ... and here.
7136 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
7137 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
7139 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7141 Relicense multiboot.h, with RMS' blessing.
7143 * include/multiboot.h: Change to X11 license.
7145 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
7147 Support --version in grub-mkisofs.
7149 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
7150 (OPTION_VERSION): New macro.
7151 (ld_options): Recognize --version.
7152 (usage): Move `program_name' from here ...
7153 (program_name): ... to here. Add `static' qualifier.
7154 (main): Recognize `OPTION_VERSION'.
7156 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
7158 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
7159 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
7161 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7163 Fix help2man generation for mkisofs.
7165 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
7166 (usage): Send output to stdout (rather than stderr).
7168 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7170 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
7171 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7172 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
7173 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7174 (bin_SCRIPTS): Add `grub-mkfloppy'.
7175 (grub_mkfloppy_SOURCES): New variable.
7177 * util/grub-mkrescue.in: New file.
7178 * util/i386/pc/grub-mkfloppy.in: New file.
7180 * util/i386/coreboot/grub-mkrescue.in: Remove.
7181 * util/i386/pc/grub-mkrescue.in: Remove.
7183 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7185 * include/grub/multiboot.h (struct grub_multiboot_header): Move
7187 * include/multiboot.h (struct multiboot_header): ... to here. Update
7189 * include/grub/multiboot.h (struct grub_multiboot_info): Move
7191 * include/multiboot.h (struct multiboot_info): ... to here. Update
7193 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
7195 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
7197 * include/grub/multiboot.h (struct grub_mod_list): Move
7199 * include/multiboot.h (struct multiboot_mod_list): ... to here.
7202 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7204 * include/multiboot2.h (multiboot_word): Rename from this ...
7205 (multiboot2_word): ... to this. Update all users.
7206 (multiboot_header): Rename from this ...
7207 (multiboot2_header): ... to this. Update all users.
7208 (multiboot_tag_header): Rename from this ...
7209 (multiboot2_tag_header): ... to this. Update all users.
7210 (multiboot_tag_start): Rename from this ...
7211 (multiboot2_tag_start): ... to this. Update all users.
7212 (multiboot_tag_name): Rename from this ...
7213 (multiboot2_tag_name): ... to this. Update all users.
7214 (multiboot_tag_module): Rename from this ...
7215 (multiboot2_tag_module): ... to this. Update all users.
7216 (multiboot_tag_memory): Rename from this ...
7217 (multiboot2_tag_memory): ... to this. Update all users.
7218 (multiboot_tag_unused): Rename from this ...
7219 (multiboot2_tag_unused): ... to this. Update all users.
7220 (multiboot_tag_end): Rename from this ...
7221 (multiboot2_tag_end): ... to this. Update all users.
7223 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7225 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
7226 this platform we should support Multiboot1 first.
7228 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
7229 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
7230 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
7232 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7234 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
7235 of write calls (converting them to fwrite() if they aren't already).
7236 (get_torito_desc): Likewise.
7237 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
7239 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7241 * util/i386/pc/grub-install.in: Move from here ...
7242 * util/grub-install.in: ... to here. Update all users.
7244 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
7246 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
7248 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7250 Support for El Torito without floppy emulation.
7252 * util/mkisofs/eltorito.c: Include `<errno.h>'.
7253 (init_boot_catalog): Improve error handling.
7254 (get_torito_desc): Don't use floppy emulation unless requested by
7255 user. Patch boot information table when requested via
7257 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
7258 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
7259 (use_boot_info_table): New variables.
7260 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
7261 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
7262 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
7263 `--eltorito-emul-floppy'.
7264 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
7265 and `OPTION_ELTORITO_EMUL_FLOPPY'.
7266 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
7267 (use_boot_info_table, get_731): New prototypes.
7268 * util/mkisofs/write.c (get_731): New function.
7270 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
7272 Fix the generation of the man page.
7274 * util/pc/i386/grub-install.in: Source
7275 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
7277 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7279 Large file support for grub-mkisofs.
7281 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
7282 * util/mkisofs/mkisofs.c (next_extent, last_extent)
7283 (session_start): Upgrade type to `uint64_t'. Update all users.
7284 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
7285 (struct directory_entry): Upgrade type of `starting_block' and
7286 `size' to `uint64_t'. Update all users.
7287 (struct deferred): Remove unused structure.
7288 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
7290 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
7291 file is larger than `UINT32_MAX'.
7292 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
7293 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
7295 (struct deferred_write): Upgrade type of `extent' and `size' to
7296 `uint64_t'. Update all users.
7297 (last_extent_written): Upgrade type to `uint64_t'. Update all
7299 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
7300 Update all users. Upgrade type of `remain' to `int64_t' and
7301 `use' to `size_t'. Use error() to handle fread() errors.
7302 (write_files): Rely on write_one_file() rather than calling
7305 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
7307 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
7309 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7311 * util/mkisofs/fnmatch.c: Remove.
7312 * util/mkisofs/getopt1.c: Likewise.
7313 * util/mkisofs/getopt.c: Likewise.
7314 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
7315 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
7316 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
7317 `gnulib/getopt1.c' and `gnulib/getopt.c'.
7318 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
7320 * configure.ac: Detect `mingw32msvc' host_os.
7321 Check for lstat(), getuid() and getgid().
7323 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
7324 instances of `u_char' with `uint8_t'.
7326 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
7327 [!HAVE_GETUID] (getuid): New function (stub).
7328 [!HAVE_GETGID] (getgid): Likewise.
7329 [!HAVE_LSTAT] (lstat): Likewise.
7330 [!S_IROTH] (S_IROTH): New macro (dummy).
7331 [!S_IRGRP] (S_IRGRP): Likewise.
7333 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7335 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
7336 conditional expression).
7338 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7342 * gnulib/fnmatch.c: New file.
7343 * gnulib/fnmatch.h: Likewise.
7344 * gnulib/fnmatch_loop.c: Likewise.
7345 * gnulib/getopt.c: Likewise.
7346 * gnulib/getopt.h: Likewise.
7347 * gnulib/getopt1.c: Likewise.
7348 * gnulib/getopt_int.h: Likewise.
7349 * gnulib/gettext.h: Likewise.
7351 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7353 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
7354 * normal/handler.c (read_handler_list): Likewise.
7356 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7360 * kern/command.c (grub_register_command_prio): Use
7361 grub_zalloc() instead of explicitly zeroing data.
7362 * kern/list.c: Include `<grub/mm.h>'.
7363 (grub_named_list_find): Replace `0' with `NULL'.
7364 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
7365 (fs_module_list): Change type to `grub_named_list_t'. Update all
7367 * normal/dyncmd.c (read_command_list): Add space between function
7368 call and parenthesis.
7369 * normal/handler.c (read_handler_list): Likewise.
7371 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7373 * normal/auth.c (punishment_delay): Moved from here ...
7374 (grub_auth_strcmp): ... to here (inside function).
7376 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7378 * include/grub/list.h (struct grub_named_list): Remove `const'
7379 qualifier from `name'.
7380 (struct grub_prio_list): Likewise.
7382 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7384 * normal/auth.c: Include `<grub/time.h>'.
7385 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
7387 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7389 * normal/auth.c (punishment_delay): New variable.
7390 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
7391 (grub_auth_check_authentication): Punish failed login attempts with
7392 an incremental (2^N) delay.
7394 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7396 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
7397 path with $(srcdir).
7399 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7401 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
7403 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7405 * util/i386/coreboot/grub-mkrescue.in: New file.
7406 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
7409 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
7410 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
7411 * configure.ac: Add header and function checks to satisfy grub-mkisofs
7413 * util/mkisofs/defaults.h: New file.
7414 * util/mkisofs/eltorito.c: Likewise.
7415 * util/mkisofs/exclude.h: Likewise.
7416 * util/mkisofs/fnmatch.c: Likewise.
7417 * util/mkisofs/getopt.c: Likewise.
7418 * util/mkisofs/getopt1.c: Likewise.
7419 * util/mkisofs/hash.c: Likewise.
7420 * util/mkisofs/include/fctldefs.h: Likewise.
7421 * util/mkisofs/include/mconfig.h: Likewise.
7422 * util/mkisofs/include/prototyp.h: Likewise.
7423 * util/mkisofs/include/statdefs.h: Likewise.
7424 * util/mkisofs/iso9660.h: Likewise.
7425 * util/mkisofs/joliet.c: Likewise.
7426 * util/mkisofs/match.c: Likewise.
7427 * util/mkisofs/match.h: Likewise.
7428 * util/mkisofs/mkisofs.c: Likewise.
7429 * util/mkisofs/mkisofs.h: Likewise.
7430 * util/mkisofs/multi.c: Likewise.
7431 * util/mkisofs/name.c: Likewise.
7432 * util/mkisofs/rock.c: Likewise.
7433 * util/mkisofs/tree.c: Likewise.
7434 * util/mkisofs/write.c: Likewise.
7436 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7438 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
7441 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7443 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
7444 `grub-mkimage' (and use $0 when possible).
7446 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7448 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
7449 error message for excessively large memory map.
7451 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7453 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
7456 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7458 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
7459 message for coreboot users.
7461 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
7463 Fix build with GNU gold.
7465 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
7466 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
7467 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
7469 * aclocal.m4: Likewise.
7471 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
7473 * configure.ac (AC_PREREQ): Bump to 2.59d.
7474 * INSTALL: Make it more clear when Autoconf and Ruby are
7475 needed and when to run `./autogen.sh'.
7477 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7479 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
7482 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7484 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
7486 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7488 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
7489 giving it to GNU Mach.
7491 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7493 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
7494 GNU partition number to get internal GRUB partition number.
7496 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7498 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
7499 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
7501 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
7503 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
7504 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
7507 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
7509 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
7511 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7515 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
7516 `-isystem=$(srcdir)/include'.
7518 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7520 * util/i386/pc/grub-install.in: Remove hint that device.map should be
7521 checked (grub-install doesn't currently rely on it).
7523 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
7527 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
7528 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7529 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
7530 * conf/i386-ieee1275.rmk: Likewise.
7531 * conf/i386-pc.rmk: Likewise.
7532 * conf/powerpc-ieee1275.rmk: Likewise.
7533 * conf/sparc64-ieee1275.rmk: Likewise.
7534 * conf/x86_64-efi.rmk: Likewise.
7536 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7538 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
7540 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7542 * include/grub/misc.h: Stop checking for APPLE_CC.
7544 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7546 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
7547 doesn't cause an infinite call loop.
7549 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
7551 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
7554 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7556 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
7558 * Makefile.in: Likewise.
7560 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7562 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
7564 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7566 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
7568 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7570 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
7572 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7574 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
7576 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
7578 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7580 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
7581 in $(MAKEINFO) invocation. This makes it clear in output that
7582 errors are being ignored.
7584 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7586 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
7588 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7589 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
7590 * conf/i386-ieee1275.rmk: Likewise.
7591 * conf/i386-pc.rmk: Likewise.
7592 * conf/powerpc-ieee1275.rmk: Likewise.
7593 * conf/sparc64-ieee1275.rmk: Likewise.
7594 * conf/x86_64-efi.rmk: Likewise.
7596 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
7598 * util/grub-editenv.c (main): If only a command is given, use
7599 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
7600 (usage): FILENAME is now optional and has a default.
7602 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
7604 Improve grub-mkconfig performance when there are several menu
7605 entries on a single filesystem.
7607 * util/grub.d/10_linux.in (linux_entry): Cache the output of
7608 prepare_grub_to_access_device.
7609 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
7610 * util/grub.d/30_os-prober.in: Likewise.
7612 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7614 * util/grub.d/10_freebsd.in: Remove.
7615 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
7616 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
7618 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7620 * docs/grub.cfg: Fix example usage of *BSD loaders.
7622 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7624 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
7625 grub_util_error() call.
7627 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7629 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
7630 `reserved_first_sector' member.
7631 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
7632 `reserved_first_sector' to 1.
7633 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
7634 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
7635 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
7636 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
7637 filesystems which begin at first sector.
7638 (options): New option --skip-fs-probe.
7639 (main): Handle --skip-fs-probe and pass it to setup().
7641 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7643 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
7644 (memset): Fix function prototype.
7646 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7647 2009-10-25 Vasily Averin <vvs@parallels.com>
7649 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
7650 `dirent.direntlen == 0'.
7652 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7654 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
7656 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
7658 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7660 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
7661 `__trampoline_setup' and `__ucmpdi2'.
7662 * include/grub/powerpc/libgcc.h: Only export symbols for functions
7663 that libgcc provides.
7665 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7667 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
7668 * include/grub/sparc64/libgcc.h (memset): Likewise.
7669 * include/grub/misc.h (memset, memcmp): New function prototypes.
7671 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7673 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
7675 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
7677 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7679 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
7680 * docs/grub.cfg: Compensate for recent change in multiboot
7681 loader (since 2009-08-14 it won't pass filename to payload).
7682 * util/grub.d/10_hurd.in: Likewise.
7684 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
7686 * config.guess: Update to latest version from config git
7688 * config.sub: Likewise.
7690 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
7692 Fix build on sparc64.
7694 * configure.ac: Perform checks for libgcc symbols before
7695 adding `-nostdlib' to LDFLAGS.
7697 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7699 Let user specify OpenBSD root device.
7701 * loader/i386/bsd.c (openbsd_root): New variable.
7702 (openbsd_opts): New option 'root'.
7703 (OPENBSD_ROOT_ARG): New macro.
7704 (grub_openbsd_boot): Use 'openbsd_root'.
7705 (grub_cmd_openbsd): Fill 'openbsd_root'.
7707 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
7709 * NEWS: Misc adjustments.
7711 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7713 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
7715 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
7717 * configure.ac: Bump version to 1.97.
7719 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
7721 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
7722 -mno-3dnow on x86 architectures. Some toolchains enable these
7723 features by default, but they rely on registers that aren't enabled
7724 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
7726 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
7728 Make entry text a bit more readable.
7730 * util/grub.d/10_linux.in: Add `with' before `Linux'.
7732 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7734 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
7736 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7738 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
7741 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7743 * configure.ac: Add missing dollar.
7745 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7747 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
7749 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
7750 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
7752 * include/grub/sparc64/libgcc.h: Likewise. Use
7753 preprocessor conditionals.
7755 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
7757 * conf/common.rmk (grub-dumpbios): Remove rule.
7758 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
7759 * util/grub-dumpbios.in: Remove file.
7761 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
7763 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
7764 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
7766 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
7767 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
7770 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
7771 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
7772 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
7773 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
7776 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
7778 * term/tparm.c: Switch to GPLv3.
7780 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
7782 * include/grub/i386/cpuid.h: Add header protection.
7784 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
7786 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
7788 * include/grub/i386/cpuid.h: New file.
7789 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
7790 (has_longmode): Rename to ...
7791 (grub_cpuid_has_longmode): ... this. Update all users. Remove
7793 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
7794 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
7795 on a CPU that doesn't implement AMD64 instruction set.
7797 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
7799 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
7800 that version.texi is rebuilt on version number changes.
7802 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
7804 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
7807 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
7809 * util/i386/pc/grub-install.in: Source
7810 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
7811 that the --grub-probe option will work.
7812 * util/sparc64/ieee1275/grub-install.in: Likewise.
7814 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
7816 * configure.ac: Bump version to 1.97~beta4.
7818 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
7820 Resync grub-mkdevicemap in x86_64-efi.
7822 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
7823 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
7826 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
7828 * util/grub-editenv.c (create_envblk_file): Write new block with a
7829 .new suffix and then rename it into place, to ensure atomic
7832 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
7834 Do not automatically install headers.
7836 * Makefile.in (include_DATA): Remove. Update all users.
7838 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
7840 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
7841 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
7843 * util/osdetect.lua: Remove.
7844 * script/lua/lauxlib.c: Likewise.
7845 * script/lua/ldebug.c: Likewise.
7846 * script/lua/grub_main.c: Likewise.
7847 * script/lua/lauxlib.h: Likewise.
7848 * script/lua/ldebug.h: Likewise.
7849 * script/lua/ltablib.c: Likewise.
7850 * script/lua/liolib.c: Likewise.
7851 * script/lua/lstrlib.c: Likewise.
7852 * script/lua/lualib.h: Likewise.
7853 * script/lua/ldo.c: Likewise.
7854 * script/lua/ldump.c: Likewise.
7855 * script/lua/ldo.h: Likewise.
7856 * script/lua/loslib.c: Likewise.
7857 * script/lua/lundump.c: Likewise.
7858 * script/lua/grub_lib.c: Likewise.
7859 * script/lua/ldblib.c: Likewise.
7860 * script/lua/lundump.h: Likewise.
7861 * script/lua/lmem.c: Likewise.
7862 * script/lua/grub_lib.h: Likewise.
7863 * script/lua/lmathlib.c: Likewise.
7864 * script/lua/lstate.c: Likewise.
7865 * script/lua/ltm.c: Likewise.
7866 * script/lua/lvm.c: Likewise.
7867 * script/lua/lmem.h: Likewise.
7868 * script/lua/lstate.h: Likewise.
7869 * script/lua/ltm.h: Likewise.
7870 * script/lua/ltable.c: Likewise.
7871 * script/lua/lvm.h: Likewise.
7872 * script/lua/llex.c: Likewise.
7873 * script/lua/lgc.c: Likewise.
7874 * script/lua/grub_lua.h: Likewise.
7875 * script/lua/loadlib.c: Likewise.
7876 * script/lua/lfunc.c: Likewise.
7877 * script/lua/lopcodes.c: Likewise.
7878 * script/lua/lparser.c: Likewise.
7879 * script/lua/ltable.h: Likewise.
7880 * script/lua/llex.h: Likewise.
7881 * script/lua/lgc.h: Likewise.
7882 * script/lua/lfunc.h: Likewise.
7883 * script/lua/lbaselib.c: Likewise.
7884 * script/lua/lopcodes.h: Likewise.
7885 * script/lua/lparser.h: Likewise.
7886 * script/lua/lzio.c: Likewise.
7887 * script/lua/linit.c: Likewise.
7888 * script/lua/lobject.c: Likewise.
7889 * script/lua/llimits.h: Likewise.
7890 * script/lua/lstring.c: Likewise.
7891 * script/lua/lzio.h: Likewise.
7892 * script/lua/lapi.c: Likewise.
7893 * script/lua/lcode.c: Likewise.
7894 * script/lua/lua.h: Likewise.
7895 * script/lua/lobject.h: Likewise.
7896 * script/lua/lstring.h: Likewise.
7897 * script/lua/lapi.h: Likewise.
7898 * script/lua/lcode.h: Likewise.
7899 * script/lua/luaconf.h: Likewise.
7901 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
7903 * docs/grub.texi (Command-line and menu entry commands): Document
7904 date and echo commands.
7906 2009-09-24 Pavel Roskin <proski@gnu.org>
7908 * include/grub/kernel.h (struct grub_module_header): Remove
7909 `grub_module_header_types'. Make `type' unsigned. Make `size'
7910 32-bit on all platforms.
7911 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
7912 8-bit field. Use grub_host_to_target32() for `size'.
7913 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
7914 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
7915 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
7917 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
7919 Fix "lost keypress" bug in at_keyboard.
7921 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
7922 Checks for readyness of input buffer (without flushing it).
7923 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
7924 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
7926 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
7928 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
7929 size check within GRUB_MACHINE_PCBIOS section.
7931 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
7933 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
7935 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
7936 KEYBOARD_ISREADY check.
7937 (grub_at_keyboard_checkkey): Rename to ...
7938 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
7939 Remove gratuitous cast.
7941 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
7943 * configure.ac: Call AC_PROG_MKDIR_P.
7944 * Makefile.in (docs/stamp-vti): Create docs directory. Create
7945 version.texi in $(builddir) rather than $(srcdir).
7946 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
7947 to makeinfo's @include search path.
7949 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
7951 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
7953 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
7955 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
7958 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
7960 Build info documentation. Some code borrowed from Automake.
7962 * configure.ac: Check for makeinfo.
7963 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
7964 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
7966 (MOSTLYCLEANFILES): Add vti.tmp.
7967 (docs/version.texi, docs/stamp-vti): Update automatically.
7968 (docs/grub.info): Build info documentation. Use --force and ignore
7970 (all-local): Add $(INFOS).
7971 (install-local): Install info files.
7972 (uninstall): Uninstall info files.
7973 * docs/version.texi: Remove from revision control. This file is
7974 automatically generated on build now.
7975 * gendistlist.sh: Add `*.info'.
7977 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
7979 * kern/term.c: Fix indentation.
7981 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
7983 * util/hostdisk.c: Fix a comment.
7985 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
7987 Fix regression introduced in r2539.
7989 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
7992 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
7994 * util/grub.d/30_os-prober.in: Don't throw away stderr from
7995 os-prober. Under normal operation, it does not print anything to
7996 stderr; if it does, we need to debug it, and throwing away stderr
7997 makes that excessively difficult.
7999 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
8001 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
8003 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8005 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
8006 AC_LANG_PROGRAM from autoconf.
8007 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
8008 prototypes (fixes warning).
8010 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
8011 `--disable-werror' was used.
8013 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8015 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
8016 uninitialized `lastaddr'.
8018 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8020 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
8022 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8024 * commands/test.c (get_fileinfo): Return immediately if
8025 grub_fs_probe fails.
8027 2009-09-14 José Martínez <xosemp@gmail.com>
8029 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
8031 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8033 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
8036 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
8038 * configure.ac: Remove --enable-grub-pe2elf. Only build
8039 grub-pe2elf when needed by the build system itself.
8040 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
8042 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8044 * configure.ac: Bump version to 1.97~beta3.
8045 * docs/version.texi: Likewise.
8047 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8049 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
8050 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
8052 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
8053 (grub_linux_setup_video): ... to here (with some adjustments).
8055 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8057 Fix memory corruption issue (spotted by Colin Watson).
8059 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
8060 causing returned size to be stored in an incorrect memory location.
8061 Fix use of uninitialized value when storing the returned size.
8063 2009-09-12 Yves Blusseau <blusseau@zetam.org>
8065 Change clean rules to properly remove files
8067 * genmk.rb: add new clean rules
8068 * Makefile.in (clean): add the new targets
8069 (mostlyclean): likewise
8071 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8073 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
8075 * fs/ntfs.c (init_file): Understand 64-bit sizes for
8078 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8080 * configure.ac: Don't look for help2man when cross-compiling. Fixes
8083 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8085 * util/grub-mkconfig.in: Make the created config mode 400 and
8086 print a warning if it fails.
8088 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
8090 * util/grub.d/40_custom.in: Ask user to type custom entries below
8091 comment, rather than below 'exec tail' line.
8093 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8095 * util/grub.d/40_custom.in: Make sure that the explanatory text is
8096 visible in grub.cfg.
8098 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8100 * util/grub.d/40_custom.in: Make it a little clearer how to use this
8103 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8105 * docs/grub.cfg: Add an example menu entry for memtest86+.
8107 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
8109 * config.guess: Update to latest version from config git.
8110 * config.sub: Likewise.
8112 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
8114 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
8115 unknown-command case. Fixes bug #27320.
8117 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
8119 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
8120 `help' if the command exists.
8122 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
8124 * INSTALL: Require GCC 4.1.3 or later.
8126 2009-09-06 Yves Blusseau <blusseau@zetam.org>
8128 * Makefile.in (RMKFILES): add i386-qemu.rmk
8129 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
8130 $(srcdir)/stamp-h.in
8132 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
8134 * util/grub-probe.c (probe): Comment out buggy codepath, which
8135 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
8136 should be re-enabled after 1.97.
8138 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
8140 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
8143 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
8145 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
8146 unnecessary calls to grub_error.
8148 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
8150 * NEWS: Mention `keystatus' and Unicode fonts.
8152 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
8154 * configure.ac: Bump version to 1.97~beta2.
8155 * docs/version.texi: Likewise.
8157 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
8159 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
8160 containing unwind information in some cases where it previously did
8161 not. Use -fno-dwarf2-cfi-asm if available to restore the old
8162 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
8165 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
8167 Embedding loadenv module into grub-emu
8169 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
8171 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
8172 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
8173 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
8174 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
8175 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
8176 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
8178 2009-09-03 Magnus Granberg <zorry@ume.nu>
8180 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
8181 include -fPIE in the default specs.
8182 * configure.ac: Check if pie_possible is yes and add -fno-PIE
8185 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
8187 * INSTALL: Note that GNU Bison 2.3 or later is required.
8189 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
8191 * kern/i386/pc/startup.S: Fix typo.
8193 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
8195 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
8198 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8200 * docs/grub.texi (Naming convention): Describe one-based partition
8202 (Device syntax): Likewise.
8203 (File name syntax): Likewise.
8204 (Block list syntax): Likewise.
8205 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
8207 (File name syntax): Likewise.
8208 (Command-line and menu entry commands): Document acpi, blocklist,
8209 crc, export, insmod, keystatus, ls, set, and unset commands.
8211 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8213 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
8214 to avoid implying that only one of --shift, --ctrl, or --alt may be
8217 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8219 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
8220 rather than comparing against S_IFREG, which will almost never work.
8222 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
8224 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
8225 (write_blocklists): Likewise.
8227 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
8229 * script/lua/grub_lua.h (fputs): Supply a format string as the first
8230 argument to grub_printf.
8232 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
8234 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
8237 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8239 * kern/file.c (grub_file_read): Spelling fix
8241 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8243 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
8244 loading of headers in some cases.
8246 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
8248 * configure.ac: Bump version to 1.97~beta1.
8249 * docs/version.texi: Likewise.
8251 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8253 * include/grub/i386/xnu.h: Add license header.
8254 include grub/err.h explicitly.
8256 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8258 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
8259 to `ufs' in the vfs.root.mountfrom kernel parameter.
8261 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8263 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
8265 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
8266 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
8268 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
8271 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8273 * kern/file.c (grub_file_read): Check offset.
8274 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
8275 * fs/jfs.c (grub_jfs_read_file): Likewise.
8276 * fs/ntfs.c (grub_ntfs_read): Likewise.
8277 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
8278 * fs/minix.c (grub_minix_read_file): Correct offset check.
8279 * fs/ufs.c (grub_ufs_read_file): Likewise.
8281 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8283 * term/i386/pc/console.c (bios_data_area): Cast
8284 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
8286 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8288 1-bit optimised blitters.
8290 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
8292 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8293 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8294 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8295 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8296 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8297 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8298 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
8300 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8301 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8302 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8303 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8304 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8305 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8306 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
8308 * video/video.c (grub_video_get_blit_format): Return
8309 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
8311 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8313 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
8314 the first argument to grub_printf.
8316 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8317 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
8319 Add `getkeystatus' terminal method. Add a new `keystatus' command
8322 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
8323 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
8324 modifier key bitmasks.
8325 (struct grub_term_input): Add `getkeystatus' member.
8326 (grub_getkeystatus): Add prototype.
8327 * kern/term.c (grub_getkeystatus): New function.
8329 * include/grub/i386/pc/memory.h
8330 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
8331 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
8333 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
8334 (grub_console_term_input): Set `getkeystatus' member.
8335 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
8337 (grub_usb_keyboard_getreport): Likewise.
8338 (grub_usb_keyboard_checkkey): Likewise.
8339 (grub_usb_keyboard_getkeystatus): New function.
8340 (grub_usb_keyboard_term): Set `getkeystatus' member.
8342 * commands/keystatus.c: New file.
8343 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
8344 (keystatus_mod_SOURCES): New variable.
8345 (keystatus_mod_CFLAGS): Likewise.
8346 (keystatus_mod_LDFLAGS): Likewise.
8347 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
8348 commands/keystatus.c.
8349 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8350 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8351 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8352 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8353 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8354 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8356 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8358 Split befs.mod and afs.mod into *_be.mod and *.mod
8360 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
8361 (grub_fstest_SOURCES): Likewise.
8362 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
8363 (afs_be_mod_SOURCES): New variable.
8364 (afs_be_mod_CFLAGS): Likewise.
8365 (afs_be_mod_LDFLAGS): Likewise.
8366 (befs_be_mod_SOURCES): Likewise.
8367 (befs_be_mod_CFLAGS): Likewise.
8368 (befs_be_mod_LDFLAGS): Likewise.
8369 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
8370 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8371 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8372 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
8373 (grub_emu_SOURCES): Likewise.
8374 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8375 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8376 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8377 * fs/afs_be.c: New file.
8378 * fs/befs_be.c: New file.
8379 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
8380 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
8381 (U16): Replaced with ...
8382 (grub_afs_to_cpu16): ...this. All users updated.
8383 (U32): Replaced with ...
8384 (grub_afs_to_cpu32): ...this. All users updated.
8385 (U64): Replaced with ...
8386 (grub_afs_to_cpu64): ...this. All users updated.
8387 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
8388 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
8389 (grub_afs_validate_sblock): Check only one endianness.
8390 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8391 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8392 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8393 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8394 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8395 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8396 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8397 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8399 2009-08-26 Bean <bean123ch@gmail.com>
8401 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
8403 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
8404 (grub_xfs_inode_block): Change return type to grub_uint64_t.
8405 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
8407 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8409 NetBSD memory map support.
8411 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
8412 (grub_netbsd_btinfo_mmap_header): New structure.
8413 (grub_netbsd_btinfo_mmap_entry): Likewise.
8414 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
8416 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8418 Enable bsd.mod on coreboot.
8420 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
8421 (bsd_mod_SOURCES): New variable.
8422 (bsd_mod_CFLAGS): Likewise.
8423 (bsd_mod_LDFLAGS): Likewise.
8424 (bsd_mod_ASFLAGS): Likewise.
8425 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
8426 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
8428 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8430 Cleanup NetBSD root support.
8432 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
8433 grub_bsd_get_device.
8436 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
8438 * util/grub.d/00_header.in: Move check for the video backend of
8439 gfxterm from here ...
8440 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
8441 a suitable video backend.
8443 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8445 Fix breakage in grub-setup.
8447 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
8448 "msdos_partition_map".
8450 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8452 Fix breakage in normal/auth.c.
8454 * normal/auth.c (grub_iswordseparator): New function.
8456 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8458 Authentication support.
8460 * commands/password.c: New file.
8461 * conf/common.rmk (pkglib_MODULES): Add password.mod.
8462 (password_mod_SOURCES): New variable.
8463 (password_mod_CFLAGS): Likewise.
8464 (password_mod_LDFLAGS): Likewise.
8465 (normal_mod_SOURCES): Add normal/auth.c.
8466 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
8468 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8469 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8470 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8471 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8472 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8473 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8474 * include/grub/auth.h: New file.
8475 * include/grub/err.h (grub_err_t): New enum value
8476 GRUB_ERR_ACCESS_DENIED.
8477 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
8479 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
8480 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
8482 * normal/auth.c: New file.
8483 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
8484 (grub_cmdline_run): Don't allow to go to command line without
8486 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
8487 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
8488 menuentry without superuser rights.
8489 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
8490 user isn't a superuser.
8492 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8494 Save space by inlining misc.c functions.
8496 * kern/misc.c (grub_iswordseparator): Made static.
8497 * kern/misc.c (grub_strcat): Moved from here ...
8498 * include/grub/misc.h (grub_strcat): ... here. Inlined.
8499 * kern/misc.c (grub_strncat): Moved from here ...
8500 * include/grub/misc.h (grub_strncat): ... here. Inlined.
8501 * kern/misc.c (grub_strcasecmp): Moved from here ...
8502 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
8503 * kern/misc.c (grub_strncasecmp): Moved from here ...
8504 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
8505 * kern/misc.c (grub_isalpha): Moved from here ...
8506 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
8507 * kern/misc.c (grub_isdigit): Moved from here ...
8508 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
8509 * kern/misc.c (grub_isgraph): Moved from here ...
8510 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
8511 * kern/misc.c (grub_tolower): Moved from here ...
8512 * include/grub/misc.h (grub_tolower): ... here. Inlined.
8514 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8516 * script/sh/function.c (grub_script_function_find): Cut error message
8517 not to flood terminal.
8518 * script/sh/lexer.c (grub_script_yylex): Remove command line length
8520 * script/sh/script.c (grub_script_arg_add): Duplicate string.
8522 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
8524 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
8525 `report' grub_uint8_t *.
8526 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
8527 Use a 50-millisecond timeout rather than just repeating
8528 grub_usb_keyboard_getreport 50 times.
8529 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
8531 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8533 Rename *_partition_map to part_*
8535 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
8536 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
8537 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
8538 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
8540 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
8542 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
8543 * util/grub-probe.c (probe_partmap): Don't transform partition name
8546 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8548 Fix OpenBSD and NetBSD support.
8550 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
8551 memory address conflict.
8552 (OPENBSD_MMAP_ACPI): New definition.
8553 (OPENBSD_MMAP_NVS): Likewise.
8554 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
8555 and OPENBSD_MMAP_NVS.
8556 Add memory map terminator
8557 Explicit cast when calling grub_unix_real_boot.
8558 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
8560 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8562 Let user specify NetBSD root device.
8564 * loader/i386/bsd.c (netbsd_root): New variable.
8565 (netbsd_opts): New option 'root'.
8566 (NETBSD_ROOT_ARG): New macro.
8567 (grub_netbsd_boot): Use 'netbsd_root'.
8568 (grub_bsd_unload): Free 'netbsd_root'.
8569 (grub_cmd_netbsd): Fill 'netbsd_root'.
8571 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8573 Support for 64-bit NetBSD.
8575 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
8576 point when booting non-FreeBSD.
8578 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8580 Support --no-smp and --no-acpi for NetBSD.
8582 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
8583 (NETBSD_AB_NOACPI): Likewise.
8584 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
8585 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
8587 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8589 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
8591 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
8592 errors. Call grub_error when needed.
8594 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8596 * commands/search.c (search_fs): Try searching without autoload first.
8597 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
8598 filesystem module explicitly for faster booting.
8600 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
8602 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
8604 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
8606 * util/grub.d/30_os-prober.in: Disable os-prober if
8607 `GRUB_DISABLE_OS_PROBER' was set to true.
8609 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
8611 * partmap/pc.c: Rename to ...
8612 * partmap/msdos.c: ... this. Update all users.
8613 (grub_pc_partition_map): Rename to ...
8614 (grub_msdos_partition_map): ... this. Update all users.
8616 * parttool/pcpart.c: Rename to ...
8617 * parttool/msdospart.c: ... this. Update all users.
8619 * include/grub/pc_partition.h: Rename to ...
8620 * include/grub/msdos_partition.h: ... this. Update all users.
8621 (grub_pc_partition_bsd_entry): Rename to ...
8622 (grub_msdos_partition_bsd_entry): ... this. Update all users.
8623 (grub_pc_partition_disk_label): Rename to ...
8624 (grub_msdos_partition_disk_label): ... this. Update all users.
8625 (grub_pc_partition_entry): Rename to ...
8626 (grub_msdos_partition_entry): ... this. Update all users.
8627 (grub_pc_partition_mbr): Rename to ...
8628 (grub_msdos_partition_mbr): ... this. Update all users.
8629 (grub_pc_partition): Rename to ...
8630 (grub_msdos_partition): ... this. Update all users.
8631 (grub_pc_partition_is_empty): Rename to ...
8632 (grub_msdos_partition_is_empty): ... this. Update all users.
8633 (grub_pc_partition_is_extended): Rename to ...
8634 (grub_msdos_partition_is_extended): ... this. Update all users.
8635 (grub_pc_partition_is_bsd): Rename to ...
8636 (grub_msdos_partition_is_bsd): ... this. Update all users.
8638 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
8639 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
8640 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
8641 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
8642 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
8643 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
8644 (gpt_mod_LDFLAGS): Rename to ...
8645 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
8646 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
8647 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
8648 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
8649 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
8650 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
8651 (part_gpt_mod_LDFLAGS): ... this.
8652 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
8653 `pcpart.mod' to `msdospart.mod'.
8654 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
8656 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
8657 (msdospart_mod_LDFLAGS): ... this.
8659 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8661 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
8662 (openbsd_opts): Likewise.
8663 (netbsd_opts): Likewise.
8664 (freebsd_flags): Added 0 terminator.
8665 (openbsd_flags): Likewise.
8666 (netbsd_flags): Likewise.
8667 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
8668 (grub_cmd_freebsd): Transformed into extended command.
8669 (grub_cmd_openbsd): Likewise.
8670 (grub_cmd_netbsd): Likewise.
8671 (cmd_freebsd): Changed type to grub_extcmd_t.
8672 (cmd_openbsd): Likewise.
8673 (cmd_netbsd): Likewise.
8674 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
8675 grub_cmd_openbsd as extended commands.
8676 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
8677 cmd_netbsd and cmd_openbsd
8679 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
8681 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
8683 2009-08-21 Pavel Roskin <proski@gnu.org>
8685 * Makefile.in (install-local): When checking if a file is in the
8686 build directory, use "test -e" to detect symlinks.
8688 * Makefile.in (install-local): Remove all files in
8689 $(DESTDIR)$(pkglibdir) before installing new files there.
8691 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
8693 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
8696 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
8698 * util/grub-mkconfig.in: Don't use gfxterm by default if not
8699 explicitly specified by the user.
8701 2009-08-18 Pavel Roskin <proski@gnu.org>
8703 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
8704 grub_uint8_t pointer for data.
8705 * include/grub/fbutil.h (struct grub_video_fbblit_info):
8707 * video/fb/fbutil.c: Remove unnecessary casts.
8709 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
8713 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
8714 (grub_vbe_set_video_mode): Save active mode info
8715 only after setting the mode.
8716 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
8719 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
8721 Rename variables for clarity.
8723 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
8724 (active_vbe_mode_info): ... this. All users updated.
8725 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
8727 (initial_mode): Rename to ...
8728 (initial_vbe_mode): ... this. All users updated.
8729 (mode_in_use): Rename to ..
8730 (vbe_mode_in_use): ... this. All users updated.
8731 (mode_list): Rename to ..
8732 (vbe_mode_list): ... this. All users updated.
8733 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
8734 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
8735 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
8736 'mode_list_size' to 'vbe_mode_list_size'.
8737 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
8738 'best_mode_info' to 'best_vbe_mode_info' and
8739 'best_mode' to 'best_vbe_mode'
8741 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
8743 Remove duplicate grub_video_fb_get_video_ptr.
8745 * include/grub/fbutil.h (get_data_ptr): Rename to ...
8746 (grub_video_fb_get_video_ptr): ... this.
8747 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
8748 * video/fb/fbutil.c: Add comment about addressing.
8749 (get_data_ptr): Rename to ...
8750 (grub_video_fb_get_video_ptr): ... this. All users updated.
8751 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
8753 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
8755 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
8756 grub_dprintf() that was just added.
8758 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
8760 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
8761 (DEFAULT_VIDEO_MODE): Remove macros.
8762 (grub_linux_boot): Remove assumption that Linux has FB support,
8763 and use "text" as default video mode.
8765 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
8767 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
8769 * fs/fat.c (grub_fat_read_data): Likewise.
8771 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8773 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
8775 (grub_module): Likewise.
8777 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8779 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
8780 mbi->cmdline but free playground.
8782 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8784 Handle group offset on UFS1.
8786 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
8787 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
8789 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8791 Split ufs.mod into ufs1.mod and ufs2.mod.
8793 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
8794 (grub_fstest_SOURCES): Likewise.
8795 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
8796 (ufs_mod_SOURCES): Remove.
8797 (ufs_mod_CFLAGS): Likewise.
8798 (ufs_mod_LDFLAGS): Likewise.
8799 (ufs1_mod_SOURCES): New variable.
8800 (ufs1_mod_CFLAGS): Likewise.
8801 (ufs1_mod_LDFLAGS): Likewise.
8802 (ufs2_mod_SOURCES): New variable.
8803 (ufs2_mod_CFLAGS): Likewise.
8804 (ufs2_mod_LDFLAGS): Likewise.
8805 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
8806 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
8808 (grub_emu_SOURCES): Likewise.
8809 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8810 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8811 (grub_setup_SOURCES): Likewise.
8812 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8813 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
8814 (grub_setup_SOURCES): Likewise.
8815 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
8817 * fs/ufs2.c: New file.
8818 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
8820 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8824 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
8825 subsystem at the end.
8826 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
8827 (video_fb_mod_SOURCES): New variable.
8828 (video_fb_mod_CFLAGS): Likewise.
8829 (video_fb_mod_LDFLAGS): Likewise.
8830 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
8831 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
8832 * video/i386/pc/vbeblit.c: Moved from here ...
8833 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
8834 * video/i386/pc/vbefill.c: Moved from here ...
8835 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
8836 * video/i386/pc/vbeutil.c: Moved from here ...
8837 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
8838 * include/grub/i386/pc/vbeblit.h: Moved from here ...
8839 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
8840 * include/grub/i386/pc/vbefill.h: Moved from here ...
8841 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
8842 * include/grub/i386/pc/vbeutil.h: Moved from here ...
8843 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
8844 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
8845 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
8846 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
8847 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
8848 (grub_video_adapter): Added 'get_info_and_fini'.
8849 (grub_video_get_info_and_fini): New prototype.
8850 (grub_video_set_mode): make modestring const char *.
8851 * loader/i386/linux.c (grub_linux_setup_video): Use
8852 grub_video_get_info_and_fini.
8853 (grub_linux_boot): Move modesetting just before booting.
8854 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
8855 grub_video_get_info_and_fini.
8856 * video/i386/pc/vbe.c: Moved framebuffer part ...
8857 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
8858 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
8859 grub_video_fbstd_colors and grub_video_fb_set_palette.
8860 (grub_video_vbe_init): Clear 'framebuffer' variable and use
8862 (grub_video_vbe_fini): Use grub_video_fb_fini.
8863 (grub_video_vbe_setup): Use framebuffer.render_target instead of
8864 render_target and use grub_video_fb_set_active_render_target and
8865 grub_video_fb_set_palette.
8866 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
8867 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
8868 (grub_video_vbe_adapter): Use framebuffer.
8869 * video/video.c (grub_video_get_info_and_fini): New function.
8870 (grub_video_set_mode): Make modestring const char *.
8871 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
8872 values are already initialised.
8874 2009-08-14 Pavel Roskin <proski@gnu.org>
8876 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
8878 * boot/i386/pc/diskboot.S: Likewise.
8879 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
8880 sectors allow compilation on MacOSX.
8881 * conf/i386-pc.rmk: Enable unconditional compilation of
8884 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
8886 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
8887 * util/grub.d/00_header.in: Enter interruptible sleep if
8888 GRUB_HIDDEN_TIMEOUT is set.
8890 2009-08-13 Yves Blusseau <blusseau@zetam.org>
8892 * include/grub/symbol.h: Add the LOCAL macro.
8893 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
8896 2009-08-13 Pavel Roskin <proski@gnu.org>
8898 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
8899 any modern compilers we support.
8901 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
8902 Use local labels starting with "L_" so that Apple assembler
8903 knows they are local.
8905 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
8907 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
8908 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
8909 (bsd_kernel_types): ... this enum.
8911 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
8912 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
8913 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
8915 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
8916 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
8917 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
8920 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
8922 * util/grub-dumpdevtree: Moved from here ...
8923 * util/i386/efi/grub-dumpdevtree: ... to here.
8924 (hexify): New function. Converts a string to its hex version.
8925 Generate hex versions of "efi" and "device-properties" by calling
8926 hexify() on the ASCII strings rather than by hardcoding numbers.
8928 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
8930 * fs/jfs.c: Update copyright year.
8932 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
8934 * util/grub.d/00_header.in: Fix a comment.
8935 * util/grub.d/10_linux.in: Likewise.
8936 * util/grub.d/10_windows.in: Likewise.
8937 * util/grub.d/10_hurd.in: Likewise.
8939 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
8941 * util/grub-mkconfig.in: Allow the user to specify the used font
8944 2009-08-08 Pavel Roskin <proski@gnu.org>
8946 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
8947 available, xfs.mod needs it now.
8949 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
8950 the "g" modifier in sed when the intention is to strip something
8951 once. This fixes comparison of kernels with multiple dashes.
8953 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
8954 on it. Add missing space before closing bracket. Fix
8955 misleading formatting.
8957 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8959 * docs/grub.texi: Major overhaul. Remove all sections that are
8960 specific to GRUB Legacy, or mostly composed of Legacy-specific
8963 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8965 * docs/version.texi: New file. Provides version information for
8968 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8970 * docs/grub.texi: Update CVS information to SVN.
8971 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
8973 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
8975 * util/grub-mkconfig.in: Remove a wrong `fi'.
8977 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
8979 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
8980 (grub_jfs_uuid): New function.
8981 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
8983 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
8985 * util/grub-mkconfig_lib.in (font_path): Move the functionality
8987 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
8988 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
8990 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8992 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
8993 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
8996 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
8997 not just "vmlinu[zx]".
8999 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
9002 * util/grub.d/10_linux.in (find_latest): Moved from here ...
9003 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
9006 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9008 * util/grub.d/10_freebsd.in: Use an absolute device path for
9009 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
9011 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
9013 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
9014 handling of multiple abstraction modules.
9016 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
9018 Fix a bug resulting in black screen when loading Linux using a
9021 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
9024 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
9025 (grub_vbe_bios_getset_dac_palette_width): New function.
9026 (grub_vbe_bios_get_dac_palette_width)
9027 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
9028 grub_vbe_bios_getset_dac_palette_width()).
9030 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
9031 check for return status.
9032 (grub_vbe_get_video_mode_info): When getting information for a packed
9033 mode (<= 8 bpp), obtain DAC palette width using
9034 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
9035 {red,green,blue}_mark_size.
9037 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
9039 * commands/search.c (options): Fix help output to match actual code.
9041 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
9043 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
9046 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9048 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
9051 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9053 Support Apple partition map with sector size different from 512 bytes.
9055 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
9056 (apple_partition_map_iterate): Respect 'aheader.blocksize'
9057 and 'apart.partmap_size'.
9059 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9060 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
9064 * commands/i386/cpuid.c (options): New variable.
9065 (grub_cmd_cpuid): Return real error.
9066 (GRUB_MOD_INIT(cpuid)): Declare options.
9068 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
9070 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
9073 2009-07-31 Bean <bean123ch@gmail.com>
9075 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
9077 (grub_fshelp_node): Move inode field to the end.
9078 (grub_xfs_data): Remove inode field.
9079 (grub_xfs_inode_block): Calculate inode size using sblock.
9080 (grub_xfs_inode_offset): Likewise.
9081 (grub_xfs_read_inode): Calculate inode size using sblock.
9082 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
9083 (grub_xfs_iterate_dir): Calculate inode size using sblock.
9084 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
9085 to match inode size.
9086 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
9087 not accessible when data is null.
9088 (grub_xfs_open): Likewise.
9090 2009-07-31 Bean <bean123ch@gmail.com>
9092 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
9093 Don't change pv->disk if it's already set.
9095 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
9096 (grub_raid_register): ... here.
9097 (grub_raid_rescan): Removed.
9099 * include/grub/raid.h (grub_raid_rescan): Removed.
9101 * util/grub-fstest.c: Remove include file <grub/raid.h>.
9102 (fstest): Replace grub_raid_rescan with module fini function followed
9105 * util/grub-probe.c: Add include file <grub/raid.h>.
9106 (probe_raid_level): New function.
9107 (probe): Detect abstraction by walking the disk device, support two
9108 level of abstraction (LVM on RAID) when detecting partition map.
9110 2009-07-31 Pavel Roskin <proski@gnu.org>
9112 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
9113 to grub_zalloc(), it was erroneous.
9114 Reported by Bean <bean123ch@gmail.com>
9116 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
9118 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
9119 embedding zone, not only the first one.
9121 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
9123 * term/gfxterm.c (clear_char): New function.
9124 (grub_virtual_screen_setup): Use clear_char.
9125 (scroll_up): Likewise.
9126 (grub_virtual_screen_cls): Likewise.
9128 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
9130 * util/deviceiter.c (get_acceleraid_disk_name): New static
9132 (grub_util_iterate_devices): Handle Accelraid devices.
9133 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
9135 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
9137 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
9138 separator for the suggested gfxpayload string (';' collides with the
9139 parser and needs escaping).
9141 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
9143 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
9144 Clear direction flag before jumping to OS.
9145 (grub_multiboot2_real_boot): Likewise.
9147 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
9149 * util/i386/pc/grub-install: Fix parsing of --disk-module
9152 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
9154 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
9157 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
9159 * util/grub-mkconfig.in (package_version): New variable.
9160 Use it do display the version.
9162 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
9164 * kern/file.c (grub_file_open): Revert to previous check with
9167 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9169 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
9170 from help line. It's out of sync with code.
9172 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9174 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
9175 entries on failed boot.
9177 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
9179 * kern/file.c (grub_file_open): Fix an error check.
9181 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
9183 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
9184 partition map couldn't be identified.
9186 2009-07-23 Pavel Roskin <proski@gnu.org>
9188 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
9189 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
9190 case of little endian words becomes just an optimization.
9191 Respect const modifier.
9192 (md5_final): Use code that doesn't depend on endianness.
9194 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
9195 to avoid loss of upper bits if align is unsigned and shorter
9198 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9200 UUID support for UFS
9202 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
9203 (grub_ufs_uuid): New function.
9204 (grub_ufs_fs): add .uuid
9206 2009-07-21 Pavel Roskin <proski@gnu.org>
9208 * kern/dl.c (grub_dl_check_header): Make static.
9210 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
9212 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
9213 add drivemap for Vista. It breaks Windows 7.
9215 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9217 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
9220 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9224 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
9225 (grub_fstest_SOURCES): Likewise.
9226 (pkglib_MODULES): Add befs.mod.
9227 (befs_mod_SOURCES): New variable.
9228 (befs_mod_CFLAGS): Likewise.
9229 (befs_mod_LDFLAGS): Likewise.
9230 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
9231 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9232 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9233 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9234 (grub_setup_SOURCES): Likewise.
9235 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9236 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9237 (grub_setup_SOURCES): Likewise.
9238 * fs/befs.c: New file.
9239 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
9240 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
9241 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
9242 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
9243 (B_KEY_INDEX_ALIGN): New declaration.
9244 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
9245 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
9246 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
9247 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
9248 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
9249 (grub_afs_mount) [MODE_BFS]: Likewise.
9250 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
9251 (grub_afs_fs): Use GRUB_AFS_FSNAME
9252 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
9253 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
9254 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
9255 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
9257 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
9259 * util/getroot.c (find_root_device): Add support for MacOSX.
9260 * util/hostdisk.c: Likewise.
9262 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9264 * font/font.c (find_glyph): Check whether a font is present to avoid
9267 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
9269 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
9271 2009-07-20 Pavel Roskin <proski@gnu.org>
9273 * configure.ac: Trim excessively wordy excuses.
9275 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9277 Add symlink, mtime and label support to AtheFS.
9279 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
9280 (grub_afs_iterate_dir): Handle symlinks.
9281 (grub_afs_open): Use grub_afs_read_symlink.
9282 (grub_afs_dir): Likewise.
9284 (grub_afs_label): New function.
9285 (grub_afs_fs): Add grub_afs_label.
9286 (grub_afs_read_symlink): New function.
9288 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9292 * fs/afs.c: Fix comments style.
9293 (grub_afs_blockrun): Declare as packed.
9294 (grub_afs_datastream): Likewise.
9295 (grub_afs_bnode): Likewise.
9296 (grub_afs_btree): Likewise.
9297 (grub_afs_sblock): Likewise.
9298 Declare `name' as char.
9299 (grub_afs_inode): Declare as packed.
9300 Change void *vnode to grub_uint32_t unused.
9301 (grub_afs_iterate_dir): Check that key_size is positive.
9302 (grub_afs_mount): Don't read superblock twice.
9303 (grub_afs_dir): Don't free node in case of error,
9304 grub_fshelp_find_file already handles this.
9305 (grub_afs_open): Likewise.
9307 2009-07-19 Pavel Roskin <proski@gnu.org>
9309 * Makefile.in: Remove LIBLZO and enable_lzo.
9310 * conf/i386-pc.rmk: Remove lzo support.
9311 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
9312 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
9314 * kern/i386/pc/lzo1x.S: Remove.
9315 * kern/i386/pc/startup.S: Remove lzo support.
9316 * util/i386/pc/grub-mkimage.c: Likewise.
9318 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
9320 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
9321 * fs/xfs.c (grub_xfs_dir): Likewise.
9322 * fs/afs.c (grub_afs_dir): Likewise.
9323 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
9324 (grub_iso9660_open): Likewise.
9325 * fs/jfs.c (grub_jfs_open): Likewise.
9326 * fs/ext2.c (grub_ext2_dir): Likewise.
9327 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
9328 * script/sh/lexer.c (grub_script_yylex): Likewise.
9330 2009-07-16 Pavel Roskin <proski@gnu.org>
9332 * configure.ac: Never add "-c" to CFLAGS.
9334 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
9336 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
9337 grub_cv_cc_efiemu should be used.
9339 * configure.ac: Typo fixes.
9341 * kern/mm.c (grub_zalloc): New function.
9342 (grub_debug_zalloc): Likewise.
9343 * include/grub/mm.h: Declare grub_zalloc() and
9344 grub_debug_zalloc().
9345 * util/misc.c (grub_zalloc): New function.
9346 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
9347 instead of grub_malloc(), remove unneeded initializations.
9348 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
9349 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
9350 * commands/parttool.c (grub_cmd_parttool): Likewise.
9351 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
9352 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
9353 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
9354 * disk/usbms.c (grub_usbms_finddevs): Likewise.
9355 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
9356 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
9357 (grub_cmd_efiemu_pnvram): Likewise.
9358 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
9359 * fs/iso9660.c (grub_iso9660_mount): Likewise.
9360 (grub_iso9660_iterate_dir): Likewise.
9361 * fs/jfs.c (grub_jfs_opendir): Likewise.
9362 * fs/ntfs.c (list_file): Likewise.
9363 (grub_ntfs_mount): Likewise.
9364 * kern/disk.c (grub_disk_open): Likewise.
9365 * kern/dl.c (grub_dl_load_core): Likewise.
9366 * kern/elf.c (grub_elf_file): Likewise.
9367 * kern/env.c (grub_env_context_open): Likewise.
9368 (grub_env_set): Likewise.
9369 (grub_env_set_data_slot): Likewise.
9370 * kern/file.c (grub_file_open): Likewise.
9371 * kern/fs.c (grub_fs_blocklist_open): Likewise.
9372 * loader/i386/multiboot.c (grub_module): Likewise.
9373 * loader/xnu.c (grub_xnu_create_key): Likewise.
9374 (grub_xnu_create_value): Likewise.
9375 * normal/main.c (grub_normal_add_menu_entry): Likewise.
9376 (read_config_file): Likewise.
9377 * normal/menu_entry.c (make_screen): Likewise.
9378 * partmap/sun.c (sun_partition_map_iterate): Likewise.
9379 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
9380 * script/sh/script.c (grub_script_parse): Likewise.
9381 * video/bitmap.c (grub_video_bitmap_create): Likewise.
9382 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
9383 * video/readers/png.c (grub_png_output_byte): Likewise.
9384 (grub_video_reader_png): Likewise.
9386 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9388 Enable all targets that can be built by default
9390 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
9391 grub-mkfont and grub-fstest if they can be built
9393 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9395 Fix hang and segmentation fault in grub-emu-usb
9397 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
9398 * util/usb.c (grub_libusb_devices): likewise
9399 (grub_libusb_init): rename to ...
9400 (GRUB_MOD_INIT (libusb)):...this
9401 (grub_libusb_fini): rename to ..
9402 (GRUB_MOD_FINI (libusb)):...this
9403 * disk/usbms.c (grub_usbms_transfer): fix retry logic
9404 * include/grub/disk.h (grub_raid_init): removed, it's useless
9405 (grub_raid_fini): likewise
9406 (grub_lvm_init): likewise
9407 (grub_lvm_fini): likewise
9408 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
9411 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9415 * Makefile.in (LIBUSB): new macro
9416 * genmk.rb (Utility/print_tail): new method
9417 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
9418 (top level): call util.print_tail at the end.
9420 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9422 Make FreeBSD accept zpool.cache
9424 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
9425 type is /boot/zfs/zpool.cache
9427 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9431 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
9432 correct wrong typedef
9433 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
9435 2009-07-15 Pavel Roskin <proski@gnu.org>
9437 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
9438 * kern/disk.c (struct grub_disk_cache): Likewise.
9440 * commands/probe.c (options): Typo fix.
9442 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
9443 Increase to 0x5a to accommodate FAT32. Adjust other offsets
9445 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
9447 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
9448 the end of "Error" to make the message more readable.
9450 * boot/i386/pc/boot.S (kernel_segment): Remove.
9451 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
9454 * boot/i386/pc/boot.S (boot_version): Remove.
9455 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
9458 * include/grub/i386/pc/boot.h: Sort all offsets.
9459 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
9460 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
9461 * boot/i386/pc/boot.S: Assert location of every offset listed in
9462 include/grub/i386/pc/boot.h.
9464 2009-07-13 Pavel Roskin <proski@gnu.org>
9466 * include/grub/i386/coreboot/machine.h: Rename
9467 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
9468 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
9469 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
9471 * kern/dl.c: Force native word size to suppress warnings when
9474 * kern/device.c (grub_device_iterate): Change struct part_ent to
9475 hold the name, not a pointer to it. Use one grub_malloc() per
9476 partition, not two. Free partition_name if grub_malloc() fails.
9477 Set ents to NULL only before grub_partition_iterate() is called.
9479 2009-07-11 Bean <bean123ch@gmail.com>
9481 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
9484 2009-07-10 Bean <bean123ch@gmail.com>
9485 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
9487 * kern/ieee1275/openfw.c (grub_children_iterate)
9488 (grub_devalias_iterate): Fix size evaluation for property or path
9489 strings, which was broken since r2132.
9491 2009-07-07 Pavel Roskin <proski@gnu.org>
9493 * commands/search.c (search_file): Merge into ...
9494 (search_fs): ... this. Accept search type as argument.
9495 (grub_cmd_search): Pass search type to search_fs().
9497 * include/grub/util/console.h: New file.
9498 * util/console.c: Use it instead of grub/machine/console.h.
9499 * util/grub-emu.c: Likewise.
9501 * lib/arg.c (find_long_option): Remove.
9502 (find_long): Add `len' argument, make `s' const char *.
9503 (grub_arg_parse): Parse long options in place, not in a
9506 2009-07-06 Pavel Roskin <proski@gnu.org>
9508 * commands/search.c (search_fs): Fix potential NULL pointer
9511 * commands/search.c (search_fs): Replace QUID macro with quid_fn
9514 2009-07-06 Daniel Mierswa <impulze@impulze.org>
9516 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
9519 2009-07-05 Pavel Roskin <proski@gnu.org>
9521 * include/grub/i386/linux.h (struct linux_kernel_params):
9522 Restore padding3, it's still needed.
9524 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
9526 * util/osdetect.lua: Likewise.
9528 2009-07-05 Bean <bean123ch@gmail.com>
9530 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
9532 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
9533 (grub_lua_getenv): Likewise.
9534 (grub_lua_setenv): Likewise.
9535 (save_errno): New function.
9536 (push_result): Likewise.
9537 (grub_lua_enum_device): Likewise.
9538 (grub_lua_enum_file): Likewise.
9539 (grub_lua_file_open): Likewise.
9540 (grub_lua_file_close): Likewise.
9541 (grub_lua_file_seek): Likewise.
9542 (grub_lua_file_read): Likewise.
9543 (grub_lua_file_getline): Likewise.
9544 (grub_lua_file_getsize): Likewise.
9545 (grub_lua_file_getpos): Likewise.
9546 (grub_lua_file_eof): Likewise.
9547 (grub_lua_file_exist): Likewise.
9548 (grub_lua_add_menu): Likewise.
9550 * script/lua/grub_lua.h (isupper): New inline function.
9551 (islower): Likewise.
9552 (ispunct): Likewise.
9553 (isxdigit): Likewise.
9554 (strcspn): Change to normal function.
9555 (strpbkr): New function declaration.
9558 * script/lua/grub_main.c (scan_str): New function.
9559 (strcspn): Likewise.
9560 (strpbrk): Likewise.
9563 * script/lua/linit.c (lualibs): Enable the string library.
9565 * util/osdetect.lua: New file.
9567 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
9569 * include/grub/i386/linux.h (struct linux_kernel_params): Add
9570 `capabilities' member.
9572 2009-07-02 Pavel Roskin <proski@gnu.org>
9574 * genparttoollist.sh: Add missing newline at the end.
9576 2009-07-01 Pavel Roskin <proski@gnu.org>
9578 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
9580 * util/hostdisk.c (open_device): Remove `const' from
9581 `sysctl_size', as sysctlbyname() can change it (in this case it
9582 doesn't actually happen).
9584 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
9585 using signed long int constants.
9587 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
9588 constant to avoid a warning on FreeBSD.
9590 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
9593 * Makefile.in: Install include/grub/machine symlink.
9595 * Makefile.in: When installing symlinks, use "cp -fR", which
9596 works on FreeBSD and MacOSX.
9597 From Yves Blusseau <cl7m42e02@sneakemail.com>
9599 * kern/dl.c (grub_dl_resolve_symbol): Make static.
9600 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
9602 * util/misc.c: Move grub_reboot() and grub_halt() ...
9603 * util/grub-emu.c: ... here. Make main_env static.
9604 * include/grub/util/misc.h: Remove main_env.
9606 * kern/mm.c: Use correct format to print size_t.
9608 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
9609 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
9610 * kern/powerpc/dl.c: Likewise.
9611 * kern/sparc64/dl.c: Likewise.
9612 * kern/x86_64/dl.c: Likewise.
9614 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9616 Fix grub-emu build on sparc64-ieee1275.
9618 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
9619 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
9621 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9623 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
9624 (grub_reboot, grub_halt): New functions.
9626 * util/i386/pc/misc.c: Delete. Update all users.
9627 * util/sparc64/ieee1275/misc.c: Likewise.
9628 * util/powerpc/ieee1275/misc.c: Likewise.
9630 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9632 * conf/i386.rmk (setjmp_mod_SOURCES)
9633 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
9634 * conf/common.rmk (setjmp_mod_SOURCES)
9635 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
9636 to use $(target_cpu).
9637 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
9638 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
9639 * conf/powerpc-ieee1275.rmk: Likewise.
9640 * conf/sparc64-ieee1275.rmk: Likewise.
9642 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
9643 $(target_cpu) for kern/$(target_cpu)/dl.c.
9644 * conf/i386-efi.rmk: Likewise.
9645 * conf/i386-ieee1275.rmk: Likewise.
9646 * conf/x86_64-efi.rmk: Likewise.
9647 * conf/i386-coreboot.rmk: Likewise.
9648 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
9649 $(target_cpu) for kern/$(target_cpu)/dl.c and for
9650 kern/$(target_cpu)/cache.S.
9651 * conf/sparc64-ieee1275.rmk: Likewise.
9653 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9655 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
9656 type to `grub_uint8_t', and adjust `padding9' accordingly.
9658 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9660 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
9662 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
9663 assembly in final jump, using register constraints.
9665 (grub_linux_boot): For text mode, initialize `have_vga' using
9666 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
9668 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
9669 right before the final jump.
9671 Set `video_mode' to 0x3.
9673 Document initialization of `video_page', `video_mode' and
9676 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9678 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
9679 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
9680 and set GRUB_LINUX_FLAG_QUIET appropriately.
9682 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9684 Fix build on Debian / sparc.
9686 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
9688 2009-06-28 Pavel Roskin <proski@gnu.org>
9690 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
9693 * util/grub.d/10_linux.in: Match SUSE style initrd names.
9695 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9697 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
9700 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9704 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
9705 file can't be opened. grub_file_open() is already supposed to set
9706 grub_errno / grub_errmsg appropriately.
9707 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9709 2009-06-27 Pavel Roskin <proski@gnu.org>
9710 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9712 * include/grub/dl.h: Include grub/elf.h.
9713 (struct grub_dl): Add symtab field.
9714 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
9715 GRUB_MODULES_MACHINE_READONLY.
9716 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
9717 of the header for read-only modules.
9718 (grub_dl_unload): Free mod->symtab for read-only modules.
9719 * kern/i386/dl.c: Use mod->symtab.
9720 * kern/powerpc/dl.c: Likewise.
9721 * kern/sparc64/dl.c: Likewise.
9722 * kern/x86_64/dl.c: Likewise.
9724 * conf/i386-qemu.rmk: New file.
9725 * kern/i386/qemu/startup.S: Likewise.
9726 * kern/i386/qemu/mmap.c: Likewise.
9727 * boot/i386/qemu/boot.S: Likewise.
9728 * include/grub/i386/qemu/time.h: Likewise.
9729 * include/grub/i386/qemu/serial.h: Likewise.
9730 * include/grub/i386/qemu/kernel.h: Likewise.
9731 * include/grub/i386/qemu/console.h: Likewise.
9732 * include/grub/i386/qemu/boot.h: Likewise.
9733 * include/grub/i386/qemu/init.h: Likewise.
9734 * include/grub/i386/qemu/machine.h: Likewise.
9735 * include/grub/i386/qemu/loader.h: Likewise.
9736 * include/grub/i386/qemu/memory.h: Likewise.
9738 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
9739 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
9740 [qemu] (pkglib_IMAGES): Add `boot.img'.
9741 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
9742 [qemu] (boot_img_FORMAT): New variables.
9743 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
9744 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
9745 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
9746 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
9747 [qemu] (kernel_img_FORMAT): New variables.
9749 * configure.ac: Recognise `i386-qemu'.
9751 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
9752 (for no compression).
9753 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
9754 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
9755 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
9756 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
9759 2009-06-27 Pavel Roskin <proski@gnu.org>
9761 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
9763 * efiemu/prepare32.c: Likewise.
9764 * efiemu/prepare64.c: Likewise.
9766 2009-06-26 Pavel Roskin <proski@gnu.org>
9768 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
9769 * include/grub/elf.h: Define symbols without "32" or "64" based
9770 on GRUB_TARGET_WORDSIZE.
9771 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
9772 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
9774 * efiemu/loadcore64.c: Likewise.
9775 * loader/i386/bsd32.c: Likewise.
9776 * loader/i386/bsd64.c: Likewise.
9777 * kern/dl.c: Remove own ELF definitions.
9778 * util/i386/efi/grub-mkimage.c: Likewise.
9780 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
9782 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
9783 segment 0x0 unconditionally, because the reference generated by
9784 GAS is an absolute address.
9786 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9788 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
9789 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
9791 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9793 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
9794 indexes. Check for -f explicitly.
9795 (search_file): Improve error message.
9796 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
9798 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9800 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
9801 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
9803 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9805 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
9806 * conf/i386-ieee1275.rmk: Likewise.
9807 * conf/i386-coreboot.rmk: Likewise.
9809 * kern/i386/pc/startup.S (grub_stop): Remove function.
9810 * kern/i386/ieee1275/startup.S: Likewise.
9811 * kern/i386/coreboot/startup.S: Likewise.
9812 * kern/i386/misc.S (grub_stop): New function.
9814 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9816 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
9817 * kern/i386/realmode.S (real_to_prot): ... to here.
9819 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9821 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
9823 (kernel_elf_SOURCES): Rename to ...
9824 (kernel_img_SOURCES): ... this.
9825 (kernel_elf_HEADERS): Rename to ...
9826 (kernel_img_HEADERS): ... this. Update all users.
9827 (kernel_elf_ASFLAGS): Rename to ...
9828 (kernel_img_ASFLAGS): ... this.
9829 (kernel_elf_CFLAGS): Rename to ...
9830 (kernel_img_CFLAGS): ... this.
9831 (kernel_elf_LDFLAGS): Rename to ...
9832 (kernel_img_LDFLAGS): ... this.
9833 * conf/i386-coreboot.rmk: Likewise.
9834 * conf/powerpc-ieee1275.rmk: Likewise.
9836 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
9839 2009-06-21 Pavel Roskin <proski@gnu.org>
9841 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
9842 to match nested functions.
9843 * loader/sparc64/ieee1275/linux.c: Likewise.
9845 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
9847 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
9849 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
9852 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
9854 Fix asm file handling on ELF, and remove workarounds.
9856 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
9857 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
9858 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
9859 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
9861 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9863 Load BSD ELF modules
9865 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
9866 and loader/i386/bsd64.c
9867 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
9868 (FREEBSD_MODTYPE_ELF_MODULE): New definition
9869 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
9870 (grub_freebsd_load_elfmodule32): New declaration
9871 (grub_freebsd_load_elfmoduleobj64): Likewise
9872 (grub_freebsd_load_elf_meta32): Likewise
9873 (grub_freebsd_load_elf_meta64): Likewise
9874 (grub_freebsd_add_meta): Likewise
9875 (grub_freebsd_add_meta_module): Likewise
9876 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
9877 (grub_freebsd_add_meta_module): Likewise and move module-specific
9878 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
9879 (grub_cmd_freebsd): Add elf-kernel specific parts
9880 based on grub_freebsd_add_meta_module
9881 (grub_cmd_freebsd_module): Add type parsing moved from
9882 grub_freebsd_add_meta_module
9883 (grub_cmd_freebsd_module_elf): New function
9884 (cmd_freebsd_module_elf): New variable
9885 (GRUB_MOD_INIT): Register freebsd_module_elf
9886 * loader/i386/bsd32.c: New file
9887 * loader/i386/bsd64.c: Likewise
9888 * loader/i386/bsdXX.c: Likewise
9889 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
9890 (grub_elf64_load): Likewise
9891 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
9893 (grub_elf64_load_hook_t): Likewise
9895 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
9897 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
9899 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
9900 don't write a menu entry for recovery mode.
9902 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
9904 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
9905 after it's no longer needed.
9907 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
9909 * include/grub/i386/loader.h (grub_linux_prot_size)
9910 (grub_linux_tmp_addr, grub_linux_real_addr)
9911 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
9912 GRUB_MACHINE_PCBIOS.
9913 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
9914 common grub_util_info() call to ...
9915 (generate_image): ... here.
9916 Fix use of uninitialized memory, comparison of signed with
9917 unsigned integers and memory leak.
9918 Remove bogus module address message.
9920 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9922 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
9924 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
9926 2009-06-19 Pavel Roskin <proski@gnu.org>
9928 * configure.ac: Remove stray AC_MSG_CHECKING.
9930 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9932 * disk/scsi.c (grub_scsi_open): use continue instead of big if
9934 2009-06-18 Pavel Roskin <proski@gnu.org>
9936 * conf/common.rmk: Add fs_file.mod.
9937 * disk/fs_file.c: New file.
9938 * include/grub/disk.h (enum grub_disk_dev_id): Add
9939 GRUB_DISK_DEVICE_FILE_ID.
9941 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9943 Fix build with Apple's toolchain. Part 2
9945 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
9948 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9950 Fix build with Apple's toolchain. Part 1
9952 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
9954 * configure.ac: remove a leftover AC_MSG_RESULT
9955 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
9958 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9962 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
9963 (decomp_block): initialize ch
9964 use grub_memcpy instead of memcpy
9966 2009-06-17 Pavel Roskin <proski@gnu.org>
9968 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
9969 version, use declarations needed to use vga_text as the startup
9972 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
9973 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
9975 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
9976 and grub_at_keyboard_fini(), it's done on module load and
9979 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
9981 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
9982 file can't be found.
9983 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9985 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9987 Fix newline handling
9989 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
9990 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
9991 (grub_script_yylex): don't segfault on unterminated script
9992 newline terminates command and variable
9994 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9996 avoid double grub_adjust_range call. Bug reported by David Simner
9998 * kern/disk.c (grub_disk_write): change to raw disk access before
10001 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
10003 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
10004 spaces, for the benefit of help2man.
10005 * util/i386/efi/grub-mkimage.c (usage): Likewise.
10007 2009-06-16 Pavel Roskin <proski@gnu.org>
10009 * kern/i386/halt.c: Include grub/machine/init.h.
10010 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
10012 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
10014 * util/grub.d/30_os-prober.in: Use ${root} in the generated
10015 drivemap menuentry.
10017 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
10019 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
10022 2009-06-16 Pavel Roskin <proski@gnu.org>
10024 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
10025 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
10026 save %dx, we only need %dl and we never change it.
10027 * boot/i386/pc/cdboot.S: Don't set the root drive.
10028 * boot/i386/pc/pxeboot.S: Likewise.
10029 * include/grub/i386/pc/boot.h: Remove
10030 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
10031 GRUB_BOOT_MACHINE_DRIVE_CHECK.
10032 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
10033 * kern/i386/pc/init.c (make_install_device): Remove references
10034 to grub_root_drive.
10035 * kern/i386/pc/startup.S: Likewise.
10036 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
10038 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10042 * commands/xnu_uuid.c: new file
10043 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
10044 (xnu_uuid_mod_SOURCES): new variable
10045 (xnu_uuid_mod_CFLAGS): likewise
10046 (xnu_uuid_mod_LDFLAGS): likewise
10047 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10048 * conf/i386-ieee1275.rmk: likewise
10049 * conf/i386-pc.rmk: likewise
10050 * conf/powerpc-ieee1275.rmk: likewise
10051 * conf/sparc64-ieee1275.rmk: likewise
10052 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
10054 2009-06-16 Pavel Roskin <proski@gnu.org>
10056 * configure.ac: Avoid '==' in test command, it's not portable.
10058 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10062 * commands/probe.c: new file
10063 * conf/common.rmk (pkglib_MODULES): add probe.mod
10064 (probe_mod_SOURCES): new variable
10065 (probe_mod_CFLAGS): likewise
10066 (probe_mod_LDFLAGS): likewise
10067 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10068 * conf/i386-ieee1275.rmk: likewise
10069 * conf/i386-pc.rmk: likewise
10070 * conf/powerpc-ieee1275.rmk: likewise
10071 * conf/sparc64-ieee1275.rmk: likewise
10073 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
10075 Fix handling of string like \"hello\" and "a
10078 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
10079 (grub_script_yylex): fix parsing of quoting, escaping and newline
10081 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
10083 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
10086 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
10088 * util/grub-mkconfig.in: Fix parsing of --output option.
10090 2009-06-12 Pavel Roskin <proski@gnu.org>
10092 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
10093 genmk.rb don't need to be generated or installed.
10095 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
10097 * commands/i386/pc/drivemap_int13h.S: add more comments
10099 2009-06-11 Pavel Roskin <proski@gnu.org>
10101 * Makefile.in (uninstall): Uninstall manuals.
10103 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
10104 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
10105 and update-grub_lib in two places.
10106 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
10108 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
10109 a compiler warning.
10111 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
10112 `entry_lo' to fix variable shadowing.
10114 2009-06-11 Christian Franke <franke@computer.org>
10116 * kern/misc.c (__enable_execute_stack): Add missing return type
10117 to prevent gcc warning.
10119 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
10121 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
10123 2009-06-11 Pavel Roskin <proski@gnu.org>
10125 * Makefile.in: Don't rely on any scripts being executable.
10126 Always use $(SHELL) to run shell scripts.
10128 * configure.ac: Always define ___main if using -nostdlib. This
10129 fixes tests on Cygwin.
10131 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
10135 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
10136 is in bytes and not in blocks
10138 2009-06-11 Pavel Roskin <proski@gnu.org>
10140 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
10143 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
10145 * util/grub.d/30_os-prober.in: Fix a comment. Source
10146 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
10147 to set the root device. Place drivemap command in the generated
10150 2009-06-11 Pavel Roskin <proski@gnu.org>
10152 * configure.ac: Remove host_m32. Issues with 64-bit utilities
10153 have long been resolved.
10155 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
10157 * util/grub.d/10_linux.in: Capitalise "Linux".
10159 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
10161 2009-06-11 Pavel Roskin <proski@gnu.org>
10163 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
10164 fix a gcc warning and ensure that the function won't ever exit.
10166 * kern/i386/ieee1275/init.c: Add missing prototype for
10167 grub_stop_floppy().
10169 * loader/ieee1275/multiboot2.c [__i386__]: Include
10170 grub/cpu/multiboot.h.
10172 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
10173 casts to short - they are not portable and cause warnings. Fix
10174 use of uninitialized values in input_buf. Use ARRAY_SIZE.
10176 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
10180 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
10182 (grub_get_root_biosnumber_saved): new variable
10183 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
10184 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
10185 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
10186 %dx after the call if necessary
10187 * conf/common.rmk (pkglib_MODULES): remove boot.mod
10188 (boot_mod_SOURCES): remove
10189 (boot_mod_CFLAGS): remove
10190 (boot_mod_LDFLAGS): remove
10191 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
10192 (boot_mod_SOURCES): new variable
10193 (boot_mod_CFLAGS): likewise
10194 (boot_mod_LDFLAGS): likewise
10195 * conf/i386-efi.rmk: likewise
10196 * conf/i386-ieee1275.rmk: likewise
10197 * conf/i386-pc.rmk: likewise
10198 * conf/powerpc-ieee1275.rmk: likewise
10199 * conf/sparc64-ieee1275.rmk: likewise
10200 * conf/x86_64-efi.rmk: likewise
10201 * include/grub/i386/pc/biosnum.h: new file
10202 * lib/i386/pc/biosnum.c: likewise
10203 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
10204 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
10205 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
10207 2009-06-10 Pavel Roskin <proski@gnu.org>
10209 * io/gzio.c (test_header): Don't reuse one buffer for all data.
10210 Use separate variables. Read only the file size at the end, but
10211 not the checksum that we don't use.
10213 * kern/file.c (grub_file_read): Use void pointer for the buffer.
10214 Adjust all callers.
10216 * kern/ieee1275/openfw.c: Remove libc includes.
10217 * kern/ieee1275/cmain.c: Likewise.
10218 * include/grub/ieee1275/ieee1275.h: Likewise.
10220 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
10223 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
10225 * Makefile.in: Remove all trailing whitespace.
10226 * conf/i386-pc.rmk: Likewise.
10227 * conf/powerpc-ieee1275.rmk: Likewise.
10228 * conf/sparc64-ieee1275.rmk: Likewise.
10229 * docs/grub.texi: Likewise.
10230 * docs/texinfo.tex: Likewise.
10231 * disk/fs_uuid.c: Likewise.
10232 * disk/lvm.c: Likewise.
10233 * disk/scsi.c: Likewise.
10234 * disk/ata.c: Likewise.
10235 * disk/ieee1275/ofdisk.c: Likewise.
10236 * disk/i386/pc/biosdisk.c: Likewise.
10237 * disk/host.c: Likewise.
10238 * disk/raid.c: Likewise.
10239 * disk/efi/efidisk.c: Likewise.
10240 * disk/usbms.c: Likewise.
10241 * disk/memdisk.c: Likewise.
10242 * disk/loopback.c: Likewise.
10243 * kern/powerpc/dl.c: Likewise.
10244 * kern/device.c: Likewise.
10245 * kern/dl.c: Likewise.
10246 * kern/sparc64/dl.c: Likewise.
10247 * kern/ieee1275/ieee1275.c: Likewise.
10248 * kern/term.c: Likewise.
10249 * kern/fs.c: Likewise.
10250 * kern/i386/dl.c: Likewise.
10251 * kern/i386/pc/startup.S: Likewise.
10252 * kern/i386/pc/init.c: Likewise.
10253 * kern/i386/pc/mmap.c: Likewise.
10254 * kern/i386/pc/lzo1x.S: Likewise.
10255 * kern/i386/ieee1275/init.c: Likewise.
10256 * kern/i386/realmode.S: Likewise.
10257 * kern/i386/tsc.c: Likewise.
10258 * kern/partition.c: Likewise.
10259 * kern/corecmd.c: Likewise.
10260 * kern/file.c: Likewise.
10261 * kern/efi/efi.c: Likewise.
10262 * kern/efi/init.c: Likewise.
10263 * kern/efi/mm.c: Likewise.
10264 * kern/main.c: Likewise.
10265 * kern/err.c: Likewise.
10266 * kern/env.c: Likewise.
10267 * kern/disk.c: Likewise.
10268 * kern/generic/millisleep.c: Likewise.
10269 * kern/generic/rtc_get_time_ms.c: Likewise.
10270 * kern/misc.c: Likewise.
10271 * kern/parser.c: Likewise.
10272 * genmk.rb: Likewise.
10273 * configure.ac: Likewise.
10274 * boot/i386/pc/diskboot.S: Likewise.
10275 * boot/i386/pc/pxeboot.S: Likewise.
10276 * boot/i386/pc/boot.S: Likewise.
10277 * boot/i386/pc/lnxboot.S: Likewise.
10278 * boot/i386/pc/cdboot.S: Likewise.
10279 * parttool/pcpart.c: Likewise.
10280 * video/readers/tga.c: Likewise.
10281 * video/video.c: Likewise.
10282 * video/bitmap.c: Likewise.
10283 * lib/envblk.c: Likewise.
10284 * lib/i386/setjmp.S: Likewise.
10285 * fs/xfs.c: Likewise.
10286 * fs/afs.c: Likewise.
10287 * fs/fat.c: Likewise.
10288 * fs/ntfs.c: Likewise.
10289 * fs/udf.c: Likewise.
10290 * fs/affs.c: Likewise.
10291 * fs/iso9660.c: Likewise.
10292 * fs/hfs.c: Likewise.
10293 * fs/fshelp.c: Likewise.
10294 * fs/ext2.c: Likewise.
10295 * fs/jfs.c: Likewise.
10296 * fs/reiserfs.c: Likewise.
10297 * fs/hfsplus.c: Likewise.
10298 * fs/minix.c: Likewise.
10299 * fs/cpio.c: Likewise.
10300 * fs/sfs.c: Likewise.
10301 * fs/ufs.c: Likewise.
10302 * efiemu/prepare.c: Likewise.
10303 * efiemu/loadcore_common.c: Likewise.
10304 * efiemu/runtime/efiemu.sh: Likewise.
10305 * efiemu/runtime/efiemu.S: Likewise.
10306 * efiemu/runtime/efiemu.c: Likewise.
10307 * efiemu/pnvram.c: Likewise.
10308 * efiemu/main.c: Likewise.
10309 * efiemu/i386/pc/cfgtables.c: Likewise.
10310 * efiemu/i386/loadcore64.c: Likewise.
10311 * efiemu/i386/loadcore32.c: Likewise.
10312 * efiemu/loadcore.c: Likewise.
10313 * efiemu/symbols.c: Likewise.
10314 * efiemu/mm.c: Likewise.
10315 * include/grub/autoefi.h: Likewise.
10316 * include/grub/datetime.h: Likewise.
10317 * include/grub/term.h: Likewise.
10318 * include/grub/hfs.h: Likewise.
10319 * include/grub/lvm.h: Likewise.
10320 * include/grub/i386/tsc.h: Likewise.
10321 * include/grub/i386/linux.h: Likewise.
10322 * include/grub/i386/xnu.h: Likewise.
10323 * include/grub/i386/efiemu.h: Likewise.
10324 * include/grub/i386/pc/biosdisk.h: Likewise.
10325 * include/grub/i386/pc/memory.h: Likewise.
10326 * include/grub/i386/pc/vbe.h: Likewise.
10327 * include/grub/parttool.h: Likewise.
10328 * include/grub/video.h: Likewise.
10329 * include/grub/memory.h: Likewise.
10330 * include/grub/fs.h: Likewise.
10331 * include/grub/partition.h: Likewise.
10332 * include/grub/xnu.h: Likewise.
10333 * include/grub/efi/api.h: Likewise.
10334 * include/grub/efi/pe32.h: Likewise.
10335 * include/grub/efi/memory.h: Likewise.
10336 * include/grub/multiboot.h: Likewise.
10337 * include/grub/usbdesc.h: Likewise.
10338 * include/grub/multiboot2.h: Likewise.
10339 * include/grub/acpi.h: Likewise.
10340 * include/grub/efiemu/efiemu.h: Likewise.
10341 * include/grub/disk.h: Likewise.
10342 * include/grub/ieee1275/ieee1275.h: Likewise.
10343 * include/grub/net.h: Likewise.
10344 * include/grub/machoload.h: Likewise.
10345 * include/grub/macho.h: Likewise.
10346 * include/multiboot.h: Likewise.
10347 * genmoddep.awk: Likewise.
10348 * normal/main.c: Likewise.
10349 * normal/menu_entry.c: Likewise.
10350 * normal/menu_viewer.c: Likewise.
10351 * normal/completion.c: Likewise.
10352 * normal/cmdline.c: Likewise.
10353 * normal/misc.c: Likewise.
10354 * normal/datetime.c: Likewise.
10355 * bus/usb/usbtrans.c: Likewise.
10356 * bus/usb/ohci.c: Likewise.
10357 * bus/usb/uhci.c: Likewise.
10358 * bus/usb/usb.c: Likewise.
10359 * mmap/efi/mmap.c: Likewise.
10360 * mmap/i386/pc/mmap_helper.S: Likewise.
10361 * mmap/i386/pc/mmap.c: Likewise.
10362 * mmap/i386/mmap.c: Likewise.
10363 * mmap/i386/uppermem.c: Likewise.
10364 * mmap/mmap.c: Likewise.
10365 * commands/acpi.c: Likewise.
10366 * commands/echo.c: Likewise.
10367 * commands/blocklist.c: Likewise.
10368 * commands/loadenv.c: Likewise.
10369 * commands/usbtest.c: Likewise.
10370 * commands/boot.c: Likewise.
10371 * commands/parttool.c: Likewise.
10372 * commands/search.c: Likewise.
10373 * commands/cat.c: Likewise.
10374 * commands/i386/pc/play.c: Likewise.
10375 * commands/i386/pc/drivemap.c: Likewise.
10376 * commands/i386/pc/vbeinfo.c: Likewise.
10377 * commands/i386/pc/acpi.c: Likewise.
10378 * commands/i386/pc/vbetest.c: Likewise.
10379 * commands/ls.c: Likewise.
10380 * commands/cmp.c: Likewise.
10381 * commands/test.c: Likewise.
10382 * commands/efi/acpi.c: Likewise.
10383 * commands/gptsync.c: Likewise.
10384 * commands/help.c: Likewise.
10385 * partmap/amiga.c: Likewise.
10386 * partmap/apple.c: Likewise.
10387 * partmap/acorn.c: Likewise.
10388 * partmap/pc.c: Likewise.
10389 * partmap/sun.c: Likewise.
10390 * partmap/gpt.c: Likewise.
10391 * script/sh/lexer.c: Likewise.
10392 * script/sh/function.c: Likewise.
10393 * font/font.c: Likewise.
10394 * font/font_cmd.c: Likewise.
10395 * loader/powerpc/ieee1275/linux.c: Likewise.
10396 * loader/efi/chainloader.c: Likewise.
10397 * loader/multiboot_loader.c: Likewise.
10398 * loader/macho.c: Likewise.
10399 * loader/i386/multiboot.c: Likewise.
10400 * loader/i386/linux.c: Likewise.
10401 * loader/i386/pc/linux.c: Likewise.
10402 * loader/i386/pc/multiboot2.c: Likewise.
10403 * loader/i386/pc/chainloader.c: Likewise.
10404 * loader/i386/pc/xnu.c: Likewise.
10405 * loader/i386/bsd_trampoline.S: Likewise.
10406 * loader/i386/efi/linux.c: Likewise.
10407 * loader/i386/multiboot_elfxx.c: Likewise.
10408 * loader/i386/bsd_helper.S: Likewise.
10409 * loader/i386/bsd.c: Likewise.
10410 * loader/i386/linux_trampoline.S: Likewise.
10411 * loader/i386/xnu_helper.S: Likewise.
10412 * loader/i386/xnu.c: Likewise.
10413 * loader/i386/bsd_pagetable.c: Likewise.
10414 * loader/i386/multiboot_helper.S: Likewise.
10415 * loader/xnu.c: Likewise.
10416 * loader/xnu_resume.c: Likewise.
10417 * io/gzio.c: Likewise.
10418 * term/efi/console.c: Likewise.
10419 * term/terminfo.c: Likewise.
10420 * term/ieee1275/ofconsole.c: Likewise.
10421 * term/i386/pc/serial.c: Likewise.
10422 * term/i386/pc/vesafb.c: Likewise.
10423 * term/i386/pc/vga.c: Likewise.
10424 * term/usb_keyboard.c: Likewise.
10425 * term/gfxterm.c: Likewise.
10426 * aclocal.m4: Likewise.
10427 * util/lvm.c: Likewise.
10428 * util/grub.d/30_os-prober.in: Likewise.
10429 * util/grub.d/10_hurd.in: Likewise.
10430 * util/console.c: Likewise.
10431 * util/grub-macho2img.c: Likewise.
10432 * util/grub-probe.c: Likewise.
10433 * util/hostfs.c: Likewise.
10434 * util/i386/pc/grub-mkimage.c: Likewise.
10435 * util/i386/pc/grub-setup.c: Likewise.
10436 * util/i386/efi/grub-mkimage.c: Likewise.
10437 * util/grub-mkconfig.in: Likewise.
10438 * util/raid.c: Likewise.
10439 * util/resolve.c: Likewise.
10440 * util/grub-mkdevicemap.c: Likewise.
10441 * util/grub-emu.c: Likewise.
10442 * util/getroot.c: Likewise.
10443 * util/hostdisk.c: Likewise.
10444 * util/usb.c: Likewise.
10445 * util/grub-editenv.c: Likewise.
10446 * util/misc.c: Likewise.
10448 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
10450 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
10451 `genparttoollist.sh'.
10452 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
10453 Add `*.sh' to the list find searches for and change `mdate.sh'
10456 2009-06-10 Pavel Roskin <proski@gnu.org>
10458 * include/grub/multiboot2.h: Provide compatibility defines for
10460 * include/multiboot2.h: Include stdint.h only if needed, using
10462 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
10464 * loader/ieee1275/multiboot2.c: Likewise.
10465 * loader/multiboot2.c: Likewise.
10466 * loader/multiboot_loader.c: Likewise.
10468 * configure.ac: Use -nostdlib when probing for the target. It
10469 should not be required to have libc for the target.
10471 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
10472 they fail without libc headers for the target.
10473 * include/grub/powerpc/libgcc.h: Use weak attribute for all
10475 * include/grub/sparc64/libgcc.h: Likewise. Don't use
10476 preprocessor conditionals.
10478 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
10479 build system doesn't need to be aware of the tar.c internals.
10481 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
10483 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
10485 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
10487 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
10488 disk limit to 26 for IDE, Virtio, Xen and SCSI.
10490 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
10492 * util/i386/pc/grub-install.in: Change the error message if UUIDs
10493 aren't available if ata.mod gets used.
10495 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
10497 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
10498 initialising controller.
10499 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
10501 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10503 * util/i386/pc/grub-install.in: Add a parameter --disk-module
10504 to choose between ata and biosdisk module on i386-pc.
10506 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
10508 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
10509 Subclass and Programming Interface fields in terms of the 3 byte
10510 Class Code register.
10511 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
10513 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
10514 interface is OHCI. Add grub_dprintf for symmetry with
10516 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
10517 interface is UHCI. Add interf variable for programming
10518 interface. Print interface with class/subclass.
10520 * bus/usb/ohci.c: Set interf with correct field.
10522 * bus/usb/uhci.c: Remove unneeded doubled lines.
10523 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
10524 Remove whitespace inside comment.
10526 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
10528 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
10529 as fallback an equivalent option without depth.
10531 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10533 Not fail if unable to retrieve C/H/S on LBA disks
10535 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
10536 if unable to retrieve C/H/S on LBA disks
10538 2009-06-08 Pavel Roskin <proski@gnu.org>
10540 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
10543 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10545 * Makefile.in (uninstall): Remove all $lib_DATA files.
10547 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10549 Bugfix: install on partitionless device
10551 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
10554 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10556 * Makefile.in (uninstall): Remove all $include_DATA files.
10558 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10560 * commands/true.c: New file. Implement the true and false commands.
10561 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
10562 (true_mod_SOURCES): New variable.
10563 (true_mod_CFLAGS): Likewise.
10564 (true_mod_LDFLAGS): Likewise.
10566 2009-06-05 Colin D Bennett <colin@gibibit.com>
10568 Optimized font character lookup using binary search instead of linear
10569 search. Fonts now are required to have the character index ordered by
10572 * font/font.c (load_font_index): Verify that fonts have ordered
10574 (find_glyph): Use binary search instead of linear search to find a
10575 character in a font.
10577 2009-06-05 Michael Scherer <misc@mandriva.org>
10579 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
10580 uses case sensitive btree.
10581 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
10582 only for case insensitive filesystems.
10584 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
10586 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
10587 * conf/common.rmk (search_mod_CFLAGS): likewise
10589 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10591 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
10592 compensate a compiler bug
10594 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10596 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
10599 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10601 Definitions for creating asm symbols with Apple's CC
10603 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
10604 [APPLE_CC] (VARIABLE): likewise
10606 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10608 Disable lnxboot.img when compiled
10611 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
10612 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
10613 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
10614 [! APPLE_CC] (CODE_LENG): skip
10615 [! APPLE_CC] (setup_sects): likewise
10616 [! APPLE_CC]: skip filling
10618 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10620 Address in trampolines based on 32-bit registers when compiled
10623 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
10625 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
10627 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10629 Avoid aliases when compiling with Apple's CC for PCBIOS machine
10631 * kern/misc.c [APPLE_CC] (memcpy): new function
10632 [APPLE_CC] (memmove): likewise
10633 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
10634 (memcpy): define alias conditionally on !APPLE_CC
10637 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
10638 APPLE_CC are defined
10639 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
10640 (grub_assert_fail): make prototype conditional
10642 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10644 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
10646 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
10648 (CLEANFILES): add grub-macho2img
10649 (grub_macho2img_SOURCES): new variable
10650 * kern/i386/pc/startup.S (bss_start): new variable
10651 (bss_end): likewise
10652 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
10653 * util/grub-macho2img.c: new file
10655 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10657 Use objconv when compiling with Apple's CC
10659 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
10660 (efiemu64.o): likewise
10661 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
10662 when compiling with Apple's CC
10663 (efiemu64_s.o): likewise
10664 * configure.ac: check for objconv when compiling with Apple's CC
10665 * genmk.rb: use objconv for modules when compiled with Apple's CC
10667 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10669 Define segment as well as section when compiling with
10672 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
10673 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
10674 (efiemu_convert_pointer): likewise
10675 (efiemu_set_virtual_address_map): likewise
10676 (efiemu_convert_pointer): likewise
10677 (efiemu_getcrc32): likewise
10678 (init_crc32_table): likewise
10679 (reflect): likewise
10680 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
10681 (GRUB_MOD_DEP): likewise
10683 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10685 Allow a compilation without -mcmodel=large
10687 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
10688 when compiled without -mcmodel=large
10689 (filter_memory_map): remove memory post 4 GiB when compiled
10690 without -mcmodel=large
10691 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
10692 TARGET_CFLAGS when -mcmodel=large isn't supported
10694 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10696 Remove nested functions in efiemu core
10698 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
10700 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10702 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
10704 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
10706 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
10708 (grub_cpu_is_tsc_supported): likewise
10709 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
10711 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10713 Absolute addressing through constant with Apple's cc
10715 * kern/i386/pc/startup.S: Define necessary constants
10716 and address through it when using ABS with Apple's CC
10717 * boot/i386/pc/diskboot.S: likewise
10718 * boot/i386/pc/boot.S: likewise
10719 * boot/i386/pc/lnxboot.S: likewise
10720 * boot/i386/pc/cdboot.S: likewise
10721 * mmap/i386/pc/mmap_helper.S: likewise
10722 * commands/i386/pc/drivemap_int13h.S: likewise
10724 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10726 Check if compiler is apple cc
10728 * Makefile.in (ASFLAGS): new variable
10729 (TARGET_ASFLAGS): likewise
10730 (TARGET_MODULE_FORMAT): likewise
10731 (TARGET_APPLE_CC): likewise
10732 (OBJCONV): likewise
10733 (TARGET_IMG_CFLAGS): likewise
10734 (TARGET_CPPFLAGS): add includedir
10735 * configure.ac: call grub_apple_cc and grub_apple_target_cc
10736 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
10737 Check for linker script only if compiler isn't Apple's CC
10738 (TARGET_MODULE_FORMAT): set
10739 (TARGET_APPLE_CC): likewise
10740 (TARGET_ASFLAGS): likewise
10741 (ASFLAGS): likewise
10742 Check for objcopy only if compiler isn't Apple's CC
10743 Check for BSS symbol only if compiler isn't Apple's CC
10744 * genmk.rb: adapt nm options if we use Apple's utils
10745 * aclocal.m4 (grub_apple_cc): new test
10746 (grub_apple_target_cc): likewise
10748 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10750 Simplify sed expressions and improve awk
10752 * Makefile.in (install-local): simplify sed expression
10753 * gencmdlist.sh: likewise
10754 * genmoddep.awk: avoid adding module as a dependency of itself
10756 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10758 Add missing start symbols
10760 * boot/i386/pc/boot.S: add start
10761 * boot/i386/pc/pxeboot.S: likewise
10763 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10765 Fix wrong assumptions with grub-mkimage on EFI
10767 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
10768 (relocate_addresses): consider both r_addend and value at offset
10769 (make_mods_section): zerofill modinfo and header
10770 (convert_elf): write prefix here
10772 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10774 Use .asciz instead of .string
10776 * i386/pc/diskboot.S: use .asciz instead of .string
10777 * i386/pc/boot.S: likewise
10778 * include/grub/dl.h (GRUB_MOD_DEP): likewise
10779 (GRUB_MOD_NAME): likewise
10781 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10785 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
10786 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
10787 (grub_video_setup): remove
10788 (grub_video_set_mode): new prototype
10789 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
10791 (linux_vesafb_res): compile only on PCBIOS
10792 (grub_linux_boot): support gfxpayload
10793 * loader/i386/pc/xnu.c (video_hook): new function
10794 (grub_xnu_set_video): support gfxpayload
10795 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
10796 (DEFAULT_VIDEO_HEIGHT): likewise
10797 (DEFAULT_VIDEO_FLAGS): likewise
10798 (DEFAULT_VIDEO_MODE): new definition
10799 (video_hook): new function
10800 (grub_gfxterm_init): use grub_video_set_mode
10801 * util/grub.d/30_os-prober.in: remove explicit modesetting before
10803 * video/video.c (grub_video_setup): removed
10804 (grub_video_set_mode): new function based on grub_gfxterm_init and
10807 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10809 Avoid calling biosdisk in drivemap
10811 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
10812 (revparse_biosdisk): likewise
10813 (list_mappings): derive name from id directly
10814 (grub_cmd_drivemap): use tryparse_diskstring
10816 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10820 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
10821 (grub_lexer_param): add tokenonhold
10822 (grub_script_create_cmdline): remove cmdline. All callers updated
10823 (grub_script_function_create): make functionname
10824 grub_script_arg. All callers updated
10825 (grub_script_execute_argument_to_string): new prototype
10826 * kern/parser.c (state_transitions): reorder
10827 (grub_parser_cmdline_state): fix a bug and make more compact
10828 * script/sh/execute.c (grub_script_execute_argument_to_string):
10830 (grub_script_execute_cmdline): use new format
10831 * script/sh/function.c (grub_script_function_create): make functionname
10832 grub_script_arg. All callers updated
10833 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
10834 (grub_script_yylex): remove
10835 (grub_script_yylex2): renamed to ...
10836 (grub_script_yylex): ...renamed
10837 parse the expressions like a${b}c
10838 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
10839 (GRUB_PARSER_TOKEN_VAR): remove
10840 (GRUB_PARSER_TOKEN_NAME): likewise
10841 ("if"): declare as typeless
10842 ("while"): likewise
10843 ("function"): likewise
10848 (argument): likewise
10849 (script): accept empty scripts and make exit on error
10850 (arguments): use GRUB_PARSER_TOKEN_ARG
10851 (function): likewise
10852 (command): move error handling to script
10853 (menuentry): move grub_script_lexer_ref before
10854 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
10855 argument. All callers updated
10857 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
10859 Prevent GRUB from probing floppies during boot.
10861 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
10862 * commands/search.c (options): Add --no-floppy.
10863 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
10864 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
10865 --no-floppy when searching for UUIDs.
10867 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
10869 Simplify the code duplication in commands/search.c.
10871 * commands/search.c (search_label, search_fs_uuid): Merge into ...
10872 (search_fs): ... this. Update all users.
10874 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
10876 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
10878 2009-05-28 Pavel Roskin <proski@gnu.org>
10880 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
10881 Remove the original symlink explicitly.
10883 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
10884 just one slash. That's how grub_fshelp_find_file() does it.
10886 2009-05-26 Pavel Roskin <proski@gnu.org>
10888 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
10891 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
10894 2009-05-25 Christian Franke <franke@computer.org>
10896 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
10898 (grub_atapi_identify): Add wait after drive select.
10899 (grub_ata_identify): Do more strict status register check before
10900 calling grub_atapi_identify (). Suppress error message if status
10901 register is 0x00 after command failure. Add status register
10902 check after PIO read to avoid bogus identify due to stuck DRQ.
10903 Thanks to Pavel Roskin for testing.
10904 (grub_device_initialize): Remove unsafe status register check.
10905 Thanks to 'phcoder' for problem report and patch.
10906 Prevent sign extension in debug message.
10908 2009-05-23 Colin D Bennett <colin@gibibit.com>
10910 Cleaned up `include/grub/normal.h'. Grouped prototypes by
10911 definition file, and functions defined in `normal/menu.c' have had
10912 their prototypes moved to `include/grub/menu.h' for consistency.
10914 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
10916 (grub_menu_get_entry): Likewise.
10917 (grub_menu_get_timeout): Likewise.
10918 (grub_menu_set_timeout): Likewise.
10919 (grub_menu_execute_entry): Likewise.
10920 (grub_menu_execute_with_fallback): Likewise.
10921 (grub_menu_entry_run): Likewise.
10923 * include/grub/normal.h: Re-ordered and grouped function
10924 prototypes by file that the function is defined in.
10925 (grub_menu_execute_callback): Removed; moved to menu.h.
10926 (grub_menu_get_entry): Likewise.
10927 (grub_menu_get_timeout): Likewise.
10928 (grub_menu_set_timeout): Likewise.
10929 (grub_menu_execute_entry): Likewise.
10930 (grub_menu_execute_with_fallback): Likewise.
10931 (grub_menu_entry_run): Likewise.
10932 (grub_menu_addentry): Renamed from this ...
10933 (grub_normal_add_menu_entry): ... to this.
10935 * normal/main.c (grub_menu_addentry): Renamed from this ...
10936 (grub_normal_add_menu_entry): ... to this.
10938 * script/sh/execute.c (grub_script_execute_menuentry): Update
10939 reference to renamed grub_menu_addentry function.
10941 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
10943 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
10945 2009-05-22 Pavel Roskin <proski@gnu.org>
10947 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
10948 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
10949 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
10950 compiling for the i386 targets, but not for the utilities.
10952 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
10954 (grub_root_drive): Likewise.
10955 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
10957 (grub_root_drive): Change size to byte.
10958 (grub_start_addr): Remove.
10959 (grub_end_addr): Likewise.
10960 (grub_apm_bios_info): Likewise.
10962 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
10964 * normal/i386: Remove.
10965 * normal/powerpc: Likewise.
10966 * normal/sparc64: Likewise.
10967 * normal/x86_64: Likewise.
10969 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
10971 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
10972 * loader/i386/linux_trampoline.S: Fix indentation
10973 * loader/i386/xnu_helper.S: Likewise
10975 2009-05-18 Colin D Bennett <colin@gibibit.com>
10977 Display error messages when parsing a Lua statement fails.
10978 Previously, executing a syntactically invalid statement like
10979 ")foo" or "bar;" would silently fail.
10981 * script/lua/grub_main.c (handle_lua_error): New function.
10982 (grub_lua_parse_line): Improved reporting of Lua parser and
10985 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10987 Remove -Werror which causes build to fail on some systems
10989 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
10990 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
10991 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
10993 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10995 trampoline for linux on 64-bit platform
10997 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
10998 loader/i386/efi/linux_trampoline.S
10999 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
11001 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
11003 * loader/i386/linux_trampoline.S: moved here
11004 * loader/i386/efi/linux.c (allocate_pages): reserve space for
11006 (jumpvector): removed
11007 (grub_linux_trampoline_start): new declaration
11008 (grub_linux_trampoline_end): likewise
11009 (grub_linux_boot): use trampoline when on 64-bit platform
11010 * loader/i386/linux.c: likewise
11012 2009-05-16 Pavel Roskin <proski@gnu.org>
11014 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
11015 const to avoid a warning.
11016 (grub_lua_setenv): Likewise.
11017 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
11018 lmsg to fix a warning.
11020 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11022 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
11023 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11024 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
11025 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11026 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11027 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11028 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11029 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11031 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11033 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
11035 2009-05-16 Bean <bean123ch@gmail.com>
11037 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
11038 (lua_mod_SOURCES): New variable.
11039 (lua_mod_CFLAGS): Likewise.
11040 (lua_mod_LDFLAGS): Likewise.
11042 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
11043 (setjmp_mod_SOURCES): New variable.
11044 (setjmp_mod_CFLAGS): Likewise.
11045 (setjmp_LDFLAGS): Likewise.
11047 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
11048 (setjmp_mod_SOURCES): New variable.
11049 (setjmp_mod_CFLAGS): Likewise.
11050 (setjmp_LDFLAGS): Likewise.
11052 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11053 (setjmp_mod_SOURCES): New variable.
11054 (setjmp_mod_CFLAGS): Likewise.
11055 (setjmp_LDFLAGS): Likewise.
11057 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11058 (setjmp_mod_SOURCES): New variable.
11059 (setjmp_mod_CFLAGS): Likewise.
11060 (setjmp_LDFLAGS): Likewise.
11062 * normal/i386/setjmp.S: Moved from here ...
11063 * lib/i386/setjmp.S: ... Moved here
11064 * normal/x86_64/setjmp.S: Moved from here ...
11065 * lib/x86_64/setjmp.S: ... Moved here
11066 * normal/powerpc/setjmp.S: Moved from here ...
11067 * lib/powerpc/setjmp.S: ... Moved here
11068 * normal/sparc64/setjmp.S: Moved from here ...
11069 * lib/sparc64/setjmp.S: ... Moved here
11071 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
11072 returns_twice in mingw.
11074 * script/lua/grub_lib.c: New file.
11075 * script/lua/grub_lib.h: Likewise.
11076 * script/lua/grub_lua.h: Likewise.
11077 * script/lua/grub_main.c: Likewise.
11078 * script/lua/lapi.c: Likewise.
11079 * script/lua/lapi.h: Likewise.
11080 * script/lua/lauxlib.c: Likewise.
11081 * script/lua/lauxlib.h: Likewise.
11082 * script/lua/lbaselib.c: Likewise.
11083 * script/lua/lcode.c: Likewise.
11084 * script/lua/lcode.h: Likewise.
11085 * script/lua/ldblib.c: Likewise.
11086 * script/lua/ldebug.c: Likewise.
11087 * script/lua/ldebug.h: Likewise.
11088 * script/lua/ldo.c: Likewise.
11089 * script/lua/ldo.h: Likewise.
11090 * script/lua/ldump.c: Likewise.
11091 * script/lua/lfunc.c: Likewise.
11092 * script/lua/lfunc.h: Likewise.
11093 * script/lua/lgc.c: Likewise.
11094 * script/lua/lgc.h: Likewise.
11095 * script/lua/linit.c: Likewise.
11096 * script/lua/liolib.c: Likewise.
11097 * script/lua/llex.c: Likewise.
11098 * script/lua/llex.h: Likewise.
11099 * script/lua/llimits.h: Likewise.
11100 * script/lua/lmathlib.c: Likewise.
11101 * script/lua/lmem.c: Likewise.
11102 * script/lua/lmem.h: Likewise.
11103 * script/lua/loadlib.c: Likewise.
11104 * script/lua/lobject.c: Likewise.
11105 * script/lua/lobject.h: Likewise.
11106 * script/lua/lopcodes.c: Likewise.
11107 * script/lua/lopcodes.h: Likewise.
11108 * script/lua/loslib.c: Likewise.
11109 * script/lua/lparser.c: Likewise.
11110 * script/lua/lparser.h: Likewise.
11111 * script/lua/lstate.c: Likewise.
11112 * script/lua/lstate.h: Likewise.
11113 * script/lua/lstring.c: Likewise.
11114 * script/lua/lstring.h: Likewise.
11115 * script/lua/lstrlib.c: Likewise.
11116 * script/lua/ltable.c: Likewise.
11117 * script/lua/ltable.h: Likewise.
11118 * script/lua/ltablib.c: Likewise.
11119 * script/lua/ltm.c: Likewise.
11120 * script/lua/ltm.h: Likewise.
11121 * script/lua/lua.h: Likewise.
11122 * script/lua/luaconf.h: Likewise.
11123 * script/lua/lualib.h: Likewise.
11124 * script/lua/lundump.c: Likewise.
11125 * script/lua/lundump.h: Likewise.
11126 * script/lua/lvm.c: Likewise.
11127 * script/lua/lvm.h: Likewise.
11128 * script/lua/lzio.c: Likewise.
11129 * script/lua/lzio.h: Likewise.
11131 2009-05-16 Bean <bean123ch@gmail.com>
11133 * include/grub/kernel.h (grub_module_header_types): Add type
11136 * kern/main.c (grub_load_config): New function.
11137 (grub_main): Call grub_load_config to read boot config.
11139 * grub-mkimage (generate_image): New parameter config_path.
11140 (options): New option --config.
11141 (main): Parse --config option, and pass it to generate_image.
11143 2009-05-14 Christian Franke <franke@computer.org>
11145 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
11146 This fixes build on Cygwin.
11148 2009-05-14 Pavel Roskin <proski@gnu.org>
11150 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
11151 jump. This saves two bytes, so the typical case of 2 swapped
11152 drives would fit 32 bytes.
11154 2009-05-13 Pavel Roskin <proski@gnu.org>
11156 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
11157 grub_uint32_t to avoid a warning.
11159 * loader/i386/linux.c (allocate_pages): When assigning
11160 real_mode_mem, cast through grub_size_t to fix a warning. The
11161 code already makes sure that the value would fit a pointer.
11162 (grub_linux_setup_video): Cast render_target->data to
11163 grub_size_t to fix a warning.
11165 2009-05-13 Javier Martín <lordhabbit@gmail.com>
11167 * commands/i386/pc/drivemap.c: New file - implement drivemap
11169 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
11170 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
11172 2009-05-13 Pavel Roskin <proski@gnu.org>
11174 * util/i386/pc/grub-setup.c (setup): Remove unused variable
11175 embedding_area_exists.
11177 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
11179 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
11180 it easier to understand / work with.
11181 Improve warning messages for cases where there's no embedding area,
11182 or when it is too small (or core.img too large).
11184 2009-05-13 Pavel Roskin <proski@gnu.org>
11186 * loader/i386/pc/multiboot2.c: Add necessary includes for
11187 grub_multiboot2_real_boot().
11189 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
11190 PX record is always little-endian. We only need the lower 2
11193 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
11194 facilitate code reuse.
11195 (grub_cpio_mount): Use "struct head", not a char buffer. This
11196 fixes a warning reported by gcc 4.4.
11198 * kernel/disk.c (grub_disk_read): Use void pointer for the
11200 (grub_disk_write): Use const void pointer for the buffer.
11201 Adjust all callers. Remove unnecessary casts.
11203 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
11205 * util/i386/pc/grub-install.in: Update copyright year.
11207 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11211 * commands/gptsync.c: new file
11212 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
11213 (gptsync_mod_SOURCES): new variable
11214 (gptsync_mod_CFLAGS): likewise
11215 (gptsync_mod_LDFLAGS): likewise
11216 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
11218 (GRUB_PC_PARTITION_TYPE_HFS): likewise
11219 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
11220 * conf/i386-ieee1275.rmk: likewise
11221 * conf/i386-pc.rmk: likewise
11222 * conf/powerpc-ieee1275.rmk: likewise
11224 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11228 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
11229 (grub_dl_ref): likewise
11231 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
11233 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
11234 split in two functions (one for msdos and one for gpt).
11236 2009-05-08 Pavel Roskin <proski@gnu.org>
11238 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
11241 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
11242 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
11243 Initialize them with -1. Add sanity check for bad1. Eliminate
11246 2009-05-08 David S. Miller <davem@davemloft.net>
11248 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
11250 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
11252 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
11255 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
11257 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
11258 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
11260 2009-05-05 David S. Miller <davem@davemloft.net>
11262 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
11264 2009-05-05 Pavel Roskin <proski@gnu.org>
11266 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
11267 of grub_dl_ref() and grub_dl_unref().
11268 * commands/parttool.c: Remove preprocessor conditionals around
11269 grub_dl_ref() and grub_dl_unref().
11270 * fs/affs.c: Likewise.
11271 * fs/afs.c: Likewise.
11272 * fs/cpio.c: Likewise.
11273 * fs/ext2.c: Likewise.
11274 * fs/fat.c: Likewise.
11275 * fs/hfs.c: Likewise.
11276 * fs/hfsplus.c: Likewise.
11277 * fs/iso9660.c: Likewise.
11278 * fs/jfs.c: Likewise.
11279 * fs/minix.c: Likewise.
11280 * fs/ntfs.c: Likewise.
11281 * fs/reiserfs.c: Likewise.
11282 * fs/sfs.c: Likewise.
11283 * fs/udf.c: Likewise.
11284 * fs/ufs.c: Likewise.
11285 * fs/xfs.c: Likewise.
11286 * include/grub/dl.h: Likewise.
11287 * loader/xnu.c: Likewise.
11289 2009-05-04 Pavel Roskin <proski@gnu.org>
11291 * commands/acpi.c: Remove unused variable my_mod.
11292 * partmap/amiga.c: Likewise.
11293 * partmap/apple.c: Likewise.
11294 * partmap/gpt.c: Likewise.
11295 * partmap/pc.c: Likewise.
11296 * partmap/sun.c: Likewise.
11297 * term/gfxterm.c: Likewise.
11298 * term/i386/pc/vesafb.c: Likewise.
11299 * term/i386/pc/vga.c: Likewise.
11301 2009-05-04 David S. Miller <davem@davemloft.net>
11303 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
11304 pointer args to grub_ieee1275_get_property().
11306 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
11308 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
11309 devices, and do not traverse down under controller nodes.
11311 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
11312 (grub_ofdisk_open): Use it to un-escape "," characters.
11313 * kern/disk.c (find_part_sep): New.
11314 (grub_disk_open): Use it to find the first non-escaped ','
11315 character in the disk name.
11316 * util/ieee1275/devicemap.c (escape_of_path): New.
11317 (grub_util_emit_devicemap_entry): Use it.
11318 * util/sparc64/ieee1275/grub-install.in: Update script to
11319 strip partition specifiers properly by not triggering on
11320 '\' escaped ',' characters.
11322 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11324 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
11326 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
11328 (linux_vesafb_modes): Add a lot of additional modes to the list (based
11329 on documentation from Wikipedia).
11331 2009-05-04 Pavel Roskin <proski@gnu.org>
11333 * disk/ata.c: Spelling fixes.
11334 * disk/raid.c: Likewise.
11335 * disk/usbms.c: Likewise.
11336 * disk/dmraid_nvidia.c: Likewise.
11337 * kern/ieee1275/openfw.c: Likewise.
11338 * kern/ieee1275/init.c: Likewise.
11339 * kern/ieee1275/cmain.c: Likewise.
11340 * boot/i386/pc/cdboot.S: Likewise.
11341 * video/readers/png.c: Likewise.
11342 * video/i386/pc/vbe.c: Likewise.
11343 * fs/udf.c: Likewise.
11344 * fs/hfs.c: Likewise.
11345 * fs/reiserfs.c: Likewise.
11346 * efiemu/runtime/efiemu.c: Likewise.
11347 * efiemu/main.c: Likewise.
11348 * efiemu/mm.c: Likewise.
11349 * include/grub/elf.h: Likewise.
11350 * include/grub/xnu.h: Likewise.
11351 * include/grub/usbdesc.h: Likewise.
11352 * include/grub/usb.h: Likewise.
11353 * include/grub/script_sh.h: Likewise.
11354 * include/grub/lib/LzmaEnc.h: Likewise.
11355 * include/grub/efiemu/efiemu.h: Likewise.
11356 * include/grub/command.h: Likewise.
11357 * normal/menu.c: Likewise.
11358 * normal/main.c: Likewise.
11359 * normal/datetime.c: Likewise.
11360 * bus/usb/uhci.c: Likewise.
11361 * mmap/i386/uppermem.c: Likewise.
11362 * mmap/mmap.c: Likewise.
11363 * commands/acpi.c: Likewise.
11364 * commands/test.c: Likewise.
11365 * partmap/apple.c: Likewise.
11366 * font/font.c: Likewise.
11367 * loader/sparc64/ieee1275/linux.c: Likewise.
11368 * loader/macho.c: Likewise.
11369 * loader/i386/bsd_trampoline.S: Likewise.
11370 * loader/i386/bsd.c: Likewise.
11371 * loader/xnu.c: Likewise.
11372 * term/i386/pc/vesafb.c: Likewise.
11373 * term/usb_keyboard.c: Likewise.
11374 * util/resolve.c: Likewise.
11375 * util/getroot.c: Likewise.
11377 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
11379 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
11381 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11383 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
11386 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11388 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
11389 parameter only available on BIOS.
11391 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11393 Removed wrong semicolon in declaration
11395 * grub/misc.h (grub_dprintf): remove semicolon
11397 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11399 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
11400 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
11401 is done by grub_cmd_linux() now).
11402 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
11403 restore video to text mode.
11404 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
11405 indicates lack of "vga=" parameter. "vga=0" is mapped to
11406 `GRUB_LINUX_VID_MODE_NORMAL'.
11408 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
11410 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
11411 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
11412 and `normal/script.c'. Add `kern/rescue_reader.c',
11413 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
11414 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
11415 `grub_script.tab.c'.
11417 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11418 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
11419 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11420 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
11421 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11423 * Makefile.in: Remove duplicated 2008 in Copyright line.
11425 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11427 * util/misc.c (grub_util_warn): New function. Emits a warning
11429 * include/grub/util/misc.h (grub_util_warn): New declaration.
11431 * util/i386/pc/grub-install.in: Understand --force and pass it down
11434 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
11436 (setup): Improve error messages and add warnings when requested to
11437 install in odd layouts. Refuse to install using blocklists unless
11440 2009-05-04 martin f. krafft <madduck@madduck.net>
11442 * disk/raid.c (grub_raid_scan_device): Improve debug message.
11444 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11446 Updated copyright year
11448 * fs/hfsplus.c: updated copyright year
11450 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11454 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
11455 in the space previously used by unused3
11456 (grub_hfsplus_uuid): new function
11457 (grub_hfsplus_fs): added uuid field
11459 2009-05-03 Pavel Roskin <proski@gnu.org>
11461 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
11462 suppress warnings. It's no longer needed.
11463 * disk/host.c: Likewise.
11464 * disk/ata_pthru.c: Likewise.
11465 * disk/loopback.c: Likewise.
11466 * hook/datehook.c: Likewise.
11467 * parttool/pcpart.c: Likewise.
11468 * fs/i386/pc/pxe.c: Likewise.
11469 * fs/ntfscomp.c: Likewise.
11470 * efiemu/main.c: Likewise.
11471 * mmap/mmap.c: Likewise.
11472 * commands/crc.c: Likewise.
11473 * commands/hexdump.c: Likewise.
11474 * commands/hdparm.c: Likewise.
11475 * commands/acpi.c: Likewise.
11476 * commands/echo.c: Likewise.
11477 * commands/minicmd.c: Likewise.
11478 * commands/blocklist.c: Likewise.
11479 * commands/memrw.c: Likewise.
11480 * commands/loadenv.c: Likewise.
11481 * commands/usbtest.c: Likewise.
11482 * commands/lsmmap.c: Likewise.
11483 * commands/boot.c: Likewise.
11484 * commands/parttool.c: Likewise.
11485 * commands/configfile.c: Likewise.
11486 * commands/search.c: Likewise.
11487 * commands/ieee1275/suspend.c: Likewise.
11488 * commands/cat.c: Likewise.
11489 * commands/i386/pc/pxecmd.c: Likewise.
11490 * commands/i386/pc/play.c: Likewise.
11491 * commands/i386/pc/halt.c: Likewise.
11492 * commands/i386/pc/vbeinfo.c: Likewise.
11493 * commands/i386/pc/vbetest.c: Likewise.
11494 * commands/lspci.c: Likewise.
11495 * commands/date.c: Likewise.
11496 * commands/handler.c: Likewise.
11497 * commands/ls.c: Likewise.
11498 * commands/test.c: Likewise.
11499 * commands/cmp.c: Likewise.
11500 * commands/efi/loadbios.c: Likewise.
11501 * commands/efi/fixvideo.c: Likewise.
11502 * commands/halt.c: Likewise.
11503 * commands/help.c: Likewise.
11504 * commands/reboot.c: Likewise.
11505 * hello/hello.c: Likewise.
11506 * script/sh/main.c: Likewise.
11507 * loader/xnu.c: Likewise.
11508 * term/terminfo.c: Likewise.
11509 * term/i386/pc/serial.c: Likewise.
11510 * term/usb_keyboard.c: Likewise.
11512 2009-05-03 David S. Miller <davem@davemloft.net>
11514 * normal/menu.c: Include grub/parser.h
11516 2009-05-03 Pavel Roskin <proski@gnu.org>
11518 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
11520 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
11521 Suggested by Javier Martín <lordhabbit@gmail.com>
11523 * util/i386/pc/grub-mkrescue.in: Allow for the case when
11524 efiemu??.o doesn't exist.
11525 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
11528 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
11530 FreeBSD 64-bit support
11532 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
11533 and loader/i386/bsd_trampoline.S
11534 (bsd_mod_ASFLAGS): new variable
11535 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
11536 (FREEBSD_MODTYPE_KERNEL64): likewise
11537 (grub_bsd64_trampoline_start): likewise
11538 (grub_bsd64_trampoline_end): likewise
11539 (grub_bsd64_trampoline_selfjump): likewise
11540 (grub_bsd64_trampoline_gdt): likewise
11541 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
11542 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
11543 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
11544 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
11545 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
11547 * loader/i386/bsd_pagetable.c: new file
11548 * loader/i386/bsd_trampoline.S: likewise
11549 * loader/i386/bsd.c (ALIGN_QWORD): new macro
11550 (ALIGN_VAR): likewise
11551 (entry_hi): new variable
11552 (kern_end_mdofs): likewise
11553 (is_64bit): likewise
11554 (grub_freebsd_add_meta): use ALIGN_VAR
11555 (grub_e820_mmap): new declaration
11556 (grub_freebsd_add_mmap): new function
11557 (grub_freebsd_add_meta_module): support 64 bit kernels
11558 (grub_freebsd_list_modules): use ALIGN_VAR
11559 (gdt_descriptor): new declaration
11560 (grub_freebsd_boot): support 64 bit kernels
11561 (grub_bsd_elf64_hook): new function
11562 (grub_bsd_load_elf): support elf64
11564 2009-05-03 Bean <bean123ch@gmail.com>
11566 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
11567 after we get the result of if statement.
11569 2009-05-03 Bean <bean123ch@gmail.com>
11571 * Makefile.in (enable_efiemu): New variable.
11573 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
11575 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
11577 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
11578 path, add -mno-red-zone option.
11579 (efiemu64_s.o): Likewise.
11580 (efiemu64.o): Use macro $^ for source file.
11582 * configure.ac (--enable-efiemu): New option.
11584 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11588 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
11589 (pkglib_MODULES): add xnu.mod
11590 (xnu_mod_SOURCES): new variable
11591 (xnu_mod_CFLAGS): likewise
11592 (xnu_mod_LDFLAGS): likewise
11593 (xnu_mod_ASFLAGS): likewise
11594 * conf/i386-pc.rmk: likewise
11595 * conf/x86_64-efi.rmk: likewise
11596 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
11598 * include/grub/i386/macho.h: new file
11599 * include/grub/i386/xnu.h: likewise
11600 * include/grub/macho.h: likewise
11601 * include/grub/machoload.h: likewise
11602 * include/grub/x86_64/macho.h: likewise
11603 * include/grub/x86_64/xnu.h: likewise
11604 * include/grub/xnu.h: likewise
11605 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
11606 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
11607 * loader/i386/efi/xnu.c: new file
11608 * loader/i386/pc/xnu.c: likewise
11609 * loader/i386/xnu.c: likewise
11610 * loader/i386/xnu_helper.S: likewise
11611 * loader/macho.c: likewise
11612 * loader/xnu.c: likewise
11613 * loader/xnu_resume.c: likewise
11614 * util/grub-dumpdevtree: likewise
11615 * include/grub/i386/pit.h: include grub/err.h
11616 (grub_pit_wait): export
11617 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
11619 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11623 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
11624 _linux_efi, linux_efi.
11625 new files in grub-emu
11626 new targets efiemu32.o and efiemu64.o
11627 * loader/linux_normal_efiemu.c: likewise
11628 * loader/i386/efi/linux.c: added preliminary efiemu support
11629 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
11631 * include/grub/autoefi.h: new file
11632 * include/grub/i386/efiemu.h: likewise
11633 * include/grub/i386/pc/efiemu.h: likewise
11634 * include/grub/efi/api.h: add LL suffix when necessary
11635 new definitions relating to tables
11636 * include/grub/efiemu/efiemu.h: new file
11637 * include/grub/efiemu/runtime.h: likewise
11638 * efiemu/prepare.c: likewise
11639 * efiemu/loadcore_common.c: likewise
11640 * efiemu/loadcore64.c: likewise
11641 * efiemu/runtime/efiemu.sh: likewise
11642 * efiemu/runtime/efiemu.S: likewise
11643 * efiemu/runtime/efiemu.c: likewise
11644 * efiemu/runtime/config.h: likewise
11645 * efiemu/prepare32.c: likewise
11646 * efiemu/main.c: likewise
11647 * efiemu/modules/pnvram.c: likewise
11648 * efiemu/modules/i386: likewise
11649 * efiemu/modules/i386/pc: likewise
11650 * efiemu/modules/acpi.c: likewise
11651 * efiemu/i386/pc/cfgtables.c: likewise
11652 * efiemu/i386/loadcore64.c: likewise
11653 * efiemu/i386/loadcore32.c: likewise
11654 * efiemu/prepare64.c: likewise
11655 * efiemu/loadcore.c: likewise
11656 * efiemu/symbols.c: likewise
11657 * efiemu/mm.c: likewise
11658 * efiemu/loadcore32.c: likewise
11660 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11664 * commands/acpi.c: new file
11665 * commands/i386/pc/acpi.c: likewise
11666 * commands/efi/acpi.c: likewise
11667 * include/grub/acpi.h: likewise
11668 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
11669 (acpi_mod_SOURCES): new variable
11670 (acpi_mod_CFLAGS): likewise
11671 (acpi_mod_LDFLAGS): likewise
11672 * conf/i386-efi.rmk: likewise
11673 * conf/x86_64-efi.rmk: likewise
11675 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11677 Missing part from mmap patch
11679 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
11680 (grub_mmap_unregister)
11681 (grub_mmap_free_and_unregister): use grub_mmap_register
11683 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11687 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
11688 * loader/i386/linux.c (find_mmap_size): likewise
11689 (allocate_pages): likewise
11690 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
11691 (grub_fill_multiboot_mmap): likewise
11692 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
11693 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
11694 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
11695 (OPENBSD_MMAP_RESERVED): likewise
11696 * include/grub/i386/pc/memory.h: include grub/memory.h
11697 (grub_lower_mem): removed
11698 (grub_upper_mem): likewise
11699 (GRUB_MACHINE_MEMORY_ACPI): new definition
11700 (GRUB_MACHINE_MEMORY_NVS): likewise
11701 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
11702 (GRUB_MACHINE_MEMORY_HOLE): likewise
11703 (grub_machine_mmap_register): likewise
11704 (grub_machine_mmap_unregister): likewise
11705 (grub_machine_get_upper): likewise
11706 (grub_machine_get_lower): likewise
11707 (grub_machine_get_post64): likewise
11708 * include/grub/i386/efi/memory.h: new file
11709 * include/grub/x86_64/efi/memory.h: likewise
11710 * include/grub/efi/memory.h: likewise
11711 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
11712 (mmap_mod_SOURCES): new variable
11713 (mmap_mod_LDFLAGS): likewise
11714 (mmap_mod_ASFLAGS): likewise
11715 * conf/i386-coreboot.rmk: likewise
11716 * conf/i386-ieee1275.rmk: likewise
11717 * conf/i386-efi.rmk: likewise
11718 * conf/x86_64-efi.rmk: likewise
11719 * include/grub/types.h (UINT_TO_PTR): new macro
11720 (PTR_TO_UINT32): likewise
11721 (PTR_TO_UINT64): likewise
11722 * include/grub/memory.h: new file
11723 * mmap/i386/pc/mmap.c: likewise
11724 * mmap/i386/pc/mmap_helper.S: likewise
11725 * mmap/i386/uppermem.c: likewise
11726 * mmap/mmap.c: likewise
11727 * mmap/efi/mmap.c: likewise
11728 * kern/i386/coreboot/init.c (grub_machine_init): don't use
11730 * kern/i386/pc/init.c (grub_lower_mem): removed variable
11731 (grub_upper_mem): likewise
11732 (grub_machine_init): don't use grub_upper_mem,
11733 make grub_lower_mem local
11734 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
11735 grub_mmap_iterate and grub_mmap_get_upper
11736 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
11738 2009-05-02 Bean <bean123ch@gmail.com>
11740 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
11741 script/sh/parser.y.
11742 (pkglib_MODULES): Add normal.mod and sh.mod.
11743 (normal_SOURCES): New variable.
11744 (normal_mod_CFLAGS): Likewise.
11745 (normal_mod_LDFLAGS): Likewise.
11746 (sh_mod_SOURCES): Likewise.
11747 (sh_mod_CFLAGS): Likewise.
11748 (sh_mod_LDFLAGS): Likewise.
11750 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
11751 script/sh/lexer.c_DEPENDENCIES.
11752 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
11753 kern/rescue_reader.c and kern/rescue_parser.c.
11754 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
11755 (grub_emu_SOURCES): Change source files.
11756 (pkglib_MODULES): Remove normal.mod.
11757 (normal_SOURCES): Removed.
11758 (normal_mod_CFLAGS): Likewise.
11759 (normal_mod_LDFLAGS): Likewise.
11760 * conf/i386-coreboot.rmk: Likewise.
11761 * conf/i386-efi.rmk: Likewise.
11762 * conf/i386-ieee1276.rmk: Likewise.
11763 * conf/powerpc-ieee1275.rmk: Likewise.
11764 * conf/sparc64-ieee1275.rmk: Likewise.
11765 * conf/x86_64-efi.rmk: Likewise.
11767 * include/grub/command.h (grub_command_execute): New inline function.
11769 * include/grub/menu.h (grub_menu_entry): Removed commands field.
11771 * include/grub/normal.h: Remove <grub/setjmp.h>.
11772 (grub_fs_module_list): Moved to normal/autofs.c.
11773 (grub_exit_env): Removed.
11774 (grub_command_execute): Likewise.
11775 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
11777 (read_command_list): New function declaration.
11778 (read_fs_list): Likewise.
11780 * include/parser.h: Include <grub/reader.h>.
11781 (grub_parser_split_cmdline): Change type of getline parameter.
11782 (grub_parser): New structure.
11783 (grub_parser_class): New variable.
11784 (grub_parser_execute): New function declaration.
11785 (grub_register_rescue_parser): Likewise.
11786 (grub_parser_register): New inline function.
11787 (grub_parser_unregister): Likewise.
11788 (grub_parser_get_current): Likewise.
11789 (grub_parser_set_current): Likewise.
11791 * include/grub/reader.h: New file.
11792 * kern/reader.c: Likewise.
11793 * kern/rescue_parser.c: Likewise.
11794 * kern/rescue_reader.c: Likewise.
11795 * normal/autofs.c: Likewise.
11796 * normal/dyncmd.c: Likewise.
11798 * include/grub/rescue.h: Removed.
11799 * normal/command.h: Likewise.
11801 * include/grub/script.h: Moved to ...
11802 * include/grub/script_sh.h: ... Moved here.
11803 * normal/execute.c: Moved to ...
11804 * script/sh/execute.c: ... Moved here.
11805 * normal/function.c: Moved to ...
11806 * script/sh/function.c: ... Moved here.
11807 * normal/lexer.c: Moved to ...
11808 * script/sh/lexer.c: ... Moved here.
11809 * normal/parser.y: Moved to ...
11810 * script/sh/parser.y: ... Moved here.
11811 * normal/script.c: Moved to ...
11812 * script/sh/script.c: ... Moved here.
11814 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
11816 (grub_exit_env): Removed.
11817 (fs_module_list): Moved to normal/autofs.c.
11818 (grub_file_getline): Don't handle comment here.
11819 (free_menu): Skip removed field entry->commands.
11820 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
11822 (read_config_file): Removed nested parameter, change getline function.
11823 (grub_enter_normal_mode): Removed.
11824 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
11825 (read_command_list): Likewise.
11826 (autoload_fs_module): Moved to normal/autofs.c.
11827 (read_fs_list): Likewise.
11828 (reader_nested): New variable.
11829 (grub_normal_execute): Run parser.sh to switch to sh parser.
11830 (grub_cmd_rescue): Removed.
11831 (cmd_normal): Removed.
11832 (grub_cmd_normal): Unregister itself at the beginning. Don't register
11834 (grub_cmdline_run): New function.
11835 (grub_normal_reader_init): Likewise.
11836 (grub_normal_read_line): Likewise.
11837 (grub_env_write_pager): Likewise.
11838 (cmdline): New variable.
11839 (grub_normal_reader): Likewise.
11840 (GRUB_MOD_INIT): Register normal reader and set as current, register
11841 pager hook, register normal command with grub_register_command_prio,
11842 so that it won't show up in command.lst.
11843 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
11844 grub_fs_autoload_hook.
11846 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
11847 (grub_menu_execute_entry): Replace grub_script_execute with
11848 grub_parser_execute, change parameter to grub_command_execute.
11850 * normal/menu_text.c: Remove <grub/script.h>.
11852 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
11853 and <grub/parser.h>.
11854 (run): Change editor_getline to use new parser interface. Change
11855 parameter to grub_command_execute.
11857 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
11858 <grub/reader.h> and <grub/parser.h>.
11859 (grub_load_normal_mode): Execute normal command.
11860 (grub_main): Call grub_register_core_commands,
11861 grub_register_rescue_parser and grub_register_rescue_reader, use
11862 grub_reader_loop to enter input loop.
11864 * kern/parser.c (grub_parser_split_cmdline): Change type of
11866 (grub_parser_class): New variable.
11867 (grub_parser_execute): New function.
11869 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
11870 * loader/multiboot2.c: Likewise.
11871 * loader/sparc64/ieee1275/linux.c: Likewise.
11873 * util/grub-emu.c (read_command_list): New dummy function.
11875 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
11877 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
11878 count to 16 for CCISS and IDA.
11880 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
11882 * normal/menu_text.c (grub_wait_after_message): Print a newline
11883 after waiting for user input.
11885 * loader/i386/linux.c: Include `<grub/normal.h>'.
11886 (grub_cmd_linux): Improve the error message about `ask' mode, by
11887 waiting for user input so it's not missed (we can do this, since
11888 user requested interaction).
11890 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11892 Added missing lst to grub-mkrescue
11894 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
11895 and ${input_dir}/parttool.lst
11897 2009-04-30 David S. Miller <davem@davemloft.net>
11899 * util/hostdisk.c (device_is_wholedisk): New function.
11900 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
11901 zero only if device_is_wholedisk() returns true.
11903 * util/hostdisk.c (convert_system_partition_to_system_disk):
11904 Handle virtual disk devices named /dev/vdiskX as found on sparc
11907 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
11908 lettered partition specifier is found, convert to numbered.
11910 2009-04-29 David S. Miller <davem@davemloft.net>
11912 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
11913 * include/grub/sparc64/ieee1275/memory.h: Likewise.
11915 * normal/command.c: Add missing newline at end of file.
11917 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
11919 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
11920 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
11921 grub_ofdisk_read): Likewise, and deal similarly with the fact that
11922 ihandles have a 32-bit type but need to be stored in a "void *".
11924 2009-04-28 Pavel Roskin <proski@gnu.org>
11926 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
11927 not disk. Adjust all dependencies.
11928 (grub_fs_uuid_close): Use grub_device_close(), not
11931 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
11932 parent's partition, don't copy it by reference, as it gets freed
11935 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
11937 Preboot hooks support
11939 * commands/boot.c (struct grub_preboot_t): new declaration
11940 (preboots_head): new variable
11941 (preboots_tail): likewise
11942 (grub_loader_register_preboot_hook): new function
11943 (grub_loader_unregister_preboot_hook): likewise
11944 (grub_loader_set): launch preboot hooks
11945 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
11946 (grub_loader_register_preboot_hook): new declaration
11947 (grub_loader_unregister_preboot_hook): likewise
11949 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
11953 * disk/scsi.c (grub_scsi_open): added missing cast when
11954 calling grub_dprintf
11956 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
11958 Bug and warning fixes
11960 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
11962 * commands/test.c (test_parse): fixed bug with file tests and corrected
11963 declaration of find_file
11965 2009-04-26 Pavel Roskin <proski@gnu.org>
11967 * Makefile.in: Don't install empty manual pages if help2man is
11968 missing. Use help2man option for output, not shell redirection.
11970 2009-04-26 David S. Miller <davem@davemloft.net>
11972 * util/grub-mkdevicemap.c (make_device_map): Add missing
11973 NESTED_FUNC_ATTR to process_device().
11975 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11979 * commands/test.c: rewritten to use bash-like test
11981 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11983 Parttool autoloading and improvements
11985 * Makefile.in (pkglib_DATA): add parttool.lst
11986 (parttool.lst): new target
11987 * genmk.rb: generate parttool-*
11988 (CLEANFILES): add #{parttool}
11989 (PARTTOOLFILES): new variable
11990 * genparttoollist.sh: new file
11991 * parttool/pcpart.c (grub_pcpart_boot): more feedback
11992 (grub_pcpart_type): likewise
11993 * commands/parttool.c (helpmsg): new variable
11994 (grub_cmd_parttool): output help if not enough arguments are supplied
11996 (GRUB_MOD_INIT(parttool)): use helpmsg
11998 2009-04-24 David S. Miller <davem@davemloft.net>
12000 Avoiding opening same device multiple times in device iterator.
12002 * kern/device.c: (grub_device_iterate): Define struct part_ent,
12003 and use it to build a list of partitions in iterate_disk() and
12004 iterate_partition().
12006 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
12009 * disk/ieee1275/nand.c (grub_nand_iterate): Return
12010 grub_devalias_iterate() result instead of unconditional 0.
12011 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
12012 Also, capture hook return value, either directly or via
12013 grub_children_iterate(), and propagate to caller.
12014 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
12015 grub_children_iterate): Return value is now 'int' instead of
12017 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
12018 like a proper iterator, stopping when hooks return non-zero.
12019 (grub_devalias_iterate): Likewise.
12021 2009-04-23 David S. Miller <davem@davemloft.net>
12023 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
12025 2009-04-22 David S. Miller <davem@davemloft.net>
12027 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
12028 is larger than address_cells, use that value for address_cells too.
12030 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
12031 IEEE1275_MAX_PATH_LEN): Define.
12032 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
12033 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
12034 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
12035 'devtype'. Explicitly NULL terminate devalias expansion.
12037 * util/sparc64/ieee1275/misc.c: New file.
12038 * util/sparc64/ieee1275/grub-setup.c: New file.
12039 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
12040 * util/sparc64/ieee1275/grub-mkimage.c: New file.
12041 * util/sparc64/ieee1275/grub-install.in: New file.
12042 * util/ieee1275/ofpath.c: New file.
12043 * util/ieee1275/devicemap.c: New file.
12044 * util/devicemap.c: New file.
12045 * util/deviceiter.c: New file.
12046 * kern/sparc64/ieee1275/init.c: New file.
12047 * include/grub/util/ofpath.h: New file.
12048 * include/grub/util/deviceiter.h: New file.
12049 * util/grub-mkdevicemap.c: Include deviceiter.h.
12050 Implement using grub_util_emit_devicemap_entry and
12051 grub_util_iterate_devices.
12052 * conf/i386-corebook.rmk: Build util/deviceiter.c and
12053 util/devicemap.c into grub-mkdevicemap
12054 * conf/i386-efi.rmk: Likewise.
12055 * conf/i386-ieee1275.rmk: Likewise.
12056 * conf/i386-pc.rmk: Likewise.
12057 * conf/powerpc-ieee1275.rmk: Likewise.
12058 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
12059 images and installation utilities. Build kernel as image
12060 instead of as elf binary. Use common rules as much as possible.
12062 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12064 Correct GPT definition
12066 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
12069 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
12071 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
12073 2009-04-19 David S. Miller <davem@davemloft.net>
12075 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
12076 (grub_rescue_cmd_linux): Rename to...
12077 (grub_cmd_linux): and fix prototype.
12078 (grub_rescue_cmd_initrd): Rename to...
12079 (grub_cmd_initrd): and fix prototype.
12080 (cmd_linux, cmd_initrd): New.
12081 (GRUB_MOD_INIT(linux)): Use grub_register_command().
12082 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
12084 2009-04-17 Pavel Roskin <proski@gnu.org>
12086 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
12088 (grub_ohci_transfer): Likewise.
12090 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
12092 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
12093 return without a value. Fix inconsistent indentation.
12095 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
12096 match struct grub_fs.
12098 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
12099 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
12100 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
12101 * commands/lspci.c (grub_lspci_iter): Likewise.
12103 2009-04-16 Bean <bean123ch@gmail.com>
12105 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
12108 2009-04-15 Pavel Roskin <proski@gnu.org>
12110 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
12111 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
12112 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
12115 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
12117 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
12118 that no multiple data or metadata areas are supported and `Unknown
12121 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12123 Move loader out of the kernel
12125 * kern/loader.c: moved to ...
12126 * commands/boot.c: ... moved here
12127 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
12128 * commands/boot.c (grub_cmd_boot): moved here. All users updated
12129 * include/grub/kernel.h (grub_machine_fini): export
12130 * include/grub/loader.h (grub_loader_is_loaded): update declaration
12131 (grub_loader_set): likewise
12132 (grub_loader_unset): likewise
12133 (grub_loader_boot): likewise
12134 * conf/common.rmk: new module boot.mod
12135 (pkglib_MODULES): add boot.mod
12136 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
12137 (grub_emu_SOURCES): likewise
12138 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
12139 (grub_emu_SOURCES): likewise
12140 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
12141 (grub_emu_SOURCES): likewise
12142 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
12143 (grub_emu_SOURCES): likewise
12144 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
12145 (grub_emu_SOURCES): likewise
12146 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
12147 (grub_emu_SOURCES): likewise
12148 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
12149 (grub_emu_SOURCES): likewise
12151 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12153 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
12155 * kern/misc.c (grub_itoa): Removed function
12156 (grub_ltoa): likewise
12157 (grub_vsprintf): use grub_lltoa
12159 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12163 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
12164 * conf/i386-coreboot.rmk: likewise
12165 * conf/i386-ieee1275.rmk: likewise
12166 * conf/powerpc-ieee1275.rmk: likewise
12168 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
12170 * INSTALL: Add that `./autogen.sh' needs to be run before
12173 2009-04-14 Bean <bean123ch@gmail.com>
12175 * Makefile.in (pkglib_DATA): Add handler.lst.
12176 (handler.lst): New rule.
12178 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
12179 * conf/i386-coreboot.rmk: Likewise.
12180 * conf/i386-ieee1275.rmk: Likewise.
12181 * conf/i386-efi.rmk: Likewise.
12182 * conf/x86_64-efi.rmk: Likewise.
12183 * conf/powerpc-ieee1275.rmk: Likewise.
12184 * conf/sparc64-ieee1275.rmk: Likewise.
12186 * genhandlerlist.sh: New file.
12188 * genmk.rb: Add rules to generate handler.lst.
12190 * include/grub/normal.h (grub_file_getline): New function definition.
12191 (read_handler_list): Likewise.
12192 (free_handler_list): Likewise.
12194 * include/grub/term.h (grub_term_register_input): Add name parameter
12195 for auto generation of handler.lst.
12196 (grub_term_register_output): Likewise.
12198 * normal/handler.c: New file.
12200 * normal/main.c (get_line): Renamed to grub_file_getline.
12201 (read_config_file): Use the newly renamed grub_file_getline.
12202 (read_command_list): Likewise.
12203 (read_fs_list): Likewise.
12204 (grub_normal_execute): Call read_handler_list to parse handler.lst.
12205 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
12207 * term/efi/console.c (grub_console_init): Add name parameter for auto
12208 generation of handler.lst.
12209 * term/gfxterm.c: Likewise.
12210 * term/i386/pc/at_keyboard.c: Likewise.
12211 * term/i386/pc/console.c: Likewise.
12212 * term/i386/pc/serial.c: Likewise.
12213 * term/i386/pc/vesafb.c: Likewise.
12214 * term/i386/pc/vga.c: Likewise.
12215 * term/i386/pc/vga_text.c: Likewise.
12216 * term/ieee1275/ofconsole.c: Likewise.
12217 * term/usb_keyboard.c: Likewise.
12219 2009-04-14 Bean <bean123ch@gmail.com>
12221 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
12222 properly with null character.
12224 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
12226 * configure: Remove.
12227 * config.h.in: Likewise.
12228 * stamp-h.in: Likewise.
12229 * DISTLIST: Likewise.
12230 * conf/common.mk: Likewise.
12231 * conf/i386-coreboot.mk: Likewise.
12232 * conf/i386-efi.mk: Likewise.
12233 * conf/i386-ieee1275.mk: Likewise.
12234 * conf/i386.mk: Likewise.
12235 * conf/i386-pc.mk: Likewise.
12236 * conf/powerpc-ieee1275.mk: Likewise.
12237 * conf/sparc64-ieee1275.mk: Likewise.
12238 * conf/x86_64-efi.mk: Likewise.
12240 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
12243 2009-04-14 John Stanley <jpsinthemix@verizon.net>
12244 David S. Miller <davem@davemloft.net>
12246 * util/hostdisk.c (make_device_name): Fix buffer length
12249 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
12251 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
12252 <sys/param.h> and <sys/sysctl.h>.
12253 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
12254 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
12255 opening the device and reset them afterwards.
12257 2009-04-13 Pavel Roskin <proski@gnu.org>
12259 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
12260 Reported by John Stanley <jpsinthemix@verizon.net>
12262 2009-04-13 Robert Millan <rmh@aybabtu.com>
12264 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
12265 that name for menuentries when appropriate.
12267 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12269 * util/grub.d/10_freebsd.in: Add a missing `fi'.
12271 2009-04-13 Robert Millan <rmh@aybabtu.com>
12273 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
12274 to Linux, simply abort telling the user it's no longer supported.
12276 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12278 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
12279 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
12280 `freebsd_loadenv' only when devices.hints exist.
12282 2009-04-13 Pavel Roskin <proski@gnu.org>
12284 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
12286 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12288 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
12290 (grub_drive): Likewise.
12292 2009-04-13 David S. Miller <davem@davemloft.net>
12294 * kern/sparc64/ieee1275/ieee1275.c: New file.
12295 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
12296 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
12297 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
12298 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
12299 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
12300 grub_ieee1275_alloc_physmem): Declare new exported functions.
12302 * include/grub/sparc64/ieee1275/loader.h: New file.
12303 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12304 * include/grub/sparc64/kernel.h: Likewise.
12305 * loader/sparc64/ieee1275/linux.c: Likewise.
12307 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
12308 (grub_fstest_SOURCES): Likewise.
12310 * util/hostdisk.c (make_device_name): Do not make any assumptions
12311 about the length of drive names.
12313 * kern/dl.c (grub_dl_load_file): Close file immediately when
12314 we are done using it.
12316 2009-04-12 David S. Miller <davem@davemloft.net>
12318 * kern/misc.c (grub_ltoa): Fix cast when handling negative
12319 values. Noticed by Pavel Roskin.
12321 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
12324 * genmk.rb: Add more flexible image type specification, also
12325 pass --strip-unneeded to objcopy.
12326 * conf/i386-pc.rmk: Use *_FORMAT.
12327 * conf/i386-pc.mk: Rebuilt.
12329 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
12330 (OFDISK_HASH_SZ): Define.
12331 (ofdisk_hash): New hash table.
12332 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
12333 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
12334 instead of device phandle which is not unique.
12336 * kern/sparc64/ieee1275/init.c: Delete, replace with...
12337 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
12338 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
12339 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
12340 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
12341 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
12342 GRUB_KERNEL_MACHINE_DATA_END): Define.
12343 (grub_kernel_image_size, grub_total_module_size): Declare.
12345 2009-04-12 Pavel Roskin <proski@gnu.org>
12347 * configure.ac: Change the logic when we check for target tools.
12348 Do it when the target is specified and it's different from the
12349 specified value of the host.
12351 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
12353 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
12354 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
12355 GNU/kFreeBSD. Check if a device is a character device. Use
12356 DIOCGMEDIASIZE to get the size.
12357 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
12358 support for GNU/kFreeBSD.
12359 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
12360 is a character device instead of a block device. Add support for
12361 FreeBSD device names.
12363 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
12364 is a character device instead of a block device.
12366 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
12367 is a character device instead of a block device.
12369 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
12371 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
12372 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
12373 FreeBSD. Check if a device is a character device. Use
12374 DIOCGMEDIASIZE to get the size.
12375 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
12376 support for FreeBSD.
12377 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
12378 is a character device instead of a block device. Add support for
12379 FreeBSD device names.
12381 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
12382 a character device instead of a block device.
12383 (grub_util_check_char_device): New function.
12385 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
12386 a character device instead of a block device.
12388 * include/grub/util/getroot.h (grub_util_check_char_device): New
12391 2009-04-11 David S. Miller <davem@davemloft.net>
12393 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
12395 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
12396 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
12397 function, if present.
12398 (__bswapdi2): Likewise.
12400 * include/grub/sparc64/ieee1275/boot.h: New file.
12401 * boot/sparc64/ieee1275/boot.S: Likewise.
12402 * boot/sparc64/ieee1275/diskboot.S: Likewise.
12404 * kern/misc.c (grub_ltoa): New function.
12405 (grub_vsprintf): Use it to format 'long' integers.
12407 2009-04-10 David S. Miller <davem@davemloft.net>
12409 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
12410 slots are of type grub_ieee1275_cell_t.
12411 (grub_nand_read): Likewise.
12412 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
12413 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
12414 macros are used to compare values in arg/ret block of the call.
12415 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
12416 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
12417 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
12418 grub_ieee1275_instance_to_path, grub_ieee1275_write,
12419 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
12420 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
12421 grub_ieee1275_close, grub_ieee1275_set_property,
12422 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
12423 grub_ieee1275_cell_t.
12424 * kern/ieee1275/openfw.c (grub_map): Likewise.
12425 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
12426 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
12428 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
12429 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
12430 (grub_devalias_iterate): Likewise.
12432 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12436 * fs/ufs.c (INODE_NBLOCKS): new definition
12437 (struct grub_ufs_dirent): added fields for non-BSD dirents
12438 (grub_ufs_get_file_block): fixed double indirect handling
12439 (grub_ufs_lookup_symlink): use more robust way to determine whether
12441 (grub_ufs_find_file): support for non-BSD dirents
12442 (grub_ufs_dir): support for non-BSD dirents
12444 2009-04-10 Bean <bean123ch@gnail.com>
12446 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
12447 attribute, otherwise the size would be wrong for i386 platform.
12449 * include/grub/pci.h (grub_pci_read_word): New inline function.
12450 (grub_pci_read_byte): Likewise.
12451 (grub_pci_write): Likewise.
12452 (grub_pci_write_word): Likewise.
12453 (grub_pci_write_byte): Likewise.
12455 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
12457 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
12458 (find_framebuf): Scan pci to locate the frame buffer address.
12460 * commands/efi/fixvideo.c: New file.
12462 * commands/efi/loadbios.c: Likewise.
12464 * commands/memrw.c: Likewise.
12466 * util/grub-dumpbios.in: Likewise.
12468 * conf/common.rmk (grub-dumpbios): New utility.
12469 (pkglib_MODULES): New module memrw.mod.
12470 (memrw_mod_SOURCE): New macro.
12471 (memrw_mod_CFLAGS): Likewise.
12472 (memrw_mod_LDFLAGS): Likewise.
12474 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
12476 (loadbios_mod_SOURCE): New macro.
12477 (loadbios_mod_CFLAGS): Likewise.
12478 (loadbios_mod_LDFLAGS): Likewise.
12479 (fixvideo_mod_SOURCE): Likewise.
12480 (fixvideo_mod_CFLAGS): Likewise.
12481 (fixvideo_mod_LDFLAGS): Likewise.
12483 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
12485 (loadbios_mod_SOURCE): New macro.
12486 (loadbios_mod_CFLAGS): Likewise.
12487 (loadbios_mod_LDFLAGS): Likewise.
12488 (fixvideo_mod_SOURCE): Likewise.
12489 (fixvideo_mod_CFLAGS): Likewise.
12490 (fixvideo_mod_LDFLAGS): Likewise.
12492 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
12494 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
12496 2009-04-07 David S. Miller <davem@davemloft.net>
12498 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
12499 support for R_SPARC_OLO10 relocations. Fix compile warning for
12500 R_SPARC_WDISP30 case.
12501 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
12503 2009-04-06 Pavel Roskin <proski@gnu.org>
12505 * include/grub/misc.h (ARRAY_SIZE): New macro.
12506 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
12508 * loader/i386/linux.c (allocate_pages): Use free_pages().
12509 (grub_linux_unload): Don't use free_pages().
12510 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
12511 wrong index. Treat all other modes as text modes.
12512 (grub_cmd_linux): Initialize vid_mode unconditionally to
12513 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
12515 * commands/help.c (print_command_help): Use cmd->prio, not
12516 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
12518 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12522 * parttool/pcpart.c: new file
12523 * commands/parttool.c: likewise
12524 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
12525 (parttool_mod_SOURCES): new variable
12526 (parttool_mod_CFLAGS): likewise
12527 (parttool_mod_LDFLAGS): likewise
12528 (pcpart_mod_SOURCES): likewise
12529 (pcpart_mod_CFLAGS): likewise
12530 (pcpart_mod_LDFLAGS): likewise
12531 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
12532 and parttool/pcpart.c
12533 * conf/i386-efi.rmk: likewise
12534 * conf/i386-ieee1275.rmk: likewise
12535 * conf/i386-pc.rmk: likewise
12536 * conf/powerpc-ieee1275.rmk: likewise
12537 * conf/sparc64-ieee1275.rmk: likewise
12538 * conf/x86_64-ieee1275.rmk: likewise
12540 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12542 Support for mtime and further expandability of dir command
12544 * include/grub/lib/datetime.h: moved to ...
12545 * include/grub/datetime.h: ... moved here and added
12546 declaration of grub_unixtime2datetime. All users updated
12547 * include/grub/fs.h: new syntax for dir and mtime functions in
12549 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
12550 and GRUB_FSHELP_FLAGS_MASK
12551 * commands/ls.c (grub_ls_list_files): Write mtime in long format
12552 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
12553 (grub_ext2_mtime): new function
12554 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
12555 (grub_hfsplus_mtime): new function
12556 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
12557 (GRUB_UFS_ATTR_FILE): likewise
12558 (GRUB_UFS_ATTR_LNK): likewise
12559 (struct grub_ufs_sblock): new fields mtime
12560 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
12562 (grub_ufs_dir): mtime support
12563 (grub_ufs_mtime): new function
12564 * fs/affs.c (grub_affs_dir): use new dir syntax
12565 * fs/afs.c (grub_afs_dir): likewise
12566 * fs/cpio.c (grub_cpio_dir): likewise
12567 * fs/fat.c (grub_fat_find_dir): likewise
12568 * fs/hfs.c (grub_hfs_dir): likewise
12569 * fs/iso9660.c (grub_iso9660_dir): likewise
12570 * fs/jfs.c (grub_jfs_dir): likewise
12571 * fs/minix.c (grub_minix_dir): likewise
12572 * fs/ntfs.c (grub_ntfs_dir): likewise
12573 * fs/reiserfs.c (grub_reiserfs_dir): likewise
12574 * fs/sfs.c (grub_sfs_dir): likewise
12575 * fs/xfs.c (grub_xfs_dir): likewise
12576 * util/hostfs.c (grub_hostfs_dir): likewise
12577 * lib/datetime.c: moved to ...
12578 * normal/datetime.c: ... moved here
12579 (grub_unixtime2datetime): new function
12580 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
12581 * normal/completion.c (iterate_dir): use new dir syntax
12582 * normal/misc.c (grub_normal_print_device_info): tell the
12583 last modification time of a volume
12584 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
12585 * conf/common.rmk: added lib/datetime.c to ls.mod
12586 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
12587 (normal_mod_SOURCES): likewise
12588 (datetime_mod_SOURCES): Removed lib/datetime.c
12589 * conf/i386-efi.rmk: likewise
12590 * conf/i386-ieee1275.rmk: likewise
12591 * conf/i386-pc.rmk: likewise
12592 * conf/powerpc-ieee1275.rmk: likewise
12593 * conf/sparc64-ieee1275.rmk: likewise
12594 * conf/x86_64-efi.rmk: likewise
12596 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12598 Trim trailing spaces in FAT label and support mtools-like labels
12600 * fs/fat.c (grub_fat_iterate_dir): New function based
12601 on grub_fat_find_dir
12602 (grub_fat_find_dir): use grub_fat_iterate_dir
12603 (grub_fat_label): likewise
12605 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
12607 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
12609 remove extraneous kernel_elf_HEADERS
12611 2009-04-04 Bean <bean123ch@gnail.com>
12613 * include/grub/util/misc.h: Add dummy function fsync for mingw.
12615 * util/misc.c: Likewise.
12617 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
12619 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
12620 instead of grub_printf.
12622 2009-04-03 Robert Millan <rmh@aybabtu.com>
12624 * loader/i386/linux.c (grub_linux_setup_video): Fill
12625 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
12626 values from `mode info' structure instead of hardcoded
12629 2009-04-01 Pavel Roskin <proski@gnu.org>
12631 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
12633 * genmk.rb: Likewise.
12634 * configure.ac: Likewise.
12636 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
12638 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
12639 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
12641 2009-04-01 David S. Miller <davem@davemloft.net>
12643 * normal/sparc64/setjmp.S: Fix setjmp implementation.
12644 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
12645 (grub_setjmp): Mark with 'returns_twice' attribute.
12646 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
12647 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
12648 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
12650 2009-04-01 Robert Millan <rmh@aybabtu.com>
12652 Reapply fix from 2008-07-28 which was accidentally reverted; also
12653 perform the same fix to a similar check in same function.
12655 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
12656 with the same number are found, just use issue a warning with
12657 grub_dprintf(), as this error has been reported to be non-fatal.
12659 2009-03-31 Pavel Roskin <proski@gnu.org>
12661 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
12662 for cross-compilation.
12664 2009-03-30 Robert Millan <rmh@aybabtu.com>
12666 Fix i386-ieee1275 build.
12668 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
12669 Remove declaration.
12671 2009-03-30 Pavel Roskin <proski@gnu.org>
12673 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
12674 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
12675 zero-terminated, rely only on the strlen value. Fix comparison
12676 of strings differing in length.
12678 2009-03-30 Robert Millan <rmh@aybabtu.com>
12680 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
12681 checking for abi version. Improve error messages on BIOS to notify
12682 user about `linux16' command.
12684 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12688 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
12689 in case of collision
12690 * disk/scsi.c (grub_scsi_open): free scsi in case of error
12692 2009-03-29 Robert Millan <rmh@aybabtu.com>
12694 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
12695 set `vid_mode' accordingly.
12696 (grub_linux_boot): Process `vid_mode' and set video mode.
12698 2009-03-29 Robert Millan <rmh@aybabtu.com>
12700 * util/grub.d/10_linux.in (linux_entry): New function.
12701 Factorize generation of Linux boot entries.
12703 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
12705 Make the format of Environment Block plain text. The boot loader
12706 part is not tested well yet.
12708 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
12710 (envblk): Likewise.
12711 (usage): Remove "info" and "clear". Add "unset". Update the
12712 description of "set", as this does not delete variables any
12714 (create_envblk_file): Complete rewrite.
12715 (open_envblk_file): Likewise.
12716 (cmd_info): Removed.
12717 (cmd_list): Likewise.
12718 (cmd_set): Likewise.
12719 (cmd_clear): Likewise.
12720 (list_variables): New function.
12721 (write_envblk): Likewise.
12722 (set_variables): Likewise.
12723 (unset_variables): Likewise.
12724 (main): Complete rewrite.
12726 * commands/loadenv.c (buffer): Removed.
12727 (envblk): Likewise.
12728 (open_envblk_file): New function.
12729 (read_envblk_file): Complete rewrite.
12730 (grub_cmd_load_env): Likewise.
12731 (grub_cmd_list_env): Likewise.
12732 (struct blocklist): New struct.
12733 (free_blocklists): New function.
12734 (check_blocklists): Likewise.
12735 (write_blocklists): Likewise.
12736 (grub_cmd_save_env): Complete rewrite.
12738 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
12739 a plain text signature.
12740 (GRUB_ENVBLK_MAXLEN): Removed.
12741 (struct grub_envblk): Complete rewrite.
12742 (grub_envblk_find): Removed.
12743 (grub_envblk_insert): Likewise.
12744 (grub_envblk_open): New prototype.
12745 (grub_envblk_set): Likewise.
12746 (grub_envblk_delete): Put const to VALUE.
12747 (grub_envblk_iterate): Put const to NAME and VALUE.
12748 (grub_envblk_close): New prototype.
12749 (grub_envblk_buffer): New inline function.
12750 (grub_envblk_size): Likewise.
12752 * lib/envblk.c: Include grub/mm.h.
12753 (grub_env_find): Removed.
12754 (grub_envblk_open): New function.
12755 (grub_envblk_close): Likewise.
12756 (escaped_value_len): Likewise.
12757 (find_next_line): Likewise.
12758 (grub_envblk_insert): Removed.
12759 (grub_envblk_set): New function.
12760 (grub_envblk_delete): Complete rewrite.
12761 (grub_envblk_iterate): Likewise.
12763 2009-03-28 Robert Millan <rmh@aybabtu.com>
12765 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
12766 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
12767 variables. Use 16-bit loader.
12768 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
12770 * kern/i386/loader.S (grub_linux_boot): Rename to ...
12771 (grub_linux16_boot): ... this. Update all users.
12772 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
12773 (grub_linux_boot): ... this. Update all users.
12775 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
12776 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
12777 commands to `linux16' and `initrd16'.
12778 (GRUB_MOD_FINI(linux)): Rename to ...
12779 (GRUB_MOD_FINI(linux16)): ... this.
12781 2009-03-24 Pavel Roskin <proski@gnu.org>
12783 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
12784 not just for compilation.
12786 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
12788 Move multiboot helper out of kernel
12790 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
12791 `loader/i386/multiboot_helper.S'.
12792 * conf/i386-coreboot.rmk: Likewise
12793 * conf/i386-ieee1275.rmk: Likewise
12795 * kern/i386/loader.S: Move multiboot helpers from here...
12796 * loader/i386/multiboot_helper.S: ...moved here
12797 * include/grub/i386/loader.h: Move declarations of multiboot
12798 helpers from here...
12799 * include/grub/i386/multiboot.h: ...moved here
12800 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
12802 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12804 * kern/env.c (grub_env_context_open): Added an argument to specify
12805 whether a new context inherits exported variables from current
12806 one. This is useful when making a sandbox to interpret a config
12808 All callers updated.
12810 * include/grub/env.h (grub_env_context_open): Updated the prototype.
12812 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12814 * kern/env.c (grub_env_context_close): Fix memory leaks.
12816 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12818 * normal/main.c (grub_normal_execute): Added an argument
12819 BATCH to specify if an interactive interface should be provided
12820 after reading a config file.
12821 All callers updated.
12822 (read_command_list): Prevent being executed twice.
12823 (read_fs_list): Likewise.
12825 * include/grub/normal.h (grub_normal_execute): Updated the
12828 2009-03-22 Pavel Roskin <proski@gno.org>
12830 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
12832 * kern/i386/pc/startup.S: Likewise.
12833 * kern/i386/efi/startup.S: Likewise.
12834 * kern/i386/ieee1275/startup.S: Likewise.
12835 * kern/i386/coreboot/startup.S: Likewise.
12836 * kern/x86_64/efi/startup.S: Likewise.
12838 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
12839 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
12840 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
12842 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
12844 Bugfixes in multiboot for bugs uncovered by solaris kernel.
12846 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
12848 Use vaddr of correct segment for entry_point.
12850 2009-03-21 Bean <bean123ch@gmail.com>
12852 * commands/blocklist.c: Add include file <grub/command.h>, remove
12853 <grub/normal.h> and <grub/arg.h>.
12854 (grub_cmd_blocklist): Use the new command interface.
12855 (GRUB_MOD_INIT): Likewise.
12856 (GRUB_MOD_FINI): Likewise.
12857 * commands/boot.c: Likewise.
12858 * commands/cat.c: Likewise.
12859 * commands/cmp.c: Likewise.
12860 * commands/configfile.c: Likewise.
12861 * commands/crc.c: Likewise.
12862 * commands/echo.c: Likewise.
12863 * commands/halt.c: Likewise.
12864 * commands/handler.c: Likewise.
12865 * commands/hdparm.c: Likewise.
12866 * commands/help.c: Likewise.
12867 * commands/hexdump.c: Likewise.
12868 * commands/loadenv.c: Likewise.
12869 * commands/ls.c: Likewise.
12870 * commands/lsmmap.c: Likewise.
12871 * commands/lspci.c: Likewise.
12872 * commands/loadenv.c: Likewise.
12873 * commands/read.c: Likewise.
12874 * commands/reboot.c: Likewise.
12875 * commands/search.c: Likewise.
12876 * commands/sleep.c: Likewise.
12877 * commands/test.c: Likewise.
12878 * commands/usbtest.c: Likewise.
12879 * commands/videotest.c: Likewise.
12880 * commands/i386/cpuid.c: Likewise.
12881 * commands/i386/pc/halt.c: Likewise.
12882 * commands/i386/pc/play.c: Likewise.
12883 * commands/i386/pc/pxecmd.c: Likewise.
12884 * commands/i386/pc/vbeinfo.c: Likewise.
12885 * commands/i386/pc/vbetest.c: Likewise.
12886 * commands/ieee1275/suspend.c: Likewise.
12887 * disk/loopback.c: Likewise.
12888 * font/font_cmd.c: Likewise.
12889 * hello/hello.c: Likewise.
12890 * loader/efi/appleloader.c: Likewise.
12891 * loader/efi/chainloader.c: Likewise.
12892 * loader/i386/bsd.c: Likewise.
12893 * loader/i386/efi/linux.c: Likewise.
12894 * loader/i386/ieee1275/linux.c: Likewise.
12895 * loader/i386/linux.c: Likewise.
12896 * loader/i386/pc/chainloader.c: Likewise.
12897 * loader/i386/pc/linux.c: Likewise.
12898 * loader/powerpc/ieee1275/linux.c: Likewise.
12899 * loader/multiboot_loader.c: Likewise.
12900 * term/gfxterm.c: Likewise.
12901 * term/i386/pc/serial.c: Likewise.
12902 * term/terminfo.c: Likewise.
12904 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
12905 * term/i386/pc/vga.c: Likewise.
12906 * video/readers/jpeg.c: Likewise.
12907 * video/readers/png.c: Likewise.
12908 * video/readers/tga.c: Likewise.
12910 * util/grub-fstest (cmd_loopback): Removed.
12911 (cmd_blocklist): Likewise.
12912 (cmd_ls): Likewise.
12913 (grub_register_command): Likewise.
12914 (grub_unregister_command): Likewise.
12915 (execute_command): Use grub_command_find to locate command and execute
12918 * include/grub/efi/chainloader.h: Removed.
12919 * loader/efi/chainloader_normal.c: Likewise.
12920 * loader/i386/bsd_normal.c: Likewise.
12921 * loader/i386/pc/chainloader_normal.c: Likewise.
12922 * loader/i386/pc/multiboot_normal.c: Likewise.
12923 * loader/linux_normal.c: Likewise.
12924 * loader/multiboot_loader_normal.c: Likewise.
12925 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
12927 * gencmdlist.sh: Scan new registration command grub_register_extcmd
12928 and grub_register_command_p1.
12930 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
12931 kern/command.c, lib/arg.c and commands/extcmd.c.
12932 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
12933 (minicmd_mod_SOURCES): New variable.
12934 (minicmd_mod_CFLAGS): Likewise.
12935 (minicmd_mod_LDFLAGS): Likewise.
12936 (extcmd_mod_SOURCES): Likewise.
12937 (extcmd_mod_CFLAGS): Likewise.
12938 (extcmd_mod_LDFLAGS): Likewise.
12939 (boot_mod_SOURCES): Removed.
12940 (boot_mod_CFLAGS): Likewise.
12941 (boot_mod_LDFLAGS): Likewise.
12943 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
12945 (kernel_img_HEADERS): Add command.h.
12946 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
12947 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
12949 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
12950 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
12951 remove the corresponding normal mode command.
12952 (normal_mod_SOURCES): Remove normal/arg.c.
12953 * conf/i386-coreboot.rmk: Likewise.
12954 * conf/i386-efi.rmk: Likewise.
12955 * conf/i386-ieee1275.rmk: Likewise.
12956 * conf/powerpc-ieee1275.rmk: Likewise.
12957 * conf/x86_64-efi.rmk: Likewise.
12959 * include/grub/arg.h: Move from here ...
12960 * include/grub/lib/arg.h: ... to here.
12962 * normal/arg.c: Move from here ...
12963 * lib/arg.c: ... to here.
12965 * commands/extcmd.c: New file.
12966 * commands/minicmd.c: Likewise.
12967 * include/grub/command.h: Likewise.
12968 * include/grub/extcmd.h: Likewise.
12969 * kern/command.c: Likewise.
12970 * kern/corecmd.c: Likewise.
12972 * kern/list.c (grub_list_iterate): Return int instead of void.
12973 (grub_list_insert): New function.
12974 (grub_prio_list_insert): Likewise.
12976 * kern/rescue.c (grub_rescue_command): Removed.
12977 (grub_rescue_command_list): Likewise.
12978 (grub_rescue_register_command): Likewise.
12979 (grub_rescue_unregister_command): Likewise.
12980 (grub_rescue_cmd_boot): Move to minicmd.c
12981 (grub_rescue_cmd_help): Likewise.
12982 (grub_rescue_cmd_info): Likewise.
12983 (grub_rescue_cmd_boot): Likewise.
12984 (grub_rescue_cmd_testload): Likewise.
12985 (grub_rescue_cmd_dump): Likewise.
12986 (grub_rescue_cmd_rmmod): Likewise.
12987 (grub_rescue_cmd_lsmod): Likewise.
12988 (grub_rescue_cmd_exit): Likewise.
12989 (grub_rescue_print_devices): Moved to corecmd.c.
12990 (grub_rescue_print_files): Likewise.
12991 (grub_rescue_cmd_ls): Likewise.
12992 (grub_rescue_cmd_insmod): Likewise.
12993 (grub_rescue_cmd_set): Likewise.
12994 (grub_rescue_cmd_unset): Likewise.
12995 (attempt_normal_mode): Use grub_command_find to get normal module.
12996 (grub_enter_rescue_mode): Use grub_register_core_commands to register
12997 commands, remove grub_rescue_register_command calls.
12999 * normal/command.c (grub_register_command): Removed.
13000 (grub_unregister_command): Likewise.
13001 (grub_command_find): Likewise.
13002 (grub_iterate_commands): Likewise.
13003 (rescue_command): Likewise.
13004 (export_command): Moved to corecmd.c.
13005 (set_command): Removed.
13006 (unset_command): Likewise.
13007 (insmod_command): Likewise.
13008 (rmmod_command): Likewise.
13009 (lsmod_command): Likewise.
13010 (grub_command_init): Likewise.
13012 * normal/completion.c (iterate_command): Use cmd->prio to check for
13014 (complete_arguments): Use grub_extcmd_t structure to find options.
13015 (grub_normal_do_completion): Change function grub_iterate_commands to
13016 grub_command_iterate.
13018 * normal/execute.c (grub_script_execute_cmd): No need to parse
13021 * normal/main.c (grub_dyncmd_dispatcher): New function.
13022 (read_command_list): Register unload commands as dyncmd.
13023 (grub_cmd_normal): Use new command interface, register rescue,
13024 unregister normal at entry, register normal, unregister rescue at exit.
13026 * include/grub/list.h (grub_list_test_t): New type.
13027 (grub_list_iterate): Return int instead of void.
13028 (grub_list_insert): New function.
13029 (GRUB_AS_NAMED_LIST_P): New macro.
13030 (GRUB_AS_PRIO_LIST): Likewise.
13031 (GRUB_AS_PRIO_LIST_P): Likewise.
13032 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
13033 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
13034 (grub_prio_list): New structure.
13035 (grub_prio_list_insert): New function.
13036 (grub_prio_list_remove): New inline function.
13038 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
13039 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
13040 (GRUB_COMMAND_FLAG_MENU): Likewise.
13041 (GRUB_COMMAND_FLAG_BOTH): Likewise.
13042 (GRUB_COMMAND_FLAG_TITLE): Likewise.
13043 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
13044 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
13045 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
13046 (grub_command): Likewise.
13047 (grub_register_command): Likewise.
13048 (grub_command_find): Likewise.
13049 (grub_iterate_commands): Likewise.
13050 (grub_command_init): Likewise.
13051 (grub_arg_parse): Likewise.
13052 (grub_arg_show_help): Likewise.
13054 * include/grub/rescue.h (grub_rescue_register_command): Removed.
13055 (grub_rescue_unregister_command): Likewise.
13057 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
13058 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
13059 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
13061 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
13062 grub_rescue_cmd_initrd.
13063 * include/grub/i386/loader.h: Likewise.
13064 * include/grub/x86_64/loader.h: Likewise.
13066 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
13068 2009-03-21 Bean <bean123ch@gmail.com>
13070 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
13071 instead of stat in mingw environment.
13073 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
13075 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
13077 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
13080 2009-03-21 Bean <bean123ch@gmail.com>
13082 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
13083 out of range error.
13085 2009-03-18 Michel Dänzer <michel@daenzer.net>
13087 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
13088 checking inode flags for EXT4_EXTENTS_FLAG.
13090 2009-03-18 Robert Millan <rmh@aybabtu.com>
13092 * loader/i386/linux.c: Include `<grub/video.h>' and
13093 `<grub/i386/pc/vbe.h>'..
13094 (grub_linux_setup_video): New function. Loosely based on the EFI one.
13095 (grub_linux32_boot): Attempt to configure video settings with
13096 grub_linux_setup_video().
13097 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
13098 to avoid grub_console_fini() which would step out of graphical mode
13101 2009-03-14 Robert Millan <rmh@aybabtu.com>
13103 Fix build on powerpc.
13104 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
13106 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
13108 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
13109 background image command.
13111 2009-03-12 Colin D Bennett <colin@gibibit.com>
13113 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
13114 (grub_gfxterm_putchar): Extract pairs of identical calls to
13115 draw_cursor out of conditional blocks.
13117 2009-03-11 Pavel Roskin <proski@gnu.org>
13119 * fs/hfs.c (grub_hfs_strncasecmp): New function.
13120 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
13122 2009-03-11 Robert Millan <rmh@aybabtu.com>
13124 * loader/i386/multiboot_elfxx.c
13125 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
13127 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
13129 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
13132 2009-03-11 Robert Millan <rmh@aybabtu.com>
13134 * loader/i386/multiboot.c (code_size): New variable.
13135 (grub_multiboot): Define offsets by adding to `code_size' rather
13136 than subtracting from `grub_multiboot_payload_size'. Provide
13137 4-byte alignment to MBI and others by increasing
13138 `boot_loader_name_length' appropriately.
13140 * loader/i386/multiboot_elfxx.c
13141 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
13143 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
13145 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
13148 2009-03-08 Robert Millan <rmh@aybabtu.com>
13150 Make loader/i386/linux.c usable on i386-pc again.
13152 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
13154 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
13157 2009-03-07 Bean <bean123ch@gmail.com>
13159 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
13162 2009-03-06 Robert Millan <rmh@aybabtu.com>
13164 Fix display issue on terminals with screen size other than 80x25
13165 (e.g. gfxterm with resolution higher than 640x480).
13167 * normal/main.c (grub_normal_init_page): Display title text in a
13168 position relative to the center of the terminal instead of relying
13169 on a hardcoded offset.
13171 2009-03-04 Robert Millan <rmh@aybabtu.com>
13173 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
13176 * Makefile.in (host_kernel): New variable.
13177 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
13178 scripts instead of just the windows one.
13179 * configure.ac: Initialize and AC_SUBST `host_kernel'.
13181 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13183 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
13185 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13186 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13187 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13188 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13189 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13190 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13192 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13194 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
13195 or if there's no space for the disk label and print the partition number on a
13198 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13200 * util/misc.c: Include <time.h>.
13201 (grub_millisleep): New function.
13203 2009-03-04 Bean <bean123ch@gmail.com>
13205 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
13206 another option -mno-red-zone.
13208 * commands/handler.c: Change module description.
13210 * kern/handler.c: Add missing space at the end of description line.
13212 * kern/list.c: Likewise.
13214 2009-03-03 Robert Millan <rmh@aybabtu.com>
13216 Move more components to the relocation area, and fix mbi pointer
13217 handling to use the destination rather than the origin (thanks to
13218 Vladimir Serbinenko for spotting).
13220 * loader/i386/multiboot.c (mbi_dest): New variable.
13221 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
13222 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
13225 2009-03-01 Bean <bean123ch@gmail.com>
13227 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
13228 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
13229 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
13230 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
13232 * loader/i386/efi/linux.c (acpi_guid): New variable.
13233 (acpi_guid): Likewise.
13234 (EBDA_SEG_ADDR): New constant.
13235 (LOW_MEM_ADDR): Likewise.
13236 (FAKE_EBDA_SEG): Likewise.
13237 (fake_bios_data): New function.
13238 (grub_linux_boot): Call fake_bios_data.
13240 2009-03-01 Bean <bean123ch@gmail.com>
13242 * commands/terminal.c: Removed.
13244 * commands/handler.c: New file.
13246 * include/grub/list.h: Likewise.
13248 * include/grub/handler.h: Likewise.
13250 * kern/list.c: Likewise.
13252 * kern/handler.c: Likewise.
13254 * kern/term.h: Include header file <grub/handler.h>.
13255 (grub_term_input): Move next field to the beginning.
13256 (grub_term_output): Likewise.
13257 (grub_term_input_class): New variable.
13258 (grub_term_output_class): Likewise.
13259 (grub_term_register_input): Changed to inline function.
13260 (grub_term_register_output): Likewise.
13261 (grub_term_unregister_input): Likewise.
13262 (grub_term_unregister_output): Likewise.
13263 (grub_term_set_current_input): Likewise.
13264 (grub_term_set_current_output): Likewise.
13265 (grub_term_get_current_input): Likewise.
13266 (grub_term_get_current_output): Likewise.
13267 (grub_term_iterate_input): Removed.
13268 (grub_term_iterate_output): Likewise.
13270 * kern/term.c (grub_term_list_input): Removed.
13271 (grub_term_list_output): Likewise.
13272 (grub_term_input_class): New variable.
13273 (grub_term_output_class): Likewise.
13274 (grub_cur_term_input): Change variable as macro.
13275 (grub_cur_term_output): Likewise.
13276 (grub_term_register_input): Removed.
13277 (grub_term_register_output): Likewise.
13278 (grub_term_unregister_input): Likewise.
13279 (grub_term_unregister_output): Likewise.
13280 (grub_term_set_current_input): Likewise.
13281 (grub_term_set_current_output): Likewise.
13282 (grub_term_iterate_input): Likewise.
13283 (grub_term_iterate_output): Likewise.
13284 (grub_term_get_current_input): Likewise.
13285 (grub_term_get_current_output): Likewise.
13287 * util/grub-editenv.c: Include header file <grub/handler.h>.
13288 (grub_term_get_current_input): Removed.
13289 (grub_term_get_current_output): Likewise.
13290 (grub_term_input_class): New variable.
13291 (grub_term_output_class): Likewise.
13293 * util/grub-fstest.c (grub_term_get_current_input): Removed.
13294 (grub_term_get_current_output): Likewise.
13295 (grub_term_input_class): New variable.
13296 (grub_term_output_class): Likewise.
13298 * util/grub-probe.c (grub_term_get_current_input): Removed.
13299 (grub_term_get_current_output): Likewise.
13300 (grub_term_input_class): New variable.
13301 (grub_term_output_class): Likewise.
13303 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
13304 (grub_term_get_current_output): Likewise.
13305 (grub_term_input_class): New variable.
13306 (grub_term_output_class): Likewise.
13308 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
13309 (terminal_mod_SOURCES): Likewise.
13310 (terminal_mod_CFLAGS): Likewise.
13311 (terminal_mod_LDFLAGS): Likewise.
13313 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
13315 (kernel_img_SOURCES): Add list.c and handler.c.
13316 (kernel_img_HEADERS): Add list.h and handler.h.
13318 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13320 (kernel_mod_SOURCES): Add list.c and handler.c.
13321 (kernel_mod_HEADERS): Add list.h and handler.h.
13323 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
13325 (kernel_elf_SOURCES): Add list.c and handler.c.
13326 (kernel_elf_HEADERS): Add list.h and handler.h.
13328 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13330 (kernel_elf_SOURCES): Add list.c and handler.c.
13331 (kernel_elf_HEADERS): Add list.h and handler.h.
13333 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13335 (kernel_mod_SOURCES): Add list.c and handler.c.
13336 (kernel_mod_HEADERS): Add list.h and handler.h.
13338 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13340 (kernel_elf_SOURCES): Add list.c and handler.c.
13341 (kernel_elf_HEADERS): Add list.h and handler.h.
13343 2009-02-27 Robert Millan <rmh@aybabtu.com>
13345 Factorize elf32 / elf64 code in Multiboot loader. This will
13346 prevent it from getting out of sync again.
13348 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
13349 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
13350 grub_multiboot_load_elf64): Move from here ...
13351 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
13352 grub_multiboot_load_elf): ... to here (new file).
13354 2009-02-27 Robert Millan <rmh@aybabtu.com>
13356 * util/grub.d/10_linux.in: Rename "single-user mode" to
13359 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
13361 Don't leak in SCSI code.
13362 * disk/scsi.c (grub_scsi_close): free `scsi'.
13364 2009-02-27 Robert Millan <rmh@aybabtu.com>
13366 * loader/i386/pc/multiboot.c: Move from here ...
13367 * loader/i386/multiboot.c: ... to here. Update all users.
13369 2009-02-27 Robert Millan <rmh@aybabtu.com>
13371 Patch from Alexandre Bique <bique.alexandre@gmail.com>
13372 * util/i386/pc/grub-setup.c (setup): Fix directory path.
13374 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
13376 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
13379 2009-02-27 Robert Millan <rmh@aybabtu.com>
13381 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
13382 `0x' qualifier as 0 when base is specified as parameter).
13384 2009-02-24 Bean <bean123ch@gmail.com>
13386 * configure.ac: Check for -mcmodel=large in x86_64 target.
13388 * include/grub/efi/api.h (efi_call_10): New macro.
13389 (efi_wrap_10): New function.
13391 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
13392 (GRUB_PE32_REL_BASED_HIGH): Likewise.
13393 (GRUB_PE32_REL_BASED_LOW): Likewise.
13394 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
13395 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
13396 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
13397 (GRUB_PE32_REL_BASED_SECTION): Likewise.
13398 (GRUB_PE32_REL_BASED_REL): Likewise.
13399 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
13400 (GRUB_PE32_REL_BASED_DIR64): Likewise.
13401 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
13403 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
13406 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
13407 (efi_wrap_10): New function.
13409 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
13411 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
13412 MB/MBP model (NV chipset).
13413 (devdata_devs): Add devpath_5 to the list.
13415 * load/i386/efi/linux.c (video_base): Remove variable.
13416 (RGB_MASK): New macro.
13417 (RGB_MAGIC): Likewise.
13418 (LINE_MIN): Likewise.
13419 (LINE_MAX): Likewise.
13420 (FBTEST_STEP): Likewise.
13421 (FBTEST_COUNT): Likewise.
13422 (fb_list): New variable.
13423 (grub_find_video_card): Remove function.
13424 (find_framebuf): New function.
13425 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
13428 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
13429 problem for x86_64.
13431 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
13433 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
13435 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
13438 2009-02-22 Robert Millan <rmh@aybabtu.com>
13440 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
13441 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
13442 in our relocation, instead of using it directly from heap. Also
13443 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
13445 2009-02-21 Robert Millan <rmh@aybabtu.com>
13447 Implement USB keyboard support (based on patch by Marco Gerards)
13449 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
13450 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
13451 (usb_keyboard_mod_LDFLAGS): New variables.
13453 * term/usb_keyboard.c: New file.
13455 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13457 Corrected wrong declaration
13459 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
13461 2009-02-14 Christian Franke <franke@computer.org>
13463 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
13464 (grub_lspci_iter): Print class code and programming interface byte.
13466 2009-02-14 Christian Franke <franke@computer.org>
13468 * gendistlist.sh: Ignore `.svn' directories.
13470 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
13472 * fs/fat.c: Add 2009 to Copyright line.
13474 2009-02-14 Christian Franke <franke@computer.org>
13476 * commands/hdparm.c: New file. Provides `hdparm' command
13477 which sends ATA commands via grub_disk_ata_pass_through ().
13479 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
13481 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
13482 and <grub/cpu/io.h> to include/grub/ata.h.
13483 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
13484 (GRUB_CDROM_SECTOR_SIZE): Remove.
13485 (GRUB_ATA_*): Move to include/grub/ata.h.
13486 (GRUB_ATAPI_*): Likewise.
13487 (enum grub_ata_commands): Likewise.
13488 (enum grub_ata_timeout_milliseconds): Likewise.
13489 (struct grub_ata_device): Likewise.
13490 (grub_ata_regset): Likewise.
13491 (grub_ata_regget): Likewise.
13492 (grub_ata_regset2): Likewise.
13493 (grub_ata_regget2): Likewise.
13494 (grub_ata_check_ready): Likewise.
13495 (grub_ata_wait_not_busy): Remove static, exported in
13496 include/grub/ata.h.
13497 (grub_ata_wait_drq): Likewise.
13498 (grub_ata_pio_read): Likewise.
13500 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
13501 function for hdparm.mod.
13503 * include/grub/ata.h: New file, contains declarations from
13505 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
13507 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
13508 (grub_disk_ata_pass_through): New exported variable.
13510 * kern/disk.c (grub_disk_ata_pass_through): New variable.
13512 2009-02-13 Colin D Bennett <colin@gibibit.com>
13514 Support multiple fallback entries, and provide an API to support
13515 executing default+fallback menu entries. Renamed the `terminal' menu
13518 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
13519 variable declaration.
13520 (grub_menu_execute_callback): New structure declaration.
13521 (grub_menu_execute_callback_t): New typedef.
13522 (grub_menu_execute_with_fallback): New function declaration.
13523 (grub_menu_get_entry): Likewise.
13524 (grub_menu_get_timeout): Likewise.
13525 (grub_menu_set_timeout): Likewise.
13527 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
13529 * normal/menu.c (grub_wait_after_message): Moved to
13530 `normal/menu_text.c'.
13531 (draw_border): Likewise.
13532 (print_message): Likewise.
13533 (print_entry): Likewise.
13534 (print_entries): Likewise.
13535 (grub_menu_init_page): Likewise.
13536 (get_entry_number): Likewise.
13537 (print_timeout): Likewise.
13538 (run_menu): Likewise.
13539 (grub_menu_execute_entry): Likewise.
13540 (show_text_menu): Likewise.
13541 (get_and_remove_first_entry_number): New function.
13542 (grub_menu_execute_with_fallback): Likewise.
13543 (get_entry): Renamed to ...
13544 (grub_menu_get_entry): .. this and made it global.
13545 (get_timeout): Renamed to ...
13546 (grub_menu_get_timeout): ... this and made it global.
13547 (set_timeout): Renamed to ...
13548 (grub_menu_set_timeout): ... this and made it global.
13549 (grub_normal_terminal_menu_viewer): Renamed to ...
13550 (grub_normal_text_menu_viewer): ... this.
13552 * normal/menu_text.c: New file. Extracted text-menu-specific code
13553 from normal/menu.c.
13555 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
13556 (normal_mod_SOURCES): Likewise.
13558 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13559 (normal_mod_SOURCES): Likewise.
13561 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13562 (normal_mod_SOURCES): Likewise.
13564 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
13565 (normal_mod_SOURCES): Likewise.
13567 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13568 (normal_mod_SOURCES): Likewise.
13570 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13571 (normal_mod_SOURCES): Likewise.
13573 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13574 (normal_mod_SOURCES): Likewise.
13576 2009-02-11 Robert Millan <rmh@aybabtu.com>
13578 * util/grub.d/00_header.in: Update old reference to `font' command.
13580 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
13582 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
13584 Based on patch from Javier Martín.
13586 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
13588 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
13589 to avoid false positives with FAT.
13590 (grub_fstest_SOURCES): Likewise.
13591 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13592 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13593 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13594 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13595 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13596 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13598 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
13600 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
13601 bpb.version_specific.fat12_or_fat16.fstype and
13602 bpb.version_specific.fat32.fstype.
13604 2009-02-08 Robert Millan <rmh@aybabtu.com>
13606 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
13608 2009-02-08 Robert Millan <rmh@aybabtu.com>
13610 * Makefile.in (host_os, host_cpu): New variables.
13611 (target_os): Remove. Update all users.
13613 2009-02-08 Marco Gerards <marco@gnu.org>
13615 * Makefile.in (enable_grub_emu_usb): New variable.
13616 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
13617 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
13618 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
13619 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
13620 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
13621 `usbtest.mod' and `usbms.mod'.
13622 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
13623 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
13624 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
13625 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
13626 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
13629 * disk/usbms.c: New file.
13631 * include/grub/usb.h: Likewise.
13633 * include/grub/usbtrans.h: Likewise.
13635 * include/grub/usbdesc.h: Likewise.
13637 * bus/usb/usbtrans.c: Likewise.
13639 * bus/usb/ohci.c: Likewise.
13641 * bus/usb/uhci.c: Likewise.
13643 * bus/usb/usbhub.c: Likewise.
13645 * bus/usb/usb.c: Likewise.
13647 * commands/usbtest.c: Likewise.
13649 * util/usb.c: Likewise.
13651 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
13653 * configure.ac: Test for libusb presence.
13655 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
13657 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
13659 * kern/mm.c: Add more comments.
13661 2009-02-08 Robert Millan <rmh@aybabtu.com>
13663 Patch from Javier Martín.
13664 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
13665 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
13667 2009-02-08 Robert Millan <rmh@aybabtu.com>
13669 * fs/cpio.c: Split tar functionality to ...
13670 * fs/tar.c: ... here (new file). Update all users.
13672 2009-02-07 Robert Millan <rmh@aybabtu.com>
13674 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
13675 backward-incompatible features.
13677 Based on patch from Javier Martín, with some adjustments.
13679 2009-02-07 Michael Scherer <misc@mandriva.org>
13681 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
13683 2009-02-07 Robert Millan <rmh@aybabtu.com>
13685 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
13686 position of `disk/lvm.c' to ensure grub_init_all() always picks it
13687 after the RAID stuff.
13689 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
13691 Fixes problem when running vbetest command as reported by
13692 Vladimir Serbinenko <phcoder@gmail.com>.
13694 * (grub_vbe_set_video_mode): Fixed problem with text modes.
13696 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
13698 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
13699 /dev/md/NpN style mdraid devices.
13701 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13703 * util/unifont2pff.rb: Remove.
13705 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13707 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
13710 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13712 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
13713 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13714 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13715 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13716 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13717 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13718 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13720 2009-02-02 Christian Franke <franke@computer.org>
13722 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
13724 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
13726 * INSTALL: Note that we now require at least autoconf 2.59 and
13727 that LZO is optional.
13729 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
13731 Base on patch on bug #24154 created by Tomas Tintera
13732 <trosos@seznam.cz>.
13734 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
13736 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
13738 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
13739 <bero@arklinux.org>.
13741 * normal/parser.y (script_init): Add missing semicolon.
13743 2009-01-31 Colin D Bennett <colin@gibibit.com>
13745 * normal/main.c: Add include to grub/menu_viewer.h.
13746 (free_menu_entry_classes): Added.
13747 (grub_normal_menu_addentry): Added class property handling.
13748 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
13749 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
13751 * normal/menu_viewer.c: New file.
13753 * normal/menu.c (run_menu_entry): Renamed to ...
13754 (grub_menu_execute_entry): ... this and made it as global.
13755 (grub_menu_run): Renamed to ...
13756 (show_text_menu): ... this and made it local.
13757 (show_text_menu): Adapt to new function names.
13758 (grub_normal_terminal_menu_viewer): New global variable.
13760 * include/grub/menu.h: New file.
13762 * include/grub/menu_viewer.h: New file.
13764 * include/grub/normal.h: Added include to grub/menu.h.
13765 (grub_menu_entry): Moved to include/grub/menu.h.
13766 (grub_menu_entry_t): Likewise.
13767 (grub_menu): Likewise.
13768 (grub_menu_t): Likewise.
13769 (grub_normal_terminal_menu_viewer): Added.
13770 (grub_menu_execute_entry): Likewise.
13771 (grub_menu_run): Removed.
13773 * DISTLIST: Added include/grub/menu.h.
13774 Added include/grub/menu_viewer.h.
13775 Added normal/menu_viewer.c.
13777 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
13779 * normal/execute.c (grub_script_execute_menuentry): Changed to use
13780 arglist for menutitle arguments.
13782 * normal/main.c (grub_normal_menu_addentry): Likewise.
13784 * normal/parser.y (menuentry): Likewise.
13786 * normal/script.c (grub_script_create_cmdmenu): Likewise.
13788 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
13789 (grub_script_create_cmdmenu): Likewise.
13791 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
13793 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
13796 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
13798 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
13800 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
13802 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13804 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13806 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13808 2009-01-30 Christian Franke <franke@computer.org>
13810 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
13811 in option help text.
13813 2009-01-27 Pavel Roskin <proski@gnu.org>
13815 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
13817 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
13819 * commands/lsmmap.c: Add include to grub/machine/memory.h.
13821 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
13823 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
13824 unregister function.
13826 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
13828 * disk/scsi.c (grub_scsi_read): Fix sign problem.
13830 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
13832 * util/grub-mkfont.c (usage): Fix typo.
13834 * util/elf/grub-mkimage.c (load_modules): Fix warning.
13836 2009-01-26 Daniel Mierswa <impulze@impulze.org>
13838 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
13840 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
13842 * kern/misc.c (grub_strcasecmp): New function.
13843 (grub_strcasecmp): Use grub_size_t instead of int for length.
13845 * include/grub/misc.h: Update function prototypes.
13847 2009-01-26 Robert Millan <rmh@aybabtu.com>
13849 * configure.ac: Fix cross-compilation check.
13851 2009-01-22 Christian Franke <franke@computer.org>
13853 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
13854 (precision) digit string. Allow `.format2' without `format1' (width).
13855 Limit input chars for `%s' output to `format2' if specified. This is
13856 compatible with standard printf ().
13858 2009-01-22 Christian Franke <franke@computer.org>
13860 * disk/ata.c (grub_ata_wait_status): Replace by ...
13861 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
13862 other status bits may be invalid while BSY is asserted.
13863 (grub_ata_check_ready): New function.
13864 (grub_ata_cmd): Removed.
13865 (grub_ata_wait_drq): New function.
13866 (grub_ata_strncpy): Remove inline.
13867 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
13868 and error check now done by grub_ata_wait_drq ().
13869 (grub_ata_pio_write): Likewise.
13870 (grub_atapi_identify): Set DEV before check for !BSY. Use
13871 grub_ata_wait_drq () to wait for data.
13872 (grub_ata_device_initialize): Add status register check to
13873 detect missing SATA slave devices. Add debug messages.
13874 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
13875 (grub_atapi_packet): Set DEV before check for !BSY. Replace
13876 transfer loop by grub_ata_pio_write ().
13877 (grub_ata_identify): Set DEV before check for !BSY. Use
13878 grub_ata_wait_drq () to wait for data.
13879 (grub_ata_setaddress): Set DEV before check for !BSY.
13880 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
13881 read/write in one loop. Fix invalid command on write. Fix incomplete
13882 command on (size % batch) == 0. Add missing error check after write of
13883 last block. Add debug messages.
13884 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
13886 2009-01-19 Christian Franke <franke@computer.org>
13888 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
13889 (GRUB_ATAPI_IREASON_*): Likewise.
13890 (grub_ata_pio_write): Fix timeout error return.
13891 (grub_atapi_identify): Add grub_ata_wait () after cmd.
13892 (grub_atapi_wait_drq): New function.
13893 (grub_atapi_packet): New parameter `size'.
13894 Use grub_atapi_wait_drq () and direct write instead of
13895 grub_ata_pio_write ().
13896 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
13897 reads the number of bytes requested by the device for each DRQ
13899 (grub_atapi_write): Remove old implementation, return not
13900 implemented instead.
13902 2009-01-19 Christian Franke <franke@computer.org>
13904 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
13905 of 512 to calculate data size.
13906 (grub_scsi_read12): Likewise.
13907 (grub_scsi_write10): Likewise.
13908 (grub_scsi_write12): Likewise.
13909 (grub_scsi_read): Adjust size according to blocksize.
13910 Add checks for invalid blocksize and unaligned transfer.
13912 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
13914 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
13916 * term/gfxterm.c (write_char): Fix background rendering for wide
13919 2009-01-19 Robert Millan <rmh@aybabtu.com>
13921 * config.guess: Update to latest version from config git.
13922 * config.sub: Likewise.
13924 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
13926 * Makefile.in: Change font compilation to use new grub-mkfont instead
13929 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
13930 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
13931 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
13932 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
13933 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
13934 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
13935 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
13936 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
13937 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
13939 2009-01-16 Christian Franke <franke@computer.org>
13941 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
13942 (enum grub_ata_timeout_milliseconds): New enum.
13943 (grub_ata_wait_status): Add parameter milliseconds.
13944 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
13945 recovery from timed-out commands.
13946 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
13947 return grub_errno instead of REG_ERROR.
13948 (grub_ata_pio_write): Add parameter milliseconds.
13949 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
13950 Pass milliseconds to grub_ata_wait_status () and
13951 grub_ata_pio_read ().
13952 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
13953 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
13954 grub_ata_wait_status (). Fix IDENTIFY timeout check.
13955 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
13956 It is not suitable for device detection, because DEV bit is ignored,
13957 the command may run too long, and not all devices set the signature
13959 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
13960 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
13961 Fix device selection, DEV bit must be set first to address the registers
13962 of the correct device.
13963 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
13964 grub_ata_pio_read/write ().
13965 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
13966 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
13968 2009-01-13 Carles Pina i Estany <carles@pina.cat>
13970 * util/grub-editenv.c (main): Use fseeko(), not fseek().
13972 2009-01-13 Bean <bean123ch@gmail.com>
13974 * util/grub-mkfont.c (write_font): forget to remove some debug code.
13976 2009-01-13 Bean <bean123ch@gmail.com>
13978 * Makefile.in: (enable_grub_mkfont): New variable.
13979 (freetype_cflags): Likewise.
13980 (freetype_libs): Likewise.
13982 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
13983 (grub_mkfont_SOURCES): New variable.
13984 (grub_mkfont_CFLAGS): Likewise.
13985 (grub_mkfont_LDFLAGS): Likewise.
13987 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
13988 library if `--enable-grub-mkfont' is requested.
13989 (enable_grub_mkfont): New variable.
13990 (freetype_cflags): Likewise.
13991 (freetype_libs): Likewise.
13993 * util/grub-mkfont.c: New file.
13995 2009-01-12 Christian Franke <franke@computer.org>
13997 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
13998 mode check. Fix setting of compat_use[].
14000 2009-01-10 Robert Millan <rmh@aybabtu.com>
14002 Update a few copyright years which we forgot to do in 2008 (only for
14003 files whose changes made in 2008 were copyright-significant)
14005 * Makefile.in: Add 2008 to Copyright line.
14006 * disk/ieee1275/ofdisk.c: Likewise.
14007 * disk/efi/efidisk.c: Likewise.
14008 * kern/dl.c: Likewise.
14009 * kern/sparc64/ieee1275/init.c: Likewise.
14010 * kern/mm.c: Likewise.
14011 * kern/efi/mm.c: Likewise.
14012 * boot/i386/pc/boot.S: Likewise.
14013 * genfslist.sh: Likewise.
14014 * fs/iso9660.c: Likewise.
14015 * fs/hfs.c: Likewise.
14016 * fs/jfs.c: Likewise.
14017 * fs/minix.c: Likewise.
14018 * fs/ufs.c: Likewise.
14019 * gensymlist.sh.in: Likewise.
14020 * genkernsyms.sh.in: Likewise.
14021 * include/grub/misc.h: Likewise.
14022 * include/grub/types.h: Likewise.
14023 * include/grub/symbol.h: Likewise.
14024 * include/grub/elf.h: Likewise.
14025 * include/grub/kernel.h: Likewise.
14026 * include/grub/disk.h: Likewise.
14027 * include/grub/dl.h: Likewise.
14028 * include/grub/i386/linux.h: Likewise.
14029 * include/grub/i386/pc/biosdisk.h: Likewise.
14030 * include/grub/efi/api.h: Likewise.
14031 * include/grub/efi/pe32.h: Likewise.
14032 * include/grub/util/misc.h: Likewise.
14033 * normal/execute.c: Likewise.
14034 * normal/arg.c: Likewise.
14035 * normal/completion.c: Likewise.
14036 * normal/lexer.c: Likewise.
14037 * normal/parser.y: Likewise.
14038 * normal/misc.c: Likewise.
14039 * commands/i386/pc/vbeinfo.c: Likewise.
14040 * commands/hexdump.c: Likewise.
14041 * commands/terminal.c: Likewise.
14042 * commands/ls.c: Likewise.
14043 * commands/help.c: Likewise.
14044 * partmap/pc.c: Likewise.
14045 * loader/efi/chainloader.c: Likewise.
14046 * loader/multiboot_loader.c: Likewise.
14047 * loader/i386/pc/multiboot2.c: Likewise.
14048 * term/efi/console.c: Likewise.
14049 * term/i386/pc/serial.c: Likewise.
14050 * util/lvm.c: Likewise.
14051 * util/console.c: Likewise.
14052 * util/i386/efi/grub-mkimage.c: Likewise.
14053 * util/raid.c: Likewise.
14055 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
14057 * commands/videotest.c: Removed include to grub/machine/memory.h.
14059 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
14060 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
14061 (video_mod_SOURCES): Removed.
14062 (video_mod_CFLAGS): Likewise.
14063 (video_mod_LDFLAGS): Likewise.
14064 (gfxterm_mod_SOURCES): Likewise.
14065 (gfxterm_mod_CFLAGS): Likewise.
14066 (gfxterm_mod_LDFLAGS): Likewise.
14067 (videotest_mod_SOURCES): Likewise.
14068 (videotest_mod_CFLAGS): Likewise.
14069 (videotest_mod_LDFLAGS): Likewise.
14070 (bitmap_mod_SOURCES): Likewise.
14071 (bitmap_mod_CFLAGS): Likewise.
14072 (bitmap_mod_LDFLAGS): Likewise.
14073 (tga_mod_SOURCES): Likewise.
14074 (tga_mod_CFLAGS): Likewise.
14075 (tga_mod_LDFLAGS): Likewise.
14076 (jpeg_mod_SOURCES): Likewise.
14077 (jpeg_mod_CFLAGS): Likewise.
14078 (jpeg_mod_LDFLAGS): Likewise.
14079 (png_mod_SOURCES): Likewise.
14080 (png_mod_CFLAGS): Likewise.
14081 (png_mod_LDFLAGS): Likewise.
14083 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
14084 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
14085 (video_mod_SOURCES): Added.
14086 (video_mod_CFLAGS): Likewise.
14087 (video_mod_LDFLAGS): Likewise.
14088 (videotest_mod_SOURCES): Likewise.
14089 (videotest_mod_CFLAGS): Likewise.
14090 (videotest_mod_LDFLAGS): Likewise.
14091 (bitmap_mod_SOURCES): Likewise.
14092 (bitmap_mod_CFLAGS): Likewise.
14093 (bitmap_mod_LDFLAGS): Likewise.
14094 (tga_mod_SOURCES): Likewise.
14095 (tga_mod_CFLAGS): Likewise.
14096 (tga_mod_LDFLAGS): Likewise.
14097 (jpeg_mod_SOURCES): Likewise.
14098 (jpeg_mod_CFLAGS): Likewise.
14099 (jpeg_mod_LDFLAGS): Likewise.
14100 (png_mod_SOURCES): Likewise.
14101 (png_mod_CFLAGS): Likewise.
14102 (png_mod_LDFLAGS): Likewise.
14103 (gfxterm_mod_SOURCES): Likewise.
14104 (gfxterm_mod_CFLAGS): Likewise.
14105 (gfxterm_mod_LDFLAGS): Likewise.
14107 * term/gfxterm.c: Removed include to grub/machine/memory.h,
14108 grub/machine/console.h.
14110 2009-01-04 Jerone Young <jerone@gmail.com>
14112 Make on screen instructions clearer
14114 Based on patch created by Jidanni <jidanni@jidanni.org>
14116 * normal/menu.c: print clearer instructions on the screen
14118 2009-01-02 Colin D Bennett <colin@gibibit.com>
14122 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
14123 build system and fixed gfxterm.c to work with different sized fonts.
14125 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
14127 * configure: Re-generated.
14129 * DISTLIST: Removed font/manager.c.
14131 Added font/font_cmd.c.
14133 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
14136 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
14138 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
14140 * kern/term.c: Changed users of grub_utf8_to_ucs4.
14142 * normal/menu.c: Likewise.
14144 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
14145 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
14147 * include/grub/font.h: Replaced with new file.
14149 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
14150 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
14151 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
14152 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
14153 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
14154 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
14155 fg_red, fg_green, fg_blue, fg_alpha.
14156 (grub_video_adapter): Removed blit_glyph.
14157 (grub_video_blit_glyph): Removed.
14159 * font/manager.c: Removed file.
14161 * font/font.c: New file.
14163 * font/font_cmd.c: Likewise.
14165 * video/video.c (grub_video_blit_glyph): Removed.
14167 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
14168 (grub_video_vbe_map_rgba): Likewise.
14169 (grub_video_vbe_unmap_color_int): Likewise.
14170 (grub_video_vbe_blit_glyph): Removed.
14171 (grub_video_vbe_adapter): Removed blit_glyph.
14173 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
14174 (get_pixel): Likewise.
14175 (set_pixel): Likewise.
14177 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
14179 * term/gfxterm.c: Adapted to new font engine.
14181 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
14183 * term/i386/pc/vga.c: Likewise.
14185 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
14187 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
14189 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14191 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14193 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
14195 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
14197 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
14199 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
14201 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
14203 * util/grub.d/00_header.in: Changed to use new loadfont command.
14205 * util/grub-mkconfig_lib.in: Changed font extension.
14207 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
14209 * util/getroot.c (grub_util_get_grub_dev): Add support for
14210 /dev/md/dNNpNN style partitionable mdraid devices.
14212 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
14214 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
14215 at a time limit of the PXE TFTP API correctly.
14216 (grub_pxefs_close): Likewise.
14218 2008-11-29 Robert Millan <rmh@aybabtu.com>
14220 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
14221 grub_ata_device_initialize() calls.
14223 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
14225 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
14227 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
14229 2008-11-28 Robert Millan <rmh@aybabtu.com>
14231 Fix build on powerpc-ieee1275. Based on patch created by
14232 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
14233 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
14234 `kern/ieee1275/mmap.c'.
14235 * include/grub/powerpc/ieee1275/memory.h: New file.
14237 Provide grub-install on coreboot.
14238 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
14239 (grub_install_SOURCES): New variable.
14240 * util/i386/pc/grub-install.in: Add a few condition checks to make it
14241 usable on coreboot.
14243 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
14245 * util/grub-fstest.c (grub_term_get_current_input): Change return type
14246 to `grub_term_input_t'.
14247 (grub_term_get_current_output): Change return type to
14248 `grub_term_output_t'.
14250 2008-11-22 Robert Millan <rmh@aybabtu.com>
14252 Fix breakage on coreboot due to declaration mismatch.
14253 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
14254 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
14255 grub_vga_text_cls().
14257 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
14258 comments. Avoid copying one more byte than necessary (just in case).
14260 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
14261 to 0x200000 (avoids trouble with some OFW implementations, and matches
14262 with the one in Yaboot).
14263 Reported by Manoel Abranches
14265 2008-11-20 Robert Millan <rmh@aybabtu.com>
14267 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
14268 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
14270 * util/grub-mkconfig_lib.in (grub_warn): New function.
14271 (convert_system_path_to_grub_path): Use grub_warn() when issuing
14272 warnings, to obtain consistent formatting.
14273 * util/grub.d/00_header.in: Likewise.
14274 * util/update-grub_lib.in: Likewise.
14276 * loader/i386/linux.c (allocate_pages): Fix a warning.
14277 Move comment text to `#error' stanza.
14279 Harmonize ieee1275's grub_available_iterate() with the generic
14280 grub_machine_mmap_iterate() interface (fixes a recently-introduced
14281 build problem on i386-ieee1275):
14282 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
14283 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
14284 parameter `type'. Update all users of this function.
14285 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
14286 `kern/ieee1275/mmap.c'.
14287 * kern/ieee1275/init.c
14288 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
14290 (grub_machine_mmap_iterate): ... this.
14291 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
14292 return type to `grub_err_t'. Update all implementations of this
14293 function prototype.
14294 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
14297 Add `lsmmap' command (lists firmware-provided memory map):
14298 * commands/lsmmap.c: New file.
14299 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
14300 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
14302 * conf/powerpc-ieee1275.rmk: Likewise.
14303 * conf/i386-coreboot.rmk: Likewise.
14304 * conf/i386-ieee1275.rmk: Likewise.
14306 2008-11-19 Robert Millan <rmh@aybabtu.com>
14308 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
14309 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
14310 constraints to initrd allocation (based on code from
14311 loader/i386/pc/linux.c). Without them, initrd was allocated too high
14312 for Linux to find it.
14314 2008-11-14 Robert Millan <rmh@aybabtu.com>
14316 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
14317 order to cope with duplicate slashes.
14319 2008-11-14 Robert Millan <rmh@aybabtu.com>
14321 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
14322 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
14323 don't want to mess with lower memory, because it is used in the Linux
14326 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
14327 an appropriate place in lower memory, between 0x10000 and 0x90000,
14328 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
14329 is in our heap (probably as a result of it being corrupted during
14330 decompression). Add #error instance with comment to explain why this
14331 loader isn't currently usable on PC/BIOS.
14333 2008-11-14 Robert Millan <rmh@aybabtu.com>
14335 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
14336 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
14338 2008-11-12 Robert Millan <rmh@aybabtu.com>
14340 Make loader/i386/linux.c buildable on i386-pc (although disabled).
14342 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
14343 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
14345 * include/grub/i386/pc/memory.h: ... to here.
14347 2008-11-12 Robert Millan <rmh@aybabtu.com>
14349 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
14352 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
14353 (grub_console_cur_color, grub_console_real_putchar)
14354 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14355 (grub_console_setcolorstate, grub_console_setcolor)
14356 (grub_console_getcolor): Move from here ...
14357 * include/grub/i386/vga_common.h: ... to here (new file).
14359 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
14360 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
14361 `<grub/i386/io.h>'.
14362 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
14363 `<grub/i386/vga_common.h>'.
14365 2008-11-12 Robert Millan <rmh@aybabtu.com>
14367 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
14368 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
14369 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
14371 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14372 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
14374 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
14375 grub_console_init() with call to grub_vga_text_init().
14376 (grub_machine_fini): Replace call to
14377 grub_console_fini() with call to grub_vga_text_fini() and
14378 grub_at_keyboard_fini().
14380 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
14381 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14382 (grub_console_setcolorstate, grub_console_setcolor)
14383 (grub_console_getcolor): New function prototypes.
14385 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
14386 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
14387 (grub_vga_text_setcursor): Static-ize.
14388 (grub_vga_text_term): New structure.
14389 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
14391 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
14392 (grub_console_cur_color, grub_console_standard_color)
14393 (grub_console_normal_color, grub_console_highlight_color)
14394 (map_char, grub_console_putchar, grub_console_getcharwidth)
14395 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
14396 (grub_console_getcolor): Move from here ...
14397 * term/i386/vga_common.c: ... to here (same function names).
14399 2008-11-12 Robert Millan <rmh@aybabtu.com>
14401 Use newly-added Multiboot support in coreboot.
14403 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14404 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
14406 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
14407 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
14408 (codestart): Store the MBI in `startup_multiboot_info' when we're
14409 being loaded using Multiboot.
14411 * kern/i386/coreboot/init.c (grub_machine_init): Move
14412 grub_at_keyboard_init() call to beginning of function (useful for
14413 debugging). Call grub_machine_mmap_init() before attempting to use
14414 grub_machine_mmap_iterate().
14415 (grub_lower_mem, grub_upper_mem): Move from here ...
14416 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
14419 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
14420 function prototype.
14422 2008-11-12 Robert Millan <rmh@aybabtu.com>
14424 Fix a regression introduced by the at_keyboard.mod split. Because
14425 some terminals are default on some platforms and non-default on
14426 others, the first terminal being registered determines which is
14427 going to be default.
14429 * kern/term.c (grub_term_register_input): If this is the first
14430 terminal being registered, set it as the current one.
14431 (grub_term_register_output): Likewise.
14433 * term/efi/console.c (grub_console_init): Do not call
14434 grub_term_set_current_output() or grub_term_set_current_input().
14435 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
14436 * term/i386/pc/console.c (grub_console_init): Likewise.
14437 (grub_console_fini): Do not call grub_term_set_current_input()
14438 (but leave grub_term_set_current_output() to restore text mode).
14440 2008-11-10 Robert Millan <rmh@aybabtu.com>
14442 * util/grub.d/00_header.in: Add backward compatibility check for
14443 versions of terminal.mod that don't understand `terminal_input' or
14446 2008-11-09 Robert Millan <rmh@aybabtu.com>
14448 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
14449 `terminal_input' / `terminal_output', not `terminal'.
14451 2008-11-08 Robert Millan <rmh@aybabtu.com>
14453 * Makefile.in (include_DATA): Fix srcdir=. assumption.
14454 (DISTCLEANFILES): Add `build_env.mk'.
14456 2008-11-08 Robert Millan <rmh@aybabtu.com>
14458 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
14459 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14460 members. Update all users.
14461 * util/console.c (grub_ncurses_term): Split in ...
14462 (grub_ncurses_term_input): ... this, and ...
14463 (grub_ncurses_term_output): ... this. Update all users.
14464 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
14466 2008-11-08 Robert Millan <rmh@aybabtu.com>
14468 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
14469 (PKGDATA): Add $(pkgdata_SRCDIR).
14470 (pkglib_BUILDDIR): New variable.
14471 (pkgdata_SRCDIR): New variable.
14472 (build_env.mk): New target.
14473 (include_DATA): New variable.
14474 (install-local): Install $(include_DATA) files in $(includedir).
14476 2008-11-07 Pavel Roskin <proski@gnu.org>
14478 * gendistlist.sh: Use C locale for sorting to ensure consistent
14479 output on all systems.
14481 * util/grub.d/00_header.in: Remove incorrect space before
14484 2008-11-07 Robert Millan <rmh@aybabtu.com>
14486 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
14488 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
14489 * loader/multiboot_loader.c (find_multi_boot2_header): New function
14490 (based on find_multi_boot1_header).
14491 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
14492 using find_multi_boot2_header(), and abort if neither Multiboot or
14493 Multiboot headers were found.
14495 2008-11-07 Robert Millan <rmh@aybabtu.com>
14497 Modularize at_keyboard.mod:
14499 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
14500 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
14501 (at_keyboard_mod_LDFLAGS): New variables.
14503 Actual terminal split:
14505 * include/grub/term.h (struct grub_term): Split in ...
14506 (struct grub_term_input): ... this, and ...
14507 (struct grub_term_output): ... this. Update all users.
14508 (grub_term_set_current): Split in ...
14509 (grub_term_set_current_input): ... this, and ...
14510 (grub_term_set_current_output): ... this.
14511 (grub_term_get_current): Split in ...
14512 (grub_term_get_current_input): ... this, and ...
14513 (grub_term_get_current_output): ... this.
14514 (grub_term_register): Split in ...
14515 (grub_term_register_input): ... this, and ...
14516 (grub_term_register_output): ... this.
14517 (grub_term_unregister): Split in ...
14518 (grub_term_unregister_input): ... this, and ...
14519 (grub_term_unregister_output): ... this.
14520 (grub_term_iterate): Split in ...
14521 (grub_term_iterate_input): ... this, and ...
14522 (grub_term_iterate_output): ... this.
14524 * kern/term.c (grub_term_list): Split in ...
14525 (grub_term_list_input): ... this, and ...
14526 (grub_term_list_output): ... this. Update all users.
14527 (grub_cur_term): Split in ...
14528 (grub_cur_term_input): ... this, and ...
14529 (grub_cur_term_output): ... this. Update all users.
14530 (grub_term_set_current): Split in ...
14531 (grub_term_set_current_input): ... this, and ...
14532 (grub_term_set_current_output): ... this.
14533 (grub_term_get_current): Split in ...
14534 (grub_term_get_current_input): ... this, and ...
14535 (grub_term_get_current_output): ... this.
14536 (grub_term_register): Split in ...
14537 (grub_term_register_input): ... this, and ...
14538 (grub_term_register_output): ... this.
14539 (grub_term_unregister): Split in ...
14540 (grub_term_unregister_input): ... this, and ...
14541 (grub_term_unregister_output): ... this.
14542 (grub_term_iterate): Split in ...
14543 (grub_term_iterate_input): ... this, and ...
14544 (grub_term_iterate_output): ... this.
14546 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
14547 a check for input and one for output (and only attempt to get keys
14548 from user when input works).
14550 * util/grub-probe.c (grub_term_get_current): Split in ...
14551 (grub_term_get_current_input): ... this, and ...
14552 (grub_term_get_current_output): ... this.
14553 * util/grub-fstest.c: Likewise.
14554 * util/i386/pc/grub-setup.c: Likewise.
14555 * util/grub-editenv.c: Likewise.
14557 Portability adjustments:
14559 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
14560 `term/i386/pc/at_keyboard.c'.
14561 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
14562 grub_keyboard_controller_init() (now handled by terminal .init).
14563 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
14564 grub_at_keyboard_init().
14565 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
14566 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
14567 at_keyboard.mod via input terminal interface).
14568 * include/grub/i386/coreboot/console.h: Convert into a stub for
14569 `<grub/i386/pc/console.h>'.
14571 Migrate full terminals to new API:
14573 * term/efi/console.c (grub_console_term): Split into ...
14574 (grub_console_term_input): ... this, and ...
14575 (grub_console_term_output): ... this. Update all users.
14576 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
14577 (grub_ofconsole_init): Split into ...
14578 (grub_ofconsole_init_input): ... this, and ...
14579 (grub_ofconsole_init_output): ... this.
14580 (grub_ofconsole_term): Split into ...
14581 (grub_ofconsole_term_input): ... this, and ...
14582 (grub_ofconsole_term_output): ... this. Update all users.
14583 * term/i386/pc/serial.c (grub_serial_term): Split into ...
14584 (grub_serial_term_input): ... this, and ...
14585 (grub_serial_term_output): ... this. Update all users.
14586 * term/i386/pc/console.c (grub_console_term): Split into ...
14587 (grub_console_term_input): ... this, and ...
14588 (grub_console_term_output): ... this. Update all users.
14589 (grub_console_term_input): Only enable it on PC/BIOS platform.
14590 (grub_console_init): Remove grub_keyboard_controller_init() call.
14592 Migrate input terminals to new API:
14594 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
14595 `i386' and `i386/pc' to enable build on x86_64 (this driver is
14596 i386-specific anyway).
14597 (grub_console_checkkey): Rename to ...
14598 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
14600 (grub_keyboard_controller_orig): New variable.
14601 (grub_console_getkey): Rename to ...
14602 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
14604 (grub_keyboard_controller_init): Static-ize. Save original
14605 controller value so that it can be restored ...
14606 (grub_keyboard_controller_fini): ... here (new function).
14607 (grub_at_keyboard_term): New structure.
14608 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
14611 Migrate output terminals to new API:
14613 * term/i386/pc/vga.c (grub_vga_term): Change type to
14614 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14615 members. Update all users.
14616 * term/gfxterm.c (grub_video_term): Change type to
14617 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14618 members. Update all users.
14619 * include/grub/i386/pc/console.h (grub_console_checkkey)
14620 (grub_console_getkey): Do not export (no longer needed by gfxterm,
14623 Migrate `terminal' command and userland tools to new API:
14625 * commands/terminal.c (grub_cmd_terminal): Split into ...
14626 (grub_cmd_terminal_input): ... this, and ...
14627 (grub_cmd_terminal_output): ... this.
14628 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
14629 `terminal_input' and `terminal_output'.
14630 * util/grub.d/00_header.in: Adjust `terminal' calls to new
14631 `terminal_input' / `terminal_output' API.
14632 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
14633 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
14634 provided ${GRUB_TERMINAL}, convert it).
14636 2008-11-04 Robert Millan <rmh@aybabtu.com>
14638 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
14640 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
14642 2008-11-03 Bean <bean123ch@gmail.com>
14644 * kern/elf.c (grub_elf32_load): Revert to previous code.
14645 (grub_elf64_load): Likewise.
14647 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
14649 2008-11-01 Robert Millan <rmh@aybabtu.com>
14651 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
14652 (TARGET_CPPFLAGS): Likewise.
14653 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
14655 2008-11-01 Carles Pina i Estany <carles@pina.cat>
14657 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
14659 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
14661 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
14662 addition of objects until the code is not going to be able to fail.
14664 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
14666 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
14667 (add a missing NULL check, and correct them by moving the pointer
14668 operations after the actual check).
14670 2008-10-29 Robert Millan <rmh@aybabtu.com>
14672 * util/i386/pc/grub-install.in: Handle empty string as output from
14673 make_system_path_relative_to_its_root().
14675 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
14677 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
14678 circular metadata worst case scenario. If the metadata is circular
14679 then copy the wrap in place.
14680 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
14681 project lib/format_text/layout.h
14682 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
14684 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
14686 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
14688 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
14690 * util/update-grub_lib.in: Mention filename in warning message.
14692 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
14694 * NEWS: Update for rename of update-grub to grub-mkconfig.
14696 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
14698 * util/update-grub_lib.in: Copy to ...
14699 * util/grub-mkconfig_lib.in: ... this. Update all users.
14700 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
14701 * util/update-grub.in: Rename to ...
14702 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
14703 option. Add `--output' option to allow users to specify the generated
14704 configuration file. Default to stdout.
14705 (update_grub_dir): Rename to ...
14706 (grub_mkconfig_dir): ... this.
14707 (grub_cfg): Default to an empty string.
14708 * conf/common.rmk (update-grub): Rename to ...
14709 (grub-mkconfig): ... this.
14710 (update-grub_lib): Copy to ...
14711 (grub-mkconfig_lib): ... this.
14712 (update-grub_SCRIPTS): Copy to ...
14713 (grub-mkconfig_SCRIPTS): ... this. Update all users.
14714 (update-grub_DATA): Rename to ...
14715 (grub-mkconfig_DATA): ... this.
14717 2008-09-28 Robert Millan <rmh@aybabtu.com>
14719 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
14720 to `modified'. Add the real `created' field.
14721 (grub_iso9660_uuid): Use `modified' rather than `created' for
14722 constructing the UUID.
14724 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
14726 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
14727 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
14729 2008-09-28 Bean <bean123ch@gmail.com>
14731 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
14732 Thanks to Christian Franke for finding this bug.
14734 2008-09-25 Robert Millan <rmh@aybabtu.com>
14736 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
14737 instances of grub_util_get_disk_name() (see previous commit).
14739 2008-09-25 Robert Millan <rmh@aybabtu.com>
14741 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
14742 `util/i386/get_disk_name.c'.
14743 * conf/i386-efi.rmk: Likewise.
14744 * conf/x86_64-efi.rmk: Likewise.
14745 * conf/i386-coreboot.rmk: Likewise.
14746 * conf/i386-ieee1275.rmk: Likewise.
14747 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
14748 `util/ieee1275/get_disk_name.c'.
14749 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
14750 * util/ieee1275/get_disk_name.c: Remove file.
14751 * util/i386/get_disk_name.c: Remove file.
14752 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
14753 "hd%d" for device.map entries, rather than using
14754 grub_util_get_disk_name().
14756 2008-09-24 Carles Pina i Estany <carles@pina.cat>
14758 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
14760 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
14762 2008-09-24 Carles Pina i Estany <carles@pina.cat>
14764 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
14766 (GRUB_TERM_PPAGE): Changed to 0x4900.
14768 2008-09-24 Robert Millan <rmh@aybabtu.com>
14770 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
14771 macros (they were i386-pc specific).
14772 * include/grub/sparc64/ieee1275/console.h: Likewise.
14773 * include/grub/efi/console.h: Likewise.
14775 2008-09-22 Bean <bean123ch@gmail.com>
14777 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
14778 resident and in attribute list.
14780 * include/grub/ntfs.h (BMP_LEN): Removed.
14782 2008-09-22 Bean <bean123ch@gmail.com>
14784 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
14785 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
14787 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
14788 error occurs, as grub_disk_open will call grub_disk_close, which will
14789 call p->close (scsi).
14791 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
14793 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
14794 (AC_PREREQ): Bumped to 2.59.
14795 (AC_TRY_COMPILE): Replace obsolete macro with ...
14796 (AC_COMPILE_IFELSE): ... this.
14797 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
14798 (AC_LINK_IFELSE): ... this.
14800 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
14802 * autogen.sh: Add a call to `gendistlist.sh'.
14804 2008-09-19 Christian Franke <franke@computer.org>
14806 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
14807 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
14808 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
14809 Export __enable_execute_stack() to modules.
14810 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
14813 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
14815 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
14818 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
14820 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
14821 #include <grub/util/hostdisk.h>.
14823 2008-09-08 Robert Millan <rmh@aybabtu.com>
14825 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
14826 segments when their filesz is zero (grub_file_read() interprets
14827 zero-size as "read until EOF", which results in memory corruption).
14828 Use `lowest_segment' rather than 0 for calculating the current
14829 segment load address.
14831 2008-09-08 Robert Millan <rmh@aybabtu.com>
14833 * util/hostdisk.c (open_device): Replace a grub_util_info() call
14834 with grub_dprintf("hostdisk", ...), as it was so verbose that it
14835 clobbered useful information.
14837 2008-09-08 Robert Millan <rmh@aybabtu.com>
14839 * include/grub/util/biosdisk.h: Move to ...
14840 * include/grub/util/hostdisk.h: ... here. Update all users.
14841 * util/biosdisk.c: Move to ...
14842 * util/hostdisk.c: ... here. Update all users.
14844 2008-09-07 Robert Millan <rmh@aybabtu.com>
14846 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
14848 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
14849 and length can be stored directly in the `mbi->mmap_addr' and
14850 `mbi->mmap_length' struct fields.
14852 2008-09-07 Robert Millan <rmh@aybabtu.com>
14854 * conf/i386.rmk: New file. Provides declaration for building
14856 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
14857 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
14859 Include `conf/i386.mk'.
14860 * conf/i386-efi.rmk: Likewise.
14861 * conf/x86_64-efi.rmk: Likewise.
14862 * conf/i386-coreboot.rmk: Likewise.
14863 * conf/i386-ieee1275.rmk: Likewise.
14865 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
14867 Based on patch created by Colin D Bennett <colin@gibibit.com>.
14868 Adds optimization support for BGR based modes.
14870 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
14871 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
14872 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14873 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14874 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14875 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14876 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14877 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14878 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14879 (grub_video_i386_vbeblit_index_index): Likewise.
14880 (grub_video_i386_vbeblit_replace_directN): Added.
14881 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
14882 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
14883 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
14884 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
14885 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
14886 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
14887 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
14888 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
14889 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
14890 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
14891 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
14892 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
14893 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
14895 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
14896 (grub_video_i386_vbefill_R8G8B8): Likewise.
14897 (grub_video_i386_vbefill_index): Likewise.
14898 (grub_video_i386_vbefill_direct32): Added.
14899 (grub_video_i386_vbefill_direct24): Likewise.
14900 (grub_video_i386_vbefill_direct16): Likewise.
14901 (grub_video_i386_vbefill_direct8): Likewise.
14903 * include/grub/video.h (grub_video_blit_format): Removed
14904 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
14905 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
14906 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
14907 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
14908 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
14910 * video/video.c (grub_video_get_blit_format): Updated to use new
14911 blit formats. Added handling for 16 bit color modes.
14913 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
14915 (common_blitter): Updated to use new blitters.
14917 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
14919 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
14920 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14921 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14922 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14923 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14924 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14925 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14926 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14927 (grub_video_i386_vbeblit_index_index): Likewise.
14928 (grub_video_i386_vbeblit_replace_directN): Added.
14929 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
14930 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
14931 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
14932 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
14933 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
14934 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
14935 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
14936 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
14937 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
14938 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
14939 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
14940 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
14941 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
14943 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
14944 (grub_video_i386_vbefill_R8G8B8): Likewise.
14945 (grub_video_i386_vbefill_index): Likewise.
14946 (grub_video_i386_vbefill_direct32): Added.
14947 (grub_video_i386_vbefill_direct24): Likewise.
14948 (grub_video_i386_vbefill_direct16): Likewise.
14949 (grub_video_i386_vbefill_direct8): Likewise.
14951 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
14954 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
14957 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
14960 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
14963 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
14965 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
14968 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
14970 * fs/iso9660.c (grub_iso9660_date): New structure.
14971 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
14972 (grub_iso9660_uuid): New function.
14974 2008-09-05 Bean <bean123ch@gmail.com>
14976 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
14978 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
14979 insensitive bit for names in Win32 and Win32 & DOS namespace.
14981 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
14983 * include/grub/types.h (LONG_MAX): Likewise.
14985 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
14987 * util/getroot.c: Include <config.h>.
14988 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
14989 add support for /dev/md/N devices and handle LVM double dash escaping.
14991 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
14993 * config.guess: Update to latest version from config git.
14994 * config.sub: Likewise.
14996 2008-09-03 Robert Millan <rmh@aybabtu.com>
14998 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
14999 `disk->total_sectors'.
15001 2008-09-01 Colin D Bennett <colin@gibibit.com>
15003 * include/grub/normal.h: Fixed incorrect comment for
15004 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
15006 2008-09-01 Colin D Bennett <colin@gibibit.com>
15008 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
15009 values with defines.
15011 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
15012 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
15013 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
15014 (GRUB_VBE_MODEATTR_COLOR): Likewise.
15015 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
15016 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
15017 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
15018 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
15019 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
15020 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
15021 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
15022 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
15023 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
15024 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
15025 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
15026 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
15027 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
15028 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
15029 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
15031 2008-08-31 Robert Millan <rmh@aybabtu.com>
15033 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
15035 (grub_multiboot): Fix a few warnings.
15037 2008-08-31 Robert Millan <rmh@aybabtu.com>
15039 * loader/i386/pc/multiboot.c: Update comment not to say that
15040 boot_device support is unimplemented.
15042 2008-08-31 Robert Millan <rmh@aybabtu.com>
15044 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
15045 or memory map support are unimplemented.
15047 2008-08-31 Colin D Bennett <colin@gibibit.com>
15049 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
15051 2008-08-31 Colin D Bennett <colin@gibibit.com>
15053 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
15054 total video memory in 'vbeinfo' output; show color format details for
15057 2008-08-30 Pavel Roskin <proski@gnu.org>
15059 * util/genmoddep.c: Remove for real this time.
15060 * DISTLIST: Remove util/genmoddep.c.
15062 2008-08-30 Robert Millan <rmh@aybabtu.com>
15064 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
15065 as required by Multiboot spec (it was already 4-byte aligned, but
15068 2008-08-29 Pavel Roskin <proski@gnu.org>
15070 * kern/powerpc/ieee1275/crt0.S: Rename to ...
15071 * kern/powerpc/ieee1275/startup.S: ... this.
15072 * conf/powerpc-ieee1275.rmk: Adjust for the above.
15073 * DISTLIST: Likewise.
15075 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
15076 grub/cpu/kernel.h. Add start label for consistency with other
15077 platforms. Add grub_prefix immediately after start. Add jump
15078 to the code after grub_prefix.
15079 * include/grub/powerpc/kernel.h: Provide valid values for
15080 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
15082 2008-08-29 Bean <bean123ch@gmail.com>
15084 * configure.ac: Change host_os to cygwin for mingw.
15085 (asprintf): New check for function.
15087 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
15088 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
15090 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
15091 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
15092 sync, sleep and grub_util_get_disk_size for mingw.
15094 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
15095 to get size in mingw.
15096 (open_device): Use flag O_BINARY if it's defined.
15097 (find_root_device): Add dummy code for mingw.
15099 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
15100 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
15101 (get_scsi_disk_name): Return 0 for mingw.
15103 * util/hostfs.c: #include <grub/util/misc.h>.
15104 (grub_hostfs_open): Use "rb" flag to open file, use
15105 grub_util_get_disk_size to get disk size for mingw.
15107 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
15108 (asprintf): New function if HAVE_ASPRINTF is not set.
15109 (sync): New function for mingw.
15111 (grub_util_get_disk_size): Likewise.
15113 2008-08-28 Pavel Roskin <proski@gnu.org>
15115 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15118 2008-08-28 Robert Millan <rmh@aybabtu.com>
15120 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
15122 2008-08-28 Robert Millan <rmh@aybabtu.com>
15124 Change find_grub_drive() syntax so it doesn't prevent it from
15125 detecting NULL names as errors.
15127 * util/biosdisk.c (find_grub_drive): Move free slot search code
15129 (find_free_slot): ... to here.
15130 (read_device_map): Use find_free_slot() to search for free slots.
15132 2008-08-27 Marco Gerards <marco@gnu.org>
15134 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
15135 (scsi_mod_SOURCES): New variable.
15136 (scsi_mod_CFLAGS): Likewise
15137 (scsi_mod_LDFLAGS): Likewise.
15139 * disk/scsi.c: New file.
15141 * include/grub/scsi.h: Likewise.
15143 * include/grub/scsicmd.h: Likewise.
15145 * disk/ata.c: Include <grub/scsi.h>.
15146 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
15148 (grub_ata_iterate): Skip ATAPI devices.
15149 (grub_ata_open): Only handle ATAPI devices.
15150 (struct grub_atapi_read): Removed.
15151 (grub_atapi_readsector): Likewise.
15152 (grub_ata_read): No longer handle ATAPI devices.
15153 (grub_ata_write): Likewise.
15154 (grub_atapi_iterate): New function.
15155 (grub_atapi_read): Likewise.
15156 (grub_atapi_write): Likewise.
15157 (grub_atapi_open): Likewise.
15158 (grub_atapi_close): Likewise.
15159 (grub_atapi_dev): New variable.
15160 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
15161 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
15163 * include/grub/disk.h (enum grub_disk_dev_id): Add
15164 `GRUB_DISK_DEVICE_SCSI_ID'.
15166 2008-08-26 Robert Millan <rmh@aybabtu.com>
15168 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
15169 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
15172 2008-08-23 Bean <bean123ch@gmail.com>
15174 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
15175 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15176 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
15177 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
15179 (raid5rec_mod_SOURCES): New macro.
15180 (raid5rec_mod_CFLAGS): Likewise.
15181 (raid5rec_mod_LDFLAGS): Likewise.
15182 (raid6rec_mod_SOURCES): Likewise.
15183 (raid6rec_mod_CFLAGS): Likewise.
15184 (raid6rec_mod_LDFLAGS): Likewise.
15185 (mdraid_mod_SOURCES): Likewise.
15186 (mdraid_mod_CFLAGS): Likewise.
15187 (mdraid_mod_LDFLAGS): Likewise.
15188 (dm_nv_mod_SOURCES): Likewise.
15189 (dm_nv_mod_CFLAGS): Likewise.
15190 (dm_nv_mod_LDFLAGS): Likewise.
15192 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
15193 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15194 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15196 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
15197 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15199 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15201 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15203 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15205 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15207 * disk/raid5_recover.c: New file.
15209 * disk/raid6_recover.c: Likewise.
15211 * disk/mdraid_linux.c: Likewise.
15213 * disk/dmraid_nvidia.c: Likewise.
15215 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
15218 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
15219 calculate the size of raid device.
15220 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
15221 different layout of raid5.
15222 (grub_raid_scan_device): Remove code specific to mdraid.
15223 (grub_raid_list): New variable.
15224 (free_array): New function.
15225 (grub_raid_register): Likewise.
15226 (grub_raid_unregister): Likewise.
15227 (grub_raid_rescan): Likewise.
15228 (GRUB_MOD_INIT): Don't iterate device here.
15229 (GRUB_MOD_FINI): Use free_array to release resource.
15231 * include/grub/raid.h: Remove macro and structure specific to mdraid.
15232 (grub_raid5_recover_func_t): New function variable type.
15233 (grub_raid6_recover_func_t): Likewise.
15234 (grub_raid5_recover_func): New variable.
15235 (grub_raid6_recover_func): Likewise.
15236 (grub_raid_register): New function.
15237 (grub_raid_unregister): Likewise.
15238 (grub_raid_rescan): Likewise.
15239 (grub_raid_block_xor): Likewise.
15241 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
15242 (CMD_CRC): New macro.
15244 (read_file): Handle device as well as file.
15245 (cmd_crc): New function.
15246 (fstest): Handle multiple disks.
15247 (options): Remove part, raw and long, add root and diskcount.
15248 (usage): Add crc, remove -p, -r, -l, add -r and -c.
15249 (main): Find the first non option entry and ignore subsequent options,
15250 add handling for the new options, support multiple disks.
15252 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
15254 2008-08-23 Bean <bean123ch@gmail.com>
15256 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
15258 * genfslist.sh: Ignore kernel.mod.
15260 * genpartmaplist.sh: Likewise.
15262 2008-08-23 Robert Millan <rmh@aybabtu.com>
15264 * util/getroot.c (find_root_device): Skip anything that starts with
15265 a dot, not just directories. This avoids things like /dev/.tmp.md0.
15267 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
15269 * util/update-grub.in (GRUB_GFXMODE): Export variable.
15270 * util/grub.d/00_header.in: Allow the administrator to change default
15271 gfxmode via ${GRUB_GFXMODE}.
15273 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
15275 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
15277 2008-08-21 Robert Millan <rmh@aybabtu.com>
15279 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
15281 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
15282 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
15284 2008-08-20 Carles Pina i Estany <carles@pina.cat>
15286 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
15287 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
15289 2008-08-19 Robert Millan <rmh@aybabtu.com>
15291 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
15292 (struct grub_virtual_screen): Remove `cursor_color'.
15293 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
15295 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
15297 2008-08-18 Robert Millan <rmh@aybabtu.com>
15299 Unify (identical) linux_normal.c files.
15300 * loader/i386/efi/linux_normal.c: Move from here ...
15301 * loader/linux_normal.c: ... to here. Update all users.
15302 * loader/i386/pc/linux_normal.c: Delete. Update all users.
15303 * loader/i386/ieee1275/linux_normal.c: Likewise.
15305 2008-08-18 Robert Millan <rmh@aybabtu.com>
15307 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
15308 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
15309 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
15310 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
15311 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
15313 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
15314 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
15315 (GRUB_LINUX_CL_END_OFFSET): ... to here.
15316 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
15317 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
15318 (GRUB_EFI_CL_END_OFFSET): Rename to ...
15319 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
15320 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
15321 Initialize `params->video_cursor_x' and `params->video_cursor_y'
15322 portably using grub_getxy().
15323 Replace `-EFI' with `-bzImage' in boot message.
15325 2008-08-17 Robert Millan <rmh@aybabtu.com>
15327 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
15329 2008-08-17 Robert Millan <rmh@aybabtu.com>
15331 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
15333 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
15334 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
15335 (grub_machine_mmap_iterate): New function declaration.
15336 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
15338 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
15341 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
15342 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
15343 Move e820 parsing from here ...
15344 * kern/i386/pc/mmap.c: New file.
15345 (grub_machine_mmap_iterate): ... to here.
15347 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
15348 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
15349 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
15350 (grub_available_iterate): Redeclare to return `void', and redeclare
15351 its hook to use grub_uint64_t as addr and size parameters, and rename
15353 (grub_machine_mmap_iterate): ... this. Update all users.
15355 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
15356 to make it more readable. Rename to ...
15357 (grub_machine_mmap_iterate): ... this.
15359 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
15360 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
15361 (grub_multiboot): Allocate an extra region after the payload, and fill
15362 it with a Multiboot memory map. Adjust a.out loader to calculate size
15363 with the extra space.
15364 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
15365 with the extra space.
15367 2008-08-17 Carles Pina i Estany <carles@pina.cat>
15369 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
15371 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
15373 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
15374 mdate-sh to the list `find' searches for.
15375 * DISTLIST: Regenerated.
15377 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
15379 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
15380 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
15381 genmoddep.awk, gensymlist.sh.in.
15382 (DISTDIRS): Add bus, docs, hook, lib.
15383 * DISTLIST: Regenerated.
15384 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
15386 2008-08-16 Robert Millan <rmh@aybabtu.com>
15388 * disk/raid.c (grub_raid_init): Handle/report errors set by
15389 grub_device_iterate().
15390 * disk/lvm.c (grub_lvm_init): Likewise.
15392 2008-08-15 Bean <bean123ch@gmail.com>
15394 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15396 (datetime_mod_SOURCES): New macro.
15397 (datetime_mod_CFLAGS): Likewise.
15398 (datetime_mod_LDFLAGS): Likewise.
15399 (date_mod_SOURCES): Likewise.
15400 (date_mod_CFLAGS): Likewise.
15401 (date_mod_LDFLAGS): Likewise.
15402 (datehook_mod_SOURCES): Likewise.
15403 (datehook_mod_CFLAGS): Likewise.
15404 (datehook_mod_LDFLAGS): Likewise.
15406 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15408 (datetime_mod_SOURCES): New macro.
15409 (datetime_mod_CFLAGS): Likewise.
15410 (datetime_mod_LDFLAGS): Likewise.
15411 (date_mod_SOURCES): Likewise.
15412 (date_mod_CFLAGS): Likewise.
15413 (date_mod_LDFLAGS): Likewise.
15414 (datehook_mod_SOURCES): Likewise.
15415 (datehook_mod_CFLAGS): Likewise.
15416 (datehook_mod_LDFLAGS): Likewise.
15418 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15420 (datetime_mod_SOURCES): New macro.
15421 (datetime_mod_CFLAGS): Likewise.
15422 (datetime_mod_LDFLAGS): Likewise.
15423 (date_mod_SOURCES): Likewise.
15424 (date_mod_CFLAGS): Likewise.
15425 (date_mod_LDFLAGS): Likewise.
15426 (datehook_mod_SOURCES): Likewise.
15427 (datehook_mod_CFLAGS): Likewise.
15428 (datehook_mod_LDFLAGS): Likewise.
15430 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15432 (datetime_mod_SOURCES): New macro.
15433 (datetime_mod_CFLAGS): Likewise.
15434 (datetime_mod_LDFLAGS): Likewise.
15435 (date_mod_SOURCES): Likewise.
15436 (date_mod_CFLAGS): Likewise.
15437 (date_mod_LDFLAGS): Likewise.
15438 (datehook_mod_SOURCES): Likewise.
15439 (datehook_mod_CFLAGS): Likewise.
15440 (datehook_mod_LDFLAGS): Likewise.
15442 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15444 (datetime_mod_SOURCES): New macro.
15445 (datetime_mod_CFLAGS): Likewise.
15446 (datetime_mod_LDFLAGS): Likewise.
15447 (date_mod_SOURCES): Likewise.
15448 (date_mod_CFLAGS): Likewise.
15449 (date_mod_LDFLAGS): Likewise.
15450 (datehook_mod_SOURCES): Likewise.
15451 (datehook_mod_CFLAGS): Likewise.
15452 (datehook_mod_LDFLAGS): Likewise.
15454 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
15456 * commands/date.c: New file.
15458 * hook/datehook.c: Likewise.
15460 * include/grub/lib/datetime.h: Likewise.
15462 * include/grub/i386/cmos.h: Likewise.
15464 * lib/datetime.c: Likewise.
15466 * lib/i386/datetime.c: Likewise.
15468 * lib/efi/datetime.c: Likewise.
15470 2008-08-14 Robert Millan <rmh@aybabtu.com>
15472 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
15473 (grub_mkelfimage_SOURCES): New variable.
15474 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
15476 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
15477 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
15478 * conf/powerpc-ieee1275.rmk: Likewise.
15479 * conf/i386-ieee1275.rmk: Likewise.
15481 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
15482 * kern/i386/coreboot/init.c: Likewise.
15484 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
15485 with `<grub/cpu/kernel.h>'.
15486 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
15488 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
15489 * kern/i386/coreboot/startup.S: Likewise.
15491 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
15492 (GRUB_MOD_GAP): Remove.
15493 * include/grub/powerpc/kernel.h: New file.
15494 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
15495 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15496 * include/grub/i386/kernel.h: New file.
15497 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
15498 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
15499 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15501 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
15503 Use --directory when invoking grub_mkimage.
15505 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
15506 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
15507 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
15508 and GRUB_KERNEL_CPU_PREFIX.
15510 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
15512 * include/grub/err.h (grub_err_printf): New function prototype.
15513 * util/misc.c (grub_err_printf): New function.
15514 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
15516 * kern/err.c (grub_print_error): Use grub_err_printf.
15518 2008-08-13 Robert Millan <rmh@aybabtu.com>
15520 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
15522 2008-08-13 Robert Millan <rmh@aybabtu.com>
15524 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
15527 2008-08-12 Robert Millan <rmh@aybabtu.com>
15529 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
15530 of the relocation code from here ...
15531 (grub_multiboot): ... to here.
15532 (forward_relocator, backward_relocator): Move from here ...
15533 * kern/i386/loader.S (grub_multiboot_forward_relocator)
15534 (grub_multiboot_backward_relocator): ... to here.
15535 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
15536 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
15537 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
15538 (grub_multiboot_forward_relocator_end)
15539 (grub_multiboot_backward_relocator)
15540 (grub_multiboot_backward_relocator_end): New variables.
15542 2008-08-12 Bean <bean123ch@gmail.com>
15544 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
15546 2008-08-11 Robert Millan <rmh@aybabtu.com>
15548 * kern/i386/linuxbios/startup.S: Move from here ...
15549 * kern/i386/coreboot/startup.S: ... to here.
15551 * kern/i386/linuxbios/init.c: Move from here ...
15552 * kern/i386/coreboot/init.c: ... to here.
15554 * kern/i386/linuxbios/table.c: Move from here ...
15555 * kern/i386/coreboot/mmap.c: ... to here.
15557 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
15559 2008-08-11 Robert Millan <rmh@aybabtu.com>
15561 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
15562 errors. Leave it to the upper layer to handle them.
15564 2008-08-09 Christian Franke <franke@computer.org>
15566 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
15567 * conf/common.rmk: Install `grub-pe2elf' only if requested.
15568 Install `grub.d/10_windows' only on Cygwin.
15569 * configure.ac: Add subst of `target_os'.
15570 Check `target_os' also before setting TARGET_OBJ2ELF.
15571 Add `--enable-grub-pe2elf'.
15573 2008-08-08 Robert Millan <rmh@aybabtu.com>
15575 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15576 (grub_last_time): Change type to grub_uint64_t.
15577 (grub_disk_open): Migrate code from to using grub_get_time_ms().
15578 (grub_disk_close): Likewise.
15580 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15581 (run_menu): Migrate code from to using grub_get_time_ms().
15583 * util/misc.c (grub_get_time_ms): New function.
15585 2008-08-08 Marco Gerards <marco@gnu.org>
15587 * disk/ata.c (grub_ata_regget): Change return type to
15589 (grub_ata_regget2): Likewise.
15590 (grub_ata_wait_status): New function.
15591 (grub_ata_wait_busy): Removed function, updated all users to use
15592 `grub_ata_wait_status'.
15593 (grub_ata_wait_drq): Likewise.
15594 (grub_ata_cmd): New function.
15595 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
15597 (grub_ata_pio_write): Add error handling.
15598 (grub_atapi_identify): Likewise.
15599 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
15601 (grub_ata_identify): Use `grub_ata_cmd' and improve error
15602 handling. Actually use the detected registers. Reorder the
15603 detection logic such that it is easier to read.
15604 (grub_ata_pciinit): Do not assign the same ID to each controller.
15605 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
15607 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
15609 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
15611 2008-08-08 Marco Gerards <marco@gnu.org>
15615 2008-08-07 Bean <bean123ch@gmail.com>
15617 * include/grub/x86_64/pci.h: New file.
15619 2008-08-07 Christian Franke <franke@computer.org>
15621 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
15622 (TIMER2_GATE): Likewise.
15623 (grub_pit_wait): Add enable/disable of the timer2 gate
15624 bit of port 0x61. This fixes a possible infinite loop.
15626 2008-08-07 Bean <bean123ch@gmail.com>
15628 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
15629 kern/i386/tsc.c and kern/i386/pit.c.
15631 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
15634 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
15637 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
15639 2008-08-07 Bean <bean123ch@gmail.com>
15641 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
15643 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
15645 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
15646 multiple inclusion. Add #include <grub/types.h>.
15648 2008-08-06 Christian Franke <franke@computer.org>
15650 * conf/common.rmk: Build and install `10_windows'.
15651 * util/grub.d/10_windows.in: New script.
15653 2008-08-06 Pavel Roskin <proski@gnu.org>
15655 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
15657 2008-08-06 Robert Millan <rmh@aybabtu.com>
15659 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
15660 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
15662 2008-08-06 Bean <bean123ch@gmail.com>
15664 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
15665 (grub_pxefs_fs_int): Remove dummy definition.
15666 (grub_pxefs_open): Use data->block_size to store the current block
15668 (grub_pxefs_read): Use block size stored in data->block_size. As the
15669 value of grub_pxe_blksize can be changed after the file is opened.
15671 2008-08-06 Bean <bean123ch@gmail.com>
15673 * fs/i386/pc/pxe.c (curr_file): new variable.
15674 (grub_pxefs_open): Simply the handling of pxe file system. Don't
15675 require the dummy internal file system anymore.
15676 (grub_pxefs_read): Removed.
15677 (grub_pxefs_close): Likewise.
15678 (grub_pxefs_fs_int): Likewise.
15679 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
15680 connection when we switch file.
15681 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
15683 2008-08-06 Robert Millan <rmh@aybabtu.com>
15685 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
15687 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
15688 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
15690 * kern/i386/halt.c: New file.
15691 * kern/i386/reboot.c: Likewise.
15692 * include/grub/i386/reboot.h: Likewise.
15693 * include/grub/i386/halt.h: Likewise.
15695 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
15696 Include `<grub/cpu/halt.h>'.
15697 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
15698 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
15700 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
15701 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
15702 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
15703 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
15704 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
15705 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
15707 * include/grub/i386/at_keyboard.h: ... to here.
15709 2008-08-05 Robert Millan <rmh@aybabtu.com>
15711 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
15712 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
15713 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
15714 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
15715 `kern/generic/millisleep.c'.
15717 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
15718 instead of grub_get_rtc().
15719 (grub_tsc_init): Initialize `tsc_boot_time'.
15721 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
15722 (grub_machine_init): Use grub_tsc_init() rather than
15723 installing an RTC-based handler via grub_install_get_time_ms().
15725 * kern/i386/pit.c: New file.
15726 * include/grub/i386/pit.h: Likewise.
15728 2008-08-05 Bean <bean123ch@gmail.com>
15730 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
15732 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
15733 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
15734 (pxe_mod_SOURCES): New macro.
15735 (pxe_mod_CFLAGS): Likewise.
15736 (pxe_mod_LDFLAGS): Likewise.
15737 (pxecmd_mod_SOURCES): Likewise.
15738 (pxecmd_mod_CFLAGS): Likewise.
15739 (pxecmd_mod_LDFLAGS): Likewise.
15741 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
15742 (grub_pxe_call): Likewise.
15744 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
15746 * commands/i386/pc/pxecmd.c: New file.
15748 * fs/i386/pc/pxe.c: Likewise.
15750 * include/grub/i386/pc/pxe.h: Likewise.
15752 2008-08-05 Bean <bean123ch@gmail.com>
15754 * util/console.c (grub_console_cur_color): New variable.
15755 (grub_console_standard_color): Likewise.
15756 (grub_console_normal_color): Likewise.
15757 (grub_console_highlight_color): Likewise.
15758 (color_map): Likewise.
15759 (use_color): Likewise.
15760 (NUM_COLORS): New macro.
15761 (grub_ncurses_setcolorstate): Handle color properly.
15762 (grub_ncurses_setcolor): Don't change color here, just remember the
15763 settings, color will be set in grub_ncurses_setcolorstate.
15764 (grub_ncurses_getcolor): New function.
15765 (grub_ncurses_init): Initialize color pairs.
15766 (grub_ncurses_term): New member grub_ncurses_getcolor.
15768 2008-08-05 Colin D Bennett <colin@gibibit.com>
15770 High resolution timer support. Implemented for x86 CPUs using TSC.
15771 Extracted generic grub_millisleep() so it's linked in only as needed.
15772 This requires a Pentium compatible CPU; if the RDTSC instruction is
15773 not supported, then it falls back on the generic grub_get_time_ms()
15774 implementation that uses the machine's RTC.
15776 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
15777 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
15778 `kern/generic/millisleep.c'.
15780 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
15781 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
15783 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
15784 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
15786 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
15788 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15789 `kern/generic/millisleep.c'.
15791 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
15793 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
15795 * kern/generic/rtc_get_time_ms.c: New file.
15797 * kern/generic/millisleep.c: New file.
15799 * kern/misc.c: Don't include
15800 <kern/time.h> anymore.
15801 (grub_millisleep_generic): Removed.
15803 * commands/sleep.c (grub_interruptible_millisleep): Uses
15804 grub_get_time_ms() instead of grub_get_rtc().
15806 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
15808 (grub_cpu_is_cpuid_supported): New inline function.
15809 (grub_cpu_is_tsc_supported): New inline function.
15810 (grub_tsc_init): New function prototype.
15811 (grub_tsc_get_time_ms): New function prototype.
15813 * kern/i386/tsc.c (grub_get_time_ms): New file.
15815 * include/grub/time.h: Include <grub/types.h.
15816 (grub_millisleep_generic): Removed.
15817 (grub_get_time_ms): New prototype.
15818 (grub_install_get_time_ms): New prototype.
15819 (grub_rtc_get_time_ms): New prototype.
15821 * kern/time.c (grub_get_time_ms): New function.
15822 (grub_install_get_time_ms): New function.
15824 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
15825 <grub/time.h> anymore.
15826 (grub_millisleep): Removed.
15827 (grub_machine_init): Call grub_tsc_init.
15829 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
15830 get_time_ms() implementation.
15832 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
15833 (ieee1275_get_time_ms): New function.
15834 (grub_machine_init): Install get_time_ms() implementation.
15836 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
15837 (grub_machine_init): Call grub_tsc_init().
15838 (grub_millisleep): Removed.
15840 * kern/ieee1275/init.c (grub_millisleep): Removed.
15841 (grub_machine_init): Install ieee1275_get_time_ms()
15843 (ieee1275_get_time_ms): New function.
15844 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
15847 2008-08-05 Marco Gerards <marco@gnu.org>
15849 * disk/ata.c: Include <grub/pci.h>.
15850 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
15851 (grub_ata_initialize): Rewritten.
15852 (grub_ata_device_initialize): New function.
15854 2008-08-04 Pavel Roskin <proski@gnu.org>
15856 * kern/main.c: Include grub/mm.h.
15858 2008-08-04 Robert Millan <rmh@aybabtu.com>
15860 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
15861 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
15862 corruption problem).
15864 2008-08-04 Robert Millan <rmh@aybabtu.com>
15866 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
15867 warnings introduced in my last commit.
15869 2008-08-03 Robert Millan <rmh@aybabtu.com>
15871 Make PCI available on all i386 architectures.
15873 * include/grub/i386/pc/pci.h: Move from here ...
15874 * include/grub/i386/pci.h: ... to here.
15876 * include/grub/i386/pc/pci.h: Remove.
15877 * include/grub/i386/efi/pci.h: Remove.
15878 * include/grub/x86_64/efi/pci.h: Remove.
15880 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
15881 `<grub/cpu/pci.h>'.
15883 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
15884 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
15885 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
15887 * conf/i386-ieee1275.rmk: Likewise.
15889 2008-08-03 Robert Millan <rmh@aybabtu.com>
15891 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
15892 (grub_console_setcursor): Make it possible to set cursor off.
15894 2008-08-03 Robert Millan <rmh@aybabtu.com>
15896 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
15897 of modules instead of assuming which platform provides what.
15898 * util/update-grub.in: Likewise.
15900 2008-08-03 Robert Millan <rmh@aybabtu.com>
15902 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
15903 instead of `grub_install_dos_part' to determine whether a drive needs
15904 to be prepended to prefix (`grub_install_dos_part' is not reliable,
15905 because it can be overridden when loading GRUB via Multiboot).
15907 2008-08-02 Robert Millan <rmh@aybabtu.com>
15909 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
15911 2008-08-02 Robert Millan <rmh@aybabtu.com>
15913 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
15914 of informational grub_dprintf() calls.
15916 2008-08-02 Robert Millan <rmh@aybabtu.com>
15918 * disk/memdisk.c (memdisk_size): Don't initialize.
15919 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
15921 * include/grub/i386/pc/kernel.h
15922 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
15923 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
15924 (grub_memdisk_image_size, grub_arch_memdisk_addr)
15925 (grub_arch_memdisk_size): Remove.
15927 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
15928 field (was only used to transfer a constant). Add `type' field to
15929 support multiple module types.
15930 (grub_module_iterate): New function.
15932 * kern/device.c (grub_device_open): Do not hide error messages
15933 when grub_disk_open() fails. Use grub_print_error() instead.
15935 * kern/i386/pc/init.c (grub_arch_modules_addr)
15936 (grub_arch_memdisk_size): Remove functions.
15937 (grub_arch_modules_addr): Return the module address in high memory
15938 (now that it isn't copied anymore).
15940 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
15941 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
15942 decompression routine (grub_total_module_size already includes that
15943 now). Don't copy modules back to low memory.
15945 * kern/main.c: Include `<grub/mm.h>'.
15946 (grub_load_modules): Split out (and use) ...
15947 (grub_module_iterate): ... this function, which iterates through
15948 module objects and runs a hook.
15949 Comment out grub_mm_init_region() call, as it would cause non-ELF
15950 modules to be overwritten.
15952 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
15953 the memdisk image in its own region, make it part of the module list.
15954 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
15955 (main): Parse --memdisk|-m option, and pass user-provided path as
15956 parameter to generate_image().
15957 (add_segments): Pass `memdisk_path' down to load_modules().
15958 (load_modules): Embed memdisk image in module section when requested.
15959 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
15960 `header.type' instead of `header.offset'.
15962 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
15963 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
15964 (memdisk_mod_LDFLAGS): New variables.
15965 * conf/i386-coreboot.rmk: Likewise.
15966 * conf/i386-ieee1275.rmk: Likewise.
15968 2008-08-02 Robert Millan <rmh@aybabtu.com>
15970 * loader/i386/pc/multiboot.c (playground, forward_relocator)
15971 (backward_relocator): New variables. Used to allocate and relocate
15972 the payload, respectively.
15973 (grub_multiboot_load_elf32): Load into heap instead of requested
15974 address, install the appropriate relocator code in each bound of
15975 the payload, and set the entry point such that
15976 grub_multiboot_real_boot() will jump to one of them.
15978 * kern/i386/loader.S (grub_multiboot_payload_size)
15979 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
15980 (grub_multiboot_payload_entry_offset): New variables.
15981 (grub_multiboot_real_boot): Set cpu context to what the relocator
15982 expects, and jump to the relocator instead of the payload.
15984 * include/grub/i386/loader.h (grub_multiboot_payload_size)
15985 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
15986 (grub_multiboot_payload_entry_offset): Export.
15988 2008-08-01 Bean <bean123ch@gmail.com>
15990 * normal/menu_entry.c (editor_getline): Don't return the original
15991 string as result, as it will be released by lexer once it has done
15994 2008-08-01 Robert Millan <rmh@aybabtu.com>
15996 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
15997 within menuentries, not before them.
15998 util/grub.d/10_hurd.in: Likewise.
16000 2008-08-01 Bean <bean123ch@gmail.com>
16002 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
16003 (bufio_mod_SOURCES): New macro.
16004 (bufio_mod_CFLAGS): Likewise.
16005 (bufio_mod_LDFLAGS): Likewise.
16007 * include/grub/bufio.h: New file.
16009 * io/bufio.c: Likewise.
16011 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
16012 (grub_video_reader_png): Use grub_buffile_open to open file.
16014 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
16015 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
16017 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
16018 (grub_video_reader_tga): Use grub_buffile_open to open file.
16020 * font/manager.c: Include <grub/bufio.h>.
16021 (add_font): Use grub_buffile_open to open file.
16023 2008-07-31 Robert Millan <rmh@aybabtu.com>
16025 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
16026 ELF segments, use a macro for arbitrarily accessing any of them instead
16027 of preparing a pointer that allows access to one at a time.
16028 (grub_multiboot_load_elf64): Likewise.
16030 2008-07-31 Bean <bean123ch@gmail.com>
16032 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
16033 GRUB_KERNEL_MACHINE_DATA_END.
16035 2008-07-30 Robert Millan <rmh@aybabtu.com>
16037 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
16038 Increase from 0x50 to 0x60.
16039 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
16040 use UUIDs to identify the root drive for them. If that's not
16042 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
16043 check, for cross-disk installs.
16045 2008-07-30 Robert Millan <rmh@aybabtu.com>
16047 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
16048 is non-empty, use it to set the `prefix' environment variable instead
16049 of the usual approach.
16050 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
16051 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
16052 environment variable instead of dummy make_install_device().
16054 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
16055 (start): Insert a data section, with `grub_prefix' variable.
16056 * kern/i386/linuxbios/startup.S: Likewise.
16058 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
16059 New variable reference.
16060 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
16061 New macro. Defines offset of `grub_prefix' within startup.S (relative
16063 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
16064 section within startup.S (relative to `start').
16065 * include/grub/i386/coreboot/kernel.h: Likewise.
16067 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
16068 Overwrite grub_prefix with its contents, at the beginning of the
16070 (main): Understand -p|--prefix.
16072 2008-07-30 Robert Millan <rmh@aybabtu.com>
16074 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
16076 2008-07-30 Robert Millan <rmh@aybabtu.com>
16078 * term/i386/pc/vga_text.c (grub_console_cls): Use
16079 grub_console_gotoxy() to go back to beginning of the screen.
16080 Found by Patrick Georgi <patrick.georgi@coresystems.de>
16082 2008-07-29 Christian Franke <franke@computer.org>
16084 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
16085 Add conversion of emulated mount points on Cygwin.
16087 2008-07-29 Christian Franke <franke@computer.org>
16089 * util/update-grub.in: Add a check for admin
16091 Remove old `grub.cfg.new' before creation.
16092 Add `-f' to `mv' to handle the different filesystem
16093 semantics of Windows.
16095 2008-07-29 Bean <bean123ch@gmail.com>
16097 * normal/main.c (get_line): Fix buffer overflow bug.
16099 2008-07-28 Robert Millan <rmh@aybabtu.com>
16101 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
16102 (struct grub_apple_header): New struct. Describes the layout of
16103 the partmap header.
16104 (apple_partition_map_iterate): Check the header magic as well as the
16105 partition magic (which was already being checked).
16107 2008-07-28 Pavel Roskin <proski@gnu.org>
16109 * genmk.rb: Add a warning to the beginning of the output that
16110 it's a generated file and should not be edited.
16112 2008-07-28 Robert Millan <rmh@aybabtu.com>
16114 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
16115 with the same number are found, just use issue a warning with
16116 grub_dprintf(), as this error has been reported to be non-fatal.
16118 2008-07-27 Robert Millan <rmh@aybabtu.com>
16120 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
16123 2008-07-27 Bean <bean123ch@gmail.com>
16125 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
16126 (grub_fat_find_dir): Ignore case when comparing filename.
16128 2008-07-27 Bean <bean123ch@gmail.com>
16130 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
16131 smallino, as it's more descriptive, and i8count can be confused with
16132 the other field count.
16133 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
16136 2008-07-27 Bean <bean123ch@gmail.com>
16138 * commands/crc.c: New file.
16140 * lib/crc.c: Likewise.
16142 * include/grub/lib/crc.h: Likewise.
16144 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
16146 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
16147 (hexdump): Move this function to ...
16149 * lib/hexdump.c: ... here.
16151 * include/grub/hexdump.h: Renamed to ...
16153 * include/grub/lib/hexdump.h: ... this.
16155 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
16157 * util/grub-editenv.c: Likewise.
16159 * include/envblk.h: Renamed to ...
16161 * include/lib/envblk.h: ... this.
16163 * util/envblk.c: Renamed to ...
16165 * lib/envblk.c: ... this.
16167 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
16169 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
16170 (pkglib_MODULES): Add crc.mod.
16171 (hexdump_mod_SOURCES): Add lib/hexdump.c.
16172 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
16173 (crc_mod_SOURCES): New macro.
16174 (crc_mod_CFLAGS): Likewise.
16175 (crc_mod_LDFLAGS): Likewise.
16177 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
16179 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16181 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16183 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16185 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16187 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
16189 * commands/help.c: Include <grub/term.h>.
16190 (TERM_WIDTH): Removed. Updated all users.
16192 2008-07-27 Pavel Roskin <proski@gnu.org>
16194 * util/getroot.c (find_root_device): Rephrase a comment to avoid
16195 spurious warnings about a comment within a comment.
16197 2008-07-25 Robert Millan <rmh@aybabtu.com>
16199 * util/getroot.c (find_root_device): Skip devices that match
16200 /dev/dm-[0-9]. This lets the real device be found for any type of
16201 abstraction (LVM, EVMS, RAID..).
16202 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
16203 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
16204 device is found first, find_root_device() will now skip it.
16206 2008-07-24 Pavel Roskin <proski@gnu.org>
16208 * include/grub/types.h: Use __builtin_bswap32() and
16209 __builtin_bswap64() with gcc 4.3 and newer.
16211 2008-07-24 Christian Franke <franke@computer.org>
16213 * util/i386/pc/grub-install.in: If `--debug' is specified,
16214 pass `--verbose' to grub-setup.
16215 Abort script if make_system_path_relative_to_its_root() fails.
16217 2008-07-24 Bean <bean123ch@gmail.com>
16219 * configure.ac: Fixed a bug caused by the previous cygwin patch,
16220 variable `target_platform' should be `platform'.
16222 2008-07-24 Bean <bean123ch@gmail.com>
16224 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
16225 (grub_png_init_fixed_block): New function.
16226 (grub_png_decode_image_data): Handle fixed huffman code compression.
16228 2008-07-24 Bean <bean123ch@gmail.com>
16230 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
16231 (grub_pe2elf_SOURCES): New macro.
16232 (CLEANFILES): Add grub-pe2elf.
16234 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
16235 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
16236 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
16237 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
16238 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
16239 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
16240 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
16241 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
16242 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
16243 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
16244 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
16245 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
16246 (GRUB_PE32_DT_FUNCTION): Likewise.
16247 (GRUB_PE32_REL_I386_DIR32): Likewise.
16248 (GRUB_PE32_REL_I386_REL32): Likewise.
16249 (grub_pe32_symbol): New structure.
16250 (grub_pe32_reloc): Likewise.
16252 * util/grub-pe2elf.c: New file.
16254 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
16255 start symbol in non pc platform.
16257 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
16259 The following patches are from Christian Franke.
16261 * include/grub/dl.h: Remove .previous, gas supports this only
16264 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
16265 Remove .type, gas supports this only for ELF format.
16267 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
16268 nullbytes in symbol table. This fixes an infinite loop if table is
16271 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
16272 TARGET_IMG_LDFLAGS and EXEEXT.
16274 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
16275 TARGET_IMG_LDFLAGS_AC.
16276 (grub_CHECK_STACK_ARG_PROBE): New function.
16278 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
16280 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
16282 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
16283 to set TARGET_IMG_LD* accordingly.
16284 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
16285 Add call to grub_CHECK_STACK_ARG_PROBE.
16286 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
16288 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
16290 * genmk.rb: Add EXEEXT to CLEANFILES.
16292 2008-07-23 Robert Millan <rmh@aybabtu.com>
16294 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
16295 define the codes for arrows and lines used for the menu).
16296 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
16299 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
16300 fonts, because the latter are too slow.
16302 2008-07-21 Bean <bean123ch@gmail.com>
16304 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
16305 a20. Run keyboard test last, as it will cause macbook to halt.
16307 2008-07-18 Pavel Roskin <proski@gnu.org>
16309 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
16310 load foreign architecture modules correctly anyway. Keep
16311 support for loading host architecture modules, whether we
16312 compile them or not.
16314 2008-07-17 Pavel Roskin <proski@gnu.org>
16316 * configure.ac: Use -m32 or -m64 regardless of whether we had to
16317 change target_cpu. The compiler default can mismatch target_cpu
16320 * disk/efi/efidisk.c: Fix format warnings on x86_64.
16321 * kern/efi/efi.c: Likewise.
16323 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
16324 target compiler is functional.
16325 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
16328 * configure.ac: Default to efi platform for x86_64-apple. Allow
16329 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
16330 adjustments from the rest, only do them if target is not
16331 explicitly given. Merge other adjustments with the final sanity
16332 check. Remove an extraneous check for supported CPU. Be
16333 specific which CPU and which platform is not supported.
16335 * configure.ac: Default to pc platform for x86_64.
16337 2008-07-17 Robert Millan <rmh@aybabtu.com>
16339 Partial LinuxBIOS -> Coreboot rename.
16341 * conf/i386-linuxbios.rmk: Renamed to ...
16342 * conf/i386-coreboot.rmk: ... this.
16343 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
16344 * configure.ac: Accept "coreboot" as input platform (but maintain
16345 compatibility with "linuxbios").
16346 * include/grub/i386/linuxbios: Renamed to ...
16347 * include/grub/i386/coreboot: ... this.
16349 2008-07-17 Bean <bean123ch@gmail.com>
16351 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
16352 (appleldr_mod_SOURCE): New variable.
16353 (appleldr_mod_CFLAGS): Likewise.
16354 (appleldr_mod_LDFLAGS): Likewise.
16355 (pci_mod_SOURCES): Likewise.
16356 (pci_mod_CFLAGS): Likewise.
16357 (pci_mod_LDFLAGS): Likewise.
16358 (lspci_mod_SOURCES): Likewise.
16359 (lspci_mod_CFLAGS): Likewise.
16360 (lspci_mod_LDFLAGS): Likewise.
16362 * conf/x86_64-efi.rmk: New file.
16364 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
16366 (grub_efidisk_write): Likewise.
16368 * include/efi/api.h (efi_call_0): New macro.
16369 (efi_call_1): Likewise.
16370 (efi_call_2): Likewise.
16371 (efi_call_3): Likewise.
16372 (efi_call_4): Likewise.
16373 (efi_call_5): Likewise.
16374 (efi_call_6): Likewise.
16376 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
16377 grub_rescue_cmd_chainloader.
16379 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
16380 (grub_pe32_optional_header): Change some fields based on i386 or
16382 (GRUB_PE32_PE32_MAGIC): Likewise.
16384 * include/grub/efi/uga_draw.h: New file.
16386 * include/grub/elf.h (STN_ABS): New constant.
16387 (R_X86_64_NONE): Relocation constant for x86_64.
16388 (R_X86_64_64): Likewise.
16389 (R_X86_64_PC32): Likewise.
16390 (R_X86_64_GOT32): Likewise.
16391 (R_X86_64_PLT32): Likewise.
16392 (R_X86_64_COPY): Likewise.
16393 (R_X86_64_GLOB_DAT): Likewise.
16394 (R_X86_64_JUMP_SLOT): Likewise.
16395 (R_X86_64_RELATIVE): Likewise.
16396 (R_X86_64_GOTPCREL): Likewise.
16397 (R_X86_64_32): Likewise.
16398 (R_X86_64_32S): Likewise.
16399 (R_X86_64_16): Likewise.
16400 (R_X86_64_PC16): Likewise.
16401 (R_X86_64_8): Likewise.
16402 (R_X86_64_PC8): Likewise.
16404 * include/grub/i386/efi/pci.h: New file.
16406 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
16407 Change it value based on platform.
16408 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
16409 (GRUB_E820_RAM): Likewise.
16410 (GRUB_E820_RESERVED): Likewise.
16411 (GRUB_E820_ACPI): Likewise.
16412 (GRUB_E820_NVS): Likewise.
16413 (GRUB_E820_EXEC_CODE): Likewise.
16414 (GRUB_E820_MAX_ENTRY): Likewise.
16415 (grub_e820_mmap): New structure.
16416 (linux_kernel_header): Change the efi field according to different
16417 kernel version, also field from linux_kernel_header.
16419 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
16421 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
16422 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
16423 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
16424 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
16425 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
16426 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
16427 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
16428 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
16429 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
16430 (GRUB_PCI_ADDR_IO_MASK): Likewise.
16432 * include/grub/x86_64/efi/kernel.h: New file.
16434 * include/grub/x86_64/efi/loader.h: Likewise.
16436 * include/grub/x86_64/efi/machine.h: Likewise.
16438 * include/grub/x86_64/efi/pci.h: Likewise.
16440 * include/grub/x86_64/efi/time.h: Likewise.
16442 * include/grub/x86_64/linux.h: Likewise.
16444 * include/grub/x86_64/setjmp.h: Likewise.
16446 * include/grub/x86_64/time.h: Likewise.
16448 * include/grub/x86_64/types.h: Likewise.
16450 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
16451 GRUB_TARGET_SIZEOF_VOID_P.
16453 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
16454 (grub_efi_locate_handle): Likewise.
16455 (grub_efi_open_protocol): Likewise.
16456 (grub_efi_set_text_mode): Likewise.
16457 (grub_efi_stall): Likewise.
16458 (grub_exit): Likewise.
16459 (grub_reboot): Likewise.
16460 (grub_halt): Likewise.
16461 (grub_efi_exit_boot_services): Likewise.
16462 (grub_get_rtc): Likewise.
16464 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
16465 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
16466 (grub_efi_allocate_pages): Wrap efi calls.
16467 (grub_efi_free_pages): Wrap efi calls.
16468 (grub_efi_get_memory_map): Wrap efi calls.
16470 * kern/x86_64/dl.c: New file.
16472 * kern/x86_64/efi/callwrap.S: Likewise.
16474 * kern/x86_64/efi/startup.S: Likewise.
16476 * loader/efi/appleloader.c: Likewise.
16478 * loader/efi/chainloader.c (cmdline): New variable.
16479 (grub_chainloader_unload): Wrap efi calls.
16480 (grub_chainloader_boot): Likewise.
16481 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
16484 * loader/efi/chainloader_normal.c (chainloader_command):
16485 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
16488 * loader/i386/efi/linux.c (allocate_pages): Change allocation
16490 (grub_e820_add_region): New function.
16491 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
16493 (grub_find_video_card): New function.
16494 (grub_linux_setup_video): New function.
16495 (grub_rescue_cmd_linux): Probe for video information.
16497 * normal/x86_64/setjmp.S: New file.
16499 * term/efi/console.c (map_char): New function.
16500 (grub_console_putchar): Map unicode char.
16501 (grub_console_checkkey): Wrap efi calls.
16502 (grub_console_getkey): Likewise.
16503 (grub_console_getwh): Likewise.
16504 (grub_console_gotoxy): Likewise.
16505 (grub_console_cls): Likewise.
16506 (grub_console_setcolorstate): Likewise.
16507 (grub_console_setcursor): Likewise.
16509 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
16511 2008-07-16 Pavel Roskin <proski@gnu.org>
16513 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
16516 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
16517 pointer, not an integer. This fixes a warning and prevents
16518 precision loss on 64-bit systems.
16519 (relocate_addresses): Remove unneeded cast.
16521 2008-07-15 Pavel Roskin <proski@gnu.org>
16523 * kern/i386/ieee1275/init.c: Include grub/cache.h.
16525 * term/ieee1275/ofconsole.c: Disable code unused on i386.
16527 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
16528 Fix comparison between signed and unsigned.
16530 * include/grub/i386/ieee1275/console.h: Declare
16531 grub_console_init() and grub_console_fini().
16533 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
16534 It's empty and unused.
16536 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
16537 beginning to avoid warnings with some compilers.
16539 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
16540 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
16542 2008-07-14 Pavel Roskin <proski@gnu.org>
16544 * kern/env.c (grub_register_variable_hook): Don't copy empty
16545 string, it leaks memory. Pass "" to grub_env_set(), it should
16546 handle constant strings.
16548 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
16549 * commands/cmp.c (grub_cmd_cmp): Likewise.
16550 * kern/dl.c (grub_dl_flush_cache): Likewise.
16551 (grub_dl_load_core): Likewise.
16552 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
16553 (grub_elf64_load_phdrs): Likewise.
16555 2008-07-13 Pavel Roskin <proski@gnu.org>
16557 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
16558 between signed and unsigned.
16559 (LzmaEnc_Finish): Fix warning about an unused parameter.
16561 2008-07-13 Bean <bean123ch@gmail.com>
16563 * Makefile.in (enable_lzo): New rule.
16565 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
16567 * configure.ac (ENABLE_LZO): New option --enable-lzo.
16569 * boot/i386/pc/lnxboot.S: #include <config.h>.
16571 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
16572 its value according to the compression algorithm used, lzo or lzma.
16574 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
16575 compression algorithm according to configure macro.
16577 * kern/i386/pc/startup.S (codestart): Likewise.
16579 * kern/i386/pc/lzma_decode.S: New file.
16581 * include/grub/lib/LzFind.h: Likewise.
16583 * include/grub/lib/LzHash.h: Likewise.
16585 * include/grub/lib/LzmaDec.h: Likewise.
16587 * include/grub/lib/LzmaEnc.h: Likewise.
16589 * include/grub/lib/LzmaTypes.h: Likewise.
16591 * lib/LzFind.c: Likewise.
16593 * lib/LzmaDec.c: Likewise.
16595 * lib/LzmaEnc.c: Likewise.
16597 2008-07-13 Bean <bean123ch@gmail.com>
16599 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
16600 (grub_ext4_extent_header): New structure.
16601 (grub_ext4_extent): Likewise.
16602 (grub_ext4_extent_idx): Likewise.
16603 (grub_ext4_find_leaf): New function.
16604 (grub_ext2_read_block): Handle extents.
16606 2008-07-12 Robert Millan <rmh@aybabtu.com>
16608 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
16610 2008-07-11 Robert Millan <rmh@aybabtu.com>
16612 * util/grub.d/40_custom.in: New file. Example on how to add custom
16613 entries to /etc/grub.d.
16614 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
16615 40_custom (implicitly, by merging all the grub.d rules).
16617 2008-07-11 Pavel Roskin <proski@gnu.org>
16619 * commands/read.c (grub_getline): Fix invalid memory access.
16620 Don't add newline to the variable value.
16622 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
16623 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
16624 (serial_hw_get_port): Check validity of the port number.
16625 (grub_cmd_serial): Check return value of serial_hw_get_port().
16627 2008-07-07 Pavel Roskin <proski@gnu.org>
16629 * boot/i386/pc/diskboot.S (notification_string): Replace
16630 "Loading kernel" with just "loading". This is shorter, less
16631 confusing and saves a few bytes for possible future changes.
16633 2008-07-05 Pavel Roskin <proski@gnu.org>
16635 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
16636 size for ATAPI devices, they are undefined. Output sector
16637 number in decimal form.
16639 * disk/ata.c: Use named constants for status bits.
16641 2008-07-04 Pavel Roskin <proski@gnu.org>
16643 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
16644 grub_addr_t before casting it to the void pointer to fix a
16645 warning. Non-addressable regions are discarded earlier.
16646 (grub_arch_modules_addr): Cast _end to grub_addr_t.
16647 * kern/i386/linuxbios/table.c: Include grub/misc.h.
16648 (check_signature): Don't shadow table_header.
16649 (grub_linuxbios_table_iterate): Cast numeric constants to
16650 grub_linuxbios_table_header_t.
16651 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
16654 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
16657 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
16658 pointer, which can cause warnings. Support 64-bit addresses.
16660 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
16661 of sizeof(long). This fixes PowerPC image generation on x86_64.
16663 2008-07-04 Robert Millan <rmh@aybabtu.com>
16665 This fixes a performance issue when pc & gpt partmap iterators
16666 didn't abort iteration even after our hook found what it was
16667 looking for (often causing expensive probes of non-existent drives).
16669 Some callers relied on previous buggy behaviour, since they would
16670 raise an error when their own hooks caused early abortion of its
16673 * kern/device.c (grub_device_open): Improve error message.
16674 * disk/lvm.c (grub_lvm_open): Likewise.
16675 * disk/raid.c (grub_raid_open): Likewise.
16677 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
16678 when hook requests it, independently of grub_errno.
16679 (pc_partition_map_probe): Do not fail when find_func() caused
16680 early abortion of pc_partition_map_iterate().
16682 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
16683 when hook requests it, independently of grub_errno.
16684 (gpt_partition_map_probe): Do not fail when find_func() caused
16685 early abortion of gpt_partition_map_iterate().
16687 * kern/partition.c (grub_partition_iterate): Abort parent iteration
16688 when hook requests it, independently of grub_errno. Do not fail when
16689 part_map_iterate_hook() caused early abortion of p->iterate().
16691 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
16692 when grub_partition_iterate() returned with non-zero.
16694 2008-07-03 Pavel Roskin <proski@gnu.org>
16696 * disk/ata.c (grub_ata_pio_write): Check status before writing,
16697 like we do in grub_ata_pio_read().
16698 (grub_ata_readwrite): Always write individual sectors. Fix the
16699 sector count for the remainder.
16700 (grub_ata_write): Enable writing to ATA devices. Correctly
16701 report error for ATAPI devices.
16703 2008-07-02 Pavel Roskin <proski@gnu.org>
16705 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
16708 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
16709 for every read sector, we already increment it for the whole
16710 batch. This fixes reading more than 256 sectors at once.
16712 * util/grub-editenv.c (cmd_info): Cast argument to long
16713 explicitly. ptrdiff_t reduces to int on i386.
16715 * util/grub-editenv.c (main): Be specific which parameter is
16718 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
16719 (memdisk): Make memdisk_orig_addr a pointer.
16721 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
16722 for file offsets, use grub_off_t instead. Fix printf format
16725 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
16726 there. Real unexpected warnings should not drown in the noise
16727 about known problems.
16729 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
16730 grub_disk_addr_t for memory addresses.
16732 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
16733 explicitly to fix a warning.
16735 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
16737 * Makefile.in (MODULE_LDFLAGS): New variable.
16738 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
16739 the linker accepts --build-id=none.
16740 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
16742 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
16744 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
16745 those in Linux XFS code. Provide a way to access 64-bit parent
16747 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
16748 the end of struct grub_xfs_dir_header.
16750 2008-07-02 Bean <bean123ch@gmail.com>
16752 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
16753 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
16754 and GRUB_IEEE1275_FLAG_NO_ANSI.
16756 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
16757 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
16758 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
16760 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
16761 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
16763 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
16764 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
16766 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
16767 esc sequence on non ANSI terminal.
16768 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
16770 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
16773 2008-07-02 Bean <bean123ch@gmail.com>
16775 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
16776 (grub_editenv_SOURCES): New variable.
16777 (pkglib_MODULES): Add loadenv.mod.
16778 (loadenv_mod_SOURCES): New variable.
16779 (loadenv_mod_CFLAGS): Likewise.
16780 (loadenv_mod_LDFLAGS): Likewise.
16782 * include/grub/envblk.h: New file.
16784 * util/envblk.c: New file.
16786 * util/grub-editenv.c: New file.
16788 * commands/loadenv.c: New file.
16790 2008-07-01 Pavel Roskin <proski@gnu.org>
16792 * include/multiboot2.h (struct multiboot_tag_module): Use char,
16793 not unsigned char. This fixes warnings and is consistent with
16796 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
16798 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
16800 * term/tparm.c (analyze): Always set *popcount.
16802 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
16803 cast to fix a warning.
16805 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
16806 cast to suppress a warning.
16808 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
16809 grub_fshelp_read_file() expects.
16811 * fs/fat.c: Fix UUID calculation on big-endian systems. We
16812 write uuid as a 32-bit value in CPU byte order, so declare and
16815 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
16816 long if the format specifier expects it.
16817 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
16818 * partmap/pc.c (pc_partition_map_iterate): Likewise.
16819 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
16820 long to fix a warning.
16821 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
16822 grub_dprintf() arguments to fix warnings.
16824 2008-06-30 Pavel Roskin <proski@gnu.org>
16826 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
16827 install_bsd_part immediately before core.img is embedded or
16828 modified on disk. This fixes core.img verification if core.img
16829 cannot be embedded.
16831 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
16832 core_path to calculate the blocklist.
16833 Patch from Javier Martín <lordhabbit@gmail.com>
16835 2008-06-29 Robert Millan <rmh@aybabtu.com>
16837 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
16838 block to disk block.
16839 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
16840 Patch from Niels Böhm <bitbucket@arcor.de>
16842 2008-06-29 Robert Millan <rmh@aybabtu.com>
16844 * util/update-grub_lib.in (font_path): Search for fonts in
16845 /boot/grub first, which is more likely to be readable (we aren't
16846 deciding where fonts live, just looking for them).
16848 2008-06-26 Pavel Roskin <proski@gnu.org>
16850 * util/biosdisk.c (read_device_map): Don't leave dead map
16851 entries for devices failing stat() check.
16853 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
16854 core_path_dev for the core.img path on the target device.
16856 2008-06-26 Robert Millan <rmh@aybabtu.com>
16858 * disk/fs_uuid.c: New file.
16859 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
16860 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
16861 (fs_uuid_mod_LDFLAGS): New variables.
16862 * include/grub/disk.h (grub_disk_dev_id): Add
16863 `GRUB_DISK_DEVICE_UUID_ID'.
16864 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
16865 implement iterate().
16867 2008-06-26 Robert Millan <rmh@aybabtu.com>
16869 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
16870 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
16871 Linux image includes no initrd.
16873 2008-06-21 Javier Martín <lordhabbit@gmail.com>
16875 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
16876 call to resolve the core image location that effectively appended the
16879 2008-06-21 Robert Millan <rmh@aybabtu.com>
16881 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
16884 * util/grub.d/10_hurd.in: ... to here ...
16885 * util/grub.d/10_linux.in: ... and here.
16887 2008-06-19 Robert Millan <rmh@aybabtu.com>
16889 * kern/main.c (grub_main): Export `prefix' variable immediately
16890 after it has been set by grub_machine_set_prefix().
16892 2008-06-19 Robert Millan <rmh@aybabtu.com>
16894 * commands/search.c (search_label, search_fs_uuid, search_file): Print
16895 search result when not saving to variable, not the other way around.
16896 When saving to variable, abort iteration as soon as a match is found.
16898 2008-06-19 Robert Millan <rmh@aybabtu.com>
16900 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
16901 check for partition that provides /boot/grub. Its logic is flawed,
16902 as it prevents prepare_grub_to_access_device() from being called
16905 2008-06-19 Robert Millan <rmh@aybabtu.com>
16907 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
16908 "insmod" command directly when abstraction modules are needed,
16909 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
16910 since it had already been processed).
16912 2008-06-19 Pavel Roskin <proski@gnu.org>
16914 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
16915 changed. This is needed in case GRUB_LIBDIR changes.
16916 * conf/i386-ieee1275.rmk: Likewise.
16917 * conf/i386-linuxbios.rmk: Likewise.
16918 * conf/i386-pc.rmk: Likewise.
16919 * conf/powerpc-ieee1275.rmk: Likewise.
16921 2008-06-18 Pavel Roskin <proski@gnu.org>
16923 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
16924 kernel_elf_symlist.c to symlist.c for consistency with other
16925 architectures. Update all users.
16926 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16928 2008-06-18 Robert Millan <rmh@aybabtu.com>
16930 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
16933 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
16934 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
16935 a RAID device, run setup() for all members independently on whether
16936 LVM abstraction is being used.
16937 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
16938 If grub-mkimage has set `*install_dos_part == -2', don't override this
16940 Perform *install_dos_part adjustments independently on whether
16941 we're embedding or not.
16942 Clarify error message when image is too big for embedding.
16943 Remove duplicate *install_dos_part stanza.
16945 2008-06-17 Robert Millan <rmh@aybabtu.com>
16947 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
16948 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
16950 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
16951 values in grub_ofconsole_normal_color and
16952 grub_ofconsole_highlight_color (they're not directly related to
16953 background and foreground).
16954 (grub_ofconsole_setcolorstate): Extract background and foreground
16955 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
16957 2008-06-17 Robert Millan <rmh@aybabtu.com>
16959 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
16960 /boot/grub for the check in last commit, not /boot (they could be
16961 different partitions).
16963 2008-06-16 Robert Millan <rmh@aybabtu.com>
16965 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
16966 asked to setup access for the same partition that provides /boot,
16967 don't bother using UUIDs since our root already has the value we
16970 2008-06-16 Robert Millan <rmh@aybabtu.com>
16972 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
16974 Patch from Sven Mueller <sven@debian.org>.
16976 2008-06-16 Robert Millan <rmh@aybabtu.com>
16978 * util/update-grub.in: Check for $EUID instead of $UID.
16979 Reported by Vincent Zweije.
16981 2008-06-16 Bean <bean123ch@gmail.com>
16983 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
16984 (grub_ext2_read_block): Likewise.
16985 (grub_ext2_read_inode): Likewise.
16986 (grub_ext2_mount): Likewise.
16987 (grub_ext2_close): Likewise.
16988 (grub_ext3_get_journal): Removed.
16990 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
16991 (grub_reiserfs_read_symlink): Likewise.
16992 (grub_reiserfs_mount): Likewise.
16993 (grub_reiserfs_open): Likewise.
16994 (grub_reiserfs_read): Likewise.
16995 (grub_reiserfs_close): Likewise.
16996 (grub_reiserfs_get_journal): Removed.
16998 * fs/fshelp.c (grub_fshelp_read): Removed.
16999 (grub_fshelp_map_block): Likewise.
17001 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
17002 (grub_fshelp_journal): Likewise.
17003 (grub_fshelp_read): Likewise.
17004 (grub_fshelp_map_block): Likewise.
17006 2008-06-16 Pavel Roskin <proski@gnu.org>
17008 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
17009 floating point anymore.
17010 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
17012 2008-06-15 Pavel Roskin <proski@gnu.org>
17014 * commands/ls.c (grub_ls_list_files): Use integer calculations
17015 for human readable format, avoid floating point use.
17016 * kern/misc.c (grub_ftoa): Remove.
17017 (grub_vsprintf): Remove floating point support.
17019 2008-06-15 Robert Millan <rmh@aybabtu.com>
17021 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
17023 Reported by Max Vozeler.
17025 2008-06-15 Robert Millan <rmh@aybabtu.com>
17027 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
17028 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
17030 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
17031 the beginning of the prefix.
17033 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
17034 It is assumed that if we have a memdisk, grub-mkimage has set
17035 grub_prefix to include the "(memdisk)" drive in it.
17037 2008-06-15 Robert Millan <rmh@aybabtu.com>
17039 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
17040 Initialize keyboard controller after registering the terminal, so that
17041 grub_printf() can be called from grub_keyboard_controller_init().
17043 2008-06-15 Robert Millan <rmh@aybabtu.com>
17045 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
17046 extent-btree which is written as big endian on disk.
17047 Reported by Alain Greppin <al@chilibi.org>.
17049 2008-06-14 Robert Millan <rmh@aybabtu.com>
17051 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
17052 * util/i386/pc/grub-install.in (modules): Likewise.
17054 2008-06-13 Pavel Roskin <proski@gnu.org>
17056 * commands/ls.c (grub_ls_list_files): Fix format warnings.
17058 2008-06-13 Bean <bean123ch@gmail.com>
17060 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
17062 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
17064 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
17065 to indicate sparse block.
17067 2008-06-12 Pavel Roskin <proski@gnu.org>
17069 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
17070 number, grub_fshelp_read() does it for us.
17072 * fs/fshelp.c (grub_fshelp_read): New function. Implement
17073 linear disk read with journal translation.
17074 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
17075 * include/grub/fshelp.h: Declare grub_fshelp_read().
17077 2008-06-09 Pavel Roskin <proski@gnu.org>
17079 * fs/minix.c (grub_minix_mount): Handle error reading
17082 2008-06-08 Robert Millan <rmh@aybabtu.com>
17084 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
17085 don't append the RAID prefix afterwards.
17086 Reported by Clint Adams.
17088 2008-06-08 Robert Millan <rmh@aybabtu.com>
17090 Based on description from Pavel:
17091 * kern/disk.c (grub_disk_check_range): Rename to ...
17092 (grub_disk_adjust_range): ... this. Add a comment explaining the
17093 tasks performed by this function.
17095 2008-06-08 Robert Millan <rmh@aybabtu.com>
17097 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
17098 `num_serial' (for consistency with other variables).
17099 (struct grub_ntfs_data): Add `uuid' member.
17100 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
17101 (grub_ntfs_uuid): New function.
17102 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
17104 2008-06-07 Pavel Roskin <proski@gnu.org>
17106 * util/biosdisk.c (open_device): Revert last change to the
17107 function, it broke installation. The sector needs to be
17108 different dependent on which device is opened.
17110 2008-06-06 Robert Millan <rmh@aybabtu.com>
17112 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
17113 rest of GRUB, and breakage doesn't happen if its value were modified.
17115 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17116 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
17117 a constant (same value).
17118 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
17119 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
17121 2008-06-06 Robert Millan <rmh@aybabtu.com>
17123 * util/biosdisk.c (open_device): Do not modify sector offset when
17124 accessing a partition. kern/disk.c already handles this for us.
17126 2008-06-06 Robert Millan <rmh@aybabtu.com>
17128 * util/grub-emu.c (grub_machine_init): Move code in this function from
17130 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
17131 segfault in case grub_printf() is called).
17133 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
17134 grub_probe. Update all users not to explicitly add it again.
17135 (grub_device): New variable; contains corresponding device for grubdir.
17136 (fs_module, partmap_module, devabstraction_module): Pass
17137 `--device ${grub_device}' to grub_probe to avoid traversing /dev
17140 2008-06-05 Robert Millan <rmh@aybabtu.com>
17142 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
17143 is found, print it (same layout as with labels).
17145 2008-06-04 Robert Millan <rmh@aybabtu.com>
17147 * util/biosdisk.c (get_drive): Rename to ...
17148 (find_grub_drive): ... this. Update all users.
17150 (get_os_disk): Rename to ...
17151 (convert_system_partition_to_system_disk): ... this. Update all users.
17153 (find_drive): Rename to ...
17154 (find_system_device): ... this. Update all users.
17156 2008-06-04 Robert Millan <rmh@aybabtu.com>
17158 * util/biosdisk.c (get_os_disk): Handle IDA devices.
17159 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17160 (make_device_map): Likewise.
17162 2008-06-01 Robert Millan <rmh@aybabtu.com>
17164 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
17165 before dereferencing it.
17167 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
17168 union with fat12/fat16-specific ones. Add some new fields, including
17169 `num_serial' for both versions.
17170 (struct grub_fat_data): Add `uuid' member.
17171 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
17172 names. Initialize `data->uuid' using `num_serial'.
17173 (grub_fat_uuid): New function.
17174 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
17176 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
17177 (grub_reiserfs_uuid): New function.
17178 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
17181 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
17182 (grub_xfs_uuid): New function.
17183 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
17185 2008-06-01 Robert Millan <rmh@aybabtu.com>
17187 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
17188 code that is backward compatible with pre-uuid search command.
17190 2008-05-31 Robert Millan <rmh@aybabtu.com>
17192 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
17193 floppies after everything else, to ensure floppy drive isn't accessed
17194 unnecessarily (patch from Bean).
17196 2008-05-31 Robert Millan <rmh@aybabtu.com>
17198 * commands/search.c (search_label, search_fs_uuid, search_file): Do
17199 not print device names when we were asked to set a variable.
17201 2008-05-31 Robert Millan <rmh@aybabtu.com>
17203 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
17204 using "cursor-on" and "cursor-off" commands (understood at least by
17205 the Open Firmware flavour on OLPC).
17207 2008-05-31 Michael Gorven <michael@gorven.za.net>
17209 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
17210 on and off sequences.
17212 2008-05-31 Robert Millan <rmh@aybabtu.com>
17214 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
17215 * util/update-grub.in: Likewise.
17217 2008-05-30 Pavel Roskin <proski@gnu.org>
17219 * util/biosdisk.c (linux_find_partition): Simplify logic and
17220 make the code more universal. Keep special processing for
17221 devfs, but use a simple rule for all other devices. If the
17222 device ends with a number, append 'p' and the partition number.
17223 Otherwise, append only the partition number.
17225 2008-05-30 Robert Millan <rmh@aybabtu.com>
17227 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
17228 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
17229 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
17230 the `root' parameter to Linux.
17232 2008-05-30 Robert Millan <rmh@aybabtu.com>
17234 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
17235 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
17236 --fs_uuid with --fs-uuid.
17237 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
17238 all filesystems support them).
17240 2008-05-30 Robert Millan <rmh@aybabtu.com>
17242 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
17243 grub_printf() flags, since we're printing in units of 2 bytes.
17245 2008-05-30 Robert Millan <rmh@aybabtu.com>
17247 * util/grub.d/00_header.in: Remove obsolete comment referencing
17248 convert_system_path_to_grub_path().
17249 * util/update-grub.in: Likewise.
17250 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
17251 (convert_system_path_to_grub_path): Add a warning message explaining
17252 that this function is deprecated. Rely on is_path_readable_by_grub()
17253 for the readability checks.
17254 (font_path): Use is_path_readable_by_grub() for the readability
17255 check rather than convert_system_path_to_grub_path().
17257 2008-05-30 Robert Millan <rmh@aybabtu.com>
17259 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
17260 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
17261 converting it first.
17262 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
17263 grub.cfg for access to font file, and afterwards call it again to set
17266 2008-05-30 Robert Millan <rmh@aybabtu.com>
17268 * commands/search.c (options): Add --fs_uuid option.
17269 (search_fs_uuid): New function.
17270 (grub_cmd_search): Fix --set argument passing.
17271 Use search_fs_uuid() when requested via --fs_uuid.
17272 (grub_search_init): Update help message.
17273 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
17274 and redeclare it as an array of 16-bit words.
17275 (grub_ext2_uuid): New function.
17276 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
17277 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
17278 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
17279 (GRUB_DEVICE_BOOT_UUID): New variables.
17280 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
17281 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
17283 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
17284 just assume `root' variable has the right value.
17285 * util/grub.d/10_linux.in: Likewise.
17286 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
17288 (main): Recognise `-t fs_uuid' argument.
17290 2008-05-30 Robert Millan <rmh@aybabtu.com>
17292 * util/biosdisk.c (map): Redefine structure to hold information
17293 about GRUB drive name.
17294 (get_drive): Reimplement without assuming (and verifying) BIOS-like
17296 (call_hook): Remove.
17297 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
17298 member. Assume drive has partitions.
17299 (grub_util_biosdisk_open): Access device names via `.device' struct
17301 (open_device): Likewise.
17302 (find_drive): Likewise.
17303 (read_device_map): Adjust map[] usage to match the new struct
17304 definition. Don't check for duplicates (still possible, but not cheap
17306 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
17307 (make_device_name): Remove assumption of BIOS-like drive names.
17309 2008-05-30 Pavel Roskin <proski@gnu.org>
17311 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
17312 compiling execute.c doesn't need grub_script.tab.h anymore.
17313 (normal/command.c_DEPENDENCIES): Likewise.
17314 (normal/function.c_DEPENDENCIES): Likewise.
17315 * conf/i386-ieee1275.rmk: Likewise.
17316 * conf/i386-linuxbios.rmk: Likewise.
17317 * conf/i386-pc.rmk: Likewise.
17318 * conf/powerpc-ieee1275.rmk: Likewise.
17319 * conf/sparc64-ieee1275.rmk: Likewise.
17321 2008-05-29 Pavel Roskin <proski@gnu.org>
17323 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
17324 when scanning metadata for volume group name.
17326 * include/grub/script.h: Don't include grub_script.tab.h. It's
17327 a generated file, which may only be included from the files with
17328 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
17329 use union YYSTYPE, as the later allows forward declaration.
17330 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
17332 2008-05-29 Robert Millan <rmh@aybabtu.com>
17334 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
17335 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
17336 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
17337 (grub_console_checkkey): Add grub_dprintf() call to report unknown
17340 2008-05-29 Robert Millan <rmh@aybabtu.com>
17342 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
17343 control key combinations.
17345 2008-05-29 Robert Millan <rmh@aybabtu.com>
17347 * util/powerpc/ieee1275/grub-install.in: Move from here ...
17348 * util/ieee1275/grub-install.in: ... to here.
17349 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
17350 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
17351 (grub_install_SOURCES): Likewise.
17353 2008-05-29 Robert Millan <rmh@aybabtu.com>
17355 * fs/affs.c: Update copyright year.
17356 * fs/ext2.c: Likewise.
17357 * fs/fshelp.c: Likewise.
17358 * fs/hfsplus.c: Likewise.
17359 * fs/ntfs.c: Likewise.
17360 * fs/xfs.c: Likewise.
17361 * include/grub/fshelp.h: Likewise.
17362 * util/grub-mkdevicemap.c: Likewise.
17364 2008-05-28 Robert Millan <rmh@aybabtu.com>
17366 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
17367 might need to be fatfs to support some firmware implementations
17370 2008-05-28 Robert Millan <rmh@aybabtu.com>
17372 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
17374 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17375 (make_device_map): Likewise.
17377 2008-05-20 Bean <bean123ch@gmail.com>
17379 * fs/fshelp.c (grub_fshelp_map_block): New function.
17380 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
17381 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
17383 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
17384 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
17385 (grub_fshelp_journal): New structure.
17386 (grub_fshelp_map_block): New function prototype.
17387 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
17388 (grub_fshelp_map_block): Likewise.
17390 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
17391 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
17392 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
17393 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
17394 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
17395 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
17396 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
17397 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
17398 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
17399 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
17400 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
17401 (grub_ext2_sblock): New members for journal support.
17402 (grub_ext3_journal_header): New structure.
17403 (grub_ext3_journal_revoke_header): Likewise.
17404 (grub_ext3_journal_block_tag): Likewise.
17405 (grub_ext3_journal_sblock): Likewise.
17406 (grub_fshelp_node): New members logfile and journal.
17407 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
17408 grub_fshelp_map_block to get real block number.
17409 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
17411 (grub_ext2_read_inode): Likewise.
17412 (grub_ext3_get_journal): New function.
17413 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
17414 (grub_ext2_close): Release memory used by journal.
17416 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
17417 (REISERFS_MAGIC_DESC_BLOCK): New macro.
17418 (grub_reiserfs_transaction_header): Renamed to
17419 grub_reiserfs_description_block, replace field data with real_blocks.
17420 (grub_reiserfs_commit_block): New structure.
17421 (grub_reiserfs_data): New member journal.
17422 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
17424 (grub_reiserfs_read_symlink): Likewise.
17425 (grub_reiserfs_iterate_dir): Likewise.
17426 (grub_reiserfs_open): Likewise.
17427 (grub_reiserfs_read): Likewise.
17428 (grub_reiserfs_get_journal): New function.
17429 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
17430 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
17431 using grub_reiserfs_get_journal.
17432 (grub_reiserfs_close): Release memory used by journal.
17434 * fs/affs.c (grub_affs_read_block): Change block type to
17435 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
17437 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
17439 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
17441 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
17443 * fs/udf.c (grub_udf_read_block): Change block type to
17444 grub_disk_addr_t. Use type cast to avoid warning.
17446 * fs/xfs.c (grub_xfs_read_block): Likewise.
17448 2008-05-16 Christian Franke <franke@computer.org>
17450 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
17451 to ensure that break with ESC will always work.
17452 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
17453 Remove ESC from keyboard queue.
17455 2008-05-16 Christian Franke <franke@computer.org>
17457 * util/biosdisk.c: [__CYGWIN__] Add includes.
17458 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
17459 (get_os_disk): Move variable declarations to OS specific
17460 parts to avoid warning.
17461 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
17462 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
17463 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
17465 * util/getroot.c: [__CYGWIN__] Add includes.
17466 (strip_extra_slashes): Fix "/" case.
17467 [__CYGWIN__] (get_win32_path): New function.
17468 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
17469 [__CYGWIN__] (find_root_device): Disable.
17470 [__CYGWIN__] (get_bootsec_serial): New function.
17471 [__CYGWIN__] (find_cygwin_root_device): Likewise.
17472 [__linux__] (grub_guess_root_device): Add early returns to simplify
17474 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
17475 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
17476 check for Linux only.
17478 2008-05-15 Bean <bean123ch@gmail.com>
17480 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
17481 keyboard hang problem in apple's intel mac.
17483 2008-05-09 Robert Millan <rmh@aybabtu.com>
17485 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
17487 * util/grub-mkdevicemap.c (get_virtio_disk_name)
17488 (make_device_map): Likewise.
17489 Reported by Aurelien Jarno <aurel32@debian.org>
17491 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
17493 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
17494 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
17495 (make_device_map): Output entries for xvd type disks.
17497 2008-05-07 Robert Millan <rmh@aybabtu.com>
17499 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
17501 * util/grub-mkdevicemap.c (get_cciss_disk_name)
17502 (make_device_map): Likewise.
17503 Reported by Roland Dreier <rdreier@cisco.com>
17505 2008-05-07 Robert Millan <rmh@aybabtu.com>
17507 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
17508 grub_strstr() call. Correct a few mistakes in failure path handling.
17510 2008-05-06 Robert Millan <rmh@aybabtu.com>
17512 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
17513 Do not print a trailing slash (therefore, the root directory is an
17515 (convert_system_path_to_grub_path): Do not remove trailing slash
17516 from make_system_path_relative_to_its_root() output.
17518 * util/i386/pc/grub-install.in: Add trailing slash to output from
17519 make_system_path_relative_to_its_root().
17521 2008-05-06 Robert Millan <rmh@aybabtu.com>
17523 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
17524 ensures that output lines aren't intermangled with those sent to
17525 stderr (via grub_util_info()).
17526 * util/grub-probe.c (grub_refresh): Likewise.
17527 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
17529 2008-05-05 Christian Franke <franke@computer.org>
17531 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
17532 Add Cygwin device names.
17533 (get_ide_disk_name) [__CYGWIN__]: Likewise.
17534 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
17535 (check_device): Return error instead of success on empty name.
17536 (make_device_map): Move label inside linux specific code to
17537 prevent compiler warning.
17539 2008-04-30 Robert Millan <rmh@aybabtu.com>
17541 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
17542 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
17544 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
17546 2008-04-29 Robert Millan <rmh@aybabtu.com>
17548 * docs/grub.cfg: New file (example GRUB configuration).
17550 2008-04-26 Robert Millan <rmh@aybabtu.com>
17552 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
17553 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
17554 and `disk/ieee1275/nand.c'.
17556 2008-04-25 Bean <bean123ch@gmail.com>
17558 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
17561 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
17562 change the buffer size to 4096 for cdrom device.
17564 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
17566 (_linux_mod_SOURCES): New variable.
17567 (_linux_mod_CFLAGS): Likewise.
17568 (_linux_mod_LDFLAGS): Likewise.
17569 (linux_mod_SOURCES): Likewise.
17570 (linux_mod_CFLAGS): Likewise.
17571 (linux_mod_LDFLAGS): Likewise.
17572 (nand_mod_SOURCES): Likewise.
17573 (nand_mod_CFLAGS): Likewise.
17574 (nand_mod_LDFLAGS): Likewise.
17576 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
17577 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
17578 type property. (nand device in olpc don't have this property)
17580 * include/grub/disk.h (grub_disk_dev_id): New macro
17581 GRUB_DISK_DEVICE_NAND_ID.
17583 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
17584 function prototype.
17585 (grub_rescue_cmd_initrd): Likewise.
17587 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
17588 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
17589 ofw_cif_handler and ofw_idt, adjust padding number.
17591 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
17592 GRUB_MACHINE_IEEE1275 is defined.
17594 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
17595 Use NESTED_FUNC_ATTR attribute on the hook parameter.
17597 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
17598 on nested function heap_init.
17599 (grub_upper_mem): New variable for i386-ieee1275.
17600 (grub_get_extended_memory): New function for i386-ieee1275.
17601 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
17603 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
17604 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
17607 * loader/i386/ieee1275/linux.c: New file.
17609 * loader/i386/ieee1275/linux_normal.c: New file.
17611 * disk/ieee1275/nand.c: New file.
17613 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
17615 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
17617 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
17619 2008-04-18 Robert Millan <rmh@aybabtu.com>
17621 Restructures early code path on ieee1275 to unify grub_main() as
17622 the first C function that is executed in every platform.
17624 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
17625 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
17627 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
17628 * kern/ieee1275/cmain.c (cmain): Rename to ...
17629 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
17630 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
17633 2008-04-18 Robert Millan <rmh@aybabtu.com>
17635 * util/update-grub.in: Fix syntax error when setting
17636 `GRUB_PRELOAD_MODULES'.
17637 Reported by Stephane Chazelas <stephane@artesyncp.com>
17639 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
17641 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
17642 section into account, newer toolchains generate unique build ids
17643 * configure.ac: remove the test for --build-id=none acceptance,
17644 we want build ids to be preserved
17645 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
17646 far from other sections don't cause the raw binary images grow
17649 2008-04-15 Robert Millan <rmh@aybabtu.com>
17651 * disk/lvm.c: Update copyright year.
17652 * kern/misc.c: Likewise.
17654 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
17656 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
17657 there is no memory left for physical volume name.
17659 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
17661 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
17662 volume name mapping to support bigger than 9 character names properly.
17664 2008-04-13 Robert Millan <rmh@aybabtu.com>
17666 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
17667 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
17669 2008-04-13 Christian Franke <franke@computer.org>
17671 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
17672 to create a floppy emulation boot CD when non emulation mode
17674 Enable Joliet CD filesystem extension.
17676 2008-04-13 Robert Millan <rmh@aybabtu.com>
17678 * kern/misc.c (grub_strncat): Fix off-by-one error.
17679 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
17681 * kern/env.c (grub_env_context_close): Clear current context, not
17683 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
17685 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
17687 2008-04-13 Robert Millan <rmh@aybabtu.com>
17689 Improve robustness when handling LVM.
17691 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
17692 (and leave `*p' unmodified).
17693 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
17695 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
17696 iterating through it.
17697 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
17699 (grub_lvm_scan_device): Check the return value (and fail gracefully
17700 when due) on each grub_lvm_getvalue() or grub_strstr() call.
17701 Don't assume `vg->pvs != NULL' when iterating through it.
17703 2008-04-13 Robert Millan <rmh@aybabtu.com>
17705 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
17706 * genmk.rb (partmap): New variable.
17707 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
17708 (#{partmap}): New target rule.
17709 * genpartmaplist.sh: New file.
17710 * Makefile.in (pkglib_DATA): Add partmap.lst.
17711 (partmap.lst): New target rule.
17712 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
17713 modules (including all partition maps), instead of preloading them.
17715 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
17717 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
17718 `linux-boot-prober' (if installed) to detect other operating
17719 systems which are installed on the computer and add them to
17721 * conf/common.rmk: Build and install 30_os-prober.
17723 2008-04-12 Robert Millan <rmh@aybabtu.com>
17725 * kern/powerpc/ieee1275/init.c: Move from here ...
17726 * kern/ieee1275/init.c: ... to here. Update all users.
17728 * kern/powerpc/ieee1275/cmain.c: Move from here ...
17729 * kern/ieee1275/cmain.c: ... to here. Update all users.
17731 * kern/powerpc/ieee1275/openfw.c: Move from here ...
17732 * kern/ieee1275/openfw.c: ... to here. Update all users.
17734 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
17735 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
17737 2008-04-10 Pavel Roskin <proski@gnu.org>
17739 * configure.ac: Always use "_cv_" in cache variables for
17740 compatibility with Autoconf 2.62.
17742 2008-04-07 Robert Millan <rmh@aybabtu.com>
17744 Revert grub/machine/init.h addition by Pavel (since it breaks on
17745 i386-ieee1275 and others):
17746 * util/i386/pc/misc.c: Remove grub/machine/init.h.
17747 * util/powerpc/ieee1275/misc.c: Likewise.
17749 2008-04-07 Robert Millan <rmh@aybabtu.com>
17751 * util/grub-probe.c (probe): Improve error message.
17753 2008-04-07 Robert Millan <rmh@aybabtu.com>
17755 * util/biosdisk.c (read_device_map): Skip devices that don't exist
17756 (this prevents the presence of a bogus entry from ruining the whole
17759 2008-04-06 Pavel Roskin <proski@gnu.org>
17761 * util/biosdisk.c: Include grub/util/biosdisk.h.
17762 * util/grub-fstest.c (execute_command): Make static.
17763 * util/grub-mkdevicemap.c (check_device): Likewise.
17764 * util/i386/pc/misc.c: Include grub/machine/init.h.
17765 * util/powerpc/ieee1275/misc.c: Likewise.
17766 * util/lvm.c: Include grub/util/lvm.h.
17767 * util/misc.c: Include grub/kernel.h, grub/misc.h and
17769 * util/raid.c: Include grub/util/raid.h.
17770 (grub_util_getdiskname): Make static.
17772 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
17773 grub_hostfs_fini(), as they are called from grub_init_all() and
17774 grub_fini_all() respectively. This fixes an infinite loop in
17775 grub-fstest due to double registration of hostfs.
17776 Reported by Christian Franke <Christian.Franke@t-online.de>
17778 2008-04-05 Pavel Roskin <proski@gnu.org>
17780 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
17781 all 8 functions. Otherwise, probe function 0 only.
17783 2008-04-04 Pavel Roskin <proski@gnu.org>
17785 * commands/lspci.c (grub_lspci_iter): Print the bus number
17788 * commands/lspci.c (grub_pci_classes): Fix typos.
17789 (grub_lspci_iter): Don't print func twice. Print vendor ID
17790 before device ID, as it's normally done.
17792 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
17793 Fix signedness warnings.
17794 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
17796 * util/ieee1275/get_disk_name.c: Include config.h so that
17797 _GNU_SOURCE is defined and getline() is declared. Mark an
17798 unused argument as such. Fix a signedness warning.
17800 2008-04-02 Pavel Roskin <proski@gnu.org>
17802 * genkernsyms.sh.in: Use more robust assignments for CC and
17803 srcdir. Quote srcdir.
17804 * gensymlist.sh.in: Likewise. Assert at the compile time that
17805 the symbol table is not empty.
17807 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
17808 * fs/cpio.c (grub_cpio_read): Likewise.
17810 2008-04-01 Pavel Roskin <proski@gnu.org>
17812 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
17813 * disk/host.c (grub_host_open): Likewise.
17814 * disk/loopback.c (grub_loopback_open): Likewise.
17815 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
17816 disk->id as in disk/host.c, not a multi-character constant.
17818 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
17819 later is obsolete, potentially dangerous and sets a bad example.
17820 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
17821 * util/misc.c (grub_util_get_image_size): Likewise.
17823 * disk/loopback.c (options): Improve help for "--partitions".
17825 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
17826 options to align them with the short options, e.g. "echo -e".
17828 2008-03-31 Bean <bean123ch@gmail.com>
17830 * video/reader/png.c (grub_png_data): New member is_16bit and
17832 (grub_png_decode_image_header): Detect 16 bit png image.
17833 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
17834 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
17835 (grub_video_reader_png): Release memory occupied by image_data.
17837 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
17839 (grub_nfs_mount): Skip the test for sector per cluster.
17841 * include/grub/ntfs.h (MAX_SPC): Removed.
17843 2008-03-31 Bean <bean123ch@gmail.com>
17845 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
17846 (grub_probe_SOURCES): Add fs/afs.c.
17847 (grub_fstest_SOURCES): Likewise.
17848 (afs_mod_SOURCES): New variable.
17849 (afs_mod_CFLAGS): Likewise.
17850 (afs_mod_LDFLAGS): Likewise.
17852 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
17853 (grub_emu_SOURCES): Likewise.
17855 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17857 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17859 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
17861 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17863 * fs/afs.c: New file.
17865 2008-03-30 Pavel Roskin <proski@gnu.org>
17867 * disk/host.c: Include grub/misc.h to fix a warning.
17868 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
17869 warnings about implicit declarations.
17871 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
17873 * include/grub/i386/loader.h: Change declaration of
17874 grub_linux_boot() to match what grub_loader_set() expects.
17875 * util/getroot.c (grub_guess_root_device): Return const char* to
17877 * util/grub-probe.c (probe): Fix a warning about uninitialized
17878 abstraction_name variable.
17879 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
17880 second argument as unused to fix a warning.
17882 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
17883 missing grub_error() call.
17885 * util/update-grub_lib.in: Define datarootdir, since Autoconf
17886 2.60 and newer uses it to define datadir.
17888 * commands/sleep.c: Fix warning about implicit declaration.
17889 * disk/memdisk.c: Likewise.
17890 * loader/aout.c: Likewise.
17891 * loader/i386/bsd_normal.c: Likewise.
17892 * util/grub-probe.c: Likewise.
17894 * commands/i386/cpuid.c (has_longmode): Make static.
17895 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
17896 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
17898 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
17899 GDT. This is more robust, as %ds can change.
17900 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
17901 calling real_to_prot().
17902 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
17904 2008-03-28 Pavel Roskin <proski@gnu.org>
17906 * kern/i386/pc/startup.S: Assert that uncompressed functions
17907 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
17908 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
17909 code, as they push parts of the code (error handlers) beyond
17910 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
17911 code as correctness and size.
17913 2008-03-28 Pavel Roskin <proski@gnu.org>
17915 * kern/i386/pc/startup.S
17916 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
17917 data block address to the real mode, keep offset minimal. This
17918 works around a bug in AWARD BIOS on old Athlon systems, which
17919 makes CD detection hang.
17921 2008-03-26 Pavel Roskin <proski@gnu.org>
17923 * normal/color.c (grub_parse_color_name_pair): Make `name' a
17925 * include/grub/normal.h: Add grub_parse_color_name_pair()
17928 2008-03-24 Bean <bean123ch@gmail.com>
17930 * disk/i386/pc/biosdisk.c (cd_start): Removed.
17931 (cd_count): Removed.
17932 (cd_drive): New variable.
17933 (grub_biosdisk_get_drive): Don't check for (cdN) device.
17934 (grub_biosdisk_call_hook): Likewise.
17935 (grub_biosdisk_iterate): Change cdrom detection method.
17936 (grub_biosdisk_open): Replace cd_start with cd_drive.
17937 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
17938 detect cdrom device.
17940 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
17942 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
17943 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
17944 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
17945 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
17946 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
17947 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
17948 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
17949 (grub_biosdisk_cdrp): New structure.
17950 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
17952 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
17954 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
17957 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
17960 2008-03-20 Robert Millan <rmh@aybabtu.com>
17962 Remove 2 TiB limit in ata.mod.
17963 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
17964 (grub_ata_dumpinfo): Print sector count with 0x%llx.
17965 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
17966 grub_uint64_t instead of grub_uint32_t.
17968 2008-03-05 Bean <bean123ch@gmail.com>
17970 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
17971 (grub_multiboot): Set boot device.
17973 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
17975 2008-03-02 Bean <bean123ch@gmail.com>
17977 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
17980 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
17982 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
17985 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
17988 * docs/fdl.texi: New file.
17990 * docs/mdate-sh: New file. Copied from gnulib.
17991 * docs/texinfo.tex: Likewise.
17993 * config.guess: Updated from gnulib.
17994 * install-sh: Likewise.
17996 2008-02-28 Robert Millan <rmh@aybabtu.com>
17998 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
17999 (aout_mod_SOURCES): New variable.
18000 (aout_mod_CFLAGS): Likewise.
18001 (aout_mod_LDFLAGS): Likewise.
18003 * conf/i386-ieee1275.rmk: Likewise.
18005 2008-02-28 Robert Millan <rmh@aybabtu.com>
18007 * util/update-grub.in: Reorganise terminal validity check. Accept
18008 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
18009 Based on suggestion by Franklin PIAT.
18011 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
18013 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
18015 * util/getroot.c (grub_util_check_block_device): New function that
18016 returns the given argument if it is a block device and returns NULL else.
18017 * util/grub-probe.c (argument_is_device): New variable.
18018 (probe): Promote device_name from a variable to an argument. Receive
18019 device_name from grub_util_check_block_device() if path is NULL and from
18020 grub_guess_root_device() else. Do not free() device_name anymore.
18021 (options): Introduce new parameter '-d, --device'.
18022 (main): Add description of the new parameter to the help screen.
18023 Rename path variable to argument. Set argument_is_device if the '-d'
18024 option is given. Pass argument to probe() depending on
18025 argument_is_device.
18027 2008-02-24 Bean <bean123ch@gmail.com>
18029 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
18030 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
18031 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
18032 (GRUB_ISO9660_VOLDESC_PART): Likewise.
18033 (GRUB_ISO9660_VOLDESC_END): Likewise.
18034 (grub_iso9660_primary_voldesc): New member escape.
18035 (grub_iso9660_data): New member joliet.
18036 (grub_iso9660_convert_string): New function.
18037 (grub_iso9660_mount): Detect joliet extension.
18038 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
18039 (grub_iso9660_iso9660_label): Likewise.
18041 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
18042 (grub_setup_SOURCES): Add fs/udf.c.
18043 (grub_fstest_SOURCES): Likewise.
18044 (udf_mod_SOURCES): New variable.
18045 (udf_mod_CFLAGS): Likewise.
18046 (udf_mod_LDFLAGS): Likewise.
18048 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
18049 (grub_emu_SOURCES): Likewise.
18051 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18053 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18055 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18057 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18059 * fs/udf.c: New file.
18061 2008-02-24 Robert Millan <rmh@aybabtu.com>
18063 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
18064 (normal/lexer.c_DEPENDENCIES): New variables.
18065 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18066 (normal/lexer.c_DEPENDENCIES): Likewise.
18067 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
18068 (normal/lexer.c_DEPENDENCIES): Likewise.
18069 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
18070 (normal/lexer.c_DEPENDENCIES): Likewise.
18071 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18072 (normal/lexer.c_DEPENDENCIES): Likewise.
18073 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18074 (normal/lexer.c_DEPENDENCIES): Likewise.
18076 2008-02-23 Robert Millan <rmh@aybabtu.com>
18078 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
18079 since they were intended to be in hex. This didn't break previously
18080 because of a bug in gpt_partition_map_iterate() (see below).
18082 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
18083 when checking the validity of GPT header.
18084 Remove `partno', since it always provides the same information as `i'.
18086 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
18088 * include/grub/efi/time.h: Fix a wrong comment.
18090 2008-02-19 Pavel Roskin <proski@gnu.org>
18092 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
18095 2008-02-19 Bean <bean123ch@gmail.com>
18097 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
18098 (aout_mod_SOURCES): New variable.
18099 (aout_mod_CFLAGS): Likewise.
18100 (aout_mod_LDFLAGS): Likewise.
18101 (_bsd_mod_SOURCES): New variable.
18102 (_bsd_mod_CFLAGS): Likewise.
18103 (_bsd_mod_LDFLAGS): Likewise.
18104 (bsd_mod_SOURCES): New variable.
18105 (bsd_mod_CFLAGS): Likewise.
18106 (bsd_mod_LDFLAGS): Likewise.
18108 * include/grub/aout.h: New file.
18110 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
18112 * include/grub/i386/bsd.h: New file.
18114 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
18117 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
18118 function is called, so that it's possible to change it inside the hook.
18119 (grub_elf64_load): Likewise.
18120 (grub_elf_file): Don't close the file if elf header is not found.
18121 (grub_elf_close): Close the file if grub_elf_file fails (The new
18122 grub_elf_file won't close it).
18123 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
18124 (grub_elf64_size): Likewise.
18126 * kern/i386/loader.S (grub_unix_real_boot): New function.
18128 * loader/aout.c: New file.
18130 * loader/i386/bsd.c: New file.
18132 * loader/i386/bsd_normal.c: New file.
18134 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
18136 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
18137 can test other formats.
18139 2008-02-19 Robert Millan <rmh@aybabtu.com>
18141 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
18142 (grub_gpt_partition_type_empty): Redefine with macro from
18143 `<grub/gpt_partition.h>'.
18144 (gpt_partition_map_iterate): Adjust partition type comparison.
18146 Export `entry' as partmap-specific `part.data' struct.
18147 (grub_gpt_header, grub_gpt_partentry): Move from here ...
18149 * include/grub/gpt_partition.h (grub_gpt_header)
18150 (grub_gpt_partentry): ... to here (new file).
18152 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
18154 (grub_gpt_partition_type_bios_boot): New const variable, defined
18155 with macro from `<grub/gpt_partition.h>'.
18157 (setup): Replace `first_start' with `embed_region', which keeps
18158 track of the embed region (and is partmap-agnostic).
18160 Replace find_first_partition_start() with find_usable_region(),
18161 which finds a usable region for embedding using partmap-specific
18162 knowledge (supports PC/MSDOS and GPT).
18164 Fix all assumptions that the embed region start at sector 1, using
18165 `embed_region.start' from now on. Similarly, use `embed_region.end'
18166 rather than `first_start' to calculate available size.
18168 In grub_util_info() message, replace "into after the MBR" with an
18169 indication of the specific sector our embed region starts at.
18171 2008-02-19 Robert Millan <rmh@aybabtu.com>
18173 * DISTLIST: Replace `commands/ieee1275/halt.c' and
18174 `commands/ieee1275/reboot.c' with `commands/halt.c' and
18175 `commands/reboot.c'.
18176 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18177 (halt_mod_SOURCES): Likewise.
18178 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18179 (halt_mod_SOURCES): Likewise.
18181 2008-02-17 Christian Franke <franke@computer.org>
18183 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
18185 2008-02-17 Robert Millan <rmh@aybabtu.com>
18187 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18188 set `first_start' to 0 for non-PC/MSDOS partition maps.
18190 2008-02-16 Robert Millan <rmh@aybabtu.com>
18192 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18193 do not assume partition map is PC/MSDOS before performing checks that
18194 are specific to that layout.
18196 2008-02-13 Robert Millan <rmh@aybabtu.com>
18198 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
18199 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
18200 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
18202 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
18204 * configure.ac: Only a cosmetic change on the handling of
18205 -fno-stack-protector.
18207 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
18209 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
18210 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
18212 (grub_install_SOURCES): Add halt.mod and reboot.mod.
18213 (halt_mod_SOURCES): New variable.
18214 (halt_mod_CFLAGS): Likewise.
18215 (halt_mod_LDFLAGS): Likewise.
18216 (reboot_mod_SOURCES): Likewise.
18217 (reboot_mod_CFLAGS): Likewise.
18218 (reboot_mod_LDFLAGS): Likewise.
18220 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
18221 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
18223 (halt_mod_SOURCES): Likewise.
18224 (reboot_mod_SOURCES): Likewise.
18226 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
18227 commands/i386/pc/reboot.c by commands/reboot.c.
18228 (reboot_mod_SOURCES): Likewise.
18230 * commands/i386/pc/reboot.c: merge this file ...
18232 * commands/ieee1275/reboot.c: ... and this file ...
18234 * commands/reboot.c: ... to this file.
18235 Add some precompiler directive to include the correct header for
18238 * commands/ieee1275/halt.c: move this file ...
18240 * commands/halt.c: ... to here.
18241 Add some precompiler directive to include the correct header for
18244 * include/grub/efi/efi.h (grub_reboot): New function declaration.
18245 (grub_halt): Likewise.
18247 * kern/efi/efi.c (grub_reboot): New function.
18248 (grub_halt): Likewise.
18250 2008-02-12 Robert Millan <rmh@aybabtu.com>
18252 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
18253 /dev (like it is done for /dev/mapper). This doesn't provide support
18254 for EVMS, but at least it is now easy to identify the problem when it
18257 2008-02-11 Robert Millan <rmh@aybabtu.com>
18259 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
18260 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
18261 comparing it with -1, not 0.
18263 2008-02-10 Robert Millan <rmh@aybabtu.com>
18265 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
18267 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18268 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18270 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
18271 `disk/lvm.c' to the end of the list.
18272 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18273 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18275 2008-02-10 Robert Millan <rmh@aybabtu.com>
18277 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
18278 grub_print_error() instead. This will let user know why we're entering
18280 Based on suggestions from Sam Morris.
18282 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
18284 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
18285 on remaining N args, instead of "--" arg N times.
18287 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
18289 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
18290 (fill_with_default_glyph): Changed to use unknown_glyph for fill
18291 pattern for unknown glyphs.
18293 2008-02-09 Robert Millan <rmh@aybabtu.com>
18295 * configure.ac: Probe for `help2man'.
18296 * Makefile.in (builddir): New variable.
18297 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
18298 or otherwise add a few flags/options to it.
18299 (install-local): For every executable utility or script that is
18300 installed, invoke $(HELP2MAN) to install a manpage based on --help
18303 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
18304 that it doesn't prevent --help from working in build tree.
18306 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
18307 with `bug-grub@gnu.org'.
18308 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
18309 * util/update-grub.in (usage): New function.
18310 Implement proper argument check, with support for --help and --version
18311 (as well as existing -y).
18313 2008-02-09 Christian Franke <franke@computer.org>
18315 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
18316 avoid overwriting previous output.
18317 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
18319 2008-02-09 Robert Millan <rmh@aybabtu.com>
18321 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
18324 2008-02-09 Robert Millan <rmh@aybabtu.com>
18326 * commands/sleep.c: New file.
18327 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
18328 (sleep_mod_SOURCES): New variable.
18329 (sleep_mod_CFLAGS): Likewise.
18330 (sleep_mod_LDFLAGS): Likewise.
18332 2008-02-09 Robert Millan <rmh@aybabtu.com>
18334 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
18335 situations in which we can deduce the RAID size and the superblock
18338 2008-02-09 Robert Millan <rmh@aybabtu.com>
18340 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
18341 and return a grub_diskmemberlist_t composed of LVM physical volumes.
18342 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
18344 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
18345 and return a grub_diskmemberlist_t composed of physical array members.
18346 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
18348 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
18350 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
18351 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
18352 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
18354 * util/grub-probe.c (probe): Move partmap probing code from here ...
18355 (probe_partmap): ... to here.
18356 (probe): Use probe_partmap() once for the disk we're probing, and
18357 additionally, when such disk contains a memberlist() struct member,
18358 once for each disk that is contained in the structure returned by
18361 2008-02-09 Robert Millan <rmh@aybabtu.com>
18363 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
18364 environment variable to 'all' in order to obtain debug output from
18366 * util/i386/pc/grub-setup.c (main): Likewise.
18368 2008-02-08 Robert Millan <rmh@aybabtu.com>
18370 * disk/raid.c (grub_raid_scan_device): Check for
18371 `array->device[sb.this_disk.number]' rather than for
18372 `array->device[sb.this_disk.number]->name', since the latter is not
18373 guaranteed to be accessible.
18375 2008-02-08 Robert Millan <rmh@aybabtu.com>
18377 * disk/raid.c: Update copyright.
18378 * fs/cpio.c: Likewise.
18379 * include/grub/raid.h: Likewise.
18380 * loader/i386/pc/multiboot.c: Likewise.
18381 * util/hostfs.c: Likewise.
18383 2008-02-08 Robert Millan <rmh@aybabtu.com>
18385 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
18386 to a grub_disk_t array.
18387 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
18389 (grub_raid_scan_device): Replace `device[x].name' accesses with
18390 `device[x]->name'. Simplify initialization of `array->device[x]'.
18392 2008-02-08 Robert Millan <rmh@aybabtu.com>
18394 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
18395 grub_dprintf() calls.
18396 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
18399 2008-02-07 Christian Franke <franke@computer.org>
18401 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
18402 instead of fseek and ftell to support large files.
18403 (grub_hostfs_read): Likewise.
18405 2008-02-07 Robert Millan <rmh@aybabtu.com>
18407 Patch from Jeroen Dekkers.
18408 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
18409 failure, since successfully reading all array members might not be
18412 2008-02-06 Robert Millan <rmh@aybabtu.com>
18414 * util/grub-probe.c (probe): Simplify partmap probing (with the
18415 assumption that the first word up to the underscore equals to
18418 2008-02-06 Christian Franke <franke@computer.org>
18420 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
18421 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
18422 last block of a cpio or tar stream.
18423 Check for "TRAILER!!!" instead of any empty data
18424 block to detect last block of a cpio stream.
18425 (grub_cpio_dir): Fix constness of variable np.
18426 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
18427 cpio or tar trailer is detected. This fixes a crash
18428 on open of a non existing file.
18430 2008-02-05 Bean <bean123ch@gmail.com>
18432 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
18434 (grub_multiboot_load_elf64): Likewise.
18435 (grub_multiboot): Initialize mbi structure.
18437 * util/grub-fstest.c: Don't include unused header file script.h.
18439 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
18441 (grub_fstest_SOURCES): Likewise.
18443 2008-02-05 Robert Millan <rmh@aybabtu.com>
18445 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
18446 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
18447 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
18448 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
18450 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
18451 (translation_table): Replace hardcoded values with macros
18452 provided by `<grub/term.h>'.
18454 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
18455 (keyboard_map): Correct/add a few values, with macros provided
18456 by `<grub/term.h>'.
18457 (keyboard_map_shift): Zero values that don't differ from their
18458 `keyboard_map' equivalents.
18459 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
18460 Discard the second scan code that is always sent by Caps lock.
18461 Only use `keyboard_map_shift' when it provides a non-zero value,
18462 otherwise fallback to `keyboard_map'.
18464 2008-02-04 Bean <bean123ch@gmail.com>
18466 * Makefile.in (enable_grub_fstest): New variable.
18468 * conf/common.rmk (grub_fstest_init.lst): New rule.
18469 (grub_fstest_init.h): Likewise.
18470 (grub_fstest_init.c): Likewise.
18471 (util/grub-fstest.c_DEPENDENCIES): New variable.
18472 (grub_fstest_SOURCES): Likewise.
18474 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
18476 * util/grub-fstest.c: New file.
18478 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18480 Make grub-setup handle a separate root device.
18482 * util/i386/pc/grub-setup.c (setup): Always open the root device,
18483 so that the root device can be compared with the destination
18485 When embedding the core image, if the root and destination devices
18486 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
18488 When not embedding, set ROOT_DRIVE to 0xFF.
18490 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18492 Add support for having a grub directory in a different drive. This
18493 is still only the data handling part.
18495 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
18496 (codestart): Save %dh in GRUB_ROOT_DRIVE.
18497 (grub_root_drive): New variable.
18499 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
18500 instead of GRUB_BOOT_DRIVE to construct a device name. Set
18501 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
18504 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
18506 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
18508 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
18510 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
18511 is bogus, because PXE booting does not specify any drive
18514 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
18515 am not sure if this is really correct.
18517 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
18518 is always identical to the boot drive when booting from a CD.
18520 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
18522 (root_drive): New variable.
18523 (real_start): Unconditionally set %dh to ROOT_DRIVE.
18524 (setup_sectors): Push %dx right after popping it, because %dh will
18526 (copy_buffer): Restore %dx.
18528 2008-02-03 Robert Millan <rmh@aybabtu.com>
18530 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
18531 use `cdboot.img' for cdrom images.
18533 2008-02-03 Robert Millan <rmh@aybabtu.com>
18535 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
18536 only setup gfxterm when `font' command has succeeded.
18538 2008-02-03 Robert Millan <rmh@aybabtu.com>
18540 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
18541 (grub_rescue_cmd_multiboot_loader)
18542 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
18544 2008-02-03 Pavel Roskin <proski@gnu.org>
18546 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
18547 %edx and %esi from stack only after grub_gate_a20() is called.
18548 grub_gate_a20() clobbers %edx.
18550 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18552 * configure.ac (AC_INIT): Bumped to 1.96.
18554 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
18555 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
18556 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
18557 video/readers/png.c.
18559 2008-02-03 Bean <bean123ch@gmail.com>
18561 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
18562 (cdboot_img_SOURCES): New variable.
18563 (cdboot_img_ASFLAGS): New variable.
18564 (cdboot_img_LDFLAGS): New variable.
18566 * boot/i386/pc/cdboot.S: New file.
18568 * disk/i386/pc/biosdisk.c (cd_start): New variable.
18569 (cd_count): Likewise.
18570 (grub_biosdisk_get_drive): Add support for cd device.
18571 (grub_biosdisk_call_hook): Likewise.
18572 (grub_biosdisk_iterate): Likewise.
18573 (grub_biosdisk_open): Likewise.
18574 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
18575 (grub_biosdisk_rw): Support reading from cd device.
18576 (GRUB_MOD_INIT): Iterate cd devices.
18578 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
18579 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
18580 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
18582 * kern/i386/pc/init.c (make_install_device): Check for cd device.
18584 2008-02-02 Robert Millan <rmh@aybabtu.com>
18586 * commands/read.c: New file.
18587 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
18588 (read_mod_SOURCES): New variable.
18589 (read_mod_CFLAGS): Likewise.
18590 (read_mod_LDFLAGS): Likewise.
18592 2008-02-02 Robert Millan <rmh@aybabtu.com>
18594 * normal/main.c (grub_normal_execute): Check for `menu->size' when
18595 determining whether menu has to be displayed.
18597 2008-02-02 Marco Gerards <marco@gnu.org>
18599 * bus/pci.c: New file.
18601 * include/grub/pci.h: Likewise.
18603 * include/grub/i386/pc/pci.h: Likewise.
18605 * commands/lspci.c: Likewise.
18607 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
18609 (pci_mod_SOURCES): New variable.
18610 (pci_mod_CFLAGS): Likewise.
18611 (pci_mod_LDFLAGS): Likewise.
18612 (lspci_mod_SOURCES): Likewise.
18613 (lspci_mod_CFLAGS): Likewise.
18614 (lspci_mod_LDFLAGS): Likewise.
18616 2008-02-02 Bean <bean123ch@gmail.com>
18618 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
18619 (grub_ufs_get_file_block): Fix indirect block calculation problem.
18621 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
18622 (grub_xfs_btree_node): New structure.
18623 (grub_xfs_btree_root): New structure.
18624 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
18625 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
18626 (GRUB_XFS_EXTENT_BLOCK): Likewise.
18627 (GRUB_XFS_EXTENT_SIZE): Likewise.
18628 (grub_xfs_read_block): Support btree format type.
18629 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
18630 Use directory block as basic unit.
18632 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
18634 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
18635 __attribute__ ((__regparm__ (1))).
18637 2008-02-01 Robert Millan <rmh@aybabtu.com>
18639 Correct a mistake in previous commit.
18641 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
18643 (normal/command.c_DEPENDENCIES): New variable.
18645 2008-02-01 Robert Millan <rmh@aybabtu.com>
18647 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
18649 (normal/command.c_DEPENDENCIES): New variable.
18650 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
18651 * conf/i386-ieee1275.rmk: Likewise.
18652 * conf/i386-linuxbios.rmk: Likewise.
18653 * conf/i386-pc.rmk: Likewise.
18654 * conf/sparc64-ieee1275.rmk: Likewise.
18655 * conf/powerpc-ieee1275.rmk: Likewise.
18656 (grub_emu_SOURCES): Add `fs/fshelp.c'.
18658 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
18660 2008-02-01 Robert Millan <rmh@aybabtu.com>
18662 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
18663 call at beginning of function.
18665 2008-01-31 Pavel Roskin <proski@gnu.org>
18667 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
18668 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
18669 (grub_mkrescue_SOURCES): Likewise.
18670 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
18672 2008-01-30 Robert Millan <rmh@aybabtu.com>
18674 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
18675 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
18676 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
18677 (grub_probe_SOURCES): ... to here.
18679 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
18680 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
18681 * conf/i386-ieee1275.rmk: Likewise.
18682 * conf/i386-linuxbios.rmk: Likewise.
18683 * conf/powerpc-ieee1275.rmk: Likewise.
18685 2008-01-30 Tristan Gingold <gingold@free.fr>
18687 * kern/rescue.c: Silently accept empty lines.
18689 2008-01-29 Bean <bean123ch@gmail.com>
18691 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
18692 (real_code_2): Code cleanup and change comment style.
18693 (move_memory): Avoid using 32-bit address mode.
18695 2008-01-29 Bean <bean123ch@gmail.com>
18697 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
18698 (png_mod_SOURCES): New variable.
18699 (png_mod_CFLAGS): Likewise.
18700 (png_mod_LDFLAGS): Likewise.
18702 * video/readers/png.c: New file.
18704 2008-01-28 Robert Millan <rmh@aybabtu.com>
18706 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
18707 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
18708 `ifndef GRUB_MOD_GAP' hack.
18709 * util/elf/grub-mkimage.c (add_segments): Likewise.
18711 2008-01-27 Robert Millan <rmh@aybabtu.com>
18713 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
18714 `GRUB_MOD_GAP' for platforms in which it's not defined.
18715 * util/elf/grub-mkimage.c (add_segments): Likewise.
18717 2008-01-27 Robert Millan <rmh@aybabtu.com>
18719 Get grub-emu to build again (including parallel builds).
18721 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
18723 (util/grub-emu.c_DEPENDENCIES): ... this, ...
18724 (normal/execute.c_DEPENDENCIES): ... this, ...
18725 (grub-emu_DEPENDENCIES): ... and this.
18727 * conf/i386-efi.rmk: Likewise.
18728 * conf/i386-linuxbios.rmk: Likewise.
18729 * conf/i386-ieee1275.rmk: Likewise.
18730 * conf/powerpc-ieee1275.rmk: Likewise.
18731 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
18733 2008-01-27 Robert Millan <rmh@aybabtu.com>
18735 * NEWS: Add a few items.
18737 2008-01-27 Robert Millan <rmh@aybabtu.com>
18739 Fix parallel builds with grub-emu. Based on earlier commit for
18740 grub-probe and grub-setup.
18742 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18743 (util/grub-emu.c_DEPENDENCIES): ... this.
18744 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18745 (util/grub-emu.c_DEPENDENCIES): ... this.
18746 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18747 (util/grub-emu.c_DEPENDENCIES): ... this.
18748 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18749 (util/grub-emu.c_DEPENDENCIES): ... this.
18750 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18751 (util/grub-emu.c_DEPENDENCIES): ... this.
18753 2008-01-27 Pavel Roskin <proski@gnu.org>
18755 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
18756 to create a gap between _end and the modules added to the image
18757 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
18758 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
18759 * util/elf/grub-mkimage.c (add_segments): Likewise.
18761 2008-01-26 Pavel Roskin <proski@gnu.org>
18763 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
18764 just return an error.
18766 2008-01-26 Bean <bean123ch@gmail.com>
18768 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
18769 (grub_reiserfs_get_item): Save offset of the next item.
18770 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
18772 2008-01-25 Robert Millan <rmh@aybabtu.com>
18774 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
18775 make all filesystem sources appear together (possibly fixing omissions
18777 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18778 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18779 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18780 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18782 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
18784 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
18785 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
18786 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
18787 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
18789 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
18790 (probe): Add a sanity check to make sure of our ability to read
18791 requested files when probing for filesystem type.
18793 * genmk.rb: Update copyright year (2007).
18795 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
18796 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
18797 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
18798 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
18799 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
18800 : Remove function prototypes.
18802 2008-01-25 Robert Millan <rmh@aybabtu.com>
18804 Revert my previous commits (based on wrong assumption of how grub_errno
18807 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
18808 * kern/file.c (grub_file_open): Likewise.
18810 2008-01-24 Pavel Roskin <proski@gnu.org>
18812 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
18813 that hang if GRUB tries to setup colors.
18814 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
18815 colors for firmwares that don't support it.
18816 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
18817 Recognize Open Hack'Ware, set flags to work around its
18820 2008-01-24 Robert Millan <rmh@aybabtu.com>
18822 * kern/file.c (grub_file_open): Do not account previous failures of
18823 unrelated functions when grub_errno is checked for.
18824 Reported by Oleg Strikov.
18826 2008-01-24 Bean <bean123ch@gmail.com>
18828 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
18829 (grub_ufs_sblock): New member volume name.
18830 (grub_ufs_find_file): Fix string copy bug.
18831 (grub_ufs_label): Implement this function properly.
18833 * fs/hfs.c (grub_hfs_cnid_type): New enum.
18834 (grub_hfs_iterate_records): Use the correct file number for extents
18835 and catalog file. Fix problem in next index calculation.
18836 (grub_hfs_find_node): Replace recursive function call with loop.
18837 (grub_hfs_iterate_dir): Replace recursive function call with loop.
18839 2008-01-23 Robert Millan <rmh@aybabtu.com>
18841 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
18842 `<grub/symbol.h>' and `<grub/multiboot.h>'.
18843 (grub_multiboot2_real_boot): New function prototype.
18845 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
18846 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
18848 * kern/i386/ieee1275/init.c (grub_os_area_addr)
18849 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
18851 2008-01-23 Robert Millan <rmh@aybabtu.com>
18853 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
18854 #ifdef'ed out grub_printf().
18856 2008-01-23 Robert Millan <rmh@aybabtu.com>
18858 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
18859 grub_dprintf calls, since they make "debug=all" mode unusable.
18860 (grub_console_checkkey): Likewise.
18862 2008-01-23 Robert Millan <rmh@aybabtu.com>
18864 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
18865 `term/i386/pc/at_keyboard.c'.
18866 (pkglib_MODULES): Add `serial.mod'.
18867 (serial_mod_SOURCES): New variable.
18868 (serial_mod_CFLAGS): Likewise.
18869 (serial_mod_LDFLAGS): Likewise.
18871 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
18872 `<grub/powerpc/ieee1275/console.h>'.
18873 (grub_keyboard_controller_init): New function prototype.
18874 (grub_console_checkkey): Likewise.
18875 (grub_console_getkey): Likewise.
18877 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
18880 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
18881 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
18883 2008-01-23 Robert Millan <rmh@aybabtu.com>
18885 * kern/i386/pc/init.c (make_install_device): When memdisk image is
18886 present, "(memdisk)/boot/grub" becomes the default prefix.
18888 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
18889 a memdisk tarball with all the modules. Add --overlay=DIR option that
18890 allows users to overlay additional files into the image.
18892 2008-01-23 Robert Millan <rmh@aybabtu.com>
18894 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
18895 and `machine/memory.h'.
18896 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
18897 (_multiboot_mod_SOURCES): New variable.
18898 (_multiboot_mod_CFLAGS): Likewise.
18899 (_multiboot_mod_LDFLAGS): Likewise.
18900 (multiboot_mod_SOURCES): Likewise.
18901 (multiboot_mod_CFLAGS): Likewise.
18902 (multiboot_mod_LDFLAGS): Likewise.
18904 * include/grub/i386/ieee1275/loader.h: New file.
18906 * include/grub/i386/ieee1275/machine.h: Likewise.
18908 * include/grub/i386/ieee1275/memory.h: Likewise.
18910 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
18911 variable declaration.
18912 (grub_os_area_size): Likewise.
18914 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
18915 (grub_lower_mem, grub_upper_mem): New variables.
18916 (grub_stop_floppy): New function (just to make
18917 grub_multiboot2_real_boot() happy).
18919 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
18920 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
18921 (grub_stop): New function.
18922 Include `"../realmode.S"' and `"../loader.S"'.
18924 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
18925 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
18927 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
18928 rely on grub_multiboot2_real_boot() for final boot.
18930 2008-01-22 Robert Millan <rmh@aybabtu.com>
18932 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
18933 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
18934 device that doesn't look like an SD card.
18935 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
18936 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
18937 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
18938 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
18941 2008-01-22 Robert Millan <rmh@aybabtu.com>
18943 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
18944 avoid claiming over our own code.
18946 2008-01-22 Bean <bean123ch@gmail.com>
18948 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
18949 (jpeg_mod_SOURCES): New variable.
18950 (jpeg_mod_CFLAGS): Likewise.
18951 (jpeg_mod_LDFLAGS): Likewise.
18953 * video/readers/jpeg.c : New file.
18955 2008-01-22 Bean <bean123ch@gmail.com>
18957 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
18958 there are no more items.
18960 2008-01-21 Robert Millan <rmh@aybabtu.com>
18962 * kern/mm.c (grub_mm_init_region): Improve debug message.
18964 2008-01-21 Robert Millan <rmh@aybabtu.com>
18966 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
18967 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
18969 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
18971 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
18972 Indicates start of upper memory.
18973 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
18974 (generate_image): Abort when image size is big enough to corrupt
18977 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
18978 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
18979 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
18980 instead of hardcoding 0xA0000.
18981 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
18982 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
18983 instead of hardcoding 0xA0000.
18985 2008-01-21 Robert Millan <rmh@aybabtu.com>
18987 * disk/memdisk.c (memdisk_size): New variable.
18988 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
18990 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
18991 image to dynamic memory.
18992 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
18993 `memdisk_size'. Free memdisk block.
18995 2008-01-21 Robert Millan <rmh@aybabtu.com>
18997 Fix detection of very small filesystems (like tar).
18999 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
19000 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
19001 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
19002 a problem with this disk).
19004 2008-01-21 Robert Millan <rmh@aybabtu.com>
19006 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
19007 on grub_biosdisk_rw_standard() error.
19009 2008-01-21 Robert Millan <rmh@aybabtu.com>
19011 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
19013 * kern/elf.c: Likewise.
19014 * kern/ieee1275/ieee1275.c: Likewise.
19015 * kern/powerpc/ieee1275/openfw.c: Likewise.
19016 * term/ieee1275/ofconsole.c: Likewise.
19018 2008-01-21 Robert Millan <rmh@aybabtu.com>
19020 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
19022 * include/grub/kernel.h (grub_arch_memdisk_addr)
19023 (grub_arch_memdisk_size): Moved from here ...
19025 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
19026 (grub_arch_memdisk_size): ... to here.
19028 2008-01-21 Robert Millan <rmh@aybabtu.com>
19030 Mostly based on bugfix from Bean.
19032 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
19033 attribute with hook() parameter.
19034 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
19036 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
19037 attribute with hook() parameter.
19038 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
19041 2008-01-21 Robert Millan <rmh@aybabtu.com>
19043 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
19044 (pkglib_MODULES): Add `memdisk.mod'.
19045 (memdisk_mod_SOURCES): New variable.
19046 (memdisk_mod_CFLAGS): Likewise.
19047 (memdisk_mod_LDFLAGS): Likewise.
19049 * disk/memdisk.c: New file.
19051 * include/grub/disk.h (grub_disk_dev_id): Add
19052 `GRUB_DISK_DEVICE_MEMDISK_ID'.
19054 * include/grub/i386/pc/kernel.h
19055 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
19056 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
19057 (grub_kernel_image_size): New variable declaration.
19058 (grub_total_module_size): Likewise.
19059 (grub_memdisk_image_size): Likewise.
19061 * include/grub/i386/pc/memory.h
19062 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
19064 * include/grub/kernel.h: Include `<grub/symbol.h>'.
19065 (grub_arch_memdisk_addr): New variable declaration.
19066 (grub_arch_memdisk_size): Likewise.
19068 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
19069 (grub_arch_memdisk_size): Likewise.
19071 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
19072 (codestart): Replace hardcoded `0x100000' with
19073 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
19075 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
19076 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
19077 not NULL, append the contents of the file it refers to, at the end of
19078 the compressed kernel image. Initialize `grub_memdisk_image_size'
19079 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
19080 (options): Add "memdisk"|'m' option.
19081 (main): Parse --memdisk|-m option, and pass user-provided path as
19082 parameter to generate_image().
19084 2008-01-20 Robert Millan <rmh@aybabtu.com>
19086 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
19087 grub_dprintf() calls from here ...
19088 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
19090 2008-01-20 Robert Millan <rmh@aybabtu.com>
19092 Fix detection of "real mode" when /options/real-mode? doesn't exist.
19094 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
19096 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
19097 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
19098 `GRUB_IEEE1275_FLAG_REAL_MODE'.
19099 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
19101 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
19102 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
19104 2008-01-19 Robert Millan <rmh@aybabtu.com>
19106 Get rid of confusing function (superseded by
19107 `grub_ieee1275_get_integer_property')
19108 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
19110 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
19112 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
19113 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
19114 in native endianness from grub_ieee1275_get_integer_property().
19116 2008-01-19 Robert Millan <rmh@aybabtu.com>
19118 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
19119 command after "shut-down", since implementations differ on which
19120 the command for halt is.
19122 2008-01-19 Robert Millan <rmh@aybabtu.com>
19124 * include/grub/i386/linuxbios/console.h: Add header protection.
19125 (grub_keyboard_controller_init): New function prototype.
19126 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
19127 (KEYBOARD_COMMAND_READ): Likewise.
19128 (KEYBOARD_COMMAND_WRITE): Likewise.
19129 (KEYBOARD_SCANCODE_SET1): Likewise.
19130 (grub_keyboard_controller_write): New function.
19131 (grub_keyboard_controller_read): Likewise.
19132 (grub_keyboard_controller_init): Likewise.
19134 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
19135 (grub_console_init): On coreboot/LinuxBIOS, call
19136 grub_keyboard_controller_init().
19138 2008-01-19 Robert Millan <rmh@aybabtu.com>
19140 PowerPC changes provided by Pavel Roskin.
19142 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
19143 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
19144 don't rely on cmain() doing it.
19145 * kern/i386/ieee1275/startup.S (_start): Store %eax in
19146 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
19148 2008-01-16 Robert Millan <rmh@aybabtu.com>
19150 * include/grub/i386/linuxbios/memory.h
19151 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
19152 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
19153 receive `table_header' as argument. Instead, probe for it in the
19154 known memory ranges where it can be present.
19155 (grub_available_iterate): Do not pass a fixed `table_header' address
19156 to grub_linuxbios_table_iterate().
19158 2008-01-15 Robert Millan <rmh@aybabtu.com>
19160 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
19161 * conf/i386-ieee1275.rmk: New file.
19162 * include/grub/i386/ieee1275/console.h: Likewise.
19163 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
19164 * include/grub/i386/ieee1275/kernel.h: Likewise.
19165 * include/grub/i386/ieee1275/time.h: Likewise.
19166 * kern/i386/ieee1275/init.c: Likewise.
19167 * kern/i386/ieee1275/startup.S: Likewise.
19169 2008-01-15 Robert Millan <rmh@aybabtu.com>
19171 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
19172 when pointers are 32-bit (but still do set it to one when they are
19175 2008-01-15 Robert Millan <rmh@aybabtu.com>
19177 * include/grub/ieee1275/ieee1275.h
19178 (grub_ieee1275_get_integer_property): New function prototype.
19180 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
19181 (grub_ieee1275_get_integer_property): New function. Wraps around
19182 grub_ieee1275_get_property() to handle endianness.
19184 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
19185 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
19187 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
19188 (grub_map): Likewise.
19189 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
19191 2008-01-15 Bean <bean123ch@gmail.com>
19193 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
19194 (grub_script_execute_cmdline): Reset grub_errno.
19196 * normal/main.c (read_config_file): Reset grub_errno.
19198 * normal/parse.y (script_init): New.
19199 (script): Move function and menuentry here.
19201 (command): Add delimiter at the end of command.
19202 (commands): Adjust to match the new command.
19203 (commandblock): Remove grub_script_lexer_record_start.
19204 (menuentry): Add grub_script_lexer_record_start, use the new commands.
19205 (if): Use the new commands.
19207 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
19209 2008-01-15 Robert Millan <rmh@aybabtu.com>
19211 * normal/menu.c (run_menu): Move timeout message from here ...
19212 (print_timeout): ... to here.
19213 (run_menu): Use print_timeout() once during initial draw to print
19214 the whole message, and again in every clock tick to update only
19215 the number of seconds.
19217 2008-01-15 Robert Millan <rmh@aybabtu.com>
19219 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
19220 actual size of `available' from grub_ieee1275_get_property(), and
19221 restrict parsing to that bound.
19223 2008-01-15 Christian Franke <franke@computer.org>
19225 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
19226 (argp_program_version): Remove variable.
19227 (argp_program_bug_address): Likewise.
19228 (options): Convert from struct argp_option to struct option.
19229 (struct arguments): Remove.
19230 (parse_opt): Remove.
19231 (usage): New function.
19232 (main): Replace struct args members by simple variables.
19233 Replace argp_parse() by getopt_long().
19234 Add switch to evaluate options.
19235 Add missing "(...)" around root_dev in prefix string.
19237 2008-01-14 Robert Millan <rmh@aybabtu.com>
19239 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
19240 for grub_ieee1275_exit(), in order to improve portability.
19242 2008-01-14 Robert Millan <rmh@aybabtu.com>
19244 * util/grub.d/10_linux.in (prefix): Define.
19245 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
19247 2008-01-13 Pavel Roskin <proski@gnu.org>
19249 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
19250 grub_errno if no errors have been detected.
19252 2008-01-12 Robert Millan <rmh@aybabtu.com>
19254 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
19255 (grub_util_get_dev_abstraction): New function prototype.
19257 * util/getroot.c: Include `<grub/util/getroot.h>'
19258 (grub_util_get_grub_dev): Move detection of abstraction type to ...
19259 (grub_util_get_dev_abstraction): ... here (new function).
19261 * util/grub-probe.c: Convert PRINT_* to an enum. Add
19262 `PRINT_ABSTRACTION'.
19263 (probe): Probe for abstraction type when requested.
19264 (main): Understand `--target=abstraction'.
19266 * util/i386/efi/grub-install.in: Add abstraction module to core
19267 image when it is found to be necessary.
19268 * util/i386/pc/grub-install.in: Likewise.
19269 * util/powerpc/ieee1275/grub-install.in: Likewise.
19271 * util/update-grub_lib.in (font_path): Return system path without
19272 converting to GRUB path.
19273 * util/update-grub.in: Convert system path returned by font_path()
19274 to a GRUB path. Use `grub-probe -t abstraction' to determine what
19275 abstraction module is needed for loading fonts (if any). Export
19276 that as `GRUB_PRELOAD_MODULES'.
19277 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
19280 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
19282 Remove some unused code from reiserfs.
19284 * fs/reiserfs.c (struct grub_reiserfs_key)
19285 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
19286 (struct grub_reiserfs_node_body): Removed.
19287 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19289 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19291 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19293 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19295 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19297 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
19299 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19300 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19301 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19303 2008-01-10 Robert Millan <rmh@aybabtu.com>
19305 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
19306 Determines if a file is garbage left by packaging systems, etc.
19307 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
19308 for processing /etc/grub.d scripts.
19309 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
19310 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
19311 as a condition for processing Linux images.
19313 2008-01-10 Pavel Roskin <proski@gnu.org>
19315 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
19316 to compile reiserfs.c on PowerPC.
19318 2008-01-10 Robert Millan <rmh@aybabtu.com>
19320 * kern/device.c (grub_device_iterate): Do not abort device iteration
19321 when one of the devices cannot be opened.
19322 * kern/disk.c (grub_disk_open): Do not account previous failures of
19323 unrelated functions when grub_errno is checked for.
19325 2008-01-08 Robert Millan <rmh@aybabtu.com>
19327 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
19328 `! grub_linux_is_bzimage', change order of address comparison to make
19329 it more intuitive, and improve "too big zImage" error message.
19331 2008-01-08 Robert Millan <rmh@aybabtu.com>
19333 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
19334 `$(update-grub_DATA)'.
19335 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
19338 2008-01-07 Robert Millan <rmh@aybabtu.com>
19340 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
19341 which instruction is modified by grub-setup during installation
19342 (since it wasn't obvious by only looking at this file).
19344 2008-01-07 Robert Millan <rmh@aybabtu.com>
19346 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
19347 listing actual TODO items.
19349 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19351 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
19353 (grub_reiserfs_get_key_offset): Likewise.
19354 (grub_reiserfs_set_key_offset): Likewise.
19355 (grub_reiserfs_set_key_type): Likewise.
19356 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
19358 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
19359 better to remove the bitfield version completely.
19361 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19363 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
19364 allocated from the heap, due to the fshelp implementation.
19365 (grub_reiserfs_dir): Free NODE, due to the same reason.
19367 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19369 Mostly from Vincent Pelletier:
19371 * fs/reiserfs.c: New file.
19373 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
19374 (reiserfs_mod_SOURCES): New variable.
19375 (reiserfs_mod_CFLAGS): Likewise.
19376 (reiserfs_mod_LDFLAGS): Likewise.
19378 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
19379 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
19380 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
19383 2008-01-06 Robert Millan <rmh@aybabtu.com>
19385 * normal/color.c: Remove `<grub/env.h>'.
19387 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
19389 * include/grub/normal.h: Include <grub/env.h>.
19391 2008-01-05 Robert Millan <rmh@aybabtu.com>
19393 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
19394 usage example with `(hd0,1)'.
19395 Reported by Samuel Thibault.
19397 2008-01-05 Robert Millan <rmh@aybabtu.com>
19399 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
19400 (grub_linux_boot_zimage): Rename to ...
19401 (grub_linux_boot): ... this.
19402 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
19403 (grub_linux_boot_zimage): Conditionalize zImage copy.
19405 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
19406 (grub_linux_boot_bzimage): Remove prototype.
19407 (grub_linux_boot_zimage): Rename to ...
19408 (grub_linux_boot): ... this.
19410 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
19411 (grub_linux_boot): Remove function.
19413 2008-01-05 Robert Millan <rmh@aybabtu.com>
19415 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
19416 (grub_env_write_color_highlight): Likewise.
19417 (grub_wait_after_message): Likewise.
19419 * normal/color.c: New file.
19421 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19422 (normal_mod_DEPENDENCIES): Likewise.
19424 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19425 (normal_mod_DEPENDENCIES): Likewise.
19427 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19428 (normal_mod_DEPENDENCIES): Likewise.
19430 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19431 (normal_mod_DEPENDENCIES): Likewise.
19433 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
19434 for waiting after a message is printed.
19435 * normal/main.c (read_config_file): Likewise.
19436 (grub_normal_init): Register grub_env_write_color_normal() and
19437 grub_env_write_color_highlight() hooks. Mark `color_normal' and
19438 `color_highlight' variables as global.
19440 * normal/menu.c (grub_wait_after_message): New function.
19441 (grub_color_menu_normal): New variable. Replaces ...
19442 (GRUB_COLOR_MENU_NORMAL): ... this macro.
19443 (grub_color_menu_highlight): New variable. Replaces ...
19444 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
19445 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
19446 `GRUB_TERM_COLOR_STANDARD'.
19447 (print_message): Use `grub_setcolorstate' to reload colors. Rename
19448 `normal_code' and `highlight_code' to `old_color_normal' and
19449 `old_color_highlight', respectively.
19450 (grub_menu_init_page): Update colors when drawing the menu, based on
19451 `menu_color_normal' and `menu_color_highlight' variables.
19452 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
19453 a message is printed.
19455 2008-01-05 Robert Millan <rmh@aybabtu.com>
19457 * kern/env.c (grub_env_context_open): Propagate hooks for global
19458 variables to new context.
19460 * kern/main.c (grub_set_root_dev): Export `root' variable.
19462 2008-01-05 Robert Millan <rmh@aybabtu.com>
19464 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
19465 discs unconditionally, since udev and others have options to provide
19468 2008-01-05 Robert Millan <rmh@aybabtu.com>
19470 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
19472 2008-01-04 Christian Franke <franke@computer.org>
19474 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
19477 2008-01-03 Pavel Roskin <proski@gnu.org>
19479 * kern/i386/linuxbios/init.c: Put "void" to all function
19480 declarations with no arguments.
19481 * kern/powerpc/ieee1275/init.c: Likewise.
19482 * term/i386/pc/at_keyboard.c: Likewise.
19483 * term/i386/pc/vga_text.c: Likewise.
19484 * util/grub-mkdevicemap.c: Likewise.
19486 2008-01-02 Robert Millan <rmh@aybabtu.com>
19488 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
19489 message when loaded image is out of bounds.
19490 (grub_multiboot_load_elf64): Likewise.
19492 2008-01-02 Pavel Roskin <proski@gnu.org>
19494 * util/grub.d/10_linux.in: Try version without ".old" when
19495 looking for initrd. It's better to use initrd from the newer
19496 kernel of the same version than no initrd at all.
19498 2008-01-01 Robert Millan <rmh@aybabtu.com>
19500 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
19502 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
19504 * include/grub/video.h: Added grub_video_unmap_color and
19505 grub_video_get_active_render_target.
19506 (grub_video_adapter): Added unmap_color and get_active_render_target.
19508 * video/video.c: Added grub_video_unmap_color and
19509 grub_video_get_active_render_target.
19510 (grub_video_get_info): Changed method to accept NULL pointer as an
19511 argument to allow detection of active video adapter.
19513 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
19514 grub_video_vbe_unmap_color_int.
19515 Added grub_video_vbe_unmap_color and
19516 grub_video_vbe_get_active_render_target.
19517 (grub_video_vbe_adapter): Added unmap_color and
19518 get_active_render_target.
19520 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
19521 with grub_video_vbe_unmap_color_int.
19523 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
19524 (DEFAULT_NORMAL_COLOR): Likewise.
19525 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
19526 (DEFAULT_FG_COLOR): Removed.
19527 (DEFAULT_BG_COLOR): Likewise.
19528 (DEFAULT_CURSOR_COLOR): Changed value.
19529 (grub_virtual_screen): Added standard_color_setting,
19530 normal_color_setting, highlight_color_setting and term_color.
19531 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
19532 (bitmap_width): Added.
19533 (bitmap_height): Likewise.
19534 (bitmap): Likewise.
19535 (set_term_color): Likewise.
19536 (grub_virtual_screen_setup): Changed to use new terminal coloring
19538 (grub_gfxterm_init): Added init for bitmap.
19539 (grub_gfxterm_fini): Added destroy for bitmap.
19540 (redraw_screen_rect): Updated to use background bitmap and new
19542 (scroll_up): Added optimization for case when there is no bitmap.
19543 (grub_gfxterm_cls): Fixed to use correct background color.
19544 (grub_virtual_screen_setcolorstate): Changed to use new terminal
19546 (grub_virtual_screen_setcolor): Likewise.
19547 (grub_virtual_screen_getcolor): Added.
19548 (grub_gfxterm_background_image_cmd): Likewise.
19549 (grub_video_term): Added setcolor and getcolor.
19550 (MOD_INIT): Added registration of background_image command.
19551 (MOD_TERM): Added unregistration for background_image command.
19553 2007-12-30 Pavel Roskin <proski@gnu.org>
19555 * loader/multiboot_loader.c: Fix multiboot command
19556 unregistration. Fix all typos in the word "multiboot".
19558 2007-12-29 Pavel Roskin <proski@gnu.org>
19560 * util/grub.d/10_linux.in: Refactor search for initrd. Add
19561 support for initrd names used in Fedora.
19563 2007-12-26 Bean <bean123ch@gmail.com>
19565 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
19566 (cpio_mod_SOURCES): New variable.
19567 (cpio_mod_CFLAGS): Likewise.
19568 (cpio_mod_LDFLAGS): Likewise.
19570 * fs/cpio.c: New file.
19572 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
19574 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19576 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19578 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19580 2007-12-25 Robert Millan <rmh@aybabtu.com>
19582 * include/grub/term.h (struct grub_term): Add `getcolor' function.
19583 (grub_getcolor): New function.
19585 * kern/term.c (grub_getcolor): New function.
19586 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
19587 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
19588 (print_entry): Set normal and highlight colors to
19589 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
19590 respectively, before printing and restore them to old
19592 (grub_menu_init_page): Likewise. Fill an additional colored space
19593 that would otherwise be left blank.
19595 * term/efi/console.c (grub_console_getcolor): New function.
19596 (struct grub_console_term.getcolor): New variable.
19597 * term/i386/pc/console.c (grub_console_getcolor): New function.
19598 (struct grub_console_term.getcolor): New variable.
19599 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
19600 (struct grub_console_term.getcolor): New variable.
19602 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
19603 (struct grub_console_term.setcolor): Remove variable.
19604 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
19605 (struct grub_console_term.setcolor): Remove variable.
19606 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
19607 (struct grub_console_term.setcolor): Remove variable.
19608 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
19609 (struct grub_console_term.setcolor): Remove variable.
19611 2007-12-25 Robert Millan <rmh@aybabtu.com>
19613 * configure.ac: Search for possible unifont.hex locations, and
19614 define UNIFONT_HEX if found.
19616 * Makefile.in (UNIFONT_HEX): Define variable.
19617 (DATA): Rename to ...
19618 (PKGLIB): ... this. Update all users.
19619 (PKGDATA): New variable.
19620 (pkgdata_IMAGES): Rename to ...
19621 (pkglib_IMAGES): ... this. Update all users.
19622 (pkgdata_MODULES): Rename to ...
19623 (pkglib_MODULES): ... this. Update all users.
19624 (pkgdata_PROGRAMS): Rename to ...
19625 (pkglib_PROGRAMS): ... this. Update all users.
19626 (pkgdata_DATA): Rename to ...
19627 (pkglib_DATA): ... this. Update all users.
19628 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
19629 (unicode.pff, ascii.pff): New rules.
19630 (all-local): Add `$(PKGDATA)' dependency.
19631 (install-local): Process `$(PKGDATA)'.
19633 * util/update-grub_lib.in (font_path): Search for *.pff files in
19634 a few more locations, including `${pkgdata}'.
19636 2007-12-23 Robert Millan <rmh@aybabtu.com>
19638 Patch from Bean <bean123ch@gmail.com>:
19639 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
19642 2007-12-21 Bean <bean123ch@gmail.com>
19644 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
19645 (ntfscomp_mod_SOURCES): New variable.
19646 (ntfscomp_mod_CFLAGS): Likewise.
19647 (ntfscomp_mod_LDFLAGS): Likewise.
19649 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
19650 (grub_probe_SOURCES): Likewise.
19651 (grub_emu_SOURCES): Likewise.
19653 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19654 (grub_emu_SOURCES): Likewise.
19656 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19657 (grub_emu_SOURCES): Likewise.
19659 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19660 (grub_emu_SOURCES): Likewise.
19662 * fs/ntfs.c (grub_ntfscomp_func): New variable.
19663 (read_run_list): Renamed to grub_ntfs_read_run_list.
19664 (decomp_nextvcn): Moved to ntfscomp.c.
19665 (decomp_getch): Likewise.
19666 (decomp_get16): Likewise.
19667 (decomp_block): Likewise.
19668 (read_block): Likewise.
19669 (read_data): Partially moved to ntfscomp.c.
19670 (fixup): Change unsigned to grub_uint16_t.
19671 (read_mft): Change unsigned long to grub_uint32_t.
19672 (read_attr): Likewise.
19673 (read_data): Likewise.
19674 (read_run_data): Likewise.
19675 (read_run_list): Likewise.
19676 (read_mft): Likewise.
19678 * fs/ntfscomp.c: New file.
19680 * include/grub/ntfs.h: New file.
19682 2007-12-16 Robert Millan <rmh@aybabtu.com>
19684 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
19685 IDE disk check, since Linux is known to support 20 IDE disks.
19686 Reported by Colin Watson.
19688 2007-12-15 Bean <bean123ch@gmail.com>
19690 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
19691 (lnxboot_img_SOURCES): New variable.
19692 (lnxboot_img_ASFLAGS): Likewise.
19693 (lnxboot_img_LDFLAGS): Likewise.
19695 * boot/i386/pc/lnxboot.S: New file.
19697 2007-11-24 Pavel Roskin <proski@gnu.org>
19699 * configure.ac: Test if '--build-id=none' is supported by the
19700 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
19701 objcopy to generate incorrect binary files (binutils
19702 2.17.50.0.18-1 as shipped by Fedora 8).
19703 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
19704 linking, so that build ID doesn't break the test.
19706 2007-11-24 Pavel Roskin <proski@gnu.org>
19708 * include/grub/i386/time.h: use "void" in the argument list
19709 of grub_cpu_idle().
19710 * include/grub/powerpc/time.h: Likewise.
19711 * include/grub/sparc64/time.h: Likewise.
19713 2007-11-18 Christian Franke <franke@computer.org>
19715 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
19716 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
19717 This fixes the problem that function keys did not work in grub-emu.
19719 2007-11-18 Christian Franke <franke@computer.org>
19721 * disk/host.c (grub_host_open): Remove attribute unused from
19722 name parameter. Add check for "host". This fixes the problem
19723 that grub-emu does not find partitions.
19725 2007-11-18 Christian Franke <franke@computer.org>
19727 * util/hostfs.c (is_dir): New function.
19728 (grub_hostfs_dir): Handle missing dirent.d_type case.
19729 (grub_hostfs_read): Add missing fseek().
19730 (grub_hostfs_label): Clear label pointer. This fixes a crash
19731 of grub-emu on "ls (host)".
19733 2007-11-18 Christian Franke <franke@computer.org>
19735 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
19736 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
19737 to 64 bit boundary by default.
19739 2007-11-18 Bean <bean123ch@gmail.com>
19741 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
19742 (hexdump_mod_SOURCES): New variable.
19743 (hexdump_mod_CFLAGS): Likewise.
19744 (hexdump_mod_LDFLAGS): Likewise.
19746 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19748 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19750 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19752 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19754 * include/grub/hexdump.h: New file.
19756 * commands/hexdump.c: New file.
19758 2007-11-10 Robert Millan <rmh@aybabtu.com>
19760 * commands/i386/pc/play.c (beep_off): Switch order of arguments
19761 in grub_outb() calls.
19762 (beep_on): Likewise.
19764 2007-11-10 Christian Franke <franke@computer.org>
19766 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
19767 (grub_menu_run): Likewise.
19769 2007-11-10 Robert Millan <rmh@aybabtu.com>
19771 * include/grub/i386/efi/machine.h: New file.
19772 * include/grub/i386/linuxbios/machine.h: Likewise.
19773 * include/grub/i386/pc/machine.h: Likewise.
19774 * include/grub/powerpc/ieee1275/machine.h: Likewise.
19775 * include/grub/sparc64/ieee1275/machine.h: Likewise.
19777 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
19778 (serial_hw_io_addr): New variable.
19779 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
19780 instead of `(unsigned short *) 0x400'.
19782 2007-11-10 Bean <bean123ch@gmail.com>
19784 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
19786 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
19788 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
19789 (vga_mod_SOURCES): Added.
19790 (vga_mod_CFLAGS): Likewise.
19791 (vga_mod_LDFLAGS): Likewise.
19793 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
19795 (set_map_mask): Likewise.
19796 (set_read_map): Likewise.
19797 (set_read_address): Likewise.
19798 (vga_font): Removed variable.
19799 (get_vga_glyph): Removed function.
19800 (invalidate_char): Likewise.
19801 (write_char): Changed to use grub_font_get_glyph() for font
19803 (grub_vga_putchar): Likewise.
19804 (grub_vga_getcharwidth): Likewise.
19806 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
19808 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
19810 (pxeboot_img_LDFLAGS): Likewise.
19811 (diskboot_img_LDFLAGS): Likewise.
19812 (kernel_img_LDFLAGS): Likewise.
19814 2007-11-06 Robert Millan <rmh@aybabtu.com>
19816 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
19817 in grub_outb() calls.
19818 (serial_hw_init): Likewise.
19820 2007-11-05 Robert Millan <rmh@aybabtu.com>
19822 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
19823 spaces. Skip non-regular files.
19825 2007-11-05 Robert Millan <rmh@aybabtu.com>
19827 * kern/disk.c (grub_disk_firmware_fini)
19828 (grub_disk_firmware_is_tainted): New variables.
19830 * include/grub/disk.h (grub_disk_firmware_fini)
19831 (grub_disk_firmware_is_tainted): Likewise.
19833 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
19834 (grub_disk_biosdisk_fini): ... to here.
19835 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
19836 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
19837 is set. Register grub_disk_biosdisk_fini() in
19838 `grub_disk_firmware_fini'.
19840 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
19841 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
19842 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
19843 to finish existing firmware disk interface.
19845 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
19846 (ata_mod_SOURCES): New variable.
19847 (ata_mod_CFLAGS): Likewise.
19848 (ata_mod_LDFLAGS): Likewise.
19850 2007-11-05 Robert Millan <rmh@aybabtu.com>
19852 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
19853 (grub_ata_wait): Reimplement using grub_millisleep().
19855 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
19856 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
19858 2007-11-03 Marco Gerards <marco@gnu.org>
19860 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
19861 (CRTC_ADDR_PORT): New macro.
19862 (CRTC_DATA_PORT): Likewise.
19863 (CRTC_CURSOR): Likewise.
19864 (CRTC_CURSOR_ADDR_HIGH): Likewise.
19865 (CRTC_CURSOR_ADDR_LOW): Likewise.
19866 (update_cursor): New function.
19867 (grub_console_real_putchar): Call `update_cursor'.
19868 (grub_console_gotoxy): Likewise.
19869 (grub_console_cls): Set the default color when clearing the
19871 (grub_console_setcursor): Implemented.
19873 2007-11-03 Marco Gerards <marco@gnu.org>
19875 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
19877 (grub_ata_pio_write): Likewise.
19879 (grub_atapi_identify): Wait after issuing an ATA command.
19880 (grub_atapi_packet): Likewise.
19881 (grub_ata_identify): Likewise.
19882 (grub_ata_readwrite): Likewise.
19884 2007-11-03 Marco Gerards <marco@gnu.org>
19886 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
19887 (grub_ata_pio_write): Likewise.
19888 (grub_ata_readwrite): Use `grub_error', instead of
19889 returning `grub_errno'.
19891 2007-11-03 Marco Gerards <marco@gnu.org>
19893 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
19894 grub_ata_pio_write once for every single sector, instead of for
19897 2007-10-31 Robert Millan <rmh@aybabtu.com>
19899 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
19901 * conf/i386-linuxbios.rmk: New file.
19903 * kern/i386/pc/hardware.c: Likewise.
19904 * term/i386/pc/at_keyboard.c: Likewise.
19905 * term/i386/pc/vga_text.c: Likewise.
19907 * include/grub/i386/linuxbios/boot.h: Likewise.
19908 * include/grub/i386/linuxbios/console.h: Likewise.
19909 * include/grub/i386/linuxbios/init.h: Likewise.
19910 * include/grub/i386/linuxbios/kernel.h: Likewise.
19911 * include/grub/i386/linuxbios/loader.h: Likewise.
19912 * include/grub/i386/linuxbios/memory.h: Likewise.
19913 * include/grub/i386/linuxbios/serial.h: Likewise.
19914 * include/grub/i386/linuxbios/time.h: Likewise.
19916 * kern/i386/linuxbios/init.c: Likewise.
19917 * kern/i386/linuxbios/startup.S: Likewise.
19918 * kern/i386/linuxbios/table.c: Likewise.
19920 2007-10-31 Marco Gerards <marco@gnu.org>
19922 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
19923 (ata_mod_SOURCES): New variable.
19924 (ata_mod_CFLAGS): Likewise.
19925 (ata_mod_LDFLAGS): Likewise.
19927 * disk/ata.c: New file.
19929 * include/grub/disk.h (grub_disk_dev_id): Add
19930 `GRUB_DISK_DEV_ATA_ID'.
19932 2007-10-31 Robert Millan <rmh@aybabtu.com>
19934 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
19935 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
19937 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
19938 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
19940 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
19943 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
19945 2007-10-27 Robert Millan <rmh@aybabtu.com>
19947 * include/grub/types.h (ULONG_MAX): Define macro.
19949 2007-10-22 Robert Millan <rmh@aybabtu.com>
19951 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
19953 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
19955 2007-10-22 Robert Millan <rmh@aybabtu.com>
19957 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
19958 (pkgdata_MODULES): Add `biosdisk.mod'.
19959 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
19962 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
19963 (grub_biosdisk_init): Replace with ...
19964 (GRUB_MOD_INIT(biosdisk)): ... this.
19965 (grub_biosdisk_fini): Replace with ...
19966 (GRUB_MOD_FINI(biosdisk)): ... this.
19968 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
19969 (grub_machine_init): Remove call to grub_biosdisk_init().
19970 (grub_machine_fini): Remove call to grub_machine_fini().
19972 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
19974 2007-10-22 Robert Millan <rmh@aybabtu.com>
19976 * include/grub/time.h: New file.
19977 * include/grub/i386/time.h: Likewise.
19978 * include/grub/powerpc/time.h: Likewise.
19979 * include/grub/sparc64/time.h: Likewise.
19981 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
19983 (KERNEL_MACHINE_TIME_HEADER): ... this.
19984 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
19986 (KERNEL_MACHINE_TIME_HEADER): ... this.
19987 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
19989 (KERNEL_MACHINE_TIME_HEADER): ... this.
19991 * kern/i386/efi/init.c: Include `<grub/time.h>'.
19992 (grub_millisleep): New function.
19993 * kern/i386/pc/init.c: Include `<grub/time.h>'.
19994 (grub_millisleep): New function.
19995 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
19996 Remove `grub/machine/time.h' include.
19997 (grub_millisleep): New function.
19998 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
19999 Remove `grub/machine/time.h' include.
20000 (grub_millisleep): New function.
20002 * include/grub/misc.h (grub_div_roundup): New function.
20004 * kern/misc.c: Include `<grub/time.h>'.
20005 (grub_millisleep_generic): New function.
20007 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
20009 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
20011 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
20012 `machine/time.h'. Add `time.h'.
20013 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
20015 2007-10-21 Robert Millan <rmh@aybabtu.com>
20017 * include/grub/misc.h (grub_max): New function.
20019 2007-10-21 Robert Millan <rmh@aybabtu.com>
20021 * util/misc.c (grub_util_info): Call fflush() before returning.
20023 2007-10-20 Robert Millan <rmh@aybabtu.com>
20025 * genmk.rb (Image): Copy `extra_flags' from here ...
20026 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
20028 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
20029 to `argc' and `args' arguments.
20031 2007-10-17 Robert Millan <rmh@aybabtu.com>
20033 * kern/i386/loader.S: New file.
20035 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
20036 * kern/i386/loader.S (grub_linux_prot_size)... to here.
20037 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
20038 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
20039 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
20040 * kern/i386/loader.S (grub_linux_real_addr)... to here.
20041 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
20042 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
20043 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
20044 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
20045 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
20046 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
20047 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
20048 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
20050 * kern/i386/realmode.S: New file.
20052 * kern/i386/pc/startup.S (protstack): Moved from here ...
20053 * kern/i386/realmode.S (protstack)... to here.
20054 * kern/i386/pc/startup.S (gdt): Moved from here ...
20055 * kern/i386/realmode.S (gdt)... to here.
20056 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
20057 * kern/i386/realmode.S (prot_to_real)... to here.
20059 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
20060 `kern/i386/realmode.S'.
20062 2007-10-17 Robert Millan <rmh@aybabtu.com>
20064 * include/grub/i386/loader.h: New file.
20066 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
20067 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20068 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20069 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20070 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
20071 * include/grub/i386/loader.h (grub_linux_prot_size)
20072 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20073 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20074 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20075 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
20077 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
20079 2007-10-15 Robert Millan <rmh@aybabtu.com>
20081 * normal/misc.c (grub_normal_print_device_info): Do not probe for
20082 filesystem when dev->disk is unset.
20083 Do probe for filesystem even when dev->disk->has_partitions is set.
20084 In case a filesystem is found, always report it.
20085 In case it isn't, if dev->disk->has_partitions is set, report that
20086 a partition table was found instead of reporting that no filesystem
20087 could be identified.
20089 2007-10-12 Robert Millan <rmh@aybabtu.com>
20091 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
20092 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
20094 * include/grub/types.h (grub_host_to_target16): New macro.
20095 (grub_host_to_target32): Likewise.
20096 (grub_host_to_target64): Likewise.
20097 (grub_target_to_host16): Likewise.
20098 (grub_target_to_host32): Likewise.
20099 (grub_target_to_host64): Likewise.
20101 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
20102 Renamed from to ...
20103 (GRUB_MOD_ALIGN): ...this. Update all users.
20105 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
20106 grub_host_to_target32.
20107 Replace grub_be_to_cpu32 with grub_target_to_host32.
20108 (load_modules): Likewise.
20109 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
20110 Replace grub_be_to_cpu32 with grub_target_to_host32.
20111 Replace grub_cpu_to_be16 with grub_host_to_target16.
20112 Replace grub_cpu_to_be32 grub_host_to_target32.
20114 2007-10-12 Robert Millan <rmh@aybabtu.com>
20116 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
20117 * util/elf/grub-mkimage.c: ... here.
20119 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
20120 `util/powerpc/ieee1275/grub-mkimage.c'.
20122 2007-10-07 Robert Millan <rmh@aybabtu.com>
20124 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
20125 and make it easier to figure out.
20126 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
20127 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
20128 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
20129 leave us with less than HEAP_MIN_SIZE total heap.
20130 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
20132 2007-10-03 Robert Millan <rmh@aybabtu.com>
20134 * include/grub/i386/io.h: New file.
20135 * commands/i386/pc/play.c (inb): Removed.
20137 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20139 * term/i386/pc/serial.c (inb): Removed.
20141 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20143 * term/i386/pc/vga.c (inb): Removed.
20145 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20148 2007-10-02 Robert Millan <rmh@aybabtu.com>
20150 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
20151 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20152 Reported by Marcin Kurek.
20154 2007-09-07 Robert Millan <rmh@aybabtu.com>
20156 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
20157 SmartFirmware version updates (as released by Sven Luther), and avoid
20158 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
20159 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
20162 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20164 From Hitoshi Ozeki:
20165 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
20166 when merging two regions.
20168 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20170 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
20171 * normal/completion.c (grub_normal_do_completion): Likewise.
20172 Reported by Hitoshi Ozeki.
20174 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20176 Do not use devices at boot in chainloading.
20178 * loader/i386/pc/chainloader.c (boot_drive): New variable.
20179 (boot_part_addr): Likewise.
20180 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
20181 with BOOT_DRIVE and BOOT_PART_ADDR.
20182 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
20183 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
20185 2007-08-29 Robert Millan <rmh@aybabtu.com>
20187 Patch from Simon Peter <dn.tlp@gmx.net>:
20188 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
20189 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
20190 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
20191 util/i386/pc/grub-setup.c_DEPENDENCIES.
20192 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
20193 util/grub-probe.c_DEPENDENCIES.
20194 * conf/powerpc-ieee1275.rmk: Likewise.
20196 2007-08-28 Robert Millan <rmh@aybabtu.com>
20198 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
20199 to tell grub-mkdevicemap how to name devices.
20200 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
20203 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
20204 util/i386/get_disk_name.c.
20205 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
20206 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
20207 util/ieee1275/get_disk_name.c.
20209 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
20211 * DISTLIST: Add util/i386/get_disk_name.c and
20212 util/ieee1275/get_disk_name.c.
20214 * util/grub-mkdevicemap.c: Replace device naming logic with
20215 grub_util_get_disk_name() calls.
20217 2007-08-20 Robert Millan <rmh@aybabtu.com>
20219 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
20220 (so that it works for both plural and singular quantities).
20222 2007-08-05 Robert Millan <rmh@aybabtu.com>
20224 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
20225 so that [xz] isn't taken into account when determining order.
20227 2007-08-02 Marco Gerards <marco@gnu.org>
20229 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
20230 `include/multiboot2.h', `include/grub/elfload.h',
20231 `include/multiboot.h', `include/grub/multiboot.h',
20232 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
20233 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
20234 `kern/elf.c', `loader/multiboot_loader.c',
20235 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
20236 `loader/i386/pc/multiboot2.c',
20237 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
20238 `util/i386/pc/grub-mkrescue.in'. Remove
20239 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
20240 `include/grub/i386/pc/util/biosdisk.h' and
20241 `include/grub/powerpc/ieee1275/multiboot.h'.
20243 2007-08-02 Bean <bean123ch@gmail.com>
20245 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
20246 (ntfs_mod_SOURCES): New variable.
20247 (ntfs_mod_CFLAGS): Likewise.
20248 (ntfs_mod_LDFLAGS): Likewise.
20250 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
20251 (grub_probe_SOURCES): Likewise.
20252 (grub_emu_SOURCES): Likewise.
20254 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20255 (grub_emu_SOURCES): Likewise.
20257 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20258 (grub_emu_SOURCES): Likewise.
20260 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
20262 * fs/ntfs.c: New file.
20264 2007-08-02 Bean <bean123ch@gmail.com>
20266 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
20268 * file.h (grub_file): Likewise.
20270 * fshelp.h (grub_fshelp_read_file): Likewise.
20272 * util/i386/pc/grub-setup.c (setup): Likewise.
20273 (save_first_sector): Likewise.
20274 (save_blocklists): Likewise.
20276 * fs/affs.c (grub_affs_read_file): Likewise.
20278 * fs/ext2.c (grub_ext2_read_file): Likewise.
20280 * fs/fat.c (grub_fat_read_data): Likewise.
20282 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
20284 * fs/hfs.c (grub_hfs_read_file): Likewise.
20286 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
20288 * fs/jfs.c (grub_jfs_read_file): Likewise.
20290 * fs/minix.c (grub_minix_read_file): Likewise.
20292 * fs/sfs.c (grub_sfs_read_file): Likewise.
20294 * fs/ufs.c (grub_ufs_read_file): Likewise.
20296 * fs/xfs.c (grub_xfs_read_file): Likewise.
20298 * command/blocklist.c (read_blocklist): Likewise.
20299 (print_blocklist): Likewise.
20301 2007-08-02 Marco Gerards <marco@gnu.org>
20303 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
20306 * disk/host.c: New file.
20308 * util/hostfs.c: Likewise.
20310 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
20311 return `GRUB_ERR_BAD_FS'.
20312 * fs/sfs.c (grub_sfs_mount): Likewise.
20313 * fs/xfs.c (grub_xfs_mount): Likewise.
20315 * include/grub/disk.h (enum grub_disk_dev_id): Add
20316 `GRUB_DISK_DEVICE_HOST_ID'.
20318 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
20320 2007-07-24 Jerone Young <jerone@gmail.com>
20322 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
20323 modules for compilation.
20324 * conf/powerpc-ieee1275.rmk: Likewise.
20326 * include/multiboot.h: Move multiboot definitions to one file. Rename
20327 many definitions to not get grub specific.
20328 * include/multiboot2.h: Create header with multiboot 2 definitions.
20329 * include/grub/multiboot.h: Header for grub specific function
20330 prototypes and definitions.
20331 * include/grub/multiboot2.h: Likewise.
20332 * include/grub/multiboot_loader.h: Likewise.
20333 * include/grub/i386/pc/multiboot.h: Removed.
20334 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
20336 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
20337 and 2 to allow for one multiboot and module commands.
20338 * loader/multiboot2.c: Add multiboot2 functionality.
20339 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
20340 and definition names.
20341 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
20343 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
20344 ieee1275 specific multiboot2 code.
20346 * kern/i386/pc/startup.S: Change headers and definition names for
20347 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
20349 2007-07-22 Robert Millan <rmh@aybabtu.com>
20351 * geninitheader.sh: Process file specified in first parameter rather
20352 than hardcoding grub_modules_init.lst.
20353 * geninit.sh: Likewise. Also, construct header name dynamically rather
20354 than hardcoding grub_modules_init.h.
20356 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
20357 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
20358 grub_probe_init.[ch] and grub_setup_init.[ch].
20360 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
20361 grub_modules_init.h with grub_emu_init.h.
20362 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
20363 grub_probe_init.[ch] files.
20364 * conf/i386-efi.rmk: Likewise.
20365 * conf/i386-pc.rmk: Likewise.
20366 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
20367 grub_setup_init.[ch] files.
20369 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
20370 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
20371 to initialize modules rather than a list of hardcoded functions.
20372 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
20373 grub_init_all() to initialize modules rather than a list of hardcoded
20376 2007-07-22 Robert Millan <rmh@aybabtu.com>
20378 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20379 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
20381 2007-07-22 Robert Millan <rmh@aybabtu.com>
20383 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
20384 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
20385 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
20386 flag when running on SmartFirmware.
20387 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
20388 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
20391 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
20392 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
20393 rather than decreasing it.
20395 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
20396 there's not enough space to do it, fail in the same way as when it
20397 can't be done because there are no partitions.
20399 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
20400 when nvsetenv failed.
20402 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20404 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
20405 because this rule is automatically generated.
20406 (grub-mkrescue): Removed for the same reason as above.
20408 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20410 Migrate to GNU General Public License Version 3.
20412 * COPYING: Replaced with the plain text version of GPLv3.
20414 * config.guess: Updated from gnulib.
20415 * config.sub: Likewise.
20417 * geninit.sh: Output a GPLv3 copyright notice.
20418 * geninitheader.sh: Likewise.
20419 * genmodsrc.sh: Likewise.
20420 * gensymlist.sh.in: Likewise.
20422 * boot/i386/pc/boot.S: Upgraded to GPLv3.
20423 * boot/i386/pc/diskboot.S: Likewise.
20424 * boot/i386/pc/pxeboot.S: Likewise.
20425 * commands/blocklist.c: Likewise.
20426 * commands/boot.c: Likewise.
20427 * commands/cat.c: Likewise.
20428 * commands/cmp.c: Likewise.
20429 * commands/configfile.c: Likewise.
20430 * commands/echo.c: Likewise.
20431 * commands/help.c: Likewise.
20432 * commands/ls.c: Likewise.
20433 * commands/search.c: Likewise.
20434 * commands/terminal.c: Likewise.
20435 * commands/test.c: Likewise.
20436 * commands/videotest.c: Likewise.
20437 * commands/i386/cpuid.c: Likewise.
20438 * commands/i386/pc/halt.c: Likewise.
20439 * commands/i386/pc/play.c: Likewise.
20440 * commands/i386/pc/reboot.c: Likewise.
20441 * commands/i386/pc/vbeinfo.c: Likewise.
20442 * commands/i386/pc/vbetest.c: Likewise.
20443 * commands/ieee1275/halt.c: Likewise.
20444 * commands/ieee1275/reboot.c: Likewise.
20445 * commands/ieee1275/suspend.c: Likewise.
20446 * disk/loopback.c: Likewise.
20447 * disk/lvm.c: Likewise.
20448 * disk/raid.c: Likewise.
20449 * disk/efi/efidisk.c: Likewise.
20450 * disk/i386/pc/biosdisk.c: Likewise.
20451 * disk/ieee1275/ofdisk.c: Likewise.
20452 * font/manager.c: Likewise.
20453 * fs/affs.c: Likewise.
20454 * fs/ext2.c: Likewise.
20455 * fs/fat.c: Likewise.
20456 * fs/fshelp.c: Likewise.
20457 * fs/hfs.c: Likewise.
20458 * fs/hfsplus.c: Likewise.
20459 * fs/iso9660.c: Likewise.
20460 * fs/jfs.c: Likewise.
20461 * fs/minix.c: Likewise.
20462 * fs/sfs.c: Likewise.
20463 * fs/ufs.c: Likewise.
20464 * fs/xfs.c: Likewise.
20465 * hello/hello.c: Likewise.
20466 * include/grub/acorn_filecore.h: Likewise.
20467 * include/grub/arg.h: Likewise.
20468 * include/grub/bitmap.h: Likewise.
20469 * include/grub/boot.h: Likewise.
20470 * include/grub/cache.h: Likewise.
20471 * include/grub/device.h: Likewise.
20472 * include/grub/disk.h: Likewise.
20473 * include/grub/dl.h: Likewise.
20474 * include/grub/elfload.h: Likewise.
20475 * include/grub/env.h: Likewise.
20476 * include/grub/err.h: Likewise.
20477 * include/grub/file.h: Likewise.
20478 * include/grub/font.h: Likewise.
20479 * include/grub/fs.h: Likewise.
20480 * include/grub/fshelp.h: Likewise.
20481 * include/grub/gzio.h: Likewise.
20482 * include/grub/hfs.h: Likewise.
20483 * include/grub/kernel.h: Likewise.
20484 * include/grub/loader.h: Likewise.
20485 * include/grub/lvm.h: Likewise.
20486 * include/grub/misc.h: Likewise.
20487 * include/grub/mm.h: Likewise.
20488 * include/grub/net.h: Likewise.
20489 * include/grub/normal.h: Likewise.
20490 * include/grub/parser.h: Likewise.
20491 * include/grub/partition.h: Likewise.
20492 * include/grub/pc_partition.h: Likewise.
20493 * include/grub/raid.h: Likewise.
20494 * include/grub/rescue.h: Likewise.
20495 * include/grub/script.h: Likewise.
20496 * include/grub/setjmp.h: Likewise.
20497 * include/grub/symbol.h: Likewise.
20498 * include/grub/term.h: Likewise.
20499 * include/grub/terminfo.h: Likewise.
20500 * include/grub/tparm.h: Likewise.
20501 * include/grub/types.h: Likewise.
20502 * include/grub/video.h: Likewise.
20503 * include/grub/efi/api.h: Likewise.
20504 * include/grub/efi/chainloader.h: Likewise.
20505 * include/grub/efi/console.h: Likewise.
20506 * include/grub/efi/console_control.h: Likewise.
20507 * include/grub/efi/disk.h: Likewise.
20508 * include/grub/efi/efi.h: Likewise.
20509 * include/grub/efi/pe32.h: Likewise.
20510 * include/grub/efi/time.h: Likewise.
20511 * include/grub/i386/linux.h: Likewise.
20512 * include/grub/i386/setjmp.h: Likewise.
20513 * include/grub/i386/types.h: Likewise.
20514 * include/grub/i386/efi/kernel.h: Likewise.
20515 * include/grub/i386/efi/loader.h: Likewise.
20516 * include/grub/i386/efi/time.h: Likewise.
20517 * include/grub/i386/pc/biosdisk.h: Likewise.
20518 * include/grub/i386/pc/boot.h: Likewise.
20519 * include/grub/i386/pc/chainloader.h: Likewise.
20520 * include/grub/i386/pc/console.h: Likewise.
20521 * include/grub/i386/pc/init.h: Likewise.
20522 * include/grub/i386/pc/kernel.h: Likewise.
20523 * include/grub/i386/pc/loader.h: Likewise.
20524 * include/grub/i386/pc/memory.h: Likewise.
20525 * include/grub/i386/pc/multiboot.h: Likewise.
20526 * include/grub/i386/pc/serial.h: Likewise.
20527 * include/grub/i386/pc/time.h: Likewise.
20528 * include/grub/i386/pc/vbe.h: Likewise.
20529 * include/grub/i386/pc/vbeblit.h: Likewise.
20530 * include/grub/i386/pc/vbefill.h: Likewise.
20531 * include/grub/i386/pc/vbeutil.h: Likewise.
20532 * include/grub/i386/pc/vga.h: Likewise.
20533 * include/grub/ieee1275/ieee1275.h: Likewise.
20534 * include/grub/ieee1275/ofdisk.h: Likewise.
20535 * include/grub/powerpc/libgcc.h: Likewise.
20536 * include/grub/powerpc/setjmp.h: Likewise.
20537 * include/grub/powerpc/types.h: Likewise.
20538 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
20539 * include/grub/powerpc/ieee1275/console.h: Likewise.
20540 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
20541 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
20542 * include/grub/powerpc/ieee1275/loader.h: Likewise.
20543 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
20544 * include/grub/powerpc/ieee1275/time.h: Likewise.
20545 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
20546 * include/grub/sparc64/libgcc.h: Likewise.
20547 * include/grub/sparc64/setjmp.h: Likewise.
20548 * include/grub/sparc64/types.h: Likewise.
20549 * include/grub/sparc64/ieee1275/console.h: Likewise.
20550 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
20551 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
20552 * include/grub/sparc64/ieee1275/time.h: Likewise.
20553 * include/grub/util/biosdisk.h: Likewise.
20554 * include/grub/util/getroot.h: Likewise.
20555 * include/grub/util/lvm.h: Likewise.
20556 * include/grub/util/misc.h: Likewise.
20557 * include/grub/util/raid.h: Likewise.
20558 * include/grub/util/resolve.h: Likewise.
20559 * io/gzio.c: Likewise.
20560 * kern/device.c: Likewise.
20561 * kern/disk.c: Likewise.
20562 * kern/dl.c: Likewise.
20563 * kern/elf.c: Likewise.
20564 * kern/env.c: Likewise.
20565 * kern/err.c: Likewise.
20566 * kern/file.c: Likewise.
20567 * kern/fs.c: Likewise.
20568 * kern/loader.c: Likewise.
20569 * kern/main.c: Likewise.
20570 * kern/misc.c: Likewise.
20571 * kern/mm.c: Likewise.
20572 * kern/parser.c: Likewise.
20573 * kern/partition.c: Likewise.
20574 * kern/rescue.c: Likewise.
20575 * kern/term.c: Likewise.
20576 * kern/efi/efi.c: Likewise.
20577 * kern/efi/init.c: Likewise.
20578 * kern/efi/mm.c: Likewise.
20579 * kern/i386/dl.c: Likewise.
20580 * kern/i386/efi/init.c: Likewise.
20581 * kern/i386/efi/startup.S: Likewise.
20582 * kern/i386/pc/init.c: Likewise.
20583 * kern/i386/pc/lzo1x.S: Likewise.
20584 * kern/i386/pc/startup.S: Likewise.
20585 * kern/ieee1275/ieee1275.c: Likewise.
20586 * kern/powerpc/cache.S: Likewise.
20587 * kern/powerpc/dl.c: Likewise.
20588 * kern/powerpc/ieee1275/cmain.c: Likewise.
20589 * kern/powerpc/ieee1275/crt0.S: Likewise.
20590 * kern/powerpc/ieee1275/init.c: Likewise.
20591 * kern/powerpc/ieee1275/openfw.c: Likewise.
20592 * kern/sparc64/cache.S: Likewise.
20593 * kern/sparc64/dl.c: Likewise.
20594 * kern/sparc64/ieee1275/init.c: Likewise.
20595 * kern/sparc64/ieee1275/openfw.c: Likewise.
20596 * loader/efi/chainloader.c: Likewise.
20597 * loader/efi/chainloader_normal.c: Likewise.
20598 * loader/i386/efi/linux.c: Likewise.
20599 * loader/i386/efi/linux_normal.c: Likewise.
20600 * loader/i386/pc/chainloader.c: Likewise.
20601 * loader/i386/pc/chainloader_normal.c: Likewise.
20602 * loader/i386/pc/linux.c: Likewise.
20603 * loader/i386/pc/linux_normal.c: Likewise.
20604 * loader/i386/pc/multiboot.c: Likewise.
20605 * loader/i386/pc/multiboot_normal.c: Likewise.
20606 * loader/powerpc/ieee1275/linux.c: Likewise.
20607 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
20608 * normal/arg.c: Likewise.
20609 * normal/cmdline.c: Likewise.
20610 * normal/command.c: Likewise.
20611 * normal/completion.c: Likewise.
20612 * normal/execute.c: Likewise.
20613 * normal/function.c: Likewise.
20614 * normal/lexer.c: Likewise.
20615 * normal/main.c: Likewise.
20616 * normal/menu.c: Likewise.
20617 * normal/menu_entry.c: Likewise.
20618 * normal/misc.c: Likewise.
20619 * normal/parser.y: Likewise.
20620 * normal/script.c: Likewise.
20621 * normal/i386/setjmp.S: Likewise.
20622 * normal/powerpc/setjmp.S: Likewise.
20623 * normal/sparc64/setjmp.S: Likewise.
20624 * partmap/acorn.c: Likewise.
20625 * partmap/amiga.c: Likewise.
20626 * partmap/apple.c: Likewise.
20627 * partmap/gpt.c: Likewise.
20628 * partmap/pc.c: Likewise.
20629 * partmap/sun.c: Likewise.
20630 * term/gfxterm.c: Likewise.
20631 * term/terminfo.c: Likewise.
20632 * term/efi/console.c: Likewise.
20633 * term/i386/pc/console.c: Likewise.
20634 * term/i386/pc/serial.c: Likewise.
20635 * term/i386/pc/vesafb.c: Likewise.
20636 * term/i386/pc/vga.c: Likewise.
20637 * term/ieee1275/ofconsole.c: Likewise.
20638 * util/biosdisk.c: Likewise.
20639 * util/console.c: Likewise.
20640 * util/genmoddep.c: Likewise.
20641 * util/getroot.c: Likewise.
20642 * util/grub-emu.c: Likewise.
20643 * util/grub-mkdevicemap.c: Likewise.
20644 * util/grub-probe.c: Likewise.
20645 * util/lvm.c: Likewise.
20646 * util/misc.c: Likewise.
20647 * util/raid.c: Likewise.
20648 * util/resolve.c: Likewise.
20649 * util/update-grub.in: Likewise.
20650 * util/update-grub_lib.in: Likewise.
20651 * util/grub.d/00_header.in: Likewise.
20652 * util/grub.d/10_hurd.in: Likewise.
20653 * util/grub.d/10_linux.in: Likewise.
20654 * util/i386/efi/grub-install.in: Likewise.
20655 * util/i386/efi/grub-mkimage.c: Likewise.
20656 * util/i386/pc/grub-install.in: Likewise.
20657 * util/i386/pc/grub-mkimage.c: Likewise.
20658 * util/i386/pc/grub-mkrescue.in: Likewise.
20659 * util/i386/pc/grub-setup.c: Likewise.
20660 * util/i386/pc/misc.c: Likewise.
20661 * util/powerpc/ieee1275/grub-install.in: Likewise.
20662 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
20663 * util/powerpc/ieee1275/misc.c: Likewise.
20664 * video/bitmap.c: Likewise.
20665 * video/video.c: Likewise.
20666 * video/i386/pc/vbe.c: Likewise.
20667 * video/i386/pc/vbeblit.c: Likewise.
20668 * video/i386/pc/vbefill.c: Likewise.
20669 * video/i386/pc/vbeutil.c: Likewise.
20670 * video/readers/tga.c: Likewise.
20672 2007-07-02 Robert Millan <rmh@aybabtu.com>
20674 * conf/i386-efi.rmk: Replace obsolete reference to
20675 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
20676 with util/getroot.c.
20677 * conf/powerpc-ieee1275.rmk: Likewise.
20678 * conf/sparc64-ieee1275.rmk: Likewise.
20680 * util/grub-emu.c (main): Fix unchecked pointer handling.
20682 2007-07-02 Robert Millan <rmh@aybabtu.com>
20684 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
20685 invocation to fail, in order to support partition-less media.
20687 * util/i386/pc/grub-install.in: Likewise.
20689 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
20690 which fs or partmap modules are needed (akin to its sister scripts).
20692 Also use grub-probe to get rid of unportable /proc/mounts check.
20694 Print the same informational message that the other scripts do, before
20697 2007-06-23 Robert Millan <rmh@aybabtu.com>
20699 * util/update-grub_lib.in (font_path): New function. Determine whether
20700 a font file can be found and, if so, echo the GRUB path to it.
20702 * util/update-grub.in: Handle multiple terminals depending on user
20703 input, platform availability and font file presence. Propagate
20704 variables of our findings to /etc/grub.d/ children.
20706 * util/grub.d/00_header.in: Handle multiple terminals, based on
20707 environment setup by update-grub.
20709 2007-06-23 Robert Millan <rmh@aybabtu.com>
20711 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
20713 2007-06-21 Robert Millan <rmh@aybabtu.com>
20715 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
20716 indicate end of data section in kernel image.
20717 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
20718 GRUB_KERNEL_MACHINE_DATA_END.
20720 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
20722 * kern/i386/efi/startup.S: Likewise.
20724 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
20725 during image generation. Implement --prefix option to override this
20727 * util/i386/efi/grub-mkimage.c: Likewise.
20729 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
20730 code to make path relative to its root into a separate function.
20732 * util/i386/pc/grub-install.in: Use newly provided
20733 make_system_path_relative_to_its_root() to convert ${grubdir}, then
20734 pass the result to grub-install --prefix.
20736 2007-06-13 Robert Millan <rmh@aybabtu.com>
20738 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
20739 DEFAULT_DEVICE_MAP.
20740 * util/grub-emu.c: Use above definitions from misc.h instead of
20742 * util/grub-mkdevicemap.c: Likewise.
20743 * util/i386/pc/grub-setup.c: Likewise.
20744 * util/grub-probe.c: Likewise.
20745 (probe): Abort with grub_util_error() when either
20746 grub_guess_root_device or grub_util_get_grub_dev fails.
20748 2007-06-12 Robert Millan <rmh@aybabtu.com>
20750 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
20751 "pager" assignment.
20752 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
20754 * util/grub-probe.c (probe): Likewise for "drive_name".
20756 2007-06-11 Robert Millan <rmh@aybabtu.com>
20758 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
20759 not just the cdrom one.
20761 2007-06-11 Robert Millan <rmh@aybabtu.com>
20763 * util/i386/pc/grub-mkrescue.in: Add "set -e".
20764 Add --pkglibdir=DIR option to override pkglibdir.
20765 Mention --image-type=TYPE in help output.
20766 Fix --grub-mkimage (it was a no-op).
20767 Abort gracefully when no parameter is given.
20769 2007-06-11 Robert Millan <rmh@aybabtu.com>
20771 * util/i386/pc/grub-mkrescue.in: New file.
20772 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
20773 * Makefile.in: Handle bin_SCRIPTS.
20775 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
20777 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
20778 list of video modes.
20780 2007-06-06 Robert Millan <rmh@aybabtu.com>
20782 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
20783 file doesn't exist, or if it is in a filesystem grub can't read.
20785 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
20786 not abort if GRUB_DRIVE could not be defined. Rearrange generated
20787 header comment to fit in 80 columns when the variables are resolved.
20789 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
20790 could be identified by update-grub. Remove redundant check for
20791 unifont.pff existence (since convert_system_path_to_grub_path now
20794 2007-06-04 Robert Millan <rmh@aybabtu.com>
20796 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
20798 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
20800 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
20802 2007-06-04 Robert Millan <rmh@aybabtu.com>
20804 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
20806 * include/grub/partition.h: Declare grub_apple_partition_map_init and
20807 grub_apple_partition_map_fini.
20810 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
20811 to access >2 TiB disks).
20813 Print disk->total_sectors with %llu instead of %lu, since this
20814 variable is always 64-bit (prevents wrong disk size from being displayed
20815 on either >2 TiB disk or big-endian CPU).
20817 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
20818 into a generic case that supports all (sane) partition maps.
20820 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
20823 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
20824 and grub_apple_partition_map_fini() after that.
20826 2007-06-01 Robert Millan <rmh@aybabtu.com>
20828 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
20830 * util/grub.d/00_header.in: Only enable gfxterm when
20831 convert_system_path_to_grub_path() succeeds.
20833 2007-05-20 Robert Millan <rmh@aybabtu.com>
20835 * util/update-grub_lib.in: New file.
20836 * DISTLIST: Add update-grub_lib.in.
20837 * conf/common.rmk: Generate update-grub_lib and install it in
20839 * Makefile.in: Add install routine for $(lib_DATA).
20841 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
20842 function provided by update-grub_lib to support arbitrary paths of
20844 * util/update-grub.in: Use convert_system_path_to_grub_path() to
20845 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
20847 2007-05-19 Robert Millan <rmh@aybabtu.com>
20849 * commands/i386/cpuid.c: New module.
20850 * DISTLIST: Add it.
20851 * conf/i386-efi.rmk: Enable cpuid.mod.
20852 * conf/i386-pc.rmk: Likewise.
20854 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
20856 * kern/disk.c (grub_disk_read): Check return value of
20859 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
20861 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
20863 * disk/raid.c (grub_raid_open): Likewise.
20865 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
20867 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
20868 stack instead of on the heap.
20870 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
20871 before doing a read on it.
20873 * configure.ac: Only use -fno-stack-protector for the target
20876 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
20878 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
20879 __attribute_ ((unused)) to mode_type argument.
20881 * util/getroot.c (grub_guess_root_device): Fix #endif.
20883 * kern/misc.c (memcmp): Fix prototype.
20885 * include/grub/partition.h [GRUB_UTIL]
20886 (grub_gpt_partition_map_init): Add prototype.
20887 (grub_gpt_partition_map_fini): Likewise.
20889 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
20890 at the right place.
20892 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
20893 (grub_fat_read_data): Likewise.
20894 (grub_fat_find_dir): Likewise.
20896 * font/manager.c (find_glyph): Make table a const.
20897 (grub_font_get_glyph): Remove bitmap from if statement.
20899 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
20901 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
20902 code, first search for device in /dev/mapper, then in /dev.
20903 (grub_util_get_grub_dev): New function.
20904 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
20906 * util/grub-probe.c (probe): Remove check for RAID, call
20907 grub_util_get_grub_dev() instead of
20908 grub_util_biosdisk_get_grub_dev().
20909 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
20910 grub_util_biosdisk_get_grub_dev().
20911 * util/i386/pc/grub-setup.c (main): Likewise.
20913 2007-05-16 Robert Millan <rmh@aybabtu.com>
20915 * DISTLIST: Update for the latest changes.
20916 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
20917 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
20918 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
20919 grub/util/biosdisk.h.
20920 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
20921 grub/util/biosdisk.h.
20923 2007-05-16 Robert Millan <rmh@aybabtu.com>
20925 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
20927 2007-05-16 Robert Millan <rmh@aybabtu.com>
20929 * util/i386/efi/grub-install.in: New.
20930 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
20931 newly added grub-install.
20932 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
20934 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
20935 grub/util/biosdisk.h.
20936 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
20937 grub/util/biosdisk.h.
20939 2007-05-16 Robert Millan <rmh@aybabtu.com>
20941 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
20942 * include/grub/util/biosdisk.h: ... here.
20943 * util/i386/pc/biosdisk.c: Moved to ...
20944 * util/biosdisk.c: ... here.
20945 * util/i386/pc/getroot.c: Moved to ...
20946 * util/getroot.c: ... here.
20947 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
20948 * util/grub-mkdevicemap.c: ... here.
20949 * util/i386/pc/grub-probe.c: Moved to ...
20950 * util/grub-probe.c: ... here.
20952 2007-05-15 Robert Millan <rmh@aybabtu.com>
20954 * util/update-grub.in: Remove duplicated line in grub.cfg header
20957 2007-05-13 Robert Millan <rmh@aybabtu.com>
20959 * util/update-grub.in: Fix a few assumptions about the devices holding
20960 /, /boot and /boot/grub being the same.
20961 * util/grub.d/00_header.in: Likewise.
20962 * util/grub.d/10_hurd.in: Likewise.
20963 * util/grub.d/10_linux.in: Likewise.
20965 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
20966 patterns. Use that to define the `.old' suffix as older than `'.
20968 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
20970 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
20971 the grub.cfg header message.
20973 2007-05-11 Robert Millan <rmh@aybabtu.com>
20975 * util/update-grub.in: Create device.map if it doesn't already exist,
20976 before attempting to run grub-probe.
20977 Check for grub-probe and grub-mkdevicemap with the same code
20978 grub-install is using.
20981 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
20983 * Makefile.in: Add the datarootdir autoconf variable.
20985 2007-05-09 Robert Millan <rmh@aybabtu.com>
20987 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
20988 fail gracefully if dev->disk->partition == NULL.
20990 2007-05-07 Robert Millan <rmh@aybabtu.com>
20992 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
20993 determine partition map module.
20994 * util/i386/pc/grub-install.in: Use this feature to decide which
20995 partition module to load, instead of hardcoding pc and gpt.
20997 2007-05-07 Robert Millan <rmh@aybabtu.com>
20999 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
21000 source directory differs from build directory.
21002 2007-05-05 Robert Millan <rmh@aybabtu.com>
21004 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
21007 2007-05-05 Robert Millan <rmh@aybabtu.com>
21009 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
21011 2007-05-05 Robert Millan <rmh@aybabtu.com>
21013 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
21014 command-line arguments via ${GRUB_CMDLINE_LINUX}.
21016 2007-05-05 Robert Millan <rmh@aybabtu.com>
21018 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
21019 (grub_probe_SOURCES): Likewise.
21020 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
21021 GPT and initialize dos_part and bsd_part accordingly.
21022 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
21024 (main): Activate gpt module for use during partition identification,
21025 and deactivate it afterwards.
21026 * util/i386/pc/grub-install.in: Add gpt module to core.img.
21027 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
21028 partition identification, and deactivate it afterwards.
21030 2007-05-05 Robert Millan <rmh@aybabtu.com>
21032 * term/i386/pc/console.c (grub_console_fini): Call
21033 grub_term_set_current() before grub_term_unregister().
21035 2007-05-04 Robert Millan <rmh@aybabtu.com>
21037 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
21038 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
21039 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
21040 and update-grub_DATA.
21041 * conf/common.rmk: Build and install update-grub components.
21042 * conf/common.mk: Regenerate.
21043 * util/update-grub.in: New. Core of update-grub.
21044 * util/grub.d/00_header.in: New. Generates grub.cfg header.
21045 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
21046 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
21047 * util/grub.d/README: New. Document grub.d directory layout.
21049 2007-05-01 Robert Millan <rmh@aybabtu.com>
21051 * util/grub-emu.c: Move initialization functions
21052 grub_util_biosdisk_init() and grub_init_all() before
21053 grub_util_biosdisk_get_grub_dev(), which relies on them.
21055 2007-04-19 Robert Millan <rmh@aybabtu.com>
21057 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
21060 2007-04-18 Jerone Young <jerone@gmail.com>
21062 * kernel/elf.c: Add missing parenthesis for conditional statement
21065 2007-04-10 Jerone Young <jerone@gmail.com>
21067 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
21068 continue on and look for device node with real device name.
21070 2007-04-10 Jerone Young <jerone@gmail.com>
21072 * configure.ac: Add argument for autoconf to use transformation
21074 * Makefile.in: Add autoconf package transformation code.
21075 * util/i386/pc/grub-install.in: Likewise.
21076 * util/powerpc/ieee1275/grub-install.in: Likewise.
21078 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
21080 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
21081 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
21082 (EXT2_REVISION): Likewise.
21083 (EXT2_INODE_SIZE): Likewise.
21084 (struct grub_ext2_block_group): Added a missing member
21086 (grub_ext2_read_inode): Divide by the inode size in a superblock
21087 instead of 128 to obtain INODES_PER_BLOCK.
21088 Use the macro EXT2_INODE_SIZE instead of directly using
21089 SBLOCK->INODE_SIZE.
21091 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
21093 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
21094 superblock instead of the structure size to compute an
21095 offset. This fixes the problem that GRUB could not read a
21096 filesystem when inode size is different from 128-byte.
21098 2007-03-05 Marco Gerards <marco@gnu.org>
21100 * normal/main.c (read_config_file): When "menu" is not set, create
21101 an initial context.
21103 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21105 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
21106 (HEAP_LIMIT): New macro.
21107 (grub_claim_heap): Claim memory up to `heaplimit'.
21109 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21111 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
21112 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
21113 (_start): Likewise.
21114 (grub_arch_modules_addr): Return address after `_end'.
21115 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
21116 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
21117 (add_segments): Calculate `_end' from phdr size and location.
21118 (ALIGN_UP): Moved to ...
21119 * include/grub/misc.h: here.
21120 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
21122 (GRUB_IEEE1275_MODULE_BASE): Removed.
21124 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21126 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
21129 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21131 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
21133 (grub_elf64_load_hook_t): Likewise.
21134 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
21137 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21139 * kern/mm.c: Update copyright.
21140 (grub_mm_debug): Correct syntax error.
21141 (grub_mm_dump_free): New function.
21142 (grub_debug_free): Call `grub_free'.
21143 * include/grub/mm.h: Update copyright.
21144 (grub_mm_dump_free): Add declaration.
21146 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21148 * include/grub/ieee1275/ieee1275.h: Update copyright.
21149 * kern/powerpc/ieee1275/init.c: Likewise.
21150 * kern/powerpc/ieee1275/openfw.c: Likewise.
21152 * loader/powerpc/ieee1275/linux.c: Likewise.
21153 * include/grub/elfload.h: Likewise.
21154 * kern/elf.c: Likewise.
21155 (grub_elf32_load): Pass `base' and `size' parameters. Update all
21157 (grub_elf64_load): Likewise.
21158 (grub_elf32_load_segment): Move to a nested function.
21159 (grub_elf64_load_segment): Likewise.
21161 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21163 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
21165 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
21166 (grub_heap_len): Likewise.
21167 (HEAP_SIZE): New macro.
21168 (grub_claim_heap): New function.
21169 (grub_machine_init): Don't claim heap directly. Call
21171 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
21172 (grub_available_iterate): New function.
21174 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
21176 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
21177 * configure.ac: Use it for testing the HOST and TARGET compilers.
21179 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
21181 * Makefile.in (enable_grub_emu): New variable.
21182 * configure.ac (--enable-grub-emu): New option.
21183 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
21184 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
21185 * conf/i386-pc.rmk: Likewise.
21186 * conf/powerpc-ieee1275.rmk: Likewise.
21187 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
21189 2006-12-12 Marco Gerards <marco@gnu.org>
21191 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
21193 * kern/env.c (grub_env_unset): Don't free the member `value' when
21194 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
21197 * normal/main.c (current_menu): Removed.
21198 (free_menu): Unset the `menu' environment variable.
21199 (grub_normal_menu_addentry): Make use of the environment variable
21200 `menu', instead of using the global `current_menu'. Allocate
21201 memory for the sourcecode of this entry.
21202 (read_config_file): New argument `nested', changed all callers.
21203 Only in the case of a new context, initialize a new menu. Set the
21204 `menu' environment variable.
21205 (grub_normal_execute): Don't set and unset the environment
21206 variable `menu' here anymore. Only free the menu when leaving the
21209 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
21212 2006-12-11 Marco Gerards <marco@gnu.org>
21214 * normal/menu_entry.c (run): Fix off by one bug so the last line
21215 is executed. Move the loader check to outside the loop.
21217 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
21219 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
21221 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
21223 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
21224 the number of sectors. Reported by Andrey Shuvikov
21225 <mr_hyro@yahoo.com>.
21227 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
21229 * kern/disk.c (grub_disk_read): When there is a read error, always
21230 try to read only the necessary data.
21232 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
21234 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
21236 [GRUB_UTIL] (grub_raid_fini): Likewise.
21237 [GRUB_UTIL] (grub_lvm_init): Likewise.
21238 [GRUB_UTIL] (grub_lvm_fini): Likewise.
21239 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
21240 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
21241 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
21242 and grub_raid_fini().
21244 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
21246 * include/grub/types.h (__unused): Rename to UNUSED.
21247 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
21248 (grub_elf64_size): Likewise.
21250 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21252 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
21253 grub_error_push and grub_error_pop in the error-handling path.
21254 (grub_elf32_load_segment): Only call grub_file_read with non-zero
21257 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21259 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
21260 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21261 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21262 (kernel_elf_SOURCES): Likewise.
21263 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
21264 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
21265 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21266 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21267 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
21268 (elf_mod_SOURCES): New variable.
21269 (elf_mod_CFLAGS): Likewise.
21270 (elf_mod_LDFLAGS): Likewise.
21271 * include/grub/types.h (__unused): New macro.
21272 * include/grub/elfload.h: New file.
21273 * kern/elf.c: Likewise.
21274 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
21275 (ELF32_LOADMASK): New macro.
21276 (ELF64_LOADMASK): Likewise.
21277 (vmlinux): Removed.
21278 (grub_linux_load32): New function.
21279 (grub_linux_load64): Likewise.
21280 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
21281 Use grub_elf_t instead of grub_file_t.
21283 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
21285 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
21286 `catch_result' to struct set_color_args.
21288 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
21290 * normal/menu.c: Include grub/script.h.
21291 * normal/menu_entry.c: Likewise.
21292 * include/grub/normal.h: Do not include grub/script.h.
21294 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21296 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
21298 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21300 * kern/disk.c (grub_disk_open): Print debug messages when opening a
21302 (grub_disk_close): Print debug messages when closing a disk.
21303 (grub_disk_read): Print debug messages when disk read fails.
21304 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
21306 * kern/partition.c: Include misc.h.
21307 (grub_partition_iterate): Print debug messages when detecting
21310 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21312 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
21314 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
21316 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
21318 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
21319 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
21321 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
21323 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
21324 instead of sizeof(lv). Patch by Michael Guntsche.
21326 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
21328 * disk/lvm.c: Rename VGS to VG_LIST.
21329 (grub_lvm_iterate): Change VGS->LV to VG-LV.
21330 (grub_lvm_open): Likewise.
21331 Thanks to Michael Guntsche for finding this bug.
21333 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
21335 * configure.ac (AC_INIT): Bumped to 1.95.
21337 2006-10-14 Robert Millan <rmh@aybabtu.com>
21339 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
21340 with "/dev/.static/dev/md".
21342 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21344 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
21345 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
21346 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
21347 DRIVE_NAME are always freed.
21349 * util/i386/pc/biosdisk.c (make_device_name): Add one into
21350 DOS_PART, as a DOS partition is counted from one instead of zero
21351 now. Reported by Robert Millan.
21353 2006-10-14 Robert Millan <rmh@aybabtu.com>
21355 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
21356 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
21357 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
21358 string returned by grub_guess_root_device.
21359 * util/i386/pc/grub-setup.c: Likewise.
21360 * util/i386/pc/grub-probefs.c: Likewise.
21362 * util/i386/pc/grub-probefs.c: Rename to ...
21363 * util/i386/pc/grub-probe.c: ... this.
21364 * DISTLIST: Remove grub-probefs, add grub-probe.
21365 * conf/i386-efi.rmk: Likewise.
21366 * conf/i386-pc.rmk: Likewise.
21367 * util/i386/pc/grub-install.in: Likewise.
21369 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
21370 choose which information we want to print.
21372 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21374 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
21375 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
21376 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
21377 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
21378 video/readers/tga.c and video/i386/pc/vbeutil.c.
21380 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
21382 Added support for RAID and LVM.
21384 * disk/lvm.c: New file.
21385 * disk/raid.c: Likewise.
21386 * include/grub/lvm.h: Likewise.
21387 * include/grub/raid.h: Likewise.
21388 * include/grub/util/lvm.h: Likewise.
21389 * include/grub/util/raid.h: Likewise.
21390 * util/lvm.c: Likewise.
21391 * util/raid.c: Likewise.
21393 * include/grub/disk.h (grub_disk_dev_id): Add
21394 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
21395 (grub_disk_get_size): New prototype.
21396 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
21397 returns a partition.
21398 (grub_disk_get_size): New function.
21400 * kern/i386/pc/init.c (make_install_device): Copy the prefix
21401 verbatim if grub_install_dos_part is -2.
21403 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
21406 * util/i386/pc/grub-setup.c (setup): New argument
21407 MUST_EMBED. Force embedding of GRUB when the argument is
21408 true. Close FILE before returning.
21409 (main): Add support for RAID and LVM.
21411 * conf/common.rmk: Add RAID and LVM modules.
21412 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
21414 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
21416 * kern/misc.c (grub_strstr): New function.
21417 * include/grub/misc.h (grub_strstr): New prototype.
21419 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
21421 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
21423 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
21425 * kern/misc.c (grub_strtoull): Guess the base only if not
21428 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21430 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
21433 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21435 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
21437 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
21438 Remove `flags' argument. All callers changed.
21439 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
21440 (IEEE1275_IHANDLE_INVALID): New variable.
21441 (IEEE1275_CELL_INVALID): New variable.
21442 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
21443 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
21444 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
21445 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
21446 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
21447 codes from Open Firmware. All callers updated.
21448 (grub_ieee1275_next_property): Directly return Open Firmware return
21450 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
21451 Standardize error checking from `grub_ieee1275_get_property'.
21452 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
21453 `devalias' to `aliases'. Correct comments. Consolidate error paths.
21455 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21457 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
21458 `instance_to_package_args' to `instance_to_path_args'.
21460 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
21461 `grub_ieee1275_chosen'.
21463 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
21464 `grub_ieee1275_interpret'.
21466 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
21468 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
21470 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
21472 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
21473 (__cmpdi): Likewise.
21475 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
21476 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
21479 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
21481 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
21482 to type `grub_ssize_t'.
21483 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
21485 2006-09-22 Marco Gerards <marco@gnu.org>
21487 * normal/script.c (grub_script_create_cmdmenu): Skip leading
21490 2006-09-22 Marco Gerards <marco@gnu.org>
21492 * commands/echo.c: New file.
21494 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
21496 * conf/common.rmk (echo_mod_SOURCES): New variable.
21497 (echo_mod_CFLAGS): Likewise.
21498 (echo_mod_LDFLAGS): Likewise.
21500 2006-09-22 Marco Gerards <marco@gnu.org>
21502 * normal/main.c (get_line): Malloc memory instead of using
21503 preallocated memory. Removed the arguments `cmdline' and
21504 `max_len'. Updated all callers.
21506 2006-09-22 Marco Gerards <marco@gnu.org>
21508 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
21509 (normal_mod_DEPENDENCIES): Likewise.
21511 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
21512 (normal_mod_DEPENDENCIES): Likewise.
21514 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
21516 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
21518 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
21520 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
21521 (normal_mod_DEPENDENCIES): Likewise.
21522 * conf/i386-pc.mk: Regenerate.
21523 * conf/i386-efi.mk: Likewise
21524 * conf/common.mk: Likewise.
21525 * conf/powerpc-ieee1275.mk: Likewise.
21526 * conf/sparc64-ieee1275.mk: Likewise.
21528 2006-09-22 Robert Millan <rmh@aybabtu.com>
21530 Sync with i386 version.
21531 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
21532 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
21534 2006-09-21 Robert Millan <rmh@aybabtu.com>
21536 Import from GRUB Legacy (lib/device.c):
21537 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
21538 (init_device_map) [__linux__]: Add support for I2O devices.
21540 2006-09-14 Marco Gerards <marco@gnu.org>
21542 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
21545 2006-09-14 Robert Millan <rmh@aybabtu.com>
21547 * util/i386/pc/grub-install.in: Skip menu.lst when removing
21550 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
21552 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
21553 before adding it to device.map.
21555 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
21557 * genmk.rb: Let GCC generate dependencies the first time it
21558 compiles a file; using the -MD option.
21559 * conf/common.mk: Regenerate.
21560 * conf/i386-pc.mk: Likewise.
21561 * conf/i386-efi.mk: Likewise.
21562 * conf/powerpc-ieee1275.mk: Likewise.
21563 * conf/sparc64-ieee1275.mk: Likewise.
21565 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
21567 Move the prototypes of grub_setjmp and grub_longjmp to
21568 cpu/setjmp.h, so that each architecture may specify different
21571 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
21572 (grub_longjmp): Likewise.
21573 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
21574 (grub_longjmp): Likewise.
21575 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
21576 (grub_longjmp): Likewise.
21578 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
21579 [!GRUB_UTIL] (grub_longjmp): Removed.
21581 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
21583 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
21584 "color!" method does not return any value.
21586 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21588 * include/grub/bitmap.h: New file.
21590 * include/grub/i386/pc/vbeutil.h: Likewise.
21592 * video/bitmap.c: Likewise.
21594 * video/readers/tga.c: Likewise.
21596 * video/i386/pc/vbeutil.c: Likewise.
21598 * commands/videotest.c: Code cleanup and updated to reflect to new
21601 * term/gfxterm.c: Likewise.
21603 * video/video.c: Likewise.
21605 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
21606 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
21607 (bitmap_mod_SOURCES): New entry.
21608 (bitmap_mod_CFLAGS): Likewise.
21609 (bitmap_mod_LDFLAGS): Likewise.
21610 (tga_mod_SOURCES): Likewise.
21611 (tga_mod_CFLAGS): Likewise.
21612 (tga_mod_LDFLAGS): Likewise.
21614 * include/grub/video.h (grub_video_blit_operators): New enum type.
21615 (grub_video_render_target): Changed as forward declaration and moved
21616 actual definition to be video driver specific.
21617 (grub_video_adapter.blit_bitmap): Added blitting operator.
21618 (grub_video_adapter.blit_render_target): Likewise.
21619 (grub_video_blit_bitmap): Likewise.
21620 (grub_video_blit_render_target): Likewise.
21622 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
21623 driver specific render target definition.
21624 (grub_video_vbe_map_rgba): Added driver internal helper.
21625 (grub_video_vbe_unmap_color): Updated to use
21626 grub_video_i386_vbeblit_info.
21627 (grub_video_vbe_get_video_ptr): Likewise.
21629 * include/grub/i386/pc/vbeblit.h
21630 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
21631 grub_video_i386_vbeblit_info.
21632 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
21633 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
21634 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
21635 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
21636 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
21637 (grub_video_i386_vbeblit_index_index): Likewise.
21638 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
21639 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
21640 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
21641 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
21643 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
21646 * video/i386/pc/vbeblit.c: Updated to reflect changes on
21647 include/grub/i386/pc/vbeblit.h.
21649 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
21650 Updated to use grub_video_i386_vbeblit_info.
21651 (grub_video_i386_vbefill_R8G8B8): Likewise.
21652 (grub_video_i386_vbefill_index): Likewise.
21653 (grub_video_i386_vbefill): Added generic filler.
21655 * video/i386/pc/vbefill.c: Updated to reflect changes on
21656 include/grub/i386/pc/vbefill.h.
21658 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
21659 grub_video_i386_vbeblit_info.
21660 (grub_video_vbe_unmap_color): Likewise.
21661 (grub_video_vbe_blit_glyph): Likewise.
21662 (grub_video_vbe_scroll): Likewise.
21663 (grub_video_vbe_draw_pixel): Removed function.
21664 (grub_video_vbe_get_pixel): Likewise.
21665 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
21666 updated code to use it.
21667 (common_blitter): Added common blitter for render target and bitmap.
21668 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
21669 (grub_video_vbe_blit_render_target): Likewise.
21671 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
21673 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
21674 is in text mode if there is no console control protocol instance
21677 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21679 * include/grub/video.h: Code cleanup.
21681 * include/grub/i386/pc/vbe.h: Likewise.
21683 * video/i386/pc/vbe.c: Likewise.
21685 * video/i386/pc/vbeblit.c: Likewise.
21687 * video/i386/pc/vbefill.c: Likewise.
21689 * video/video.c: Likewise. Also added more comments.
21691 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21693 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
21694 (struct grub_biosdisk_dap): Likewise.
21696 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
21697 linkage settings for all functions.
21699 2006-07-12 Marco Gerards <marco@gnu.org>
21701 * configure.ac (--enable-mm-debug): Fix typo.
21703 * genkernsyms.sh.in: Use proper quoting for `CC'.
21705 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
21707 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
21708 (normal_mod_ASFLAGS): Remove "-m32".
21710 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
21712 * util/misc.c: Include config.h.
21713 [!HAVE_MEMALIGN]: Do not include malloc.h.
21714 (grub_memalign): Use posix_memalign, if present. Then, use
21715 memalign, if present. Otherwise, emit an error.
21717 * util/grub-emu.c: Do not include malloc.h.
21719 * include/grub/util/misc.h: Include unistd.h. This is required for
21720 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
21721 D. Eades III <hde@foobar-qux.org>.
21723 * configure.ac (AC_GNU_SOURCE): Added.
21724 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
21727 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
21729 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
21730 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
21732 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
21734 * include/grub/types.h (grub_host_addr_t): Rename to
21735 grub_target_addr_t.
21736 (grub_host_off_t): Rename to grub_target_off_t.
21737 (grub_host_size_t): Rename to grub_target_size_t.
21738 (grub_host_ssize_t): Rename to grub_target_ssize_t.
21739 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
21741 * include/grub/kernel.h (struct grub_module_header): Change type
21742 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
21743 (grub_module_info): Likewise.
21745 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
21747 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
21748 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
21749 Velazquez <jesus.velazquez@gmail.com>.
21751 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
21753 Count partitions from 1 instead of 0 in the string representation
21754 of partitions. Still use 0-based internally.
21756 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
21757 (sun_partition_map_iterate): Use grub_partition_t instead of
21758 struct grub_partition *. Cast DESC->START_CYLINDER to
21759 grub_uint64_t after converting the endian.
21760 (sun_partition_map_probe): Subtract 1 for PARTNUM.
21761 (sun_partition_map_get_name): Add 1 to P->INDEX.
21763 * partmap/pc.c (grub_partition_parse): Subtract 1 for
21765 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
21767 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
21768 zero instead of one.
21769 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
21770 (gpt_partition_map_get_name): Add 1 into P->INDEX.
21772 * partmap/apple.c (apple_partition_map_iterate): Change the type
21773 of POS to unsigned.
21774 (apple_partition_map_probe): Subtract 1 for PARTNUM.
21775 (apple_partition_map_get_name): Add 1 into P->INDEX.
21777 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
21778 of POS to unsigned.
21779 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
21780 calculate the offset of a partition.
21781 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
21782 (amiga_partition_map_get_name): Add 1 into P->INDEX.
21784 * partmap/acorn.c (acorn_partition_map_find): Change the type of
21785 SECTOR to grub_disk_addr_t.
21786 (acorn_partition_map_iterate): Likewise.
21787 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
21788 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
21790 (acorn_partition_map_get_name): Add 1 into P->INDEX.
21792 * kern/i386/pc/init.c (make_install_device): Add 1 into
21793 GRUB_INSTALL_DOS_PART.
21795 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
21798 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
21800 Clean up the code to support 64-bit addressing in disks and
21801 files. This change is not enough for filesystems yet.
21803 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
21804 type of "start" to grub_uint64_t.
21805 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
21806 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
21807 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
21810 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
21811 to grub_disk_addr_t.
21813 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
21816 * partmap/pc.c (pc_partition_map_iterate): Likewise.
21818 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
21821 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
21823 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
21825 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
21827 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
21828 to grub_off_t, to detect an error from grub_file_seek.
21829 (grub_multiboot_load_elf32): Likewise.
21831 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
21832 maximum unsigned long value when an overflow is detected.
21833 (grub_strtoull): New function.
21834 (grub_divmod64): Likewise.
21835 (grub_lltoa): use grub_divmod64.
21837 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
21839 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
21840 the pointer to next character. Use grub_strtoull instead of
21842 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
21843 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
21846 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
21847 return value is signed.
21848 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
21849 test if OFFSET is less than zero, as OFFSET is unsigned now.
21851 * kern/disk.c (struct grub_disk_cache): Change the type of
21852 "sector" to grub_disk_addr_t.
21853 (grub_disk_cache_get_index): Change the type of SECTOR to
21854 grub_disk_addr_t. Calculate the hash with SECTOR casted to
21855 unsigned after shifting.
21856 (grub_disk_cache_invalidate): Change the type of SECTOR to
21858 (grub_disk_cache_unlock): Likewise.
21859 (grub_disk_cache_store): Likewise.
21860 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
21861 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
21862 grub_disk_addr_t and grub_uint64_t, respectively.
21863 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
21864 body, as the value of OFFSET is tweaked by
21865 grub_disk_check_range. Change the types of START_SECTOR, LEN and
21866 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
21868 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
21869 body, as the value of OFFSET is tweaked by
21870 grub_disk_check_range. Change the types of LEN and N to
21873 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
21874 and "saved_offset" to grub_off_t.
21875 (test_header): Cast BUF to char *.
21876 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
21878 (grub_gzio_read): Change the types of OFFSET and SIZE to
21879 grub_off_t and grub_size_t, respectively.
21881 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
21883 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
21884 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
21885 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
21886 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
21887 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
21889 * include/grub/types.h (grub_off_t): Unconditionally set to
21891 (grub_disk_addr_t): Changed to grub_uint64_t.
21893 * include/grub/partition.h (struct grub_partition): Change the
21894 types of "start", "len" and "offset" to grub_disk_addr_t,
21895 grub_uint64_t and grub_disk_addr_t, respectively.
21896 (grub_partition_get_start): Return grub_disk_addr_t.
21897 (grub_partition_get_len): Return grub_uint64_t.
21899 * include/grub/misc.h (grub_strtoull): New prototype.
21900 (grub_divmod64): Likewise.
21902 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
21903 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
21904 grub_off_t, respectively.
21905 All callers and references changed.
21907 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
21908 grub_size_t in "read".
21909 All callers and references changed.
21911 * include/grub/file.h (struct grub_file): Change the types of
21912 "offset" and "size" to grub_off_t and grub_off_t,
21913 respectively. Change the type of SECTOR to grub_disk_addr_t in
21915 (grub_file_read): Change the type of LEN to grub_size_t.
21916 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
21918 (grub_file_size): Return grub_off_t.
21919 (grub_file_tell): Likewise.
21920 All callers and references changed.
21922 * include/grub/disk.h (struct grub_disk_dev): Change the types of
21923 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
21925 (struct grub_disk): Change the type of "total_sectors" to
21926 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
21928 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
21929 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
21930 (grub_disk_write): Likewise.
21931 All callers and references changed.
21933 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
21934 char * for grub_strncmp to silence gcc.
21935 (grub_iso9660_mount): Likewise.
21936 (grub_iso9660_mount): Likewise.
21937 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
21939 (grub_iso9660_iterate_dir): Likewise.
21940 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
21942 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
21943 LEN to grub_disk_addr_t and grub_size_t, respectively.
21945 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
21947 * fs/jfs.c (grub_jfs_read_file): Likewise.
21949 * fs/minix.c (grub_jfs_read_file): Likewise.
21951 * fs/sfs.c (grub_jfs_read_file): Likewise.
21953 * fs/ufs.c (grub_jfs_read_file): Likewise.
21955 * fs/xfs.c (grub_jfs_read_file): Likewise.
21957 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
21958 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
21961 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
21962 BLKNR to -1 instead of returning GRUB_ERRNO.
21963 (grub_ext2_read_file): Change the types of SECTOR and
21964 LEN to grub_disk_addr_t and grub_size_t, respectively.
21966 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
21967 LEN to grub_disk_addr_t and grub_size_t, respectively.
21969 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
21972 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
21973 string. Do not cast SECTOR explicitly.
21975 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
21976 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
21977 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
21978 grub_disk_addr_t and grub_size_t, respectively. If the sector is
21979 over 2TB and LBA mode is not supported, raise an error.
21980 (get_safe_sectors): New function.
21981 (grub_biosdisk_read): Use get_safe_sectors.
21982 (grub_biosdisk_write): Likewise.
21984 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
21985 (grub_efidisk_write): Likewise.
21987 * disk/loopback.c (delete_loopback): Cosmetic changes.
21988 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
21990 (grub_loopback_open): Likewise.
21991 (grub_loopback_read): Likewise. Also, change the type of POS to
21992 grub_off_t, and fix the usage of grub_memset.
21994 * commands/i386/pc/play.c: Include grub/machine/time.h.
21996 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
21999 * commands/configfile.c: Include grub/env.h.
22001 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
22002 GRUB_ERRNO directly instead. Change the type of POS to
22003 grub_off_t. Follow the coding standard.
22005 * commands/blocklist.c: Include grub/partition.h.
22006 (grub_cmd_blocklist): Return an error if the underlying device is
22007 not a disk. Take the starting sector of a partition into account,
22008 if a partition is used.
22010 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
22012 (lba_mode): Support 64-bit addresses.
22013 (chs_mode): Likewise.
22014 (copy_buffer): Adapted to the new offsets of a length field and a
22016 (blocklist_default_start): Allocate 64-bit space.
22018 * boot/i386/pc/boot.S (force_lba): Removed.
22019 (boot_drive): Moved to under KERNEL_SECTOR.
22020 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
22022 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
22024 (lba_mode): Refactored to support a 64-bit address. More size
22026 (setup_sectors): Likewise.
22028 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22030 * DISTLIST: Added include/grub/i386/linux.h. Removed
22031 include/grub/i386/pc/linux.h
22033 * configure.ac (AC_INIT): Bumped to 1.94.
22035 * config.guess: Updated from gnulib.
22036 * config.sub: Likewise.
22037 * install-sh: Likewise.
22038 * mkinstalldirs: Likewise.
22040 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22042 * conf/common.rmk (grub_modules_init.lst): Depended on
22043 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
22046 * genmk.rb (PModule::rule): Reverted the previous change.
22048 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22050 * conf/common.rmk (grub_modules_init.lst): Depends on
22051 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
22052 that the target does not exist before producing.
22053 (grub_modules_init.h): Remove the target before generating.
22054 (grub_emu_init.c): Likewise.
22056 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
22058 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
22060 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
22061 for the target-specific tests. Make sure that we also have the
22062 up-to-date target variables for those tests.
22064 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22066 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
22067 (PModule::rule): Likewise.
22069 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22071 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
22072 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
22073 target-specific flags should be prefixed.
22074 (PModule::rule): Likewise.
22076 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
22078 * configure.ac (CMP): Check if cmp is available explicitly.
22080 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
22082 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
22083 (target_cpu): New variable.
22084 (pkglibdir): Use target_cpu instead of host_cpu.
22086 * util/i386/pc/grub-install.in (host_cpu): Removed.
22087 (target_cpu): New variable.
22088 (pkglibdir): Use target_cpu instead of host_cpu.
22090 * util/genmoddep.c: Removed.
22092 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
22093 instead of GRUB_HOST_SIZEOF_VOID_P.
22094 * kern/dl.c: Likewise.
22096 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
22098 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22099 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22100 (GRUB_TARGET_SIZEOF_LONG): ... this.
22101 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22102 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22103 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22105 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22106 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22107 (GRUB_TARGET_SIZEOF_LONG): ... this.
22108 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22109 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22110 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22112 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22113 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22114 (GRUB_TARGET_SIZEOF_LONG): ... this.
22115 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22116 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22118 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
22119 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
22120 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
22121 instead of GRUB_HOST_SIZEOF_LONG.
22122 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
22123 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
22124 GRUB_CPU_WORDS_BIGENDIAN.
22125 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
22126 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
22129 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
22130 (genmoddep_SOURCES): Likewise.
22131 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
22132 (genmoddep_SOURCES): Likewise.
22133 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
22134 (genmoddep_SOURCES): Likewise.
22135 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
22137 (genmoddep_SOURCES): Likewise.
22139 * genmoddep.awk: New file.
22141 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
22142 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
22143 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
22144 (PModule::rule): Likewise.
22145 (Program::rule): Likewise.
22146 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
22147 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
22150 * configure.ac: Rewritten intensively to use host and target
22151 instead of build and host, respectively.
22153 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
22154 (host_cpu): Removed.
22155 (target_cpu): New variable.
22156 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
22157 (BUILD_CC): Removed.
22158 (BUILD_CFLAGS): Likewise.
22159 (BUILD_CPPFLAGS): Likewise.
22160 (TARGET_CC): New variable.
22161 (TARGET_CFLAGS): Likewise.
22162 (TARGET_CPPFLAGS): Likewise.
22163 (TARGET_LDFLAGS): Likewise.
22165 (include): Use target_cpu instead of host_cpu.
22166 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
22168 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
22170 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
22172 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
22173 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
22174 field 'false' to 'exec_on_false'.
22175 (grub_script_create_cmdif): Renamed argument names to reflect above
22178 * normal/execute.c (grub_script_execute_cmdif): Likewise.
22180 * normal/script.c (grub_script_create_cmdif): Likewise.
22182 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
22184 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
22186 (grub_hfsplus_btree_recptr): Likewise.
22187 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
22188 FILEBLOCK both to pass a block number and store next block
22190 (grub_hfsplus_read_block): Rewritten heavily to support an extent
22191 overflow file correctly. Specify errors appropriately, because
22192 fshelp expects that GRUB_ERRNO is set when fails. Reuse
22193 grub_hfsplus_btree_recptr to get the pointer to a found key.
22194 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
22197 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
22199 (_linux_mod_SOURCES): New variable.
22200 (_linux_mod_CFLAGS): Likewise.
22201 (_linux_mod_LDFLAGS): Likewise.
22202 (linux_mod_SOURCES): Likewise.
22203 (linux_mod_CFLAGS): Likewise.
22204 (linux_mod_LDFLAGS): Likewise.
22206 * DISTLIST: Added loader/i386/efi/linux.c,
22207 loader/i386/efi/linux_normal.c and
22208 include/grub/i386/efi/loader.h.
22210 * loader/i386/efi/linux.c: New file.
22211 * loader/i386/efi/linux_normal.c: Likewise.
22212 * include/grub/i386/efi/loader.h: Likewise.
22214 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
22216 * commands/blocklist.c: New file.
22218 * DISTLIST: Added commands/blocklist.c.
22220 * term/efi/console.c (grub_console_highlight_color): Use a lighter
22221 color for the background, and a darker color for the foreground.
22222 (grub_console_checkkey): Return READ_KEY.
22223 (grub_console_cls): Set the background to
22224 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
22226 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
22228 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
22229 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
22231 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
22234 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
22235 BG. The spec is wrong again.
22237 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
22239 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
22241 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
22242 commands/blocklist.c.
22243 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22245 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
22246 (blocklist_mod_SOURCES): New variable.
22247 (blocklist_mod_CFLAGS): Likewise.
22248 (blocklist_mod_LDFLAGS): Likewise.
22250 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
22252 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
22254 (lba_mode): Use %eax more intensively to reduce the code size.
22256 2006-05-20 Marco Gerards <marco@gnu.org>
22258 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
22260 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
22262 (script): Accept leading newlines.
22263 (newlines): New rule to describe 0 or more newlines.
22264 (commands): Accept `command' with trailing newline. Fixed the
22265 order in which arguments were passed to `grub_script_add_cmd'.
22266 Accept commands separated by newlines.
22267 (function): Changed to accept newlines.
22268 (menuentry) Rewritten.
22270 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
22271 front of the list, instead of to the end.
22273 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
22275 * util/i386/pc/grub-install.in (bindir): New variable.
22276 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
22277 Shaver <lbgwjl@gmail.com>.
22279 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
22281 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
22282 grub/machine/linux.h
22283 * loader/i386/pc/linux.c: Likewise.
22285 * include/grub/i386/pc/linux.h: Moved to ...
22286 * include/grub/i386/linux.h: ... here.
22288 * include/grub/i386/linux.h (struct linux_kernel_params): New
22291 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
22293 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
22295 (grub_video_vbe_blit_glyph): Likewise.
22296 (grub_video_vbe_blit_bitmap): Likewise.
22297 (grub_video_vbe_blit_render_target): Likewise.
22299 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
22301 * configure.ac (--with-platform): Properly quote the square
22304 2006-05-08 Marco Gerards <marco@gnu.org>
22306 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
22308 (kernel_elf_HEADERS): ...to this. Updated all users.
22309 (grubof_symlist.c): Renamed from this...
22310 (kernel_elf_symlist.c): ...to this. Updated all users.
22311 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22312 (grubof_SOURCES): Renamed from this...
22313 (kernel_elf_SOURCES): ...to this.
22314 (grubof_HEADERS): Renamed from this...
22315 (kernel_elf_HEADERS): ...to this.
22316 (grubof_CFLAGS): Renamed from this...
22317 (kernel_elf_CFLAGS): ...to this.
22318 (grubof_ASFLAGS): Renamed from this...
22319 (kernel_elf_ASFLAGS): ...to this.
22320 (grubof_LDFLAGS): Renamed from this...
22321 (kernel_elf_LDFLAGS): ...to this.
22323 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
22325 (kernel_elf_HEADERS): ...to this. Updated all users.
22326 (grubof_symlist.c): Renamed from this...
22327 (kernel_elf_symlist.c): ...to this. Updated all users.
22328 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22329 (grubof_SOURCES): Renamed from this...
22330 (kernel_elf_SOURCES): ...to this.
22331 (grubof_HEADERS): Renamed from this...
22332 (kernel_elf_HEADERS): ...to this.
22333 (grubof_CFLAGS): Renamed from this...
22334 (kernel_elf_CFLAGS): ...to this.
22335 (grubof_ASFLAGS): Renamed from this...
22336 (kernel_elf_ASFLAGS): ...to this.
22337 (grubof_LDFLAGS): Renamed from this...
22338 (kernel_elf_LDFLAGS): ...to this.
22340 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
22341 `kernel.elf' instead of `grubof'.
22343 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
22345 Add --with-platform to configure. Use pkglibdir instead of
22346 pkgdatadir. This is reported by Roger Leigh.
22348 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
22349 (host_vendor): Likewise.
22350 (host_os): Likewise.
22351 (pkgdatadir): Likewise.
22352 (platform): New variable.
22353 (pkglibdir): Likewise.
22354 Use PKGLIBDIR instead of PKGDATADIR.
22356 * util/i386/pc/grub-install.in (datadir): Removed.
22357 (host_vendor): Likewise.
22358 (host_os): Likewise.
22359 (pkgdatadir): Likewise.
22360 (platform): New variable.
22361 (pkglibdir): Likewise.
22362 Use PKGLIBDIR instead of PKGDATADIR.
22364 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
22365 instead of GRUB_DATADIR.
22367 * util/i386/pc/grub-mkimage.c (usage): Likewise.
22369 * util/i386/efi/grub-mkimage.c (usage): Likewise.
22372 * configure.ac (--with-platform): New option.
22373 Use PLATFORM instead of HOST_VENDOR to specify a platform.
22375 * Makefile.in: Include a makefile based on PLATFORM instead of
22377 (pkgdatadir): Not appended by the machine type.
22378 (pkglibdir): Appended by the machine type.
22379 (host_vendor): Removed.
22380 (platform): New variable.
22381 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
22382 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
22383 (uninstall): Likewise.
22385 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
22387 Use the environment context in the menu. Remove the commands
22388 "default" and "timeout", and use variables instead.
22390 * normal/menu.c: Include grub/env.h.
22391 (print_entry): Cast TITLE to silence gcc.
22392 (get_timeout): New function.
22393 (set_timeout): Likewise.
22394 (get_entry_number): Likewise.
22395 (run_menu): Use a default entry, a fallback entry and a timeout
22396 in the environment variables "default", "fallback" and
22397 "timeout". Also, tweak the default entry if it is not within the
22398 current menu entries.
22399 (grub_menu_run): Use a fallback entry in the environment variable
22402 * normal/main.c (read_config_file): Do not initialize
22403 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
22405 (grub_normal_execute): Use a data slot to store the menu.
22407 * include/grub/normal.h (struct grub_menu): Removed default_entry,
22408 fallback_entry and timeout.
22409 (struct grub_menu_list): Removed.
22410 (grub_menu_list_t): Likewise.
22411 (struct grub_context): Likewise.
22412 (grub_context_t): Likewise.
22413 (grub_context_get): Likewise.
22414 (grub_context_get_current_menu): Likewise.
22415 (grub_context_push_menu): Likewise.
22416 (grub_context_pop_menu): Likewise.
22417 (grub_default_init): Likewise.
22418 (grub_default_fini): Likewise.
22419 (grub_timeout_init): Likewise.
22420 (grub_timeout_fini): Likewise.
22422 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
22424 (normal_mod_SOURCES): Removed normal/context.c.
22426 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
22427 commands/default.c, commands/timeout.c and normal/context.c.
22428 (normal_mod_SOURCES): Removed normal/context.c.
22430 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
22431 commands/timeout.c and normal/context.c.
22432 (normal_mod_SOURCES): Removed normal/context.c.
22434 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
22435 commands/default.c, commands/timeout.c and normal/context.c.
22436 (normal_mod_SOURCES): Removed normal/context.c.
22438 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
22440 (default_mod_SOURCES): Removed.
22441 (default_mod_CFLAGS): Likewise.
22442 (default_mod_LDFLAGS): Likewise.
22443 (timeout_mod_SOURCES): Removed.
22444 (timeout_mod_CFLAGS): Likewise.
22445 (timeout_mod_LDFLAGS): Likewise.
22447 * DISTLIST: Removed commands/default.c, commands/timeout.c and
22450 * commands/default.c: Removed.
22451 * commands/timeout.c: Likewise.
22452 * normal/context.c: Likewise.
22454 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
22456 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
22458 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
22460 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
22461 "next" to "prev" for readability.
22462 (struct grub_env_sorted_var): New struct.
22463 (grub_env_context): Renamed to ...
22464 (initial_context): ... this.
22465 (grub_env_var_context): Renamed to ...
22466 (current_context): ... this.
22467 (grub_env_find): Look only at CURRENT_CONTEXT.
22468 (grub_env_context_open): Rewritten to copy exported variables from
22470 (grub_env_context_close): Rewritten according to the new
22471 scheme. Also, add an assertion to prevent the initial context from
22473 (grub_env_insert): Removed the code for the sorted list.
22474 (grub_env_remove): Likewise.
22475 (grub_env_export): Simply mark the variable with
22476 GRUB_ENV_VAR_GLOBAL.
22477 (grub_env_set): A cosmetic change for naming consistency.
22478 (grub_env_get): Likewise.
22479 (grub_env_unset): Likewise.
22480 (grub_env_iterate): Rewritten to sort variables within this
22482 (grub_register_variable_hook): Fixed for naming consistency. Call
22483 grub_env_find again, only if NAME is not found at the first time.
22484 (mangle_data_slot_name): New function.
22485 (grub_env_set_data_slot): Likewise.
22486 (grub_env_get_data_slot): Likewise.
22487 (grub_env_unset_data_slot): Likewise.
22489 * include/grub/env.h (grub_env_var_type): New enum.
22490 (GRUB_ENV_VAR_LOCAL): New constant.
22491 (GRUB_ENV_VAR_GLOBAL): Likewise.
22492 (GRUB_ENV_VAR_DATA): Likewise.
22493 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
22495 (grub_env_set): Replace VAR with NAME for consistency.
22496 (grub_register_variable_hook): Likewise.
22497 (grub_env_export): Specify the name of the argument.
22498 (grub_env_set_data_slot): New prototype.
22499 (grub_env_get_data_slot): Likewise.
22500 (grub_env_unset_data_slot): Likewise.
22502 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22504 Extend the loader so that GRUB can accept a loader which comes
22505 back to GRUB when a loaded image exits. Also, this change adds
22506 support for a chainloader on EFI.
22508 * term/efi/console.c: Include grub/misc.h.
22509 (grub_console_checkkey): Display a scan code on the top for
22510 debugging. This will be removed once the EFI port gets stable.
22511 Correct the scan code mapping.
22513 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
22514 allocate memory from larger regions, in order to reduce the number
22515 of allocated regions. Otherwise, the MacOSX loader panics.
22516 (filter_memory_map): Avoid less than 1MB for compatibility with
22518 (add_memory_regions): Allocate from the tail of a region, if
22519 possible, to avoid allocating a region near to 1MB, for the MacOSX
22522 * kern/efi/init.c (grub_efi_set_prefix): Specify
22523 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
22525 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
22526 argument IMAGE_HANDLE and specify it to get a loaded image.
22527 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
22528 grub_efi_get_loaded_image.
22529 (grub_efi_get_filename): Divide the length by the size of
22531 (grub_efi_get_device_path): New function.
22532 (grub_efi_print_device_path): Print End Device Path nodes. Divide
22533 the length by the size of grub_efi_char16_t for a file path device
22536 * kern/loader.c (grub_loader_noreturn): New variable.
22537 (grub_loader_set): Accept a new argument NORETURN. Set
22538 GRUB_LOADER_NORETURN to NORETURN.
22539 All callers changed.
22540 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
22543 * include/grub/efi/efi.h (grub_efi_get_device_path): New
22545 (grub_efi_get_loaded_image): Take an argument to specify an image
22548 * include/grub/loader.h (grub_loader_set): Added one more argument
22551 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
22552 instead of grub_efi_open_protocol.
22553 (grub_efidisk_get_device_name): Likewise.
22554 (grub_efidisk_close): Print a newline.
22555 (grub_efidisk_get_device_handle): Fixed to use
22556 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
22557 GRUB_EFI_DEVICE_PATH_TYPE.
22559 * disk/efi/efidisk.c (device_path_guid): Moved to ...
22560 * kern/efi/efi.c (device_path_guid): ... here.
22562 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
22564 (kernel_mod_HEADERS): Added efi/disk.h.
22565 (_chain_mod_SOURCES): New variable.
22566 (_chain_mod_CFLAGS): Likewise.
22567 (_chain_mod_LDFLAGS): Likewise.
22568 (chain_mod_SOURCES): Likewise.
22569 (chain_mod_CFLAGS): Likewise.
22570 (chain_mod_LDFLAGS): Likewise.
22572 * DISTLIST: Added include/grub/efi/chainloader.h,
22573 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
22575 * include/grub/efi/chainloader.h: New file.
22576 * loader/efi/chainloader.c: Likewise.
22577 * loader/efi/chainloader_normal.c: Likewise.
22579 2006-04-30 Marco Gerards <marco@gnu.org>
22581 * commands/configfile.c (grub_cmd_source): New function.
22582 (GRUB_MOD_INIT): Register the commands `source' and `.'.
22583 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
22585 2006-04-30 Marco Gerards <marco@gnu.org>
22587 * normal/execute.c (grub_script_execute_cmd): Change the return
22588 type to `grub_err_t'. Correctly return the error.
22589 (grub_script_execute_cmdline): In case a command line is not a
22590 command or a function, try to interpret it as an assignment.
22592 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22594 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
22595 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
22596 skip a node whose name is obviously invalid as UTF-16,
22597 i.e. contains a NUL character. Stop the iteration when the last
22598 directory entry is found. Instead of using the return value of
22599 grub_hfsplus_btree_iterate_node, store the value in RET and use
22600 it, because the iterator can be stopped by the last directory
22603 2006-04-30 Marco Gerards <marco@gnu.org>
22605 * include/grub/env.h (grub_env_export): New prototype. Reported
22606 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
22608 2006-04-30 Marco Gerards <marco@gnu.org>
22610 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
22611 size of the extents in a catalog file record.
22613 2006-04-29 Marco Gerards <marco@gnu.org>
22615 * commands/configfile.c (grub_cmd_configfile): Execute the
22616 configfile within its own context.
22618 * include/grub/env.h (grub_env_context_open): New prototype.
22619 (grub_env_context_close): Likewise.
22621 * kern/env.c (grub_env): Removed.
22622 (grub_env_sorted): Likewise.
22623 (grub_env_context): New variable.
22624 (grub_env_var_context): Likewise.
22625 (grub_env_find): Search both the active context and the global
22627 (grub_env_context_open): New function.
22628 (grub_env_context_close): Likewise.
22629 (grub_env_insert): Likewise.
22630 (grub_env_remove): Likewise.
22631 (grub_env_export): Likewise.
22632 (grub_env_set): Changed to use helper functions to avoid code
22634 (grub_env_iterate): Rewritten so both the current context and the
22635 global context are being used.
22637 * normal/command.c (export_command): New function.
22638 (grub_command_init): Register the `export' function.
22640 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
22642 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
22643 explicitly to suppress gcc's warnings.
22644 * fs/fat.c (grub_fat_find_dir): Likewise.
22645 (grub_fat_label): Likewise.
22646 * fs/xfs.c (grub_xfs_read_inode): Likewise.
22647 (grub_xfs_mount): Likewise.
22648 (grub_xfs_label): Likewise.
22649 * fs/affs.c (grub_affs_mount): Likewise.
22650 (grub_affs_label): Likewise.
22651 (grub_affs_iterate_dir): Likewise.
22652 * fs/sfs.c (grub_sfs_mount): Likewise.
22653 (grub_sfs_iterate_dir): Likewise.
22654 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
22655 * fs/hfs.c (grub_hfs_mount): Likewise.
22656 (grub_hfs_cmp_catkeys): Likewise.
22657 (grub_hfs_find_dir): Likewise.
22658 (grub_hfs_dir): Likewise.
22659 (grub_hfs_label): Likewise.
22660 * fs/jfs.c (grub_jfs_mount): Likewise.
22661 (grub_jfs_opendir): Likewise.
22662 (grub_jfs_getent): Likewise.
22663 (grub_jfs_lookup_symlink): Likewise.
22664 (grub_jfs_label): Likewise.
22665 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
22666 (grub_hfsplus_iterate_dir): Likewise.
22667 (grub_hfsplus_btree_iterate_node): Made static.
22669 * util/grub-emu.c (prefix): New variable.
22670 (grub_machine_set_prefix): New function.
22671 (main): Do not set the environment variable "prefix" here. Only
22672 set PREFIX, which is used later by grub_machine_set_prefix.
22674 * include/grub/video.h: Do not include grub/symbol.h.
22675 (grub_video_register): Not exported. This symbol is not defined in
22677 (grub_video_unregister): Likewise.
22678 (grub_video_iterate): Likewise.
22679 (grub_video_setup): Likewise.
22680 (grub_video_restore): Likewise.
22681 (grub_video_get_info): Likewise.
22682 (grub_video_get_blit_format): Likewise.
22683 (grub_video_set_palette): Likewise.
22684 (grub_video_get_palette): Likewise.
22685 (grub_video_set_viewport): Likewise.
22686 (grub_video_get_viewport): Likewise.
22687 (grub_video_map_color): Likewise.
22688 (grub_video_map_rgb): Likewise.
22689 (grub_video_map_rgba): Likewise.
22690 (grub_video_fill_rect): Likewise.
22691 (grub_video_blit_glyph): Likewise.
22692 (grub_video_blit_bitmap): Likewise.
22693 (grub_video_blit_render_target): Likewise.
22694 (grub_video_scroll): Likewise.
22695 (grub_video_swap_buffers): Likewise.
22696 (grub_video_create_render_target): Likewise.
22697 (grub_video_delete_render_target): Likewise.
22698 (grub_video_set_active_render_target): Likewise.
22700 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
22702 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
22704 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
22705 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22706 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22707 instead of $(srcdir)/genkernsyms.sh.
22709 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
22710 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22711 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22712 instead of $(srcdir)/genkernsyms.sh.
22714 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
22715 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22716 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22717 instead of $(srcdir)/genkernsyms.sh.
22719 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
22720 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22721 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22722 instead of $(srcdir)/genkernsyms.sh.
22724 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
22727 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
22729 (gensymlist.sh): New target.
22730 (genkernsyms.sh): Likewise.
22732 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
22733 genkernsyms.sh.in and gensymlist.sh.in.
22735 * genkernsyms.sh: Removed.
22736 * gensymlist.sh: Likewise.
22738 * genkernsyms.sh.in: New file.
22739 * gensymlist.sh.in: Likewise.
22741 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
22743 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
22744 clobber "prefix", since we may have already set it manually.
22746 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
22748 * kern/misc.c (abort): New alias for grub_abort.
22750 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
22752 A new machine-specific function "grub_machine_set_prefix" is
22753 defined. This is called after loading modules, so that a prefix
22754 initialization can use modules. Also, this change adds an
22755 intensive debugging feature for the memory manager via the
22756 configure option "--enable-mm-debug".
22758 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
22761 * kern/sparc64/ieee1275/init.c (abort): Removed.
22762 (grub_stop): Likewise.
22763 (grub_exit): New function.
22764 (grub_set_prefix): Renamed to ...
22765 (grub_machine_set_prefix): ... this.
22766 (grub_machine_init): Do not call grub_set_prefix.
22768 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
22769 (grub_machine_set_prefix): ... this.
22770 (grub_machine_init): Do not call grub_set_prefix.
22772 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
22773 (grub_machine_init): Do not set the prefix here.
22775 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
22777 * kern/efi/init.c: Include grub/mm.h.
22778 (grub_efi_set_prefix): New function.
22780 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
22781 (grub_efi_get_filename): New function.
22782 (grub_print_device_path): Renamed to ...
22783 (grub_efi_print_device_path): ... this.
22785 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
22786 [MM_DEBUG] (grub_realloc): Likewise.
22787 [MM_DEBUG] (grub_free): Likewise.
22788 [MM_DEBUG] (grub_memalign): Likewise.
22789 [MM_DEBUG] (grub_mm_debug): New variable.
22790 [MM_DEBUG] (grub_debug_malloc): New function.
22791 [MM_DEBUG] (grub_debug_free): New function.
22792 [MM_DEBUG] (grub_debug_realloc): New function.
22793 [MM_DEBUG] (grub_debug_memalign): New function.
22795 * kern/misc.c (grub_abort): Print a newline to distinguish
22798 * kern/main.c (grub_main): Call grub_machine_set_prefix and
22799 grub_set_root_dev after loading modules. This is necessary when
22800 setting a prefix depends on modules.
22802 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
22803 (grub_efi_print_device_path): ... this.
22804 (grub_efi_get_filename): New prototype.
22805 (grub_efi_set_prefix): Likewise.
22807 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
22809 (grub_efidisk_get_device_handle): New prototype.
22810 (grub_efidisk_get_device_name): Likewise.
22812 * include/grub/mm.h: Include config.h.
22813 (MM_DEBUG): Removed.
22814 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
22815 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
22816 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
22817 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
22818 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
22819 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
22820 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
22821 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
22822 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
22824 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
22826 * disk/efi/efidisk.c: Include grub/partition.h.
22827 (iterate_child_devices): New function.
22828 (add_device): First, compare only last device path nodes, so that
22829 devices are sorted by the types.
22830 (grub_efidisk_get_device_handle): New function.
22831 (grub_efidisk_get_device_name): Likewise.
22833 * configure.ac (--enable-mm-debug): New option to enable the
22834 memory manager debugging feature. This makes the binary much
22835 bigger, so is disabled by default.
22837 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
22839 Use grub_abort instead of grub_stop, and grub_exit must be
22840 define in each architecture now. Also, this change adds support
22843 * util/i386/pc/grub-probefs.c: Include grub/term.h.
22844 (grub_getkey): New function.
22845 (grub_term_get_current): Likewise.
22847 * util/i386/pc/grub-setup.c: Include grub/term.h.
22848 (grub_getkey): New function.
22849 (grub_term_get_current): Likewise.
22851 * util/misc.c (grub_stop): Renamed to ...
22852 (grub_exit): ... this.
22854 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
22855 (grub_exit): ... this.
22856 (grub_machine_init): Use grub_abort instead of abort.
22857 (grub_stop): Removed.
22859 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
22862 * kern/i386/pc/startup.S (grub_exit): New function.
22863 (cold_reboot): New label.
22865 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
22866 (grub_efi_init): Call grub_efidisk_init.
22867 (grub_efi_fini): Call grub_efidisk_fini.
22869 * kern/efi/efi.c: Include grub/mm.h.
22870 (grub_efi_console_control_guid): Renamed to ...
22871 (console_control_guid): ... this.
22872 (grub_efi_loaded_image_guid): Renamed to ...
22873 (loaded_image_guid): ... this.
22874 (grub_efi_locate_handle): New function.
22875 (grub_efi_open_protocol): Likewise.
22876 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
22877 GRUB_EFI_CONSOLE_CONTROL_GUID.
22878 (grub_efi_exit): Removed.
22879 (grub_stop): Likewise.
22880 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
22881 (grub_exit): New function.
22882 (grub_print_device_path): Likewise.
22884 * kern/rescue.c (grub_rescue_cmd_exit): New function.
22885 (grub_enter_rescue_mode): Register "exit".
22887 * kern/misc.c (grub_real_dprintf): A cosmetic change.
22888 (grub_abort): New function.
22890 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
22892 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
22894 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
22896 * include/grub/efi/efi.h (grub_efi_exit): Removed.
22897 (grub_print_device_path): New prototype.
22898 (grub_efi_locate_handle): Likewise.
22899 (grub_efi_open_protocol): Likewise.
22901 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
22902 * disk/efi/efidisk.c: Likewise.
22904 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
22906 * include/grub/efi/console_control.h
22907 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
22909 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
22910 last 8 bytes as an array.
22911 (GRUB_EFI_DISK_IO_GUID): New macro.
22912 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
22913 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
22914 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
22916 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
22917 (struct grub_efi_device_path): Rename the member "sub_type" to
22919 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
22920 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
22921 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
22922 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
22923 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
22924 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
22925 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
22926 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
22927 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
22928 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
22929 (struct grub_efi_pci_device_path): New structure.
22930 (grub_efi_pci_device_path_t): New type.
22931 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
22932 (struct grub_efi_pccard_device_path): New structure.
22933 (grub_efi_pccard_device_path_t): New type.
22934 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
22935 (struct grub_efi_memory_mapped_device_path): New structure.
22936 (grub_efi_memory_mapped_device_path_t): New type.
22937 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
22938 (struct grub_efi_vendor_device_path): New structure.
22939 (grub_efi_vendor_device_path_t): New type.
22940 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
22941 (struct grub_efi_controller_device_path): New structure.
22942 (grub_efi_controller_device_path_t): New type.
22943 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
22944 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
22945 (struct grub_efi_acpi_device_path): New structure.
22946 (grub_efi_acpi_device_path_t): New type.
22947 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
22948 (struct grub_efi_expanded_acpi_device_path): New structure.
22949 (grub_efi_expanded_acpi_device_path_t): New type.
22950 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
22951 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
22952 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
22953 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
22954 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
22955 (struct grub_efi_atapi_device_path): New structure.
22956 (grub_efi_atapi_device_path_t): New type.
22957 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
22958 (struct grub_efi_fibre_channel_device_path): New structure.
22959 (grub_efi_fibre_channel_device_path_t): New type.
22960 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
22961 (struct grub_efi_1394_device_path): New structure.
22962 (grub_efi_1394_device_path_t): New type.
22963 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
22964 (struct grub_efi_usb_device_path): New structure.
22965 (grub_efi_usb_device_path_t): New type.
22966 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
22967 (struct grub_efi_usb_class_device_path): New structure.
22968 (grub_efi_usb_class_device_path_t): New type.
22969 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
22970 (struct grub_efi_i2o_device_path): New structure.
22971 (grub_efi_i2o_device_path_t): New type.
22972 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
22973 (struct grub_efi_mac_address_device_path): New structure.
22974 (grub_efi_mac_address_device_path_t): New type.
22975 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
22976 (struct grub_efi_ipv4_device_path): New structure.
22977 (grub_efi_ipv4_device_path_t): New type.
22978 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
22979 (struct grub_efi_ipv6_device_path): New structure.
22980 (grub_efi_ipv6_device_path_t): New type.
22981 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
22982 (struct grub_efi_infiniband_device_path): New structure.
22983 (grub_efi_infiniband_device_path_t): New type.
22984 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
22985 (struct grub_efi_uart_device_path): New structure.
22986 (grub_efi_uart_device_path_t): New type.
22987 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
22988 (struct grub_efi_vendor_messaging_device_path): New structure.
22989 (grub_efi_vendor_messaging_device_path_t): New type.
22990 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
22991 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
22992 (struct grub_efi_hard_drive_device_path): New structure.
22993 (grub_efi_hard_drive_device_path_t): New type.
22994 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
22995 (struct grub_efi_cdrom_device_path): New structure.
22996 (grub_efi_cdrom_device_path_t): New type.
22997 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
22998 (struct grub_efi_vendor_media_device_path): New structure.
22999 (grub_efi_vendor_media_device_path_t): New type.
23000 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
23001 (struct grub_efi_file_path_device_path): New structure.
23002 (grub_efi_file_path_device_path_t): New type.
23003 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
23004 (struct grub_efi_protocol_device_path): New structure.
23005 (grub_efi_protocol_device_path_t): New type.
23006 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
23007 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
23008 (struct grub_efi_bios_device_path): New structure.
23009 (grub_efi_bios_device_path_t): New type.
23010 (struct grub_efi_disk_io): New structure.
23011 (grub_efi_disk_io_t): New type.
23012 (struct grub_efi_block_io_media): New structure.
23013 (grub_efi_block_io_media_t): New type.
23014 (struct grub_efi_block_io): New structure.
23015 (grub_efi_block_io_t): New type.
23017 * include/grub/misc.h (grub_stop): Removed.
23018 (grub_exit): New prototype.
23019 (grub_abort): Likewise.
23021 * include/grub/disk.h (enum grub_disk_dev_id): Added
23022 GRUB_DISK_DEVICE_EFIDISK_ID.
23024 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
23025 disk/efi/efidisk.c.
23026 (kernel_syms.lst): Remove the target if an error occurs.
23028 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
23030 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
23031 as it was simply too buggy.
23033 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
23035 * kern/misc.c (grub_lltoa): New function.
23036 (grub_vsprintf): Added support for the long long suffix,
23039 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
23041 * Makefile.in (LDFLAGS): Add variable.
23042 (LD): Remove variable.
23043 * configure.ac: Add -m32 to LDFLAGS.
23044 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
23045 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
23046 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
23047 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
23048 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
23050 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
23051 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
23052 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
23054 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
23056 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
23057 length for unknown glyph.
23059 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23061 Add support for pre-loaded modules into the EFI port.
23063 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
23064 completely. Accept one more argument DIR. The caller has changed.
23066 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
23068 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
23069 (grub_efi_loaded_image_guid): New variable.
23070 (grub_efi_get_loaded_image): New function.
23071 (grub_arch_modules_addr): Likewise.
23073 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
23076 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
23077 (struct grub_efi_loaded_image): New structure.
23078 (grub_efi_loaded_image_t): New type.
23080 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23082 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
23083 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
23084 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
23086 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
23088 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
23090 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
23092 * DISTLIST: Added include/grub/efi/console.h,
23093 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
23094 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23096 * include/grub/efi/console.h: New file.
23097 * include/grub/efi/time.h: Likewise.
23098 * include/grub/i386/efi/kernel.h: Likewise.
23099 * kern/efi/init.c: Likewise.
23100 * kern/efi/mm.c: Likewise.
23101 * term/efi/console.c: Likewise.
23103 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
23104 (grub_stop): Removed.
23105 (grub_get_rtc): Likewise.
23106 (grub_machine_init): Simply call grub_efi_init.
23107 (grub_machine_fini): Call grub_efi_fini.
23109 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
23110 (grub_efi_output_string): Removed.
23111 (grub_efi_stall): New function.
23112 (grub_stop): Likewise.
23113 (grub_get_rtc): Likewise.
23115 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
23116 (grub_efi_stall): New prototype.
23117 (grub_efi_allocate_pages): Likewise.
23118 (grub_efi_free_pages): Likewise.
23119 (grub_efi_get_memory_map): Likewise.
23120 (grub_efi_mm_init): Likewise.
23121 (grub_efi_mm_fini): Likewise.
23122 (grub_efi_init): Likewise.
23123 (grub_efi_fini): Likewise.
23125 * include/grub/i386/efi/time.h: Do not include
23126 grub/symbol.h. Include grub/efi/time.h.
23127 (GRUB_TICKS_PER_SECOND): Removed.
23128 (grub_get_rtc): Likewise.
23130 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
23131 Added padding. The EFI spec is buggy.
23132 (GRUB_EFI_BLACK): New macro.
23133 (GRUB_EFI_BLUE): Likewise.
23134 (GRUB_EFI_GREEN): Likewise.
23135 (GRUB_EFI_CYAN): Likewise.
23136 (GRUB_EFI_RED): Likewise.
23137 (GRUB_EFI_MAGENTA): Likewise.
23138 (GRUB_EFI_BROWN): Likewise.
23139 (GRUB_EFI_LIGHTGRAY): Likewise.
23140 (GRUB_EFI_BRIGHT): Likewise.
23141 (GRUB_EFI_DARKGRAY): Likewise.
23142 (GRUB_EFI_LIGHTBLUE): Likewise.
23143 (GRUB_EFI_LIGHTGREEN): Likewise.
23144 (GRUB_EFI_LIGHTCYAN): Likewise.
23145 (GRUB_EFI_LIGHTRED): Likewise.
23146 (GRUB_EFI_LIGHTMAGENTA): Likewise.
23147 (GRUB_EFI_YELLOW): Likewise.
23148 (GRUB_EFI_WHITE): Likewise.
23149 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
23150 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
23151 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
23152 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
23153 (GRUB_EFI_BACKGROUND_RED): Likewise.
23154 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
23155 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
23156 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
23157 (GRUB_EFI_TEXT_ATTR): Likewise.
23159 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
23160 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23161 (kernel_mod_HEADERS): Added efi/time.h.
23163 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
23165 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
23166 include/grub/efi/api.h, include/grub/efi/console_control.h,
23167 include/grub/efi/efi.h, include/grub/efi/pe32.h,
23168 include/grub/i386/efi/time.h, kern/efi/efi.c,
23169 kern/i386/efi/init.c, kern/i386/efi/startup.S,
23170 and util/i386/efi/grub-mkimage.c.
23172 * Makefile.in (RMKFILES): Added i386-efi.rmk.
23174 * genmk.rb (PModule#rule): Do not export symbols if
23175 #{prefix}_EXPORTS is set to "no".
23177 * conf/i386-efi.mk: New file.
23178 * conf/i386-efi.rmk: Likewise.
23179 * include/grub/efi/api.h: Likewise.
23180 * include/grub/efi/console_control.h: Likewise.
23181 * include/grub/efi/efi.h: Likewise.
23182 * include/grub/efi/pe32.h: Likewise.
23183 * include/grub/i386/efi/time.h: Likewise.
23184 * kern/efi/efi.c: Likewise.
23185 * kern/i386/efi/init.c: Likewise.
23186 * kern/i386/efi/startup.S: Likewise.
23187 * util/i386/efi/grub-mkimage.c: Likewise.
23189 2006-04-17 Marco Gerards <marco@gnu.org>
23191 * include/grub/script.h: Include <grub/parser.h> and
23192 "grub_script.tab.h".
23193 (struct grub_lexer_param): New struct.
23194 (struct grub_parser_param): Likewise.
23195 (grub_script_create_arglist): Pass the state in an argument.
23196 (grub_script_add_arglist): Likewise.
23197 (grub_script_create_cmdline): Likewise.
23198 (grub_script_create_cmdblock): Likewise.
23199 (grub_script_create_cmdif): Likewise.
23200 (grub_script_create_cmdmenu): Likewise.
23201 (grub_script_add_cmd): Likewise.
23202 (grub_script_arg_add): Likewise.
23203 (grub_script_lexer_ref): Likewise.
23204 (grub_script_lexer_deref): Likewise.
23205 (grub_script_lexer_record_start): Likewise.
23206 (grub_script_lexer_record_stop): Likewise.
23207 (grub_script_mem_record): Likewise.
23208 (grub_script_mem_record_stop): Likewise.
23209 (grub_script_malloc): Likewise.
23210 (grub_script_yylex): Likewise.
23211 (grub_script_yyparse): Likewise.
23212 (grub_script_yyerror): Likewise.
23213 (grub_script_yylex): Likewise.
23214 (grub_script_lexer_init): Return the state.
23216 * normal/lexer.c (grub_script_lexer_state): Removed variable.
23217 (grub_script_lexer_done): Likewise.
23218 (grub_script_lexer_getline): Likewise.
23219 (grub_script_lexer_refs): Likewise.
23220 (script): Likewise.
23221 (newscript): Likewise.
23222 (record): Likewise.
23223 (recording): Likewise.
23224 (recordpos): Likewise.
23225 (recordlen): Likewise.
23226 (grub_script_lexer_init): Return the state instead of setting
23228 (grub_script_lexer_ref): Use the newly added argument for state
23229 instead of globals.
23230 (grub_script_lexer_deref): Likewise.
23231 (grub_script_lexer_record_start): Likewise.
23232 (grub_script_lexer_record_stop): Likewise.
23233 (recordchar): Likewise.
23234 (nextchar): Likewise.
23235 (grub_script_yylex2): Likewise.
23236 (grub_script_yylex): Likewise.
23237 (grub_script_yyerror): Likewise.
23239 * normal/parser.y (func_mem): Removed variable.
23240 (menu_entry): Likewise.
23242 (%lex-param): New parser option.
23243 (%parse-param): Likewise.
23244 (script): Always return the AST.
23245 (argument): Pass the state around.
23246 (arguments): Likewise.
23247 (grubcmd): Likewise.
23248 (commands): Likewise.
23249 (function): Likewise.
23250 (menuentry): Likewise.
23251 (if_statement): Likewise.
23254 * normal/script.c (grub_script_memused): Removed variable.
23255 (grub_script_parsed): Likewise.
23256 (grub_script_malloc): Added a state argument. Use that instead of
23258 (grub_script_mem_record): Likewise.
23259 (grub_script_mem_record_stop): Likewise.
23260 (grub_script_arg_add): Likewise.
23261 (grub_script_add_arglist): Likewise.
23262 (grub_script_create_cmdline): Likewise.
23263 (grub_script_create_cmdif): Likewise.
23264 (grub_script_create_cmdmenu): Likewise.
23265 (grub_script_add_cmd): Likewise.
23266 (grub_script_parse): Setup the state before calling the parser.
23268 2006-04-16 Marco Gerards <marco@gnu.org>
23270 * normal/command.c (grub_command_init): Remove the title command.
23272 * normal/lexer.c (grub_script_yylex): Renamed from this...
23273 (grub_script_yylex2): ... to this.
23274 (grub_script_yylex): New function. Temporary
23275 introduced to filter some tokens.
23276 (grub_script_yyerror): Print a newline.
23278 * normal/main.c (read_config_file): Output information about the
23279 lines that contain errors. Wait for a key after all lines have
23280 been processed. Don't return an empty menu.
23282 * normal/parser.y (func_mem): Don't initialize.
23283 (menu_entry): Likewise.
23284 (err): New variable.
23285 (script): Don't return anything when an error was encountered.
23286 (ws, returns): Removed rules.
23287 (argument): Disabled concatenated variable support.
23288 (arguments): Remove explicit separators.
23289 (grubcmd): Likewise.
23290 (function): Likewise.
23291 (menuentry): Likewise.
23293 (commands): Likewise. Add error handling.
23295 * normal/script.c (grub_script_create_cmdline): If
23296 `grub_script_parsed' is 0, assume the parser encountered an error.
23298 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
23300 * configure.ac: Add support for EFI. Fix the typo
23301 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
23303 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23305 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
23306 foreign multibyte characters should be shown correctly.
23308 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23310 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
23312 (read_config_file): Made it to close file before returning.
23314 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
23316 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
23317 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
23318 video/i386/pc/vbefill.c.
23320 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
23321 video/i386/pc/vbefill.c.
23323 * include/grub/video.h (grub_video_blit_format): New enum.
23324 (grub_video_mode_info): Added new member blit_format.
23325 (grub_video_get_blit_format): New function prototype.
23327 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
23328 function prototype.
23329 (grub_video_vbe_map_rgb): Likewise.
23330 (grub_video_vbe_unmap_color): Likewise.
23332 * include/grub/i386/pc/vbeblit.h: New file.
23334 * include/grub/i386/pc/vbefill.h: New file.
23336 * video/video.c (grub_video_get_blit_format): New function.
23337 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
23338 (grub_video_vbe_map_rgb): Likewise.
23339 (grub_video_vbe_unmap_color): Likewise.
23341 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
23343 (grub_video_vbe_blit_render_target): Changed to use more optimized
23345 (grub_video_vbe_setup): Added detection for optimized settings.
23346 (grub_video_vbe_create_render_target): Likewise.
23348 * video/i386/pc/vbeblit.c: New file.
23350 * video/i386/pc/vbefill.c: New file.
23352 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
23354 * font/manager.c (grub_font_get_glyph): Removed font fixup from
23357 * util/unifont2pff.rb: ... and moved it to here. Improved argument
23358 parsing to support both hex and dec ranges. If filename was missing
23359 show usage information.
23361 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
23363 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
23364 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
23366 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
23367 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
23368 (video_mod_SOURCES): Added.
23369 (video_mod_CFLAGS): Likewise.
23370 (video_mod_LDFLAGS): Likewise.
23371 (gfxterm_mod_SOURCES): Likewise.
23372 (gfxterm_mod_CFLAGS): Likewise.
23373 (gfxterm_mod_LDFLAGS): Likewise.
23374 (videotest_mod_SOURCES): Likewise.
23375 (videotest_mod_CFLAGS): Likewise.
23376 (videotest_mod_LDFLAGS): Likewise.
23377 (vesafb_mod_SOURCES): Removed.
23378 (vesafb_mod_CFLAGS): Likewise.
23379 (vesafb_mod_LDFLAGS): Likewise.
23380 (vga_mod_SOURCES): Likewise.
23381 (vga_mod_CFLAGS): Likewise.
23382 (vga_mod_LDFLAGS): Likewise.
23384 * commands/videotest.c: New file.
23386 * font/manager.c (fill_with_default_glyph): Modified to use
23388 (grub_font_get_glyph): Likewise.
23389 (fontmanager): Renamed from this...
23390 (font_manager): ... to this.
23392 * include/grub/font.h (grub_font_glyph): Added new structure.
23393 (grub_font_get_glyph): Modified to use grub_font_glyph.
23395 * include/grub/misc.h (grub_abs): Added as inline function.
23397 * include/grub/video.h: New file.
23399 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
23400 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
23401 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
23402 (grub_vbe_get_controller_info): Renamed from this...
23403 (grub_vbe_bios_get_controller_info): ... to this.
23404 (grub_vbe_get_mode_info): Renamed from this...
23405 (grub_vbe_bios_get_mode_info): ... to this.
23406 (grub_vbe_set_mode): Renamed from this...
23407 (grub_vbe_bios_set_mode): ... to this.
23408 (grub_vbe_get_mode): Renamed from this...
23409 (grub_vbe_bios_get_mode): ... to this.
23410 (grub_vbe_set_memory_window): Renamed from this...
23411 (grub_vbe_bios_set_memory_window): ... to this.
23412 (grub_vbe_get_memory_window): Renamed from this...
23413 (grub_vbe_bios_get_memory_window): ... to this.
23414 (grub_vbe_set_scanline_length): Renamed from this...
23415 (grub_vbe_set_scanline_length): ... to this.
23416 (grub_vbe_get_scanline_length): Renamed from this...
23417 (grub_vbe_bios_get_scanline_length): ... to this.
23418 (grub_vbe_set_display_start): Renamed from this...
23419 (grub_vbe_bios_set_display_start): ... to this.
23420 (grub_vbe_get_display_start): Renamed from this...
23421 (grub_vbe_bios_get_display_start): ... to this.
23422 (grub_vbe_set_palette_data): Renamed from this...
23423 (grub_vbe_bios_set_palette_data): ... to this.
23424 (grub_vbe_set_pixel_rgb): Removed.
23425 (grub_vbe_set_pixel_index): Likewise.
23427 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
23429 (grub_vbe_bios_get_controller_info): ... to this.
23430 (grub_vbe_get_mode_info): Renamed from this...
23431 (grub_vbe_bios_get_mode_info): ... to this.
23432 (grub_vbe_set_mode): Renamed from this...
23433 (grub_vbe_bios_set_mode): ... to this.
23434 (grub_vbe_get_mode): Renamed from this...
23435 (grub_vbe_bios_get_mode): ... to this.
23436 (grub_vbe_set_memory_window): Renamed from this...
23437 (grub_vbe_bios_set_memory_window): ... to this.
23438 (grub_vbe_get_memory_window): Renamed from this...
23439 (grub_vbe_bios_get_memory_window): ... to this.
23440 (grub_vbe_set_scanline_length): Renamed from this...
23441 (grub_vbe_set_scanline_length): ... to this.
23442 (grub_vbe_get_scanline_length): Renamed from this...
23443 (grub_vbe_bios_get_scanline_length): ... to this.
23444 (grub_vbe_set_display_start): Renamed from this...
23445 (grub_vbe_bios_set_display_start): ... to this.
23446 (grub_vbe_get_display_start): Renamed from this...
23447 (grub_vbe_bios_get_display_start): ... to this.
23448 (grub_vbe_set_palette_data): Renamed from this...
23449 (grub_vbe_bios_set_palette_data): ... to this.
23450 (grub_vbe_bios_get_controller_info): Fixed problem with registers
23451 getting corrupted after calling it. Added more pushes and pops.
23452 (grub_vbe_bios_set_mode): Likewise.
23453 (grub_vbe_bios_get_mode): Likewise.
23454 (grub_vbe_bios_get_memory_window): Likewise.
23455 (grub_vbe_bios_set_scanline_length): Likewise.
23456 (grub_vbe_bios_get_scanline_length): Likewise.
23457 (grub_vbe_bios_get_display_start): Likewise.
23458 (grub_vbe_bios_set_palette_data): Likewise.
23460 * normal/cmdline.c (cl_set_pos): Refresh the screen.
23461 (cl_insert): Likewise.
23462 (cl_delete): Likewise.
23464 * term/gfxterm.c: New file.
23466 * term/i386/pc/vesafb.c: Removed file.
23468 * video/video.c: New file.
23470 * video/i386/pc/vbe.c (real2pm): Added new function.
23471 (grub_video_vbe_draw_pixel): Likewise.
23472 (grub_video_vbe_get_video_ptr): Likewise.
23473 (grub_video_vbe_get_pixel): Likewise
23474 (grub_video_vbe_init): Likewise.
23475 (grub_video_vbe_fini): Likewise.
23476 (grub_video_vbe_setup): Likewise.
23477 (grub_video_vbe_get_info): Likewise.
23478 (grub_video_vbe_set_palette): Likewise.
23479 (grub_video_vbe_get_palette): Likewise.
23480 (grub_video_vbe_set_viewport): Likewise.
23481 (grub_video_vbe_get_viewport): Likewise.
23482 (grub_video_vbe_map_color): Likewise.
23483 (grub_video_vbe_map_rgb): Likewise.
23484 (grub_video_vbe_map_rgba): Likewise.
23485 (grub_video_vbe_unmap_color): Likewise.
23486 (grub_video_vbe_fill_rect): Likewise.
23487 (grub_video_vbe_blit_glyph): Likewise.
23488 (grub_video_vbe_blit_bitmap): Likewise.
23489 (grub_video_vbe_blit_render_target): Likewise.
23490 (grub_video_vbe_scroll): Likewise.
23491 (grub_video_vbe_swap_buffers): Likewise.
23492 (grub_video_vbe_create_render_target): Likewise.
23493 (grub_video_vbe_delete_render_target): Likewise.
23494 (grub_video_vbe_set_active_render_target): Likewise.
23495 (grub_vbe_set_pixel_rgb): Remove function.
23496 (grub_vbe_set_pixel_index): Likewise.
23497 (index_color_mode): Remove static variable.
23498 (active_mode): Likewise.
23499 (framebuffer): Likewise.
23500 (bytes_per_scan_line): Likewise.
23501 (grub_video_vbe_adapter): Added new static variable.
23502 (framebuffer): Likewise.
23503 (render_target): Likewise.
23504 (initial_mode): Likewise.
23505 (mode_in_use): Likewise.
23506 (mode_list): Likewise.
23508 2006-03-10 Marco Gerards <marco@gnu.org>
23510 * configure.ac (AC_INIT): Bumped to 1.93.
23512 * DISTLIST: Added `include/grub/hfs.h'.
23514 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
23516 * boot/i386/pc/boot.S (general_error): Before looping, try INT
23517 18H, which might help the BIOS falling back to next boot media.
23519 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
23521 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
23522 Poe Chen <poe.poechen@gmail.com>.
23524 2006-01-17 Marco Gerards <marco@gnu.org>
23526 * include/grub/normal.h: Include <grub/script.h>.
23527 (grub_command_list): Removed struct.
23528 (grub_command_list_t): Removed type.
23529 (grub_menu_entry): Remove members `num' and `command_list'. Add
23530 members `commands' and `sourcecode'.
23531 * include/grub/script.h: Add inclusion guards.
23532 (grub_script_cmd_menuentry): New struct.
23533 (grub_script_execute_menuentry): New prototype.
23534 (grub_script_lexer_record_start): Likewise.
23535 (grub_script_lexer_record_stop): Likewise.
23536 * normal/execute.c (grub_script_execute_menuentry): New function.
23537 * normal/lexer.c (record, recording, recordpos, recordlen): New
23539 (grub_script_lexer_record_start): New function.
23540 (grub_script_lexer_record_stop): Likewise.
23541 (recordchar): Likewise.
23542 (nextchar): Likewise.
23543 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
23544 2048 as the buffer size. Add the tokens `menuentry' and `@'.
23545 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
23546 (current_menu): New variable.
23547 (free_menu): Mainly rewritten.
23548 (grub_normal_menu_addentry): New function.
23549 (read_config_file): Rewritten.
23550 * normal/menu.c (run_menu_entry): Mainly rewritten.
23551 * normal/menu_entry.c (make_screen): Rewritten the code to insert
23553 (run): Mainly rewritten.
23554 * normal/parser.y (menu_entry): New variable.
23555 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
23556 (menuentry): New rule.
23557 (command): Add `menuentry'.
23558 (if_statement): Allow additional returns before `fi'.
23559 * normal/script.c (grub_script_create_cmdmenu): New function.
23561 2006-01-03 Marco Gerards <marco@gnu.org>
23563 * INSTALL: GNU Bison is required.
23564 * configure.ac: Rewritten the test to detect Bison.
23565 * Makefile.in (YACC): New variable. Reported by Xun Sun
23566 <xun.sun.cn@gmail.com>.
23568 2006-01-03 Marco Gerards <marco@gnu.org>
23570 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
23571 the HFS+ filesystem to filesystem blocks.
23572 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
23573 GCC warning is silenced.
23575 2006-01-03 Marco Gerards <marco@gnu.org>
23577 * partmap/apple.c (apple_partition_map_iterate): Convert the data
23578 read from disk from big endian to host byte order.
23580 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
23582 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
23584 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
23585 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
23586 embedded HFS+ filesystem.
23587 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
23588 (grub_hfs_sblock): Move from here...
23589 * include/grub/hfs.h: To here... New file.
23590 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
23592 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
23594 (grub_hfsplus_volheader): Change type of member `magic' to
23596 (grub_hfsplus_data): Add new member `embedded_offset'.
23597 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
23599 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
23600 Calculate the offset.
23602 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23604 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
23606 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
23608 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23610 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
23611 ENV->NAME is NULL after allocating ENV->VALUE.
23613 2005-12-25 Marco Gerards <marco@gnu.org>
23615 * kern/env.c (grub_env_set): Rewritten the error handling code.
23617 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23619 * geninit.sh: Made more robust, and more portable.
23621 2005-12-25 Marco Gerards <marco@gnu.org>
23623 Add support for Apple HFS+ filesystems.
23625 * fs/hfsplus.c: New file.
23627 * DISTLIST: Added `fs/hfsplus.c'.
23629 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
23630 (hfsplus_mod_SOURCES): New variable.
23631 (hfsplus_mod_CFLAGS): Likewise.
23632 (hfsplus_mod_LDFLAGS): Likewise.
23633 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
23634 (grub_setup_SOURCES): Likewise.
23635 (grub_mkdevicemap_SOURCES): Likewise.
23636 (grub_emu_SOURCES): Likewise.
23637 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23639 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
23641 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
23643 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23645 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
23646 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
23647 include/grub/parser.h, include/grub/script.h, kern/parser.c,
23648 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
23649 normal/lexer.c, normal/parser.y, normal/script.c, and
23651 Removed kern/sparc64/cache.c.
23653 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
23654 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
23657 * configure.ac (AC_INIT): Bumped to 1.92.
23659 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
23661 * kern/err.c (grub_error_push): Added new function to support error
23663 (grub_error_pop): Likewise.
23664 (grub_error_stack_items): New local variable to support error stacks.
23665 (grub_error_stack_pos): Likewise.
23666 (grub_error_stack_assert): Likewise.
23667 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
23669 (grub_print_error): Added support to print errors from error stack.
23671 * include/grub/err.h (grub_error_push): Added function prototype.
23672 (grub_error_pop): Likewise.
23674 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
23676 * configure.ac: Accept `powerpc64' as host_cpu.
23677 (amd64): Rename to `biarch32'.
23679 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
23680 non-cacheline-aligned addresses.
23682 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
23683 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
23684 if `size' is non-zero.
23686 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
23688 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
23689 and `cd' to make sure the filename is not prefixed with a
23691 (pkgdata_MODULES): Add `gpt.mod'.
23692 (gpt_mod_SOURCES): New variable.
23693 (gpt_mod_CFLAGS): Likewise.
23694 (gpt_mod_LDFLAGS): Likewise.
23696 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
23698 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
23701 * partmap/gpt.c: New file.
23703 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
23704 GPT partition map is detected.
23706 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
23708 * commands/i386/pc/play.c: New file.
23709 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
23710 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
23713 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
23715 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
23716 ((unused))' to silence gcc warning.
23718 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
23720 * configure.ac: Correct `AC_PROG_YACC' test.
23722 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23724 * util/powerpc/ieee1275/grub-install.in: Run the mount point
23725 check before installing files.
23727 2005-11-22 Mike Small <smallm@panix.com>
23729 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
23730 number regex so multidigit numbers are recognized correctly.
23732 2005-11-22 Mike Small <smallm@panix.com>
23734 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
23735 debugging message before attempting to claim memory.
23736 (grub_rescue_cmd_initrd): Add a claim debugging message and try
23737 multiple addresses in case of failure.
23739 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23741 * term/tparm.c (get_space): Remove empty `if' statement.
23743 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
23745 * kern/parser.c (check_varstate): Rename `state' to 's'.
23747 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23749 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
23750 variable definitions to the beginning of each function. Sort stack
23752 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
23753 `buf' argument to `char *'.
23755 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23757 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
23758 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
23759 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
23760 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
23761 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
23762 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
23763 configfile.mod, search.mod, gzio.mod and test.mod.
23764 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
23765 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
23766 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
23767 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
23768 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
23769 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
23770 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
23771 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
23772 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
23773 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
23774 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
23775 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
23776 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
23777 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
23778 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
23779 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
23780 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
23781 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
23782 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
23783 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
23784 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
23785 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
23786 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
23788 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
23790 (pkgdata_MODULES): Add test.mod.
23792 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23794 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
23795 appending to variables with "+=".
23796 (PModule): Use full pathname to generate *.lst filenames.
23798 * Makefile.in: Fixed list rules moved from genmk.rb.
23799 (.DELETE_ON_ERROR): New special target.
23800 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
23802 * conf/i386-pc.rmk: Include conf/common.mk.
23803 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
23804 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
23805 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
23806 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
23807 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
23808 configfile.mod, search.mod, gzio.mod and test.mod.
23809 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
23810 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
23811 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
23812 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
23813 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
23814 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
23815 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
23816 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
23817 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
23818 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
23819 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
23820 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
23821 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
23822 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
23823 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
23824 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
23825 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
23826 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
23827 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
23828 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
23829 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
23830 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
23831 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
23833 * conf/common.rmk: ... to here. New file.
23835 * conf/common.mk: New file.
23837 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
23839 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
23840 (grub_script.tab.c): ... here.
23842 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
23843 (grub_script.tab.c): ... here.
23845 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
23846 (grub_script.tab.c): ... here.
23848 * normal/command.c (grub_command_find): Fixed a memory leak of
23849 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
23851 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23853 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
23854 "@" which marks the start of a comment on ARM.
23855 (VARIABLE): Likewise.
23857 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23859 Add support for Linux/ADFS partition tables.
23861 * partmap/acorn.c: New file.
23863 * include/grub/acorn_filecore.h: Likewise.
23865 * DISTLIST: Added `partmap/acorn.c' and
23866 `include/grub/acorn_filecore.h'.
23868 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
23870 (pkgdata_MODULES): Add `acorn.mod'.
23871 (acorn_mod_SOURCES): New variable.
23872 (acorn_mod_CFLAGS): Likewise.
23874 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
23876 (pkgdata_MODULES): Add `acorn.mod'.
23877 (acorn_mod_SOURCES): New variable.
23878 (acorn_mod_CFLAGS): Likewise.
23880 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
23881 (pkgdata_MODULES): Add `acorn.mod'.
23882 (acorn_mod_SOURCES): New variable.
23883 (acorn_mod_CFLAGS): Likewise.
23884 (acorn_mod_LDFLAGS): Likewise.
23886 * include/types.h (grub_disk_addr_t): New typedef.
23888 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
23890 * geninit.sh: New file.
23892 * geninitheader.sh: Likewise.
23894 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
23895 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
23896 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
23897 * commands/configfile.c (grub_configfile_init)
23898 (grub_configfile_fini): Likewise.
23899 * commands/default.c (grub_default_init, grub_default_fini):
23901 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
23902 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
23903 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
23904 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
23906 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
23907 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
23909 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
23910 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
23912 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
23914 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
23916 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
23917 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
23918 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
23919 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
23920 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
23921 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
23922 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
23923 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
23924 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
23925 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
23926 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
23927 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
23928 * partmap/amiga.c (grub_amiga_partition_map_init)
23929 (grub_amiga_partition_map_fini): Likewise.
23930 * partmap/apple.c (grub_apple_partition_map_init)
23931 (grub_apple_partition_map_fini): Likewise.
23932 * partmap/pc.c (grub_pc_partition_map_init)
23933 (grub_pc_partition_map_fini): Likewise.
23934 * partmap/sun.c (grub_sun_partition_map_init,
23935 grub_sun_partition_map_fini): Likewise.
23936 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
23939 * util/grub-emu.c: Include <grub_modules_init.h>.
23940 (main): Don't initialize and de-initialize any modules directly,
23941 use `grub_init_all' and `grub_fini_all' instead.
23943 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
23944 `grub_vesafb_mod_init'.
23945 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
23947 * term/i386/pc/vga.c (grub_vga_init): Renamed to
23948 `grub_vga_mod_init'. Updated all users.
23949 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
23951 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
23952 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
23955 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
23956 Generate a function to initialize the module in utilities.
23957 Updated all callers.
23958 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
23959 initialize the module in utilities. Updated all callers.
23961 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
23963 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
23964 escape sequence and a literal ^L to clear the screen.
23966 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
23967 when returning from Open Firmware.
23969 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
23971 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
23972 (grub_ofconsole_height): Likewise.
23973 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
23974 manually insert a '\n'.
23975 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
23976 `grub_ofconsole_height'. Return early if these are already set.
23978 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
23980 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
23981 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
23982 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
23983 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
23984 and `normal/script.c'.
23985 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
23986 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
23987 (test_mod_SOURCES): New variable.
23988 (test_mod_CFLAGS): Likewise.
23989 (test_mod_LDFLAGS): Likewise.
23990 (pkgdata_MODULES): Add `test.mod'.
23991 (grub_script.tab.c): New rule.
23992 (grub_script.tab.h): Likewise.
23994 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
23996 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
23997 `commands/test.c', `normal/execute.c', `normal/lexer.c',
23998 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
23999 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24000 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24001 (test_mod_SOURCES): New variable.
24002 (test_mod_CFLAGS): Likewise.
24003 (pkgdata_MODULES): Add `test.mod'.
24004 (grub_script.tab.c): New rule.
24005 (grub_script.tab.h): Likewise.
24007 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
24009 Add initial scripting support.
24011 * commands/test.c: New file.
24012 * include/grub/script.h: Likewise.
24013 * normal/execute.c: Likewise.
24014 * normal/function.c: Likewise.
24015 * normal/lexer.c: Likewise.
24016 * normal/parser.y: Likewise.
24017 * normal/script.c: Likewise.
24019 * configure.ac: Add `AC_PROG_YACC' test.
24021 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
24022 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
24023 `normal/function.c' and `normal/script.c'.
24024 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24025 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24026 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
24028 (pkgdata_MODULES): Add `test.mod'.
24029 (grub_script.tab.c): New rule.
24030 (grub_script.tab.h): Likewise.
24032 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
24034 * include/grub/normal.h (grub_test_init): New prototype.
24035 (grub_test_fini): Likewise.
24037 * normal/command.c: Include <grub/script.h>.
24038 (grub_command_execute): Rewritten.
24040 * util/grub-emu.c (main): Call `grub_test_init' and
24043 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24045 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
24047 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
24048 there are no pending characters.
24050 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24052 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
24053 `grub_strndup' to drop device arguments. Replace unnecessary
24054 `grub_strndup' with `grub_strdup'.
24056 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24058 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
24059 `debug' environment variable has been set.
24061 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
24063 * Makefile.in (install-local): Use $(DATA).
24064 (uninstall): Likewise.
24065 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
24066 (sbin_UTILITIES): ... to here.
24067 (sbin_SCRIPTS): New variable.
24068 (grub_install_SOURCES): New variable.
24069 * util/powerpc/ieee1275/grub-install.in: New file.
24070 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
24072 (add_segments): Call `grub_util_get_path'.
24074 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
24076 From Timothy Baldwin:
24077 * commands/ls.c (grub_ls_list_files): Close FILE with
24079 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
24081 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
24083 * include/grub/parser.h: New file.
24085 * kern/parser.c: Likewise.
24087 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
24088 (grub_setup_SOURCES): Likewise.
24089 (grub_probefs_SOURCES): Likewise.
24090 (grub_emu_SOURCES): Likewise.
24091 (kernel_img_HEADERS): Add `parser.h'.
24093 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24094 (grub_emu_SOURCES): Add `kern/parser.c'.
24095 (grubof_SOURCES): Likewise.
24097 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24098 (grubof_SOURCES): Add `kern/parser.c'.
24100 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
24102 * kern/misc.c (grub_split_cmdline): Removed function.
24104 * kern/rescue.c: Include <grub/parser.h>.
24105 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
24106 of `grub_split_cmdline'.
24108 * normal/command.c: Include <grub/parser.h>.
24109 (grub_command_execute): Use `grub_parser_split_cmdline' instead
24110 of `grub_split_cmdline'.
24112 * normal/completion.c: Include <grub/parser.h>.
24113 (cmdline_state): New variable.
24114 (iterate_dir): End the filename with a quote depending on the
24115 command line state.
24116 (get_state): new function.
24117 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
24118 split the arguments and determine the current argument. When the
24119 argument string is not quoted, escape all spaces.
24121 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24123 * normal/sparc64/setjmp.S: New file.
24125 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24127 * include/grub/sparc64/libgcc.h: New file.
24128 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
24129 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
24130 normal/sparc64/setjmp.c.
24132 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24134 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
24135 * kern/sparc64/cache.S: New file.
24136 * kern/sparc64/cache.c: Removed.
24137 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
24138 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
24140 (COMMON_LDFLAGS): Add -melf64_sparc.
24141 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
24142 (grubof_SOURCES): Use cache.S instead of cache.c.
24143 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
24144 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
24145 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
24147 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
24148 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
24149 (linux_mod_CFLAGS): Commented out.
24150 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
24151 out because module isn't built.
24152 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
24153 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
24154 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
24155 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
24156 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
24157 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24158 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24159 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
24160 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
24161 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
24162 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24163 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24164 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
24165 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
24167 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
24169 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
24170 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
24171 longer, because HFS should not be used on PC.
24173 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24175 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
24176 consistently within the loop.
24178 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
24180 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
24181 directory can not be read.
24183 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24185 * configure.ac (AC_INIT): Increase the version number to 1.91.
24187 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
24188 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
24189 term/i386/pc/serial.c.
24191 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24193 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
24194 file size must be permitted.
24196 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
24197 between %ah and %al.
24199 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24201 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
24203 Call the hook with a NUL-terminated filename.
24204 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
24207 * kern/term.c (cursor_state): New variable.
24208 (grub_term_set_current): Reset the cursor state on a new
24210 (grub_setcursor): Rewritten to use CURSOR_STATE.
24211 (grub_getcursor): New function.
24213 * include/grub/term.h (grub_getcursor): New prototype.
24215 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
24216 integers on ARM. Reported by Timothy Baldwin
24217 <T.E.Baldwin99@members.leeds.ac.uk>.
24219 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
24221 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
24223 (grub_sfs_dir): Likewise.
24225 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
24227 Add support for the SFS filesystem.
24229 * fs/sfs.c: New file.
24231 * DISTLIST: Added `fs/sfs.c'.
24233 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
24234 (grub_probefs_SOURCES): Likewise.
24235 (grub_emu_SOURCES): Likewise.
24236 (pkgdata_MODULES): Add `sfs.mod'.
24237 (sfs_mod_SOURCES): New variable.
24238 (sfs_mod_CFLAGS): Likewise.
24239 (sfs_mod_LDFLAGS): Likewise.
24241 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
24242 (pkgdata_MODULES): Add `sfs.mod'.
24243 (sfs_mod_SOURCES): New variable.
24244 (sfs_mod_CFLAGS): Likewise.
24246 * util/grub-emu.c (main): Call `grub_sfs_init' and
24249 * include/grub/fs.h (grub_sfs_init): New prototype.
24250 (grub_sfs_fini): Likewise.
24252 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
24254 Add support for the AFFS filesystem.
24256 * fs/affs.c: New file.
24258 * DISTLIST: Added `fs/affs.c'.
24260 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
24261 (grub_probefs_SOURCES): Likewise.
24262 (grub_emu_SOURCES): Likewise.
24263 (pkgdata_MODULES): Add `affs.mod'.
24264 (affs_mod_SOURCES): New variable.
24265 (affs_mod_CFLAGS): Likewise.
24266 (affs_mod_LDFLAGS): Likewise.
24268 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
24269 (pkgdata_MODULES): Add `affs.mod'.
24270 (affs_mod_SOURCES): New variable.
24271 (affs_mod_CFLAGS): Likewise.
24273 * util/grub-emu.c (main): Call `grub_affs_init' and
24276 * include/grub/fs.h (grub_affs_init): New prototype.
24277 (grub_affs_fini): Likewise.
24279 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
24281 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
24283 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
24285 * configure.ac: Accept `x86_64' as host_cpu. In that case add
24288 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
24291 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
24292 (COMMON_LDFLAGS): New variable.
24293 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
24294 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
24295 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
24296 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
24297 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
24298 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
24299 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
24300 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
24301 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
24302 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
24303 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24304 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24305 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
24306 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
24307 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
24309 (normal_mod_ASFLAGS): Add `-m32'.
24311 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
24312 (grub_host_size_t, grub_host_ssize_t): New types.
24313 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
24314 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
24315 `GRUB_HOST_SIZEOF_VOID_P'.
24317 * include/grub/kernel.h (struct grub_module_header): Type of
24318 member offset changed to `grub_host_off_t'. Type of member size
24319 changed to `grub_host_size_t'.
24320 (struct grub_module_info): Type of member offset changed to
24321 `grub_host_off_t'. Type of member size changed to
24322 `grub_host_size_t'.
24324 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
24326 Make GRUB's kernel compliant to Multiboot Specification.
24328 * kern/i386/pc/startup.S (multiboot_header): New label.
24329 (multiboot_entry): Likewise.
24330 (multiboot_trampoline): Likewise.
24332 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
24333 Increased to 0x4A0.
24335 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
24336 put parentheses after a question mark.
24337 [!GRUB_UTIL] (my_mod): New variable.
24339 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
24341 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
24343 Adds support for the XFS filesystem. Btrees are not supported
24346 * fs/xfs.c: New file.
24348 * DISTLIST: Added `fs/xfs.c'.
24350 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
24351 (grub_probefs_SOURCES): Likewise.
24352 (grub_emu_SOURCES): Likewise.
24353 (pkgdata_MODULES): Add `xfs.mod'.
24354 (xfs_mod_SOURCES): New variable.
24355 (xfs_mod_CFLAGS): Likewise.
24357 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
24358 (pkgdata_MODULES): Add `xfs.mod'.
24359 (xfs_mod_SOURCES): New variable.
24360 (xfs_mod_CFLAGS): Likewise.
24362 * util/grub-emu.c (main): Call `grub_xfs_init' and
24365 * include/grub/fs.h (grub_xfs_init): New prototype.
24366 (grub_xfs_fini): Likewise.
24369 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
24371 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
24372 color modes, allow greater than 16 colors to be configured as
24375 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
24377 * normal/completion.c (complete_arguments): Add the qualifier
24378 const into OPTIONS.
24380 From Omniflux <omniflux+lists@omniflux.com>:
24381 * include/grub/terminfo.h: New file.
24382 * include/grub/tparm.h: Likewise.
24383 * include/grub/i386/pc/serial.h: Likewise.
24384 * term/terminfo.c: Likewise.
24385 * term/tparm.c: Likewise.
24386 * term/i386/pc/serial.c: Likewise.
24387 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
24389 (terminfo_mod_SOURCES): New variable.
24390 (terminfo_mod_CFLAGS): Likewise.
24391 (serial_mod_SOURCES): Likewise.
24392 (serial_mod_CFLAGS): Likewise.
24394 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
24396 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
24397 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
24398 and kern/powerpc/ieee1275/cmain.c, respectively.
24400 * boot/powerpc/ieee1275/crt0.S: Moved to ...
24401 * kern/powerpc/ieee1275/crt0.S: ... here.
24403 * boot/powerpc/ieee1275/cmain.c: Moved to ...
24404 * kern/powerpc/ieee1275/cmain.c: ... here.
24406 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
24407 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
24408 instead of boot/powerpc/ieee1275/crt0.S and
24409 boot/powerpc/ieee1275/cmain.c, respectively.
24411 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
24412 sectors. It was not used anyway.
24414 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24416 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
24417 `unused parameter' warning.
24419 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24421 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
24423 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
24426 2005-08-28 Marco Gerards <metgerards@student.han.nl>
24428 * include/grub/normal.h (enum grub_completion_type): Added
24429 `GRUB_COMPLETION_TYPE_ARGUMENT'.
24431 * normal/cmdline.c (print_completion): Handle
24432 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
24433 * normal/menu_entry.c (store_completion): Likewise.
24435 * normal/completion.c (complete_arguments): New function.
24436 (grub_normal_do_completion): Call `complete_arguments' when the
24437 current words start with a dash.
24439 2005-08-27 Marco Gerards <metgerards@student.han.nl>
24441 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
24442 `gzio.mod' instead of `io.mod').
24444 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
24446 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
24447 (DISTDIRS): Added io and video.
24448 Rewrite the search routine to make an output consistently.
24450 * DISTLIST: Added conf/sparc64-ieee1275.mk,
24451 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
24452 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
24453 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
24454 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
24455 util/powerpc/ieee1275/misc.c.
24457 * include/grub/gzio.h: New file.
24458 * io/gzio.c: Likewise.
24460 * kern/file.c (grub_file_close): Call grub_device_close only if
24461 FILE->DEVICE is not NULL.
24463 * include/grub/mm.h [!NULL] (NULL): New macro.
24465 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
24467 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
24468 (pkgdata_MODULES): Added gzio.mod.
24469 (gzio_mod_SOURCES): New variable.
24470 (gzio_mod_CFLAGS): Likewise.
24472 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
24473 (pkgdata_MODULES): Added gzio.mod.
24474 (gzio_mod_SOURCES): New variable.
24475 (gzio_mod_CFLAGS): Likewise.
24477 * commands/cat.c: Include grub/gzio.h.
24478 (grub_cmd_cat): Use grub_gzfile_open instead of
24481 * commands/cmp.c: Include grub/gzio.h.
24482 (grub_cmd_cmp): Use grub_gzfile_open instead of
24485 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
24486 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
24488 (grub_rescue_cmd_module): Likewise.
24490 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24492 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
24493 kern/sparc64/ieee1275/init.c because it contains _start.
24494 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
24496 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24498 * configure.ac: Add support for sparc64 host with ieee1275
24500 * configure: Generated from configure.ac.
24501 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
24503 (grub_ofdisk_read): Likewise.
24504 (grub_ofdisk_open): Use %p to print pointer values, and cast the
24505 pointers as (void *) to remove a warning.
24506 (grub_ofdisk_close): Likewise.
24507 (grub_ofdisk_read): Likewise.
24508 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
24509 returns, so make it return void to remove a warning.
24510 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
24511 Corresponding prototype change.
24512 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
24513 values, and cast the pointers as (void *) to remove a warning.
24514 (grub_mm_dump): Likewise.
24515 * conf/sparc64-ieee1275.mk: New file.
24516 * conf/sparc64-ieee1275.rmk: Likewise.
24517 * include/grub/sparc64/setjmp.h: Likewise.
24518 * include/grub/sparc64/types.h: Likewise.
24519 * include/grub/sparc64/ieee1275/console.h: Likewise.
24520 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
24521 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
24522 * include/grub/sparc64/ieee1275/time.h: Likewise.
24523 * kern/sparc64/cache.c: Likewise.
24524 * kern/sparc64/dl.c: Likewise.
24525 * kern/sparc64/ieee1275/init.c: Likewise.
24526 * kern/sparc64/ieee1275/openfw.c: Likewise.
24528 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
24530 * util/console.c (grub_ncurses_putchar): If C is greater than
24531 0x7f, set C to a question mark.
24532 (grub_ncurses_getcharwidth): New function.
24533 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
24536 * normal/menu.c (print_entry): Made aware of Unicode. First,
24537 convert TITLE to UCS-4, and predict the cursor position by
24540 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
24542 * kern/misc.c (grub_utf16_to_utf8): Likewise.
24544 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24546 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
24547 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24550 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
24551 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24552 grub_strcpy and grub_strlen. Take it into account that a space
24553 character is inserted as a delimiter.
24555 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24557 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
24558 invalid magic in the error.
24560 * commands/search.c: New file.
24562 * util/grub-emu.c (main): Call grub_search_init and
24565 * kern/rescue.c (grub_rescue_print_disks): Removed.
24566 (grub_rescue_print_devices): New function.
24567 (grub_rescue_cmd_ls): Use grub_device_iterate with
24568 grub_rescue_print_devices instead of grub_disk_dev_iterate with
24569 grub_rescue_print_disks.
24571 * kern/partition.c (grub_partition_iterate): Return the result of
24572 PARTMAP->ITERATE instead of GRUB_ERRNO.
24574 * kern/device.c: Include grub/partition.h.
24575 (grub_device_iterate): New function.
24577 * include/grub/partition.h (grub_partition_iterate): Return int
24578 instead of grub_err_t.
24580 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
24582 [GRUB_UTIL] (grub_search_fini): Likewise.
24584 * include/grub/device.h (grub_device_iterate): New prototype.
24586 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
24588 (pkgdata_MODULES): Added search.mod.
24589 (search_mod_SOURCES): New variable.
24590 (search_mod_CFLAGS): Likewise.
24592 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
24593 (pkgdata_MODULES): Added search.mod.
24594 (search_mod_SOURCES): New variable.
24595 (search_mod_CFLAGS): Likewise.
24597 * commands/ls.c (grub_ls_list_disks): Renamed to ...
24598 (grub_ls_list_devices): ... this, and use grub_device_iterate.
24599 All callers changed.
24601 * DISTLIST: Added commands/search.c.
24603 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24605 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
24607 (grub_getcharwidth): New function.
24609 * kern/misc.c (grub_utf8_to_ucs4): New function.
24611 * include/grub/term.h (struct grub_term): Added a new member
24613 (grub_getcharwidth): New prototype.
24615 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
24617 * term/i386/pc/console.c (map_char): New function. Segregated from
24618 grub_console_putchar.
24619 (grub_console_putchar): Use map_char.
24620 (grub_console_getcharwidth): New function.
24621 (grub_console_term): Specified grub_console_getcharwidth as
24624 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
24625 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
24627 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
24629 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
24630 on grub_strtoul completely.
24631 (write_char): Declare local variables in the beginning of the
24633 (grub_vesafb_getcharwidth): New function.
24634 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
24637 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
24639 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
24640 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
24641 commands/i386/pc/vbetest.c.
24643 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
24644 call grub_vbe_get_controller_info again, because the returned
24645 information is volatile.
24646 (grub_vbe_set_video_mode): Mostly rewritten.
24647 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
24648 grub_vbe_status_t correctly.
24649 (grub_vbe_get_video_mode_info): Likewise.
24650 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
24651 several if statements.
24653 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
24654 * commands/i386/pc/vbeinfo.c: ... this.
24656 * commands/i386/pc/vbe_test.c: Renamed to ...
24657 * commands/i386/pc/vbetest.c: ... this.
24659 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
24661 (grub_cmd_vbeinfo): ... this. Save video modes before
24662 iterating. Skip a video mode, if it is not available, not enough
24663 information is given or it is monochrome. Show the memory
24664 model. Leave the interpretation of MODEVAR to grub_strtoul
24666 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
24667 (GRUB_MOD_FINI): Likewise.
24669 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
24670 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
24671 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
24672 duplicated grub_env_get. Leave the interpretation of MODEVAR to
24673 grub_strtoul completely.
24674 (real2pm): Removed.
24675 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
24676 (GRUB_MOD_FINI): Likewise.
24678 * normal/misc.c: Include grub/mm.h.
24680 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
24681 vbe_list_modes with vbetest.mod and vbeinfo.mod.
24682 (vbe_list_modes_mod_SOURCES): Removed.
24683 (vbe_list_modes_mod_CFLAGS): Likewise.
24684 (vbe_test_mod_SOURCES): Likewise.
24685 (vbe_test_mod_CFLAGS): Likewise.
24686 (vbeinfo_mod_SOURCES): New variable.
24687 (vbeinfo_mod_CFLAGS): Likewise.
24688 (vbetest_mod_SOURCES): Likewise.
24689 (vbetest_mod_CFLAGS): Likewise.
24691 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
24693 * normal/misc.c: New file.
24695 * DISTLIST: Added normal/misc.c.
24697 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
24698 DISK to HOOK. Call HOOK with DISK.
24699 * partmap/apple.c (apple_partition_map_iterate): Likewise.
24700 * partmap/pc.c (pc_partition_map_iterate): Likewise.
24701 * partmap/sun.c (sun_partition_map_iterate): Likewise.
24703 * normal/menu_entry.c (struct screen): Added a new member
24704 "completion_shown".
24705 (completion_buffer): New global variable.
24706 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
24707 (store_completion): New function.
24708 (complete): Likewise.
24709 (clear_completions): Likewise.
24710 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
24711 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
24712 a tab, call complete.
24714 * normal/completion.c (disk_dev): Removed.
24715 (print_simple_completion): Likewise.
24716 (print_partition_completion): Likewise.
24717 (print_func): New global variable.
24718 (add_completion): Do not take the arguments WHAT or PRINT any
24719 longer. Added a new argument TYPE. Instead of printing directly,
24720 call PRINT_FUNC if not NULL.
24721 All callers changed.
24722 (complete_device): Use a local variable DEV instead of
24723 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
24724 (grub_normal_do_completion): Take a new argument HOOK. Do not
24725 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
24726 empty string, return NULL instead.
24727 All callers changed.
24729 * normal/cmdline.c (print_completion): New function.
24731 * kern/partition.c (grub_partition_iterate): Add an argument DISK
24733 All callers changed.
24735 * kern/disk.c (grub_print_partinfo): Removed.
24737 * include/grub/partition.h (struct grub_partition_map): Add a new
24738 argument DISK into HOOK of ITERATE.
24739 (grub_partition_iterate): Add a new argument DISK to HOOK.
24741 * include/grub/normal.h (enum grub_completion_type): New enum.
24742 (grub_completion_type_t): New type.
24743 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
24744 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
24745 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
24746 (GRUB_COMPLETION_TYPE_FILE): Likewise.
24747 (grub_normal_do_completion): Added a new argument HOOK.
24748 (grub_normal_print_device_info): New prototype.
24750 * include/grub/disk.h (grub_print_partinfo): Removed.
24752 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
24753 (normal_mod_SOURCES): Likewise.
24754 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24755 (normal_mod_SOURCES): Likewise.
24757 * commands/ls.c (grub_ls_list_disks): Use
24758 grub_normal_print_device_info instead of grub_print_partinfo. Free
24760 (grub_ls_list_files): Use grub_normal_print_device_info instead of
24761 duplicating the code.
24763 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
24765 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
24766 follow GCS more precisely.
24767 * commands/i386/pc/vbe_test.c: Likewise.
24768 * include/grub/i386/pc/vbe.h: Likewise.
24769 * term/i386/pc/vesafb.c: Likewise.
24770 * video/i386/pc/vbe.c: Likewise.
24772 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
24774 * DISTLIST: Added term/i386/pc/vesafb.c
24775 DISTLIST: Added video/i386/pc/vbe.c
24776 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
24777 DISTLIST: Added commands/i386/pc/vbe_test.c.
24778 * commands/i386/pc/vbe_list_modes.c: New file.
24779 * commands/i386/pc/vbe_test.c: Likewise.
24780 * term/i386/pc/vesafb.c: Likewise.
24781 * video/i386/pc/vbe.c: Likewise.
24782 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
24783 (grub_vbe_probe) Added prototype.
24784 (grub_vbe_set_video_mode) Likewise.
24785 (grub_vbe_get_video_mode) Likewise.
24786 (grub_vbe_get_video_mode_info) Likewise.
24787 (grub_vbe_set_pixel_rgb) Likewise.
24788 (grub_vbe_set_pixel_index) Likewise.
24789 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
24790 (pkgdata_MODULES): Added vesafb.mod.
24791 (pkgdata_MODULES): Added vbe_list_modes.mod.
24792 (pkgdata_MODULES): Added vbe_test.mod.
24793 (vbe_mod_SOURCES): Added.
24794 (vbe_mod_CFLAGS): Likewise.
24795 (vesafb_mod_SOURCES): Likewise.
24796 (vesafb_mod_CFLAGS): Likewise.
24797 (vbe_list_modes_mod_SOURCES): Likewise.
24798 (vbe_list_modes_mod_CFLAGS): Likewise.
24799 (vbe_test_mod_SOURCES): Likewise.
24800 (vbe_test_mod_CFLAGS): Likewise.
24802 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
24804 * normal/command.c (grub_command_execute): If INTERACTIVE is
24805 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
24806 CMDLINE. Disable the pager if INTERACTIVE is true.
24807 All callers are changed.
24809 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
24810 before reading a config file.
24811 * normal/main.c (read_config_file): Even if a command is not
24812 found, register it if it is within an entry.
24814 * util/grub-emu.c: Include sys/types.h and unistd.h.
24815 (options): Added --hold.
24816 (struct arguments): Added a new member "hold".
24817 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
24819 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
24820 cleared by a debugger, if it is not zero.
24822 * include/grub/normal.h (grub_command_execute): Add an argument
24825 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
24827 * DISTLIST: Added include/grub/i386/pc/vbe.h.
24829 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
24831 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
24832 program with another one, because the old one didn't detect a bug
24833 in gcc-3.4. Always use regparm 2, because the new test is still
24834 not enough for gcc-4.0. Someone must investigate a simple test
24835 case which detects a bug in gcc-4.0.
24837 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
24839 * DISTLIST: Added normal/completion.c.
24841 * normal/completion.c: New file.
24843 * term/i386/pc/console.c (grub_console_getwh): New function.
24844 (grub_console_term): Assign grub_console_getwh to getwh.
24846 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
24847 function is defined in normal/completion.c as
24848 grub_normal_do_completion.
24849 (grub_cmdline_get): Use grub_normal_do_completion instead of
24852 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
24853 returns non-zero, otherwise return 0.
24854 (grub_partition_iterate): First, probe the partition map. Then,
24855 call ITERATE only for this partition map.
24857 * kern/misc.c (grub_strncmp): Rewritten.
24859 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
24860 returns non-zero. Otherwise return 0.
24862 * include/grub/partition.h (grub_partition_map_iterate): Return
24863 int instead of void.
24865 * include/grub/normal.h (grub_normal_do_completion): New prototype.
24867 * include/grub/misc.h (grub_strncmp): Change the type of N to
24870 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
24873 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
24874 unsigned explicitly before comparing it with I.
24876 * kern/main.c (grub_env_write_root): Add the attribute unused into
24879 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
24880 normal/completion.c.
24881 (normal_mod_SOURCES): Likewise.
24882 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24883 (normal_mod_SOURCES): Likewise.
24885 * normal/command.c (grub_iterate_commands): If ITERATE returns
24886 non-zero, return one immediately.
24888 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
24890 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
24891 * kern/i386/pc/startup.S: Updated Global Descriptor table's
24893 (grub_vbe_get_controller_info): New function.
24894 (grub_vbe_get_mode_info): Likewise.
24895 (grub_vbe_set_mode): Likewise.
24896 (grub_vbe_get_mode): Likewise.
24897 (grub_vbe_set_memory_window): Likewise.
24898 (grub_vbe_get_memory_window): Likewise.
24899 (grub_vbe_set_scanline_length): Likewise.
24900 (grub_vbe_get_scanline_length): Likewise.
24901 (grub_vbe_set_display_start): Likewise.
24902 (grub_vbe_get_display_start): Likewise.
24903 (grub_vbe_set_palette_data): Likewise.
24904 * include/grub/i386/pc/vbe.h: New file.
24906 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
24908 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
24909 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
24910 * DISTLIST: Likewise.
24911 * kern/ieee1275/of.c: Moved to ...
24912 * kern/ieee1275/ieee1275.c: ... here.
24914 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
24916 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
24917 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
24918 Pass 0 as `end' parameter to grub_strtoul().
24920 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
24922 * include/grub/powerpc/ieee1275/console.h: Do not include
24923 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
24925 (grub_console_cur_color): Remove i386-specific prototype.
24926 (grub_console_real_putchar): Likewise.
24927 (grub_console_checkkey): Likewise.
24928 (grub_console_getkey): Likewise.
24929 (grub_console_getxy): Likewise.
24930 (grub_console_gotoxy): Likewise.
24931 (grub_console_cls): Likewise.
24932 (grub_console_setcursor): Likewise.
24933 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
24934 Include <grub/machine/console.h>.
24935 * term/ieee1275/ofconsole.c: Likewise.
24937 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
24939 * Makefile.in (LIBLZO): New variable.
24941 * configure.ac: Check for LZO version 2.
24943 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
24944 lzo/lzo1x.h instead of lzo1x.h.
24946 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
24949 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
24950 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
24952 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
24953 copying the data from PARTITION to P.
24955 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
24957 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
24958 negative, unload the module.
24960 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
24961 map is "pc_partition_map" but not "pc".
24962 (usage): Fix the description. The options are --boot-image and
24963 --core-image but not --boot-file or --core-file.
24964 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
24965 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
24968 * util/i386/pc/grub-install.in: Do not specify --boot-file or
24969 --core-file. Specify INSTALL_DEVICE as an argument.
24971 * util/console.c: Include config.h.
24972 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
24973 [HAVE_NCURSES_H]: Include ncurses.h.
24974 [HAVE_CURSES_H]: Include curses.h.
24975 [!A_NORMAL] (A_NORMAL): Defined as zero.
24976 [!A_STANDOUT] (A_STANDOUT): Likewise.
24978 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
24980 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
24982 * configure.ac: Check for curses libraries and headers.
24984 * Makefile.in (LIBCURSES): New variable.
24986 * genmk.rb (Script::rule): Set the executable bits.
24988 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
24989 name of the PC partition map is "pc_partition_map" but not "pc".
24991 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
24993 * util/i386/pc/grub-install.in (grub_probefs): New variable.
24994 (modules): Likewise.
24995 (usage): Added descriptions for --modules and --grub-probefs.
24996 Handle --modules and --grub-probefs. Save the arguments in MODULES
24997 and GRUB_PROBEFS, respectively.
24998 Auto-detect a filesystem module against GRUBDIR. If the result is
24999 empty and modules are not specified explicitly, abort the
25000 installation. Add the result to MODULES.
25002 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
25003 disk/powerpc/ieee1275/ofdisk.c,
25004 include/grub/powerpc/ieee1275/init.h and
25005 term/powerpc/ieee1275/ofconsole.c.
25006 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
25007 term/ieee1275/ofconsole.c.
25009 * include/grub/powerpc/ieee1275/console.h: Resurrected.
25011 * COPYING: Upgraded to the latest version. Only the address of the
25012 FSF office has changed.
25014 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25016 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25017 kern/ieee1275.c with kern/ieee1275/of.c.
25019 * kern/ieee1275.c: Moved to ...
25020 * kern/ieee1275/of.c: ... here.
25022 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
25024 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
25027 * config.guess: Updated to the latest version from gnulib.
25028 * config.sub: Likewise.
25029 * install.sh: Likewise.
25030 * mkinstalldirs: Likewise.
25032 * include/grub/console.h: Removed. This file is arch-specific. Do
25033 not put this in include/grub.
25035 * include/grub/i386/pc/console.h: Resurrected.
25037 * util/console.c: Include grub/machine/console.h instead of
25039 * util/grub-emu.c: Likewise.
25041 2005-08-04 Marco Gerards <metgerards@student.han.nl>
25043 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
25046 From Vincent Pelletier <subdino2004@yahoo.fr>
25047 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
25048 Redefined to use grub_getwh.
25049 (grub_term): New member named getwh.
25050 (grub_getwh): New prototype.
25051 * kern/term.c (grub_getwh): New function.
25052 * term/i386/pc/console.c (grub_console_getwh): New function.
25053 (grub_console_term): New member `getwh'.
25054 * term/i386/pc/vga.c (grub_vga_getwh): New function.
25055 (grub_vga_term): New member `getwh'.
25056 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
25058 (grub_ofconsole_getw): New function.
25059 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
25060 (grub_ofconsole_term): New field named getwh and new initial
25063 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
25065 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
25066 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
25067 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
25068 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
25069 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
25070 of <grub/machine/ieee1275.h>.
25071 * commands/ieee1275/reboot.c: Likewise.
25072 * boot/powerpc/ieee1275/ieee1275.c: Move ...
25073 * kern/ieee1275.c: ... to here. All users updated. Change all
25074 parameter structs to use new type `grub_ieee1275_cell_t'.
25075 * term/powerpc/ieee1275/ofconsole.c: Move ...
25076 * term/ieee1275/ofconsole.c: ... to here. All users updated.
25077 * disk/powerpc/ieee1275/ofdisk.c: Move ...
25078 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
25079 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
25081 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
25082 Remove unused prototypes. All users updated.
25083 * include/grub/powerpc/ieee1275/console.h: Removed.
25084 * include/grub/powerpc/ieee1275/ieee1275.h: Define
25085 `grub_ieee1275_cell_t'.
25086 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
25087 Cast comparisons with -1 to the correct type.
25088 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
25089 type to match `grub_ieee1275_entry_fn'.
25091 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
25093 * DISTLIST: Added util/i386/pc/grub-probefs.c.
25095 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
25096 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
25098 (grub_probefs_SOURCES): New variable.
25100 * util/i386/pc/grub-probefs.c: New file.
25102 * util/i386/pc/grub-setup.c (main): Call
25103 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
25104 grub_hfs_init and grub_jfs_init to initialize the system. Call
25105 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
25106 grub_pc_partition_map_fini to finish the system.
25108 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
25110 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
25112 (grub_multiboot_load_elf32): Likewise.
25113 (grub_multiboot_is_elf64): Likewise.
25114 (grub_multiboot_load_elf64): Likewise.
25115 (grub_multiboot_load_elf): Likewise.
25116 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
25117 an ELF32 or ELF64 file.
25118 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
25120 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
25121 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
25122 NULL before calling FS->LABEL.
25123 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
25124 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
25125 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
25126 before calling FS->LABEL.
25128 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
25130 * util/i386/pc/grub-install.in (datadir): New variable.
25132 (pkgdatadir): New variable.
25133 (pkglibdir): Removed.
25135 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
25137 * DISTLIST: Added util/i386/pc/grub-install.in.
25139 * util/i386/pc/grub-install.in: New file.
25141 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
25142 (grub_install_SOURCES): Likewise.
25144 * genmk.rb: Added support for scripts.
25145 (Script): New class.
25146 (scripts): New variable.
25148 * Makefile.in (install-local): Install sbin_SCRIPTS by
25150 (uninstall): Remove sbin_SCRIPTS.
25152 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
25153 device, try to get a GRUB device by
25154 grub_util_biosdisk_get_grub_dev.
25157 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
25158 description for --device-map.
25160 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25162 Change the semantics of variable hooks. They now return strings
25163 instead of error values.
25165 * util/i386/pc/grub-setup.c: Include grub/env.h.
25166 (setup): Use grub_device_set_root instead of grub_env_set.
25168 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
25169 grub_env_get instead of grub_device_set_root and
25170 grub_device_get_root, respectively.
25172 * kern/main.c (grub_env_write_root): New function.
25173 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
25174 grub_env_set instead of grub_device_set_root.
25176 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
25178 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
25179 rather than calling ENV->WRITE_HOOK afterwards.
25180 (grub_env_get): Return the result of ENV->READ_HOOK rather than
25181 passing a pointer of a pointer.
25182 (grub_register_variable_hook): Change the types of "read_hook" and
25183 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
25185 Allocate the default empty string on the heap, because this string
25186 may be freed later.
25188 * kern/device.c: Include grub/env.h.
25189 (grub_device_set_root): Removed.
25190 (grub_device_get_root): Likewise.
25191 (grub_device_open): Use grub_env_get instead of
25192 grub_device_get_root.
25194 * include/grub/env.h (grub_env_read_hook_t): New type.
25195 (grub_env_write_hook_t): Likewise.
25196 (grub_env_var): Change the types of "read_hook" and "write_hook"
25197 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
25198 (grub_register_variable_hook): Likewise.
25200 * include/grub/device.h (grub_device_set_root): Removed.
25201 (grub_device_set_root): Likewise.
25203 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
25204 make sure that DIRNAME terminates with '/', so that
25205 grub_fat_find_dir will fail if PATH is not a directory.
25207 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
25209 Use the qualifier auto for print_files and print_files_long.
25210 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
25212 Put a newline only if there is no error.
25213 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
25216 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25218 * kern/partition.c (grub_partition_probe): Initialize PART to
25219 NULL. Otherwise, when no partition map is registered, this returns
25222 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
25224 * partmap/apple.c (apple_partition_map_iterate): Check if POS
25225 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
25228 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
25230 * commands/ls.c (grub_ls_list_disks): Print the filesystem
25231 information on each device, if it does not have partitions. Print
25232 "Device" instead of "Disk", because this function is not specific
25235 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
25236 static to ensure that it is put on the memory rather than a
25239 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25241 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
25242 (grub_cat_init): Likewise.
25243 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
25244 (options): Likewise.
25245 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25246 (grub_configfile_init): Likewise.
25247 * font/manager.c (GRUB_MOD_INIT): Likewise.
25248 * commands/help.c (GRUB_MOD_INIT): Likewise.
25249 (grub_help_init): Likewise.
25250 * normal/command.c (grub_command_init): Likewise.
25251 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
25252 * disk/loopback.c (grub_loop_init): Likewise.
25253 (GRUB_MOD_INIT): Likewise.
25254 * commands/ls.c (grub_ls_init): Likewise.
25255 (GRUB_MOD_INIT): Likewise.
25256 (options): Likewise.
25257 * commands/boot.c (grub_boot_init): Likewise.
25258 (GRUB_MOD_INIT): Likewise.
25259 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
25260 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
25261 (GRUB_MOD_INIT): Likewise.
25262 * commands/cmp.c (grub_cmp_init): Likewise.
25263 (GRUB_MOD_INIT): Likewise.
25265 * normal/arg.c: Use <> instead of "" to include header files.
25266 (SHORT_ARG_HELP): New macro.
25267 (SHORT_ARG_USAGE): Likewise.
25268 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
25269 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
25271 (find_short): Check if C is 'h' or 'u' explicitly.
25272 (grub_arg_show_help): Use space characters instead of tabs. Treat
25273 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
25274 are shown with --help and --usage only if they are not used for
25275 the command itself.
25276 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
25279 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
25280 const into "longarg". Change the type of "shortarg" to int.
25282 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25284 * boot/i386/pc/boot.S (boot_drive_check): New label.
25286 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
25289 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
25290 which do not pass a boot drive correctly. Copied from GRUB Legacy.
25292 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25294 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
25295 When turning off Gate A20, skip the check and return immediately,
25296 because this is not fatal usually.
25298 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25300 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
25301 be 0x7C00 instead of 0x8000.
25303 * boot/i386/pc/pxeboot.S: Rewritten.
25305 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
25307 (gate_a20_check_state): Read a byte from 0x108000. Invert the
25310 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
25312 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
25313 robustness. This routine now supports a BIOS call and System
25314 Control Port A to modify the gate A20.
25316 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25317 Increased to 0x440.
25319 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
25321 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
25322 device path and resulting ihandle.
25323 (grub_ofdisk_close): dprintf the ihandle being closed.
25324 (grub_ofdisk_read): dprintf function parameters.
25325 * kern/mm.c (grub_mm_init_region): Likewise.
25326 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
25327 (grub_linux_boot): dprintf the Linux entry point, initrd address and
25328 size, and boot arguments.
25329 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
25330 before loading into memory.
25331 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
25332 before loading into memory.
25334 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
25336 * kern/mm.c: Added much documentation.
25337 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
25338 8, set to 5 instead of 8.
25340 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
25342 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
25344 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
25345 (grub_mkdevicemap_SOURCES): New variable.
25347 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
25348 lib/device.c of GRUB Legacy.
25350 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
25352 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
25353 instead of PATH is NULL.
25355 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
25357 * commands/cmp.c (BUFFER_SIZE): New macro.
25358 (grub_cmd_cmp): Close the right file at the right time. Compare
25359 only data just read. Don't report files of different size as
25360 identical. Dynamically allocate buffers. Move variable
25361 declarations at the beginning of function.
25363 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
25365 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
25368 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
25370 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
25371 when backspace is pressed at beginning of line.
25373 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
25375 * DISTLIST: Added genfslist.sh.
25377 * normal/main.c (fs_module_list): New variable.
25378 (autoload_fs_module): New function.
25379 (read_fs_list): Likewise.
25380 (grub_normal_execute): Call read_fs_list.
25382 * kern/fs.c (grub_fs_autoload_hook): New variable.
25383 (grub_fs_probe): Added support for auto-loading.
25385 * include/grub/normal.h (struct grub_fs_module_list): New struct.
25386 (grub_fs_module_list_t): New type.
25388 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
25389 (grub_fs_autoload_hook): New prototype.
25391 * genfslist.sh: New file.
25393 * genmk.rb: Added a rule to generate a filesystem list.
25395 2005-06-30 Marco Gerards <metgerards@student.han.nl>
25397 * configure.ac: Fix the test for cross-compiling.
25399 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
25400 define GRUB_UTIL anymore.
25402 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
25403 so this function works on other systems than just big endian.
25404 (load_modules): Likewise.
25405 (add_segments): Likewise.
25407 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
25409 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
25410 contains `l' modifier, get a long from va_arg().
25412 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
25414 * kern/mm.c (grub_free): If the next free block which is being
25415 merged is the first free block, set the first block to the block
25417 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
25419 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25421 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
25422 `grub_ieee1275_chosen'.
25424 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25426 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
25427 (grub_ieee1275_chosen): New variable.
25428 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
25430 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
25431 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
25432 Rename first argument to `phandle' for consistency.
25433 (grub_ieee1275_get_property_length): Likewise.
25434 (grub_ieee1275_next_property): Likewise. Change type of first argument
25435 to grub_ieee1275_phandle_t.
25436 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
25437 Move export next to declaration.
25438 (grub_ieee1275_chosen): New variable.
25439 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
25440 Correct cosmetic typo.
25441 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
25442 `grub_ieee1275_chosen'.
25443 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
25444 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
25445 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
25446 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
25447 `grub_ieee1275_chosen'.
25449 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
25451 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
25453 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
25454 /chosen/bootargs as "variable=value" pairs.
25456 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
25458 * include/grub/misc.h (grub_dprintf): New macro.
25459 (grub_real_dprintf): New prototype.
25460 (grub_strword): Likewise.
25461 (grub_iswordseparator): Likewise.
25462 * kern/misc.c (grub_real_dprintf): New function.
25463 (grub_strword): Likewise.
25464 (grub_iswordseparator): Likewise.
25466 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
25468 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
25469 (roundup): Remove macro.
25470 (grub_ieee1275_flags): Make static.
25471 (grub_ieee1275_realmode): Remove.
25472 (grub_ieee1275_test_flag): New function.
25473 (grub_ieee1275_set_flag): Likewise.
25474 (find_options): Rename to `grub_ieee1275_find_options'; update
25475 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
25476 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
25477 (cmain): New prototype.
25478 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
25479 `grub_ieee1275_flags' directly.
25480 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
25481 machine/biosdisk.h.
25482 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
25483 Don't include grub/machine/init.h.
25484 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
25485 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
25487 (grub_ieee1275_realmode): Likewise.
25488 (grub_ieee1275_flag): New enum.
25489 (grub_ieee1275_test_flag): New prototype.
25490 (grub_ieee1275_set_flag): New prototype.
25491 * include/grub/powerpc/ieee1275/init.h: Remove file.
25492 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
25493 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
25494 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
25495 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
25497 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
25498 `grub_ieee1275_test_flag'.
25499 (grub_ieee1275_encode_devname): Likewise.
25501 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
25503 * include/grub/powerpc/ieee1275/ieee1275.h
25504 (grub_ieee1275_encode_devname): New prototype.
25505 (grub_ieee1275_get_filename): Likewise.
25506 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
25508 (grub_set_prefix): Likewise.
25509 (grub_machine_init): Call grub_set_prefix.
25510 * kern/powerpc/ieee1275/openfw.c: Fix typos.
25511 (grub_parse_type): New enum.
25512 (grub_ieee1275_get_devargs): New function.
25513 (grub_ieee1275_get_devname): Likewise.
25514 (grub_ieee1275_parse_args): Likewise.
25515 (grub_ieee1275_get_filename): Likewise.
25516 (grub_ieee1275_encode_devname): Likewise.
25518 2005-03-30 Marco Gerards <metgerards@student.han.nl>
25520 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
25521 `grub_loader_unset'.
25523 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
25525 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
25526 instead of grub_ieee1275_interpret.
25527 (grub_halt_init): New function.
25528 (grub_halt_fini): Likewise.
25529 (GRUB_MOD_INIT): Correct message grammar.
25530 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
25531 instead of grub_ieee1275_interpret.
25532 (grub_reboot_init): New function.
25533 (grub_reboot_fini): Likewise.
25534 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
25535 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
25536 util/i386/pc/misc.c with commands/ieee1275/halt.c,
25537 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
25538 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
25540 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
25542 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
25544 (grub_halt): Likewise.
25545 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
25546 (cmain): Remove __attribute__((unused)).
25547 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
25548 (grub_heap_len): Likewise.
25549 (grub_machine_fini): New function.
25550 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
25551 (grub_halt): Likewise.
25552 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
25554 * util/powerpc/ieee1275/misc.c: New file.
25556 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
25558 * DISTLIST: New file.
25559 * gendistlist.sh: Likewise.
25561 * Makefile.in (COMMON_DISTFILES): Removed.
25562 (BOOT_DISTFILES): Likewise.
25563 (CONF_DISTFILES): Likewise.
25564 (DISK_DISTFILES): Likewise.
25565 (FS_DISTFILES): Likewise.
25566 (INCLUDE_DISTFILES): Likewise.
25567 (KERN_DISTFILES): Likewise.
25568 (LOADER_DISTFILES): Likewise.
25569 (TERM_DISTFILES): Likewise.
25570 (UTIL_DISTFILES): Likewise.
25571 (DISTFILES): Likewise.
25572 (uninstall): Uninstall files in $(pkgdata_DATA).
25573 (DISTLIST): New target.
25574 (distdir): Use the contents of the file DISTLIST to get a list of
25577 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
25579 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
25580 descriptor. This is ported from GRUB Legacy.
25582 * gencmdlist.sh: Added an extra semicolon to make it work with
25583 old sed versions. Reported by Robert Bihlmeyer
25584 <robbe@orcus.priv.at>.
25586 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
25588 Automatic loading of commands is supported.
25590 * normal/main.c (read_command_list): New function.
25591 (grub_normal_execute): Call read_command_list.
25593 * normal/command.c (grub_register_command): Return zero or CMD.
25594 Allocate CMD->NAME from the heap.
25595 Initialize CMD->MODULE_NAME to zero.
25596 Find the same name as well. If the same command is found and it is
25597 a dummy command, overwrite members. If it is not a dummy command,
25599 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
25600 (grub_command_find): If a dummy command is found, load a module
25601 and retry to find a command only once.
25603 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
25604 make sure that each command is loaded.
25606 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
25608 (struct grub_command): Remove const from the member `name'.
25609 Add a new member `module_name'.
25610 (grub_register_command): Return grub_command_t.
25612 * commands/help.c (grub_cmd_help): Call grub_command_find to make
25613 sure that each command is loaded.
25615 * genmk.rb (PModule::rule): Specify a module name without the
25616 suffix ".mod" to gencmdlist.sh.
25618 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25620 * gencmdlist.sh: New file.
25622 * genmk.rb (PModule::rule): Generate a rule for a command list.
25624 Generate command.lst from $(COMMANDFILES).
25626 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
25627 (DATA): Added $(pkgdata_DATA).
25628 (install-local): Install files in $(pkgdata_DATA).
25630 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25632 * term/i386/pc/vga.c (debug_command): Removed.
25633 (GRUB_MOD_INIT): Do not register the command "debug".
25635 From Hollis Blanchard:
25636 * commands/configfile.c: New file.
25637 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25638 commands/configfile.c.
25639 (pkgdata_MODULES): Added configfile.mod.
25640 (configfile_mod_SOURCES): New variable.
25641 (configfile_mod_CFLAGS): Likewise.
25642 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25643 commands/configfile.c.
25644 (pkgdata_MODULES): Added configfile.mod.
25645 (configfile_mod_SOURCES): New variable.
25646 (configfile_mod_CFLAGS): Likewise.
25647 * util/grub-emu.c (main): Call grub_configfile_init and
25648 grub_configfile_fini.
25649 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
25651 [GRUB_UTIL] (grub_configfile_fini): Likewise.
25653 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
25655 * normal/arg.c (grub_arg_show_help): Do not show the bug report
25658 * commands/help.c (grub_cmd_help): Do not print newlines after
25659 the last command in print_command_help.
25661 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
25663 * commands/default.h: New file.
25664 * commands/timeout.h: Likewise.
25665 * normal/context.c: Likewise.
25667 * util/misc.c: Do not include sys/times.h.
25668 Include sys/time.h and grub/machine/time.h.
25669 (grub_get_rtc): Rewritten with gettimeofday.
25671 * util/grub-emu.c (main): Call grub_default_init and
25672 grub_timeout_init before grub_normal_init, and call
25673 grub_timeout_fini and grub_default_fini after grub_main.
25675 * util/console.c (grub_ncurses_checkkey): Return the read
25678 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
25681 * normal/main.c (read_config_file): Push MENU. If this fails,
25682 print an error and wait for a user input.
25683 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
25684 If a menu is empty or an error occurs, pop MENU.
25685 (grub_normal_execute): Pop and free MENU after grub_menu_run
25688 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
25690 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
25692 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
25694 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
25696 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
25699 * include/grub/normal.h (struct grub_menu_list): New struct.
25700 (grub_menu_list_t): New type.
25701 (struct grub_context): New struct.
25702 (grub_context_t): New type.
25703 (grub_register_command): Got rid of EXPORT_FUNC.
25704 (grub_unregister_command): Likewise.
25705 (grub_context_get): New prototype.
25706 (grub_context_get_current_menu): Likewise.
25707 (grub_context_push_menu): Likewise.
25708 (grub_context_pop_menu): Likewise.
25709 [GRUB_UTIL] (grub_default_init): Likewise.
25710 [GRUB_UTIL] (grub_default_fini): Likewise.
25711 [GRUB_UTIL] (grub_timeout_init): Likewise.
25712 [GRUB_UTIL] (grub_timeout_fini): Likewise.
25714 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
25715 commands/timeout.c and normal/context.c.
25716 (pkgdata_MODULES): Added default.mod and timeout.mod.
25717 (normal_mod_SOURCES): Added normal/context.c.
25718 (default_mod_SOURCES): New variable.
25719 (default_mod_CFLAGS): Likewise.
25720 (timeout_mod_SOURCES): Likewise.
25721 (timeout_mod_CFLAGS): Likewise.
25722 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
25724 (pkgdata_MODULES): Added default.mod and timeout.mod.
25725 (normal_mod_SOURCES): Added normal/context.c.
25726 (default_mod_SOURCES): New variable.
25727 (default_mod_CFLAGS): Likewise.
25728 (timeout_mod_SOURCES): Likewise.
25729 (timeout_mod_CFLAGS): Likewise.
25731 * Makefile.in (all-local): Added $(MKFILES).
25733 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
25735 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
25736 (grub_emu_SOURCES): Likewise.
25737 (pkgdata_MODULES): Add `sun.mod'.
25738 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
25739 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25741 (pkgdata_MODULES): Add `sun.mod'.
25742 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
25743 * include/grub/partition.h (grub_sun_partition_map_init): New
25745 (grub_sun_partition_map_fini): Likewise.
25746 * partmap/sun.c: New file.
25747 * util/grub-emu.c (main): Initialize and de-initialize the sun
25748 partitionmap support.
25750 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
25752 This implements an Emacs-like menu entry editor.
25754 * normal/menu_entry.c: New file.
25756 * util/console.c (grub_ncurses_putchar): Translate some Unicode
25757 characters to ASCII.
25758 (saved_char): New variable.
25759 (grub_ncurses_checkkey): Rewritten completely.
25760 (grub_ncurses_getkey): Likewise.
25761 (grub_ncurses_init): Call raw instead of cbreak.
25763 * normal/menu.c (print_entry): Do not put a space.
25764 (init_page): Renamed to ...
25765 (grub_menu_init_page): ... this. All callers changed.
25766 (edit_menu_entry): Removed.
25767 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
25769 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
25771 * kern/misc.c (grub_vprintf): Call grub_refresh.
25773 * normal/menu.c (DISP_LEFT): Renamed to ...
25774 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
25775 * normal/menu.c (DISP_UP): Renamed to ...
25776 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
25777 * normal/menu.c (DISP_RIGHT): Renamed to ...
25778 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
25779 * normal/menu.c (DISP_DOWN): Renamed to ...
25780 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
25781 * normal/menu.c (DISP_HLINE): Renamed to ...
25782 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
25783 * normal/menu.c (DISP_VLINE): Renamed to ...
25784 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
25785 * normal/menu.c (DISP_UL): Renamed to ...
25786 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
25787 * normal/menu.c (DISP_UR): Renamed to ...
25788 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
25789 * normal/menu.c (DISP_LL): Renamed to ...
25790 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
25791 * normal/menu.c (DISP_LR): Renamed to ...
25792 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
25793 * normal/menu.c (TERM_WIDTH): Renamed to ...
25794 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
25795 * normal/menu.c (TERM_HEIGHT): Renamed to ...
25796 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
25797 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
25798 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
25799 * normal/menu.c (TERM_MARGIN): Renamed to ...
25800 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
25801 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
25802 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
25803 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
25804 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
25805 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
25806 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
25807 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
25808 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
25809 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
25810 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
25811 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
25812 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
25813 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
25814 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
25815 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
25816 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
25817 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
25818 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
25819 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
25820 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
25821 All callers changed.
25823 * include/grub/normal.h: New prototype.
25825 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25826 normal/menu_entry.c.
25827 (normal_mod_SOURCES): Likewise.
25828 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25829 (normal_mod_SOURCES): Likewise.
25831 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
25833 * include/grub/normal.h (grub_halt_init): New prototype.
25834 (grub_halt_fini): Likewise.
25835 (grub_reboot_init): Likewise.
25836 (grub_reboot_fini): Likewise.
25838 * util/grub-emu.c: Include signal.h.
25839 (main_env): New global variable.
25840 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
25842 (grub_machine_fini): New function.
25843 (main): Call grub_halt_init and grub_reboot_init before
25844 grub_main, and grub_reboot_fini and grub_halt_fini after it.
25845 Call setjmp with MAIN_ENV to go back afterwards.
25846 Call grub_machine_fini right before return.
25848 * include/grub/util/misc.h: Include setjmp.h.
25849 (main_env): New prototype.
25851 * include/grub/kernel.h (grub_machine_fini): New prototype.
25852 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
25853 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
25855 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
25856 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
25857 * term/i386/pc/console.c (grub_console_fini): Likewise.
25859 * util/i386/pc/misc.c: New file.
25861 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25862 util/i386/pc/misc.c, commands/i386/pc/halt.c and
25863 commands/i386/pc/reboot.c.
25865 2005-02-14 Guillem Jover <guillem@hadrons.org>
25867 * include/grub/dl.h (grub_dl_check_header): New prototype.
25868 (grub_arch_dl_check_header): Change return type to grub_err_t,
25869 remove size parameter and export function. Update all callers.
25870 * kern/dl.c (grub_dl_check_header): New function.
25871 (grub_dl_load_core): Use `grub_dl_check_header' instead of
25872 `grub_arch_dl_check_header'. Check ELF type. Check if sections
25873 are inside the core.
25874 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
25875 independent ELF header checks.
25876 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
25877 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
25878 `grub_dl_check_header' instead of explicit checks. Check for the
25880 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
25881 `grub_dl_check_header' instead of explicit checks. Remove arch
25882 specific ELF header checks.
25884 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
25887 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
25889 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
25890 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
25892 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
25894 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
25895 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
25896 (part_map_iterate): Clear `grub_errno' and return 0 if
25897 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
25898 * partmap/amiga.c (amiga_partition_map_iterate): Return
25899 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
25900 * partmap/apple.c (apple_partition_map_iterate): Likewise.
25902 2005-02-01 Guillem Jover <guillem@hadrons.org>
25904 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
25907 2005-01-31 Marco Gerards <metgerards@student.han.nl>
25909 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
25911 (grub_rescue_cmd_linux): New prototype.
25912 (grub_rescue_cmd_initrd): Likewise.
25913 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
25915 (grub_linux_release_mem): Release the memory for the initrd.
25916 (grub_load_linux): Renamed from this...
25917 (grub_rescue_cmd_linux): ...To this. Changed all callers.
25918 Changed `entry' not to be static. Loop over memory regions to
25919 find another one when the default fails.
25920 (grub_rescue_cmd_initrd): New function.
25921 (grub_linux_init): Remove function.
25922 (grub_linux_fini): Likewise.
25923 (GRUB_MOD_INIT): Register `initrd'.
25924 (GRUB_MOD_FINI): Unregister `initrd'.
25925 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
25927 (grub_linux_normal_fini): Likewise.
25928 (GRUB_MOD_INIT): Register `initrd'.
25929 (GRUB_MOD_FINI): Unregister `initrd'.
25931 2005-01-31 Marco Gerards <metgerards@student.han.nl>
25933 * commands/help.c: New file.
25934 * normal/arg.c (show_help): Renamed to...
25935 (grub_arg_show_help): ... this.
25936 * commands/i386/pc/halt.c: New file.
25937 * commands/i386/pc/reboot.c: Likewise.
25938 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
25939 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
25940 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
25941 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
25943 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25945 (pkgdata_MODULES): Add `help.mod'.
25946 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
25947 * grub/i386/pc/init.h (grub_reboot): New prototype.
25948 (grub_halt): Likewise.
25949 * include/grub/normal.h (grub_arg_show_help): New prototype.
25950 (grub_help_init): Likewise.
25951 (grub_help_fini): Likewise.
25952 * util/grub-emu.c (main): Initialize and deinitialize the help
25955 * normal/cmdline.c (grub_cmdline_get): Doc fix.
25957 * normal/command.c (grub_command_init): Fixed the description of
25958 the `set' and `unset' commands.
25960 2005-01-31 Marco Gerards <metgerards@student.han.nl>
25962 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
25964 * commands/ieee1275/halt.c: New file.
25965 * commands/ieee1275/reboot.c: Likewise.
25966 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
25967 `__attribute__ ((unused))'. Some GCS related fixed.
25968 (grub_suspend_init) [GRUB_UTIL]: Function removed.
25969 (grub_suspend_fini): Likewise.
25970 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
25972 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
25973 (halt_mod_CFLAGS): New variables.
25974 * include/grub/powerpc/ieee1275/ieee1275.h
25975 (grub_ieee1275_interpret): New prototype.
25977 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
25979 * include/grub/misc.h (memmove): New prototype.
25980 (memcpy): Likewise.
25982 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
25984 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
25985 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
25987 2005-01-22 Marco Gerards <metgerards@student.han.nl>
25989 * kern/misc.c (grub_strndup): Function rewritten.
25991 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
25993 * normal/menu.c (TERM_WIDTH): Macro redefined.
25994 (TERM_TOP_BORDER_Y): Likewise.
25995 (draw_border): Replaced while-loop by a for-loop. Make the number
25996 of lines consistent with the number of lines displayed in
25997 print_entries. Added a margin below the rectangle.
25998 (print_entry): Make the entry fit in the rectangle.
25999 (print_entries): Display the scroll arrows next to the right
26002 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26004 * fs/minix.c (grub_minix_find_file): Reserve more space for
26005 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
26006 `grub_strncpy' to copy `path' into it.
26008 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26010 Add the loopback device, a device via which files can be accessed
26013 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
26014 (pkgdata_MODULES): Add loopback.mod.
26015 (loopback_mod_SOURCES): New variable.
26016 (loopback_mod_CFLAGS): Likewise.
26017 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26019 (pkgdata_MODULES): Add loopback.mod.
26020 (loopback_mod_SOURCES): New variable.
26021 (loopback_mod_CFLAGS): Likewise.
26022 * disk/loopback.c: new file.
26023 * include/grub/normal.h (grub_loop_init): New prototype.
26024 (grub_loop_fini): New prototype.
26025 * util/grub-emu.c (main): Initialize and de-initialize loopback
26027 * include/grub/disk.h (grub_disk_dev_id): Add
26028 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
26030 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
26032 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
26034 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
26035 (suspend_mod_SOURCES): New variable.
26036 (suspend_mod_CFLAGS): Likewise.
26037 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
26039 * commands/ieee1275/suspend.c: New file.
26041 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
26043 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
26044 ((unused))' to `__attribute__ ((used))'.
26045 (GRUB_MOD_FINI): Likewise.
26046 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
26047 * genmk.rb (PModule): Assign space to common symbols when linking
26050 2005-01-20 Marco Gerards <metgerards@student.han.nl>
26052 * include/grub/mm.h (grub_mm_init_region): Change the type of the
26053 `unsigned' arguments to `grub_size_t'.
26054 (grub_malloc): Likewise.
26055 (grub_realloc): Likewise.
26056 (grub_memalign): Likewise.
26057 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
26058 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26059 * util/misc.c (grub_malloc): Likewise.
26060 (grub_realloc): Likewise.
26061 * kern/mm.c (get_header_from_pointer): Change the casts to
26062 `unsigned' into a cast to `grub_size_t'.
26064 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
26065 point to `currnode' when `currnode' is changed.
26067 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
26068 Schottelius <nico-linux@schottelius.org>.
26070 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
26072 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
26073 (note_path): Remove variable.
26074 (GRUB_IEEE1275_NOTE_NAME): New macro.
26075 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
26076 (grub_ieee1275_note_hdr): New structure.
26077 (grub_ieee1275_note_desc): Likewise.
26078 (grub_ieee1275_note): Likewise.
26079 (load_note): Remove `dir' argument. All callers updated. Remove
26080 `note_img' and `path'. Do not load a file from `note_path'.
26081 Initialize a struct grub_ieee1275_note and write that to `out'.
26082 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
26084 2005-01-05 Marco Gerards <metgerards@student.han.nl>
26086 * util/misc.c (grub_util_read_image): Revert last change. It
26087 called `grub_util_read_at', which seeks from the beginning of the
26090 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
26092 * TODO: Add note about endianness in grub-mkimage.
26093 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
26095 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
26096 (grub_mkimage_SOURCES): New target.
26097 * include/grub/kernel.h (grub_start_addr): Remove variable.
26098 (grub_end_addr): Likewise.
26099 (grub_total_module_size): Likewise.
26100 (grub_kernel_image_size): Likewise.
26101 (GRUB_MODULE_MAGIC): New constant.
26102 (grub_module_info): New structure.
26103 (grub_arch_modules_addr): New prototype.
26104 (grub_get_end_addr): Remove prototype.
26105 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
26106 * include/grub/powerpc/ieee1275/kernel.h: New file.
26107 * include/grub/util/misc.h (grub_util_get_fp_size): New
26109 (grub_util_read_at): Likewise.
26110 (grub_util_write_image_at): Likewise.
26111 * kern/main.c (grub_get_end_addr): Remove function.
26112 (grub_load_modules): Call grub_arch_modules_addr instead of using
26113 grub_end_addr. Look for a grub_module_info struct in memory. Use
26114 the grub_module_info fields instead of calling grub_get_end_addr
26115 as loop conditions. Move grub_add_unused_region code here.
26116 (grub_add_unused_region): Remove function.
26117 * kern/i386/pc/init.c: Include grub/cache.h.
26118 (grub_machine_init): Remove call to grub_get_end_addr. Remove
26119 one call to add_mem_region.
26120 (grub_arch_modules_addr): New function.
26121 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
26122 (grub_total_module_size): Likewise.
26123 Include grub/machine/kernel.h.
26124 (grub_arch_modules_addr): New function.
26125 * util/grub-emu.c (grub_end_addr): Remove variable.
26126 (grub_total_module_size): Likewise.
26127 (grub_arch_modules_addr): New function.
26128 * util/misc.c: Include unistd.h.
26129 (grub_util_get_fp_size): New function.
26130 (grub_util_read_at): Likewise.
26131 (grub_util_write_image_at): Likewise.
26132 (grub_util_read_image): Call grub_util_read_at.
26133 (grub_util_write_image): Call grub_util_write_image_at.
26134 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
26135 additional memory in kernel_img for a struct grub_module_info.
26136 Fill in that grub_module_info.
26137 * util/powerpc/ieee1275/grub-mkimage.c: New file.
26139 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26141 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
26143 * include/grub/powerpc/ieee1275/ieee1275.h
26144 (grub_ieee1275_milliseconds): New prototype.
26145 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
26147 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
26148 grub_ieee1275_milliseconds.
26150 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26152 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
26154 (find_options): New function.
26155 (cmain): Call find_options.
26156 * include/grub/powerpc/ieee1275/ieee1275.h
26157 (grub_ieee1275_realmode): New extern variable.
26158 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
26159 grub_map if grub_ieee1275_realmode is false.
26161 2004-12-29 Marco Gerards <metgerards@student.han.nl>
26163 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
26164 lines are inserted and make it work like readline. Reported by
26165 Vincent Pelletier <subdino2004@yahoo.fr>.
26167 2004-12-28 Marco Gerards <metgerards@student.han.nl>
26169 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
26171 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
26172 `kern/powerpc/cache.S'.
26174 2004-12-27 Marco Gerards <metgerards@student.han.nl>
26176 * genmk.rb: Handle the `Program' class in the main loop. Written
26177 by Johan Rydberg <jrydberg@gnu.org>.
26178 (Program): New class.
26179 (programs): New variable.
26180 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
26181 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
26182 instead of "grub/kernel.h". Include <grub/machine/init.h>.
26183 (help_arch): Function removed.
26184 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
26185 `powerpc/libgcc.h' and `loader.h'.
26186 (pkgdata_PROGRAMS): New variable.
26187 (sbin_UTILITIES): Variable removed.
26188 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
26189 (grubof_SOURCES): Variable re-defined so it only includes the
26190 core functionality.
26191 (grubof_CFLAGS): Remove `-DGRUBOF'.
26192 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
26193 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
26194 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
26195 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
26196 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
26197 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
26198 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
26199 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
26200 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
26201 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
26202 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
26203 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
26204 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
26205 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
26206 (pc_mod_CFLAGS): New variables.
26207 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
26208 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
26209 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
26210 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
26212 * include/grub/i386/pc/init.h (grub_os_area_addr)
26213 (rub_os_area_size): ... to here.
26214 * include/grub/powerpc/ieee1275/ieee1275.h
26215 (grub_ieee1275_entry_fn): Export symbol.
26216 * include/grub/powerpc/ieee1275/init.h: New file.
26217 * include/grub/powerpc/libgcc.h: Likewise.
26218 * include/grub/cache.h: Likewise.
26219 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
26220 <hollis@penguinppc.org>.
26221 * kern/dl.c: Include <grub/cache.h>.
26222 (grub_dl_flush_cache): New function.
26223 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
26225 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
26226 (grub_console_init): Removed prototypes.
26227 (grub_machine_init): Don't initialize the modules anymore.
26228 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
26230 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
26231 Macro undef removed.
26232 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
26233 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
26234 relocation `R_PPC_REL32'. Return an error when the relocation is
26236 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
26237 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
26238 * util/misc.c (grub_arch_sync_caches): Likewise.
26240 2004-12-19 Marco Gerards <metgerards@student.han.nl>
26242 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
26243 `symlist.c', add `grubof_symlist.c'.
26244 (symlist.c): Variable removed.
26245 (grubof_HEADERS): Variable added.
26246 (grubof_symlist.c): New target.
26247 (kernel_syms.lst): Use `grubof_HEADERS' instead of
26248 `kernel_img_HEADERS'.
26249 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
26250 * kern/powerpc/dl.c: New file.
26251 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
26253 (grub_arch_dl_relocate_symbols): Likewise.
26254 (grub_register_exported_symbols): Likewise.
26256 2004-12-13 Marco Gerards <metgerards@student.han.nl>
26258 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
26259 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
26260 to fail instead. Reported by Vincent Pelletier
26261 <subdino2004@yahoo.fr>.
26263 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
26264 it is not allocated. Reported by Vincent Pelletier
26265 <subdino2004@yahoo.fr>.
26267 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
26268 output so the output looks better.
26270 2004-12-04 Marco Gerards <metgerards@student.han.nl>
26272 Modulize the partition map support and add support for the amiga
26275 * commands/ls.c: Include <grub/partition.h> instead of
26276 <grub/machine/partition.h>.
26277 * kern/disk.c: Likewise.
26278 * kern/rescue.c: Likewise.
26279 * loader/i386/pc/chainloader.c: Likewise.
26280 * normal/cmdline.c: Likewise.
26281 * kern/powerpc/ieee1275/init.c: Likewise.
26282 (grub_machine_init): Call `grub_pc_partition_map_init',
26283 `grub_amiga_partition_map_init' and
26284 `grub_apple_partition_map_init'.
26285 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
26286 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
26287 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
26288 `partition.h' and `pc_partition.h'.
26289 (grub_setup_SOURCES): Remove
26290 `disk/i386/pc/partition.c'. Add `kern/partition.c',
26291 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26292 (grub_emu_SOURCES): Likewise.
26293 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
26294 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
26295 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
26296 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26297 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
26298 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26299 (grubof_SOURCES): Likewise.
26300 * disk/i386/pc/partition.c: File removed.
26301 * disk/powerpc/ieee1275/partition.c: Likewise.
26302 * include/grub/powerpc/ieee1275/partition.h: Likewise.
26303 * include/grub/i386/pc/partition.h: Likewise.
26304 * kern/partition.c: New file.
26305 * partmap/amiga.c: Likewise.
26306 * partmap/apple.c: Likewise.
26307 * partmap/pc.c: Likewise.
26308 * include/grub/partition.h: Likewise..
26309 * include/grub/pc_partition.h: Likewise.
26310 * util/grub-emu.c: Include <grub/partition.h> instead of
26311 <grub/machine/partition.h>.
26312 (main): Call `grub_pc_partition_map_init',
26313 `grub_amiga_partition_map_init' and
26314 `grub_apple_partition_map_init' and deinitialize afterwards.
26315 * util/i386/pc/biosdisk.c: Include `#include
26316 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26317 `<grub/machine/partition.h>'.
26318 * util/i386/pc/grub-setup.c: Likewise.
26319 * util/i386/pc/biosdisk.c: Likewise.
26320 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
26321 partition information in case of a PC partition.
26322 * util/i386/pc/grub-setup.c: Include `#include
26323 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26324 `<grub/machine/partition.h>'.
26325 (setup): Only access the PC specific partition information in case
26328 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
26330 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
26331 (grub_longjmp): Likewise.
26332 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
26334 * normal/powerpc/setjmp.S: New file.
26335 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
26336 `normal/powerpc/setjmp.S'.
26337 (grubof_CFLAGS): Add `-DGRUBOF'.
26338 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
26339 [GRUB_UTIL && !GRUBOF].
26341 2004-11-16 Marco Gerards <metgerards@student.han.nl>
26343 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
26344 property named `name'. Correctly handle the error returned by
26345 `grub_ieee1275_finddevice' if a device can not be opened.
26347 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
26349 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
26350 `actual' for negativity.
26351 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26354 2004-11-01 Marco Gerards <metgerards@student.han.nl>
26356 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
26357 (PAGE_OFFSET): New macro.
26358 (CRTC_ADDR_PORT): Likewise.
26359 (CRTC_DATA_PORT): Likewise.
26360 (START_ADDR_HIGH_REGISTER): Likewise.
26361 (START_ADDR_LOW_REGISTER): Likewise.
26362 (GRAPHICS_ADDR_PORT): Likewise.
26363 (GRAPHICS_DATA_PORT): Likewise.
26364 (READ_MAP_REGISTER): Likewise.
26365 (INPUT_STATUS1_REGISTER): Likewise.
26366 (INPUT_STATUS1_VERTR_BIT): Likewise.
26367 (page): New variable.
26368 (wait_vretrace): New function.
26369 (set_read_map): Likewise.
26370 (set_start_address): Likewise.
26371 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
26373 (check_vga_mem): Take the page into account.
26374 (write_char): Likewise.
26375 (write_cursor): Likewise.
26376 (scroll_up): Likewise. Copy the page to the page that is not
26377 shown and switch between both pages.
26378 (grub_vga_putchar): Fix off by one error.
26379 (grub_vga_cls): Wait for the vertical retrace. Take the page into
26382 2004-11-01 Marco Gerards <metgerards@student.han.nl>
26384 Add support for iso9660 (including rockridge).
26386 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26387 (iso9660_mod_SOURCES): New variable.
26388 (iso9660_mod_CFLAGS): Likewise.
26389 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26390 * include/grub/fs.h (grub_iso9660_init): New prototype.
26391 * util/grub-emu.c (main): Call `grub_iso9660_init'.
26392 * fs/iso9660.c: New file.
26394 * include/grub/misc.h (grub_strncat): New prototype.
26395 * kern/misc.c (grub_strncat): New function.
26397 * fs/hfs.c (grub_hfs_mount): Translate the error
26398 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
26399 * fs/jfs.c (grub_jfs_mount): Likewise.
26400 * fs/ufs.c (grub_ufs_mount): Likewise.
26402 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
26404 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
26405 which initialized BAT registers.
26406 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
26407 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26409 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
26410 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26412 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
26413 (grub_mapclaim): Likewise.
26414 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
26415 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
26418 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
26420 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
26421 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
26422 -ffreestanding and -msoft-float.
26424 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
26426 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
26427 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
26428 set in grub_ieee1275_flags.
26430 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
26432 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
26434 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
26435 grub_console_init first.
26436 Change the memory range used for grub_ieee1275_claim and
26437 grub_mm_init_region.
26438 Print an error message if the claim fails.
26439 Include <grub/misc.h>.
26441 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
26443 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
26444 Call grub_children_iterate for device nodes of type `scsi',
26446 (grub_ofdisk_open): Remove manual device alias resolution.
26447 Fix memory leak when device cannot be opened.
26448 * include/grub/powerpc/ieee1275/ieee1275.h
26449 (grub_children_iterate): New prototype.
26450 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
26452 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26453 Return -1 if args.size was -1.
26455 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26457 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
26458 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
26459 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
26460 Open Firmware's memory for it; claim memory from _start to _end.
26461 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
26462 (_end): New extern.
26463 (_start): Zero BSS from __bss_start to _end.
26464 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
26466 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
26468 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26470 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
26471 -1 if args.base was -1.
26473 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
26475 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
26476 escape sequence instead of a literal ^L. Also call
26477 grub_ofconsole_gotoxy.
26479 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
26481 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
26482 void * arguments to grub_addr_t. All callers updated. Also make
26483 the `result' argument optional.
26484 (grub_ieee1275_release): change void * arguments to grub_addr_t.
26485 All callers updated.
26487 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
26489 * commands/ls.c (grub_ls_list_files): Use the string following the
26490 initial ')', if present, as the filesystem path.
26491 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
26493 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
26495 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
26497 Make the source code of the menu interface more readable.
26499 * normal/menu.c: Include grub/mm.h.
26500 (TERM_WIDTH): New macro.
26501 (TERM_HEIGHT): Likewise.
26502 (TERM_INFO_HEIGHT): Likewise.
26503 (TERM_MARGIN): Likewise.
26504 (TERM_SCROLL_WIDTH): Likewise.
26505 (TERM_TOP_BORDER_Y): Likewise.
26506 (TERM_LEFT_BORDER_X): Likewise.
26507 (TERM_BORDER_WIDTH): Likewise.
26508 (TERM_MESSAGE_HEIGHT): Likewise.
26509 (TERM_BORDER_HEIGHT): Likewise.
26510 (TERM_NUM_ENTRIES): Likewise.
26511 (TERM_FIRST_ENTRY_Y): Likewise.
26512 (TERM_ENTRY_WIDTH): Likewise.
26513 (TERM_CURSOR_X): Likewise.
26514 (draw_border): Use macros instead of magic numbers.
26515 (print_entry): Likewise.
26516 (print_entries): Likewise.
26517 (run_menu): Likewise. Also, handle the key 'e'.
26518 (run_menu_entry): Ignore empty command lines.
26519 (print_message): Added a new argument EDIT. If EDIT is true,
26520 print a different message.
26521 (init_page): Likewise.
26522 (edit_menu_entry): New function. Not implemented yet.
26524 2004-09-17 Marco Gerards <metgerards@student.han.nl>
26526 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
26527 can be loaded from normal mode.
26529 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
26531 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
26532 (multiboot_mod_CFLAGS): New variables.
26533 * loader/i386/pc/linux_normal.c: New file.
26534 * loader/i386/pc/multiboot_normal.c: Likewise.
26536 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
26537 attribute `unused'.
26539 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
26540 `fdiro' to read the mode information from instead of `diro'.
26542 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
26543 looking up a symlink.
26545 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
26547 * normal/command.c (grub_command_execute): Don't parse the
26548 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
26549 flags of the command.
26551 * normal/menu.c (grub_menu_run): Fix typo.
26553 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
26555 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
26557 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
26558 `y + 1' instead of `y - 1'.
26560 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
26562 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
26564 From Hollis Blanchard <hollis@penguinppc.org>:
26565 * kern/misc.c (memmove): New alias for grub_memmove.
26566 (memcmp): New alias for grub_memcmp.
26567 (memset): New alias for grub_memset.
26568 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26569 Change "int handle" to "grub_ieee1275_phandle_t handle".
26570 * include/grub/powerpc/ieee1275/ieee1275.h
26571 (grub_ieee1275_get_property): Likewise.
26573 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
26575 Added normal mode command `chainloader' as module chain.mod, which
26576 depends on normal.mod and _chain.mod.
26578 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
26579 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
26580 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
26582 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
26583 but arguments parsing moved to ...
26584 (grub_chainloader_cmd): ... here. New function.
26585 * include/grub/i386/pc/chainloader.h: New file.
26586 * loader/i386/pc/chainloader_normal.c: Likewise.
26588 2004-09-11 Marco Gerards <metgerards@student.han.nl>
26590 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
26591 (grub_mkimage_LDFLAGS): Likewise.
26592 (grub_emu_SOURCES): Likewise.
26593 (kernel_img_HEADERS): Added fshelp.h.
26594 * fs/ext2.c: Include <grub/fshelp.h>.
26595 (FILETYPE_REG): New macro.
26596 (FILETYPE_INO_REG): Likewise.
26597 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
26599 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
26601 (grub_fshelp_node): New struct.
26602 (grub_ext2_data): Added member `diropen'. Changed member `inode'
26604 (grub_ext2_get_file_block): Removed function.
26605 (grub_ext2_read_block): New function.
26606 (grub_ext2_read_file): Replaced parameter `data' by `node'.
26607 This function was written.
26608 (grub_ext2_mount): Read the root inode. Create a diropen struct.
26609 (grub_ext2_find_file): Removed function.
26610 (grub_ext2_read_symlink): New function.
26611 (grub_ext2_iterate_dir): Likewise.
26612 (grub_ext2_open): Rewritten.
26613 (grub_ext2_dir): Rewritten.
26614 * include/grub/fshelp.h: New file.
26615 * fs/fshelp.c: Likewise.
26617 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
26619 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
26620 (print_message): Add a missing newline.
26621 (run_menu): Added timeout support.
26622 (run_menu_entry): New local function.
26623 (grub_menu_run): Added support for booting.
26625 * kern/loader.c (grub_loader_is_loaded): New function.
26627 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
26628 (grub_get_rtc): Exported.
26630 * include/grub/i386/pc/time.h: Include grub/symbol.h.
26631 (grub_get_rtc): Exported.
26633 * include/grub/normal.h (struct grub_command_list): Remove
26634 constant from the member `command'.
26636 * include/grub/loader.h (grub_loader_is_loaded): Declared.
26638 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
26640 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
26642 2004-08-28 Marco Gerards <metgerards@student.han.nl>
26644 Add support for the JFS filesystem.
26646 * fs/jfs.c: New file.
26647 * include/grub/fs.h (grub_jfs_init): New prototype.
26648 (grub_jfs_fini): New prototype.
26649 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
26650 (grub_emu_SOURCES): Likewise.
26651 (pkgdata_MODULES): Add jfs.mod.
26652 (jfs_mod_SOURCES): New variable.
26653 (jfs_mod_CFLAGS): Likewise.
26654 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
26655 (grubof_SOURCES): Likewise.
26656 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
26658 * fs/fat.c (grub_fat_find_dir): Convert the filename little
26659 endian to the host endian.
26660 (grub_fat_utf16_to_utf8): Move function from there...
26661 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
26662 the endianness of the source string anymore.
26663 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
26665 2004-08-24 Marco Gerards <metgerards@student.han.nl>
26667 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
26668 (grub_boot_fini) [GRUB_UTIL]: Likewise.
26669 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
26670 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
26672 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
26673 (grub_hfs_iterate_dir): Make the function static. Add prototypes
26674 for `node_found' and `it_dir'.
26675 (grub_hfs_dir): Add prototype for `dir_hook'.
26677 * fs/minix.c (grub_minix_get_file_block): Add prototype for
26678 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
26679 and `indir32' to silence a gcc warning.
26681 * include/grub/fs.h (grub_hfs_init): New prototype.
26682 (grub_hfs_fini): Likewise.
26685 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
26687 Each disk device has its own id now. This is useful to make use
26688 of multiple disk devices.
26690 * include/grub/disk.h (grub_disk_dev_id): New enum.
26691 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
26692 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
26694 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
26695 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
26697 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
26698 GRUB_DISK_DEVICE_OFDISK_ID as an id.
26700 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
26701 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
26703 * include/grub/disk.h (struct grub_disk_dev): Added a new member
26704 "id" which is used by the cache manager.
26706 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
26709 2004-08-18 Marco Gerards <metgerards@student.han.nl>
26711 * fs/hfs.c: New file.
26712 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
26713 (grub_emu_SOURCES): Likewise.
26714 (pkgdata_MODULES): Add hfs.mod.
26715 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
26716 (grubof_SOURCES): Likewise.
26717 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
26719 * include/grub/misc.h (grub_strncasecmp): Add prototype.
26720 * kern/misc.c (grub_strncasecmp): Add function.
26722 2004-08-14 Marco Gerards <metgerards@student.han.nl>
26724 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
26727 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
26728 (grub_ext2_dir): In case the directory entry type is unknown, read
26731 2004-08-02 Peter Bruin <pjbruin@dds.nl>
26733 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
26734 grub_load_linux instead of grub_rescue_cmd_linux as second
26735 argument of grub_rescue_register_command.
26737 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
26739 2004-07-27 Marco Gerards <metgerards@student.han.nl>
26741 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
26743 * commands/boot.c: Remove the check for `GRUB_UTIL'.
26744 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
26745 `loader/powerpc/ieee1275/linux.c',
26746 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
26747 * include/grub/powerpc/ieee1275/ieee1275.h
26748 (grub_ieee1275_release): New prototype.
26749 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
26750 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
26751 normal, boot, linux and linux_normal.
26752 * loader/powerpc/ieee1275/linux.c: New file.
26753 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
26755 2004-07-12 Marco Gerards <metgerards@student.han.nl>
26757 * normal/arg.c (grub_arg_parse): Correct error handling after
26758 reallocating the argumentlist (check if `argl' is not null instead
26759 of checking if `args' is not null).
26760 * kern/mm.c (grub_realloc): Return the same pointer when using the
26761 same region, instead of returning the header address.
26763 2004-07-11 Marco Gerards <metgerards@student.han.nl>
26765 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
26766 one block instead of two when looking for the initial partition.
26767 (grub_partition_probe): Initialize the local variable `p' with 0.
26768 Use base 10 for the grub_strtoul call.
26769 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
26770 need for one local variable.
26771 (grub_strtoul): Don't add the new value to `num', instead of that
26774 2004-07-11 Marco Gerards <metgerards@student.han.nl>
26776 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
26777 (pxeboot_img_SOURCES): New variable.
26778 (pxeboot_img_ASFLAGS): Likewise.
26779 (pxeboot_img_LDFLAGS): Likewise.
26780 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
26781 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
26782 <lode_leroy@hotmail.com>.
26784 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26786 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
26787 there was no input.
26789 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26791 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
26792 the history buffer logic.
26794 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26796 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
26797 (FILETYPE_INO_SYMLINK): New macros.
26798 (grub_ext2_find_file): Check if the node is a directory using the
26799 inode stat information instead of using the filetype in the
26800 dirent. Exclude the first character of an absolute symlink.
26801 (grub_ext2_dir): Mask out the filetype part of the mode member of
26804 2004-05-24 Marco Gerards <metgerards@student.han.nl>
26806 Add support for UFS version 1 and 2. Add support for the minix
26807 filesystem version 1 and 2, both the variants with 14 and 30 long
26810 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
26812 (grub_emu_SOURCES): Likewise.
26813 (pkgdata_MODULES): Add ufs.mod and minix.mod.
26814 (ufs_mod_SOURCES): New variable.
26815 (ufs_mod_CFLAGS): Likewise.
26816 (minix_mod_SOURCES): Likewise.
26817 (minix_mod_CFLAGS): Likewise.
26818 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
26820 (grubof_SOURCES): Likewise.
26821 * fs/ufs.c: New file.
26822 * fs/minix.c: New file.
26823 * include/grub/fs.h (grub_ufs_init): New prototype.
26824 (grub_ufs_fini): Likewise.
26825 (grub_minix_init): Likewise.
26826 (grub_minix_fini): Likewise.
26827 * util/grub-emu.c (main): Initialize and deinitialize UFS and
26830 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
26832 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
26833 commands/ls.c, commands/terminal.c, commands/boot.c,
26834 commands/cmp.c and commands/cat.c.
26835 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
26837 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
26840 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
26842 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
26843 and grub_, respectively. Because the conversion is trivial and
26844 mechanical, I omit the details here. Please refer to the CVS
26845 if you need more information.
26847 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
26849 * include/pupa: Renamed to ...
26850 * include/grub: ... this.
26851 * util/i386/pc/pupa-mkimage.c: Renamed to ...
26852 * util/i386/pc/grub-mkimage.c: ... this.
26853 * util/i386/pc/pupa-setup.c: Renamed to ...
26854 * util/i386/pc/grub-setup.c: ... this.
26855 * util/pupa-emu.c: Renamed to ...
26856 * util/grub-emu.c: ... this.
26858 2004-03-29 Marco Gerards <metgerards@student.han.nl>
26860 Add support for the newworld apple macintosh (PPC). This has been
26861 tested on the powerbook 2000 only. It only adds support for
26862 generic ieee1275 functions, console and disk support. This should
26863 be easy to port to other architectures with support for Open
26866 * configure.ac: Accept the powerpc as host_cpu. In the case of
26867 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
26868 specific tests are only executed while building for the i386.
26869 Inverse test for crosscompile.
26870 * genmk.rb (Utility): Allow assembler files.
26871 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
26872 * conf/powerpc-ieee1275.rmk: New file.
26873 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
26874 * disk/powerpc/ieee1275/partition.c: Likewise.
26875 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
26876 * include/pupa/powerpc/ieee1275/console.h: Likewise.
26877 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
26878 * include/pupa/powerpc/ieee1275/time.h: Likewise.
26879 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
26880 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
26881 * include/pupa/powerpc/ieee1275/loader.h
26882 * include/pupa/powerpc/setjmp.h: Likewise.
26883 * include/pupa/powerpc/types.h: Likewise.
26884 * kern/powerpc/ieee1275/init.c: Likewise.
26885 * kern/powerpc/ieee1275/openfw.c: Likewise.
26886 * term/powerpc/ieee1275/ofconsole.c: Likewise.
26888 These files were written by Johan Rydberg
26889 (jrydberg@night.trouble.net) and I only modified them slightly.
26891 * boot/powerpc/ieee1275/cmain.c: New file.
26892 * boot/powerpc/ieee1275/crt0.S: Likewise.
26893 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
26894 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
26896 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
26898 * Makefile.in: Update copyright.
26899 * genmodsrc.sh: Likewise.
26900 * gensymlist.sh: Likewise.
26901 * term/i386/pc/vga.c: Indent correctly.
26903 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
26904 bugreporting address.
26905 * util/i386/pc/pupa-setup.c (usage): Likewise,
26906 (main): Call pupa_ext2_init and pupa_ext2_fini.
26908 * fs/fat.c (log2): Renamed to ...
26909 (fat_log2): ... this.
26910 All callers changed.
26911 * kern/misc.c (memcpy): Alias to pupa_memmove.
26912 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
26914 * util/console.c (pupa_ncurses_fini): Return 0.
26916 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
26917 Move fail label here.
26918 [__GNU__]: Don't warn when using stat.
26919 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
26920 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
26921 long int. Use strtol instead of strtoul.
26923 2004-03-14 Marco Gerards <metgerards@student.han.nl>
26925 * commands/boot.c: New file.
26926 * commands/cat.c: Likewise.
26927 * commands/cmp.c: Likewise.
26928 * commands/ls.c: Likewise.
26929 * commands/terminal.c: Likewise.
26930 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
26931 (pupa_register_command): Changed interface to match the new
26933 (pupa_command_execute): Changed (almost rewritten) so it uses
26934 pupa_split_command. Added support for setting variables using the
26936 (rescue_command): Changed to work with the new argument parser.
26937 (terminal_command): Moved from here to commands/terminal.c.
26938 (set_command): New function.
26939 (unset_command): New function.
26940 (insmod_command): New function.
26941 (rmmod_command): New function.
26942 (lsmod_command): New function.
26943 (pupa_command_init): Don't initialize the command terminal
26944 anymore. Initialize the commands set, unset, insmod, rmmod and
26946 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
26947 (kernel_img_HEADERS): Add arg.h and env.h.
26948 (pupa_mkimage_LDFLAGS): Add kern/env.c.
26949 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
26950 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
26952 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
26954 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
26955 (boot_mod_SOURCES): New variable.
26956 (terminal_mod_SOURCES): Likewise.
26957 (ls_mod_SOURCES): Likewise.
26958 (cmp_mod_SOURCES): Likewise.
26959 (cat_mod_SOURCES): Likewise.
26961 * normal/arg.c: New file.
26962 * kern/env.c: Likewise.
26963 * include/pupa/arg.h: Likewise.
26964 * include/pupa/env.h: Likewise.
26965 * font/manager.c (font_command): Changed to match argument parsing
26967 (PUPA_MOD_INIT): Likewise.
26968 * hello/hello.c (pupa_cmd_hello): Likewise.
26969 (PUPA_MOD_INIT): Likewise.
26970 * include/pupa/disk.h: Include <pupa/device.h>.
26971 (pupa_print_partinfo): New prototype.
26972 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
26973 (pupa_dl_get_prefix): Likewise.
26974 * include/pupa/misc.h: Include <pupa/err.h>.
26975 (pupa_isgraph): New prototype.
26976 (pupa_isdigit): Likewise.
26977 (pupa_split_cmdline): Likewise.
26978 * include/pupa/normal.h: Include <pupa/arg.h>.
26979 (pupa_command): Changed the prototype of the member `func' to
26980 match the argument parsing interface. Added member `options'.
26981 (pupa_register_command): Updated to match function.
26982 (pupa_arg_parse): New prototype.
26983 (pupa_hello_init) [PUPA_UTIL]: New prototype.
26984 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
26985 (pupa_ls_init) [PUPA_UTIL]: Likewise.
26986 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
26987 (pupa_cat_init) [PUPA_UTIL]: Likewise.
26988 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
26989 (pupa_boot_init) [PUPA_UTIL]: Likewise.
26990 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
26991 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
26992 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
26993 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
26994 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
26995 * kern/disk.c: Include <pupa/file.h>.
26996 (pupa_print_partinfo): New function.
26997 * kern/dl.c: Include <pupa/env.h>.
26998 (pupa_dl_dir): Variable removed.
26999 (pupa_dl_load): Use the environment variable `prefix' instead of
27000 the variable pupa_dl_dir.
27001 (pupa_dl_set_prefix): Function removed.
27002 (pupa_dl_get_prefix): Likewise.
27003 * kern/i386/pc/init.c: Include <pupa/env.h>.
27004 (pupa_machine_init): Use the environment variable `prefix' instead of
27005 using pupa_dl_set_prefix to set the prefix.
27006 * kern/main.c: Include <pupa/env.h>.
27007 (pupa_set_root_dev): Use the environment variable `prefix' instead of
27008 using pupa_dl_get_prefix to get the prefix.
27009 * kern/misc.c: Include <pupa/env.h>.
27010 (pupa_isdigit): New function.
27011 (pupa_isgraph): Likewise.
27012 (pupa_ftoa): Likewise.
27013 (pupa_vsprintf): Added support for printing values of the type
27014 `double'. Make it possible to format variable output when using
27015 formatting like `%1.2%f'.
27016 (pupa_split_cmdline): New function.
27017 * kern/rescue.c: Include <pupa/env.h>.
27018 (next_word): Removed function.
27019 (pupa_rescue_cmd_prefix): Likewise.
27020 (pupa_rescue_cmd_set): New function.
27021 (pupa_rescue_cmd_unset): New function.
27022 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
27023 split the command line instead of splitting it here. Added
27024 support for setting variables using the syntax `foo=bar'. Don't
27025 initialize the prefix command anymore. Initialized the set and
27027 * normal/cmdline.c: Include <pupa/env.h>.
27028 (pupa_tab_complete): Added prototypes for print_simple_completion,
27029 print_partition_completion, add_completion, iterate_commands,
27030 iterate_dev, iterate_part and iterate_dir. Moved code to print
27031 partition information from here to kern/disk.c.
27032 (pupa_cmdline_run): Don't check if the function exists anymore.
27033 * normal/main.c: Include <pupa/env.h>.
27034 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
27035 instead of using pupa_dl_get_prefix to get the prefix.
27036 * term/i386/pc/vga.c: Include <pupa/arg.h>.
27037 (check_vga_mem): Cast pointers to `void *' to silence a gcc
27039 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
27040 (pupa_vga_setcolor): Declare unused variables with `__attribute__
27041 ((unused))' to silence a gcc warning.
27042 (pupa_vga_setcolor): Likewise.
27043 (debug_command): Changed to match argument parsing
27045 * util/pupa-emu.c: Include <pupa/env.h>.
27046 (options): Added 0's for unused fields to silence a gcc warning.
27048 (main): Use the environment variable `prefix' instead of using
27049 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
27050 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
27053 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
27054 * util/misc.c: Include <malloc.h>.
27055 (pupa_malloc): Rewritten so errors are correctly reported.
27056 (pupa_realloc): Likewise.
27057 (pupa_memalign): Likewise.
27058 (pupa_mm_init_region): Declare unused variables with
27059 `__attribute__ ((unused))' to silence a gcc warning.
27060 * normal/i386/setjmp.S: Remove tab at the end of the file to
27061 silence a gcc warning.
27062 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
27063 variables with `__attribute__ ((unused))' to silence a gcc
27065 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
27066 local variable i unsigned to silence a gcc warning.
27068 * kern/term.c: Include <pupa/misc.h>.
27069 (pupa_more_lines): New variable.
27070 (pupa_more): Likewise.
27071 (pupa_putcode): When the pager is active pause at the end of every
27073 (pupa_set_more): New function.
27074 * include/pupa/term.h (pupa_set_more): New prototype.
27077 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
27079 Now this project is GRUB 2 rather than PUPA. The location of
27080 the CVS repository was moved to GRUB's.
27082 * configure.ac: Use bug-grub as the reporting address.
27083 Use GRUB instead of PUPA.
27084 Change the version number to 1.90.
27086 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
27088 * genkernsyms.sh: Updated copyright information.
27089 * genmk.rb: Likewise.
27090 * genmodsrc.sh: Likewise.
27091 * gensymlist.sh: Likewise.
27092 * boot/i386/pc/boot.S: Likewise.
27093 * boot/i386/pc/diskboot.S: Likewise.
27094 * disk/i386/pc/biosdisk.c: Likewise.
27095 * disk/i386/pc/partition.c: Likewise.
27096 * font/manager.c: Likewise.
27097 * fs/ext2.c: Likewise.
27098 * fs/fat.c: Likewise.
27099 * include/pupa/boot.h: Likewise.
27100 * include/pupa/device.h: Likewise.
27101 * include/pupa/disk.h: Likewise.
27102 * include/pupa/dl.h: Likewise.
27103 * include/pupa/elf.h: Likewise.
27104 * include/pupa/err.h: Likewise.
27105 * include/pupa/file.h: Likewise.
27106 * include/pupa/font.h: Likewise.
27107 * include/pupa/fs.h: Likewise.
27108 * include/pupa/kernel.h: Likewise.
27109 * include/pupa/loader.h: Likewise.
27110 * include/pupa/misc.h: Likewise.
27111 * include/pupa/mm.h: Likewise.
27112 * include/pupa/net.h: Likewise.
27113 * include/pupa/normal.h: Likewise.
27114 * include/pupa/rescue.h: Likewise.
27115 * include/pupa/setjmp.h: Likewise.
27116 * include/pupa/symbol.h: Likewise.
27117 * include/pupa/term.h: Likewise.
27118 * include/pupa/types.h: Likewise.
27119 * include/pupa/i386/setjmp.h: Likewise.
27120 * include/pupa/i386/types.h: Likewise.
27121 * include/pupa/i386/pc/biosdisk.h: Likewise.
27122 * include/pupa/i386/pc/boot.h: Likewise.
27123 * include/pupa/i386/pc/console.h: Likewise.
27124 * include/pupa/i386/pc/init.h: Likewise.
27125 * include/pupa/i386/pc/kernel.h: Likewise.
27126 * include/pupa/i386/pc/linux.h: Likewise.
27127 * include/pupa/i386/pc/loader.h: Likewise.
27128 * include/pupa/i386/pc/memory.h: Likewise.
27129 * include/pupa/i386/pc/multiboot.h: Likewise.
27130 * include/pupa/i386/pc/partition.h: Likewise.
27131 * include/pupa/i386/pc/time.h: Likewise.
27132 * include/pupa/i386/pc/vga.h: Likewise.
27133 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
27134 * include/pupa/util/getroot.h: Likewise.
27135 * include/pupa/util/misc.h: Likewise.
27136 * include/pupa/util/resolve.h: Likewise.
27137 * kern/device.c: Likewise.
27138 * kern/disk.c: Likewise.
27139 * kern/dl.c: Likewise.
27140 * kern/err.c: Likewise.
27141 * kern/file.c: Likewise.
27142 * kern/fs.c: Likewise.
27143 * kern/loader.c: Likewise.
27144 * kern/main.c: Likewise.
27145 * kern/misc.c: Likewise.
27146 * kern/mm.c: Likewise.
27147 * kern/rescue.c: Likewise.
27148 * kern/term.c: Likewise.
27149 * kern/i386/dl.c: Likewise.
27150 * kern/i386/pc/init.c: Likewise.
27151 * kern/i386/pc/lzo1x.S: Likewise.
27152 * kern/i386/pc/startup.S: Likewise.
27153 * loader/i386/pc/chainloader.c: Likewise.
27154 * loader/i386/pc/linux.c: Likewise.
27155 * loader/i386/pc/multiboot.c: Likewise.
27156 * normal/cmdline.c: Likewise.
27157 * normal/command.c: Likewise.
27158 * normal/main.c: Likewise.
27159 * normal/menu.c: Likewise.
27160 * normal/i386/setjmp.S: Likewise.
27161 * term/i386/pc/console.c: Likewise.
27162 * term/i386/pc/vga.c: Likewise.
27163 * util/console.c: Likewise.
27164 * util/genmoddep.c: Likewise.
27165 * util/misc.c: Likewise.
27166 * util/pupa-emu.c: Likewise.
27167 * util/resolve.c: Likewise.
27168 * util/unifont2pff.rb: Likewise.
27169 * util/i386/pc/biosdisk.c: Likewise.
27170 * util/i386/pc/getroot.c: Likewise.
27171 * util/i386/pc/pupa-mkimage.c: Likewise.
27172 * util/i386/pc/pupa-setup.c: Likewise.
27174 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
27176 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
27177 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
27178 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
27179 reading and reset it after reading.
27180 (pupa_ext2_close): Return PUPA_ERR_NONE.
27182 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
27184 (struct linux_kernel_header): Add kernel_version and
27186 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
27187 pupa_file_read succeeds.
27188 (pupa_rescue_cmd_initrd): Implement.
27190 2003-12-03 Marco Gerards <metgerards@student.han.nl>
27192 * fs/ext2.c (pupa_ext2_label): New function.
27193 (pupa_ext2_fs): Added label.
27194 * fs/fat.c (pupa_fat_label): New function.
27195 (pupa_fat_fs): Added label.
27196 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
27198 * kern/misc.c (pupa_strndup): New function.
27199 * include/pupa/misc.h (pupa_strndup): New prototype.
27201 * include/pupa/normal.h: Include <pupa/err.h>.
27202 (pupa_set_history): New prototype.
27203 (pupa_iterate_commands): New prototype.
27204 * normal/cmdline.c: Include <pupa/machine/partition.h>,
27205 <pupa/disk.h>, <pupa/file.h>.
27206 (hist_size): New variable.
27207 (hist_lines): Likewise.
27208 (hist_end): Likewise.
27209 (hist_used): Likewise.
27210 (pupa_set_history): New function.
27211 (pupa_history_get): Likewise.
27212 (pupa_history_add): Likewise.
27213 (pupa_history_replace): Likewise.
27214 (pupa_tab_complete): Likewise.
27215 (pupa_cmdline_run): Added tab completion and history buffer. Tab
27216 completion shows partitionnames while completing partitions, this
27217 feature was suggested by Jeff Bailey.
27218 * normal/command.c (pupa_iterate_commands): New function.
27219 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
27220 (pupa_normal_init): Initialize history buffer.
27221 (PUPA_MOD_INIT): Likewise.
27222 (pupa_normal_fini): Free the history buffer.
27223 (PUPA_MOD_FINI): Likewise.
27225 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
27228 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
27229 * configure.ac [i386]: Check for regparam bug.
27230 (NESTED_FUNC_ATTR) [! i386]: Defined.
27232 2003-11-17 Marco Gerards <metgerards@student.han.nl>
27234 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
27235 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
27236 (pupa_emu_SOURCES): New variable.
27237 (pupa_emu_LDFLAGS): Likewise.
27238 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
27239 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
27240 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
27241 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27242 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
27243 (pupa_jmp_buf): New typedef.
27244 (pupa_setjmp) [PUPA_UTIL]: New macro.
27245 (pupa_longjmp) [PUPA_UTIL]: Likewise.
27246 * include/pupa/term.h (struct pupa_term): New member `refresh'.
27247 (pupa_refresh): New prototype.
27248 * include/pupa/util/getroot.h: New file.
27249 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
27251 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
27252 (pupa_rescue_cmd_cat): Likewise.
27253 (pupa_rescue_cmd_ls): Likewise.
27254 (pupa_rescue_cmd_testload): Likewise.
27255 (pupa_rescue_cmd_lsmod): Likewise.
27256 * normal/cmdline.c (pupa_cmdline_get): Likewise.
27257 * normal/menu.c (run_menu): Likewise.
27258 * kern/term.c (pupa_cls): Likewise.
27259 (pupa_refresh): New function.
27260 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
27261 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27262 * util/console.c: New file.
27264 * util/i386/pc/getroot.c: New file.
27265 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
27266 (pupa_putchar): New function.
27267 (pupa_refresh): Likewise.
27268 (xgetcwd): Function moved to ...
27269 (strip_extra_slashes): Likewise.
27270 (get_prefix): Likewise.
27271 * util/i386/pc/getroot.c: ... here.
27272 (find_root_device): Function moved and renamed to...
27273 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
27274 Changed all callers.
27275 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
27277 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
27278 Changed all callers.
27279 * util/misc.c (pupa_memalign): New function.
27280 (pupa_mm_init_region): Likewise.
27281 (pupa_register_exported_symbols): Likewise.
27282 (pupa_putchar): Function removed.
27283 * util/pupa-emu.c: New file.
27285 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
27287 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
27288 (_multiboot_mod_SOURCES): New variable.
27289 (_multiboot_mod_CFLAGS): Likewise.
27290 * loader/i386/pc/multiboot.c: New file.
27291 * include/pupa/i386/pc/multiboot.h: Likewise.
27292 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
27293 (pupa_multiboot_real_boot): New function.
27294 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
27295 (pupa_multiboot_real_boot): New prototype.
27296 (pupa_rescue_cmd_multiboot): Likewise
27297 (pupa_rescue_cmd_module): Likewise.
27299 * kern/loader.c (pupa_loader_set): Continue when
27300 pupa_loader_unload_func() fails.
27301 (pupa_loader_unset): New function.
27302 * include/pupa/loader.h (pupa_loader_unset): New prototype.
27304 * kern/misc.c (pupa_stpcpy): New function.
27305 * include/pupa/misc.h (pupa_stpcpy): New prototype.
27307 2003-11-12 Marco Gerards <metgerards@student.han.nl>
27309 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
27310 for available extensions.
27312 * include/pupa/i386/pc/time.h: New file.
27313 * kern/disk.c: Include <pupa/machine/time.h>.
27314 (PUPA_CACHE_TIMEOUT): New macro.
27315 (pupa_last_time): New variable.
27316 (pupa_disk_open): Flush the cache when there was a timeout.
27317 (pupa_disk_close): Reset the timer.
27318 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
27320 * util/misc.c: Include <sys/times.h>
27321 (pupa_get_rtc): New function.
27323 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
27325 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
27327 (pupa_ext2_get_file_block): Use blocks member.
27329 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
27330 first block. Return -1 instead of pupa_errno on error.
27332 2003-10-27 Marco Gerards <metgerards@student.han.nl>
27334 * README: In the pupa-mkimage example use _chain instead of chain
27335 and ext2 instead of fat.
27336 * TODO: Replace ext2fs with jfs as an example. Add an item for
27337 adding journal playback for ext2fs.
27338 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
27339 (pkgdata_MODULES): Added ext2.mod.
27340 (ext2_mod_SOURCES): New variable.
27341 (ext2_mod_CFLAGS): Likewise.
27342 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
27343 * include/pupa/misc.h (pupa_strncpy): New prototype.
27344 (pupa_strcat): Likewise.
27345 (pupa_strncmp): Likewise.
27346 * kern/misc.c (pupa_strcat): Enable function.
27347 (pupa_strncpy): New function.
27348 (pupa_strncmp): Likewise.
27349 * fs/ext2.c: New file.
27351 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
27352 when the read failed before retrying.
27353 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
27354 (_FILE_OFFSET_BITS): Likewise.
27355 * configure.ac: Added AC_SYS_LARGEFILE.
27357 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27359 * genmk.rb (PModule#rule): Make sure to get only symbol names
27360 from the output of nm.
27361 Reported by Robert Millan <rmh.grub@aybabtu.com>.
27363 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27365 I forgot to check in these changes for a long time. This adds
27366 incomplete support for VGA console, and this is still very
27367 buggy. Also, a lot of consideration is required for I18N,
27368 UNICODE, and VGA font issues. Therefore, assume that this is
27369 such that "better than nothing".
27371 * font/manager.c: New file.
27372 * include/pupa/font.h: Likewise.
27373 * include/pupa/i386/pc/vga.h: Likewise.
27374 * term/i386/pc/vga.c: Likewise.
27375 * util/unifont2pff.rb: Likewise.
27377 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
27378 (pkgdata_MODULES): Added vga.mod and font.mod.
27379 (vga_mod_SOURCES): New variables.
27380 (vga_mod_CFLAGS): Likewise.
27381 (font_mod_SOURCES): Likewise.
27382 (font_mod_CFLAGS): Likewise.
27384 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
27386 * include/pupa/term.h: Include pupa/err.h.
27387 (struct pupa_term): Added init and fini.
27388 Changed the argument of putchar to pupa_uint32_t.
27390 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
27391 (pupa_console_real_putchar): New prototype.
27392 (pupa_console_putchar): Removed.
27393 (pupa_console_checkkey): Exported.
27394 (pupa_console_getkey): Likewise.
27396 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
27399 * kern/term.c (pupa_term_set_current): Rewritten.
27400 (pupa_putchar): Likewise.
27401 (pupa_putcode): New function.
27403 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
27404 (pupa_console_real_putchar): ... this.
27405 (pupa_vga_set_mode): New function.
27406 (pupa_vga_get_font): Likewise.
27408 * normal/command.c: Include pupa/term.h.
27409 (terminal_command): New function.
27410 (pupa_command_init): Register the command "terminal".
27412 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
27413 (DISP_UP): Likewise.
27414 (DISP_RIGHT): Likewise.
27415 (DISP_DOWN): Likewise.
27416 (DISP_HLINE): Likewise.
27417 (DISP_VLINE): Likewise.
27418 (DISP_UL): Likewise.
27419 (DISP_UR): Likewise.
27420 (DISP_LL): Likewise.
27421 (DISP_LR): Likewise.
27423 * term/i386/pc/console.c (pupa_console_putchar): New function.
27425 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
27427 * util/resolve.c (pupa_util_resolve_dependencies): BUG
27428 FIX. Reverse the path_list.
27430 * include/pupa/normal.h: Export pupa_register_command and
27431 pupa_unregister_command.
27433 * hello/hello.c (pupa_cmd_hello): New module.
27434 * conf/i386-pc.rmk: Added hello.mod.
27436 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
27438 * kern/i386/pc/lzo1x.S: New file.
27440 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
27441 (compress_kernel): New variable.
27442 (generate_image): Heavily modified to support compressing a
27443 large part of the core image.
27445 * util/misc.c (pupa_util_read_image): Fix a file descriptor
27447 (pupa_util_load_image): New function.
27449 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
27450 (pupa_compressed_size): New variable.
27451 (codestart): Enable Gate A20 here.
27452 Decompress the compressed part of the core image.
27453 Rearrange the code to put functions and variables which are
27454 required for initialization in the non-compressed part.
27457 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
27460 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
27462 * include/pupa/i386/pc/kernel.h
27463 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
27464 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
27465 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
27466 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
27467 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
27469 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
27471 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
27472 (Utility#rule): Likewise.
27474 * configure.ac: Check if LZO is available.
27476 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
27478 * include/pupa/normal.h: New file.
27479 * include/pupa/setjmp.h: Likewise.
27480 * include/pupa/i386/setjmp.h: Likewise.
27481 * normal/cmdline.c: Likewise.
27482 * normal/command.c: Likewise.
27483 * normal/main.c: Likewise.
27484 * normal/menu.c: Likewise.
27485 * normal/i386/setjmp.S: Likewise.
27487 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
27488 (pupa_rescue_cmd_initrd): Likewise.
27490 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
27493 * kern/i386/pc/startup.S (translation_table): New variable.
27494 (translate_keycode): New function.
27495 (pupa_console_getkey): Call translate_keycode.
27497 * kern/rescue.c (attempt_normal_mode): New function.
27498 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
27499 it failed, print a message.
27501 * kern/mm.c (pupa_real_malloc): Print more information when a
27502 free magic is broken.
27503 (pupa_free): If the first free header is not free actually, set
27506 * kern/main.c (pupa_load_normal_mode): Just load the module
27508 (pupa_main): Don't print the message
27509 "Entering into rescue mode..." here.
27511 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
27513 (pupa_rescue_cmd_initrd): Likewise.
27514 (pupa_rescue_cmd_initrd): Likewise.
27516 * include/pupa/symbol.h (FUNCTION): Specify the type.
27517 (VARIABLE): Likewise.
27519 * include/pupa/err.h (pupa_err_t): Added
27520 PUPA_ERR_UNKNOWN_COMMAND.
27522 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
27523 (pupa_dl_get_prefix): Likewise.
27525 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
27526 Added _chain.mod and _linux.mod instead of chain.mod and
27528 (chain_mod_SOURCES): Renamed to ...
27529 (_chain_mod_SOURCES): ... this.
27530 (chain_mod_CFLAGS): Renamed to ...
27531 (_chain_mod_CFLAGS): ... this.
27532 (linux_mod_SOURCES): Renamed to ...
27533 (_linux_mod_SOURCES): ... this.
27534 (linux_mod_CFLAGS): Renamed to ...
27535 (_linux_mod_CFLAGS): ... this.
27536 (normal_mod_SOURCES): New variable.
27537 (normal_mod_CFLAGS): Likewise.
27538 (normal_mod_ASFLAGS): Likewise.
27540 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
27542 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
27545 * kern/dl.c (pupa_dl_ref): Refer depending modules
27547 (pupa_dl_unref): Unrefer depending modules recursively.
27548 Don't call pupa_dl_unload implicitly, because PUPA can crash if
27549 a module is unloaded before one depending on that module is
27551 (pupa_dl_unload): Unload depending modules explicitly,
27554 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
27556 * include/pupa/i386/pc/linux.h: New file.
27557 * loader/i386/pc/linux.c: Likewise.
27559 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
27561 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
27562 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
27563 of PUPA_CHAINLOADER_BOOT_SECTOR.
27565 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
27566 (pupa_linux_prot_size): New variable.
27567 (pupa_linux_tmp_addr): Likewise.
27568 (pupa_linux_real_addr): Likewise.
27569 (pupa_linux_boot_zimage): New function.
27570 (pupa_linux_boot_bzimage): Likewise.
27572 * kern/i386/pc/init.c (struct mem_region): New structure.
27573 (MAX_REGIONS): New macro.
27574 (mem_regions): New variable.
27575 (num_regions): Likewise.
27576 (pupa_os_area_addr): Likewise.
27577 (pupa_os_area_size): Likewise.
27578 (pupa_lower_mem): Likewise.
27579 (pupa_upper_mem): Likewise.
27580 (add_mem_region): New function.
27581 (compact_mem_regions): Likewise.
27582 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
27583 the size of the conventional memory and that of so-called upper
27584 memory (before the first memory hole).
27585 Instead of adding each found region to free memory, use
27586 add_mem_region and add them after removing overlaps.
27587 Also, add only 1/4 of the upper memory to free memory. The rest
27588 is used for loading OS images. Maybe this is ad hoc, but this
27589 makes it much easier to relocate OS images when booting.
27591 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
27592 (pupa_enter_rescue_mode): Don't register initrd and module.
27594 * kern/mm.c: Include pupa/dl.h.
27596 * kern/main.c: Include pupa/file.h and pupa/device.h.
27598 * kern/loader.c (pupa_loader_load_module_func): Removed.
27599 (pupa_loader_load_module): Likewise.
27601 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
27604 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
27605 (pupa_linux_tmp_addr): Likewise.
27606 (pupa_linux_real_addr): Likewise.
27607 (pupa_linux_boot_zimage): Likewise.
27608 (pupa_linux_boot_bzimage): Likewise.
27610 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
27611 (pupa_upper_mem): Likewise.
27612 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
27613 module is too dangerous.
27615 * include/pupa/loader.h (pupa_os_area_addr): Declared.
27616 (pupa_os_area_size): Likewise.
27617 (pupa_loader_set): Remove the first argument. Loader doesn't
27618 manage modules or initrd any longer.
27619 (pupa_loader_load_module): Removed.
27621 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
27622 (linux_mod_SOURCES): New variable.
27623 (linux_mod_CFLAGS): Likewise.
27625 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
27627 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
27628 the length of a blocklist correctly.
27630 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
27631 Use ioctl only if the OS file is a block device.
27632 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
27633 not very useful for normal files.
27635 * kern/main.c (pupa_set_root_dev): New function.
27636 (pupa_load_normal_mode): Likewise.
27637 (pupa_main): Call those above.
27639 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
27642 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
27644 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27646 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
27647 (setup): Configure the installed partition information and the
27650 * loader/i386/pc/chainloader.c (my_mod): New variable.
27651 (pupa_chainloader_unload): New function.
27652 (pupa_rescue_cmd_chainloader): Refer itself.
27653 (PUPA_MOD_INIT): Save its own module in MY_MOD.
27655 * kern/i386/pc/startup.S (install_partition): Removed.
27656 (version_string): Likewise.
27657 (config_file): Likewise.
27658 (pupa_install_dos_part): New variable.
27659 (pupa_install_bsd_part): Likewise.
27660 (pupa_prefix): Likewise.
27661 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
27663 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
27665 (make_install_device): New function.
27666 (pupa_machine_init): Set the dl prefix.
27668 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
27669 (buf): Renamed to ...
27670 (linebuf): ... this.
27671 (pupa_rescue_cmd_prefix): New function.
27672 (pupa_rescue_cmd_insmod): Likewise.
27673 (pupa_rescue_cmd_rmmod): Likewise.
27674 (pupa_rescue_cmd_lsmod): Likewise.
27675 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
27678 * kern/mm.c (pupa_memalign): If failed even after invalidating
27679 disk caches, unload unneeded modules and retry.
27681 * kern/misc.c (pupa_memmove): New function.
27682 (pupa_memcpy): Removed.
27683 (pupa_strcpy): New function.
27684 (pupa_itoa): Made static.
27686 * kern/dl.c (pupa_dl_iterate): New function.
27687 (pupa_dl_ref): Likewise.
27688 (pupa_dl_unref): Likewise.
27689 (pupa_dl_unload): Return if succeeded or not.
27690 (pupa_dl_unload_unneeded): New function.
27691 (pupa_dl_unload_all): Likewise.
27692 (pupa_dl_init): Renamed to ...
27693 (pupa_dl_set_prefix): ... this.
27694 (pupa_dl_get_prefix): New function.
27696 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
27697 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
27698 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
27699 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
27700 (pupa_install_dos_part): Declared.
27701 (pupa_install_bsd_part): Likewise.
27702 (pupa_prefix): Likewise.
27703 (pupa_boot_drive): Likewise.
27705 * include/pupa/types.h: Fix a typo.
27707 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
27709 (pupa_memmove): Declared.
27710 (pupa_strcpy): Likewise.
27712 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
27713 pupa_mod_init takes one argument, its own module.
27714 (pupa_dl_unload_unneeded): Declared.
27715 (pupa_dl_unload_all): Likewise.
27716 (pupa_dl_ref): Likewise.
27717 (pupa_dl_unref): Likewise.
27718 (pupa_dl_iterate): Likewise.
27719 (pupa_dl_init): Renamed to ...
27720 (pupa_dl_set_prefix): ... this.
27721 (pupa_dl_get_prefix): Declared.
27723 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
27724 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
27726 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
27727 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
27729 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
27730 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
27732 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
27734 * util/i386/pc/pupa-setup.c (setup): Define the internal
27735 function find_first_partition_start at the top level, because GCC
27736 3.0.x cannot compile internal functions in deeper scopes
27738 (find_root_device): Use lstat instead of stat.
27739 Don't follow symbolic links.
27740 Fix the path-constructing code.
27742 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
27743 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
27744 by a BLKGETSIZE ioctl first, because block devices don't fill
27745 the member st_mode of the structure stat on Linux.
27746 [__linux__] (linux_find_partition): Use a temporary buffer
27747 REAL_DEV for the working space. Copy it to DEV before returning.
27748 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
27749 buffer cache consistent.
27750 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
27751 strncmp. The previous value was merely wrong.
27752 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
27754 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
27755 FAT size is 12. The previous value was merely wrong.
27757 * kern/main.c (pupa_main): Don't split the starting message from
27760 * kern/term.c (pupa_putchar): Put CR after LF instead of before
27761 LF, because BIOS goes crazy about character attributes in this
27764 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
27766 * include/i386/pc/util/biosdisk.h: New file.
27767 * util/i386/pc/biosdisk.c: Likewise.
27768 * util/i386/pc/pupa-setup.c: Likewise.
27770 * Makefile.in (INCLUDE_DISTFILES): Added
27771 include/pupa/i386/pc/util/biosdisk.h.
27772 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
27773 directory util/i386/pc.
27774 (install-local): Added a rule for sbin_UTILITIES.
27775 (uninstall): Likewise.
27777 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
27779 * util/misc.c (xrealloc): New function.
27780 (pupa_malloc): Likewise.
27781 (pupa_free): Likewise.
27782 (pupa_realloc): Likewise.
27783 (pupa_stop): Likewise.
27784 (pupa_putchar): Likewise.
27786 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
27788 * include/pupa/util/misc.h (xrealloc): Declared.
27790 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
27792 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
27793 (PUPA_BOOT_MACHINE_BPB_END): ... this.
27795 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
27796 [PUPA_UTIL] (pupa_fat_fini): Likewise.
27798 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
27799 way should be implemented.
27800 [PUPA_UTIL] (pupa_fat_fini): Likewise.
27802 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
27803 the size of NAME for safety.
27804 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
27807 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
27808 (pupa_setup_SOURCES): Likewise.
27810 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
27812 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
27814 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
27815 bunch of pushl's from pusha, because this destroys the return
27818 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
27820 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
27821 This means that any missing prototypes could be fatal. Also, you
27822 must take care when writing assembly code. See the comments at
27823 the beginning of startup.S, for more details.
27825 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
27826 compilation mechanism.
27827 (pupa_chainloader_real_boot): Likewise.
27828 (pupa_biosdisk_rw_int13_extensions): Likewise.
27829 (pupa_biosdisk_rw_standard): Likewise.
27830 (pupa_biosdisk_check_int13_extensions): Likewise.
27831 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
27832 (pupa_biosdisk_get_diskinfo_standard): Likewise.
27833 (pupa_get_memsize): Likewise.
27834 (pupa_get_mmap_entry): Likewise.
27835 (pupa_console_putchar): Likewise.
27836 (pupa_console_setcursor): Likewise.
27837 (pupa_getrtsecs): Use pushl instead of push.
27839 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
27840 memory instead of the stack for a mmap entry, because some
27841 BIOSes may ignore the maximum size and overflow.
27843 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
27845 * genmk.rb (PModule#rule): Compile automatically generated
27846 sources with module-specific CFLAGS as well as other sources.
27848 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27850 * configure.ac: Check ld.
27851 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
27852 respectively, before checking endianness and sizes.
27854 * Makefile.in (LD): New variable.
27856 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27858 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
27860 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27862 * Changelog: New file.