]> git.proxmox.com Git - grub2.git/blame - ChangeLog
Make the `source' command slightly faster.
[grub2.git] / ChangeLog
CommitLineData
3fa06487
CW
12010-06-26 Colin Watson <cjwatson@ubuntu.com>
2
3 Make the `source' command slightly faster.
4
5 * normal/main.c (grub_normal_execute): Don't re-read list files when
6 nested.
7
e9b29642
CW
82010-06-23 Colin Watson <cjwatson@ubuntu.com>
9
10 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
11 field position and mask size to red fields from mode_info, not
12 green.
13 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
14 Remove redundant tag->common.framebuffer_type assignment.
15 Reported by: Seth Goldberg.
16
e726542f
CW
172010-06-23 Colin Watson <cjwatson@ubuntu.com>
18
19 Sync up other versions of the Linux loader with Robert Millan's
20 change of 2010-01-09, "Make loader output a bit more user-friendly".
21
22 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
23 grub_dprintf().
24 (grub_cmd_linux): Likewise.
25 (grub_cmd_initrd): Likewise.
26 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
28
d6e98a17
CW
292010-06-21 Colin Watson <cjwatson@ubuntu.com>
30
31 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
32 larger than MEMORY_MAP_SIZE.
33
14d3f08e
BC
342010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
35
36 Fix parallel build.
37
38 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
39 dependency.
40 * script/parser.y: #include grub_script.tab.h header.
41
4f9613a3
VS
422010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
43
44 Support >3GiB and <16MiB RAM in i386-qemu.
45
46 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
47 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
48 (grub_lower_mem): Removed.
49 (grub_upper_mem): Likewise.
50 (mem_size): Made static.
51 (above_4g): New variable.
52 (grub_machine_mmap_init): Detect small mem_size and above_4g.
53 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
54 support.
55
05e51879
VS
562010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
57
58 Cirrus 5446 and Bochs video cards support.
59
60 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
61 video_bochs.mod
62 (video_cirrus_mod_SOURCES): New variable.
63 (video_cirrus_mod_CFLAGS): Likewise.
64 (video_cirrus_mod_LDFLAGS): Likewise.
65 (video_bochs_mod_SOURCES): Likewise.
66 (video_bochs_mod_CFLAGS): Likewise.
67 (video_bochs_mod_LDFLAGS): Likewise.
68 * include/grub/vga.h: New file.
69 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
70 (grub_video_fb_set_page_t): New type.
71 (grub_video_fb_setup): New prototype.
72 (grub_video_fb_swap_buffers): Likewise.
73 (grub_video_fb_get_info_and_fini): Likewise.
74 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
75 (CRTC_DATA_PORT): Likewise.
76 (CRTC_CURSOR): Likewise.
77 (CRTC_CURSOR_ADDR_HIGH): Likewise.
78 (CRTC_CURSOR_ADDR_LOW): Likewise.
79 (CRTC_CURSOR_DISABLE): Likewise.
80 (update_cursor): Use grub_vga_cr_write.
81 (grub_vga_text_setcursor): Likewise.
82 * video/bochs.c: New file.
83 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
84 (palette): Likewise.
85 (palette_size): Likewise.
86 (framebuffer): New variable.
87 (grub_video_fb_init): Use 'framebuffer'.
88 (grub_video_fb_fini): Likewise.
89 (grub_video_fb_get_info): Likewise.
90 (grub_video_fb_get_palette): Likewise.
91 (grub_video_fb_set_palette): Likewise.
92 (grub_video_fb_set_viewport): Likewise.
93 (grub_video_fb_get_viewport): Likewise.
94 (grub_video_fb_map_color): Likewise.
95 (grub_video_fb_map_rgb): Likewise.
96 (grub_video_fb_map_rgba): Likewise.
97 (grub_video_fb_unmap_color): Likewise.
98 (grub_video_fb_unmap_color_int): Likewise.
99 (grub_video_fb_fill_rect): Likewise.
100 (grub_video_fb_blit_bitmap): Likewise.
101 (grub_video_fb_blit_render_target): Likewise.
102 (grub_video_fb_scroll): Likewise.
103 (grub_video_fb_create_render_target): Likewise.
104 (grub_video_fb_doublebuf_blit_init): Likewise.
105 (grub_video_fb_set_active_render_target): Handle doublebuffering.
106 (doublebuf_pageflipping_update_screen): New function.
107 (doublebuf_pageflipping_init): Likewise.
108 (grub_video_fb_setup): Likewise.
109 (grub_video_fb_swap_buffers): Likewise.
110 (grub_video_fb_get_info_and_fini): Likewise.
111 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
112 All users updated.
113 (doublebuf_pageflipping_commit): Restructured into ...
114 (doublebuf_pageflipping_set_page): ... this.
115 (doublebuf_pageflipping_update_screen): Removed.
116 (doublebuf_pageflipping_init): Likewise.
117 (double_buffering_init): Likewise.
118 (grub_video_vbe_setup): Use grub_video_fb_setup.
119 (grub_video_vbe_swap_buffers): Removed.
120 (grub_video_vbe_set_active_render_target): Likewise.
121 (grub_video_vbe_get_active_render_target): Likewise.
122 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
123 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
124 grub_video_fb_set_active_render_target and
125 grub_video_fb_get_active_render_target.
126 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
127 (SEQUENCER_DATA_PORT): Likewise.
128 (MAP_MASK_REGISTER): Likewise.
129 (CRTC_ADDR_PORT): Likewise.
130 (CRTC_DATA_PORT): Likewise.
131 (START_ADDR_HIGH_REGISTER): Likewise.
132 (START_ADDR_LOW_REGISTER): Likewise.
133 (GRAPHICS_ADDR_PORT): Likewise.
134 (GRAPHICS_DATA_PORT): Likewise.
135 (READ_MAP_REGISTER): Likewise.
136 (INPUT_STATUS1_REGISTER): Likewise.
137 (INPUT_STATUS1_VERTR_BIT): Likewise.
138 (get_map_mask): Use grub_vga_sr_read.
139 (set_map_mask): Use grub_vga_sr_write.
140 (set_read_map): Use grub_vga_gr_write.
141 (set_start_address): Use grub_vga_cr_write.
142 * video/sm712.c (framebuffer): Remove leftover fields.
143
4321c64a
CW
1442010-06-20 Colin Watson <cjwatson@ubuntu.com>
145
146 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
147 setting GRUB_VIDEO_BACKEND. Make it available as a user override
148 instead. Replace the gfxterm backend check with a check that
149 ${GRUB_PREFIX}/video.lst is non-empty.
150 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
151 again.
152 (load_video): New generated function. Call it before loading
153 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
154 * util/grub.d/10_linux.in (linux_entry): Call load_video.
155 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
156 * docs/grub.texi (Simple configuration): Document
157 GRUB_VIDEO_BACKEND.
158
1592010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
160
161 Use video functions in linux and xnu loaders.
162
163 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
164 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
165 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
166 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
167 loader/i386/pc/linux.c.
168 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
169 (find_line_len): Removed.
170 (find_framebuf): Likewise.
171 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
172 * loader/i386/efi/xnu.c: Removed.
173 * loader/i386/pc/xnu.c: Moved from here...
174 * loader/i386/xnu.c: ...here.
175
176 Enable priorities in video drivers.
177
178 * include/grub/video.h (grub_video_adapter_prio_t): New type.
179 (grub_video_adapter): New field prio.
180 (grub_video_register): Respect prio when inserting.
181 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
182 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
183 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
184 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
185 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
186 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
187 * video/sm712.c (grub_video_sm712_adapter): Likewise.
188
189 Fix SDL driver ID.
190
191 * include/grub/video.h (grub_video_driver_id_t): New value
192 GRUB_VIDEO_DRIVER_SDL.
193 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
194
7d24e434
CW
1952010-06-17 Colin Watson <cjwatson@ubuntu.com>
196
197 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
198 argument to printf.
199 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
200
c88a83f6
CW
2012010-06-17 Colin Watson <cjwatson@ubuntu.com>
202
203 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
204 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
205
094dfb69
CW
2062010-06-17 Colin Watson <cjwatson@ubuntu.com>
207
208 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
209 directly, and recommend grub-install instead.
210 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
211
2164da6b
CW
2122010-06-17 Colin Watson <cjwatson@ubuntu.com>
213
214 Fix i386-pc prefix handling with nested partitions (Debian bug
215 #585068). Note that the case where the core image is booted using
216 multiboot and relocated from its original location still requires
217 more work.
218
219 * kern/i386/pc/init.c (make_install_device): If the prefix starts
220 with "(,", fill the boot drive in between those two characters, but
221 expect that a full partition specification including partition map
222 names will follow.
223 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
224 specified, write a prefix without the drive name but including a
225 full partition specification.
226
044e2e60
CW
2272010-06-16 Colin Watson <cjwatson@ubuntu.com>
228
229 * util/grub-mkconfig.in: Ignore non-option arguments, for
230 compatibility with older versions (before 2010-06-12) which did the
231 same. In particular, this makes it easier to ship an update-grub
232 wrapper which is compatible with that used with GRUB Legacy (Debian
233 bug #586056).
234
5591324f
GS
2352010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
236
237 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
238 for manual page generation.
239
662e24d5
GS
2402010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
241
242 * po/POTFILES: Remove leftover commands/handler.c.
243
8d70754e
CW
2442010-06-14 Colin Watson <cjwatson@ubuntu.com>
245
246 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
247 left this script non-functional.
248
41160e2e
CW
2492010-06-14 Colin Watson <cjwatson@ubuntu.com>
250
251 * docs/man/grub-emu.h2m: New file.
252
b5309cc1
CW
2532010-06-13 Colin Watson <cjwatson@ubuntu.com>
254
255 * docs/grub.texi (Commands): Document reduced command set in rescue
256 mode.
257 (cpuid): New section.
258
fcb2d090
GS
2592010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
260
261 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
262 new partition naming style.
263 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
264
96e5c556
BC
2652010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
266
267 Add "-o grub.iso" like cmdline options support.
268
269 * util/grub-install.in: Improve cmdline option parsing.
270 * util/grub-mkconfig.in: Likewise.
271 * util/grub-mkrescue.in: Likewise.
272 * util/grub-reboot.in: Likewise.
273 * util/grub-set-default.in: Likewise.
274 * util/i386/efi/grub-install.in: Likewise.
275 * util/ieee1275/grub-install.in: Likewise.
276 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
277
c16be99b
CW
2782010-06-12 Colin Watson <cjwatson@ubuntu.com>
279
280 * .bzrignore: Ignore 41_custom.
281
ce08a9fb
TS
2822010-06-12 Thomas Schmitt <scdbackup@gmx.net>
283
284 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
285
7beac90c
CW
2862010-06-12 Colin Watson <cjwatson@ubuntu.com>
287
288 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
289 prototype declarations.
290
291 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
292 generating fs, partmap, and video lists.
293 * include/grub/fs.h (grub_fs_register): Omit prototype if
294 GRUB_LST_GENERATOR is defined.
295 * include/grub/partition.h (grub_partition_map_register): Likewise.
296 * include/grub/video.h (grub_video_register): Likewise.
297
1c8f0f8d
JM
2982010-06-12 Javier Martín <lordhabbit@gmail.com>
299
300 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
301
a6085973
TS
3022010-06-12 Thomas Schmitt <scdbackup@gmx.net>
303
304 * util/grub-mkrescue.in: Support --xorriso argument.
305
25c56d29
VS
3062010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
307
308 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
309 Suggested by: Thomas Schmitt.
310
e03e4b24
VS
3112010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
312
313 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
314 Suggested by: Thomas Schmitt.
315
57711df6
VS
3162010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
317
318 custom.cfg support.
319
320 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
321 * util/grub.d/41_custom.in: New file.
322
ee62c427
CW
3232010-06-12 Colin Watson <cjwatson@ubuntu.com>
324
325 * util/grub-mkrescue.in (make_image): Remove sh module, which has
326 been merged back into normal.
327
283af07a
CW
3282010-06-11 Colin Watson <cjwatson@ubuntu.com>
329
330 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
331 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
332
56a0d956
CW
3332010-06-11 Colin Watson <cjwatson@ubuntu.com>
334
335 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
336 when generating manual pages.
337 * docs/man/grub-bin2h.h2m: New file.
338 * docs/man/grub-editenv.h2m: New file.
339 * docs/man/grub-fstest.h2m: New file.
340 * docs/man/grub-install.h2m: New file.
341 * docs/man/grub-macho2img.h2m: New file.
342 * docs/man/grub-mkconfig.h2m: New file.
343 * docs/man/grub-mkdevicemap.h2m: New file.
344 * docs/man/grub-mkfont.h2m: New file.
345 * docs/man/grub-mkimage.h2m: New file.
346 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
347 * docs/man/grub-mkrelpath.h2m: New file.
348 * docs/man/grub-mkrescue.h2m: New file.
349 * docs/man/grub-ofpathname.h2m: New file.
350 * docs/man/grub-pe2elf.h2m: New file.
351 * docs/man/grub-probe.h2m: New file.
352 * docs/man/grub-reboot.h2m: New file.
353 * docs/man/grub-script-check.h2m: New file.
354 * docs/man/grub-set-default.h2m: New file.
355 * docs/man/grub-setup.h2m: New file.
356
3a37e322
VS
3572010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
358
359 Use FOR_* macros instead of *_iterate whenever possible.
360
361 * commands/handler.c: Removed.
362 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
363 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
364 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
365 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
366 (grub_probe_SOURCES): Remove kern/parser.c.
367 (util/grub-script-check.c_DEPENDENCIES): Removed.
368 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
369 and grub_script_check_init.c.
370 (grub_script_check_init.lst): Removed.
371 (grub_script_check_init.h): Likewise.
372 (grub_script_check_init.c): Likewise.
373 (pkglib_MODULES): Remove handler.mod and sh.mod.
374 (handler_mod_SOURCES): Removed.
375 (handler_mod_CFLAGS): Likewise.
376 (handler_mod_LDFLAGS): Likewise.
377 (normal_mod_SOURCES): Remove normal/handler.c.
378 Add script/main.c, script/script.c, script/execute.c,
379 script/function.c, script/lexer.c, grub_script.tab.c
380 and grub_script.yy.c.
381 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
382 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
383 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
384 (grub_setup_SOURCES): Remove kern/parser.c.
385 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
386 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
387 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
388 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
389 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
390 (grub_setup_SOURCES): Remove kern/parser.c.
391 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
392 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
393 * include/grub/command.h (grub_command_iterate): Removed.
394 (FOR_COMMANDS): New macro.
395 * include/grub/dl.h (grub_dl): New member next.
396 (grub_dl_iterate): Removed.
397 (grub_dl_head): New variable declaration.
398 (FOR_DL_MODULES): New macro.
399 * include/grub/fs.h: Include list.h.
400 (grub_fs): Make next first element.
401 (grub_fs_list): New variable declaration.
402 (grub_fs_register): Make inline.
403 (grub_fs_unregister): Likewise.
404 (grub_fs_iterate): Removed.
405 (FOR_FILESYSTEMS): New macro.
406 * include/grub/handler.h: Removed.
407 * include/grub/list.h (grub_list_hook_t): Removed.
408 (grub_list_test_t): Likewise.
409 (grub_list_pop): Likewise.
410 (grub_list_iterate): Likewise.
411 (grub_list_insert): Likewise.
412 (FOR_LIST_ELEMENTS): New macro.
413 * include/grub/parser.h (grub_parser_class): Removed.
414 (grub_parser_register): Likewise.
415 (grub_parser_unregister): Likewise.
416 (grub_parser_get_current): Likewise.
417 (grub_parser_set_current): Likewise.
418 (grub_register_rescue_parser): Likewise.
419 (grub_rescue_parse_line): New function.
420 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
421 * include/grub/script_sh.h (grub_script_function_list): New variable
422 declaration.
423 (FOR_SCRIPT_FUNCTIONS): New macro.
424 (grub_script_function_iterate): Removed.
425 (grub_normal_parse_line): New prototype.
426 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
427 (FOR_DISABLED_TERM_INPUTS): Likewise.
428 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
429 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
430 * include/grub/video.h (grub_video_adapter): Move 'next' to first
431 element.
432 (grub_video_register): Inline.
433 (grub_video_unregister): Likewise.
434 (grub_video_adapter_list): New variable declaration.
435 (grub_video_iterate): Removed.
436 (FOR_VIDEO_ADAPTERS): New macro.
437 * kern/dl.c (grub_dl_list): Removed. All users updated.
438 (grub_dl_iterate): Removed.
439 * kern/fs.c (grub_fs_list): Make global.
440 (grub_fs_register): Removed.
441 (grub_fs_unregister): Likewise.
442 (grub_fs_iterate): Likewise.
443 * kern/handler.c: Removed.
444 * kern/list.c (grub_list_pop): Removed.
445 (grub_list_iterate): Likewise.
446 (grub_list_insert): Likewise.
447 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
448 (grub_prio_list_insert): Don't use grub_list_insert.
449 * kern/main.c (grub_register_rescue_parser): Don't call
450 grub_register_rescue_parser.
451 * kern/parser.c (grub_parser_class): Removed.
452 (grub_parser_execute): Use grub_rescue_parse_line.
453 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
454 (grub_rescue_parser): Removed.
455 (grub_register_rescue_parser): Likewise.
456 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
457 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
458 (grub_auth_check_authentication): Likewise.
459 * normal/completion.c (iterate_command): Removed.
460 (grub_normal_do_completion): Use FOR_COMMANDS.
461 * normal/handler.c: Removed.
462 * normal/main.c (read_config_file): Remove parser changing.
463 (grub_normal_execute): Don't call read_handler_list.
464 (grub_normal_read_line_real): Statically allocate prompt.
465 (grub_cmdline_run): Use grub_normal_parse_line.
466 (GRUB_MOD_FINI): Don't call free_handler_list.
467 * normal/menu_entry.c (run): Likewise.
468 * script/function.c (grub_script_function_list): Make global.
469 (grub_script_function_iterate): Removed.
470 * script/main.c (grub_normal_parse_line): Make global.
471 (grub_sh_parser): Removed.
472 (GRUB_MOD_INIT): Likewise.
473 (GRUB_MOD_FINI): Likewise.
474 * tests/lib/functional_test.c (grub_functional_test): Use
475 FOR_LIST_ELEMENTS.
476 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
477 (grub_test_run): Use FOR_LIST_ELEMENTS.
478 * tests/lib/unit_test.c (main): Likewise.
479 * util/deviceiter.c (grub_util_iterate_devices): Don't use
480 grub_list_pop.
481 * util/grub-fstest.c (grub_term_input_class): Removed.
482 (grub_term_output_class): Likewise.
483 * util/grub-probe.c: Likewise.
484 * util/i386/pc/grub-setup.c: Likewise.
485 * util/sparc64/ieee1275/grub-setup.c: Likewise.
486 * util/grub-script-check.c (main): Don't call grub_init_all and
487 grub_fini_all.
488 * video/video.c (grub_video_adapter_list): Make global.
489 (grub_video_register): Removed.
490 (grub_video_unregister): Likewise.
491 (grub_video_iterate): Likewise.
492
6289c3a7
VS
4932010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
494
495 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
496 reported by Henrique Ferreiro.
497
91460247
RM
4982010-06-09 Robert Millan <rmh@gnu.org>
499
500 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
501 ones, when both are available.
502
0ea7c4f9
GS
5032010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
504
505 Make --version uniform and avoid hard-coded program name.
506
507 * util/grub-mkimage.c (main): Use `program_name' instead of
508 hard-coded string.
509 * util/i386/pc/grub-setup.c (main): Likewise.
510 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
511 * util/grub-install.in: Save the basename of $0 in $self, and use the
512 latter in informational messages. Use the same format for --version
513 as the binary programs.
514 * util/grub-mkconfig.in: Likewise.
515 * util/grub-mkrescue.in: Likewise.
516 * util/grub-reboot.in: Likewise.
517 * util/grub-set-default.in: Likewise.
518 * util/i386/efi/grub-install.in: Likewise.
519 * util/ieee1275/grub-install.in: Likewise.
520 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
521
e8a6f3b6
GS
5222010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
523
524 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
525 embedding area. Use <= instead of == when checking for non-emptiness.
526
f4d095d7
GS
5272010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
528
529 * configure.ac: Add `.' to the directories searched for unifont.
530
50e532ca
CW
5312010-06-08 Colin Watson <cjwatson@ubuntu.com>
532
533 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
534 grub_script.yy.h.
535
d39f3dec
CW
5362010-06-08 Colin Watson <cjwatson@ubuntu.com>
537
538 * docs/grub.texi (History): Expand to cover GRUB 2.
539 (Serial terminal): Refer to `terminal_input' and `terminal_output'
540 commands, not `terminal'.
541 (serial): Likewise.
542 (terminal_input): New section.
543 (terminal_output): New section.
544 (uppermem): New section (stub).
545 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
546
6ef0ddb4
CW
5472010-06-08 Colin Watson <cjwatson@ubuntu.com>
548
549 * docs/grub.texi (Security): Menu entries are unrestricted by
550 default, not restricted to superusers as I had previously thought.
551 Reword to account for this.
552
e0f4c438
CW
5532010-06-07 Colin Watson <cjwatson@ubuntu.com>
554
555 * kern/emu/misc.c (device_mapper_null_log): New function.
556 (grub_device_mapper_supported): New function.
557 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
558 prototype.
559 * kern/emu/hostdisk.c (find_partition_start): Check whether
560 device-mapper is supported before trying to use it.
561 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
562
da908200
CW
5632010-06-07 Colin Watson <cjwatson@ubuntu.com>
564
565 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
566 (File name syntax): Likewise.
567 (help): --all is no longer supported in GRUB 2. Be more precise
568 about pattern matching.
569
fb55c3ac
CW
5702010-06-07 Colin Watson <cjwatson@ubuntu.com>
571
572 * normal/completion.c (grub_normal_do_completion): When completing
573 arguments to "set" and the current word contains an equals sign,
574 skip to after the equals sign before starting completion.
575
258c2573
CW
5762010-06-07 Colin Watson <cjwatson@ubuntu.com>
577
578 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
579
ee75515e
CW
5802010-06-07 Colin Watson <cjwatson@ubuntu.com>
581
582 * docs/grub.texi (Network): New section.
583 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
584 `(nd)' as in GRUB Legacy.
585 (pxe_unload): New section.
586
a6a700aa
CW
5872010-06-07 Colin Watson <cjwatson@ubuntu.com>
588
589 * docs/grub.texi (Troubleshooting): `echo' is not usually available
590 in the rescue shell, so recommend using `set' instead. Thanks,
591 Jordan Uggla.
592
4003dd38
CW
5932010-06-07 Colin Watson <cjwatson@ubuntu.com>
594
595 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
596 (password): New section.
597 (password_pbkdf2): New section.
598 (search): New section.
599 (Security): New section.
600 (Troubleshooting): New section, currently very incomplete.
601 (Invoking grub-mkpasswd-pbkdf2): New section.
602 (Internals): New section, currently very incomplete.
603
e1cbcc40
CW
6042010-06-07 Colin Watson <cjwatson@ubuntu.com>
605
606 * util/grub.d/00_header.in: Add some more quoting (of
607 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
608 work again.
609 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
610
db8fa1ad
CW
6112010-06-07 Colin Watson <cjwatson@ubuntu.com>
612
613 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
614 to `count', fixing variable shadowing that broke the -c option.
615
6162010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
617
618 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
619 in case they contain spaces.
620
f28a9212
CW
6212010-06-04 Colin Watson <cjwatson@ubuntu.com>
622
623 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
624 "part_" to partmap module names, in line with grub-install.
625 Reported by: Jindřich Makovička (Debian bug #584426).
626
9cdfe32f
CW
6272010-06-04 Colin Watson <cjwatson@ubuntu.com>
628
629 * util/grub-mkimage.c: Make target-related error messages slightly
630 more helpful; -O talks about "format". Explicitly point to the use
631 of -O if no target is specified.
632 Reported by: Didier Raboud (Debian bug #584415).
633
795b593a
CW
6342010-06-03 Colin Watson <cjwatson@ubuntu.com>
635
636 * INSTALL: Document several build requirements for optional features
637 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
638
9d9b5833
GS
6392010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
640
641 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
642 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
643 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
644
0819fec8
CW
6452010-06-02 Colin Watson <cjwatson@ubuntu.com>
646
647 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
648 Thanks to Jordan Uggla for spotting this.
649
49396b4f
VS
6502010-06-02 Aleš Nesrsta <starous@volny.cz>
651
652 Finally make USB usable.
653
654 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
655 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
656 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
657 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
658 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
659 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
660 (GRUB_OHCI_FSMPS): Likewise.
661 (GRUB_OHCI_PERIODIC_START): Likewise.
662 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
663 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
664 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
665 (GRUB_OHCI_SET_PORT_RESET): Likewise.
666 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
667 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
668 (grub_ohci_transaction): Likewise.
669 (grub_ohci_transfer): Improve condition detection algorithms.
670 Handle toggle property. Program the transactions correctly.
671 Improve error handling. Various important fixups.
672 (grub_ohci_portstatus): Put register writes in right order.
673 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
674 (grub_uhci_transfer): Don't show "failed" message on success.
675 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
676 array.
677 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
678 determine its size.
679 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
680 before initialization is completed. Use IN direction for empty
681 transfers. Use last_trans and compute toggle.
682 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
683 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
684 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
685 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
686 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
687 (grub_usb_device): Increase toggle to 256.
688 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
689 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
690 GRUB_USBMS_SUBCLASS_SFF8070.
691 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
692 (grub_scsi_inquiry): New member page and alloc_length.
693 (grub_scsi_request_sense): New structure.
694 (grub_scsi_request_sense_data): Likewise.
695 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
696 control.
697 * disk/scsi.c (grub_scsi_request_sense): New function.
698 (grub_scsi_test_unit_ready): Likewise.
699 (grub_scsi_inquiry): Fill new fields.
700 (grub_scsi_read_capacity): Likewise.
701 (grub_scsi_read10): Add request sense at the end.
702 (grub_scsi_read12): Likewise.
703 (grub_scsi_write10): Likewise.
704 (grub_scsi_write12): Likewise.
705 (grub_scsi_open): Add Test Unit Ready.
706 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
707 Support additional subclasses. Con't clear halt yet. Activate the
708 proper config. Calculate LUNs correctly.
709 (grub_usbms_transfer): Various important fixups.
710
7112010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
712
713 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
714 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
715 (grub_ohci_fini_hw): New function.
716 (grub_ohci_restore_hw): Likewise.
717 (GRUB_MOD_INIT(ohci)): Register preboot hook.
718 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
719 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
720
7212010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
722
723 Dedicated DMA allocations.
724
725 * bus/pci.c (grub_memalign_dma32): New function
726 (grub_dma_free): Likewise.
727 (grub_dma_get_virt): Likewise.
728 (grub_dma_get_phys): Likewise.
729 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
730 (grub_ohci_pci_iter): Use dma32_alloc.
731 (grub_ohci_transfer): Likewise.
732 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
733 (grub_usb_bulk_readwrite): Likewise.
734 * include/grub/pci.h: Add declarations.
735
7362010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
737
738 CS5536 support.
739
740 * bus/cs5536.c: New file.
741 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
742 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
743 (cs5536_mod_SOURCES): New variable.
744 (cs5536_mod_CFLAGS): Likewise.
745 (cs5536_mod_LDFLAGS): Likewise.
746 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
747 machine/pci.h.
748 (kernel_img_SOURCES): Add bus/cs5536.c.
749 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
750 usb_keyboard.mod.
751 (usb_mod_SOURCES): New variable.
752 (usb_mod_CFLAGS): New variable.
753 (usb_mod_LDFLAGS): New variable.
754 (usbtest_mod_SOURCES): New variable.
755 (usbtest_mod_CFLAGS): New variable.
756 (usbtest_mod_LDFLAGS): New variable.
757 (ohci_mod_SOURCES): New variable.
758 (ohci_mod_CFLAGS): New variable.
759 (ohci_mod_LDFLAGS): New variable.
760 (usbms_mod_SOURCES): New variable.
761 (usbms_mod_CFLAGS): New variable.
762 (usbms_mod_LDFLAGS): New variable.
763 (usb_keyboard_mod_SOURCES): New variable.
764 (usb_keyboard_mod_CFLAGS): New variable.
765 (usb_keyboard_mod_LDFLAGS): New variable.
766 * include/grub/smbus.h: New file.
767 * include/grub/cs5536.h: New file.
768
0b35b2a9
CW
7692010-06-02 Colin Watson <cjwatson@ubuntu.com>
770
771 * util/grub.d/00_header.in: Add safety check to make sure that
772 ${locale_dir} exists before trying to probe it.
773
ca0afd5b
CW
7742010-06-02 Colin Watson <cjwatson@ubuntu.com>
775
776 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
777 per the GNU Coding Standards; this is now too obscure to be worth
778 documenting.
779 (QNX): Likewise.
780 (chainloader): Remove cross-reference to `SCO UnixWare'.
781
1c41aa78
CW
7822010-06-02 Colin Watson <cjwatson@ubuntu.com>
783
784 * docs/grub.texi (Chain-loading): New section.
785 (DOS/Windows): New section, borrowed from GRUB Legacy with details
786 adjusted for GRUB 2.
787 (SCO UnixWare): Likewise.
788 (QNX): Likewise.
789 (chainloader): Add reference to `Block list syntax'.
790 (drivemap): New section.
791 (parttool): New section.
792
bb8ea0f5
CW
7932010-06-02 Colin Watson <cjwatson@ubuntu.com>
794
795 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
796 the grub shell'.
797 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
798 (Installing GRUB using grub-install): Remove reference to the grub
799 shell; mention `grub-mkimage' and `grub-setup' instead.
800 (Invoking grub-install): Likewise.
801 (Interface): Add reference to `Menu entry editor'.
802 (serial): Remove `--device' option.
803
288dd6ed
CW
8042010-06-02 Colin Watson <cjwatson@ubuntu.com>
805
806 * docs/grub.texi (Configuration): New section, documenting
807 configuration file generation using grub-mkconfig. I've left a slot
808 for documenting the full shell scripting format but have not yet
809 started on writing that up.
810 (Invoking grub-mkconfig): New section.
811
34c9f0e9
CW
8122010-06-02 Colin Watson <cjwatson@ubuntu.com>
813
814 * docs/grub.texi (direntry): Remove grub-terminfo reference.
815 (GNU GRUB manual): Likewise.
816 (General commands): Update description of `terminfo' for GRUB 2.
817
9121567e
CW
8182010-06-02 Colin Watson <cjwatson@ubuntu.com>
819
820 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
821 (GRUB_MOD_INIT): Fix capitalisation.
822 * docs/grub.texi (Command-line and menu entry commands): Document
823 gettext and gptsync commands.
824
ab631611
CW
8252010-06-02 Colin Watson <cjwatson@ubuntu.com>
826
827 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
828 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
829
bde4a9ac
CW
8302010-06-01 Colin Watson <cjwatson@ubuntu.com>
831
832 Add btrfs probing support, currently only in the single-device case.
833
834 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
835 function.
836 (grub_guess_root_device): Call find_root_device_from_mountinfo
837 before looking in /dev.
838
b1d17e10
VS
8392010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
840
841 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
842 GRUB_DISK_SIZE_UNKNOWN.
843 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
844
dfbfe004
JS
8452010-05-31 Jiro SEKIBA <jir@unicus.jp>
846
847 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
848 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
849 corrupted or not synced properly.
850
c2ffc8e9
VS
8512010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
852
853 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
854 Reported by: Seth Goldberg.
855
56293166
VS
8562010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
857
858 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
859 addition of dest.
860 Reported by: Seth Goldberg.
861
7620e7de
VS
8622010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
863
864 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
865 Reported by: Seth Goldberg.
866
c837af3f
VS
8672010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
868
869 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
870 64-bit address as signed on MIPS.
871
c7c75cf4
CW
8722010-05-28 Colin Watson <cjwatson@ubuntu.com>
873
874 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
875 to the empty string.
876
fa4b8490
BC
8772010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
878
879 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
880
881 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
882 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
883 * kern/misc.c (__enable_execute_stack): Disable on
884 GRUB_MACHINE_EMU.
885
a33075b9
CW
8862010-05-28 Colin Watson <cjwatson@ubuntu.com>
887
888 Make grub-probe work with symbolic links under /dev/mapper as well
889 as with real block devices. The Linux world seems to be (at best)
890 in transition here, and GRUB shouldn't get caught in the middle.
891
892 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
893 /dev/mapper.
894
d8708134
CW
8952010-05-27 Colin Watson <cjwatson@ubuntu.com>
896
897 * util/grub-script-check.c (main): Ensure defined behaviour on empty
898 input files (in which case exit zero).
899
db2102a0
CW
9002010-05-27 Colin Watson <cjwatson@ubuntu.com>
901
902 * kern/emu/misc.c (canonicalize_file_name): realpath can still
903 return NULL for various reasons even if it has a maximum-length
904 buffer: for example, there might be a symlink loop, or the path
905 might exceed PATH_MAX. If this happens, return NULL.
906
5fdba519
RM
9072010-05-27 Robert Millan <rmh@gnu.org>
908
909 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
910 partmap module to handle cross-partmap setups.
911 Reported by Orestes Mas. Gràcies!
912
d1d368e4
CW
9132010-05-27 Colin Watson <cjwatson@ubuntu.com>
914
915 * util/grub-mkrescue.in: Initialise override_dir rather than
916 assuming that it's unset or empty in the environment.
917
95ac3c73
GS
9182010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
919
920 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
921 variable index into p_index to suppress a warning with -Wshadow.
922
7d8c0213
BC
9232010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
924
925 * INSTALL: Added flex >= 2.5.35 requirement.
926
db4d5813
VS
9272010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
928
929 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
930
f24f4300
VS
9312010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
932
933 cmostest support.
934
935 * commands/i386/cmostest.c: New file.
936 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
937 (cmostest_mod_SOURCES): New variable.
938 (cmostest_mod_CFLAGS): Likewise.
939 (cmostest_mod_LDFLAGS): Likewise.
940 * conf/i386-pc.rmk: Likewise.
941 * docs/grub.texi (Vendor power-on keys): New section.
942 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
943 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
944 and GRUB_BUTTON_CMOS_ADDRESS.
945 * util/grub.d/00_header.in: Handle powering-on by separate button.
946
ad603f61
VS
9472010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
948
949 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
950 Removed drawing_scrollbar argument. All users updated
951 Fixes #29792.
952 Reported by Jo Shields
953
3ecb080a
VS
9542010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
955
956 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
957 buffer since gfxterm handles double repaint.
958
5f2316c1
VS
9592010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
960
961 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
962 * term/gfxterm.c (real_scroll): Likewise.
963
9a25f885
VS
9642010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
965
966 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
967 before calling BIOS.
968
39fbb79a
VS
9692010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
970
971 * include/grub/i18n.h: Always enable grub_gettext.
972
228cfa97
VS
9732010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
974
975 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
976 partition naming style.
977
21717c8f
CW
9782010-05-21 Colin Watson <cjwatson@ubuntu.com>
979
980 * util/grub-mkconfig.in: Fix handling of -o so that it works when
981 not the first option.
982
c0f48e65
CW
9832010-05-20 Colin Watson <cjwatson@ubuntu.com>
984
985 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
986
96779aec
CW
9872010-05-20 Colin Watson <cjwatson@ubuntu.com>
988
989 * util/misc.c: Move inclusion of <limits.h> to ...
990 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
991
fa9d256e
GS
9922010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
993
994 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
995 Fix merge error in NetBSD code.
996 (find_partition_start) [__NetBSD__]: Likewise.
997
123b7a85
BC
9982010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
999
1000 Fix grub-mkrescue usage unit testing.
1001
1002 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
1003
74276c0d
CF
10042010-05-18 Christian Franke <franke@computer.org>
1005
1006 * util/grub.d/10_windows.in: Use path names instead of
1007 drive letters to prevent warning from Cygwin 1.7.
1008 Add drivemap command to menuentry if needed.
1009
c4f7b523
ST
10102010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
1011
1012 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
1013 gnumach and gnumach.gz.
1014
95b97950
VS
10152010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1016
1017 * include/grub/i18n.h (gettext): Inline instead of using #define.
1018 (grub_gettext): Likewise.
1019 (_): Likewise.
1020
01b8d2d7
VS
10212010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1022
1023 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
1024 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
1025 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
1026 (main): Add a slash after pkglibdirroot.
1027
654e1d1e
VS
10282010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1029
1030 * util/grub-install.in: Add missing "in" keyword.
1031
26966aeb
VS
10322010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1033
1034 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
1035 Reported by: Seth Goldberg.
1036
75006747
VS
10372010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1038
1039 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
1040
74cbf5bd
CW
10412010-05-18 Colin Watson <cjwatson@ubuntu.com>
1042
1043 * configure.ac: Check for Linux device-mapper support.
1044
1045 * util/hostdisk.c (device_is_mapped): New function.
1046 (find_partition_start): New function, partly broken out from
1047 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
1048 device-mapper support added.
1049 (linux_find_partition): Use find_partition_start.
1050 (convert_system_partition_to_system_disk): Add `st' argument.
1051 Support Linux /dev/mapper/* devices if device-mapper support is
1052 available; only DM-RAID devices are understood at present.
1053 (find_system_device): Add `st' argument. Pass it to
1054 convert_system_partition_to_system_disk.
1055 (grub_util_biosdisk_get_grub_dev): Pass stat result to
1056 find_system_device and convert_system_partition_to_system_disk. Use
1057 find_partition_start.
1058
1059 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
1060 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
1061 * util/deviceiter.c [__linux__]: Define MINOR.
1062 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
1063 * util/mkdevicemap.c (grub_putchar): New function.
1064 (grub_getkey): New function.
1065 (grub_refresh): New function.
1066 (main): Set debug=all if -v -v is used.
1067
355b51e9
CW
10682010-05-18 Colin Watson <cjwatson@ubuntu.com>
1069
1070 Fix build with non-GNU libcs.
1071
1072 * util/misc.c (canonicalize_file_name): Move to ...
1073 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
1074 grub_make_system_path_relative_to_its_root.
1075
7fb5c25f
CW
10762010-05-18 Colin Watson <cjwatson@ubuntu.com>
1077
1078 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
1079 we handle finding grub-mkimage. Default to finding grub-mkimage in
1080 ${bindir} with program_transform_name applied, and provide a
1081 --grub-mkimage option to override this.
1082
1d3293d6
VS
10832010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1084
1085 Remove grub-mkisofs.
1086
1087 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
1088 (grub_mkisofs_SOURCES): Removed.
1089 (grub_mkisofs_CFLAGS): Removed.
1090 * util/mkisofs/defaults.h: Removed.
1091 * util/mkisofs/eltorito.c: Likewise.
1092 * util/mkisofs/exclude.h: Likewise.
1093 * util/mkisofs/hash.c: Likewise.
1094 * util/mkisofs/include/: Likewise.
1095 * util/mkisofs/include/fctldefs.h: Likewise.
1096 * util/mkisofs/include/mconfig.h: Likewise.
1097 * util/mkisofs/include/prototyp.h: Likewise.
1098 * util/mkisofs/include/statdefs.h: Likewise.
1099 * util/mkisofs/iso9660.h: Likewise.
1100 * util/mkisofs/joliet.c: Likewise.
1101 * util/mkisofs/match.c: Likewise.
1102 * util/mkisofs/match.h: Likewise.
1103 * util/mkisofs/mkisofs.c: Likewise.
1104 * util/mkisofs/mkisofs.h: Likewise.
1105 * util/mkisofs/msdos_partition.h: Likewise.
1106 * util/mkisofs/multi.c: Likewise.
1107 * util/mkisofs/name.c: Likewise.
1108 * util/mkisofs/rock.c: Likewise.
1109 * util/mkisofs/tree.c: Likewise.
1110 * util/mkisofs/write.c: Likewise.
1111
5dde9afe
VS
11122010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1113
1114 Unify grub-mkimage accross platforms.
1115
1116 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
1117 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
1118 (grub_mkelfimage_SOURCES): Removed.
1119 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
1120 (util/grub-mkimage.c_DEPENDENCIES): .. this.
1121 (bin_UTILITIES): Add grub-mkimage.
1122 (grub_mkimage_SOURCES): New variable.
1123 (kernel_img_HEADERS): Remove machine/kernel.h.
1124 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
1125 (pkglib_PROGRAMS): Add kernel.img.
1126 (kernel_img_HEADERS): Add machine/kernel.h.
1127 (kernel_img_FORMAT): Removed.
1128 (bin_UTILITIES): Remove grub-mkimage.
1129 (grub_mkimage_SOURCES): Removed.
1130 (grub_mkimage_CFLAGS): Likewise.
1131 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1132 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
1133 (pkglib_PROGRAMS): Add kernel.img.
1134 (bin_UTILITIES): Remove grub-mkimage.
1135 (grub_mkimage_SOURCES): Removed.
1136 (grub_mkimage_CFLAGS): Likewise.
1137 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1138 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
1139 (pkglib_PROGRAMS): Add kernel.img.
1140 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
1141 (pkglib_PROGRAMS): Add kernel.img.
1142 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
1143 (grub_mkimage_SOURCES): Removed.
1144 (grub_mkimage_CFLAGS): Likewise.
1145 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1146 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
1147 (pkglib_PROGRAMS): Add kernel.img.
1148 (bin_UTILITIES): Remove grub-mkimage.
1149 (grub_mkimage_SOURCES): Removed.
1150 (grub_mkimage_CFLAGS): Likewise.
1151 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1152 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
1153 (grub_mkimage_SOURCES): Removed.
1154 (grub_mkimage_CFLAGS): Likewise.
1155 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1156 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
1157 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
1158 (grub_pe32_optional_header): ... this.
1159 (grub_pe64_optional_header): ... and this. All users updated.
1160 (GRUB_PE32_PE32_MAGIC): Split into ..
1161 (GRUB_PE32_PE32_MAGIC): .. this.
1162 (GRUB_PE32_PE64_MAGIC): .. and this.
1163 (GRUB_PE32_SIGNATURE_SIZE): New definition.
1164 * include/grub/elf.h (PT_GNU_STACK): New definition.
1165 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
1166 * include/grub/i386/efi/kernel.h: Likewise.
1167 * include/grub/i386/kernel.h: Likewise.
1168 * include/grub/i386/pc/kernel.h: Likewise.
1169 * include/grub/i386/qemu/boot.h: Likewise.
1170 * include/grub/mips/kernel.h: Likewise.
1171 * include/grub/mips/qemu-mips/kernel.h: Likewise.
1172 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
1173 * include/grub/powerpc/kernel.h: Likewise.
1174 * include/grub/sparc64/ieee1275/boot.h: Likewise.
1175 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
1176 * include/grub/sparc64/kernel.h: Likewise.
1177 * include/grub/x86_64/efi/kernel.h: Likewise.
1178 * include/grub/x86_64/kernel.h: Likewise.
1179 * include/grub/offsets.h: New file.
1180 * include/grub/kernel.h (grub_module_info): Split into ...
1181 (grub_module_info32): ... this.
1182 (grub_module_info64): ... and this.
1183 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
1184 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
1185 (grub_boot_blocklist): Moved from here ...
1186 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
1187 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
1188 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
1189 * include/grub/types.h (grub_target_to_host16): Removed.
1190 (grub_target_to_host32): Likewise.
1191 (grub_target_to_host64): Likewise.
1192 (grub_host_to_target16): Likewise.
1193 (grub_host_to_target32): Likewise.
1194 (grub_host_to_target64): Likewise.
1195 (grub_host_to_target_addr): Likewise.
1196
1197 Support grub-mkrescue for efi, coreboot and qemu.
1198
1199 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
1200 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
1201 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
1202 * util/grub-mkrawimage.c: Moved from here ...
1203 * util/grub-mkimage.c: ... here. All users updated.
1204 (ALIGN_ADDR): Use image_target.
1205 (TARGET_NO_FIELD): New const.
1206 (image_target_desc): New type.
1207 (image_targets): New array.
1208 (grub_target_to_host64): Use image_target.
1209 (grub_target_to_host32): Likewise.
1210 (grub_target_to_host16): Likewise.
1211 (grub_host_to_target64): Likewise.
1212 (grub_host_to_target32): Likewise.
1213 (grub_host_to_target16): Likewise.
1214 (grub_host_to_target_addr): Likewise.
1215 (generate_image): Handle multiimage.
1216 (main): Require -O parameter. All users updated.
1217 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
1218 util/efi/grub-mkimage.c
1219 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
1220 New option --rom-directory.
1221 Use xorriso.
1222 * util/i386/efi/grub-mkimage.c: Removed.
1223 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
1224 (grub_target_to_host32): Likewise.
1225 (grub_target_to_host64): Likewise.
1226 (grub_host_to_target16): Likewise.
1227 (grub_host_to_target32): Likewise.
1228 (grub_host_to_target64): Likewise.
1229 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
1230 (grub_target_to_host32): Likewise.
1231 (grub_target_to_host64): Likewise.
1232 (grub_host_to_target16): Likewise.
1233 (grub_host_to_target32): Likewise.
1234 (grub_host_to_target64): Likewise.
1235
f4fc97d0
BC
12362010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
1237
1238 Source tree is reorganized for emu build.
1239
1240 * include/grub/util/console.h: Move from here...
1241 * include/grub/emu/console.h: ...to here.
1242 * include/grub/util/getroot.h: Move from here...
1243 * include/grub/emu/getroot.h: ...to here.
1244 * include/grub/util/hostdisk.h: Move from here...
1245 * include/grub/emu/hostdisk.h: ...to here.
1246 * util/console.c: Move from here...
1247 * kern/emu/console.c: ...to here.
1248 * util/getroot.c: Move from here...
1249 * kern/emu/getroot.c: ...to here.
1250 * util/grub-emu.c: Move from here...
1251 * kern/emu/main.c: ...to here.
1252 * util/hostdisk.c: Move from here...
1253 * kern/emu/hostdisk.c: ...to here.
1254 * util/hostfs.c: Move from here...
1255 * kern/emu/hostfs.c: ...to here.
1256 * util/mm.c: Move from here...
1257 * kern/emu/mm.c: ...to here.
1258 * util/pci.c: Move from here...
1259 * bus/emu/pci.c: ...to here.
1260 * util/sdl.c: Move from here...
1261 * video/emu/sdl.c: ...to here.
1262 * util/time.c: Move from here...
1263 * kern/emu/time.c: ...to here.
1264 * util/usb.c: Move from here...
1265 * bus/usb/emu/usb.c: ...to here.
1266
1267 * include/grub/emu/misc.h: New header for grub-emu functions.
1268 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
1269
1270 * conf/any-emu.rmk: Rule updates for above renames.
1271 * conf/common.rmk: Likewise.
1272 * conf/i386-pc.rmk: Likewise.
1273 * conf/i386-qemu.rmk: Likewise.
1274 * conf/mips.rmk: Likewise.
1275 * conf/sparc64-ieee1275.rmk: Likewise.
1276 * conf/x86-efi.rmk: Likewise.
1277
1278 * disk/lvm.h: #include updates for above renames.
1279 * util/grub-mkrelpath.c: Likewise.
1280 * util/grub-probe.c: Likewise.
1281 * util/i386/pc/grub-setup.c: Likewise.
1282 * util/sparc64/ieee1275/grub-setup.c: Likewise.
1283 * kern/emu/console.c: Likewise.
1284 * kern/emu/getroot.c: Likewise.
1285 * kern/emu/hostdisk.c: Likewise.
1286 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
1287
1288 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
1289 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
1290 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
1291 * util/misc.c: Remove grub-emu functions.
1292
cced9145
VS
12932010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1294
1295 Fix gfxmenu crash.
1296 Reported by: Thorsten Grützmacher.
1297
1298 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
1299 timeout hook.
1300 (circprog_set_property): Register and unregister timeout hook.
1301 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
1302 (label_destroy): Free template. and unregister hook.
1303 (label_set_state): New function.
1304 (label_set_property): Handle templates and hooks.
1305 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
1306 timeout hook.
1307 (progress_bar_set_property): Register and unregister timeout hook.
1308 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
1309 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
1310 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
1311 (update_timeout_visit): Removed.
1312 (update_timeouts): New function.
1313 (redraw_timeouts): Likewise.
1314 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
1315 (grub_gfxmenu_clear_timeout): Likewise.
1316 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
1317 (grub_gfxmenu_timeout_notify): Likewise.
1318 (grub_gfxmenu_timeout_notifications): New external variable.
1319 (grub_gfxmenu_timeout_register): New function.
1320 (grub_gfxmenu_timeout_unregister): Likewise.
1321
c6e5caab
VS
13222010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1323
1324 Transform (broken) vga terminal into (working) vga video driver.
1325
1326 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
1327 video/i386/pc/vga.c.
1328 * include/grub/video.h (grub_video_driver_id):
1329 Add GRUB_VIDEO_DRIVER_VGA.
1330 * term/i386/pc/vga.c: Renamed to ...
1331 * video/i386/pc/vga.c: ...this
1332 (DEBUG_VGA): Removed.
1333 (CHAR_WIDTH): Likewise.
1334 (CHAR_HEIGHT): Likewise.
1335 (TEXT_WIDTH): Likewise.
1336 (TEXT_HEIGHT): Likewise.
1337 (DEFAULT_FG_COLOR): Likewise.
1338 (DEFAULT_BG_COLOR): Likewise.
1339 (colored_char): Likewise.
1340 (xpos): Likewise.
1341 (ypos): Likewise.
1342 (cursor_state): Likewise.
1343 (fg_color): Likewise.
1344 (bg_color): Likewise.
1345 (text_buf): Likewise.
1346 (page): Likewise.
1347 (font): Likewise.
1348 (framebuffer): New variable.
1349 (set_read_map): Disabled.
1350 (setup): New variable.
1351 (is_target): Likewise.
1352 (grub_vga_mod_init): Likewise.
1353 (grub_vga_mod_fini): Likewise.
1354 (check_vga_mem): Likewise.
1355 (write_char): Likewise.
1356 (write_cursor): Likewise.
1357 (scroll_up): Likewise.
1358 (grub_vga_putchar): Likewise.
1359 (grub_vga_getcharwidth): Likewise.
1360 (grub_vga_getwh): Likewise.
1361 (grub_vga_getxy): Likewise.
1362 (grub_vga_gotoxy): Likewise.
1363 (grub_vga_cls): Likewise.
1364 (grub_vga_setcolorstate): Likewise.
1365 (grub_vga_setcursor): Likewise.
1366 (grub_video_vga_init): New function.
1367 (grub_video_vga_setup): Likewise.
1368 (grub_video_vga_fini): Likewise.
1369 (update_target): Likewise.
1370 (grub_video_vga_blit_bitmap): Likewise.
1371 (grub_video_vga_blit_render_target): Likewise.
1372 (grub_video_vga_set_active_render_target): Likewise.
1373 (grub_video_vga_get_active_render_target): Likewise.
1374 (grub_video_vga_swap_buffers): Likewise.
1375 (grub_video_vga_set_palette): Likewise.
1376 (grub_video_vga_get_info_and_fini): Likewise.
1377 (grub_vga_term): Removed.
1378 (grub_video_vga_adapter): New variable.
1379 (GRUB_MOD_INIT): Register a video driver instead of terminal.
1380 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
1381
2bf61a98
VS
13822010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1383
1384 * video/readers/jpeg.c: Indented.
1385
09ddcd11
VS
13862010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1387
1388 Various jpeg cleanups.
1389
1390 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
1391 (grub_jpeg_decode_quan_table): Use sizeof.
1392 (grub_jpeg_decode_du): Use ARRAY_SIZE.
1393
e5507505
PH
13942010-05-05 Peter Hurley <No e-mail available> (tiny change)
1395
1396 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
1397 tables. Ignore non-last ac bit.
1398 (grub_jpeg_decode_quan_table): Likewise.
1399
7e720a9b
VS
14002010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1401
1402 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1403 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
1404 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1405 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
1406 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
1407 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
1408
a7fc080b
VS
14092010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1410
1411 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
1412 error.
1413
2bf6012d
VS
14142010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1415
1416 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
1417
265d68cd
VS
14182010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1419
1420 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
1421 condition.
1422
14232010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
1424
1425 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
1426 part.
1427
265d68cd 14282010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
1429
1430 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
1431 pointers.
1432
265d68cd 14332010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
1434
1435 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
1436
d1b61374
CF
14372010-05-01 Christian Franke <franke@computer.org>
1438
1439 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
1440 Remove broken Cygwin path conversion.
1441 * util/misc.c: [__CYGWIN__] Add include and define.
1442 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
1443 for Cygwin 1.7.
1444 (make_system_path_relative_to_its_root): Simplify loop, replace early
1445 return by break.
1446 [__CYGWIN__] Add conversion to win32 path.
1447 Include "/" case in trailing slash removal.
1448
3558c6e9
VS
14492010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1450
1451 * kern/main.c (grub_load_config): Fix copy-pasted comment.
1452 Reported by: Seth Goldberg
1453
f5f3ff93
VS
14542010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1455
1456 * commands/help.c (grub_cmd_help): Fix a typo.
1457 Reported by: Seth Goldberg
1458
d8b5cd40
VS
14592010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1460
1461 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
1462 name and add N_.
1463 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
1464 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
1465 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
1466 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
1467 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
1468 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
1469 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
1470 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
1471 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
1472 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
1473 * normal/context.c (GRUB_MOD_INIT): Likewise.
1474 * normal/main.c (GRUB_MOD_INIT): Likewise.
1475 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
1476 * term/serial.c (GRUB_MOD_INIT): Likewise.
1477 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
1478
88c14915
VS
14792010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1480
1481 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
1482 extra == 0.
1483
165134bc
VS
14842010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1485
1486 * commands/iorw.c: New file.
1487 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
1488 (iorw_mod_SOURCES): New variable.
1489 (iorw_mod_CFLAGS): Likewise.
1490 (iorw_mod_LDFLAGS): Likewise.
1491
c5ac9b32
VS
14922010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1493
1494 Hotkey support
1495
1496 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
1497 * normal/main.c (hotkey_aliases): New variable.
1498 (grub_normal_add_menu_entry): Parse "--hotkey".
1499 * normal/menu_text.c (run_menu): Handle hotkeys.
1500
ce60689c
VS
15012010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1502
1503 * kern/i386/coreboot/init.c (grub_machine_init): Call
1504 grub_machine_mmap_init on qemu.
1505
0359d006
VS
15062010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1507
1508 * boot/i386/qemu/boot.S: Add a missing .code16.
1509
7819a456
VS
15102010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1511
1512 Use LBIO on coreboot.
1513
1514 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
1515 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
1516 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
1517 New declaration.
1518 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
1519 grub_machine_mmap_init on coreboot.
1520 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
1521 GRUB_LINUXBIOS_MEMBER_LINK.
1522 (grub_machine_mmap_iterate): Fix declaration.
1523 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
1524
7210dca9
VS
15252010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1526
1527 Split coreboot and multiboot ports.
1528
1529 * conf/i386-multiboot.rmk: New file.
1530 * configure.ac: Add multiboot port.
1531 * include/grub/i386/multiboot/boot.h: New file.
1532 * include/grub/i386/multiboot/console.h: Likewise.
1533 * include/grub/i386/multiboot/init.h: Likewise.
1534 * include/grub/i386/multiboot/kernel.h: Likewise.
1535 * include/grub/i386/multiboot/loader.h: Likewise.
1536 * include/grub/i386/multiboot/memory.h: Likewise.
1537 * include/grub/i386/multiboot/serial.h: Likewise.
1538 * include/grub/i386/multiboot/time.h: Likewise.
1539 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
1540 * loader/multiboot.c: Likewise.
1541 * loader/multiboot_mbi2.c: Likewise.
1542 * util/grub-mkrescue.in: Generate multiboot rescue.
1543
6f8aaf68
VS
15442010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1545
3080f7a7
VS
1546 * kern/parser.c (grub_parser_execute): Cope with read-only config.
1547
15482010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1549
1550 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
1551
1552 * commands/terminal.c (abstract_terminal): New struct.
1553 (handle_command): New function. Based on grub_cmd_terminal_input.
1554 (grub_cmd_terminal_input): Use handle_command.
1555 (grub_cmd_terminal_output): Use handle_command.
1556
a8ebb841
BC
15572010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
1558
1559 Fix comment handling.
1560
1561 * tests/grub_script_comments.in: New testcase.
1562 * conf/tests.rmk: Rules for new testcase.
1563 * script/yylex.l: Updated flex rules.
1564
bb06ba08
ST
15652010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
1566
1567 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
1568 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
1569 if argc is 1.
bb06ba08 1570
cc9d2425
VS
15712010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1572
1573 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
1574 autogen issues.
1575
460d8402
CF
15762010-04-26 Christian Franke <franke@computer.org>
1577
1578 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
1579 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
1580 (grub_get_prefix): Remove function.
1581 * util/grub-emu.c (main): Replace grub_get_prefix () call by
1582 make_system_path_relative_to_its_root ().
1583 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
1584
553c01f9
CF
15852010-04-24 Christian Franke <franke@computer.org>
1586
1587 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
1588 (kernel_img_LDFLAGS): Remove -static-libgcc.
1589
2aec1692
CF
15902010-04-24 Christian Franke <franke@computer.org>
1591
1592 * configure.ac: Do not CHECK_BSS_START_SYMBOL
1593 and CHECK_END_SYMBOL if grub-emu is built.
1594 Unset TARGET_OBJ2ELF if grub-emu is built
1595 without module support.
1596
f67dc308
JS
15972010-04-24 Jiro SEKIBA <jir@unicus.jp>
1598
1599 Nilfs2 support.
1600
1601 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
1602 (grub_fstest_SOURCES): Likewise.
1603 (pkglib_MODULES): Add nilfs2.mod.
1604 (nilfs2_mod_SOURCES): New variable.
1605 (nilfs2_mod_CFLAGS): Likewise.
1606 (nilfs2_mod_LDFLAGS): Likewise.
1607 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1608 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1609 * fs/nilfs2.c: New file.
1610
4ba8d354
VS
16112010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
1612
1613 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
1614 is not supported.
1615
0d2c20c6
GS
16162010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
1617
1618 Add grub-mkconfig support for NetBSD.
1619
1620 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
1621 * util/grub-mkconfig.in: export new NetBSD specific variables.
1622 * po/POTFILES-shell: added 10_netbsd.in.
1623 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
1624
bc4a2d83
BC
16252010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
1626
1627 Fix emu build with grub-emu-pci and grub-emu-modules.
1628
1629 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
1630 functions.
1631 * include/grub/libpciaccess.h: New file.
1632 * conf/any-emu.rmk: Update kernel headers for emu build.
1633
f48c87aa
VS
16342010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1635
1636 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
1637
18959385
VS
16382010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1639
1640 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
1641
0037de3f
VS
16422010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1643
1644 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
1645 Retrieve chosen/bootpath if bootpath isn't hardcoded.
1646 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
1647 util/ieee1275/ofpath.c.
1648 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
1649 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
1650 * include/grub/sparc64/ieee1275/boot.h
1651 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
1652 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
1653 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
1654 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
1655 const char *.
1656 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
1657 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
1658 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
1659 install.
1660
38e55e90
GS
16612010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
1662
1663 * util/grub-mkconfig.in: Corrected two == equality tests.
1664 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
1665 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
1666 expect a number appended to it.
1667 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
1668 expects a number appended to it.
1669
a9e6ff28
VS
16702010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1671
1672 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
1673
0b830b8f
VS
16742010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1675
1676 * util/hostdisk.c (make_device_name): Change to new partition naming.
1677
0973daeb
VS
16782010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1679
1680 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
1681
460d8402 16822010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
1683
1684 * Makefile.in: Add missing localedir setting.
1685
0b456309
CW
16862010-04-14 Colin Watson <cjwatson@ubuntu.com>
1687
1688 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
1689 mistake in r2156. Noticed by Anthony Fok.
1690
1691 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
1692 @localedir@.
1693 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
1694
08f46d62
BC
16952010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
1696
1697 Fix a spurious, uninitialized variable warning.
1698
1699 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
1700 Initialize variable, shdr.
1701 (grub_freebsd_load_elfmodule): Likewise.
1702 (grub_freebsd_load_elf_meta): Likewise.
1703
8c4a72d4
BC
17042010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
1705
1706 Fix for escaped dollar in double quoted strings.
1707
1708 * script/yylex.l: Updated flex rules.
1709 * conf/tests.rmk: Rule for new testcase.
1710 * tests/grub_script_dollar.in: New testcase.
1711
ce44826e
CPE
17122010-04-13 Carles Pina i Estany <carles@pina.cat>
17132010-04-13 Colin Watson <cjwatson@ubuntu.com>
1714
1715 Enclose all translated strings in grub.cfg in single quotes, and
1716 escape them appropriately (Ubuntu bug #552921).
1717
1718 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
1719 * util/grub.d/10_hurd.in: Use it.
1720 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
1721 * util/grub.d/10_linux.in (linux_entry): Likewise.
1722
4b0cd8f8
VS
17232010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1724
1725 Fix cygwin compilation.
1726
1727 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
1728 * include/grub/misc.h (__register_frame_info)
1729 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
1730 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
1731 * kern/misc.c (__register_frame_info)
1732 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
1733 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
1734
01fcf061
VS
17352010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1736
1737 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
1738
5d04b11e
VS
17392010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1740
1741 Unify libgcc processing.
1742
1743 * Makefile.in (kernel_img_LDFLAGS): New variable.
1744 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
1745 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
1746 overwriting.
1747 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
1748 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
1749 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
1750 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
1751 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
1752 overwriting. Remove -lgcc and -static-libgcc
1753 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
1754 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
1755 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
1756 (kernel_img_LDFLAGS): Append instead of overwriting.
1757 Remove -lgcc and -static-libgcc
1758 * conf/sparc64-ieee1275.rmk: Likewise.
1759 * include/grub/powerpc/libgcc.h: Move to ...
1760 * include/grub/libgcc.h: .. this.
1761 * include/grub/libgcc.h: Don't export most of the function on x86.
1762 (__bswapsi2): New export.
1763 (__bswapdi2): Likewise.
1764 * include/grub/mips/libgcc.h: Removed.
1765 * include/grub/sparc64/libgcc.h: Likewise.
1766
b7f3ac29
VS
17672010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1768
1769 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
1770 disk_info_msg (conflicts with gettexting into languages with cases).
1771
2c7031b1
GS
17722010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
1773
1774 Add grub-probe support for NetBSD.
1775
1776 * util/getroot.c (find_root_device): Convert block device to
1777 character device on NetBSD.
1778 * util/probe.c (probe): Require character device on NetBSD.
1779 * util/hostdisk.c: NetBSD specific headers.
1780 (configure_device_driver): new function to tune device driver
1781 parameters (currently only for NetBSD floppy driver).
1782 (grub_util_biosdisk_open): NetBSD specific code (get disk size
1783 via disklabel ioctl).
1784 (open_device): call configure_device_driver on NetBSD.
1785 (convert_system_partition_to_system_disk): NetBSD specific code.
1786 (device_is_wholedisk): Likewise.
1787 (grub_util_biosdisk_get_grub_dev): Likewise.
1788 (make_device_name): Fixed a typo in bsd_part_str.
1789 * configure.ac: check for opendisk() and getrawpartition() on
1790 NetBSD and set LIBUTIL.
1791 * Makefile.in: add LIBUTIL to LIBS.
1792
f516290c
BC
17932010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
1794
1795 Documentation fix.
1796
1797 * util/grub-script-check.c: Better help message.
1798
d8dcc0df
BC
17992010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
1800
1801 Fix FreeBSD build.
1802
1803 * configure.ac: Flex version check.
1804 * conf/common.rmk: Add -Wno-error to sh.mod.
1805 * script/yylex.l: Remove all #pragma.
1806
6734334a
VS
18072010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1808
1809 * include/grub/util/misc.h (canonicalise_file_name): Add missing
1810 prototype.
1811 Reported by: Seth Goldberg.
1812
daea6abd
VS
18132010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1814
1815 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
1816 Rename "module" to "module2".
1817 Reported by: Seth Goldberg.
1818
f2fd9d2b
VS
18192010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1820
1821 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
1822 EXPORT_FUNC.
1823 Reported by: Seth Goldberg.
1824
be124579
VS
18252010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1826
1827 * lib/posix_wrap/locale.h: Add missing file.
1828 Reported by: Seth Goldberg.
1829
ef5da797
VS
18302010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1831
1832 grub-emu module load support.
1833
1834 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
1835 NO_DYNAMIC_MODULES switched to this.
1836 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
1837 (CFLAGS): Likewise.
1838 * conf/any-emu.rmk: Generate symlist.
1839 (kernel_img_HEADERS): Add util/datetime.h.
1840 (kernel_img_HEADERS) [sdl]: Add sdl.h.
1841 (kernel_img_HEADERS) [libusb]: Add libusb.h.
1842 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
1843 kern/$(target_cpu)/cache.S.
1844 * configure.ac (grub-emu-modules): New option.
1845 * genmk.rb: Handle multiple source lists.
1846 * include/grub/sdl.h: New file.
1847 * include/grub/libusb.h: Likewise.
1848 * util/grub-emu.c (main): Hanle (host) root.
1849 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
1850 GRUB_ERR_UNKNOWN_DEVICE.
1851 * util/misc.c: Move mm functions to ...
1852 * util/mm.c: ... here. All users updated.
1853
47822096
VS
18542010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1855
1856 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
1857 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
1858 missing files.
1859 (maintainer-clean): Remove libgcrypt-grub.
1860
5d7e7445
VS
18612010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1862
1863 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
1864
25f4e252
EC
18652010-04-09 EFI Coder <eficoder@hotmail.com>
1866
1867 * normal/menu_text.c (print_message): Clean up the message and show
1868 the Fn information when on EFI
1869 * term/efi/console.c (grub_console_checkkey): Add F4 support.
1870
027de555
VS
18712010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1872
1873 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
1874 All users updated.
1875 * normal/crypto.c (read_crypto_list): Likewise.
1876 * normal/dyncmd.c (read_command_list): Likewise.
1877 * normal/term.c (read_terminal_list): Likewise.
1878 * normal/main.c (read_lists): Use explicit prefix.
1879 (read_lists_hook): Use read_lists.
1880 (grub_normal_execute): Likewise.
1881
47779711
VS
18822010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1883
1884 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
1885 Reported by: Thomas Schmitt.
1886 Add -no-emul-boot to grub-mkisofs parameters.
1887
1118c32e
VS
18882010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1889
1890 * font/font.c: Indented.
1891
7d652447
BC
18922010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
1893
1894 Elif support to GRUB script (by Deepak Vankadaru).
1895
1896 * tests/grub_script_if.in: New testcase.
1897 * conf/tests.rmk: Rule for new testcase.
1898 * script/parser.y: Grammar rules for elif.
1899
34bb22df
BC
19002010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
1901
1902 While and until loops support to GRUB script.
1903
1904 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
1905 (grub_script_create_cmdwhile): New function prototype.
1906 (grub_script_execute_cmdwhile): New function prototype.
1907 * script/execute.c (grub_script_execute_cmdwhile): New function.
1908 * script/parser.y (command): New commands.
1909 (whilecmd): New grammar rule.
1910 (untilcmd): New grammar rule.
1911 * script/script.c (grub_script_create_cmdwhile): New function.
1912 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
1913 function.
1914
1915 * tests/grub_script_while1.in: New testcase.
1916 * conf/tests.rmk: Rule for new testcase.
1917
e215d8e0
VS
19182010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1919
1920 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
1921 as *.jpg.
1922
d7c43ba1
MV
19232010-04-09 Mario Vazquez <mariovazq@gmail.com>
1924
1925 GRUB_BACKGROUND support.
1926
1927 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
1928 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
1929
d64795c0
VS
19302010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1931
1932 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 1933 Idea by: Mario Vazquez
d64795c0
VS
1934
1935 * util/grub.d/00_header.in: Load pf2 and image modules.
1936
f267f83a
VS
19372010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1938
1939 grub-mkconfig multiple terminal support.
1940
1941 * util/grub-mkconfig.in: Handle multiple terminals correctly.
1942 * util/grub.d/00_header.in: Likewise.
1943
b7841ceb
VS
19442010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1945
1946 * Makefile.in: Specify files explicitly instead of using $< and $@ since
1947 we use cd $(srcdir).
1948
df60998c
CW
19492010-04-08 Colin Watson <cjwatson@ubuntu.com>
1950
1951 * util/grub.d/10_linux.in: Only use the first word of
1952 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
1953 spaces in GRUB_DISTRIBUTOR.
1954 * util/grub.d/10_kfreebsd.in: Likewise.
1955 * util/grub.d/10_hurd.in: Likewise.
1956
fa09c82e
BC
19572010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
1958
14e18ae3 1959 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
1960
1961 * tests/util/grub-shell.in: Remove -serial stdio option.
1962
daf892b3
BC
19632010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1964
1965 POSIX header file wrappers.
1966
1967 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
1968 equivalents.
1969 * lib/posix_wrap/ctype.h: Likewise.
1970 * lib/posix_wrap/errno.h: Likewise.
1971 * lib/posix_wrap/langinfo.h: Likewise.
1972 * lib/posix_wrap/limits.h: Likewise.
1973 * lib/posix_wrap/localcharset.h: Likewise.
1974 * lib/posix_wrap/stdint.h: Likewise.
1975 * lib/posix_wrap/stdio.h: Likewise.
1976 * lib/posix_wrap/stdlib.h: Likewise.
1977 * lib/posix_wrap/string.h: Likewise.
1978 * lib/posix_wrap/sys/types.h: Likewise.
1979 * lib/posix_wrap/unistd.h: Likewise.
1980 * lib/posix_wrap/wchar.h: Likewise.
1981 * lib/posix_wrap/wctype.h: Likewise.
1982 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
1983 (grub_script.yy.h): Likewise.
1984 * script/yylex.l: Remove POSIX emulation #defines.
1985 * Makefile.in (POSIX_CFLAGS): New variable.
1986 (GNULIB_UTIL_CFLAGS): Likewise.
1987
1988 Regexp support.
1989
1990 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
1991 (regexp_mod_SOURCES): New variable.
1992 (regexp_mod_CFLAGS): Likewise.
1993 (regexp_mod_LDFLAGS): Likewise.
1994 * commands/regexp.c: New file.
1995 * gnulib/regcomp.c: New file. Imported from gnulib.
1996 * gnulib/regex.c: Likewise.
1997 * gnulib/regex_internal.c: Likewise.
1998 * gnulib/regex_internal.h: Likewise.
1999 * gnulib/regexec.c: Likewise.
2000 * gnulib/regex.h: Likewise.
2001
974ac4f7
VS
20022010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2003
2004 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
2005 unsupported video mode types.
2006
2622c3ff
VS
20072010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2008
2009 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
2010
064cb524
VS
20112010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2012
2013 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
2014 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
2015
a8c3b552
VS
20162010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2017
2018 Remove unused grub_vga_get_font.
2019
2020 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
2021 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
2022
187bbe3d
GS
20232010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2024
2025 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
2026 * include/grub/misc.h: Likewise.
2027
b9396631
GS
20282010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2029
2030 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
2031 for which failure is fatal.
2032
50479feb
GS
20332010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2034
2035 * util/grub-install.in: Use mkdir -p to create grub directory.
2036 * util/i386/efi/grub-install.in: Likewise.
2037 * util/ieee1275/grub-install.in: Likewise.
2038
b1654fdf
GS
20392010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2040
2041 * Makefile.in (LEX): new variable.
2042
bd5a6415
GS
20432010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2044
2045 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
2046 `=' and added double quotes on operands of this equality test.
2047
3db3a82b
VS
20482010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2049
2050 * Makefile.in (uninstall): Remove a leftover debug echo.
2051 Reported by: Grégoire Sutre
2052
38023412
VS
20532010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2054
2055 MIPS multiboot2 support.
2056
2057 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
2058 (multiboot2_mod_SOURCES): New variable.
2059 (multiboot2_mod_CFLAGS): Likewise.
2060 (multiboot2_mod_LDFLAGS): Likewise.
2061 (multiboot2_mod_ASFLAGS): Likewise.
2062 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
2063 definition.
2064 (MULTIBOOT_ENTRY_REGISTER): Likewise.
2065 (MULTIBOOT_MBI_REGISTER): Likewise.
2066 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
2067 (MULTIBOOT_ELF32_MACHINE): Likewise.
2068 (MULTIBOOT_ELF64_MACHINE): Likewise.
2069 * include/grub/mips/multiboot.h: New file.
2070 * include/grub/video.h (grub_video_driver_id): New type
2071 GRUB_VIDEO_DRIVER_SM712.
2072 (grub_video_get_info_and_fini): Export.
2073 (grub_video_get_palette): Likewise.
2074 (grub_video_get_driver_id): Likewise.
2075 * include/multiboot2.h: Resynced with spec.
2076 * loader/i386/multiboot.c: Moved from here ...
2077 * loader/multiboot.c: ... here. All users updated.
2078 (grub_multiboot_boot): Use platform-specific macros.
2079 * loader/i386/multiboot_elfxx.c: Moved from here ...
2080 * loader/multiboot_elfxx.c: ... here. All users updated.
2081 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
2082 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
2083 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
2084
47674667
VS
20852010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2086
2087 Import gnulib argp module.
2088
2089 * gnulib/argp-ba.c: New file.
2090 * gnulib/argp-eexst.c: Likewise.
2091 * gnulib/argp-fmtstream.c: Likewise.
2092 * gnulib/argp-fmtstream.h: Likewise.
2093 * gnulib/argp-fs-xinl.c: Likewise.
2094 * gnulib/argp-help.c: Likewise.
2095 * gnulib/argp-namefrob.h: Likewise.
2096 * gnulib/argp-parse.c: Likewise.
2097 * gnulib/argp-pin.c: Likewise.
2098 * gnulib/argp-pv.c: Likewise.
2099 * gnulib/argp-pvh.c: Likewise.
2100 * gnulib/argp-version-etc.c: Likewise.
2101 * gnulib/argp-version-etc.h: Likewise.
2102 * gnulib/argp-xinl.c: Likewise.
2103 * gnulib/argp.h: Likewise.
2104
495442ed
VS
21052010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2106
2107 * kern/device.c (grub_device_iterate): Clear errors after failed
2108 opening device.
2109
f9fd65df
VS
21102010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2111
2112 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
2113 returned by firmware.
2114
af09641e
VS
21152010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
2116
2117 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
2118 compilation on coreboot and qemu
2119
016883a5
VS
21202010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2121
2122 * include/multiboot2.h: Resync with spec.
2123
f97e1f7d
VS
21242010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2125
2126 Multiboot2 tag support
2127
2128 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
2129 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
2130 Remove loader/multiboot_loader.c.
2131 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
2132 (grub_multiboot2_real_boot): Likewise.
2133 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
2134 (grub_get_multiboot_mmap_count): New proto.
2135 (grub_fill_multiboot_mmap): Likewise.
2136 (grub_multiboot_set_video_mode): Likewise.
2137 (grub_multiboot_set_console): Likewise.
2138 (grub_multiboot_load): Likewise.
2139 (grub_multiboot_load_elf): Likewise.
2140 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
2141 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
2142 * include/multiboot.h: Resynced with specification.
2143 * include/multiboot2.h: Resynced with specification.
2144 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
2145 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
2146 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
2147 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
2148 users updated.
2149 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
2150 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
2151 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
2152 Removed.
2153 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
2154 Moved from here...
2155 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
2156 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
2157 Moved from here...
2158 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
2159 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
2160 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
2161 All users updated.
2162 * loader/i386/multiboot_mbi2.c: New file.
2163
3506b90b
VS
21642010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2165
2166 Resync with gnulib.
2167
2168 * Makefile.in (GNULIB_CFLAGS): New variable.
2169 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
2170 (grub_script_check_CFLAGS): New variable.
2171 * gnulib/alloca.h: Resync with gnulib.
2172 * gnulib/error.c: Likewise.
2173 * gnulib/error.h: Likewise.
2174 * gnulib/fnmatch.c: Likewise.
2175 * gnulib/fnmatch_loop.c: Likewise.
2176 * gnulib/getdelim.c: Likewise.
2177 * gnulib/getline.c: Likewise.
2178 * gnulib/getopt.c: Likewise.
2179 * gnulib/getopt1.c: Likewise.
2180 * gnulib/getopt_int.h: Likewise.
2181 * gnulib/gettext.h: Likewise.
2182 * gnulib/progname.c: Likewise.
2183 * gnulib/progname.h: Likewise.
2184
394a3120
GS
21852010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
2186
2187 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
2188 which is the case with --disabled-nls.
2189
2190 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
2191 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
2192 * util/misc.c: Likewise.
2193 * util/mkisofs/mkisofs.c: Likewise.
2194 * util/mkisofs/mkisofs.h: Likewise.
2195
969d1c78
VS
21962010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2197
2198 Simplify Apple CC support.
2199
2200 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
2201 Add 0 byte at the end not to have a symbol with empty target.
2202 * mmap/i386/pc/mmap_helper.S: Likewise.
2203 * genmk.rb: Ignore errors 2030 and 2050.
2204 * kern/i386/pc/startup.S: Use LOCAL when possible.
2205
8d2977bb
BC
22062010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
2207
2208 Testcase and the fix for final semicolon on cmdline.
2209
2210 * tests/grub_script_final_semicolon.in: New testcase.
2211 * conf/tests.rmk: Rules for the new testcase.
2212 * script/parser.y: Grammar fix.
2213
a7bd6915
BC
22142010-03-26 BVK Chaitanya <bvk@localhost>
2215
2216 Blank lines testcase for GRUB script.
2217
2218 * tests/grub_script_blanklines.in: New testcase.
2219 * conf/tests.rmk: Rules for the new testcase.
2220
e4ff6628
VS
22212010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2222
2223 Don't use __FILE__.
2224
2225 * genmk.rb: Add -DGRUB_FILE to all C targets.
2226 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
2227 * include/grub/list.h: Likewise.
2228 * include/grub/misc.h: Likewise.
2229 * include/grub/mm.h: Likewise.
2230 * include/grub/test.h: Likewise.
2231 * kern/mm.c: Likewise.
2232 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
2233
6a5cf6b6
VS
22342010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2235
2236 Sunpc partitions support.
2237
2238 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
2239 (grub_fstest_SOURCES): Likewise.
2240 (pkglib_MODULES): Add part_sunpc.mod.
2241 (part_sunpc_mod_SOURCES): New variable.
2242 (part_sunpc_mod_CFLAGS): Likewise.
2243 (part_sunpc_mod_LDFLAGS): Likewise.
2244 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
2245 * partmap/sunpc.c: New file.
2246
746d9045
BC
22472010-03-26 BVK Chaitanya <bvk@localhost>
2248
2249 For loop support to GRUB script.
2250
2251 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
2252 (grub_script_create_cmdfor): New function prototype.
2253 (grub_script_execute_cmdfor): New function prototype.
2254 * script/execute.c (grub_script_execute_cmdfor): New function.
2255 * script/parser.y (command): New for command.
2256 (forcmd): New grammar rule.
2257 * script/script.c (grub_script_create_cmdfor): New function.
2258 * util/grub-script-check.c (grub_script_execute_cmdfor): New
2259 function.
2260 * tests/grub_script_for1.in: New testcase.
2261 * conf/tests.rmk: Rules for new testcase.
2262
18486b18
VS
22632010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2264
2265 Nested partitions
2266
2267 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
2268 'partition' is NULL, grub_partition_get_start already does that.
2269 * commands/loadenv.c (check_blocklists): Likewise.
2270 (write_blocklists): Likewise.
2271 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
2272 (grub_fstest_SOURCES): Likewise.
2273 (pkglib_MODULES): Add part_bsd.mod.
2274 (part_bsd_mod_SOURCES): New variable.
2275 (part_bsd_mod_CFLAGS): Likewise.
2276 (part_bsd_mod_LDFLAGS): Likewise.
2277 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
2278 (grub_emu_SOURCES): Likewise.
2279 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2280 * include/grub/bsdlabel.h: New file.
2281 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
2282 'get_name'.
2283 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
2284 (grub_partition_map_list): New variable.
2285 (grub_partition_map_register): Inline.
2286 (grub_partition_map_unregister): Likewise.
2287 (FOR_PARTITION_MAPS): New macro.
2288 (grub_partition_map_iterate): Removed.
2289 (grub_partition_get_start): Handle nested partitions.
2290 * include/grub/msdos_partition.h: Remove bsd-related entries.
2291 (grub_pc_partition): Remove.
2292 * kern/disk.c (grub_disk_close): Free partition data.
2293 (grub_disk_adjust_range): Handle nested partitions.
2294 * kern/partition.c (grub_partition_map_probe): New function.
2295 (grub_partition_probe): Parse name to number, handle subpartitions.
2296 (get_partmap): New function.
2297 (grub_partition_iterate): Handle subpartitions.
2298 (grub_partition_get_name): Likewise.
2299 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
2300 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
2301 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
2302 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
2303 Set 'number'.
2304 (acorn_partition_map_probe): Remove.
2305 (acorn_partition_map_get_name): Likewise.
2306 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
2307 Set 'number'.
2308 Set 'index' to 0 since there can be only one partition entry per sector.
2309 (amiga_partition_map_probe): Remove.
2310 (amiga_partition_map_get_name): Likewise.
2311 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
2312 Set 'number'.
2313 Set 'offset' and 'index' to real positions of partitions.
2314 (apple_partition_map_probe): Remove.
2315 (apple_partition_map_get_name): Likewise.
2316 * partmap/bsdlabel.c: New file.
2317 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
2318 Set 'number'.
2319 Allocate 'data' so it can be correctly freed.
2320 Set 'index' to offset inside sector.
2321 (gpt_partition_map_probe): Remove.
2322 (gpt_partition_map_get_name): Likewise.
2323 * partmap/msdos.c (grub_partition_parse): Remove.
2324 (pc_partition_map_iterate): Don't force raw access.
2325 Set 'number'.
2326 Make 'ext_offset' a local variable.
2327 (pc_partition_map_probe): Remove.
2328 (pc_partition_map_get_name): Remove.
2329 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
2330 Set 'number'.
2331 (sun_partition_map_probe): Remove.
2332 (sun_partition_map_get_name): Likewise.
2333 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
2334 (grub_pcpart_type): Likewise.
2335 * util/hostdisk.c (open_device): Handle new numbering scheme.
2336 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
2337 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
2338 * util/grub-probe.c (probe_partmap): Handle nested paritions.
2339 * util/grub-install.in: Insert all subpartition modules.
2340 * util/ieee1275/grub-install.in: Likewise.
2341
a3940f88
AG
23422010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
2343
2344 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
2345 grammar.
2346
21b99926 23472010-03-24 Colin Watson <cjwatson@ubuntu.com>
2348
2349 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
2350
bed1d352
CW
23512010-03-21 Colin Watson <cjwatson@ubuntu.com>
2352
2353 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
2354 match where 'make install' puts them.
2355 * util/i386/efi/grub-install.in: Likewise.
2356
c9f58427
CW
23572010-03-19 Colin Watson <cjwatson@ubuntu.com>
2358
2359 * .bzrignore: Add gentrigtables, grub-script-check,
2360 grub_script_check_init.c, grub_script_check_init.h, and
2361 trigtables.c.
2362
f84afb27
VS
23632010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
2364
2365 * kern/parser.c: Indented.
2366
ed0e3d30
VS
23672010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2368
2369 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
2370
0ea81d98
VS
23712010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2372
2373 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
2374 alpha_mask_size == 0 case.
2375
0cdc2a09
BC
23762010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
2377
2378 GRUB shell lexer and parser improvements.
2379
2380 * conf/any-emu.rmk: Build rule updates.
2381 * conf/common.rmk: Likewise.
2382 * conf/i386-coreboot.rmk: Likewise.
2383 * conf/i386-efi.rmk: Likewise.
2384 * conf/i386-ieee1275.rmk: Likewise.
2385 * conf/i386-pc.rmk: Likewise.
2386 * conf/powerpc-ieee1275.rmk: Likewise.
2387 * conf/x86_64-efi.rmk: Likewise.
2388
2389 * configure.ac: Configure check for flex.
2390
2391 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
2392 types.
2393 (grub_lexer_param): Struct member updates.
2394 (grub_parser_param): Likewise.
2395 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
2396 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
2397 (grub_script_lexer_init): Prototype update.
2398 (grub_script_lexer_record_start): Likewise.
2399 (grub_script_lexer_record_stop): Likewise.
2400 (grub_script_lexer_yywrap): New function prototype.
2401 (grub_script_lexer_fini): Likewise.
2402 (grub_script_execute_argument_to_string): Removed by...
2403 (grub_script_execute_argument_to_argv): ...better version.
2404
2405 * script/execute.c (ROUND_UPTO): New macro.
2406 (grub_script_execute_cmdline): Out of memory fixes.
2407 (grub_script_execute_menuentry): Likewise.
2408 (grub_script_execute_argument_to_string): Removed. Update all
2409 users by...
2410 (grub_script_execute_argument_to_argv): ...better version.
2411 * script/function.c (grub_script_function_create): Use
2412 grub_script_execute_argument_to_argv instead of
2413 grub_script_execute_argument_to_string.
2414
2415 * script/lexer.c (check_varstate): Removed.
2416 (check_textstate): Removed.
2417 (grub_script_lexer_record_start): Likewise.
2418 (grub_script_lexer_record_stop): Likewise.
2419 (recordchar): Replaced with...
2420 (grub_script_lexer_record): ...new function.
2421 (nextchar): Removed.
2422 (grub_script_lexer_init): Rewritten.
2423 (grub_script_yylex): Rewritten.
2424 (append_newline): New function.
2425 (grub_script_lexer_yywrap): New function.
2426 (grub_script_lexer_fini): New function.
2427 (grub_script_yyerror): Sets error flag.
2428
2429 * script/yylex.l: New file.
2430 (grub_lexer_yyfree): Wrapper for flex yyffre.
2431 (grub_lexer_yyalloc): Likewise.
2432 (grub_lexer_yyrealloc): Likewise.
2433 * script/parser.y: Refactored.
2434
2435 * script/script.c (grub_script_arg_add): Out of memory fixes.
2436 (grub_script_add_arglist): Likewise.
2437 (grub_script_create_cmdline): Likewise.
2438 (grub_script_create_cmdmenu): Likewise.
2439 (grub_script_add_cmd): Likewise.
2440 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
2441 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
2442 unnecessary code.
2443
2444 * tests/grub_script_echo1.in: New testcase.
2445 * tests/grub_script_vars1.in: New testcase.
2446 * tests/grub_script_echo_keywords.in: New testcase.
2447
1d63a066
VS
24482010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2449
2450 Remove some redundancy in build system.
2451
2452 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
2453 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
2454 (TARGET_LDFLAGS): Add -nostdlib.
2455 (TARGET_IMG_LDFLAGS): Likewise.
2456 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
2457 anything since mmap isn't available.
2458 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
2459 Add util/time.c.
2460 (pkglib_MODULES): Remove reboot.mod.
2461 (reboot_mod_SOURCES): Removed.
2462 (reboot_mod_CFLAGS): Likewise.
2463 (reboot_mod_LDFLAGS): Likewise.
2464 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
2465 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
2466 (DEFSYMFILES): Add kernel_syms.lst.
2467 (kernel_img_HEADERS): Add common headers.
2468 (symlist.c): New target.
2469 (kernel_syms.lst): Likewise.
2470 (pkglib_MODULES): Add memdisk.mod.
2471 (memdisk_mod_SOURCES): New variable.
2472 (memdisk_mod_CFLAGS): Likewise.
2473 (memdisk_mod_LDFLAGS): Likewise.
2474 (pkglib_MODULES): Add reboot.mod.
2475 (reboot_mod_SOURCES): New variable.
2476 (reboot_mod_CFLAGS): Likewise.
2477 (reboot_mod_LDFLAGS): Likewise.
2478 (pkglib_MODULES): Add date.mod.
2479 (date_mod_SOURCES): New variable.
2480 (date_mod_CFLAGS): Likewise.
2481 (date_mod_LDFLAGS): Likewise.
2482 (pkglib_MODULES): Add datehook.mod.
2483 (datehook_mod_SOURCES): New variable.
2484 (datehook_mod_CFLAGS): Likewise.
2485 (datehook_mod_LDFLAGS): Likewise.
2486 (pkglib_MODULES): Add lsmmap.mod.
2487 (lsmmap_mod_SOURCES): New variable.
2488 (lsmmap_mod_CFLAGS): Likewise.
2489 (lsmmap_mod_LDFLAGS): Likewise.
2490 (pkglib_MODULES): Add boot.mod.
2491 (boot_mod_SOURCES): New variable.
2492 (boot_mod_CFLAGS): Likewise.
2493 (boot_mod_LDFLAGS): Likewise.
2494 * conf/i386-coreboot.rmk: Removed redundant parts.
2495 * conf/i386-ieee1275.rmk: Likewise.
2496 * conf/i386-pc.rmk: Likewise.
2497 * conf/mips-yeeloong.rmk: Likewise.
2498 * conf/mips.rmk: Likewise.
2499 * conf/powerpc-ieee1275.rmk: Likewise.
2500 * conf/sparc64-ieee1275.rmk: Likewise.
2501 * conf/x86_64-efi.rmk: Likewise.
2502 * conf/i386-coreboot.rmk: Moved qemu parts ..
2503 * conf/i386-qemu.rmk: ... here
2504 * conf/i386-efi.rmk: Moved common parts to...
2505 * conf/x86-efi.rmk: ... here.
2506 * conf/i386.rmk: Added modules common to all x86 variants.
2507 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
2508 * disk/memdisk.c: Remove grub/machine/kernel.h.
2509 * gensymlist.sh.in: Include symbol.h.
2510 * hook/datehook.c: Correct module name.
2511 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
2512 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
2513 * include/grub/i386/efi/serial.h: New file.
2514 * include/grub/x86_64/efi/serial.h: Likewise.
2515 * util/time.c: Likewise.
2516 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
2517
463ac55f
CK
25182010-03-14 Colin King <colin.king@ubuntu.com>
25192010-03-14 Colin Watson <cjwatson@ubuntu.com>
2520
2521 Shrink the pre-partition-table part of boot.img by eight bytes.
2522
2523 * boot/i386/pc/boot.S (ERR): New macro.
2524 (chs_mode): Use ERR.
2525 (geometry_error): Likewise.
2526 (hd_probe_error): Remove. This is only used once, so we wrwite
2527 it inline instead.
2528 (read_error): Instead of printing read_error_string, just set up
2529 %si and fall through to ...
2530 (error_message): ... this new function, also used by ERR.
2531
08e46ede
CW
25322010-03-14 Colin Watson <cjwatson@ubuntu.com>
2533
2534 Speed up consecutive hostdisk operations on the same device.
2535
2536 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
2537 (grub_util_biosdisk_open): Initialise disk->data.
2538 (struct linux_partition_cache): New structure.
2539 (linux_find_partition): Cache partition start positions; these are
2540 expensive to compute on every read and write.
2541 (open_device): Cache open file descriptor in disk->data, so that we
2542 don't have to reopen it and flush the buffer cache for consecutive
2543 operations on the same device.
2544 (grub_util_biosdisk_close): New function.
2545 (grub_util_biosdisk_dev): Set `close' member.
2546
2547 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
2548 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
2549 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
2550 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
2551 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
2552
4a6d2d06
VS
25532010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2554
2555 Compile parts of grub-emu as modules.
2556
2557 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
2558 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
2559 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
2560 (all-local): Add $(GRUB_EMU).
2561 (install-local): Install $(GRUB_EMU).
2562 (uninstall): Uninstall $(GRUB_EMU).
2563 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
2564 * kern/dl.c: Likewise.
2565 * commands/sleep.c: Not include machine/time.h.
2566 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
2567 (COMMON_CFLAGS): Likewise.
2568 (sbin_UTILITIES): Remove grub-emu.
2569 (grub_emu_SOURCES): Removed.
2570 (kernel_img_RELOCATABLE): New variable.
2571 (pkglib_PROGRAMS): Add kernel.img.
2572 (kernel_img_SOURCES): New variable
2573 (kernel_img_CFLAGS): Likewise.
2574 (kernel_img_LDFLAGS): Likewise.
2575 (TARGET_NO_STRIP): Likewise.
2576 (TARGET_NO_DYNAMIC_MODULES): Likewise.
2577 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
2578 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
2579 (grub-emu): New target.
2580 (GRUB_EMU): New variable.
2581 * configure.ac: Whitelist -emu as possible x86_64 architecture.
2582 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
2583 * loader/xnu.c: Likewise.
2584 * include/grub/pci.h: Likewise.
2585 * genemuinit.sh: New file.
2586 * genemuinitheader.sh: Likewise.
2587 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
2588 Support TARGET_NO_DYNAMIC_MODULES.
2589 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
2590 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
2591 * disk/loopback.c: Likewise.
2592 * font/font_cmd.c: Likewise.
2593 * partmap/acorn.c: Likewise.
2594 * partmap/amiga.c: Likewise.
2595 * partmap/apple.c: Likewise.
2596 * partmap/gpt.c: Likewise.
2597 * partmap/msdos.c: Likewise.
2598 * partmap/sun.c: Likewise.
2599 * parttool/msdospart.c: Likewise.
2600 * term/gfxterm.c: Likewise.
2601 * video/bitmap.c: Likewise.
2602 * video/readers/jpeg.c: Likewise.
2603 * video/readers/png.c: Likewise.
2604 * video/readers/tga.c: Likewise.
2605 * video/video.c: Likewise.
2606 * util/grub-emu.c (read_command_list): Removed.
2607 (main): Don't call util_init_nls.
2608 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
2609 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
2610
91fdd2ed
VS
26112010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2612
2613 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
2614 date.mod, datehook.mod.
2615 (datetime_mod_SOURCES): New variable.
2616 (datetime_mod_CFLAGS): Likewise.
2617 (datetime_mod_LDFLAGS): Likewise.
2618 (date_mod_SOURCES): Likewise.
2619 (date_mod_CFLAGS): Likewise.
2620 (date_mod_LDFLAGS): Likewise.
2621 (datehook_mod_SOURCES): Likewise.
2622 (datehook_mod_CFLAGS): Likewise.
2623 (datehook_mod_LDFLAGS): Likewise.
2624 * conf/sparc64-ieee1275.rmk: Likewise.
2625 * lib/ieee1275/datetime.c: New file.
2626
873ccae6
VS
26272010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2628
2629 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
2630 (ieee1275_fb_mod_SOURCES): New variable.
2631 (ieee1275_fb_mod_CFLAGS): Likewise.
2632 (ieee1275_fb_mod_LDFLAGS): Likewise.
2633 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
2634 New proto.
2635 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
2636 (HEAP_MAX_ADDR): Likewise.
2637 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
2638 type.
2639 Correct stop condition.
2640 (grub_ieee1275_devices_iterate): New function.
2641 * video/ieee1275.c: New file.
2642
601c97c0
VS
26432010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2644
2645 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
2646
2647 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
2648 as scratch.
2649 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
2650 SCRATCH_PAD_DISKBOOT as scratch.
2651 (bootit): Pass Openfirmware pointer in %o4.
2652 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
2653 of 0x200000.
2654 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
2655 with util/grub-mkrawimage.c.
2656 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
2657 * include/grub/aout.h (AOUT_MID_SUN): New definition.
2658 (grub_aout_get_type) [GRUB_UTIL]: Removed.
2659 (grub_aout_load) [GRUB_UTIL]: Likewise.
2660 * include/grub/kernel.h (grub_modules_get_end): New proto.
2661 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
2662 (SCRATCH_PAD_BOOT): New definition.
2663 (SCRATCH_PAD_DISKBOOT): Likewise.
2664 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
2665 * include/grub/sparc64/ieee1275/ieee1275.h
2666 (grub_ieee1275_original_stack): New variable
2667 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
2668 New definition
2669 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
2670 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
2671 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
2672 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
2673 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
2674 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
2675 (grub_platform_image_format_t): New type.
2676 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
2677 * kern/main.c (grub_modules_get_end)
2678 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
2679 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
2680 (codestart): Switch stacks.
2681 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
2682 variable.
2683 (grub_heap_init): Use grub_modules_get_end.
2684 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
2685 stack.
2686 * util/grub-mkrawimage.c (generate_image): Support sparc64.
2687 (main): Likewise.
2688 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
2689
d68b491e
TG
26902010-03-14 Thorsten Glaser <tg@mirbsd.org>
2691
2692 * util/grub-mkrescue.in: Base ISO UUID on UTC.
2693
4e02ed50
MK
26942010-03-08 Matt Kraai <kraai@ftbfs.org>
2695
2696 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
2697 bug #559005).
2698
1f15fc1e
VS
26992010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
2700
2701 * genmoddep.awk: Output all missing symbols and not only first.
2702
fce5d8ff
VS
27032010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2704
2705 * NEWS: Put the date of 1.98 release.
2706
d1e8a02f
VS
27072010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2708
2709 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
2710 ft2build.h.
2711
696fd607
VS
27122010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2713
2714 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
2715 completition in the middle of string.
2716
33e2e6f3
VS
27172010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2718
2719 * util/grub-mkrescue.in: Use mktemp with explicit template.
2720
b1f6d291
VS
27212010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2722
2723 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
2724
2ac227c7
VS
27252010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2726
2727 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
2728 right pointer.
2729
8f9a632b
VS
27302010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2731
2732 Fix FreeBSD compilation.
2733
2734 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
2735 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
2736
60b03859
VS
27372010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2738
2739 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
2740
48a5a769
VS
27412010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2742
2743 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
2744
3ab4bd77
VS
27452010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2746
2747 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
2748
d116e0d8
RM
27492010-03-04 Robert Millan <rmh.grub@aybabtu.com>
2750
2751 Support relative image path in theme file.
2752
2753 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
2754 (image_set_property): Handle theme_dir and relative path.
2755
c7ef54aa
VS
27562010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2757
2758 * configure.ac: Alias amd64 to x86_64.
2759
fcee14ed
VS
27602010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2761
2762 * NEWS: mention multiboot on EFI.
2763
d0780363
VS
27642010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2765
2766 * kern/main.c (grub_load_modules): Handle errors from init functions of
2767 embeded modules.
2768
41168ea4
VS
27692010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2770
2771 * normal/autofs.c (autoload_fs_module): Handle errors.
2772
b54d93ac
VS
27732010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2774
2775 Disable linux.mod on qemu-mips since it's not functional and leads
2776 to compilation failure.
2777
2778 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
2779 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
2780 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
2781 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
2782 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
2783 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
2784 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
2785 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
2786 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
2787 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
2788 Reported by: BVK Chaitanya
2789
fc8345da
JU
27902010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
2791
2792 * INSTALL: Add gettext as a dependency and add qemu to a new section
2793 "Prerequisites for make-check".
2794
4760f979
CF
27952010-03-04 Christian Franke <franke@computer.org>
2796
2797 * util/grub-pe2elf.c: Add missing include "progname.h".
2798
f209b5b2
VS
27992010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2800
2801 * normal/crypto.c (read_crypto_list): Fix a typo.
2802 Reported by: Seth Goldberg.
2803
b4b7be98
VS
28042010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2805
2806 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 2807 Reported by: Seth Goldberg.
b4b7be98 2808
c0ee0385
VS
28092010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2810
2811 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
2812 ascii.bitmaps.
2813
a8efbf64
VS
28142010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2815
2816 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 2817 Reported by: Seth Goldberg.
a8efbf64 2818
08dcd913
VS
28192010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2820
2821 * util/i386/efi/grub-install.in: Copy gettext files.
2822
c4d0b332
VS
28232010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2824
2825 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
2826
c6f2fe52
VS
28272010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2828
2829 Wait for user entry basing on presence of output rather than on errors.
2830
2831 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
2832 (grub_install_newline_hook): Likewise.
2833 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
2834 * normal/menu.c (show_menu): Check line_counter to determine presence
2835 of output.
2836 * normal/term.c (grub_normal_line_counter): New variable.
2837 (grub_normal_get_line_counter): New function.
2838 (grub_install_newline_hook): Likewise.
2839
5382b1e4
VS
28402010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2841
2842 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
2843
5519963b
VS
28442010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2845
2846 * configure.ac: Update version to 1.98.
2847
72b28631
VS
28482010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
2849
2850 * util/grub.d/10_linux.in (linux_entry): Don't default to
2851 gfxpayload=keep if Linux doesn't support video handover.
2852
c140a180
VS
28532010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
2854
2855 Don't compile video modules on yeeloong since video subsystem is part
2856 of kernel.
2857
2858 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
2859 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
2860 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
2861 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
2862 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
2863 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
2864 * include/grub/bitmap_scale.h: Likewise.
2865 * include/grub/bufio.h: Likewise.
2866 * include/grub/font.h: Likewise.
2867 * include/grub/gfxterm.h: Likewise.
2868 * include/grub/video.h: Likewise.
2869 * include/grub/vbe.h: Don't include video_fb.h.
2870 * video/i386/pc/vbe.c: Include video_fb.h.
2871 * commands/i386/pc/vbetest.c: Include video.h.
2872
a0ca21c2
CW
28732010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
2874
2875 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
2876 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
2877 default entry if GRUB_SAVEDEFAULT=true. This allows using
2878 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
2879 saving a new default on every boot.
2880
4a8a763c
VS
28812010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
2882
2883 * normal/crypto.c (read_crypto_list): Fix a memory leak.
2884 * normal/term.c (read_terminal_list): Likewise.
2885 * normal/main.c (grub_normal_init_page): Likewise.
2886 (grub_normal_read_line_real): Likewise.
2887
607ffde2
VS
28882010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
2889
2890 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
2891 memory leak.
2892 Reported by: Seth Goldberg.
2893
2b8fa975
CW
28942010-02-24 Joey Korkames <joey+lists@kidfixit.com>
2895
2896 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
2897 duplicate declaration of `start'.
2898
618307dd
VS
28992010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
2900
2901 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
2902 filename.
2903 Reported by: Georgy Buranov
2904
7dd05b96 29052010-02-20 Carles Pina i Estany <carles@pina.cat>
2906
2907 * util/grub-mkrawimage.c (usage): Change string formatting to
2908 improve gettext.
2909
d1484a42
MRA
29102010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
2911
2912 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
2913 backspace keys.
2914
42b1d186
VS
29152010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
2916
2917 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
2918 Reported by: Michael Suchanek.
2919
29202010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
2921
2922 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
2923 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
2924
d9f31a41
VS
29252010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
2926
2927 Remove any reference to non-free fonts.
2928
2929 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
2930 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
2931 uses non-free components.
2932 * font/font.c (grub_font_get_name): Remove example name.
2933 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
2934 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
2935 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
2936 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
2937
2793c71e
GB
29382010-02-16 Georgy Buranov <gburanov@gmail.com>
2939
2940 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
2941
402e3779
VS
29422010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
2943
2944 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
2945 Double divisor.
2946 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
2947 features.
2948 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
2949
0dd1e0dd
VS
29502010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
2951
2952 * gensymlist.sh.in: Use TARGET_CC instead of CC.
2953
6fa7cfce
ST
29542010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2955
2956 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
2957 * docs/grub.texi (Command-line and menu entry commands): Document play
2958 command.
2959
37c8483b
ST
29602010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2961
2962 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
2963 parse arguments as inline tempo and notes. Move code for playing notes
2964 to...
2965 (play): ... new function.
2966
14da0fb7
ST
29672010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2968
2969 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
2970 grub_uint16_t instead of short.
2971 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
2972 disk from little endian to cpu endianness.
2973
04459e70
ST
29742010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
2975
2976 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
2977 GRUB_TICKS_PER_SECOND instead of 120.
2978
a0876943
VS
29792010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2980
2981 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
2982 escape sequence after \e.
2983
e29f95dc
VS
29842010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2985
2986 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
2987 non-ASCII characters.
2988
d27859b2
VS
29892010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2990
2991 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
2992 set root in single quotes to prevent \, from being unescaped.
2993
bc028f2f
VS
29942010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2995
2996 Prevent unknown commands from stopping menuentry execution.
2997
2998 * script/execute.c (grub_script_execute_cmdline): Print error after
2999 unknown command.
3000
095f5f82
VS
30012010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3002
3003 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
3004 Reported by: Pavel Pisa.
3005
8c717950
VS
30062010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3007
3008 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
3009
904935c3
VS
30102010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3011
3012 Merge grub_ieee1275_map_physical into grub_map and rename to
3013 grub_ieee1275_map
3014
3015 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
3016 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
3017 Remove.
3018 * kern/ieee1275/openfw.c (grub_map): Rename to ...
3019 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
3020 necessary.
3021 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
3022
5b59a4e3
VS
30232010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3024
3025 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
3026 opening and not after.
3027
69e137e8
VS
30282010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3029
3030 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
3031 constants.
3032
2c0fcc36
VS
30332010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3034
3035 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
3036 (alloc_phys): Use ALIGN_UP instead of align_addr.
3037
8c6052ce
VS
30382010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3039
3040 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
3041
17cec782
VS
30422010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3043
3044 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
3045
e0128bbd
VS
30462010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3047
3048 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
3049 verbose dprintf.
3050
ca62070b
VS
30512010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3052
3053 Fix over-4GiB seek on sparc64.
3054
3055 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
3056 Replace pos_i and pos_lo with pos. All users updated.
3057 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3058 New constant.
3059 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3060 Likewise.
3061 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
3062 and pos_lo.
3063
bdca2607
VS
30642010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3065
3066 * util/grub-mkrawimage.c (main): Call set_program_name.
3067
da278c4d
VS
30682010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3069
3070 Properly align 64-bit targets.
3071
3072 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
3073 (generate_image): Use ALIGN_ADDR.
3074
b274d734
VS
30752010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3076
3077 Properly create cross-endian images.
3078
3079 * include/grub/types.h (grub_host_to_target_addr): New macro
3080 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
3081
82da2062
VS
30822010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3083
3084 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
3085
7cae4377
VS
30862010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3087
3088 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
3089
3090 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
3091 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
3092 (grub_linux_boot): Divide by 64K when on VESA.
3093
65a533e7
VS
30942010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3095
3096 Support GRUB_GFXPAYLOAD_LINUX.
3097
3098 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
3099 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
3100
dd01d397
VS
31012010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3102
3103 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
3104 to show messages instead of discarding them.
3105 Process errors after executing command and not before. Keep old method
3106 too as precaution.
3107
660960d6
VS
31082010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
3109
3110 * configure.ac: Check for ft2build.h.
3111
62509f04
VS
31122010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3113
3114 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
3115
473df63d
VS
31162010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3117
3118 * genkernsyms.sh.in: Use TARGET_CC.
3119
c98d2a13
CW
31202010-02-07 Colin Watson <cjwatson@ubuntu.com>
3121
3122 * NEWS: Update.
3123
6e14234c
VS
31242010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3125
3126 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
3127 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
3128 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 3129
b255e9cf
YB
31302010-02-07 Yves Blusseau <blusseau@zetam.org>
3131
6e14234c 3132 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 3133
98e6959d
VS
31342010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3135
3136 Fix warnings in grub-emu when compiling with maximum warning options.
3137
3138 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
3139 (grub_arch_modules_addr): Return 0 and not NULL.
3140 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 3141 (xstrdup): Use newstr instead of dup.
f88d801b
VS
3142 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
3143 of disk to dsk to avoid shadowing.
74e4934e
VS
3144 (find_free_slot): Fix prototype.
3145 * util/getroot.c (grub_util_is_dmraid): Make static.
3146 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
3147 Add missing prototype.
3148 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 3149
74e31b5c
VS
31502010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3151
3152 * loader/i386/linux.c (grub_linux_setup_video): Handle error
3153 appropriately.
3154
6b2ad14b
VS
31552010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3156
3157 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
3158 code out.
3159
8f891adc
VS
31602010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3161
3162 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
3163 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
3164 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
3165 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
3166 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
3167 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
3168
74b45184
VS
31692010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3170
3171 * include/grub/err.h (grub_err_printf): Don't export.
3172
a4bced77
VS
31732010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3174
3175 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
3176
007d0695
VS
31772010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3178
3179 * include/grub/i18n.h (grub_gettext_dummy): Removed.
3180 * kern/misc.c (grub_gettext_dummy): Make static.
3181
b6c0d9c2
VS
31822010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3183
3184 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
3185 by non-valid ones.
3186 * kern/term.c (grub_putchar): Likewise.
3187
f51a90d0
VS
31882010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3189
3190 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
3191 buggy hook call and memory leak.
3192
6846cec5
VS
31932010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3194
3195 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
3196
468d69fe
VS
31972010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3198
3199 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
3200
51906b8c
VS
32012010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3202
3203 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
3204 modevar.
3205 Return grub_errno on allocation error.
3206
09706ce5
VS
32072010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3208
3209 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
3210
911df80c
YB
32112010-02-06 Yves Blusseau <blusseau@zetam.org>
3212
3213 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
3214 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
3215
3746a6bc
VS
32162010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3217
3218 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
3219 non-pxe disk.
3220 (grub_pxefs_open): Likewise.
3221
09706ce5
VS
32222010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3223
3224 * util/grub.d/10_hurd.in: Add --class information to menuentries.
3225 * util/grub.d/10_kfreebsd.in: Likewise.
3226 * util/grub.d/10_linux.in: Likewise.
3227
7cc192d9
VS
32282010-02-06 Colin D Bennett <colin@gibibit.com>
3229
3230 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
3231 (gfxmenu_mod_SOURCES): New variable.
3232 (gfxmenu_mod_CFLAGS): Likewise.
3233 (gfxmenu_mod_LDFLAGS): Likewise.
3234 * include/grub/term.h (grub_term_set_current_output): Declare
3235 argument as const.
3236 * docs/gfxmenu-theme-example.txt: New file.
3237 * gfxmenu/gfxmenu.c: Likewise.
3238 * gfxmenu/gui_box.c: Likewise.
3239 * gfxmenu/gui_canvas.c: Likewise.
3240 * gfxmenu/gui_circular_progress.c: Likewise.
3241 * gfxmenu/gui_image.c: Likewise.
3242 * gfxmenu/gui_label.c: Likewise.
3243 * gfxmenu/gui_list.c: Likewise.
3244 * gfxmenu/gui_progress_bar.c: Likewise.
3245 * gfxmenu/gui_string_util.c: Likewise.
3246 * gfxmenu/gui_util.c: Likewise.
3247 * gfxmenu/icon_manager.c: Likewise.
3248 * gfxmenu/model.c: Likewise.
3249 * gfxmenu/named_colors.c: Likewise.
3250 * gfxmenu/theme_loader.c: Likewise.
3251 * gfxmenu/view.c: Likewise.
3252 * gfxmenu/widget-box.c: Likewise.
3253 * include/grub/gfxmenu_model.h: Likewise.
3254 * include/grub/gfxmenu_view.h: Likewise.
3255 * include/grub/gfxwidgets.h: Likewise.
3256 * include/grub/gui.h: Likewise.
3257 * include/grub/gui_string_util.h: Likewise.
3258 * include/grub/icon_manager.h: Likewise.
3259
32602010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3261
3262 Agglomerate scrolling in gfxterm.
3263
3264 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
3265 (grub_virtual_screen_setup): Initialise 'total_screen'.
3266 (write_char): Split to ...
3267 (paint_char): ... this ...
3268 (write_char): ... and this.
3269 (paint_char): Handle delayed scrolling.
3270 (draw_cursor): Likewise.
3271 (scroll_up): Split to ...
3272 (real_scroll): ... this ...
3273 (scroll_up): ... and this.
3274 (real_scroll): Handle multi-line scroll and draw below-the-bottom
3275 characters.
3276 (grub_gfxterm_refresh): Call real_scroll.
3277
32782010-02-06 Colin D Bennett <colin@gibibit.com>
3279
3280 * include/grub/misc.h (grub_iscntrl): New inline function.
3281 (grub_isalnum): Likewise.
3282 (grub_strtol): Likewise.
3283
32842010-02-06 Colin D Bennett <colin@gibibit.com>
3285
3286 * normal/menu_text.c (get_entry_number): Move from here ...
3287 * normal/menu.c (get_entry_number): ... moved here.
3288 * include/grub/menu.h (grub_menu_get_default_entry_index):
3289 New prototype.
3290 * normal/menu.c (grub_menu_get_default_entry_index): New function.
3291 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
3292 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
3293 (grub_menu_viewer_should_return): Likewise.
3294 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
3295 * normal/menu_text.c (run_menu): Enable menu switching.
3296 * normal/menu_viewer.c (should_return): New variable.
3297 (menu_viewer_changed): Likewise.
3298 (grub_menu_viewer_show_menu): Handle menu viewer changes.
3299 (grub_menu_viewer_should_return): New function.
3300 (menuviewer_write_hook): Likewise.
3301 (grub_menu_viewer_init): Likewise.
3302
33032010-02-06 Colin D Bennet <colin@gibibit.com>
33042010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3305
3306 Support for gfxterm in a window.
3307
3308 * include/grub/gfxterm.h: New file.
3309 * include/grub/video.h (struct grub_video_rect): New declaration.
3310 (grub_video_rect_t): Likewise.
3311 * term/gfxterm.c (struct grub_gfxterm_window): New type.
3312 (refcount): New variable.
3313 (render_target): Likewise.
3314 (window): Likewise.
3315 (repaint_callback): Likewise.
3316 (grub_virtual_screen_setup): Use 'render_target'.
3317 (init_window): New function.
3318 (grub_gfxterm_init_window): Likewise.
3319 (grub_gfxterm_init): Check reference counter.
3320 Use init_window.
3321 (destroy_window): New function.
3322 (grub_gfxterm_destroy_window): Likewise.
3323 (grub_gfxterm_fini): Check reference counter.
3324 Use destroy_window.
3325 (redraw_screen_rect): Restore viewport.
3326 Use 'render_target' and 'window'.
3327 Call 'repaint_callback'.
3328 (write_char): Use 'render_target'.
3329 (draw_cursor): Likewise.
3330 (scroll_up): Restore viewport.
3331 Use 'render_target' and 'window'.
3332 Call 'repaint_callback'.
3333 (grub_gfxterm_cls): Likewise.
3334 (grub_gfxterm_refresh): Use 'window'.
3335 (grub_gfxterm_set_repaint_callback): New function.
3336 (grub_gfxterm_background_image_cmd): Use 'window'.
3337 (grub_gfxterm_get_term): New function.
3338 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
3339
33402010-02-06 Colin D Bennett <colin@gibibit.com>
3341
3342 Bitmap scaling support.
3343
3344 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
3345 (bitmap_scale_mod_SOURCES): New variable.
3346 (bitmap_scale_mod_CFLAGS): Likewise.
3347 (bitmap_scale_mod_LDFLAGS): Likewise.
3348 * include/grub/bitmap_scale.h: New file.
3349 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
3350 (background_image_cmd_options): New variable.
3351 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
3352 (cmd): Rename and change type to ...
3353 (background_image_cmd_handle): ... this. All users updated.
3354 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
3355 * video/bitmap_scale.c: New file.
3356
33572010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3358
3359 SDL support.
3360
3361 * Makefile.in (LIBSDL): New variable.
3362 (enable_grub_emu_sdl): Likewise.
3363 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
3364 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
3365 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
3366 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
3367 * util/sdl.c: New file.
3368
33692010-02-06 Colin D Bennett <colin@gibibit.com>
33702010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3371
3372 Double buffering support.
3373
3374 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
3375 * include/grub/video.h: Update comment.
3376 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
3377 New type.
3378 (grub_video_fb_doublebuf_blit_init): New prototype.
3379 * term/gfxterm.c (scroll_up): Support double buffering.
3380 (grub_gfxterm_refresh): Likewise.
3381 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
3382 (grub_video_fb_doublebuf_blit_init): Likewise.
3383 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
3384 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
3385 'displayed_page', 'render_page' and 'update_screen'.
3386 (grub_video_vbe_fini): Free offscreen buffer.
3387 (doublebuf_pageflipping_commit): New function.
3388 (doublebuf_pageflipping_update_screen): Likewise.
3389 (doublebuf_pageflipping_init): Likewise.
3390 (double_buffering_init): Likewise.
3391 (grub_video_vbe_setup): Enable doublebuffering.
3392 (grub_video_vbe_swap_buffers): Implement.
3393 (grub_video_vbe_set_active_render_target): Handle double buffering.
3394 (grub_video_vbe_get_active_render_target): Likewise.
3395 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
3396 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
3397 (grub_video_vbe_enable_double_buffering): Likewise.
3398 (grub_video_vbe_swap_buffers): Use update_screen.
3399 (grub_video_set_mode): Use double buffering.
3400
34012010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3402
3403 * maintainance/gentrigtables.py: Remove.
3404 * lib/trig.c: Likewise.
3405
3406 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
3407
3408 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
3409 `trigtables.c'.
3410 (trigtables.c): New rule.
3411 (gentrigtables): Likewise.
3412 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
3413
34142010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3415
3416 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
3417 integer constants.
3418
34192010-02-06 Colin D Bennet <colin@gibibit.com>
3420
3421 Trigonometry support.
3422
3423 * include/grub/trig.h: New file.
3424 * lib/trig.c: Likewise.
3425 * maintainance/gentrigtables.py: Likewise.
3426 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
3427 (trig_mod_SOURCES): New variable.
3428 (trig_mod_CFLAGS): Likewise.
3429 (trig_mod_LDFLAGS): Likewise.
3430
5562834e
VS
34312010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3432
3433 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
3434 disk devices.
3435
4f8528fc
VS
34362010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3437
3438 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
3439 error.
3440
2b4068e9
VS
34412010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3442
3443 * util/hostdisk.c (open_device): Don't use partition device when reading
3444 before the partition.
3445 (grub_util_biosdisk_read): Don't read from partition and before the
3446 partition in single operation.
3447 (grub_util_biosdisk_write): Don't write to partition and before the
3448 partition in single operation.
3449
399f6e4d
TL
34502010-02-03 Torsten Landschoff <torsten@debian.org>
3451
3452 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3453 last sectors.
3454
996649b0
VS
34552010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3456
3457 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
3458 CDROM reads.
3459 (grub_biosdisk_write): Refuse to write to CDROM.
3460
3b205d4d
VS
34612010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3462
3463 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
3464
61e89d9d
VS
34652010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3466
3467 * font/font.c (find_glyph): Check that bmp_idx is available before
3468 using it.
3469 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
3470 with (font == NULL).
3471
bf7fcba2
CS
34722010-01-28 Christian Schmitt <chris@ilovelinux.de>
3473
3474 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
3475
f45d2663
BC
34762010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
3477
3478 * include/grub/script_sh.h (sourcecode): Add const qualifier.
3479 * util/grub-script-check.c (getline): Fix empty lines case.
3480
ec1444e6
RM
34812010-01-28 Robert Millan <rmh.grub@aybabtu.com>
3482
3483 * Makefile.in (check): Exit with fail status when one of the tests
3484 fails.
3485 * tests/example_functional_test.c (example_test): Fix reversed assert.
3486 * tests/example_unit_test.c (example_test): Likewise.
3487
2e1cb9bb
CW
34882010-01-28 Colin Watson <cjwatson@ubuntu.com>
3489
3490 * util/grub.d/10_linux.in: This script does not use any of the
3491 contents of gettext.sh, only the external command `gettext', so stop
3492 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
3493 the same prefix as GRUB.)
3494 * util/grub.d/10_kfreebsd.in: Likewise.
3495
63533ab0
VS
34962010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3497
3498 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
3499 of the line.
3500
989e1f93
VS
35012010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3502
3503 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3504 last sectors.
3505
e709ebe2
VS
35062010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3507
3508 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
3509 having a 4KiB and not 32KiB buffer size.
3510
27dea7ed
RM
35112010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3512
3513 * util/hostfs.c: Include `<errno.h>'.
3514 (grub_hostfs_read): Handle errors from fseeko() and fread().
3515
67667b9c
RM
35162010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3517
3518 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
3519 loop when using read hooks on files whose size isn't sector-aligned.
3520
c294d9d8
RM
35212010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3522
3523 Remove unused parameter.
3524
3525 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
3526 (grub_iso9660_open): Remove initialization of `data->length'.
3527
af75a9f1
RM
35282010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3529
3530 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
3531 memleak conditions.
3532
254e2ce5 35332010-01-27 Carles Pina i Estany <carles@pina.cat>
3534
3535 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
3536 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
3537
b510928c 35382010-01-26 Carles Pina i Estany <carles@pina.cat>
3539
3540 * util/bin2h.c (usage): Fix warning (space after backslash).
3541
aa2f9dd2 35422010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 3543
3544 * font/font.c: Include `grub/fontformat.h.
3545 Remove font file format constants.
3546 (grub_font_load): Use the new macros.
3547 * include/grub/fontformat.h: New file.
3548 * util/grub-mkfont.c: Include `grub/fontformat.c'.
3549 (write_font_pf2): Use the new macros.
3550
94e7e712
RM
35512010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3552
3553 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
3554 does.
3555
3973a59a
RM
35562010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3557
3558 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
3559
3560 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
3561 (_start): Macroify `0x7F'.
3562
3563 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
3564 (make_install_device): Use "(pxe)" as fallback prefix when booting
3565 via PXE.
3566
42e0cba3
GS
35672010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
3568
3569 * configure.ac: Reset LIBS after check for libgcc symbols.
3570
847effd8
CW
35712010-01-25 Colin Watson <cjwatson@ubuntu.com>
3572
3573 * util/hostdisk.c (open_device): Add trailing newline to debug
3574 message.
3575
ea4a7e35
GS
35762010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
3577
3578 * configure.ac: Check for `limits.h'.
3579 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
3580
67951a53
RM
35812010-01-24 Robert Millan <rmh.grub@aybabtu.com>
3582
3583 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
3584 capitalize error strings.
3585
c273d4ce
ST
35862010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3587
3588 * util/grub.d/10_hurd.in: Add a recovery mode.
3589
69be5b74
VS
35902010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
3591
3592 * configure.ac: Check for libgcc symbols with -nostdlib.
3593
fc9e5810
BC
35942010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
3595
3596 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
3597
4b358c0a
VS
35982010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3599
3600 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
3601 stack since heap may be unavailable at that point.
3602 (grub_ofconsole_gotoxy): Likewise.
3603
454fcd1c
VS
36042010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3605
3606 * configure.ac: Check for _restgpr_14_x.
3607 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
3608 and _savegpr_* prototypes.
3609
566863ca
RM
36102010-01-22 Robert Millan <rmh.grub@aybabtu.com>
3611
3612 Use generic grub_reboot() for i386-efi.
3613
3614 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
3615 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
3616 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
3617
bf86e59a
VS
36182010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3619
3620 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
3621 presence of "prefix" variable as it breaks when normal.mod is
3622 embedded.
3623
d645e0f8
VS
36242010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3625
3626 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
3627 stack since heap is unavailable at that point.
3628
f9ab2e25
VS
36292010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3630
3631 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
3632 (grub_freebsd_bootinfo): Rewritten.
3633 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
3634
01fc7054
VS
36352010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3636
3637 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
3638
caab4fd6
RM
36392010-01-21 Robert Millan <rmh.grub@aybabtu.com>
3640
3641 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
3642 domain now.
3643
67eb1427
FZ
36442010-01-20 Felix Zielcke <fzielcke@z-51.de>
3645
3646 * util/misc.c (make_system_path_relative_to_its_root): Change the work
3647 around for handling "/" to the correct fix. Fix a memory leak. Use
3648 xstrdup instead of strdup.
3649
a9ed4ff3
VS
36502010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3651
3652 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
3653
36542010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
3655
3656 Optimise glyph lookup by Basic Multilingual Plane lookup array.
3657
3658 * font/font.c (struct grub_font): New member 'bmp_idx'.
3659 (font_init): Initialise 'bmp_idx'.
3660 (load_font_index): Fill 'bmp_idx'.
3661 (find_glyph): Make inline. Use bmp_idx for BMP characters.
3662
48209f4f
VS
36632010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3664
3665 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
3666 unnecessary calls.
3667
9f0a4bb7
VS
36682010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3669
3670 Move context handling out of the kernel.
3671
3672 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
3673 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
3674 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
3675 * conf/i386-efi.rmk: Likewise.
3676 * conf/i386-ieee1275.rmk: Likewise.
3677 * conf/i386-pc.rmk: Likewise.
3678 * conf/powerpc-ieee1275.rmk: Likewise.
3679 * conf/sparc64-ieee1275.rmk: Likewise.
3680 * conf/x86_64-efi.rmk: Likewise.
3681 * include/grub/env.h: Include grub/menu.h.
3682 (grub_env_var_type): Removed.
3683 (grub_env_var): Replaced field 'type' with 'global'.
3684 (grub_env_find): New prototype.
3685 (grub_env_context_open): Remove EXPORT_FUNC.
3686 (grub_env_context_close): Likewise.
3687 (grub_env_export): Likewise.
3688 (grub_env_set_data_slot): Removed.
3689 (grub_env_get_data_slot): Likewise.
3690 (grub_env_unset_data_slot): Likewise.
3691 (grub_env_unset_menu): New prototype.
3692 (grub_env_set_menu): Likewise.
3693 (grub_env_get_menu): Likewise.
3694 * include/grub/env_private.h: New file.
3695 * include/grub/normal.h (grub_context_init): New prototype.
3696 (grub_context_fini): Likewise.
3697 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
3698 * normal/context.c (grub_cmd_export): ... to here.
3699 * kern/env.c: Include env_private.h.
3700 (HASHSZ): Moved to include/grub/env_private.h.
3701 (grub_env_context): Likewise.
3702 (grub_env_sorted_var): Likewise.
3703 (current_context): Renamed from this ...
3704 (grub_current_context): ...to this. 'static' removed. All users updated.
3705 (grub_env_find): Removed 'static'.
3706 (grub_env_context_open): Moved to normal/context.c.
3707 (grub_env_context_close): Likewise.
3708 (grub_env_export): Likewise.
3709 (mangle_data_slot_name): Removed.
3710 (grub_env_set_data_slot): Likewise.
3711 (grub_env_get_data_slot): Likewise.
3712 (grub_env_unset_data_slot): Likewise.
3713 * kern/main.c (grub_set_root_dev): Don't export root.
3714 It will be done later.
3715 (grub_main): Don't export prefix.
3716 It will be done later.
3717 * normal/context.c: New file.
3718 * normal/main.c (free_menu): Use grub_env_unset_menu.
3719 (grub_normal_add_menu_entry): Use grub_env_get_menu.
3720 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
3721 (GRUB_MOD_INIT(normal)): Call grub_context_init.
3722 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
3723
8dd35b8c
VS
37242010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3725
3726 setpci support.
3727
3728 * commands/setpci.c: New file.
3729 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
3730 (setpci_mod_SOURCES): New variable.
3731 (setpci_mod_CFLAGS): Likewise.
3732 (setpci_mod_LDFLAGS): Likewise.
3733
449193d5
VS
37342010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3735
3736 Byte-addressable PCI configuration space.
3737
3738 * bus/pci.c (grub_pci_make_address): Use byte address instead of
3739 dword address.
3740 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
3741 GRUB_PCI_REG_CACHELINE.
3742 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
3743 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
3744 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
3745 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
3746 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
3747 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
3748 grub_pci_make_address.
3749 (lock_rom_area): Likewise.
3750 * commands/lspci.c (grub_lspci_iter): Use macroses
3751 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
3752 of grub_pci_make_address.
3753 * disk/ata.c (grub_ata_pciinit): Likewise.
3754 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
3755 (GRUB_PCI_REG_VENDOR): Likewise.
3756 (GRUB_PCI_REG_DEVICE): Likewise.
3757 (GRUB_PCI_REG_COMMAND): Likewise.
3758 (GRUB_PCI_REG_STATUS): Likewise.
3759 (GRUB_PCI_REG_REVISION): Likewise.
3760 (GRUB_PCI_REG_CLASS): Likewise.
3761 (GRUB_PCI_REG_CACHELINE): Likewise.
3762 (GRUB_PCI_REG_LAT_TIMER): Likewise.
3763 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
3764 (GRUB_PCI_REG_BIST): Likewise.
3765 (GRUB_PCI_REG_ADDRESSES): Likewise.
3766 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3767 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3768 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3769 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3770 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3771 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3772 (GRUB_PCI_REG_CIS_POINTER): Likewise.
3773 (GRUB_PCI_REG_SUBVENDOR): Likewise.
3774 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
3775 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
3776 (GRUB_PCI_REG_CAP_POINTER): Likewise.
3777 (GRUB_PCI_REG_IRQ_LINE): Likewise.
3778 (GRUB_PCI_REG_IRQ_PIN): Likewise.
3779 (GRUB_PCI_REG_MIN_GNT): Likewise.
3780 (GRUB_PCI_REG_MAX_LAT): Likewise.
3781 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
3782 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
3783 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 3784 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
3785 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
3786 space.
3787
96d73208
RM
37882010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3789
3790 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
3791 can be reliably determined to be supported.
3792
d4484482
RM
37932010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3794
3795 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
3796 that VESA is supported.
3797 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
3798 supported.
3799
00308ecf
VS
38002010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3801
3802 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
3803
f66924a4
RM
38042010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3805
3806 * util/misc.c (make_system_path_relative_to_its_root): Work around
3807 special-casing of "/", as previous incarnation of this routine did.
3808
cbca0ada
VS
38092010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3810
3811 Fix any-emu compilation.
3812
3813 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
3814 * grub_bin2h_SOURCES: New variable.
3815
34a66d99
RM
38162010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3817
3818 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
3819
94fabf58
RM
38202010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3821
3822 * util/grub.d/00_header.in: Fix handling of locale_dir.
3823
02cf98ca
VS
38242010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3825
3826 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
3827 as possible unifont location (Gentoo).
3828 Reported by: Alexander Brüning
3829
327dbcd7
VS
38302010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3831
3832 Don't try to generate lists for kernel.img.
3833
3834 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
3835 (pkglib_MODULES): Remove kernel.img.
3836 (kernel_img_EXPORTS): Removed.
3837 (kernel_img_RELOCATABLE): New variable.
3838 * conf/x86_64-efi.rmk: Likewise.
3839 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
3840
ca467290
VS
38412010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3842
3843 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
3844 grub_xasprintf or grub_snprintf.
3845 (grub_vsprintf): Likewise.
3846 (grub_snprintf): New proto.
3847 (grub_vsnprintf): Likewise.
3848 (grub_xasprintf): Likewise.
3849 (grub_xvasprintf): Likewise.
3850 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
3851 (grub_sprintf): Removed.
3852 (grub_vsnprintf): New function.
3853 (grub_snprintf): Likewise.
3854 (grub_xvasprintf): Likewise.
3855 (grub_xasprintf): Likewise.
3856 (grub_vsprintf): Renamed to ...
3857 (grub_vsnprintf_real): ...this. New argument max_len.
3858
aca655fd
BC
38592010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
3860
3861 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
3862 fix grub-script-check warning.
3863
7ee92c32
VS
38642010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3865
3866 * include/grub/font.h (grub_font_load): Fix prototype.
3867
f80927ca
VS
38682010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3869
3870 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
3871
119c50ea
VS
38722010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3873
3874 * include/grub/x86_64/at_keyboard.h: New file.
3875
47d5f3c1
VS
38762010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3877
3878 * loader/mips/linux.c: Include missing grub/i18n.h.
3879
55ff5266
RM
38802009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3881
3882 * normal/menu.c (notify_execution_failure): Clarify error message.
3883
c893cc87
RM
38842009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3885
3886 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
3887 return value (and revert all return statements). Update users.
3888
917dd370
CW
38892010-01-20 Dan Merillat <debian@dan.merillat.org>
3890
3891 * kern/device.c (grub_device_iterate): Allocate new part_ent
3892 structure based on sizeof (*p) rather than sizeof (p->next), to
3893 account for structure padding.
3894
3895 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
3896 disk is NULL, which might happen for LVM physical volumes with no
3897 LVM signature.
3898
d4a4ee57
RM
38992009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3900
3901 * loader/mips/linux.c (grub_cmd_initrd)
3902 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
3903
39042009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3905
3906 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
3907 (grub_video_video_init, grub_video_bitmap_init)
3908 (grub_font_manager_init, grub_term_gfxterm_init)
3909 (grub_at_keyboard_init): New extern declarations.
3910 (grub_machine_init): Initialize gfxterm and at_keyboard.
3911
3912 * kern/main.c (grub_main): Revert grub_printf delay kludge.
3913
3914 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
3915 `gfxterm.mod' into core image.
3916
3917 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3918 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3919 (kernel_img_FORMAT): Copy to ...
3920
3921 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3922 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3923 (kernel_img_FORMAT): ... here, and ...
3924
3925 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3926 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3927 (kernel_img_FORMAT): ... here.
3928
3929 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
3930 and input (at_keyboard) terminals in kernel.
3931 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
3932
3933 (pkglib_MODULES): Remove `pci.mod'.
3934 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
3935 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
3936 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
3937 (at_keyboard_mod_LDFLAGS): Remove variables.
3938
39392010-01-11 Felix Zielcke <fzielcke@z-51.de>
3940
3941 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
3942
39432009-12-10 Robert Millan <rmh.grub@aybabtu.com>
3944
3945 * include/grub/mips/libgcc.h: Only export symbols for functions
3946 that libgcc provides.
3947
39482009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
3949
3950 MIPS support.
3951
3952 * bus/bonito.c: New file.
3953 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
3954 GRUB_PCI_NUM_DEVICES.
3955 * term/i386/pc/serial.c: Move to ...
3956 * term/serial.c: ... here. All users updated.
3957 * util/i386/pc/grub-mkimage.c: Move to ...
3958 * util/grub-mkrawimage.c: ... here. All users updated.
3959 * term/i386/pc/at_keyboard.c: Move to ...
3960 * term/at_keyboard.c: ... here. All users updated.
3961 * conf/mips-qemu-mips.rmk: New file.
3962 * conf/mips-yeeloong.rmk: Likewise.
3963 * conf/mips.rmk: Likewise.
3964 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
3965 mipsel-qemu-mips.
3966 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
3967 to port addresses.
3968 (grub_ata_pciinit): Support CS5536.
3969 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
3970 * font/font_cmd.c (loadfont_command): Open file before passing it to
3971 grub_font_load.
3972 (pseudo_file_read): New function.
3973 (pseudo_file_close): Likewise.
3974 (pseudo_fs): New structure.
3975 (load_font_module): New function.
3976 (GRUB_MOD_INIT(font_manager)): Load embedded font.
3977 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
3978 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
3979 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
3980 * include/grub/i386/at_keyboard.h: Split into ...
3981 * include/grub/at_keyboard.h: ... this ...
3982 * include/grub/i386/at_keyboard.h: ... and this.
3983 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
3984 New prototype.
3985 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
3986 updated.
3987 (grub_elf64_size): Likewise.
3988 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
3989 filename.
3990 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
3991 * include/grub/i386/coreboot/serial.h: Rewritten.
3992 * include/grub/i386/ieee1275/serial.h: Include
3993 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
3994 * include/grub/i386/pc/serial.h: Moved from here ...
3995 * include/grub/serial.h: ... to here. All users updated.
3996 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
3997 (GRUB_PCI_NUM_BUS): Likewise.
3998 (GRUB_PCI_NUM_DEVICES): Likewise.
3999 (grub_pci_device_map_range): Add missing volatile keyword.
4000 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
4001 * include/grub/mips/at_keyboard.h: New file.
4002 * include/grub/mips/cache.h: Likewise.
4003 * include/grub/mips/io.h: Likewise.
4004 * include/grub/mips/kernel.h: Likewise.
4005 * include/grub/mips/libgcc.h: Likewise.
4006 * include/grub/mips/pci.h: Likewise.
4007 * include/grub/mips/qemu-mips/boot.h: Likewise.
4008 * include/grub/mips/qemu-mips/kernel.h: Likewise.
4009 * include/grub/mips/qemu-mips/loader.h: Likewise.
4010 * include/grub/mips/qemu-mips/memory.h: Likewise.
4011 * include/grub/mips/qemu-mips/serial.h: Likewise.
4012 * include/grub/mips/qemu-mips/time.h: Likewise.
4013 * include/grub/mips/relocator.h: Likewise.
4014 * include/grub/mips/time.h: Likewise.
4015 * include/grub/mips/types.h: Likewise.
4016 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
4017 * include/grub/mips/yeeloong/boot.h: Likewise.
4018 * include/grub/mips/yeeloong/kernel.h: Likewise.
4019 * include/grub/mips/yeeloong/loader.h: Likewise.
4020 * include/grub/mips/yeeloong/memory.h: Likewise.
4021 * include/grub/mips/yeeloong/pci.h: Likewise.
4022 * include/grub/mips/yeeloong/serial.h: Likewise.
4023 * include/grub/mips/yeeloong/time.h: Likewise.
4024 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
4025 * kern/elf.c (grub_elf32_size): New parameter. All users
4026 updated.
4027 (grub_elf64_size): Likewise.
4028 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
4029 Load modules before saying "Welcome to GRUB!".
4030 Call grub_refresh after saying "Welcome to GRUB!".
4031 * kern/mips/cache.S: New file.
4032 * kern/mips/cache_flush.S: Likewise.
4033 * kern/mips/dl.c: Likewise.
4034 * kern/mips/init.c: Likewise.
4035 * kern/mips/qemu-mips/init.c: Likewise.
4036 * kern/mips/startup.S: Likewise.
4037 * kern/mips/yeeloong/init.c: Likewise.
4038 * kern/term.c (grub_putcode): Handle NULL terminal.
4039 (grub_getcharwidth): Likewise.
4040 (grub_getkey): Likewise.
4041 (grub_checkkey): Likewise.
4042 (grub_getkeystatus): Likewise.
4043 (grub_getxy): Likewise.
4044 (grub_getwh): Likewise.
4045 (grub_gotoxy): Likewise.
4046 (grub_cls): Likewise.
4047 (grub_setcolorstate): Likewise.
4048 (grub_setcolor): Likewise.
4049 (grub_getcolor): Likewise.
4050 (grub_refresh): Likewise.
4051 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
4052 (write_jump): Add hatch nop.
4053 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
4054 * lib/mips/setjmp.S: New file.
4055 * loader/mips/linux.c: Likewise.
4056 * term/i386/pc/at_keyboard.c: Move from here ...
4057 * term/at_keyboard.c: ... to here.
4058 * term/i386/pc/serial.c: Moved from here ...
4059 * term/serial.c: ... to here. All users updated.
4060 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
4061 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
4062 (serial_translate_key_sequence): Avoid deadlock.
4063 (grub_serial_getkey): Handle backspace.
4064 (grub_serial_putchar): Fix newline handling.
4065 * util/i386/pc/grub-mkimage.c: Move from here ...
4066 * util/grub-mkrawimage.c: ... to here. All users updated.
4067 (generate_image): New parameters 'font_path' and 'format'.
4068 Support embedding font.
4069 Use grub_host_to_target* instead of grub_cpu_to_le*.
4070 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
4071 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
4072 (options): New option "--font".
4073 (usage): Likewise.
4074 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
4075 (main): Handle "--font".
4076 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
4077 (grub_virtual_screen_setup): Set bg_color_display.
4078 (redraw_screen_rect): Use bg_color_display instead of incorrect
4079 bg_color.
4080 (grub_gfxterm_cls): Likewise.
4081 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
4082 Support embedding config file.
4083 (add_segments): Likewise.
4084 (options): New option "--config".
4085 (main): Handle "--config".
4086 * video/sm712.c: New file.
4087
25c2b5b3
RM
40882010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4089
4090 Fix parallel builds.
4091
4092 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
4093 font.c depend on ascii.h).
4094
40952010-01-12 Carles Pina i Estany <carles@pina.cat>
4096
4097 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
4098
40992010-01-11 Carles Pina i Estany <carles@pina.cat>
4100
4101 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
4102 By default: disabled.
4103 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
4104 parameter.
4105
41062010-01-10 Carles Pina i Estany <carles@pina.cat>
4107
4108 * font/font.c: Update copyright years.
4109 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
4110
41112010-01-10 Carles Pina i Estany <carles@pina.cat>
4112
4113 * font/font.c: Include `ascii.h'.
4114 (ASCII_BITMAP_SIZE): New macro.
4115 (ascii_font_glyph): Define.
4116 (ascii_glyph_lookup): New function.
4117 (grub_font_get_string_width): Change comment. If glyph not found, use
4118 ascii_glyph_lookup.
4119 (grub_font_get_glyph_with_fallback): If glyph not available returns
4120 ascii_glyph_lookup.
4121 * util/grub-mkfont.c (file_formats): New enum.
4122 (options): Add `ascii-bitmaps' new option.
4123 (usage): Add `asii-bitmaps' new option.
4124 (write_font_ascii_bitmap): New function.
4125 (write_font): Rename to ...
4126 (write_font_p2): ... this. Remove print_glyphs call.
4127 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
4128 used. Call print_glyphs.
4129 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
4130
41312010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4132
4133 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
4134 (grub_bin2h_SOURCES): New variable.
4135 * util/bin2h.c: New file.
4136
915fc1b8
VS
41372010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4138
4139 * include/multiboot.h: Resynced with spec.
4140 * include/multiboot2.h: Likewise.
4141 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
4142 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
4143
9444b678
RM
41442010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4145
4146 * include/grub/term.h (grub_term_register_input,
4147 grub_term_register_output): Check return of terminal init()
4148 routines, and abort if errors are raised.
4149
4150 * commands/terminal.c: Update copyright year.
4151
cba98e8d
RM
41522010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4153
4154 * commands/terminal.c (grub_cmd_terminal_input)
4155 (grub_cmd_terminal_output): Check return of terminal init()
4156 routines, and abort if errors are raised.
4157
6f7db5d6
VS
41582010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4159
4160 * include/grub/i386/bsd.h: Fix include pathes.
4161
262bff8d
VS
41622010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4163
4164 Add missing *BSD copyright headers.
4165
4166 * include/grub/aout.h: Add BSD licence.
4167 * include/grub/i386/bsd.h: Parts under different licences moved to ...
4168 * include/grub/i386/freebsd_linker.h: ... here,
4169 * include/grub/i386/freebsd_reboot.h: ... here,
4170 * include/grub/i386/netbsd_bootinfo.h: ... here,
4171 * include/grub/i386/netbsd_reboot.h: ... here,
4172 * include/grub/i386/openbsd_bootarg.h: ... here,
4173 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
4174 licence to each file.
4175
b2cab848
RM
41762010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4177
4178 * acinclude.m4: Remove `nop' assembly instruction; it's not
4179 implemented by all architectures.
4180
2cb6be4b
RM
41812010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4182
4183 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
4184 ELILO. This is no longer necessary.
4185
a2eaee15
BC
41862010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
4187
4188 Added new tool, grub-scrit-check to verify grub.cfg syntax.
4189
4190 * util/grub-script-check.c: grub-script-check tool.
4191 * conf/common.rmk: Make rules for grub-script-check.
4192
88d17012
RM
41932010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4194
4195 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
4196 spotting it back in 2008. Shame on me for forgetting he did.
4197
4198 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
4199
8040619d
RM
42002010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4201
4202 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
4203 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
4204 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
4205 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
4206 (GRUB_VIDEO_TYPE_EFI): Rename to ...
4207 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
4208
a0c2a0f6
RM
42092010-01-17 Robert Millan <rmh.grub@aybabtu.com>
4210
4211 * include/grub/test.h: Add license header.
4212 * tests/example_functional_test.c: Likewise.
4213 * tests/example_unit_test.c: Likewise.
4214 * tests/lib/functional_test.c: Likewise.
4215 * tests/lib/test.c: Likewise.
4216 * tests/lib/unit_test.c: Likewise.
4217
b0b13907
VS
42182010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
4219
4220 Use flag-based instead of hook-based video mode selection and "auto"
4221 keyword.
4222
4223 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
4224 (grub_video_set_mode): Changed prototype. All users updated.
4225 (grub_video_check_mode_flag): New inline function.
4226 * video/video.c (parse_modespec): New function.
4227 (grub_video_set_mode): Parse flags and keywords.
4228
ea379330 42292010-01-17 Carles Pina i Estany <carles@pina.cat>
4230
4231 * util/misc.c (grub_util_info): Fix the order of the parameters in a
4232 fprintf call.
4233
e15c215e
FZ
42342010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
4235
4236 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
4237
409ae1c9 42382010-01-16 Carles Pina i Estany <carles@pina.cat>
4239
4240 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
4241 string.
4242 * util/grub-emu.c (usage): Likewise.
4243 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
4244 * util/i386/efi/grub-mkimage.c (usage): Likewise.
4245 * util/i386/pc/grub-mkimage.c (usage): Likewise.
4246 * util/i386/pc/grub-setup.c (usage): Likewise.
4247
70a14d3d 42482010-01-16 Carles Pina i Estany <carles@pina.cat>
4249
4250 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
4251 the message.
4252 (grub_util_info): Likewise.
4253 (grub_util_error): Likewise.
4254 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
4255 and/or new lines in `grub_util_warna', `grub_util_info',
4256 `grub_util_error' calls.
4257 * util/getroot.c: Likewise.
4258 * util/grub-editenv.c: Likewise.
4259 * util/grub-emu.c: Likewise.
4260 * util/grub-fstest.c: Likewise.
4261 * util/grub-mkdevicemap.c: Likewise.
4262 * util/grub-mkfont.c: Likewise.
4263 * util/grub-mkpasswd-pbkdf2.c: Likewise.
4264 * util/grub-mkrelpath.c: Likewise.
4265 * util/grub-pe2elf.c: Likewise.
4266 * util/grub-probe.c: Likewise.
4267 * util/hostdisk.c: Likewise.
4268 * util/i386/efi/grub-mkimage.c: Likewise.
4269 * util/i386/pc/grub-mkimage.c: Likewise.
4270 * util/i386/pc/grub-setup.c: Likewise.
4271 * util/ieee1275/ofpath.c: Likewise.
4272 * util/mkisofs/eltorito.c: Likewise.
4273 * util/mkisofs/rock.c: Likewise.
4274 * util/mkisofs/write.c: Likewise.
4275 * util/raid.c: Likewise.
4276 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
4277 * util/sparc64/ieee1275/grub-setup.c: Likewise.
4278
a0b766fc
VS
42792010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4280
4281 Enable multiboot on non-pc.
4282
4283 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
4284 multiboot.mod and multiboot2.mod to ...
4285 * conf/i386.rmk (pkglib_MODULES): ... here.
4286 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
4287 Moved to ...
4288 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
4289 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
4290 Moved to ...
4291 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
4292 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
4293 Moved to ...
4294 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
4295 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
4296 Moved to ...
4297 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
4298 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
4299 relocator.mod.
4300 (ata_mod_SOURCES): Removed.
4301 (ata_mod_CFLAGS): Likewise.
4302 (ata_mod_LDFLAGS): Likewise.
4303 (relocator_mod_SOURCES): Removed.
4304 (relocator_mod_CFLAGS): Likewise.
4305 (relocator_mod_ASFLAGS): Likewise.
4306 (relocator_mod_LDFLAGS): Likewise.
4307 Include i386.mk.
4308 * include/grub/x86_64/multiboot.h: New file.
4309 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
4310 Terminate EFI.
4311
884ade56
VS
43122010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4313
4314 Video multiboot support.
4315
4316 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
4317 New prototype.
4318 * include/multiboot.h: Resynced with multiboot specification.
4319 * include/multiboot2.h: Likewise.
4320 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
4321 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
4322 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
4323 (HAS_VGA_TEXT): Likewise.
4324 (accepts_video): New variable.
4325 (grub_multiboot_set_accepts_video): New function.
4326 (grub_multiboot_get_mbi_size): Account for video structures.
4327 (set_video_mode): New function.
4328 (retrieve_video_parameters): Likewise.
4329 (grub_multiboot_make_mbi): Fill video fields.
4330
0d90e8a6
VS
43312010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4332
4333 Video driver ids.
4334
4335 * include/grub/video.h (grub_video_driver_id): New type.
4336 (grub_video_adapter): New member 'id'. All users updated.
4337 (grub_video_get_driver_id): New proto.
4338 * video/video.c (grub_video_get_driver_id): New function.
4339
5c71db1b 43402010-01-14 Carles Pina i Estany <carles@pina.cat>
4341
4342 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
4343 `var=val'.
4344
cca15b52 43452010-01-14 Carles Pina i Estany <carles@pina.cat>
4346
4347 * normal/cmdline.c (print_completion): Gettextizze.
4348
c586fbb2 43492001-01-14 Carles Pina i Estany <carles@pina.cat>
4350
4351 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
4352
ba2f6848 43532010-01-14 Carles Pina i Estany <carles@pina.cat>
4354
4355 * gettext/gettext.c (grub_gettext_translate): Push and pop
4356 grub_errno.
4357 (grub_gettext_delete_list): Change comment style.
4358 * kern/err.c (grub_error): Gettextizze.
4359 (grub_fatal): Gettextizze.
4360
0a46429a
RM
43612010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4362
4363 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
4364 (grub_linux16_real_boot): ... this.
4365 * kern/i386/loader.S: Likewise.
4366 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
4367 (grub_linux16_boot): New function. Switches to text mode and calls
4368 grub_linux16_real_boot().
4369
4370 * loader/i386/bsd.c: Include `<grub/video.h>'.
4371 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
4372 text mode before calling grub_unix_real_boot().
4373
4374 * loader/i386/multiboot.c: Include `<grub/video.h>'.
4375 (grub_multiboot_boot): Switch to text mode before calling
4376 grub_relocator32_boot().
4377
4378 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
4379 (grub_chainloader_boot): Switch to text mode before calling
4380 grub_chainloader_real_boot().
4381
d6f93a66
RM
43822010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
43832010-01-05 Colin Watson <cjwatson@ubuntu.com>
4384
4385 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
4386 non-empty value.
4387
43882010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
43892010-01-05 Colin Watson <cjwatson@ubuntu.com>
4390
4391 * util/grub.d/00_header.in: Define a "savedefault" function for use
4392 in menu entries.
4393 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
4394
43952010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
43962010-01-05 Colin Watson <cjwatson@ubuntu.com>
4397
4398 * util/grub-mkconfig_lib.in (save_default_entry): Only set
4399 saved_entry if boot_once is unset.
4400 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
4401 previous saved entry (i.e. grub-reboot).
4402
44032009-12-08 Colin Watson <cjwatson@ubuntu.com>
4404
4405 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
4406
44072009-12-08 Colin Watson <cjwatson@ubuntu.com>
4408
4409 * util/grub.d/00_header.in: Use `set var=val' rather than plain
4410 `var=val'.
4411 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
4412
44132009-12-08 Colin Watson <cjwatson@ubuntu.com>
4414
4415 * util/grub-reboot.in: Fix --version output.
4416 * util/grub-set-default.in: Likewise.
4417
44182009-12-08 Colin Watson <cjwatson@ubuntu.com>
4419
4420 * util/grub.d/00_header.in: Silently ignore zero-sized environment
4421 blocks.
4422
44232009-12-08 Colin Watson <cjwatson@ubuntu.com>
4424
4425 * util/grub.d/00_header.in: Quote the value assigned to `default',
4426 in case it contains spaces.
4427
44282009-12-08 Colin Watson <cjwatson@ubuntu.com>
4429
4430 * util/grub.d/30_os-prober.in: Fix merge error that moved a
4431 `save_default_entry' call from the macosx case to the linux case.
4432
44332009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
44342009-10-25 Colin Watson <cjwatson@ubuntu.com>
4435
4436 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
4437 in `chosen' environment variable.
4438 * normal/menu_text.c (get_entry_number): Check if the variable
4439 matches the title of a menu entry.
4440 (run_menu): Pass menu to get_entry_number.
4441
4442 * util/grub-reboot.in: New file.
4443 * util/grub-set-default.in: New file.
4444 * conf/common.rmk (grub-reboot): New utility.
4445 (grub-set-default): New utility.
4446
4447 * util/grub-mkconfig_lib.in (save_default_entry): New function.
4448 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
4449 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
4450 move it to `saved_entry' for the next boot. Load environment on
4451 initialisation.
4452 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
4453 * util/grub.d/10_hurd.in: Likewise.
4454 * util/grub.d/10_linux.in (linux_entry): Likewise.
4455 * util/grub.d/10_windows.in: Likewise.
4456 * util/grub.d/30_os-prober.in: Likewise.
4457
4458 * util/grub-install.in: Create environment block.
4459 * util/i386/efi/grub-install.in: Likewise.
4460 * util/ieee1275/grub-install.in: Likewise.
4461 * util/sparc64/ieee1275/grub-install.in: Likewise.
4462
0934d184
BC
44632010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
4464
4465 Unit testing framework for GRUB.
4466
4467 * Makefile.in: Test framework build rules for 'make check'.
4468 * conf/tests.rmk: Build rules for individual tests and framework.
4469
4470 * include/grub/test.h: Header file for whitebox tests.
4471 * tests/lib/functional_test.c: Framework support for whitebox
4472 functional tests.
4473 * tests/lib/test.c: Common whitebox testing code for unit and
4474 functional tests.
4475 * tests/lib/unit_test.c: Framework support for whitebox unit
4476 tests.
4477
4478 * tests/util/grub-shell-tester.in: Support utility for grub-script
4479 tests.
4480 * tests/util/grub-shell.in: Utility to execute grub-script
4481 commands in a Qemu instance.
4482
4483 * tests/example_functional_test.c: Example whitebox functional
4484 test.
4485 * tests/example_grub_script_test.in: Example grub-script test.
4486 * tests/example_scripted_test.in: Example scripted test.
4487 * tests/example_unit_test.c: Example whitebox unit test.
4488
9c4ffeeb
VS
44892010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
4490
4491 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
4492 Add loader/i386/multiboot_mbi.c.
4493 (multiboot2_mod_SOURCES): Likewise.
4494 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
4495 (multiboot2_mod_SOURCES): Likewise.
4496 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
4497 (grub_multiboot_make_mbi): Likewise.
4498 (grub_multiboot_free_mbi): Likewise.
4499 (grub_multiboot_init_mbi): Likewise.
4500 (grub_multiboot_add_module): Likewise.
4501 (grub_multiboot_set_bootdev): Likewise.
4502 * loader/i386/multiboot.c (mbi): Removed.
4503 (mbi_dest): Likewise.
4504 (alloc_mbi): New variable.
4505 (grub_multiboot_payload_size): Removed. All users updated.
4506 (grub_multiboot_pure_size): New variable.
4507 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
4508 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
4509 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
4510 (grub_fill_multiboot_mmap): Likewise.
4511 (grub_multiboot_get_bootdev): Likewise.
4512 (grub_multiboot): Use multiboot_mbi functions.
4513 * loader/i386/multiboot_mbi.c: New file.
4514
17383dfe
VS
45152010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4516
4517 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
4518 it would result in module crash.
4519
c1f28820
VS
45202010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4521
4522 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
4523 (grub_ofconsole_getwh): Split to ...
4524 (grub_ofconsole_getwh): ... this.
4525 (grub_ofconsole_dimensions): ...and this.
4526 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
4527
58655a16
RM
45282010-01-13 Robert Millan <rmh.grub@aybabtu.com>
4529
4530 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
4531
10891398
VS
45322010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4533
4534 * loader/i386/pc/multiboot2.c: Removed stalled file.
4535
0b8a223c
VS
45362010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4537
4538 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
4539 Reported by: Grégoire Sutre
4540
92ab12b0
RM
45412010-01-11 Robert Millan <rmh.grub@aybabtu.com>
4542
4543 * util/misc.c (canonicalize_file_name): New function.
4544 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
4545 instead of realpath().
4546
a788afb6
CW
45472010-01-11 Colin Watson <cjwatson@ubuntu.com>
4548
4549 * util/grub-install.in (usage): Clarify meaning of --root-directory,
4550 and make it clearer that it's optional. Based on confusion
4551 witnessed on IRC.
4552
ffa8e3d2
VS
45532010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4554
4555 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
4556 in premature implicit newline.
4557
e9060a9d
VS
45582010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4559
4560 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
4561 which resulted in garbled command line at the end of screen.
4562
f0d0c0b7
RM
45632010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4564
4565 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
4566 initialization with similar approach as with other Linux loaders.
4567
0e60bae7
RM
45682010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4569
4570 Fix i386-ieee1275 build.
4571
4572 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
4573 and grub_term_height() for video_{width,height} initialization.
4574
45752010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
4576
4577 Fix grub-emu build.
4578
4579 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
4580
cdb3f378
RM
45812010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
45822010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4583
4584 Support for multiple terminals.
4585
4586 * Makefile.in (pkglib_DATA): terminal.lst.
4587 (terminal.lst): New target.
4588 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
4589 (GRUB_MOD_INIT(handler)): Likewise.
4590 (GRUB_MOD_FINI(handler)): Likewise.
4591 * commands/help.c (grub_cmd_help): Handle multiple terminals.
4592 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
4593 * commands/sleep.c (do_print): Use grub_term_restore_pos.
4594 (grub_cmd_sleep): Use grub_term_save_pos.
4595 * commands/terminal.c: New file.
4596 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
4597 commands/terminal.c and lib/charset.c.
4598 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
4599 (pkglib_MODULES): Add terminal.mod.
4600 (terminal_mod_SOURCES): New variable.
4601 (terminal_mod_CFLAGS): Likewise.
4602 (terminal_mod_LDFLAGS): Likewise.
4603 * genhandlerlist.sh: Don't handle terminals.
4604 * genmk.rb: Generate terminal-*.lst.
4605 * genterminallist.sh: New file.
4606 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
4607 (grub_is_valid_utf8): Likewise.
4608 (grub_utf8_to_ucs4_alloc): Likewise.
4609 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
4610 (grub_menu_register_viewer): Changed argument.
4611 (grub_menu_try_text): New proto.
4612 (grub_gfxmenu_try_hook): New declaration.
4613 * include/grub/normal.h (grub_normal_exit_level): New declaration.
4614 (grub_menu_init_page): Additional argument term.
4615 (grub_normal_init_page): Likewise.
4616 (grub_cmdline_get): Arguments simplified.
4617 (grub_utf8_to_ucs4_alloc): Removed.
4618 (grub_print_ucs4): Additional argument term.
4619 (grub_getstringwidth): Likewise.
4620 (grub_print_message_indented): Likewise.
4621 (grub_menu_text_register_instances): New proto.
4622 (grub_show_menu): Likewise.
4623 (read_terminal_list): Likewise.
4624 (grub_set_more): Likewise.
4625 * include/grub/parser.h: Include handler.h.
4626 * include/grub/reader.h: Rewritten.
4627 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
4628 (GRUB_TERM_WIDTH): Changed to function.
4629 (GRUB_TERM_HEIGHT): Likewise.
4630 (GRUB_TERM_BORDER_WIDTH): Likewise.
4631 (GRUB_TERM_BORDER_HEIGHT): Likewise.
4632 (GRUB_TERM_NUM_ENTRIES): Likewise.
4633 (GRUB_TERM_ENTRY_WIDTH): Likewise.
4634 (GRUB_TERM_CURSOR_X): Likewise.
4635 (grub_term_input_class): Likewise.
4636 (grub_term_output_class): Likewise.
4637 (grub_term_outputs_disabled): New declaration.
4638 (grub_term_inputs_disabled): Likewise.
4639 (grub_term_outputs): Likewise.
4640 (grub_term_inputs): Likewise.
4641 (grub_term_register_input): Rewritten.
4642 (grub_term_register_output): Likewise.
4643 (grub_term_unregister_input): Likewise.
4644 (grub_term_unregister_output): Likewise.
4645 (FOR_ACTIVE_TERM_INPUTS): New macro.
4646 (FOR_DISABLED_TERM_INPUTS): Likewise.
4647 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
4648 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
4649 * include/grub/terminfo.h: Add oterm argument to all protypes.
4650 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
4651 Use grub_rescue_run.
4652 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
4653 All users updated.
4654 * kern/reader.c: Removed. All users updated.
4655 * kern/rescue_reader.c (grub_rescue_init): Removed.
4656 (grub_rescue_reader): Likewise.
4657 (grub_register_rescue_reader): Likewise.
4658 (grub_rescue_run): New function based on kern/reader.c.
4659 * kern/term.c: Adapted for multiterm.
4660 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
4661 (grub_is_valid_utf8): Likewise.
4662 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
4663 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
4664 right terminal.
4665 * loader/i386/linux.c (grub_linux_boot): Likewise.
4666 * normal/auth.c (grub_username_get): New function.
4667 (grub_auth_check_authentication): Use grub_username_get.
4668 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
4669 * normal/color.c: Adapt for multiterm.
4670 * normal/main.c (read_config_file): Don't use grub_reader_loop.
4671 (grub_normal_init_page): Additional argument term.
4672 (read_lists): Call read_terminal_lists.
4673 (grub_enter_normal_mode): Call grub_cmdline_run.
4674 Handle grub_normal_exit_level.
4675 (grub_cmd_normal): Make reentrant.
4676 (grub_cmd_normal_exit): New function.
4677 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
4678 * normal/menu.c: Adapt for multiterm.
4679 * normal/menu_entry.c: Likewise.
4680 * normal/menu_text.c: Likewise.
4681 * normal/menu_viewer.c: Removed. All users updated.
4682 * normal/term.c: New file.
4683 * util/console.c: Change order of includes to workaround a bug in
4684 ncurses headers.
4685 * term/terminfo.c: New argument oterm on all exported functions.
4686 All users updated.
4687 * util/grub-editenv.c (grub_term_input_class): Removed.
4688 (grub_term_output_class): Likewise.
4689
1a064917
RM
46902010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4691
4692 Make loader output a bit more user-friendly.
4693
4694 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
4695 is being loaded. Likewise for the Hurd.
4696
4697 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
4698 that kernel of FreeBSD ${version} is being loaded.
4699
4700 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
4701 grub_dprintf().
4702 (grub_cmd_initrd): Likewise.
4703 * util/grub.d/10_linux.in (linux_entry): Print message indicating
4704 that Linux ${version} is being loaded. Likewise for initrd.
4705
5ce0a83a 47062010-01-09 Carles Pina i Estany <carles@pina.cat>
4707
4708 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
4709
809bbfeb 47102010-01-08 Carles Pina i Estany <carles@pina.cat>
4711
4712 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
4713 (GRUB_MOD_INIT): Gettextizze.
4714 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
4715 (GRUB_MOD_INIT): Gettextizze.
4716 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
4717 (grub_cmd_linux): Capitalise Linux.
4718 (GRUB_MOD_INIT): Gettextizze.
4719 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
4720 (grub_cmd_linux): Capitalise Linux.
4721 (GRUB_MOD_INIT): Gettextizze.
4722 * loader/i386/linux.c: Include `<grub/i18n.h>'.
4723 (grub_cmd_linux): Capitalise Linux.
4724 (GRUB_MOD_INIT): Gettextizze.
4725 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
4726 (GRUB_MOD_INIT): Gettextizze.
4727 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
4728 (grub_cmd_linux): Capitalise Linux.
4729 (GRUB_MOD_INIT): Gettextizze.
4730 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
4731 (grub_cpu_xnu_init): Gettextizze.
4732 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
4733 (GRUB_MOD_INIT): Gettextizze.
4734 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
4735 (GRUB_MOD_INIT): Gettextizze.
4736 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
4737 (grub_linux_load64): Capitalise Linux.
4738 (GRUB_MOD_INIT): Gettextizze.
4739 * loader/xnu.c: Include `<grub/i18n.h>'.
4740 (GRUB_MOD_INIT): Gettextizze.
4741 * po/POTFILES: Add `loader/efi/appleloader.c',
4742 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
4743 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
4744 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
4745 `loader/i386/xnu.c', `loader/multiboot_loader.c',
4746 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
4747 and `loader/xnu.c'.
4748
b394b2ca
RM
47492010-01-08 Robert Millan <rmh.grub@aybabtu.com>
4750
4751 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
4752
47532010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
4754
4755 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
4756 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
4757 * util/mkisofs/mkisofs.c (main): Readjust --version output.
4758
bc8b32b3
RM
47592010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4760
4761 Reset Multiboot 2 support. New loader implements the draft in
4762 /branches/multiboot2 and shares as much code as possible with the
4763 production Multiboot 1 implementation.
4764
4765 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
4766 * loader/multiboot2.c: Likewise.
4767 * loader/i386/multiboot_helper.S: Likewise.
4768 * include/multiboot2.h: Replace with latest version from the draft
4769 in /branches/multiboot2.
4770
4771 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
4772 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
4773 and `loader/multiboot2.c'.
4774 (pkglib_MODULES): Add `multiboot2.mod'.
4775 (multiboot2_mod_SOURCES): New variable.
4776 (multiboot2_mod_LDFLAGS): Likewise.
4777 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
4778
4779 * conf/i386-pc.rmk: Likewise.
4780
4781 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
4782 (multiboot_mod_SOURCES): Remove variable.
4783 (multiboot_mod_LDFLAGS): Likewise.
4784 (multiboot_mod_CFLAGS): Likewise.
4785
4786 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
4787 `<multiboot2.h>' instead of `<multiboot.h>'.
4788 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
4789 (MULTIBOOT_HEADER_MAGIC): New macros.
4790
4791 * loader/multiboot_loader.c (module_version_status): Remove variable.
4792 (find_multi_boot2_header): Remove function.
4793 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
4794 logic. Always check for the Multiboot version we're compiling for.
4795 (grub_cmd_module_loader): Likewise.
4796 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
4797 command instead of `multiboot'.
4798
5d2c52b8
RM
47992010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4800
4801 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
4802 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
4803 all users.
4804
53108d92
RM
48052010-01-07 Robert Millan <rmh.grub@aybabtu.com>
48062010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4807
4808 Fix breakage introduced with previous commit.
4809
4810 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
4811 commands.
4812 * normal/handler.c (read_handler_list): Revert part of previous commit
4813 affecting this file.
4814 * normal/main.c (read_lists): Move read_handler_list() call back to ...
4815 (grub_normal_execute): ... here.
4816
e2e936b2
RM
48172010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4818
4819 Merge prefix-redefinition-fix branch.
4820
4821 * normal/autofs.c (read_fs_list): Make function capable of being
4822 run multiple times, gracefuly replacing the previous data
4823 structures.
4824 * normal/dyncmd.c (read_command_list): Likewise.
4825 * normal/handler.c (read_handler_list): Likewise.
4826 * normal/main.c (read_lists): New function. Calls all the
4827 list reading functions.
4828 (grub_normal_execute): Use read_lists() instead of calling all
4829 list reading functions explicitly. Register read_lists() as a
4830 variable hook attached to ${prefix}.
4831
607a3701
VS
48322010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4833
4834 Merge crypto branch.
4835
4836 * Makefile.in (pkglib_DATA): Add crypto.lst.
4837 (crypto.lst): New target.
4838 * commands/hashsum.c: New file.
4839 * commands/password.c (check_password): Use grub_crypto_memcmp.
4840 * commands/password_pbkdf2.c: New file.
4841 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
4842 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
4843 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
4844 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
4845 -I$(srcdir)/lib/libgcrypt_wrap.
4846 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
4847 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
4848 password_pbkdf2.mod.
4849 (crypto_mod_SOURCES): New variable.
4850 (crypto_mod_CFLAGS): Likewise.
4851 (crypto_mod_LDFLAGS): Likewise.
4852 (hashsum_mod_SOURCES): New variable.
4853 (hashsum_mod_CFLAGS): Likewise.
4854 (hashsum_mod_LDFLAGS): Likewise.
4855 (pbkdf2_mod_SOURCES): New variable.
4856 (pbkdf2_mod_CFLAGS): Likewise.
4857 (pbkdf2_mod_LDFLAGS): Likewise.
4858 (password_pbkdf2_mod_SOURCES): New variable.
4859 (password_pbkdf2_mod_CFLAGS): Likewise.
4860 (password_pbkdf2_mod_LDFLAGS): Likewise.
4861 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
4862 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
4863 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
4864 Include conf/gcry.rmk.
4865 * include/grub/auth.h: Rewritten.
4866 * include/grub/crypto.h: New file.
4867 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
4868 * include/grub/normal.h (read_crypto_list): New prototype.
4869 * lib/crypto.c: New file.
4870 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
4871 * lib/pbkdf2.c: Likewise.
4872 * normal/auth.c (grub_auth_strcmp): Removed.
4873 (grub_iswordseparator): Likewise.
4874 (grub_auth_strword): Likewise.
4875 (is_authenticated): Use grub_strword.
4876 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
4877 and grub_strword. Pass entered password to authentication callback.
4878 * normal/crypto.c: New file.
4879 * normal/main.c: Call read_crypto_list.
4880 * util/grub-mkpasswd-pbkdf2.c: New file.
4881 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
4882
42841caa
VS
48832010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
4884
4885 Fix descent and ascent calculation.
4886
4887 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
4888 (options): New option "asce".
4889 (usage): Likewise.
4890 (add_char): Ignore invalid glyphs for descent calculation.
4891 Calculate ascent from actual content.
4892 (print_glyphs): Use 'asce'.
4893 (write_font): Likewise. Allow ascent override.
4894 (main): Handle "asce" option.
4895
e7730de7 48962010-01-06 Carles Pina i Estany <carles@pina.cat>
4897
4898 * kern/err.c: Include `<grub/i18n.h>'.
4899 (grub_print_error): Add full stop. Gettextizze.
4900 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
4901 (grub_bsd_load_elf): Capitalise ELF.
4902 (grub_cmd_freebsd_loadenv): Add `s' in error string.
4903 (grub_cmd_freebsd_module): Likewise.
4904 (grub_cmd_freebsd_module_elf): Likewise.
4905 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
4906
40e3a41f 49072010-01-06 Carles Pina i Estany <carles@pina.cat>
4908
4909 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
4910 * commands/search_file.c (HELP_MESSAGE): New macro.
4911 * commands/search_label.c (HELP_MESSAGE): Likewise.
4912 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
4913 * po/POTFILES: Add `commands/search_file.c',
4914 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
4915 `commands/search.c'.
4916
83507e68
RM
49172010-01-05 Robert Millan <rmh.grub@aybabtu.com>
4918
4919 * config.rpath: Update from Gnulib.
4920
465c787b
YB
49212010-01-05 Yves Blusseau <blusseau@zetam.org>
4922
4923 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
4924
6581dd3a
YB
49252010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
4926
4927 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
4928
3bff18c5
CW
49292010-01-05 Colin Watson <cjwatson@ubuntu.com>
4930
4931 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
4932 arguments to fread so that we get a return value in bytes, rather
4933 than something that will normally be rounded down to 0.
4934 Adjust error handling to avoid producing garbage when size_t is not
4935 the same size as long long.
4936
a1368118
CW
49372010-01-05 Colin Watson <cjwatson@ubuntu.com>
4938
4939 * util/mkisofs/write.c (padblock_write): Check return value of
4940 fread.
4941
7c302978
RM
49422010-01-05 Robert Millan <rmh.grub@aybabtu.com>
4943
4944 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
4945 floppy images now.
4946
4947 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
4948
e33ace06
RM
49492010-01-04 Robert Millan <rmh.grub@aybabtu.com>
4950
4951 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
4952 instead of manual alignment.
4953 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
4954 verbose). Avoid attempts to read past end of the device
4955 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
4956 but GRUB_DISK_CACHE_SIZE may exceed that).
4957
4b856776
RM
49582010-01-04 Robert Millan <rmh.grub@aybabtu.com>
4959
4960 * commands/crc.c (grub_cmd_crc): Abort on read errors.
4961 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
4962 it to upper layer.
4963
52c2d97f
VS
49642010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4965
4966 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
4967 New constant.
4968 (grub_efi_piwg_device_path): New structure
4969 (grub_efi_piwg_device_path_t): New type.
4970 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
4971 (devpath_1): Transform to a structure. All users updated.
4972 (devpath_2): Likewise.
4973 (devpath_3): Likewise.
4974 (devpath_4): Likewise.
4975 (devpath_5): Likewise.
4976
98ff6a54
VS
49772010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4978
4979 * loader/efi/appleloader.c: Restored. Update all users.
4980
3a73dcb6
RM
49812010-01-03 Robert Millan <rmh.grub@aybabtu.com>
4982
4983 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
4984
4985 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
4986 (struct boot_blocklist): Move from here ...
4987 * include/grub/i386/pc/boot.h [ASM_FILE]
4988 (struct grub_boot_blocklist): ... to here. Update all users.
4989 (setup): Only initialize `start' member of `first_block'
4990 structure. Add assert() calls to verify the other members.
4991
4992 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
4993 (generate_image): Fix broken blocklist length initialization.
4994 Add assert() call to verify blocklist `segment' field.
4995
ab0eeb0c
RM
49962010-01-03 Robert Millan <rmh.grub@aybabtu.com>
4997
4998 * loader/efi/appleloader.c: Remove. Update all users.
4999
58bc8bd5
RM
50002010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5001
5002 * boot/i386/pc/boot.S: Update copyright year.
5003 * boot/i386/pc/cdboot.S: Likewise.
5004 * boot/i386/pc/diskboot.S: Likewise.
5005 * boot/i386/pc/lnxboot.S: Likewise.
5006 * boot/i386/pc/pxeboot.S: Likewise.
5007 * bus/pci.c: Likewise.
5008 * commands/cmp.c: Likewise.
5009 * commands/help.c: Likewise.
5010 * commands/hexdump.c: Likewise.
5011 * commands/i386/pc/halt.c: Likewise.
5012 * commands/i386/pc/play.c: Likewise.
5013 * commands/i386/pc/vbeinfo.c: Likewise.
5014 * commands/ls.c: Likewise.
5015 * commands/test.c: Likewise.
5016 * disk/dmraid_nvidia.c: Likewise.
5017 * disk/i386/pc/biosdisk.c: Likewise.
5018 * disk/ieee1275/nand.c: Likewise.
5019 * disk/ieee1275/ofdisk.c: Likewise.
5020 * disk/lvm.c: Likewise.
5021 * disk/raid.c: Likewise.
5022 * disk/raid6_recover.c: Likewise.
5023 * disk/scsi.c: Likewise.
5024 * fs/affs.c: Likewise.
5025 * fs/cpio.c: Likewise.
5026 * fs/ext2.c: Likewise.
5027 * fs/hfs.c: Likewise.
5028 * fs/iso9660.c: Likewise.
5029 * fs/ntfs.c: Likewise.
5030 * fs/sfs.c: Likewise.
5031 * fs/udf.c: Likewise.
5032 * fs/ufs.c: Likewise.
5033 * fs/xfs.c: Likewise.
5034 * gencmdlist.sh: Likewise.
5035 * genmk.rb: Likewise.
5036 * include/grub/disk.h: Likewise.
5037 * include/grub/efi/api.h: Likewise.
5038 * include/grub/efi/efi.h: Likewise.
5039 * include/grub/efi/pe32.h: Likewise.
5040 * include/grub/elf.h: Likewise.
5041 * include/grub/fs.h: Likewise.
5042 * include/grub/i386/at_keyboard.h: Likewise.
5043 * include/grub/i386/pc/memory.h: Likewise.
5044 * include/grub/i386/pc/vbe.h: Likewise.
5045 * include/grub/i386/pci.h: Likewise.
5046 * include/grub/i386/tsc.h: Likewise.
5047 * include/grub/ieee1275/ieee1275.h: Likewise.
5048 * include/grub/ntfs.h: Likewise.
5049 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
5050 * include/grub/sparc64/libgcc.h: Likewise.
5051 * include/grub/symbol.h: Likewise.
5052 * include/grub/types.h: Likewise.
5053 * include/multiboot2.h: Likewise.
5054 * io/gzio.c: Likewise.
5055 * kern/device.c: Likewise.
5056 * kern/disk.c: Likewise.
5057 * kern/efi/efi.c: Likewise.
5058 * kern/efi/mm.c: Likewise.
5059 * kern/elf.c: Likewise.
5060 * kern/file.c: Likewise.
5061 * kern/i386/dl.c: Likewise.
5062 * kern/i386/pc/init.c: Likewise.
5063 * kern/i386/pc/startup.S: Likewise.
5064 * kern/ieee1275/ieee1275.c: Likewise.
5065 * kern/ieee1275/init.c: Likewise.
5066 * kern/main.c: Likewise.
5067 * kern/mm.c: Likewise.
5068 * kern/powerpc/dl.c: Likewise.
5069 * kern/sparc64/dl.c: Likewise.
5070 * kern/x86_64/dl.c: Likewise.
5071 * lib/hexdump.c: Likewise.
5072 * loader/efi/appleloader.c: Likewise.
5073 * loader/i386/ieee1275/linux.c: Likewise.
5074 * loader/i386/pc/chainloader.c: Likewise.
5075 * loader/i386/pc/linux.c: Likewise.
5076 * loader/i386/pc/multiboot2.c: Likewise.
5077 * loader/ieee1275/multiboot2.c: Likewise.
5078 * loader/multiboot2.c: Likewise.
5079 * loader/multiboot_loader.c: Likewise.
5080 * loader/powerpc/ieee1275/linux.c: Likewise.
5081 * normal/completion.c: Likewise.
5082 * normal/menu_entry.c: Likewise.
5083 * partmap/apple.c: Likewise.
5084 * util/grub.d/10_hurd.in: Likewise.
5085 * util/hostfs.c: Likewise.
5086 * video/readers/png.c: Likewise.
5087
e2d70b5c
CW
50882010-01-03 Colin Watson <cjwatson@ubuntu.com>
5089
5090 * include/grub/misc.h (GNUC_PREREQ): New macro.
5091 (ATTRIBUTE_ERROR): New macro.
5092 * include/grub/list.h (grub_bad_type_cast_real): Use
5093 ATTRIBUTE_ERROR.
5094
a173283f 50952010-01-03 Carles Pina i Estany <carles@pina.cat>
5096
5097 * normal/menu_text.c (print_message): Change messages.
5098
7fa7ff74 50992010-01-03 Carles Pina i Estany <carles@pina.cat>
5100
5101 * normal/menu_entry.c (store_completion): Gettextizze.
5102
136d24f6 51032010-01-03 Carles Pina i Estany <carles@pina.cat>
5104
5105 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
5106
f936862e 51072010-01-03 Carles Pina i Estany <carles@pina.cat>
5108
5109 * po/POTFILES: Sort correctly.
5110
29c44ad1 51112010-01-03 Carles Pina i Estany <carles@pina.cat>
5112
5113 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
5114 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
5115 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
5116 full stop.
5117 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
5118 summary. Gettextizze the strings.
5119 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
5120 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
5121 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
5122 full stop.
5123 (GRUB_MOD_INIT): Remove command name from summary.
5124 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
5125 summary.
5126 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
5127 * term/i386/pc/serial.c (options): Add full stops.
5128 (GRUB_MOD_INIT): Remove command name from the summary.
5129
77a79592 51302010-01-03 Carles Pina i Estany <carles@pina.cat>
5131
5132 * commands/acpi.c: Gettextizze help strings and/or options. Include
5133 `grub/i18n.h' if needed.
5134 * commands/blocklist.c: Likewise.
5135 * commands/boot.c: Likewise.
5136 * commands/cat.c: Likewise.
5137 * commands/cmp.c: Likewise.
5138 * commands/configfile.c: Likewise.
5139 * commands/crc.c: Likewise.
5140 * commands/date.c: Likewise.
5141 * commands/echo.c: Likewise.
5142 * commands/efi/fixvideo.c: Likewise.
5143 * commands/efi/loadbios.c: Likewise.
5144 * commands/gptsync.c: Likewise.
5145 * commands/halt.c: Likewise.
5146 * commands/handler.c: Likewise.
5147 * commands/hdparm.c: Likewise.
5148 * commands/hexdump.c: Likewise.
5149 * commands/i386/cpuid.c: Likewise.
5150 * commands/i386/pc/drivemap.c: Likewise.
5151 * commands/i386/pc/halt.c: Likewise.
5152 * commands/i386/pc/pxecmd.c: Likewise.
5153 * commands/i386/pc/vbeinfo.c: Likewise.
5154 * commands/i386/pc/vbetest.c: Likewise.
5155 * commands/ieee1275/suspend.c: Likewise.
5156 * commands/keystatus.c: Likewise.
5157 * commands/loadenv.c: Likewise.
5158 * commands/ls.c: Likewise.
5159 * commands/lsmmap.c: Likewise.
5160 * commands/lspci.c: Likewise.
5161 * commands/memrw.c: Likewise.
5162 * commands/minicmd.c: Likewise.
5163 * commands/parttool.c: Likewise.
5164 * commands/password.c: Likewise.
5165 * commands/probe.c: Likewise.
5166 * commands/read.c: Likewise.
5167 * commands/reboot.c: Likewise.
5168 * commands/search.c: Likewise.
5169 * commands/sleep.c: Likewise.
5170 * commands/test.c: Likewise.
5171 * commands/true.c: Likewise.
5172 * commands/usbtest.c: Likewise.
5173 * commands/videotest.c: Likewise.
5174 * commands/xnu_uuid.c: Likewise.
5175 * disk/loopback.c: Likewise.
5176 * hello/hello.c: Likewise.
5177 * loader/i386/bsd.c: Likewise.
5178 * term/i386/pc/serial.c: Likewise.
5179 * po/POTFILES: Add new files.
5180
da8d5c53
CW
51812010-01-02 Colin Watson <cjwatson@ubuntu.com>
5182
5183 * term/i386/pc/at_keyboard.c
5184 (keyboard_controller_wait_untill_ready): Rename to ...
5185 (keyboard_controller_wait_until_ready): ... this. Update all users.
5186
33937904 51872010-01-01 Carles Pina i Estany <carles@pina.cat>
5188
5189 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
5190 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
5191 string using string width.
5192 * normal/menu_text.c (grub_print_message_indented): Use
5193 grub_print_spaces and not print_spaces.
5194 (print_timeout): Likewise.
5195 (print_spaces): Move to...
5196 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
5197
3fd3b8d8
RM
51982010-01-01 Robert Millan <rmh.grub@aybabtu.com>
5199
5200 Import from Gnulib.
5201
5202 * gnulib/getdelim.c: New file.
5203 * gnulib/getline.c: Likewise.
5204
33433555
VS
52052009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
5206
5207 * include/grub/list.h (grub_assert_fail): Removed.
5208 (grub_bad_type_cast_real): New function.
5209 (grub_bad_type_cast): New macro.
5210 (GRUB_AS_LIST): Use grub_bad_type_cast.
5211 (GRUB_AS_LIST_P): Likewise.
e44721e8 5212 (GRUB_AS_NAMED_LIST): Likewise.
33433555 5213 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 5214 (GRUB_AS_PRIO_LIST): Likewise.
33433555 5215 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 5216 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 5217
f5a51306
VS
52182009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
5219
5220 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
5221 Fix syntax error.
5222
90d1e879
RM
52232009-12-29 Robert Millan <rmh.grub@aybabtu.com>
5224
5225 * configure.ac: Check for TARGET_CFLAGS initialization before we
5226 initialize it ourselves (sigh).
5227 Move a few modifications to TARGET_CFLAGS to be unconditional
5228 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
5229 eh_frame)
5230
5231 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
5232 * term/i386/pc/at_keyboard.c
5233 (keyboard_controller_wait_untill_ready): Likewise.
5234 (keyboard_controller_led): Rename `led_status' paramter to avoid
5235 name conflict.
5236
465b5a81 52372009-12-28 Carles Pina i Estany <carles@pina.cat>
5238
5239 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
5240 quotes.
5241
c181849b
VS
52422009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5243
5244 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
5245
9c8739a4
VS
52462009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5247
5248 * normal/menu_text.c (grub_print_message_indented): Prevent
5249 past-the-end-of-array dereference.
5250
3e74249c
VS
52512009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5252
5253 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
5254 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
5255
64fd18ed 52562009-12-27 Carles Pina i Estany <carles@pina.cat>
5257
5258 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
5259 * normal/main.c (grub_normal_read_line): Remove a space from the
5260 default prompt.
5261
714af9b9 52622009-12-27 Carles Pina i Estany <carles@pina.cat>
5263
5264 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
5265 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5266 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5267 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5268 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5269 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5270 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5271
82f3e412 52722009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 5273
5274 * video/readers/jpeg.c (cmd): Declare.
5275 (grub_cmd_jpegtest): Use `grub_command_t' type.
5276 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5277 Assign to `cmd'.
5278 (GRUB_MOD_FINI): Use `cmd' to unregister.
5279 * video/readers/png.c (cmd): Declare.
5280 (grub_cmd_pngtest): Use `grub_command_t' type.
5281 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5282 Assign to `cmd'.
5283 (GRUB_MOD_FINI): Use `cmd' to unregister.
5284 * video/readers/tga.c (cmd): Declare.
5285 (grub_cmd_tgatest): Use `grub_command_t' type.
5286 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5287 Assign to `cmd'.
5288 (GRUB_MOD_FINI): Use `cmd' to unregister.
5289
82f3e412 52902009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 5291
5292 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
5293 stops.
5294 * kern/corecmd.c (grub_register_core_commands): Likewise.
5295 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
5296 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5297 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
5298 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5299 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5300 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
5301 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5302 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
5303 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5304 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5305 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5306 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5307 * normal/handler.c (insert_handler): Likewise.
5308 * normal/main.c (GRUB_MOD_INIT): Likewise.
5309 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
5310
fdcdbb66 53112009-12-26 Carles Pina i Estany <carles@pina.cat>
5312
5313 * commands/help.c (grub_cmd_help): Print the command name before the
5314 summary.
5315 (GRUB_MOD_INIT): Remove command name from the summary.
5316 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 5317 string as summary.
fdcdbb66 5318 * lib/arg.c (find_long): Print the command name before the summary.
5319 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
5320 summary.
5321 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
5322 * commands/cat.c (GRUB_MOD_INIT): Likewise.
5323 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
5324 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
5325 * commands/crc.c (GRUB_MOD_INIT): Likewise.
5326 * commands/date.c (GRUB_MOD_INIT): Likewise.
5327 * commands/echo.c (GRUB_MOD_INIT): Likewise.
5328 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
5329 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
5330 * commands/handler.c (GRUB_MOD_INIT): Likewise.
5331 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
5332 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
5333 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
5334 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
5335 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
5336 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
5337 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
5338 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
5339 * commands/ls.c (GRUB_MOD_INIT): Likewise.
5340 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
5341 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
5342 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
5343 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
5344 * commands/password.c (GRUB_MOD_INIT): Likewise.
5345 * commands/probe.c (GRUB_MOD_INIT): Likewise.
5346 * commands/read.c (GRUB_MOD_INIT): Likewise.
5347 * commands/search.c (GRUB_MOD_INIT): Likewise.
5348 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
5349 * commands/test.c (GRUB_MOD_INIT): Likewise.
5350 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
5351 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
5352 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
5353 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
5354 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
5355 * lib/arg.c (GRUB_MOD_INIT): Likewise.
5356 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
5357 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5358 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5359 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5360 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
5361 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
5362 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
5363 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
5364
9c288be2
VS
53652009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5366
5367 Use search command for preliminar UUID search.
5368
5369 * commands/search.c: Split into ...
5370 * commands/search_wrap.c: ...this
5371 * commands/search.c: ...and this.
5372 * commands/search_file.c: New file.
5373 * commands/search_label.c: New file.
5374 * commands/search_uuid.c: New file.
5375 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
5376 Add commands/search_wrap.c, commands/search_file.c,
5377 commands/search_label.c and commands/search_uuid.c.
5378 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
5379 (search_mod_SOURCES): Set to commands/search_wrap.c.
5380 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
5381 search_label.mod.
5382 (search_fs_file_mod_SOURCES): New variable.
5383 (search_fs_file_mod_CFLAGS): Likewise.
5384 (search_fs_file_mod_LDFLAGS): Likewise.
5385 (search_label_mod_SOURCES): Likewise.
5386 (search_label_mod_CFLAGS): Likewise.
5387 (search_label_mod_LDFLAGS): Likewise.
5388 (search_fs_uuid_mod_SOURCES): New variable.
5389 (search_fs_uuid_mod_CFLAGS): Likewise.
5390 (search_fs_uuid_mod_LDFLAGS): Likewise.
5391 (fs_file_mod_SOURCES): Removed.
5392 (fs_file_mod_CFLAGS): Likewise.
5393 (fs_file_mod_LDFLAGS): Likewise.
5394 (fs_uuid_mod_SOURCES): Removed.
5395 (fs_uuid_mod_CFLAGS): Likewise.
5396 (fs_uuid_mod_LDFLAGS): Likewise.
5397 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
5398 Set to util/grub-install.in.
5399 * disk/fs_file.c: Removed.
5400 * disk/fs_uuid.c: Likewise.
5401 * include/grub/search.h: New file.
5402 * util/grub-install.in: Handle sparc64.
5403 Create and use load.cfg.
5404 * util/sparc64/ieee1275/grub-install.in: Removed.
5405
db943399
VS
54062009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5407
5408 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
5409 Ignore return status if CF is cleared.
5410 (grub_biosdisk_get_diskinfo_standard): Likewise.
5411
3fdae612
RM
54122009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5413
5414 * term/i386/pc/at_keyboard.c
5415 (keyboard_controller_wait_untill_ready): New function.
5416 (grub_keyboard_controller_write, grub_keyboard_controller_read)
5417 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
5418 for keyboard polling, rather than duplicate the same loop. This
5419 saves a few bytes in code size.
5420
7ebaa2b4
VS
54212009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5422
5423 Support for (pxe[:server[:gateway]]) syntax and
5424 use environment variable for PXE.
5425
5426 * commands/i386/pc/pxecmd.c (options): Removed.
5427 (print_ip): Removed.
5428 (grub_cmd_pxe): Removed
5429 (grub_cmd_pxe_unload): New function.
5430 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
5431 (grub_pxe_your_ip): Made static.
5432 (grub_pxe_default_server_ip): Likewise.
5433 (grub_pxe_default_gateway_ip): Likewise.
5434 (grub_pxe_blksize): Likewise.
5435 (parse_ip): New function.
5436 (grub_pxe_open): Support server and gateway specification.
5437 (grub_pxe_close): Free disk->data.
5438 (grub_pxefs_open): Use disk->data.
5439 (grub_pxefs_read): Likewise.
5440 (grub_env_write_readonly): New function.
5441 (set_mac_env): Likewise.
5442 (set_env_limn_ro): Likewise.
5443 (parse_dhcp_vendor): Likewise.
5444 (grub_pxe_detect): Set the environment variables.
5445 (set_ip_env): New function.
5446 (write_ip_env): Likewise.
5447 (grub_env_write_pxe_default_server): Likewise.
5448 (grub_env_write_pxe_default_gateway): Likewise.
5449 (grub_env_write_pxe_blocksize): Likewise.
5450 (GRUB_MOD_INIT(pxe)): Set environment variables.
5451 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
5452 (grub_pxe_mac_addr_t): ... this. All users updated.
5453 (grub_pxe_your_ip): Removed.
5454 (grub_pxe_server_ip): Likewise.
5455 (grub_pxe_gateway_ip): Likewise.
5456 (grub_pxe_blksize): Likewise.
5457
ec5f98ab 54582009-12-25 Carles Pina i Estany <carles@pina.cat>
5459
5460 * commands/help.c: Include `<grub/i18n.h>'.
5461 (grub_cmd_help): Gettextizze.
5462 (GRUB_MOD_INIT): Likewise.
5463 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
5464 (GRUB_MOD_INIT): Gettextizze.
5465 * commands/search.c: Include `<grub/i18n.h>'.
5466 (options): Gettextizze.
5467 (GRUB_MOD_INIT): Gettextizze.
5468 * lib/arg.c: Include `<grub/i18n.h>'.
5469 (help_options): Gettextizze.
5470 (find_long): Likewise.
5471 (grub_arg_show_help): Likewise.
5472 * normal/dyncmd.c: Include `<grub/i18n.h>'.
5473 (read_command_list): Gettextizze.
5474 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 5475 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 5476
22815526
RM
54772009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5478
5479 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
5480 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
5481 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
5482 (led_status): New variable.
5483 (keyboard_controller_led): New function.
5484 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
5485 update led status for caps lock, num lock and scroll lock.
5486
0ad46fd7
FZ
54872009-12-25 Felix Zielcke <fzielcke@z-51.de>
5488
5489 * util/hostdisk.c (open_device): Fix a comment.
5490
d0e158c2
RM
54912009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5492
5493 * util/grub-install.in (host_os): New variable.
5494 * util/i386/efi/grub-install.in (host_os): Likewise.
5495
401c0ad6
RM
54962009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5497
5498 * util/mkisofs/write.c (padblock_write): Abort when given an
5499 excedingly large embed image, instead of silently truncating it.
5500
d14d3370
RM
55012009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5502
5503 * include/multiboot.h: Indentation fixes.
5504
eeed10b4
RM
55052009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5506
5507 * include/multiboot.h (struct multiboot_aout_symbol_table)
5508 (struct multiboot_elf_section_header_table): New structure
5509 declarations (stolen from GRUB Legacy).
5510 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
5511 table information.
5512
5513 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
5514 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
5515 type aliases.
5516
681c70ab
RM
55172009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5518
5519 * include/multiboot.h: Make comments src2texi-friendly.
5520
e4d47d8d
RM
55212009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5522
5523 For consistency with [multiboot]/docs/boot.S.
5524
5525 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
5526 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
5527 (MULTIBOOT_MAGIC2): Rename from this ...
5528 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
5529
a0b70bda
RM
55302009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5531
5532 * include/multiboot.h: Remove `<grub/types.h>'.
5533 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
5534 types. Update all users.
5535
61ba42be 55362009-12-25 Carles Pina i Estany <carles@pina.cat>
5537
5538 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
5539 `couldn't' and `can not' by `cannot'.
5540 * commands/i386/pc/drivemap.c: Likewise.
5541 * disk/ata.c: Likewise.
5542 * disk/ieee1275/nand.c: Likewise.
5543 * fs/affs.c: Likewise.
5544 * fs/fat.c: Likewise.
5545 * fs/hfs.c: Likewise.
5546 * fs/hfsplus.c: Likewise.
5547 * fs/iso9660.c: Likewise.
5548 * fs/jfs.c: Likewise.
5549 * fs/minix.c: Likewise.
5550 * fs/reiserfs.c: Likewise.
5551 * fs/sfs.c: Likewise.
5552 * fs/udf.c: Likewise.
5553 * fs/ufs.c: Likewise.
5554 * fs/xfs.c: Likewise.
5555 * loader/powerpc/ieee1275/linux.c: Likewise.
5556 * loader/sparc64/ieee1275/linux.c: Likewise.
5557 * util/grub-probe.c: Likewise.
5558 * util/misc.c: Likewise.
5559
7fd0baee 55602009-12-24 Carles Pina i Estany <carles@pina.cat>
5561
5562 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
5563 grub_errno calls.
5564 * commands/acpi.c: Likewise.
5565 * commands/blocklist.c: Likewise.
5566 * commands/efi/loadbios.c: Likewise.
5567 * commands/i386/pc/drivemap.c: Likewise.
5568 * commands/loadenv.c: Likewise.
5569 * commands/memrw.c: Likewise.
5570 * commands/password.c: Likewise.
5571 * commands/videotest.c: Likewise.
5572 * disk/ata.c: Likewise.
5573 * disk/ata_pthru.c: Likewise.
5574 * disk/dmraid_nvidia.c: Likewise.
5575 * disk/ieee1275/nand.c: Likewise.
5576 * disk/ieee1275/ofdisk.c: Likewise.
5577 * disk/loopback.c: Likewise.
5578 * disk/lvm.c: Likewise.
5579 * disk/mdraid_linux.c: Likewise.
5580 * disk/raid.c: Likewise.
5581 * disk/raid6_recover.c: Likewise.
5582 * disk/scsi.c: Likewise.
5583 * efiemu/main.c: Likewise.
5584 * efiemu/mm.c: Likewise.
5585 * efiemu/pnvram.c: Likewise.
5586 * efiemu/symbols.c: Likewise.
5587 * font/font.c: Likewise.
5588 * fs/cpio.c: Likewise.
5589 * fs/hfsplus.c: Likewise.
5590 * fs/iso9660.c: Likewise.
5591 * fs/jfs.c: Likewise.
5592 * fs/minix.c: Likewise.
5593 * fs/ntfs.c: Likewise.
5594 * fs/ntfscomp.c: Likewise.
5595 * fs/reiserfs.c: Likewise.
5596 * fs/ufs.c: Likewise.
5597 * fs/xfs.c: Likewise.
5598 * gettext/gettext.c: Likewise.
5599 * include/grub/auth.h: Likewise.
5600 * kern/elf.c: Likewise.
5601 * kern/file.c: Likewise.
5602 * kern/ieee1275/init.c: Likewise.
5603 * kern/ieee1275/mmap.c: Likewise.
5604 * kern/ieee1275/openfw.c: Likewise.
5605 * kern/powerpc/dl.c: Likewise.
5606 * kern/sparc64/dl.c: Likewise.
5607 * lib/arg.c: Likewise.
5608 * loader/i386/bsd.c: Likewise.
5609 * loader/i386/bsdXX.c: Likewise.
5610 * loader/i386/efi/linux.c: Likewise.
5611 * loader/i386/efi/xnu.c: Likewise.
5612 * loader/i386/ieee1275/linux.c: Likewise.
5613 * loader/i386/linux.c: Likewise.
5614 * loader/i386/multiboot.c: Likewise.
5615 * loader/i386/pc/linux.c: Likewise.
5616 * loader/i386/pc/multiboot2.c: Likewise.
5617 * loader/i386/xnu.c: Likewise.
5618 * loader/ieee1275/multiboot2.c: Likewise.
5619 * loader/macho.c: Likewise.
5620 * loader/machoXX.c: Likewise.
5621 * loader/multiboot2.c: Likewise.
5622 * loader/multiboot_loader.c: Likewise.
5623 * loader/powerpc/ieee1275/linux.c: Likewise.
5624 * loader/sparc64/ieee1275/linux.c: Likewise.
5625 * loader/xnu.c: Likewise.
5626 * loader/xnu_resume.c: Likewise.
5627 * mmap/i386/pc/mmap.c: Likewise.
5628 * normal/menu_viewer.c: Likewise.
5629 * partmap/acorn.c: Likewise.
5630 * partmap/amiga.c: Likewise.
5631 * partmap/apple.c: Likewise.
5632 * script/lexer.c: Likewise.
5633 * term/gfxterm.c: Likewise.
5634 * term/i386/pc/serial.c: Likewise.
5635 * term/i386/pc/vga.c: Likewise.
5636 * term/ieee1275/ofconsole.c: Likewise.
5637 * term/terminfo.c: Likewise.
5638 * video/bitmap.c: Likewise.
5639 * video/efi_gop.c: Likewise.
5640 * video/efi_uga.c: Likewise.
5641 * video/fb/video_fb.c: Likewise.
5642 * video/i386/pc/vbe.c: Likewise.
5643 * video/readers/tga.c: Likewise.
5644 * video/video.c: Likewise.
5645
0ad46fd7 56462009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
5647
5648 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
5649 * commands/lspci.c: Likewise.
5650 * commands/probe.c: Likewise.
5651 * commands/xnu_uuid.c: Likewise.
5652 * conf/i386-coreboot.rmk: Likewise.
5653 * conf/i386-efi.rmk: Likewise.
5654 * conf/i386-ieee1275.rmk: Likewise.
5655 * conf/i386-pc.rmk: Likewise.
5656 * conf/powerpc-ieee1275.rmk: Likewise.
5657 * conf/sparc64-ieee1275.rmk: Likewise.
5658 * conf/x86_64-efi.rmk: Likewise.
5659 * fs/i386/pc/pxe.c: Likewise.
5660 * gettext/gettext.c: Likewise.
5661 * include/grub/efi/graphics_output.h: Likewise.
5662 * include/grub/i386/pc/memory.h: Likewise.
5663 * kern/env.c: Likewise.
5664 * kern/i386/qemu/startup.S: Likewise.
5665 * lib/i386/pc/biosnum.c: Likewise.
5666 * lib/i386/relocator.c: Likewise.
5667 * lib/i386/relocator_asm.S: Likewise.
5668 * lib/relocator.c: Likewise.
5669 * loader/i386/bsd.c: Likewise.
5670 * loader/i386/multiboot.c: Likewise.
5671 * loader/i386/pc/chainloader.c: Likewise.
5672 * loader/i386/xnu.c: Likewise.
5673 * loader/xnu.c: Likewise.
5674 * normal/main.c: Likewise.
5675 * normal/menu_text.c: Likewise.
5676 * util/getroot.c: Likewise.
5677 * util/grub-mkconfig_lib.in: Likewise.
5678 * util/grub.d/00_header.in: Likewise.
5679 * util/i386/pc/grub-mkimage.c: Likewise.
5680 * util/mkisofs/eltorito.c: Likewise.
5681 * util/mkisofs/exclude.h: Likewise.
5682 * util/mkisofs/hash.c: Likewise.
5683 * util/mkisofs/iso9660.h: Likewise.
5684 * util/mkisofs/joliet.c: Likewise.
5685 * util/mkisofs/mkisofs.c: Likewise.
5686 * util/mkisofs/mkisofs.h: Likewise.
5687 * util/mkisofs/multi.c: Likewise.
5688 * util/mkisofs/name.c: Likewise.
5689 * util/mkisofs/rock.c: Likewise.
5690 * util/mkisofs/tree.c: Likewise.
5691 * util/mkisofs/write.c: Likewise.
5692 * video/efi_gop.c: Likewise.
5693
009ec743
VS
56942009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
5695
5696 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
5697 size counting.
5698
0ad46fd7 56992009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
5700
5701 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
5702 * genmk.rb (class SCRIPT): Modify the target file instead of source.
5703
d3d30ea0
VS
57042009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5705
5706 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
5707 (GRUB_MOD_INIT(memrw)): Update help line.
5708
a34f5c70
VS
57092009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5710
5711 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
5712 Use grub_extcmd_t. All users updated.
5713 (options): New variable.
5714 (grub_cmd_read): Restructure for readability. Support "-v" option.
5715 (grub_cmd_write): Restructure for readability.
5716
0ad46fd7 57172009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
5718
5719 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
5720
0ad46fd7 57212009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
5722
5723 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
5724 with the actual contents of the correspondending make variable.
5725 * util/grub-mkrescue.in (pkglib_DATA): New variable.
5726 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
5727 specifying `*.lst' and `efiemu??.o'
5728
0ad46fd7 57292009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
5730
5731 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
5732 after function name.
5733 Noticed by Rene Engelhard <rene@debian.org>.
5734
dc77a799
VS
57352009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5736
5737 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
5738 (options): New variable.
5739 (iospace): Likewise.
5740 (grub_lspci_iter): List IO spaces if "-i" was given.
5741 (grub_cmd_lspci): Parse options.
5742 (GRUB_MOD_INIT(lspci)): Use extcmd.
5743 (GRUB_MOD_FINI(lspci)): Likewise.
5744
0ad46fd7 57452009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
5746
5747 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
5748 `function' keyword.
5749 Patch by Tony Mancill <tmancill@debian.org>.
5750
b5d5993b
VS
57512009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5752
5753 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
5754 (grub_uhci_portstatus): Likewise.
5755 (grub_uhci_portstatus): Add necessary delay.
11d18281 5756 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 5757
941903f2 57582009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 5759
941903f2 5760 * commands/acpi.c (options): Fix capitalizations and/or full stops.
5761 (GRUB_MOD_INIT): Likewise.
5762 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 5763 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
5764 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 5765 * commands/efi/loadbios.c (enable_rom_area): Likewise.
5766 (enable_rom_area): Likewise.
5767 (GRUB_MOD_INIT): Likewise.
5768 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
5769 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
5770 * commands/handler.c (GRUB_MOD_INIT): Likewise.
5771 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
5772 * commands/hexdump.c (options): Likewise.
5773 * commands/i386/cpuid.c (options): Likewise.
5774 (GRUB_MOD_INIT): Likewise.
5775 * commands/i386/pc/drivemap.c (options): Likewise.
5776 (GRUB_MOD_INIT): Likewise.
5777 * commands/i386/pc/halt (options): Likewise.
5778 (GRUB_MOD_INIT): Likewise.
5779 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
5780 * commands/i386/pc/pxecmd.c (options): Likewise.
5781 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
5782 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
5783 * commands/keystatus.c (options): Likewise.
5784 (GRUB_MOD_INIT): Likewise.
5785 * commands/loadenv.c (options): Likewise.
5786 * commands/ls.c (options): Likewise.
5787 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
5788 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
5789 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
5790 * commands/parttool.c (helpmsg): Likewise.
5791 * commands/probe.c (options): Likewise.
5792 * commands/read.c (GRUB_MOD_INIT): Likewise.
5793 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
5794 * commands/search.c (options): Likewise.
5795 * commands/sleep.c (options): Likewise.
5796 * commands/test.c (GRUB_MOD_INIT): Likewise.
5797 * commands/true.c (GRUB_MOD_INIT): Likewise.
5798 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
5799 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
5800 * lib/arg.c (help_options): Likewise.
e9bbb4e7 5801 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
5802 `$(XGETTEXT)'.
98a50553 5803 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 5804
0ad46fd7 58052009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 5806
ef3c2c3a 5807 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
5808 instead of specifying them explicit.
5809
7922f68b
RM
58102009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5811
5812 * NEWS: Add grub-probe support for GNU/Hurd.
5813
537ce47f
RM
58142009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5815
5816 * NEWS: gettext was added after 1.97.
5817
9b214e3a
RM
58182009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5819
5820 * util/mkisofs/msdos_partition.h: New file (based on
5821 include/grub/msdos_partition.h).
5822 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
5823 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
5824 (ld_options, main): Recognize --protective-msdos-label.
5825 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
5826 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
5827 (padblock_write): If `use_protective_msdos_label' is set, patch a
5828 protective DOS-style label in the output image.
5829
5830 * util/grub-mkrescue.in: Use --protective-msdos-label.
5831
e9309813
RM
58322009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5833
5834 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
5835 boot.
5836
0ae56929
RM
58372009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5838
5839 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
5840 variables.
5841 (ld_options, main): Recognize `--embedded-boot'.
5842 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
5843 declarations.
5844 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
5845 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
5846 (padblock_write): Likewise. Rewrite to support embedded boot image.
5847
5848 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
5849 for BIOS-based disk boot instead of only ElTorito.
5850
b15937b1
RM
58512009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5852
5853 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
5854 build (not needed for bootstrap).
5855
52cc3ce0
RM
58562009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5857
5858 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
5859 from i386-pc build (not needed for bootstrap).
5860 Rewrite a pair of strings.
5861
36f5ff04
RM
58622009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5863
5864 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
5865
973c6c85 58662009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
5867
5868 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
5869
05d21547
AB
58702009-12-21 Andreas Born <futur.andy@googlemail.com>
5871
5872 * kern/env.c (grub_env_context_open): Mark exported variable for
5873 reexport.
5874
0175d51f
AB
58752009-12-21 Andreas Born <futur.andy@googlemail.com>
5876
5877 * kern/env.c (grub_env_export): Create nonexistent variables before
5878 exporting.
5879
7f39d92f 58802009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 5881
7f39d92f 5882 * include/grub/auth.h: Include `<grub/i18n.h>'.
5883 (GRUB_GET_PASSWORD): Gettextizze string.
5884 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
5885 menu_text.c.
5886 (grub_utf8_to_ucs4_alloc): Fix indentation.
5887 (grub_print_ucs4): Likewise.
5888 (grub_getstringwidth): Likewise.
5889 (print_message_indented): New declaration.
5890 * normal/auth.c: Include `<grub/i18n.h>'.
5891 (grub_auth_check_authentication): Gettexttize string.
5892 * normal/cmdline.c: Include `<grub/i18n.h>'.
5893 (grub_cmdline_get): Gettextizze.
5894 * normal/color.c: Include `<grub/i18n.h>'.
5895 (grub_parse_color_name_pair): Gettexttize strings.
5896 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
5897 string (use `print_message_indented').
5898 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
5899 `include/grub/normal.h'.
5900 (print_message_indented): Renamed to ...
5901 (grub_print_message_indented): ... this. Remove `static' qualifer (now
5902 used in normal/main.c).
5903 (print_message): Use `grub_print_message_indented' instead of
5904 `print_message_indented'.
5905 (print_timeout): Likewise.
5906 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
5907 (grub_normal_print_device_info): Gettexttize strings.
5908 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
5909
3041d898
VS
59102009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
5911
5912 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
5913 of arguments. Return number of tokens and not arguments. All users
5914 updated.
5915
de15bf8e
VS
59162009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
5917
5918 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
5919 non-MSDOS paritions.
5920
e0a6ca52
VS
59212009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
5922
5923 * include/grub/types.h (UNUSED): Removed since it conflicts with
5924 NetBSD headers. All users changed to direct __attribute__ ((unused)).
5925 Reported by Grégoire Sutre.
5926
b99518d1 59272009-12-19 Carles Pina i Estany <carles@pina.cat>
5928
5929 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
5930 (grub_print_ucs4_alloc): Likewise.
5931 (grub_getstringwidth): Likewise.
5932 * normal/main.c (grub_normal_init_page): Gettextize version string.
5933 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
5934 (getstringwidth): Renamed to ...
5935 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
5936 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
5937 (grub_print_ucs4): Remove `static' qualifer (now used in
5938 normal/main.c).
5939 * po/POTFILES: Add normal/main.c.
5940
bfd5e52b 59412009-12-19 Carles Pina i Estany <carles@pina.cat>
5942
5943 * normal/menu_text.c (STANDARD_MARGIN): New macro.
5944 (print_message_indented): Add `margin_left' and `margin_right'
5945 parameters.
5946 (print_message): Update `print_message_indented' calls. Adds '\n' to the
5947 strings.
5948 (print_timeout): Use `print_message_indented' to print the message.
5949 Deletes `second_stage' parameter.
5950 (run_menu): Update `print_timeout' calls.
5951
5a1ad2b9
VS
59522009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
5953
5954 Fix console palette on OpenFirmware.
5955
5956 * term/ieee1275/ofconsole.c (MAX): Removed.
5957 (colors): Redone based on VGA palette.
5958 (grub_ofconsole_setcolor): Discard brightness bit since only 8
5959 colors are supported.
5960 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
5961
b045f00a
VS
59622009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
5963
5964 Fix potential EfiEmu double prepare.
5965
5966 * efiemu/main.c (prepared): New variable
5967 (grub_efiemu_unload): Set prepare to '0'.
5968 (grub_efiemu_prepare): Return if already prepared. Set prepared.
5969
5970 set_virtual_address_map support.
5971
5972 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
5973 prototype.
5974 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
5975 prototype.
5976 (grub_efiemu_crc32): Likewise.
5977 (grub_efiemu_crc64): Likewise.
5978 (grub_efiemu_set_virtual_address_map): Likewise.
5979 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
5980 New definition.
5981 (grub_autoefi_set_virtual_address_map): Likewise.
5982 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
5983 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
5984 Restructure flow to accomodate it.
5985 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
5986 (grub_efiemu_crc): Recompute CRC32.
5987 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
5988 (efiemu_ptv_relocated): ... this. Made global. All users updated.
5989 * efiemu/symbols.c (relocated_handle): New variable.
5990 (grub_efiemu_free_syms): Free relocated_handle.
5991 (grub_efiemu_alloc_syms): Allocate relocated_handle.
5992 (grub_efiemu_write_sym_markers): New function.
5993 (grub_efiemu_set_virtual_address_map): Likewise.
5994
5995 Newer XNU parameters.
5996
5997 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
5998 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
5999 (grub_xnu_fill_devicetree): New prototype.
6000 (grub_xnu_heap_real_start): New variable.
6001 * loader/xnu.c (get_name_ptr): New function.
6002 (grub_xnu_load_driver): Fill namelen and name.
6003
6004 64-bit xnu support.
6005
6006 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
6007 and 'loader/macho64.c'.
6008 * conf/i386-pc.rmk: Likewise.
6009 * conf/x86_64-efi.rmk: Likewise.
6010 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
6011 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
6012 * include/grub/macho.h (grub_macho_segment64): New structure.
6013 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
6014 (grub_macho_size32): ... to this.
6015 (grub_macho32_get_entry_point): Renamed from ...
6016 (grub_macho_get_entry_point32): ... to this.
6017 (grub_macho_contains_macho64): New prototype.
6018 (grub_macho_size64): Likewise.
6019 (grub_macho_get_entry_point64): Likewise.
6020 (grub_macho32_load): Renamed from ...
6021 (grub_macho_load32): ... to this.
6022 (grub_macho32_filesize): Renamed from ...
6023 (grub_macho_filesize32): ... to this.
6024 (grub_macho32_readfile): Renamed from ...
6025 (grub_macho_readfile32): ... to this.
6026 (grub_macho_filesize64): New prototype.
6027 (grub_macho_readfile64): Likewise.
6028 (grub_macho_parse32): Likewise.
6029 (grub_macho_parse64): Likewise.
6030 * loader/macho.c: Split into ...
6031 * loader/machoXX.c: ... and this. Replace 32 with XX.
6032 * loader/macho32.c: New file.
6033 * loader/macho64.c: Likewise.
6034 * loader/xnu.c (grub_xnu_is_64bit): New variable.
6035 (grub_cmd_xnu_kernel): Make 32-bit only.
6036 (grub_cmd_xnu_kernel64): New function.
6037 (grub_xnu_load_driver): Support Mach-O 64.
6038 (grub_cmd_xnu_mkext): Likewise.
6039 * util/grub.d/30_os-prober.in (osx_entry): New function.
6040 Generate entries for 64-bit boot too.
6041
6042 Eliminate ad-hoc tree format in XNU and EfiEmu.
6043
6044 * efiemu/main.c (grub_efiemu_prepare): Update comment.
6045 * efiemu/pnvram.c: Rewritten to use environment variables.
6046 All users updated.
6047
6048 Inline utf16_to_utf8.
6049
6050 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
6051 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
6052 All users updated.
6053 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
6054
6055 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
6056 * commands/usbtest.c (grub_usb_get_string): ... move here.
6057 (usb_print_str): Fix error handling.
6058 * include/grub/usb.h (grub_usb_get_string): Remove.
6059
6060 UTF-8 to UTF-16 transformation.
6061
6062 * conf/common.rmk (pkglib_MODULES): Add charset.mod
6063 (charset_mod_SOURCES): New variable.
6064 (charset_mod_CFLAGS): Likewise.
6065 (charset_mod_LDFLAGS): Likewise.
6066 * include/grub/utf.h: New file.
6067 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
6068
6069 Support for device properties.
6070
6071 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
6072 (grub_xnu_devprop_device_header): Likewise.
6073 (grub_xnu_devprop_device_descriptor): Likewise.
6074 (grub_xnu_devprop_add_device): New prototype.
6075 (grub_xnu_devprop_remove_device): Likewise.
6076 (grub_xnu_devprop_remove_property): Likewise.
6077 (grub_xnu_devprop_add_property_utf8): Likewise.
6078 (grub_xnu_devprop_add_property_utf16): Likewise.
6079 (grub_cpu_xnu_init): Likewise.
6080 (grub_cpu_xnu_fini): Likewise.
6081 (grub_cpu_xnu_unload): Likewise.
6082 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
6083 (property_descriptor): Likewise.
6084 (devices): New variable.
6085 (grub_xnu_devprop_remove_property): New function.
6086 (grub_xnu_devprop_add_device): Likewise.
6087 (grub_xnu_devprop_remove_device): Likewise.
6088 (grub_xnu_devprop_add_property): Likewise.
6089 (grub_xnu_devprop_add_property_utf8): Likewise.
6090 (grub_xnu_devprop_add_property_utf16): Likewise.
6091 (hextoval): Likewise.
6092 (grub_cpu_xnu_fill_devprop): Likewise.
6093 (grub_cmd_devprop_load): Likewise.
6094 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
6095 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
6096 (cmd_devprop_load): New variable.
6097 (grub_cpu_xnu_init): New function.
6098 (grub_cpu_xnu_fini): Likewise.
6099 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
6100 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
6101 (grub_cmd_xnu_devtree): Likewise.
6102 (hextoval): New function.
6103 (unescape): Likewise.
6104 (grub_xnu_fill_devicetree): Likewise.
6105
6106 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
6107 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
6108
0945f181
VS
61092009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6110
6111 Workaround for broken ATI VBE.
6112
6113 * video/i386/pc/vbe.c (last_set_mode): New variable.
6114 (grub_vbe_set_video_mode): Set 'last_set_mode'.
6115 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
6116 (grub_video_vbe_setup): Don't check for reserved flag.
6117
0ad46fd7 61182009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
6119
6120 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
6121 the `find' command.
6122
c179ebe4
VS
61232009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
6124
6125 UUID support for HFS.
6126
6127 * fs/hfs.c (grub_hfs_uuid): New function.
6128 (grub_hfs_fs): New value .uuid.
6129 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
6130
0ad46fd7 61312009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
6132
6133 Fix a segfault with parsing unknown long options.
6134
6135 * util/grub-mkrelpath.c (options): Zero terminate it.
6136
c4a3e41a
CPE
61372009-12-13 Carles Pina i Estany <carles@pina.cat>
6138
6139 * include/grub/misc.h (grub_puts): New declaration.
6140 (grub_puts_): Likewise.
a22008a6 6141 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
6142 (grub_puts_): Likewise.
6143
2e8a7602
RM
61442009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6145
6146 * util/grub-probe.c (probe): Improve error message.
6147
b50b77b9
RM
61482009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6149
6150 * loader/i386/multiboot_elfxx.c
6151 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
6152 initialization.
6153
61542009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6155
6156 Relocator framework
6157
6158 * loader/i386/xnu_helper.S: Removed. All users updated.
6159 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
6160 (relocator_mod_SOURCES): New variable.
6161 (relocator_mod_CFLAGS): Likewise.
6162 (relocator_mod_LDFLAGS): Likewise.
6163 (relocator_mod_ASFLAGS): Likewise.
6164 * conf/x86_64.rmk: Likewise.
6165 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
6166 (grub_multiboot_payload_entry_offset): Likewise.
6167 (grub_multiboot_forward_relocator): Likewise.
6168 (grub_multiboot_forward_relocator_end): Likewise.
6169 (grub_multiboot_backward_relocator): Likewise.
6170 (grub_multiboot_backward_relocator_end): Likewise.
6171 (grub_multiboot_payload_eip): New variable.
6172 (grub_multiboot_payload_orig): Likewise.
6173 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
6174 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
6175 * include/grub/i386/memory.h
6176 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
6177 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
6178 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
6179 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
6180 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
6181 * include/grub/i386/relocator.h: New file.
6182 * include/grub/x86_64/relocator.h: Likewise.
6183 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
6184 (XNU_RELOCATOR): New macro.
6185 (grub_xnu_launcher_start): Remove.
6186 (grub_xnu_launcher_end): Likewise.
6187 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
6188 (grub_xnu_heap_real_start): Remove.
6189 (grub_xnu_heap_start): Change to void *. All users updated.
6190 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
6191 * lib/i386/relocator.c: New file.
6192 * lib/i386/relocator_asm.S: Likewise.
6193 * lib/i386/relocator_backward.S: Likewise.
6194 * lib/mips/relocator.c: Likewise.
6195 * lib/mips/relocator_asm.S: Likewise.
6196 * lib/relocator.c: Likewise.
6197 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
6198 (entry): Removed.
6199 (playground): Likewise.
6200 (grub_multiboot_payload_orig): New variable.
6201 (grub_multiboot_payload_dest): Likewise.
6202 (grub_multiboot_payload_size): Likewise.
6203 (grub_multiboot_payload_eip): Likewise.
6204 (grub_multiboot_payload_esp): Likewise.
6205 (grub_multiboot_boot): Use grub_relocator32_boot.
6206 (grub_multiboot_unload): Free relocators.
6207 (grub_multiboot): Setup stack. Use relocators.
6208 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
6209 (grub_multiboot_load_elfXX): Use relocators.
6210 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
6211 (grub_multiboot_payload_size): Likewise.
6212 (grub_multiboot_payload_dest): Likewise.
6213 (grub_multiboot_payload_entry_offset): Likewise.
6214 (grub_multiboot_forward_relocator): Likewise.
6215 (grub_multiboot_backward_relocator): Likewise.
6216 (grub_multiboot_real_boot): Likewise.
6217 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
6218 (grub_xnu_entry_point): Likewise.
6219 (grub_xnu_arg1): Likewise.
6220 (grub_xnu_stack): Likewise.
6221 (grub_xnu_launch): Removed.
6222 (grub_xnu_boot_resume): New function.
6223 (grub_xnu_boot): Use relocators.
6224 * loader/i386/xnu_helper.S: Removed.
6225 * loader/xnu.c (grub_xnu_heap_start): New variable.
6226 (grub_xnu_heap_size): Likewise.
6227 (grub_xnu_heap_malloc): Use relocators.
6228 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
6229
29eb90c6
VS
62302009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6231
6232 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
6233 anything.
6234
31027430
CPE
62352009-12-13 Carles Pina i Estany <carles@pina.cat>
6236
6237 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
6238 GRUB_ERR_NONE before calling grub_env_set.
6239
dc0c71d9
RM
62402009-12-12 Robert Millan <rmh@aybabtu.com>
6241
6242 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
6243 * genmk.rb (video): New variable.
6244 (CLEANFILES, VIDEOFILES): Add #{video}.
6245 (#{video}): New target rule.
6246 * genvideolist.sh: New file.
6247 * Makefile.in (pkglib_DATA): Add video.lst.
6248 (video.lst): New target rule.
6249 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
6250 `video.lst'.
6251 * util/grub.d/30_os-prober.in: Replace `vbe' with
6252 ${GRUB_VIDEO_BACKEND}.
6253
2a4bfcf0
RM
62542009-12-11 Robert Millan <rmh.grub@aybabtu.com>
6255
6256 * THANKS: Add David Miller.
6257
2a3aa4d5
RM
62582009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
6259
6260 libpciaccess support.
6261
6262 * Makefile.in (LIBPCIACCESS): New variable.
6263 (enable_grub_emu_pci): Likewise.
6264 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
6265 util/pci.c and commands/lspci.c.
6266 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
6267 * configure.ac (grub-emu-pci): New option.
6268 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
6269 (grub_pci_device_unmap_range): Likewise.
6270 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
6271 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
6272 (grub_pci_address_t) [!GRUB_UTIL]: New type.
6273 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
6274 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
6275 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
6276 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
6277 * include/grub/pciutils.h: New file.
6278 * util/pci.c: Likewise.
6279
0ad46fd7 62802009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
6281
6282 * util/misc.c: Don't include <errno.h> twice.
6283
0ad46fd7 62842009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
6285
6286 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
6287 name in an error message.
6288 (grub_biosdisk_rw): Likewise.
6289
2e59983c
VS
62902009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6291
6292 Eliminate NTFS 4Gib barrier.
6293
6294 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
6295 (read_run_data): Likewise.
6296 (grub_ntfs_read_run_list): Likewise.
6297 (grub_ntfs_read_block): Likewise.
6298 (grub_ntfs_iterate_dir): Likewise.
6299 (read_mft): Likewise.
6300 (read_data): Likewise.
6301 Use COM_LOG_LEN.
6302 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
6303 to avoid 64-bit division
6304 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
6305 (grub_ntfs_rlst): Use grub_disk_addr_t.
6306
71ee178a
VS
63072009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6308
6309 Eliminate grub-fstest 4Gib barrier.
6310
6311 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
6312 (read_file): Fix error reporting.
6313
2520d4b8
VS
63142009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6315
6316 Eliminate hexdump 4Gib barrier.
6317
6318 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
6319 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
6320
e1f27065
VS
63212009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6322
6323 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
6324 Fixes amarsh bug.
6325
1a0f7f45
RM
63262009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
6327
6328 Remove miscellaneous files in distclean target.
6329
6330 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
6331
c631d9fb
CW
63322009-12-09 Colin Watson <cjwatson@ubuntu.com>
6333
6334 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
6335 if they're already set. This resolves the conflict between my
6336 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
6337 fixing the --grub-probe option again.
6338 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
6339 change on 2009-10-06, so that we now once again source
6340 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
6341
7c7b6106
RM
63422009-12-08 Robert Millan <rmh.grub@aybabtu.com>
6343
6344 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
6345 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
6346 `util/devicemap.c'.
6347
e3069ec1
CPE
63482009-12-08 Carles Pina i Estany <carles@pina.cat>
6349
6350 * include/grub/misc.h (grub_printf_): New declaration.
6351 * kern/misc.c (grub_printf_): New definition.
6352 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
6353 instead of `grub_printf' and `_'.
6354 * normal/menu_entry.c (store_completion): Likewise.
6355 (run): Likewise.
6356 (grub_menu_entry_run): Likewise.
6357 * normal/menu_text.c (grub_wait_after_message): Likewise.
6358 (notify_booting): Likewise.
6359 (notify_fallback): Likewise.
6360 (notify_execution_failure): Likewise.
6361
d6ceebf1
CW
63622009-12-07 Colin Watson <cjwatson@ubuntu.com>
6363
6364 * configure.ac: Check for vasprintf.
6365 * util/misc.c (asprintf): Move allocation from here ...
6366 (vasprintf): ... to here. New function.
6367 (xasprintf): New function.
6368 * include/grub/util/misc.h (vasprintf, xasprintf): Add
6369 prototypes.
6370 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
6371 * util/grub-mkfont.c (write_font): Likewise.
6372 * util/grub-probe.c (probe): Likewise.
6373 * util/hostdisk.c (make_device_name): Likewise.
6374
de6daa8b
DM
63752009-12-06 David S. Miller <davem@sunset.davemloft.net>
6376
6377 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
6378 anything even prefixed with 'cdrom' as a cdrom.
6379
0ad46fd7 63802009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
6381
6382 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
6383 mount points.
6384
98d3dc02
CPE
63852009-12-05 Carles Pina i Estany <carles@pina.cat>
6386
6387 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
6388 grub_gettext_msg_list.
6389 (grub_gettext_gettranslation_from_position): Return const char *
6390 and not char *.
a2c1332b 6391 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
6392 returns from the list if existing there.
6393 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
6394 (grub_gettext_delete_list): Delete the list.
6395 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
6396 lang environment variable is changed.
6397 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
6398
b283f108
VS
63992009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6400
6401 Rename kernel.mod to kernel.img.
6402
6403 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
6404 (kernel_mod_EXPORTS): Rename to ...
6405 (kernel_img_EXPORTS): ... this.
6406 (kernel_mod_SOURCES): Rename to ...
6407 (kernel_img_SOURCES): ... this.
6408 (kernel_mod_HEADERS): Rename to ...
6409 (kernel_img_HEADERS): ... this. All users updated.
6410 (kernel_mod_CFLAGS): Rename to ...
6411 (kernel_img_CFLAGS): ... this.
6412 (kernel_mod_ASFLAGS): Rename to ...
6413 (kernel_img_ASFLAGS): ... this.
6414 (kernel_mod_LDFLAGS): Rename to ...
6415 (kernel_img_LDFLAGS): ... this.
6416 * conf/x86_64-efi.rmk: Likewise.
6417 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
6418 (read_kernel_image): ... this. All users updated.
6419 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
6420
69055f8a
CPE
64212009-12-05 Carles Pina i Estany <carles@pina.cat>
6422
6423 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
6424 (print_spaces): New function.
6425 (grub_print_ucs4): New function.
6426 (getstringwidth): New function.
6427 (print_message_indented): New function.
6428 (print_message): Gettexttize strings using print_message_indented.
6429 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
6430 width.
6431 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 6432 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
6433 Gettextize.
6434 * normal/menu_entry.c (store_completion): Cleanup the gettextized
6435 string.
6436 (run): Likewise.
6437 (grub_menu_entry_run): Likewise.
6438 * PO/POTFILES: Add normal/menu_entry.c.
6439
f616f51c
VS
64402009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6441
6442 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
6443
57bbe3be
CPE
64442009-12-05 Carles Pina i Estany <carles@pina.cat>
6445
6446 * util/grub-install.in: Install gettext .mo files.
6447 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
6448
013d67a1
CPE
64492009-12-05 Carles Pina i Estany <carles@pina.cat>
6450
6451 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
6452 grub_dprintf.
6453
fb954db0
RM
64542009-12-05 Robert Millan <rmh.grub@aybabtu.com>
6455
6456 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
6457 non-firmware-dependant one in realmode.S takes precedence.
6458
6b8474f8
RM
64592009-12-04 Robert Millan <rmh.grub@aybabtu.com>
6460
6461 * commands/halt.c: Replace misc arch-specific headers with
6462 `<grub/misc.h>'.
6463 * commands/reboot.c: Likewise.
6464 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
6465 `<grub/misc.h>'.
6466 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
6467 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
6468 (kernel_img_SOURCES): ... to here.
6469
6470 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
6471 * include/grub/i386/pc/init.h: Likewise.
6472 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
6473 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
6474
6475 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
6476
6477 * include/grub/i386/halt.h: Remove.
6478 * include/grub/i386/reboot.h: Likewise.
6479
6480 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
6481
4b2e6ca2
DM
64822009-12-03 David S. Miller <davem@sunset.davemloft.net>
6483
6484 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
6485 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
6486 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
6487 "progname.h"
6488 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6489 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6490 (usage): Add missing comma in printf.
6491
5239348f
RM
64922009-12-02 Robert Millan <rmh.grub@aybabtu.com>
6493
6494 Use the same reboot approach on i386 coreboot and qemu as we do on
6495 BIOS.
6496
6497 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
6498 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
6499 * kern/i386/reboot.c: Remove.
6500 * include/grub/i386/reboot.h (grub_reboot): Export function.
6501 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
6502 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
6503 0xf000:0xfff0 instead of 0xffff:0x0000.
6504 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
6505 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
6506
ef34cbd4
RM
65072009-11-30 Robert Millan <rmh.grub@aybabtu.com>
6508
6509 Fix $srcdir != $objdir build.
6510
6511 * Makefile.in (po/%.po): Rewrite as ...
6512 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
6513
dc9837ea
ST
65142009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
6515
6516 Fix GNU/Hurd grub-install crash.
6517 * util/grub-probe.c (probe): Try to access `path' only when it is not
6518 NULL.
6519
2f857f98
VS
65202009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6521
6522 Correct module naming.
6523
6524 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6525 (GRUB_MOD_INIT(efi_uga)): ... to this
6526 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6527 (GRUB_MOD_FINI(efi_uga)): ... to this
6528 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6529 (GRUB_MOD_INIT(efi_gop)): ... to this
6530 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6531 (GRUB_MOD_FINI(efi_gop)): ... to this
6532
c5448046
RM
65332009-11-28 Robert Millan <rmh.grub@aybabtu.com>
6534
6535 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
6536 translatable.
6537 (usage): Translate `arg' strings using gettext().
6538 Thanks to Jordi Mallach for the suggestion.
6539
c85184ad
VS
65402009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6541
6542 GOP support. Based on patch from Bean
6543 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
6544
6545 * video/efi_gop.c: New file.
6546 * include/grub/efi/graphics_output.h: Likewise.
6547 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
6548 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
6549 variables.
6550 * conf/x86_64-efi.rmk: Likewise.
6551
8a4c48d8
VS
65522009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6553
6554 Rename efi_fb to efi_uga.
6555
6556 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6557 'efi_uga.mod'.
6558 (efi_fb_mod_SOURCES): Rename this ...
6559 (efi_uga_mod_SOURCES): ... to this.
6560 (efi_fb_mod_CFLAGS): Rename this ...
6561 (efi_uga_mod_CFLAGS): ... to this.
6562 (efi_fb_mod_LDFLAGS): Rename this ...
6563 (efi_uga_mod_LDFLAGS): ... to this.
6564 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6565 'efi_uga.mod'.
6566 (efi_fb_mod_SOURCES): Rename this ...
6567 (efi_uga_mod_SOURCES): ... to this.
6568 (efi_fb_mod_CFLAGS): Rename this ...
6569 (efi_uga_mod_CFLAGS): ... to this.
6570 (efi_fb_mod_LDFLAGS): Rename this ...
6571 (efi_uga_mod_LDFLAGS): ... to this.
6572 * video/efi_fb.c: Move this ...
6573 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
6574
fb6c1a7b
RM
65752009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6576
6577 * po/README: New file. Explain our PO file workflow.
6578
3bc7896c
RM
65792009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6580
6581 * po/ChangeLog: Remove. Move relevant entries back to ...
6582 * ChangeLog: ... here.
6583 * po/ca.po: Remove (now handled by TLP).
6584 * po/id.po: Likewise.
6585 * po/zh_CN.po: Likewise.
6586 * Makefile.in (LINGUAS): Initialize in a way that supports
6587 empty set.
6588
9ed4841d
RM
65892009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6590
6591 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
6592 reliing on po/LINGUAS.
6593 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
6594 (po/%.po): ... this.
6595
0ad46fd7 65962009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
6597
6598 * util/i386/efi/grub-mkimage.c: Include "progname.h".
6599 (main): Use `program_name' instead of nonexistent `progname'.
6600
e30dd392
FZ
66012009-11-26 Felix Zielcke <fzielcke@z-51.de>
6602
6603 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6604 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
6605
7656de4f
RM
66062009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6607
6608 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
6609 commit.
6610 * conf/i386-efi.rmk: Likewise.
6611 * conf/i386-ieee1275.rmk: Likewise.
6612 * conf/powerpc-ieee1275.rmk: Likewise.
6613 * conf/sparc64-ieee1275.rmk: Likewise.
6614 * conf/x86_64-efi.rmk: Likewise.
6615
db77c4d4
FZ
66162009-11-26 Felix Zielcke <fzielcke@z-51.de>
6617
6618 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
6619
a755bb04
FZ
66202009-11-26 Felix Zielcke <fzielcke@z-51.de>
6621
6622 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
6623
8a4c07fd
RM
66242009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6625
6626 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
6627 (grub_mkdevicemap_SOURCES): New variable.
6628 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
6629 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
6630 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
6631 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
6632 (grub_mkdevicemap_SOURCES): Remove.
6633 * conf/i386-efi.rmk: Likewise.
6634 * conf/i386-ieee1275.rmk: Likewise.
6635 * conf/i386-pc.rmk: Likewise.
6636 * conf/powerpc-ieee1275.rmk: Likewise.
6637 * conf/sparc64-ieee1275.rmk: Likewise.
6638 * conf/x86_64-efi.rmk: Likewise.
6639 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
6640 (usage): Fix strings to use `program_name'.
6641 (main): Initialize gettext.
6642 * util/grub-editenv.c: Likewise.
6643 * util/grub-emu.c: Likewise.
6644 * util/grub-fstest.c: Likewise.
6645 * util/grub-mkdevicemap.c: Likewise.
6646 * util/grub-mkfont.c: Likewise.
6647 * util/grub-mkrelpath.c: Likewise.
6648 * util/grub-pe2elf.c: Likewise.
6649 * util/grub-probe.c: Likewise.
6650 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
6651 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6652 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6653
6654 * util/misc.c: Include `"progname.h"'.
6655 (progname): Remove variable.
6656 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
6657
6f61ed55
FZ
66582009-11-25 Felix Zielcke <fzielcke@z-51.de>
6659
6660 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
6661 printf and print a newline after the menuentry header line.
6662 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
6663
f022876b
FZ
66642009-11-25 Felix Zielcke <fzielcke@z-51.de>
6665
6666 autoconf >= 2.60 support $(localedir).
6667
6668 * INSTALL: Note that autoconf 2.60 is required.
6669 * configure.ac (AC_PREREQ): Bump to 2.60.
6670 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
6671 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
6672
6717926e
YB
66732009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
6674
6675 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
6676 aclocal is run.
6677
08806a54
RM
66782009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6679
6680 * normal/main.c (grub_normal_read_line): Fix off-by-one
6681 buffer overflow.
6682
13b33fba
RM
66832009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6684
6685 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
6686 "parser.grub" in grub_command_execute() call.
6687
4a8572e9
CPE
66882009-11-24 Carles Pina i Estany <carles@pina.cat>
6689
6690 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
6691 * conf/i386-efi.rmk: Likewise.
6692 * conf/i386-ieee1275.rmk: Likewise.
6693 * conf/i386-pc.rmk: Likewise.
6694 * conf/powerpc-ieee1275.rmk: Likewise.
6695 * conf/sparc64-ieee1275.rmk: Likewise.
6696 * conf/x86_64-efi.rmk: Likewise.
6697 * gettext/gettex.c: Include <grub/i18n.h>.
6698 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
6699 here ...
6700 * include/grub/i18n.h: ... to here
6701 * include/grub/i18n.h: ... to here.
6702 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 6703 (grub_gettext_dummy): Move above user.
4a8572e9 6704
bee48093
FZ
67052009-11-24 Felix Zielcke <fzielcke@z-51.de>
6706
6707 * util/Makefile.in (install-local): Convert a `for' into a normal
6708 shell expansion.
6709
a031e91c
RM
67102009-11-24 Robert Millan <rmh.grub@aybabtu.com>
6711
6712 * autogen.sh: Add automake call.
6713 * config.guess: Remove.
6714 * config.sub: Likewise.
6715 * install-sh: Likewise.
6716
26bec39d
FZ
67172009-11-24 Felix Zielcke <fzielcke@z-51.de>
6718
6719 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
6720
8e2532fd
FZ
67212009-11-24 Felix Zielcke <fzielcke@z-51.de>
6722
6723 * util/Makefile.in (install-local): Convert a make `$(foreach)'
6724 function to a normal shell `for'.
6725
fefa1b7d
FZ
67262009-11-24 Felix Zielcke <fzielcke@z-51.de>
6727
6728 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6729
4501250b
FZ
67302009-11-24 Felix Zielcke <fzielcke@z-51.de>
6731
6732 * util/grub-mkrelpath.c: New file.
6733 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
6734 (grub_mkrelpath_SOURCES): New variable.
6735 * include/grub/util/misc.h: New function prototype.
6736 * util/misc.c (make_system_path_relative_to_its_root): New function.
6737
6738 * util/grub-mkconfig_lib.in (bindir): New variable.
6739 (grub_mkrelpath): Likewise.
6740 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
6741
6742 * util/probe.c (probe): Make the file path relative to its root.
6743 Change a info message to use the GRUB path. Enable again the
6744 check if we can read the file with GRUB facilities.
6745
6746 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
6747 to its root.
6748
11d9778b
FZ
67492009-11-24 Felix Zielcke <fzielcke@z-51.de>
6750
6751 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
6752 platform.
6753
4465287d
FZ
67542009-11-24 Felix Zielcke <fzielcke@z-51.de>
6755
6756 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
6757 strncmp().
6758
62b47f22
FZ
67592009-11-24 Felix Zielcke <fzielcke@z-51.de>
6760
6761 * util/getroot.c (grub_util_is_dmraid): New function.
6762 (grub_util_get_dev_abstraction): Treat dmraid and multipath
6763 devices as normal ones, not as LVM.
6764
1eafb9b9 67652009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
6766
6767 * conf/common.rmk: Add grub-gettext_lib target and updates
6768 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
6769 LDFLAGS.
6770 * gettext/gettext.c: New file. (Reads mo files).
6771 * include/grub/file.h (grub_file_pread): New prototype.
6772 * include/grub/i18n.h (_): New prototype.
6773 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
6774 prototypes.
6775 * kern/misc.c (grub_gettext_dummy): New function.
6776 * normal/menu_text.c: Include <grub/i18n.h>.
6777 * normal/menu_text.c (print_timeout): Gettexttize string.
6778 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
6779 * po/POTFILES: Add `normal/menu_text.c'.
6780 * po/ca.po: Add new translations.
c3ea6bd4
CPE
6781 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
6782 gettext module and defines locale_dir and lang in grub.cfg.
6783 * NEWS: Add gettext support.
6784
0fdb2568
RM
67852009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6786
6787 * util/hostdisk.c: Include `<grub/i18n.h>'.
6788 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
6789 (make_device_name): Rewrite using asprintf.
6790 (convert_system_partition_to_system_disk): Replace 0 with NULL.
6791 (find_system_device): If a device is not found, generate one just
6792 by reusing the OS path name.
6793 (read_device_map): Make it permissible for device.map not to exist.
6794
f515aa62
RM
67952009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6796
6797 * script/sh/execute.c: Move from here ...
6798 * script/execute.c: ... to here. Update all users.
6799 * script/sh/function.c: Move from here ...
6800 * script/function.c: ... to here. Update all users.
6801 * script/sh/lexer.c: Move from here ...
6802 * script/lexer.c: ... to here. Update all users.
6803 * script/sh/main.c: Move from here ...
6804 * script/main.c: ... to here. Update all users.
6805 * script/sh/parser.y: Move from here ...
6806 * script/parser.y: ... to here. Update all users.
6807 * script/sh/script.c: Move from here ...
6808 * script/script.c: ... to here. Update all users.
6809
f84b481b
RM
68102009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6811
6812 * configure.ac: Detect all `emu' platforms. Define
6813 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
6814 --enable-grub-emu logic. Disable include/grub/machine
6815 symlink on `emu' platforms.
6816
6817 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
6818 * gensymlist.sh.in: Likewise.
6819
6820 * include/grub/i386/coreboot/machine.h: Remove file.
6821 * include/grub/i386/efi/machine.h: Likewise.
6822 * include/grub/i386/ieee1275/machine.h: Likewise.
6823 * include/grub/i386/pc/machine.h: Likewise.
6824 * include/grub/i386/qemu/machine.h: Likewise.
6825 * include/grub/powerpc/ieee1275/machine.h: Likewise.
6826 * include/grub/sparc64/ieee1275/machine.h: Likewise.
6827 * include/grub/x86_64/efi/machine.h: Likewise.
6828
6829 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
6830 * commands/halt.c: Likewise.
6831 * commands/reboot.c: Likewise.
6832 * include/grub/autoefi.h: Likewise.
6833 * include/grub/i386/at_keyboard.h: Likewise.
6834 * include/grub/i386/kernel.h: Likewise.
6835 * include/grub/i386/loader.h: Likewise.
6836 * include/grub/i386/pc/memory.h: Likewise.
6837 * kern/dl.c: Likewise.
6838 * kern/i386/coreboot/init.c: Likewise.
6839 * loader/i386/bsd.c: Likewise.
6840 * loader/i386/linux.c: Likewise.
6841 * loader/multiboot_loader.c: Likewise.
6842 * term/i386/pc/serial.c: Likewise.
6843 * term/usb_keyboard.c: Likewise.
6844
6845 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
6846 `<grub/machine/machine.h>'
6847 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
6848 * util/misc.c: Remove `<grub/machine/machine.h>' and
6849 `<grub/machine/time.h>'.
6850
6851 * Makefile.in (enable_grub_emu): Remove variable.
6852 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
6853
6854 * conf/any-emu.rmk: New file.
6855 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
6856 (grub_emu_init.c): Move from here ...
6857 * conf/any-emu.rmk: ... to here.
6858
6859 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
6860 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
6861 * conf/any-emu.rmk: ... to here.
6862
4efeab03
RM
68632009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6864
6865 * include/grub/parser.h (grub_parser_register): Document need
6866 of `name' parameter.
6867 * normal/main.c (grub_normal_read_line): Simplify prompt string.
6868 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
6869 "sh" to "grub".
6870
ea1dd8bf
RM
68712009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6872
6873 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
6874 `$(XGETTEXT)'.
6875 * include/grub/i18n.h (N_): New macro.
6876 * util/mkisofs/mkisofs.h: Likewise.
6877 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
6878 around N_().
6879 (usage): Use gettext() to translate help strings when printing them.
6880
0c140626
RM
68812009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6882
6883 Based on patch from Bean
6884 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
6885
6886 * video/efi_fb.c: New file.
6887 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
6888 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
6889 variables.
6890 * conf/x86_64-efi.rmk: Likewise.
6891
87d58298
RM
68922009-11-22 Robert Millan <rmh.grub@aybabtu.com>
6893
6894 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
6895 * util/i386/pc/grub-setup.c: Likewise.
6896
994cc3a3
ST
68972009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6898
6899 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
6900 <hurd/fs.h>
6901 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
6902 file_get_storage_info to implement grub_guess_root_device.
6903
26a61d6a
FZ
69042009-11-21 Felix Zielcke <fzielcke@z-51.de>
6905
6906 * Makefile.in (target): Use make's builtin $(shell) function
6907 instead of calling directly $(SHELL) to create the locale directories,
6908 inside the $(foreach) function.
6909
74ff1dd5
FZ
69102009-11-21 Felix Zielcke <fzielcke@z-51.de>
6911
6912 * util/grub-mkrescue.in: Print an error and usage if output option
6913 has not been given.
6914
0b787d0e
FZ
69152009-11-21 Felix Zielcke <fzielcke@z-51.de>
6916
6917 Patch from Loïc Minier <loic.minier@ubuntu.com>.
6918 * util/grub.d/30_os-prober.in: Cope with Linux entries where
6919 root and /boot are on different devices.
6920
1164b270
RM
69212009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6922
6923 Fix build for srcdir != objdir.
6924
6925 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
6926 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
6927 $(srcdir).
6928 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
6929 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
6930 reference for input.
6931
13774a2f
RM
69322009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6933
6934 * util/grub-mkrescue.in: Use source directory direcly (without copiing
6935 or hardlinking it). Remove -J option, Joliet is not compatible with
6936 multiple source directories.
6937
efda854e
RM
69382009-11-21 Carles Pina i Estany <carles@pina.cat>
69392009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6940
6941 * util/grub-mkrescue.in: Recognize `--override-directory' option.
6942 (process_input_dir): New function. Process an arbitrary input
6943 directory.
6944 Misc adjustments to support both "override mode" and system-wide mode.
6945
6c09890c
FZ
69462009-11-20 Felix Zielcke <fzielcke@z-51.de>
6947
6948 * configure.ac (UNIFONT_BDF): Rename to ...
6949 (FONT_SOURCE): ... this. Update all users.
6950
a797824f
FZ
69512009-11-20 Felix Zielcke <fzielcke@z-51.de>
6952
6953 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
6954 to the list of unifont files to look for.
6955
cd4f42b0
RM
69562009-11-19 Robert Millan <rmh.grub@aybabtu.com>
6957
6958 Patch from Joe Auricchio <jauricchio@gmail.com>
6959 * commands/minicmd.c (grub_mini_cmd_clear): New function.
6960 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
6961 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
6962
393c783d
FZ
69632009-11-19 Felix Zielcke <fzielcke@z-51.de>
6964
6965 * Makefile.in (install-local): Add a missing backslash.
6966
b2f1e327
FZ
69672009-11-19 Felix Zielcke <fzielcke@z-51.de>
6968
6969 * include/grub/x86_64/io.h: New file.
6970
f577f7a0
RM
69712009-11-19 Robert Millan <rmh.grub@aybabtu.com>
6972
6973 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
6974 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
6975 Include `"progname.h"'.
6976 (main): Initialize gettext.
6977 * util/i386/pc/grub-setup.c: Gettexttize.
6978 * util/i386/pc/grub-mkimage.c: Likewise.
6979
6980 * Makefile.in (po/*.po): Redefine as ...
6981 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
6982
3bc7896c
RM
6983 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
6984
c37943b6
RM
69852009-11-19 Robert Millan <rmh.grub@aybabtu.com>
6986
6987 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
6988 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
6989 (program_name): Remove.
6990 (main): Initialize gettext support.
6323f705
RM
6991 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
6992 Include `<libintl.h>'.
6993 (_): New macro.
c37943b6
RM
6994
6995 * util/mkisofs/eltorito.c: Gettexttize.
6996 * util/mkisofs/joliet.c: Likewise.
6997 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
6998 * util/mkisofs/multi.c: Likewise.
6999 * util/mkisofs/rock.c: Likewise.
7000 * util/mkisofs/tree.c: Likewise.
7001 * util/mkisofs/write.c: Likewise.
7002
3bc7896c
RM
7003 * po/POTFILES: Update with new files.
7004
5ce77c6e
RM
70052009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7006
7007 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
7008 * util/mkisofs/iso9660.h: Likewise.
7009 * util/mkisofs/joliet.c: Likewise.
7010 * util/mkisofs/mkisofs.c: Likewise.
7011 * util/mkisofs/mkisofs.h: Likewise.
7012 * util/mkisofs/rock.c: Likewise.
7013 * util/mkisofs/tree.c: Likewise.
7014 * util/mkisofs/write.c: Likewise.
7015
7016 * util/mkisofs/eltorito.c (rcsid): Remove.
7017 * util/mkisofs/hash.c: Likewise.
7018 * util/mkisofs/joliet.c: Likewise.
7019 * util/mkisofs/name.c: Likewise.
7020 * util/mkisofs/rock.c: Likewise.
7021 * util/mkisofs/tree.c: Likewise.
7022 * util/mkisofs/write.c: Likewise.
7023
1dabbc77
RM
70242009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7025
7026 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
7027 instead of static allocation.
7028 * util/mkisofs/match.h: Likewise.
7029
633877cb
RM
70302009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7031
3bc7896c
RM
7032 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
7033 and `util/grub.d/10_linux.in'.
633877cb
RM
7034 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
7035 translatable Shell files.
7036
af1c0c85
RM
70372009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7038
7039 * Makefile.in ($(srcdir)/aclocal.m4): New target.
7040
769ae37b
RM
70412009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7042
7043 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 7044 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
7045 * util/grub.d/10_kfreebsd.in (bindir): New variable.
7046 Add gettext initialization.
7047 (kfreebsd_entry): Make menuentry output translatable.
7048
70492009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7050
7051 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
7052 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
7053 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
7054 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
7055 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 7056 * po/LINGUAS: New file.
769ae37b
RM
7057
70582009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7059
7060 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
7061 other things).
7062 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
7063 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
7064 bindtextdomain() calls for gettext initialization.
7065
70662009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7067
7068 * gnulib/progname.c: New file (imported from Gnulib).
7069 * gnulib/progname.h: Likewise.
7070 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7071 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
7072 (usage): Replace `progname' with `program_name'.
7073 (main): Use set_program_name() for program name initialization.
7074
70752009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7076
7077 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
7078 from here ...
7079 * Makefile.in (CPPFLAGS): ... to here.
7080
70812009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7082
7083 * aclocal.m4: Move from here ...
7084 * acinclude.m4: ... to here.
7085 * autogen.sh: Add call to `aclocal'.
7086 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
7087
70882009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7089
7090 * Makefile.in (CLEANFILES): Add `po/*.mo'.
7091 (LINGUAS): New variable.
7092 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
7093 (install-local): Install MO files.
7094 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
7095 * include/grub/i18n.h: New file.
3bc7896c
RM
7096 * po/POTFILES: New file.
7097 * po/ca.po: New file.
769ae37b
RM
7098 * util/grub.d/10_linux.in (bindir): New variable.
7099 Add gettext initialization.
7100 (linux_entry): Make menuentry output translatable.
7101 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
7102 (usage): Make --help output translatable.
7103 (main): Initialize gettext.
7104
02c0a6ad
RM
71052009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7106
7107 * import_gcry.py: New file (written by Vladimir with minor
7108 adjustments).
7109 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
7110 ciphers.
7111 * INSTALL: Document that Python is required for bootstrap.
7112
71132009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7114
7115 Import ciphers from libgcrypt 1.4.4.
7116
7117 * lib/libgcrypt/cipher/ChangeLog
7118 * lib/libgcrypt/cipher/ac.c
7119 * lib/libgcrypt/cipher/arcfour.c
7120 * lib/libgcrypt/cipher/bithelp.h
7121 * lib/libgcrypt/cipher/blowfish.c
7122 * lib/libgcrypt/cipher/camellia-glue.c
7123 * lib/libgcrypt/cipher/camellia.c
7124 * lib/libgcrypt/cipher/camellia.h
7125 * lib/libgcrypt/cipher/cast5.c
7126 * lib/libgcrypt/cipher/cipher.c
7127 * lib/libgcrypt/cipher/crc.c
7128 * lib/libgcrypt/cipher/des.c
7129 * lib/libgcrypt/cipher/dsa.c
7130 * lib/libgcrypt/cipher/ecc.c
7131 * lib/libgcrypt/cipher/elgamal.c
7132 * lib/libgcrypt/cipher/hash-common.c
7133 * lib/libgcrypt/cipher/hash-common.h
7134 * lib/libgcrypt/cipher/hmac-tests.c
7135 * lib/libgcrypt/cipher/md.c
7136 * lib/libgcrypt/cipher/md4.c
7137 * lib/libgcrypt/cipher/md5.c
7138 * lib/libgcrypt/cipher/primegen.c
7139 * lib/libgcrypt/cipher/pubkey.c
7140 * lib/libgcrypt/cipher/rfc2268.c
7141 * lib/libgcrypt/cipher/rijndael-tables.h
7142 * lib/libgcrypt/cipher/rijndael.c
7143 * lib/libgcrypt/cipher/rmd.h
7144 * lib/libgcrypt/cipher/rmd160.c
7145 * lib/libgcrypt/cipher/rsa.c
7146 * lib/libgcrypt/cipher/seed.c
7147 * lib/libgcrypt/cipher/serpent.c
7148 * lib/libgcrypt/cipher/sha1.c
7149 * lib/libgcrypt/cipher/sha256.c
7150 * lib/libgcrypt/cipher/sha512.c
7151 * lib/libgcrypt/cipher/tiger.c
7152 * lib/libgcrypt/cipher/twofish.c
7153 * lib/libgcrypt/cipher/whirlpool.c
7154
af2f93ac
RM
71552009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7156
7157 Fix build for systems without error().
7158
7159 * gnulib/error.c: New file (imported from Gnulib).
7160 * gnulib/error.h: Likewise.
7161 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
7162 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
7163 (this variable is now used by error()).
7164
73fb3dd5
FZ
71652009-11-16 Felix Zielcke <fzielcke@z-51.de>
7166
814f5e96
FZ
7167 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
7168 instead of relying that char is signed.
73fb3dd5 7169
a691ca33
VS
71702009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7171
7172 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
7173 blocksize different from specified.
7174 (grub_pxefs_read): Likewise.
7175
2af8f0f4
FZ
71762009-11-16 Felix Zielcke <fzielcke@z-51.de>
7177
7178 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
7179
7180 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
7181 (grub_ata_readwrite): Likewise. Update 2 format strings.
7182 (grub_atapi_read): Likewise.
7183
7184 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
7185 * conf/i386.rmk (pkglib_MODULES): ... to here ...
7186 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
7187 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
7188 (ata_mod_LDFLAGS): Move from here ...
7189 * conf/i386.rmk: ... to here ...
7190 * conf/x86_64-efi.rmk: ... and here.
7191 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
7192 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
7193
83bdecaf
RM
71942009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7195
7196 Relicense multiboot.h, with RMS' blessing.
7197
7198 * include/multiboot.h: Change to X11 license.
7199
fd6fd3d7
RM
72002009-11-15 Robert Millan <rmh.grub@aybabtu.com>
7201
7202 Support --version in grub-mkisofs.
7203
7204 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
7205 (OPTION_VERSION): New macro.
7206 (ld_options): Recognize --version.
7207 (usage): Move `program_name' from here ...
7208 (program_name): ... to here. Add `static' qualifier.
7209 (main): Recognize `OPTION_VERSION'.
7210
16a88c49
FZ
72112009-11-15 Felix Zielcke <fzielcke@z-51.de>
7212
7213 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
7214 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
7215
a4158476
RM
72162009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7217
7218 Fix help2man generation for mkisofs.
7219
7220 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
7221 (usage): Send output to stdout (rather than stderr).
7222
fc2208b0
RM
72232009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7224
7225 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
7226 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7227 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
7228 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7229 (bin_SCRIPTS): Add `grub-mkfloppy'.
7230 (grub_mkfloppy_SOURCES): New variable.
7231
7232 * util/grub-mkrescue.in: New file.
7233 * util/i386/pc/grub-mkfloppy.in: New file.
7234
7235 * util/i386/coreboot/grub-mkrescue.in: Remove.
7236 * util/i386/pc/grub-mkrescue.in: Remove.
7237
8d0edf4a
RM
72382009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7239
7240 * include/grub/multiboot.h (struct grub_multiboot_header): Move
7241 from here ...
7242 * include/multiboot.h (struct multiboot_header): ... to here. Update
7243 all users.
7244 * include/grub/multiboot.h (struct grub_multiboot_info): Move
7245 from here ...
7246 * include/multiboot.h (struct multiboot_info): ... to here. Update
7247 all users.
7248 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
7249 from here ...
7250 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
7251 Update all users.
7252 * include/grub/multiboot.h (struct grub_mod_list): Move
7253 from here ...
7254 * include/multiboot.h (struct multiboot_mod_list): ... to here.
7255 Update all users.
7256
a73f5969
RM
72572009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7258
7259 * include/multiboot2.h (multiboot_word): Rename from this ...
7260 (multiboot2_word): ... to this. Update all users.
7261 (multiboot_header): Rename from this ...
7262 (multiboot2_header): ... to this. Update all users.
7263 (multiboot_tag_header): Rename from this ...
7264 (multiboot2_tag_header): ... to this. Update all users.
7265 (multiboot_tag_start): Rename from this ...
7266 (multiboot2_tag_start): ... to this. Update all users.
7267 (multiboot_tag_name): Rename from this ...
7268 (multiboot2_tag_name): ... to this. Update all users.
7269 (multiboot_tag_module): Rename from this ...
7270 (multiboot2_tag_module): ... to this. Update all users.
7271 (multiboot_tag_memory): Rename from this ...
7272 (multiboot2_tag_memory): ... to this. Update all users.
7273 (multiboot_tag_unused): Rename from this ...
7274 (multiboot2_tag_unused): ... to this. Update all users.
7275 (multiboot_tag_end): Rename from this ...
7276 (multiboot2_tag_end): ... to this. Update all users.
7277
1c8927f0
RM
72782009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7279
7280 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
7281 this platform we should support Multiboot1 first.
7282
7283 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
7284 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
7285 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
7286
6e1e0d89
RM
72872009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7288
7289 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
7290 of write calls (converting them to fwrite() if they aren't already).
7291 (get_torito_desc): Likewise.
7292 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
7293
7f2b34d8
RM
72942009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7295
7296 * util/i386/pc/grub-install.in: Move from here ...
7297 * util/grub-install.in: ... to here. Update all users.
7298
c0ef3311
CW
72992009-11-11 Colin Watson <cjwatson@ubuntu.com>
7300
7301 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
7302
e1f240ff
RM
73032009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7304
7305 Support for El Torito without floppy emulation.
7306
7307 * util/mkisofs/eltorito.c: Include `<errno.h>'.
7308 (init_boot_catalog): Improve error handling.
7309 (get_torito_desc): Don't use floppy emulation unless requested by
7310 user. Patch boot information table when requested via
7311 `-boot-info-table'.
7312 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
7313 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
7314 (use_boot_info_table): New variables.
7315 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
7316 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
7317 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
7318 `--eltorito-emul-floppy'.
7319 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
7320 and `OPTION_ELTORITO_EMUL_FLOPPY'.
7321 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
7322 (use_boot_info_table, get_731): New prototypes.
7323 * util/mkisofs/write.c (get_731): New function.
7324
af7d4de5
FZ
73252009-11-11 Felix Zielcke <fzielcke@z-51.de>
7326
7327 Fix the generation of the man page.
7328
7329 * util/pc/i386/grub-install.in: Source
7330 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
7331
2c55dbc0
RM
73322009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7333
7334 Large file support for grub-mkisofs.
7335
7336 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
7337 * util/mkisofs/mkisofs.c (next_extent, last_extent)
7338 (session_start): Upgrade type to `uint64_t'. Update all users.
7339 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
7340 (struct directory_entry): Upgrade type of `starting_block' and
7341 `size' to `uint64_t'. Update all users.
7342 (struct deferred): Remove unused structure.
7343 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
7344 Update all users.
7345 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
7346 file is larger than `UINT32_MAX'.
7347 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
7348 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
7349 return value.
7350 (struct deferred_write): Upgrade type of `extent' and `size' to
7351 `uint64_t'. Update all users.
7352 (last_extent_written): Upgrade type to `uint64_t'. Update all
7353 users.
7354 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
7355 Update all users. Upgrade type of `remain' to `int64_t' and
7356 `use' to `size_t'. Use error() to handle fread() errors.
7357 (write_files): Rely on write_one_file() rather than calling
7358 xfwrite() directly.
7359
6a9cead5
FZ
73602009-11-09 Felix Zielcke <fzielcke@z-51.de>
7361
7362 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
7363
4825d790
RM
73642009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7365
7366 * util/mkisofs/fnmatch.c: Remove.
7367 * util/mkisofs/getopt1.c: Likewise.
7368 * util/mkisofs/getopt.c: Likewise.
7369 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
7370 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
7371 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
7372 `gnulib/getopt1.c' and `gnulib/getopt.c'.
7373 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
7374
7375 * configure.ac: Detect `mingw32msvc' host_os.
7376 Check for lstat(), getuid() and getgid().
7377
7378 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
7379 instances of `u_char' with `uint8_t'.
7380
7381 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
7382 [!HAVE_GETUID] (getuid): New function (stub).
7383 [!HAVE_GETGID] (getgid): Likewise.
7384 [!HAVE_LSTAT] (lstat): Likewise.
7385 [!S_IROTH] (S_IROTH): New macro (dummy).
7386 [!S_IRGRP] (S_IRGRP): Likewise.
7387
84b860d8
RM
73882009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7389
7390 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
7391 conditional expression).
7392
66e9b712
RM
73932009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7394
7395 Import from Gnulib.
7396
7397 * gnulib/fnmatch.c: New file.
7398 * gnulib/fnmatch.h: Likewise.
7399 * gnulib/fnmatch_loop.c: Likewise.
7400 * gnulib/getopt.c: Likewise.
7401 * gnulib/getopt.h: Likewise.
7402 * gnulib/getopt1.c: Likewise.
7403 * gnulib/getopt_int.h: Likewise.
7404 * gnulib/gettext.h: Likewise.
7405
34f4a5b0
RM
74062009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7407
7408 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
7409 * normal/handler.c (read_handler_list): Likewise.
7410
ac451143
RM
74112009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7412
7413 Misc cleanup.
7414
7415 * kern/command.c (grub_register_command_prio): Use
7416 grub_zalloc() instead of explicitly zeroing data.
7417 * kern/list.c: Include `<grub/mm.h>'.
7418 (grub_named_list_find): Replace `0' with `NULL'.
7419 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
7420 (fs_module_list): Change type to `grub_named_list_t'. Update all
7421 users.
7422 * normal/dyncmd.c (read_command_list): Add space between function
7423 call and parenthesis.
7424 * normal/handler.c (read_handler_list): Likewise.
7425
4089b167
RM
74262009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7427
7428 * normal/auth.c (punishment_delay): Moved from here ...
7429 (grub_auth_strcmp): ... to here (inside function).
7430
325f5037
RM
74312009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7432
7433 * include/grub/list.h (struct grub_named_list): Remove `const'
7434 qualifier from `name'.
7435 (struct grub_prio_list): Likewise.
7436
7aea29a3
RM
74372009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7438
7439 * normal/auth.c: Include `<grub/time.h>'.
7440 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
7441
3fd6f044
RM
74422009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7443
7444 * normal/auth.c (punishment_delay): New variable.
7445 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
7446 (grub_auth_check_authentication): Punish failed login attempts with
7447 an incremental (2^N) delay.
7448
a4cd68e4
RM
74492009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7450
7451 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
7452 path with $(srcdir).
7453
7ad12f43
VS
74542009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7455
7456 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
7457
c1129f03
RM
74582009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7459
7460 * util/i386/coreboot/grub-mkrescue.in: New file.
7461 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
7462 variables.
7463
7464 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
7465 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
7466 * configure.ac: Add header and function checks to satisfy grub-mkisofs
7467 requirements.
7468 * util/mkisofs/defaults.h: New file.
7469 * util/mkisofs/eltorito.c: Likewise.
7470 * util/mkisofs/exclude.h: Likewise.
7471 * util/mkisofs/fnmatch.c: Likewise.
7472 * util/mkisofs/getopt.c: Likewise.
7473 * util/mkisofs/getopt1.c: Likewise.
7474 * util/mkisofs/hash.c: Likewise.
7475 * util/mkisofs/include/fctldefs.h: Likewise.
7476 * util/mkisofs/include/mconfig.h: Likewise.
7477 * util/mkisofs/include/prototyp.h: Likewise.
7478 * util/mkisofs/include/statdefs.h: Likewise.
7479 * util/mkisofs/iso9660.h: Likewise.
7480 * util/mkisofs/joliet.c: Likewise.
7481 * util/mkisofs/match.c: Likewise.
7482 * util/mkisofs/match.h: Likewise.
7483 * util/mkisofs/mkisofs.c: Likewise.
7484 * util/mkisofs/mkisofs.h: Likewise.
7485 * util/mkisofs/multi.c: Likewise.
7486 * util/mkisofs/name.c: Likewise.
7487 * util/mkisofs/rock.c: Likewise.
7488 * util/mkisofs/tree.c: Likewise.
7489 * util/mkisofs/write.c: Likewise.
7490
ec8bb77d
VS
74912009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7492
7493 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
7494 being insecure.
7495
3716b12c
RM
74962009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7497
7498 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
7499 `grub-mkimage' (and use $0 when possible).
7500
b97b7b91
RM
75012009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7502
7503 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
7504 error message for excessively large memory map.
7505
04114812
RM
75062009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7507
7508 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
7509 executable bit.
7510
e4eb2373
RM
75112009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7512
7513 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
7514 message for coreboot users.
7515
c926e1d5 75162009-11-07 Robert Millan <rmh.grub@aybabtu.com>
7517
7518 Fix build with GNU gold.
7519
7520 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
7521 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
7522 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
7523 link addresses.
7524 * aclocal.m4: Likewise.
7525
86e5b1db 75262009-11-04 Felix Zielcke <fzielcke@z-51.de>
7527
7528 * configure.ac (AC_PREREQ): Bump to 2.59d.
7529 * INSTALL: Make it more clear when Autoconf and Ruby are
7530 needed and when to run `./autogen.sh'.
7531
246cd78f 75322009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7533
7534 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
7535 OSes.
7536
4f9dfb37 75372009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7538
7539 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
7540
b82bd5e1 75412009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7542
7543 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
7544 giving it to GNU Mach.
7545
ff1a9bca 75462009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7547
7548 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
7549 GNU partition number to get internal GRUB partition number.
7550
61697d9c 75512009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7552
7553 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
7554 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
7555
a50569e1 75562009-11-01 Robert Millan <rmh.grub@aybabtu.com>
7557
7558 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
7559 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
7560 case.
7561
5b153867 75622009-11-01 Felix Zielcke <fzielcke@z-51.de>
7563
7564 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
7565
d9e2cd70 75662009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7567
7568 Fix build problem.
7569
7570 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
7571 `-isystem=$(srcdir)/include'.
7572
805111a4 75732009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7574
7575 * util/i386/pc/grub-install.in: Remove hint that device.map should be
7576 checked (grub-install doesn't currently rely on it).
7577
fa6e945f 75782009-10-29 Robert Millan <rmh.grub@aybabtu.com>
7579
7580 Revert SVN r2660.
7581
7582 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
7583 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7584 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
7585 * conf/i386-ieee1275.rmk: Likewise.
7586 * conf/i386-pc.rmk: Likewise.
7587 * conf/powerpc-ieee1275.rmk: Likewise.
7588 * conf/sparc64-ieee1275.rmk: Likewise.
7589 * conf/x86_64-efi.rmk: Likewise.
7590
cee15086 75912009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7592
7593 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
7594
95b9239e 75952009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7596
7597 * include/grub/misc.h: Stop checking for APPLE_CC.
7598
2ed19dfd 75992009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7600
7601 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
7602 doesn't cause an infinite call loop.
7603
fdcdde19 76042009-10-28 Felix Zielcke <fzielcke@z-51.de>
7605
7606 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
7607 strings.
7608
cefabfe1 76092009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7610
7611 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
7612 variable.
7613 * Makefile.in: Likewise.
7614
ed96ab6d 76152009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7616
7617 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
7618
0579b753 76192009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7620
7621 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
7622
478df409 76232009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7624
7625 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
7626
083d1679 76272009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7628
7629 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
7630 from here ...
7631 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
7632
5947ae32 76332009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7634
7635 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
7636 in $(MAKEINFO) invocation. This makes it clear in output that
7637 errors are being ignored.
7638
94180ff6 76392009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7640
7641 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
7642 from here ...
7643 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7644 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
7645 * conf/i386-ieee1275.rmk: Likewise.
7646 * conf/i386-pc.rmk: Likewise.
7647 * conf/powerpc-ieee1275.rmk: Likewise.
7648 * conf/sparc64-ieee1275.rmk: Likewise.
7649 * conf/x86_64-efi.rmk: Likewise.
7650
9031b03a 76512009-10-26 Colin Watson <cjwatson@ubuntu.com>
7652
7653 * util/grub-editenv.c (main): If only a command is given, use
7654 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
7655 (usage): FILENAME is now optional and has a default.
7656
e4f6809b 76572009-10-26 Colin Watson <cjwatson@ubuntu.com>
7658
7659 Improve grub-mkconfig performance when there are several menu
7660 entries on a single filesystem.
7661
7662 * util/grub.d/10_linux.in (linux_entry): Cache the output of
7663 prepare_grub_to_access_device.
7664 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
7665 * util/grub.d/30_os-prober.in: Likewise.
7666
67937d4d 76672009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7668
7669 * util/grub.d/10_freebsd.in: Remove.
7670 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
7671 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
7672
ee3756cc 76732009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7674
5c35048e 7675 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 7676
4dea1c6f 76772009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7678
7679 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
7680 grub_util_error() call.
7681
042484d7 76822009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7683
7684 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
7685 `reserved_first_sector' member.
7686 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
7687 `reserved_first_sector' to 1.
7688 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
7689 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
7690 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
7691 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
7692 filesystems which begin at first sector.
7693 (options): New option --skip-fs-probe.
7694 (main): Handle --skip-fs-probe and pass it to setup().
7695
d64448a7 76962009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7697
7698 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
7699 (memset): Fix function prototype.
7700
508d42ec 77012009-10-25 Robert Millan <rmh.grub@aybabtu.com>
77022009-10-25 Vasily Averin <vvs@parallels.com>
7703
7704 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
7705 `dirent.direntlen == 0'.
7706
b240e30c 77072009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7708
7709 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
7710 `cpio'.
7711 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
7712
346e7fbe 77132009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7714
7715 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
7716 `__trampoline_setup' and `__ucmpdi2'.
7717 * include/grub/powerpc/libgcc.h: Only export symbols for functions
7718 that libgcc provides.
7719
cdb308b0 77202009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7721
7722 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
7723 * include/grub/sparc64/libgcc.h (memset): Likewise.
7724 * include/grub/misc.h (memset, memcmp): New function prototypes.
7725
fb26abc2 77262009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7727
7728 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
7729 `cpio'.
7730 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
7731
f6693890 77322009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7733
7734 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
7735 * docs/grub.cfg: Compensate for recent change in multiboot
7736 loader (since 2009-08-14 it won't pass filename to payload).
7737 * util/grub.d/10_hurd.in: Likewise.
7738
0933cdc0 77392009-10-21 Felix Zielcke <fzielcke@z-51.de>
7740
7741 * config.guess: Update to latest version from config git
7742 repository.
7743 * config.sub: Likewise.
7744
3b2fe8c2 77452009-10-20 Robert Millan <rmh.grub@aybabtu.com>
7746
7747 Fix build on sparc64.
7748
7749 * configure.ac: Perform checks for libgcc symbols before
7750 adding `-nostdlib' to LDFLAGS.
7751
46695a62 77522009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7753
7754 Let user specify OpenBSD root device.
7755
7756 * loader/i386/bsd.c (openbsd_root): New variable.
7757 (openbsd_opts): New option 'root'.
7758 (OPENBSD_ROOT_ARG): New macro.
7759 (grub_openbsd_boot): Use 'openbsd_root'.
7760 (grub_cmd_openbsd): Fill 'openbsd_root'.
7761
d2b6b7fc 77622009-10-16 Robert Millan <rmh.grub@aybabtu.com>
7763
7764 * NEWS: Misc adjustments.
7765
421bd7ac 77662009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7767
7768 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
7769
f1d29d87 77702009-10-16 Robert Millan <rmh.grub@aybabtu.com>
7771
7772 * configure.ac: Bump version to 1.97.
7773
6f3cd880 77742009-10-16 Colin Watson <cjwatson@ubuntu.com>
7775
7776 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
7777 -mno-3dnow on x86 architectures. Some toolchains enable these
7778 features by default, but they rely on registers that aren't enabled
7779 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
7780
035f7122 77812009-10-15 Robert Millan <rmh.grub@aybabtu.com>
7782
7783 Make entry text a bit more readable.
7784
7785 * util/grub.d/10_linux.in: Add `with' before `Linux'.
7786
44998e58 77872009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7788
7789 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
7790
cd2851b3 77912009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7792
7793 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
7794 operations.
7795
c6f3b249 77962009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7797
7798 * configure.ac: Add missing dollar.
7799
6b5886ba 78002009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7801
7802 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
7803
7804 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
7805 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
7806 exports.
7807 * include/grub/sparc64/libgcc.h: Likewise. Use
7808 preprocessor conditionals.
7809
e9d66f6d 78102009-10-14 Robert Millan <rmh.grub@aybabtu.com>
7811
7812 * conf/common.rmk (grub-dumpbios): Remove rule.
7813 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
7814 * util/grub-dumpbios.in: Remove file.
7815
9155bc17 78162009-10-14 Robert Millan <rmh.grub@aybabtu.com>
7817
7818 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
7819 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
7820
7821 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
7822 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
7823 users.
7824
7825 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
7826 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
7827 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
7828 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
7829 users.
7830
bf7f7a18 78312009-10-12 Robert Millan <rmh.grub@aybabtu.com>
7832
7833 * term/tparm.c: Switch to GPLv3.
7834
86564c26 78352009-10-09 Robert Millan <rmh.grub@aybabtu.com>
7836
7837 * include/grub/i386/cpuid.h: Add header protection.
7838
5c936493 78392009-10-09 Robert Millan <rmh.grub@aybabtu.com>
7840
7841 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
7842
7843 * include/grub/i386/cpuid.h: New file.
7844 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
7845 (has_longmode): Rename to ...
7846 (grub_cpuid_has_longmode): ... this. Update all users. Remove
7847 `static' attribute.
7848 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
7849 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
7850 on a CPU that doesn't implement AMD64 instruction set.
7851
186e7cf2 78522009-10-06 Colin Watson <cjwatson@ubuntu.com>
7853
7854 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
7855 that version.texi is rebuilt on version number changes.
7856
83b65c4a 78572009-10-06 Colin Watson <cjwatson@ubuntu.com>
7858
7859 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
7860 Fixes bug #27602.
7861
d244281c 78622009-10-06 Colin Watson <cjwatson@ubuntu.com>
7863
7864 * util/i386/pc/grub-install.in: Source
7865 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
7866 that the --grub-probe option will work.
7867 * util/sparc64/ieee1275/grub-install.in: Likewise.
7868
da25306d 78692009-10-05 Robert Millan <rmh.grub@aybabtu.com>
7870
7871 * configure.ac: Bump version to 1.97~beta4.
7872
e8ee83c0 78732009-10-03 Robert Millan <rmh.grub@aybabtu.com>
7874
7875 Resync grub-mkdevicemap in x86_64-efi.
7876
7877 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
7878 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
7879 `util/devicemap.c'.
7880
50dcabcf 78812009-10-01 Colin Watson <cjwatson@ubuntu.com>
7882
7883 * util/grub-editenv.c (create_envblk_file): Write new block with a
7884 .new suffix and then rename it into place, to ensure atomic
7885 creation.
7886
0e51c3a7 78872009-09-28 Robert Millan <rmh.grub@aybabtu.com>
7888
7889 Do not automatically install headers.
7890
7891 * Makefile.in (include_DATA): Remove. Update all users.
7892
31299a95 78932009-09-26 Robert Millan <rmh.grub@aybabtu.com>
7894
7895 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
7896 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
7897
7898 * util/osdetect.lua: Remove.
7899 * script/lua/lauxlib.c: Likewise.
7900 * script/lua/ldebug.c: Likewise.
7901 * script/lua/grub_main.c: Likewise.
7902 * script/lua/lauxlib.h: Likewise.
7903 * script/lua/ldebug.h: Likewise.
7904 * script/lua/ltablib.c: Likewise.
7905 * script/lua/liolib.c: Likewise.
7906 * script/lua/lstrlib.c: Likewise.
7907 * script/lua/lualib.h: Likewise.
7908 * script/lua/ldo.c: Likewise.
7909 * script/lua/ldump.c: Likewise.
7910 * script/lua/ldo.h: Likewise.
7911 * script/lua/loslib.c: Likewise.
7912 * script/lua/lundump.c: Likewise.
7913 * script/lua/grub_lib.c: Likewise.
7914 * script/lua/ldblib.c: Likewise.
7915 * script/lua/lundump.h: Likewise.
7916 * script/lua/lmem.c: Likewise.
7917 * script/lua/grub_lib.h: Likewise.
7918 * script/lua/lmathlib.c: Likewise.
7919 * script/lua/lstate.c: Likewise.
7920 * script/lua/ltm.c: Likewise.
7921 * script/lua/lvm.c: Likewise.
7922 * script/lua/lmem.h: Likewise.
7923 * script/lua/lstate.h: Likewise.
7924 * script/lua/ltm.h: Likewise.
7925 * script/lua/ltable.c: Likewise.
7926 * script/lua/lvm.h: Likewise.
7927 * script/lua/llex.c: Likewise.
7928 * script/lua/lgc.c: Likewise.
7929 * script/lua/grub_lua.h: Likewise.
7930 * script/lua/loadlib.c: Likewise.
7931 * script/lua/lfunc.c: Likewise.
7932 * script/lua/lopcodes.c: Likewise.
7933 * script/lua/lparser.c: Likewise.
7934 * script/lua/ltable.h: Likewise.
7935 * script/lua/llex.h: Likewise.
7936 * script/lua/lgc.h: Likewise.
7937 * script/lua/lfunc.h: Likewise.
7938 * script/lua/lbaselib.c: Likewise.
7939 * script/lua/lopcodes.h: Likewise.
7940 * script/lua/lparser.h: Likewise.
7941 * script/lua/lzio.c: Likewise.
7942 * script/lua/linit.c: Likewise.
7943 * script/lua/lobject.c: Likewise.
7944 * script/lua/llimits.h: Likewise.
7945 * script/lua/lstring.c: Likewise.
7946 * script/lua/lzio.h: Likewise.
7947 * script/lua/lapi.c: Likewise.
7948 * script/lua/lcode.c: Likewise.
7949 * script/lua/lua.h: Likewise.
7950 * script/lua/lobject.h: Likewise.
7951 * script/lua/lstring.h: Likewise.
7952 * script/lua/lapi.h: Likewise.
7953 * script/lua/lcode.h: Likewise.
7954 * script/lua/luaconf.h: Likewise.
7955
cb8a2c38 79562009-09-26 Colin Watson <cjwatson@ubuntu.com>
7957
7958 * docs/grub.texi (Command-line and menu entry commands): Document
7959 date and echo commands.
7960
6b9b6276 79612009-09-24 Pavel Roskin <proski@gnu.org>
7962
7963 * include/grub/kernel.h (struct grub_module_header): Remove
7964 `grub_module_header_types'. Make `type' unsigned. Make `size'
7965 32-bit on all platforms.
7966 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
7967 8-bit field. Use grub_host_to_target32() for `size'.
7968 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
7969 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
7970 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
7971
4e5a02a7 79722009-09-24 Robert Millan <rmh.grub@aybabtu.com>
7973
7974 Fix "lost keypress" bug in at_keyboard.
7975
7976 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
7977 Checks for readyness of input buffer (without flushing it).
7978 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
7979 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
7980
c6dcedf6 79812009-09-24 Robert Millan <rmh.grub@aybabtu.com>
7982
7983 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
7984 size check within GRUB_MACHINE_PCBIOS section.
7985
74c958b1 79862009-09-24 Robert Millan <rmh.grub@aybabtu.com>
7987
7988 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
7989 return value.
7990 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
7991 KEYBOARD_ISREADY check.
7992 (grub_at_keyboard_checkkey): Rename to ...
7993 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
7994 Remove gratuitous cast.
7995
ff420223 79962009-09-23 Colin Watson <cjwatson@ubuntu.com>
7997
7998 * configure.ac: Call AC_PROG_MKDIR_P.
7999 * Makefile.in (docs/stamp-vti): Create docs directory. Create
8000 version.texi in $(builddir) rather than $(srcdir).
8001 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
8002 to makeinfo's @include search path.
8003
d96875df 80042009-09-23 Felix Zielcke <fzielcke@z-51.de>
8005
8006 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
8007
9b3f8365 80082009-09-23 Felix Zielcke <fzielcke@z-51.de>
8009
8010 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
8011 for `*.dpkg-new'.
8012
c44c90db 80132009-09-21 Colin Watson <cjwatson@ubuntu.com>
8014
8015 Build info documentation. Some code borrowed from Automake.
8016
8017 * configure.ac: Check for makeinfo.
8018 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
8019 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
8020 docs/version.texi.
8021 (MOSTLYCLEANFILES): Add vti.tmp.
8022 (docs/version.texi, docs/stamp-vti): Update automatically.
8023 (docs/grub.info): Build info documentation. Use --force and ignore
8024 errors for now.
8025 (all-local): Add $(INFOS).
8026 (install-local): Install info files.
8027 (uninstall): Uninstall info files.
8028 * docs/version.texi: Remove from revision control. This file is
8029 automatically generated on build now.
8030 * gendistlist.sh: Add `*.info'.
8031
e0b37bb5 80322009-09-21 Felix Zielcke <fzielcke@z-51.de>
8033
8034 * kern/term.c: Fix indentation.
8035
5a78865b 80362009-09-21 Felix Zielcke <fzielcke@z-51.de>
8037
8038 * util/hostdisk.c: Fix a comment.
8039
dace7e8a 80402009-09-20 Robert Millan <rmh.grub@aybabtu.com>
8041
8042 Fix regression introduced in r2539.
8043
8044 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
8045 to 0xA1.
8046
a83d079b 80472009-09-19 Colin Watson <cjwatson@ubuntu.com>
8048
8049 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 8050 os-prober. Under normal operation, it does not print anything to
8051 stderr; if it does, we need to debug it, and throwing away stderr
8052 makes that excessively difficult.
a83d079b 8053
be94a509 80542009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
8055
8056 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
8057
63f745e8 80582009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8059
8060 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
8061 AC_LANG_PROGRAM from autoconf.
8062 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
8063 prototypes (fixes warning).
8064
8065 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
8066 `--disable-werror' was used.
8067
bbb2a70f 80682009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8069
8070 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
8071 uninitialized `lastaddr'.
8072
77c24f1d 80732009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8074
0f0b8c87 8075 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 8076
07197f23 80772009-09-14 Colin Watson <cjwatson@ubuntu.com>
8078
8079 * commands/test.c (get_fileinfo): Return immediately if
8080 grub_fs_probe fails.
8081
dabf1798 80822009-09-14 José Martínez <xosemp@gmail.com>
8083
8084 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
8085
d52109a7 80862009-09-14 Colin Watson <cjwatson@ubuntu.com>
8087
8088 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
8089 output.
8090
56532179 80912009-09-13 Robert Millan <rmh.grub@aybabtu.com>
8092
8093 * configure.ac: Remove --enable-grub-pe2elf. Only build
8094 grub-pe2elf when needed by the build system itself.
8095 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
8096
8ef070f5 80972009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8098
8099 * configure.ac: Bump version to 1.97~beta3.
8100 * docs/version.texi: Likewise.
8101
61229557 81022009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8103
8104 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
8105 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
8106 from here ...
8107 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
8108 (grub_linux_setup_video): ... to here (with some adjustments).
8109
5c9f8d84 81102009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8111
8112 Fix memory corruption issue (spotted by Colin Watson).
8113
8114 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
8115 causing returned size to be stored in an incorrect memory location.
8116 Fix use of uninitialized value when storing the returned size.
8117
e8f5d6e9 81182009-09-12 Yves Blusseau <blusseau@zetam.org>
8119
8120 Change clean rules to properly remove files
8121
8122 * genmk.rb: add new clean rules
8123 * Makefile.in (clean): add the new targets
8124 (mostlyclean): likewise
8125
cda2a409 81262009-09-11 Colin Watson <cjwatson@ubuntu.com>
8127
8128 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
8129 to grub_uint64_t.
8130 * fs/ntfs.c (init_file): Understand 64-bit sizes for
8131 non-resident files.
8132
86695375 81332009-09-11 Colin Watson <cjwatson@ubuntu.com>
8134
8135 * configure.ac: Don't look for help2man when cross-compiling. Fixes
8136 part of bug #27349.
8137
8aa1541a 81382009-09-10 Felix Zielcke <fzielcke@z-51.de>
8139
8140 * util/grub-mkconfig.in: Make the created config mode 400 and
8141 print a warning if it fails.
8142
48d9bb0a 81432009-09-10 Robert Millan <rmh.grub@aybabtu.com>
8144
8145 * util/grub.d/40_custom.in: Ask user to type custom entries below
8146 comment, rather than below 'exec tail' line.
8147
3b0521be 81482009-09-10 Colin Watson <cjwatson@ubuntu.com>
8149
8150 * util/grub.d/40_custom.in: Make sure that the explanatory text is
8151 visible in grub.cfg.
8152
50051d55 81532009-09-10 Colin Watson <cjwatson@ubuntu.com>
8154
8155 * util/grub.d/40_custom.in: Make it a little clearer how to use this
8156 file.
8157
c0d34387 81582009-09-10 Felix Zielcke <fzielcke@z-51.de>
8159
8160 * docs/grub.cfg: Add an example menu entry for memtest86+.
8161
80a608f3 81622009-09-09 Felix Zielcke <fzielcke@z-51.de>
8163
a2094832 8164 * config.guess: Update to latest version from config git.
80a608f3 8165 * config.sub: Likewise.
8166
99423078 81672009-09-08 Colin Watson <cjwatson@ubuntu.com>
8168
8169 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
8170 unknown-command case. Fixes bug #27320.
8171
44454e4c 81722009-09-08 Felix Zielcke <fzielcke@z-51.de>
8173
8174 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
8175 `help' if the command exists.
8176
e30d87ad 81772009-09-06 Robert Millan <rmh.grub@aybabtu.com>
8178
8179 * INSTALL: Require GCC 4.1.3 or later.
8180
9a86f1ec 81812009-09-06 Yves Blusseau <blusseau@zetam.org>
8182
8183 * Makefile.in (RMKFILES): add i386-qemu.rmk
8184 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
8185 $(srcdir)/stamp-h.in
8186
7f26d466 81872009-09-05 Robert Millan <rmh.grub@aybabtu.com>
8188
8189 * util/grub-probe.c (probe): Comment out buggy codepath, which
8190 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
8191 should be re-enabled after 1.97.
8192
3a613259 81932009-09-05 Felix Zielcke <fzielcke@z-51.de>
8194
8195 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
8196 find searches for.
8197
197f76c7 81982009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
8199
8200 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
8201 unnecessary calls to grub_error.
8202
70ba68ce 82032009-09-04 Colin Watson <cjwatson@ubuntu.com>
8204
8205 * NEWS: Mention `keystatus' and Unicode fonts.
8206
4ff0d7a4 82072009-09-04 Robert Millan <rmh.grub@aybabtu.com>
8208
8209 * configure.ac: Bump version to 1.97~beta2.
8210 * docs/version.texi: Likewise.
8211
77c55a87 82122009-09-03 Colin Watson <cjwatson@ubuntu.com>
8213
8214 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
8215 containing unwind information in some cases where it previously did
8216 not. Use -fno-dwarf2-cfi-asm if available to restore the old
8217 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
8218 discussion.
8219
f79572cd 82202009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
8221
8222 Embedding loadenv module into grub-emu
8223
8224 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
8225 commands/loadenv.c
8226 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
8227 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
8228 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
8229 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
8230 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
8231 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
8232
93a81088 82332009-09-03 Magnus Granberg <zorry@ume.nu>
8234
8235 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
8236 include -fPIE in the default specs.
8237 * configure.ac: Check if pie_possible is yes and add -fno-PIE
8238 to TARGET_CFLAGS.
8239
160034b2 82402009-09-03 Felix Zielcke <fzielcke@z-51.de>
8241
8242 * INSTALL: Note that GNU Bison 2.3 or later is required.
8243
087c07c4 82442009-09-03 Colin Watson <cjwatson@ubuntu.com>
8245
8246 * kern/i386/pc/startup.S: Fix typo.
8247
cbf978c0 82482009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
8249
8250 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
8251 according to GCS.
8252
82532009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 8254
8255 * docs/grub.texi (Naming convention): Describe one-based partition
8256 numbering.
8257 (Device syntax): Likewise.
8258 (File name syntax): Likewise.
8259 (Block list syntax): Likewise.
8260 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
8261 menu.lst.
8262 (File name syntax): Likewise.
8263 (Command-line and menu entry commands): Document acpi, blocklist,
8264 crc, export, insmod, keystatus, ls, set, and unset commands.
8265
f3e8cdfd 82662009-09-02 Colin Watson <cjwatson@ubuntu.com>
8267
8268 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
8269 to avoid implying that only one of --shift, --ctrl, or --alt may be
8270 used.
8271
c0bc232b 82722009-09-02 Colin Watson <cjwatson@ubuntu.com>
8273
8274 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
8275 rather than comparing against S_IFREG, which will almost never work.
8276
aa0f752d 82772009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
8278
8279 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
8280 (write_blocklists): Likewise.
8281
ecb3166a 82822009-09-01 Colin Watson <cjwatson@ubuntu.com>
8283
8284 * script/lua/grub_lua.h (fputs): Supply a format string as the first
8285 argument to grub_printf.
8286
c403a125 82872009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 8288
8289 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 8290 non GNU test.
31aba781 8291
b5e7312c 82922009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8293
8294 * kern/file.c (grub_file_read): Spelling fix
8295
fe00f472 82962009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8297
8298 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
8299 loading of headers in some cases.
8300
cc55302e 83012009-08-30 Robert Millan <rmh.grub@aybabtu.com>
8302
8303 * configure.ac: Bump version to 1.97~beta1.
8304 * docs/version.texi: Likewise.
8305
5c90cdd2 83062009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 8307
8308 * include/grub/i386/xnu.h: Add license header.
8309 include grub/err.h explicitly.
8310
c90edae4 83112009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8312
8313 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
8314 to `ufs' in the vfs.root.mountfrom kernel parameter.
8315
d8888b5c 83162009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8317
8318 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
8319
8320 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
8321 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
8322
8323 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
8324 `ARRAY_SIZE' macro.
8325
6f07b921 83262009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8327
8328 * kern/file.c (grub_file_read): Check offset.
8329 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
8330 * fs/jfs.c (grub_jfs_read_file): Likewise.
8331 * fs/ntfs.c (grub_ntfs_read): Likewise.
8332 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
8333 * fs/minix.c (grub_minix_read_file): Correct offset check.
8334 * fs/ufs.c (grub_ufs_read_file): Likewise.
8335
b4f34077 83362009-08-28 Colin Watson <cjwatson@ubuntu.com>
8337
8338 * term/i386/pc/console.c (bios_data_area): Cast
8339 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
8340
e7c69859 83412009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8342
8343 1-bit optimised blitters.
8344
8345 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
8346 prototype.
8347 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8348 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8349 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8350 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8351 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8352 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8353 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
8354 function.
8355 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8356 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8357 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8358 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8359 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8360 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8361 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
8362 when possible.
8363 * video/video.c (grub_video_get_blit_format): Return
8364 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
8365
a57da43f 83662009-08-28 Colin Watson <cjwatson@ubuntu.com>
8367
8368 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
8369 the first argument to grub_printf.
8370
4cbe67e5 83712009-08-28 Colin Watson <cjwatson@ubuntu.com>
83722009-08-28 Robert Millan <rmh.grub@aybabtu.com>
8373
8374 Add `getkeystatus' terminal method. Add a new `keystatus' command
8375 to query it.
8376
8377 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
8378 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
8379 modifier key bitmasks.
8380 (struct grub_term_input): Add `getkeystatus' member.
8381 (grub_getkeystatus): Add prototype.
8382 * kern/term.c (grub_getkeystatus): New function.
8383
8384 * include/grub/i386/pc/memory.h
8385 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
8386 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
8387 Data Area layout.
8388 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
8389 (grub_console_term_input): Set `getkeystatus' member.
8390 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
8391 constants.
8392 (grub_usb_keyboard_getreport): Likewise.
8393 (grub_usb_keyboard_checkkey): Likewise.
8394 (grub_usb_keyboard_getkeystatus): New function.
8395 (grub_usb_keyboard_term): Set `getkeystatus' member.
8396
8397 * commands/keystatus.c: New file.
8398 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
8399 (keystatus_mod_SOURCES): New variable.
8400 (keystatus_mod_CFLAGS): Likewise.
8401 (keystatus_mod_LDFLAGS): Likewise.
8402 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
8403 commands/keystatus.c.
8404 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8405 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8406 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8407 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8408 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8409 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 8410
6e2a9085 84112009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8412
8413 Split befs.mod and afs.mod into *_be.mod and *.mod
8414
8415 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
8416 (grub_fstest_SOURCES): Likewise.
8417 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
8418 (afs_be_mod_SOURCES): New variable.
8419 (afs_be_mod_CFLAGS): Likewise.
8420 (afs_be_mod_LDFLAGS): Likewise.
8421 (befs_be_mod_SOURCES): Likewise.
8422 (befs_be_mod_CFLAGS): Likewise.
8423 (befs_be_mod_LDFLAGS): Likewise.
8424 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
8425 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8426 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8427 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
8428 (grub_emu_SOURCES): Likewise.
8429 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8430 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8431 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8432 * fs/afs_be.c: New file.
8433 * fs/befs_be.c: New file.
8434 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
8435 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
8436 (U16): Replaced with ...
8437 (grub_afs_to_cpu16): ...this. All users updated.
8438 (U32): Replaced with ...
8439 (grub_afs_to_cpu32): ...this. All users updated.
8440 (U64): Replaced with ...
8441 (grub_afs_to_cpu64): ...this. All users updated.
8442 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
8443 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 8444 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 8445 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8446 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8447 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8448 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8449 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8450 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8451 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8452 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8453
32a71655 84542009-08-26 Bean <bean123ch@gmail.com>
8455
8456 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
8457 64-bit number.
8458 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
8459 (grub_xfs_inode_block): Change return type to grub_uint64_t.
8460 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
8461
552bf6c5 84622009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8463
8464 NetBSD memory map support.
8465
8466 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
8467 (grub_netbsd_btinfo_mmap_header): New structure.
8468 (grub_netbsd_btinfo_mmap_entry): Likewise.
8469 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
8470
1ae2078c 84712009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8472
8473 Enable bsd.mod on coreboot.
8474
8475 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
8476 (bsd_mod_SOURCES): New variable.
8477 (bsd_mod_CFLAGS): Likewise.
8478 (bsd_mod_LDFLAGS): Likewise.
8479 (bsd_mod_ASFLAGS): Likewise.
8480 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
8481 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
8482
beefc598 84832009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8484
8485 Cleanup NetBSD root support.
8486
8487 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
8488 grub_bsd_get_device.
8489 Fix typo.
8490
3b76e68b 84912009-08-25 Felix Zielcke <fzielcke@z-51.de>
8492
8493 * util/grub.d/00_header.in: Move check for the video backend of
8494 gfxterm from here ...
8495 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
8496 a suitable video backend.
8497
aea664ea 84982009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8499
8500 Fix breakage in grub-setup.
8501
8502 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
8503 "msdos_partition_map".
8504
ff747d50 85052009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8506
8507 Fix breakage in normal/auth.c.
8508
8509 * normal/auth.c (grub_iswordseparator): New function.
8510
e7e1f93f 85112009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8512
8513 Authentication support.
8514
8515 * commands/password.c: New file.
8516 * conf/common.rmk (pkglib_MODULES): Add password.mod.
8517 (password_mod_SOURCES): New variable.
8518 (password_mod_CFLAGS): Likewise.
8519 (password_mod_LDFLAGS): Likewise.
8520 (normal_mod_SOURCES): Add normal/auth.c.
8521 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
8522 normal/auth.c.
8523 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8524 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8525 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8526 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8527 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8528 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8529 * include/grub/auth.h: New file.
8530 * include/grub/err.h (grub_err_t): New enum value
8531 GRUB_ERR_ACCESS_DENIED.
8532 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
8533 'users'.
8534 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
8535 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
8536 users updated.
8537 * normal/auth.c: New file.
8538 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
8539 (grub_cmdline_run): Don't allow to go to command line without
8540 authentication.
8541 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
8542 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
8543 menuentry without superuser rights.
8544 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
8545 user isn't a superuser.
8546
70f1161d 85472009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8548
8549 Save space by inlining misc.c functions.
8550
8551 * kern/misc.c (grub_iswordseparator): Made static.
8552 * kern/misc.c (grub_strcat): Moved from here ...
8553 * include/grub/misc.h (grub_strcat): ... here. Inlined.
8554 * kern/misc.c (grub_strncat): Moved from here ...
8555 * include/grub/misc.h (grub_strncat): ... here. Inlined.
8556 * kern/misc.c (grub_strcasecmp): Moved from here ...
8557 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
8558 * kern/misc.c (grub_strncasecmp): Moved from here ...
8559 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
8560 * kern/misc.c (grub_isalpha): Moved from here ...
8561 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
8562 * kern/misc.c (grub_isdigit): Moved from here ...
8563 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
8564 * kern/misc.c (grub_isgraph): Moved from here ...
8565 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
8566 * kern/misc.c (grub_tolower): Moved from here ...
8567 * include/grub/misc.h (grub_tolower): ... here. Inlined.
8568
48e40bff 85692009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8570
8571 * script/sh/function.c (grub_script_function_find): Cut error message
8572 not to flood terminal.
8573 * script/sh/lexer.c (grub_script_yylex): Remove command line length
8574 limit.
8575 * script/sh/script.c (grub_script_arg_add): Duplicate string.
8576
c385bfc3 85772009-08-24 Colin Watson <cjwatson@ubuntu.com>
8578
8579 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
8580 `report' grub_uint8_t *.
8581 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
8582 Use a 50-millisecond timeout rather than just repeating
8583 grub_usb_keyboard_getreport 50 times.
8584 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
8585
2d21e3e8 85862009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8587
8588 Rename *_partition_map to part_*
8589
8590 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
8591 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
8592 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
8593 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
8594 All users updated.
8595 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
8596 All users updated.
8597 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
8598 * util/grub-probe.c (probe_partmap): Don't transform partition name
8599 to get module name.
8600
dd103c4e 86012009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8602
8603 Fix OpenBSD and NetBSD support.
8604
8605 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
8606 memory address conflict.
8607 (OPENBSD_MMAP_ACPI): New definition.
8608 (OPENBSD_MMAP_NVS): Likewise.
8609 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
8610 and OPENBSD_MMAP_NVS.
8611 Add memory map terminator
8612 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 8613 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 8614
16c84d74 86152009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8616
8617 Let user specify NetBSD root device.
8618
8619 * loader/i386/bsd.c (netbsd_root): New variable.
8620 (netbsd_opts): New option 'root'.
8621 (NETBSD_ROOT_ARG): New macro.
8622 (grub_netbsd_boot): Use 'netbsd_root'.
8623 (grub_bsd_unload): Free 'netbsd_root'.
8624 (grub_cmd_netbsd): Fill 'netbsd_root'.
8625
adb29902 86262009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8627
8628 Support for 64-bit NetBSD.
8629
8630 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
8631 point when booting non-FreeBSD.
8632
f5ae9f74 86332009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8634
8635 Support --no-smp and --no-acpi for NetBSD.
8636
8637 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
8638 (NETBSD_AB_NOACPI): Likewise.
8639 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
8640 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
8641
de74f136 86422009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8643
8644 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
8645 errors.
8646 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
8647 errors. Call grub_error when needed.
8648
e9a925da 86492009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8650
8651 * commands/search.c (search_fs): Try searching without autoload first.
8652 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
8653 filesystem module explicitly for faster booting.
8654
5174302b 86552009-08-23 Colin Watson <cjwatson@ubuntu.com>
8656
8657 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
8658
c8c80635 86592009-08-23 Colin Watson <cjwatson@ubuntu.com>
8660
8661 * util/grub.d/30_os-prober.in: Disable os-prober if
8662 `GRUB_DISABLE_OS_PROBER' was set to true.
8663
71acf5e5 86642009-08-23 Robert Millan <rmh.grub@aybabtu.com>
8665
8666 * partmap/pc.c: Rename to ...
8667 * partmap/msdos.c: ... this. Update all users.
8668 (grub_pc_partition_map): Rename to ...
8669 (grub_msdos_partition_map): ... this. Update all users.
8670
8671 * parttool/pcpart.c: Rename to ...
8672 * parttool/msdospart.c: ... this. Update all users.
8673
8674 * include/grub/pc_partition.h: Rename to ...
8675 * include/grub/msdos_partition.h: ... this. Update all users.
8676 (grub_pc_partition_bsd_entry): Rename to ...
8677 (grub_msdos_partition_bsd_entry): ... this. Update all users.
8678 (grub_pc_partition_disk_label): Rename to ...
8679 (grub_msdos_partition_disk_label): ... this. Update all users.
8680 (grub_pc_partition_entry): Rename to ...
8681 (grub_msdos_partition_entry): ... this. Update all users.
8682 (grub_pc_partition_mbr): Rename to ...
8683 (grub_msdos_partition_mbr): ... this. Update all users.
8684 (grub_pc_partition): Rename to ...
8685 (grub_msdos_partition): ... this. Update all users.
8686 (grub_pc_partition_is_empty): Rename to ...
8687 (grub_msdos_partition_is_empty): ... this. Update all users.
8688 (grub_pc_partition_is_extended): Rename to ...
8689 (grub_msdos_partition_is_extended): ... this. Update all users.
8690 (grub_pc_partition_is_bsd): Rename to ...
8691 (grub_msdos_partition_is_bsd): ... this. Update all users.
8692
8693 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
8694 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
8695 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
8696 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
8697 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
8698 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
8699 (gpt_mod_LDFLAGS): Rename to ...
8700 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
8701 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
8702 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
8703 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
8704 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
8705 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
8706 (part_gpt_mod_LDFLAGS): ... this.
8707 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
8708 `pcpart.mod' to `msdospart.mod'.
8709 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
8710 to ...
8711 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
8712 (msdospart_mod_LDFLAGS): ... this.
8713
c11fded5 87142009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8715
8716 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
8717 (openbsd_opts): Likewise.
8718 (netbsd_opts): Likewise.
8719 (freebsd_flags): Added 0 terminator.
8720 (openbsd_flags): Likewise.
8721 (netbsd_flags): Likewise.
8722 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
8723 (grub_cmd_freebsd): Transformed into extended command.
8724 (grub_cmd_openbsd): Likewise.
8725 (grub_cmd_netbsd): Likewise.
8726 (cmd_freebsd): Changed type to grub_extcmd_t.
8727 (cmd_openbsd): Likewise.
8728 (cmd_netbsd): Likewise.
8729 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
8730 grub_cmd_openbsd as extended commands.
8731 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
8732 cmd_netbsd and cmd_openbsd
8733
11d1c769 87342009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
8735
8736 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
8737
7a9094e5 87382009-08-21 Pavel Roskin <proski@gnu.org>
8739
5496c37e 8740 * Makefile.in (install-local): When checking if a file is in the
8741 build directory, use "test -e" to detect symlinks.
8742
7a9094e5 8743 * Makefile.in (install-local): Remove all files in
8744 $(DESTDIR)$(pkglibdir) before installing new files there.
8745
e53cea11 87462009-08-18 Felix Zielcke <fzielcke@z-51.de>
8747
8748 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
8749 grub-mkelfimage.
8750
9aced544 87512009-08-18 Felix Zielcke <fzielcke@z-51.de>
8752
8753 * util/grub-mkconfig.in: Don't use gfxterm by default if not
8754 explicitly specified by the user.
8755
b7da6bab 87562009-08-18 Pavel Roskin <proski@gnu.org>
8757
8758 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
8759 grub_uint8_t pointer for data.
8760 * include/grub/fbutil.h (struct grub_video_fbblit_info):
8761 Likewise.
8762 * video/fb/fbutil.c: Remove unnecessary casts.
8763
19f1b335 87642009-08-17 Michal Suchanek <hramrach@centrum.cz>
8765
8766 VBE cleanup.
8767
8768 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
8769 (grub_vbe_set_video_mode): Save active mode info
8770 only after setting the mode.
8771 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
8772 second argument.
8773
2f467aa9 87742009-08-17 Michal Suchanek <hramrach@centrum.cz>
8775
8776 Rename variables for clarity.
8777
8778 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
8779 (active_vbe_mode_info): ... this. All users updated.
8780 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
8781 All users updated.
8782 (initial_mode): Rename to ...
8783 (initial_vbe_mode): ... this. All users updated.
8784 (mode_in_use): Rename to ..
8785 (vbe_mode_in_use): ... this. All users updated.
8786 (mode_list): Rename to ..
8787 (vbe_mode_list): ... this. All users updated.
8788 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
8789 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
8790 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
8791 'mode_list_size' to 'vbe_mode_list_size'.
8792 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
8793 'best_mode_info' to 'best_vbe_mode_info' and
8794 'best_mode' to 'best_vbe_mode'
8795
6025fcd7 87962009-08-17 Michal Suchanek <hramrach@centrum.cz>
8797
8798 Remove duplicate grub_video_fb_get_video_ptr.
8799
8800 * include/grub/fbutil.h (get_data_ptr): Rename to ...
8801 (grub_video_fb_get_video_ptr): ... this.
8802 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
8803 * video/fb/fbutil.c: Add comment about addressing.
8804 (get_data_ptr): Rename to ...
8805 (grub_video_fb_get_video_ptr): ... this. All users updated.
8806 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
8807
cc8c6faf 88082009-08-17 Robert Millan <rmh.grub@aybabtu.com>
8809
8810 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
8811 grub_dprintf() that was just added.
8812
08aa61f0 88132009-08-17 Robert Millan <rmh.grub@aybabtu.com>
8814
8815 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
8816 (DEFAULT_VIDEO_MODE): Remove macros.
8817 (grub_linux_boot): Remove assumption that Linux has FB support,
8818 and use "text" as default video mode.
8819
7cef4f75 88202009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
8821
8822 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
8823 grub_dprintf.
8824 * fs/fat.c (grub_fat_read_data): Likewise.
8825
e1f39873 88262009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8827
8828 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
8829 payload.
8830 (grub_module): Likewise.
8831
c166d79e 88322009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8833
8834 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
8835 mbi->cmdline but free playground.
8836
c60cee8e 88372009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8838
8839 Handle group offset on UFS1.
8840
8841 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
8842 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
8843
c0d8b5d4 88442009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8845
8846 Split ufs.mod into ufs1.mod and ufs2.mod.
8847
8848 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
8849 (grub_fstest_SOURCES): Likewise.
8850 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
8851 (ufs_mod_SOURCES): Remove.
8852 (ufs_mod_CFLAGS): Likewise.
8853 (ufs_mod_LDFLAGS): Likewise.
8854 (ufs1_mod_SOURCES): New variable.
8855 (ufs1_mod_CFLAGS): Likewise.
8856 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 8857 (ufs2_mod_SOURCES): New variable.
8858 (ufs2_mod_CFLAGS): Likewise.
8859 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 8860 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
8861 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
8862 Likewise.
8863 (grub_emu_SOURCES): Likewise.
8864 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8865 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8866 (grub_setup_SOURCES): Likewise.
8867 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8868 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
8869 (grub_setup_SOURCES): Likewise.
8870 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
8871 Likewise.
8872 * fs/ufs2.c: New file.
8873 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
8874
d3539132 88752009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8876
8877 Framebuffer split.
8878
8879 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
8880 subsystem at the end.
8881 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
8882 (video_fb_mod_SOURCES): New variable.
8883 (video_fb_mod_CFLAGS): Likewise.
8884 (video_fb_mod_LDFLAGS): Likewise.
8885 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
8886 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
8887 * video/i386/pc/vbeblit.c: Moved from here ...
8888 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
8889 * video/i386/pc/vbefill.c: Moved from here ...
8890 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
8891 * video/i386/pc/vbeutil.c: Moved from here ...
8892 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
8893 * include/grub/i386/pc/vbeblit.h: Moved from here ...
8894 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
8895 * include/grub/i386/pc/vbefill.h: Moved from here ...
8896 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
8897 * include/grub/i386/pc/vbeutil.h: Moved from here ...
8898 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
8899 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
8900 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
8901 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
8902 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
8903 (grub_video_adapter): Added 'get_info_and_fini'.
8904 (grub_video_get_info_and_fini): New prototype.
8905 (grub_video_set_mode): make modestring const char *.
8906 * loader/i386/linux.c (grub_linux_setup_video): Use
8907 grub_video_get_info_and_fini.
8908 (grub_linux_boot): Move modesetting just before booting.
8909 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
8910 grub_video_get_info_and_fini.
8911 * video/i386/pc/vbe.c: Moved framebuffer part ...
8912 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
8913 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
8914 grub_video_fbstd_colors and grub_video_fb_set_palette.
8915 (grub_video_vbe_init): Clear 'framebuffer' variable and use
8916 grub_video_fb_init.
8917 (grub_video_vbe_fini): Use grub_video_fb_fini.
8918 (grub_video_vbe_setup): Use framebuffer.render_target instead of
8919 render_target and use grub_video_fb_set_active_render_target and
8920 grub_video_fb_set_palette.
8921 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
8922 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
8923 (grub_video_vbe_adapter): Use framebuffer.
8924 * video/video.c (grub_video_get_info_and_fini): New function.
8925 (grub_video_set_mode): Make modestring const char *.
8926 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
8927 values are already initialised.
8928
d404ee56 89292009-08-14 Pavel Roskin <proski@gnu.org>
8930
8931 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
8932 ABS and APPLE_CC.
8933 * boot/i386/pc/diskboot.S: Likewise.
8934 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
8935 sectors allow compilation on MacOSX.
8936 * conf/i386-pc.rmk: Enable unconditional compilation of
8937 lnxboot.img.
8938
9a10df16 89392009-08-13 Colin Watson <cjwatson@ubuntu.com>
8940
8941 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
8942 * util/grub.d/00_header.in: Enter interruptible sleep if
8943 GRUB_HIDDEN_TIMEOUT is set.
8944
be3c9ca7 89452009-08-13 Yves Blusseau <blusseau@zetam.org>
8946
8947 * include/grub/symbol.h: Add the LOCAL macro.
8948 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
8949 starting with "L_".
8950
1f9e557e 89512009-08-13 Pavel Roskin <proski@gnu.org>
8952
9ca62843 8953 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
8954 any modern compilers we support.
8955
1f9e557e 8956 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
8957 Use local labels starting with "L_" so that Apple assembler
8958 knows they are local.
8959
81623db6 89602009-08-10 Robert Millan <rmh.grub@aybabtu.com>
8961
8962 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
8963 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
8964 (bsd_kernel_types): ... this enum.
8965
8966 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
8967 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
8968 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
8969
8970 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
8971 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
8972 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
8973 messages.
8974
f5d35e7a 89752009-08-08 Robert Millan <rmh.grub@aybabtu.com>
8976
8977 * util/grub-dumpdevtree: Moved from here ...
8978 * util/i386/efi/grub-dumpdevtree: ... to here.
8979 (hexify): New function. Converts a string to its hex version.
8980 Generate hex versions of "efi" and "device-properties" by calling
8981 hexify() on the ASCII strings rather than by hardcoding numbers.
8982
d1e1d527 89832009-08-08 Robert Millan <rmh.grub@aybabtu.com>
8984
8985 * fs/jfs.c: Update copyright year.
8986
1ebbe064 89872009-08-08 Felix Zielcke <fzielcke@z-51.de>
8988
8989 * util/grub.d/00_header.in: Fix a comment.
8990 * util/grub.d/10_linux.in: Likewise.
8991 * util/grub.d/10_windows.in: Likewise.
8992 * util/grub.d/10_hurd.in: Likewise.
8993
a78c8d24 89942009-08-08 Felix Zielcke <fzielcke@z-51.de>
8995
8996 * util/grub-mkconfig.in: Allow the user to specify the used font
8997 with GRUB_FONT.
8998
29a6b9e8 89992009-08-08 Pavel Roskin <proski@gnu.org>
9000
b5f16cc4 9001 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
9002 available, xfs.mod needs it now.
9003
2f5cb827 9004 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
9005 the "g" modifier in sed when the intention is to strip something
9006 once. This fixes comparison of kernels with multiple dashes.
9007
29a6b9e8 9008 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
9009 on it. Add missing space before closing bracket. Fix
9010 misleading formatting.
9011
892a3d98 90122009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9013
9014 * docs/grub.texi: Major overhaul. Remove all sections that are
9015 specific to GRUB Legacy, or mostly composed of Legacy-specific
9016 information.
9017
ed94253f 90182009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9019
9020 * docs/version.texi: New file. Provides version information for
9021 grub.texi.
9022
126d6628 90232009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9024
9025 * docs/grub.texi: Update CVS information to SVN.
9026 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
9027
998b5aa9 90282009-08-07 Felix Zielcke <fzielcke@z-51.de>
9029
9030 * util/grub-mkconfig.in: Remove a wrong `fi'.
9031
818e094a 90322009-08-07 Felix Zielcke <fzielcke@z-51.de>
9033
9034 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
9035 (grub_jfs_uuid): New function.
9036 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
9037
b969c52f 90382009-08-07 Felix Zielcke <fzielcke@z-51.de>
9039
9040 * util/grub-mkconfig_lib.in (font_path): Move the functionality
9041 of it to ...
9042 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
9043 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
9044
7a4894cc 90452009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9046
9047 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
9048 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
9049 Update all users.
9050
9051 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
9052 not just "vmlinu[zx]".
9053 Moved from here ...
9054 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
9055 all users.
9056
9057 * util/grub.d/10_linux.in (find_latest): Moved from here ...
9058 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
9059 all users.
9060
4e2171f8 90612009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9062
9063 * util/grub.d/10_freebsd.in: Use an absolute device path for
9064 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
9065
6dcfcb32 90662009-08-06 Felix Zielcke <fzielcke@z-51.de>
9067
9068 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
9069 handling of multiple abstraction modules.
9070
f56a8756 90712009-08-04 Robert Millan <rmh.grub@aybabtu.com>
9072
9073 Fix a bug resulting in black screen when loading Linux using a
9074 packed video mode.
9075
9076 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
9077 function.
9078
9079 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
9080 (grub_vbe_bios_getset_dac_palette_width): New function.
9081 (grub_vbe_bios_get_dac_palette_width)
9082 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
9083 grub_vbe_bios_getset_dac_palette_width()).
9084
9085 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
9086 check for return status.
9087 (grub_vbe_get_video_mode_info): When getting information for a packed
9088 mode (<= 8 bpp), obtain DAC palette width using
9089 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
9090 {red,green,blue}_mark_size.
9091
222671b2 90922009-08-04 Felix Zielcke <fzielcke@z-51.de>
9093
ecb1a6d9 9094 * commands/search.c (options): Fix help output to match actual code.
222671b2 9095
f84114f5 90962009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
9097
9098 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
9099 of homegrown code.
9100
bd288a20 91012009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 9102
9103 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
9104 on XFS or ReiserFS.
9105
8aab5e25 91062009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9107
9108 Support Apple partition map with sector size different from 512 bytes.
9109
9110 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
9111 (apple_partition_map_iterate): Respect 'aheader.blocksize'
9112 and 'apart.partmap_size'.
9113
6ad6258a 91142009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
91152009-08-01 Robert Millan <rmh.grub@aybabtu.com>
9116
9117 Fix cpuid command.
9118
9119 * commands/i386/cpuid.c (options): New variable.
9120 (grub_cmd_cpuid): Return real error.
9121 (GRUB_MOD_INIT(cpuid)): Declare options.
9122
67459bc6 91232009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
9124
9125 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
9126 valid.
9127
fbc6ab54 91282009-07-31 Bean <bean123ch@gmail.com>
9129
9130 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
9131 log2_inode.
9132 (grub_fshelp_node): Move inode field to the end.
9133 (grub_xfs_data): Remove inode field.
9134 (grub_xfs_inode_block): Calculate inode size using sblock.
9135 (grub_xfs_inode_offset): Likewise.
9136 (grub_xfs_read_inode): Calculate inode size using sblock.
9137 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
9138 (grub_xfs_iterate_dir): Calculate inode size using sblock.
9139 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
9140 to match inode size.
9141 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
9142 not accessible when data is null.
9143 (grub_xfs_open): Likewise.
9144
f45d6cfc 91452009-07-31 Bean <bean123ch@gmail.com>
9146
9147 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
9148 Don't change pv->disk if it's already set.
9149
9150 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
9151 (grub_raid_register): ... here.
9152 (grub_raid_rescan): Removed.
9153
9154 * include/grub/raid.h (grub_raid_rescan): Removed.
9155
9156 * util/grub-fstest.c: Remove include file <grub/raid.h>.
9157 (fstest): Replace grub_raid_rescan with module fini function followed
9158 by init function.
9159
9160 * util/grub-probe.c: Add include file <grub/raid.h>.
9161 (probe_raid_level): New function.
9162 (probe): Detect abstraction by walking the disk device, support two
9163 level of abstraction (LVM on RAID) when detecting partition map.
9164
24443b5a 91652009-07-31 Pavel Roskin <proski@gnu.org>
9166
9167 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
9168 to grub_zalloc(), it was erroneous.
9169 Reported by Bean <bean123ch@gmail.com>
9170
a275d9e7 91712009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
9172
9173 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 9174 embedding zone, not only the first one.
a275d9e7 9175
56c5a47f 91762009-07-29 Joe Auricchio <jauricchio@gmail.com>
9177
9178 * term/gfxterm.c (clear_char): New function.
9179 (grub_virtual_screen_setup): Use clear_char.
9180 (scroll_up): Likewise.
9181 (grub_virtual_screen_cls): Likewise.
9182
67bb323a 91832009-07-29 Felix Zielcke <fzielcke@z-51.de>
9184
9185 * util/deviceiter.c (get_acceleraid_disk_name): New static
9186 function.
9187 (grub_util_iterate_devices): Handle Accelraid devices.
9188 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
9189
388a7c75 91902009-07-28 Robert Millan <rmh.grub@aybabtu.com>
9191
9192 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
9193 separator for the suggested gfxpayload string (';' collides with the
9194 parser and needs escaping).
9195
3bb7abcf 91962009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
9197
9198 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
9199 Clear direction flag before jumping to OS.
9200 (grub_multiboot2_real_boot): Likewise.
9201
2ddd36d7 92022009-07-28 Felix Zielcke <fzielcke@z-51.de>
9203
9204 * util/i386/pc/grub-install: Fix parsing of --disk-module
9205 option.
9206
c521b62b 92072009-07-28 Felix Zielcke <fzielcke@z-51.de>
9208
9209 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
9210 when embedding.
9211
880e0a0c 92122009-07-26 Felix Zielcke <fzielcke@z-51.de>
9213
9214 * util/grub-mkconfig.in (package_version): New variable.
9215 Use it do display the version.
9216
2366e356 92172009-07-25 Felix Zielcke <fzielcke@z-51.de>
9218
9219 * kern/file.c (grub_file_open): Revert to previous check with
9220 grub_errno.
9221
7ad8c80e 92222009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9223
9224 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
9225 from help line. It's out of sync with code.
9226
72b9658b 92272009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9228
9229 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
9230 entries on failed boot.
9231
77435277 92322009-07-25 Felix Zielcke <fzielcke@z-51.de>
9233
9234 * kern/file.c (grub_file_open): Fix an error check.
9235
fcaa8b21 92362009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
9237
35d16c74 9238 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
9239 partition map couldn't be identified.
fcaa8b21 9240
48904cd1 92412009-07-23 Pavel Roskin <proski@gnu.org>
9242
ef3c317f 9243 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
9244 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
9245 case of little endian words becomes just an optimization.
9246 Respect const modifier.
ad8ea1f4 9247 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 9248
48904cd1 9249 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
9250 to avoid loss of upper bits if align is unsigned and shorter
9251 than addr.
9252
260c9a89 92532009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9254
9255 UUID support for UFS
9256
9257 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
9258 (grub_ufs_uuid): New function.
9259 (grub_ufs_fs): add .uuid
9260
f76ce889 92612009-07-21 Pavel Roskin <proski@gnu.org>
9262
9263 * kern/dl.c (grub_dl_check_header): Make static.
9264
6a6cbcaf 92652009-07-21 Felix Zielcke <fzielcke@z-51.de>
9266
9267 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
9268 add drivemap for Vista. It breaks Windows 7.
9269
cffcddb2 92702009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9271
9272 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
9273 128 bytes
9274
1ef44b80 92752009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9276
9277 Add BFS support
9278
9279 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
9280 (grub_fstest_SOURCES): Likewise.
9281 (pkglib_MODULES): Add befs.mod.
9282 (befs_mod_SOURCES): New variable.
9283 (befs_mod_CFLAGS): Likewise.
9284 (befs_mod_LDFLAGS): Likewise.
9285 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
9286 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9287 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9288 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9289 (grub_setup_SOURCES): Likewise.
9290 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9291 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9292 (grub_setup_SOURCES): Likewise.
9293 * fs/befs.c: New file.
9294 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
9295 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
9296 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
9297 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
9298 (B_KEY_INDEX_ALIGN): New declaration.
9299 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
9300 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
9301 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
9302 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
9303 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
9304 (grub_afs_mount) [MODE_BFS]: Likewise.
9305 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
9306 (grub_afs_fs): Use GRUB_AFS_FSNAME
9307 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
9308 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
9309 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
9310 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
9311
4f253044 93122009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
9313
9314 * util/getroot.c (find_root_device): Add support for MacOSX.
9315 * util/hostdisk.c: Likewise.
9316
57a55913 93172009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9318
9319 * font/font.c (find_glyph): Check whether a font is present to avoid
9320 segmentation fault.
75421ca9 9321
93222009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 9323
9324 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
9325
e98cd0c2 93262009-07-20 Pavel Roskin <proski@gnu.org>
9327
9328 * configure.ac: Trim excessively wordy excuses.
9329
1d2d169a 93302009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9331
9332 Add symlink, mtime and label support to AtheFS.
9333
9334 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
9335 (grub_afs_iterate_dir): Handle symlinks.
9336 (grub_afs_open): Use grub_afs_read_symlink.
9337 (grub_afs_dir): Likewise.
9338 Pass mtime.
9339 (grub_afs_label): New function.
9340 (grub_afs_fs): Add grub_afs_label.
9341 (grub_afs_read_symlink): New function.
9342
186f3189 93432009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9344
9345 Fix AtheFS support.
9346
9347 * fs/afs.c: Fix comments style.
9348 (grub_afs_blockrun): Declare as packed.
9349 (grub_afs_datastream): Likewise.
9350 (grub_afs_bnode): Likewise.
9351 (grub_afs_btree): Likewise.
9352 (grub_afs_sblock): Likewise.
9353 Declare `name' as char.
9354 (grub_afs_inode): Declare as packed.
9355 Change void *vnode to grub_uint32_t unused.
9356 (grub_afs_iterate_dir): Check that key_size is positive.
9357 (grub_afs_mount): Don't read superblock twice.
75421ca9 9358 (grub_afs_dir): Don't free node in case of error,
186f3189 9359 grub_fshelp_find_file already handles this.
9360 (grub_afs_open): Likewise.
9361
5680109e 93622009-07-19 Pavel Roskin <proski@gnu.org>
9363
9364 * Makefile.in: Remove LIBLZO and enable_lzo.
9365 * conf/i386-pc.rmk: Remove lzo support.
9366 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
9367 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
9368 support.
9369 * kern/i386/pc/lzo1x.S: Remove.
9370 * kern/i386/pc/startup.S: Remove lzo support.
9371 * util/i386/pc/grub-mkimage.c: Likewise.
9372
ac70fa32 93732009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
9374
9375 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
9376 * fs/xfs.c (grub_xfs_dir): Likewise.
9377 * fs/afs.c (grub_afs_dir): Likewise.
9378 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
9379 (grub_iso9660_open): Likewise.
9380 * fs/jfs.c (grub_jfs_open): Likewise.
9381 * fs/ext2.c (grub_ext2_dir): Likewise.
9382 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
9383 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 9384
eab58da2 93852009-07-16 Pavel Roskin <proski@gnu.org>
9386
d2838156 9387 * configure.ac: Never add "-c" to CFLAGS.
9388
55c70904 9389 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
9390
43e6200c 9391 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
9392 grub_cv_cc_efiemu should be used.
9393
ce7a733d 9394 * configure.ac: Typo fixes.
9395
eab58da2 9396 * kern/mm.c (grub_zalloc): New function.
9397 (grub_debug_zalloc): Likewise.
9398 * include/grub/mm.h: Declare grub_zalloc() and
9399 grub_debug_zalloc().
9400 * util/misc.c (grub_zalloc): New function.
9401 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
9402 instead of grub_malloc(), remove unneeded initializations.
9403 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
9404 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
9405 * commands/parttool.c (grub_cmd_parttool): Likewise.
9406 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
9407 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
9408 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
9409 * disk/usbms.c (grub_usbms_finddevs): Likewise.
9410 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
9411 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
9412 (grub_cmd_efiemu_pnvram): Likewise.
9413 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
9414 * fs/iso9660.c (grub_iso9660_mount): Likewise.
9415 (grub_iso9660_iterate_dir): Likewise.
9416 * fs/jfs.c (grub_jfs_opendir): Likewise.
9417 * fs/ntfs.c (list_file): Likewise.
9418 (grub_ntfs_mount): Likewise.
9419 * kern/disk.c (grub_disk_open): Likewise.
9420 * kern/dl.c (grub_dl_load_core): Likewise.
9421 * kern/elf.c (grub_elf_file): Likewise.
9422 * kern/env.c (grub_env_context_open): Likewise.
9423 (grub_env_set): Likewise.
9424 (grub_env_set_data_slot): Likewise.
9425 * kern/file.c (grub_file_open): Likewise.
9426 * kern/fs.c (grub_fs_blocklist_open): Likewise.
9427 * loader/i386/multiboot.c (grub_module): Likewise.
9428 * loader/xnu.c (grub_xnu_create_key): Likewise.
9429 (grub_xnu_create_value): Likewise.
9430 * normal/main.c (grub_normal_add_menu_entry): Likewise.
9431 (read_config_file): Likewise.
9432 * normal/menu_entry.c (make_screen): Likewise.
9433 * partmap/sun.c (sun_partition_map_iterate): Likewise.
9434 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
9435 * script/sh/script.c (grub_script_parse): Likewise.
9436 * video/bitmap.c (grub_video_bitmap_create): Likewise.
9437 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
9438 * video/readers/png.c (grub_png_output_byte): Likewise.
9439 (grub_video_reader_png): Likewise.
9440
830afef7 94412009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 9442
9443 Enable all targets that can be built by default
9444
830afef7 9445 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 9446 grub-mkfont and grub-fstest if they can be built
9447
ee293aee 94482009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9449
9450 Fix hang and segmentation fault in grub-emu-usb
9451
9452 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
9453 * util/usb.c (grub_libusb_devices): likewise
9454 (grub_libusb_init): rename to ...
9455 (GRUB_MOD_INIT (libusb)):...this
9456 (grub_libusb_fini): rename to ..
9457 (GRUB_MOD_FINI (libusb)):...this
9458 * disk/usbms.c (grub_usbms_transfer): fix retry logic
9459 * include/grub/disk.h (grub_raid_init): removed, it's useless
9460 (grub_raid_fini): likewise
9461 (grub_lvm_init): likewise
9462 (grub_lvm_fini): likewise
9463 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
9464 by grub_init_all
9465
94414221 94662009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9467
9468 Fix libusb
9469
9470 * Makefile.in (LIBUSB): new macro
9471 * genmk.rb (Utility/print_tail): new method
9472 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
9473 (top level): call util.print_tail at the end.
9474
59ade63d 94752009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9476
9477 Make FreeBSD accept zpool.cache
9478
9479 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
9480 type is /boot/zfs/zpool.cache
9481
a58da8c7 94822009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9483
9484 Fix 64-bit efiemu
9485
9486 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
9487 correct wrong typedef
9488 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
9489
20591577 94902009-07-15 Pavel Roskin <proski@gnu.org>
9491
560ca572 9492 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
9493 * kern/disk.c (struct grub_disk_cache): Likewise.
9494
e8e8e4fd 9495 * commands/probe.c (options): Typo fix.
9496
fde24e10 9497 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
9498 Increase to 0x5a to accommodate FAT32. Adjust other offsets
9499 accordingly.
9500 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
9501
379c54c1 9502 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
9503 the end of "Error" to make the message more readable.
9504
7bd8f5bf 9505 * boot/i386/pc/boot.S (kernel_segment): Remove.
9506 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
9507 for destination.
9508
40b132c5 9509 * boot/i386/pc/boot.S (boot_version): Remove.
9510 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
9511 Remove.
9512
20591577 9513 * include/grub/i386/pc/boot.h: Sort all offsets.
9514 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
9515 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
9516 * boot/i386/pc/boot.S: Assert location of every offset listed in
9517 include/grub/i386/pc/boot.h.
9518
2df32b2c 95192009-07-13 Pavel Roskin <proski@gnu.org>
9520
44b5d879 9521 * include/grub/i386/coreboot/machine.h: Rename
9522 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
9523 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
9524 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
9525
17dc3751 9526 * kern/dl.c: Force native word size to suppress warnings when
9527 compiling grub-emu.
9528
2df32b2c 9529 * kern/device.c (grub_device_iterate): Change struct part_ent to
9530 hold the name, not a pointer to it. Use one grub_malloc() per
9531 partition, not two. Free partition_name if grub_malloc() fails.
9532 Set ents to NULL only before grub_partition_iterate() is called.
9533
75c59f59 95342009-07-11 Bean <bean123ch@gmail.com>
9535
9536 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
9537 childname.
9538
0ae1bf88 95392009-07-10 Bean <bean123ch@gmail.com>
95402009-07-10 Robert Millan <rmh.grub@aybabtu.com>
9541
9542 * kern/ieee1275/openfw.c (grub_children_iterate)
9543 (grub_devalias_iterate): Fix size evaluation for property or path
9544 strings, which was broken since r2132.
9545
8279cade 95462009-07-07 Pavel Roskin <proski@gnu.org>
9547
7d8a52d3 9548 * commands/search.c (search_file): Merge into ...
9549 (search_fs): ... this. Accept search type as argument.
9550 (grub_cmd_search): Pass search type to search_fs().
9551
25f9a05a 9552 * include/grub/util/console.h: New file.
9553 * util/console.c: Use it instead of grub/machine/console.h.
9554 * util/grub-emu.c: Likewise.
9555
8279cade 9556 * lib/arg.c (find_long_option): Remove.
9557 (find_long): Add `len' argument, make `s' const char *.
9558 (grub_arg_parse): Parse long options in place, not in a
9559 temporary buffer.
9560
4a11b60f 95612009-07-06 Pavel Roskin <proski@gnu.org>
9562
99f68041 9563 * commands/search.c (search_fs): Fix potential NULL pointer
9564 dereference.
9565
4a11b60f 9566 * commands/search.c (search_fs): Replace QUID macro with quid_fn
9567 function pointer.
9568
e110f4de 95692009-07-06 Daniel Mierswa <impulze@impulze.org>
9570
9571 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
9572 comparison.
9573
46eeb6a2 95742009-07-05 Pavel Roskin <proski@gnu.org>
9575
bab74958 9576 * include/grub/i386/linux.h (struct linux_kernel_params):
9577 Restore padding3, it's still needed.
9578
46eeb6a2 9579 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
9580 FreeBSD.
9581 * util/osdetect.lua: Likewise.
9582
b4a1dc79 95832009-07-05 Bean <bean123ch@gmail.com>
9584
9585 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
9586
9587 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
9588 (grub_lua_getenv): Likewise.
9589 (grub_lua_setenv): Likewise.
9590 (save_errno): New function.
9591 (push_result): Likewise.
9592 (grub_lua_enum_device): Likewise.
9593 (grub_lua_enum_file): Likewise.
9594 (grub_lua_file_open): Likewise.
9595 (grub_lua_file_close): Likewise.
9596 (grub_lua_file_seek): Likewise.
9597 (grub_lua_file_read): Likewise.
9598 (grub_lua_file_getline): Likewise.
9599 (grub_lua_file_getsize): Likewise.
9600 (grub_lua_file_getpos): Likewise.
9601 (grub_lua_file_eof): Likewise.
9602 (grub_lua_file_exist): Likewise.
9603 (grub_lua_add_menu): Likewise.
9604
9605 * script/lua/grub_lua.h (isupper): New inline function.
9606 (islower): Likewise.
9607 (ispunct): Likewise.
9608 (isxdigit): Likewise.
9609 (strcspn): Change to normal function.
9610 (strpbkr): New function declaration.
9611 (memchr): Likewise.
9612
9613 * script/lua/grub_main.c (scan_str): New function.
9614 (strcspn): Likewise.
9615 (strpbrk): Likewise.
9616 (memchr): Likewise.
9617
9618 * script/lua/linit.c (lualibs): Enable the string library.
9619
9620 * util/osdetect.lua: New file.
9621
2da92295 96222009-07-04 Robert Millan <rmh.grub@aybabtu.com>
9623
9624 * include/grub/i386/linux.h (struct linux_kernel_params): Add
9625 `capabilities' member.
9626
b2582ec9 96272009-07-02 Pavel Roskin <proski@gnu.org>
9628
9629 * genparttoollist.sh: Add missing newline at the end.
9630
32622956 96312009-07-01 Pavel Roskin <proski@gnu.org>
9632
87a7339e 9633 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
9634
d23af54e 9635 * util/hostdisk.c (open_device): Remove `const' from
9636 `sysctl_size', as sysctlbyname() can change it (in this case it
9637 doesn't actually happen).
9638
c94b18a9 9639 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
9640 using signed long int constants.
9641
c6cd3ef0 9642 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
9643 constant to avoid a warning on FreeBSD.
9644
0df63420 9645 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
9646 where it's needed.
9647
999577f1 9648 * Makefile.in: Install include/grub/machine symlink.
9649
6f41557f 9650 * Makefile.in: When installing symlinks, use "cp -fR", which
9651 works on FreeBSD and MacOSX.
9652 From Yves Blusseau <cl7m42e02@sneakemail.com>
9653
c8d22988 9654 * kern/dl.c (grub_dl_resolve_symbol): Make static.
9655 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
9656
1b96e952 9657 * util/misc.c: Move grub_reboot() and grub_halt() ...
9658 * util/grub-emu.c: ... here. Make main_env static.
9659 * include/grub/util/misc.h: Remove main_env.
9660
2ef0084d 9661 * kern/mm.c: Use correct format to print size_t.
9662
32622956 9663 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
9664 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
9665 * kern/powerpc/dl.c: Likewise.
9666 * kern/sparc64/dl.c: Likewise.
9667 * kern/x86_64/dl.c: Likewise.
9668
3f7f0cd0 96692009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9670
9671 Fix grub-emu build on sparc64-ieee1275.
9672
75421ca9 9673 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 9674 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
9675
211d06b5 96762009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9677
9678 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
9679 (grub_reboot, grub_halt): New functions.
9680
9681 * util/i386/pc/misc.c: Delete. Update all users.
9682 * util/sparc64/ieee1275/misc.c: Likewise.
9683 * util/powerpc/ieee1275/misc.c: Likewise.
9684
aaf53e3c 96852009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9686
9687 * conf/i386.rmk (setjmp_mod_SOURCES)
9688 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
9689 * conf/common.rmk (setjmp_mod_SOURCES)
9690 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
9691 to use $(target_cpu).
9692 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
9693 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
9694 * conf/powerpc-ieee1275.rmk: Likewise.
9695 * conf/sparc64-ieee1275.rmk: Likewise.
9696
9697 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
9698 $(target_cpu) for kern/$(target_cpu)/dl.c.
9699 * conf/i386-efi.rmk: Likewise.
9700 * conf/i386-ieee1275.rmk: Likewise.
9701 * conf/x86_64-efi.rmk: Likewise.
9702 * conf/i386-coreboot.rmk: Likewise.
9703 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
9704 $(target_cpu) for kern/$(target_cpu)/dl.c and for
9705 kern/$(target_cpu)/cache.S.
9706 * conf/sparc64-ieee1275.rmk: Likewise.
9707
a337130b 97082009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9709
9710 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
9711 type to `grub_uint8_t', and adjust `padding9' accordingly.
9712
c6fe4d53 97132009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9714
b09db61d 9715 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
9716
c6fe4d53 9717 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
9718 assembly in final jump, using register constraints.
9719
b09db61d 9720 (grub_linux_boot): For text mode, initialize `have_vga' using
9721 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
9722
9723 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
9724 right before the final jump.
9725
9726 Set `video_mode' to 0x3.
9727
9728 Document initialization of `video_page', `video_mode' and
9729 `video_ega_bx'.
9730
28333ad0 97312009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9732
9733 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
9734 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 9735 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 9736
02164e1b 97372009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9738
9739 Fix build on Debian / sparc.
9740
9741 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
9742
18b6c557 97432009-06-28 Pavel Roskin <proski@gnu.org>
9744
85f2aab6 9745 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
9746 fix a warning.
9747
18b6c557 9748 * util/grub.d/10_linux.in: Match SUSE style initrd names.
9749
ad760f81 97502009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9751
9752 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
9753 `err'.
9754
87a4623b 97552009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9756
9757 Revert r2338.
9758
9759 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
9760 file can't be opened. grub_file_open() is already supposed to set
75421ca9 9761 grub_errno / grub_errmsg appropriately.
87a4623b 9762 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9763
8231fb77 97642009-06-27 Pavel Roskin <proski@gnu.org>
97652009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9766
9767 * include/grub/dl.h: Include grub/elf.h.
9768 (struct grub_dl): Add symtab field.
9769 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
9770 GRUB_MODULES_MACHINE_READONLY.
9771 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
9772 of the header for read-only modules.
9773 (grub_dl_unload): Free mod->symtab for read-only modules.
9774 * kern/i386/dl.c: Use mod->symtab.
9775 * kern/powerpc/dl.c: Likewise.
9776 * kern/sparc64/dl.c: Likewise.
9777 * kern/x86_64/dl.c: Likewise.
9778
9779 * conf/i386-qemu.rmk: New file.
9780 * kern/i386/qemu/startup.S: Likewise.
9781 * kern/i386/qemu/mmap.c: Likewise.
9782 * boot/i386/qemu/boot.S: Likewise.
9783 * include/grub/i386/qemu/time.h: Likewise.
9784 * include/grub/i386/qemu/serial.h: Likewise.
9785 * include/grub/i386/qemu/kernel.h: Likewise.
9786 * include/grub/i386/qemu/console.h: Likewise.
9787 * include/grub/i386/qemu/boot.h: Likewise.
9788 * include/grub/i386/qemu/init.h: Likewise.
9789 * include/grub/i386/qemu/machine.h: Likewise.
9790 * include/grub/i386/qemu/loader.h: Likewise.
9791 * include/grub/i386/qemu/memory.h: Likewise.
9792
9793 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
9794 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
9795 [qemu] (pkglib_IMAGES): Add `boot.img'.
9796 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
9797 [qemu] (boot_img_FORMAT): New variables.
9798 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
9799 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
9800 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
9801 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
9802 [qemu] (kernel_img_FORMAT): New variables.
9803
9804 * configure.ac: Recognise `i386-qemu'.
9805
9806 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
9807 (for no compression).
9808 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
9809 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
9810 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
9811 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
9812 ifdefs).
9813
97fe384e 98142009-06-27 Pavel Roskin <proski@gnu.org>
9815
9816 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
9817 read.
9818 * efiemu/prepare32.c: Likewise.
9819 * efiemu/prepare64.c: Likewise.
9820
c402ab17 98212009-06-26 Pavel Roskin <proski@gnu.org>
9822
9823 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
9824 * include/grub/elf.h: Define symbols without "32" or "64" based
9825 on GRUB_TARGET_WORDSIZE.
9826 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
9827 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
9828 ELF definitions.
9829 * efiemu/loadcore64.c: Likewise.
9830 * loader/i386/bsd32.c: Likewise.
9831 * loader/i386/bsd64.c: Likewise.
9832 * kern/dl.c: Remove own ELF definitions.
9833 * util/i386/efi/grub-mkimage.c: Likewise.
9834
9bbdfd4d 98352009-06-23 Robert Millan <rmh.grub@aybabtu.com>
9836
9837 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
9838 segment 0x0 unconditionally, because the reference generated by
9839 GAS is an absolute address.
9840
a42ce6e9 98412009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9842
9843 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
9844 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
9845
c952cf92 98462009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9847
9848 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
9849 indexes. Check for -f explicitly.
cc3752ad 9850 (search_file): Improve error message.
9851 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 9852
132a0a59 98532009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9854
9855 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
9856 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
9857
387a140c 98582009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9859
9860 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
9861 * conf/i386-ieee1275.rmk: Likewise.
9862 * conf/i386-coreboot.rmk: Likewise.
9863
9864 * kern/i386/pc/startup.S (grub_stop): Remove function.
9865 * kern/i386/ieee1275/startup.S: Likewise.
9866 * kern/i386/coreboot/startup.S: Likewise.
9867 * kern/i386/misc.S (grub_stop): New function.
9868
41da9665 98692009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9870
9871 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
9872 * kern/i386/realmode.S (real_to_prot): ... to here.
9873
bf337234 98742009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9875
9876 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
9877 with `kernel.img'.
9878 (kernel_elf_SOURCES): Rename to ...
9879 (kernel_img_SOURCES): ... this.
9880 (kernel_elf_HEADERS): Rename to ...
9881 (kernel_img_HEADERS): ... this. Update all users.
9882 (kernel_elf_ASFLAGS): Rename to ...
9883 (kernel_img_ASFLAGS): ... this.
9884 (kernel_elf_CFLAGS): Rename to ...
9885 (kernel_img_CFLAGS): ... this.
9886 (kernel_elf_LDFLAGS): Rename to ...
9887 (kernel_img_LDFLAGS): ... this.
9888 * conf/i386-coreboot.rmk: Likewise.
9889 * conf/powerpc-ieee1275.rmk: Likewise.
9890
9891 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
9892 with "kernel.img".
9893
f52196ff 98942009-06-21 Pavel Roskin <proski@gnu.org>
9895
c3cee413 9896 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
9897 to match nested functions.
9898 * loader/sparc64/ieee1275/linux.c: Likewise.
9899
f52196ff 9900 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
9901
58750afc 99022009-06-21 Robert Millan <rmh.grub@aybabtu.com>
9903
9904 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
9905 all i386 platforms.
9906
15355c7d 99072009-06-21 Robert Millan <rmh.grub@aybabtu.com>
9908
9909 Fix asm file handling on ELF, and remove workarounds.
9910
9911 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 9912 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 9913 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
9914 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
9915
3f3ec72b 99162009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9917
9918 Load BSD ELF modules
9919
9920 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
9921 and loader/i386/bsd64.c
9922 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
9923 (FREEBSD_MODTYPE_ELF_MODULE): New definition
9924 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
9925 (grub_freebsd_load_elfmodule32): New declaration
9926 (grub_freebsd_load_elfmoduleobj64): Likewise
9927 (grub_freebsd_load_elf_meta32): Likewise
9928 (grub_freebsd_load_elf_meta64): Likewise
9929 (grub_freebsd_add_meta): Likewise
9930 (grub_freebsd_add_meta_module): Likewise
9931 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
9932 (grub_freebsd_add_meta_module): Likewise and move module-specific
9933 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
9934 (grub_cmd_freebsd): Add elf-kernel specific parts
9935 based on grub_freebsd_add_meta_module
9936 (grub_cmd_freebsd_module): Add type parsing moved from
9937 grub_freebsd_add_meta_module
9938 (grub_cmd_freebsd_module_elf): New function
9939 (cmd_freebsd_module_elf): New variable
9940 (GRUB_MOD_INIT): Register freebsd_module_elf
9941 * loader/i386/bsd32.c: New file
9942 * loader/i386/bsd64.c: Likewise
9943 * loader/i386/bsdXX.c: Likewise
9944 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
9945 (grub_elf64_load): Likewise
9946 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
9947 All users updated
9948 (grub_elf64_load_hook_t): Likewise
9949
0db15301 99502009-06-21 Colin Watson <cjwatson@ubuntu.com>
9951
9952 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
9953 variable.
9954 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
9955 don't write a menu entry for recovery mode.
9956
546796c1 99572009-06-20 Robert Millan <rmh.grub@aybabtu.com>
9958
9959 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
9960 after it's no longer needed.
9961
cd7310d5 99622009-06-20 Robert Millan <rmh.grub@aybabtu.com>
9963
9964 * include/grub/i386/loader.h (grub_linux_prot_size)
9965 (grub_linux_tmp_addr, grub_linux_real_addr)
9966 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
9967 GRUB_MACHINE_PCBIOS.
9968 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
9969 common grub_util_info() call to ...
9970 (generate_image): ... here.
9971 Fix use of uninitialized memory, comparison of signed with
9972 unsigned integers and memory leak.
9973 Remove bogus module address message.
9974
ab32d3b5 99752009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9976
9977 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
9978 grub_raid_register
9979 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
9980
024ef597 99812009-06-19 Pavel Roskin <proski@gnu.org>
9982
9983 * configure.ac: Remove stray AC_MSG_CHECKING.
9984
3ac72b51 99852009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9986
9987 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 9988
e14cd814 99892009-06-18 Pavel Roskin <proski@gnu.org>
9990
9991 * conf/common.rmk: Add fs_file.mod.
9992 * disk/fs_file.c: New file.
9993 * include/grub/disk.h (enum grub_disk_dev_id): Add
9994 GRUB_DISK_DEVICE_FILE_ID.
9995
26586d98 99962009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9997
9998 Fix build with Apple's toolchain. Part 2
9999
10000 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
10001 a fake start
10002
26de2bcd 100032009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10004
10005 Fix build with Apple's toolchain. Part 1
10006
10007 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
10008 for long calls
10009 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 10010 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 10011 Apple's toolchain
10012
09b3490b 100132009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10014
10015 Fix warnings
10016
10017 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
10018 (decomp_block): initialize ch
10019 use grub_memcpy instead of memcpy
10020
c22a006a 100212009-06-17 Pavel Roskin <proski@gnu.org>
10022
d3638678 10023 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
10024 version, use declarations needed to use vga_text as the startup
10025 console.
10026
c22a006a 10027 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
10028 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
10029 the kernel.
10030 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
10031 and grub_at_keyboard_fini(), it's done on module load and
10032 unload.
10033
05b129e0 100342009-06-17 Felix Zielcke <fzielcke@z-51.de>
10035
10036 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
10037 file can't be found.
10038 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10039
cf24ed9e 100402009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10041
10042 Fix newline handling
10043
10044 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 10045 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 10046 (grub_script_yylex): don't segfault on unterminated script
10047 newline terminates command and variable
10048
74aa8e4b 100492009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10050
10051 avoid double grub_adjust_range call. Bug reported by David Simner
10052
10053 * kern/disk.c (grub_disk_write): change to raw disk access before
10054 calling disk_read
10055
1bd265f3 100562009-06-17 Colin Watson <cjwatson@ubuntu.com>
10057
10058 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
10059 spaces, for the benefit of help2man.
10060 * util/i386/efi/grub-mkimage.c (usage): Likewise.
10061
a2d08c06 100622009-06-16 Pavel Roskin <proski@gnu.org>
10063
10064 * kern/i386/halt.c: Include grub/machine/init.h.
10065 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
10066
b97bcb19 100672009-06-16 Felix Zielcke <fzielcke@z-51.de>
10068
10069 * util/grub.d/30_os-prober.in: Use ${root} in the generated
10070 drivemap menuentry.
10071
0644f96c 100722009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
10073
10074 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
10075 `echo' command.
10076
3ef17a2e 100772009-06-16 Pavel Roskin <proski@gnu.org>
10078
10079 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
10080 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
10081 save %dx, we only need %dl and we never change it.
10082 * boot/i386/pc/cdboot.S: Don't set the root drive.
10083 * boot/i386/pc/pxeboot.S: Likewise.
10084 * include/grub/i386/pc/boot.h: Remove
10085 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
10086 GRUB_BOOT_MACHINE_DRIVE_CHECK.
10087 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
10088 * kern/i386/pc/init.c (make_install_device): Remove references
10089 to grub_root_drive.
10090 * kern/i386/pc/startup.S: Likewise.
10091 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
10092
693fe637 100932009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10094
10095 xnu_uuid command
10096
10097 * commands/xnu_uuid.c: new file
10098 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
10099 (xnu_uuid_mod_SOURCES): new variable
10100 (xnu_uuid_mod_CFLAGS): likewise
10101 (xnu_uuid_mod_LDFLAGS): likewise
10102 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10103 * conf/i386-ieee1275.rmk: likewise
10104 * conf/i386-pc.rmk: likewise
10105 * conf/powerpc-ieee1275.rmk: likewise
10106 * conf/sparc64-ieee1275.rmk: likewise
10107 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
10108
c9da87d0 101092009-06-16 Pavel Roskin <proski@gnu.org>
10110
10111 * configure.ac: Avoid '==' in test command, it's not portable.
10112
9c6f4596 101132009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10114
10115 Probe command
10116
10117 * commands/probe.c: new file
10118 * conf/common.rmk (pkglib_MODULES): add probe.mod
10119 (probe_mod_SOURCES): new variable
10120 (probe_mod_CFLAGS): likewise
10121 (probe_mod_LDFLAGS): likewise
10122 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10123 * conf/i386-ieee1275.rmk: likewise
10124 * conf/i386-pc.rmk: likewise
10125 * conf/powerpc-ieee1275.rmk: likewise
10126 * conf/sparc64-ieee1275.rmk: likewise
10127
70b7f9fd 101282009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
10129
10130 Fix handling of string like \"hello\" and "a
10131 b"
10132
10133 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
10134 (grub_script_yylex): fix parsing of quoting, escaping and newline
10135
71c79a6b 101362009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
10137
dd74360c 10138 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 10139 handling
dd74360c 10140
0644f96c 101412009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 10142
10143 * util/grub-mkconfig.in: Fix parsing of --output option.
10144
e40893c3 101452009-06-12 Pavel Roskin <proski@gnu.org>
10146
10147 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
10148 genmk.rb don't need to be generated or installed.
10149
3a1acfe2 101502009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
10151
10152 * commands/i386/pc/drivemap_int13h.S: add more comments
10153
3a4575d4 101542009-06-11 Pavel Roskin <proski@gnu.org>
10155
0658e928 10156 * Makefile.in (uninstall): Uninstall manuals.
10157
ca0388f0 10158 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
10159 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
10160 and update-grub_lib in two places.
10161 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
10162
e3b27c39 10163 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
10164 a compiler warning.
10165
3a4575d4 10166 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
10167 `entry_lo' to fix variable shadowing.
10168
af1f4f55 101692009-06-11 Christian Franke <franke@computer.org>
10170
10171 * kern/misc.c (__enable_execute_stack): Add missing return type
10172 to prevent gcc warning.
10173
5225e649 101742009-06-11 Felix Zielcke <fzielcke@z-51.de>
10175
10176 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
10177
7d83bd47 101782009-06-11 Pavel Roskin <proski@gnu.org>
10179
c1cb63ba 10180 * Makefile.in: Don't rely on any scripts being executable.
10181 Always use $(SHELL) to run shell scripts.
10182
7d83bd47 10183 * configure.ac: Always define ___main if using -nostdlib. This
10184 fixes tests on Cygwin.
10185
948f48e7 101862009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
10187
10188 UDF fix
10189
7d83bd47 10190 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 10191 is in bytes and not in blocks
7d83bd47 10192
8ada9bc1 101932009-06-11 Pavel Roskin <proski@gnu.org>
10194
10195 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
10196 warning.
10197
25ad2323 101982009-06-11 Felix Zielcke <fzielcke@z-51.de>
10199
10200 * util/grub.d/30_os-prober.in: Fix a comment. Source
10201 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
10202 to set the root device. Place drivemap command in the generated
10203 chain entry.
10204
e65acb0c 102052009-06-11 Pavel Roskin <proski@gnu.org>
10206
10207 * configure.ac: Remove host_m32. Issues with 64-bit utilities
10208 have long been resolved.
10209
f285fe2d 102102009-06-11 Colin Watson <cjwatson@ubuntu.com>
10211
bd47b0b5 10212 * util/grub.d/10_linux.in: Capitalise "Linux".
10213
f285fe2d 10214 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
10215
a0c62e4e 102162009-06-11 Pavel Roskin <proski@gnu.org>
10217
b6783cb2 10218 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
10219 fix a gcc warning and ensure that the function won't ever exit.
10220
dde032e8 10221 * kern/i386/ieee1275/init.c: Add missing prototype for
10222 grub_stop_floppy().
10223
22cd079d 10224 * loader/ieee1275/multiboot2.c [__i386__]: Include
10225 grub/cpu/multiboot.h.
10226
a0c62e4e 10227 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
10228 casts to short - they are not portable and cause warnings. Fix
10229 use of uninitialized values in input_buf. Use ARRAY_SIZE.
10230
63963d17 102312009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
10232
10233 Drivemap fixes
10234
10235 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
10236 new function
10237 (grub_get_root_biosnumber_saved): new variable
10238 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
10239 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 10240 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 10241 %dx after the call if necessary
10242 * conf/common.rmk (pkglib_MODULES): remove boot.mod
10243 (boot_mod_SOURCES): remove
10244 (boot_mod_CFLAGS): remove
10245 (boot_mod_LDFLAGS): remove
10246 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
10247 (boot_mod_SOURCES): new variable
10248 (boot_mod_CFLAGS): likewise
10249 (boot_mod_LDFLAGS): likewise
10250 * conf/i386-efi.rmk: likewise
10251 * conf/i386-ieee1275.rmk: likewise
10252 * conf/i386-pc.rmk: likewise
10253 * conf/powerpc-ieee1275.rmk: likewise
10254 * conf/sparc64-ieee1275.rmk: likewise
10255 * conf/x86_64-efi.rmk: likewise
10256 * include/grub/i386/pc/biosnum.h: new file
10257 * lib/i386/pc/biosnum.c: likewise
10258 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
10259 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
10260 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 10261
33abf7ae 102622009-06-10 Pavel Roskin <proski@gnu.org>
10263
5ac35b35 10264 * io/gzio.c (test_header): Don't reuse one buffer for all data.
10265 Use separate variables. Read only the file size at the end, but
10266 not the checksum that we don't use.
10267
5c5215d5 10268 * kern/file.c (grub_file_read): Use void pointer for the buffer.
10269 Adjust all callers.
10270
27d5fef7 10271 * kern/ieee1275/openfw.c: Remove libc includes.
10272 * kern/ieee1275/cmain.c: Likewise.
10273 * include/grub/ieee1275/ieee1275.h: Likewise.
10274
33abf7ae 10275 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
10276 compiler warnings.
10277
19d50c2b 102782009-06-10 Felix Zielcke <fzielcke@z-51.de>
10279
10280 * Makefile.in: Remove all trailing whitespace.
10281 * conf/i386-pc.rmk: Likewise.
10282 * conf/powerpc-ieee1275.rmk: Likewise.
10283 * conf/sparc64-ieee1275.rmk: Likewise.
10284 * docs/grub.texi: Likewise.
10285 * docs/texinfo.tex: Likewise.
10286 * disk/fs_uuid.c: Likewise.
10287 * disk/lvm.c: Likewise.
10288 * disk/scsi.c: Likewise.
10289 * disk/ata.c: Likewise.
10290 * disk/ieee1275/ofdisk.c: Likewise.
10291 * disk/i386/pc/biosdisk.c: Likewise.
10292 * disk/host.c: Likewise.
10293 * disk/raid.c: Likewise.
10294 * disk/efi/efidisk.c: Likewise.
10295 * disk/usbms.c: Likewise.
10296 * disk/memdisk.c: Likewise.
10297 * disk/loopback.c: Likewise.
10298 * kern/powerpc/dl.c: Likewise.
10299 * kern/device.c: Likewise.
10300 * kern/dl.c: Likewise.
10301 * kern/sparc64/dl.c: Likewise.
10302 * kern/ieee1275/ieee1275.c: Likewise.
10303 * kern/term.c: Likewise.
10304 * kern/fs.c: Likewise.
10305 * kern/i386/dl.c: Likewise.
10306 * kern/i386/pc/startup.S: Likewise.
10307 * kern/i386/pc/init.c: Likewise.
10308 * kern/i386/pc/mmap.c: Likewise.
10309 * kern/i386/pc/lzo1x.S: Likewise.
10310 * kern/i386/ieee1275/init.c: Likewise.
10311 * kern/i386/realmode.S: Likewise.
10312 * kern/i386/tsc.c: Likewise.
10313 * kern/partition.c: Likewise.
10314 * kern/corecmd.c: Likewise.
10315 * kern/file.c: Likewise.
10316 * kern/efi/efi.c: Likewise.
10317 * kern/efi/init.c: Likewise.
10318 * kern/efi/mm.c: Likewise.
10319 * kern/main.c: Likewise.
10320 * kern/err.c: Likewise.
10321 * kern/env.c: Likewise.
10322 * kern/disk.c: Likewise.
10323 * kern/generic/millisleep.c: Likewise.
10324 * kern/generic/rtc_get_time_ms.c: Likewise.
10325 * kern/misc.c: Likewise.
10326 * kern/parser.c: Likewise.
10327 * genmk.rb: Likewise.
10328 * configure.ac: Likewise.
10329 * boot/i386/pc/diskboot.S: Likewise.
10330 * boot/i386/pc/pxeboot.S: Likewise.
10331 * boot/i386/pc/boot.S: Likewise.
10332 * boot/i386/pc/lnxboot.S: Likewise.
10333 * boot/i386/pc/cdboot.S: Likewise.
10334 * parttool/pcpart.c: Likewise.
10335 * video/readers/tga.c: Likewise.
10336 * video/video.c: Likewise.
10337 * video/bitmap.c: Likewise.
10338 * lib/envblk.c: Likewise.
10339 * lib/i386/setjmp.S: Likewise.
10340 * fs/xfs.c: Likewise.
10341 * fs/afs.c: Likewise.
10342 * fs/fat.c: Likewise.
10343 * fs/ntfs.c: Likewise.
10344 * fs/udf.c: Likewise.
10345 * fs/affs.c: Likewise.
10346 * fs/iso9660.c: Likewise.
10347 * fs/hfs.c: Likewise.
10348 * fs/fshelp.c: Likewise.
10349 * fs/ext2.c: Likewise.
10350 * fs/jfs.c: Likewise.
10351 * fs/reiserfs.c: Likewise.
10352 * fs/hfsplus.c: Likewise.
10353 * fs/minix.c: Likewise.
10354 * fs/cpio.c: Likewise.
10355 * fs/sfs.c: Likewise.
10356 * fs/ufs.c: Likewise.
10357 * efiemu/prepare.c: Likewise.
10358 * efiemu/loadcore_common.c: Likewise.
10359 * efiemu/runtime/efiemu.sh: Likewise.
10360 * efiemu/runtime/efiemu.S: Likewise.
10361 * efiemu/runtime/efiemu.c: Likewise.
10362 * efiemu/pnvram.c: Likewise.
10363 * efiemu/main.c: Likewise.
10364 * efiemu/i386/pc/cfgtables.c: Likewise.
10365 * efiemu/i386/loadcore64.c: Likewise.
10366 * efiemu/i386/loadcore32.c: Likewise.
10367 * efiemu/loadcore.c: Likewise.
10368 * efiemu/symbols.c: Likewise.
10369 * efiemu/mm.c: Likewise.
10370 * include/grub/autoefi.h: Likewise.
10371 * include/grub/datetime.h: Likewise.
10372 * include/grub/term.h: Likewise.
10373 * include/grub/hfs.h: Likewise.
10374 * include/grub/lvm.h: Likewise.
10375 * include/grub/i386/tsc.h: Likewise.
10376 * include/grub/i386/linux.h: Likewise.
10377 * include/grub/i386/xnu.h: Likewise.
10378 * include/grub/i386/efiemu.h: Likewise.
10379 * include/grub/i386/pc/biosdisk.h: Likewise.
10380 * include/grub/i386/pc/memory.h: Likewise.
10381 * include/grub/i386/pc/vbe.h: Likewise.
10382 * include/grub/parttool.h: Likewise.
10383 * include/grub/video.h: Likewise.
10384 * include/grub/memory.h: Likewise.
10385 * include/grub/fs.h: Likewise.
10386 * include/grub/partition.h: Likewise.
10387 * include/grub/xnu.h: Likewise.
10388 * include/grub/efi/api.h: Likewise.
10389 * include/grub/efi/pe32.h: Likewise.
10390 * include/grub/efi/memory.h: Likewise.
10391 * include/grub/multiboot.h: Likewise.
10392 * include/grub/usbdesc.h: Likewise.
10393 * include/grub/multiboot2.h: Likewise.
10394 * include/grub/acpi.h: Likewise.
10395 * include/grub/efiemu/efiemu.h: Likewise.
10396 * include/grub/disk.h: Likewise.
10397 * include/grub/ieee1275/ieee1275.h: Likewise.
10398 * include/grub/net.h: Likewise.
10399 * include/grub/machoload.h: Likewise.
10400 * include/grub/macho.h: Likewise.
10401 * include/multiboot.h: Likewise.
10402 * genmoddep.awk: Likewise.
10403 * normal/main.c: Likewise.
10404 * normal/menu_entry.c: Likewise.
10405 * normal/menu_viewer.c: Likewise.
10406 * normal/completion.c: Likewise.
10407 * normal/cmdline.c: Likewise.
10408 * normal/misc.c: Likewise.
10409 * normal/datetime.c: Likewise.
10410 * bus/usb/usbtrans.c: Likewise.
10411 * bus/usb/ohci.c: Likewise.
10412 * bus/usb/uhci.c: Likewise.
10413 * bus/usb/usb.c: Likewise.
10414 * mmap/efi/mmap.c: Likewise.
10415 * mmap/i386/pc/mmap_helper.S: Likewise.
10416 * mmap/i386/pc/mmap.c: Likewise.
10417 * mmap/i386/mmap.c: Likewise.
10418 * mmap/i386/uppermem.c: Likewise.
10419 * mmap/mmap.c: Likewise.
10420 * commands/acpi.c: Likewise.
10421 * commands/echo.c: Likewise.
10422 * commands/blocklist.c: Likewise.
10423 * commands/loadenv.c: Likewise.
10424 * commands/usbtest.c: Likewise.
10425 * commands/boot.c: Likewise.
10426 * commands/parttool.c: Likewise.
10427 * commands/search.c: Likewise.
10428 * commands/cat.c: Likewise.
10429 * commands/i386/pc/play.c: Likewise.
10430 * commands/i386/pc/drivemap.c: Likewise.
10431 * commands/i386/pc/vbeinfo.c: Likewise.
10432 * commands/i386/pc/acpi.c: Likewise.
10433 * commands/i386/pc/vbetest.c: Likewise.
10434 * commands/ls.c: Likewise.
10435 * commands/cmp.c: Likewise.
10436 * commands/test.c: Likewise.
10437 * commands/efi/acpi.c: Likewise.
10438 * commands/gptsync.c: Likewise.
10439 * commands/help.c: Likewise.
10440 * partmap/amiga.c: Likewise.
10441 * partmap/apple.c: Likewise.
10442 * partmap/acorn.c: Likewise.
10443 * partmap/pc.c: Likewise.
10444 * partmap/sun.c: Likewise.
10445 * partmap/gpt.c: Likewise.
10446 * script/sh/lexer.c: Likewise.
10447 * script/sh/function.c: Likewise.
10448 * font/font.c: Likewise.
10449 * font/font_cmd.c: Likewise.
10450 * loader/powerpc/ieee1275/linux.c: Likewise.
10451 * loader/efi/chainloader.c: Likewise.
10452 * loader/multiboot_loader.c: Likewise.
10453 * loader/macho.c: Likewise.
10454 * loader/i386/multiboot.c: Likewise.
10455 * loader/i386/linux.c: Likewise.
10456 * loader/i386/pc/linux.c: Likewise.
10457 * loader/i386/pc/multiboot2.c: Likewise.
10458 * loader/i386/pc/chainloader.c: Likewise.
10459 * loader/i386/pc/xnu.c: Likewise.
10460 * loader/i386/bsd_trampoline.S: Likewise.
10461 * loader/i386/efi/linux.c: Likewise.
10462 * loader/i386/multiboot_elfxx.c: Likewise.
10463 * loader/i386/bsd_helper.S: Likewise.
10464 * loader/i386/bsd.c: Likewise.
10465 * loader/i386/linux_trampoline.S: Likewise.
10466 * loader/i386/xnu_helper.S: Likewise.
10467 * loader/i386/xnu.c: Likewise.
10468 * loader/i386/bsd_pagetable.c: Likewise.
10469 * loader/i386/multiboot_helper.S: Likewise.
10470 * loader/xnu.c: Likewise.
10471 * loader/xnu_resume.c: Likewise.
10472 * io/gzio.c: Likewise.
10473 * term/efi/console.c: Likewise.
10474 * term/terminfo.c: Likewise.
10475 * term/ieee1275/ofconsole.c: Likewise.
10476 * term/i386/pc/serial.c: Likewise.
10477 * term/i386/pc/vesafb.c: Likewise.
10478 * term/i386/pc/vga.c: Likewise.
10479 * term/usb_keyboard.c: Likewise.
10480 * term/gfxterm.c: Likewise.
10481 * aclocal.m4: Likewise.
10482 * util/lvm.c: Likewise.
10483 * util/grub.d/30_os-prober.in: Likewise.
10484 * util/grub.d/10_hurd.in: Likewise.
10485 * util/console.c: Likewise.
10486 * util/grub-macho2img.c: Likewise.
10487 * util/grub-probe.c: Likewise.
10488 * util/hostfs.c: Likewise.
10489 * util/i386/pc/grub-mkimage.c: Likewise.
10490 * util/i386/pc/grub-setup.c: Likewise.
10491 * util/i386/efi/grub-mkimage.c: Likewise.
10492 * util/grub-mkconfig.in: Likewise.
10493 * util/raid.c: Likewise.
10494 * util/resolve.c: Likewise.
10495 * util/grub-mkdevicemap.c: Likewise.
10496 * util/grub-emu.c: Likewise.
10497 * util/getroot.c: Likewise.
10498 * util/hostdisk.c: Likewise.
10499 * util/usb.c: Likewise.
10500 * util/grub-editenv.c: Likewise.
10501 * util/misc.c: Likewise.
10502
d2d49665 105032009-06-10 Felix Zielcke <fzielcke@z-51.de>
10504
10505 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
10506 `genparttoollist.sh'.
10507 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
10508 Add `*.sh' to the list find searches for and change `mdate.sh'
10509 to `mdate-sh'.
10510
fe052e37 105112009-06-10 Pavel Roskin <proski@gnu.org>
10512
2763ac18 10513 * include/grub/multiboot2.h: Provide compatibility defines for
10514 multiboot2.h.
10515 * include/multiboot2.h: Include stdint.h only if needed, using
10516 angle brackets.
10517 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
10518 grub/multiboot2.h.
10519 * loader/ieee1275/multiboot2.c: Likewise.
10520 * loader/multiboot2.c: Likewise.
10521 * loader/multiboot_loader.c: Likewise.
10522
437e6adc 10523 * configure.ac: Use -nostdlib when probing for the target. It
10524 should not be required to have libc for the target.
10525
06a6836c 10526 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
10527 they fail without libc headers for the target.
10528 * include/grub/powerpc/libgcc.h: Use weak attribute for all
10529 exports.
10530 * include/grub/sparc64/libgcc.h: Likewise. Don't use
10531 preprocessor conditionals.
10532
fe052e37 10533 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
10534 build system doesn't need to be aware of the tar.c internals.
10535
afd22553 105362009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 10537
afd22553 10538 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 10539
6b787c4f 105402009-06-09 Robert Millan <rmh.grub@aybabtu.com>
10541
10542 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
10543 disk limit to 26 for IDE, Virtio, Xen and SCSI.
10544
105452009-06-09 Felix Zielcke <fzielcke@z-51.de>
10546
10547 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 10548 aren't available if ata.mod gets used.
6b787c4f 10549
473d1e45 105502009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 10551
473d1e45 10552 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 10553 initialising controller.
473d1e45 10554 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 10555
255a27d4 105562009-06-08 Felix Zielcke <fzielcke@z-51.de>
10557
10558 * util/i386/pc/grub-install.in: Add a parameter --disk-module
10559 to choose between ata and biosdisk module on i386-pc.
10560
473d1e45 105612009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 10562
d55842d8 10563 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
10564 Subclass and Programming Interface fields in terms of the 3 byte
10565 Class Code register.
10566 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
10567
fa5db0b1 10568 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
10569 interface is OHCI. Add grub_dprintf for symmetry with
10570 bus/usb/uhci.c.
10571 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
10572 interface is UHCI. Add interf variable for programming
10573 interface. Print interface with class/subclass.
10574
c0947beb 10575 * bus/usb/ohci.c: Set interf with correct field.
10576
69da8877 10577 * bus/usb/uhci.c: Remove unneeded doubled lines.
10578 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
10579 Remove whitespace inside comment.
10580
9e172e30 105812009-06-08 Robert Millan <rmh.grub@aybabtu.com>
10582
10583 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
10584 as fallback an equivalent option without depth.
10585
de65ee2b 105862009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10587
10588 Not fail if unable to retrieve C/H/S on LBA disks
10589
473d1e45 10590 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 10591 if unable to retrieve C/H/S on LBA disks
10592
b57ea2c9 105932009-06-08 Pavel Roskin <proski@gnu.org>
10594
10595 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
10596 about aliasing.
10597
af361263 105982009-06-08 Felix Zielcke <fzielcke@z-51.de>
10599
10600 * Makefile.in (uninstall): Remove all $lib_DATA files.
10601
4c9ec6b3 106022009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10603
10604 Bugfix: install on partitionless device
10605
10606 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
10607 is a whole disk
10608
e76fc924 106092009-06-08 Felix Zielcke <fzielcke@z-51.de>
10610
10611 * Makefile.in (uninstall): Remove all $include_DATA files.
10612
ba5a0d05 106132009-06-08 Felix Zielcke <fzielcke@z-51.de>
10614
10615 * commands/true.c: New file. Implement the true and false commands.
10616 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
10617 (true_mod_SOURCES): New variable.
10618 (true_mod_CFLAGS): Likewise.
10619 (true_mod_LDFLAGS): Likewise.
10620
c8048e32 106212009-06-05 Colin D Bennett <colin@gibibit.com>
10622
10623 Optimized font character lookup using binary search instead of linear
10624 search. Fonts now are required to have the character index ordered by
10625 code point.
10626
10627 * font/font.c (load_font_index): Verify that fonts have ordered
10628 character indices.
10629 (find_glyph): Use binary search instead of linear search to find a
10630 character in a font.
10631
408305be 106322009-06-05 Michael Scherer <misc@mandriva.org>
10633
10634 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
10635 uses case sensitive btree.
10636 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
10637 only for case insensitive filesystems.
10638
8ee1e0d9 106392009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
10640
10641 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
10642 * conf/common.rmk (search_mod_CFLAGS): likewise
10643
a9966eb1 106442009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10645
473d1e45 10646 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 10647 compensate a compiler bug
10648
9e7100fb 106492009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10650
473d1e45 10651 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 10652 instead of '\b'
473d1e45 10653
ede21d71 106542009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10655
10656 Definitions for creating asm symbols with Apple's CC
10657
10658 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
10659 [APPLE_CC] (VARIABLE): likewise
10660
9dbf7653 106612009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10662
10663 Disable lnxboot.img when compiled
10664 with Apple's CC
10665
10666 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
10667 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
10668 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
10669 [! APPLE_CC] (CODE_LENG): skip
10670 [! APPLE_CC] (setup_sects): likewise
10671 [! APPLE_CC]: skip filling
473d1e45 10672
e93cdc3d 106732009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10674
10675 Address in trampolines based on 32-bit registers when compiled
10676 with Apple's CC
10677
473d1e45 10678 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 10679 for addresses
10680 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
10681
6c688477 106822009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10683
10684 Avoid aliases when compiling with Apple's CC for PCBIOS machine
10685
10686 * kern/misc.c [APPLE_CC] (memcpy): new function
10687 [APPLE_CC] (memmove): likewise
10688 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 10689 (memcpy): define alias conditionally on !APPLE_CC
6c688477 10690 (memset): likewise
10691 (abort): likewise
10692 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
10693 APPLE_CC are defined
10694 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
10695 (grub_assert_fail): make prototype conditional
10696
e37ffc5c 106972009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10698
10699 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
10700
473d1e45 10701 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
10702 grub-macho2img
e37ffc5c 10703 (CLEANFILES): add grub-macho2img
10704 (grub_macho2img_SOURCES): new variable
10705 * kern/i386/pc/startup.S (bss_start): new variable
10706 (bss_end): likewise
10707 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
10708 * util/grub-macho2img.c: new file
10709
cf00df31 107102009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10711
10712 Use objconv when compiling with Apple's CC
10713
10714 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
10715 (efiemu64.o): likewise
10716 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
10717 when compiling with Apple's CC
10718 (efiemu64_s.o): likewise
10719 * configure.ac: check for objconv when compiling with Apple's CC
10720 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 10721
d119a20c 107222009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10723
10724 Define segment as well as section when compiling with
10725 Apple's CC
10726
10727 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
10728 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
10729 (efiemu_convert_pointer): likewise
10730 (efiemu_set_virtual_address_map): likewise
10731 (efiemu_convert_pointer): likewise
10732 (efiemu_getcrc32): likewise
10733 (init_crc32_table): likewise
10734 (reflect): likewise
10735 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
10736 (GRUB_MOD_DEP): likewise
473d1e45 10737
c8600122 107382009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10739
10740 Allow a compilation without -mcmodel=large
10741
10742 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
10743 when compiled without -mcmodel=large
473d1e45 10744 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 10745 without -mcmodel=large
473d1e45 10746 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 10747 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 10748
e8df1d4e 107492009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10750
10751 Remove nested functions in efiemu core
10752
10753 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 10754
cc6c3ac1 107552009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10756
10757 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
10758
10759 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
10760 temporary storage
473d1e45 10761 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
10762 using Apple's CC
cc6c3ac1 10763 (grub_cpu_is_tsc_supported): likewise
10764 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 10765
3e325901 107662009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10767
10768 Absolute addressing through constant with Apple's cc
10769
10770 * kern/i386/pc/startup.S: Define necessary constants
10771 and address through it when using ABS with Apple's CC
10772 * boot/i386/pc/diskboot.S: likewise
10773 * boot/i386/pc/boot.S: likewise
10774 * boot/i386/pc/lnxboot.S: likewise
10775 * boot/i386/pc/cdboot.S: likewise
10776 * mmap/i386/pc/mmap_helper.S: likewise
10777 * commands/i386/pc/drivemap_int13h.S: likewise
10778
2b167a72 107792009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10780
10781 Check if compiler is apple cc
10782
10783 * Makefile.in (ASFLAGS): new variable
10784 (TARGET_ASFLAGS): likewise
10785 (TARGET_MODULE_FORMAT): likewise
10786 (TARGET_APPLE_CC): likewise
10787 (OBJCONV): likewise
10788 (TARGET_IMG_CFLAGS): likewise
10789 (TARGET_CPPFLAGS): add includedir
10790 * configure.ac: call grub_apple_cc and grub_apple_target_cc
10791 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
10792 Check for linker script only if compiler isn't Apple's CC
10793 (TARGET_MODULE_FORMAT): set
10794 (TARGET_APPLE_CC): likewise
10795 (TARGET_ASFLAGS): likewise
10796 (ASFLAGS): likewise
10797 Check for objcopy only if compiler isn't Apple's CC
10798 Check for BSS symbol only if compiler isn't Apple's CC
10799 * genmk.rb: adapt nm options if we use Apple's utils
10800 * aclocal.m4 (grub_apple_cc): new test
10801 (grub_apple_target_cc): likewise
473d1e45 10802
fb14123e 108032009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10804
10805 Simplify sed expressions and improve awk
10806
10807 * Makefile.in (install-local): simplify sed expression
10808 * gencmdlist.sh: likewise
10809 * genmoddep.awk: avoid adding module as a dependency of itself
10810
5b889789 108112009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10812
10813 Add missing start symbols
10814
10815 * boot/i386/pc/boot.S: add start
fb14123e 10816 * boot/i386/pc/pxeboot.S: likewise
473d1e45 10817
fd2bf2e3 108182009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10819
10820 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 10821
10822 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 10823 (relocate_addresses): consider both r_addend and value at offset
10824 (make_mods_section): zerofill modinfo and header
10825 (convert_elf): write prefix here
473d1e45 10826
5389763d 108272009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10828
10829 Use .asciz instead of .string
10830
10831 * i386/pc/diskboot.S: use .asciz instead of .string
10832 * i386/pc/boot.S: likewise
10833 * include/grub/dl.h (GRUB_MOD_DEP): likewise
10834 (GRUB_MOD_NAME): likewise
473d1e45 10835
3eb5ed4e 108362009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10837
10838 gfxpayload support
10839
10840 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
10841 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
10842 (grub_video_setup): remove
10843 (grub_video_set_mode): new prototype
10844 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
10845 (vid_mode): remove
10846 (linux_vesafb_res): compile only on PCBIOS
10847 (grub_linux_boot): support gfxpayload
10848 * loader/i386/pc/xnu.c (video_hook): new function
10849 (grub_xnu_set_video): support gfxpayload
10850 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
10851 (DEFAULT_VIDEO_HEIGHT): likewise
10852 (DEFAULT_VIDEO_FLAGS): likewise
10853 (DEFAULT_VIDEO_MODE): new definition
10854 (video_hook): new function
10855 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 10856 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 10857 loading xnu
10858 * video/video.c (grub_video_setup): removed
473d1e45 10859 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 10860 grub_video_setup
10861
4b0e1143 108622009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10863
10864 Avoid calling biosdisk in drivemap
10865
10866 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
10867 (revparse_biosdisk): likewise
10868 (list_mappings): derive name from id directly
10869 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 10870
fda6cb98 108712009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10872
10873 Script fixes
10874
10875 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
10876 (grub_lexer_param): add tokenonhold
10877 (grub_script_create_cmdline): remove cmdline. All callers updated
10878 (grub_script_function_create): make functionname
10879 grub_script_arg. All callers updated
10880 (grub_script_execute_argument_to_string): new prototype
10881 * kern/parser.c (state_transitions): reorder
10882 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 10883 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 10884 make global
10885 (grub_script_execute_cmdline): use new format
10886 * script/sh/function.c (grub_script_function_create): make functionname
10887 grub_script_arg. All callers updated
473d1e45 10888 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 10889 (grub_script_yylex): remove
10890 (grub_script_yylex2): renamed to ...
10891 (grub_script_yylex): ...renamed
10892 parse the expressions like a${b}c
10893 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
10894 (GRUB_PARSER_TOKEN_VAR): remove
10895 (GRUB_PARSER_TOKEN_NAME): likewise
10896 ("if"): declare as typeless
10897 ("while"): likewise
10898 ("function"): likewise
10899 ("else"): likewise
10900 ("then"): likewise
10901 ("fi"): likewise
10902 (text): remove
10903 (argument): likewise
10904 (script): accept empty scripts and make exit on error
10905 (arguments): use GRUB_PARSER_TOKEN_ARG
10906 (function): likewise
10907 (command): move error handling to script
10908 (menuentry): move grub_script_lexer_ref before
473d1e45 10909 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 10910 argument. All callers updated
10911
f4448a07 109122009-06-04 Robert Millan <rmh.grub@aybabtu.com>
10913
10914 Prevent GRUB from probing floppies during boot.
10915
10916 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
10917 * commands/search.c (options): Add --no-floppy.
10918 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
10919 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
10920 --no-floppy when searching for UUIDs.
10921
2bf5885a 109222009-06-04 Robert Millan <rmh.grub@aybabtu.com>
10923
10924 Simplify the code duplication in commands/search.c.
10925
10926 * commands/search.c (search_label, search_fs_uuid): Merge into ...
10927 (search_fs): ... this. Update all users.
10928
f6fd460a 109292009-06-03 Felix Zielcke <fzielcke@z-51.de>
10930
10931 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
10932
cbb3c83e 109332009-05-28 Pavel Roskin <proski@gnu.org>
10934
57788cfd 10935 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
10936 Remove the original symlink explicitly.
10937
cbb3c83e 10938 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
10939 just one slash. That's how grub_fshelp_find_file() does it.
10940
cd0d5e30 109412009-05-26 Pavel Roskin <proski@gnu.org>
10942
f0f8bbe2 10943 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
10944 to `str'.
10945
cd0d5e30 10946 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
10947 possibly unused.
10948
8c2cab51 109492009-05-25 Christian Franke <franke@computer.org>
10950
10951 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
10952 register.
10953 (grub_atapi_identify): Add wait after drive select.
10954 (grub_ata_identify): Do more strict status register check before
10955 calling grub_atapi_identify (). Suppress error message if status
10956 register is 0x00 after command failure. Add status register
10957 check after PIO read to avoid bogus identify due to stuck DRQ.
10958 Thanks to Pavel Roskin for testing.
10959 (grub_device_initialize): Remove unsafe status register check.
10960 Thanks to 'phcoder' for problem report and patch.
10961 Prevent sign extension in debug message.
10962
230c0ad6 109632009-05-23 Colin D Bennett <colin@gibibit.com>
10964
10965 Cleaned up `include/grub/normal.h'. Grouped prototypes by
10966 definition file, and functions defined in `normal/menu.c' have had
10967 their prototypes moved to `include/grub/menu.h' for consistency.
10968
10969 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
10970 from normal.h.
10971 (grub_menu_get_entry): Likewise.
10972 (grub_menu_get_timeout): Likewise.
10973 (grub_menu_set_timeout): Likewise.
10974 (grub_menu_execute_entry): Likewise.
10975 (grub_menu_execute_with_fallback): Likewise.
10976 (grub_menu_entry_run): Likewise.
10977
10978 * include/grub/normal.h: Re-ordered and grouped function
10979 prototypes by file that the function is defined in.
10980 (grub_menu_execute_callback): Removed; moved to menu.h.
10981 (grub_menu_get_entry): Likewise.
10982 (grub_menu_get_timeout): Likewise.
10983 (grub_menu_set_timeout): Likewise.
10984 (grub_menu_execute_entry): Likewise.
10985 (grub_menu_execute_with_fallback): Likewise.
10986 (grub_menu_entry_run): Likewise.
10987 (grub_menu_addentry): Renamed from this ...
10988 (grub_normal_add_menu_entry): ... to this.
10989
10990 * normal/main.c (grub_menu_addentry): Renamed from this ...
10991 (grub_normal_add_menu_entry): ... to this.
10992
10993 * script/sh/execute.c (grub_script_execute_menuentry): Update
10994 reference to renamed grub_menu_addentry function.
10995
861f03a5 109962009-05-23 Felix Zielcke <fzielcke@z-51.de>
10997
10998 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
10999
96b1619a 110002009-05-22 Pavel Roskin <proski@gnu.org>
11001
bf6a5fb2 11002 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
11003 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
11004 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
11005 compiling for the i386 targets, but not for the utilities.
11006
96b1619a 11007 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
11008 to grub_uint8_t.
11009 (grub_root_drive): Likewise.
11010 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
11011 remove alignment.
11012 (grub_root_drive): Change size to byte.
11013 (grub_start_addr): Remove.
11014 (grub_end_addr): Likewise.
11015 (grub_apm_bios_info): Likewise.
11016
b729776b 110172009-05-21 Felix Zielcke <fzielcke@z-51.de>
11018
11019 * normal/i386: Remove.
11020 * normal/powerpc: Likewise.
11021 * normal/sparc64: Likewise.
11022 * normal/x86_64: Likewise.
11023
0a15ce80 110242009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
11025
11026 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 11027 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 11028 * loader/i386/xnu_helper.S: Likewise
d6da58e6 11029
33db9015 110302009-05-18 Colin D Bennett <colin@gibibit.com>
11031
d6da58e6 11032 Display error messages when parsing a Lua statement fails.
11033 Previously, executing a syntactically invalid statement like
11034 ")foo" or "bar;" would silently fail.
33db9015 11035
11036 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 11037 (grub_lua_parse_line): Improved reporting of Lua parser and
11038 execution errors.
33db9015 11039
46422c89 110402009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11041
11042 Remove -Werror which causes build to fail on some systems
11043
11044 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
11045 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
11046 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 11047
22f53a96 110482009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11049
11050 trampoline for linux on 64-bit platform
11051
18f547ad 11052 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
11053 loader/i386/efi/linux_trampoline.S
11054 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 11055 declaration
d6da58e6 11056 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
11057 here
22f53a96 11058 * loader/i386/linux_trampoline.S: moved here
d6da58e6 11059 * loader/i386/efi/linux.c (allocate_pages): reserve space for
11060 trampoline
22f53a96 11061 (jumpvector): removed
11062 (grub_linux_trampoline_start): new declaration
11063 (grub_linux_trampoline_end): likewise
11064 (grub_linux_boot): use trampoline when on 64-bit platform
11065 * loader/i386/linux.c: likewise
11066
cb5a0f40 110672009-05-16 Pavel Roskin <proski@gnu.org>
11068
11069 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
11070 const to avoid a warning.
11071 (grub_lua_setenv): Likewise.
11072 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
11073 lmsg to fix a warning.
11074
334f2c28 110752009-05-16 Felix Zielcke <fzielcke@z-51.de>
11076
11077 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 11078 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11079 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
11080 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11081 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11082 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11083 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11084 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 11085
59e5d3ec 110862009-05-16 Felix Zielcke <fzielcke@z-51.de>
11087
11088 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
11089
9d87a1ba 110902009-05-16 Bean <bean123ch@gmail.com>
11091
11092 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
11093 (lua_mod_SOURCES): New variable.
11094 (lua_mod_CFLAGS): Likewise.
11095 (lua_mod_LDFLAGS): Likewise.
11096
11097 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
11098 (setjmp_mod_SOURCES): New variable.
11099 (setjmp_mod_CFLAGS): Likewise.
11100 (setjmp_LDFLAGS): Likewise.
11101
11102 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
11103 (setjmp_mod_SOURCES): New variable.
11104 (setjmp_mod_CFLAGS): Likewise.
11105 (setjmp_LDFLAGS): Likewise.
11106
11107 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11108 (setjmp_mod_SOURCES): New variable.
11109 (setjmp_mod_CFLAGS): Likewise.
11110 (setjmp_LDFLAGS): Likewise.
11111
11112 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11113 (setjmp_mod_SOURCES): New variable.
11114 (setjmp_mod_CFLAGS): Likewise.
11115 (setjmp_LDFLAGS): Likewise.
11116
11117 * normal/i386/setjmp.S: Moved from here ...
11118 * lib/i386/setjmp.S: ... Moved here
11119 * normal/x86_64/setjmp.S: Moved from here ...
11120 * lib/x86_64/setjmp.S: ... Moved here
11121 * normal/powerpc/setjmp.S: Moved from here ...
11122 * lib/powerpc/setjmp.S: ... Moved here
11123 * normal/sparc64/setjmp.S: Moved from here ...
11124 * lib/sparc64/setjmp.S: ... Moved here
11125
11126 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
11127 returns_twice in mingw.
11128
11129 * script/lua/grub_lib.c: New file.
11130 * script/lua/grub_lib.h: Likewise.
11131 * script/lua/grub_lua.h: Likewise.
11132 * script/lua/grub_main.c: Likewise.
11133 * script/lua/lapi.c: Likewise.
11134 * script/lua/lapi.h: Likewise.
11135 * script/lua/lauxlib.c: Likewise.
11136 * script/lua/lauxlib.h: Likewise.
11137 * script/lua/lbaselib.c: Likewise.
11138 * script/lua/lcode.c: Likewise.
11139 * script/lua/lcode.h: Likewise.
11140 * script/lua/ldblib.c: Likewise.
11141 * script/lua/ldebug.c: Likewise.
11142 * script/lua/ldebug.h: Likewise.
11143 * script/lua/ldo.c: Likewise.
11144 * script/lua/ldo.h: Likewise.
11145 * script/lua/ldump.c: Likewise.
11146 * script/lua/lfunc.c: Likewise.
11147 * script/lua/lfunc.h: Likewise.
11148 * script/lua/lgc.c: Likewise.
11149 * script/lua/lgc.h: Likewise.
11150 * script/lua/linit.c: Likewise.
11151 * script/lua/liolib.c: Likewise.
11152 * script/lua/llex.c: Likewise.
11153 * script/lua/llex.h: Likewise.
11154 * script/lua/llimits.h: Likewise.
11155 * script/lua/lmathlib.c: Likewise.
11156 * script/lua/lmem.c: Likewise.
11157 * script/lua/lmem.h: Likewise.
11158 * script/lua/loadlib.c: Likewise.
11159 * script/lua/lobject.c: Likewise.
11160 * script/lua/lobject.h: Likewise.
11161 * script/lua/lopcodes.c: Likewise.
11162 * script/lua/lopcodes.h: Likewise.
11163 * script/lua/loslib.c: Likewise.
11164 * script/lua/lparser.c: Likewise.
11165 * script/lua/lparser.h: Likewise.
11166 * script/lua/lstate.c: Likewise.
11167 * script/lua/lstate.h: Likewise.
11168 * script/lua/lstring.c: Likewise.
11169 * script/lua/lstring.h: Likewise.
11170 * script/lua/lstrlib.c: Likewise.
11171 * script/lua/ltable.c: Likewise.
11172 * script/lua/ltable.h: Likewise.
11173 * script/lua/ltablib.c: Likewise.
11174 * script/lua/ltm.c: Likewise.
11175 * script/lua/ltm.h: Likewise.
11176 * script/lua/lua.h: Likewise.
11177 * script/lua/luaconf.h: Likewise.
11178 * script/lua/lualib.h: Likewise.
11179 * script/lua/lundump.c: Likewise.
11180 * script/lua/lundump.h: Likewise.
11181 * script/lua/lvm.c: Likewise.
11182 * script/lua/lvm.h: Likewise.
11183 * script/lua/lzio.c: Likewise.
11184 * script/lua/lzio.h: Likewise.
11185
5e898c9d 111862009-05-16 Bean <bean123ch@gmail.com>
11187
11188 * include/grub/kernel.h (grub_module_header_types): Add type
11189 OBJ_TYPE_CONFIG.
11190
11191 * kern/main.c (grub_load_config): New function.
11192 (grub_main): Call grub_load_config to read boot config.
11193
11194 * grub-mkimage (generate_image): New parameter config_path.
11195 (options): New option --config.
11196 (main): Parse --config option, and pass it to generate_image.
11197
cf353a47 111982009-05-14 Christian Franke <franke@computer.org>
11199
11200 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
11201 This fixes build on Cygwin.
11202
3834887f 112032009-05-14 Pavel Roskin <proski@gnu.org>
11204
11205 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
11206 jump. This saves two bytes, so the typical case of 2 swapped
11207 drives would fit 32 bytes.
11208
8090fc01 112092009-05-13 Pavel Roskin <proski@gnu.org>
11210
ac963883 11211 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
11212 grub_uint32_t to avoid a warning.
11213
8090fc01 11214 * loader/i386/linux.c (allocate_pages): When assigning
11215 real_mode_mem, cast through grub_size_t to fix a warning. The
11216 code already makes sure that the value would fit a pointer.
11217 (grub_linux_setup_video): Cast render_target->data to
11218 grub_size_t to fix a warning.
11219
18f547ad 112202009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 11221
11222 * commands/i386/pc/drivemap.c: New file - implement drivemap
11223 command.
11224 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
11225 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
11226
6f6a8b28 112272009-05-13 Pavel Roskin <proski@gnu.org>
11228
11229 * util/i386/pc/grub-setup.c (setup): Remove unused variable
11230 embedding_area_exists.
11231
15fbf4c4 112322009-05-13 Robert Millan <rmh.grub@aybabtu.com>
11233
11234 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
11235 it easier to understand / work with.
59978c8a 11236 Improve warning messages for cases where there's no embedding area,
11237 or when it is too small (or core.img too large).
15fbf4c4 11238
238e871f 112392009-05-13 Pavel Roskin <proski@gnu.org>
11240
0ab3a9a4 11241 * loader/i386/pc/multiboot2.c: Add necessary includes for
11242 grub_multiboot2_real_boot().
11243
a2c8c5f8 11244 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
11245 PX record is always little-endian. We only need the lower 2
11246 bytes of the mode.
11247
faec96af 11248 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
11249 facilitate code reuse.
11250 (grub_cpio_mount): Use "struct head", not a char buffer. This
11251 fixes a warning reported by gcc 4.4.
11252
238e871f 11253 * kernel/disk.c (grub_disk_read): Use void pointer for the
11254 buffer.
11255 (grub_disk_write): Use const void pointer for the buffer.
11256 Adjust all callers. Remove unnecessary casts.
11257
901d2f0c 112582009-05-10 Robert Millan <rmh.grub@aybabtu.com>
11259
11260 * util/i386/pc/grub-install.in: Update copyright year.
11261
18f547ad 112622009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 11263
11264 gptsync
11265
11266 * commands/gptsync.c: new file
11267 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
11268 (gptsync_mod_SOURCES): new variable
11269 (gptsync_mod_CFLAGS): likewise
11270 (gptsync_mod_LDFLAGS): likewise
18f547ad 11271 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 11272 new definition
11273 (GRUB_PC_PARTITION_TYPE_HFS): likewise
11274 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
11275 * conf/i386-ieee1275.rmk: likewise
11276 * conf/i386-pc.rmk: likewise
11277 * conf/powerpc-ieee1275.rmk: likewise
11278
b4ba690a 112792009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11280
11281 Fixed grub-emu
11282
11283 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
11284 (grub_dl_ref): likewise
11285
317e1a44 112862009-05-08 Robert Millan <rmh.grub@aybabtu.com>
11287
11288 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
11289 split in two functions (one for msdos and one for gpt).
11290
041b8094 112912009-05-08 Pavel Roskin <proski@gnu.org>
11292
752473c2 11293 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
11294 not modified.
11295
041b8094 11296 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
11297 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
11298 Initialize them with -1. Add sanity check for bad1. Eliminate
11299 nerr variable.
11300
172800ce 113012009-05-08 David S. Miller <davem@davemloft.net>
11302
11303 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
11304
29aa5e81 113052009-05-06 Robert Millan <rmh.grub@aybabtu.com>
11306
11307 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 11308 existence.
29aa5e81 11309
96613b62 113102009-05-05 Felix Zielcke <fzielcke@z-51.de>
11311
11312 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 11313 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 11314
eef73c8a 113152009-05-05 David S. Miller <davem@davemloft.net>
11316
11317 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
11318
119494b5 113192009-05-05 Pavel Roskin <proski@gnu.org>
11320
11321 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
11322 of grub_dl_ref() and grub_dl_unref().
11323 * commands/parttool.c: Remove preprocessor conditionals around
11324 grub_dl_ref() and grub_dl_unref().
11325 * fs/affs.c: Likewise.
11326 * fs/afs.c: Likewise.
11327 * fs/cpio.c: Likewise.
11328 * fs/ext2.c: Likewise.
11329 * fs/fat.c: Likewise.
11330 * fs/hfs.c: Likewise.
11331 * fs/hfsplus.c: Likewise.
11332 * fs/iso9660.c: Likewise.
11333 * fs/jfs.c: Likewise.
11334 * fs/minix.c: Likewise.
11335 * fs/ntfs.c: Likewise.
11336 * fs/reiserfs.c: Likewise.
11337 * fs/sfs.c: Likewise.
11338 * fs/udf.c: Likewise.
11339 * fs/ufs.c: Likewise.
11340 * fs/xfs.c: Likewise.
11341 * include/grub/dl.h: Likewise.
11342 * loader/xnu.c: Likewise.
11343
de5fd76e 113442009-05-04 Pavel Roskin <proski@gnu.org>
11345
11346 * commands/acpi.c: Remove unused variable my_mod.
11347 * partmap/amiga.c: Likewise.
11348 * partmap/apple.c: Likewise.
11349 * partmap/gpt.c: Likewise.
11350 * partmap/pc.c: Likewise.
11351 * partmap/sun.c: Likewise.
11352 * term/gfxterm.c: Likewise.
11353 * term/i386/pc/vesafb.c: Likewise.
11354 * term/i386/pc/vga.c: Likewise.
11355
983598ad 113562009-05-04 David S. Miller <davem@davemloft.net>
11357
11358 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
11359 pointer args to grub_ieee1275_get_property().
11360
8aadec43 11361 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
11362
9554b15e 11363 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
11364 devices, and do not traverse down under controller nodes.
11365
67e23c90 11366 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
11367 (grub_ofdisk_open): Use it to un-escape "," characters.
11368 * kern/disk.c (find_part_sep): New.
11369 (grub_disk_open): Use it to find the first non-escaped ','
11370 character in the disk name.
11371 * util/ieee1275/devicemap.c (escape_of_path): New.
11372 (grub_util_emit_devicemap_entry): Use it.
11373 * util/sparc64/ieee1275/grub-install.in: Update script to
11374 strip partition specifiers properly by not triggering on
11375 '\' escaped ',' characters.
11376
74bfdd2f 113772009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11378
11379 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
11380 to 0x300.
11381 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
11382 resolutions.
11383 (linux_vesafb_modes): Add a lot of additional modes to the list (based
11384 on documentation from Wikipedia).
11385
4241d2b1 113862009-05-04 Pavel Roskin <proski@gnu.org>
11387
11388 * disk/ata.c: Spelling fixes.
11389 * disk/raid.c: Likewise.
11390 * disk/usbms.c: Likewise.
11391 * disk/dmraid_nvidia.c: Likewise.
11392 * kern/ieee1275/openfw.c: Likewise.
11393 * kern/ieee1275/init.c: Likewise.
11394 * kern/ieee1275/cmain.c: Likewise.
11395 * boot/i386/pc/cdboot.S: Likewise.
11396 * video/readers/png.c: Likewise.
11397 * video/i386/pc/vbe.c: Likewise.
11398 * fs/udf.c: Likewise.
11399 * fs/hfs.c: Likewise.
11400 * fs/reiserfs.c: Likewise.
11401 * efiemu/runtime/efiemu.c: Likewise.
11402 * efiemu/main.c: Likewise.
11403 * efiemu/mm.c: Likewise.
11404 * include/grub/elf.h: Likewise.
11405 * include/grub/xnu.h: Likewise.
11406 * include/grub/usbdesc.h: Likewise.
11407 * include/grub/usb.h: Likewise.
11408 * include/grub/script_sh.h: Likewise.
11409 * include/grub/lib/LzmaEnc.h: Likewise.
11410 * include/grub/efiemu/efiemu.h: Likewise.
11411 * include/grub/command.h: Likewise.
11412 * normal/menu.c: Likewise.
11413 * normal/main.c: Likewise.
11414 * normal/datetime.c: Likewise.
11415 * bus/usb/uhci.c: Likewise.
11416 * mmap/i386/uppermem.c: Likewise.
11417 * mmap/mmap.c: Likewise.
11418 * commands/acpi.c: Likewise.
11419 * commands/test.c: Likewise.
11420 * partmap/apple.c: Likewise.
11421 * font/font.c: Likewise.
11422 * loader/sparc64/ieee1275/linux.c: Likewise.
11423 * loader/macho.c: Likewise.
11424 * loader/i386/bsd_trampoline.S: Likewise.
11425 * loader/i386/bsd.c: Likewise.
11426 * loader/xnu.c: Likewise.
11427 * term/i386/pc/vesafb.c: Likewise.
11428 * term/usb_keyboard.c: Likewise.
11429 * util/resolve.c: Likewise.
11430 * util/getroot.c: Likewise.
11431
0cfc0083 114322009-05-04 Felix Zielcke <fzielcke@z-51.de>
11433
11434 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
11435
7c1d00cd 114362009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11437
11438 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
11439 build error.
11440
b01f0548 114412009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11442
11443 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
11444 parameter only available on BIOS.
11445
ecc3eb22 114462009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11447
11448 Removed wrong semicolon in declaration
11449
11450 * grub/misc.h (grub_dprintf): remove semicolon
11451
112972a9 114522009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11453
11454 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
11455 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
11456 is done by grub_cmd_linux() now).
11457 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
11458 restore video to text mode.
11459 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
11460 indicates lack of "vga=" parameter. "vga=0" is mapped to
11461 `GRUB_LINUX_VID_MODE_NORMAL'.
11462
afd5c115 114632009-05-04 Felix Zielcke <fzielcke@z-51.de>
11464
11465 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
11466 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
11467 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 11468 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 11469 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
11470 `grub_script.tab.c'.
11471
11472 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11473 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
11474 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11475 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
11476 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11477
faa517ce 11478 * Makefile.in: Remove duplicated 2008 in Copyright line.
11479
ae0c0bdc 114802009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11481
473d1e45 11482 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 11483 unconditionally.
11484 * include/grub/util/misc.h (grub_util_warn): New declaration.
11485
11486 * util/i386/pc/grub-install.in: Understand --force and pass it down
11487 to grub-setup.
11488
11489 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
11490 down to setup().
11491 (setup): Improve error messages and add warnings when requested to
11492 install in odd layouts. Refuse to install using blocklists unless
11493 --force was set.
11494
18f547ad 114952009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 11496
11497 * disk/raid.c (grub_raid_scan_device): Improve debug message.
11498
6d260daa 114992009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11500
11501 Updated copyright year
11502
11503 * fs/hfsplus.c: updated copyright year
18f547ad 11504
69f853f8 115052009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11506
11507 HFS+ UUID
11508
18f547ad 11509 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 11510 in the space previously used by unused3
11511 (grub_hfsplus_uuid): new function
11512 (grub_hfsplus_fs): added uuid field
11513
4c402e73 115142009-05-03 Pavel Roskin <proski@gnu.org>
11515
11516 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
11517 suppress warnings. It's no longer needed.
11518 * disk/host.c: Likewise.
11519 * disk/ata_pthru.c: Likewise.
11520 * disk/loopback.c: Likewise.
11521 * hook/datehook.c: Likewise.
11522 * parttool/pcpart.c: Likewise.
11523 * fs/i386/pc/pxe.c: Likewise.
11524 * fs/ntfscomp.c: Likewise.
11525 * efiemu/main.c: Likewise.
11526 * mmap/mmap.c: Likewise.
11527 * commands/crc.c: Likewise.
11528 * commands/hexdump.c: Likewise.
11529 * commands/hdparm.c: Likewise.
11530 * commands/acpi.c: Likewise.
11531 * commands/echo.c: Likewise.
11532 * commands/minicmd.c: Likewise.
11533 * commands/blocklist.c: Likewise.
11534 * commands/memrw.c: Likewise.
11535 * commands/loadenv.c: Likewise.
11536 * commands/usbtest.c: Likewise.
11537 * commands/lsmmap.c: Likewise.
11538 * commands/boot.c: Likewise.
11539 * commands/parttool.c: Likewise.
11540 * commands/configfile.c: Likewise.
11541 * commands/search.c: Likewise.
11542 * commands/ieee1275/suspend.c: Likewise.
11543 * commands/cat.c: Likewise.
11544 * commands/i386/pc/pxecmd.c: Likewise.
11545 * commands/i386/pc/play.c: Likewise.
11546 * commands/i386/pc/halt.c: Likewise.
11547 * commands/i386/pc/vbeinfo.c: Likewise.
11548 * commands/i386/pc/vbetest.c: Likewise.
11549 * commands/lspci.c: Likewise.
11550 * commands/date.c: Likewise.
11551 * commands/handler.c: Likewise.
11552 * commands/ls.c: Likewise.
11553 * commands/test.c: Likewise.
11554 * commands/cmp.c: Likewise.
11555 * commands/efi/loadbios.c: Likewise.
11556 * commands/efi/fixvideo.c: Likewise.
11557 * commands/halt.c: Likewise.
11558 * commands/help.c: Likewise.
11559 * commands/reboot.c: Likewise.
11560 * hello/hello.c: Likewise.
11561 * script/sh/main.c: Likewise.
11562 * loader/xnu.c: Likewise.
11563 * term/terminfo.c: Likewise.
11564 * term/i386/pc/serial.c: Likewise.
11565 * term/usb_keyboard.c: Likewise.
11566
515b5079 115672009-05-03 David S. Miller <davem@davemloft.net>
11568
11569 * normal/menu.c: Include grub/parser.h
11570
dfc31a22 115712009-05-03 Pavel Roskin <proski@gnu.org>
11572
2fee74f1 11573 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
11574 not char*.
11575 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
11576 Suggested by Javier Martín <lordhabbit@gmail.com>
11577
dfc31a22 11578 * util/i386/pc/grub-mkrescue.in: Allow for the case when
11579 efiemu??.o doesn't exist.
11580 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
11581 copying.
11582
18f547ad 115832009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 11584
11585 FreeBSD 64-bit support
11586
18f547ad 11587 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 11588 and loader/i386/bsd_trampoline.S
11589 (bsd_mod_ASFLAGS): new variable
11590 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
11591 (FREEBSD_MODTYPE_KERNEL64): likewise
11592 (grub_bsd64_trampoline_start): likewise
11593 (grub_bsd64_trampoline_end): likewise
11594 (grub_bsd64_trampoline_selfjump): likewise
11595 (grub_bsd64_trampoline_gdt): likewise
11596 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
11597 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
11598 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
11599 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 11600 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 11601 of "attrib" member
11602 * loader/i386/bsd_pagetable.c: new file
11603 * loader/i386/bsd_trampoline.S: likewise
11604 * loader/i386/bsd.c (ALIGN_QWORD): new macro
11605 (ALIGN_VAR): likewise
11606 (entry_hi): new variable
11607 (kern_end_mdofs): likewise
11608 (is_64bit): likewise
11609 (grub_freebsd_add_meta): use ALIGN_VAR
11610 (grub_e820_mmap): new declaration
11611 (grub_freebsd_add_mmap): new function
11612 (grub_freebsd_add_meta_module): support 64 bit kernels
11613 (grub_freebsd_list_modules): use ALIGN_VAR
11614 (gdt_descriptor): new declaration
11615 (grub_freebsd_boot): support 64 bit kernels
11616 (grub_bsd_elf64_hook): new function
11617 (grub_bsd_load_elf): support elf64
11618
038c5720 116192009-05-03 Bean <bean123ch@gmail.com>
11620
11621 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
11622 after we get the result of if statement.
11623
fc45fb58 116242009-05-03 Bean <bean123ch@gmail.com>
11625
11626 * Makefile.in (enable_efiemu): New variable.
11627
11628 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
11629 set.
11630 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
11631 path.
11632 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
11633 path, add -mno-red-zone option.
11634 (efiemu64_s.o): Likewise.
11635 (efiemu64.o): Use macro $^ for source file.
11636
11637 * configure.ac (--enable-efiemu): New option.
11638
bbee0f2b 116392009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11640
11641 xnu support
11642
11643 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
11644 (pkglib_MODULES): add xnu.mod
11645 (xnu_mod_SOURCES): new variable
11646 (xnu_mod_CFLAGS): likewise
11647 (xnu_mod_LDFLAGS): likewise
11648 (xnu_mod_ASFLAGS): likewise
11649 * conf/i386-pc.rmk: likewise
11650 * conf/x86_64-efi.rmk: likewise
7dd4a573 11651 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 11652 new declaration
11653 * include/grub/i386/macho.h: new file
11654 * include/grub/i386/xnu.h: likewise
11655 * include/grub/macho.h: likewise
11656 * include/grub/machoload.h: likewise
11657 * include/grub/x86_64/macho.h: likewise
11658 * include/grub/x86_64/xnu.h: likewise
11659 * include/grub/xnu.h: likewise
11660 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
11661 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
11662 * loader/i386/efi/xnu.c: new file
11663 * loader/i386/pc/xnu.c: likewise
11664 * loader/i386/xnu.c: likewise
11665 * loader/i386/xnu_helper.S: likewise
11666 * loader/macho.c: likewise
11667 * loader/xnu.c: likewise
11668 * loader/xnu_resume.c: likewise
11669 * util/grub-dumpdevtree: likewise
11670 * include/grub/i386/pit.h: include grub/err.h
11671 (grub_pit_wait): export
11672 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 11673
5caf964d 116742009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11675
11676 Efiemu
7dd4a573 11677
5caf964d 11678 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 11679 _linux_efi, linux_efi.
11680 new files in grub-emu
5caf964d 11681 new targets efiemu32.o and efiemu64.o
11682 * loader/linux_normal_efiemu.c: likewise
11683 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 11684 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 11685 files to copy
11686 * include/grub/autoefi.h: new file
7dd4a573 11687 * include/grub/i386/efiemu.h: likewise
5caf964d 11688 * include/grub/i386/pc/efiemu.h: likewise
11689 * include/grub/efi/api.h: add LL suffix when necessary
11690 new definitions relating to tables
11691 * include/grub/efiemu/efiemu.h: new file
11692 * include/grub/efiemu/runtime.h: likewise
11693 * efiemu/prepare.c: likewise
11694 * efiemu/loadcore_common.c: likewise
11695 * efiemu/loadcore64.c: likewise
11696 * efiemu/runtime/efiemu.sh: likewise
11697 * efiemu/runtime/efiemu.S: likewise
11698 * efiemu/runtime/efiemu.c: likewise
11699 * efiemu/runtime/config.h: likewise
11700 * efiemu/prepare32.c: likewise
11701 * efiemu/main.c: likewise
11702 * efiemu/modules/pnvram.c: likewise
11703 * efiemu/modules/i386: likewise
11704 * efiemu/modules/i386/pc: likewise
11705 * efiemu/modules/acpi.c: likewise
11706 * efiemu/i386/pc/cfgtables.c: likewise
11707 * efiemu/i386/loadcore64.c: likewise
11708 * efiemu/i386/loadcore32.c: likewise
11709 * efiemu/prepare64.c: likewise
11710 * efiemu/loadcore.c: likewise
11711 * efiemu/symbols.c: likewise
11712 * efiemu/mm.c: likewise
11713 * efiemu/loadcore32.c: likewise
7dd4a573 11714
117152009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 11716
11717 ACPI spoofing
11718
11719 * commands/acpi.c: new file
11720 * commands/i386/pc/acpi.c: likewise
11721 * commands/efi/acpi.c: likewise
11722 * include/grub/acpi.h: likewise
11723 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
11724 (acpi_mod_SOURCES): new variable
11725 (acpi_mod_CFLAGS): likewise
11726 (acpi_mod_LDFLAGS): likewise
11727 * conf/i386-efi.rmk: likewise
11728 * conf/x86_64-efi.rmk: likewise
11729
7dd4a573 117302009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 11731
11732 Missing part from mmap patch
11733
11734 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
11735 (grub_mmap_unregister)
11736 (grub_mmap_free_and_unregister): use grub_mmap_register
11737
7dd4a573 117382009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 11739
11740 Mmap services
11741
11742 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
11743 * loader/i386/linux.c (find_mmap_size): likewise
11744 (allocate_pages): likewise
11745 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
11746 (grub_fill_multiboot_mmap): likewise
11747 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
11748 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
11749 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
11750 (OPENBSD_MMAP_RESERVED): likewise
11751 * include/grub/i386/pc/memory.h: include grub/memory.h
11752 (grub_lower_mem): removed
11753 (grub_upper_mem): likewise
11754 (GRUB_MACHINE_MEMORY_ACPI): new definition
11755 (GRUB_MACHINE_MEMORY_NVS): likewise
11756 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
11757 (GRUB_MACHINE_MEMORY_HOLE): likewise
11758 (grub_machine_mmap_register): likewise
11759 (grub_machine_mmap_unregister): likewise
11760 (grub_machine_get_upper): likewise
11761 (grub_machine_get_lower): likewise
11762 (grub_machine_get_post64): likewise
11763 * include/grub/i386/efi/memory.h: new file
11764 * include/grub/x86_64/efi/memory.h: likewise
11765 * include/grub/efi/memory.h: likewise
11766 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
11767 (mmap_mod_SOURCES): new variable
11768 (mmap_mod_LDFLAGS): likewise
11769 (mmap_mod_ASFLAGS): likewise
11770 * conf/i386-coreboot.rmk: likewise
11771 * conf/i386-ieee1275.rmk: likewise
11772 * conf/i386-efi.rmk: likewise
11773 * conf/x86_64-efi.rmk: likewise
11774 * include/grub/types.h (UINT_TO_PTR): new macro
11775 (PTR_TO_UINT32): likewise
11776 (PTR_TO_UINT64): likewise
11777 * include/grub/memory.h: new file
11778 * mmap/i386/pc/mmap.c: likewise
11779 * mmap/i386/pc/mmap_helper.S: likewise
11780 * mmap/i386/uppermem.c: likewise
11781 * mmap/mmap.c: likewise
11782 * mmap/efi/mmap.c: likewise
7dd4a573 11783 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 11784 grub_upper_mem
11785 * kern/i386/pc/init.c (grub_lower_mem): removed variable
11786 (grub_upper_mem): likewise
11787 (grub_machine_init): don't use grub_upper_mem,
11788 make grub_lower_mem local
11789 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
11790 grub_mmap_iterate and grub_mmap_get_upper
11791 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
11792
d558e6b5 117932009-05-02 Bean <bean123ch@gmail.com>
11794
11795 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
11796 script/sh/parser.y.
11797 (pkglib_MODULES): Add normal.mod and sh.mod.
11798 (normal_SOURCES): New variable.
11799 (normal_mod_CFLAGS): Likewise.
11800 (normal_mod_LDFLAGS): Likewise.
11801 (sh_mod_SOURCES): Likewise.
11802 (sh_mod_CFLAGS): Likewise.
11803 (sh_mod_LDFLAGS): Likewise.
11804
11805 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
11806 script/sh/lexer.c_DEPENDENCIES.
11807 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
11808 kern/rescue_reader.c and kern/rescue_parser.c.
11809 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
11810 (grub_emu_SOURCES): Change source files.
11811 (pkglib_MODULES): Remove normal.mod.
11812 (normal_SOURCES): Removed.
11813 (normal_mod_CFLAGS): Likewise.
11814 (normal_mod_LDFLAGS): Likewise.
11815 * conf/i386-coreboot.rmk: Likewise.
11816 * conf/i386-efi.rmk: Likewise.
11817 * conf/i386-ieee1276.rmk: Likewise.
11818 * conf/powerpc-ieee1275.rmk: Likewise.
11819 * conf/sparc64-ieee1275.rmk: Likewise.
11820 * conf/x86_64-efi.rmk: Likewise.
11821
11822 * include/grub/command.h (grub_command_execute): New inline function.
11823
11824 * include/grub/menu.h (grub_menu_entry): Removed commands field.
11825
11826 * include/grub/normal.h: Remove <grub/setjmp.h>.
11827 (grub_fs_module_list): Moved to normal/autofs.c.
11828 (grub_exit_env): Removed.
11829 (grub_command_execute): Likewise.
11830 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
11831 parameter script.
11832 (read_command_list): New function declaration.
11833 (read_fs_list): Likewise.
11834
11835 * include/parser.h: Include <grub/reader.h>.
11836 (grub_parser_split_cmdline): Change type of getline parameter.
11837 (grub_parser): New structure.
11838 (grub_parser_class): New variable.
11839 (grub_parser_execute): New function declaration.
11840 (grub_register_rescue_parser): Likewise.
11841 (grub_parser_register): New inline function.
11842 (grub_parser_unregister): Likewise.
11843 (grub_parser_get_current): Likewise.
11844 (grub_parser_set_current): Likewise.
11845
11846 * include/grub/reader.h: New file.
11847 * kern/reader.c: Likewise.
11848 * kern/rescue_parser.c: Likewise.
11849 * kern/rescue_reader.c: Likewise.
11850 * normal/autofs.c: Likewise.
11851 * normal/dyncmd.c: Likewise.
11852
11853 * include/grub/rescue.h: Removed.
11854 * normal/command.h: Likewise.
11855
11856 * include/grub/script.h: Moved to ...
11857 * include/grub/script_sh.h: ... Moved here.
11858 * normal/execute.c: Moved to ...
11859 * script/sh/execute.c: ... Moved here.
11860 * normal/function.c: Moved to ...
11861 * script/sh/function.c: ... Moved here.
11862 * normal/lexer.c: Moved to ...
11863 * script/sh/lexer.c: ... Moved here.
11864 * normal/parser.y: Moved to ...
11865 * script/sh/parser.y: ... Moved here.
11866 * normal/script.c: Moved to ...
11867 * script/sh/script.c: ... Moved here.
11868
11869 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
11870 <grub/reader.h>.
11871 (grub_exit_env): Removed.
11872 (fs_module_list): Moved to normal/autofs.c.
11873 (grub_file_getline): Don't handle comment here.
11874 (free_menu): Skip removed field entry->commands.
11875 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
11876 script parameter.
11877 (read_config_file): Removed nested parameter, change getline function.
11878 (grub_enter_normal_mode): Removed.
11879 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
11880 (read_command_list): Likewise.
11881 (autoload_fs_module): Moved to normal/autofs.c.
11882 (read_fs_list): Likewise.
11883 (reader_nested): New variable.
11884 (grub_normal_execute): Run parser.sh to switch to sh parser.
11885 (grub_cmd_rescue): Removed.
11886 (cmd_normal): Removed.
11887 (grub_cmd_normal): Unregister itself at the beginning. Don't register
11888 rescue command.
11889 (grub_cmdline_run): New function.
11890 (grub_normal_reader_init): Likewise.
11891 (grub_normal_read_line): Likewise.
11892 (grub_env_write_pager): Likewise.
11893 (cmdline): New variable.
11894 (grub_normal_reader): Likewise.
11895 (GRUB_MOD_INIT): Register normal reader and set as current, register
11896 pager hook, register normal command with grub_register_command_prio,
11897 so that it won't show up in command.lst.
11898 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
11899 grub_fs_autoload_hook.
11900
11901 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
11902 (grub_menu_execute_entry): Replace grub_script_execute with
11903 grub_parser_execute, change parameter to grub_command_execute.
11904
11905 * normal/menu_text.c: Remove <grub/script.h>.
11906
11907 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
11908 and <grub/parser.h>.
11909 (run): Change editor_getline to use new parser interface. Change
11910 parameter to grub_command_execute.
11911
11912 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
11913 <grub/reader.h> and <grub/parser.h>.
11914 (grub_load_normal_mode): Execute normal command.
11915 (grub_main): Call grub_register_core_commands,
11916 grub_register_rescue_parser and grub_register_rescue_reader, use
11917 grub_reader_loop to enter input loop.
11918
7dd4a573 11919 * kern/parser.c (grub_parser_split_cmdline): Change type of
11920 getline parameter.
d558e6b5 11921 (grub_parser_class): New variable.
11922 (grub_parser_execute): New function.
11923
11924 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
11925 * loader/multiboot2.c: Likewise.
11926 * loader/sparc64/ieee1275/linux.c: Likewise.
11927
11928 * util/grub-emu.c (read_command_list): New dummy function.
11929
18db813d 119302009-05-02 Robert Millan <rmh.grub@aybabtu.com>
11931
11932 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
11933 count to 16 for CCISS and IDA.
11934
6c67de15 119352009-05-02 Robert Millan <rmh.grub@aybabtu.com>
11936
11937 * normal/menu_text.c (grub_wait_after_message): Print a newline
11938 after waiting for user input.
11939
11940 * loader/i386/linux.c: Include `<grub/normal.h>'.
11941 (grub_cmd_linux): Improve the error message about `ask' mode, by
11942 waiting for user input so it's not missed (we can do this, since
11943 user requested interaction).
11944
d9dc87b0 119452009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11946
11947 Added missing lst to grub-mkrescue
11948
11949 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
11950 and ${input_dir}/parttool.lst
11951
ac8a2baa 119522009-04-30 David S. Miller <davem@davemloft.net>
11953
ad22a610 11954 * util/hostdisk.c (device_is_wholedisk): New function.
11955 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
11956 zero only if device_is_wholedisk() returns true.
11957
6966215d 11958 * util/hostdisk.c (convert_system_partition_to_system_disk):
11959 Handle virtual disk devices named /dev/vdiskX as found on sparc
11960 and powerpc.
11961
ac8a2baa 11962 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
11963 lettered partition specifier is found, convert to numbered.
11964
979b4fb4 119652009-04-29 David S. Miller <davem@davemloft.net>
11966
e2bf39b2 11967 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
11968 * include/grub/sparc64/ieee1275/memory.h: Likewise.
11969
3c64e104 11970 * normal/command.c: Add missing newline at end of file.
11971
979b4fb4 11972 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
11973 warnings.
11974 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
11975 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
11976 grub_ofdisk_read): Likewise, and deal similarly with the fact that
11977 ihandles have a 32-bit type but need to be stored in a "void *".
11978
136d9f82 119792009-04-28 Pavel Roskin <proski@gnu.org>
11980
9459c306 11981 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
11982 not disk. Adjust all dependencies.
2e08a26a 11983 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 11984 grub_disk_close().
11985
136d9f82 11986 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
11987 parent's partition, don't copy it by reference, as it gets freed
11988 on close.
11989
7dd4a573 119902009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 11991
11992 Preboot hooks support
11993
11994 * commands/boot.c (struct grub_preboot_t): new declaration
11995 (preboots_head): new variable
11996 (preboots_tail): likewise
11997 (grub_loader_register_preboot_hook): new function
11998 (grub_loader_unregister_preboot_hook): likewise
11999 (grub_loader_set): launch preboot hooks
12000 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
12001 (grub_loader_register_preboot_hook): new declaration
12002 (grub_loader_unregister_preboot_hook): likewise
12003
5af922b5 120042009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
12005
12006 Warning fix
12007
7dd4a573 12008 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 12009 calling grub_dprintf
12010
a5562c30 120112009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
12012
12013 Bug and warning fixes
12014
7dd4a573 12015 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 12016 declaration
12017 * commands/test.c (test_parse): fixed bug with file tests and corrected
12018 declaration of find_file
12019
4006f85c 120202009-04-26 Pavel Roskin <proski@gnu.org>
12021
12022 * Makefile.in: Don't install empty manual pages if help2man is
12023 missing. Use help2man option for output, not shell redirection.
12024
5c77c3de 120252009-04-26 David S. Miller <davem@davemloft.net>
12026
12027 * util/grub-mkdevicemap.c (make_device_map): Add missing
12028 NESTED_FUNC_ATTR to process_device().
12029
033b10a8 120302009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12031
12032 Test command
12033
12034 * commands/test.c: rewritten to use bash-like test
12035
e4343593 120362009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12037
12038 Parttool autoloading and improvements
12039
7dd4a573 12040 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 12041 (parttool.lst): new target
12042 * genmk.rb: generate parttool-*
12043 (CLEANFILES): add #{parttool}
12044 (PARTTOOLFILES): new variable
12045 * genparttoollist.sh: new file
7dd4a573 12046 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 12047 (grub_pcpart_type): likewise
12048 * commands/parttool.c (helpmsg): new variable
12049 (grub_cmd_parttool): output help if not enough arguments are supplied
12050 autoload modules
12051 (GRUB_MOD_INIT(parttool)): use helpmsg
12052
0d312500 120532009-04-24 David S. Miller <davem@davemloft.net>
12054
7dd4a573 12055 Avoiding opening same device multiple times in device iterator.
0d312500 12056
12057 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 12058 and use it to build a list of partitions in iterate_disk() and
0d312500 12059 iterate_partition().
12060
ac20caff 12061 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
12062 on disk->data.
12063
0dcf7495 12064 * disk/ieee1275/nand.c (grub_nand_iterate): Return
12065 grub_devalias_iterate() result instead of unconditional 0.
12066 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
12067 Also, capture hook return value, either directly or via
12068 grub_children_iterate(), and propagate to caller.
12069 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
12070 grub_children_iterate): Return value is now 'int' instead of
12071 'grub_err_t'.
12072 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
12073 like a proper iterator, stopping when hooks return non-zero.
12074 (grub_devalias_iterate): Likewise.
12075
c8c08833 120762009-04-23 David S. Miller <davem@davemloft.net>
12077
12078 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
12079
f01005a8 120802009-04-22 David S. Miller <davem@davemloft.net>
12081
12082 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
12083 is larger than address_cells, use that value for address_cells too.
12084
4e8269da 12085 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
12086 IEEE1275_MAX_PATH_LEN): Define.
12087 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
12088 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
12089 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
12090 'devtype'. Explicitly NULL terminate devalias expansion.
12091
a1447506 12092 * util/sparc64/ieee1275/misc.c: New file.
12093 * util/sparc64/ieee1275/grub-setup.c: New file.
12094 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
12095 * util/sparc64/ieee1275/grub-mkimage.c: New file.
12096 * util/sparc64/ieee1275/grub-install.in: New file.
12097 * util/ieee1275/ofpath.c: New file.
12098 * util/ieee1275/devicemap.c: New file.
12099 * util/devicemap.c: New file.
12100 * util/deviceiter.c: New file.
12101 * kern/sparc64/ieee1275/init.c: New file.
12102 * include/grub/util/ofpath.h: New file.
12103 * include/grub/util/deviceiter.h: New file.
12104 * util/grub-mkdevicemap.c: Include deviceiter.h.
12105 Implement using grub_util_emit_devicemap_entry and
12106 grub_util_iterate_devices.
12107 * conf/i386-corebook.rmk: Build util/deviceiter.c and
12108 util/devicemap.c into grub-mkdevicemap
12109 * conf/i386-efi.rmk: Likewise.
12110 * conf/i386-ieee1275.rmk: Likewise.
12111 * conf/i386-pc.rmk: Likewise.
12112 * conf/powerpc-ieee1275.rmk: Likewise.
12113 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
12114 images and installation utilities. Build kernel as image
12115 instead of as elf binary. Use common rules as much as possible.
12116
7dd4a573 121172009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 12118
12119 Correct GPT definition
12120
7dd4a573 12121 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 12122 of "attrib" member
12123
c6c5219f 121242009-04-19 Felix Zielcke <fzielcke@z-51.de>
12125
12126 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
12127
0552ff9f 121282009-04-19 David S. Miller <davem@davemloft.net>
12129
12130 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
12131 (grub_rescue_cmd_linux): Rename to...
12132 (grub_cmd_linux): and fix prototype.
12133 (grub_rescue_cmd_initrd): Rename to...
12134 (grub_cmd_initrd): and fix prototype.
12135 (cmd_linux, cmd_initrd): New.
12136 (GRUB_MOD_INIT(linux)): Use grub_register_command().
12137 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
12138
d1a282fc 121392009-04-17 Pavel Roskin <proski@gnu.org>
12140
07c5039f 12141 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
12142 format.
12143 (grub_ohci_transfer): Likewise.
12144
b012002d 12145 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
12146
1bc09c35 12147 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
12148 return without a value. Fix inconsistent indentation.
12149
e0ff9126 12150 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
12151 match struct grub_fs.
12152
d1a282fc 12153 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
12154 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
12155 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
12156 * commands/lspci.c (grub_lspci_iter): Likewise.
12157
a96df3f2 121582009-04-16 Bean <bean123ch@gmail.com>
12159
12160 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
12161 value.
12162
41bb0fe9 121632009-04-15 Pavel Roskin <proski@gnu.org>
12164
12165 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
12166 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
12167 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
12168 definitions.
12169
596c6970 121702009-04-15 Felix Zielcke <fzielcke@z-51.de>
12171
12172 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 12173 that no multiple data or metadata areas are supported and `Unknown
596c6970 12174 metadata header'.
12175
7dd4a573 121762009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 12177
12178 Move loader out of the kernel
12179
12180 * kern/loader.c: moved to ...
12181 * commands/boot.c: ... moved here
12182 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
12183 * commands/boot.c (grub_cmd_boot): moved here. All users updated
12184 * include/grub/kernel.h (grub_machine_fini): export
12185 * include/grub/loader.h (grub_loader_is_loaded): update declaration
12186 (grub_loader_set): likewise
12187 (grub_loader_unset): likewise
12188 (grub_loader_boot): likewise
12189 * conf/common.rmk: new module boot.mod
12190 (pkglib_MODULES): add boot.mod
12191 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
12192 (grub_emu_SOURCES): likewise
12193 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
12194 (grub_emu_SOURCES): likewise
12195 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
12196 (grub_emu_SOURCES): likewise
12197 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
12198 (grub_emu_SOURCES): likewise
12199 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
12200 (grub_emu_SOURCES): likewise
7dd4a573 12201 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
12202 (grub_emu_SOURCES): likewise
0d5d5653 12203 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 12204 (grub_emu_SOURCES): likewise
0d5d5653 12205
7dd4a573 122062009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 12207
12208 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 12209
5999d619 12210 * kern/misc.c (grub_itoa): Removed function
12211 (grub_ltoa): likewise
12212 (grub_vsprintf): use grub_lltoa
12213
7dd4a573 122142009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 12215
12216 Restore grub-emu
12217
12218 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
12219 * conf/i386-coreboot.rmk: likewise
12220 * conf/i386-ieee1275.rmk: likewise
12221 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 12222
20318222 122232009-04-15 Felix Zielcke <fzielcke@z-51.de>
12224
12225 * INSTALL: Add that `./autogen.sh' needs to be run before
12226 `./configure.'.
12227
d05f0df3 122282009-04-14 Bean <bean123ch@gmail.com>
12229
12230 * Makefile.in (pkglib_DATA): Add handler.lst.
12231 (handler.lst): New rule.
12232
12233 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
12234 * conf/i386-coreboot.rmk: Likewise.
12235 * conf/i386-ieee1275.rmk: Likewise.
12236 * conf/i386-efi.rmk: Likewise.
12237 * conf/x86_64-efi.rmk: Likewise.
12238 * conf/powerpc-ieee1275.rmk: Likewise.
12239 * conf/sparc64-ieee1275.rmk: Likewise.
12240
12241 * genhandlerlist.sh: New file.
12242
12243 * genmk.rb: Add rules to generate handler.lst.
12244
12245 * include/grub/normal.h (grub_file_getline): New function definition.
12246 (read_handler_list): Likewise.
12247 (free_handler_list): Likewise.
12248
12249 * include/grub/term.h (grub_term_register_input): Add name parameter
12250 for auto generation of handler.lst.
12251 (grub_term_register_output): Likewise.
12252
12253 * normal/handler.c: New file.
12254
12255 * normal/main.c (get_line): Renamed to grub_file_getline.
12256 (read_config_file): Use the newly renamed grub_file_getline.
12257 (read_command_list): Likewise.
12258 (read_fs_list): Likewise.
12259 (grub_normal_execute): Call read_handler_list to parse handler.lst.
12260 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
12261
12262 * term/efi/console.c (grub_console_init): Add name parameter for auto
12263 generation of handler.lst.
12264 * term/gfxterm.c: Likewise.
12265 * term/i386/pc/at_keyboard.c: Likewise.
12266 * term/i386/pc/console.c: Likewise.
12267 * term/i386/pc/serial.c: Likewise.
12268 * term/i386/pc/vesafb.c: Likewise.
12269 * term/i386/pc/vga.c: Likewise.
12270 * term/i386/pc/vga_text.c: Likewise.
12271 * term/ieee1275/ofconsole.c: Likewise.
12272 * term/usb_keyboard.c: Likewise.
12273
33c846be 122742009-04-14 Bean <bean123ch@gmail.com>
12275
12276 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
12277 properly with null character.
12278
4484e01e 122792009-04-14 Felix Zielcke <fzielcke@z-51.de>
12280
12281 * configure: Remove.
12282 * config.h.in: Likewise.
f93d668e 12283 * stamp-h.in: Likewise.
4484e01e 12284 * DISTLIST: Likewise.
12285 * conf/common.mk: Likewise.
12286 * conf/i386-coreboot.mk: Likewise.
12287 * conf/i386-efi.mk: Likewise.
12288 * conf/i386-ieee1275.mk: Likewise.
12289 * conf/i386.mk: Likewise.
12290 * conf/i386-pc.mk: Likewise.
12291 * conf/powerpc-ieee1275.mk: Likewise.
12292 * conf/sparc64-ieee1275.mk: Likewise.
12293 * conf/x86_64-efi.mk: Likewise.
12294
12295 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
12296 develop on GRUB.
12297
7dd4a573 122982009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 12299 David S. Miller <davem@davemloft.net>
12300
12301 * util/hostdisk.c (make_device_name): Fix buffer length
12302 calculations.
12303
e25b5a8c 123042009-04-14 Felix Zielcke <fzielcke@z-51.de>
12305
12306 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
12307 <sys/param.h> and <sys/sysctl.h>.
12308 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
12309 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
12310 opening the device and reset them afterwards.
12311
1f1f580c 123122009-04-13 Pavel Roskin <proski@gnu.org>
12313
12314 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
12315 Reported by John Stanley <jpsinthemix@verizon.net>
12316
7ebc2d6b 123172009-04-13 Robert Millan <rmh@aybabtu.com>
12318
12319 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 12320 that name for menuentries when appropriate.
7ebc2d6b 12321
d8ba3667 123222009-04-13 Felix Zielcke <fzielcke@z-51.de>
12323
12324 * util/grub.d/10_freebsd.in: Add a missing `fi'.
12325
cba416eb 123262009-04-13 Robert Millan <rmh@aybabtu.com>
12327
12328 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
12329 to Linux, simply abort telling the user it's no longer supported.
12330
a547a745 123312009-04-13 Felix Zielcke <fzielcke@z-51.de>
12332
12333 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 12334 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 12335 `freebsd_loadenv' only when devices.hints exist.
12336
232a769c 123372009-04-13 Pavel Roskin <proski@gnu.org>
12338
12339 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
12340
c3012039 123412009-04-13 Felix Zielcke <fzielcke@z-51.de>
12342
12343 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
12344 partition number.
12345 (grub_drive): Likewise.
12346
234022fe 123472009-04-13 David S. Miller <davem@davemloft.net>
12348
12349 * kern/sparc64/ieee1275/ieee1275.c: New file.
12350 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
12351 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
12352 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
12353 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
12354 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
12355 grub_ieee1275_alloc_physmem): Declare new exported functions.
12356
d8e1836c 12357 * include/grub/sparc64/ieee1275/loader.h: New file.
12358 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12359 * include/grub/sparc64/kernel.h: Likewise.
12360 * loader/sparc64/ieee1275/linux.c: Likewise.
12361
96bd81ec 12362 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
12363 (grub_fstest_SOURCES): Likewise.
12364
6a4737e5 12365 * util/hostdisk.c (make_device_name): Do not make any assumptions
12366 about the length of drive names.
12367
1d7a72fd 12368 * kern/dl.c (grub_dl_load_file): Close file immediately when
12369 we are done using it.
12370
56bc2471 123712009-04-12 David S. Miller <davem@davemloft.net>
12372
12373 * kern/misc.c (grub_ltoa): Fix cast when handling negative
12374 values. Noticed by Pavel Roskin.
12375
df38d0bb 12376 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
12377 target compiler.
7dd4a573 12378
e382e93a 12379 * genmk.rb: Add more flexible image type specification, also
12380 pass --strip-unneeded to objcopy.
12381 * conf/i386-pc.rmk: Use *_FORMAT.
12382 * conf/i386-pc.mk: Rebuilt.
12383
f5dbbca9 12384 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
12385 (OFDISK_HASH_SZ): Define.
12386 (ofdisk_hash): New hash table.
12387 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
12388 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
12389 instead of device phandle which is not unique.
12390
91c88b12 12391 * kern/sparc64/ieee1275/init.c: Delete, replace with...
12392 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
12393 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
12394 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
12395 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
12396 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
12397 GRUB_KERNEL_MACHINE_DATA_END): Define.
12398 (grub_kernel_image_size, grub_total_module_size): Declare.
12399
5b5d4aa5 124002009-04-12 Pavel Roskin <proski@gnu.org>
12401
7dd4a573 12402 * configure.ac: Change the logic when we check for target tools.
12403 Do it when the target is specified and it's different from the
12404 specified value of the host.
5b5d4aa5 12405
c91e1793 124062009-04-11 Felix Zielcke <fzielcke@z-51.de>
12407
12408 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
12409 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
12410 GNU/kFreeBSD. Check if a device is a character device. Use
12411 DIOCGMEDIASIZE to get the size.
12412 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
12413 support for GNU/kFreeBSD.
12414 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
12415 is a character device instead of a block device. Add support for
12416 FreeBSD device names.
12417
12418 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
12419 is a character device instead of a block device.
12420
12421 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
12422 is a character device instead of a block device.
12423
b1ac8644 124242009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
12425
12426 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
12427 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
12428 FreeBSD. Check if a device is a character device. Use
12429 DIOCGMEDIASIZE to get the size.
12430 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
12431 support for FreeBSD.
12432 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
12433 is a character device instead of a block device. Add support for
12434 FreeBSD device names.
12435
12436 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
12437 a character device instead of a block device.
12438 (grub_util_check_char_device): New function.
12439
12440 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
12441 a character device instead of a block device.
12442
12443 * include/grub/util/getroot.h (grub_util_check_char_device): New
12444 prototype.
12445
a3f7515a 124462009-04-11 David S. Miller <davem@davemloft.net>
12447
12448 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
12449 static libgcc.
12450 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
12451 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
12452 function, if present.
12453 (__bswapdi2): Likewise.
12454
0d44993d 12455 * include/grub/sparc64/ieee1275/boot.h: New file.
12456 * boot/sparc64/ieee1275/boot.S: Likewise.
12457 * boot/sparc64/ieee1275/diskboot.S: Likewise.
12458
ed3d2bc2 12459 * kern/misc.c (grub_ltoa): New function.
12460 (grub_vsprintf): Use it to format 'long' integers.
12461
d3bfb59c 124622009-04-10 David S. Miller <davem@davemloft.net>
12463
12464 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
12465 slots are of type grub_ieee1275_cell_t.
12466 (grub_nand_read): Likewise.
12467 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
12468 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
12469 macros are used to compare values in arg/ret block of the call.
12470 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
12471 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
12472 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
12473 grub_ieee1275_instance_to_path, grub_ieee1275_write,
12474 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
12475 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
12476 grub_ieee1275_close, grub_ieee1275_set_property,
12477 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
12478 grub_ieee1275_cell_t.
12479 * kern/ieee1275/openfw.c (grub_map): Likewise.
12480 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
12481 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
12482
450e2238 12483 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
12484 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
12485 (grub_devalias_iterate): Likewise.
12486
7dd4a573 124872009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 12488
12489 UFS improvements
12490
12491 * fs/ufs.c (INODE_NBLOCKS): new definition
12492 (struct grub_ufs_dirent): added fields for non-BSD dirents
12493 (grub_ufs_get_file_block): fixed double indirect handling
12494 (grub_ufs_lookup_symlink): use more robust way to determine whether
12495 symlink is inline
12496 (grub_ufs_find_file): support for non-BSD dirents
12497 (grub_ufs_dir): support for non-BSD dirents
12498
e7e6862a 124992009-04-10 Bean <bean123ch@gnail.com>
12500
12501 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
12502 attribute, otherwise the size would be wrong for i386 platform.
12503
12504 * include/grub/pci.h (grub_pci_read_word): New inline function.
12505 (grub_pci_read_byte): Likewise.
12506 (grub_pci_write): Likewise.
12507 (grub_pci_write_word): Likewise.
12508 (grub_pci_write_byte): Likewise.
12509
12510 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
12511
12512 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
12513 (find_framebuf): Scan pci to locate the frame buffer address.
12514
12515 * commands/efi/fixvideo.c: New file.
12516
12517 * commands/efi/loadbios.c: Likewise.
12518
12519 * commands/memrw.c: Likewise.
12520
12521 * util/grub-dumpbios.in: Likewise.
12522
12523 * conf/common.rmk (grub-dumpbios): New utility.
12524 (pkglib_MODULES): New module memrw.mod.
12525 (memrw_mod_SOURCE): New macro.
12526 (memrw_mod_CFLAGS): Likewise.
12527 (memrw_mod_LDFLAGS): Likewise.
12528
7dd4a573 12529 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 12530 fixvideo.mod.
12531 (loadbios_mod_SOURCE): New macro.
12532 (loadbios_mod_CFLAGS): Likewise.
12533 (loadbios_mod_LDFLAGS): Likewise.
12534 (fixvideo_mod_SOURCE): Likewise.
12535 (fixvideo_mod_CFLAGS): Likewise.
12536 (fixvideo_mod_LDFLAGS): Likewise.
12537
7dd4a573 12538 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 12539 fixvideo.mod.
12540 (loadbios_mod_SOURCE): New macro.
12541 (loadbios_mod_CFLAGS): Likewise.
12542 (loadbios_mod_LDFLAGS): Likewise.
12543 (fixvideo_mod_SOURCE): Likewise.
12544 (fixvideo_mod_CFLAGS): Likewise.
12545 (fixvideo_mod_LDFLAGS): Likewise.
12546
af63ada2 125472009-04-08 Felix Zielcke <fzielcke@z-51.de>
12548
12549 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
12550
c2cdde70 125512009-04-07 David S. Miller <davem@davemloft.net>
12552
12553 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
12554 support for R_SPARC_OLO10 relocations. Fix compile warning for
12555 R_SPARC_WDISP30 case.
ea3f72cf 12556 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 12557
761319cf 125582009-04-06 Pavel Roskin <proski@gnu.org>
12559
1007d1f5 12560 * include/grub/misc.h (ARRAY_SIZE): New macro.
12561 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
12562 New macro.
12563 * loader/i386/linux.c (allocate_pages): Use free_pages().
12564 (grub_linux_unload): Don't use free_pages().
12565 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
12566 wrong index. Treat all other modes as text modes.
12567 (grub_cmd_linux): Initialize vid_mode unconditionally to
12568 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
12569
761319cf 12570 * commands/help.c (print_command_help): Use cmd->prio, not
12571 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
12572
ea761d40 125732009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 12574
ea761d40 12575 Parttool
12576
12577 * parttool/pcpart.c: new file
12578 * commands/parttool.c: likewise
12579 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
12580 (parttool_mod_SOURCES): new variable
12581 (parttool_mod_CFLAGS): likewise
12582 (parttool_mod_LDFLAGS): likewise
12583 (pcpart_mod_SOURCES): likewise
12584 (pcpart_mod_CFLAGS): likewise
12585 (pcpart_mod_LDFLAGS): likewise
7dd4a573 12586 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 12587 and parttool/pcpart.c
12588 * conf/i386-efi.rmk: likewise
12589 * conf/i386-ieee1275.rmk: likewise
12590 * conf/i386-pc.rmk: likewise
12591 * conf/powerpc-ieee1275.rmk: likewise
12592 * conf/sparc64-ieee1275.rmk: likewise
12593 * conf/x86_64-ieee1275.rmk: likewise
12594
05aaebfb 125952009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12596
12597 Support for mtime and further expandability of dir command
12598
12599 * include/grub/lib/datetime.h: moved to ...
7dd4a573 12600 * include/grub/datetime.h: ... moved here and added
05aaebfb 12601 declaration of grub_unixtime2datetime. All users updated
7dd4a573 12602 * include/grub/fs.h: new syntax for dir and mtime functions in
12603 struct grub_fs
05aaebfb 12604 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
12605 and GRUB_FSHELP_FLAGS_MASK
12606 * commands/ls.c (grub_ls_list_files): Write mtime in long format
12607 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
12608 (grub_ext2_mtime): new function
12609 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
12610 (grub_hfsplus_mtime): new function
12611 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
12612 (GRUB_UFS_ATTR_FILE): likewise
12613 (GRUB_UFS_ATTR_LNK): likewise
12614 (struct grub_ufs_sblock): new fields mtime
12615 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
12616 all users updated
12617 (grub_ufs_dir): mtime support
12618 (grub_ufs_mtime): new function
12619 * fs/affs.c (grub_affs_dir): use new dir syntax
12620 * fs/afs.c (grub_afs_dir): likewise
12621 * fs/cpio.c (grub_cpio_dir): likewise
12622 * fs/fat.c (grub_fat_find_dir): likewise
12623 * fs/hfs.c (grub_hfs_dir): likewise
12624 * fs/iso9660.c (grub_iso9660_dir): likewise
12625 * fs/jfs.c (grub_jfs_dir): likewise
12626 * fs/minix.c (grub_minix_dir): likewise
12627 * fs/ntfs.c (grub_ntfs_dir): likewise
12628 * fs/reiserfs.c (grub_reiserfs_dir): likewise
12629 * fs/sfs.c (grub_sfs_dir): likewise
12630 * fs/xfs.c (grub_xfs_dir): likewise
12631 * util/hostfs.c (grub_hostfs_dir): likewise
12632 * lib/datetime.c: moved to ...
12633 * normal/datetime.c: ... moved here
12634 (grub_unixtime2datetime): new function
12635 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 12636 * normal/completion.c (iterate_dir): use new dir syntax
12637 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 12638 last modification time of a volume
7dd4a573 12639 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 12640 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 12641 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 12642 (normal_mod_SOURCES): likewise
12643 (datetime_mod_SOURCES): Removed lib/datetime.c
12644 * conf/i386-efi.rmk: likewise
7dd4a573 12645 * conf/i386-ieee1275.rmk: likewise
05aaebfb 12646 * conf/i386-pc.rmk: likewise
12647 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 12648 * conf/sparc64-ieee1275.rmk: likewise
12649 * conf/x86_64-efi.rmk: likewise
05aaebfb 12650
8a7e1a14 126512009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12652
12653 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 12654
12655 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 12656 on grub_fat_find_dir
12657 (grub_fat_find_dir): use grub_fat_iterate_dir
12658 (grub_fat_label): likewise
12659
04186a9c 126602009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
12661
7dd4a573 12662 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 12663 and command.h
12664 remove extraneous kernel_elf_HEADERS
12665
da4c0bb6 126662009-04-04 Bean <bean123ch@gnail.com>
12667
12668 * include/grub/util/misc.h: Add dummy function fsync for mingw.
12669
12670 * util/misc.c: Likewise.
12671
54ad9555 126722009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
12673
12674 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
12675 instead of grub_printf.
12676
7a6bf9f2 126772009-04-03 Robert Millan <rmh@aybabtu.com>
12678
12679 * loader/i386/linux.c (grub_linux_setup_video): Fill
12680 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
12681 values from `mode info' structure instead of hardcoded
12682 values.
12683
3fcc2083 126842009-04-01 Pavel Roskin <proski@gnu.org>
12685
12686 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
12687 unused now.
12688 * genmk.rb: Likewise.
12689 * configure.ac: Likewise.
12690
5ec9740b 126912009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
12692
12693 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
12694 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
12695
5270cec8 126962009-04-01 David S. Miller <davem@davemloft.net>
12697
12698 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 12699 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 12700 (grub_setjmp): Mark with 'returns_twice' attribute.
12701 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
12702 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
12703 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
12704
9c3dd854 127052009-04-01 Robert Millan <rmh@aybabtu.com>
12706
12707 Reapply fix from 2008-07-28 which was accidentally reverted; also
12708 perform the same fix to a similar check in same function.
12709
12710 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
12711 with the same number are found, just use issue a warning with
12712 grub_dprintf(), as this error has been reported to be non-fatal.
12713
0d818b7e 127142009-03-31 Pavel Roskin <proski@gnu.org>
12715
12716 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
12717 for cross-compilation.
12718
95646d92 127192009-03-30 Robert Millan <rmh@aybabtu.com>
12720
12721 Fix i386-ieee1275 build.
12722
12723 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
12724 Remove declaration.
12725
6a003ed1 127262009-03-30 Pavel Roskin <proski@gnu.org>
12727
12728 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
12729 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
12730 zero-terminated, rely only on the strlen value. Fix comparison
12731 of strings differing in length.
12732
92f33540 127332009-03-30 Robert Millan <rmh@aybabtu.com>
12734
12735 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
12736 checking for abi version. Improve error messages on BIOS to notify
12737 user about `linux16' command.
12738
a8c48fd5 127392009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12740
f968172e 12741 Leak fixes
a8c48fd5 12742
f968172e 12743 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
12744 in case of collision
12745 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 12746
9c323f09 127472009-03-29 Robert Millan <rmh@aybabtu.com>
12748
12749 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
12750 set `vid_mode' accordingly.
12751 (grub_linux_boot): Process `vid_mode' and set video mode.
12752
ae68f423 127532009-03-29 Robert Millan <rmh@aybabtu.com>
12754
12755 * util/grub.d/10_linux.in (linux_entry): New function.
12756 Factorize generation of Linux boot entries.
12757
5709cfc4 127582009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
12759
12760 Make the format of Environment Block plain text. The boot loader
12761 part is not tested well yet.
7dd4a573 12762
5709cfc4 12763 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
12764 (buffer): Removed.
12765 (envblk): Likewise.
12766 (usage): Remove "info" and "clear". Add "unset". Update the
12767 description of "set", as this does not delete variables any
12768 longer.
12769 (create_envblk_file): Complete rewrite.
12770 (open_envblk_file): Likewise.
12771 (cmd_info): Removed.
12772 (cmd_list): Likewise.
12773 (cmd_set): Likewise.
12774 (cmd_clear): Likewise.
12775 (list_variables): New function.
12776 (write_envblk): Likewise.
12777 (set_variables): Likewise.
12778 (unset_variables): Likewise.
12779 (main): Complete rewrite.
12780
12781 * commands/loadenv.c (buffer): Removed.
12782 (envblk): Likewise.
12783 (open_envblk_file): New function.
12784 (read_envblk_file): Complete rewrite.
12785 (grub_cmd_load_env): Likewise.
12786 (grub_cmd_list_env): Likewise.
12787 (struct blocklist): New struct.
12788 (free_blocklists): New function.
12789 (check_blocklists): Likewise.
12790 (write_blocklists): Likewise.
12791 (grub_cmd_save_env): Complete rewrite.
12792
12793 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
12794 a plain text signature.
12795 (GRUB_ENVBLK_MAXLEN): Removed.
12796 (struct grub_envblk): Complete rewrite.
12797 (grub_envblk_find): Removed.
12798 (grub_envblk_insert): Likewise.
12799 (grub_envblk_open): New prototype.
12800 (grub_envblk_set): Likewise.
12801 (grub_envblk_delete): Put const to VALUE.
12802 (grub_envblk_iterate): Put const to NAME and VALUE.
12803 (grub_envblk_close): New prototype.
12804 (grub_envblk_buffer): New inline function.
12805 (grub_envblk_size): Likewise.
12806
12807 * lib/envblk.c: Include grub/mm.h.
12808 (grub_env_find): Removed.
12809 (grub_envblk_open): New function.
12810 (grub_envblk_close): Likewise.
12811 (escaped_value_len): Likewise.
12812 (find_next_line): Likewise.
12813 (grub_envblk_insert): Removed.
12814 (grub_envblk_set): New function.
12815 (grub_envblk_delete): Complete rewrite.
12816 (grub_envblk_iterate): Likewise.
12817
a9368fd3 128182009-03-28 Robert Millan <rmh@aybabtu.com>
12819
12820 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
12821 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
12822 variables. Use 16-bit loader.
12823 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
12824 loader.
12825 * kern/i386/loader.S (grub_linux_boot): Rename to ...
12826 (grub_linux16_boot): ... this. Update all users.
12827 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
12828 (grub_linux_boot): ... this. Update all users.
12829
12830 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
12831 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
12832 commands to `linux16' and `initrd16'.
12833 (GRUB_MOD_FINI(linux)): Rename to ...
12834 (GRUB_MOD_FINI(linux16)): ... this.
12835
e4dd5a7e 128362009-03-24 Pavel Roskin <proski@gnu.org>
12837
12838 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
12839 not just for compilation.
12840
c04d6e05 128412009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
12842
12843 Move multiboot helper out of kernel
12844
12845 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
12846 `loader/i386/multiboot_helper.S'.
12847 * conf/i386-coreboot.rmk: Likewise
12848 * conf/i386-ieee1275.rmk: Likewise
12849
12850 * kern/i386/loader.S: Move multiboot helpers from here...
12851 * loader/i386/multiboot_helper.S: ...moved here
12852 * include/grub/i386/loader.h: Move declarations of multiboot
12853 helpers from here...
12854 * include/grub/i386/multiboot.h: ...moved here
12855 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
12856
42a5b3fc 128572009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12858
12859 * kern/env.c (grub_env_context_open): Added an argument to specify
12860 whether a new context inherits exported variables from current
12861 one. This is useful when making a sandbox to interpret a config
12862 file.
12863 All callers updated.
12864
12865 * include/grub/env.h (grub_env_context_open): Updated the prototype.
12866
b28bbc4e 128672009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12868
12869 * kern/env.c (grub_env_context_close): Fix memory leaks.
12870
f04f02e4 128712009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12872
12873 * normal/main.c (grub_normal_execute): Added an argument
12874 BATCH to specify if an interactive interface should be provided
12875 after reading a config file.
12876 All callers updated.
12877 (read_command_list): Prevent being executed twice.
12878 (read_fs_list): Likewise.
12879
42a5b3fc 12880 * include/grub/normal.h (grub_normal_execute): Updated the
12881 prototype.
f04f02e4 12882
41473ac2 128832009-03-22 Pavel Roskin <proski@gno.org>
12884
fbc00b0c 12885 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
12886 _start.
12887 * kern/i386/pc/startup.S: Likewise.
12888 * kern/i386/efi/startup.S: Likewise.
12889 * kern/i386/ieee1275/startup.S: Likewise.
12890 * kern/i386/coreboot/startup.S: Likewise.
12891 * kern/x86_64/efi/startup.S: Likewise.
12892
41473ac2 12893 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
12894 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
12895 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
12896
2274cc8f 128972009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
12898
12899 Bugfixes in multiboot for bugs uncovered by solaris kernel.
12900
12901 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
12902 limit detection.
12903 Use vaddr of correct segment for entry_point.
12904
b1b797cb 129052009-03-21 Bean <bean123ch@gmail.com>
12906
12907 * commands/blocklist.c: Add include file <grub/command.h>, remove
12908 <grub/normal.h> and <grub/arg.h>.
12909 (grub_cmd_blocklist): Use the new command interface.
12910 (GRUB_MOD_INIT): Likewise.
12911 (GRUB_MOD_FINI): Likewise.
12912 * commands/boot.c: Likewise.
12913 * commands/cat.c: Likewise.
12914 * commands/cmp.c: Likewise.
12915 * commands/configfile.c: Likewise.
12916 * commands/crc.c: Likewise.
12917 * commands/echo.c: Likewise.
12918 * commands/halt.c: Likewise.
12919 * commands/handler.c: Likewise.
12920 * commands/hdparm.c: Likewise.
12921 * commands/help.c: Likewise.
12922 * commands/hexdump.c: Likewise.
12923 * commands/loadenv.c: Likewise.
12924 * commands/ls.c: Likewise.
12925 * commands/lsmmap.c: Likewise.
12926 * commands/lspci.c: Likewise.
12927 * commands/loadenv.c: Likewise.
12928 * commands/read.c: Likewise.
12929 * commands/reboot.c: Likewise.
12930 * commands/search.c: Likewise.
12931 * commands/sleep.c: Likewise.
12932 * commands/test.c: Likewise.
12933 * commands/usbtest.c: Likewise.
12934 * commands/videotest.c: Likewise.
12935 * commands/i386/cpuid.c: Likewise.
12936 * commands/i386/pc/halt.c: Likewise.
12937 * commands/i386/pc/play.c: Likewise.
12938 * commands/i386/pc/pxecmd.c: Likewise.
12939 * commands/i386/pc/vbeinfo.c: Likewise.
12940 * commands/i386/pc/vbetest.c: Likewise.
12941 * commands/ieee1275/suspend.c: Likewise.
12942 * disk/loopback.c: Likewise.
12943 * font/font_cmd.c: Likewise.
12944 * hello/hello.c: Likewise.
12945 * loader/efi/appleloader.c: Likewise.
12946 * loader/efi/chainloader.c: Likewise.
12947 * loader/i386/bsd.c: Likewise.
12948 * loader/i386/efi/linux.c: Likewise.
12949 * loader/i386/ieee1275/linux.c: Likewise.
12950 * loader/i386/linux.c: Likewise.
12951 * loader/i386/pc/chainloader.c: Likewise.
12952 * loader/i386/pc/linux.c: Likewise.
12953 * loader/powerpc/ieee1275/linux.c: Likewise.
12954 * loader/multiboot_loader.c: Likewise.
12955 * term/gfxterm.c: Likewise.
12956 * term/i386/pc/serial.c: Likewise.
12957 * term/terminfo.c: Likewise.
12958
12959 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
12960 * term/i386/pc/vga.c: Likewise.
12961 * video/readers/jpeg.c: Likewise.
12962 * video/readers/png.c: Likewise.
12963 * video/readers/tga.c: Likewise.
12964
12965 * util/grub-fstest (cmd_loopback): Removed.
12966 (cmd_blocklist): Likewise.
12967 (cmd_ls): Likewise.
12968 (grub_register_command): Likewise.
12969 (grub_unregister_command): Likewise.
12970 (execute_command): Use grub_command_find to locate command and execute
12971 it.
12972
12973 * include/grub/efi/chainloader.h: Removed.
12974 * loader/efi/chainloader_normal.c: Likewise.
12975 * loader/i386/bsd_normal.c: Likewise.
12976 * loader/i386/pc/chainloader_normal.c: Likewise.
12977 * loader/i386/pc/multiboot_normal.c: Likewise.
12978 * loader/linux_normal.c: Likewise.
12979 * loader/multiboot_loader_normal.c: Likewise.
12980 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
12981
12982 * gencmdlist.sh: Scan new registration command grub_register_extcmd
12983 and grub_register_command_p1.
12984
12985 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
12986 kern/command.c, lib/arg.c and commands/extcmd.c.
12987 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
12988 (minicmd_mod_SOURCES): New variable.
12989 (minicmd_mod_CFLAGS): Likewise.
12990 (minicmd_mod_LDFLAGS): Likewise.
12991 (extcmd_mod_SOURCES): Likewise.
12992 (extcmd_mod_CFLAGS): Likewise.
12993 (extcmd_mod_LDFLAGS): Likewise.
12994 (boot_mod_SOURCES): Removed.
12995 (boot_mod_CFLAGS): Likewise.
12996 (boot_mod_LDFLAGS): Likewise.
12997
12998 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
12999 kern/corecmd.c.
13000 (kernel_img_HEADERS): Add command.h.
13001 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
13002 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
13003 and lib/arg.c.
13004 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
13005 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
13006 remove the corresponding normal mode command.
13007 (normal_mod_SOURCES): Remove normal/arg.c.
13008 * conf/i386-coreboot.rmk: Likewise.
13009 * conf/i386-efi.rmk: Likewise.
13010 * conf/i386-ieee1275.rmk: Likewise.
13011 * conf/powerpc-ieee1275.rmk: Likewise.
13012 * conf/x86_64-efi.rmk: Likewise.
13013
13014 * include/grub/arg.h: Move from here ...
13015 * include/grub/lib/arg.h: ... to here.
13016
13017 * normal/arg.c: Move from here ...
13018 * lib/arg.c: ... to here.
13019
13020 * commands/extcmd.c: New file.
13021 * commands/minicmd.c: Likewise.
13022 * include/grub/command.h: Likewise.
13023 * include/grub/extcmd.h: Likewise.
13024 * kern/command.c: Likewise.
13025 * kern/corecmd.c: Likewise.
13026
13027 * kern/list.c (grub_list_iterate): Return int instead of void.
13028 (grub_list_insert): New function.
13029 (grub_prio_list_insert): Likewise.
13030
13031 * kern/rescue.c (grub_rescue_command): Removed.
13032 (grub_rescue_command_list): Likewise.
13033 (grub_rescue_register_command): Likewise.
13034 (grub_rescue_unregister_command): Likewise.
13035 (grub_rescue_cmd_boot): Move to minicmd.c
13036 (grub_rescue_cmd_help): Likewise.
13037 (grub_rescue_cmd_info): Likewise.
13038 (grub_rescue_cmd_boot): Likewise.
13039 (grub_rescue_cmd_testload): Likewise.
13040 (grub_rescue_cmd_dump): Likewise.
13041 (grub_rescue_cmd_rmmod): Likewise.
13042 (grub_rescue_cmd_lsmod): Likewise.
13043 (grub_rescue_cmd_exit): Likewise.
13044 (grub_rescue_print_devices): Moved to corecmd.c.
13045 (grub_rescue_print_files): Likewise.
13046 (grub_rescue_cmd_ls): Likewise.
13047 (grub_rescue_cmd_insmod): Likewise.
13048 (grub_rescue_cmd_set): Likewise.
13049 (grub_rescue_cmd_unset): Likewise.
7d074e3c 13050 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 13051 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 13052 commands, remove grub_rescue_register_command calls.
b1b797cb 13053
7d074e3c 13054 * normal/command.c (grub_register_command): Removed.
b1b797cb 13055 (grub_unregister_command): Likewise.
13056 (grub_command_find): Likewise.
13057 (grub_iterate_commands): Likewise.
13058 (rescue_command): Likewise.
13059 (export_command): Moved to corecmd.c.
13060 (set_command): Removed.
13061 (unset_command): Likewise.
13062 (insmod_command): Likewise.
13063 (rmmod_command): Likewise.
13064 (lsmod_command): Likewise.
13065 (grub_command_init): Likewise.
13066
13067 * normal/completion.c (iterate_command): Use cmd->prio to check for
13068 active command.
13069 (complete_arguments): Use grub_extcmd_t structure to find options.
13070 (grub_normal_do_completion): Change function grub_iterate_commands to
13071 grub_command_iterate.
13072
13073 * normal/execute.c (grub_script_execute_cmd): No need to parse
13074 argument here.
13075
13076 * normal/main.c (grub_dyncmd_dispatcher): New function.
13077 (read_command_list): Register unload commands as dyncmd.
13078 (grub_cmd_normal): Use new command interface, register rescue,
13079 unregister normal at entry, register normal, unregister rescue at exit.
13080
13081 * include/grub/list.h (grub_list_test_t): New type.
13082 (grub_list_iterate): Return int instead of void.
13083 (grub_list_insert): New function.
13084 (GRUB_AS_NAMED_LIST_P): New macro.
13085 (GRUB_AS_PRIO_LIST): Likewise.
13086 (GRUB_AS_PRIO_LIST_P): Likewise.
13087 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
13088 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
13089 (grub_prio_list): New structure.
13090 (grub_prio_list_insert): New function.
13091 (grub_prio_list_remove): New inline function.
13092
13093 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
13094 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
13095 (GRUB_COMMAND_FLAG_MENU): Likewise.
13096 (GRUB_COMMAND_FLAG_BOTH): Likewise.
13097 (GRUB_COMMAND_FLAG_TITLE): Likewise.
13098 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
13099 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
13100 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
13101 (grub_command): Likewise.
13102 (grub_register_command): Likewise.
13103 (grub_command_find): Likewise.
13104 (grub_iterate_commands): Likewise.
13105 (grub_command_init): Likewise.
13106 (grub_arg_parse): Likewise.
13107 (grub_arg_show_help): Likewise.
13108
13109 * include/grub/rescue.h (grub_rescue_register_command): Removed.
13110 (grub_rescue_unregister_command): Likewise.
13111
13112 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
13113 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
13114 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
13115
13116 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
13117 grub_rescue_cmd_initrd.
13118 * include/grub/i386/loader.h: Likewise.
13119 * include/grub/x86_64/loader.h: Likewise.
13120
13121 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
13122
1f4147aa 131232009-03-21 Bean <bean123ch@gmail.com>
13124
13125 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
13126 instead of stat in mingw environment.
13127
13128 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
13129
13130 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
13131
13132 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
13133 AC_CONFIG_LINKS.
13134
2156d5ba 131352009-03-21 Bean <bean123ch@gmail.com>
13136
13137 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
13138 out of range error.
13139
177b82ca 131402009-03-18 Michel Dänzer <michel@daenzer.net>
13141
13142 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
13143 checking inode flags for EXT4_EXTENTS_FLAG.
13144
14aad807 131452009-03-18 Robert Millan <rmh@aybabtu.com>
13146
13147 * loader/i386/linux.c: Include `<grub/video.h>' and
13148 `<grub/i386/pc/vbe.h>'..
13149 (grub_linux_setup_video): New function. Loosely based on the EFI one.
13150 (grub_linux32_boot): Attempt to configure video settings with
13151 grub_linux_setup_video().
13152 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
13153 to avoid grub_console_fini() which would step out of graphical mode
13154 unconditionally.
13155
8cf83a27 131562009-03-14 Robert Millan <rmh@aybabtu.com>
13157
13158 Fix build on powerpc.
13159 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
13160
40164e75 131612009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
13162
13163 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
13164 background image command.
13165
c58bc32a 131662009-03-12 Colin D Bennett <colin@gibibit.com>
13167
13168 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
13169 (grub_gfxterm_putchar): Extract pairs of identical calls to
13170 draw_cursor out of conditional blocks.
13171
5415144a 131722009-03-11 Pavel Roskin <proski@gnu.org>
13173
13174 * fs/hfs.c (grub_hfs_strncasecmp): New function.
13175 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
13176
6394042e 131772009-03-11 Robert Millan <rmh@aybabtu.com>
13178
13179 * loader/i386/multiboot_elfxx.c
13180 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
13181
b7b50e5f 131822009-03-11 Felix Zielcke <fzielcke@z-51.de>
13183
13184 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
13185 `kern/handler.c'.
13186
1ca7fc96 131872009-03-11 Robert Millan <rmh@aybabtu.com>
13188
13189 * loader/i386/multiboot.c (code_size): New variable.
13190 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 13191 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 13192 4-byte alignment to MBI and others by increasing
7d074e3c 13193 `boot_loader_name_length' appropriately.
1ca7fc96 13194
13195 * loader/i386/multiboot_elfxx.c
13196 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
13197
a83ea1d2 131982009-03-09 Felix Zielcke <fzielcke@z-51.de>
13199
13200 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
13201 `fs/ext2.c'.
13202
aa9f3bff 132032009-03-08 Robert Millan <rmh@aybabtu.com>
13204
13205 Make loader/i386/linux.c usable on i386-pc again.
13206
13207 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
13208 memory to heap.
13209 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
13210 `#error' stanza.
13211
d8b3b60e 132122009-03-07 Bean <bean123ch@gmail.com>
13213
13214 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
13215 allocation.
13216
b362c9e9 132172009-03-06 Robert Millan <rmh@aybabtu.com>
13218
13219 Fix display issue on terminals with screen size other than 80x25
13220 (e.g. gfxterm with resolution higher than 640x480).
13221
13222 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 13223 position relative to the center of the terminal instead of relying
b362c9e9 13224 on a hardcoded offset.
13225
9304eef1 132262009-03-04 Robert Millan <rmh@aybabtu.com>
13227
13228 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
13229 installed.
13230
13231 * Makefile.in (host_kernel): New variable.
13232 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
13233 scripts instead of just the windows one.
13234 * configure.ac: Initialize and AC_SUBST `host_kernel'.
13235
eabc95fb 132362009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 13237
13238 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
13239 `kern/handler.c'.
13240 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13241 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13242 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13243 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13244 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13245 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13246
ceb1223c 132472009-03-04 Felix Zielcke <fzielcke@z-51.de>
13248
13249 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
13250 or if there's no space for the disk label and print the partition number on a
13251 invalid magic.
13252
4910684a 132532009-03-04 Felix Zielcke <fzielcke@z-51.de>
13254
13255 * util/misc.c: Include <time.h>.
13256 (grub_millisleep): New function.
13257
7e9ca17a 132582009-03-04 Bean <bean123ch@gmail.com>
13259
13260 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
13261 another option -mno-red-zone.
13262
13263 * commands/handler.c: Change module description.
13264
13265 * kern/handler.c: Add missing space at the end of description line.
13266
13267 * kern/list.c: Likewise.
13268
f501677c 132692009-03-03 Robert Millan <rmh@aybabtu.com>
13270
13271 Move more components to the relocation area, and fix mbi pointer
13272 handling to use the destination rather than the origin (thanks to
13273 Vladimir Serbinenko for spotting).
13274
13275 * loader/i386/multiboot.c (mbi_dest): New variable.
13276 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
13277 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
13278 relocation area.
13279
9902d047 132802009-03-01 Bean <bean123ch@gmail.com>
13281
50fb7002 13282 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 13283 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
13284 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
13285 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
13286
13287 * loader/i386/efi/linux.c (acpi_guid): New variable.
13288 (acpi_guid): Likewise.
13289 (EBDA_SEG_ADDR): New constant.
13290 (LOW_MEM_ADDR): Likewise.
13291 (FAKE_EBDA_SEG): Likewise.
13292 (fake_bios_data): New function.
13293 (grub_linux_boot): Call fake_bios_data.
13294
71b9f361 132952009-03-01 Bean <bean123ch@gmail.com>
13296
13297 * commands/terminal.c: Removed.
13298
13299 * commands/handler.c: New file.
13300
13301 * include/grub/list.h: Likewise.
13302
13303 * include/grub/handler.h: Likewise.
13304
13305 * kern/list.c: Likewise.
13306
13307 * kern/handler.c: Likewise.
13308
13309 * kern/term.h: Include header file <grub/handler.h>.
13310 (grub_term_input): Move next field to the beginning.
13311 (grub_term_output): Likewise.
13312 (grub_term_input_class): New variable.
13313 (grub_term_output_class): Likewise.
13314 (grub_term_register_input): Changed to inline function.
13315 (grub_term_register_output): Likewise.
13316 (grub_term_unregister_input): Likewise.
13317 (grub_term_unregister_output): Likewise.
13318 (grub_term_set_current_input): Likewise.
13319 (grub_term_set_current_output): Likewise.
13320 (grub_term_get_current_input): Likewise.
13321 (grub_term_get_current_output): Likewise.
13322 (grub_term_iterate_input): Removed.
13323 (grub_term_iterate_output): Likewise.
13324
13325 * kern/term.c (grub_term_list_input): Removed.
13326 (grub_term_list_output): Likewise.
13327 (grub_term_input_class): New variable.
13328 (grub_term_output_class): Likewise.
50fb7002 13329 (grub_cur_term_input): Change variable as macro.
71b9f361 13330 (grub_cur_term_output): Likewise.
13331 (grub_term_register_input): Removed.
13332 (grub_term_register_output): Likewise.
13333 (grub_term_unregister_input): Likewise.
13334 (grub_term_unregister_output): Likewise.
13335 (grub_term_set_current_input): Likewise.
13336 (grub_term_set_current_output): Likewise.
13337 (grub_term_iterate_input): Likewise.
13338 (grub_term_iterate_output): Likewise.
13339 (grub_term_get_current_input): Likewise.
13340 (grub_term_get_current_output): Likewise.
13341
13342 * util/grub-editenv.c: Include header file <grub/handler.h>.
13343 (grub_term_get_current_input): Removed.
13344 (grub_term_get_current_output): Likewise.
13345 (grub_term_input_class): New variable.
50fb7002 13346 (grub_term_output_class): Likewise.
71b9f361 13347
13348 * util/grub-fstest.c (grub_term_get_current_input): Removed.
13349 (grub_term_get_current_output): Likewise.
13350 (grub_term_input_class): New variable.
50fb7002 13351 (grub_term_output_class): Likewise.
71b9f361 13352
13353 * util/grub-probe.c (grub_term_get_current_input): Removed.
13354 (grub_term_get_current_output): Likewise.
13355 (grub_term_input_class): New variable.
50fb7002 13356 (grub_term_output_class): Likewise.
71b9f361 13357
13358 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
13359 (grub_term_get_current_output): Likewise.
13360 (grub_term_input_class): New variable.
50fb7002 13361 (grub_term_output_class): Likewise.
71b9f361 13362
13363 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
13364 (terminal_mod_SOURCES): Likewise.
13365 (terminal_mod_CFLAGS): Likewise.
13366 (terminal_mod_LDFLAGS): Likewise.
13367
13368 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
13369 handler.c.
13370 (kernel_img_SOURCES): Add list.c and handler.c.
13371 (kernel_img_HEADERS): Add list.h and handler.h.
13372
13373 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13374 handler.c.
13375 (kernel_mod_SOURCES): Add list.c and handler.c.
13376 (kernel_mod_HEADERS): Add list.h and handler.h.
13377
13378 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
13379 handler.c.
13380 (kernel_elf_SOURCES): Add list.c and handler.c.
13381 (kernel_elf_HEADERS): Add list.h and handler.h.
13382
13383 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13384 handler.c.
13385 (kernel_elf_SOURCES): Add list.c and handler.c.
13386 (kernel_elf_HEADERS): Add list.h and handler.h.
13387
13388 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13389 handler.c.
13390 (kernel_mod_SOURCES): Add list.c and handler.c.
13391 (kernel_mod_HEADERS): Add list.h and handler.h.
13392
13393 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13394 handler.c.
13395 (kernel_elf_SOURCES): Add list.c and handler.c.
13396 (kernel_elf_HEADERS): Add list.h and handler.h.
13397
8a31787f 133982009-02-27 Robert Millan <rmh@aybabtu.com>
13399
13400 Factorize elf32 / elf64 code in Multiboot loader. This will
13401 prevent it from getting out of sync again.
13402
13403 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
13404 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
13405 grub_multiboot_load_elf64): Move from here ...
13406 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
13407 grub_multiboot_load_elf): ... to here (new file).
13408
51cd3dfc 134092009-02-27 Robert Millan <rmh@aybabtu.com>
13410
13411 * util/grub.d/10_linux.in: Rename "single-user mode" to
13412 "recovery mode".
13413
6e8c9c3a 134142009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
13415
13416 Don't leak in SCSI code.
13417 * disk/scsi.c (grub_scsi_close): free `scsi'.
13418
4b6bf4f9 134192009-02-27 Robert Millan <rmh@aybabtu.com>
13420
13421 * loader/i386/pc/multiboot.c: Move from here ...
13422 * loader/i386/multiboot.c: ... to here. Update all users.
13423
b9413424 134242009-02-27 Robert Millan <rmh@aybabtu.com>
13425
13426 Patch from Alexandre Bique <bique.alexandre@gmail.com>
13427 * util/i386/pc/grub-setup.c (setup): Fix directory path.
13428
50fb7002 134292009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 13430
13431 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
13432 b-tree.
13433
8cc50345 134342009-02-27 Robert Millan <rmh@aybabtu.com>
13435
13436 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
13437 `0x' qualifier as 0 when base is specified as parameter).
13438
6e09b8b7 134392009-02-24 Bean <bean123ch@gmail.com>
13440
13441 * configure.ac: Check for -mcmodel=large in x86_64 target.
13442
13443 * include/grub/efi/api.h (efi_call_10): New macro.
13444 (efi_wrap_10): New function.
13445
13446 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
13447 (GRUB_PE32_REL_BASED_HIGH): Likewise.
13448 (GRUB_PE32_REL_BASED_LOW): Likewise.
13449 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
13450 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
13451 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
13452 (GRUB_PE32_REL_BASED_SECTION): Likewise.
13453 (GRUB_PE32_REL_BASED_REL): Likewise.
13454 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
13455 (GRUB_PE32_REL_BASED_DIR64): Likewise.
13456 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
13457
13458 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
13459 issue.
13460
13461 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
13462 (efi_wrap_10): New function.
13463
13464 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
13465
13466 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
13467 MB/MBP model (NV chipset).
13468 (devdata_devs): Add devpath_5 to the list.
13469
13470 * load/i386/efi/linux.c (video_base): Remove variable.
13471 (RGB_MASK): New macro.
13472 (RGB_MAGIC): Likewise.
13473 (LINE_MIN): Likewise.
13474 (LINE_MAX): Likewise.
13475 (FBTEST_STEP): Likewise.
13476 (FBTEST_COUNT): Likewise.
13477 (fb_list): New variable.
13478 (grub_find_video_card): Remove function.
13479 (find_framebuf): New function.
13480 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
13481 line length.
13482
13483 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
13484 problem for x86_64.
13485
74b21bee 134862009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
13487
13488 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
13489
13490 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
13491 coding tool name.
13492
a455f472 134932009-02-22 Robert Millan <rmh@aybabtu.com>
13494
13495 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
13496 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
13497 in our relocation, instead of using it directly from heap. Also
13498 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
13499
6374daf3 135002009-02-21 Robert Millan <rmh@aybabtu.com>
13501
13502 Implement USB keyboard support (based on patch by Marco Gerards)
13503
13504 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
13505 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
13506 (usb_keyboard_mod_LDFLAGS): New variables.
13507
13508 * term/usb_keyboard.c: New file.
13509
8fa4ea70 135102009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13511
13512 Corrected wrong declaration
13513
13514 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
13515
353976ac 135162009-02-14 Christian Franke <franke@computer.org>
13517
13518 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
13519 (grub_lspci_iter): Print class code and programming interface byte.
13520
6aa1169b 135212009-02-14 Christian Franke <franke@computer.org>
13522
13523 * gendistlist.sh: Ignore `.svn' directories.
13524
265372ca 135252009-02-14 Felix Zielcke <fzielcke@z-51.de>
13526
13527 * fs/fat.c: Add 2009 to Copyright line.
13528
9ff516f3 135292009-02-14 Christian Franke <franke@computer.org>
13530
13531 * commands/hdparm.c: New file. Provides `hdparm' command
13532 which sends ATA commands via grub_disk_ata_pass_through ().
13533
13534 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
13535
13536 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
13537 and <grub/cpu/io.h> to include/grub/ata.h.
13538 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
13539 (GRUB_CDROM_SECTOR_SIZE): Remove.
13540 (GRUB_ATA_*): Move to include/grub/ata.h.
13541 (GRUB_ATAPI_*): Likewise.
13542 (enum grub_ata_commands): Likewise.
13543 (enum grub_ata_timeout_milliseconds): Likewise.
13544 (struct grub_ata_device): Likewise.
13545 (grub_ata_regset): Likewise.
13546 (grub_ata_regget): Likewise.
13547 (grub_ata_regset2): Likewise.
13548 (grub_ata_regget2): Likewise.
13549 (grub_ata_check_ready): Likewise.
13550 (grub_ata_wait_not_busy): Remove static, exported in
13551 include/grub/ata.h.
13552 (grub_ata_wait_drq): Likewise.
13553 (grub_ata_pio_read): Likewise.
13554
13555 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
13556 function for hdparm.mod.
13557
13558 * include/grub/ata.h: New file, contains declarations from
13559 disk/ata.c.
13560 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
13561
13562 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
13563 (grub_disk_ata_pass_through): New exported variable.
13564
13565 * kern/disk.c (grub_disk_ata_pass_through): New variable.
13566
772e23da 135672009-02-13 Colin D Bennett <colin@gibibit.com>
13568
13569 Support multiple fallback entries, and provide an API to support
13570 executing default+fallback menu entries. Renamed the `terminal' menu
13571 viewer to `text'.
13572
13573 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
13574 variable declaration.
13575 (grub_menu_execute_callback): New structure declaration.
13576 (grub_menu_execute_callback_t): New typedef.
13577 (grub_menu_execute_with_fallback): New function declaration.
13578 (grub_menu_get_entry): Likewise.
13579 (grub_menu_get_timeout): Likewise.
13580 (grub_menu_set_timeout): Likewise.
13581
13582 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
13583
13584 * normal/menu.c (grub_wait_after_message): Moved to
13585 `normal/menu_text.c'.
13586 (draw_border): Likewise.
13587 (print_message): Likewise.
13588 (print_entry): Likewise.
13589 (print_entries): Likewise.
13590 (grub_menu_init_page): Likewise.
13591 (get_entry_number): Likewise.
13592 (print_timeout): Likewise.
13593 (run_menu): Likewise.
13594 (grub_menu_execute_entry): Likewise.
13595 (show_text_menu): Likewise.
13596 (get_and_remove_first_entry_number): New function.
13597 (grub_menu_execute_with_fallback): Likewise.
13598 (get_entry): Renamed to ...
13599 (grub_menu_get_entry): .. this and made it global.
13600 (get_timeout): Renamed to ...
13601 (grub_menu_get_timeout): ... this and made it global.
13602 (set_timeout): Renamed to ...
13603 (grub_menu_set_timeout): ... this and made it global.
13604 (grub_normal_terminal_menu_viewer): Renamed to ...
13605 (grub_normal_text_menu_viewer): ... this.
13606
13607 * normal/menu_text.c: New file. Extracted text-menu-specific code
13608 from normal/menu.c.
13609
13610 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
13611 (normal_mod_SOURCES): Likewise.
13612
13613 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13614 (normal_mod_SOURCES): Likewise.
13615
13616 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13617 (normal_mod_SOURCES): Likewise.
13618
13619 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
13620 (normal_mod_SOURCES): Likewise.
13621
13622 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13623 (normal_mod_SOURCES): Likewise.
13624
13625 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13626 (normal_mod_SOURCES): Likewise.
13627
13628 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13629 (normal_mod_SOURCES): Likewise.
13630
16ac430e 136312009-02-11 Robert Millan <rmh@aybabtu.com>
13632
13633 * util/grub.d/00_header.in: Update old reference to `font' command.
13634
06ff20fc 136352009-02-10 Felix Zielcke <fzielcke@z-51.de>
13636
13637 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
13638
13639 Based on patch from Javier Martín.
13640
96da9407 136412009-02-09 Felix Zielcke <fzielcke@z-51.de>
13642
13643 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 13644 to avoid false positives with FAT.
96da9407 13645 (grub_fstest_SOURCES): Likewise.
13646 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13647 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13648 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13649 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13650 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13651 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13652
6dca6fe4 136532009-02-09 Felix Zielcke <fzielcke@z-51.de>
13654
06ff20fc 13655 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 13656 bpb.version_specific.fat12_or_fat16.fstype and
13657 bpb.version_specific.fat32.fstype.
13658
2550c62f 136592009-02-08 Robert Millan <rmh@aybabtu.com>
13660
be110b30 13661 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 13662
56978920 136632009-02-08 Robert Millan <rmh@aybabtu.com>
13664
13665 * Makefile.in (host_os, host_cpu): New variables.
13666 (target_os): Remove. Update all users.
13667
d64399b5 136682009-02-08 Marco Gerards <marco@gnu.org>
13669
13670 * Makefile.in (enable_grub_emu_usb): New variable.
13671 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
13672 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
13673 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
13674 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
13675 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
13676 `usbtest.mod' and `usbms.mod'.
13677 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
13678 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
13679 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
13680 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
13681 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
13682 variables.
13683
13684 * disk/usbms.c: New file.
13685
13686 * include/grub/usb.h: Likewise.
13687
13688 * include/grub/usbtrans.h: Likewise.
13689
13690 * include/grub/usbdesc.h: Likewise.
13691
13692 * bus/usb/usbtrans.c: Likewise.
13693
13694 * bus/usb/ohci.c: Likewise.
13695
13696 * bus/usb/uhci.c: Likewise.
13697
13698 * bus/usb/usbhub.c: Likewise.
13699
13700 * bus/usb/usb.c: Likewise.
13701
13702 * commands/usbtest.c: Likewise.
13703
13704 * util/usb.c: Likewise.
50fb7002 13705
d64399b5 13706 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
13707
13708 * configure.ac: Test for libusb presence.
50fb7002 13709
d64399b5 13710 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
13711
2b40d6bb 137122009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
13713
13714 * kern/mm.c: Add more comments.
13715
73a4ce81 137162009-02-08 Robert Millan <rmh@aybabtu.com>
13717
13718 Patch from Javier Martín.
13719 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
13720 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
13721
f821ce59 137222009-02-08 Robert Millan <rmh@aybabtu.com>
13723
13724 * fs/cpio.c: Split tar functionality to ...
13725 * fs/tar.c: ... here (new file). Update all users.
13726
aebfc4b0 137272009-02-07 Robert Millan <rmh@aybabtu.com>
13728
13729 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
13730 backward-incompatible features.
13731
13732 Based on patch from Javier Martín, with some adjustments.
13733
50fb7002 137342009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 13735
13736 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
13737
0bb5115e 137382009-02-07 Robert Millan <rmh@aybabtu.com>
13739
13740 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
13741 position of `disk/lvm.c' to ensure grub_init_all() always picks it
13742 after the RAID stuff.
13743
38a0f8e7 137442009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
13745
50fb7002 13746 Fixes problem when running vbetest command as reported by
38a0f8e7 13747 Vladimir Serbinenko <phcoder@gmail.com>.
13748
13749 * (grub_vbe_set_video_mode): Fixed problem with text modes.
13750
3143cc1c 137512009-02-04 Felix Zielcke <fzielcke@z-51.de>
13752
13753 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
13754 /dev/md/NpN style mdraid devices.
13755
9cba6fce 137562009-02-03 Felix Zielcke <fzielcke@z-51.de>
13757
13758 * util/unifont2pff.rb: Remove.
13759
e507a2c1 137602009-02-03 Felix Zielcke <fzielcke@z-51.de>
13761
13762 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
13763 `#'.
13764
d2c2b4cd 137652009-02-03 Felix Zielcke <fzielcke@z-51.de>
13766
13767 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
13768 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13769 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13770 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13771 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13772 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13773 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13774
b4315fb0 137752009-02-02 Christian Franke <franke@computer.org>
13776
13777 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
13778
de3aa260 137792009-02-01 Felix Zielcke <fzielcke@z-51.de>
13780
7c3ff286 13781 * INSTALL: Note that we now require at least autoconf 2.59 and
13782 that LZO is optional.
de3aa260 13783
825a182b 137842009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
13785
13786 Base on patch on bug #24154 created by Tomas Tintera
13787 <trosos@seznam.cz>.
13788
13789 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
13790
a69ef770 137912009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
13792
7c3ff286 13793 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 13794 <bero@arklinux.org>.
13795
13796 * normal/parser.y (script_init): Add missing semicolon.
13797
6fa42fa6 137982009-01-31 Colin D Bennett <colin@gibibit.com>
13799
7c3ff286 13800 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 13801 (free_menu_entry_classes): Added.
13802 (grub_normal_menu_addentry): Added class property handling.
13803 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
13804 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
13805
13806 * normal/menu_viewer.c: New file.
13807
13808 * normal/menu.c (run_menu_entry): Renamed to ...
13809 (grub_menu_execute_entry): ... this and made it as global.
13810 (grub_menu_run): Renamed to ...
13811 (show_text_menu): ... this and made it local.
13812 (show_text_menu): Adapt to new function names.
13813 (grub_normal_terminal_menu_viewer): New global variable.
13814
13815 * include/grub/menu.h: New file.
13816
13817 * include/grub/menu_viewer.h: New file.
13818
13819 * include/grub/normal.h: Added include to grub/menu.h.
13820 (grub_menu_entry): Moved to include/grub/menu.h.
13821 (grub_menu_entry_t): Likewise.
13822 (grub_menu): Likewise.
13823 (grub_menu_t): Likewise.
13824 (grub_normal_terminal_menu_viewer): Added.
13825 (grub_menu_execute_entry): Likewise.
13826 (grub_menu_run): Removed.
13827
13828 * DISTLIST: Added include/grub/menu.h.
13829 Added include/grub/menu_viewer.h.
13830 Added normal/menu_viewer.c.
13831
138322009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
13833
13834 * normal/execute.c (grub_script_execute_menuentry): Changed to use
13835 arglist for menutitle arguments.
13836
13837 * normal/main.c (grub_normal_menu_addentry): Likewise.
13838
13839 * normal/parser.y (menuentry): Likewise.
13840
13841 * normal/script.c (grub_script_create_cmdmenu): Likewise.
13842
13843 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
13844 (grub_script_create_cmdmenu): Likewise.
13845
13846 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
13847
13848 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
13849 changes.
13850
13851 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
13852
13853 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
13854
13855 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
13856
13857 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13858
13859 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13860
13861 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13862
56192c23 138632009-01-30 Christian Franke <franke@computer.org>
13864
13865 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
13866 in option help text.
13867
d72521b3 138682009-01-27 Pavel Roskin <proski@gnu.org>
13869
13870 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
13871
994b5e84 138722009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
13873
13874 * commands/lsmmap.c: Add include to grub/machine/memory.h.
13875
13876 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
13877
13878 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
13879 unregister function.
13880
6a7eab2c 138812009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
13882
13883 * disk/scsi.c (grub_scsi_read): Fix sign problem.
13884
13885 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
13886
13887 * util/grub-mkfont.c (usage): Fix typo.
13888
13889 * util/elf/grub-mkimage.c (load_modules): Fix warning.
13890
1806b56e 138912009-01-26 Daniel Mierswa <impulze@impulze.org>
13892
3fb18f09 13893 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
13894
336e1fb9 13895 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
13896
1806b56e 13897 * kern/misc.c (grub_strcasecmp): New function.
13898 (grub_strcasecmp): Use grub_size_t instead of int for length.
13899 Fix return value.
13900 * include/grub/misc.h: Update function prototypes.
13901
580b2a0f 139022009-01-26 Robert Millan <rmh@aybabtu.com>
13903
13904 * configure.ac: Fix cross-compilation check.
ef257b36 13905
d31c24f1 139062009-01-22 Christian Franke <franke@computer.org>
13907
13908 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
13909 (precision) digit string. Allow `.format2' without `format1' (width).
13910 Limit input chars for `%s' output to `format2' if specified. This is
13911 compatible with standard printf ().
13912
3138b44c 139132009-01-22 Christian Franke <franke@computer.org>
13914
13915 * disk/ata.c (grub_ata_wait_status): Replace by ...
13916 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
13917 other status bits may be invalid while BSY is asserted.
13918 (grub_ata_check_ready): New function.
13919 (grub_ata_cmd): Removed.
13920 (grub_ata_wait_drq): New function.
13921 (grub_ata_strncpy): Remove inline.
13922 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
13923 and error check now done by grub_ata_wait_drq ().
13924 (grub_ata_pio_write): Likewise.
13925 (grub_atapi_identify): Set DEV before check for !BSY. Use
13926 grub_ata_wait_drq () to wait for data.
13927 (grub_ata_device_initialize): Add status register check to
13928 detect missing SATA slave devices. Add debug messages.
13929 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
13930 (grub_atapi_packet): Set DEV before check for !BSY. Replace
13931 transfer loop by grub_ata_pio_write ().
13932 (grub_ata_identify): Set DEV before check for !BSY. Use
13933 grub_ata_wait_drq () to wait for data.
ef257b36 13934 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 13935 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
13936 read/write in one loop. Fix invalid command on write. Fix incomplete
13937 command on (size % batch) == 0. Add missing error check after write of
13938 last block. Add debug messages.
13939 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
13940
59a64ef6 139412009-01-19 Christian Franke <franke@computer.org>
13942
13943 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
13944 (GRUB_ATAPI_IREASON_*): Likewise.
13945 (grub_ata_pio_write): Fix timeout error return.
13946 (grub_atapi_identify): Add grub_ata_wait () after cmd.
13947 (grub_atapi_wait_drq): New function.
13948 (grub_atapi_packet): New parameter `size'.
13949 Use grub_atapi_wait_drq () and direct write instead of
13950 grub_ata_pio_write ().
13951 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
13952 reads the number of bytes requested by the device for each DRQ
13953 assertion.
13954 (grub_atapi_write): Remove old implementation, return not
13955 implemented instead.
13956
1cfe20b3 139572009-01-19 Christian Franke <franke@computer.org>
13958
13959 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
13960 of 512 to calculate data size.
13961 (grub_scsi_read12): Likewise.
13962 (grub_scsi_write10): Likewise.
13963 (grub_scsi_write12): Likewise.
13964 (grub_scsi_read): Adjust size according to blocksize.
13965 Add checks for invalid blocksize and unaligned transfer.
13966
bee5fe5d 139672009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
13968
13969 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
13970
ef257b36 13971 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 13972 width glyphs.
13973
3e643f8c 139742009-01-19 Robert Millan <rmh@aybabtu.com>
13975
13976 * config.guess: Update to latest version from config git.
13977 * config.sub: Likewise.
13978
4fa80998 139792009-01-17 Felix Zielcke <fzielcke@z-51.de>
13980
13981 * Makefile.in: Change font compilation to use new grub-mkfont instead
13982 of java version.
13983
13984 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
13985 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
13986 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
13987 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
13988 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
13989 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
13990 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
13991 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
13992 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
13993
7086085b 139942009-01-16 Christian Franke <franke@computer.org>
13995
13996 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
13997 (enum grub_ata_timeout_milliseconds): New enum.
13998 (grub_ata_wait_status): Add parameter milliseconds.
13999 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
14000 recovery from timed-out commands.
14001 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
14002 return grub_errno instead of REG_ERROR.
14003 (grub_ata_pio_write): Add parameter milliseconds.
14004 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
14005 Pass milliseconds to grub_ata_wait_status () and
14006 grub_ata_pio_read ().
14007 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
14008 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
14009 grub_ata_wait_status (). Fix IDENTIFY timeout check.
14010 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
14011 It is not suitable for device detection, because DEV bit is ignored,
14012 the command may run too long, and not all devices set the signature
14013 properly.
14014 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
14015 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
14016 Fix device selection, DEV bit must be set first to address the registers
14017 of the correct device.
14018 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
14019 grub_ata_pio_read/write ().
14020 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
14021 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
14022
4a412913 140232009-01-13 Carles Pina i Estany <carles@pina.cat>
14024
14025 * util/grub-editenv.c (main): Use fseeko(), not fseek().
14026
7795c55e 140272009-01-13 Bean <bean123ch@gmail.com>
d913988c 14028
14029 * util/grub-mkfont.c (write_font): forget to remove some debug code.
14030
7795c55e 140312009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 14032
14033 * Makefile.in: (enable_grub_mkfont): New variable.
14034 (freetype_cflags): Likewise.
14035 (freetype_libs): Likewise.
14036
14037 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
14038 (grub_mkfont_SOURCES): New variable.
14039 (grub_mkfont_CFLAGS): Likewise.
14040 (grub_mkfont_LDFLAGS): Likewise.
14041
14042 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
14043 library if `--enable-grub-mkfont' is requested.
14044 (enable_grub_mkfont): New variable.
14045 (freetype_cflags): Likewise.
14046 (freetype_libs): Likewise.
14047
14048 * util/grub-mkfont.c: New file.
14049
093af1fe 140502009-01-12 Christian Franke <franke@computer.org>
14051
14052 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
14053 mode check. Fix setting of compat_use[].
14054
f36cc108 140552009-01-10 Robert Millan <rmh@aybabtu.com>
14056
14057 Update a few copyright years which we forgot to do in 2008 (only for
14058 files whose changes made in 2008 were copyright-significant)
14059
14060 * Makefile.in: Add 2008 to Copyright line.
14061 * disk/ieee1275/ofdisk.c: Likewise.
14062 * disk/efi/efidisk.c: Likewise.
14063 * kern/dl.c: Likewise.
14064 * kern/sparc64/ieee1275/init.c: Likewise.
14065 * kern/mm.c: Likewise.
14066 * kern/efi/mm.c: Likewise.
14067 * boot/i386/pc/boot.S: Likewise.
14068 * genfslist.sh: Likewise.
14069 * fs/iso9660.c: Likewise.
14070 * fs/hfs.c: Likewise.
14071 * fs/jfs.c: Likewise.
14072 * fs/minix.c: Likewise.
14073 * fs/ufs.c: Likewise.
14074 * gensymlist.sh.in: Likewise.
14075 * genkernsyms.sh.in: Likewise.
14076 * include/grub/misc.h: Likewise.
14077 * include/grub/types.h: Likewise.
14078 * include/grub/symbol.h: Likewise.
14079 * include/grub/elf.h: Likewise.
14080 * include/grub/kernel.h: Likewise.
14081 * include/grub/disk.h: Likewise.
14082 * include/grub/dl.h: Likewise.
14083 * include/grub/i386/linux.h: Likewise.
14084 * include/grub/i386/pc/biosdisk.h: Likewise.
14085 * include/grub/efi/api.h: Likewise.
14086 * include/grub/efi/pe32.h: Likewise.
14087 * include/grub/util/misc.h: Likewise.
14088 * normal/execute.c: Likewise.
14089 * normal/arg.c: Likewise.
14090 * normal/completion.c: Likewise.
14091 * normal/lexer.c: Likewise.
14092 * normal/parser.y: Likewise.
14093 * normal/misc.c: Likewise.
14094 * commands/i386/pc/vbeinfo.c: Likewise.
14095 * commands/hexdump.c: Likewise.
14096 * commands/terminal.c: Likewise.
14097 * commands/ls.c: Likewise.
14098 * commands/help.c: Likewise.
14099 * partmap/pc.c: Likewise.
14100 * loader/efi/chainloader.c: Likewise.
14101 * loader/multiboot_loader.c: Likewise.
14102 * loader/i386/pc/multiboot2.c: Likewise.
14103 * term/efi/console.c: Likewise.
14104 * term/i386/pc/serial.c: Likewise.
14105 * util/lvm.c: Likewise.
14106 * util/console.c: Likewise.
14107 * util/i386/efi/grub-mkimage.c: Likewise.
14108 * util/raid.c: Likewise.
14109
7f02114b 141102009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
14111
14112 * commands/videotest.c: Removed include to grub/machine/memory.h.
14113
14114 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
14115 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
14116 (video_mod_SOURCES): Removed.
14117 (video_mod_CFLAGS): Likewise.
14118 (video_mod_LDFLAGS): Likewise.
14119 (gfxterm_mod_SOURCES): Likewise.
14120 (gfxterm_mod_CFLAGS): Likewise.
14121 (gfxterm_mod_LDFLAGS): Likewise.
14122 (videotest_mod_SOURCES): Likewise.
14123 (videotest_mod_CFLAGS): Likewise.
14124 (videotest_mod_LDFLAGS): Likewise.
14125 (bitmap_mod_SOURCES): Likewise.
14126 (bitmap_mod_CFLAGS): Likewise.
14127 (bitmap_mod_LDFLAGS): Likewise.
14128 (tga_mod_SOURCES): Likewise.
14129 (tga_mod_CFLAGS): Likewise.
14130 (tga_mod_LDFLAGS): Likewise.
14131 (jpeg_mod_SOURCES): Likewise.
14132 (jpeg_mod_CFLAGS): Likewise.
14133 (jpeg_mod_LDFLAGS): Likewise.
14134 (png_mod_SOURCES): Likewise.
14135 (png_mod_CFLAGS): Likewise.
14136 (png_mod_LDFLAGS): Likewise.
14137
14138 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
14139 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
14140 (video_mod_SOURCES): Added.
14141 (video_mod_CFLAGS): Likewise.
14142 (video_mod_LDFLAGS): Likewise.
14143 (videotest_mod_SOURCES): Likewise.
14144 (videotest_mod_CFLAGS): Likewise.
14145 (videotest_mod_LDFLAGS): Likewise.
14146 (bitmap_mod_SOURCES): Likewise.
14147 (bitmap_mod_CFLAGS): Likewise.
14148 (bitmap_mod_LDFLAGS): Likewise.
14149 (tga_mod_SOURCES): Likewise.
14150 (tga_mod_CFLAGS): Likewise.
14151 (tga_mod_LDFLAGS): Likewise.
14152 (jpeg_mod_SOURCES): Likewise.
14153 (jpeg_mod_CFLAGS): Likewise.
14154 (jpeg_mod_LDFLAGS): Likewise.
14155 (png_mod_SOURCES): Likewise.
14156 (png_mod_CFLAGS): Likewise.
14157 (png_mod_LDFLAGS): Likewise.
14158 (gfxterm_mod_SOURCES): Likewise.
14159 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 14160 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 14161
14162 * term/gfxterm.c: Removed include to grub/machine/memory.h,
14163 grub/machine/console.h.
14164
644fff97 141652009-01-04 Jerone Young <jerone@gmail.com>
14166
14167 Make on screen instructions clearer
14168
14169 Based on patch created by Jidanni <jidanni@jidanni.org>
14170
14171 * normal/menu.c: print clearer instructions on the screen
14172
1e901a75 141732009-01-02 Colin D Bennett <colin@gibibit.com>
14174
14175 New font engine.
34c44600 14176
1e901a75 14177 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
14178 build system and fixed gfxterm.c to work with different sized fonts.
14179
14180 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 14181
1e901a75 14182 * configure: Re-generated.
34c44600 14183
1e901a75 14184 * DISTLIST: Removed font/manager.c.
14185 Added font/font.c.
14186 Added font/font_cmd.c.
34c44600 14187
1e901a75 14188 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
14189 compilation.
34c44600 14190
1e901a75 14191 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 14192
14193 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 14194
14195 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 14196
1e901a75 14197 * normal/menu.c: Likewise.
34c44600 14198
1e901a75 14199 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
14200 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 14201
1e901a75 14202 * include/grub/font.h: Replaced with new file.
34c44600 14203
1e901a75 14204 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
14205 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
14206 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
14207 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
14208 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 14209 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 14210 fg_red, fg_green, fg_blue, fg_alpha.
14211 (grub_video_adapter): Removed blit_glyph.
34c44600 14212 (grub_video_blit_glyph): Removed.
14213
1e901a75 14214 * font/manager.c: Removed file.
34c44600 14215
14216 * font/font.c: New file.
14217
1e901a75 14218 * font/font_cmd.c: Likewise.
34c44600 14219
1e901a75 14220 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 14221
1e901a75 14222 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
14223 (grub_video_vbe_map_rgba): Likewise.
14224 (grub_video_vbe_unmap_color_int): Likewise.
14225 (grub_video_vbe_blit_glyph): Removed.
14226 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 14227
1e901a75 14228 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
14229 (get_pixel): Likewise.
34c44600 14230 (set_pixel): Likewise.
14231
1e901a75 14232 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 14233
1e901a75 14234 * term/gfxterm.c: Adapted to new font engine.
34c44600 14235
1e901a75 14236 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 14237
1e901a75 14238 * term/i386/pc/vga.c: Likewise.
34c44600 14239
1e901a75 14240 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 14241
1e901a75 14242 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 14243
1e901a75 14244 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 14245
1e901a75 14246 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 14247
1e901a75 14248 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 14249
1e901a75 14250 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 14251
1e901a75 14252 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 14253
1e901a75 14254 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 14255
1e901a75 14256 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
14257
14258 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 14259
1e901a75 14260 * util/grub-mkconfig_lib.in: Changed font extension.
14261
278922e8 142622008-12-28 Felix Zielcke <fzielcke@z-51.de>
14263
14264 * util/getroot.c (grub_util_get_grub_dev): Add support for
14265 /dev/md/dNNpNN style partitionable mdraid devices.
14266
3ced05cf 142672008-12-12 Alex Smith <alex@alex-smith.me.uk>
14268
14269 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
14270 at a time limit of the PXE TFTP API correctly.
14271 (grub_pxefs_close): Likewise.
14272
7fd0ee30 142732008-11-29 Robert Millan <rmh@aybabtu.com>
14274
34c44600 14275 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 14276 grub_ata_device_initialize() calls.
14277
34c44600 142782008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 14279
14280 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
14281 iteration failed.
14282 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
14283
89313780 142842008-11-28 Robert Millan <rmh@aybabtu.com>
14285
14286 Fix build on powerpc-ieee1275. Based on patch created by
14287 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
14288 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
14289 `kern/ieee1275/mmap.c'.
14290 * include/grub/powerpc/ieee1275/memory.h: New file.
14291
15257703 14292 Provide grub-install on coreboot.
14293 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
14294 (grub_install_SOURCES): New variable.
14295 * util/i386/pc/grub-install.in: Add a few condition checks to make it
14296 usable on coreboot.
14297
9fc5388a 142982008-11-25 Felix Zielcke <fzielcke@z-51.de>
14299
14300 * util/grub-fstest.c (grub_term_get_current_input): Change return type
14301 to `grub_term_input_t'.
14302 (grub_term_get_current_output): Change return type to
14303 `grub_term_output_t'.
14304
bc3a2f31 143052008-11-22 Robert Millan <rmh@aybabtu.com>
14306
34c44600 14307 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 14308 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
14309 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
14310 grub_vga_text_cls().
14311
80fc88f2 14312 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 14313 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 14314
cbf36fd3 14315 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
14316 to 0x200000 (avoids trouble with some OFW implementations, and matches
14317 with the one in Yaboot).
14318 Reported by Manoel Abranches
14319
73e8e268 143202008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 14321
14322 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
14323 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
14324
73e8e268 14325 * util/grub-mkconfig_lib.in (grub_warn): New function.
14326 (convert_system_path_to_grub_path): Use grub_warn() when issuing
14327 warnings, to obtain consistent formatting.
14328 * util/grub.d/00_header.in: Likewise.
14329 * util/update-grub_lib.in: Likewise.
14330
e94045a1 14331 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 14332 Move comment text to `#error' stanza.
e94045a1 14333
79d29fd7 14334 Harmonize ieee1275's grub_available_iterate() with the generic
14335 grub_machine_mmap_iterate() interface (fixes a recently-introduced
14336 build problem on i386-ieee1275):
14337 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
14338 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
14339 parameter `type'. Update all users of this function.
14340 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
14341 `kern/ieee1275/mmap.c'.
14342 * kern/ieee1275/init.c
14343 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
14344 with ...
14345 (grub_machine_mmap_iterate): ... this.
14346 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
14347 return type to `grub_err_t'. Update all implementations of this
14348 function prototype.
14349 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
14350 Likewise.
14351
60d6b16e 14352 Add `lsmmap' command (lists firmware-provided memory map):
14353 * commands/lsmmap.c: New file.
14354 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
14355 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
14356 variables.
14357 * conf/powerpc-ieee1275.rmk: Likewise.
14358 * conf/i386-coreboot.rmk: Likewise.
14359 * conf/i386-ieee1275.rmk: Likewise.
14360
ebaaf49b 143612008-11-19 Robert Millan <rmh@aybabtu.com>
14362
14363 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 14364 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
14365 constraints to initrd allocation (based on code from
14366 loader/i386/pc/linux.c). Without them, initrd was allocated too high
14367 for Linux to find it.
ebaaf49b 14368
dfab719f 143692008-11-14 Robert Millan <rmh@aybabtu.com>
14370
14371 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
14372 order to cope with duplicate slashes.
14373
10fc3eb9 143742008-11-14 Robert Millan <rmh@aybabtu.com>
14375
14376 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
14377 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
14378 don't want to mess with lower memory, because it is used in the Linux
14379 loader.
14380
14381 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 14382 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 14383 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
14384 is in our heap (probably as a result of it being corrupted during
2f2a3442 14385 decompression). Add #error instance with comment to explain why this
14386 loader isn't currently usable on PC/BIOS.
10fc3eb9 14387
e2e07847 143882008-11-14 Robert Millan <rmh@aybabtu.com>
14389
14390 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 14391 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 14392
fe8e8d69 143932008-11-12 Robert Millan <rmh@aybabtu.com>
14394
14395 Make loader/i386/linux.c buildable on i386-pc (although disabled).
14396
14397 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
14398 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
14399 from here ...
14400 * include/grub/i386/pc/memory.h: ... to here.
14401
976b07d0 144022008-11-12 Robert Millan <rmh@aybabtu.com>
14403
14404 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
14405 split).
14406
14407 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
14408 (grub_console_cur_color, grub_console_real_putchar)
14409 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14410 (grub_console_setcolorstate, grub_console_setcolor)
14411 (grub_console_getcolor): Move from here ...
14412 * include/grub/i386/vga_common.h: ... to here (new file).
14413
14414 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
14415 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
14416 `<grub/i386/io.h>'.
14417 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
14418 `<grub/i386/vga_common.h>'.
14419
76679cd3 144202008-11-12 Robert Millan <rmh@aybabtu.com>
14421
14422 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
14423 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
14424 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
14425 variables.
14426 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14427 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
14428
14429 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
14430 grub_console_init() with call to grub_vga_text_init().
14431 (grub_machine_fini): Replace call to
14432 grub_console_fini() with call to grub_vga_text_fini() and
14433 grub_at_keyboard_fini().
14434
14435 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
14436 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14437 (grub_console_setcolorstate, grub_console_setcolor)
14438 (grub_console_getcolor): New function prototypes.
14439
14440 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
14441 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
14442 (grub_vga_text_setcursor): Static-ize.
14443 (grub_vga_text_term): New structure.
14444 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
14445
14446 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
14447 (grub_console_cur_color, grub_console_standard_color)
14448 (grub_console_normal_color, grub_console_highlight_color)
14449 (map_char, grub_console_putchar, grub_console_getcharwidth)
14450 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
14451 (grub_console_getcolor): Move from here ...
14452 * term/i386/vga_common.c: ... to here (same function names).
14453
95b841d3 144542008-11-12 Robert Millan <rmh@aybabtu.com>
14455
14456 Use newly-added Multiboot support in coreboot.
14457
14458 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14459 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
14460
14461 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
14462 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
14463 (codestart): Store the MBI in `startup_multiboot_info' when we're
14464 being loaded using Multiboot.
14465
14466 * kern/i386/coreboot/init.c (grub_machine_init): Move
14467 grub_at_keyboard_init() call to beginning of function (useful for
14468 debugging). Call grub_machine_mmap_init() before attempting to use
14469 grub_machine_mmap_iterate().
14470 (grub_lower_mem, grub_upper_mem): Move from here ...
14471 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
14472 here (new file).
14473
14474 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
14475 function prototype.
14476
761ca975 144772008-11-12 Robert Millan <rmh@aybabtu.com>
14478
14479 Fix a regression introduced by the at_keyboard.mod split. Because
14480 some terminals are default on some platforms and non-default on
14481 others, the first terminal being registered determines which is
14482 going to be default.
14483
14484 * kern/term.c (grub_term_register_input): If this is the first
14485 terminal being registered, set it as the current one.
14486 (grub_term_register_output): Likewise.
14487
14488 * term/efi/console.c (grub_console_init): Do not call
14489 grub_term_set_current_output() or grub_term_set_current_input().
14490 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
14491 * term/i386/pc/console.c (grub_console_init): Likewise.
14492 (grub_console_fini): Do not call grub_term_set_current_input()
14493 (but leave grub_term_set_current_output() to restore text mode).
14494
6c529df7 144952008-11-10 Robert Millan <rmh@aybabtu.com>
14496
14497 * util/grub.d/00_header.in: Add backward compatibility check for
14498 versions of terminal.mod that don't understand `terminal_input' or
14499 `terminal_output'.
14500
132e4113 145012008-11-09 Robert Millan <rmh@aybabtu.com>
14502
14503 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
14504 `terminal_input' / `terminal_output', not `terminal'.
14505
ac293d50 145062008-11-08 Robert Millan <rmh@aybabtu.com>
14507
14508 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 14509 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 14510
0025933a 145112008-11-08 Robert Millan <rmh@aybabtu.com>
14512
14513 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 14514 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 14515 members. Update all users.
14516 * util/console.c (grub_ncurses_term): Split in ...
14517 (grub_ncurses_term_input): ... this, and ...
14518 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 14519 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 14520
37c86336 145212008-11-08 Robert Millan <rmh@aybabtu.com>
14522
14523 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
14524 (PKGDATA): Add $(pkgdata_SRCDIR).
14525 (pkglib_BUILDDIR): New variable.
14526 (pkgdata_SRCDIR): New variable.
14527 (build_env.mk): New target.
14528 (include_DATA): New variable.
14529 (install-local): Install $(include_DATA) files in $(includedir).
14530
b6c15a2d 145312008-11-07 Pavel Roskin <proski@gnu.org>
14532
d99d46f1 14533 * gendistlist.sh: Use C locale for sorting to ensure consistent
14534 output on all systems.
14535
b6c15a2d 14536 * util/grub.d/00_header.in: Remove incorrect space before
14537 "serial".
14538
c32ee8c9 145392008-11-07 Robert Millan <rmh@aybabtu.com>
14540
14541 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
14542 per specification.
14543 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
14544 * loader/multiboot_loader.c (find_multi_boot2_header): New function
14545 (based on find_multi_boot1_header).
14546 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
14547 using find_multi_boot2_header(), and abort if neither Multiboot or
14548 Multiboot headers were found.
14549
651c29b7 145502008-11-07 Robert Millan <rmh@aybabtu.com>
14551
14552 Modularize at_keyboard.mod:
14553
14554 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
14555 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
14556 (at_keyboard_mod_LDFLAGS): New variables.
14557
14558 Actual terminal split:
14559
14560 * include/grub/term.h (struct grub_term): Split in ...
14561 (struct grub_term_input): ... this, and ...
14562 (struct grub_term_output): ... this. Update all users.
14563 (grub_term_set_current): Split in ...
14564 (grub_term_set_current_input): ... this, and ...
14565 (grub_term_set_current_output): ... this.
14566 (grub_term_get_current): Split in ...
14567 (grub_term_get_current_input): ... this, and ...
14568 (grub_term_get_current_output): ... this.
14569 (grub_term_register): Split in ...
14570 (grub_term_register_input): ... this, and ...
14571 (grub_term_register_output): ... this.
14572 (grub_term_unregister): Split in ...
14573 (grub_term_unregister_input): ... this, and ...
14574 (grub_term_unregister_output): ... this.
14575 (grub_term_iterate): Split in ...
14576 (grub_term_iterate_input): ... this, and ...
14577 (grub_term_iterate_output): ... this.
14578
14579 * kern/term.c (grub_term_list): Split in ...
14580 (grub_term_list_input): ... this, and ...
14581 (grub_term_list_output): ... this. Update all users.
14582 (grub_cur_term): Split in ...
14583 (grub_cur_term_input): ... this, and ...
14584 (grub_cur_term_output): ... this. Update all users.
14585 (grub_term_set_current): Split in ...
14586 (grub_term_set_current_input): ... this, and ...
14587 (grub_term_set_current_output): ... this.
14588 (grub_term_get_current): Split in ...
14589 (grub_term_get_current_input): ... this, and ...
14590 (grub_term_get_current_output): ... this.
14591 (grub_term_register): Split in ...
14592 (grub_term_register_input): ... this, and ...
14593 (grub_term_register_output): ... this.
14594 (grub_term_unregister): Split in ...
14595 (grub_term_unregister_input): ... this, and ...
14596 (grub_term_unregister_output): ... this.
14597 (grub_term_iterate): Split in ...
14598 (grub_term_iterate_input): ... this, and ...
14599 (grub_term_iterate_output): ... this.
14600
14601 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
14602 a check for input and one for output (and only attempt to get keys
14603 from user when input works).
14604
14605 * util/grub-probe.c (grub_term_get_current): Split in ...
14606 (grub_term_get_current_input): ... this, and ...
14607 (grub_term_get_current_output): ... this.
14608 * util/grub-fstest.c: Likewise.
14609 * util/i386/pc/grub-setup.c: Likewise.
14610 * util/grub-editenv.c: Likewise.
14611
14612 Portability adjustments:
14613
14614 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
14615 `term/i386/pc/at_keyboard.c'.
14616 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
14617 grub_keyboard_controller_init() (now handled by terminal .init).
14618 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
14619 grub_at_keyboard_init().
14620 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
14621 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
14622 at_keyboard.mod via input terminal interface).
14623 * include/grub/i386/coreboot/console.h: Convert into a stub for
14624 `<grub/i386/pc/console.h>'.
14625
14626 Migrate full terminals to new API:
14627
14628 * term/efi/console.c (grub_console_term): Split into ...
14629 (grub_console_term_input): ... this, and ...
14630 (grub_console_term_output): ... this. Update all users.
14631 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
14632 (grub_ofconsole_init): Split into ...
14633 (grub_ofconsole_init_input): ... this, and ...
14634 (grub_ofconsole_init_output): ... this.
14635 (grub_ofconsole_term): Split into ...
14636 (grub_ofconsole_term_input): ... this, and ...
14637 (grub_ofconsole_term_output): ... this. Update all users.
14638 * term/i386/pc/serial.c (grub_serial_term): Split into ...
14639 (grub_serial_term_input): ... this, and ...
14640 (grub_serial_term_output): ... this. Update all users.
14641 * term/i386/pc/console.c (grub_console_term): Split into ...
14642 (grub_console_term_input): ... this, and ...
14643 (grub_console_term_output): ... this. Update all users.
14644 (grub_console_term_input): Only enable it on PC/BIOS platform.
14645 (grub_console_init): Remove grub_keyboard_controller_init() call.
14646
14647 Migrate input terminals to new API:
14648
14649 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
14650 `i386' and `i386/pc' to enable build on x86_64 (this driver is
14651 i386-specific anyway).
14652 (grub_console_checkkey): Rename to ...
14653 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
14654 users.
14655 (grub_keyboard_controller_orig): New variable.
14656 (grub_console_getkey): Rename to ...
14657 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
14658 users.
14659 (grub_keyboard_controller_init): Static-ize. Save original
14660 controller value so that it can be restored ...
14661 (grub_keyboard_controller_fini): ... here (new function).
14662 (grub_at_keyboard_term): New structure.
14663 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
14664 functions.
14665
14666 Migrate output terminals to new API:
14667
14668 * term/i386/pc/vga.c (grub_vga_term): Change type to
14669 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14670 members. Update all users.
14671 * term/gfxterm.c (grub_video_term): Change type to
14672 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14673 members. Update all users.
14674 * include/grub/i386/pc/console.h (grub_console_checkkey)
14675 (grub_console_getkey): Do not export (no longer needed by gfxterm,
14676 etc).
14677
14678 Migrate `terminal' command and userland tools to new API:
14679
14680 * commands/terminal.c (grub_cmd_terminal): Split into ...
14681 (grub_cmd_terminal_input): ... this, and ...
14682 (grub_cmd_terminal_output): ... this.
14683 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
14684 `terminal_input' and `terminal_output'.
14685 * util/grub.d/00_header.in: Adjust `terminal' calls to new
14686 `terminal_input' / `terminal_output' API.
14687 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
14688 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
14689 provided ${GRUB_TERMINAL}, convert it).
14690
96e5d876 146912008-11-04 Robert Millan <rmh@aybabtu.com>
14692
14693 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
14694 for FreeBSD.
14695 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
14696
556f3775 146972008-11-03 Bean <bean123ch@gmail.com>
14698
14699 * kern/elf.c (grub_elf32_load): Revert to previous code.
14700 (grub_elf64_load): Likewise.
14701
14702 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
14703
926b9823 147042008-11-01 Robert Millan <rmh@aybabtu.com>
14705
14706 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
14707 (TARGET_CPPFLAGS): Likewise.
14708 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
14709
1432e958 147102008-11-01 Carles Pina i Estany <carles@pina.cat>
14711
14712 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
14713
dba3f844 147142008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 14715
14716 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
14717 addition of objects until the code is not going to be able to fail.
14718
dba3f844 147192008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 14720
14721 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
14722 (add a missing NULL check, and correct them by moving the pointer
14723 operations after the actual check).
14724
7ab28c21 147252008-10-29 Robert Millan <rmh@aybabtu.com>
14726
14727 * util/i386/pc/grub-install.in: Handle empty string as output from
14728 make_system_path_relative_to_its_root().
14729
1b7748eb 147302008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
14731
14732 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
14733 circular metadata worst case scenario. If the metadata is circular
14734 then copy the wrap in place.
14735 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
14736 project lib/format_text/layout.h
14737 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
14738
c9618ab2 147392008-10-03 Felix Zielcke <fzielcke@z-51.de>
14740
7a36edca 14741 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 14742
bf981c62 147432008-10-03 Felix Zielcke <fzielcke@z-51.de>
14744
14745 * util/update-grub_lib.in: Mention filename in warning message.
14746
6d994591 147472008-09-29 Felix Zielcke <fzielcke@z-51.de>
14748
14749 * NEWS: Update for rename of update-grub to grub-mkconfig.
14750
18ade780 147512008-09-29 Felix Zielcke <fzielcke@z-51.de>
14752
14753 * util/update-grub_lib.in: Copy to ...
14754 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 14755 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 14756 * util/update-grub.in: Rename to ...
14757 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
14758 option. Add `--output' option to allow users to specify the generated
14759 configuration file. Default to stdout.
14760 (update_grub_dir): Rename to ...
14761 (grub_mkconfig_dir): ... this.
14762 (grub_cfg): Default to an empty string.
14763 * conf/common.rmk (update-grub): Rename to ...
14764 (grub-mkconfig): ... this.
14765 (update-grub_lib): Copy to ...
14766 (grub-mkconfig_lib): ... this.
14767 (update-grub_SCRIPTS): Copy to ...
14768 (grub-mkconfig_SCRIPTS): ... this. Update all users.
14769 (update-grub_DATA): Rename to ...
14770 (grub-mkconfig_DATA): ... this.
14771
556ce6ac 147722008-09-28 Robert Millan <rmh@aybabtu.com>
14773
14774 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
14775 to `modified'. Add the real `created' field.
14776 (grub_iso9660_uuid): Use `modified' rather than `created' for
14777 constructing the UUID.
14778
147792008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 14780
14781 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
14782 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
14783
92274e85 147842008-09-28 Bean <bean123ch@gmail.com>
14785
14786 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
14787 Thanks to Christian Franke for finding this bug.
14788
add6f17a 147892008-09-25 Robert Millan <rmh@aybabtu.com>
14790
14791 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
14792 instances of grub_util_get_disk_name() (see previous commit).
14793
d2a367b8 147942008-09-25 Robert Millan <rmh@aybabtu.com>
14795
14796 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
14797 `util/i386/get_disk_name.c'.
14798 * conf/i386-efi.rmk: Likewise.
14799 * conf/x86_64-efi.rmk: Likewise.
14800 * conf/i386-coreboot.rmk: Likewise.
14801 * conf/i386-ieee1275.rmk: Likewise.
14802 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
14803 `util/ieee1275/get_disk_name.c'.
14804 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
14805 * util/ieee1275/get_disk_name.c: Remove file.
14806 * util/i386/get_disk_name.c: Remove file.
14807 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
14808 "hd%d" for device.map entries, rather than using
14809 grub_util_get_disk_name().
14810
81a06771 148112008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 14812
14813 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
14814 warning.
14815 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
14816
5a004279 148172008-09-24 Carles Pina i Estany <carles@pina.cat>
14818
14819 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
14820 Changed to 0x5100.
14821 (GRUB_TERM_PPAGE): Changed to 0x4900.
14822
397093d3 148232008-09-24 Robert Millan <rmh@aybabtu.com>
14824
14825 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
14826 macros (they were i386-pc specific).
14827 * include/grub/sparc64/ieee1275/console.h: Likewise.
14828 * include/grub/efi/console.h: Likewise.
14829
a91b6c7c 148302008-09-22 Bean <bean123ch@gmail.com>
14831
14832 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
14833 resident and in attribute list.
14834
14835 * include/grub/ntfs.h (BMP_LEN): Removed.
14836
c40fd116 148372008-09-22 Bean <bean123ch@gmail.com>
14838
81a06771 14839 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 14840 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
14841
14842 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
14843 error occurs, as grub_disk_open will call grub_disk_close, which will
14844 call p->close (scsi).
14845
81a06771 148462008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 14847
14848 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
14849 (AC_PREREQ): Bumped to 2.59.
14850 (AC_TRY_COMPILE): Replace obsolete macro with ...
14851 (AC_COMPILE_IFELSE): ... this.
14852 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
14853 (AC_LINK_IFELSE): ... this.
14854
5dc43410 148552008-09-21 Felix Zielcke <fzielcke@z-51.de>
14856
14857 * autogen.sh: Add a call to `gendistlist.sh'.
14858
9035dce4 148592008-09-19 Christian Franke <franke@computer.org>
14860
14861 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
14862 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
14863 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
14864 Export __enable_execute_stack() to modules.
14865 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
14866 New function.
14867
7fd75377 148682008-09-09 Felix Zielcke <fzielcke@z-51.de>
14869
040030b3 14870 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
14871 Sort the list.
14872
148732008-09-09 Felix Zielcke <fzielcke@z-51.de>
14874
14875 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 14876 #include <grub/util/hostdisk.h>.
14877
89d5ffcf 148782008-09-08 Robert Millan <rmh@aybabtu.com>
14879
14880 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
14881 segments when their filesz is zero (grub_file_read() interprets
81a06771 14882 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 14883 Use `lowest_segment' rather than 0 for calculating the current
14884 segment load address.
14885
40da438f 148862008-09-08 Robert Millan <rmh@aybabtu.com>
14887
14888 * util/hostdisk.c (open_device): Replace a grub_util_info() call
14889 with grub_dprintf("hostdisk", ...), as it was so verbose that it
14890 clobbered useful information.
14891
ddbf5556 148922008-09-08 Robert Millan <rmh@aybabtu.com>
14893
14894 * include/grub/util/biosdisk.h: Move to ...
14895 * include/grub/util/hostdisk.h: ... here. Update all users.
14896 * util/biosdisk.c: Move to ...
14897 * util/hostdisk.c: ... here. Update all users.
14898
783d0f48 148992008-09-07 Robert Millan <rmh@aybabtu.com>
14900
14901 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
14902 variables.
14903 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
14904 and length can be stored directly in the `mbi->mmap_addr' and
14905 `mbi->mmap_length' struct fields.
14906
548e2ea5 149072008-09-07 Robert Millan <rmh@aybabtu.com>
14908
14909 * conf/i386.rmk: New file. Provides declaration for building
14910 `cpuid.mod'.
14911 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
14912 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
14913 variables.
14914 Include `conf/i386.mk'.
14915 * conf/i386-efi.rmk: Likewise.
14916 * conf/x86_64-efi.rmk: Likewise.
14917 * conf/i386-coreboot.rmk: Likewise.
14918 * conf/i386-ieee1275.rmk: Likewise.
14919
0ea85a37 149202008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
14921
14922 Based on patch created by Colin D Bennett <colin@gibibit.com>.
14923 Adds optimization support for BGR based modes.
14924
14925 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
14926 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
14927 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14928 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14929 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14930 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14931 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14932 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14933 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14934 (grub_video_i386_vbeblit_index_index): Likewise.
14935 (grub_video_i386_vbeblit_replace_directN): Added.
14936 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
14937 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
14938 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
14939 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
14940 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
14941 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 14942 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 14943 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
14944 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
14945 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
14946 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
14947 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
14948 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
14949
14950 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
14951 (grub_video_i386_vbefill_R8G8B8): Likewise.
14952 (grub_video_i386_vbefill_index): Likewise.
14953 (grub_video_i386_vbefill_direct32): Added.
14954 (grub_video_i386_vbefill_direct24): Likewise.
14955 (grub_video_i386_vbefill_direct16): Likewise.
14956 (grub_video_i386_vbefill_direct8): Likewise.
14957
81a06771 14958 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 14959 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
14960 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
14961 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
14962 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
14963 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 14964
0ea85a37 14965 * video/video.c (grub_video_get_blit_format): Updated to use new
14966 blit formats. Added handling for 16 bit color modes.
81a06771 14967
14968 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 14969 fillers.
14970 (common_blitter): Updated to use new blitters.
14971
14972 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
14973 Removed.
14974 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
14975 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14976 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14977 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14978 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14979 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14980 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14981 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14982 (grub_video_i386_vbeblit_index_index): Likewise.
14983 (grub_video_i386_vbeblit_replace_directN): Added.
14984 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
14985 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
14986 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
14987 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
14988 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
14989 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
14990 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
14991 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
14992 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
14993 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
14994 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
14995 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
14996 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 14997
0ea85a37 14998 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
14999 (grub_video_i386_vbefill_R8G8B8): Likewise.
15000 (grub_video_i386_vbefill_index): Likewise.
15001 (grub_video_i386_vbefill_direct32): Added.
15002 (grub_video_i386_vbefill_direct24): Likewise.
15003 (grub_video_i386_vbefill_direct16): Likewise.
15004 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 15005
0ea85a37 15006 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
15007 types.
81a06771 15008
0ea85a37 15009 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
15010 types.
81a06771 15011
0ea85a37 15012 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
15013 blitter types.
81a06771 15014
0ea85a37 15015 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
15016 types.
15017
e8a83df6 150182008-09-06 Felix Zielcke <fzielcke@z-51.de>
15019
15020 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
15021 RAID level 1.
15022
6bcd8ee5 150232008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 15024
6bcd8ee5 15025 * fs/iso9660.c (grub_iso9660_date): New structure.
15026 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
15027 (grub_iso9660_uuid): New function.
c375ae58 15028
59261157 150292008-09-05 Bean <bean123ch@gmail.com>
15030
15031 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
15032
15033 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
15034 insensitive bit for names in Win32 and Win32 & DOS namespace.
15035
15036 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
15037
15038 * include/grub/types.h (LONG_MAX): Likewise.
15039
58b6645a 150402008-09-04 Felix Zielcke <fzielcke@z-51.de>
15041
4ee55921 15042 * util/getroot.c: Include <config.h>.
15043 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
15044 add support for /dev/md/N devices and handle LVM double dash escaping.
15045
150462008-09-04 Felix Zielcke <fzielcke@z-51.de>
15047
15048 * config.guess: Update to latest version from config git.
15049 * config.sub: Likewise.
58b6645a 15050
9124f65d 150512008-09-03 Robert Millan <rmh@aybabtu.com>
15052
15053 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
15054 `disk->total_sectors'.
15055
81a06771 150562008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 15057
15058 * include/grub/normal.h: Fixed incorrect comment for
15059 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
15060
81a06771 150612008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 15062
15063 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
15064 values with defines.
15065
15066 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
15067 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
15068 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
15069 (GRUB_VBE_MODEATTR_COLOR): Likewise.
15070 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
15071 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
15072 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
15073 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
15074 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
15075 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
15076 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
15077 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
15078 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
15079 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
15080 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
15081 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
15082 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
15083 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
15084 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
15085
93d5cbf8 150862008-08-31 Robert Millan <rmh@aybabtu.com>
15087
15088 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
15089 declaration.
15090 (grub_multiboot): Fix a few warnings.
15091
21751d50 150922008-08-31 Robert Millan <rmh@aybabtu.com>
15093
15094 * loader/i386/pc/multiboot.c: Update comment not to say that
15095 boot_device support is unimplemented.
15096
e27a75c5 150972008-08-31 Robert Millan <rmh@aybabtu.com>
15098
15099 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
15100 or memory map support are unimplemented.
15101
81a06771 151022008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 15103
15104 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
15105
81a06771 151062008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 15107
15108 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
15109 total video memory in 'vbeinfo' output; show color format details for
15110 each video mode.
15111
7c5d8d95 151122008-08-30 Pavel Roskin <proski@gnu.org>
15113
15114 * util/genmoddep.c: Remove for real this time.
15115 * DISTLIST: Remove util/genmoddep.c.
15116
4cebd25a 151172008-08-30 Robert Millan <rmh@aybabtu.com>
15118
15119 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
15120 as required by Multiboot spec (it was already 4-byte aligned, but
15121 only by chance).
15122
b497a269 151232008-08-29 Pavel Roskin <proski@gnu.org>
15124
e3925185 15125 * kern/powerpc/ieee1275/crt0.S: Rename to ...
15126 * kern/powerpc/ieee1275/startup.S: ... this.
15127 * conf/powerpc-ieee1275.rmk: Adjust for the above.
15128 * DISTLIST: Likewise.
15129
b497a269 15130 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
15131 grub/cpu/kernel.h. Add start label for consistency with other
15132 platforms. Add grub_prefix immediately after start. Add jump
15133 to the code after grub_prefix.
15134 * include/grub/powerpc/kernel.h: Provide valid values for
15135 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
15136
6e5a42fe 151372008-08-29 Bean <bean123ch@gmail.com>
15138
15139 * configure.ac: Change host_os to cygwin for mingw.
15140 (asprintf): New check for function.
15141
15142 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
15143 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
15144
15145 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 15146 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 15147 sync, sleep and grub_util_get_disk_size for mingw.
15148
15149 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
15150 to get size in mingw.
15151 (open_device): Use flag O_BINARY if it's defined.
15152 (find_root_device): Add dummy code for mingw.
15153
15154 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
15155 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
15156 (get_scsi_disk_name): Return 0 for mingw.
15157
15158 * util/hostfs.c: #include <grub/util/misc.h>.
15159 (grub_hostfs_open): Use "rb" flag to open file, use
15160 grub_util_get_disk_size to get disk size for mingw.
15161
15162 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
15163 (asprintf): New function if HAVE_ASPRINTF is not set.
15164 (sync): New function for mingw.
15165 (sleep): Likewise.
15166 (grub_util_get_disk_size): Likewise.
15167
ab3f2673 151682008-08-28 Pavel Roskin <proski@gnu.org>
15169
15170 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15171 kern/time.c.
15172
1c282483 151732008-08-28 Robert Millan <rmh@aybabtu.com>
15174
15175 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
15176
678e849c 151772008-08-28 Robert Millan <rmh@aybabtu.com>
15178
15179 Change find_grub_drive() syntax so it doesn't prevent it from
15180 detecting NULL names as errors.
15181
15182 * util/biosdisk.c (find_grub_drive): Move free slot search code
15183 from here ...
15184 (find_free_slot): ... to here.
15185 (read_device_map): Use find_free_slot() to search for free slots.
15186
965c75ca 151872008-08-27 Marco Gerards <marco@gnu.org>
15188
15189 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
15190 (scsi_mod_SOURCES): New variable.
15191 (scsi_mod_CFLAGS): Likewise
15192 (scsi_mod_LDFLAGS): Likewise.
15193
15194 * disk/scsi.c: New file.
15195
15196 * include/grub/scsi.h: Likewise.
15197
15198 * include/grub/scsicmd.h: Likewise.
15199
15200 * disk/ata.c: Include <grub/scsi.h>.
15201 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
15202 instead.
15203 (grub_ata_iterate): Skip ATAPI devices.
15204 (grub_ata_open): Only handle ATAPI devices.
15205 (struct grub_atapi_read): Removed.
15206 (grub_atapi_readsector): Likewise.
15207 (grub_ata_read): No longer handle ATAPI devices.
15208 (grub_ata_write): Likewise.
15209 (grub_atapi_iterate): New function.
15210 (grub_atapi_read): Likewise.
15211 (grub_atapi_write): Likewise.
15212 (grub_atapi_open): Likewise.
15213 (grub_atapi_close): Likewise.
15214 (grub_atapi_dev): New variable.
15215 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
15216 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
15217
15218 * include/grub/disk.h (enum grub_disk_dev_id): Add
15219 `GRUB_DISK_DEVICE_SCSI_ID'.
15220
c07ae501 152212008-08-26 Robert Millan <rmh@aybabtu.com>
15222
15223 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
15224 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
15225 descriptive.
15226
5ed20adc 152272008-08-23 Bean <bean123ch@gmail.com>
15228
15229 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
15230 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15231 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
15232 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
15233 dm_nv.mod.
15234 (raid5rec_mod_SOURCES): New macro.
15235 (raid5rec_mod_CFLAGS): Likewise.
15236 (raid5rec_mod_LDFLAGS): Likewise.
15237 (raid6rec_mod_SOURCES): Likewise.
15238 (raid6rec_mod_CFLAGS): Likewise.
15239 (raid6rec_mod_LDFLAGS): Likewise.
15240 (mdraid_mod_SOURCES): Likewise.
15241 (mdraid_mod_CFLAGS): Likewise.
15242 (mdraid_mod_LDFLAGS): Likewise.
15243 (dm_nv_mod_SOURCES): Likewise.
15244 (dm_nv_mod_CFLAGS): Likewise.
15245 (dm_nv_mod_LDFLAGS): Likewise.
15246
15247 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
15248 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15249 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15250
15251 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
15252 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15253
15254 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15255
15256 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15257
15258 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15259
15260 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15261
15262 * disk/raid5_recover.c: New file.
15263
15264 * disk/raid6_recover.c: Likewise.
15265
15266 * disk/mdraid_linux.c: Likewise.
15267
15268 * disk/dmraid_nvidia.c: Likewise.
15269
15270 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
15271 ULONG_MAX.
15272
15273 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
15274 calculate the size of raid device.
15275 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
15276 different layout of raid5.
15277 (grub_raid_scan_device): Remove code specific to mdraid.
15278 (grub_raid_list): New variable.
15279 (free_array): New function.
15280 (grub_raid_register): Likewise.
15281 (grub_raid_unregister): Likewise.
15282 (grub_raid_rescan): Likewise.
15283 (GRUB_MOD_INIT): Don't iterate device here.
15284 (GRUB_MOD_FINI): Use free_array to release resource.
15285
15286 * include/grub/raid.h: Remove macro and structure specific to mdraid.
15287 (grub_raid5_recover_func_t): New function variable type.
15288 (grub_raid6_recover_func_t): Likewise.
15289 (grub_raid5_recover_func): New variable.
15290 (grub_raid6_recover_func): Likewise.
15291 (grub_raid_register): New function.
15292 (grub_raid_unregister): Likewise.
15293 (grub_raid_rescan): Likewise.
15294 (grub_raid_block_xor): Likewise.
15295
15296 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
15297 (CMD_CRC): New macro.
15298 (part): Removed.
15299 (read_file): Handle device as well as file.
15300 (cmd_crc): New function.
15301 (fstest): Handle multiple disks.
15302 (options): Remove part, raw and long, add root and diskcount.
15303 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 15304 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 15305 add handling for the new options, support multiple disks.
15306
15307 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
15308
29c18915 153092008-08-23 Bean <bean123ch@gmail.com>
15310
15311 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
15312
15313 * genfslist.sh: Ignore kernel.mod.
15314
15315 * genpartmaplist.sh: Likewise.
15316
8415f261 153172008-08-23 Robert Millan <rmh@aybabtu.com>
15318
15319 * util/getroot.c (find_root_device): Skip anything that starts with
15320 a dot, not just directories. This avoids things like /dev/.tmp.md0.
15321
d5a7dc5b 153222008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 15323
d5a7dc5b 15324 * util/update-grub.in (GRUB_GFXMODE): Export variable.
15325 * util/grub.d/00_header.in: Allow the administrator to change default
15326 gfxmode via ${GRUB_GFXMODE}.
15327
380cfbb4 153282008-08-21 Felix Zielcke <fzielcke@z-51.de>
15329
15330 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
15331
c9baafe7 153322008-08-21 Robert Millan <rmh@aybabtu.com>
15333
15334 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
15335 loader.
15336 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
15337 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
15338
e290bef2 153392008-08-20 Carles Pina i Estany <carles@pina.cat>
15340
15341 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
15342 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
15343
f9dbfc96 153442008-08-19 Robert Millan <rmh@aybabtu.com>
15345
15346 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
15347 (struct grub_virtual_screen): Remove `cursor_color'.
15348 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
15349 initialization.
15350 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
15351
dd6bd6ab 153522008-08-18 Robert Millan <rmh@aybabtu.com>
15353
15354 Unify (identical) linux_normal.c files.
15355 * loader/i386/efi/linux_normal.c: Move from here ...
15356 * loader/linux_normal.c: ... to here. Update all users.
15357 * loader/i386/pc/linux_normal.c: Delete. Update all users.
15358 * loader/i386/ieee1275/linux_normal.c: Likewise.
15359
7f42f83e 153602008-08-18 Robert Millan <rmh@aybabtu.com>
15361
15362 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
15363 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
15364 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
15365 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
15366 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
15367 New macros.
15368 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
15369 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
15370 (GRUB_LINUX_CL_END_OFFSET): ... to here.
15371 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
15372 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
15373 (GRUB_EFI_CL_END_OFFSET): Rename to ...
15374 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
15375 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
15376 Initialize `params->video_cursor_x' and `params->video_cursor_y'
15377 portably using grub_getxy().
15378 Replace `-EFI' with `-bzImage' in boot message.
15379
38487ddb 153802008-08-17 Robert Millan <rmh@aybabtu.com>
15381
15382 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
15383
deceb3ec 153842008-08-17 Robert Millan <rmh@aybabtu.com>
15385
15386 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
15387
15388 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
15389 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
15390 (grub_machine_mmap_iterate): New function declaration.
15391 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
15392 structure.
15393 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
15394 macros.
15395
15396 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
15397 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
15398 Move e820 parsing from here ...
15399 * kern/i386/pc/mmap.c: New file.
15400 (grub_machine_mmap_iterate): ... to here.
15401
15402 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
15403 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
15404 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
15405 (grub_available_iterate): Redeclare to return `void', and redeclare
15406 its hook to use grub_uint64_t as addr and size parameters, and rename
15407 to ...
15408 (grub_machine_mmap_iterate): ... this. Update all users.
15409
15410 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
15411 to make it more readable. Rename to ...
15412 (grub_machine_mmap_iterate): ... this.
15413
15414 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
15415 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
15416 (grub_multiboot): Allocate an extra region after the payload, and fill
15417 it with a Multiboot memory map. Adjust a.out loader to calculate size
15418 with the extra space.
15419 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
15420 with the extra space.
15421
f8aa0f43 154222008-08-17 Carles Pina i Estany <carles@pina.cat>
15423
9807deb9 15424 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 15425
605f5bb6 154262008-08-17 Felix Zielcke <fzielcke@z-51.de>
15427
15428 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
15429 mdate-sh to the list `find' searches for.
15430 * DISTLIST: Regenerated.
15431
210db6c6 154322008-08-16 Felix Zielcke <fzielcke@z-51.de>
15433
15434 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
15435 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 15436 genmoddep.awk, gensymlist.sh.in.
15437 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 15438 * DISTLIST: Regenerated.
48cdbfd4 15439 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 15440
1082b929 154412008-08-16 Robert Millan <rmh@aybabtu.com>
15442
15443 * disk/raid.c (grub_raid_init): Handle/report errors set by
15444 grub_device_iterate().
15445 * disk/lvm.c (grub_lvm_init): Likewise.
15446
42ce5170 154472008-08-15 Bean <bean123ch@gmail.com>
15448
15449 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15450 and datehook.mod.
15451 (datetime_mod_SOURCES): New macro.
15452 (datetime_mod_CFLAGS): Likewise.
15453 (datetime_mod_LDFLAGS): Likewise.
15454 (date_mod_SOURCES): Likewise.
15455 (date_mod_CFLAGS): Likewise.
15456 (date_mod_LDFLAGS): Likewise.
15457 (datehook_mod_SOURCES): Likewise.
15458 (datehook_mod_CFLAGS): Likewise.
15459 (datehook_mod_LDFLAGS): Likewise.
15460
15461 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15462 and datehook.mod.
15463 (datetime_mod_SOURCES): New macro.
15464 (datetime_mod_CFLAGS): Likewise.
15465 (datetime_mod_LDFLAGS): Likewise.
15466 (date_mod_SOURCES): Likewise.
15467 (date_mod_CFLAGS): Likewise.
15468 (date_mod_LDFLAGS): Likewise.
15469 (datehook_mod_SOURCES): Likewise.
15470 (datehook_mod_CFLAGS): Likewise.
15471 (datehook_mod_LDFLAGS): Likewise.
15472
15473 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15474 and datehook.mod.
15475 (datetime_mod_SOURCES): New macro.
15476 (datetime_mod_CFLAGS): Likewise.
15477 (datetime_mod_LDFLAGS): Likewise.
15478 (date_mod_SOURCES): Likewise.
15479 (date_mod_CFLAGS): Likewise.
15480 (date_mod_LDFLAGS): Likewise.
15481 (datehook_mod_SOURCES): Likewise.
15482 (datehook_mod_CFLAGS): Likewise.
15483 (datehook_mod_LDFLAGS): Likewise.
15484
15485 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15486 and datehook.mod.
15487 (datetime_mod_SOURCES): New macro.
15488 (datetime_mod_CFLAGS): Likewise.
15489 (datetime_mod_LDFLAGS): Likewise.
15490 (date_mod_SOURCES): Likewise.
15491 (date_mod_CFLAGS): Likewise.
15492 (date_mod_LDFLAGS): Likewise.
15493 (datehook_mod_SOURCES): Likewise.
15494 (datehook_mod_CFLAGS): Likewise.
15495 (datehook_mod_LDFLAGS): Likewise.
15496
15497 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15498 and datehook.mod.
15499 (datetime_mod_SOURCES): New macro.
15500 (datetime_mod_CFLAGS): Likewise.
15501 (datetime_mod_LDFLAGS): Likewise.
15502 (date_mod_SOURCES): Likewise.
15503 (date_mod_CFLAGS): Likewise.
15504 (date_mod_LDFLAGS): Likewise.
15505 (datehook_mod_SOURCES): Likewise.
15506 (datehook_mod_CFLAGS): Likewise.
15507 (datehook_mod_LDFLAGS): Likewise.
15508
15509 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
15510
15511 * commands/date.c: New file.
15512
15513 * hook/datehook.c: Likewise.
15514
15515 * include/grub/lib/datetime.h: Likewise.
15516
15517 * include/grub/i386/cmos.h: Likewise.
15518
15519 * lib/datetime.c: Likewise.
15520
15521 * lib/i386/datetime.c: Likewise.
15522
15523 * lib/efi/datetime.c: Likewise.
15524
0e9242da 155252008-08-14 Robert Millan <rmh@aybabtu.com>
15526
15527 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
15528 (grub_mkelfimage_SOURCES): New variable.
15529 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
15530
15531 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
15532 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
15533 * conf/powerpc-ieee1275.rmk: Likewise.
15534 * conf/i386-ieee1275.rmk: Likewise.
15535
15536 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
15537 * kern/i386/coreboot/init.c: Likewise.
15538
15539 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
15540 with `<grub/cpu/kernel.h>'.
15541 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
15542 to ...
15543 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
15544 * kern/i386/coreboot/startup.S: Likewise.
15545
15546 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
15547 (GRUB_MOD_GAP): Remove.
15548 * include/grub/powerpc/kernel.h: New file.
15549 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
15550 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15551 * include/grub/i386/kernel.h: New file.
15552 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
15553 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
15554 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15555
15556 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
15557 `grub-mkelfimage'.
15558 Use --directory when invoking grub_mkimage.
15559
15560 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
15561 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
15562 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
15563 and GRUB_KERNEL_CPU_PREFIX.
15564
b86408f8 155652008-08-14 Felix Zielcke <fzielcke@z-51.de>
15566
d5e619ca 15567 * include/grub/err.h (grub_err_printf): New function prototype.
15568 * util/misc.c (grub_err_printf): New function.
15569 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
15570 grub_printf.
15571 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 15572
7161f0e0 155732008-08-13 Robert Millan <rmh@aybabtu.com>
15574
15575 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
15576
a1967522 155772008-08-13 Robert Millan <rmh@aybabtu.com>
15578
15579 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
15580 boot entry.
15581
371458b5 155822008-08-12 Robert Millan <rmh@aybabtu.com>
15583
15584 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
15585 of the relocation code from here ...
15586 (grub_multiboot): ... to here.
15587 (forward_relocator, backward_relocator): Move from here ...
15588 * kern/i386/loader.S (grub_multiboot_forward_relocator)
15589 (grub_multiboot_backward_relocator): ... to here.
15590 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
15591 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
15592 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
15593 (grub_multiboot_forward_relocator_end)
15594 (grub_multiboot_backward_relocator)
15595 (grub_multiboot_backward_relocator_end): New variables.
15596
05f9452b 155972008-08-12 Bean <bean123ch@gmail.com>
15598
15599 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
15600
20024ab0 156012008-08-11 Robert Millan <rmh@aybabtu.com>
15602
15603 * kern/i386/linuxbios/startup.S: Move from here ...
15604 * kern/i386/coreboot/startup.S: ... to here.
15605
15606 * kern/i386/linuxbios/init.c: Move from here ...
15607 * kern/i386/coreboot/init.c: ... to here.
15608
15609 * kern/i386/linuxbios/table.c: Move from here ...
15610 * kern/i386/coreboot/mmap.c: ... to here.
15611
15612 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
15613
e352e9cd 156142008-08-11 Robert Millan <rmh@aybabtu.com>
15615
15616 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
15617 errors. Leave it to the upper layer to handle them.
15618
2d05bc6a 156192008-08-09 Christian Franke <franke@computer.org>
15620
15621 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
15622 * conf/common.rmk: Install `grub-pe2elf' only if requested.
15623 Install `grub.d/10_windows' only on Cygwin.
15624 * configure.ac: Add subst of `target_os'.
15625 Check `target_os' also before setting TARGET_OBJ2ELF.
15626 Add `--enable-grub-pe2elf'.
15627
042bd419 156282008-08-08 Robert Millan <rmh@aybabtu.com>
15629
15630 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15631 (grub_last_time): Change type to grub_uint64_t.
15632 (grub_disk_open): Migrate code from to using grub_get_time_ms().
15633 (grub_disk_close): Likewise.
15634
15635 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15636 (run_menu): Migrate code from to using grub_get_time_ms().
15637
15638 * util/misc.c (grub_get_time_ms): New function.
15639
7f280db5 156402008-08-08 Marco Gerards <marco@gnu.org>
15641
15642 * disk/ata.c (grub_ata_regget): Change return type to
15643 `grub_uint8_t'.
15644 (grub_ata_regget2): Likewise.
15645 (grub_ata_wait_status): New function.
15646 (grub_ata_wait_busy): Removed function, updated all users to use
15647 `grub_ata_wait_status'.
15648 (grub_ata_wait_drq): Likewise.
15649 (grub_ata_cmd): New function.
15650 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
15651 error handling.
15652 (grub_ata_pio_write): Add error handling.
15653 (grub_atapi_identify): Likewise.
15654 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
15655 handling.
15656 (grub_ata_identify): Use `grub_ata_cmd' and improve error
15657 handling. Actually use the detected registers. Reorder the
15658 detection logic such that it is easier to read.
15659 (grub_ata_pciinit): Do not assign the same ID to each controller.
15660 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
15661 handling.
15662 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
15663
15664 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
15665
1fbc5e66 156662008-08-08 Marco Gerards <marco@gnu.org>
15667
15668 * NEWS: Update.
15669
819ce6c0 156702008-08-07 Bean <bean123ch@gmail.com>
15671
15672 * include/grub/x86_64/pci.h: New file.
15673
5c41d44d 156742008-08-07 Christian Franke <franke@computer.org>
15675
15676 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
15677 (TIMER2_GATE): Likewise.
15678 (grub_pit_wait): Add enable/disable of the timer2 gate
15679 bit of port 0x61. This fixes a possible infinite loop.
15680
5ebc275d 156812008-08-07 Bean <bean123ch@gmail.com>
15682
15683 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
15684 kern/i386/tsc.c and kern/i386/pit.c.
15685
15686 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
15687 x86_64 platform.
15688
15689 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
15690 <grub/i386/tsc.h>.
15691
15692 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
15693
e383b3d0 156942008-08-07 Bean <bean123ch@gmail.com>
15695
15696 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
15697
15698 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
15699
15700 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
15701 multiple inclusion. Add #include <grub/types.h>.
15702
1cbb58ac 157032008-08-06 Christian Franke <franke@computer.org>
15704
15705 * conf/common.rmk: Build and install `10_windows'.
15706 * util/grub.d/10_windows.in: New script.
15707
337f5a1e 157082008-08-06 Pavel Roskin <proski@gnu.org>
15709
15710 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
15711
057bc4ac 157122008-08-06 Robert Millan <rmh@aybabtu.com>
15713
15714 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
15715 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
15716
2b99f123 157172008-08-06 Bean <bean123ch@gmail.com>
15718
15719 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
15720 (grub_pxefs_fs_int): Remove dummy definition.
15721 (grub_pxefs_open): Use data->block_size to store the current block
15722 size setting.
15723 (grub_pxefs_read): Use block size stored in data->block_size. As the
15724 value of grub_pxe_blksize can be changed after the file is opened.
15725
9f0234cb 157262008-08-06 Bean <bean123ch@gmail.com>
15727
15728 * fs/i386/pc/pxe.c (curr_file): new variable.
15729 (grub_pxefs_open): Simply the handling of pxe file system. Don't
15730 require the dummy internal file system anymore.
15731 (grub_pxefs_read): Removed.
15732 (grub_pxefs_close): Likewise.
15733 (grub_pxefs_fs_int): Likewise.
15734 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
15735 connection when we switch file.
15736 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
15737
a55d42e0 157382008-08-06 Robert Millan <rmh@aybabtu.com>
15739
15740 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
15741 `halt.mod'.
15742 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
15743 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
15744
15745 * kern/i386/halt.c: New file.
15746 * kern/i386/reboot.c: Likewise.
15747 * include/grub/i386/reboot.h: Likewise.
15748 * include/grub/i386/halt.h: Likewise.
15749
15750 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
15751 Include `<grub/cpu/halt.h>'.
15752 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
15753 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
15754
15755 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
15756 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
15757 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
15758 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
15759 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
15760 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
15761 from here ...
15762 * include/grub/i386/at_keyboard.h: ... to here.
15763
24371d26 157642008-08-05 Robert Millan <rmh@aybabtu.com>
15765
15766 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
15767 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
15768 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
15769 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
15770 `kern/generic/millisleep.c'.
15771
15772 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
15773 instead of grub_get_rtc().
15774 (grub_tsc_init): Initialize `tsc_boot_time'.
15775
15776 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
15777 (grub_machine_init): Use grub_tsc_init() rather than
15778 installing an RTC-based handler via grub_install_get_time_ms().
15779
15780 * kern/i386/pit.c: New file.
15781 * include/grub/i386/pit.h: Likewise.
15782
9e7007b3 157832008-08-05 Bean <bean123ch@gmail.com>
15784
15785 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
15786
15787 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
15788 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
15789 (pxe_mod_SOURCES): New macro.
15790 (pxe_mod_CFLAGS): Likewise.
15791 (pxe_mod_LDFLAGS): Likewise.
15792 (pxecmd_mod_SOURCES): Likewise.
15793 (pxecmd_mod_CFLAGS): Likewise.
15794 (pxecmd_mod_LDFLAGS): Likewise.
15795
15796 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
15797 (grub_pxe_call): Likewise.
15798
15799 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
15800
15801 * commands/i386/pc/pxecmd.c: New file.
15802
9f0234cb 15803 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 15804
15805 * include/grub/i386/pc/pxe.h: Likewise.
15806
6977d49f 158072008-08-05 Bean <bean123ch@gmail.com>
15808
15809 * util/console.c (grub_console_cur_color): New variable.
15810 (grub_console_standard_color): Likewise.
15811 (grub_console_normal_color): Likewise.
15812 (grub_console_highlight_color): Likewise.
15813 (color_map): Likewise.
15814 (use_color): Likewise.
15815 (NUM_COLORS): New macro.
15816 (grub_ncurses_setcolorstate): Handle color properly.
15817 (grub_ncurses_setcolor): Don't change color here, just remember the
15818 settings, color will be set in grub_ncurses_setcolorstate.
15819 (grub_ncurses_getcolor): New function.
15820 (grub_ncurses_init): Initialize color pairs.
15821 (grub_ncurses_term): New member grub_ncurses_getcolor.
15822
9c2ff3ee 158232008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 15824
9c2ff3ee 15825 High resolution timer support. Implemented for x86 CPUs using TSC.
15826 Extracted generic grub_millisleep() so it's linked in only as needed.
15827 This requires a Pentium compatible CPU; if the RDTSC instruction is
15828 not supported, then it falls back on the generic grub_get_time_ms()
15829 implementation that uses the machine's RTC.
15830
15831 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
15832 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
15833 `kern/generic/millisleep.c'.
15834
15835 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
15836 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
15837
15838 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
15839 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
15840
15841 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
15842
15843 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15844 `kern/generic/millisleep.c'.
15845
15846 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
15847
15848 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
15849
15850 * kern/generic/rtc_get_time_ms.c: New file.
15851
15852 * kern/generic/millisleep.c: New file.
337f5a1e 15853
9c2ff3ee 15854 * kern/misc.c: Don't include
15855 <kern/time.h> anymore.
15856 (grub_millisleep_generic): Removed.
15857
15858 * commands/sleep.c (grub_interruptible_millisleep): Uses
15859 grub_get_time_ms() instead of grub_get_rtc().
15860
15861 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
15862 function.
15863 (grub_cpu_is_cpuid_supported): New inline function.
15864 (grub_cpu_is_tsc_supported): New inline function.
15865 (grub_tsc_init): New function prototype.
15866 (grub_tsc_get_time_ms): New function prototype.
15867
15868 * kern/i386/tsc.c (grub_get_time_ms): New file.
15869
15870 * include/grub/time.h: Include <grub/types.h.
15871 (grub_millisleep_generic): Removed.
15872 (grub_get_time_ms): New prototype.
15873 (grub_install_get_time_ms): New prototype.
15874 (grub_rtc_get_time_ms): New prototype.
15875
15876 * kern/time.c (grub_get_time_ms): New function.
15877 (grub_install_get_time_ms): New function.
15878
15879 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
15880 <grub/time.h> anymore.
15881 (grub_millisleep): Removed.
15882 (grub_machine_init): Call grub_tsc_init.
15883
15884 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
15885 get_time_ms() implementation.
15886
15887 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
15888 (ieee1275_get_time_ms): New function.
15889 (grub_machine_init): Install get_time_ms() implementation.
15890
15891 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
15892 (grub_machine_init): Call grub_tsc_init().
15893 (grub_millisleep): Removed.
bf06a93f 15894
9c2ff3ee 15895 * kern/ieee1275/init.c (grub_millisleep): Removed.
15896 (grub_machine_init): Install ieee1275_get_time_ms()
15897 implementation.
15898 (ieee1275_get_time_ms): New function.
15899 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
15900 real work.
15901
9ec92aaf 159022008-08-05 Marco Gerards <marco@gnu.org>
15903
15904 * disk/ata.c: Include <grub/pci.h>.
15905 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
15906 (grub_ata_initialize): Rewritten.
15907 (grub_ata_device_initialize): New function.
15908
8d23f507 159092008-08-04 Pavel Roskin <proski@gnu.org>
15910
15911 * kern/main.c: Include grub/mm.h.
15912
5e15ee3d 159132008-08-04 Robert Millan <rmh@aybabtu.com>
15914
15915 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
15916 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
15917 corruption problem).
15918
a9053f8f 159192008-08-04 Robert Millan <rmh@aybabtu.com>
15920
15921 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
15922 warnings introduced in my last commit.
15923
dd19c7d7 159242008-08-03 Robert Millan <rmh@aybabtu.com>
15925
15926 Make PCI available on all i386 architectures.
15927
15928 * include/grub/i386/pc/pci.h: Move from here ...
15929 * include/grub/i386/pci.h: ... to here.
15930
15931 * include/grub/i386/pc/pci.h: Remove.
15932 * include/grub/i386/efi/pci.h: Remove.
15933 * include/grub/x86_64/efi/pci.h: Remove.
15934
15935 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
15936 `<grub/cpu/pci.h>'.
15937
15938 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
15939 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
15940 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
15941
15942 * conf/i386-ieee1275.rmk: Likewise.
15943
e14a6184 159442008-08-03 Robert Millan <rmh@aybabtu.com>
15945
15946 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
15947 (grub_console_setcursor): Make it possible to set cursor off.
15948
52768e37 159492008-08-03 Robert Millan <rmh@aybabtu.com>
15950
15951 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
15952 of modules instead of assuming which platform provides what.
15953 * util/update-grub.in: Likewise.
15954
2d52f57f 159552008-08-03 Robert Millan <rmh@aybabtu.com>
15956
15957 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
15958 instead of `grub_install_dos_part' to determine whether a drive needs
15959 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 15960 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 15961
2a5cd121 159622008-08-02 Robert Millan <rmh@aybabtu.com>
15963
15964 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
15965
93808428 159662008-08-02 Robert Millan <rmh@aybabtu.com>
15967
15968 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
15969 of informational grub_dprintf() calls.
15970
3bd0a12a 159712008-08-02 Robert Millan <rmh@aybabtu.com>
15972
15973 * disk/memdisk.c (memdisk_size): Don't initialize.
15974 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
15975
15976 * include/grub/i386/pc/kernel.h
15977 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
15978 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
15979 (grub_memdisk_image_size, grub_arch_memdisk_addr)
15980 (grub_arch_memdisk_size): Remove.
15981
15982 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
15983 field (was only used to transfer a constant). Add `type' field to
15984 support multiple module types.
15985 (grub_module_iterate): New function.
15986
15987 * kern/device.c (grub_device_open): Do not hide error messages
15988 when grub_disk_open() fails. Use grub_print_error() instead.
15989
15990 * kern/i386/pc/init.c (grub_arch_modules_addr)
15991 (grub_arch_memdisk_size): Remove functions.
15992 (grub_arch_modules_addr): Return the module address in high memory
15993 (now that it isn't copied anymore).
15994
15995 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
15996 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
15997 decompression routine (grub_total_module_size already includes that
15998 now). Don't copy modules back to low memory.
15999
16000 * kern/main.c: Include `<grub/mm.h>'.
16001 (grub_load_modules): Split out (and use) ...
16002 (grub_module_iterate): ... this function, which iterates through
16003 module objects and runs a hook.
16004 Comment out grub_mm_init_region() call, as it would cause non-ELF
16005 modules to be overwritten.
16006
16007 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
16008 the memdisk image in its own region, make it part of the module list.
16009 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
16010 (main): Parse --memdisk|-m option, and pass user-provided path as
16011 parameter to generate_image().
16012 (add_segments): Pass `memdisk_path' down to load_modules().
16013 (load_modules): Embed memdisk image in module section when requested.
16014 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
16015 `header.type' instead of `header.offset'.
16016
16017 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
16018 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
16019 (memdisk_mod_LDFLAGS): New variables.
16020 * conf/i386-coreboot.rmk: Likewise.
16021 * conf/i386-ieee1275.rmk: Likewise.
16022
a927cc73 160232008-08-02 Robert Millan <rmh@aybabtu.com>
16024
16025 * loader/i386/pc/multiboot.c (playground, forward_relocator)
16026 (backward_relocator): New variables. Used to allocate and relocate
16027 the payload, respectively.
16028 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 16029 address, install the appropriate relocator code in each bound of
a927cc73 16030 the payload, and set the entry point such that
16031 grub_multiboot_real_boot() will jump to one of them.
16032
16033 * kern/i386/loader.S (grub_multiboot_payload_size)
16034 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16035 (grub_multiboot_payload_entry_offset): New variables.
16036 (grub_multiboot_real_boot): Set cpu context to what the relocator
16037 expects, and jump to the relocator instead of the payload.
16038
16039 * include/grub/i386/loader.h (grub_multiboot_payload_size)
16040 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16041 (grub_multiboot_payload_entry_offset): Export.
16042
b15d8a0c 160432008-08-01 Bean <bean123ch@gmail.com>
16044
16045 * normal/menu_entry.c (editor_getline): Don't return the original
16046 string as result, as it will be released by lexer once it has done
16047 using it.
16048
cdfb3d22 160492008-08-01 Robert Millan <rmh@aybabtu.com>
16050
16051 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
16052 within menuentries, not before them.
16053 util/grub.d/10_hurd.in: Likewise.
16054
9175e93d 160552008-08-01 Bean <bean123ch@gmail.com>
16056
16057 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
16058 (bufio_mod_SOURCES): New macro.
16059 (bufio_mod_CFLAGS): Likewise.
16060 (bufio_mod_LDFLAGS): Likewise.
16061
16062 * include/grub/bufio.h: New file.
16063
16064 * io/bufio.c: Likewise.
16065
16066 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
16067 (grub_video_reader_png): Use grub_buffile_open to open file.
16068
16069 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
16070 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
16071
16072 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
16073 (grub_video_reader_tga): Use grub_buffile_open to open file.
16074
16075 * font/manager.c: Include <grub/bufio.h>.
16076 (add_font): Use grub_buffile_open to open file.
16077
3d8383e7 160782008-07-31 Robert Millan <rmh@aybabtu.com>
16079
16080 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
16081 ELF segments, use a macro for arbitrarily accessing any of them instead
16082 of preparing a pointer that allows access to one at a time.
16083 (grub_multiboot_load_elf64): Likewise.
16084
16e641b6 160852008-07-31 Bean <bean123ch@gmail.com>
16086
16087 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
16088 GRUB_KERNEL_MACHINE_DATA_END.
16089
59198b72 160902008-07-30 Robert Millan <rmh@aybabtu.com>
16091
16092 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
16093 Increase from 0x50 to 0x60.
16094 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
16095 use UUIDs to identify the root drive for them. If that's not
16096 possible, abort.
16097 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
16098 check, for cross-disk installs.
16099
ae88bca3 161002008-07-30 Robert Millan <rmh@aybabtu.com>
16101
16102 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
16103 is non-empty, use it to set the `prefix' environment variable instead
16104 of the usual approach.
16105 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
16106 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
16107 environment variable instead of dummy make_install_device().
16108
16109 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
16110 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 16111 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 16112
16113 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
16114 New variable reference.
16115 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
16116 New macro. Defines offset of `grub_prefix' within startup.S (relative
16117 to `start').
16118 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
16119 section within startup.S (relative to `start').
16120 * include/grub/i386/coreboot/kernel.h: Likewise.
16121
16122 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
16123 Overwrite grub_prefix with its contents, at the beginning of the
16124 first segment.
16125 (main): Understand -p|--prefix.
16126
14f41dd1 161272008-07-30 Robert Millan <rmh@aybabtu.com>
16128
16129 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
16130
4ca049a3 161312008-07-30 Robert Millan <rmh@aybabtu.com>
16132
16133 * term/i386/pc/vga_text.c (grub_console_cls): Use
16134 grub_console_gotoxy() to go back to beginning of the screen.
16135 Found by Patrick Georgi <patrick.georgi@coresystems.de>
16136
2921d337 161372008-07-29 Christian Franke <franke@computer.org>
16138
16139 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
16140 Add conversion of emulated mount points on Cygwin.
16141
b609876d 161422008-07-29 Christian Franke <franke@computer.org>
16143
16144 * util/update-grub.in: Add a check for admin
16145 group on Cygwin.
16146 Remove old `grub.cfg.new' before creation.
16147 Add `-f' to `mv' to handle the different filesystem
16148 semantics of Windows.
16149
e93e4679 161502008-07-29 Bean <bean123ch@gmail.com>
16151
16152 * normal/main.c (get_line): Fix buffer overflow bug.
16153
41694fd0 161542008-07-28 Robert Millan <rmh@aybabtu.com>
16155
16156 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
16157 (struct grub_apple_header): New struct. Describes the layout of
16158 the partmap header.
16159 (apple_partition_map_iterate): Check the header magic as well as the
16160 partition magic (which was already being checked).
16161
cfd0b4e6 161622008-07-28 Pavel Roskin <proski@gnu.org>
16163
16164 * genmk.rb: Add a warning to the beginning of the output that
16165 it's a generated file and should not be edited.
16166
93cce016 161672008-07-28 Robert Millan <rmh@aybabtu.com>
16168
16169 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
16170 with the same number are found, just use issue a warning with
16171 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 16172
cd1df915 161732008-07-27 Robert Millan <rmh@aybabtu.com>
16174
16175 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
16176 information.
16177
b70a8427 161782008-07-27 Bean <bean123ch@gmail.com>
16179
16180 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
16181 (grub_fat_find_dir): Ignore case when comparing filename.
16182
8f5e379f 161832008-07-27 Bean <bean123ch@gmail.com>
16184
16185 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
16186 smallino, as it's more descriptive, and i8count can be confused with
16187 the other field count.
16188 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
16189 inode type.
16190
a85cd5a0 161912008-07-27 Bean <bean123ch@gmail.com>
16192
16193 * commands/crc.c: New file.
16194
16195 * lib/crc.c: Likewise.
16196
16197 * include/grub/lib/crc.h: Likewise.
16198
16199 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
16200
16201 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
16202 (hexdump): Move this function to ...
16203
16204 * lib/hexdump.c: ... here.
16205
16206 * include/grub/hexdump.h: Renamed to ...
16207
16208 * include/grub/lib/hexdump.h: ... this.
16209
16210 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
16211
16212 * util/grub-editenv.c: Likewise.
16213
16214 * include/envblk.h: Renamed to ...
16215
16216 * include/lib/envblk.h: ... this.
16217
16218 * util/envblk.c: Renamed to ...
16219
16220 * lib/envblk.c: ... this.
16221
16222 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
16223 lib/hexdump.c.
16224 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
16225 (pkglib_MODULES): Add crc.mod.
16226 (hexdump_mod_SOURCES): Add lib/hexdump.c.
16227 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
16228 (crc_mod_SOURCES): New macro.
16229 (crc_mod_CFLAGS): Likewise.
16230 (crc_mod_LDFLAGS): Likewise.
16231
16232 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
16233
16234 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16235
16236 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16237
16238 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16239
16240 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16241
c298def0 162422008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 16243
16244 * commands/help.c: Include <grub/term.h>.
16245 (TERM_WIDTH): Removed. Updated all users.
16246
cc349fb3 162472008-07-27 Pavel Roskin <proski@gnu.org>
16248
16249 * util/getroot.c (find_root_device): Rephrase a comment to avoid
16250 spurious warnings about a comment within a comment.
16251
9051607e 162522008-07-25 Robert Millan <rmh@aybabtu.com>
16253
16254 * util/getroot.c (find_root_device): Skip devices that match
16255 /dev/dm-[0-9]. This lets the real device be found for any type of
16256 abstraction (LVM, EVMS, RAID..).
16257 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
16258 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
16259 device is found first, find_root_device() will now skip it.
16260
01453bfc 162612008-07-24 Pavel Roskin <proski@gnu.org>
16262
16263 * include/grub/types.h: Use __builtin_bswap32() and
16264 __builtin_bswap64() with gcc 4.3 and newer.
16265
6af9849f 162662008-07-24 Christian Franke <franke@computer.org>
16267
3a0fa256 16268 * util/i386/pc/grub-install.in: If `--debug' is specified,
16269 pass `--verbose' to grub-setup.
16270 Abort script if make_system_path_relative_to_its_root() fails.
16271
7810e747 162722008-07-24 Bean <bean123ch@gmail.com>
16273
16274 * configure.ac: Fixed a bug caused by the previous cygwin patch,
16275 variable `target_platform' should be `platform'.
16276
42290e17 162772008-07-24 Bean <bean123ch@gmail.com>
16278
51cc5193 16279 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 16280 (grub_png_init_fixed_block): New function.
16281 (grub_png_decode_image_data): Handle fixed huffman code compression.
16282
2a8a80e4 162832008-07-24 Bean <bean123ch@gmail.com>
16284
16285 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
16286 (grub_pe2elf_SOURCES): New macro.
16287 (CLEANFILES): Add grub-pe2elf.
16288
16289 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
16290 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
16291 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
16292 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
16293 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
16294 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
16295 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
16296 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
16297 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
16298 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
16299 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
16300 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
16301 (GRUB_PE32_DT_FUNCTION): Likewise.
16302 (GRUB_PE32_REL_I386_DIR32): Likewise.
16303 (GRUB_PE32_REL_I386_REL32): Likewise.
16304 (grub_pe32_symbol): New structure.
16305 (grub_pe32_reloc): Likewise.
16306
16307 * util/grub-pe2elf.c: New file.
16308
16309 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
16310 start symbol in non pc platform.
16311
16312 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
16313
16314 The following patches are from Christian Franke.
16315
16316 * include/grub/dl.h: Remove .previous, gas supports this only
16317 for ELF format.
16318
16319 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
16320 Remove .type, gas supports this only for ELF format.
16321
16322 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
16323 nullbytes in symbol table. This fixes an infinite loop if table is
16324 zero filled.
16325
16326 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
16327 TARGET_IMG_LDFLAGS and EXEEXT.
16328
16329 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
16330 TARGET_IMG_LDFLAGS_AC.
16331 (grub_CHECK_STACK_ARG_PROBE): New function.
16332
16333 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
16334
16335 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
16336
16337 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
16338 to set TARGET_IMG_LD* accordingly.
16339 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
16340 Add call to grub_CHECK_STACK_ARG_PROBE.
16341 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
16342
16343 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
16344
16345 * genmk.rb: Add EXEEXT to CLEANFILES.
16346
12ccdb75 163472008-07-23 Robert Millan <rmh@aybabtu.com>
16348
16349 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
16350 define the codes for arrows and lines used for the menu).
16351 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
16352 as well.
16353
16354 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
16355 fonts, because the latter are too slow.
16356
18eeaf04 163572008-07-21 Bean <bean123ch@gmail.com>
16358
16359 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
16360 a20. Run keyboard test last, as it will cause macbook to halt.
16361
b095e2ad 163622008-07-18 Pavel Roskin <proski@gnu.org>
16363
16364 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
16365 load foreign architecture modules correctly anyway. Keep
16366 support for loading host architecture modules, whether we
16367 compile them or not.
16368
737feb35 163692008-07-17 Pavel Roskin <proski@gnu.org>
16370
3f4ce737 16371 * configure.ac: Use -m32 or -m64 regardless of whether we had to
16372 change target_cpu. The compiler default can mismatch target_cpu
16373 in any case.
16374
4ad2d049 16375 * disk/efi/efidisk.c: Fix format warnings on x86_64.
16376 * kern/efi/efi.c: Likewise.
16377
f6130a12 16378 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
16379 target compiler is functional.
16380 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
16381 are set up.
16382
58393a2d 16383 * configure.ac: Default to efi platform for x86_64-apple. Allow
16384 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
16385 adjustments from the rest, only do them if target is not
16386 explicitly given. Merge other adjustments with the final sanity
16387 check. Remove an extraneous check for supported CPU. Be
16388 specific which CPU and which platform is not supported.
16389
737feb35 16390 * configure.ac: Default to pc platform for x86_64.
16391
546f966a 163922008-07-17 Robert Millan <rmh@aybabtu.com>
16393
16394 Partial LinuxBIOS -> Coreboot rename.
16395
16396 * conf/i386-linuxbios.rmk: Renamed to ...
16397 * conf/i386-coreboot.rmk: ... this.
16398 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
16399 * configure.ac: Accept "coreboot" as input platform (but maintain
16400 compatibility with "linuxbios").
16401 * include/grub/i386/linuxbios: Renamed to ...
16402 * include/grub/i386/coreboot: ... this.
16403
20011694 164042008-07-17 Bean <bean123ch@gmail.com>
16405
16406 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 16407 (appleldr_mod_SOURCE): New variable.
20011694 16408 (appleldr_mod_CFLAGS): Likewise.
16409 (appleldr_mod_LDFLAGS): Likewise.
16410 (pci_mod_SOURCES): Likewise.
16411 (pci_mod_CFLAGS): Likewise.
16412 (pci_mod_LDFLAGS): Likewise.
16413 (lspci_mod_SOURCES): Likewise.
16414 (lspci_mod_CFLAGS): Likewise.
16415 (lspci_mod_LDFLAGS): Likewise.
16416
16417 * conf/x86_64-efi.rmk: New file.
16418
16419 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
16420 macro.
16421 (grub_efidisk_write): Likewise.
16422
16423 * include/efi/api.h (efi_call_0): New macro.
16424 (efi_call_1): Likewise.
16425 (efi_call_2): Likewise.
16426 (efi_call_3): Likewise.
16427 (efi_call_4): Likewise.
16428 (efi_call_5): Likewise.
16429 (efi_call_6): Likewise.
16430
16431 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
16432 grub_rescue_cmd_chainloader.
16433
16434 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
16435 (grub_pe32_optional_header): Change some fields based on i386 or
16436 x86_64 platform.
16437 (GRUB_PE32_PE32_MAGIC): Likewise.
16438
16439 * include/grub/efi/uga_draw.h: New file.
16440
16441 * include/grub/elf.h (STN_ABS): New constant.
16442 (R_X86_64_NONE): Relocation constant for x86_64.
16443 (R_X86_64_64): Likewise.
16444 (R_X86_64_PC32): Likewise.
16445 (R_X86_64_GOT32): Likewise.
16446 (R_X86_64_PLT32): Likewise.
16447 (R_X86_64_COPY): Likewise.
16448 (R_X86_64_GLOB_DAT): Likewise.
16449 (R_X86_64_JUMP_SLOT): Likewise.
16450 (R_X86_64_RELATIVE): Likewise.
16451 (R_X86_64_GOTPCREL): Likewise.
16452 (R_X86_64_32): Likewise.
16453 (R_X86_64_32S): Likewise.
16454 (R_X86_64_16): Likewise.
16455 (R_X86_64_PC16): Likewise.
16456 (R_X86_64_8): Likewise.
16457 (R_X86_64_PC8): Likewise.
16458
16459 * include/grub/i386/efi/pci.h: New file.
16460
16461 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
16462 Change it value based on platform.
16463 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
16464 (GRUB_E820_RAM): Likewise.
16465 (GRUB_E820_RESERVED): Likewise.
16466 (GRUB_E820_ACPI): Likewise.
16467 (GRUB_E820_NVS): Likewise.
16468 (GRUB_E820_EXEC_CODE): Likewise.
16469 (GRUB_E820_MAX_ENTRY): Likewise.
16470 (grub_e820_mmap): New structure.
16471 (linux_kernel_header): Change the efi field according to different
16472 kernel version, also field from linux_kernel_header.
16473
16474 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
16475
16476 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
16477 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
16478 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
16479 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
16480 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
16481 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
16482 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
16483 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
16484 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
16485 (GRUB_PCI_ADDR_IO_MASK): Likewise.
16486
16487 * include/grub/x86_64/efi/kernel.h: New file.
16488
16489 * include/grub/x86_64/efi/loader.h: Likewise.
16490
16491 * include/grub/x86_64/efi/machine.h: Likewise.
16492
16493 * include/grub/x86_64/efi/pci.h: Likewise.
16494
16495 * include/grub/x86_64/efi/time.h: Likewise.
16496
16497 * include/grub/x86_64/linux.h: Likewise.
16498
16499 * include/grub/x86_64/setjmp.h: Likewise.
16500
16501 * include/grub/x86_64/time.h: Likewise.
16502
16503 * include/grub/x86_64/types.h: Likewise.
16504
16505 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
16506 GRUB_TARGET_SIZEOF_VOID_P.
16507
16508 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
16509 (grub_efi_locate_handle): Likewise.
16510 (grub_efi_open_protocol): Likewise.
16511 (grub_efi_set_text_mode): Likewise.
16512 (grub_efi_stall): Likewise.
16513 (grub_exit): Likewise.
16514 (grub_reboot): Likewise.
16515 (grub_halt): Likewise.
16516 (grub_efi_exit_boot_services): Likewise.
16517 (grub_get_rtc): Likewise.
16518
16519 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
16520 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
16521 (grub_efi_allocate_pages): Wrap efi calls.
16522 (grub_efi_free_pages): Wrap efi calls.
16523 (grub_efi_get_memory_map): Wrap efi calls.
16524
16525 * kern/x86_64/dl.c: New file.
16526
16527 * kern/x86_64/efi/callwrap.S: Likewise.
16528
16529 * kern/x86_64/efi/startup.S: Likewise.
16530
16531 * loader/efi/appleloader.c: Likewise.
16532
16533 * loader/efi/chainloader.c (cmdline): New variable.
16534 (grub_chainloader_unload): Wrap efi calls.
16535 (grub_chainloader_boot): Likewise.
16536 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
16537 command line.
16538
16539 * loader/efi/chainloader_normal.c (chainloader_command):
16540 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
16541 command line.
16542
16543 * loader/i386/efi/linux.c (allocate_pages): Change allocation
16544 method.
16545 (grub_e820_add_region): New function.
16546 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
16547 booting.
16548 (grub_find_video_card): New function.
16549 (grub_linux_setup_video): New function.
16550 (grub_rescue_cmd_linux): Probe for video information.
16551
16552 * normal/x86_64/setjmp.S: New file.
16553
16554 * term/efi/console.c (map_char): New function.
16555 (grub_console_putchar): Map unicode char.
16556 (grub_console_checkkey): Wrap efi calls.
16557 (grub_console_getkey): Likewise.
16558 (grub_console_getwh): Likewise.
16559 (grub_console_gotoxy): Likewise.
16560 (grub_console_cls): Likewise.
16561 (grub_console_setcolorstate): Likewise.
16562 (grub_console_setcursor): Likewise.
16563
16564 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
16565
59652a20 165662008-07-16 Pavel Roskin <proski@gnu.org>
16567
ef294055 16568 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
16569 format strings.
16570
59652a20 16571 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
16572 pointer, not an integer. This fixes a warning and prevents
16573 precision loss on 64-bit systems.
16574 (relocate_addresses): Remove unneeded cast.
16575
afc3b5d7 165762008-07-15 Pavel Roskin <proski@gnu.org>
16577
506b2b3e 16578 * kern/i386/ieee1275/init.c: Include grub/cache.h.
16579
62ead89c 16580 * term/ieee1275/ofconsole.c: Disable code unused on i386.
16581
c4cd51d7 16582 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
16583 Fix comparison between signed and unsigned.
16584
0d3d8f28 16585 * include/grub/i386/ieee1275/console.h: Declare
16586 grub_console_init() and grub_console_fini().
16587
8804b286 16588 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
16589 It's empty and unused.
16590
ee01cf35 16591 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
16592 beginning to avoid warnings with some compilers.
16593
afc3b5d7 16594 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
16595 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
16596
e4e8eaa5 165972008-07-14 Pavel Roskin <proski@gnu.org>
16598
407aceb4 16599 * kern/env.c (grub_register_variable_hook): Don't copy empty
16600 string, it leaks memory. Pass "" to grub_env_set(), it should
16601 handle constant strings.
16602
e4e8eaa5 16603 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
16604 * commands/cmp.c (grub_cmd_cmp): Likewise.
16605 * kern/dl.c (grub_dl_flush_cache): Likewise.
16606 (grub_dl_load_core): Likewise.
16607 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
16608 (grub_elf64_load_phdrs): Likewise.
16609
d4e2dad3 166102008-07-13 Pavel Roskin <proski@gnu.org>
16611
16612 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
16613 between signed and unsigned.
16614 (LzmaEnc_Finish): Fix warning about an unused parameter.
16615
aa24b516 166162008-07-13 Bean <bean123ch@gmail.com>
16617
16618 * Makefile.in (enable_lzo): New rule.
16619
16620 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
16621
16622 * configure.ac (ENABLE_LZO): New option --enable-lzo.
16623
16624 * boot/i386/pc/lnxboot.S: #include <config.h>.
16625
16626 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 16627 its value according to the compression algorithm used, lzo or lzma.
aa24b516 16628
16629 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
16630 compression algorithm according to configure macro.
16631
16632 * kern/i386/pc/startup.S (codestart): Likewise.
16633
16634 * kern/i386/pc/lzma_decode.S: New file.
16635
16636 * include/grub/lib/LzFind.h: Likewise.
16637
16638 * include/grub/lib/LzHash.h: Likewise.
16639
16640 * include/grub/lib/LzmaDec.h: Likewise.
16641
16642 * include/grub/lib/LzmaEnc.h: Likewise.
16643
16644 * include/grub/lib/LzmaTypes.h: Likewise.
16645
16646 * lib/LzFind.c: Likewise.
16647
16648 * lib/LzmaDec.c: Likewise.
16649
16650 * lib/LzmaEnc.c: Likewise.
16651
4ae821ac 166522008-07-13 Bean <bean123ch@gmail.com>
16653
16654 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
16655 (grub_ext4_extent_header): New structure.
16656 (grub_ext4_extent): Likewise.
16657 (grub_ext4_extent_idx): Likewise.
16658 (grub_ext4_find_leaf): New function.
16659 (grub_ext2_read_block): Handle extents.
16660
9a745147 166612008-07-12 Robert Millan <rmh@aybabtu.com>
16662
16663 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
16664
d49a4cf6 166652008-07-11 Robert Millan <rmh@aybabtu.com>
16666
16667 * util/grub.d/40_custom.in: New file. Example on how to add custom
16668 entries to /etc/grub.d.
16669 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
16670 40_custom (implicitly, by merging all the grub.d rules).
16671
947414b4 166722008-07-11 Pavel Roskin <proski@gnu.org>
16673
0059cf6f 16674 * commands/read.c (grub_getline): Fix invalid memory access.
16675 Don't add newline to the variable value.
16676
947414b4 16677 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
16678 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
16679 (serial_hw_get_port): Check validity of the port number.
16680 (grub_cmd_serial): Check return value of serial_hw_get_port().
16681
62a02d00 166822008-07-07 Pavel Roskin <proski@gnu.org>
16683
16684 * boot/i386/pc/diskboot.S (notification_string): Replace
16685 "Loading kernel" with just "loading". This is shorter, less
16686 confusing and saves a few bytes for possible future changes.
16687
3e5581b0 166882008-07-05 Pavel Roskin <proski@gnu.org>
16689
ea387a48 16690 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
16691 size for ATAPI devices, they are undefined. Output sector
16692 number in decimal form.
16693
3e5581b0 16694 * disk/ata.c: Use named constants for status bits.
16695
fdecb8fd 166962008-07-04 Pavel Roskin <proski@gnu.org>
16697
bcd35b90 16698 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
16699 grub_addr_t before casting it to the void pointer to fix a
16700 warning. Non-addressable regions are discarded earlier.
16701 (grub_arch_modules_addr): Cast _end to grub_addr_t.
16702 * kern/i386/linuxbios/table.c: Include grub/misc.h.
16703 (check_signature): Don't shadow table_header.
16704 (grub_linuxbios_table_iterate): Cast numeric constants to
16705 grub_linuxbios_table_header_t.
16706 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
16707 grub_stop().
16708
af58ab3d 16709 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
16710 prevent warnings.
16711
1759aa57 16712 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
16713 pointer, which can cause warnings. Support 64-bit addresses.
16714
fdecb8fd 16715 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
16716 of sizeof(long). This fixes PowerPC image generation on x86_64.
16717
8516d2a8 167182008-07-04 Robert Millan <rmh@aybabtu.com>
16719
16720 This fixes a performance issue when pc & gpt partmap iterators
16721 didn't abort iteration even after our hook found what it was
fe987087 16722 looking for (often causing expensive probes of non-existent drives).
8516d2a8 16723
16724 Some callers relied on previous buggy behaviour, since they would
34c44600 16725 raise an error when their own hooks caused early abortion of its
8516d2a8 16726 iteration.
16727
16728 * kern/device.c (grub_device_open): Improve error message.
16729 * disk/lvm.c (grub_lvm_open): Likewise.
16730 * disk/raid.c (grub_raid_open): Likewise.
16731
16732 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
16733 when hook requests it, independently of grub_errno.
16734 (pc_partition_map_probe): Do not fail when find_func() caused
16735 early abortion of pc_partition_map_iterate().
16736
16737 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
16738 when hook requests it, independently of grub_errno.
16739 (gpt_partition_map_probe): Do not fail when find_func() caused
16740 early abortion of gpt_partition_map_iterate().
16741
16742 * kern/partition.c (grub_partition_iterate): Abort parent iteration
16743 when hook requests it, independently of grub_errno. Do not fail when
16744 part_map_iterate_hook() caused early abortion of p->iterate().
16745
16746 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
16747 when grub_partition_iterate() returned with non-zero.
16748
277d0de9 167492008-07-03 Pavel Roskin <proski@gnu.org>
16750
16751 * disk/ata.c (grub_ata_pio_write): Check status before writing,
16752 like we do in grub_ata_pio_read().
16753 (grub_ata_readwrite): Always write individual sectors. Fix the
16754 sector count for the remainder.
16755 (grub_ata_write): Enable writing to ATA devices. Correctly
16756 report error for ATAPI devices.
16757
d4c9b428 167582008-07-02 Pavel Roskin <proski@gnu.org>
16759
e43fc690 16760 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
16761 warning.
16762
f707af42 16763 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
16764 for every read sector, we already increment it for the whole
16765 batch. This fixes reading more than 256 sectors at once.
16766
11e16b15 16767 * util/grub-editenv.c (cmd_info): Cast argument to long
16768 explicitly. ptrdiff_t reduces to int on i386.
16769
cbabfdd4 16770 * util/grub-editenv.c (main): Be specific which parameter is
16771 missing.
16772
b8fbce0a 16773 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
16774 (memdisk): Make memdisk_orig_addr a pointer.
16775
c9c8e606 16776 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
16777 for file offsets, use grub_off_t instead. Fix printf format
16778 warnings.
16779
ca62e598 16780 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
16781 there. Real unexpected warnings should not drown in the noise
16782 about known problems.
16783
ce8d1766 16784 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
16785 grub_disk_addr_t for memory addresses.
16786
00c7a56a 16787 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
16788 explicitly to fix a warning.
16789
08d3ef09 16790 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
16791
cb71ba20 16792 * Makefile.in (MODULE_LDFLAGS): New variable.
16793 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
16794 the linker accepts --build-id=none.
16795 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
16796 MODULE_LDFLAGS.
16797 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
16798
d4c9b428 16799 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
16800 those in Linux XFS code. Provide a way to access 64-bit parent
16801 inode.
16802 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
16803 the end of struct grub_xfs_dir_header.
16804
d4156eee 168052008-07-02 Bean <bean123ch@gmail.com>
16806
16807 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
16808 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
16809 and GRUB_IEEE1275_FLAG_NO_ANSI.
16810
16811 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
16812 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
16813 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
16814
16815 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
16816 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
16817
16818 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
16819 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
16820
16821 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
16822 esc sequence on non ANSI terminal.
16823 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
16824
16825 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
16826 beginning of file.
16827
2270f77b 168282008-07-02 Bean <bean123ch@gmail.com>
16829
16830 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
16831 (grub_editenv_SOURCES): New variable.
16832 (pkglib_MODULES): Add loadenv.mod.
16833 (loadenv_mod_SOURCES): New variable.
16834 (loadenv_mod_CFLAGS): Likewise.
16835 (loadenv_mod_LDFLAGS): Likewise.
16836
16837 * include/grub/envblk.h: New file.
16838
16839 * util/envblk.c: New file.
16840
16841 * util/grub-editenv.c: New file.
16842
16843 * commands/loadenv.c: New file.
16844
0e9e51ec 168452008-07-01 Pavel Roskin <proski@gnu.org>
16846
d89b7634 16847 * include/multiboot2.h (struct multiboot_tag_module): Use char,
16848 not unsigned char. This fixes warnings and is consistent with
16849 other tags.
16850
bf1835b1 16851 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
16852
8222a04b 16853 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
16854
6a42d99d 16855 * term/tparm.c (analyze): Always set *popcount.
16856
10b159d1 16857 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
16858 cast to fix a warning.
16859
b8789f6c 16860 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
16861 cast to suppress a warning.
16862
29d7e38a 16863 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
16864 grub_fshelp_read_file() expects.
16865
f341f669 16866 * fs/fat.c: Fix UUID calculation on big-endian systems. We
16867 write uuid as a 32-bit value in CPU byte order, so declare and
16868 use it as such.
16869
0e9e51ec 16870 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
16871 long if the format specifier expects it.
16872 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
16873 * partmap/pc.c (pc_partition_map_iterate): Likewise.
16874 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
16875 long to fix a warning.
16876 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
16877 grub_dprintf() arguments to fix warnings.
16878
3aefa857 168792008-06-30 Pavel Roskin <proski@gnu.org>
16880
56c7668b 16881 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
16882 install_bsd_part immediately before core.img is embedded or
16883 modified on disk. This fixes core.img verification if core.img
16884 cannot be embedded.
16885
3aefa857 16886 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
16887 core_path to calculate the blocklist.
16888 Patch from Javier Martín <lordhabbit@gmail.com>
16889
5444088d 168902008-06-29 Robert Millan <rmh@aybabtu.com>
16891
16892 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
16893 block to disk block.
16894 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
16895 Patch from Niels Böhm <bitbucket@arcor.de>
16896
674835c8 168972008-06-29 Robert Millan <rmh@aybabtu.com>
16898
16899 * util/update-grub_lib.in (font_path): Search for fonts in
16900 /boot/grub first, which is more likely to be readable (we aren't
16901 deciding where fonts live, just looking for them).
16902
f527dbc8 169032008-06-26 Pavel Roskin <proski@gnu.org>
16904
6c2d8df6 16905 * util/biosdisk.c (read_device_map): Don't leave dead map
16906 entries for devices failing stat() check.
16907
f527dbc8 16908 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
16909 core_path_dev for the core.img path on the target device.
16910
aebe3d13 169112008-06-26 Robert Millan <rmh@aybabtu.com>
16912
16913 * disk/fs_uuid.c: New file.
16914 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
16915 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
16916 (fs_uuid_mod_LDFLAGS): New variables.
16917 * include/grub/disk.h (grub_disk_dev_id): Add
16918 `GRUB_DISK_DEVICE_UUID_ID'.
16919 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
16920 implement iterate().
16921
37aaf354 169222008-06-26 Robert Millan <rmh@aybabtu.com>
16923
16924 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
16925 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
16926 Linux image includes no initrd.
16927
25ff262a 169282008-06-21 Javier Martín <lordhabbit@gmail.com>
16929
16930 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
16931 call to resolve the core image location that effectively appended the
16932 name twice.
16933
76a2bd44 169342008-06-21 Robert Millan <rmh@aybabtu.com>
16935
16936 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
16937 call from here ...
16938
16939 * util/grub.d/10_hurd.in: ... to here ...
16940 * util/grub.d/10_linux.in: ... and here.
16941
650e1c79 169422008-06-19 Robert Millan <rmh@aybabtu.com>
16943
fe987087 16944 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 16945 after it has been set by grub_machine_set_prefix().
16946
6ce63911 169472008-06-19 Robert Millan <rmh@aybabtu.com>
16948
16949 * commands/search.c (search_label, search_fs_uuid, search_file): Print
16950 search result when not saving to variable, not the other way around.
16951 When saving to variable, abort iteration as soon as a match is found.
16952
73940cec 169532008-06-19 Robert Millan <rmh@aybabtu.com>
16954
16955 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
16956 check for partition that provides /boot/grub. Its logic is flawed,
16957 as it prevents prepare_grub_to_access_device() from being called
16958 multiple times.
16959
3c62a39d 169602008-06-19 Robert Millan <rmh@aybabtu.com>
16961
16962 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
16963 "insmod" command directly when abstraction modules are needed,
fe987087 16964 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 16965 since it had already been processed).
16966
47395a42 169672008-06-19 Pavel Roskin <proski@gnu.org>
16968
16969 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
16970 changed. This is needed in case GRUB_LIBDIR changes.
16971 * conf/i386-ieee1275.rmk: Likewise.
16972 * conf/i386-linuxbios.rmk: Likewise.
16973 * conf/i386-pc.rmk: Likewise.
16974 * conf/powerpc-ieee1275.rmk: Likewise.
16975
a145ac2d 169762008-06-18 Pavel Roskin <proski@gnu.org>
16977
16978 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
16979 kernel_elf_symlist.c to symlist.c for consistency with other
16980 architectures. Update all users.
16981 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16982
7847c51e 169832008-06-18 Robert Millan <rmh@aybabtu.com>
16984
16985 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
16986 it in prefix.
16987
16988 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
16989 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
16990 a RAID device, run setup() for all members independently on whether
16991 LVM abstraction is being used.
16992 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
16993 If grub-mkimage has set `*install_dos_part == -2', don't override this
16994 value.
16995 Perform *install_dos_part adjustments independently on whether
16996 we're embedding or not.
16997 Clarify error message when image is too big for embedding.
16998 Remove duplicate *install_dos_part stanza.
16999
b23e5644 170002008-06-17 Robert Millan <rmh@aybabtu.com>
17001
17002 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
17003 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
17004 variables.
17005 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
17006 values in grub_ofconsole_normal_color and
17007 grub_ofconsole_highlight_color (they're not directly related to
17008 background and foreground).
17009 (grub_ofconsole_setcolorstate): Extract background and foreground
17010 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
17011
0aac2f79 170122008-06-17 Robert Millan <rmh@aybabtu.com>
17013
17014 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
17015 /boot/grub for the check in last commit, not /boot (they could be
17016 different partitions).
17017
3cca7ef3 170182008-06-16 Robert Millan <rmh@aybabtu.com>
17019
17020 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
17021 asked to setup access for the same partition that provides /boot,
17022 don't bother using UUIDs since our root already has the value we
17023 want.
17024
347396d8 170252008-06-16 Robert Millan <rmh@aybabtu.com>
17026
17027 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
17028 I2O devices.
17029 Patch from Sven Mueller <sven@debian.org>.
17030
991477f8 170312008-06-16 Robert Millan <rmh@aybabtu.com>
17032
17033 * util/update-grub.in: Check for $EUID instead of $UID.
17034 Reported by Vincent Zweije.
17035
d31a32a1 170362008-06-16 Bean <bean123ch@gmail.com>
17037
fe987087 17038 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 17039 (grub_ext2_read_block): Likewise.
17040 (grub_ext2_read_inode): Likewise.
17041 (grub_ext2_mount): Likewise.
17042 (grub_ext2_close): Likewise.
17043 (grub_ext3_get_journal): Removed.
17044
fe987087 17045 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 17046 (grub_reiserfs_read_symlink): Likewise.
17047 (grub_reiserfs_mount): Likewise.
17048 (grub_reiserfs_open): Likewise.
17049 (grub_reiserfs_read): Likewise.
17050 (grub_reiserfs_close): Likewise.
17051 (grub_reiserfs_get_journal): Removed.
17052
17053 * fs/fshelp.c (grub_fshelp_read): Removed.
17054 (grub_fshelp_map_block): Likewise.
17055
17056 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
17057 (grub_fshelp_journal): Likewise.
17058 (grub_fshelp_read): Likewise.
17059 (grub_fshelp_map_block): Likewise.
17060
3540a760 170612008-06-16 Pavel Roskin <proski@gnu.org>
17062
17063 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
17064 floating point anymore.
17065 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
17066
95614c84 170672008-06-15 Pavel Roskin <proski@gnu.org>
17068
17069 * commands/ls.c (grub_ls_list_files): Use integer calculations
17070 for human readable format, avoid floating point use.
17071 * kern/misc.c (grub_ftoa): Remove.
17072 (grub_vsprintf): Remove floating point support.
17073
50465dd6 170742008-06-15 Robert Millan <rmh@aybabtu.com>
17075
fe6b695a 17076 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 17077 devices.
17078 Reported by Max Vozeler.
17079
a9207284 170802008-06-15 Robert Millan <rmh@aybabtu.com>
17081
17082 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
17083 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
17084 skipped later.
17085 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
17086 the beginning of the prefix.
17087
17088 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
17089 It is assumed that if we have a memdisk, grub-mkimage has set
17090 grub_prefix to include the "(memdisk)" drive in it.
17091
a7cbd45a 170922008-06-15 Robert Millan <rmh@aybabtu.com>
17093
17094 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
17095 Initialize keyboard controller after registering the terminal, so that
17096 grub_printf() can be called from grub_keyboard_controller_init().
17097
21cf716a 170982008-06-15 Robert Millan <rmh@aybabtu.com>
17099
17100 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
17101 extent-btree which is written as big endian on disk.
17102 Reported by Alain Greppin <al@chilibi.org>.
17103
23a64d8e 171042008-06-14 Robert Millan <rmh@aybabtu.com>
17105
17106 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
17107 * util/i386/pc/grub-install.in (modules): Likewise.
17108
d687651c 171092008-06-13 Pavel Roskin <proski@gnu.org>
17110
17111 * commands/ls.c (grub_ls_list_files): Fix format warnings.
17112
dfe9ddd4 171132008-06-13 Bean <bean123ch@gmail.com>
17114
17115 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
17116
17117 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
17118
17119 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
17120 to indicate sparse block.
17121
16ae7781 171222008-06-12 Pavel Roskin <proski@gnu.org>
17123
e6d1a308 17124 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
17125 number, grub_fshelp_read() does it for us.
17126
16ae7781 17127 * fs/fshelp.c (grub_fshelp_read): New function. Implement
17128 linear disk read with journal translation.
17129 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
17130 * include/grub/fshelp.h: Declare grub_fshelp_read().
17131
40fd3a2b 171322008-06-09 Pavel Roskin <proski@gnu.org>
17133
17134 * fs/minix.c (grub_minix_mount): Handle error reading
17135 superblock.
17136
f5679726 171372008-06-08 Robert Millan <rmh@aybabtu.com>
17138
17139 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
17140 don't append the RAID prefix afterwards.
17141 Reported by Clint Adams.
17142
ce525529 171432008-06-08 Robert Millan <rmh@aybabtu.com>
17144
17145 Based on description from Pavel:
17146 * kern/disk.c (grub_disk_check_range): Rename to ...
17147 (grub_disk_adjust_range): ... this. Add a comment explaining the
17148 tasks performed by this function.
17149
ad4936a0 171502008-06-08 Robert Millan <rmh@aybabtu.com>
17151
17152 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
17153 `num_serial' (for consistency with other variables).
17154 (struct grub_ntfs_data): Add `uuid' member.
17155 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
17156 (grub_ntfs_uuid): New function.
17157 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
17158
dc20b0f9 171592008-06-07 Pavel Roskin <proski@gnu.org>
17160
17161 * util/biosdisk.c (open_device): Revert last change to the
17162 function, it broke installation. The sector needs to be
17163 different dependent on which device is opened.
17164
c5e3cfba 171652008-06-06 Robert Millan <rmh@aybabtu.com>
17166
17167 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
17168 rest of GRUB, and breakage doesn't happen if its value were modified.
17169
17170 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17171 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
17172 a constant (same value).
17173 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
17174 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
17175
26a1f8c4 171762008-06-06 Robert Millan <rmh@aybabtu.com>
17177
17178 * util/biosdisk.c (open_device): Do not modify sector offset when
17179 accessing a partition. kern/disk.c already handles this for us.
17180
25d6b327 171812008-06-06 Robert Millan <rmh@aybabtu.com>
17182
17183 * util/grub-emu.c (grub_machine_init): Move code in this function from
17184 here ...
17185 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
17186 segfault in case grub_printf() is called).
17187
17188 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
17189 grub_probe. Update all users not to explicitly add it again.
17190 (grub_device): New variable; contains corresponding device for grubdir.
17191 (fs_module, partmap_module, devabstraction_module): Pass
17192 `--device ${grub_device}' to grub_probe to avoid traversing /dev
17193 every time.
17194
9ece62fb 171952008-06-05 Robert Millan <rmh@aybabtu.com>
17196
17197 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
17198 is found, print it (same layout as with labels).
17199
1ad36d37 172002008-06-04 Robert Millan <rmh@aybabtu.com>
17201
17202 * util/biosdisk.c (get_drive): Rename to ...
17203 (find_grub_drive): ... this. Update all users.
17204
17205 (get_os_disk): Rename to ...
17206 (convert_system_partition_to_system_disk): ... this. Update all users.
17207
17208 (find_drive): Rename to ...
17209 (find_system_device): ... this. Update all users.
17210
e6a30859 172112008-06-04 Robert Millan <rmh@aybabtu.com>
17212
17213 * util/biosdisk.c (get_os_disk): Handle IDA devices.
17214 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17215 (make_device_map): Likewise.
17216
00c108a4 172172008-06-01 Robert Millan <rmh@aybabtu.com>
17218
17219 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
17220 before dereferencing it.
17221
17222 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
17223 union with fat12/fat16-specific ones. Add some new fields, including
17224 `num_serial' for both versions.
17225 (struct grub_fat_data): Add `uuid' member.
17226 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
17227 names. Initialize `data->uuid' using `num_serial'.
17228 (grub_fat_uuid): New function.
17229 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
17230
17231 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
17232 (grub_reiserfs_uuid): New function.
17233 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
17234 member.
17235
17236 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
17237 (grub_xfs_uuid): New function.
17238 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
17239
1385c5bb 172402008-06-01 Robert Millan <rmh@aybabtu.com>
17241
17242 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
17243 code that is backward compatible with pre-uuid search command.
17244
c682dfd7 172452008-05-31 Robert Millan <rmh@aybabtu.com>
17246
17247 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
17248 floppies after everything else, to ensure floppy drive isn't accessed
17249 unnecessarily (patch from Bean).
17250
b7db5d47 172512008-05-31 Robert Millan <rmh@aybabtu.com>
17252
17253 * commands/search.c (search_label, search_fs_uuid, search_file): Do
17254 not print device names when we were asked to set a variable.
17255
6e037aa9 172562008-05-31 Robert Millan <rmh@aybabtu.com>
17257
17258 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
17259 using "cursor-on" and "cursor-off" commands (understood at least by
17260 the Open Firmware flavour on OLPC).
17261
41305bc8 172622008-05-31 Michael Gorven <michael@gorven.za.net>
17263
17264 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
17265 on and off sequences.
17266
69ba137e 172672008-05-31 Robert Millan <rmh@aybabtu.com>
17268
17269 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
17270 * util/update-grub.in: Likewise.
17271
520ae21b 172722008-05-30 Pavel Roskin <proski@gnu.org>
17273
17274 * util/biosdisk.c (linux_find_partition): Simplify logic and
17275 make the code more universal. Keep special processing for
17276 devfs, but use a simple rule for all other devices. If the
17277 device ends with a number, append 'p' and the partition number.
17278 Otherwise, append only the partition number.
17279
5786569b 172802008-05-30 Robert Millan <rmh@aybabtu.com>
17281
17282 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
17283 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
17284 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
17285 the `root' parameter to Linux.
17286
51500452 172872008-05-30 Robert Millan <rmh@aybabtu.com>
17288
17289 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
17290 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
17291 --fs_uuid with --fs-uuid.
17292 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
17293 all filesystems support them).
17294
811d3878 172952008-05-30 Robert Millan <rmh@aybabtu.com>
17296
17297 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 17298 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 17299
cab63c95 173002008-05-30 Robert Millan <rmh@aybabtu.com>
17301
17302 * util/grub.d/00_header.in: Remove obsolete comment referencing
17303 convert_system_path_to_grub_path().
17304 * util/update-grub.in: Likewise.
17305 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
17306 (convert_system_path_to_grub_path): Add a warning message explaining
17307 that this function is deprecated. Rely on is_path_readable_by_grub()
17308 for the readability checks.
17309 (font_path): Use is_path_readable_by_grub() for the readability
17310 check rather than convert_system_path_to_grub_path().
17311
972e2f7a 173122008-05-30 Robert Millan <rmh@aybabtu.com>
17313
17314 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
17315 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
17316 converting it first.
17317 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
17318 grub.cfg for access to font file, and afterwards call it again to set
17319 the root device.
17320
62191274 173212008-05-30 Robert Millan <rmh@aybabtu.com>
17322
17323 * commands/search.c (options): Add --fs_uuid option.
17324 (search_fs_uuid): New function.
17325 (grub_cmd_search): Fix --set argument passing.
17326 Use search_fs_uuid() when requested via --fs_uuid.
17327 (grub_search_init): Update help message.
17328 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
17329 and redeclare it as an array of 16-bit words.
17330 (grub_ext2_uuid): New function.
17331 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
17332 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
17333 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
17334 (GRUB_DEVICE_BOOT_UUID): New variables.
17335 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
17336 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
17337 whenever possible.
17338 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
17339 just assume `root' variable has the right value.
17340 * util/grub.d/10_linux.in: Likewise.
17341 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
17342 via PRINT_FS_UUID.
17343 (main): Recognise `-t fs_uuid' argument.
17344
01b73ec8 173452008-05-30 Robert Millan <rmh@aybabtu.com>
17346
17347 * util/biosdisk.c (map): Redefine structure to hold information
17348 about GRUB drive name.
fe6b695a 17349 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 17350 drive names.
17351 (call_hook): Remove.
17352 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
17353 member. Assume drive has partitions.
17354 (grub_util_biosdisk_open): Access device names via `.device' struct
17355 member.
17356 (open_device): Likewise.
17357 (find_drive): Likewise.
17358 (read_device_map): Adjust map[] usage to match the new struct
17359 definition. Don't check for duplicates (still possible, but not cheap
17360 anymore).
17361 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
17362 (make_device_name): Remove assumption of BIOS-like drive names.
17363
22f16596 173642008-05-30 Pavel Roskin <proski@gnu.org>
17365
17366 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
17367 compiling execute.c doesn't need grub_script.tab.h anymore.
17368 (normal/command.c_DEPENDENCIES): Likewise.
17369 (normal/function.c_DEPENDENCIES): Likewise.
17370 * conf/i386-ieee1275.rmk: Likewise.
17371 * conf/i386-linuxbios.rmk: Likewise.
17372 * conf/i386-pc.rmk: Likewise.
17373 * conf/powerpc-ieee1275.rmk: Likewise.
17374 * conf/sparc64-ieee1275.rmk: Likewise.
17375
528ad8f2 173762008-05-29 Pavel Roskin <proski@gnu.org>
17377
d1dff95d 17378 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
17379 when scanning metadata for volume group name.
17380
528ad8f2 17381 * include/grub/script.h: Don't include grub_script.tab.h. It's
17382 a generated file, which may only be included from the files with
17383 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
17384 use union YYSTYPE, as the later allows forward declaration.
17385 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
17386
47248e08 173872008-05-29 Robert Millan <rmh@aybabtu.com>
17388
17389 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
17390 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
17391 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
17392 (grub_console_checkkey): Add grub_dprintf() call to report unknown
17393 scan codes.
17394
ee632529 173952008-05-29 Robert Millan <rmh@aybabtu.com>
17396
17397 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
17398 control key combinations.
17399
eee96e08 174002008-05-29 Robert Millan <rmh@aybabtu.com>
17401
17402 * util/powerpc/ieee1275/grub-install.in: Move from here ...
17403 * util/ieee1275/grub-install.in: ... to here.
17404 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
17405 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
17406 (grub_install_SOURCES): Likewise.
17407
da9a6a94 174082008-05-29 Robert Millan <rmh@aybabtu.com>
17409
17410 * fs/affs.c: Update copyright year.
17411 * fs/ext2.c: Likewise.
17412 * fs/fshelp.c: Likewise.
17413 * fs/hfsplus.c: Likewise.
17414 * fs/ntfs.c: Likewise.
17415 * fs/xfs.c: Likewise.
17416 * include/grub/fshelp.h: Likewise.
17417 * util/grub-mkdevicemap.c: Likewise.
17418
12e65f3a 174192008-05-28 Robert Millan <rmh@aybabtu.com>
17420
17421 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
17422 might need to be fatfs to support some firmware implementations
17423 (e.g. OFW or EFI).
17424
23023641 174252008-05-28 Robert Millan <rmh@aybabtu.com>
17426
17427 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
17428 devices.
17429 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17430 (make_device_map): Likewise.
17431
887d2619 174322008-05-20 Bean <bean123ch@gmail.com>
17433
17434 * fs/fshelp.c (grub_fshelp_map_block): New function.
17435 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
17436 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
17437
17438 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
17439 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
17440 (grub_fshelp_journal): New structure.
17441 (grub_fshelp_map_block): New function prototype.
17442 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
17443 (grub_fshelp_map_block): Likewise.
17444
17445 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
17446 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
17447 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
17448 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
17449 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
17450 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
17451 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
17452 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
17453 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
17454 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
17455 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
17456 (grub_ext2_sblock): New members for journal support.
17457 (grub_ext3_journal_header): New structure.
17458 (grub_ext3_journal_revoke_header): Likewise.
17459 (grub_ext3_journal_block_tag): Likewise.
17460 (grub_ext3_journal_sblock): Likewise.
17461 (grub_fshelp_node): New members logfile and journal.
17462 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
17463 grub_fshelp_map_block to get real block number.
17464 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
17465 number.
17466 (grub_ext2_read_inode): Likewise.
17467 (grub_ext3_get_journal): New function.
17468 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
17469 (grub_ext2_close): Release memory used by journal.
17470
17471 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
17472 (REISERFS_MAGIC_DESC_BLOCK): New macro.
17473 (grub_reiserfs_transaction_header): Renamed to
17474 grub_reiserfs_description_block, replace field data with real_blocks.
17475 (grub_reiserfs_commit_block): New structure.
17476 (grub_reiserfs_data): New member journal.
17477 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
17478 number.
17479 (grub_reiserfs_read_symlink): Likewise.
17480 (grub_reiserfs_iterate_dir): Likewise.
17481 (grub_reiserfs_open): Likewise.
17482 (grub_reiserfs_read): Likewise.
17483 (grub_reiserfs_get_journal): New function.
17484 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
17485 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
17486 using grub_reiserfs_get_journal.
17487 (grub_reiserfs_close): Release memory used by journal.
17488
17489 * fs/affs.c (grub_affs_read_block): Change block type to
17490 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
17491
17492 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
17493
17494 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
17495
17496 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
17497
17498 * fs/udf.c (grub_udf_read_block): Change block type to
17499 grub_disk_addr_t. Use type cast to avoid warning.
17500
17501 * fs/xfs.c (grub_xfs_read_block): Likewise.
17502
b7c6bed5 175032008-05-16 Christian Franke <franke@computer.org>
17504
17505 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
17506 to ensure that break with ESC will always work.
17507 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
17508 Remove ESC from keyboard queue.
17509
eedf167f 175102008-05-16 Christian Franke <franke@computer.org>
17511
17512 * util/biosdisk.c: [__CYGWIN__] Add includes.
17513 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
17514 (get_os_disk): Move variable declarations to OS specific
17515 parts to avoid warning.
17516 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
17517 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
17518 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
17519 Cygwin.
17520 * util/getroot.c: [__CYGWIN__] Add includes.
17521 (strip_extra_slashes): Fix "/" case.
17522 [__CYGWIN__] (get_win32_path): New function.
17523 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
17524 [__CYGWIN__] (find_root_device): Disable.
17525 [__CYGWIN__] (get_bootsec_serial): New function.
17526 [__CYGWIN__] (find_cygwin_root_device): Likewise.
17527 [__linux__] (grub_guess_root_device): Add early returns to simplify
17528 structure.
17529 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
17530 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
17531 check for Linux only.
17532
a079699e 175332008-05-15 Bean <bean123ch@gmail.com>
17534
17535 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
17536 keyboard hang problem in apple's intel mac.
17537
1cf4059a 175382008-05-09 Robert Millan <rmh@aybabtu.com>
17539
17540 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
17541 devices.
17542 * util/grub-mkdevicemap.c (get_virtio_disk_name)
17543 (make_device_map): Likewise.
17544 Reported by Aurelien Jarno <aurel32@debian.org>
17545
ed759390 175462008-05-07 Ian Campbell <ijc@hellion.org.uk>
17547
17548 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
17549 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
17550 (make_device_map): Output entries for xvd type disks.
17551
b56c4eaa 175522008-05-07 Robert Millan <rmh@aybabtu.com>
17553
17554 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
17555 devices.
17556 * util/grub-mkdevicemap.c (get_cciss_disk_name)
17557 (make_device_map): Likewise.
17558 Reported by Roland Dreier <rdreier@cisco.com>
17559
7f8866ed 175602008-05-07 Robert Millan <rmh@aybabtu.com>
17561
17562 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
17563 grub_strstr() call. Correct a few mistakes in failure path handling.
17564
b0346e0f 175652008-05-06 Robert Millan <rmh@aybabtu.com>
17566
17567 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
17568 Do not print a trailing slash (therefore, the root directory is an
17569 empty string).
17570 (convert_system_path_to_grub_path): Do not remove trailing slash
17571 from make_system_path_relative_to_its_root() output.
17572
17573 * util/i386/pc/grub-install.in: Add trailing slash to output from
17574 make_system_path_relative_to_its_root().
17575
6cf12cbd 175762008-05-06 Robert Millan <rmh@aybabtu.com>
17577
17578 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
17579 ensures that output lines aren't intermangled with those sent to
17580 stderr (via grub_util_info()).
17581 * util/grub-probe.c (grub_refresh): Likewise.
17582 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
17583
0fbb3117 175842008-05-05 Christian Franke <franke@computer.org>
17585
17586 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
17587 Add Cygwin device names.
17588 (get_ide_disk_name) [__CYGWIN__]: Likewise.
17589 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
17590 (check_device): Return error instead of success on empty name.
17591 (make_device_map): Move label inside linux specific code to
17592 prevent compiler warning.
17593
8124cdb7 175942008-04-30 Robert Millan <rmh@aybabtu.com>
17595
17596 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
17597 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
17598 first boot option.
17599 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
17600
094c01d0 176012008-04-29 Robert Millan <rmh@aybabtu.com>
17602
17603 * docs/grub.cfg: New file (example GRUB configuration).
17604
f4b1fc02 176052008-04-26 Robert Millan <rmh@aybabtu.com>
17606
329ce2a5 17607 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
17608 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
17609 and `disk/ieee1275/nand.c'.
f4b1fc02 17610
25f16ec1 176112008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 17612
25f16ec1 17613 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
17614 i386-linuxbios.
17615
17616 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
17617 change the buffer size to 4096 for cdrom device.
17618
17619 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
17620 and nand.mod.
17621 (_linux_mod_SOURCES): New variable.
17622 (_linux_mod_CFLAGS): Likewise.
17623 (_linux_mod_LDFLAGS): Likewise.
17624 (linux_mod_SOURCES): Likewise.
17625 (linux_mod_CFLAGS): Likewise.
17626 (linux_mod_LDFLAGS): Likewise.
17627 (nand_mod_SOURCES): Likewise.
17628 (nand_mod_CFLAGS): Likewise.
17629 (nand_mod_LDFLAGS): Likewise.
17630
17631 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
17632 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
17633 type property. (nand device in olpc don't have this property)
17634
17635 * include/grub/disk.h (grub_disk_dev_id): New macro
17636 GRUB_DISK_DEVICE_NAND_ID.
17637
17638 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
17639 function prototype.
17640 (grub_rescue_cmd_initrd): Likewise.
17641
17642 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
17643 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
17644 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 17645
25f16ec1 17646 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
17647 GRUB_MACHINE_IEEE1275 is defined.
17648
17649 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
17650 Use NESTED_FUNC_ATTR attribute on the hook parameter.
17651
17652 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
17653 on nested function heap_init.
17654 (grub_upper_mem): New variable for i386-ieee1275.
17655 (grub_get_extended_memory): New function for i386-ieee1275.
17656 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
17657
17658 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
17659 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
17660 property.
f19dbdb7 17661
25f16ec1 17662 * loader/i386/ieee1275/linux.c: New file.
17663
17664 * loader/i386/ieee1275/linux_normal.c: New file.
17665
17666 * disk/ieee1275/nand.c: New file.
17667
e89d61e9 176682008-04-18 Thomas Schwinge <tschwinge@gnu.org>
17669
17670 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
17671 value.
17672 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
17673
602566f6 176742008-04-18 Robert Millan <rmh@aybabtu.com>
17675
17676 Restructures early code path on ieee1275 to unify grub_main() as
17677 the first C function that is executed in every platform.
17678
17679 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
17680 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
17681 cmain().
17682 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
17683 * kern/ieee1275/cmain.c (cmain): Rename to ...
17684 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
17685 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
17686 at the beginning.
17687
57490c2b 176882008-04-18 Robert Millan <rmh@aybabtu.com>
17689
17690 * util/update-grub.in: Fix syntax error when setting
17691 `GRUB_PRELOAD_MODULES'.
17692 Reported by Stephane Chazelas <stephane@artesyncp.com>
17693
1977517d 176942008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
17695
17696 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
17697 section into account, newer toolchains generate unique build ids
17698 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 17699 we want build ids to be preserved
1977517d 17700 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
17701 far from other sections don't cause the raw binary images grow
17702 size
17703
bfb1f1a2 177042008-04-15 Robert Millan <rmh@aybabtu.com>
17705
17706 * disk/lvm.c: Update copyright year.
17707 * kern/misc.c: Likewise.
17708
01979850 177092008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
17710
17711 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 17712 there is no memory left for physical volume name.
01979850 17713
0a1150e2 177142008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
17715
17716 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
17717 volume name mapping to support bigger than 9 character names properly.
17718
82ead3fe 177192008-04-13 Robert Millan <rmh@aybabtu.com>
17720
17721 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
17722 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
17723
e54a72f5 177242008-04-13 Christian Franke <franke@computer.org>
17725
17726 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
17727 to create a floppy emulation boot CD when non emulation mode
17728 does not work.
17729 Enable Joliet CD filesystem extension.
17730
9fe86034 177312008-04-13 Robert Millan <rmh@aybabtu.com>
17732
17733 * kern/misc.c (grub_strncat): Fix off-by-one error.
17734 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
17735
17736 * kern/env.c (grub_env_context_close): Clear current context, not
17737 previous one.
17738 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
17739
17740 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
17741
7ceeee39 177422008-04-13 Robert Millan <rmh@aybabtu.com>
17743
17744 Improve robustness when handling LVM.
17745
17746 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 17747 (and leave `*p' unmodified).
7ceeee39 17748 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
17749 through it.
17750 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
17751 iterating through it.
17752 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
17753 through it.
fe6b695a 17754 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 17755 when due) on each grub_lvm_getvalue() or grub_strstr() call.
17756 Don't assume `vg->pvs != NULL' when iterating through it.
17757
58cd3d85 177582008-04-13 Robert Millan <rmh@aybabtu.com>
17759
17760 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
17761 * genmk.rb (partmap): New variable.
17762 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
17763 (#{partmap}): New target rule.
17764 * genpartmaplist.sh: New file.
17765 * Makefile.in (pkglib_DATA): Add partmap.lst.
17766 (partmap.lst): New target rule.
17767 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
17768 modules (including all partition maps), instead of preloading them.
17769
78b51059 177702007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
17771
17772 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
17773 `linux-boot-prober' (if installed) to detect other operating
17774 systems which are installed on the computer and add them to
17775 the boot menu.
17776 * conf/common.rmk: Build and install 30_os-prober.
17777
a91627b4 177782008-04-12 Robert Millan <rmh@aybabtu.com>
17779
17780 * kern/powerpc/ieee1275/init.c: Move from here ...
17781 * kern/ieee1275/init.c: ... to here. Update all users.
17782
17783 * kern/powerpc/ieee1275/cmain.c: Move from here ...
17784 * kern/ieee1275/cmain.c: ... to here. Update all users.
17785
17786 * kern/powerpc/ieee1275/openfw.c: Move from here ...
17787 * kern/ieee1275/openfw.c: ... to here. Update all users.
17788
17789 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
17790 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
17791
322562ea 177922008-04-10 Pavel Roskin <proski@gnu.org>
17793
17794 * configure.ac: Always use "_cv_" in cache variables for
17795 compatibility with Autoconf 2.62.
17796
a02a73c5 177972008-04-07 Robert Millan <rmh@aybabtu.com>
17798
17799 Revert grub/machine/init.h addition by Pavel (since it breaks on
17800 i386-ieee1275 and others):
17801 * util/i386/pc/misc.c: Remove grub/machine/init.h.
17802 * util/powerpc/ieee1275/misc.c: Likewise.
17803
25c024b1 178042008-04-07 Robert Millan <rmh@aybabtu.com>
17805
17806 * util/grub-probe.c (probe): Improve error message.
17807
3cbd2f98 178082008-04-07 Robert Millan <rmh@aybabtu.com>
17809
17810 * util/biosdisk.c (read_device_map): Skip devices that don't exist
17811 (this prevents the presence of a bogus entry from ruining the whole
17812 thing).
17813
87a297bf 178142008-04-06 Pavel Roskin <proski@gnu.org>
17815
36747a62 17816 * util/biosdisk.c: Include grub/util/biosdisk.h.
17817 * util/grub-fstest.c (execute_command): Make static.
17818 * util/grub-mkdevicemap.c (check_device): Likewise.
17819 * util/i386/pc/misc.c: Include grub/machine/init.h.
17820 * util/powerpc/ieee1275/misc.c: Likewise.
17821 * util/lvm.c: Include grub/util/lvm.h.
17822 * util/misc.c: Include grub/kernel.h, grub/misc.h and
17823 grub/cache.h.
17824 * util/raid.c: Include grub/util/raid.h.
17825 (grub_util_getdiskname): Make static.
17826
87a297bf 17827 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
17828 grub_hostfs_fini(), as they are called from grub_init_all() and
17829 grub_fini_all() respectively. This fixes an infinite loop in
17830 grub-fstest due to double registration of hostfs.
17831 Reported by Christian Franke <Christian.Franke@t-online.de>
17832
f6ce7629 178332008-04-05 Pavel Roskin <proski@gnu.org>
17834
17835 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
17836 all 8 functions. Otherwise, probe function 0 only.
17837
070e49e4 178382008-04-04 Pavel Roskin <proski@gnu.org>
17839
8b088a4c 17840 * commands/lspci.c (grub_lspci_iter): Print the bus number
17841 correctly.
17842
4f657021 17843 * commands/lspci.c (grub_pci_classes): Fix typos.
17844 (grub_lspci_iter): Don't print func twice. Print vendor ID
17845 before device ID, as it's normally done.
17846
070e49e4 17847 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
17848 Fix signedness warnings.
17849 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
17850 Likewise.
17851 * util/ieee1275/get_disk_name.c: Include config.h so that
17852 _GNU_SOURCE is defined and getline() is declared. Mark an
17853 unused argument as such. Fix a signedness warning.
17854
ba7328dc 178552008-04-02 Pavel Roskin <proski@gnu.org>
17856
26887f22 17857 * genkernsyms.sh.in: Use more robust assignments for CC and
17858 srcdir. Quote srcdir.
17859 * gensymlist.sh.in: Likewise. Assert at the compile time that
17860 the symbol table is not empty.
17861
ba7328dc 17862 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
17863 * fs/cpio.c (grub_cpio_read): Likewise.
17864
0f582c6b 178652008-04-01 Pavel Roskin <proski@gnu.org>
17866
4b6e1995 17867 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
17868 * disk/host.c (grub_host_open): Likewise.
17869 * disk/loopback.c (grub_loopback_open): Likewise.
17870 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
17871 disk->id as in disk/host.c, not a multi-character constant.
17872
828a2768 17873 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
17874 later is obsolete, potentially dangerous and sets a bad example.
17875 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
17876 * util/misc.c (grub_util_get_image_size): Likewise.
17877
2bb4fb47 17878 * disk/loopback.c (options): Improve help for "--partitions".
17879
0f582c6b 17880 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
17881 options to align them with the short options, e.g. "echo -e".
17882
a33224e0 178832008-03-31 Bean <bean123ch@gmail.com>
17884
17885 * video/reader/png.c (grub_png_data): New member is_16bit and
17886 image_data.
17887 (grub_png_decode_image_header): Detect 16 bit png image.
17888 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
17889 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
17890 (grub_video_reader_png): Release memory occupied by image_data.
17891
17892 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
17893 4096 bytes.
17894 (grub_nfs_mount): Skip the test for sector per cluster.
17895
17896 * include/grub/ntfs.h (MAX_SPC): Removed.
17897
86cb4f54 178982008-03-31 Bean <bean123ch@gmail.com>
17899
17900 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
17901 (grub_probe_SOURCES): Add fs/afs.c.
17902 (grub_fstest_SOURCES): Likewise.
17903 (afs_mod_SOURCES): New variable.
17904 (afs_mod_CFLAGS): Likewise.
17905 (afs_mod_LDFLAGS): Likewise.
17906
17907 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
17908 (grub_emu_SOURCES): Likewise.
17909
17910 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17911
17912 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17913
17914 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
17915
17916 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17917
17918 * fs/afs.c: New file.
17919
17c74c21 179202008-03-30 Pavel Roskin <proski@gnu.org>
17921
4cb68e89 17922 * disk/host.c: Include grub/misc.h to fix a warning.
17923 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
17924 warnings about implicit declarations.
17925
8790bb04 17926 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
17927 variable.
17928 * include/grub/i386/loader.h: Change declaration of
17929 grub_linux_boot() to match what grub_loader_set() expects.
17930 * util/getroot.c (grub_guess_root_device): Return const char* to
17931 fix a warning.
17932 * util/grub-probe.c (probe): Fix a warning about uninitialized
17933 abstraction_name variable.
17934 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
17935 second argument as unused to fix a warning.
17936
9a3f3296 17937 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
17938 missing grub_error() call.
17939
0ecef90d 17940 * util/update-grub_lib.in: Define datarootdir, since Autoconf
17941 2.60 and newer uses it to define datadir.
17942
0bf6d401 17943 * commands/sleep.c: Fix warning about implicit declaration.
17944 * disk/memdisk.c: Likewise.
17945 * loader/aout.c: Likewise.
17946 * loader/i386/bsd_normal.c: Likewise.
17947 * util/grub-probe.c: Likewise.
17948
7cdacf97 17949 * commands/i386/cpuid.c (has_longmode): Make static.
17950 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
17951 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
17952
17c74c21 17953 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
17954 GDT. This is more robust, as %ds can change.
17955 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
17956 calling real_to_prot().
17957 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
17958
80a3e68b 179592008-03-28 Pavel Roskin <proski@gnu.org>
17960
17961 * kern/i386/pc/startup.S: Assert that uncompressed functions
17962 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
17963 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
17964 code, as they push parts of the code (error handlers) beyond
17965 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
17966 code as correctness and size.
17967
77bcd272 179682008-03-28 Pavel Roskin <proski@gnu.org>
17969
17970 * kern/i386/pc/startup.S
17971 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
17972 data block address to the real mode, keep offset minimal. This
17973 works around a bug in AWARD BIOS on old Athlon systems, which
17974 makes CD detection hang.
17975
c5dfd43b 179762008-03-26 Pavel Roskin <proski@gnu.org>
17977
17978 * normal/color.c (grub_parse_color_name_pair): Make `name' a
17979 const.
17980 * include/grub/normal.h: Add grub_parse_color_name_pair()
17981 declaration.
17982
bf962df2 179832008-03-24 Bean <bean123ch@gmail.com>
17984
17985 * disk/i386/pc/biosdisk.c (cd_start): Removed.
17986 (cd_count): Removed.
17987 (cd_drive): New variable.
17988 (grub_biosdisk_get_drive): Don't check for (cdN) device.
17989 (grub_biosdisk_call_hook): Likewise.
17990 (grub_biosdisk_iterate): Change cdrom detection method.
17991 (grub_biosdisk_open): Replace cd_start with cd_drive.
17992 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
17993 detect cdrom device.
17994
17995 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
17996 Removed.
17997 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
17998 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
17999 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
18000 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
18001 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
18002 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
18003 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
18004 (grub_biosdisk_cdrp): New structure.
18005 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
18006
18007 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
18008
18009 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
18010 device.
18011
18012 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
18013 New function.
18014
68e7fc7a 180152008-03-20 Robert Millan <rmh@aybabtu.com>
18016
18017 Remove 2 TiB limit in ata.mod.
18018 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
18019 (grub_ata_dumpinfo): Print sector count with 0x%llx.
18020 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
18021 grub_uint64_t instead of grub_uint32_t.
18022
38ad2cf5 180232008-03-05 Bean <bean123ch@gmail.com>
18024
18025 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
18026 (grub_multiboot): Set boot device.
18027
18028 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
18029
2b89344e 180302008-03-02 Bean <bean123ch@gmail.com>
18031
18032 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
18033 symlink_buffer.
18034
87a95d1f 180352008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
18036
18037 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
18038 texinfo.tex.
18039
18040 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
18041 modified.
18042
18043 * docs/fdl.texi: New file.
f19dbdb7 18044
87a95d1f 18045 * docs/mdate-sh: New file. Copied from gnulib.
18046 * docs/texinfo.tex: Likewise.
18047
18048 * config.guess: Updated from gnulib.
18049 * install-sh: Likewise.
18050
7dc15d8e 180512008-02-28 Robert Millan <rmh@aybabtu.com>
18052
18053 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
18054 (aout_mod_SOURCES): New variable.
18055 (aout_mod_CFLAGS): Likewise.
18056 (aout_mod_LDFLAGS): Likewise.
18057
18058 * conf/i386-ieee1275.rmk: Likewise.
18059
b00ab696 180602008-02-28 Robert Millan <rmh@aybabtu.com>
18061
18062 * util/update-grub.in: Reorganise terminal validity check. Accept
18063 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
18064 Based on suggestion by Franklin PIAT.
18065
79ca2d78 180662008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
18067
18068 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
18069 function.
18070 * util/getroot.c (grub_util_check_block_device): New function that
18071 returns the given argument if it is a block device and returns NULL else.
18072 * util/grub-probe.c (argument_is_device): New variable.
18073 (probe): Promote device_name from a variable to an argument. Receive
18074 device_name from grub_util_check_block_device() if path is NULL and from
18075 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 18076 (options): Introduce new parameter '-d, --device'.
79ca2d78 18077 (main): Add description of the new parameter to the help screen.
18078 Rename path variable to argument. Set argument_is_device if the '-d'
18079 option is given. Pass argument to probe() depending on
18080 argument_is_device.
18081
0d16e571 180822008-02-24 Bean <bean123ch@gmail.com>
18083
18084 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
18085 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
18086 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
18087 (GRUB_ISO9660_VOLDESC_PART): Likewise.
18088 (GRUB_ISO9660_VOLDESC_END): Likewise.
18089 (grub_iso9660_primary_voldesc): New member escape.
18090 (grub_iso9660_data): New member joliet.
18091 (grub_iso9660_convert_string): New function.
18092 (grub_iso9660_mount): Detect joliet extension.
18093 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
18094 (grub_iso9660_iso9660_label): Likewise.
18095
18096 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
18097 (grub_setup_SOURCES): Add fs/udf.c.
18098 (grub_fstest_SOURCES): Likewise.
18099 (udf_mod_SOURCES): New variable.
18100 (udf_mod_CFLAGS): Likewise.
18101 (udf_mod_LDFLAGS): Likewise.
18102
18103 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
18104 (grub_emu_SOURCES): Likewise.
18105
18106 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18107
18108 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18109
18110 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18111
18112 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18113
18114 * fs/udf.c: New file.
18115
8a594a17 181162008-02-24 Robert Millan <rmh@aybabtu.com>
18117
18118 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
18119 (normal/lexer.c_DEPENDENCIES): New variables.
18120 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18121 (normal/lexer.c_DEPENDENCIES): Likewise.
18122 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
18123 (normal/lexer.c_DEPENDENCIES): Likewise.
18124 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
18125 (normal/lexer.c_DEPENDENCIES): Likewise.
18126 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18127 (normal/lexer.c_DEPENDENCIES): Likewise.
18128 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18129 (normal/lexer.c_DEPENDENCIES): Likewise.
18130
2dc33c03 181312008-02-23 Robert Millan <rmh@aybabtu.com>
18132
18133 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
18134 since they were intended to be in hex. This didn't break previously
18135 because of a bug in gpt_partition_map_iterate() (see below).
18136
18137 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
18138 when checking the validity of GPT header.
18139 Remove `partno', since it always provides the same information as `i'.
18140
f6f4cfb0 181412008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
18142
18143 * include/grub/efi/time.h: Fix a wrong comment.
18144
79ff665f 181452008-02-19 Pavel Roskin <proski@gnu.org>
18146
18147 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
18148 message.
18149
d38e24c2 181502008-02-19 Bean <bean123ch@gmail.com>
18151
18152 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
18153 (aout_mod_SOURCES): New variable.
18154 (aout_mod_CFLAGS): Likewise.
18155 (aout_mod_LDFLAGS): Likewise.
18156 (_bsd_mod_SOURCES): New variable.
18157 (_bsd_mod_CFLAGS): Likewise.
18158 (_bsd_mod_LDFLAGS): Likewise.
18159 (bsd_mod_SOURCES): New variable.
18160 (bsd_mod_CFLAGS): Likewise.
18161 (bsd_mod_LDFLAGS): Likewise.
18162
18163 * include/grub/aout.h: New file.
18164
18165 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
18166
18167 * include/grub/i386/bsd.h: New file.
18168
18169 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
18170 to make it public.
18171
18172 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
18173 function is called, so that it's possible to change it inside the hook.
18174 (grub_elf64_load): Likewise.
18175 (grub_elf_file): Don't close the file if elf header is not found.
18176 (grub_elf_close): Close the file if grub_elf_file fails (The new
18177 grub_elf_file won't close it).
18178 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
18179 (grub_elf64_size): Likewise.
18180
18181 * kern/i386/loader.S (grub_unix_real_boot): New function.
18182
18183 * loader/aout.c: New file.
18184
18185 * loader/i386/bsd.c: New file.
18186
18187 * loader/i386/bsd_normal.c: New file.
18188
18189 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
18190
18191 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 18192 can test other formats.
d38e24c2 18193
b93bdb0f 181942008-02-19 Robert Millan <rmh@aybabtu.com>
18195
18196 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
18197 (grub_gpt_partition_type_empty): Redefine with macro from
18198 `<grub/gpt_partition.h>'.
18199 (gpt_partition_map_iterate): Adjust partition type comparison.
18200
18201 Export `entry' as partmap-specific `part.data' struct.
18202 (grub_gpt_header, grub_gpt_partentry): Move from here ...
18203
18204 * include/grub/gpt_partition.h (grub_gpt_header)
18205 (grub_gpt_partentry): ... to here (new file).
18206
18207 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
18208
18209 (grub_gpt_partition_type_bios_boot): New const variable, defined
18210 with macro from `<grub/gpt_partition.h>'.
18211
18212 (setup): Replace `first_start' with `embed_region', which keeps
18213 track of the embed region (and is partmap-agnostic).
18214
18215 Replace find_first_partition_start() with find_usable_region(),
18216 which finds a usable region for embedding using partmap-specific
18217 knowledge (supports PC/MSDOS and GPT).
18218
18219 Fix all assumptions that the embed region start at sector 1, using
18220 `embed_region.start' from now on. Similarly, use `embed_region.end'
18221 rather than `first_start' to calculate available size.
18222
18223 In grub_util_info() message, replace "into after the MBR" with an
18224 indication of the specific sector our embed region starts at.
18225
66cb40f6 182262008-02-19 Robert Millan <rmh@aybabtu.com>
18227
18228 * DISTLIST: Replace `commands/ieee1275/halt.c' and
18229 `commands/ieee1275/reboot.c' with `commands/halt.c' and
18230 `commands/reboot.c'.
18231 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18232 (halt_mod_SOURCES): Likewise.
18233 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18234 (halt_mod_SOURCES): Likewise.
18235
b7202015 182362008-02-17 Christian Franke <franke@computer.org>
18237
18238 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
18239
32b0fc49 182402008-02-17 Robert Millan <rmh@aybabtu.com>
18241
18242 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18243 set `first_start' to 0 for non-PC/MSDOS partition maps.
18244
aca63502 182452008-02-16 Robert Millan <rmh@aybabtu.com>
18246
18247 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18248 do not assume partition map is PC/MSDOS before performing checks that
18249 are specific to that layout.
18250
0de8be86 182512008-02-13 Robert Millan <rmh@aybabtu.com>
18252
18253 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
18254 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
18255 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
18256
c3db8364 182572008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
18258
18259 * configure.ac: Only a cosmetic change on the handling of
18260 -fno-stack-protector.
18261
f714229e 182622008-02-12 Alexandre Boeglin <alex@boeglin.org>
18263
c3db8364 18264 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
18265 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
18266 reboot.c.
f714229e 18267 (grub_install_SOURCES): Add halt.mod and reboot.mod.
18268 (halt_mod_SOURCES): New variable.
18269 (halt_mod_CFLAGS): Likewise.
18270 (halt_mod_LDFLAGS): Likewise.
18271 (reboot_mod_SOURCES): Likewise.
18272 (reboot_mod_CFLAGS): Likewise.
18273 (reboot_mod_LDFLAGS): Likewise.
18274
c3db8364 18275 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
18276 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
18277 reboot.c.
f714229e 18278 (halt_mod_SOURCES): Likewise.
18279 (reboot_mod_SOURCES): Likewise.
18280
c3db8364 18281 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
18282 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 18283 (reboot_mod_SOURCES): Likewise.
18284
18285 * commands/i386/pc/reboot.c: merge this file ...
18286
18287 * commands/ieee1275/reboot.c: ... and this file ...
18288
18289 * commands/reboot.c: ... to this file.
c3db8364 18290 Add some precompiler directive to include the correct header for
18291 each machine.
f714229e 18292
18293 * commands/ieee1275/halt.c: move this file ...
18294
18295 * commands/halt.c: ... to here.
c3db8364 18296 Add some precompiler directive to include the correct header for
18297 each machine.
f714229e 18298
18299 * include/grub/efi/efi.h (grub_reboot): New function declaration.
18300 (grub_halt): Likewise.
18301
18302 * kern/efi/efi.c (grub_reboot): New function.
18303 (grub_halt): Likewise.
18304
c74493e0 183052008-02-12 Robert Millan <rmh@aybabtu.com>
18306
18307 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
18308 /dev (like it is done for /dev/mapper). This doesn't provide support
18309 for EVMS, but at least it is now easy to identify the problem when it
18310 arises.
18311
d0db4b04 183122008-02-11 Robert Millan <rmh@aybabtu.com>
18313
18314 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
18315 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
18316 comparing it with -1, not 0.
18317
bf748642 183182008-02-10 Robert Millan <rmh@aybabtu.com>
18319
18320 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
18321 `disk/lvm.c'.
18322 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18323 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18324
18325 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
18326 `disk/lvm.c' to the end of the list.
18327 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18328 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18329
b5db202a 183302008-02-10 Robert Millan <rmh@aybabtu.com>
18331
18332 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
18333 grub_print_error() instead. This will let user know why we're entering
18334 rescue mode.
18335 Based on suggestions from Sam Morris.
18336
83abee31 183372008-02-10 Alexandre Boeglin <alex@boeglin.org>
18338
18339 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
18340 on remaining N args, instead of "--" arg N times.
18341
78d5a08b 183422008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
18343
18344 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
18345 (fill_with_default_glyph): Changed to use unknown_glyph for fill
18346 pattern for unknown glyphs.
18347
68807e5f 183482008-02-09 Robert Millan <rmh@aybabtu.com>
18349
18350 * configure.ac: Probe for `help2man'.
18351 * Makefile.in (builddir): New variable.
18352 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
18353 or otherwise add a few flags/options to it.
18354 (install-local): For every executable utility or script that is
18355 installed, invoke $(HELP2MAN) to install a manpage based on --help
18356 output.
18357
18358 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
18359 that it doesn't prevent --help from working in build tree.
18360
18361 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
18362 with `bug-grub@gnu.org'.
18363 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
18364 * util/update-grub.in (usage): New function.
18365 Implement proper argument check, with support for --help and --version
18366 (as well as existing -y).
18367
183682008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 18369
18370 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
18371 avoid overwriting previous output.
18372 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
18373
c1962162 183742008-02-09 Robert Millan <rmh@aybabtu.com>
18375
18376 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
18377 drawing the menu.
18378
3dac2e3f 183792008-02-09 Robert Millan <rmh@aybabtu.com>
18380
18381 * commands/sleep.c: New file.
18382 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
18383 (sleep_mod_SOURCES): New variable.
18384 (sleep_mod_CFLAGS): Likewise.
18385 (sleep_mod_LDFLAGS): Likewise.
18386
7a634e08 183872008-02-09 Robert Millan <rmh@aybabtu.com>
18388
18389 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
18390 situations in which we can deduce the RAID size and the superblock
18391 doesn't match it.
18392
b92f0c18 183932008-02-09 Robert Millan <rmh@aybabtu.com>
18394
18395 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
18396 and return a grub_diskmemberlist_t composed of LVM physical volumes.
18397 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
18398
18399 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
18400 and return a grub_diskmemberlist_t composed of physical array members.
18401 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
18402
18403 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
18404 prototype.
18405 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
18406 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
18407 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
18408
18409 * util/grub-probe.c (probe): Move partmap probing code from here ...
18410 (probe_partmap): ... to here.
18411 (probe): Use probe_partmap() once for the disk we're probing, and
18412 additionally, when such disk contains a memberlist() struct member,
18413 once for each disk that is contained in the structure returned by
18414 memberlist().
18415
91a4bf68 184162008-02-09 Robert Millan <rmh@aybabtu.com>
18417
18418 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
18419 environment variable to 'all' in order to obtain debug output from
18420 non-util/ code.
18421 * util/i386/pc/grub-setup.c (main): Likewise.
18422
a96f9caa 184232008-02-08 Robert Millan <rmh@aybabtu.com>
18424
18425 * disk/raid.c (grub_raid_scan_device): Check for
18426 `array->device[sb.this_disk.number]' rather than for
18427 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 18428 guaranteed to be accessible.
a96f9caa 18429
b37a9222 184302008-02-08 Robert Millan <rmh@aybabtu.com>
18431
18432 * disk/raid.c: Update copyright.
18433 * fs/cpio.c: Likewise.
18434 * include/grub/raid.h: Likewise.
18435 * loader/i386/pc/multiboot.c: Likewise.
18436 * util/hostfs.c: Likewise.
18437
5626aee1 184382008-02-08 Robert Millan <rmh@aybabtu.com>
18439
18440 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
18441 to a grub_disk_t array.
18442 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
18443 `device[x]'.
18444 (grub_raid_scan_device): Replace `device[x].name' accesses with
18445 `device[x]->name'. Simplify initialization of `array->device[x]'.
18446
554f0187 184472008-02-08 Robert Millan <rmh@aybabtu.com>
18448
18449 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
18450 grub_dprintf() calls.
18451 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
18452 error message.
18453
1ec8425d 184542008-02-07 Christian Franke <franke@computer.org>
18455
18456 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
18457 instead of fseek and ftell to support large files.
18458 (grub_hostfs_read): Likewise.
18459
f2156fda 184602008-02-07 Robert Millan <rmh@aybabtu.com>
18461
18462 Patch from Jeroen Dekkers.
18463 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 18464 failure, since successfully reading all array members might not be
f2156fda 18465 required.
18466
9216e0e7 184672008-02-06 Robert Millan <rmh@aybabtu.com>
18468
18469 * util/grub-probe.c (probe): Simplify partmap probing (with the
18470 assumption that the first word up to the underscore equals to
18471 the module name).
18472
b0dfd29a 184732008-02-06 Christian Franke <franke@computer.org>
18474
18475 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
18476 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
18477 last block of a cpio or tar stream.
18478 Check for "TRAILER!!!" instead of any empty data
18479 block to detect last block of a cpio stream.
18480 (grub_cpio_dir): Fix constness of variable np.
18481 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
18482 cpio or tar trailer is detected. This fixes a crash
18483 on open of a non existing file.
18484
c32865bf 184852008-02-05 Bean <bean123ch@gmail.com>
18486
18487 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
18488 address of entry.
18489 (grub_multiboot_load_elf64): Likewise.
18490 (grub_multiboot): Initialize mbi structure.
18491
18492 * util/grub-fstest.c: Don't include unused header file script.h.
18493
fe6b695a 18494 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 18495 of file.
18496 (grub_fstest_SOURCES): Likewise.
18497
409480b7 184982008-02-05 Robert Millan <rmh@aybabtu.com>
18499
18500 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
18501 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
18502 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
18503 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
18504
18505 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
18506 (translation_table): Replace hardcoded values with macros
18507 provided by `<grub/term.h>'.
18508
18509 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
18510 (keyboard_map): Correct/add a few values, with macros provided
18511 by `<grub/term.h>'.
18512 (keyboard_map_shift): Zero values that don't differ from their
18513 `keyboard_map' equivalents.
18514 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
18515 Discard the second scan code that is always sent by Caps lock.
18516 Only use `keyboard_map_shift' when it provides a non-zero value,
18517 otherwise fallback to `keyboard_map'.
18518
99fadbaa 185192008-02-04 Bean <bean123ch@gmail.com>
18520
18521 * Makefile.in (enable_grub_fstest): New variable.
18522
18523 * conf/common.rmk (grub_fstest_init.lst): New rule.
18524 (grub_fstest_init.h): Likewise.
18525 (grub_fstest_init.c): Likewise.
18526 (util/grub-fstest.c_DEPENDENCIES): New variable.
18527 (grub_fstest_SOURCES): Likewise.
18528
18529 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
18530
18531 * util/grub-fstest.c: New file.
18532
bf567c50 185332008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18534
18535 Make grub-setup handle a separate root device.
f19dbdb7 18536
bf567c50 18537 * util/i386/pc/grub-setup.c (setup): Always open the root device,
18538 so that the root device can be compared with the destination
18539 device.
18540 When embedding the core image, if the root and destination devices
18541 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
18542 0xFF.
18543 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 18544
9be6b98b 185452008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18546
18547 Add support for having a grub directory in a different drive. This
18548 is still only the data handling part.
f19dbdb7 18549
9be6b98b 18550 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
18551 (codestart): Save %dh in GRUB_ROOT_DRIVE.
18552 (grub_root_drive): New variable.
18553
18554 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
18555 instead of GRUB_BOOT_DRIVE to construct a device name. Set
18556 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
18557 as it was.
18558
18559 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
18560
18561 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
18562 macro.
18563 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
18564
18565 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
18566 is bogus, because PXE booting does not specify any drive
18567 correctly.
18568
18569 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
18570 am not sure if this is really correct.
18571
18572 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
18573 is always identical to the boot drive when booting from a CD.
18574
18575 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
18576 longer.
18577 (root_drive): New variable.
18578 (real_start): Unconditionally set %dh to ROOT_DRIVE.
18579 (setup_sectors): Push %dx right after popping it, because %dh will
18580 be modified later.
18581 (copy_buffer): Restore %dx.
18582
e0ca0677 185832008-02-03 Robert Millan <rmh@aybabtu.com>
18584
18585 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
18586 use `cdboot.img' for cdrom images.
18587
3b3f6629 185882008-02-03 Robert Millan <rmh@aybabtu.com>
18589
18590 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
18591 only setup gfxterm when `font' command has succeeded.
18592
d42b3672 185932008-02-03 Robert Millan <rmh@aybabtu.com>
18594
18595 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
18596 (grub_rescue_cmd_multiboot_loader)
18597 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
18598
fa370ea6 185992008-02-03 Pavel Roskin <proski@gnu.org>
18600
e0c5dacb 18601 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 18602 %edx and %esi from stack only after grub_gate_a20() is called.
18603 grub_gate_a20() clobbers %edx.
18604
f2a76e1d 186052008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18606
18607 * configure.ac (AC_INIT): Bumped to 1.96.
18608
18609 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
18610 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
18611 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
18612 video/readers/png.c.
18613
90fd32d1 186142008-02-03 Bean <bean123ch@gmail.com>
9be665dd 18615
18616 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
18617 (cdboot_img_SOURCES): New variable.
18618 (cdboot_img_ASFLAGS): New variable.
18619 (cdboot_img_LDFLAGS): New variable.
18620
18621 * boot/i386/pc/cdboot.S: New file.
18622
18623 * disk/i386/pc/biosdisk.c (cd_start): New variable.
18624 (cd_count): Likewise.
18625 (grub_biosdisk_get_drive): Add support for cd device.
18626 (grub_biosdisk_call_hook): Likewise.
18627 (grub_biosdisk_iterate): Likewise.
18628 (grub_biosdisk_open): Likewise.
18629 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
18630 (grub_biosdisk_rw): Support reading from cd device.
18631 (GRUB_MOD_INIT): Iterate cd devices.
18632
18633 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
18634 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
18635 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
18636
18637 * kern/i386/pc/init.c (make_install_device): Check for cd device.
18638
4020aa53 186392008-02-02 Robert Millan <rmh@aybabtu.com>
18640
18641 * commands/read.c: New file.
18642 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
18643 (read_mod_SOURCES): New variable.
18644 (read_mod_CFLAGS): Likewise.
18645 (read_mod_LDFLAGS): Likewise.
18646
e03a1132 186472008-02-02 Robert Millan <rmh@aybabtu.com>
18648
18649 * normal/main.c (grub_normal_execute): Check for `menu->size' when
18650 determining whether menu has to be displayed.
18651
58c69220 186522008-02-02 Marco Gerards <marco@gnu.org>
18653
18654 * bus/pci.c: New file.
18655
18656 * include/grub/pci.h: Likewise.
18657
18658 * include/grub/i386/pc/pci.h: Likewise.
18659
18660 * commands/lspci.c: Likewise.
18661
18662 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
18663 `lspci.mod'.
18664 (pci_mod_SOURCES): New variable.
18665 (pci_mod_CFLAGS): Likewise.
18666 (pci_mod_LDFLAGS): Likewise.
18667 (lspci_mod_SOURCES): Likewise.
18668 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 18669 (lspci_mod_LDFLAGS): Likewise.
58c69220 18670
c004e1b4 186712008-02-02 Bean <bean123ch@gmail.com>
18672
18673 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
18674 (grub_ufs_get_file_block): Fix indirect block calculation problem.
18675
18676 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
18677 (grub_xfs_btree_node): New structure.
18678 (grub_xfs_btree_root): New structure.
18679 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
18680 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
18681 (GRUB_XFS_EXTENT_BLOCK): Likewise.
18682 (GRUB_XFS_EXTENT_SIZE): Likewise.
18683 (grub_xfs_read_block): Support btree format type.
18684 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
18685 Use directory block as basic unit.
18686
18687 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
18688
18689 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
18690 __attribute__ ((__regparm__ (1))).
18691
f95562bf 186922008-02-01 Robert Millan <rmh@aybabtu.com>
18693
18694 Correct a mistake in previous commit.
18695
18696 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
18697 top.
18698 (normal/command.c_DEPENDENCIES): New variable.
18699
7d31f41f 187002008-02-01 Robert Millan <rmh@aybabtu.com>
18701
18702 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
18703 top.
18704 (normal/command.c_DEPENDENCIES): New variable.
18705 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
18706 * conf/i386-ieee1275.rmk: Likewise.
18707 * conf/i386-linuxbios.rmk: Likewise.
18708 * conf/i386-pc.rmk: Likewise.
18709 * conf/sparc64-ieee1275.rmk: Likewise.
18710 * conf/powerpc-ieee1275.rmk: Likewise.
18711 (grub_emu_SOURCES): Add `fs/fshelp.c'.
18712
18713 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
18714
60b6be74 187152008-02-01 Robert Millan <rmh@aybabtu.com>
18716
18717 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
18718 call at beginning of function.
18719
078522ab 187202008-01-31 Pavel Roskin <proski@gnu.org>
18721
18722 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 18723 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
18724 (grub_mkrescue_SOURCES): Likewise.
078522ab 18725 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
18726
ccaa8a5f 187272008-01-30 Robert Millan <rmh@aybabtu.com>
18728
18729 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
18730 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
18731 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
18732 (grub_probe_SOURCES): ... to here.
18733
18734 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
18735 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
18736 * conf/i386-ieee1275.rmk: Likewise.
18737 * conf/i386-linuxbios.rmk: Likewise.
18738 * conf/powerpc-ieee1275.rmk: Likewise.
18739
ae5a9cd7 187402008-01-30 Tristan Gingold <gingold@free.fr>
18741
18742 * kern/rescue.c: Silently accept empty lines.
18743
70bc2ef2 187442008-01-29 Bean <bean123ch@gmail.com>
18745
18746 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
18747 (real_code_2): Code cleanup and change comment style.
18748 (move_memory): Avoid using 32-bit address mode.
18749
6a4d50ea 187502008-01-29 Bean <bean123ch@gmail.com>
18751
18752 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
18753 (png_mod_SOURCES): New variable.
18754 (png_mod_CFLAGS): Likewise.
18755 (png_mod_LDFLAGS): Likewise.
18756
18757 * video/readers/png.c: New file.
18758
11cc30ac 187592008-01-28 Robert Millan <rmh@aybabtu.com>
18760
18761 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
18762 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
18763 `ifndef GRUB_MOD_GAP' hack.
18764 * util/elf/grub-mkimage.c (add_segments): Likewise.
18765
3abc589f 187662008-01-27 Robert Millan <rmh@aybabtu.com>
18767
18768 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
18769 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 18770 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 18771
e1907778 187722008-01-27 Robert Millan <rmh@aybabtu.com>
18773
18774 Get grub-emu to build again (including parallel builds).
18775
18776 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
18777 Split into ...
18778 (util/grub-emu.c_DEPENDENCIES): ... this, ...
18779 (normal/execute.c_DEPENDENCIES): ... this, ...
18780 (grub-emu_DEPENDENCIES): ... and this.
18781
18782 * conf/i386-efi.rmk: Likewise.
18783 * conf/i386-linuxbios.rmk: Likewise.
18784 * conf/i386-ieee1275.rmk: Likewise.
18785 * conf/powerpc-ieee1275.rmk: Likewise.
18786 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
18787
2216b101 187882008-01-27 Robert Millan <rmh@aybabtu.com>
18789
18790 * NEWS: Add a few items.
18791
f75172d9 187922008-01-27 Robert Millan <rmh@aybabtu.com>
18793
18794 Fix parallel builds with grub-emu. Based on earlier commit for
18795 grub-probe and grub-setup.
18796
18797 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18798 (util/grub-emu.c_DEPENDENCIES): ... this.
18799 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18800 (util/grub-emu.c_DEPENDENCIES): ... this.
18801 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18802 (util/grub-emu.c_DEPENDENCIES): ... this.
18803 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18804 (util/grub-emu.c_DEPENDENCIES): ... this.
18805 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18806 (util/grub-emu.c_DEPENDENCIES): ... this.
18807
3f51de77 188082008-01-27 Pavel Roskin <proski@gnu.org>
18809
18810 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
18811 to create a gap between _end and the modules added to the image
18812 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
18813 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
18814 * util/elf/grub-mkimage.c (add_segments): Likewise.
18815
2033f53e 188162008-01-26 Pavel Roskin <proski@gnu.org>
18817
18818 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
18819 just return an error.
18820
22da1f6f 188212008-01-26 Bean <bean123ch@gmail.com>
18822
18823 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
18824 (grub_reiserfs_get_item): Save offset of the next item.
18825 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
18826
2a9525e6 188272008-01-25 Robert Millan <rmh@aybabtu.com>
18828
18829 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
18830 make all filesystem sources appear together (possibly fixing omissions
18831 while at it).
18832 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18833 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18834 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18835 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18836
18837 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
18838 add `kern/file.c'.
18839 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
18840 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
18841 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
18842 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
18843
18844 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
18845 (probe): Add a sanity check to make sure of our ability to read
18846 requested files when probing for filesystem type.
18847
18848 * genmk.rb: Update copyright year (2007).
18849
18850 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
18851 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
18852 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
18853 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
18854 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
18855 : Remove function prototypes.
18856
b95f71b5 188572008-01-25 Robert Millan <rmh@aybabtu.com>
18858
18859 Revert my previous commits (based on wrong assumption of how grub_errno
18860 works).
18861
fe6b695a 18862 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 18863 * kern/file.c (grub_file_open): Likewise.
18864
d08bbb49 188652008-01-24 Pavel Roskin <proski@gnu.org>
18866
18867 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
18868 that hang if GRUB tries to setup colors.
18869 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
18870 colors for firmwares that don't support it.
18871 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
18872 Recognize Open Hack'Ware, set flags to work around its
18873 limitations.
18874
605e36ed 188752008-01-24 Robert Millan <rmh@aybabtu.com>
18876
18877 * kern/file.c (grub_file_open): Do not account previous failures of
18878 unrelated functions when grub_errno is checked for.
18879 Reported by Oleg Strikov.
18880
bac332a1 188812008-01-24 Bean <bean123ch@gmail.com>
18882
18883 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
18884 (grub_ufs_sblock): New member volume name.
18885 (grub_ufs_find_file): Fix string copy bug.
18886 (grub_ufs_label): Implement this function properly.
18887
18888 * fs/hfs.c (grub_hfs_cnid_type): New enum.
18889 (grub_hfs_iterate_records): Use the correct file number for extents
18890 and catalog file. Fix problem in next index calculation.
18891 (grub_hfs_find_node): Replace recursive function call with loop.
18892 (grub_hfs_iterate_dir): Replace recursive function call with loop.
18893
15c80c09 188942008-01-23 Robert Millan <rmh@aybabtu.com>
18895
18896 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
18897 `<grub/symbol.h>' and `<grub/multiboot.h>'.
18898 (grub_multiboot2_real_boot): New function prototype.
18899
18900 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
18901 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
18902
18903 * kern/i386/ieee1275/init.c (grub_os_area_addr)
18904 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
18905
305338fd 189062008-01-23 Robert Millan <rmh@aybabtu.com>
18907
18908 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
18909 #ifdef'ed out grub_printf().
18910
3ea52685 189112008-01-23 Robert Millan <rmh@aybabtu.com>
18912
18913 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
18914 grub_dprintf calls, since they make "debug=all" mode unusable.
18915 (grub_console_checkkey): Likewise.
18916
5882ae4b 189172008-01-23 Robert Millan <rmh@aybabtu.com>
18918
18919 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
18920 `term/i386/pc/at_keyboard.c'.
18921 (pkglib_MODULES): Add `serial.mod'.
18922 (serial_mod_SOURCES): New variable.
18923 (serial_mod_CFLAGS): Likewise.
18924 (serial_mod_LDFLAGS): Likewise.
18925
18926 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
18927 `<grub/powerpc/ieee1275/console.h>'.
18928 (grub_keyboard_controller_init): New function prototype.
18929 (grub_console_checkkey): Likewise.
18930 (grub_console_getkey): Likewise.
18931
18932 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
18933 keyboard on i386.
18934
18935 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
18936 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
18937
06ab5303 189382008-01-23 Robert Millan <rmh@aybabtu.com>
18939
18940 * kern/i386/pc/init.c (make_install_device): When memdisk image is
18941 present, "(memdisk)/boot/grub" becomes the default prefix.
18942
18943 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
18944 a memdisk tarball with all the modules. Add --overlay=DIR option that
18945 allows users to overlay additional files into the image.
18946
dbb475a4 189472008-01-23 Robert Millan <rmh@aybabtu.com>
18948
18949 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
18950 and `machine/memory.h'.
18951 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
18952 (_multiboot_mod_SOURCES): New variable.
18953 (_multiboot_mod_CFLAGS): Likewise.
18954 (_multiboot_mod_LDFLAGS): Likewise.
18955 (multiboot_mod_SOURCES): Likewise.
18956 (multiboot_mod_CFLAGS): Likewise.
18957 (multiboot_mod_LDFLAGS): Likewise.
18958
18959 * include/grub/i386/ieee1275/loader.h: New file.
18960
18961 * include/grub/i386/ieee1275/machine.h: Likewise.
18962
18963 * include/grub/i386/ieee1275/memory.h: Likewise.
18964
18965 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
18966 variable declaration.
18967 (grub_os_area_size): Likewise.
18968
18969 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
18970 (grub_lower_mem, grub_upper_mem): New variables.
18971 (grub_stop_floppy): New function (just to make
18972 grub_multiboot2_real_boot() happy).
18973
18974 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
18975 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
18976 (grub_stop): New function.
18977 Include `"../realmode.S"' and `"../loader.S"'.
18978
18979 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
18980 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
18981
18982 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
18983 rely on grub_multiboot2_real_boot() for final boot.
18984
25638629 189852008-01-22 Robert Millan <rmh@aybabtu.com>
18986
18987 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
18988 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
18989 device that doesn't look like an SD card.
18990 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
18991 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
18992 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
18993 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
18994 found.
18995
9dad816d 189962008-01-22 Robert Millan <rmh@aybabtu.com>
18997
18998 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
18999 avoid claiming over our own code.
19000
34842f2d 190012008-01-22 Bean <bean123ch@gmail.com>
19002
19003 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
19004 (jpeg_mod_SOURCES): New variable.
19005 (jpeg_mod_CFLAGS): Likewise.
19006 (jpeg_mod_LDFLAGS): Likewise.
19007
19008 * video/readers/jpeg.c : New file.
19009
44023a28 190102008-01-22 Bean <bean123ch@gmail.com>
19011
19012 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
19013 there are no more items.
19014
bc2d8ac6 190152008-01-21 Robert Millan <rmh@aybabtu.com>
19016
19017 * kern/mm.c (grub_mm_init_region): Improve debug message.
19018
261bd4bc 190192008-01-21 Robert Millan <rmh@aybabtu.com>
19020
19021 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
19022 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
19023 address.
19024 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
19025 a C macro.
19026 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
19027 Indicates start of upper memory.
19028 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
19029 (generate_image): Abort when image size is big enough to corrupt
19030 upper memory.
19031
19032 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
19033 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
19034 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19035 instead of hardcoding 0xA0000.
19036 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
19037 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19038 instead of hardcoding 0xA0000.
19039
f970b55e 190402008-01-21 Robert Millan <rmh@aybabtu.com>
19041
19042 * disk/memdisk.c (memdisk_size): New variable.
19043 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
19044 `memdisk_size'.
19045 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
19046 image to dynamic memory.
19047 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
19048 `memdisk_size'. Free memdisk block.
19049
1a8b0526 190502008-01-21 Robert Millan <rmh@aybabtu.com>
19051
19052 Fix detection of very small filesystems (like tar).
19053
19054 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
19055 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
19056 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
19057 a problem with this disk).
19058
6e9b4aab 190592008-01-21 Robert Millan <rmh@aybabtu.com>
19060
19061 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
19062 on grub_biosdisk_rw_standard() error.
19063
0d8837b2 190642008-01-21 Robert Millan <rmh@aybabtu.com>
19065
19066 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
19067 recent changes.
19068 * kern/elf.c: Likewise.
19069 * kern/ieee1275/ieee1275.c: Likewise.
19070 * kern/powerpc/ieee1275/openfw.c: Likewise.
19071 * term/ieee1275/ofconsole.c: Likewise.
19072
ffd36e34 190732008-01-21 Robert Millan <rmh@aybabtu.com>
19074
19075 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
19076
3f0093d0 19077 * include/grub/kernel.h (grub_arch_memdisk_addr)
19078 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 19079
3f0093d0 19080 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
19081 (grub_arch_memdisk_size): ... to here.
ffd36e34 19082
6c391b21 190832008-01-21 Robert Millan <rmh@aybabtu.com>
19084
19085 Mostly based on bugfix from Bean.
19086
19087 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
19088 attribute with hook() parameter.
19089 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
19090 declaration.
19091 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
19092 attribute with hook() parameter.
19093 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
19094 declaration.
19095
55a581dc 190962008-01-21 Robert Millan <rmh@aybabtu.com>
19097
19098 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
19099 (pkglib_MODULES): Add `memdisk.mod'.
19100 (memdisk_mod_SOURCES): New variable.
19101 (memdisk_mod_CFLAGS): Likewise.
19102 (memdisk_mod_LDFLAGS): Likewise.
19103
19104 * disk/memdisk.c: New file.
19105
19106 * include/grub/disk.h (grub_disk_dev_id): Add
19107 `GRUB_DISK_DEVICE_MEMDISK_ID'.
19108
19109 * include/grub/i386/pc/kernel.h
19110 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
19111 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
19112 (grub_kernel_image_size): New variable declaration.
19113 (grub_total_module_size): Likewise.
19114 (grub_memdisk_image_size): Likewise.
19115
19116 * include/grub/i386/pc/memory.h
19117 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
19118
19119 * include/grub/kernel.h: Include `<grub/symbol.h>'.
19120 (grub_arch_memdisk_addr): New variable declaration.
19121 (grub_arch_memdisk_size): Likewise.
19122
19123 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
19124 (grub_arch_memdisk_size): Likewise.
19125
19126 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
19127 (codestart): Replace hardcoded `0x100000' with
19128 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
19129
19130 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
19131 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
19132 not NULL, append the contents of the file it refers to, at the end of
19133 the compressed kernel image. Initialize `grub_memdisk_image_size'
19134 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
19135 (options): Add "memdisk"|'m' option.
19136 (main): Parse --memdisk|-m option, and pass user-provided path as
19137 parameter to generate_image().
19138
3d7f54c9 191392008-01-20 Robert Millan <rmh@aybabtu.com>
19140
19141 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
19142 grub_dprintf() calls from here ...
19143 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
19144
0bf74728 191452008-01-20 Robert Millan <rmh@aybabtu.com>
19146
19147 Fix detection of "real mode" when /options/real-mode? doesn't exist.
19148
19149 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
19150 declaration.
19151 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
19152 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
19153 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 19154 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 19155 property).
19156 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
19157 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
19158
33bf70a7 191592008-01-19 Robert Millan <rmh@aybabtu.com>
19160
fe6b695a 19161 Get rid of confusing function (superseded by
33bf70a7 19162 `grub_ieee1275_get_integer_property')
19163 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
19164 prototype.
19165 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
19166 function.
19167 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
19168 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 19169 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 19170
e2da7d26 191712008-01-19 Robert Millan <rmh@aybabtu.com>
19172
19173 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
19174 command after "shut-down", since implementations differ on which
19175 the command for halt is.
19176
59f1fd8d 191772008-01-19 Robert Millan <rmh@aybabtu.com>
19178
19179 * include/grub/i386/linuxbios/console.h: Add header protection.
19180 (grub_keyboard_controller_init): New function prototype.
19181 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
19182 (KEYBOARD_COMMAND_READ): Likewise.
19183 (KEYBOARD_COMMAND_WRITE): Likewise.
19184 (KEYBOARD_SCANCODE_SET1): Likewise.
19185 (grub_keyboard_controller_write): New function.
19186 (grub_keyboard_controller_read): Likewise.
19187 (grub_keyboard_controller_init): Likewise.
19188
19189 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
19190 (grub_console_init): On coreboot/LinuxBIOS, call
19191 grub_keyboard_controller_init().
19192
5f5a7c15 191932008-01-19 Robert Millan <rmh@aybabtu.com>
19194
19195 PowerPC changes provided by Pavel Roskin.
19196
19197 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
19198 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
19199 don't rely on cmain() doing it.
19200 * kern/i386/ieee1275/startup.S (_start): Store %eax in
19201 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
19202
1210e168 192032008-01-16 Robert Millan <rmh@aybabtu.com>
19204
19205 * include/grub/i386/linuxbios/memory.h
19206 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
19207 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
19208 receive `table_header' as argument. Instead, probe for it in the
19209 known memory ranges where it can be present.
19210 (grub_available_iterate): Do not pass a fixed `table_header' address
19211 to grub_linuxbios_table_iterate().
19212
3d04eab8 192132008-01-15 Robert Millan <rmh@aybabtu.com>
19214
19215 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
19216 * conf/i386-ieee1275.rmk: New file.
19217 * include/grub/i386/ieee1275/console.h: Likewise.
19218 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
19219 * include/grub/i386/ieee1275/kernel.h: Likewise.
19220 * include/grub/i386/ieee1275/time.h: Likewise.
19221 * kern/i386/ieee1275/init.c: Likewise.
19222 * kern/i386/ieee1275/startup.S: Likewise.
19223
d1bc1b73 192242008-01-15 Robert Millan <rmh@aybabtu.com>
19225
19226 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
19227 when pointers are 32-bit (but still do set it to one when they are
19228 64-bit).
19229
66a65807 192302008-01-15 Robert Millan <rmh@aybabtu.com>
19231
19232 * include/grub/ieee1275/ieee1275.h
19233 (grub_ieee1275_get_integer_property): New function prototype.
19234
19235 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
19236 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 19237 grub_ieee1275_get_property() to handle endianness.
66a65807 19238
19239 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
19240 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 19241 where appropriate.
66a65807 19242 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
19243 (grub_map): Likewise.
19244 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
19245
a83ccafd 192462008-01-15 Bean <bean123ch@gmail.com>
19247
19248 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
19249 (grub_script_execute_cmdline): Reset grub_errno.
19250
19251 * normal/main.c (read_config_file): Reset grub_errno.
19252
19253 * normal/parse.y (script_init): New.
19254 (script): Move function and menuentry here.
19255 (delimiter): New.
19256 (command): Add delimiter at the end of command.
19257 (commands): Adjust to match the new command.
19258 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 19259 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 19260 (if): Use the new commands.
19261
19262 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
19263
df6ecfc6 192642008-01-15 Robert Millan <rmh@aybabtu.com>
19265
19266 * normal/menu.c (run_menu): Move timeout message from here ...
19267 (print_timeout): ... to here.
19268 (run_menu): Use print_timeout() once during initial draw to print
19269 the whole message, and again in every clock tick to update only
19270 the number of seconds.
19271
87ae25eb 192722008-01-15 Robert Millan <rmh@aybabtu.com>
19273
19274 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
19275 actual size of `available' from grub_ieee1275_get_property(), and
19276 restrict parsing to that bound.
19277
47bf09a4 192782008-01-15 Christian Franke <franke@computer.org>
19279
19280 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
19281 (argp_program_version): Remove variable.
19282 (argp_program_bug_address): Likewise.
19283 (options): Convert from struct argp_option to struct option.
19284 (struct arguments): Remove.
19285 (parse_opt): Remove.
19286 (usage): New function.
19287 (main): Replace struct args members by simple variables.
19288 Replace argp_parse() by getopt_long().
19289 Add switch to evaluate options.
19290 Add missing "(...)" around root_dev in prefix string.
19291
c86f1469 192922008-01-14 Robert Millan <rmh@aybabtu.com>
19293
19294 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
19295 for grub_ieee1275_exit(), in order to improve portability.
19296
e622c559 192972008-01-14 Robert Millan <rmh@aybabtu.com>
19298
19299 * util/grub.d/10_linux.in (prefix): Define.
19300 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
19301
44cb1ec8 193022008-01-13 Pavel Roskin <proski@gnu.org>
19303
19304 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
19305 grub_errno if no errors have been detected.
19306
1eb8c802 193072008-01-12 Robert Millan <rmh@aybabtu.com>
19308
19309 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
19310 (grub_util_get_dev_abstraction): New function prototype.
19311
19312 * util/getroot.c: Include `<grub/util/getroot.h>'
19313 (grub_util_get_grub_dev): Move detection of abstraction type to ...
19314 (grub_util_get_dev_abstraction): ... here (new function).
19315
19316 * util/grub-probe.c: Convert PRINT_* to an enum. Add
19317 `PRINT_ABSTRACTION'.
19318 (probe): Probe for abstraction type when requested.
19319 (main): Understand `--target=abstraction'.
19320
19321 * util/i386/efi/grub-install.in: Add abstraction module to core
19322 image when it is found to be necessary.
19323 * util/i386/pc/grub-install.in: Likewise.
19324 * util/powerpc/ieee1275/grub-install.in: Likewise.
19325
19326 * util/update-grub_lib.in (font_path): Return system path without
19327 converting to GRUB path.
19328 * util/update-grub.in: Convert system path returned by font_path()
19329 to a GRUB path. Use `grub-probe -t abstraction' to determine what
19330 abstraction module is needed for loading fonts (if any). Export
19331 that as `GRUB_PRELOAD_MODULES'.
19332 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
19333 insmod commands).
19334
52bd3de9 193352008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
19336
19337 Remove some unused code from reiserfs.
f19dbdb7 19338
52bd3de9 19339 * fs/reiserfs.c (struct grub_reiserfs_key)
19340 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
19341 (struct grub_reiserfs_node_body): Removed.
19342 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19343 Likewise.
19344 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19345 Likewise.
19346 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19347 Likewise.
19348 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19349 Likewise.
19350 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19351 Likewise.
19352 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
19353 Likewise.
19354 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19355 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19356 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19357
2f80039d 193582008-01-10 Robert Millan <rmh@aybabtu.com>
19359
19360 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
19361 Determines if a file is garbage left by packaging systems, etc.
19362 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
19363 for processing /etc/grub.d scripts.
19364 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
19365 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
19366 as a condition for processing Linux images.
19367
87888032 193682008-01-10 Pavel Roskin <proski@gnu.org>
19369
19370 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
19371 to compile reiserfs.c on PowerPC.
19372
7e54fced 193732008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 19374
19375 * kern/device.c (grub_device_iterate): Do not abort device iteration
19376 when one of the devices cannot be opened.
19377 * kern/disk.c (grub_disk_open): Do not account previous failures of
19378 unrelated functions when grub_errno is checked for.
19379
5aa541e6 193802008-01-08 Robert Millan <rmh@aybabtu.com>
19381
19382 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
19383 `! grub_linux_is_bzimage', change order of address comparison to make
19384 it more intuitive, and improve "too big zImage" error message.
19385
7076340d 193862008-01-08 Robert Millan <rmh@aybabtu.com>
19387
19388 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
19389 `$(update-grub_DATA)'.
19390 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
19391 targets.
19392
9ca70333 193932008-01-07 Robert Millan <rmh@aybabtu.com>
19394
19395 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
19396 which instruction is modified by grub-setup during installation
19397 (since it wasn't obvious by only looking at this file).
19398
38ccf575 193992008-01-07 Robert Millan <rmh@aybabtu.com>
19400
19401 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
19402 listing actual TODO items.
19403
f5db4291 194042008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19405
868967cf 19406 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
19407 correctly.
19408 (grub_reiserfs_get_key_offset): Likewise.
19409 (grub_reiserfs_set_key_offset): Likewise.
19410 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 19411 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 19412
19413 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
19414 better to remove the bitfield version completely.
f19dbdb7 19415
868967cf 194162008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 19417
f5db4291 19418 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
19419 allocated from the heap, due to the fshelp implementation.
19420 (grub_reiserfs_dir): Free NODE, due to the same reason.
19421
492e6d9d 194222008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19423
19424 Mostly from Vincent Pelletier:
f19dbdb7 19425
492e6d9d 19426 * fs/reiserfs.c: New file.
f19dbdb7 19427
492e6d9d 19428 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
19429 (reiserfs_mod_SOURCES): New variable.
19430 (reiserfs_mod_CFLAGS): Likewise.
19431 (reiserfs_mod_LDFLAGS): Likewise.
19432
19433 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
19434 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
19435 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
19436 normal/color.c.
19437
9ce3e7c1 194382008-01-06 Robert Millan <rmh@aybabtu.com>
19439
19440 * normal/color.c: Remove `<grub/env.h>'.
19441
f3b58148 194422008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
19443
19444 * include/grub/normal.h: Include <grub/env.h>.
19445
7ac3bcfa 194462008-01-05 Robert Millan <rmh@aybabtu.com>
19447
19448 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
19449 usage example with `(hd0,1)'.
fb358190 19450 Reported by Samuel Thibault.
7ac3bcfa 19451
c8ee99d7 194522008-01-05 Robert Millan <rmh@aybabtu.com>
19453
19454 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
19455 (grub_linux_boot_zimage): Rename to ...
19456 (grub_linux_boot): ... this.
19457 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
19458 (grub_linux_boot_zimage): Conditionalize zImage copy.
19459
19460 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
19461 (grub_linux_boot_bzimage): Remove prototype.
19462 (grub_linux_boot_zimage): Rename to ...
19463 (grub_linux_boot): ... this.
19464
19465 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
19466 (grub_linux_boot): Remove function.
19467
0ece25b1 194682008-01-05 Robert Millan <rmh@aybabtu.com>
19469
19470 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
19471 (grub_env_write_color_highlight): Likewise.
19472 (grub_wait_after_message): Likewise.
19473
19474 * normal/color.c: New file.
19475
19476 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19477 (normal_mod_DEPENDENCIES): Likewise.
19478
19479 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19480 (normal_mod_DEPENDENCIES): Likewise.
19481
19482 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19483 (normal_mod_DEPENDENCIES): Likewise.
19484
19485 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19486 (normal_mod_DEPENDENCIES): Likewise.
19487
19488 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
19489 for waiting after a message is printed.
19490 * normal/main.c (read_config_file): Likewise.
19491 (grub_normal_init): Register grub_env_write_color_normal() and
19492 grub_env_write_color_highlight() hooks. Mark `color_normal' and
19493 `color_highlight' variables as global.
19494
19495 * normal/menu.c (grub_wait_after_message): New function.
19496 (grub_color_menu_normal): New variable. Replaces ...
19497 (GRUB_COLOR_MENU_NORMAL): ... this macro.
19498 (grub_color_menu_highlight): New variable. Replaces ...
19499 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
19500 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
19501 `GRUB_TERM_COLOR_STANDARD'.
19502 (print_message): Use `grub_setcolorstate' to reload colors. Rename
19503 `normal_code' and `highlight_code' to `old_color_normal' and
19504 `old_color_highlight', respectively.
19505 (grub_menu_init_page): Update colors when drawing the menu, based on
19506 `menu_color_normal' and `menu_color_highlight' variables.
19507 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
19508 a message is printed.
19509
182dd4e5 195102008-01-05 Robert Millan <rmh@aybabtu.com>
19511
19512 * kern/env.c (grub_env_context_open): Propagate hooks for global
19513 variables to new context.
19514
19515 * kern/main.c (grub_set_root_dev): Export `root' variable.
19516
ddf8f6ad 195172008-01-05 Robert Millan <rmh@aybabtu.com>
19518
19519 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 19520 discs unconditionally, since udev and others have options to provide
ddf8f6ad 19521 them.
19522
d8b43d9b 195232008-01-05 Robert Millan <rmh@aybabtu.com>
19524
19525 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
19526
2bff2de3 195272008-01-04 Christian Franke <franke@computer.org>
19528
19529 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
19530 of eisa_mmap.
19531
97eab917 195322008-01-03 Pavel Roskin <proski@gnu.org>
19533
19534 * kern/i386/linuxbios/init.c: Put "void" to all function
19535 declarations with no arguments.
19536 * kern/powerpc/ieee1275/init.c: Likewise.
19537 * term/i386/pc/at_keyboard.c: Likewise.
19538 * term/i386/pc/vga_text.c: Likewise.
19539 * util/grub-mkdevicemap.c: Likewise.
19540
b9416d00 195412008-01-02 Robert Millan <rmh@aybabtu.com>
19542
19543 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
19544 message when loaded image is out of bounds.
19545 (grub_multiboot_load_elf64): Likewise.
19546
92695df9 195472008-01-02 Pavel Roskin <proski@gnu.org>
19548
19549 * util/grub.d/10_linux.in: Try version without ".old" when
19550 looking for initrd. It's better to use initrd from the newer
19551 kernel of the same version than no initrd at all.
19552
d98d9cad 195532008-01-01 Robert Millan <rmh@aybabtu.com>
19554
19555 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
19556
dbfdce36 195572008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
19558
f19dbdb7 19559 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 19560 grub_video_get_active_render_target.
19561 (grub_video_adapter): Added unmap_color and get_active_render_target.
19562
f19dbdb7 19563 * video/video.c: Added grub_video_unmap_color and
dbfdce36 19564 grub_video_get_active_render_target.
19565 (grub_video_get_info): Changed method to accept NULL pointer as an
19566 argument to allow detection of active video adapter.
19567
19568 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
19569 grub_video_vbe_unmap_color_int.
19570 Added grub_video_vbe_unmap_color and
19571 grub_video_vbe_get_active_render_target.
19572 (grub_video_vbe_adapter): Added unmap_color and
19573 get_active_render_target.
19574
f19dbdb7 19575 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 19576 with grub_video_vbe_unmap_color_int.
19577
19578 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
19579 (DEFAULT_NORMAL_COLOR): Likewise.
19580 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
19581 (DEFAULT_FG_COLOR): Removed.
19582 (DEFAULT_BG_COLOR): Likewise.
19583 (DEFAULT_CURSOR_COLOR): Changed value.
19584 (grub_virtual_screen): Added standard_color_setting,
19585 normal_color_setting, highlight_color_setting and term_color.
19586 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
19587 (bitmap_width): Added.
19588 (bitmap_height): Likewise.
19589 (bitmap): Likewise.
19590 (set_term_color): Likewise.
19591 (grub_virtual_screen_setup): Changed to use new terminal coloring
19592 settings.
19593 (grub_gfxterm_init): Added init for bitmap.
19594 (grub_gfxterm_fini): Added destroy for bitmap.
19595 (redraw_screen_rect): Updated to use background bitmap and new
19596 terminal coloring.
19597 (scroll_up): Added optimization for case when there is no bitmap.
19598 (grub_gfxterm_cls): Fixed to use correct background color.
19599 (grub_virtual_screen_setcolorstate): Changed to use new terminal
19600 coloring.
19601 (grub_virtual_screen_setcolor): Likewise.
19602 (grub_virtual_screen_getcolor): Added.
19603 (grub_gfxterm_background_image_cmd): Likewise.
19604 (grub_video_term): Added setcolor and getcolor.
19605 (MOD_INIT): Added registration of background_image command.
19606 (MOD_TERM): Added unregistration for background_image command.
19607
c3c20931 196082007-12-30 Pavel Roskin <proski@gnu.org>
19609
19610 * loader/multiboot_loader.c: Fix multiboot command
19611 unregistration. Fix all typos in the word "multiboot".
19612
df266716 196132007-12-29 Pavel Roskin <proski@gnu.org>
94239199 19614
19615 * util/grub.d/10_linux.in: Refactor search for initrd. Add
19616 support for initrd names used in Fedora.
19617
fc6e896c 196182007-12-26 Bean <bean123ch@gmail.com>
19619
19620 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
19621 (cpio_mod_SOURCES): New variable.
19622 (cpio_mod_CFLAGS): Likewise.
19623 (cpio_mod_LDFLAGS): Likewise.
19624
19625 * fs/cpio.c: New file.
19626
19627 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
19628
19629 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19630
19631 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19632
19633 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19634
533110ad 196352007-12-25 Robert Millan <rmh@aybabtu.com>
19636
19637 * include/grub/term.h (struct grub_term): Add `getcolor' function.
19638 (grub_getcolor): New function.
19639
19640 * kern/term.c (grub_getcolor): New function.
19641 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
19642 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
19643 (print_entry): Set normal and highlight colors to
19644 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
19645 respectively, before printing and restore them to old
19646 values afterwards.
19647 (grub_menu_init_page): Likewise. Fill an additional colored space
19648 that would otherwise be left blank.
19649
19650 * term/efi/console.c (grub_console_getcolor): New function.
19651 (struct grub_console_term.getcolor): New variable.
19652 * term/i386/pc/console.c (grub_console_getcolor): New function.
19653 (struct grub_console_term.getcolor): New variable.
19654 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
19655 (struct grub_console_term.getcolor): New variable.
19656
19657 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
19658 (struct grub_console_term.setcolor): Remove variable.
19659 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
19660 (struct grub_console_term.setcolor): Remove variable.
19661 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
19662 (struct grub_console_term.setcolor): Remove variable.
19663 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
19664 (struct grub_console_term.setcolor): Remove variable.
19665
4931827f 196662007-12-25 Robert Millan <rmh@aybabtu.com>
19667
19668 * configure.ac: Search for possible unifont.hex locations, and
19669 define UNIFONT_HEX if found.
19670
19671 * Makefile.in (UNIFONT_HEX): Define variable.
19672 (DATA): Rename to ...
19673 (PKGLIB): ... this. Update all users.
19674 (PKGDATA): New variable.
19675 (pkgdata_IMAGES): Rename to ...
19676 (pkglib_IMAGES): ... this. Update all users.
19677 (pkgdata_MODULES): Rename to ...
19678 (pkglib_MODULES): ... this. Update all users.
19679 (pkgdata_PROGRAMS): Rename to ...
19680 (pkglib_PROGRAMS): ... this. Update all users.
19681 (pkgdata_DATA): Rename to ...
19682 (pkglib_DATA): ... this. Update all users.
19683 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
19684 (unicode.pff, ascii.pff): New rules.
19685 (all-local): Add `$(PKGDATA)' dependency.
19686 (install-local): Process `$(PKGDATA)'.
19687
19688 * util/update-grub_lib.in (font_path): Search for *.pff files in
19689 a few more locations, including `${pkgdata}'.
19690
57e57e31 196912007-12-23 Robert Millan <rmh@aybabtu.com>
19692
19693 Patch from Bean <bean123ch@gmail.com>:
19694 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
19695 `size'.
19696
4bc72aa9 196972007-12-21 Bean <bean123ch@gmail.com>
19698
19699 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
19700 (ntfscomp_mod_SOURCES): New variable.
19701 (ntfscomp_mod_CFLAGS): Likewise.
19702 (ntfscomp_mod_LDFLAGS): Likewise.
19703
19704 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
19705 (grub_probe_SOURCES): Likewise.
19706 (grub_emu_SOURCES): Likewise.
19707
19708 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19709 (grub_emu_SOURCES): Likewise.
19710
19711 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19712 (grub_emu_SOURCES): Likewise.
19713
19714 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19715 (grub_emu_SOURCES): Likewise.
19716
19717 * fs/ntfs.c (grub_ntfscomp_func): New variable.
19718 (read_run_list): Renamed to grub_ntfs_read_run_list.
19719 (decomp_nextvcn): Moved to ntfscomp.c.
19720 (decomp_getch): Likewise.
19721 (decomp_get16): Likewise.
19722 (decomp_block): Likewise.
19723 (read_block): Likewise.
19724 (read_data): Partially moved to ntfscomp.c.
19725 (fixup): Change unsigned to grub_uint16_t.
19726 (read_mft): Change unsigned long to grub_uint32_t.
19727 (read_attr): Likewise.
19728 (read_data): Likewise.
19729 (read_run_data): Likewise.
19730 (read_run_list): Likewise.
19731 (read_mft): Likewise.
19732
19733 * fs/ntfscomp.c: New file.
19734
19735 * include/grub/ntfs.h: New file.
19736
af680a87 197372007-12-16 Robert Millan <rmh@aybabtu.com>
19738
19739 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
19740 IDE disk check, since Linux is known to support 20 IDE disks.
19741 Reported by Colin Watson.
19742
84be7599 197432007-12-15 Bean <bean123ch@gmail.com>
19744
19745 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
19746 (lnxboot_img_SOURCES): New variable.
19747 (lnxboot_img_ASFLAGS): Likewise.
19748 (lnxboot_img_LDFLAGS): Likewise.
19749
19750 * boot/i386/pc/lnxboot.S: New file.
19751
6af9db01 197522007-11-24 Pavel Roskin <proski@gnu.org>
19753
19754 * configure.ac: Test if '--build-id=none' is supported by the
19755 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
19756 objcopy to generate incorrect binary files (binutils
19757 2.17.50.0.18-1 as shipped by Fedora 8).
19758 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
19759 linking, so that build ID doesn't break the test.
19760
7361cfe6 197612007-11-24 Pavel Roskin <proski@gnu.org>
19762
19763 * include/grub/i386/time.h: use "void" in the argument list
19764 of grub_cpu_idle().
19765 * include/grub/powerpc/time.h: Likewise.
19766 * include/grub/sparc64/time.h: Likewise.
19767
1593e10c 197682007-11-18 Christian Franke <franke@computer.org>
19769
19770 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
19771 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
19772 This fixes the problem that function keys did not work in grub-emu.
19773
3b8db1a8 197742007-11-18 Christian Franke <franke@computer.org>
19775
19776 * disk/host.c (grub_host_open): Remove attribute unused from
19777 name parameter. Add check for "host". This fixes the problem
19778 that grub-emu does not find partitions.
19779
2e29408d 197802007-11-18 Christian Franke <franke@computer.org>
19781
19782 * util/hostfs.c (is_dir): New function.
19783 (grub_hostfs_dir): Handle missing dirent.d_type case.
19784 (grub_hostfs_read): Add missing fseek().
19785 (grub_hostfs_label): Clear label pointer. This fixes a crash
19786 of grub-emu on "ls (host)".
19787
398cd047 197882007-11-18 Christian Franke <franke@computer.org>
19789
19790 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
19791 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
19792 to 64 bit boundary by default.
19793
c405c391 197942007-11-18 Bean <bean123ch@gmail.com>
19795
19796 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
19797 (hexdump_mod_SOURCES): New variable.
19798 (hexdump_mod_CFLAGS): Likewise.
19799 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 19800
c405c391 19801 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19802
19803 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19804
19805 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19806
19807 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19808
19809 * include/grub/hexdump.h: New file.
19810
19811 * commands/hexdump.c: New file.
19812
5cced7fd 198132007-11-10 Robert Millan <rmh@aybabtu.com>
19814
19815 * commands/i386/pc/play.c (beep_off): Switch order of arguments
19816 in grub_outb() calls.
19817 (beep_on): Likewise.
19818
8b714eb0 198192007-11-10 Christian Franke <franke@computer.org>
19820
19821 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
19822 (grub_menu_run): Likewise.
19823
ce0f1839 198242007-11-10 Robert Millan <rmh@aybabtu.com>
19825
19826 * include/grub/i386/efi/machine.h: New file.
19827 * include/grub/i386/linuxbios/machine.h: Likewise.
19828 * include/grub/i386/pc/machine.h: Likewise.
19829 * include/grub/powerpc/ieee1275/machine.h: Likewise.
19830 * include/grub/sparc64/ieee1275/machine.h: Likewise.
19831
19832 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
19833 (serial_hw_io_addr): New variable.
19834 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
19835 instead of `(unsigned short *) 0x400'.
19836
270c237d 198372007-11-10 Bean <bean123ch@gmail.com>
19838
19839 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
19840
a87783bf 198412007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
19842
19843 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
19844 (vga_mod_SOURCES): Added.
19845 (vga_mod_CFLAGS): Likewise.
19846 (vga_mod_LDFLAGS): Likewise.
19847
19848 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
19849 grub_outb() calls.
19850 (set_map_mask): Likewise.
19851 (set_read_map): Likewise.
19852 (set_read_address): Likewise.
19853 (vga_font): Removed variable.
19854 (get_vga_glyph): Removed function.
19855 (invalidate_char): Likewise.
19856 (write_char): Changed to use grub_font_get_glyph() for font
19857 information.
19858 (grub_vga_putchar): Likewise.
19859 (grub_vga_getcharwidth): Likewise.
19860
6433b448 198612007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
19862
19863 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
19864 flags.
19865 (pxeboot_img_LDFLAGS): Likewise.
19866 (diskboot_img_LDFLAGS): Likewise.
19867 (kernel_img_LDFLAGS): Likewise.
19868
49178511 198692007-11-06 Robert Millan <rmh@aybabtu.com>
19870
19871 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
19872 in grub_outb() calls.
19873 (serial_hw_init): Likewise.
19874
53b052de 198752007-11-05 Robert Millan <rmh@aybabtu.com>
19876
19877 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
19878 spaces. Skip non-regular files.
19879
5ab33bba 198802007-11-05 Robert Millan <rmh@aybabtu.com>
19881
19882 * kern/disk.c (grub_disk_firmware_fini)
19883 (grub_disk_firmware_is_tainted): New variables.
19884
19885 * include/grub/disk.h (grub_disk_firmware_fini)
19886 (grub_disk_firmware_is_tainted): Likewise.
19887
19888 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
19889 (grub_disk_biosdisk_fini): ... to here.
19890 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
19891 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
19892 is set. Register grub_disk_biosdisk_fini() in
19893 `grub_disk_firmware_fini'.
19894
19895 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
19896 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
19897 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
19898 to finish existing firmware disk interface.
19899
19900 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
19901 (ata_mod_SOURCES): New variable.
19902 (ata_mod_CFLAGS): Likewise.
19903 (ata_mod_LDFLAGS): Likewise.
19904
0149ab7c 199052007-11-05 Robert Millan <rmh@aybabtu.com>
19906
19907 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
19908 (grub_ata_wait): Reimplement using grub_millisleep().
19909
19910 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
19911 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
19912
be7ac41e 199132007-11-03 Marco Gerards <marco@gnu.org>
19914
19915 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
19916 (CRTC_ADDR_PORT): New macro.
19917 (CRTC_DATA_PORT): Likewise.
19918 (CRTC_CURSOR): Likewise.
19919 (CRTC_CURSOR_ADDR_HIGH): Likewise.
19920 (CRTC_CURSOR_ADDR_LOW): Likewise.
19921 (update_cursor): New function.
19922 (grub_console_real_putchar): Call `update_cursor'.
19923 (grub_console_gotoxy): Likewise.
19924 (grub_console_cls): Set the default color when clearing the
19925 screen.
19926 (grub_console_setcursor): Implemented.
19927
bb06ab2e 199282007-11-03 Marco Gerards <marco@gnu.org>
19929
19930 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
19931 become activate.
19932 (grub_ata_pio_write): Likewise.
19933
19934 (grub_atapi_identify): Wait after issuing an ATA command.
19935 (grub_atapi_packet): Likewise.
19936 (grub_ata_identify): Likewise.
19937 (grub_ata_readwrite): Likewise.
19938
cf8f780b 199392007-11-03 Marco Gerards <marco@gnu.org>
19940
19941 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
19942 (grub_ata_pio_write): Likewise.
19943 (grub_ata_readwrite): Use `grub_error', instead of
19944 returning `grub_errno'.
19945
ed649e54 199462007-11-03 Marco Gerards <marco@gnu.org>
19947
19948 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
19949 grub_ata_pio_write once for every single sector, instead of for
19950 multiple sectors.
19951
ca25d8f0 199522007-10-31 Robert Millan <rmh@aybabtu.com>
19953
19954 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
19955
19956 * conf/i386-linuxbios.rmk: New file.
19957
19958 * kern/i386/pc/hardware.c: Likewise.
19959 * term/i386/pc/at_keyboard.c: Likewise.
19960 * term/i386/pc/vga_text.c: Likewise.
19961
19962 * include/grub/i386/linuxbios/boot.h: Likewise.
19963 * include/grub/i386/linuxbios/console.h: Likewise.
19964 * include/grub/i386/linuxbios/init.h: Likewise.
19965 * include/grub/i386/linuxbios/kernel.h: Likewise.
19966 * include/grub/i386/linuxbios/loader.h: Likewise.
19967 * include/grub/i386/linuxbios/memory.h: Likewise.
19968 * include/grub/i386/linuxbios/serial.h: Likewise.
19969 * include/grub/i386/linuxbios/time.h: Likewise.
19970
19971 * kern/i386/linuxbios/init.c: Likewise.
19972 * kern/i386/linuxbios/startup.S: Likewise.
19973 * kern/i386/linuxbios/table.c: Likewise.
19974
e911ecc1 199752007-10-31 Marco Gerards <marco@gnu.org>
19976
19977 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
19978 (ata_mod_SOURCES): New variable.
19979 (ata_mod_CFLAGS): Likewise.
19980 (ata_mod_LDFLAGS): Likewise.
19981
19982 * disk/ata.c: New file.
19983
19984 * include/grub/disk.h (grub_disk_dev_id): Add
19985 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 19986
7f66d0e0 199872007-10-31 Robert Millan <rmh@aybabtu.com>
19988
19989 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
19990 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
19991
19992 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
19993 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
19994
19995 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
19996 `<grub/types.h>'.
19997
19998 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
19999
5cd7dd46 200002007-10-27 Robert Millan <rmh@aybabtu.com>
20001
3236ca65 20002 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 20003
2ebfc90f 200042007-10-22 Robert Millan <rmh@aybabtu.com>
20005
20006 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
20007 `"../realmode.S"'.
20008 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
20009
73fcb0f3 200102007-10-22 Robert Millan <rmh@aybabtu.com>
20011
20012 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
20013 (pkgdata_MODULES): Add `biosdisk.mod'.
20014 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
20015 variables.
20016
20017 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
20018 (grub_biosdisk_init): Replace with ...
20019 (GRUB_MOD_INIT(biosdisk)): ... this.
20020 (grub_biosdisk_fini): Replace with ...
20021 (GRUB_MOD_FINI(biosdisk)): ... this.
20022
20023 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
20024 (grub_machine_init): Remove call to grub_biosdisk_init().
20025 (grub_machine_fini): Remove call to grub_machine_fini().
20026
20027 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
20028
3381d274 200292007-10-22 Robert Millan <rmh@aybabtu.com>
20030
20031 * include/grub/time.h: New file.
20032 * include/grub/i386/time.h: Likewise.
20033 * include/grub/powerpc/time.h: Likewise.
20034 * include/grub/sparc64/time.h: Likewise.
20035
20036 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
20037 instances to ...
20038 (KERNEL_MACHINE_TIME_HEADER): ... this.
20039 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20040 instances to ...
20041 (KERNEL_MACHINE_TIME_HEADER): ... this.
20042 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20043 instances to ...
20044 (KERNEL_MACHINE_TIME_HEADER): ... this.
20045
20046 * kern/i386/efi/init.c: Include `<grub/time.h>'.
20047 (grub_millisleep): New function.
20048 * kern/i386/pc/init.c: Include `<grub/time.h>'.
20049 (grub_millisleep): New function.
20050 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
20051 Remove `grub/machine/time.h' include.
20052 (grub_millisleep): New function.
20053 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
20054 Remove `grub/machine/time.h' include.
20055 (grub_millisleep): New function.
20056
20057 * include/grub/misc.h (grub_div_roundup): New function.
20058
20059 * kern/misc.c: Include `<grub/time.h>'.
20060 (grub_millisleep_generic): New function.
20061
20062 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
20063 Add `time.h'.
20064 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
20065 Add `time.h'.
20066 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
20067 `machine/time.h'. Add `time.h'.
20068 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
20069
a39a0312 200702007-10-21 Robert Millan <rmh@aybabtu.com>
20071
20072 * include/grub/misc.h (grub_max): New function.
20073
2aad70e2 200742007-10-21 Robert Millan <rmh@aybabtu.com>
20075
20076 * util/misc.c (grub_util_info): Call fflush() before returning.
20077
54b71c4b 200782007-10-20 Robert Millan <rmh@aybabtu.com>
20079
20080 * genmk.rb (Image): Copy `extra_flags' from here ...
20081 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
20082
20083 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
20084 to `argc' and `args' arguments.
20085
a979f513 200862007-10-17 Robert Millan <rmh@aybabtu.com>
20087
20088 * kern/i386/loader.S: New file.
20089
20090 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
20091 * kern/i386/loader.S (grub_linux_prot_size)... to here.
20092 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
20093 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
20094 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
20095 * kern/i386/loader.S (grub_linux_real_addr)... to here.
20096 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
20097 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
20098 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
20099 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
20100 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
20101 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
20102 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
20103 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
20104
20105 * kern/i386/realmode.S: New file.
20106
20107 * kern/i386/pc/startup.S (protstack): Moved from here ...
20108 * kern/i386/realmode.S (protstack)... to here.
20109 * kern/i386/pc/startup.S (gdt): Moved from here ...
20110 * kern/i386/realmode.S (gdt)... to here.
20111 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
20112 * kern/i386/realmode.S (prot_to_real)... to here.
20113
20114 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
20115 `kern/i386/realmode.S'.
20116
825fc8fd 201172007-10-17 Robert Millan <rmh@aybabtu.com>
20118
20119 * include/grub/i386/loader.h: New file.
20120
20121 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
20122 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20123 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20124 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20125 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
20126 * include/grub/i386/loader.h (grub_linux_prot_size)
20127 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20128 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20129 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20130 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
20131
20132 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
20133
e179b2f4 201342007-10-15 Robert Millan <rmh@aybabtu.com>
20135
20136 * normal/misc.c (grub_normal_print_device_info): Do not probe for
20137 filesystem when dev->disk is unset.
20138 Do probe for filesystem even when dev->disk->has_partitions is set.
20139 In case a filesystem is found, always report it.
20140 In case it isn't, if dev->disk->has_partitions is set, report that
20141 a partition table was found instead of reporting that no filesystem
20142 could be identified.
20143
5db82af6 201442007-10-12 Robert Millan <rmh@aybabtu.com>
20145
20146 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
20147 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
20148
68f6ac74 20149 * include/grub/types.h (grub_host_to_target16): New macro.
20150 (grub_host_to_target32): Likewise.
20151 (grub_host_to_target64): Likewise.
20152 (grub_target_to_host16): Likewise.
20153 (grub_target_to_host32): Likewise.
20154 (grub_target_to_host64): Likewise.
5db82af6 20155
20156 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
20157 Renamed from to ...
20158 (GRUB_MOD_ALIGN): ...this. Update all users.
20159
68f6ac74 20160 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
20161 grub_host_to_target32.
20162 Replace grub_be_to_cpu32 with grub_target_to_host32.
20163 (load_modules): Likewise.
20164 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
20165 Replace grub_be_to_cpu32 with grub_target_to_host32.
20166 Replace grub_cpu_to_be16 with grub_host_to_target16.
20167 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 20168
3cf497cc 201692007-10-12 Robert Millan <rmh@aybabtu.com>
20170
20171 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
20172 * util/elf/grub-mkimage.c: ... here.
20173
20174 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
20175 `util/powerpc/ieee1275/grub-mkimage.c'.
20176
c8cc3692 201772007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 20178
c8cc3692 20179 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
20180 and make it easier to figure out.
20181 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
20182 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
20183 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
20184 leave us with less than HEAP_MIN_SIZE total heap.
20185 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 20186
5c58b791 201872007-10-03 Robert Millan <rmh@aybabtu.com>
20188
20189 * include/grub/i386/io.h: New file.
20190 * commands/i386/pc/play.c (inb): Removed.
20191 (outb): Removed.
20192 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20193 with grub_outb().
afcd2ef8 20194 * term/i386/pc/serial.c (inb): Removed.
20195 (outb): Removed.
20196 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20197 with grub_outb().
20198 * term/i386/pc/vga.c (inb): Removed.
20199 (outb): Removed.
20200 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20201 with grub_outb().
5c58b791 20202
1a477ed6 202032007-10-02 Robert Millan <rmh@aybabtu.com>
20204
20205 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
20206 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20207 Reported by Marcin Kurek.
20208
6b5d80fa 202092007-09-07 Robert Millan <rmh@aybabtu.com>
20210
20211 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
20212 SmartFirmware version updates (as released by Sven Luther), and avoid
20213 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
20214 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
20215 known broken.
20216
5618afbf 202172007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20218
20219 From Hitoshi Ozeki:
20220 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
20221 when merging two regions.
20222
6139dcd9 202232007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20224
508e39ee 20225 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
20226 * normal/completion.c (grub_normal_do_completion): Likewise.
20227 Reported by Hitoshi Ozeki.
20228
202292007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 20230
6139dcd9 20231 Do not use devices at boot in chainloading.
f19dbdb7 20232
6139dcd9 20233 * loader/i386/pc/chainloader.c (boot_drive): New variable.
20234 (boot_part_addr): Likewise.
20235 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
20236 with BOOT_DRIVE and BOOT_PART_ADDR.
20237 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
20238 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
20239
38da6516 202402007-08-29 Robert Millan <rmh@aybabtu.com>
20241
20242 Patch from Simon Peter <dn.tlp@gmx.net>:
20243 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
20244 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
20245 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
20246 util/i386/pc/grub-setup.c_DEPENDENCIES.
20247 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
20248 util/grub-probe.c_DEPENDENCIES.
20249 * conf/powerpc-ieee1275.rmk: Likewise.
20250
29d0928c 202512007-08-28 Robert Millan <rmh@aybabtu.com>
20252
20253 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
20254 to tell grub-mkdevicemap how to name devices.
20255 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
20256 feature).
20257
20258 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
20259 util/i386/get_disk_name.c.
20260 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
20261 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
20262 util/ieee1275/get_disk_name.c.
20263
20264 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
20265
20266 * DISTLIST: Add util/i386/get_disk_name.c and
20267 util/ieee1275/get_disk_name.c.
20268
20269 * util/grub-mkdevicemap.c: Replace device naming logic with
20270 grub_util_get_disk_name() calls.
20271
5a0d3cca 202722007-08-20 Robert Millan <rmh@aybabtu.com>
20273
20274 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
20275 (so that it works for both plural and singular quantities).
20276
8b72db2f 202772007-08-05 Robert Millan <rmh@aybabtu.com>
20278
20279 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
20280 so that [xz] isn't taken into account when determining order.
20281
352466bf 202822007-08-02 Marco Gerards <marco@gnu.org>
20283
20284 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
20285 `include/multiboot2.h', `include/grub/elfload.h',
20286 `include/multiboot.h', `include/grub/multiboot.h',
20287 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
20288 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
20289 `kern/elf.c', `loader/multiboot_loader.c',
20290 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
20291 `loader/i386/pc/multiboot2.c',
20292 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
20293 `util/i386/pc/grub-mkrescue.in'. Remove
20294 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
20295 `include/grub/i386/pc/util/biosdisk.h' and
20296 `include/grub/powerpc/ieee1275/multiboot.h'.
20297
8f096014 202982007-08-02 Bean <bean123ch@gmail.com>
20299
20300 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
20301 (ntfs_mod_SOURCES): New variable.
20302 (ntfs_mod_CFLAGS): Likewise.
20303 (ntfs_mod_LDFLAGS): Likewise.
20304
20305 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
20306 (grub_probe_SOURCES): Likewise.
20307 (grub_emu_SOURCES): Likewise.
20308
20309 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20310 (grub_emu_SOURCES): Likewise.
20311
20312 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20313 (grub_emu_SOURCES): Likewise.
f19dbdb7 20314
8f096014 20315 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
20316
20317 * fs/ntfs.c: New file.
20318
9959f7db 203192007-08-02 Bean <bean123ch@gmail.com>
20320
20321 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
20322
20323 * file.h (grub_file): Likewise.
20324
20325 * fshelp.h (grub_fshelp_read_file): Likewise.
20326
20327 * util/i386/pc/grub-setup.c (setup): Likewise.
20328 (save_first_sector): Likewise.
20329 (save_blocklists): Likewise.
f19dbdb7 20330
9959f7db 20331 * fs/affs.c (grub_affs_read_file): Likewise.
20332
20333 * fs/ext2.c (grub_ext2_read_file): Likewise.
20334
20335 * fs/fat.c (grub_fat_read_data): Likewise.
20336
20337 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
20338
20339 * fs/hfs.c (grub_hfs_read_file): Likewise.
20340
20341 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
20342
20343 * fs/jfs.c (grub_jfs_read_file): Likewise.
20344
20345 * fs/minix.c (grub_minix_read_file): Likewise.
20346
20347 * fs/sfs.c (grub_sfs_read_file): Likewise.
20348
20349 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 20350
9959f7db 20351 * fs/xfs.c (grub_xfs_read_file): Likewise.
20352
20353 * command/blocklist.c (read_blocklist): Likewise.
20354 (print_blocklist): Likewise.
20355
0a203f83 203562007-08-02 Marco Gerards <marco@gnu.org>
20357
20358 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
20359 `util/hostfs.c'.
20360
20361 * disk/host.c: New file.
20362
20363 * util/hostfs.c: Likewise.
20364
20365 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
20366 return `GRUB_ERR_BAD_FS'.
20367 * fs/sfs.c (grub_sfs_mount): Likewise.
20368 * fs/xfs.c (grub_xfs_mount): Likewise.
20369
20370 * include/grub/disk.h (enum grub_disk_dev_id): Add
20371 `GRUB_DISK_DEVICE_HOST_ID'.
20372
20373 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
20374
e5dfe777 203752007-07-24 Jerone Young <jerone@gmail.com>
20376
f19dbdb7 20377 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 20378 modules for compilation.
20379 * conf/powerpc-ieee1275.rmk: Likewise.
20380
20381 * include/multiboot.h: Move multiboot definitions to one file. Rename
20382 many definitions to not get grub specific.
20383 * include/multiboot2.h: Create header with multiboot 2 definitions.
20384 * include/grub/multiboot.h: Header for grub specific function
20385 prototypes and definitions.
20386 * include/grub/multiboot2.h: Likewise.
20387 * include/grub/multiboot_loader.h: Likewise.
20388 * include/grub/i386/pc/multiboot.h: Removed.
20389 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
20390
20391 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
20392 and 2 to allow for one multiboot and module commands.
20393 * loader/multiboot2.c: Add multiboot2 functionality.
20394 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
20395 and definition names.
20396 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
20397 2 functions.
20398 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
20399 ieee1275 specific multiboot2 code.
20400
20401 * kern/i386/pc/startup.S: Change headers and definition names for
20402 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
20403
daf0f0ba 204042007-07-22 Robert Millan <rmh@aybabtu.com>
20405
20406 * geninitheader.sh: Process file specified in first parameter rather
20407 than hardcoding grub_modules_init.lst.
fe6b695a 20408 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 20409 than hardcoding grub_modules_init.h.
20410
20411 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
20412 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
20413 grub_probe_init.[ch] and grub_setup_init.[ch].
20414
20415 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
20416 grub_modules_init.h with grub_emu_init.h.
20417 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
20418 grub_probe_init.[ch] files.
20419 * conf/i386-efi.rmk: Likewise.
20420 * conf/i386-pc.rmk: Likewise.
20421 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
20422 grub_setup_init.[ch] files.
20423
20424 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
20425 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
20426 to initialize modules rather than a list of hardcoded functions.
20427 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
20428 grub_init_all() to initialize modules rather than a list of hardcoded
20429 functions.
20430
54cdc1cc 204312007-07-22 Robert Millan <rmh@aybabtu.com>
20432
20433 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20434 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
20435
ad0686cc 204362007-07-22 Robert Millan <rmh@aybabtu.com>
20437
20438 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
20439 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
20440 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
20441 flag when running on SmartFirmware.
20442 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
20443 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
20444 was set.
20445
20446 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
20447 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
20448 rather than decreasing it.
20449
20450 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
20451 there's not enough space to do it, fail in the same way as when it
20452 can't be done because there are no partitions.
20453
20454 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
20455 when nvsetenv failed.
20456
969c02ec 204572007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20458
20459 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
20460 because this rule is automatically generated.
20461 (grub-mkrescue): Removed for the same reason as above.
20462
5a79f472 204632007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20464
20465 Migrate to GNU General Public License Version 3.
f19dbdb7 20466
5a79f472 20467 * COPYING: Replaced with the plain text version of GPLv3.
20468
20469 * config.guess: Updated from gnulib.
20470 * config.sub: Likewise.
20471
20472 * geninit.sh: Output a GPLv3 copyright notice.
20473 * geninitheader.sh: Likewise.
20474 * genmodsrc.sh: Likewise.
20475 * gensymlist.sh.in: Likewise.
20476
20477 * boot/i386/pc/boot.S: Upgraded to GPLv3.
20478 * boot/i386/pc/diskboot.S: Likewise.
20479 * boot/i386/pc/pxeboot.S: Likewise.
20480 * commands/blocklist.c: Likewise.
20481 * commands/boot.c: Likewise.
20482 * commands/cat.c: Likewise.
20483 * commands/cmp.c: Likewise.
20484 * commands/configfile.c: Likewise.
20485 * commands/echo.c: Likewise.
20486 * commands/help.c: Likewise.
20487 * commands/ls.c: Likewise.
20488 * commands/search.c: Likewise.
20489 * commands/terminal.c: Likewise.
20490 * commands/test.c: Likewise.
20491 * commands/videotest.c: Likewise.
20492 * commands/i386/cpuid.c: Likewise.
20493 * commands/i386/pc/halt.c: Likewise.
20494 * commands/i386/pc/play.c: Likewise.
20495 * commands/i386/pc/reboot.c: Likewise.
20496 * commands/i386/pc/vbeinfo.c: Likewise.
20497 * commands/i386/pc/vbetest.c: Likewise.
20498 * commands/ieee1275/halt.c: Likewise.
20499 * commands/ieee1275/reboot.c: Likewise.
20500 * commands/ieee1275/suspend.c: Likewise.
20501 * disk/loopback.c: Likewise.
20502 * disk/lvm.c: Likewise.
20503 * disk/raid.c: Likewise.
20504 * disk/efi/efidisk.c: Likewise.
20505 * disk/i386/pc/biosdisk.c: Likewise.
20506 * disk/ieee1275/ofdisk.c: Likewise.
20507 * font/manager.c: Likewise.
20508 * fs/affs.c: Likewise.
20509 * fs/ext2.c: Likewise.
20510 * fs/fat.c: Likewise.
20511 * fs/fshelp.c: Likewise.
20512 * fs/hfs.c: Likewise.
20513 * fs/hfsplus.c: Likewise.
20514 * fs/iso9660.c: Likewise.
20515 * fs/jfs.c: Likewise.
20516 * fs/minix.c: Likewise.
20517 * fs/sfs.c: Likewise.
20518 * fs/ufs.c: Likewise.
20519 * fs/xfs.c: Likewise.
20520 * hello/hello.c: Likewise.
20521 * include/grub/acorn_filecore.h: Likewise.
20522 * include/grub/arg.h: Likewise.
20523 * include/grub/bitmap.h: Likewise.
20524 * include/grub/boot.h: Likewise.
20525 * include/grub/cache.h: Likewise.
20526 * include/grub/device.h: Likewise.
20527 * include/grub/disk.h: Likewise.
20528 * include/grub/dl.h: Likewise.
20529 * include/grub/elfload.h: Likewise.
20530 * include/grub/env.h: Likewise.
20531 * include/grub/err.h: Likewise.
20532 * include/grub/file.h: Likewise.
20533 * include/grub/font.h: Likewise.
20534 * include/grub/fs.h: Likewise.
20535 * include/grub/fshelp.h: Likewise.
20536 * include/grub/gzio.h: Likewise.
20537 * include/grub/hfs.h: Likewise.
20538 * include/grub/kernel.h: Likewise.
20539 * include/grub/loader.h: Likewise.
20540 * include/grub/lvm.h: Likewise.
20541 * include/grub/misc.h: Likewise.
20542 * include/grub/mm.h: Likewise.
20543 * include/grub/net.h: Likewise.
20544 * include/grub/normal.h: Likewise.
20545 * include/grub/parser.h: Likewise.
20546 * include/grub/partition.h: Likewise.
20547 * include/grub/pc_partition.h: Likewise.
20548 * include/grub/raid.h: Likewise.
20549 * include/grub/rescue.h: Likewise.
20550 * include/grub/script.h: Likewise.
20551 * include/grub/setjmp.h: Likewise.
20552 * include/grub/symbol.h: Likewise.
20553 * include/grub/term.h: Likewise.
20554 * include/grub/terminfo.h: Likewise.
20555 * include/grub/tparm.h: Likewise.
20556 * include/grub/types.h: Likewise.
20557 * include/grub/video.h: Likewise.
20558 * include/grub/efi/api.h: Likewise.
20559 * include/grub/efi/chainloader.h: Likewise.
20560 * include/grub/efi/console.h: Likewise.
20561 * include/grub/efi/console_control.h: Likewise.
20562 * include/grub/efi/disk.h: Likewise.
20563 * include/grub/efi/efi.h: Likewise.
20564 * include/grub/efi/pe32.h: Likewise.
20565 * include/grub/efi/time.h: Likewise.
20566 * include/grub/i386/linux.h: Likewise.
20567 * include/grub/i386/setjmp.h: Likewise.
20568 * include/grub/i386/types.h: Likewise.
20569 * include/grub/i386/efi/kernel.h: Likewise.
20570 * include/grub/i386/efi/loader.h: Likewise.
20571 * include/grub/i386/efi/time.h: Likewise.
20572 * include/grub/i386/pc/biosdisk.h: Likewise.
20573 * include/grub/i386/pc/boot.h: Likewise.
20574 * include/grub/i386/pc/chainloader.h: Likewise.
20575 * include/grub/i386/pc/console.h: Likewise.
20576 * include/grub/i386/pc/init.h: Likewise.
20577 * include/grub/i386/pc/kernel.h: Likewise.
20578 * include/grub/i386/pc/loader.h: Likewise.
20579 * include/grub/i386/pc/memory.h: Likewise.
20580 * include/grub/i386/pc/multiboot.h: Likewise.
20581 * include/grub/i386/pc/serial.h: Likewise.
20582 * include/grub/i386/pc/time.h: Likewise.
20583 * include/grub/i386/pc/vbe.h: Likewise.
20584 * include/grub/i386/pc/vbeblit.h: Likewise.
20585 * include/grub/i386/pc/vbefill.h: Likewise.
20586 * include/grub/i386/pc/vbeutil.h: Likewise.
20587 * include/grub/i386/pc/vga.h: Likewise.
20588 * include/grub/ieee1275/ieee1275.h: Likewise.
20589 * include/grub/ieee1275/ofdisk.h: Likewise.
20590 * include/grub/powerpc/libgcc.h: Likewise.
20591 * include/grub/powerpc/setjmp.h: Likewise.
20592 * include/grub/powerpc/types.h: Likewise.
20593 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
20594 * include/grub/powerpc/ieee1275/console.h: Likewise.
20595 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
20596 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
20597 * include/grub/powerpc/ieee1275/loader.h: Likewise.
20598 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
20599 * include/grub/powerpc/ieee1275/time.h: Likewise.
20600 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
20601 * include/grub/sparc64/libgcc.h: Likewise.
20602 * include/grub/sparc64/setjmp.h: Likewise.
20603 * include/grub/sparc64/types.h: Likewise.
20604 * include/grub/sparc64/ieee1275/console.h: Likewise.
20605 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
20606 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
20607 * include/grub/sparc64/ieee1275/time.h: Likewise.
20608 * include/grub/util/biosdisk.h: Likewise.
20609 * include/grub/util/getroot.h: Likewise.
20610 * include/grub/util/lvm.h: Likewise.
20611 * include/grub/util/misc.h: Likewise.
20612 * include/grub/util/raid.h: Likewise.
20613 * include/grub/util/resolve.h: Likewise.
20614 * io/gzio.c: Likewise.
20615 * kern/device.c: Likewise.
20616 * kern/disk.c: Likewise.
20617 * kern/dl.c: Likewise.
20618 * kern/elf.c: Likewise.
20619 * kern/env.c: Likewise.
20620 * kern/err.c: Likewise.
20621 * kern/file.c: Likewise.
20622 * kern/fs.c: Likewise.
20623 * kern/loader.c: Likewise.
20624 * kern/main.c: Likewise.
20625 * kern/misc.c: Likewise.
20626 * kern/mm.c: Likewise.
20627 * kern/parser.c: Likewise.
20628 * kern/partition.c: Likewise.
20629 * kern/rescue.c: Likewise.
20630 * kern/term.c: Likewise.
20631 * kern/efi/efi.c: Likewise.
20632 * kern/efi/init.c: Likewise.
20633 * kern/efi/mm.c: Likewise.
20634 * kern/i386/dl.c: Likewise.
20635 * kern/i386/efi/init.c: Likewise.
20636 * kern/i386/efi/startup.S: Likewise.
20637 * kern/i386/pc/init.c: Likewise.
20638 * kern/i386/pc/lzo1x.S: Likewise.
20639 * kern/i386/pc/startup.S: Likewise.
20640 * kern/ieee1275/ieee1275.c: Likewise.
20641 * kern/powerpc/cache.S: Likewise.
20642 * kern/powerpc/dl.c: Likewise.
20643 * kern/powerpc/ieee1275/cmain.c: Likewise.
20644 * kern/powerpc/ieee1275/crt0.S: Likewise.
20645 * kern/powerpc/ieee1275/init.c: Likewise.
20646 * kern/powerpc/ieee1275/openfw.c: Likewise.
20647 * kern/sparc64/cache.S: Likewise.
20648 * kern/sparc64/dl.c: Likewise.
20649 * kern/sparc64/ieee1275/init.c: Likewise.
20650 * kern/sparc64/ieee1275/openfw.c: Likewise.
20651 * loader/efi/chainloader.c: Likewise.
20652 * loader/efi/chainloader_normal.c: Likewise.
20653 * loader/i386/efi/linux.c: Likewise.
20654 * loader/i386/efi/linux_normal.c: Likewise.
20655 * loader/i386/pc/chainloader.c: Likewise.
20656 * loader/i386/pc/chainloader_normal.c: Likewise.
20657 * loader/i386/pc/linux.c: Likewise.
20658 * loader/i386/pc/linux_normal.c: Likewise.
20659 * loader/i386/pc/multiboot.c: Likewise.
20660 * loader/i386/pc/multiboot_normal.c: Likewise.
20661 * loader/powerpc/ieee1275/linux.c: Likewise.
20662 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
20663 * normal/arg.c: Likewise.
20664 * normal/cmdline.c: Likewise.
20665 * normal/command.c: Likewise.
20666 * normal/completion.c: Likewise.
20667 * normal/execute.c: Likewise.
20668 * normal/function.c: Likewise.
20669 * normal/lexer.c: Likewise.
20670 * normal/main.c: Likewise.
20671 * normal/menu.c: Likewise.
20672 * normal/menu_entry.c: Likewise.
20673 * normal/misc.c: Likewise.
20674 * normal/parser.y: Likewise.
20675 * normal/script.c: Likewise.
20676 * normal/i386/setjmp.S: Likewise.
20677 * normal/powerpc/setjmp.S: Likewise.
20678 * normal/sparc64/setjmp.S: Likewise.
20679 * partmap/acorn.c: Likewise.
20680 * partmap/amiga.c: Likewise.
20681 * partmap/apple.c: Likewise.
20682 * partmap/gpt.c: Likewise.
20683 * partmap/pc.c: Likewise.
20684 * partmap/sun.c: Likewise.
20685 * term/gfxterm.c: Likewise.
20686 * term/terminfo.c: Likewise.
20687 * term/efi/console.c: Likewise.
20688 * term/i386/pc/console.c: Likewise.
20689 * term/i386/pc/serial.c: Likewise.
20690 * term/i386/pc/vesafb.c: Likewise.
20691 * term/i386/pc/vga.c: Likewise.
20692 * term/ieee1275/ofconsole.c: Likewise.
20693 * util/biosdisk.c: Likewise.
20694 * util/console.c: Likewise.
20695 * util/genmoddep.c: Likewise.
20696 * util/getroot.c: Likewise.
20697 * util/grub-emu.c: Likewise.
20698 * util/grub-mkdevicemap.c: Likewise.
20699 * util/grub-probe.c: Likewise.
20700 * util/lvm.c: Likewise.
20701 * util/misc.c: Likewise.
20702 * util/raid.c: Likewise.
20703 * util/resolve.c: Likewise.
20704 * util/update-grub.in: Likewise.
20705 * util/update-grub_lib.in: Likewise.
20706 * util/grub.d/00_header.in: Likewise.
20707 * util/grub.d/10_hurd.in: Likewise.
20708 * util/grub.d/10_linux.in: Likewise.
20709 * util/i386/efi/grub-install.in: Likewise.
20710 * util/i386/efi/grub-mkimage.c: Likewise.
20711 * util/i386/pc/grub-install.in: Likewise.
20712 * util/i386/pc/grub-mkimage.c: Likewise.
20713 * util/i386/pc/grub-mkrescue.in: Likewise.
20714 * util/i386/pc/grub-setup.c: Likewise.
20715 * util/i386/pc/misc.c: Likewise.
20716 * util/powerpc/ieee1275/grub-install.in: Likewise.
20717 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
20718 * util/powerpc/ieee1275/misc.c: Likewise.
20719 * video/bitmap.c: Likewise.
20720 * video/video.c: Likewise.
20721 * video/i386/pc/vbe.c: Likewise.
20722 * video/i386/pc/vbeblit.c: Likewise.
20723 * video/i386/pc/vbefill.c: Likewise.
20724 * video/i386/pc/vbeutil.c: Likewise.
20725 * video/readers/tga.c: Likewise.
20726
3572d015 207272007-07-02 Robert Millan <rmh@aybabtu.com>
20728
20729 * conf/i386-efi.rmk: Replace obsolete reference to
20730 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
20731 with util/getroot.c.
20732 * conf/powerpc-ieee1275.rmk: Likewise.
20733 * conf/sparc64-ieee1275.rmk: Likewise.
20734
20735 * util/grub-emu.c (main): Fix unchecked pointer handling.
20736
2c2a681b 207372007-07-02 Robert Millan <rmh@aybabtu.com>
20738
20739 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
20740 invocation to fail, in order to support partition-less media.
20741
20742 * util/i386/pc/grub-install.in: Likewise.
20743
20744 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
20745 which fs or partmap modules are needed (akin to its sister scripts).
20746
20747 Also use grub-probe to get rid of unportable /proc/mounts check.
20748
20749 Print the same informational message that the other scripts do, before
fe6b695a 20750 exiting.
2c2a681b 20751
6193defe 207522007-06-23 Robert Millan <rmh@aybabtu.com>
20753
fe6b695a 20754 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 20755 a font file can be found and, if so, echo the GRUB path to it.
20756
20757 * util/update-grub.in: Handle multiple terminals depending on user
20758 input, platform availability and font file presence. Propagate
20759 variables of our findings to /etc/grub.d/ children.
20760
20761 * util/grub.d/00_header.in: Handle multiple terminals, based on
20762 environment setup by update-grub.
20763
eface1dc 207642007-06-23 Robert Millan <rmh@aybabtu.com>
20765
ba50d28f 20766 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 20767
bf697e28 207682007-06-21 Robert Millan <rmh@aybabtu.com>
20769
20770 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
20771 indicate end of data section in kernel image.
20772 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
20773 GRUB_KERNEL_MACHINE_DATA_END.
20774
20775 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
20776 space for it.
20777 * kern/i386/efi/startup.S: Likewise.
20778
20779 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
20780 during image generation. Implement --prefix option to override this
20781 patch.
20782 * util/i386/efi/grub-mkimage.c: Likewise.
20783
20784 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
20785 code to make path relative to its root into a separate function.
20786
20787 * util/i386/pc/grub-install.in: Use newly provided
20788 make_system_path_relative_to_its_root() to convert ${grubdir}, then
20789 pass the result to grub-install --prefix.
20790
baa574b4 207912007-06-13 Robert Millan <rmh@aybabtu.com>
20792
20793 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
20794 DEFAULT_DEVICE_MAP.
20795 * util/grub-emu.c: Use above definitions from misc.h instead of
20796 defining them.
20797 * util/grub-mkdevicemap.c: Likewise.
20798 * util/i386/pc/grub-setup.c: Likewise.
20799 * util/grub-probe.c: Likewise.
20800 (probe): Abort with grub_util_error() when either
20801 grub_guess_root_device or grub_util_get_grub_dev fails.
20802
0215dcbf 208032007-06-12 Robert Millan <rmh@aybabtu.com>
20804
20805 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
20806 "pager" assignment.
20807 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
20808 "pcdata".
20809 * util/grub-probe.c (probe): Likewise for "drive_name".
20810
8af2ab7b 208112007-06-11 Robert Millan <rmh@aybabtu.com>
20812
20813 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
20814 not just the cdrom one.
20815
59d31694 208162007-06-11 Robert Millan <rmh@aybabtu.com>
20817
20818 * util/i386/pc/grub-mkrescue.in: Add "set -e".
20819 Add --pkglibdir=DIR option to override pkglibdir.
20820 Mention --image-type=TYPE in help output.
20821 Fix --grub-mkimage (it was a no-op).
fe6b695a 20822 Abort gracefully when no parameter is given.
59d31694 20823
7ee367e4 208242007-06-11 Robert Millan <rmh@aybabtu.com>
20825
20826 * util/i386/pc/grub-mkrescue.in: New file.
20827 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
20828 * Makefile.in: Handle bin_SCRIPTS.
20829
29b0ed46 208302007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
20831
20832 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
20833 list of video modes.
20834
c0f90770 208352007-06-06 Robert Millan <rmh@aybabtu.com>
20836
20837 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
20838 file doesn't exist, or if it is in a filesystem grub can't read.
20839
20840 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
20841 not abort if GRUB_DRIVE could not be defined. Rearrange generated
20842 header comment to fit in 80 columns when the variables are resolved.
20843
20844 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
20845 could be identified by update-grub. Remove redundant check for
fe6b695a 20846 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 20847 handles that).
20848
fb36dc26 208492007-06-04 Robert Millan <rmh@aybabtu.com>
20850
20851 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
20852
20853 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
20854
20855 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
20856
0c68c93e 208572007-06-04 Robert Millan <rmh@aybabtu.com>
20858
20859 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
20860
20861 * include/grub/partition.h: Declare grub_apple_partition_map_init and
20862 grub_apple_partition_map_fini.
20863
20864 * util/biosdisk.c
20865 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
20866 to access >2 TiB disks).
20867
20868 Print disk->total_sectors with %llu instead of %lu, since this
20869 variable is always 64-bit (prevents wrong disk size from being displayed
20870 on either >2 TiB disk or big-endian CPU).
20871
20872 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
20873 into a generic case that supports all (sane) partition maps.
20874
20875 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
20876 breaks big-endian.
20877
20878 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
20879 and grub_apple_partition_map_fini() after that.
20880
0f23eb74 208812007-06-01 Robert Millan <rmh@aybabtu.com>
20882
20883 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
20884
20885 * util/grub.d/00_header.in: Only enable gfxterm when
20886 convert_system_path_to_grub_path() succeeds.
20887
42c71976 208882007-05-20 Robert Millan <rmh@aybabtu.com>
20889
20890 * util/update-grub_lib.in: New file.
20891 * DISTLIST: Add update-grub_lib.in.
20892 * conf/common.rmk: Generate update-grub_lib and install it in
20893 $(lib_DATA).
20894 * Makefile.in: Add install routine for $(lib_DATA).
20895
20896 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
20897 function provided by update-grub_lib to support arbitrary paths of
20898 unifont.pff.
20899 * util/update-grub.in: Use convert_system_path_to_grub_path() to
20900 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
20901
5beb2291 209022007-05-19 Robert Millan <rmh@aybabtu.com>
20903
20904 * commands/i386/cpuid.c: New module.
20905 * DISTLIST: Add it.
20906 * conf/i386-efi.rmk: Enable cpuid.mod.
20907 * conf/i386-pc.rmk: Likewise.
20908
7262eca1 209092007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
20910
20911 * kern/disk.c (grub_disk_read): Check return value of
20912 grub_realloc().
20913
260ba823 209142007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
20915
20916 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
20917 arrays.
20918 * disk/raid.c (grub_raid_open): Likewise.
20919
1ecb6cf2 209202007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
20921
20922 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
20923 stack instead of on the heap.
20924
20925 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
20926 before doing a read on it.
20927
20928 * configure.ac: Only use -fno-stack-protector for the target
20929 environment.
f19dbdb7 20930
21c8cbb1 209312007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
20932
20933 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
20934 __attribute_ ((unused)) to mode_type argument.
20935
20936 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 20937
21c8cbb1 20938 * kern/misc.c (memcmp): Fix prototype.
20939
20940 * include/grub/partition.h [GRUB_UTIL]
20941 (grub_gpt_partition_map_init): Add prototype.
20942 (grub_gpt_partition_map_fini): Likewise.
20943
20944 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
20945 at the right place.
20946
20947 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
20948 (grub_fat_read_data): Likewise.
20949 (grub_fat_find_dir): Likewise.
20950
20951 * font/manager.c (find_glyph): Make table a const.
20952 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 20953
849d55d3 209542007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
20955
20956 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
20957 code, first search for device in /dev/mapper, then in /dev.
20958 (grub_util_get_grub_dev): New function.
20959 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
20960 prototype.
20961 * util/grub-probe.c (probe): Remove check for RAID, call
20962 grub_util_get_grub_dev() instead of
20963 grub_util_biosdisk_get_grub_dev().
20964 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
20965 grub_util_biosdisk_get_grub_dev().
20966 * util/i386/pc/grub-setup.c (main): Likewise.
20967
8fff7c2f 209682007-05-16 Robert Millan <rmh@aybabtu.com>
20969
20970 * DISTLIST: Update for the latest changes.
20971 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
20972 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
20973 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
20974 grub/util/biosdisk.h.
20975 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
20976 grub/util/biosdisk.h.
20977
48e12b52 209782007-05-16 Robert Millan <rmh@aybabtu.com>
20979
20980 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
20981
46b9d128 209822007-05-16 Robert Millan <rmh@aybabtu.com>
20983
20984 * util/i386/efi/grub-install.in: New.
20985 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
20986 newly added grub-install.
20987 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
20988 include.
20989 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
20990 grub/util/biosdisk.h.
20991 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
20992 grub/util/biosdisk.h.
20993
2d1a40a9 209942007-05-16 Robert Millan <rmh@aybabtu.com>
20995
20996 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
20997 * include/grub/util/biosdisk.h: ... here.
20998 * util/i386/pc/biosdisk.c: Moved to ...
20999 * util/biosdisk.c: ... here.
21000 * util/i386/pc/getroot.c: Moved to ...
21001 * util/getroot.c: ... here.
21002 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
21003 * util/grub-mkdevicemap.c: ... here.
21004 * util/i386/pc/grub-probe.c: Moved to ...
21005 * util/grub-probe.c: ... here.
21006
9e26e3bc 210072007-05-15 Robert Millan <rmh@aybabtu.com>
21008
21009 * util/update-grub.in: Remove duplicated line in grub.cfg header
21010 message.
21011
57f96397 210122007-05-13 Robert Millan <rmh@aybabtu.com>
21013
21014 * util/update-grub.in: Fix a few assumptions about the devices holding
21015 /, /boot and /boot/grub being the same.
21016 * util/grub.d/00_header.in: Likewise.
21017 * util/grub.d/10_hurd.in: Likewise.
21018 * util/grub.d/10_linux.in: Likewise.
21019
21020 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
21021 patterns. Use that to define the `.old' suffix as older than `'.
21022
21023 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
21024
21025 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
21026 the grub.cfg header message.
21027
2e610d62 210282007-05-11 Robert Millan <rmh@aybabtu.com>
21029
21030 * util/update-grub.in: Create device.map if it doesn't already exist,
21031 before attempting to run grub-probe.
21032 Check for grub-probe and grub-mkdevicemap with the same code
21033 grub-install is using.
21034 Remove test mode.
21035
3f6a10ef 210362007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
21037
21038 * Makefile.in: Add the datarootdir autoconf variable.
21039
02e7b75e 210402007-05-09 Robert Millan <rmh@aybabtu.com>
21041
21042 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 21043 fail gracefully if dev->disk->partition == NULL.
02e7b75e 21044
75f396cc 210452007-05-07 Robert Millan <rmh@aybabtu.com>
21046
21047 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
21048 determine partition map module.
21049 * util/i386/pc/grub-install.in: Use this feature to decide which
21050 partition module to load, instead of hardcoding pc and gpt.
21051
da65cb36 210522007-05-07 Robert Millan <rmh@aybabtu.com>
21053
21054 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
21055 source directory differs from build directory.
21056
b57d6a91 210572007-05-05 Robert Millan <rmh@aybabtu.com>
21058
21059 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
21060 initialisation.
21061
509d00f1 210622007-05-05 Robert Millan <rmh@aybabtu.com>
21063
21064 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
21065
c48f23ef 210662007-05-05 Robert Millan <rmh@aybabtu.com>
21067
21068 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
21069 command-line arguments via ${GRUB_CMDLINE_LINUX}.
21070
20b97658 210712007-05-05 Robert Millan <rmh@aybabtu.com>
21072
21073 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
21074 (grub_probe_SOURCES): Likewise.
21075 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
21076 GPT and initialize dos_part and bsd_part accordingly.
21077 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
21078 install_bsd_part.
21079 (main): Activate gpt module for use during partition identification,
21080 and deactivate it afterwards.
21081 * util/i386/pc/grub-install.in: Add gpt module to core.img.
21082 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
21083 partition identification, and deactivate it afterwards.
21084
99123174 210852007-05-05 Robert Millan <rmh@aybabtu.com>
21086
21087 * term/i386/pc/console.c (grub_console_fini): Call
21088 grub_term_set_current() before grub_term_unregister().
21089
ebd97f6e 210902007-05-04 Robert Millan <rmh@aybabtu.com>
21091
21092 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
21093 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
21094 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
21095 and update-grub_DATA.
21096 * conf/common.rmk: Build and install update-grub components.
21097 * conf/common.mk: Regenerate.
21098 * util/update-grub.in: New. Core of update-grub.
21099 * util/grub.d/00_header.in: New. Generates grub.cfg header.
21100 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
21101 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
21102 * util/grub.d/README: New. Document grub.d directory layout.
21103
b06a264d 211042007-05-01 Robert Millan <rmh@aybabtu.com>
21105
21106 * util/grub-emu.c: Move initialization functions
21107 grub_util_biosdisk_init() and grub_init_all() before
21108 grub_util_biosdisk_get_grub_dev(), which relies on them.
21109
41f0050e 211102007-04-19 Robert Millan <rmh@aybabtu.com>
21111
21112 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
21113 it is used later.
21114
04582bb3 211152007-04-18 Jerone Young <jerone@gmail.com>
21116
f19dbdb7 21117 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 21118 stanza.
21119
08db4632 211202007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 21121
08db4632 21122 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
21123 continue on and look for device node with real device name.
21124
801b76be 211252007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 21126
fe6b695a 21127 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 21128 ability.
21129 * Makefile.in: Add autoconf package transformation code.
21130 * util/i386/pc/grub-install.in: Likewise.
21131 * util/powerpc/ieee1275/grub-install.in: Likewise.
21132
6795c4e1 211332007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
21134
21135 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
21136 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
21137 (EXT2_REVISION): Likewise.
21138 (EXT2_INODE_SIZE): Likewise.
21139 (struct grub_ext2_block_group): Added a missing member
21140 "used_dirs".
21141 (grub_ext2_read_inode): Divide by the inode size in a superblock
21142 instead of 128 to obtain INODES_PER_BLOCK.
21143 Use the macro EXT2_INODE_SIZE instead of directly using
21144 SBLOCK->INODE_SIZE.
21145
d70af616 211462007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
21147
21148 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
21149 superblock instead of the structure size to compute an
21150 offset. This fixes the problem that GRUB could not read a
21151 filesystem when inode size is different from 128-byte.
21152
3b801603 211532007-03-05 Marco Gerards <marco@gnu.org>
21154
21155 * normal/main.c (read_config_file): When "menu" is not set, create
21156 an initial context.
21157
4785bfe4 211582007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21159
21160 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
21161 (HEAP_LIMIT): New macro.
21162 (grub_claim_heap): Claim memory up to `heaplimit'.
21163
a0cbb023 211642007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21165
21166 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
21167 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
21168 (_start): Likewise.
21169 (grub_arch_modules_addr): Return address after `_end'.
21170 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
21171 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
21172 (add_segments): Calculate `_end' from phdr size and location.
21173 (ALIGN_UP): Moved to ...
21174 * include/grub/misc.h: here.
21175 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
21176 New macro.
21177 (GRUB_IEEE1275_MODULE_BASE): Removed.
21178
fd7d8eba 211792007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21180
21181 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
21182 loop boundary.
21183
9b09e6fc 211842007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21185
21186 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
21187 All users updated.
21188 (grub_elf64_load_hook_t): Likewise.
21189 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
21190 debug output.
21191
3ce27299 211922007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21193
21194 * kern/mm.c: Update copyright.
21195 (grub_mm_debug): Correct syntax error.
21196 (grub_mm_dump_free): New function.
21197 (grub_debug_free): Call `grub_free'.
21198 * include/grub/mm.h: Update copyright.
21199 (grub_mm_dump_free): Add declaration.
21200
077d5fee 212012007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21202
21203 * include/grub/ieee1275/ieee1275.h: Update copyright.
21204 * kern/powerpc/ieee1275/init.c: Likewise.
21205 * kern/powerpc/ieee1275/openfw.c: Likewise.
21206
21207 * loader/powerpc/ieee1275/linux.c: Likewise.
21208 * include/grub/elfload.h: Likewise.
21209 * kern/elf.c: Likewise.
21210 (grub_elf32_load): Pass `base' and `size' parameters. Update all
21211 callers.
21212 (grub_elf64_load): Likewise.
21213 (grub_elf32_load_segment): Move to a nested function.
21214 (grub_elf64_load_segment): Likewise.
21215
dc946850 212162007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21217
21218 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
21219 prototype.
21220 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
21221 (grub_heap_len): Likewise.
21222 (HEAP_SIZE): New macro.
21223 (grub_claim_heap): New function.
21224 (grub_machine_init): Don't claim heap directly. Call
21225 `grub_claim_heap'.
21226 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
21227 (grub_available_iterate): New function.
21228
baa2a121 212292007-02-03 Thomas Schwinge <tschwinge@gnu.org>
21230
21231 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
21232 * configure.ac: Use it for testing the HOST and TARGET compilers.
21233
4fe9862e 212342006-12-13 Thomas Schwinge <tschwinge@gnu.org>
21235
21236 * Makefile.in (enable_grub_emu): New variable.
21237 * configure.ac (--enable-grub-emu): New option.
21238 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
21239 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
21240 * conf/i386-pc.rmk: Likewise.
21241 * conf/powerpc-ieee1275.rmk: Likewise.
21242 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
21243
a8aa5762 212442006-12-12 Marco Gerards <marco@gnu.org>
21245
21246 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
21247
21248 * kern/env.c (grub_env_unset): Don't free the member `value' when
21249 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
21250 pointer.
21251
21252 * normal/main.c (current_menu): Removed.
21253 (free_menu): Unset the `menu' environment variable.
21254 (grub_normal_menu_addentry): Make use of the environment variable
21255 `menu', instead of using the global `current_menu'. Allocate
21256 memory for the sourcecode of this entry.
21257 (read_config_file): New argument `nested', changed all callers.
21258 Only in the case of a new context, initialize a new menu. Set the
21259 `menu' environment variable.
21260 (grub_normal_execute): Don't set and unset the environment
21261 variable `menu' here anymore. Only free the menu when leaving the
21262 context.
21263
21264 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
21265 leak.
21266
957b3a3e 212672006-12-11 Marco Gerards <marco@gnu.org>
21268
21269 * normal/menu_entry.c (run): Fix off by one bug so the last line
21270 is executed. Move the loader check to outside the loop.
21271
ef875714 212722006-12-08 Hollis Blanchard <hollis@penguinppc.org>
21273
21274 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
21275
4e739985 212762006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
21277
21278 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
21279 the number of sectors. Reported by Andrey Shuvikov
21280 <mr_hyro@yahoo.com>.
f19dbdb7 21281
790707f2 212822006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
21283
21284 * kern/disk.c (grub_disk_read): When there is a read error, always
21285 try to read only the necessary data.
f19dbdb7 21286
790707f2 21287 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
21288 disk/raid.c.
21289 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
21290 prototype.
21291 [GRUB_UTIL] (grub_raid_fini): Likewise.
21292 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 21293 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 21294 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
21295 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
21296 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
21297 and grub_raid_fini().
f19dbdb7 21298
03e58196 212992006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
21300
21301 * include/grub/types.h (__unused): Rename to UNUSED.
21302 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
21303 (grub_elf64_size): Likewise.
f19dbdb7 21304
ae4f23bf 213052006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21306
21307 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
21308 grub_error_push and grub_error_pop in the error-handling path.
21309 (grub_elf32_load_segment): Only call grub_file_read with non-zero
21310 length.
21311
2166cc83 213122006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21313
21314 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
21315 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21316 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21317 (kernel_elf_SOURCES): Likewise.
21318 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
21319 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
21320 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21321 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21322 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
21323 (elf_mod_SOURCES): New variable.
21324 (elf_mod_CFLAGS): Likewise.
21325 (elf_mod_LDFLAGS): Likewise.
21326 * include/grub/types.h (__unused): New macro.
21327 * include/grub/elfload.h: New file.
21328 * kern/elf.c: Likewise.
21329 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
21330 (ELF32_LOADMASK): New macro.
21331 (ELF64_LOADMASK): Likewise.
21332 (vmlinux): Removed.
21333 (grub_linux_load32): New function.
21334 (grub_linux_load64): Likewise.
21335 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
21336 Use grub_elf_t instead of grub_file_t.
21337
a09d5aa5 213382006-11-02 Hollis Blanchard <hollis@penguinppc.org>
21339
21340 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
21341 `catch_result' to struct set_color_args.
21342
d976fc51 213432006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
21344
21345 * normal/menu.c: Include grub/script.h.
21346 * normal/menu_entry.c: Likewise.
21347 * include/grub/normal.h: Do not include grub/script.h.
21348
67507549 213492006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21350
21351 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
21352
69203a99 213532006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21354
21355 * kern/disk.c (grub_disk_open): Print debug messages when opening a
21356 disk.
21357 (grub_disk_close): Print debug messages when closing a disk.
21358 (grub_disk_read): Print debug messages when disk read fails.
21359 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
21360 filesystem type.
21361 * kern/partition.c: Include misc.h.
21362 (grub_partition_iterate): Print debug messages when detecting
21363 partition type.
21364
e2b8278c 213652006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21366
21367 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
21368 is negative.
21369 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
21370
97b2f2ff 213712006-10-26 Hollis Blanchard <hollis@penguinppc.org>
21372
21373 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
21374 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
21375
6555d655 213762006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
21377
21378 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
21379 instead of sizeof(lv). Patch by Michael Guntsche.
21380
4d42b77f 213812006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
21382
21383 * disk/lvm.c: Rename VGS to VG_LIST.
21384 (grub_lvm_iterate): Change VGS->LV to VG-LV.
21385 (grub_lvm_open): Likewise.
21386 Thanks to Michael Guntsche for finding this bug.
21387
5d74d927 213882006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
21389
21390 * configure.ac (AC_INIT): Bumped to 1.95.
21391
a1bb27e4 213922006-10-14 Robert Millan <rmh@aybabtu.com>
21393
21394 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
21395 with "/dev/.static/dev/md".
21396
e0994b8b 213972006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21398
21399 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
21400 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
21401 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
21402 DRIVE_NAME are always freed.
21403
21404 * util/i386/pc/biosdisk.c (make_device_name): Add one into
21405 DOS_PART, as a DOS partition is counted from one instead of zero
21406 now. Reported by Robert Millan.
21407
ddd5cee9 214082006-10-14 Robert Millan <rmh@aybabtu.com>
21409
21410 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
21411 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
21412 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
21413 string returned by grub_guess_root_device.
21414 * util/i386/pc/grub-setup.c: Likewise.
21415 * util/i386/pc/grub-probefs.c: Likewise.
21416
21417 * util/i386/pc/grub-probefs.c: Rename to ...
21418 * util/i386/pc/grub-probe.c: ... this.
21419 * DISTLIST: Remove grub-probefs, add grub-probe.
21420 * conf/i386-efi.rmk: Likewise.
21421 * conf/i386-pc.rmk: Likewise.
21422 * util/i386/pc/grub-install.in: Likewise.
21423
21424 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
21425 choose which information we want to print.
21426
2b002173 214272006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21428
21429 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
21430 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
21431 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
21432 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
21433 video/readers/tga.c and video/i386/pc/vbeutil.c.
21434
214352006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
21436
21437 Added support for RAID and LVM.
f19dbdb7 21438
2b002173 21439 * disk/lvm.c: New file.
21440 * disk/raid.c: Likewise.
21441 * include/grub/lvm.h: Likewise.
f19dbdb7 21442 * include/grub/raid.h: Likewise.
2b002173 21443 * include/grub/util/lvm.h: Likewise.
21444 * include/grub/util/raid.h: Likewise.
21445 * util/lvm.c: Likewise.
21446 * util/raid.c: Likewise.
21447
21448 * include/grub/disk.h (grub_disk_dev_id): Add
21449 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
21450 (grub_disk_get_size): New prototype.
21451 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
21452 returns a partition.
21453 (grub_disk_get_size): New function.
f19dbdb7 21454
2b002173 21455 * kern/i386/pc/init.c (make_install_device): Copy the prefix
21456 verbatim if grub_install_dos_part is -2.
21457
21458 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
21459 and LVM devices.
21460
21461 * util/i386/pc/grub-setup.c (setup): New argument
21462 MUST_EMBED. Force embedding of GRUB when the argument is
21463 true. Close FILE before returning.
21464 (main): Add support for RAID and LVM.
f19dbdb7 21465
2b002173 21466 * conf/common.rmk: Add RAID and LVM modules.
21467 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
21468 util/lvm.c.
21469 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
21470
21471 * kern/misc.c (grub_strstr): New function.
21472 * include/grub/misc.h (grub_strstr): New prototype.
21473
050548d0 214742006-10-10 Tristan Gingold <tristan.gingold@bull.net>
21475
21476 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
21477
da849d2d 214782006-10-05 Tristan Gingold <tristan.gingold@bull.net>
21479
21480 * kern/misc.c (grub_strtoull): Guess the base only if not
21481 specified.
21482
97b2f2ff 214832006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 21484
21485 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
21486 PowerMac support.
21487
97b2f2ff 214882006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 21489
21490 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
21491
21492 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
21493 Remove `flags' argument. All callers changed.
21494 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
21495 (IEEE1275_IHANDLE_INVALID): New variable.
21496 (IEEE1275_CELL_INVALID): New variable.
21497 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
21498 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
21499 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
21500 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
21501 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
21502 codes from Open Firmware. All callers updated.
21503 (grub_ieee1275_next_property): Directly return Open Firmware return
21504 code.
21505 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
21506 Standardize error checking from `grub_ieee1275_get_property'.
21507 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
21508 `devalias' to `aliases'. Correct comments. Consolidate error paths.
21509
97b2f2ff 215102006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 21511
21512 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
21513 `instance_to_package_args' to `instance_to_path_args'.
21514
21515 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
21516 `grub_ieee1275_chosen'.
21517
21518 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
21519 `grub_ieee1275_interpret'.
21520
97b2f2ff 215212006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 21522
21523 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
21524
97b2f2ff 215252006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 21526
21527 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
21528 (__cmpdi): Likewise.
21529
21530 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
21531 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
21532 `grub_ssize_t'.
21533
02bb8acc 21534 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 21535
21536 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
21537 to type `grub_ssize_t'.
21538 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
21539
7f9a8531 215402006-09-22 Marco Gerards <marco@gnu.org>
21541
21542 * normal/script.c (grub_script_create_cmdmenu): Skip leading
21543 newlines.
21544
b5ef1102 215452006-09-22 Marco Gerards <marco@gnu.org>
21546
21547 * commands/echo.c: New file.
21548
21549 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
21550
21551 * conf/common.rmk (echo_mod_SOURCES): New variable.
21552 (echo_mod_CFLAGS): Likewise.
21553 (echo_mod_LDFLAGS): Likewise.
21554
2cff3677 215552006-09-22 Marco Gerards <marco@gnu.org>
21556
21557 * normal/main.c (get_line): Malloc memory instead of using
21558 preallocated memory. Removed the arguments `cmdline' and
21559 `max_len'. Updated all callers.
21560
6ba4688b 215612006-09-22 Marco Gerards <marco@gnu.org>
21562
21563 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
21564 (normal_mod_DEPENDENCIES): Likewise.
21565
21566 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
21567 (normal_mod_DEPENDENCIES): Likewise.
21568
21569 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
21570
e02ac02c 215712006-09-22 Johan Rydberg <jrydberg@gnu.org>
21572
21573 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
21574 programs.
21575 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
21576 (normal_mod_DEPENDENCIES): Likewise.
21577 * conf/i386-pc.mk: Regenerate.
21578 * conf/i386-efi.mk: Likewise
21579 * conf/common.mk: Likewise.
21580 * conf/powerpc-ieee1275.mk: Likewise.
21581 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 21582
8d252e44 215832006-09-22 Robert Millan <rmh@aybabtu.com>
21584
21585 Sync with i386 version.
21586 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
21587 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
21588
209bf7ac 215892006-09-21 Robert Millan <rmh@aybabtu.com>
21590
21591 Import from GRUB Legacy (lib/device.c):
21592 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
21593 (init_device_map) [__linux__]: Add support for I2O devices.
21594
6b146090 215952006-09-14 Marco Gerards <marco@gnu.org>
21596
21597 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
21598 `-melf_i386'.
21599
e38600a8 216002006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 21601
21602 * util/i386/pc/grub-install.in: Skip menu.lst when removing
21603 /boot/grub/*.lst.
78fa1790 21604
2952da5d 21605 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 21606
2952da5d 21607 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
21608 before adding it to device.map.
21609
01b82a64 216102006-08-15 Johan Rydberg <jrydberg@gnu.org>
21611
fe6b695a 21612 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 21613 compiles a file; using the -MD option.
21614 * conf/common.mk: Regenerate.
21615 * conf/i386-pc.mk: Likewise.
21616 * conf/i386-efi.mk: Likewise.
21617 * conf/powerpc-ieee1275.mk: Likewise.
21618 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 21619
1064790d 216202006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
21621
21622 Move the prototypes of grub_setjmp and grub_longjmp to
21623 cpu/setjmp.h, so that each architecture may specify different
21624 attributes.
f19dbdb7 21625
1064790d 21626 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
21627 (grub_longjmp): Likewise.
21628 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
21629 (grub_longjmp): Likewise.
21630 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
21631 (grub_longjmp): Likewise.
21632
21633 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
21634 [!GRUB_UTIL] (grub_longjmp): Removed.
21635
29dda3ed 216362006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
21637
21638 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
21639 "color!" method does not return any value.
21640
ad2a06ed 216412006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21642
21643 * include/grub/bitmap.h: New file.
21644
21645 * include/grub/i386/pc/vbeutil.h: Likewise.
21646
21647 * video/bitmap.c: Likewise.
21648
21649 * video/readers/tga.c: Likewise.
21650
21651 * video/i386/pc/vbeutil.c: Likewise.
21652
21653 * commands/videotest.c: Code cleanup and updated to reflect to new
21654 video API.
21655
21656 * term/gfxterm.c: Likewise.
21657
21658 * video/video.c: Likewise.
21659
21660 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
21661 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
21662 (bitmap_mod_SOURCES): New entry.
21663 (bitmap_mod_CFLAGS): Likewise.
21664 (bitmap_mod_LDFLAGS): Likewise.
21665 (tga_mod_SOURCES): Likewise.
21666 (tga_mod_CFLAGS): Likewise.
21667 (tga_mod_LDFLAGS): Likewise.
21668
21669 * include/grub/video.h (grub_video_blit_operators): New enum type.
21670 (grub_video_render_target): Changed as forward declaration and moved
21671 actual definition to be video driver specific.
21672 (grub_video_adapter.blit_bitmap): Added blitting operator.
21673 (grub_video_adapter.blit_render_target): Likewise.
21674 (grub_video_blit_bitmap): Likewise.
21675 (grub_video_blit_render_target): Likewise.
21676
21677 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
21678 driver specific render target definition.
21679 (grub_video_vbe_map_rgba): Added driver internal helper.
21680 (grub_video_vbe_unmap_color): Updated to use
21681 grub_video_i386_vbeblit_info.
21682 (grub_video_vbe_get_video_ptr): Likewise.
21683
21684 * include/grub/i386/pc/vbeblit.h
21685 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
21686 grub_video_i386_vbeblit_info.
21687 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
21688 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
21689 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
21690 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
21691 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
21692 (grub_video_i386_vbeblit_index_index): Likewise.
21693 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
21694 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
21695 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
21696 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
21697 operator.
21698 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
21699 operator.
21700
21701 * video/i386/pc/vbeblit.c: Updated to reflect changes on
21702 include/grub/i386/pc/vbeblit.h.
21703
21704 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
21705 Updated to use grub_video_i386_vbeblit_info.
21706 (grub_video_i386_vbefill_R8G8B8): Likewise.
21707 (grub_video_i386_vbefill_index): Likewise.
21708 (grub_video_i386_vbefill): Added generic filler.
21709
21710 * video/i386/pc/vbefill.c: Updated to reflect changes on
21711 include/grub/i386/pc/vbefill.h.
21712
21713 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
21714 grub_video_i386_vbeblit_info.
21715 (grub_video_vbe_unmap_color): Likewise.
21716 (grub_video_vbe_blit_glyph): Likewise.
21717 (grub_video_vbe_scroll): Likewise.
21718 (grub_video_vbe_draw_pixel): Removed function.
21719 (grub_video_vbe_get_pixel): Likewise.
21720 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
21721 updated code to use it.
21722 (common_blitter): Added common blitter for render target and bitmap.
21723 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
21724 (grub_video_vbe_blit_render_target): Likewise.
21725
bc8c036d 217262006-07-30 Johan Rydberg <jrydberg@gnu.org>
21727
21728 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
21729 is in text mode if there is no console control protocol instance
21730 available.
21731
684a8eff 217322006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21733
21734 * include/grub/video.h: Code cleanup.
21735
21736 * include/grub/i386/pc/vbe.h: Likewise.
21737
21738 * video/i386/pc/vbe.c: Likewise.
21739
21740 * video/i386/pc/vbeblit.c: Likewise.
21741
21742 * video/i386/pc/vbefill.c: Likewise.
21743
21744 * video/video.c: Likewise. Also added more comments.
21745
5915059b 217462006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21747
21748 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
21749 (struct grub_biosdisk_dap): Likewise.
21750
21751 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
21752 linkage settings for all functions.
21753
90ce5d56 217542006-07-12 Marco Gerards <marco@gnu.org>
21755
21756 * configure.ac (--enable-mm-debug): Fix typo.
21757
21758 * genkernsyms.sh.in: Use proper quoting for `CC'.
21759
43e7f879 217602006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
21761
21762 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
21763 (normal_mod_ASFLAGS): Remove "-m32".
21764
4889bdec 217652006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
21766
21767 * util/misc.c: Include config.h.
21768 [!HAVE_MEMALIGN]: Do not include malloc.h.
21769 (grub_memalign): Use posix_memalign, if present. Then, use
21770 memalign, if present. Otherwise, emit an error.
21771
21772 * util/grub-emu.c: Do not include malloc.h.
21773
21774 * include/grub/util/misc.h: Include unistd.h. This is required for
21775 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
21776 D. Eades III <hde@foobar-qux.org>.
21777
21778 * configure.ac (AC_GNU_SOURCE): Added.
21779 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
21780 type.
21781
fd39d4da 217822006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
21783
21784 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
21785 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
21786
b786f3b5 217872006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
21788
21789 * include/grub/types.h (grub_host_addr_t): Rename to
21790 grub_target_addr_t.
21791 (grub_host_off_t): Rename to grub_target_off_t.
21792 (grub_host_size_t): Rename to grub_target_size_t.
21793 (grub_host_ssize_t): Rename to grub_target_ssize_t.
21794 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
21795
21796 * include/grub/kernel.h (struct grub_module_header): Change type
21797 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
21798 (grub_module_info): Likewise.
f19dbdb7 21799
051988bb 218002006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
21801
21802 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
21803 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
21804 Velazquez <jesus.velazquez@gmail.com>.
21805
deae281b 218062006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
21807
21808 Count partitions from 1 instead of 0 in the string representation
21809 of partitions. Still use 0-based internally.
f19dbdb7 21810
deae281b 21811 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
21812 (sun_partition_map_iterate): Use grub_partition_t instead of
21813 struct grub_partition *. Cast DESC->START_CYLINDER to
21814 grub_uint64_t after converting the endian.
21815 (sun_partition_map_probe): Subtract 1 for PARTNUM.
21816 (sun_partition_map_get_name): Add 1 to P->INDEX.
21817
21818 * partmap/pc.c (grub_partition_parse): Subtract 1 for
21819 PCDATA->DOS_PART.
21820 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
21821
21822 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
21823 zero instead of one.
21824 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
21825 (gpt_partition_map_get_name): Add 1 into P->INDEX.
21826
21827 * partmap/apple.c (apple_partition_map_iterate): Change the type
21828 of POS to unsigned.
21829 (apple_partition_map_probe): Subtract 1 for PARTNUM.
21830 (apple_partition_map_get_name): Add 1 into P->INDEX.
21831
21832 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
21833 of POS to unsigned.
21834 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
21835 calculate the offset of a partition.
21836 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
21837 (amiga_partition_map_get_name): Add 1 into P->INDEX.
21838
21839 * partmap/acorn.c (acorn_partition_map_find): Change the type of
21840 SECTOR to grub_disk_addr_t.
21841 (acorn_partition_map_iterate): Likewise.
21842 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
21843 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
21844 top.
21845 (acorn_partition_map_get_name): Add 1 into P->INDEX.
21846
21847 * kern/i386/pc/init.c (make_install_device): Add 1 into
21848 GRUB_INSTALL_DOS_PART.
21849
21850 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
21851 conditional.
21852
524a1e6a 218532006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
21854
21855 Clean up the code to support 64-bit addressing in disks and
21856 files. This change is not enough for filesystems yet.
f19dbdb7 21857
524a1e6a 21858 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
21859 type of "start" to grub_uint64_t.
21860 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
21861 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
21862 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
21863 convert addresses.
21864
21865 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
21866 to grub_disk_addr_t.
21867
21868 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
21869 string.
21870
21871 * partmap/pc.c (pc_partition_map_iterate): Likewise.
21872
21873 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
21874 to char *.
21875
21876 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
21877
21878 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
21879
21880 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
21881
21882 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
21883 to grub_off_t, to detect an error from grub_file_seek.
21884 (grub_multiboot_load_elf32): Likewise.
21885
21886 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
21887 maximum unsigned long value when an overflow is detected.
21888 (grub_strtoull): New function.
21889 (grub_divmod64): Likewise.
21890 (grub_lltoa): use grub_divmod64.
21891
21892 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
21893 grub_disk_addr_t.
21894 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
21895 the pointer to next character. Use grub_strtoull instead of
21896 grub_strtoul.
21897 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
21898 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
21899 respectively.
21900
fe6b695a 21901 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 21902 return value is signed.
21903 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
21904 test if OFFSET is less than zero, as OFFSET is unsigned now.
21905
21906 * kern/disk.c (struct grub_disk_cache): Change the type of
21907 "sector" to grub_disk_addr_t.
21908 (grub_disk_cache_get_index): Change the type of SECTOR to
21909 grub_disk_addr_t. Calculate the hash with SECTOR casted to
21910 unsigned after shifting.
21911 (grub_disk_cache_invalidate): Change the type of SECTOR to
21912 grub_disk_addr_t.
21913 (grub_disk_cache_unlock): Likewise.
21914 (grub_disk_cache_store): Likewise.
21915 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
21916 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
21917 grub_disk_addr_t and grub_uint64_t, respectively.
21918 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
21919 body, as the value of OFFSET is tweaked by
21920 grub_disk_check_range. Change the types of START_SECTOR, LEN and
21921 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
21922 respectively.
21923 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
21924 body, as the value of OFFSET is tweaked by
21925 grub_disk_check_range. Change the types of LEN and N to
21926 grub_size_t.
21927
21928 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
21929 and "saved_offset" to grub_off_t.
21930 (test_header): Cast BUF to char *.
21931 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
21932 to char *.
21933 (grub_gzio_read): Change the types of OFFSET and SIZE to
21934 grub_off_t and grub_size_t, respectively.
21935
21936 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
21937 Removed.
21938 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
21939 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
21940 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
21941 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
21942 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
21943
21944 * include/grub/types.h (grub_off_t): Unconditionally set to
21945 grub_uint64_t.
21946 (grub_disk_addr_t): Changed to grub_uint64_t.
21947
21948 * include/grub/partition.h (struct grub_partition): Change the
21949 types of "start", "len" and "offset" to grub_disk_addr_t,
21950 grub_uint64_t and grub_disk_addr_t, respectively.
21951 (grub_partition_get_start): Return grub_disk_addr_t.
21952 (grub_partition_get_len): Return grub_uint64_t.
21953
21954 * include/grub/misc.h (grub_strtoull): New prototype.
21955 (grub_divmod64): Likewise.
21956
21957 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
21958 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
21959 grub_off_t, respectively.
21960 All callers and references changed.
21961
21962 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
21963 grub_size_t in "read".
21964 All callers and references changed.
21965
21966 * include/grub/file.h (struct grub_file): Change the types of
21967 "offset" and "size" to grub_off_t and grub_off_t,
21968 respectively. Change the type of SECTOR to grub_disk_addr_t in
21969 "read_hook".
21970 (grub_file_read): Change the type of LEN to grub_size_t.
21971 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
21972 grub_off_t.
21973 (grub_file_size): Return grub_off_t.
21974 (grub_file_tell): Likewise.
21975 All callers and references changed.
21976
21977 * include/grub/disk.h (struct grub_disk_dev): Change the types of
21978 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
21979 "write".
21980 (struct grub_disk): Change the type of "total_sectors" to
21981 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 21982 "read_hook".
524a1e6a 21983 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
21984 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
21985 (grub_disk_write): Likewise.
21986 All callers and references changed.
21987
21988 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
21989 char * for grub_strncmp to silence gcc.
21990 (grub_iso9660_mount): Likewise.
21991 (grub_iso9660_mount): Likewise.
21992 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
21993 return statement.
21994 (grub_iso9660_iterate_dir): Likewise.
21995 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
21996
21997 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
21998 LEN to grub_disk_addr_t and grub_size_t, respectively.
21999
22000 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
22001
22002 * fs/jfs.c (grub_jfs_read_file): Likewise.
22003
22004 * fs/minix.c (grub_jfs_read_file): Likewise.
22005
22006 * fs/sfs.c (grub_jfs_read_file): Likewise.
22007
22008 * fs/ufs.c (grub_jfs_read_file): Likewise.
22009
22010 * fs/xfs.c (grub_jfs_read_file): Likewise.
22011
22012 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
22013 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
22014 respectively.
22015
22016 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
22017 BLKNR to -1 instead of returning GRUB_ERRNO.
22018 (grub_ext2_read_file): Change the types of SECTOR and
22019 LEN to grub_disk_addr_t and grub_size_t, respectively.
22020
22021 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
22022 LEN to grub_disk_addr_t and grub_size_t, respectively.
22023
22024 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
22025 grub_file_read.
22026
22027 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
22028 string. Do not cast SECTOR explicitly.
22029
22030 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
22031 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
22032 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
22033 grub_disk_addr_t and grub_size_t, respectively. If the sector is
22034 over 2TB and LBA mode is not supported, raise an error.
22035 (get_safe_sectors): New function.
22036 (grub_biosdisk_read): Use get_safe_sectors.
22037 (grub_biosdisk_write): Likewise.
22038
22039 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
22040 (grub_efidisk_write): Likewise.
22041
22042 * disk/loopback.c (delete_loopback): Cosmetic changes.
22043 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
22044 correctly.
22045 (grub_loopback_open): Likewise.
22046 (grub_loopback_read): Likewise. Also, change the type of POS to
22047 grub_off_t, and fix the usage of grub_memset.
22048
22049 * commands/i386/pc/play.c: Include grub/machine/time.h.
22050
22051 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
22052 print FILE->SIZE.
22053
22054 * commands/configfile.c: Include grub/env.h.
22055
22056 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
22057 GRUB_ERRNO directly instead. Change the type of POS to
22058 grub_off_t. Follow the coding standard.
22059
22060 * commands/blocklist.c: Include grub/partition.h.
22061 (grub_cmd_blocklist): Return an error if the underlying device is
22062 not a disk. Take the starting sector of a partition into account,
22063 if a partition is used.
22064
22065 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
22066 a length field.
22067 (lba_mode): Support 64-bit addresses.
22068 (chs_mode): Likewise.
22069 (copy_buffer): Adapted to the new offsets of a length field and a
22070 segment field.
22071 (blocklist_default_start): Allocate 64-bit space.
22072
22073 * boot/i386/pc/boot.S (force_lba): Removed.
22074 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 22075 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 22076 space.
22077 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
22078 is useless.
22079 (lba_mode): Refactored to support a 64-bit address. More size
22080 optimization.
22081 (setup_sectors): Likewise.
22082
53af98ad 220832006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22084
22085 * DISTLIST: Added include/grub/i386/linux.h. Removed
22086 include/grub/i386/pc/linux.h
22087
22088 * configure.ac (AC_INIT): Bumped to 1.94.
22089
22090 * config.guess: Updated from gnulib.
22091 * config.sub: Likewise.
22092 * install-sh: Likewise.
22093 * mkinstalldirs: Likewise.
22094
b4c1940a 220952006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22096
22097 * conf/common.rmk (grub_modules_init.lst): Depended on
22098 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
22099 MODSRCFILES.
22100
22101 * genmk.rb (PModule::rule): Reverted the previous change.
22102
cfca1cfd 221032006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22104
22105 * conf/common.rmk (grub_modules_init.lst): Depends on
22106 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
22107 that the target does not exist before producing.
22108 (grub_modules_init.h): Remove the target before generating.
22109 (grub_emu_init.c): Likewise.
22110
22111 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
22112
aa6d7826 221132006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
22114
22115 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
22116 for the target-specific tests. Make sure that we also have the
22117 up-to-date target variables for those tests.
22118
26c607b9 221192006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22120
22121 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
22122 (PModule::rule): Likewise.
22123
0162321a 221242006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22125
22126 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
22127 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
22128 target-specific flags should be prefixed.
22129 (PModule::rule): Likewise.
22130
6c826348 221312006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
22132
22133 * configure.ac (CMP): Check if cmp is available explicitly.
22134
b977bf01 221352006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
22136
22137 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
22138 (target_cpu): New variable.
22139 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 22140
b977bf01 22141 * util/i386/pc/grub-install.in (host_cpu): Removed.
22142 (target_cpu): New variable.
22143 (pkglibdir): Use target_cpu instead of host_cpu.
22144
22145 * util/genmoddep.c: Removed.
f19dbdb7 22146
b977bf01 22147 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
22148 instead of GRUB_HOST_SIZEOF_VOID_P.
22149 * kern/dl.c: Likewise.
22150
22151 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
22152 ...
22153 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22154 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22155 (GRUB_TARGET_SIZEOF_LONG): ... this.
22156 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22157 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22158 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22159 to ...
22160 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22161 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22162 (GRUB_TARGET_SIZEOF_LONG): ... this.
22163 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22164 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22165 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22166 to ...
22167 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22168 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22169 (GRUB_TARGET_SIZEOF_LONG): ... this.
22170 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22171 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22172
22173 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
22174 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
22175 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
22176 instead of GRUB_HOST_SIZEOF_LONG.
22177 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
22178 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
22179 GRUB_CPU_WORDS_BIGENDIAN.
22180 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
22181 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
22182 grub_host_ssize_t.
22183
22184 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
22185 (genmoddep_SOURCES): Likewise.
22186 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
22187 (genmoddep_SOURCES): Likewise.
22188 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
22189 (genmoddep_SOURCES): Likewise.
22190 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
22191 Likewise.
22192 (genmoddep_SOURCES): Likewise.
22193
22194 * genmoddep.awk: New file.
22195
22196 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
22197 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
22198 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
22199 (PModule::rule): Likewise.
22200 (Program::rule): Likewise.
22201 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
22202 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
22203 respectively.
22204
22205 * configure.ac: Rewritten intensively to use host and target
22206 instead of build and host, respectively.
22207
22208 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
22209 (host_cpu): Removed.
22210 (target_cpu): New variable.
22211 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
22212 (BUILD_CC): Removed.
22213 (BUILD_CFLAGS): Likewise.
22214 (BUILD_CPPFLAGS): Likewise.
22215 (TARGET_CC): New variable.
22216 (TARGET_CFLAGS): Likewise.
22217 (TARGET_CPPFLAGS): Likewise.
22218 (TARGET_LDFLAGS): Likewise.
22219 (AWK): Likewise.
22220 (include): Use target_cpu instead of host_cpu.
22221 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 22222
b977bf01 22223 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
22224
f09771a1 222252006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
22226
22227 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
22228 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
22229 field 'false' to 'exec_on_false'.
22230 (grub_script_create_cmdif): Renamed argument names to reflect above
22231 changes.
22232
22233 * normal/execute.c (grub_script_execute_cmdif): Likewise.
22234
22235 * normal/script.c (grub_script_create_cmdif): Likewise.
22236
118f4fb3 222372006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
22238
22239 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
22240 top.
22241 (grub_hfsplus_btree_recptr): Likewise.
22242 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
22243 FILEBLOCK both to pass a block number and store next block
22244 number.
22245 (grub_hfsplus_read_block): Rewritten heavily to support an extent
22246 overflow file correctly. Specify errors appropriately, because
22247 fshelp expects that GRUB_ERRNO is set when fails. Reuse
22248 grub_hfsplus_btree_recptr to get the pointer to a found key.
22249 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
22250 is found.
22251
22252 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
22253 linux.mod.
22254 (_linux_mod_SOURCES): New variable.
22255 (_linux_mod_CFLAGS): Likewise.
22256 (_linux_mod_LDFLAGS): Likewise.
22257 (linux_mod_SOURCES): Likewise.
22258 (linux_mod_CFLAGS): Likewise.
22259 (linux_mod_LDFLAGS): Likewise.
22260
22261 * DISTLIST: Added loader/i386/efi/linux.c,
22262 loader/i386/efi/linux_normal.c and
22263 include/grub/i386/efi/loader.h.
22264
22265 * loader/i386/efi/linux.c: New file.
22266 * loader/i386/efi/linux_normal.c: Likewise.
22267 * include/grub/i386/efi/loader.h: Likewise.
22268
89a7d726 222692006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
22270
22271 * commands/blocklist.c: New file.
22272
22273 * DISTLIST: Added commands/blocklist.c.
22274
22275 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 22276 color for the background, and a darker color for the foreground.
89a7d726 22277 (grub_console_checkkey): Return READ_KEY.
22278 (grub_console_cls): Set the background to
22279 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
22280
22281 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
22282
22283 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
22284 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
22285
22286 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
22287 prototype.
22288
22289 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
22290 BG. The spec is wrong again.
22291
22292 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
22293 prototype.
22294 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
22295
22296 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
22297 commands/blocklist.c.
22298 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 22299
89a7d726 22300 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
22301 (blocklist_mod_SOURCES): New variable.
22302 (blocklist_mod_CFLAGS): Likewise.
22303 (blocklist_mod_LDFLAGS): Likewise.
22304
75c8f258 223052006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
22306
22307 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
22308 duplication.
22309 (lba_mode): Use %eax more intensively to reduce the code size.
22310
da2eb181 223112006-05-20 Marco Gerards <marco@gnu.org>
22312
22313 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
22314
22315 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
22316 for `menuentry'.
22317 (script): Accept leading newlines.
22318 (newlines): New rule to describe 0 or more newlines.
22319 (commands): Accept `command' with trailing newline. Fixed the
22320 order in which arguments were passed to `grub_script_add_cmd'.
22321 Accept commands separated by newlines.
22322 (function): Changed to accept newlines.
22323 (menuentry) Rewritten.
22324
22325 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
22326 front of the list, instead of to the end.
22327
577b4050 223282006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
22329
22330 * util/i386/pc/grub-install.in (bindir): New variable.
22331 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
22332 Shaver <lbgwjl@gmail.com>.
22333
0d6e1189 223342006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
22335
22336 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
22337 grub/machine/linux.h
22338 * loader/i386/pc/linux.c: Likewise.
22339
22340 * include/grub/i386/pc/linux.h: Moved to ...
22341 * include/grub/i386/linux.h: ... here.
22342
22343 * include/grub/i386/linux.h (struct linux_kernel_params): New
22344 struct.
f19dbdb7 22345
31b86e9f 223462006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
22347
22348 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
22349 checking.
22350 (grub_video_vbe_blit_glyph): Likewise.
22351 (grub_video_vbe_blit_bitmap): Likewise.
22352 (grub_video_vbe_blit_render_target): Likewise.
22353
83b984de 223542006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
22355
22356 * configure.ac (--with-platform): Properly quote the square
22357 brackets.
22358
5f0413bd 223592006-05-08 Marco Gerards <marco@gnu.org>
22360
22361 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
22362 this...
22363 (kernel_elf_HEADERS): ...to this. Updated all users.
22364 (grubof_symlist.c): Renamed from this...
22365 (kernel_elf_symlist.c): ...to this. Updated all users.
22366 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22367 (grubof_SOURCES): Renamed from this...
22368 (kernel_elf_SOURCES): ...to this.
22369 (grubof_HEADERS): Renamed from this...
22370 (kernel_elf_HEADERS): ...to this.
22371 (grubof_CFLAGS): Renamed from this...
22372 (kernel_elf_CFLAGS): ...to this.
22373 (grubof_ASFLAGS): Renamed from this...
22374 (kernel_elf_ASFLAGS): ...to this.
22375 (grubof_LDFLAGS): Renamed from this...
22376 (kernel_elf_LDFLAGS): ...to this.
22377
22378 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
22379 this...
22380 (kernel_elf_HEADERS): ...to this. Updated all users.
22381 (grubof_symlist.c): Renamed from this...
22382 (kernel_elf_symlist.c): ...to this. Updated all users.
22383 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22384 (grubof_SOURCES): Renamed from this...
22385 (kernel_elf_SOURCES): ...to this.
22386 (grubof_HEADERS): Renamed from this...
22387 (kernel_elf_HEADERS): ...to this.
22388 (grubof_CFLAGS): Renamed from this...
22389 (kernel_elf_CFLAGS): ...to this.
22390 (grubof_ASFLAGS): Renamed from this...
22391 (kernel_elf_ASFLAGS): ...to this.
22392 (grubof_LDFLAGS): Renamed from this...
22393 (kernel_elf_LDFLAGS): ...to this.
22394
22395 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
22396 `kernel.elf' instead of `grubof'.
22397
05568c2e 223982006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
22399
22400 Add --with-platform to configure. Use pkglibdir instead of
22401 pkgdatadir. This is reported by Roger Leigh.
22402
22403 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
22404 (host_vendor): Likewise.
22405 (host_os): Likewise.
22406 (pkgdatadir): Likewise.
22407 (platform): New variable.
22408 (pkglibdir): Likewise.
22409 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 22410
05568c2e 22411 * util/i386/pc/grub-install.in (datadir): Removed.
22412 (host_vendor): Likewise.
22413 (host_os): Likewise.
22414 (pkgdatadir): Likewise.
22415 (platform): New variable.
22416 (pkglibdir): Likewise.
22417 Use PKGLIBDIR instead of PKGDATADIR.
22418
22419 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
22420 instead of GRUB_DATADIR.
22421 (main): Likewise.
22422 * util/i386/pc/grub-mkimage.c (usage): Likewise.
22423 (main): Likewise.
22424 * util/i386/efi/grub-mkimage.c (usage): Likewise.
22425 (main): Likewise.
22426
22427 * configure.ac (--with-platform): New option.
22428 Use PLATFORM instead of HOST_VENDOR to specify a platform.
22429
22430 * Makefile.in: Include a makefile based on PLATFORM instead of
22431 HOST_VENDOR.
22432 (pkgdatadir): Not appended by the machine type.
22433 (pkglibdir): Appended by the machine type.
22434 (host_vendor): Removed.
22435 (platform): New variable.
22436 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
22437 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
22438 (uninstall): Likewise.
22439
4e93851c 224402006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
22441
22442 Use the environment context in the menu. Remove the commands
22443 "default" and "timeout", and use variables instead.
f19dbdb7 22444
4e93851c 22445 * normal/menu.c: Include grub/env.h.
22446 (print_entry): Cast TITLE to silence gcc.
22447 (get_timeout): New function.
22448 (set_timeout): Likewise.
22449 (get_entry_number): Likewise.
22450 (run_menu): Use a default entry, a fallback entry and a timeout
22451 in the environment variables "default", "fallback" and
22452 "timeout". Also, tweak the default entry if it is not within the
22453 current menu entries.
22454 (grub_menu_run): Use a fallback entry in the environment variable
22455 "fallback".
22456
22457 * normal/main.c (read_config_file): Do not initialize
22458 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
22459 NEWMENU->TIMEOUT.
22460 (grub_normal_execute): Use a data slot to store the menu.
22461
22462 * include/grub/normal.h (struct grub_menu): Removed default_entry,
22463 fallback_entry and timeout.
22464 (struct grub_menu_list): Removed.
22465 (grub_menu_list_t): Likewise.
22466 (struct grub_context): Likewise.
22467 (grub_context_t): Likewise.
22468 (grub_context_get): Likewise.
22469 (grub_context_get_current_menu): Likewise.
22470 (grub_context_push_menu): Likewise.
22471 (grub_context_pop_menu): Likewise.
22472 (grub_default_init): Likewise.
22473 (grub_default_fini): Likewise.
22474 (grub_timeout_init): Likewise.
22475 (grub_timeout_fini): Likewise.
22476
22477 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
22478 and timeout.mod.
22479 (normal_mod_SOURCES): Removed normal/context.c.
22480
22481 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
22482 commands/default.c, commands/timeout.c and normal/context.c.
22483 (normal_mod_SOURCES): Removed normal/context.c.
22484
22485 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
22486 commands/timeout.c and normal/context.c.
22487 (normal_mod_SOURCES): Removed normal/context.c.
22488
22489 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
22490 commands/default.c, commands/timeout.c and normal/context.c.
22491 (normal_mod_SOURCES): Removed normal/context.c.
22492
22493 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
22494 timeout.mod.
22495 (default_mod_SOURCES): Removed.
22496 (default_mod_CFLAGS): Likewise.
22497 (default_mod_LDFLAGS): Likewise.
22498 (timeout_mod_SOURCES): Removed.
22499 (timeout_mod_CFLAGS): Likewise.
22500 (timeout_mod_LDFLAGS): Likewise.
22501
22502 * DISTLIST: Removed commands/default.c, commands/timeout.c and
22503 normal/context.c.
22504
22505 * commands/default.c: Removed.
22506 * commands/timeout.c: Likewise.
22507 * normal/context.c: Likewise.
22508
1eb9cc1d 225092006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
22510
22511 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
22512
385bd9c1 225132006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
22514
22515 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
22516 "next" to "prev" for readability.
22517 (struct grub_env_sorted_var): New struct.
22518 (grub_env_context): Renamed to ...
22519 (initial_context): ... this.
22520 (grub_env_var_context): Renamed to ...
22521 (current_context): ... this.
22522 (grub_env_find): Look only at CURRENT_CONTEXT.
22523 (grub_env_context_open): Rewritten to copy exported variables from
22524 previous context.
22525 (grub_env_context_close): Rewritten according to the new
22526 scheme. Also, add an assertion to prevent the initial context from
22527 removed.
22528 (grub_env_insert): Removed the code for the sorted list.
22529 (grub_env_remove): Likewise.
22530 (grub_env_export): Simply mark the variable with
22531 GRUB_ENV_VAR_GLOBAL.
22532 (grub_env_set): A cosmetic change for naming consistency.
22533 (grub_env_get): Likewise.
22534 (grub_env_unset): Likewise.
22535 (grub_env_iterate): Rewritten to sort variables within this
22536 function.
22537 (grub_register_variable_hook): Fixed for naming consistency. Call
22538 grub_env_find again, only if NAME is not found at the first time.
22539 (mangle_data_slot_name): New function.
22540 (grub_env_set_data_slot): Likewise.
22541 (grub_env_get_data_slot): Likewise.
22542 (grub_env_unset_data_slot): Likewise.
22543
22544 * include/grub/env.h (grub_env_var_type): New enum.
22545 (GRUB_ENV_VAR_LOCAL): New constant.
22546 (GRUB_ENV_VAR_GLOBAL): Likewise.
22547 (GRUB_ENV_VAR_DATA): Likewise.
22548 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
22549 "type".
22550 (grub_env_set): Replace VAR with NAME for consistency.
22551 (grub_register_variable_hook): Likewise.
22552 (grub_env_export): Specify the name of the argument.
22553 (grub_env_set_data_slot): New prototype.
22554 (grub_env_get_data_slot): Likewise.
22555 (grub_env_unset_data_slot): Likewise.
22556
7f362539 225572006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22558
22559 Extend the loader so that GRUB can accept a loader which comes
22560 back to GRUB when a loaded image exits. Also, this change adds
22561 support for a chainloader on EFI.
f19dbdb7 22562
7f362539 22563 * term/efi/console.c: Include grub/misc.h.
22564 (grub_console_checkkey): Display a scan code on the top for
22565 debugging. This will be removed once the EFI port gets stable.
22566 Correct the scan code mapping.
22567
22568 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
22569 allocate memory from larger regions, in order to reduce the number
22570 of allocated regions. Otherwise, the MacOSX loader panics.
22571 (filter_memory_map): Avoid less than 1MB for compatibility with
22572 other loaders.
22573 (add_memory_regions): Allocate from the tail of a region, if
22574 possible, to avoid allocating a region near to 1MB, for the MacOSX
22575 loader.
22576
22577 * kern/efi/init.c (grub_efi_set_prefix): Specify
22578 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
22579
22580 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
22581 argument IMAGE_HANDLE and specify it to get a loaded image.
22582 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
22583 grub_efi_get_loaded_image.
fe6b695a 22584 (grub_efi_get_filename): Divide the length by the size of
7f362539 22585 grub_efi_char16_t.
22586 (grub_efi_get_device_path): New function.
22587 (grub_efi_print_device_path): Print End Device Path nodes. Divide
22588 the length by the size of grub_efi_char16_t for a file path device
22589 path node.
22590
22591 * kern/loader.c (grub_loader_noreturn): New variable.
22592 (grub_loader_set): Accept a new argument NORETURN. Set
22593 GRUB_LOADER_NORETURN to NORETURN.
22594 All callers changed.
22595 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
22596 grub_machine_fini.
22597
22598 * include/grub/efi/efi.h (grub_efi_get_device_path): New
22599 prototype.
22600 (grub_efi_get_loaded_image): Take an argument to specify an image
22601 handle.
22602
22603 * include/grub/loader.h (grub_loader_set): Added one more argument
22604 NORETURN.
22605
22606 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
22607 instead of grub_efi_open_protocol.
22608 (grub_efidisk_get_device_name): Likewise.
22609 (grub_efidisk_close): Print a newline.
22610 (grub_efidisk_get_device_handle): Fixed to use
22611 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
22612 GRUB_EFI_DEVICE_PATH_TYPE.
22613
22614 * disk/efi/efidisk.c (device_path_guid): Moved to ...
22615 * kern/efi/efi.c (device_path_guid): ... here.
22616
22617 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
22618 chain.mod.
22619 (kernel_mod_HEADERS): Added efi/disk.h.
22620 (_chain_mod_SOURCES): New variable.
22621 (_chain_mod_CFLAGS): Likewise.
22622 (_chain_mod_LDFLAGS): Likewise.
22623 (chain_mod_SOURCES): Likewise.
22624 (chain_mod_CFLAGS): Likewise.
22625 (chain_mod_LDFLAGS): Likewise.
22626
22627 * DISTLIST: Added include/grub/efi/chainloader.h,
22628 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
22629
22630 * include/grub/efi/chainloader.h: New file.
22631 * loader/efi/chainloader.c: Likewise.
22632 * loader/efi/chainloader_normal.c: Likewise.
22633
c0111d6e 226342006-04-30 Marco Gerards <marco@gnu.org>
22635
22636 * commands/configfile.c (grub_cmd_source): New function.
22637 (GRUB_MOD_INIT): Register the commands `source' and `.'.
22638 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
22639
df5341da 226402006-04-30 Marco Gerards <marco@gnu.org>
22641
22642 * normal/execute.c (grub_script_execute_cmd): Change the return
22643 type to `grub_err_t'. Correctly return the error.
22644 (grub_script_execute_cmdline): In case a command line is not a
22645 command or a function, try to interpret it as an assignment.
22646
f85934bd 226472006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22648
22649 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
22650 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
22651 skip a node whose name is obviously invalid as UTF-16,
22652 i.e. contains a NUL character. Stop the iteration when the last
22653 directory entry is found. Instead of using the return value of
22654 grub_hfsplus_btree_iterate_node, store the value in RET and use
22655 it, because the iterator can be stopped by the last directory
22656 entry.
22657
8f8a2cf8 226582006-04-30 Marco Gerards <marco@gnu.org>
22659
22660 * include/grub/env.h (grub_env_export): New prototype. Reported
22661 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
22662
a27e84ce 226632006-04-30 Marco Gerards <marco@gnu.org>
22664
22665 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
22666 size of the extents in a catalog file record.
22667
eaef0553 226682006-04-29 Marco Gerards <marco@gnu.org>
22669
22670 * commands/configfile.c (grub_cmd_configfile): Execute the
22671 configfile within its own context.
22672
22673 * include/grub/env.h (grub_env_context_open): New prototype.
22674 (grub_env_context_close): Likewise.
22675
22676 * kern/env.c (grub_env): Removed.
22677 (grub_env_sorted): Likewise.
22678 (grub_env_context): New variable.
22679 (grub_env_var_context): Likewise.
22680 (grub_env_find): Search both the active context and the global
22681 context.
22682 (grub_env_context_open): New function.
22683 (grub_env_context_close): Likewise.
22684 (grub_env_insert): Likewise.
22685 (grub_env_remove): Likewise.
22686 (grub_env_export): Likewise.
22687 (grub_env_set): Changed to use helper functions to avoid code
22688 duplication.
22689 (grub_env_iterate): Rewritten so both the current context and the
22690 global context are being used.
22691
22692 * normal/command.c (export_command): New function.
22693 (grub_command_init): Register the `export' function.
22694
7b455f4d 226952006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
22696
22697 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
22698 explicitly to suppress gcc's warnings.
22699 * fs/fat.c (grub_fat_find_dir): Likewise.
22700 (grub_fat_label): Likewise.
22701 * fs/xfs.c (grub_xfs_read_inode): Likewise.
22702 (grub_xfs_mount): Likewise.
22703 (grub_xfs_label): Likewise.
22704 * fs/affs.c (grub_affs_mount): Likewise.
22705 (grub_affs_label): Likewise.
22706 (grub_affs_iterate_dir): Likewise.
22707 * fs/sfs.c (grub_sfs_mount): Likewise.
22708 (grub_sfs_iterate_dir): Likewise.
22709 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
22710 * fs/hfs.c (grub_hfs_mount): Likewise.
22711 (grub_hfs_cmp_catkeys): Likewise.
22712 (grub_hfs_find_dir): Likewise.
22713 (grub_hfs_dir): Likewise.
22714 (grub_hfs_label): Likewise.
22715 * fs/jfs.c (grub_jfs_mount): Likewise.
22716 (grub_jfs_opendir): Likewise.
22717 (grub_jfs_getent): Likewise.
22718 (grub_jfs_lookup_symlink): Likewise.
22719 (grub_jfs_label): Likewise.
22720 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
22721 (grub_hfsplus_iterate_dir): Likewise.
22722 (grub_hfsplus_btree_iterate_node): Made static.
22723
22724 * util/grub-emu.c (prefix): New variable.
22725 (grub_machine_set_prefix): New function.
22726 (main): Do not set the environment variable "prefix" here. Only
22727 set PREFIX, which is used later by grub_machine_set_prefix.
22728
22729 * include/grub/video.h: Do not include grub/symbol.h.
22730 (grub_video_register): Not exported. This symbol is not defined in
22731 the kernel.
22732 (grub_video_unregister): Likewise.
22733 (grub_video_iterate): Likewise.
22734 (grub_video_setup): Likewise.
22735 (grub_video_restore): Likewise.
22736 (grub_video_get_info): Likewise.
22737 (grub_video_get_blit_format): Likewise.
22738 (grub_video_set_palette): Likewise.
22739 (grub_video_get_palette): Likewise.
22740 (grub_video_set_viewport): Likewise.
22741 (grub_video_get_viewport): Likewise.
22742 (grub_video_map_color): Likewise.
22743 (grub_video_map_rgb): Likewise.
22744 (grub_video_map_rgba): Likewise.
22745 (grub_video_fill_rect): Likewise.
22746 (grub_video_blit_glyph): Likewise.
22747 (grub_video_blit_bitmap): Likewise.
22748 (grub_video_blit_render_target): Likewise.
22749 (grub_video_scroll): Likewise.
22750 (grub_video_swap_buffers): Likewise.
22751 (grub_video_create_render_target): Likewise.
22752 (grub_video_delete_render_target): Likewise.
22753 (grub_video_set_active_render_target): Likewise.
22754
22755 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
22756 Undefined.
22757 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
22758
22759 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
22760 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22761 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22762 instead of $(srcdir)/genkernsyms.sh.
22763
22764 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
22765 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22766 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22767 instead of $(srcdir)/genkernsyms.sh.
22768
22769 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
22770 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22771 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22772 instead of $(srcdir)/genkernsyms.sh.
22773
22774 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
22775 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22776 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22777 instead of $(srcdir)/genkernsyms.sh.
22778
22779 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
22780 genkernsyms.sh.
22781
22782 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
22783 genkernsyms.sh.
22784 (gensymlist.sh): New target.
22785 (genkernsyms.sh): Likewise.
22786
22787 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
22788 genkernsyms.sh.in and gensymlist.sh.in.
22789
22790 * genkernsyms.sh: Removed.
22791 * gensymlist.sh: Likewise.
f19dbdb7 22792
7b455f4d 22793 * genkernsyms.sh.in: New file.
22794 * gensymlist.sh.in: Likewise.
22795
1885bb27 227962006-04-25 Hollis Blanchard <hollis@penguinppc.org>
22797
22798 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
22799 clobber "prefix", since we may have already set it manually.
22800
71538dff 228012006-04-25 Hollis Blanchard <hollis@penguinppc.org>
22802
22803 * kern/misc.c (abort): New alias for grub_abort.
22804
2965c7cc 228052006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
22806
22807 A new machine-specific function "grub_machine_set_prefix" is
22808 defined. This is called after loading modules, so that a prefix
22809 initialization can use modules. Also, this change adds an
22810 intensive debugging feature for the memory manager via the
22811 configure option "--enable-mm-debug".
f19dbdb7 22812
2965c7cc 22813 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
22814 PART.LEN.
22815
22816 * kern/sparc64/ieee1275/init.c (abort): Removed.
22817 (grub_stop): Likewise.
22818 (grub_exit): New function.
22819 (grub_set_prefix): Renamed to ...
22820 (grub_machine_set_prefix): ... this.
22821 (grub_machine_init): Do not call grub_set_prefix.
22822
22823 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
22824 (grub_machine_set_prefix): ... this.
22825 (grub_machine_init): Do not call grub_set_prefix.
22826
22827 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
22828 (grub_machine_init): Do not set the prefix here.
22829
22830 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
22831
22832 * kern/efi/init.c: Include grub/mm.h.
22833 (grub_efi_set_prefix): New function.
22834
22835 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
22836 (grub_efi_get_filename): New function.
22837 (grub_print_device_path): Renamed to ...
22838 (grub_efi_print_device_path): ... this.
22839
22840 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
22841 [MM_DEBUG] (grub_realloc): Likewise.
22842 [MM_DEBUG] (grub_free): Likewise.
22843 [MM_DEBUG] (grub_memalign): Likewise.
22844 [MM_DEBUG] (grub_mm_debug): New variable.
22845 [MM_DEBUG] (grub_debug_malloc): New function.
22846 [MM_DEBUG] (grub_debug_free): New function.
22847 [MM_DEBUG] (grub_debug_realloc): New function.
22848 [MM_DEBUG] (grub_debug_memalign): New function.
22849
22850 * kern/misc.c (grub_abort): Print a newline to distinguish
22851 the message.
22852
22853 * kern/main.c (grub_main): Call grub_machine_set_prefix and
22854 grub_set_root_dev after loading modules. This is necessary when
22855 setting a prefix depends on modules.
22856
22857 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
22858 (grub_efi_print_device_path): ... this.
22859 (grub_efi_get_filename): New prototype.
22860 (grub_efi_set_prefix): Likewise.
22861
22862 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
22863 and grub/disk.h.
22864 (grub_efidisk_get_device_handle): New prototype.
22865 (grub_efidisk_get_device_name): Likewise.
22866
22867 * include/grub/mm.h: Include config.h.
22868 (MM_DEBUG): Removed.
22869 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
22870 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
22871 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
22872 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
22873 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
22874 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
22875 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
22876 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
22877 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
22878
22879 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
22880
22881 * disk/efi/efidisk.c: Include grub/partition.h.
22882 (iterate_child_devices): New function.
22883 (add_device): First, compare only last device path nodes, so that
22884 devices are sorted by the types.
22885 (grub_efidisk_get_device_handle): New function.
22886 (grub_efidisk_get_device_name): Likewise.
22887
22888 * configure.ac (--enable-mm-debug): New option to enable the
22889 memory manager debugging feature. This makes the binary much
22890 bigger, so is disabled by default.
22891
9cacaa17 228922006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
22893
22894 Use grub_abort instead of grub_stop, and grub_exit must be
22895 define in each architecture now. Also, this change adds support
22896 for EFI disks.
f19dbdb7 22897
9cacaa17 22898 * util/i386/pc/grub-probefs.c: Include grub/term.h.
22899 (grub_getkey): New function.
22900 (grub_term_get_current): Likewise.
22901
22902 * util/i386/pc/grub-setup.c: Include grub/term.h.
22903 (grub_getkey): New function.
22904 (grub_term_get_current): Likewise.
22905
22906 * util/misc.c (grub_stop): Renamed to ...
22907 (grub_exit): ... this.
22908
22909 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
22910 (grub_exit): ... this.
22911 (grub_machine_init): Use grub_abort instead of abort.
22912 (grub_stop): Removed.
22913
22914 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
22915 abort.
22916
22917 * kern/i386/pc/startup.S (grub_exit): New function.
22918 (cold_reboot): New label.
22919
22920 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
22921 (grub_efi_init): Call grub_efidisk_init.
22922 (grub_efi_fini): Call grub_efidisk_fini.
22923
22924 * kern/efi/efi.c: Include grub/mm.h.
22925 (grub_efi_console_control_guid): Renamed to ...
22926 (console_control_guid): ... this.
22927 (grub_efi_loaded_image_guid): Renamed to ...
22928 (loaded_image_guid): ... this.
22929 (grub_efi_locate_handle): New function.
22930 (grub_efi_open_protocol): Likewise.
22931 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
22932 GRUB_EFI_CONSOLE_CONTROL_GUID.
22933 (grub_efi_exit): Removed.
22934 (grub_stop): Likewise.
22935 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
22936 (grub_exit): New function.
22937 (grub_print_device_path): Likewise.
22938
22939 * kern/rescue.c (grub_rescue_cmd_exit): New function.
22940 (grub_enter_rescue_mode): Register "exit".
22941
22942 * kern/misc.c (grub_real_dprintf): A cosmetic change.
22943 (grub_abort): New function.
22944
22945 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
22946
22947 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
22948
22949 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
22950
22951 * include/grub/efi/efi.h (grub_efi_exit): Removed.
22952 (grub_print_device_path): New prototype.
22953 (grub_efi_locate_handle): Likewise.
22954 (grub_efi_open_protocol): Likewise.
22955
22956 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
22957 * disk/efi/efidisk.c: Likewise.
22958
22959 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
22960
22961 * include/grub/efi/console_control.h
22962 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
22963
22964 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
22965 last 8 bytes as an array.
22966 (GRUB_EFI_DISK_IO_GUID): New macro.
22967 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
22968 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
22969 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
22970 grub_uint8_t.
22971 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
22972 (struct grub_efi_device_path): Rename the member "sub_type" to
22973 "subtype".
22974 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
22975 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
22976 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
22977 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
22978 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
22979 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
22980 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
22981 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
22982 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
22983 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
22984 (struct grub_efi_pci_device_path): New structure.
22985 (grub_efi_pci_device_path_t): New type.
22986 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
22987 (struct grub_efi_pccard_device_path): New structure.
22988 (grub_efi_pccard_device_path_t): New type.
22989 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
22990 (struct grub_efi_memory_mapped_device_path): New structure.
22991 (grub_efi_memory_mapped_device_path_t): New type.
22992 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
22993 (struct grub_efi_vendor_device_path): New structure.
22994 (grub_efi_vendor_device_path_t): New type.
22995 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
22996 (struct grub_efi_controller_device_path): New structure.
22997 (grub_efi_controller_device_path_t): New type.
22998 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
22999 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
23000 (struct grub_efi_acpi_device_path): New structure.
23001 (grub_efi_acpi_device_path_t): New type.
23002 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
23003 (struct grub_efi_expanded_acpi_device_path): New structure.
23004 (grub_efi_expanded_acpi_device_path_t): New type.
23005 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
23006 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
23007 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
23008 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
23009 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
23010 (struct grub_efi_atapi_device_path): New structure.
23011 (grub_efi_atapi_device_path_t): New type.
23012 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
23013 (struct grub_efi_fibre_channel_device_path): New structure.
23014 (grub_efi_fibre_channel_device_path_t): New type.
23015 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
23016 (struct grub_efi_1394_device_path): New structure.
23017 (grub_efi_1394_device_path_t): New type.
23018 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
23019 (struct grub_efi_usb_device_path): New structure.
23020 (grub_efi_usb_device_path_t): New type.
23021 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
23022 (struct grub_efi_usb_class_device_path): New structure.
23023 (grub_efi_usb_class_device_path_t): New type.
23024 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
23025 (struct grub_efi_i2o_device_path): New structure.
23026 (grub_efi_i2o_device_path_t): New type.
23027 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
23028 (struct grub_efi_mac_address_device_path): New structure.
23029 (grub_efi_mac_address_device_path_t): New type.
23030 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
23031 (struct grub_efi_ipv4_device_path): New structure.
23032 (grub_efi_ipv4_device_path_t): New type.
23033 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
23034 (struct grub_efi_ipv6_device_path): New structure.
23035 (grub_efi_ipv6_device_path_t): New type.
23036 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
23037 (struct grub_efi_infiniband_device_path): New structure.
23038 (grub_efi_infiniband_device_path_t): New type.
23039 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
23040 (struct grub_efi_uart_device_path): New structure.
23041 (grub_efi_uart_device_path_t): New type.
23042 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
23043 (struct grub_efi_vendor_messaging_device_path): New structure.
23044 (grub_efi_vendor_messaging_device_path_t): New type.
23045 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
23046 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
23047 (struct grub_efi_hard_drive_device_path): New structure.
23048 (grub_efi_hard_drive_device_path_t): New type.
23049 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
23050 (struct grub_efi_cdrom_device_path): New structure.
23051 (grub_efi_cdrom_device_path_t): New type.
23052 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
23053 (struct grub_efi_vendor_media_device_path): New structure.
23054 (grub_efi_vendor_media_device_path_t): New type.
23055 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
23056 (struct grub_efi_file_path_device_path): New structure.
23057 (grub_efi_file_path_device_path_t): New type.
23058 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
23059 (struct grub_efi_protocol_device_path): New structure.
23060 (grub_efi_protocol_device_path_t): New type.
23061 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
23062 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
23063 (struct grub_efi_bios_device_path): New structure.
23064 (grub_efi_bios_device_path_t): New type.
23065 (struct grub_efi_disk_io): New structure.
23066 (grub_efi_disk_io_t): New type.
23067 (struct grub_efi_block_io_media): New structure.
23068 (grub_efi_block_io_media_t): New type.
23069 (struct grub_efi_block_io): New structure.
23070 (grub_efi_block_io_t): New type.
23071
23072 * include/grub/misc.h (grub_stop): Removed.
23073 (grub_exit): New prototype.
23074 (grub_abort): Likewise.
23075
23076 * include/grub/disk.h (enum grub_disk_dev_id): Added
23077 GRUB_DISK_DEVICE_EFIDISK_ID.
23078
23079 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
23080 disk/efi/efidisk.c.
23081 (kernel_syms.lst): Remove the target if an error occurs.
23082
49986a9f 230832006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
23084
23085 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
23086 as it was simply too buggy.
23087
970d3b8a 230882006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
23089
23090 * kern/misc.c (grub_lltoa): New function.
23091 (grub_vsprintf): Added support for the long long suffix,
23092 i.e. "ll".
23093
ff04ec24 230942006-04-20 Hollis Blanchard <hollis@penguinppc.org>
23095
23096 * Makefile.in (LDFLAGS): Add variable.
23097 (LD): Remove variable.
23098 * configure.ac: Add -m32 to LDFLAGS.
23099 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
23100 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
23101 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
23102 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
23103 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
23104 variables.
23105 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
23106 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
23107 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
23108
37e5e1a4 231092006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
23110
23111 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
23112 length for unknown glyph.
23113
c352d8dd 231142006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23115
2eab1c0d 23116 Add support for pre-loaded modules into the EFI port.
f19dbdb7 23117
2eab1c0d 23118 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
23119 completely. Accept one more argument DIR. The caller has changed.
23120
23121 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
23122
23123 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
23124 (grub_efi_loaded_image_guid): New variable.
23125 (grub_efi_get_loaded_image): New function.
23126 (grub_arch_modules_addr): Likewise.
23127
23128 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
23129 prototype.
23130
23131 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
23132 (struct grub_efi_loaded_image): New structure.
23133 (grub_efi_loaded_image_t): New type.
23134
231352006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 23136
c352d8dd 23137 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
23138 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
23139 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
23140
6d01d6b4 231412006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
23142
23143 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
23144
976a4ea0 231452006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
23146
23147 * DISTLIST: Added include/grub/efi/console.h,
23148 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
23149 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23150
23151 * include/grub/efi/console.h: New file.
23152 * include/grub/efi/time.h: Likewise.
23153 * include/grub/i386/efi/kernel.h: Likewise.
23154 * kern/efi/init.c: Likewise.
23155 * kern/efi/mm.c: Likewise.
23156 * term/efi/console.c: Likewise.
f19dbdb7 23157
976a4ea0 23158 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
23159 (grub_stop): Removed.
23160 (grub_get_rtc): Likewise.
23161 (grub_machine_init): Simply call grub_efi_init.
23162 (grub_machine_fini): Call grub_efi_fini.
23163
23164 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
23165 (grub_efi_output_string): Removed.
23166 (grub_efi_stall): New function.
23167 (grub_stop): Likewise.
23168 (grub_get_rtc): Likewise.
23169
23170 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
23171 (grub_efi_stall): New prototype.
23172 (grub_efi_allocate_pages): Likewise.
23173 (grub_efi_free_pages): Likewise.
23174 (grub_efi_get_memory_map): Likewise.
23175 (grub_efi_mm_init): Likewise.
23176 (grub_efi_mm_fini): Likewise.
23177 (grub_efi_init): Likewise.
23178 (grub_efi_fini): Likewise.
23179
23180 * include/grub/i386/efi/time.h: Do not include
23181 grub/symbol.h. Include grub/efi/time.h.
23182 (GRUB_TICKS_PER_SECOND): Removed.
23183 (grub_get_rtc): Likewise.
23184
23185 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
23186 Added padding. The EFI spec is buggy.
23187 (GRUB_EFI_BLACK): New macro.
23188 (GRUB_EFI_BLUE): Likewise.
23189 (GRUB_EFI_GREEN): Likewise.
23190 (GRUB_EFI_CYAN): Likewise.
23191 (GRUB_EFI_RED): Likewise.
23192 (GRUB_EFI_MAGENTA): Likewise.
23193 (GRUB_EFI_BROWN): Likewise.
23194 (GRUB_EFI_LIGHTGRAY): Likewise.
23195 (GRUB_EFI_BRIGHT): Likewise.
23196 (GRUB_EFI_DARKGRAY): Likewise.
23197 (GRUB_EFI_LIGHTBLUE): Likewise.
23198 (GRUB_EFI_LIGHTGREEN): Likewise.
23199 (GRUB_EFI_LIGHTCYAN): Likewise.
23200 (GRUB_EFI_LIGHTRED): Likewise.
23201 (GRUB_EFI_LIGHTMAGENTA): Likewise.
23202 (GRUB_EFI_YELLOW): Likewise.
23203 (GRUB_EFI_WHITE): Likewise.
23204 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
23205 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
23206 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
23207 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
23208 (GRUB_EFI_BACKGROUND_RED): Likewise.
23209 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
23210 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
23211 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
23212 (GRUB_EFI_TEXT_ATTR): Likewise.
23213
23214 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
23215 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23216 (kernel_mod_HEADERS): Added efi/time.h.
23217
83709125 232182006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
23219
23220 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
23221 include/grub/efi/api.h, include/grub/efi/console_control.h,
23222 include/grub/efi/efi.h, include/grub/efi/pe32.h,
23223 include/grub/i386/efi/time.h, kern/efi/efi.c,
23224 kern/i386/efi/init.c, kern/i386/efi/startup.S,
23225 and util/i386/efi/grub-mkimage.c.
23226
23227 * Makefile.in (RMKFILES): Added i386-efi.rmk.
23228
23229 * genmk.rb (PModule#rule): Do not export symbols if
23230 #{prefix}_EXPORTS is set to "no".
23231
23232 * conf/i386-efi.mk: New file.
23233 * conf/i386-efi.rmk: Likewise.
23234 * include/grub/efi/api.h: Likewise.
23235 * include/grub/efi/console_control.h: Likewise.
23236 * include/grub/efi/efi.h: Likewise.
23237 * include/grub/efi/pe32.h: Likewise.
23238 * include/grub/i386/efi/time.h: Likewise.
23239 * kern/efi/efi.c: Likewise.
23240 * kern/i386/efi/init.c: Likewise.
23241 * kern/i386/efi/startup.S: Likewise.
23242 * util/i386/efi/grub-mkimage.c: Likewise.
23243
232442006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 23245
23246 * include/grub/script.h: Include <grub/parser.h> and
23247 "grub_script.tab.h".
23248 (struct grub_lexer_param): New struct.
23249 (struct grub_parser_param): Likewise.
23250 (grub_script_create_arglist): Pass the state in an argument.
23251 (grub_script_add_arglist): Likewise.
23252 (grub_script_create_cmdline): Likewise.
23253 (grub_script_create_cmdblock): Likewise.
23254 (grub_script_create_cmdif): Likewise.
23255 (grub_script_create_cmdmenu): Likewise.
23256 (grub_script_add_cmd): Likewise.
23257 (grub_script_arg_add): Likewise.
23258 (grub_script_lexer_ref): Likewise.
23259 (grub_script_lexer_deref): Likewise.
23260 (grub_script_lexer_record_start): Likewise.
23261 (grub_script_lexer_record_stop): Likewise.
23262 (grub_script_mem_record): Likewise.
23263 (grub_script_mem_record_stop): Likewise.
23264 (grub_script_malloc): Likewise.
23265 (grub_script_yylex): Likewise.
23266 (grub_script_yyparse): Likewise.
23267 (grub_script_yyerror): Likewise.
23268 (grub_script_yylex): Likewise.
23269 (grub_script_lexer_init): Return the state.
23270
23271 * normal/lexer.c (grub_script_lexer_state): Removed variable.
23272 (grub_script_lexer_done): Likewise.
23273 (grub_script_lexer_getline): Likewise.
23274 (grub_script_lexer_refs): Likewise.
23275 (script): Likewise.
23276 (newscript): Likewise.
23277 (record): Likewise.
23278 (recording): Likewise.
23279 (recordpos): Likewise.
23280 (recordlen): Likewise.
23281 (grub_script_lexer_init): Return the state instead of setting
23282 global variables.
23283 (grub_script_lexer_ref): Use the newly added argument for state
23284 instead of globals.
23285 (grub_script_lexer_deref): Likewise.
23286 (grub_script_lexer_record_start): Likewise.
23287 (grub_script_lexer_record_stop): Likewise.
23288 (recordchar): Likewise.
23289 (nextchar): Likewise.
23290 (grub_script_yylex2): Likewise.
23291 (grub_script_yylex): Likewise.
23292 (grub_script_yyerror): Likewise.
23293
23294 * normal/parser.y (func_mem): Removed variable.
23295 (menu_entry): Likewise.
23296 (err): Likewise.
23297 (%lex-param): New parser option.
23298 (%parse-param): Likewise.
23299 (script): Always return the AST.
23300 (argument): Pass the state around.
23301 (arguments): Likewise.
23302 (grubcmd): Likewise.
23303 (commands): Likewise.
23304 (function): Likewise.
23305 (menuentry): Likewise.
23306 (if_statement): Likewise.
23307 (if): Likewise.
23308
23309 * normal/script.c (grub_script_memused): Removed variable.
23310 (grub_script_parsed): Likewise.
23311 (grub_script_malloc): Added a state argument. Use that instead of
23312 global variables.
23313 (grub_script_mem_record): Likewise.
23314 (grub_script_mem_record_stop): Likewise.
23315 (grub_script_arg_add): Likewise.
23316 (grub_script_add_arglist): Likewise.
23317 (grub_script_create_cmdline): Likewise.
23318 (grub_script_create_cmdif): Likewise.
23319 (grub_script_create_cmdmenu): Likewise.
23320 (grub_script_add_cmd): Likewise.
23321 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 23322
e2a8c904 233232006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 23324
23325 * normal/command.c (grub_command_init): Remove the title command.
23326
23327 * normal/lexer.c (grub_script_yylex): Renamed from this...
23328 (grub_script_yylex2): ... to this.
23329 (grub_script_yylex): New function. Temporary
23330 introduced to filter some tokens.
23331 (grub_script_yyerror): Print a newline.
23332
23333 * normal/main.c (read_config_file): Output information about the
23334 lines that contain errors. Wait for a key after all lines have
23335 been processed. Don't return an empty menu.
23336
23337 * normal/parser.y (func_mem): Don't initialize.
23338 (menu_entry): Likewise.
23339 (err): New variable.
23340 (script): Don't return anything when an error was encountered.
23341 (ws, returns): Removed rules.
23342 (argument): Disabled concatenated variable support.
23343 (arguments): Remove explicit separators.
23344 (grubcmd): Likewise.
23345 (function): Likewise.
23346 (menuentry): Likewise.
23347 (if): Likewise.
23348 (commands): Likewise. Add error handling.
23349
23350 * normal/script.c (grub_script_create_cmdline): If
23351 `grub_script_parsed' is 0, assume the parser encountered an error.
23352
c9a86192 233532006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
23354
23355 * configure.ac: Add support for EFI. Fix the typo
23356 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
23357
70f3b243 233582006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23359
23360 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
23361 foreign multibyte characters should be shown correctly.
23362
65f201ad 233632006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23364
23365 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
23366 calculation.
23367 (read_config_file): Made it to close file before returning.
23368
b4b93674 233692006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
23370
23371 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
23372 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
23373 video/i386/pc/vbefill.c.
23374
23375 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
23376 video/i386/pc/vbefill.c.
23377
23378 * include/grub/video.h (grub_video_blit_format): New enum.
23379 (grub_video_mode_info): Added new member blit_format.
23380 (grub_video_get_blit_format): New function prototype.
23381
23382 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
23383 function prototype.
23384 (grub_video_vbe_map_rgb): Likewise.
23385 (grub_video_vbe_unmap_color): Likewise.
23386
23387 * include/grub/i386/pc/vbeblit.h: New file.
23388
23389 * include/grub/i386/pc/vbefill.h: New file.
23390
23391 * video/video.c (grub_video_get_blit_format): New function.
23392 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
23393 (grub_video_vbe_map_rgb): Likewise.
23394 (grub_video_vbe_unmap_color): Likewise.
23395
23396 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
23397 optimized fills.
23398 (grub_video_vbe_blit_render_target): Changed to use more optimized
23399 blits.
23400 (grub_video_vbe_setup): Added detection for optimized settings.
23401 (grub_video_vbe_create_render_target): Likewise.
23402
23403 * video/i386/pc/vbeblit.c: New file.
23404
23405 * video/i386/pc/vbefill.c: New file.
23406
c2379b9c 234072006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
23408
23409 * font/manager.c (grub_font_get_glyph): Removed font fixup from
23410 here...
23411
23412 * util/unifont2pff.rb: ... and moved it to here. Improved argument
23413 parsing to support both hex and dec ranges. If filename was missing
23414 show usage information.
23415
bd0d7896 234162006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
23417
23418 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
23419 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
23420
23421 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
23422 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
23423 (video_mod_SOURCES): Added.
23424 (video_mod_CFLAGS): Likewise.
23425 (video_mod_LDFLAGS): Likewise.
23426 (gfxterm_mod_SOURCES): Likewise.
23427 (gfxterm_mod_CFLAGS): Likewise.
23428 (gfxterm_mod_LDFLAGS): Likewise.
23429 (videotest_mod_SOURCES): Likewise.
23430 (videotest_mod_CFLAGS): Likewise.
23431 (videotest_mod_LDFLAGS): Likewise.
23432 (vesafb_mod_SOURCES): Removed.
23433 (vesafb_mod_CFLAGS): Likewise.
23434 (vesafb_mod_LDFLAGS): Likewise.
23435 (vga_mod_SOURCES): Likewise.
23436 (vga_mod_CFLAGS): Likewise.
23437 (vga_mod_LDFLAGS): Likewise.
23438
23439 * commands/videotest.c: New file.
23440
23441 * font/manager.c (fill_with_default_glyph): Modified to use
23442 grub_font_glyph.
23443 (grub_font_get_glyph): Likewise.
23444 (fontmanager): Renamed from this...
23445 (font_manager): ... to this.
23446
23447 * include/grub/font.h (grub_font_glyph): Added new structure.
23448 (grub_font_get_glyph): Modified to use grub_font_glyph.
23449
23450 * include/grub/misc.h (grub_abs): Added as inline function.
23451
23452 * include/grub/video.h: New file.
23453
23454 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
23455 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
23456 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
23457 (grub_vbe_get_controller_info): Renamed from this...
23458 (grub_vbe_bios_get_controller_info): ... to this.
23459 (grub_vbe_get_mode_info): Renamed from this...
23460 (grub_vbe_bios_get_mode_info): ... to this.
23461 (grub_vbe_set_mode): Renamed from this...
23462 (grub_vbe_bios_set_mode): ... to this.
23463 (grub_vbe_get_mode): Renamed from this...
23464 (grub_vbe_bios_get_mode): ... to this.
23465 (grub_vbe_set_memory_window): Renamed from this...
23466 (grub_vbe_bios_set_memory_window): ... to this.
23467 (grub_vbe_get_memory_window): Renamed from this...
23468 (grub_vbe_bios_get_memory_window): ... to this.
23469 (grub_vbe_set_scanline_length): Renamed from this...
23470 (grub_vbe_set_scanline_length): ... to this.
23471 (grub_vbe_get_scanline_length): Renamed from this...
23472 (grub_vbe_bios_get_scanline_length): ... to this.
23473 (grub_vbe_set_display_start): Renamed from this...
23474 (grub_vbe_bios_set_display_start): ... to this.
23475 (grub_vbe_get_display_start): Renamed from this...
23476 (grub_vbe_bios_get_display_start): ... to this.
23477 (grub_vbe_set_palette_data): Renamed from this...
23478 (grub_vbe_bios_set_palette_data): ... to this.
23479 (grub_vbe_set_pixel_rgb): Removed.
23480 (grub_vbe_set_pixel_index): Likewise.
23481
23482 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
23483 from this...
23484 (grub_vbe_bios_get_controller_info): ... to this.
23485 (grub_vbe_get_mode_info): Renamed from this...
23486 (grub_vbe_bios_get_mode_info): ... to this.
23487 (grub_vbe_set_mode): Renamed from this...
23488 (grub_vbe_bios_set_mode): ... to this.
23489 (grub_vbe_get_mode): Renamed from this...
23490 (grub_vbe_bios_get_mode): ... to this.
23491 (grub_vbe_set_memory_window): Renamed from this...
23492 (grub_vbe_bios_set_memory_window): ... to this.
23493 (grub_vbe_get_memory_window): Renamed from this...
23494 (grub_vbe_bios_get_memory_window): ... to this.
23495 (grub_vbe_set_scanline_length): Renamed from this...
23496 (grub_vbe_set_scanline_length): ... to this.
23497 (grub_vbe_get_scanline_length): Renamed from this...
23498 (grub_vbe_bios_get_scanline_length): ... to this.
23499 (grub_vbe_set_display_start): Renamed from this...
23500 (grub_vbe_bios_set_display_start): ... to this.
23501 (grub_vbe_get_display_start): Renamed from this...
23502 (grub_vbe_bios_get_display_start): ... to this.
23503 (grub_vbe_set_palette_data): Renamed from this...
23504 (grub_vbe_bios_set_palette_data): ... to this.
23505 (grub_vbe_bios_get_controller_info): Fixed problem with registers
23506 getting corrupted after calling it. Added more pushes and pops.
23507 (grub_vbe_bios_set_mode): Likewise.
23508 (grub_vbe_bios_get_mode): Likewise.
23509 (grub_vbe_bios_get_memory_window): Likewise.
23510 (grub_vbe_bios_set_scanline_length): Likewise.
23511 (grub_vbe_bios_get_scanline_length): Likewise.
23512 (grub_vbe_bios_get_display_start): Likewise.
23513 (grub_vbe_bios_set_palette_data): Likewise.
23514
23515 * normal/cmdline.c (cl_set_pos): Refresh the screen.
23516 (cl_insert): Likewise.
23517 (cl_delete): Likewise.
23518
23519 * term/gfxterm.c: New file.
23520
23521 * term/i386/pc/vesafb.c: Removed file.
23522
23523 * video/video.c: New file.
23524
23525 * video/i386/pc/vbe.c (real2pm): Added new function.
23526 (grub_video_vbe_draw_pixel): Likewise.
23527 (grub_video_vbe_get_video_ptr): Likewise.
23528 (grub_video_vbe_get_pixel): Likewise
23529 (grub_video_vbe_init): Likewise.
23530 (grub_video_vbe_fini): Likewise.
23531 (grub_video_vbe_setup): Likewise.
23532 (grub_video_vbe_get_info): Likewise.
23533 (grub_video_vbe_set_palette): Likewise.
23534 (grub_video_vbe_get_palette): Likewise.
23535 (grub_video_vbe_set_viewport): Likewise.
23536 (grub_video_vbe_get_viewport): Likewise.
23537 (grub_video_vbe_map_color): Likewise.
23538 (grub_video_vbe_map_rgb): Likewise.
23539 (grub_video_vbe_map_rgba): Likewise.
23540 (grub_video_vbe_unmap_color): Likewise.
23541 (grub_video_vbe_fill_rect): Likewise.
23542 (grub_video_vbe_blit_glyph): Likewise.
23543 (grub_video_vbe_blit_bitmap): Likewise.
23544 (grub_video_vbe_blit_render_target): Likewise.
23545 (grub_video_vbe_scroll): Likewise.
23546 (grub_video_vbe_swap_buffers): Likewise.
23547 (grub_video_vbe_create_render_target): Likewise.
23548 (grub_video_vbe_delete_render_target): Likewise.
23549 (grub_video_vbe_set_active_render_target): Likewise.
23550 (grub_vbe_set_pixel_rgb): Remove function.
23551 (grub_vbe_set_pixel_index): Likewise.
23552 (index_color_mode): Remove static variable.
23553 (active_mode): Likewise.
23554 (framebuffer): Likewise.
23555 (bytes_per_scan_line): Likewise.
23556 (grub_video_vbe_adapter): Added new static variable.
23557 (framebuffer): Likewise.
23558 (render_target): Likewise.
23559 (initial_mode): Likewise.
23560 (mode_in_use): Likewise.
23561 (mode_list): Likewise.
23562
5f97350b 235632006-03-10 Marco Gerards <marco@gnu.org>
23564
23565 * configure.ac (AC_INIT): Bumped to 1.93.
23566
23567 * DISTLIST: Added `include/grub/hfs.h'.
23568
a3c5c6f8 235692006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
23570
23571 * boot/i386/pc/boot.S (general_error): Before looping, try INT
23572 18H, which might help the BIOS falling back to next boot media.
23573
6de53d26 235742006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
23575
23576 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
23577 Poe Chen <poe.poechen@gmail.com>.
23578
77c4a393 235792006-01-17 Marco Gerards <marco@gnu.org>
23580
23581 * include/grub/normal.h: Include <grub/script.h>.
23582 (grub_command_list): Removed struct.
23583 (grub_command_list_t): Removed type.
23584 (grub_menu_entry): Remove members `num' and `command_list'. Add
23585 members `commands' and `sourcecode'.
23586 * include/grub/script.h: Add inclusion guards.
23587 (grub_script_cmd_menuentry): New struct.
23588 (grub_script_execute_menuentry): New prototype.
23589 (grub_script_lexer_record_start): Likewise.
23590 (grub_script_lexer_record_stop): Likewise.
23591 * normal/execute.c (grub_script_execute_menuentry): New function.
23592 * normal/lexer.c (record, recording, recordpos, recordlen): New
23593 variables.
23594 (grub_script_lexer_record_start): New function.
23595 (grub_script_lexer_record_stop): Likewise.
23596 (recordchar): Likewise.
23597 (nextchar): Likewise.
23598 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
23599 2048 as the buffer size. Add the tokens `menuentry' and `@'.
23600 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
23601 (current_menu): New variable.
23602 (free_menu): Mainly rewritten.
23603 (grub_normal_menu_addentry): New function.
23604 (read_config_file): Rewritten.
23605 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 23606 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 23607 the menu entry.
23608 (run): Mainly rewritten.
23609 * normal/parser.y (menu_entry): New variable.
23610 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
23611 (menuentry): New rule.
23612 (command): Add `menuentry'.
23613 (if_statement): Allow additional returns before `fi'.
23614 * normal/script.c (grub_script_create_cmdmenu): New function.
23615
144f1f98 236162006-01-03 Marco Gerards <marco@gnu.org>
23617
23618 * INSTALL: GNU Bison is required.
23619 * configure.ac: Rewritten the test to detect Bison.
23620 * Makefile.in (YACC): New variable. Reported by Xun Sun
23621 <xun.sun.cn@gmail.com>.
23622
af4b2d89 236232006-01-03 Marco Gerards <marco@gnu.org>
23624
23625 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
23626 the HFS+ filesystem to filesystem blocks.
23627 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
23628 GCC warning is silenced.
23629
15643b71 236302006-01-03 Marco Gerards <marco@gnu.org>
23631
23632 * partmap/apple.c (apple_partition_map_iterate): Convert the data
23633 read from disk from big endian to host byte order.
23634
00905879 236352006-01-03 Hollis Blanchard <hollis@penguinppc.org>
23636
23637 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
23638 documentation.
23639 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
23640 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
23641 embedded HFS+ filesystem.
23642 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
23643 (grub_hfs_sblock): Move from here...
23644 * include/grub/hfs.h: To here... New file.
23645 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
23646 documentation.
23647 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
23648 New macros.
23649 (grub_hfsplus_volheader): Change type of member `magic' to
23650 `grub_uint16_t'.
23651 (grub_hfsplus_data): Add new member `embedded_offset'.
23652 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
23653 returned block.
23654 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
23655 Calculate the offset.
23656
8899bc3e 236572005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23658
23659 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
23660 Removed.
23661 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
23662
ae8c0277 236632005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23664
23665 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
23666 ENV->NAME is NULL after allocating ENV->VALUE.
23667
07084456 236682005-12-25 Marco Gerards <marco@gnu.org>
23669
23670 * kern/env.c (grub_env_set): Rewritten the error handling code.
23671
4750f5f1 236722005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23673
23674 * geninit.sh: Made more robust, and more portable.
23675
50214199 236762005-12-25 Marco Gerards <marco@gnu.org>
23677
23678 Add support for Apple HFS+ filesystems.
f19dbdb7 23679
50214199 23680 * fs/hfsplus.c: New file.
23681
23682 * DISTLIST: Added `fs/hfsplus.c'.
23683
23684 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
23685 (hfsplus_mod_SOURCES): New variable.
23686 (hfsplus_mod_CFLAGS): Likewise.
23687 (hfsplus_mod_LDFLAGS): Likewise.
23688 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
23689 (grub_setup_SOURCES): Likewise.
23690 (grub_mkdevicemap_SOURCES): Likewise.
23691 (grub_emu_SOURCES): Likewise.
23692 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23693
23694 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
23695
23696 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
23697
befaed6c 236982005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23699
23700 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
23701 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
23702 include/grub/parser.h, include/grub/script.h, kern/parser.c,
23703 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
23704 normal/lexer.c, normal/parser.y, normal/script.c, and
23705 partmap/gpt.c.
23706 Removed kern/sparc64/cache.c.
23707
23708 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
23709 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
23710 grub_emu_init.c.
23711
23712 * configure.ac (AC_INIT): Bumped to 1.92.
23713
6a124103 237142005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
23715
23716 * kern/err.c (grub_error_push): Added new function to support error
23717 stacks.
23718 (grub_error_pop): Likewise.
23719 (grub_error_stack_items): New local variable to support error stacks.
23720 (grub_error_stack_pos): Likewise.
23721 (grub_error_stack_assert): Likewise.
23722 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
23723 stack depth.
23724 (grub_print_error): Added support to print errors from error stack.
23725
23726 * include/grub/err.h (grub_error_push): Added function prototype.
23727 (grub_error_pop): Likewise.
23728
be973c1b 237292005-12-09 Hollis Blanchard <hollis@penguinppc.org>
23730
23731 * configure.ac: Accept `powerpc64' as host_cpu.
23732 (amd64): Rename to `biarch32'.
23733
23734 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
23735 non-cacheline-aligned addresses.
23736
23737 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
23738 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
23739 if `size' is non-zero.
23740
b04216ab 237412005-12-03 Marco Gerards <mgerards@xs4all.nl>
23742
23743 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
23744 and `cd' to make sure the filename is not prefixed with a
23745 directory name.
23746 (pkgdata_MODULES): Add `gpt.mod'.
23747 (gpt_mod_SOURCES): New variable.
23748 (gpt_mod_CFLAGS): Likewise.
23749 (gpt_mod_LDFLAGS): Likewise.
23750
23751 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
23752
23753 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
23754 New macro.
23755
23756 * partmap/gpt.c: New file.
23757
23758 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
23759 GPT partition map is detected.
23760
41730ed9 237612005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
23762
23763 * commands/i386/pc/play.c: New file.
23764 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
23765 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
23766 macros.
f19dbdb7 23767
95dc3643 237682005-11-27 Marco Gerards <mgerards@xs4all.nl>
23769
23770 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
23771 ((unused))' to silence gcc warning.
23772
1569ec51 237732005-11-26 Hollis Blanchard <hollis@penguinppc.org>
23774
23775 * configure.ac: Correct `AC_PROG_YACC' test.
23776
9abde152 237772005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23778
23779 * util/powerpc/ieee1275/grub-install.in: Run the mount point
23780 check before installing files.
23781
44b83271 237822005-11-22 Mike Small <smallm@panix.com>
23783
23784 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
23785 number regex so multidigit numbers are recognized correctly.
23786
237872005-11-22 Mike Small <smallm@panix.com>
23788
23789 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
23790 debugging message before attempting to claim memory.
23791 (grub_rescue_cmd_initrd): Add a claim debugging message and try
23792 multiple addresses in case of failure.
23793
9c12956b 237942005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23795
23796 * term/tparm.c (get_space): Remove empty `if' statement.
23797
23798 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
23799
23800 * kern/parser.c (check_varstate): Rename `state' to 's'.
23801
aeaf81d9 238022005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23803
23804 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
23805 variable definitions to the beginning of each function. Sort stack
23806 variables by size.
23807 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
23808 `buf' argument to `char *'.
23809
79bbb63f 238102005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23811
23812 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
23813 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 23814 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 23815 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
23816 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
23817 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
23818 configfile.mod, search.mod, gzio.mod and test.mod.
23819 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
23820 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
23821 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
23822 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
23823 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
23824 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
23825 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
23826 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
23827 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
23828 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
23829 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
23830 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
23831 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
23832 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
23833 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
23834 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
23835 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
23836 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
23837 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
23838 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
23839 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
23840 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
23841 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
23842
23843 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
23844 `grep --include'.
23845 (pkgdata_MODULES): Add test.mod.
23846
233b1628 238472005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23848
23849 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
23850 appending to variables with "+=".
23851 (PModule): Use full pathname to generate *.lst filenames.
23852
23853 * Makefile.in: Fixed list rules moved from genmk.rb.
23854 (.DELETE_ON_ERROR): New special target.
23855 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
23856
23857 * conf/i386-pc.rmk: Include conf/common.mk.
23858 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 23859 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 23860 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
23861 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
23862 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
23863 configfile.mod, search.mod, gzio.mod and test.mod.
23864 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
23865 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
23866 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
23867 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
23868 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
23869 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
23870 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
23871 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
23872 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
23873 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
23874 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
23875 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
23876 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
23877 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
23878 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
23879 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
23880 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
23881 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
23882 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
23883 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
23884 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
23885 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
23886 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
23887 here...
23888 * conf/common.rmk: ... to here. New file.
23889
23890 * conf/common.mk: New file.
23891
16f820c8 238922005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
23893
23894 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
23895 (grub_script.tab.c): ... here.
23896
23897 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
23898 (grub_script.tab.c): ... here.
23899
23900 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
23901 (grub_script.tab.c): ... here.
23902
23903 * normal/command.c (grub_command_find): Fixed a memory leak of
23904 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
23905
63ba1554 239062005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23907
23908 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
23909 "@" which marks the start of a comment on ARM.
23910 (VARIABLE): Likewise.
23911
7f67dc13 239122005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23913
79bbb63f 23914 Add support for Linux/ADFS partition tables.
7f67dc13 23915
23916 * partmap/acorn.c: New file.
23917
23918 * include/grub/acorn_filecore.h: Likewise.
23919
23920 * DISTLIST: Added `partmap/acorn.c' and
23921 `include/grub/acorn_filecore.h'.
f19dbdb7 23922
7f67dc13 23923 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
23924 `partmap/acorn.c'.
23925 (pkgdata_MODULES): Add `acorn.mod'.
23926 (acorn_mod_SOURCES): New variable.
23927 (acorn_mod_CFLAGS): Likewise.
23928
23929 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
23930 `partmap/acorn.c'.
23931 (pkgdata_MODULES): Add `acorn.mod'.
23932 (acorn_mod_SOURCES): New variable.
23933 (acorn_mod_CFLAGS): Likewise.
23934
23935 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
23936 (pkgdata_MODULES): Add `acorn.mod'.
23937 (acorn_mod_SOURCES): New variable.
23938 (acorn_mod_CFLAGS): Likewise.
23939 (acorn_mod_LDFLAGS): Likewise.
23940
23941 * include/types.h (grub_disk_addr_t): New typedef.
23942
6d099807 239432005-11-13 Marco Gerards <mgerards@xs4all.nl>
23944
23945 * geninit.sh: New file.
23946
23947 * geninitheader.sh: Likewise.
23948
23949 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
23950 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
23951 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
23952 * commands/configfile.c (grub_configfile_init)
23953 (grub_configfile_fini): Likewise.
23954 * commands/default.c (grub_default_init, grub_default_fini):
23955 Likewise.
23956 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
23957 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
23958 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
23959 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
23960 Likewise.
23961 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
23962 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
23963 Likewise.
23964 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 23965 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 23966 Likewise.
23967 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
23968 Likewise.
fe6b695a 23969 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 23970 Likewise.
23971 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
23972 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
23973 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
23974 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
23975 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
23976 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
23977 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
23978 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
23979 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
23980 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
23981 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
23982 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
23983 * partmap/amiga.c (grub_amiga_partition_map_init)
23984 (grub_amiga_partition_map_fini): Likewise.
23985 * partmap/apple.c (grub_apple_partition_map_init)
23986 (grub_apple_partition_map_fini): Likewise.
23987 * partmap/pc.c (grub_pc_partition_map_init)
23988 (grub_pc_partition_map_fini): Likewise.
23989 * partmap/sun.c (grub_sun_partition_map_init,
23990 grub_sun_partition_map_fini): Likewise.
23991 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
23992 Likewise.
23993
23994 * util/grub-emu.c: Include <grub_modules_init.h>.
23995 (main): Don't initialize and de-initialize any modules directly,
23996 use `grub_init_all' and `grub_fini_all' instead.
23997
23998 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
23999 `grub_vesafb_mod_init'.
24000 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
24001 all users.
24002 * term/i386/pc/vga.c (grub_vga_init): Renamed to
24003 `grub_vga_mod_init'. Updated all users.
24004 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 24005
6d099807 24006 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
24007 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
24008 rules.
24009
24010 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
24011 Generate a function to initialize the module in utilities.
24012 Updated all callers.
24013 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
24014 initialize the module in utilities. Updated all callers.
24015
9046bcf0 240162005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24017
24018 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
24019 escape sequence and a literal ^L to clear the screen.
24020
24021 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
24022 when returning from Open Firmware.
24023
d13ea639 240242005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24025
24026 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
24027 (grub_ofconsole_height): Likewise.
24028 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
24029 manually insert a '\n'.
24030 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
24031 `grub_ofconsole_height'. Return early if these are already set.
24032
a8fcf206 240332005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
24034
24035 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
24036 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
24037 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
24038 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
24039 and `normal/script.c'.
24040 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24041 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24042 (test_mod_SOURCES): New variable.
24043 (test_mod_CFLAGS): Likewise.
24044 (test_mod_LDFLAGS): Likewise.
24045 (pkgdata_MODULES): Add `test.mod'.
24046 (grub_script.tab.c): New rule.
24047 (grub_script.tab.h): Likewise.
24048
b6b32745 240492005-11-07 Marco Gerards <mgerards@xs4all.nl>
24050
24051 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24052 `commands/test.c', `normal/execute.c', `normal/lexer.c',
24053 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24054 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24055 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24056 (test_mod_SOURCES): New variable.
24057 (test_mod_CFLAGS): Likewise.
24058 (pkgdata_MODULES): Add `test.mod'.
24059 (grub_script.tab.c): New rule.
24060 (grub_script.tab.h): Likewise.
24061
daac212a 240622005-11-06 Marco Gerards <mgerards@xs4all.nl>
24063
24064 Add initial scripting support.
24065
24066 * commands/test.c: New file.
24067 * include/grub/script.h: Likewise.
24068 * normal/execute.c: Likewise.
24069 * normal/function.c: Likewise.
24070 * normal/lexer.c: Likewise.
24071 * normal/parser.y: Likewise.
24072 * normal/script.c: Likewise.
24073
24074 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 24075
daac212a 24076 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
24077 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
24078 `normal/function.c' and `normal/script.c'.
24079 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24080 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 24081 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
24082 variables.
daac212a 24083 (pkgdata_MODULES): Add `test.mod'.
24084 (grub_script.tab.c): New rule.
24085 (grub_script.tab.h): Likewise.
24086
24087 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
24088
24089 * include/grub/normal.h (grub_test_init): New prototype.
24090 (grub_test_fini): Likewise.
f19dbdb7 24091
daac212a 24092 * normal/command.c: Include <grub/script.h>.
24093 (grub_command_execute): Rewritten.
f19dbdb7 24094
daac212a 24095 * util/grub-emu.c (main): Call `grub_test_init' and
24096 `grub_test_fini'.
24097
77500b2b 240982005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24099
24100 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
24101 to 0.
24102 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
24103 there are no pending characters.
24104
e45deb9e 241052005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24106
24107 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
24108 `grub_strndup' to drop device arguments. Replace unnecessary
24109 `grub_strndup' with `grub_strdup'.
24110
4ce32619 241112005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24112
24113 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
24114 `debug' environment variable has been set.
24115
241162005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 24117
4ce32619 24118 * Makefile.in (install-local): Use $(DATA).
24119 (uninstall): Likewise.
24120 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
24121 (sbin_UTILITIES): ... to here.
24122 (sbin_SCRIPTS): New variable.
24123 (grub_install_SOURCES): New variable.
24124 * util/powerpc/ieee1275/grub-install.in: New file.
24125 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
24126 variable.
24127 (add_segments): Call `grub_util_get_path'.
24128
25fe6f03 241292005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
24130
24131 From Timothy Baldwin:
24132 * commands/ls.c (grub_ls_list_files): Close FILE with
24133 grub_file_close.
24134 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
24135
04ccf3ec 241362005-10-24 Marco Gerards <mgerards@xs4all.nl>
24137
24138 * include/grub/parser.h: New file.
24139
24140 * kern/parser.c: Likewise.
24141
24142 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
24143 (grub_setup_SOURCES): Likewise.
24144 (grub_probefs_SOURCES): Likewise.
24145 (grub_emu_SOURCES): Likewise.
24146 (kernel_img_HEADERS): Add `parser.h'.
24147
24148 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24149 (grub_emu_SOURCES): Add `kern/parser.c'.
24150 (grubof_SOURCES): Likewise.
24151
24152 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24153 (grubof_SOURCES): Add `kern/parser.c'.
24154
24155 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
24156
24157 * kern/misc.c (grub_split_cmdline): Removed function.
24158
24159 * kern/rescue.c: Include <grub/parser.h>.
24160 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
24161 of `grub_split_cmdline'.
24162
24163 * normal/command.c: Include <grub/parser.h>.
24164 (grub_command_execute): Use `grub_parser_split_cmdline' instead
24165 of `grub_split_cmdline'.
24166
24167 * normal/completion.c: Include <grub/parser.h>.
24168 (cmdline_state): New variable.
24169 (iterate_dir): End the filename with a quote depending on the
24170 command line state.
24171 (get_state): new function.
24172 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
24173 split the arguments and determine the current argument. When the
24174 argument string is not quoted, escape all spaces.
24175
6d8f4b0e 241762005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24177
24178 * normal/sparc64/setjmp.S: New file.
24179
15cf03ed 241802005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24181
24182 * include/grub/sparc64/libgcc.h: New file.
24183 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
24184 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
24185 normal/sparc64/setjmp.c.
24186
03e8661a 241872005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24188
24189 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
24190 * kern/sparc64/cache.S: New file.
24191 * kern/sparc64/cache.c: Removed.
24192 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
24193 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
24194 -mtune=ultrasparc.
24195 (COMMON_LDFLAGS): Add -melf64_sparc.
24196 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
24197 (grubof_SOURCES): Use cache.S instead of cache.c.
24198 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
24199 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
24200 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
24201 commented though.
24202 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
24203 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
24204 (linux_mod_CFLAGS): Commented out.
24205 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
24206 out because module isn't built.
24207 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
24208 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
24209 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
24210 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
24211 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
24212 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24213 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24214 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
24215 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
24216 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
24217 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24218 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24219 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
24220 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
24221
34eeec8a 242222005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
24223
24224 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
24225 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
24226 longer, because HFS should not be used on PC.
24227
708367a3 242282005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24229
24230 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
24231 consistently within the loop.
24232
6fa1251a 242332005-10-15 Marco Gerards <mgerards@xs4all.nl>
24234
24235 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
24236 directory can not be read.
24237
4801580b 242382005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24239
24240 * configure.ac (AC_INIT): Increase the version number to 1.91.
24241
24242 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
24243 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
24244 term/i386/pc/serial.c.
24245
219ad426 242462005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24247
24248 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
24249 file size must be permitted.
24250
24251 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
24252 between %ah and %al.
24253
688e5699 242542005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24255
24256 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
24257 grub_uint64_t.
24258 Call the hook with a NUL-terminated filename.
24259 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
24260 grub_cpu_to_be32.
24261
24262 * kern/term.c (cursor_state): New variable.
24263 (grub_term_set_current): Reset the cursor state on a new
24264 terminal.
24265 (grub_setcursor): Rewritten to use CURSOR_STATE.
24266 (grub_getcursor): New function.
24267
24268 * include/grub/term.h (grub_getcursor): New prototype.
24269
24270 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
24271 integers on ARM. Reported by Timothy Baldwin
24272 <T.E.Baldwin99@members.leeds.ac.uk>.
24273
bb34586c 242742005-10-11 Marco Gerards <mgerards@xs4all.nl>
24275
24276 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
24277 allocated.
24278 (grub_sfs_dir): Likewise.
24279
9a909877 242802005-10-09 Marco Gerards <mgerards@xs4all.nl>
24281
24282 Add support for the SFS filesystem.
24283
24284 * fs/sfs.c: New file.
24285
24286 * DISTLIST: Added `fs/sfs.c'.
24287
24288 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
24289 (grub_probefs_SOURCES): Likewise.
24290 (grub_emu_SOURCES): Likewise.
24291 (pkgdata_MODULES): Add `sfs.mod'.
24292 (sfs_mod_SOURCES): New variable.
24293 (sfs_mod_CFLAGS): Likewise.
24294 (sfs_mod_LDFLAGS): Likewise.
24295
24296 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
24297 (pkgdata_MODULES): Add `sfs.mod'.
24298 (sfs_mod_SOURCES): New variable.
24299 (sfs_mod_CFLAGS): Likewise.
24300
24301 * util/grub-emu.c (main): Call `grub_sfs_init' and
24302 `grub_sfs_fini'.
24303
24304 * include/grub/fs.h (grub_sfs_init): New prototype.
24305 (grub_sfs_fini): Likewise.
24306
57bdbde3 243072005-10-07 Marco Gerards <mgerards@xs4all.nl>
24308
24309 Add support for the AFFS filesystem.
24310
24311 * fs/affs.c: New file.
24312
24313 * DISTLIST: Added `fs/affs.c'.
24314
24315 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
24316 (grub_probefs_SOURCES): Likewise.
24317 (grub_emu_SOURCES): Likewise.
24318 (pkgdata_MODULES): Add `affs.mod'.
24319 (affs_mod_SOURCES): New variable.
24320 (affs_mod_CFLAGS): Likewise.
24321 (affs_mod_LDFLAGS): Likewise.
24322
24323 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
24324 (pkgdata_MODULES): Add `affs.mod'.
24325 (affs_mod_SOURCES): New variable.
24326 (affs_mod_CFLAGS): Likewise.
24327
24328 * util/grub-emu.c (main): Call `grub_affs_init' and
24329 `grub_affs_fini'.
24330
24331 * include/grub/fs.h (grub_affs_init): New prototype.
24332 (grub_affs_fini): Likewise.
24333
047b67e0 243342005-10-01 Marco Gerards <mgerards@xs4all.nl>
24335
24336 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
24337
59b8208a 243382005-10-01 Marco Gerards <mgerards@xs4all.nl>
24339
24340 * configure.ac: Accept `x86_64' as host_cpu. In that case add
24341 `-m32' to CFLAGS.
24342
24343 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
24344 linking.
f19dbdb7 24345
59b8208a 24346 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
24347 (COMMON_LDFLAGS): New variable.
24348 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
24349 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
24350 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
24351 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
24352 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
24353 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
24354 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
24355 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
24356 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
24357 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
24358 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24359 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24360 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
24361 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
24362 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
24363 variables.
24364 (normal_mod_ASFLAGS): Add `-m32'.
24365
24366 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
24367 (grub_host_size_t, grub_host_ssize_t): New types.
24368 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 24369 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 24370 `GRUB_HOST_SIZEOF_VOID_P'.
24371
24372 * include/grub/kernel.h (struct grub_module_header): Type of
24373 member offset changed to `grub_host_off_t'. Type of member size
24374 changed to `grub_host_size_t'.
24375 (struct grub_module_info): Type of member offset changed to
24376 `grub_host_off_t'. Type of member size changed to
24377 `grub_host_size_t'.
24378
b4093103 243792005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
24380
24381 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 24382
b4093103 24383 * kern/i386/pc/startup.S (multiboot_header): New label.
24384 (multiboot_entry): Likewise.
24385 (multiboot_trampoline): Likewise.
24386
24387 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
24388 Increased to 0x4A0.
24389
24390 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
24391 put parentheses after a question mark.
24392 [!GRUB_UTIL] (my_mod): New variable.
24393
24394 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
24395
b2499b29 243962005-09-28 Marco Gerards <mgerards@xs4all.nl>
24397
24398 Adds support for the XFS filesystem. Btrees are not supported
24399 yet.
24400
24401 * fs/xfs.c: New file.
24402
24403 * DISTLIST: Added `fs/xfs.c'.
24404
24405 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
24406 (grub_probefs_SOURCES): Likewise.
24407 (grub_emu_SOURCES): Likewise.
24408 (pkgdata_MODULES): Add `xfs.mod'.
24409 (xfs_mod_SOURCES): New variable.
24410 (xfs_mod_CFLAGS): Likewise.
24411
24412 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
24413 (pkgdata_MODULES): Add `xfs.mod'.
24414 (xfs_mod_SOURCES): New variable.
24415 (xfs_mod_CFLAGS): Likewise.
24416
24417 * util/grub-emu.c (main): Call `grub_xfs_init' and
24418 `grub_xfs_fini'.
24419
24420 * include/grub/fs.h (grub_xfs_init): New prototype.
24421 (grub_xfs_fini): Likewise.
24422
f19dbdb7 24423
83d37a62 244242005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
24425
24426 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
24427 color modes, allow greater than 16 colors to be configured as
24428 a default palette.
24429
47d2d65e 244302005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
24431
24432 * normal/completion.c (complete_arguments): Add the qualifier
24433 const into OPTIONS.
24434
24435 From Omniflux <omniflux+lists@omniflux.com>:
24436 * include/grub/terminfo.h: New file.
24437 * include/grub/tparm.h: Likewise.
24438 * include/grub/i386/pc/serial.h: Likewise.
24439 * term/terminfo.c: Likewise.
24440 * term/tparm.c: Likewise.
24441 * term/i386/pc/serial.c: Likewise.
24442 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
24443 serial.mod.
24444 (terminfo_mod_SOURCES): New variable.
24445 (terminfo_mod_CFLAGS): Likewise.
24446 (serial_mod_SOURCES): Likewise.
24447 (serial_mod_CFLAGS): Likewise.
24448
48b671ff 244492005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
24450
24451 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
24452 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
24453 and kern/powerpc/ieee1275/cmain.c, respectively.
24454
24455 * boot/powerpc/ieee1275/crt0.S: Moved to ...
24456 * kern/powerpc/ieee1275/crt0.S: ... here.
24457
24458 * boot/powerpc/ieee1275/cmain.c: Moved to ...
24459 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 24460
48b671ff 24461 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
24462 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
24463 instead of boot/powerpc/ieee1275/crt0.S and
24464 boot/powerpc/ieee1275/cmain.c, respectively.
24465
24466 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
24467 sectors. It was not used anyway.
24468
09fc77a7 244692005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24470
24471 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
24472 `unused parameter' warning.
24473
003789c7 244742005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24475
24476 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
24477 function.
24478 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
24479 getcharwidth.
24480
67f44c86 244812005-08-28 Marco Gerards <metgerards@student.han.nl>
24482
24483 * include/grub/normal.h (enum grub_completion_type): Added
24484 `GRUB_COMPLETION_TYPE_ARGUMENT'.
24485
24486 * normal/cmdline.c (print_completion): Handle
24487 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
24488 * normal/menu_entry.c (store_completion): Likewise.
24489
24490 * normal/completion.c (complete_arguments): New function.
24491 (grub_normal_do_completion): Call `complete_arguments' when the
24492 current words start with a dash.
24493
0b5abe02 244942005-08-27 Marco Gerards <metgerards@student.han.nl>
24495
24496 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
24497 `gzio.mod' instead of `io.mod').
24498
d9864ee1 244992005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
24500
24501 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
24502 (DISTDIRS): Added io and video.
24503 Rewrite the search routine to make an output consistently.
24504
24505 * DISTLIST: Added conf/sparc64-ieee1275.mk,
24506 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
24507 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
24508 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
24509 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
24510 util/powerpc/ieee1275/misc.c.
f19dbdb7 24511
d9864ee1 24512 * include/grub/gzio.h: New file.
24513 * io/gzio.c: Likewise.
f19dbdb7 24514
d9864ee1 24515 * kern/file.c (grub_file_close): Call grub_device_close only if
24516 FILE->DEVICE is not NULL.
24517
24518 * include/grub/mm.h [!NULL] (NULL): New macro.
24519
24520 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
24521
24522 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
24523 (pkgdata_MODULES): Added gzio.mod.
24524 (gzio_mod_SOURCES): New variable.
24525 (gzio_mod_CFLAGS): Likewise.
24526
24527 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
24528 (pkgdata_MODULES): Added gzio.mod.
24529 (gzio_mod_SOURCES): New variable.
24530 (gzio_mod_CFLAGS): Likewise.
24531
24532 * commands/cat.c: Include grub/gzio.h.
24533 (grub_cmd_cat): Use grub_gzfile_open instead of
24534 grub_file_open.
f19dbdb7 24535
d9864ee1 24536 * commands/cmp.c: Include grub/gzio.h.
24537 (grub_cmd_cmp): Use grub_gzfile_open instead of
24538 grub_file_open.
24539
24540 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
24541 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
24542 grub_file_open.
24543 (grub_rescue_cmd_module): Likewise.
24544
fa46f4b5 245452005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24546
24547 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
24548 kern/sparc64/ieee1275/init.c because it contains _start.
24549 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
24550
e9211b5d 245512005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24552
24553 * configure.ac: Add support for sparc64 host with ieee1275
24554 firmware.
24555 * configure: Generated from configure.ac.
24556 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
24557 instead of int.
24558 (grub_ofdisk_read): Likewise.
24559 (grub_ofdisk_open): Use %p to print pointer values, and cast the
24560 pointers as (void *) to remove a warning.
24561 (grub_ofdisk_close): Likewise.
24562 (grub_ofdisk_read): Likewise.
24563 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
24564 returns, so make it return void to remove a warning.
24565 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
24566 Corresponding prototype change.
24567 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
24568 values, and cast the pointers as (void *) to remove a warning.
24569 (grub_mm_dump): Likewise.
24570 * conf/sparc64-ieee1275.mk: New file.
24571 * conf/sparc64-ieee1275.rmk: Likewise.
24572 * include/grub/sparc64/setjmp.h: Likewise.
24573 * include/grub/sparc64/types.h: Likewise.
24574 * include/grub/sparc64/ieee1275/console.h: Likewise.
24575 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
24576 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
24577 * include/grub/sparc64/ieee1275/time.h: Likewise.
24578 * kern/sparc64/cache.c: Likewise.
24579 * kern/sparc64/dl.c: Likewise.
24580 * kern/sparc64/ieee1275/init.c: Likewise.
24581 * kern/sparc64/ieee1275/openfw.c: Likewise.
24582
385c6a92 245832005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
24584
24585 * util/console.c (grub_ncurses_putchar): If C is greater than
24586 0x7f, set C to a question mark.
24587 (grub_ncurses_getcharwidth): New function.
24588 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
24589 getcharwidth.
24590
24591 * normal/menu.c (print_entry): Made aware of Unicode. First,
24592 convert TITLE to UCS-4, and predict the cursor position by
24593 grub_getcharwidth.
24594
24595 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
24596 const to SRC.
24597 * kern/misc.c (grub_utf16_to_utf8): Likewise.
24598
16ccb8b1 245992005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24600
24601 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
24602 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24603 grub_strcat.
24604
24605 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
24606 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24607 grub_strcpy and grub_strlen. Take it into account that a space
24608 character is inserted as a delimiter.
24609
6a85ce79 246102005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24611
24612 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 24613 invalid magic in the error.
6a85ce79 24614
24615 * commands/search.c: New file.
f19dbdb7 24616
6a85ce79 24617 * util/grub-emu.c (main): Call grub_search_init and
24618 grub_search_fini.
24619
24620 * kern/rescue.c (grub_rescue_print_disks): Removed.
24621 (grub_rescue_print_devices): New function.
24622 (grub_rescue_cmd_ls): Use grub_device_iterate with
24623 grub_rescue_print_devices instead of grub_disk_dev_iterate with
24624 grub_rescue_print_disks.
24625
24626 * kern/partition.c (grub_partition_iterate): Return the result of
24627 PARTMAP->ITERATE instead of GRUB_ERRNO.
24628
24629 * kern/device.c: Include grub/partition.h.
24630 (grub_device_iterate): New function.
24631
24632 * include/grub/partition.h (grub_partition_iterate): Return int
24633 instead of grub_err_t.
24634
24635 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
24636 prototype.
24637 [GRUB_UTIL] (grub_search_fini): Likewise.
24638
24639 * include/grub/device.h (grub_device_iterate): New prototype.
24640
24641 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
24642 commands/search.c.
24643 (pkgdata_MODULES): Added search.mod.
24644 (search_mod_SOURCES): New variable.
24645 (search_mod_CFLAGS): Likewise.
24646
24647 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
24648 (pkgdata_MODULES): Added search.mod.
24649 (search_mod_SOURCES): New variable.
24650 (search_mod_CFLAGS): Likewise.
24651
24652 * commands/ls.c (grub_ls_list_disks): Renamed to ...
24653 (grub_ls_list_devices): ... this, and use grub_device_iterate.
24654 All callers changed.
24655
24656 * DISTLIST: Added commands/search.c.
24657
ef095434 246582005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24659
24660 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
24661 conversion.
24662 (grub_getcharwidth): New function.
24663
24664 * kern/misc.c (grub_utf8_to_ucs4): New function.
24665
24666 * include/grub/term.h (struct grub_term): Added a new member
24667 "getcharwidth".
24668 (grub_getcharwidth): New prototype.
24669
24670 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
24671
24672 * term/i386/pc/console.c (map_char): New function. Segregated from
24673 grub_console_putchar.
24674 (grub_console_putchar): Use map_char.
24675 (grub_console_getcharwidth): New function.
24676 (grub_console_term): Specified grub_console_getcharwidth as
24677 getcharwidth.
24678
24679 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
24680 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
24681
24682 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
24683 GRUB_ERRNO.
24684 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
24685 on grub_strtoul completely.
24686 (write_char): Declare local variables in the beginning of the
24687 function.
24688 (grub_vesafb_getcharwidth): New function.
24689 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
24690 getcharwidth.
24691
1f0a95e4 246922005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
24693
24694 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
24695 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
24696 commands/i386/pc/vbetest.c.
24697
24698 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
24699 call grub_vbe_get_controller_info again, because the returned
24700 information is volatile.
24701 (grub_vbe_set_video_mode): Mostly rewritten.
24702 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
24703 grub_vbe_status_t correctly.
24704 (grub_vbe_get_video_mode_info): Likewise.
24705 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
24706 several if statements.
24707
24708 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
24709 * commands/i386/pc/vbeinfo.c: ... this.
24710
24711 * commands/i386/pc/vbe_test.c: Renamed to ...
24712 * commands/i386/pc/vbetest.c: ... this.
24713
24714 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
24715 ...
24716 (grub_cmd_vbeinfo): ... this. Save video modes before
24717 iterating. Skip a video mode, if it is not available, not enough
24718 information is given or it is monochrome. Show the memory
24719 model. Leave the interpretation of MODEVAR to grub_strtoul
24720 completely.
24721 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
24722 (GRUB_MOD_FINI): Likewise.
24723
24724 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
24725 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
24726 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
24727 duplicated grub_env_get. Leave the interpretation of MODEVAR to
24728 grub_strtoul completely.
24729 (real2pm): Removed.
24730 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
24731 (GRUB_MOD_FINI): Likewise.
24732
24733 * normal/misc.c: Include grub/mm.h.
24734
24735 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
24736 vbe_list_modes with vbetest.mod and vbeinfo.mod.
24737 (vbe_list_modes_mod_SOURCES): Removed.
24738 (vbe_list_modes_mod_CFLAGS): Likewise.
24739 (vbe_test_mod_SOURCES): Likewise.
24740 (vbe_test_mod_CFLAGS): Likewise.
24741 (vbeinfo_mod_SOURCES): New variable.
24742 (vbeinfo_mod_CFLAGS): Likewise.
24743 (vbetest_mod_SOURCES): Likewise.
24744 (vbetest_mod_CFLAGS): Likewise.
24745
992ffbbe 247462005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
24747
24748 * normal/misc.c: New file.
24749
24750 * DISTLIST: Added normal/misc.c.
f19dbdb7 24751
992ffbbe 24752 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
24753 DISK to HOOK. Call HOOK with DISK.
24754 * partmap/apple.c (apple_partition_map_iterate): Likewise.
24755 * partmap/pc.c (pc_partition_map_iterate): Likewise.
24756 * partmap/sun.c (sun_partition_map_iterate): Likewise.
24757
24758 * normal/menu_entry.c (struct screen): Added a new member
24759 "completion_shown".
24760 (completion_buffer): New global variable.
24761 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
24762 (store_completion): New function.
24763 (complete): Likewise.
24764 (clear_completions): Likewise.
24765 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
24766 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
24767 a tab, call complete.
24768
24769 * normal/completion.c (disk_dev): Removed.
24770 (print_simple_completion): Likewise.
24771 (print_partition_completion): Likewise.
24772 (print_func): New global variable.
24773 (add_completion): Do not take the arguments WHAT or PRINT any
24774 longer. Added a new argument TYPE. Instead of printing directly,
24775 call PRINT_FUNC if not NULL.
24776 All callers changed.
24777 (complete_device): Use a local variable DEV instead of
24778 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
24779 (grub_normal_do_completion): Take a new argument HOOK. Do not
24780 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
24781 empty string, return NULL instead.
24782 All callers changed.
24783
24784 * normal/cmdline.c (print_completion): New function.
24785
24786 * kern/partition.c (grub_partition_iterate): Add an argument DISK
24787 to HOOK.
24788 All callers changed.
24789
24790 * kern/disk.c (grub_print_partinfo): Removed.
24791
24792 * include/grub/partition.h (struct grub_partition_map): Add a new
24793 argument DISK into HOOK of ITERATE.
24794 (grub_partition_iterate): Add a new argument DISK to HOOK.
24795
24796 * include/grub/normal.h (enum grub_completion_type): New enum.
24797 (grub_completion_type_t): New type.
24798 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
24799 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
24800 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
24801 (GRUB_COMPLETION_TYPE_FILE): Likewise.
24802 (grub_normal_do_completion): Added a new argument HOOK.
24803 (grub_normal_print_device_info): New prototype.
24804
24805 * include/grub/disk.h (grub_print_partinfo): Removed.
24806
24807 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
24808 (normal_mod_SOURCES): Likewise.
24809 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24810 (normal_mod_SOURCES): Likewise.
24811
24812 * commands/ls.c (grub_ls_list_disks): Use
24813 grub_normal_print_device_info instead of grub_print_partinfo. Free
24814 PNAME.
24815 (grub_ls_list_files): Use grub_normal_print_device_info instead of
24816 duplicating the code.
24817
0bd41162 248182005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
24819
24820 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 24821 follow GCS more precisely.
24822 * commands/i386/pc/vbe_test.c: Likewise.
24823 * include/grub/i386/pc/vbe.h: Likewise.
24824 * term/i386/pc/vesafb.c: Likewise.
24825 * video/i386/pc/vbe.c: Likewise.
0bd41162 24826
6323696a 248272005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
24828
24829 * DISTLIST: Added term/i386/pc/vesafb.c
24830 DISTLIST: Added video/i386/pc/vbe.c
24831 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
24832 DISTLIST: Added commands/i386/pc/vbe_test.c.
24833 * commands/i386/pc/vbe_list_modes.c: New file.
24834 * commands/i386/pc/vbe_test.c: Likewise.
24835 * term/i386/pc/vesafb.c: Likewise.
24836 * video/i386/pc/vbe.c: Likewise.
24837 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
24838 (grub_vbe_probe) Added prototype.
24839 (grub_vbe_set_video_mode) Likewise.
24840 (grub_vbe_get_video_mode) Likewise.
24841 (grub_vbe_get_video_mode_info) Likewise.
24842 (grub_vbe_set_pixel_rgb) Likewise.
24843 (grub_vbe_set_pixel_index) Likewise.
24844 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
24845 (pkgdata_MODULES): Added vesafb.mod.
24846 (pkgdata_MODULES): Added vbe_list_modes.mod.
24847 (pkgdata_MODULES): Added vbe_test.mod.
24848 (vbe_mod_SOURCES): Added.
24849 (vbe_mod_CFLAGS): Likewise.
24850 (vesafb_mod_SOURCES): Likewise.
24851 (vesafb_mod_CFLAGS): Likewise.
24852 (vbe_list_modes_mod_SOURCES): Likewise.
24853 (vbe_list_modes_mod_CFLAGS): Likewise.
24854 (vbe_test_mod_SOURCES): Likewise.
24855 (vbe_test_mod_CFLAGS): Likewise.
24856
0a74e62f 248572005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
24858
0a74e62f 24859 * normal/command.c (grub_command_execute): If INTERACTIVE is
24860 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
24861 CMDLINE. Disable the pager if INTERACTIVE is true.
24862 All callers are changed.
24863
24864 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
24865 before reading a config file.
24866 * normal/main.c (read_config_file): Even if a command is not
24867 found, register it if it is within an entry.
24868
24869 * util/grub-emu.c: Include sys/types.h and unistd.h.
24870 (options): Added --hold.
24871 (struct arguments): Added a new member "hold".
24872 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
24873 missing.
24874 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
24875 cleared by a debugger, if it is not zero.
24876
24877 * include/grub/normal.h (grub_command_execute): Add an argument
24878 INTERACTIVE.
24879
e51f85ae 248802005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
24881
24882 * DISTLIST: Added include/grub/i386/pc/vbe.h.
24883
e9c6f39b 248842005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
24885
24886 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
24887 program with another one, because the old one didn't detect a bug
24888 in gcc-3.4. Always use regparm 2, because the new test is still
24889 not enough for gcc-4.0. Someone must investigate a simple test
24890 case which detects a bug in gcc-4.0.
24891
8de3495c 248922005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
24893
24894 * DISTLIST: Added normal/completion.c.
24895
24896 * normal/completion.c: New file.
f19dbdb7 24897
8de3495c 24898 * term/i386/pc/console.c (grub_console_getwh): New function.
24899 (grub_console_term): Assign grub_console_getwh to getwh.
24900
24901 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
24902 function is defined in normal/completion.c as
24903 grub_normal_do_completion.
24904 (grub_cmdline_get): Use grub_normal_do_completion instead of
24905 grub_tab_complete.
24906
24907 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
24908 returns non-zero, otherwise return 0.
24909 (grub_partition_iterate): First, probe the partition map. Then,
24910 call ITERATE only for this partition map.
24911
24912 * kern/misc.c (grub_strncmp): Rewritten.
24913
24914 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
24915 returns non-zero. Otherwise return 0.
24916
24917 * include/grub/partition.h (grub_partition_map_iterate): Return
24918 int instead of void.
24919
24920 * include/grub/normal.h (grub_normal_do_completion): New prototype.
24921
24922 * include/grub/misc.h (grub_strncmp): Change the type of N to
24923 grub_size_t.
24924
24925 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
24926 of void.
24927
24928 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 24929 unsigned explicitly before comparing it with I.
8de3495c 24930
24931 * kern/main.c (grub_env_write_root): Add the attribute unused into
24932 VAR.
24933
24934 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
24935 normal/completion.c.
24936 (normal_mod_SOURCES): Likewise.
24937 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24938 (normal_mod_SOURCES): Likewise.
24939
24940 * normal/command.c (grub_iterate_commands): If ITERATE returns
24941 non-zero, return one immediately.
24942
e85e144b 249432005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
24944
24945 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
24946 * kern/i386/pc/startup.S: Updated Global Descriptor table's
24947 descriptions.
24948 (grub_vbe_get_controller_info): New function.
24949 (grub_vbe_get_mode_info): Likewise.
24950 (grub_vbe_set_mode): Likewise.
24951 (grub_vbe_get_mode): Likewise.
24952 (grub_vbe_set_memory_window): Likewise.
24953 (grub_vbe_get_memory_window): Likewise.
24954 (grub_vbe_set_scanline_length): Likewise.
24955 (grub_vbe_get_scanline_length): Likewise.
24956 (grub_vbe_set_display_start): Likewise.
24957 (grub_vbe_get_display_start): Likewise.
24958 (grub_vbe_set_palette_data): Likewise.
24959 * include/grub/i386/pc/vbe.h: New file.
24960
c46153d2 249612005-08-08 Hollis Blanchard <hollis@penguinppc.org>
24962
24963 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
24964 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
24965 * DISTLIST: Likewise.
24966 * kern/ieee1275/of.c: Moved to ...
24967 * kern/ieee1275/ieee1275.c: ... here.
24968
0cb90c45 249692005-08-08 Hollis Blanchard <hollis@penguinppc.org>
24970
24971 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
24972 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
24973 Pass 0 as `end' parameter to grub_strtoul().
24974
a19fb360 249752005-08-08 Hollis Blanchard <hollis@penguinppc.org>
24976
24977 * include/grub/powerpc/ieee1275/console.h: Do not include
24978 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
24979 ifdef.
24980 (grub_console_cur_color): Remove i386-specific prototype.
24981 (grub_console_real_putchar): Likewise.
24982 (grub_console_checkkey): Likewise.
24983 (grub_console_getkey): Likewise.
24984 (grub_console_getxy): Likewise.
24985 (grub_console_gotoxy): Likewise.
24986 (grub_console_cls): Likewise.
24987 (grub_console_setcursor): Likewise.
24988 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
24989 Include <grub/machine/console.h>.
24990 * term/ieee1275/ofconsole.c: Likewise.
24991
4ac9bd04 249922005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
24993
24994 * Makefile.in (LIBLZO): New variable.
24995
24996 * configure.ac: Check for LZO version 2.
24997
24998 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
24999 lzo/lzo1x.h instead of lzo1x.h.
25000
25001 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
25002 of -llzo.
25003
25004 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
25005 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
25006
25007 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
25008 copying the data from PARTITION to P.
25009
f4917dfd 250102005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25011
25012 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
25013 negative, unload the module.
25014
25015 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
25016 map is "pc_partition_map" but not "pc".
25017 (usage): Fix the description. The options are --boot-image and
25018 --core-image but not --boot-file or --core-file.
25019 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
25020 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
25021 DEFAULT_DIRECTORY.
25022
25023 * util/i386/pc/grub-install.in: Do not specify --boot-file or
25024 --core-file. Specify INSTALL_DEVICE as an argument.
25025
25026 * util/console.c: Include config.h.
25027 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
25028 [HAVE_NCURSES_H]: Include ncurses.h.
25029 [HAVE_CURSES_H]: Include curses.h.
25030 [!A_NORMAL] (A_NORMAL): Defined as zero.
25031 [!A_STANDOUT] (A_STANDOUT): Likewise.
25032
25033 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
25034 -lncurses.
25035 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
25036
25037 * configure.ac: Check for curses libraries and headers.
25038
25039 * Makefile.in (LIBCURSES): New variable.
25040
25041 * genmk.rb (Script::rule): Set the executable bits.
25042
25043 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
25044 name of the PC partition map is "pc_partition_map" but not "pc".
25045
0e143073 250462005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25047
25048 * util/i386/pc/grub-install.in (grub_probefs): New variable.
25049 (modules): Likewise.
25050 (usage): Added descriptions for --modules and --grub-probefs.
25051 Handle --modules and --grub-probefs. Save the arguments in MODULES
25052 and GRUB_PROBEFS, respectively.
25053 Auto-detect a filesystem module against GRUBDIR. If the result is
25054 empty and modules are not specified explicitly, abort the
25055 installation. Add the result to MODULES.
25056
25057 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
25058 disk/powerpc/ieee1275/ofdisk.c,
25059 include/grub/powerpc/ieee1275/init.h and
25060 term/powerpc/ieee1275/ofconsole.c.
25061 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
25062 term/ieee1275/ofconsole.c.
25063
25064 * include/grub/powerpc/ieee1275/console.h: Resurrected.
25065
25066 * COPYING: Upgraded to the latest version. Only the address of the
25067 FSF office has changed.
f19dbdb7 25068
efd6e6d5 250692005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25070
25071 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25072 kern/ieee1275.c with kern/ieee1275/of.c.
25073
25074 * kern/ieee1275.c: Moved to ...
25075 * kern/ieee1275/of.c: ... here.
25076
8ceafda2 250772005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
25078
25079 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 25080 readability.
8ceafda2 25081
25082 * config.guess: Updated to the latest version from gnulib.
25083 * config.sub: Likewise.
25084 * install.sh: Likewise.
25085 * mkinstalldirs: Likewise.
25086
25087 * include/grub/console.h: Removed. This file is arch-specific. Do
25088 not put this in include/grub.
25089
25090 * include/grub/i386/pc/console.h: Resurrected.
25091
25092 * util/console.c: Include grub/machine/console.h instead of
25093 grub/console.h.
25094 * util/grub-emu.c: Likewise.
25095
267f6cd9 250962005-08-04 Marco Gerards <metgerards@student.han.nl>
25097
25098 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
25099 hardcoded value.
f19dbdb7 25100
267f6cd9 25101 From Vincent Pelletier <subdino2004@yahoo.fr>
25102 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
25103 Redefined to use grub_getwh.
25104 (grub_term): New member named getwh.
25105 (grub_getwh): New prototype.
25106 * kern/term.c (grub_getwh): New function.
25107 * term/i386/pc/console.c (grub_console_getwh): New function.
25108 (grub_console_term): New member `getwh'.
25109 * term/i386/pc/vga.c (grub_vga_getwh): New function.
25110 (grub_vga_term): New member `getwh'.
0b5abe02 25111 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 25112 grub_ssize_t.
25113 (grub_ofconsole_getw): New function.
25114 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
25115 (grub_ofconsole_term): New field named getwh and new initial
25116 value.
25117
3be7266d 251182005-08-03 Hollis Blanchard <hollis@penguinppc.org>
25119
25120 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
25121 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
25122 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
25123 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
25124 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
25125 of <grub/machine/ieee1275.h>.
25126 * commands/ieee1275/reboot.c: Likewise.
25127 * boot/powerpc/ieee1275/ieee1275.c: Move ...
25128 * kern/ieee1275.c: ... to here. All users updated. Change all
25129 parameter structs to use new type `grub_ieee1275_cell_t'.
25130 * term/powerpc/ieee1275/ofconsole.c: Move ...
25131 * term/ieee1275/ofconsole.c: ... to here. All users updated.
25132 * disk/powerpc/ieee1275/ofdisk.c: Move ...
25133 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
25134 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
25135 to return int.
25136 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
25137 Remove unused prototypes. All users updated.
25138 * include/grub/powerpc/ieee1275/console.h: Removed.
25139 * include/grub/powerpc/ieee1275/ieee1275.h: Define
25140 `grub_ieee1275_cell_t'.
25141 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
25142 Cast comparisons with -1 to the correct type.
25143 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
25144 type to match `grub_ieee1275_entry_fn'.
25145
8b5f3938 251462005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
25147
25148 * DISTLIST: Added util/i386/pc/grub-probefs.c.
25149
25150 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
25151 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
25152 partmap/sun.c.
25153 (grub_probefs_SOURCES): New variable.
25154
25155 * util/i386/pc/grub-probefs.c: New file.
25156
25157 * util/i386/pc/grub-setup.c (main): Call
25158 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
25159 grub_hfs_init and grub_jfs_init to initialize the system. Call
25160 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
25161 grub_pc_partition_map_fini to finish the system.
25162
ea409713 251632005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
25164
25165 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
25166 function.
25167 (grub_multiboot_load_elf32): Likewise.
25168 (grub_multiboot_is_elf64): Likewise.
25169 (grub_multiboot_load_elf64): Likewise.
25170 (grub_multiboot_load_elf): Likewise.
25171 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
25172 an ELF32 or ELF64 file.
25173 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
25174
25175 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
25176 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
25177 NULL before calling FS->LABEL.
25178 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
25179 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
25180 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
25181 before calling FS->LABEL.
25182
141a288b 251832005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
25184
25185 * util/i386/pc/grub-install.in (datadir): New variable.
25186 (libdir): Removed.
25187 (pkgdatadir): New variable.
25188 (pkglibdir): Removed.
25189
0d5f8a54 251902005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
25191
25192 * DISTLIST: Added util/i386/pc/grub-install.in.
25193
25194 * util/i386/pc/grub-install.in: New file.
25195
25196 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
25197 (grub_install_SOURCES): Likewise.
25198
25199 * genmk.rb: Added support for scripts.
25200 (Script): New class.
25201 (scripts): New variable.
25202
25203 * Makefile.in (install-local): Install sbin_SCRIPTS by
25204 INSTALL_SCRIPT.
25205 (uninstall): Remove sbin_SCRIPTS.
25206
25207 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
25208 device, try to get a GRUB device by
25209 grub_util_biosdisk_get_grub_dev.
25210 Free DEST_DEV.
25211
25212 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
25213 description for --device-map.
25214
5f968e1e 252152005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25216
25217 Change the semantics of variable hooks. They now return strings
25218 instead of error values.
f19dbdb7 25219
5f968e1e 25220 * util/i386/pc/grub-setup.c: Include grub/env.h.
25221 (setup): Use grub_device_set_root instead of grub_env_set.
25222
25223 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
25224 grub_env_get instead of grub_device_set_root and
25225 grub_device_get_root, respectively.
25226
25227 * kern/main.c (grub_env_write_root): New function.
25228 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
25229 grub_env_set instead of grub_device_set_root.
25230
25231 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
25232 many variables.
25233 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
25234 rather than calling ENV->WRITE_HOOK afterwards.
25235 (grub_env_get): Return the result of ENV->READ_HOOK rather than
25236 passing a pointer of a pointer.
25237 (grub_register_variable_hook): Change the types of "read_hook" and
25238 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
25239 respectively.
25240 Allocate the default empty string on the heap, because this string
25241 may be freed later.
25242
25243 * kern/device.c: Include grub/env.h.
25244 (grub_device_set_root): Removed.
25245 (grub_device_get_root): Likewise.
25246 (grub_device_open): Use grub_env_get instead of
25247 grub_device_get_root.
25248
25249 * include/grub/env.h (grub_env_read_hook_t): New type.
25250 (grub_env_write_hook_t): Likewise.
25251 (grub_env_var): Change the types of "read_hook" and "write_hook"
25252 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
25253 (grub_register_variable_hook): Likewise.
25254
25255 * include/grub/device.h (grub_device_set_root): Removed.
25256 (grub_device_set_root): Likewise.
25257
25258 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
25259 make sure that DIRNAME terminates with '/', so that
25260 grub_fat_find_dir will fail if PATH is not a directory.
25261
25262 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
25263 from DIRNAME.
25264 Use the qualifier auto for print_files and print_files_long.
25265 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
25266 as a regular file.
25267 Put a newline only if there is no error.
25268 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
25269 used.
25270
896f0afd 252712005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25272
25273 * kern/partition.c (grub_partition_probe): Initialize PART to
25274 NULL. Otherwise, when no partition map is registered, this returns
25275 a garbage.
25276
b28b81b2 252772005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
25278
25279 * partmap/apple.c (apple_partition_map_iterate): Check if POS
25280 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
25281 valid.
25282
5f3607e0 252832005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
25284
25285 * commands/ls.c (grub_ls_list_disks): Print the filesystem
25286 information on each device, if it does not have partitions. Print
25287 "Device" instead of "Disk", because this function is not specific
25288 to disk devices.
25289
25290 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
25291 static to ensure that it is put on the memory rather than a
25292 register.
25293
502c87e8 252942005-07-17 Yoshinori Okuji <okuji@enbug.org>
25295
25296 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
25297 (grub_cat_init): Likewise.
25298 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
25299 (options): Likewise.
25300 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25301 (grub_configfile_init): Likewise.
25302 * font/manager.c (GRUB_MOD_INIT): Likewise.
25303 * commands/help.c (GRUB_MOD_INIT): Likewise.
25304 (grub_help_init): Likewise.
25305 * normal/command.c (grub_command_init): Likewise.
25306 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
25307 * disk/loopback.c (grub_loop_init): Likewise.
25308 (GRUB_MOD_INIT): Likewise.
25309 * commands/ls.c (grub_ls_init): Likewise.
25310 (GRUB_MOD_INIT): Likewise.
25311 (options): Likewise.
25312 * commands/boot.c (grub_boot_init): Likewise.
25313 (GRUB_MOD_INIT): Likewise.
25314 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
25315 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
25316 (GRUB_MOD_INIT): Likewise.
25317 * commands/cmp.c (grub_cmp_init): Likewise.
25318 (GRUB_MOD_INIT): Likewise.
25319
25320 * normal/arg.c: Use <> instead of "" to include header files.
25321 (SHORT_ARG_HELP): New macro.
25322 (SHORT_ARG_USAGE): Likewise.
25323 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
25324 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
25325 descriptions.
25326 (find_short): Check if C is 'h' or 'u' explicitly.
25327 (grub_arg_show_help): Use space characters instead of tabs. Treat
25328 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
25329 are shown with --help and --usage only if they are not used for
25330 the command itself.
25331 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
25332 'h' and 'u'.
25333
25334 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
25335 const into "longarg". Change the type of "shortarg" to int.
25336
f806d18e 253372005-07-17 Yoshinori Okuji <okuji@enbug.org>
25338
25339 * boot/i386/pc/boot.S (boot_drive_check): New label.
25340
25341 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
25342 macro.
25343
25344 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
25345 which do not pass a boot drive correctly. Copied from GRUB Legacy.
25346
e293232b 253472005-07-17 Yoshinori Okuji <okuji@enbug.org>
25348
25349 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
25350 When turning off Gate A20, skip the check and return immediately,
25351 because this is not fatal usually.
25352
ebedfd00 253532005-07-17 Yoshinori Okuji <okuji@enbug.org>
25354
25355 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
25356 be 0x7C00 instead of 0x8000.
25357
25358 * boot/i386/pc/pxeboot.S: Rewritten.
25359
25360 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
25361 EXT_C.
25362 (gate_a20_check_state): Read a byte from 0x108000. Invert the
25363 result.
25364
654fc59f 253652005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
25366
25367 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
25368 robustness. This routine now supports a BIOS call and System
25369 Control Port A to modify the gate A20.
25370
25371 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25372 Increased to 0x440.
25373
09f9923f 253742005-07-12 Hollis Blanchard <hollis@penguinppc.org>
25375
25376 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
25377 device path and resulting ihandle.
25378 (grub_ofdisk_close): dprintf the ihandle being closed.
25379 (grub_ofdisk_read): dprintf function parameters.
25380 * kern/mm.c (grub_mm_init_region): Likewise.
25381 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
25382 (grub_linux_boot): dprintf the Linux entry point, initrd address and
25383 size, and boot arguments.
25384 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
25385 before loading into memory.
25386 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
25387 before loading into memory.
25388
7ef504d8 253892005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
25390
25391 * kern/mm.c: Added much documentation.
25392 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
25393 8, set to 5 instead of 8.
25394
e0f050c2 253952005-07-10 Yoshinori Okuji <okuji@enbug.org>
25396
25397 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
25398
25399 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
25400 (grub_mkdevicemap_SOURCES): New variable.
25401
25402 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
25403 lib/device.c of GRUB Legacy.
25404
7224189a 254052005-07-10 Yoshinori Okuji <okuji@enbug.org>
25406
25407 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
25408 instead of PATH is NULL.
25409
68c864eb 254102005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
25411
25412 * commands/cmp.c (BUFFER_SIZE): New macro.
25413 (grub_cmd_cmp): Close the right file at the right time. Compare
25414 only data just read. Don't report files of different size as
25415 identical. Dynamically allocate buffers. Move variable
25416 declarations at the beginning of function.
25417
e6f3e614 254182005-07-09 Yoshinori Okuji <okuji@enbug.org>
25419
25420 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
25421 reverse.
25422
f8f1559a 254232004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
25424
25425 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
25426 when backspace is pressed at beginning of line.
25427
39c9d41d 254282005-07-03 Yoshinori Okuji <okuji@enbug.org>
25429
25430 * DISTLIST: Added genfslist.sh.
25431
25432 * normal/main.c (fs_module_list): New variable.
25433 (autoload_fs_module): New function.
25434 (read_fs_list): Likewise.
25435 (grub_normal_execute): Call read_fs_list.
25436
25437 * kern/fs.c (grub_fs_autoload_hook): New variable.
25438 (grub_fs_probe): Added support for auto-loading.
25439
25440 * include/grub/normal.h (struct grub_fs_module_list): New struct.
25441 (grub_fs_module_list_t): New type.
25442
25443 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
25444 (grub_fs_autoload_hook): New prototype.
25445
25446 * genfslist.sh: New file.
f19dbdb7 25447
39c9d41d 25448 * genmk.rb: Added a rule to generate a filesystem list.
25449
121c1d83 254502005-06-30 Marco Gerards <metgerards@student.han.nl>
25451
25452 * configure.ac: Fix the test for cross-compiling.
25453
25454 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
25455 define GRUB_UTIL anymore.
25456
25457 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
25458 so this function works on other systems than just big endian.
25459 (load_modules): Likewise.
25460 (add_segments): Likewise.
25461
e75d76e1 254622005-06-23 Hollis Blanchard <hollis@penguinppc.org>
25463
25464 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
25465 contains `l' modifier, get a long from va_arg().
25466
50b5a0a7 254672005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
25468
25469 * kern/mm.c (grub_free): If the next free block which is being
25470 merged is the first free block, set the first block to the block
25471 being freed.
25472 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
25473
89371b20 254742005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25475
25476 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
25477 `grub_ieee1275_chosen'.
25478
168d6e58 254792005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25480
25481 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
25482 (grub_ieee1275_chosen): New variable.
25483 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
25484 `chosen'.
25485 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
25486 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
25487 Rename first argument to `phandle' for consistency.
25488 (grub_ieee1275_get_property_length): Likewise.
25489 (grub_ieee1275_next_property): Likewise. Change type of first argument
25490 to grub_ieee1275_phandle_t.
25491 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
25492 Move export next to declaration.
25493 (grub_ieee1275_chosen): New variable.
25494 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
25495 Correct cosmetic typo.
25496 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
25497 `grub_ieee1275_chosen'.
25498 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
25499 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
25500 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
25501 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
25502 `grub_ieee1275_chosen'.
25503
ca5baa3f 255042005-05-10 Hollis Blanchard <hollis@penguinppc.org>
25505
25506 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
25507 /chosen/bootargs.
25508 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
25509 /chosen/bootargs as "variable=value" pairs.
25510
708b345f 255112005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
25512
25513 * include/grub/misc.h (grub_dprintf): New macro.
25514 (grub_real_dprintf): New prototype.
25515 (grub_strword): Likewise.
25516 (grub_iswordseparator): Likewise.
25517 * kern/misc.c (grub_real_dprintf): New function.
25518 (grub_strword): Likewise.
25519 (grub_iswordseparator): Likewise.
25520
f4c5e67c 255212005-04-30 Hollis Blanchard <hollis@penguinppc.org>
25522
25523 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
25524 (roundup): Remove macro.
25525 (grub_ieee1275_flags): Make static.
25526 (grub_ieee1275_realmode): Remove.
25527 (grub_ieee1275_test_flag): New function.
25528 (grub_ieee1275_set_flag): Likewise.
25529 (find_options): Rename to `grub_ieee1275_find_options'; update
25530 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
25531 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
25532 (cmain): New prototype.
25533 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
25534 `grub_ieee1275_flags' directly.
25535 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
25536 machine/biosdisk.h.
25537 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
25538 Don't include grub/machine/init.h.
25539 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
25540 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
25541 Remove prototype.
25542 (grub_ieee1275_realmode): Likewise.
25543 (grub_ieee1275_flag): New enum.
25544 (grub_ieee1275_test_flag): New prototype.
25545 (grub_ieee1275_set_flag): New prototype.
25546 * include/grub/powerpc/ieee1275/init.h: Remove file.
25547 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
25548 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
25549 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
25550 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
25551 comment.
25552 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
25553 `grub_ieee1275_test_flag'.
25554 (grub_ieee1275_encode_devname): Likewise.
25555
ed16607e 255562005-04-21 Hollis Blanchard <hollis@penguinppc.org>
25557
25558 * include/grub/powerpc/ieee1275/ieee1275.h
25559 (grub_ieee1275_encode_devname): New prototype.
25560 (grub_ieee1275_get_filename): Likewise.
25561 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
25562 function.
25563 (grub_set_prefix): Likewise.
25564 (grub_machine_init): Call grub_set_prefix.
25565 * kern/powerpc/ieee1275/openfw.c: Fix typos.
25566 (grub_parse_type): New enum.
25567 (grub_ieee1275_get_devargs): New function.
25568 (grub_ieee1275_get_devname): Likewise.
25569 (grub_ieee1275_parse_args): Likewise.
25570 (grub_ieee1275_get_filename): Likewise.
25571 (grub_ieee1275_encode_devname): Likewise.
25572
be369920 255732005-03-30 Marco Gerards <metgerards@student.han.nl>
25574
25575 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
25576 `grub_loader_unset'.
25577
a5ce3a4a 255782005-03-26 Hollis Blanchard <hollis@penguinppc.org>
25579
25580 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
25581 instead of grub_ieee1275_interpret.
25582 (grub_halt_init): New function.
25583 (grub_halt_fini): Likewise.
25584 (GRUB_MOD_INIT): Correct message grammar.
25585 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
25586 instead of grub_ieee1275_interpret.
25587 (grub_reboot_init): New function.
25588 (grub_reboot_fini): Likewise.
25589 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
25590 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
25591 util/i386/pc/misc.c with commands/ieee1275/halt.c,
25592 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
25593 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
25594 function.
25595 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
25596 Add prototype.
25597 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
25598 prototype.
25599 (grub_halt): Likewise.
25600 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
25601 (cmain): Remove __attribute__((unused)).
25602 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
25603 (grub_heap_len): Likewise.
25604 (grub_machine_fini): New function.
25605 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
25606 (grub_halt): Likewise.
25607 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
25608 function.
25609 * util/powerpc/ieee1275/misc.c: New file.
25610
0058f771 256112005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
25612
25613 * DISTLIST: New file.
25614 * gendistlist.sh: Likewise.
f19dbdb7 25615
0058f771 25616 * Makefile.in (COMMON_DISTFILES): Removed.
25617 (BOOT_DISTFILES): Likewise.
25618 (CONF_DISTFILES): Likewise.
25619 (DISK_DISTFILES): Likewise.
25620 (FS_DISTFILES): Likewise.
25621 (INCLUDE_DISTFILES): Likewise.
25622 (KERN_DISTFILES): Likewise.
25623 (LOADER_DISTFILES): Likewise.
25624 (TERM_DISTFILES): Likewise.
25625 (UTIL_DISTFILES): Likewise.
25626 (DISTFILES): Likewise.
25627 (uninstall): Uninstall files in $(pkgdata_DATA).
25628 (DISTLIST): New target.
25629 (distdir): Use the contents of the file DISTLIST to get a list of
25630 distributed files.
25631
46b3b8a5 256322005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
25633
25634 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
25635 descriptor. This is ported from GRUB Legacy.
25636
25637 * gencmdlist.sh: Added an extra semicolon to make it work with
25638 old sed versions. Reported by Robert Bihlmeyer
25639 <robbe@orcus.priv.at>.
25640
5822ff87 256412005-03-08 Yoshinori Okuji <okuji@enbug.org>
25642
25643 Automatic loading of commands is supported.
f19dbdb7 25644
5822ff87 25645 * normal/main.c (read_command_list): New function.
25646 (grub_normal_execute): Call read_command_list.
25647
25648 * normal/command.c (grub_register_command): Return zero or CMD.
25649 Allocate CMD->NAME from the heap.
25650 Initialize CMD->MODULE_NAME to zero.
25651 Find the same name as well. If the same command is found and it is
25652 a dummy command, overwrite members. If it is not a dummy command,
25653 return zero.
25654 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
25655 (grub_command_find): If a dummy command is found, load a module
25656 and retry to find a command only once.
25657
25658 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
25659 make sure that each command is loaded.
25660
25661 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
25662 macro.
25663 (struct grub_command): Remove const from the member `name'.
25664 Add a new member `module_name'.
25665 (grub_register_command): Return grub_command_t.
25666
25667 * commands/help.c (grub_cmd_help): Call grub_command_find to make
25668 sure that each command is loaded.
25669
25670 * genmk.rb (PModule::rule): Specify a module name without the
25671 suffix ".mod" to gencmdlist.sh.
25672
7b1f4b57 256732005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25674
25675 * gencmdlist.sh: New file.
f19dbdb7 25676
7b1f4b57 25677 * genmk.rb (PModule::rule): Generate a rule for a command list.
25678 Clean command.lst.
25679 Generate command.lst from $(COMMANDFILES).
25680
25681 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
25682 (DATA): Added $(pkgdata_DATA).
25683 (install-local): Install files in $(pkgdata_DATA).
25684
062aaf39 256852005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25686
25687 * term/i386/pc/vga.c (debug_command): Removed.
25688 (GRUB_MOD_INIT): Do not register the command "debug".
25689
25690 From Hollis Blanchard:
25691 * commands/configfile.c: New file.
25692 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25693 commands/configfile.c.
25694 (pkgdata_MODULES): Added configfile.mod.
25695 (configfile_mod_SOURCES): New variable.
25696 (configfile_mod_CFLAGS): Likewise.
25697 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25698 commands/configfile.c.
25699 (pkgdata_MODULES): Added configfile.mod.
25700 (configfile_mod_SOURCES): New variable.
25701 (configfile_mod_CFLAGS): Likewise.
25702 * util/grub-emu.c (main): Call grub_configfile_init and
25703 grub_configfile_fini.
25704 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
25705 prototype.
25706 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 25707
cee01aa6 257082005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
25709
25710 * normal/arg.c (grub_arg_show_help): Do not show the bug report
25711 address.
25712
25713 * commands/help.c (grub_cmd_help): Do not print newlines after
25714 the last command in print_command_help.
25715
93f3a1d8 257162005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
25717
25718 * commands/default.h: New file.
25719 * commands/timeout.h: Likewise.
25720 * normal/context.c: Likewise.
f19dbdb7 25721
93f3a1d8 25722 * util/misc.c: Do not include sys/times.h.
25723 Include sys/time.h and grub/machine/time.h.
25724 (grub_get_rtc): Rewritten with gettimeofday.
25725
25726 * util/grub-emu.c (main): Call grub_default_init and
25727 grub_timeout_init before grub_normal_init, and call
25728 grub_timeout_fini and grub_default_fini after grub_main.
25729
25730 * util/console.c (grub_ncurses_checkkey): Return the read
25731 character or -1.
25732
25733 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
25734 timeouts.
25735
25736 * normal/main.c (read_config_file): Push MENU. If this fails,
25737 print an error and wait for a user input.
25738 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
25739 If a menu is empty or an error occurs, pop MENU.
25740 (grub_normal_execute): Pop and free MENU after grub_menu_run
25741 returns.
25742
25743 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
25744
25745 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
25746 include time.h.
25747 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
25748 without GRUB_UTIL.
25749 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
25750 time.h.
25751 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
25752 without GRUB_UTIL.
25753
25754 * include/grub/normal.h (struct grub_menu_list): New struct.
25755 (grub_menu_list_t): New type.
25756 (struct grub_context): New struct.
25757 (grub_context_t): New type.
25758 (grub_register_command): Got rid of EXPORT_FUNC.
25759 (grub_unregister_command): Likewise.
25760 (grub_context_get): New prototype.
25761 (grub_context_get_current_menu): Likewise.
25762 (grub_context_push_menu): Likewise.
25763 (grub_context_pop_menu): Likewise.
25764 [GRUB_UTIL] (grub_default_init): Likewise.
25765 [GRUB_UTIL] (grub_default_fini): Likewise.
25766 [GRUB_UTIL] (grub_timeout_init): Likewise.
25767 [GRUB_UTIL] (grub_timeout_fini): Likewise.
25768
25769 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
25770 commands/timeout.c and normal/context.c.
25771 (pkgdata_MODULES): Added default.mod and timeout.mod.
25772 (normal_mod_SOURCES): Added normal/context.c.
25773 (default_mod_SOURCES): New variable.
25774 (default_mod_CFLAGS): Likewise.
25775 (timeout_mod_SOURCES): Likewise.
25776 (timeout_mod_CFLAGS): Likewise.
25777 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
25778 conf/i386-pc.rmk.
25779 (pkgdata_MODULES): Added default.mod and timeout.mod.
25780 (normal_mod_SOURCES): Added normal/context.c.
25781 (default_mod_SOURCES): New variable.
25782 (default_mod_CFLAGS): Likewise.
25783 (timeout_mod_SOURCES): Likewise.
25784 (timeout_mod_CFLAGS): Likewise.
25785
25786 * Makefile.in (all-local): Added $(MKFILES).
25787
4ed2e1dd 257882005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
25789
25790 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
25791 (grub_emu_SOURCES): Likewise.
25792 (pkgdata_MODULES): Add `sun.mod'.
25793 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
25794 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25795 `partmap/sun.c'.
25796 (pkgdata_MODULES): Add `sun.mod'.
25797 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
25798 * include/grub/partition.h (grub_sun_partition_map_init): New
25799 prototype.
25800 (grub_sun_partition_map_fini): Likewise.
25801 * partmap/sun.c: New file.
25802 * util/grub-emu.c (main): Initialize and de-initialize the sun
25803 partitionmap support.
25804
4d4e372e 258052005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
25806
25807 This implements an Emacs-like menu entry editor.
f19dbdb7 25808
4d4e372e 25809 * normal/menu_entry.c: New file.
f19dbdb7 25810
4d4e372e 25811 * util/console.c (grub_ncurses_putchar): Translate some Unicode
25812 characters to ASCII.
25813 (saved_char): New variable.
25814 (grub_ncurses_checkkey): Rewritten completely.
25815 (grub_ncurses_getkey): Likewise.
25816 (grub_ncurses_init): Call raw instead of cbreak.
25817
25818 * normal/menu.c (print_entry): Do not put a space.
25819 (init_page): Renamed to ...
25820 (grub_menu_init_page): ... this. All callers changed.
25821 (edit_menu_entry): Removed.
25822 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
25823
25824 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
25825
25826 * kern/misc.c (grub_vprintf): Call grub_refresh.
25827
25828 * normal/menu.c (DISP_LEFT): Renamed to ...
25829 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
25830 * normal/menu.c (DISP_UP): Renamed to ...
25831 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
25832 * normal/menu.c (DISP_RIGHT): Renamed to ...
25833 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
25834 * normal/menu.c (DISP_DOWN): Renamed to ...
25835 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
25836 * normal/menu.c (DISP_HLINE): Renamed to ...
25837 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
25838 * normal/menu.c (DISP_VLINE): Renamed to ...
25839 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
25840 * normal/menu.c (DISP_UL): Renamed to ...
25841 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
25842 * normal/menu.c (DISP_UR): Renamed to ...
25843 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
25844 * normal/menu.c (DISP_LL): Renamed to ...
25845 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
25846 * normal/menu.c (DISP_LR): Renamed to ...
25847 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
25848 * normal/menu.c (TERM_WIDTH): Renamed to ...
25849 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
25850 * normal/menu.c (TERM_HEIGHT): Renamed to ...
25851 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
25852 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
25853 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
25854 * normal/menu.c (TERM_MARGIN): Renamed to ...
25855 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
25856 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
25857 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
25858 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
25859 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
25860 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
25861 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
25862 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
25863 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
25864 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
25865 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
25866 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
25867 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
25868 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
25869 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
25870 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
25871 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
25872 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
25873 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
25874 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
25875 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
25876 All callers changed.
25877
25878 * include/grub/normal.h: New prototype.
25879
25880 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25881 normal/menu_entry.c.
25882 (normal_mod_SOURCES): Likewise.
25883 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25884 (normal_mod_SOURCES): Likewise.
25885
e6b92c8a 258862005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
25887
25888 * include/grub/normal.h (grub_halt_init): New prototype.
25889 (grub_halt_fini): Likewise.
25890 (grub_reboot_init): Likewise.
25891 (grub_reboot_fini): Likewise.
25892
25893 * util/grub-emu.c: Include signal.h.
25894 (main_env): New global variable.
25895 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
25896 catch C-c.
25897 (grub_machine_fini): New function.
25898 (main): Call grub_halt_init and grub_reboot_init before
25899 grub_main, and grub_reboot_fini and grub_halt_fini after it.
25900 Call setjmp with MAIN_ENV to go back afterwards.
25901 Call grub_machine_fini right before return.
25902
25903 * include/grub/util/misc.h: Include setjmp.h.
25904 (main_env): New prototype.
25905
25906 * include/grub/kernel.h (grub_machine_fini): New prototype.
25907 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
25908 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
25909
25910 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
25911 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
25912 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 25913
e6b92c8a 25914 * util/i386/pc/misc.c: New file.
f19dbdb7 25915
e6b92c8a 25916 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25917 util/i386/pc/misc.c, commands/i386/pc/halt.c and
25918 commands/i386/pc/reboot.c.
25919
c642636f 259202005-02-14 Guillem Jover <guillem@hadrons.org>
25921
25922 * include/grub/dl.h (grub_dl_check_header): New prototype.
25923 (grub_arch_dl_check_header): Change return type to grub_err_t,
25924 remove size parameter and export function. Update all callers.
25925 * kern/dl.c (grub_dl_check_header): New function.
25926 (grub_dl_load_core): Use `grub_dl_check_header' instead of
25927 `grub_arch_dl_check_header'. Check ELF type. Check if sections
25928 are inside the core.
25929 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
25930 independent ELF header checks.
25931 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
25932 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
25933 `grub_dl_check_header' instead of explicit checks. Check for the
25934 ELF type.
25935 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
25936 `grub_dl_check_header' instead of explicit checks. Remove arch
25937 specific ELF header checks.
25938
e6b92c8a 25939 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
25940 argument SIZE.
25941
5eabe94b 259422005-02-13 Hollis Blanchard <hollis@penguinppc.org>
25943
25944 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
25945 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
25946
1b14a681 259472005-02-12 Hollis Blanchard <hollis@penguinppc.org>
25948
25949 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 25950 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 25951 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 25952 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 25953 * partmap/amiga.c (amiga_partition_map_iterate): Return
25954 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
25955 * partmap/apple.c (apple_partition_map_iterate): Likewise.
25956
aca108aa 259572005-02-01 Guillem Jover <guillem@hadrons.org>
25958
25959 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
25960 help info.
25961
c9f9c556 259622005-01-31 Marco Gerards <metgerards@student.han.nl>
25963
25964 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
25965 Removed prototype.
25966 (grub_rescue_cmd_linux): New prototype.
25967 (grub_rescue_cmd_initrd): Likewise.
25968 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
25969 `bi_rec'.
25970 (grub_linux_release_mem): Release the memory for the initrd.
25971 (grub_load_linux): Renamed from this...
25972 (grub_rescue_cmd_linux): ...To this. Changed all callers.
25973 Changed `entry' not to be static. Loop over memory regions to
25974 find another one when the default fails.
25975 (grub_rescue_cmd_initrd): New function.
25976 (grub_linux_init): Remove function.
25977 (grub_linux_fini): Likewise.
25978 (GRUB_MOD_INIT): Register `initrd'.
25979 (GRUB_MOD_FINI): Unregister `initrd'.
25980 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
25981 Function removed.
25982 (grub_linux_normal_fini): Likewise.
25983 (GRUB_MOD_INIT): Register `initrd'.
25984 (GRUB_MOD_FINI): Unregister `initrd'.
25985
990cf3aa 259862005-01-31 Marco Gerards <metgerards@student.han.nl>
25987
25988 * commands/help.c: New file.
25989 * normal/arg.c (show_help): Renamed to...
25990 (grub_arg_show_help): ... this.
25991 * commands/i386/pc/halt.c: New file.
25992 * commands/i386/pc/reboot.c: Likewise.
25993 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
25994 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
25995 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
25996 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
25997 variables.
25998 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25999 `commands/help.c'.
26000 (pkgdata_MODULES): Add `help.mod'.
26001 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
26002 * grub/i386/pc/init.h (grub_reboot): New prototype.
26003 (grub_halt): Likewise.
26004 * include/grub/normal.h (grub_arg_show_help): New prototype.
26005 (grub_help_init): Likewise.
26006 (grub_help_fini): Likewise.
26007 * util/grub-emu.c (main): Initialize and deinitialize the help
26008 command.
26009
26010 * normal/cmdline.c (grub_cmdline_get): Doc fix.
26011
26012 * normal/command.c (grub_command_init): Fixed the description of
26013 the `set' and `unset' commands.
26014
260152005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 26016
26017 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
26018 function.
26019 * commands/ieee1275/halt.c: New file.
26020 * commands/ieee1275/reboot.c: Likewise.
26021 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
26022 `__attribute__ ((unused))'. Some GCS related fixed.
26023 (grub_suspend_init) [GRUB_UTIL]: Function removed.
26024 (grub_suspend_fini): Likewise.
26025 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
26026 and `halt.mod'.
26027 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
26028 (halt_mod_CFLAGS): New variables.
26029 * include/grub/powerpc/ieee1275/ieee1275.h
26030 (grub_ieee1275_interpret): New prototype.
26031
1ab09cc7 260322005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
26033
26034 * include/grub/misc.h (memmove): New prototype.
26035 (memcpy): Likewise.
26036
8b8cbdb2 260372005-01-22 Hollis Blanchard <hollis@penguinppc.org>
26038
26039 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
26040 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
26041
e3741a27 260422005-01-22 Marco Gerards <metgerards@student.han.nl>
26043
26044 * kern/misc.c (grub_strndup): Function rewritten.
26045
776bd780 260462005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
26047
26048 * normal/menu.c (TERM_WIDTH): Macro redefined.
26049 (TERM_TOP_BORDER_Y): Likewise.
26050 (draw_border): Replaced while-loop by a for-loop. Make the number
26051 of lines consistent with the number of lines displayed in
26052 print_entries. Added a margin below the rectangle.
26053 (print_entry): Make the entry fit in the rectangle.
26054 (print_entries): Display the scroll arrows next to the right
26055 border.
26056
78026bce 260572005-01-21 Marco Gerards <metgerards@student.han.nl>
26058
26059 * fs/minix.c (grub_minix_find_file): Reserve more space for
26060 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
26061 `grub_strncpy' to copy `path' into it.
26062
67bbaf0f 260632005-01-21 Marco Gerards <metgerards@student.han.nl>
26064
26065 Add the loopback device, a device via which files can be accessed
26066 as devices.
f19dbdb7 26067
67bbaf0f 26068 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
26069 (pkgdata_MODULES): Add loopback.mod.
26070 (loopback_mod_SOURCES): New variable.
26071 (loopback_mod_CFLAGS): Likewise.
26072 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26073 `disk/loopback.c'.
26074 (pkgdata_MODULES): Add loopback.mod.
26075 (loopback_mod_SOURCES): New variable.
26076 (loopback_mod_CFLAGS): Likewise.
26077 * disk/loopback.c: new file.
26078 * include/grub/normal.h (grub_loop_init): New prototype.
26079 (grub_loop_fini): New prototype.
26080 * util/grub-emu.c (main): Initialize and de-initialize loopback
26081 support.
26082 * include/grub/disk.h (grub_disk_dev_id): Add
26083 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
26084
6f1c18bd 260852005-01-20 Hollis Blanchard <hollis@penguinppc.org>
26086
26087 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
26088 function.
26089 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
26090 (suspend_mod_SOURCES): New variable.
26091 (suspend_mod_CFLAGS): Likewise.
26092 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
26093 New prototype.
26094 * commands/ieee1275/suspend.c: New file.
26095
b38551da 260962005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
26097
26098 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 26099 ((unused))' to `__attribute__ ((used))'.
b38551da 26100 (GRUB_MOD_FINI): Likewise.
26101 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
26102 * genmk.rb (PModule): Assign space to common symbols when linking
26103 modules.
26104
777aff39 261052005-01-20 Marco Gerards <metgerards@student.han.nl>
26106
26107 * include/grub/mm.h (grub_mm_init_region): Change the type of the
26108 `unsigned' arguments to `grub_size_t'.
26109 (grub_malloc): Likewise.
26110 (grub_realloc): Likewise.
26111 (grub_memalign): Likewise.
26112 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
26113 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26114 * util/misc.c (grub_malloc): Likewise.
26115 (grub_realloc): Likewise.
26116 * kern/mm.c (get_header_from_pointer): Change the casts to
26117 `unsigned' into a cast to `grub_size_t'.
26118
26119 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
26120 point to `currnode' when `currnode' is changed.
26121
26122 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
26123 Schottelius <nico-linux@schottelius.org>.
26124
d0ff18e1 261252005-01-09 Hollis Blanchard <hollis@penguinppc.org>
26126
26127 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
26128 (note_path): Remove variable.
26129 (GRUB_IEEE1275_NOTE_NAME): New macro.
26130 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
26131 (grub_ieee1275_note_hdr): New structure.
26132 (grub_ieee1275_note_desc): Likewise.
26133 (grub_ieee1275_note): Likewise.
26134 (load_note): Remove `dir' argument. All callers updated. Remove
26135 `note_img' and `path'. Do not load a file from `note_path'.
26136 Initialize a struct grub_ieee1275_note and write that to `out'.
26137 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
26138
4ca7004c 261392005-01-05 Marco Gerards <metgerards@student.han.nl>
26140
26141 * util/misc.c (grub_util_read_image): Revert last change. It
26142 called `grub_util_read_at', which seeks from the beginning of the
26143 file.
26144
0b412211 261452005-01-04 Hollis Blanchard <hollis@penguinppc.org>
26146
26147 * TODO: Add note about endianness in grub-mkimage.
26148 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
26149 section.
26150 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
26151 (grub_mkimage_SOURCES): New target.
26152 * include/grub/kernel.h (grub_start_addr): Remove variable.
26153 (grub_end_addr): Likewise.
26154 (grub_total_module_size): Likewise.
26155 (grub_kernel_image_size): Likewise.
26156 (GRUB_MODULE_MAGIC): New constant.
26157 (grub_module_info): New structure.
26158 (grub_arch_modules_addr): New prototype.
26159 (grub_get_end_addr): Remove prototype.
26160 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
26161 * include/grub/powerpc/ieee1275/kernel.h: New file.
26162 * include/grub/util/misc.h (grub_util_get_fp_size): New
26163 prototype.
26164 (grub_util_read_at): Likewise.
26165 (grub_util_write_image_at): Likewise.
26166 * kern/main.c (grub_get_end_addr): Remove function.
26167 (grub_load_modules): Call grub_arch_modules_addr instead of using
26168 grub_end_addr. Look for a grub_module_info struct in memory. Use
26169 the grub_module_info fields instead of calling grub_get_end_addr
26170 as loop conditions. Move grub_add_unused_region code here.
26171 (grub_add_unused_region): Remove function.
26172 * kern/i386/pc/init.c: Include grub/cache.h.
26173 (grub_machine_init): Remove call to grub_get_end_addr. Remove
26174 one call to add_mem_region.
26175 (grub_arch_modules_addr): New function.
26176 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
26177 (grub_total_module_size): Likewise.
26178 Include grub/machine/kernel.h.
26179 (grub_arch_modules_addr): New function.
26180 * util/grub-emu.c (grub_end_addr): Remove variable.
26181 (grub_total_module_size): Likewise.
26182 (grub_arch_modules_addr): New function.
26183 * util/misc.c: Include unistd.h.
26184 (grub_util_get_fp_size): New function.
26185 (grub_util_read_at): Likewise.
26186 (grub_util_write_image_at): Likewise.
26187 (grub_util_read_image): Call grub_util_read_at.
26188 (grub_util_write_image): Call grub_util_write_image_at.
26189 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
26190 additional memory in kernel_img for a struct grub_module_info.
26191 Fill in that grub_module_info.
26192 * util/powerpc/ieee1275/grub-mkimage.c: New file.
26193
458786f8 261942005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26195
26196 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
26197 New function.
26198 * include/grub/powerpc/ieee1275/ieee1275.h
26199 (grub_ieee1275_milliseconds): New prototype.
26200 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
26201 Change to 1000.
26202 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
26203 grub_ieee1275_milliseconds.
26204
ac507d1b 262052005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26206
26207 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
26208 variable.
26209 (find_options): New function.
26210 (cmain): Call find_options.
26211 * include/grub/powerpc/ieee1275/ieee1275.h
26212 (grub_ieee1275_realmode): New extern variable.
26213 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
26214 grub_map if grub_ieee1275_realmode is false.
26215
6b8fd1c4 262162004-12-29 Marco Gerards <metgerards@student.han.nl>
26217
26218 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
26219 lines are inserted and make it work like readline. Reported by
26220 Vincent Pelletier <subdino2004@yahoo.fr>.
26221
8514a1e0 262222004-12-28 Marco Gerards <metgerards@student.han.nl>
26223
26224 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
26225
26226 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
26227 `kern/powerpc/cache.S'.
26228
924b6140 262292004-12-27 Marco Gerards <metgerards@student.han.nl>
26230
26231 * genmk.rb: Handle the `Program' class in the main loop. Written
26232 by Johan Rydberg <jrydberg@gnu.org>.
26233 (Program): New class.
26234 (programs): New variable.
26235 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
26236 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
26237 instead of "grub/kernel.h". Include <grub/machine/init.h>.
26238 (help_arch): Function removed.
26239 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
26240 `powerpc/libgcc.h' and `loader.h'.
26241 (pkgdata_PROGRAMS): New variable.
26242 (sbin_UTILITIES): Variable removed.
26243 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
26244 (grubof_SOURCES): Variable re-defined so it only includes the
26245 core functionality.
26246 (grubof_CFLAGS): Remove `-DGRUBOF'.
26247 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
26248 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
26249 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
26250 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
26251 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
26252 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
26253 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
26254 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
26255 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
26256 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
26257 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
26258 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
26259 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
26260 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
26261 (pc_mod_CFLAGS): New variables.
26262 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
26263 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
26264 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
26265 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
26266 Moved from here...
26267 * include/grub/i386/pc/init.h (grub_os_area_addr)
26268 (rub_os_area_size): ... to here.
26269 * include/grub/powerpc/ieee1275/ieee1275.h
26270 (grub_ieee1275_entry_fn): Export symbol.
26271 * include/grub/powerpc/ieee1275/init.h: New file.
26272 * include/grub/powerpc/libgcc.h: Likewise.
26273 * include/grub/cache.h: Likewise.
26274 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
26275 <hollis@penguinppc.org>.
26276 * kern/dl.c: Include <grub/cache.h>.
26277 (grub_dl_flush_cache): New function.
26278 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
26279 for this module.
26280 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
26281 (grub_console_init): Removed prototypes.
26282 (grub_machine_init): Don't initialize the modules anymore.
26283 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
26284 static.
26285 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
26286 Macro undef removed.
26287 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
26288 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
26289 relocation `R_PPC_REL32'. Return an error when the relocation is
26290 unknown.
26291 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
26292 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
26293 * util/misc.c (grub_arch_sync_caches): Likewise.
26294
e4b47e0c 262952004-12-19 Marco Gerards <metgerards@student.han.nl>
26296
26297 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
26298 `symlist.c', add `grubof_symlist.c'.
26299 (symlist.c): Variable removed.
26300 (grubof_HEADERS): Variable added.
26301 (grubof_symlist.c): New target.
26302 (kernel_syms.lst): Use `grubof_HEADERS' instead of
26303 `kernel_img_HEADERS'.
26304 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
26305 * kern/powerpc/dl.c: New file.
26306 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
26307 Function removed.
26308 (grub_arch_dl_relocate_symbols): Likewise.
26309 (grub_register_exported_symbols): Likewise.
26310
4ceb3636 263112004-12-13 Marco Gerards <metgerards@student.han.nl>
26312
26313 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
26314 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
26315 to fail instead. Reported by Vincent Pelletier
26316 <subdino2004@yahoo.fr>.
26317
26318 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
26319 it is not allocated. Reported by Vincent Pelletier
26320 <subdino2004@yahoo.fr>.
26321
26322 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
26323 output so the output looks better.
f19dbdb7 26324
3f1578fe 263252004-12-04 Marco Gerards <metgerards@student.han.nl>
26326
26327 Modulize the partition map support and add support for the amiga
26328 partition map.
f19dbdb7 26329
3f1578fe 26330 * commands/ls.c: Include <grub/partition.h> instead of
26331 <grub/machine/partition.h>.
26332 * kern/disk.c: Likewise.
26333 * kern/rescue.c: Likewise.
26334 * loader/i386/pc/chainloader.c: Likewise.
26335 * normal/cmdline.c: Likewise.
26336 * kern/powerpc/ieee1275/init.c: Likewise.
26337 (grub_machine_init): Call `grub_pc_partition_map_init',
26338 `grub_amiga_partition_map_init' and
26339 `grub_apple_partition_map_init'.
26340 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
26341 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
26342 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
26343 `partition.h' and `pc_partition.h'.
26344 (grub_setup_SOURCES): Remove
26345 `disk/i386/pc/partition.c'. Add `kern/partition.c',
26346 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26347 (grub_emu_SOURCES): Likewise.
26348 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
26349 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
26350 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
26351 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26352 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
26353 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26354 (grubof_SOURCES): Likewise.
26355 * disk/i386/pc/partition.c: File removed.
26356 * disk/powerpc/ieee1275/partition.c: Likewise.
26357 * include/grub/powerpc/ieee1275/partition.h: Likewise.
26358 * include/grub/i386/pc/partition.h: Likewise.
26359 * kern/partition.c: New file.
26360 * partmap/amiga.c: Likewise.
26361 * partmap/apple.c: Likewise.
26362 * partmap/pc.c: Likewise.
26363 * include/grub/partition.h: Likewise..
26364 * include/grub/pc_partition.h: Likewise.
26365 * util/grub-emu.c: Include <grub/partition.h> instead of
26366 <grub/machine/partition.h>.
26367 (main): Call `grub_pc_partition_map_init',
26368 `grub_amiga_partition_map_init' and
26369 `grub_apple_partition_map_init' and deinitialize afterwards.
26370 * util/i386/pc/biosdisk.c: Include `#include
26371 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26372 `<grub/machine/partition.h>'.
26373 * util/i386/pc/grub-setup.c: Likewise.
26374 * util/i386/pc/biosdisk.c: Likewise.
26375 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
26376 partition information in case of a PC partition.
26377 * util/i386/pc/grub-setup.c: Include `#include
26378 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26379 `<grub/machine/partition.h>'.
26380 (setup): Only access the PC specific partition information in case
26381 of a PC partition.
26382
0ef4ced9 263832004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 26384
0ef4ced9 26385 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
26386 (grub_longjmp): Likewise.
26387 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
26388 20.
26389 * normal/powerpc/setjmp.S: New file.
26390 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
26391 `normal/powerpc/setjmp.S'.
26392 (grubof_CFLAGS): Add `-DGRUBOF'.
26393 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
26394 [GRUB_UTIL && !GRUBOF].
f19dbdb7 26395
19950e29 263962004-11-16 Marco Gerards <metgerards@student.han.nl>
26397
26398 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
26399 property named `name'. Correctly handle the error returned by
26400 `grub_ieee1275_finddevice' if a device can not be opened.
26401
a2fea427 264022004-11-02 Hollis Blanchard <hollis@penguinppc.org>
26403
26404 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
26405 `actual' for negativity.
26406 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26407 kern/fshelp.c.
26408
41ea0ea3 264092004-11-01 Marco Gerards <metgerards@student.han.nl>
26410
26411 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
26412 (PAGE_OFFSET): New macro.
26413 (CRTC_ADDR_PORT): Likewise.
26414 (CRTC_DATA_PORT): Likewise.
26415 (START_ADDR_HIGH_REGISTER): Likewise.
26416 (START_ADDR_LOW_REGISTER): Likewise.
26417 (GRAPHICS_ADDR_PORT): Likewise.
26418 (GRAPHICS_DATA_PORT): Likewise.
26419 (READ_MAP_REGISTER): Likewise.
26420 (INPUT_STATUS1_REGISTER): Likewise.
26421 (INPUT_STATUS1_VERTR_BIT): Likewise.
26422 (page): New variable.
26423 (wait_vretrace): New function.
26424 (set_read_map): Likewise.
26425 (set_start_address): Likewise.
26426 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
26427 the right page.
26428 (check_vga_mem): Take the page into account.
26429 (write_char): Likewise.
26430 (write_cursor): Likewise.
26431 (scroll_up): Likewise. Copy the page to the page that is not
26432 shown and switch between both pages.
26433 (grub_vga_putchar): Fix off by one error.
26434 (grub_vga_cls): Wait for the vertical retrace. Take the page into
26435 account.
26436
ad0bd20b 264372004-11-01 Marco Gerards <metgerards@student.han.nl>
26438
26439 Add support for iso9660 (including rockridge).
f19dbdb7 26440
ad0bd20b 26441 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26442 (iso9660_mod_SOURCES): New variable.
26443 (iso9660_mod_CFLAGS): Likewise.
26444 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26445 * include/grub/fs.h (grub_iso9660_init): New prototype.
26446 * util/grub-emu.c (main): Call `grub_iso9660_init'.
26447 * fs/iso9660.c: New file.
26448
26449 * include/grub/misc.h (grub_strncat): New prototype.
26450 * kern/misc.c (grub_strncat): New function.
f19dbdb7 26451
ad0bd20b 26452 * fs/hfs.c (grub_hfs_mount): Translate the error
26453 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
26454 * fs/jfs.c (grub_jfs_mount): Likewise.
26455 * fs/ufs.c (grub_ufs_mount): Likewise.
26456
a5477a59 264572004-10-28 Hollis Blanchard <hollis@penguinppc.org>
26458
26459 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
26460 which initialized BAT registers.
26461 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
26462 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26463 Move from here...
26464 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
26465 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26466 ... to here.
26467 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
26468 (grub_mapclaim): Likewise.
26469 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
26470 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
26471 hand.
26472
9304c1f8 264732004-10-19 Hollis Blanchard <hollis@penguinppc.org>
26474
26475 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
26476 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
26477 -ffreestanding and -msoft-float.
26478
86f4ae25 264792004-10-15 Hollis Blanchard <hollis@penguinppc.org>
26480
26481 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
26482 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
26483 set in grub_ieee1275_flags.
26484
38912228 264852004-10-14 Hollis Blanchard <hollis@penguinppc.org>
26486
26487 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
26488 prototype.
26489 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
26490 grub_console_init first.
26491 Change the memory range used for grub_ieee1275_claim and
26492 grub_mm_init_region.
26493 Print an error message if the claim fails.
26494 Include <grub/misc.h>.
26495
d1923dc8 264962004-10-13 Hollis Blanchard <hollis@penguinppc.org>
26497
26498 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
26499 Call grub_children_iterate for device nodes of type `scsi',
26500 `ide', or `ata'.
26501 (grub_ofdisk_open): Remove manual device alias resolution.
26502 Fix memory leak when device cannot be opened.
f19dbdb7 26503 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 26504 (grub_children_iterate): New prototype.
26505 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
26506 New function.
26507 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26508 Return -1 if args.size was -1.
26509
4512e4f3 265102004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26511
26512 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
26513 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
26514 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
26515 Open Firmware's memory for it; claim memory from _start to _end.
26516 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
26517 (_end): New extern.
26518 (_start): Zero BSS from __bss_start to _end.
26519 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
26520 New extern.
26521 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
26522
4d61feb0 265232004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26524
ad0bd20b 26525 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
26526 -1 if args.base was -1.
4d61feb0 26527
026fa2f9 265282004-10-08 Hollis Blanchard <hollis@penguinppc.org>
26529
26530 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
26531 escape sequence instead of a literal ^L. Also call
26532 grub_ofconsole_gotoxy.
26533
9f2220ef 265342004-10-03 Hollis Blanchard <hollis@penguinppc.org>
26535
26536 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
26537 void * arguments to grub_addr_t. All callers updated. Also make
26538 the `result' argument optional.
26539 (grub_ieee1275_release): change void * arguments to grub_addr_t.
26540 All callers updated.
26541
8a572cd7 265422004-09-22 Hollis Blanchard <hollis@penguinppc.org>
26543
26544 * commands/ls.c (grub_ls_list_files): Use the string following the
26545 initial ')', if present, as the filesystem path.
26546 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
26547
26548 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
26549
18aa81f2 265502004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
26551
26552 Make the source code of the menu interface more readable.
f19dbdb7 26553
18aa81f2 26554 * normal/menu.c: Include grub/mm.h.
26555 (TERM_WIDTH): New macro.
26556 (TERM_HEIGHT): Likewise.
26557 (TERM_INFO_HEIGHT): Likewise.
26558 (TERM_MARGIN): Likewise.
26559 (TERM_SCROLL_WIDTH): Likewise.
26560 (TERM_TOP_BORDER_Y): Likewise.
26561 (TERM_LEFT_BORDER_X): Likewise.
26562 (TERM_BORDER_WIDTH): Likewise.
26563 (TERM_MESSAGE_HEIGHT): Likewise.
26564 (TERM_BORDER_HEIGHT): Likewise.
26565 (TERM_NUM_ENTRIES): Likewise.
26566 (TERM_FIRST_ENTRY_Y): Likewise.
26567 (TERM_ENTRY_WIDTH): Likewise.
26568 (TERM_CURSOR_X): Likewise.
26569 (draw_border): Use macros instead of magic numbers.
26570 (print_entry): Likewise.
26571 (print_entries): Likewise.
26572 (run_menu): Likewise. Also, handle the key 'e'.
26573 (run_menu_entry): Ignore empty command lines.
26574 (print_message): Added a new argument EDIT. If EDIT is true,
26575 print a different message.
26576 (init_page): Likewise.
26577 (edit_menu_entry): New function. Not implemented yet.
26578
b47efe30 265792004-09-17 Marco Gerards <metgerards@student.han.nl>
26580
26581 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
26582 can be loaded from normal mode.
f19dbdb7 26583
b47efe30 26584 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
26585 `multiboot.mod'.
26586 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
26587 (multiboot_mod_CFLAGS): New variables.
26588 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 26589 * loader/i386/pc/multiboot_normal.c: Likewise.
26590
b47efe30 26591 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
26592 attribute `unused'.
f19dbdb7 26593
b47efe30 26594 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
26595 `fdiro' to read the mode information from instead of `diro'.
26596
26597 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
26598 looking up a symlink.
26599
26600 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
26601 macro.
26602 * normal/command.c (grub_command_execute): Don't parse the
26603 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
26604 flags of the command.
26605
26606 * normal/menu.c (grub_menu_run): Fix typo.
26607
da75ac71 266082004-09-14 Hollis Blanchard <hollis@penguinppc.org>
26609
26610 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
26611
26612 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
26613 `y + 1' instead of `y - 1'.
26614
26615 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 26616
062b24c2 266172004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
26618
26619 From Hollis Blanchard <hollis@penguinppc.org>:
26620 * kern/misc.c (memmove): New alias for grub_memmove.
26621 (memcmp): New alias for grub_memcmp.
26622 (memset): New alias for grub_memset.
f19dbdb7 26623 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 26624 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 26625 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 26626 (grub_ieee1275_get_property): Likewise.
f19dbdb7 26627
8ddad845 266282004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
26629
26630 Added normal mode command `chainloader' as module chain.mod, which
26631 depends on normal.mod and _chain.mod.
f19dbdb7 26632
8ddad845 26633 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
26634 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
26635 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
26636 Deleted prototype.
26637 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
26638 but arguments parsing moved to ...
26639 (grub_chainloader_cmd): ... here. New function.
26640 * include/grub/i386/pc/chainloader.h: New file.
26641 * loader/i386/pc/chainloader_normal.c: Likewise.
26642
2c1f4ce3 266432004-09-11 Marco Gerards <metgerards@student.han.nl>
26644
26645 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
26646 (grub_mkimage_LDFLAGS): Likewise.
26647 (grub_emu_SOURCES): Likewise.
26648 (kernel_img_HEADERS): Added fshelp.h.
26649 * fs/ext2.c: Include <grub/fshelp.h>.
26650 (FILETYPE_REG): New macro.
26651 (FILETYPE_INO_REG): Likewise.
26652 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
26653 Changed all users.
26654 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
26655 all users.
26656 (grub_fshelp_node): New struct.
26657 (grub_ext2_data): Added member `diropen'. Changed member `inode'
26658 to a pointer.
26659 (grub_ext2_get_file_block): Removed function.
26660 (grub_ext2_read_block): New function.
26661 (grub_ext2_read_file): Replaced parameter `data' by `node'.
26662 This function was written.
26663 (grub_ext2_mount): Read the root inode. Create a diropen struct.
26664 (grub_ext2_find_file): Removed function.
26665 (grub_ext2_read_symlink): New function.
26666 (grub_ext2_iterate_dir): Likewise.
26667 (grub_ext2_open): Rewritten.
26668 (grub_ext2_dir): Rewritten.
26669 * include/grub/fshelp.h: New file.
26670 * fs/fshelp.c: Likewise.
26671
3c52136a 266722004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
26673
26674 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
26675 (print_message): Add a missing newline.
26676 (run_menu): Added timeout support.
26677 (run_menu_entry): New local function.
26678 (grub_menu_run): Added support for booting.
26679
26680 * kern/loader.c (grub_loader_is_loaded): New function.
26681
26682 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
26683 (grub_get_rtc): Exported.
26684
26685 * include/grub/i386/pc/time.h: Include grub/symbol.h.
26686 (grub_get_rtc): Exported.
26687
26688 * include/grub/normal.h (struct grub_command_list): Remove
26689 constant from the member `command'.
26690
26691 * include/grub/loader.h (grub_loader_is_loaded): Declared.
26692
26693 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
26694
26695 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
26696
aa033560 266972004-08-28 Marco Gerards <metgerards@student.han.nl>
26698
26699 Add support for the JFS filesystem.
26700
26701 * fs/jfs.c: New file.
26702 * include/grub/fs.h (grub_jfs_init): New prototype.
26703 (grub_jfs_fini): New prototype.
26704 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
26705 (grub_emu_SOURCES): Likewise.
26706 (pkgdata_MODULES): Add jfs.mod.
26707 (jfs_mod_SOURCES): New variable.
26708 (jfs_mod_CFLAGS): Likewise.
26709 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
26710 (grubof_SOURCES): Likewise.
26711 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
26712
26713 * fs/fat.c (grub_fat_find_dir): Convert the filename little
26714 endian to the host endian.
26715 (grub_fat_utf16_to_utf8): Move function from there...
26716 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 26717 the endianness of the source string anymore.
aa033560 26718 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
26719
94bc45af 267202004-08-24 Marco Gerards <metgerards@student.han.nl>
26721
26722 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
26723 (grub_boot_fini) [GRUB_UTIL]: Likewise.
26724 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
26725 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 26726
94bc45af 26727 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
26728 (grub_hfs_iterate_dir): Make the function static. Add prototypes
26729 for `node_found' and `it_dir'.
26730 (grub_hfs_dir): Add prototype for `dir_hook'.
26731
26732 * fs/minix.c (grub_minix_get_file_block): Add prototype for
26733 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
26734 and `indir32' to silence a gcc warning.
26735
26736 * include/grub/fs.h (grub_hfs_init): New prototype.
26737 (grub_hfs_fini): Likewise.
f19dbdb7 26738
26739
97543f08 267402004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
26741
26742 Each disk device has its own id now. This is useful to make use
26743 of multiple disk devices.
f19dbdb7 26744
97543f08 26745 * include/grub/disk.h (grub_disk_dev_id): New enum.
26746 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
26747 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
26748
26749 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
26750 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
26751
26752 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
26753 GRUB_DISK_DEVICE_OFDISK_ID as an id.
26754
26755 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
26756 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
26757
26758 * include/grub/disk.h (struct grub_disk_dev): Added a new member
26759 "id" which is used by the cache manager.
26760
26761 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
26762 of just "GRUB".
26763
64372eb4 267642004-08-18 Marco Gerards <metgerards@student.han.nl>
26765
26766 * fs/hfs.c: New file.
26767 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
26768 (grub_emu_SOURCES): Likewise.
26769 (pkgdata_MODULES): Add hfs.mod.
26770 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
26771 (grubof_SOURCES): Likewise.
26772 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
26773
26774 * include/grub/misc.h (grub_strncasecmp): Add prototype.
26775 * kern/misc.c (grub_strncasecmp): Add function.
26776
cc61b58f 267772004-08-14 Marco Gerards <metgerards@student.han.nl>
26778
26779 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
26780 with parentheses.
26781
26782 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
26783 (grub_ext2_dir): In case the directory entry type is unknown, read
26784 it from the inode.
26785
0ef123f6 267862004-08-02 Peter Bruin <pjbruin@dds.nl>
26787
26788 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
26789 grub_load_linux instead of grub_rescue_cmd_linux as second
26790 argument of grub_rescue_register_command.
26791
26792 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
26793
a447c5df 267942004-07-27 Marco Gerards <metgerards@student.han.nl>
26795
26796 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
26797 function.
26798 * commands/boot.c: Remove the check for `GRUB_UTIL'.
26799 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
26800 `loader/powerpc/ieee1275/linux.c',
26801 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
26802 * include/grub/powerpc/ieee1275/ieee1275.h
26803 (grub_ieee1275_release): New prototype.
26804 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
26805 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
26806 normal, boot, linux and linux_normal.
26807 * loader/powerpc/ieee1275/linux.c: New file.
26808 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
26809
5a9e3546 268102004-07-12 Marco Gerards <metgerards@student.han.nl>
26811
26812 * normal/arg.c (grub_arg_parse): Correct error handling after
26813 reallocating the argumentlist (check if `argl' is not null instead
26814 of checking if `args' is not null).
26815 * kern/mm.c (grub_realloc): Return the same pointer when using the
26816 same region, instead of returning the header address.
26817
e15199cb 268182004-07-11 Marco Gerards <metgerards@student.han.nl>
26819
26820 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
26821 one block instead of two when looking for the initial partition.
26822 (grub_partition_probe): Initialize the local variable `p' with 0.
26823 Use base 10 for the grub_strtoul call.
26824 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
26825 need for one local variable.
26826 (grub_strtoul): Don't add the new value to `num', instead of that
26827 just assign it.
26828
020616c2 268292004-07-11 Marco Gerards <metgerards@student.han.nl>
26830
26831 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
26832 (pxeboot_img_SOURCES): New variable.
26833 (pxeboot_img_ASFLAGS): Likewise.
26834 (pxeboot_img_LDFLAGS): Likewise.
26835 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
26836 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
26837 <lode_leroy@hotmail.com>.
26838
6c51eb64 268392004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26840
26841 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
26842 there was no input.
26843
cfb12aff 268442004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26845
26846 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
26847 the history buffer logic.
26848
6eabba74 268492004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26850
26851 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
26852 (FILETYPE_INO_SYMLINK): New macros.
26853 (grub_ext2_find_file): Check if the node is a directory using the
26854 inode stat information instead of using the filetype in the
26855 dirent. Exclude the first character of an absolute symlink.
26856 (grub_ext2_dir): Mask out the filetype part of the mode member of
26857 the inode.
26858
66e19ef8 268592004-05-24 Marco Gerards <metgerards@student.han.nl>
26860
26861 Add support for UFS version 1 and 2. Add support for the minix
26862 filesystem version 1 and 2, both the variants with 14 and 30 long
26863 filenames.
f19dbdb7 26864
66e19ef8 26865 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
26866 fs/minix.c.
26867 (grub_emu_SOURCES): Likewise.
26868 (pkgdata_MODULES): Add ufs.mod and minix.mod.
26869 (ufs_mod_SOURCES): New variable.
26870 (ufs_mod_CFLAGS): Likewise.
26871 (minix_mod_SOURCES): Likewise.
26872 (minix_mod_CFLAGS): Likewise.
26873 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
26874 fs/minix.c.
26875 (grubof_SOURCES): Likewise.
26876 * fs/ufs.c: New file.
26877 * fs/minix.c: New file.
26878 * include/grub/fs.h (grub_ufs_init): New prototype.
26879 (grub_ufs_fini): Likewise.
26880 (grub_minix_init): Likewise.
26881 (grub_minix_fini): Likewise.
26882 * util/grub-emu.c (main): Initialize and deinitialize UFS and
26883 minix fs.
26884
cc2e748a 268852004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
26886
26887 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
26888 commands/ls.c, commands/terminal.c, commands/boot.c,
26889 commands/cmp.c and commands/cat.c.
26890 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
26891
26892 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
26893 "env.h"
26894
4b13b216 268952004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
26896
26897 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
26898 and grub_, respectively. Because the conversion is trivial and
26899 mechanical, I omit the details here. Please refer to the CVS
26900 if you need more information.
26901
6a142551 269022004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
26903
26904 * include/pupa: Renamed to ...
26905 * include/grub: ... this.
26906 * util/i386/pc/pupa-mkimage.c: Renamed to ...
26907 * util/i386/pc/grub-mkimage.c: ... this.
26908 * util/i386/pc/pupa-setup.c: Renamed to ...
26909 * util/i386/pc/grub-setup.c: ... this.
26910 * util/pupa-emu.c: Renamed to ...
26911 * util/grub-emu.c: ... this.
26912
e56cdf21 269132004-03-29 Marco Gerards <metgerards@student.han.nl>
26914
26915 Add support for the newworld apple macintosh (PPC). This has been
26916 tested on the powerbook 2000 only. It only adds support for
26917 generic ieee1275 functions, console and disk support. This should
26918 be easy to port to other architectures with support for Open
26919 Firmware.
f19dbdb7 26920
e56cdf21 26921 * configure.ac: Accept the powerpc as host_cpu. In the case of
26922 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
26923 specific tests are only executed while building for the i386.
26924 Inverse test for crosscompile.
26925 * genmk.rb (Utility): Allow assembler files.
26926 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
26927 * conf/powerpc-ieee1275.rmk: New file.
26928 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
26929 * disk/powerpc/ieee1275/partition.c: Likewise.
26930 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
26931 * include/pupa/powerpc/ieee1275/console.h: Likewise.
26932 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
26933 * include/pupa/powerpc/ieee1275/time.h: Likewise.
26934 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
26935 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
26936 * include/pupa/powerpc/ieee1275/loader.h
26937 * include/pupa/powerpc/setjmp.h: Likewise.
26938 * include/pupa/powerpc/types.h: Likewise.
26939 * kern/powerpc/ieee1275/init.c: Likewise.
26940 * kern/powerpc/ieee1275/openfw.c: Likewise.
26941 * term/powerpc/ieee1275/ofconsole.c: Likewise.
26942
26943 These files were written by Johan Rydberg
26944 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 26945
e56cdf21 26946 * boot/powerpc/ieee1275/cmain.c: New file.
26947 * boot/powerpc/ieee1275/crt0.S: Likewise.
26948 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
26949 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
26950
8c8cc205 269512004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
26952
26953 * Makefile.in: Update copyright.
26954 * genmodsrc.sh: Likewise.
26955 * gensymlist.sh: Likewise.
26956 * term/i386/pc/vga.c: Indent correctly.
26957
26958 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
26959 bugreporting address.
26960 * util/i386/pc/pupa-setup.c (usage): Likewise,
26961 (main): Call pupa_ext2_init and pupa_ext2_fini.
26962
f19dbdb7 26963 * fs/fat.c (log2): Renamed to ...
8c8cc205 26964 (fat_log2): ... this.
26965 All callers changed.
26966 * kern/misc.c (memcpy): Alias to pupa_memmove.
26967 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
26968 lvalue cast.
26969 * util/console.c (pupa_ncurses_fini): Return 0.
26970
26971 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
26972 Move fail label here.
26973 [__GNU__]: Don't warn when using stat.
26974 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
26975 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
26976 long int. Use strtol instead of strtoul.
f19dbdb7 26977
db1771cf 269782004-03-14 Marco Gerards <metgerards@student.han.nl>
26979
26980 * commands/boot.c: New file.
26981 * commands/cat.c: Likewise.
26982 * commands/cmp.c: Likewise.
26983 * commands/ls.c: Likewise.
26984 * commands/terminal.c: Likewise.
26985 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
26986 (pupa_register_command): Changed interface to match the new
26987 argument parser.
26988 (pupa_command_execute): Changed (almost rewritten) so it uses
26989 pupa_split_command. Added support for setting variables using the
26990 syntax `foo=bar'.
26991 (rescue_command): Changed to work with the new argument parser.
26992 (terminal_command): Moved from here to commands/terminal.c.
26993 (set_command): New function.
26994 (unset_command): New function.
26995 (insmod_command): New function.
26996 (rmmod_command): New function.
26997 (lsmod_command): New function.
26998 (pupa_command_init): Don't initialize the command terminal
26999 anymore. Initialize the commands set, unset, insmod, rmmod and
27000 lsmod.
27001 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
27002 (kernel_img_HEADERS): Add arg.h and env.h.
27003 (pupa_mkimage_LDFLAGS): Add kern/env.c.
27004 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
27005 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
27006 normal/arg.c.
27007 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
27008 terminal.mod.
27009 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
27010 (boot_mod_SOURCES): New variable.
27011 (terminal_mod_SOURCES): Likewise.
27012 (ls_mod_SOURCES): Likewise.
27013 (cmp_mod_SOURCES): Likewise.
27014 (cat_mod_SOURCES): Likewise.
27015
27016 * normal/arg.c: New file.
27017 * kern/env.c: Likewise.
27018 * include/pupa/arg.h: Likewise.
27019 * include/pupa/env.h: Likewise.
27020 * font/manager.c (font_command): Changed to match argument parsing
27021 interface changes.
27022 (PUPA_MOD_INIT): Likewise.
27023 * hello/hello.c (pupa_cmd_hello): Likewise.
27024 (PUPA_MOD_INIT): Likewise.
27025 * include/pupa/disk.h: Include <pupa/device.h>.
27026 (pupa_print_partinfo): New prototype.
27027 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
27028 (pupa_dl_get_prefix): Likewise.
27029 * include/pupa/misc.h: Include <pupa/err.h>.
27030 (pupa_isgraph): New prototype.
27031 (pupa_isdigit): Likewise.
27032 (pupa_split_cmdline): Likewise.
27033 * include/pupa/normal.h: Include <pupa/arg.h>.
27034 (pupa_command): Changed the prototype of the member `func' to
27035 match the argument parsing interface. Added member `options'.
27036 (pupa_register_command): Updated to match function.
27037 (pupa_arg_parse): New prototype.
27038 (pupa_hello_init) [PUPA_UTIL]: New prototype.
27039 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
27040 (pupa_ls_init) [PUPA_UTIL]: Likewise.
27041 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
27042 (pupa_cat_init) [PUPA_UTIL]: Likewise.
27043 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
27044 (pupa_boot_init) [PUPA_UTIL]: Likewise.
27045 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
27046 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
27047 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
27048 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
27049 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
27050 * kern/disk.c: Include <pupa/file.h>.
27051 (pupa_print_partinfo): New function.
27052 * kern/dl.c: Include <pupa/env.h>.
27053 (pupa_dl_dir): Variable removed.
27054 (pupa_dl_load): Use the environment variable `prefix' instead of
27055 the variable pupa_dl_dir.
27056 (pupa_dl_set_prefix): Function removed.
27057 (pupa_dl_get_prefix): Likewise.
27058 * kern/i386/pc/init.c: Include <pupa/env.h>.
27059 (pupa_machine_init): Use the environment variable `prefix' instead of
27060 using pupa_dl_set_prefix to set the prefix.
27061 * kern/main.c: Include <pupa/env.h>.
27062 (pupa_set_root_dev): Use the environment variable `prefix' instead of
27063 using pupa_dl_get_prefix to get the prefix.
27064 * kern/misc.c: Include <pupa/env.h>.
27065 (pupa_isdigit): New function.
27066 (pupa_isgraph): Likewise.
27067 (pupa_ftoa): Likewise.
27068 (pupa_vsprintf): Added support for printing values of the type
27069 `double'. Make it possible to format variable output when using
27070 formatting like `%1.2%f'.
27071 (pupa_split_cmdline): New function.
27072 * kern/rescue.c: Include <pupa/env.h>.
27073 (next_word): Removed function.
27074 (pupa_rescue_cmd_prefix): Likewise.
27075 (pupa_rescue_cmd_set): New function.
27076 (pupa_rescue_cmd_unset): New function.
27077 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
27078 split the command line instead of splitting it here. Added
27079 support for setting variables using the syntax `foo=bar'. Don't
27080 initialize the prefix command anymore. Initialized the set and
27081 unset commands.
27082 * normal/cmdline.c: Include <pupa/env.h>.
27083 (pupa_tab_complete): Added prototypes for print_simple_completion,
27084 print_partition_completion, add_completion, iterate_commands,
27085 iterate_dev, iterate_part and iterate_dir. Moved code to print
27086 partition information from here to kern/disk.c.
fe6b695a 27087 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 27088 * normal/main.c: Include <pupa/env.h>.
27089 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
27090 instead of using pupa_dl_get_prefix to get the prefix.
27091 * term/i386/pc/vga.c: Include <pupa/arg.h>.
27092 (check_vga_mem): Cast pointers to `void *' to silence a gcc
27093 warning.
27094 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
27095 (pupa_vga_setcolor): Declare unused variables with `__attribute__
27096 ((unused))' to silence a gcc warning.
27097 (pupa_vga_setcolor): Likewise.
27098 (debug_command): Changed to match argument parsing
27099 interface changes.
27100 * util/pupa-emu.c: Include <pupa/env.h>.
27101 (options): Added 0's for unused fields to silence a gcc warning.
27102 (argp): Likewise.
27103 (main): Use the environment variable `prefix' instead of using
27104 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
27105 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
27106 and terminal.
27107
27108 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
27109 * util/misc.c: Include <malloc.h>.
27110 (pupa_malloc): Rewritten so errors are correctly reported.
27111 (pupa_realloc): Likewise.
27112 (pupa_memalign): Likewise.
27113 (pupa_mm_init_region): Declare unused variables with
27114 `__attribute__ ((unused))' to silence a gcc warning.
27115 * normal/i386/setjmp.S: Remove tab at the end of the file to
27116 silence a gcc warning.
27117 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
27118 variables with `__attribute__ ((unused))' to silence a gcc
27119 warning.
27120 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
27121 local variable i unsigned to silence a gcc warning.
27122
27123 * kern/term.c: Include <pupa/misc.h>.
27124 (pupa_more_lines): New variable.
27125 (pupa_more): Likewise.
27126 (pupa_putcode): When the pager is active pause at the end of every
27127 screen.
27128 (pupa_set_more): New function.
27129 * include/pupa/term.h (pupa_set_more): New prototype.
27130
27131
3b1139cb 271322004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
27133
27134 Now this project is GRUB 2 rather than PUPA. The location of
27135 the CVS repository was moved to GRUB's.
f19dbdb7 27136
3b1139cb 27137 * configure.ac: Use bug-grub as the reporting address.
27138 Use GRUB instead of PUPA.
27139 Change the version number to 1.90.
27140
8367695c 271412004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
27142
27143 * genkernsyms.sh: Updated copyright information.
27144 * genmk.rb: Likewise.
27145 * genmodsrc.sh: Likewise.
27146 * gensymlist.sh: Likewise.
27147 * boot/i386/pc/boot.S: Likewise.
27148 * boot/i386/pc/diskboot.S: Likewise.
27149 * disk/i386/pc/biosdisk.c: Likewise.
27150 * disk/i386/pc/partition.c: Likewise.
27151 * font/manager.c: Likewise.
27152 * fs/ext2.c: Likewise.
27153 * fs/fat.c: Likewise.
27154 * include/pupa/boot.h: Likewise.
27155 * include/pupa/device.h: Likewise.
27156 * include/pupa/disk.h: Likewise.
27157 * include/pupa/dl.h: Likewise.
27158 * include/pupa/elf.h: Likewise.
27159 * include/pupa/err.h: Likewise.
27160 * include/pupa/file.h: Likewise.
27161 * include/pupa/font.h: Likewise.
27162 * include/pupa/fs.h: Likewise.
27163 * include/pupa/kernel.h: Likewise.
27164 * include/pupa/loader.h: Likewise.
27165 * include/pupa/misc.h: Likewise.
27166 * include/pupa/mm.h: Likewise.
27167 * include/pupa/net.h: Likewise.
27168 * include/pupa/normal.h: Likewise.
27169 * include/pupa/rescue.h: Likewise.
27170 * include/pupa/setjmp.h: Likewise.
27171 * include/pupa/symbol.h: Likewise.
27172 * include/pupa/term.h: Likewise.
27173 * include/pupa/types.h: Likewise.
27174 * include/pupa/i386/setjmp.h: Likewise.
27175 * include/pupa/i386/types.h: Likewise.
27176 * include/pupa/i386/pc/biosdisk.h: Likewise.
27177 * include/pupa/i386/pc/boot.h: Likewise.
27178 * include/pupa/i386/pc/console.h: Likewise.
27179 * include/pupa/i386/pc/init.h: Likewise.
27180 * include/pupa/i386/pc/kernel.h: Likewise.
27181 * include/pupa/i386/pc/linux.h: Likewise.
27182 * include/pupa/i386/pc/loader.h: Likewise.
27183 * include/pupa/i386/pc/memory.h: Likewise.
27184 * include/pupa/i386/pc/multiboot.h: Likewise.
27185 * include/pupa/i386/pc/partition.h: Likewise.
27186 * include/pupa/i386/pc/time.h: Likewise.
27187 * include/pupa/i386/pc/vga.h: Likewise.
27188 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
27189 * include/pupa/util/getroot.h: Likewise.
27190 * include/pupa/util/misc.h: Likewise.
27191 * include/pupa/util/resolve.h: Likewise.
27192 * kern/device.c: Likewise.
27193 * kern/disk.c: Likewise.
27194 * kern/dl.c: Likewise.
27195 * kern/err.c: Likewise.
27196 * kern/file.c: Likewise.
27197 * kern/fs.c: Likewise.
27198 * kern/loader.c: Likewise.
27199 * kern/main.c: Likewise.
27200 * kern/misc.c: Likewise.
27201 * kern/mm.c: Likewise.
27202 * kern/rescue.c: Likewise.
27203 * kern/term.c: Likewise.
27204 * kern/i386/dl.c: Likewise.
27205 * kern/i386/pc/init.c: Likewise.
27206 * kern/i386/pc/lzo1x.S: Likewise.
27207 * kern/i386/pc/startup.S: Likewise.
27208 * loader/i386/pc/chainloader.c: Likewise.
27209 * loader/i386/pc/linux.c: Likewise.
27210 * loader/i386/pc/multiboot.c: Likewise.
27211 * normal/cmdline.c: Likewise.
27212 * normal/command.c: Likewise.
27213 * normal/main.c: Likewise.
27214 * normal/menu.c: Likewise.
27215 * normal/i386/setjmp.S: Likewise.
27216 * term/i386/pc/console.c: Likewise.
27217 * term/i386/pc/vga.c: Likewise.
27218 * util/console.c: Likewise.
27219 * util/genmoddep.c: Likewise.
27220 * util/misc.c: Likewise.
27221 * util/pupa-emu.c: Likewise.
27222 * util/resolve.c: Likewise.
27223 * util/unifont2pff.rb: Likewise.
27224 * util/i386/pc/biosdisk.c: Likewise.
27225 * util/i386/pc/getroot.c: Likewise.
27226 * util/i386/pc/pupa-mkimage.c: Likewise.
27227 * util/i386/pc/pupa-setup.c: Likewise.
27228
e6eced71 272292004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
27230
27231 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
27232 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
27233 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
27234 reading and reset it after reading.
27235 (pupa_ext2_close): Return PUPA_ERR_NONE.
27236
27237 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
27238 Correct value.
27239 (struct linux_kernel_header): Add kernel_version and
27240 initrd_addr_max.
27241 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
27242 pupa_file_read succeeds.
27243 (pupa_rescue_cmd_initrd): Implement.
27244
5aded270 272452003-12-03 Marco Gerards <metgerards@student.han.nl>
27246
27247 * fs/ext2.c (pupa_ext2_label): New function.
27248 (pupa_ext2_fs): Added label.
27249 * fs/fat.c (pupa_fat_label): New function.
27250 (pupa_fat_fs): Added label.
27251 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
27252
27253 * kern/misc.c (pupa_strndup): New function.
27254 * include/pupa/misc.h (pupa_strndup): New prototype.
27255
27256 * include/pupa/normal.h: Include <pupa/err.h>.
27257 (pupa_set_history): New prototype.
27258 (pupa_iterate_commands): New prototype.
27259 * normal/cmdline.c: Include <pupa/machine/partition.h>,
27260 <pupa/disk.h>, <pupa/file.h>.
27261 (hist_size): New variable.
27262 (hist_lines): Likewise.
27263 (hist_end): Likewise.
27264 (hist_used): Likewise.
27265 (pupa_set_history): New function.
27266 (pupa_history_get): Likewise.
27267 (pupa_history_add): Likewise.
27268 (pupa_history_replace): Likewise.
27269 (pupa_tab_complete): Likewise.
27270 (pupa_cmdline_run): Added tab completion and history buffer. Tab
27271 completion shows partitionnames while completing partitions, this
27272 feature was suggested by Jeff Bailey.
27273 * normal/command.c (pupa_iterate_commands): New function.
27274 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
27275 (pupa_normal_init): Initialize history buffer.
27276 (PUPA_MOD_INIT): Likewise.
27277 (pupa_normal_fini): Free the history buffer.
27278 (PUPA_MOD_FINI): Likewise.
27279
27280 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
27281 key.
27282
27283 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
27284 * configure.ac [i386]: Check for regparam bug.
27285 (NESTED_FUNC_ATTR) [! i386]: Defined.
27286
1f7315a3 272872003-11-17 Marco Gerards <metgerards@student.han.nl>
27288
27289 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
27290 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
27291 (pupa_emu_SOURCES): New variable.
27292 (pupa_emu_LDFLAGS): Likewise.
27293 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
27294 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
27295 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
27296 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27297 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
27298 (pupa_jmp_buf): New typedef.
27299 (pupa_setjmp) [PUPA_UTIL]: New macro.
27300 (pupa_longjmp) [PUPA_UTIL]: Likewise.
27301 * include/pupa/term.h (struct pupa_term): New member `refresh'.
27302 (pupa_refresh): New prototype.
27303 * include/pupa/util/getroot.h: New file.
27304 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
27305 it.
27306 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
27307 (pupa_rescue_cmd_cat): Likewise.
27308 (pupa_rescue_cmd_ls): Likewise.
27309 (pupa_rescue_cmd_testload): Likewise.
27310 (pupa_rescue_cmd_lsmod): Likewise.
27311 * normal/cmdline.c (pupa_cmdline_get): Likewise.
27312 * normal/menu.c (run_menu): Likewise.
27313 * kern/term.c (pupa_cls): Likewise.
27314 (pupa_refresh): New function.
27315 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
27316 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27317 * util/console.c: New file.
f19dbdb7 27318
1f7315a3 27319 * util/i386/pc/getroot.c: New file.
27320 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
27321 (pupa_putchar): New function.
27322 (pupa_refresh): Likewise.
27323 (xgetcwd): Function moved to ...
27324 (strip_extra_slashes): Likewise.
27325 (get_prefix): Likewise.
f19dbdb7 27326 * util/i386/pc/getroot.c: ... here.
1f7315a3 27327 (find_root_device): Function moved and renamed to...
27328 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
27329 Changed all callers.
27330 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
27331 and renamed to...
27332 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
27333 Changed all callers.
27334 * util/misc.c (pupa_memalign): New function.
27335 (pupa_mm_init_region): Likewise.
27336 (pupa_register_exported_symbols): Likewise.
27337 (pupa_putchar): Function removed.
27338 * util/pupa-emu.c: New file.
27339
9a5c1ade 273402003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
27341
27342 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
27343 (_multiboot_mod_SOURCES): New variable.
27344 (_multiboot_mod_CFLAGS): Likewise.
27345 * loader/i386/pc/multiboot.c: New file.
27346 * include/pupa/i386/pc/multiboot.h: Likewise.
27347 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
27348 (pupa_multiboot_real_boot): New function.
27349 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
27350 (pupa_multiboot_real_boot): New prototype.
27351 (pupa_rescue_cmd_multiboot): Likewise
27352 (pupa_rescue_cmd_module): Likewise.
27353
27354 * kern/loader.c (pupa_loader_set): Continue when
27355 pupa_loader_unload_func() fails.
27356 (pupa_loader_unset): New function.
27357 * include/pupa/loader.h (pupa_loader_unset): New prototype.
27358
27359 * kern/misc.c (pupa_stpcpy): New function.
27360 * include/pupa/misc.h (pupa_stpcpy): New prototype.
27361
8e72a9c0 273622003-11-12 Marco Gerards <metgerards@student.han.nl>
27363
27364 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
27365 for available extensions.
27366
27367 * include/pupa/i386/pc/time.h: New file.
27368 * kern/disk.c: Include <pupa/machine/time.h>.
27369 (PUPA_CACHE_TIMEOUT): New macro.
27370 (pupa_last_time): New variable.
27371 (pupa_disk_open): Flush the cache when there was a timeout.
27372 (pupa_disk_close): Reset the timer.
27373 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
27374 pupa_currticks.
27375 * util/misc.c: Include <sys/times.h>
27376 (pupa_get_rtc): New function.
27377
c4adbd32 273782003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
27379
27380 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
27381 as blocks.
27382 (pupa_ext2_get_file_block): Use blocks member.
27383
27384 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
27385 first block. Return -1 instead of pupa_errno on error.
27386
bfd30f06 273872003-10-27 Marco Gerards <metgerards@student.han.nl>
27388
27389 * README: In the pupa-mkimage example use _chain instead of chain
27390 and ext2 instead of fat.
27391 * TODO: Replace ext2fs with jfs as an example. Add an item for
27392 adding journal playback for ext2fs.
27393 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
27394 (pkgdata_MODULES): Added ext2.mod.
27395 (ext2_mod_SOURCES): New variable.
27396 (ext2_mod_CFLAGS): Likewise.
27397 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
27398 * include/pupa/misc.h (pupa_strncpy): New prototype.
27399 (pupa_strcat): Likewise.
27400 (pupa_strncmp): Likewise.
27401 * kern/misc.c (pupa_strcat): Enable function.
27402 (pupa_strncpy): New function.
27403 (pupa_strncmp): Likewise.
27404 * fs/ext2.c: New file.
f19dbdb7 27405
bfd30f06 27406 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
27407 when the read failed before retrying.
27408 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
27409 (_FILE_OFFSET_BITS): Likewise.
27410 * configure.ac: Added AC_SYS_LARGEFILE.
27411
98d15063 274122003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27413
27414 * genmk.rb (PModule#rule): Make sure to get only symbol names
27415 from the output of nm.
59cad637 27416 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 27417
18d9c7cd 274182003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27419
27420 I forgot to check in these changes for a long time. This adds
27421 incomplete support for VGA console, and this is still very
27422 buggy. Also, a lot of consideration is required for I18N,
27423 UNICODE, and VGA font issues. Therefore, assume that this is
27424 such that "better than nothing".
f19dbdb7 27425
18d9c7cd 27426 * font/manager.c: New file.
27427 * include/pupa/font.h: Likewise.
27428 * include/pupa/i386/pc/vga.h: Likewise.
27429 * term/i386/pc/vga.c: Likewise.
27430 * util/unifont2pff.rb: Likewise.
27431
27432 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
27433 (pkgdata_MODULES): Added vga.mod and font.mod.
27434 (vga_mod_SOURCES): New variables.
27435 (vga_mod_CFLAGS): Likewise.
27436 (font_mod_SOURCES): Likewise.
27437 (font_mod_CFLAGS): Likewise.
27438
27439 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
27440
27441 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 27442 (struct pupa_term): Added init and fini.
18d9c7cd 27443 Changed the argument of putchar to pupa_uint32_t.
27444
27445 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
27446 (pupa_console_real_putchar): New prototype.
27447 (pupa_console_putchar): Removed.
27448 (pupa_console_checkkey): Exported.
27449 (pupa_console_getkey): Likewise.
27450
27451 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
27452 characters.
27453
27454 * kern/term.c (pupa_term_set_current): Rewritten.
27455 (pupa_putchar): Likewise.
27456 (pupa_putcode): New function.
27457
27458 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
27459 (pupa_console_real_putchar): ... this.
27460 (pupa_vga_set_mode): New function.
27461 (pupa_vga_get_font): Likewise.
27462
27463 * normal/command.c: Include pupa/term.h.
27464 (terminal_command): New function.
27465 (pupa_command_init): Register the command "terminal".
27466
27467 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
27468 (DISP_UP): Likewise.
27469 (DISP_RIGHT): Likewise.
27470 (DISP_DOWN): Likewise.
27471 (DISP_HLINE): Likewise.
27472 (DISP_VLINE): Likewise.
27473 (DISP_UL): Likewise.
27474 (DISP_UR): Likewise.
27475 (DISP_LL): Likewise.
27476 (DISP_LR): Likewise.
27477
27478 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 27479
977329f5 274802003-02-08 NIIBE Yutaka <gniibe@m17n.org>
27481
27482 * util/resolve.c (pupa_util_resolve_dependencies): BUG
27483 FIX. Reverse the path_list.
27484
27485 * include/pupa/normal.h: Export pupa_register_command and
27486 pupa_unregister_command.
27487
27488 * hello/hello.c (pupa_cmd_hello): New module.
27489 * conf/i386-pc.rmk: Added hello.mod.
27490
1f5ab428 274912003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
27492
27493 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 27494
1f5ab428 27495 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
27496 (compress_kernel): New variable.
27497 (generate_image): Heavily modified to support compressing a
27498 large part of the core image.
27499
27500 * util/misc.c (pupa_util_read_image): Fix a file descriptor
27501 leak.
27502 (pupa_util_load_image): New function.
27503
27504 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
27505 (pupa_compressed_size): New variable.
27506 (codestart): Enable Gate A20 here.
27507 Decompress the compressed part of the core image.
27508 Rearrange the code to put functions and variables which are
27509 required for initialization in the non-compressed part.
27510 Include lzo1x.S.
27511
27512 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
27513 here.
27514
27515 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
27516
f19dbdb7 27517 * include/pupa/i386/pc/kernel.h
1f5ab428 27518 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
27519 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
27520 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
27521 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
27522 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
27523
27524 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
27525
27526 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
27527 (Utility#rule): Likewise.
27528
27529 * configure.ac: Check if LZO is available.
27530
ce5bf700 275312003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
27532
27533 * include/pupa/normal.h: New file.
27534 * include/pupa/setjmp.h: Likewise.
27535 * include/pupa/i386/setjmp.h: Likewise.
27536 * normal/cmdline.c: Likewise.
27537 * normal/command.c: Likewise.
27538 * normal/main.c: Likewise.
27539 * normal/menu.c: Likewise.
27540 * normal/i386/setjmp.S: Likewise.
f19dbdb7 27541
ce5bf700 27542 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
27543 (pupa_rescue_cmd_initrd): Likewise.
27544
27545 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
27546 Likewise.
27547
27548 * kern/i386/pc/startup.S (translation_table): New variable.
27549 (translate_keycode): New function.
27550 (pupa_console_getkey): Call translate_keycode.
27551
27552 * kern/rescue.c (attempt_normal_mode): New function.
27553 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
27554 it failed, print a message.
27555
27556 * kern/mm.c (pupa_real_malloc): Print more information when a
27557 free magic is broken.
27558 (pupa_free): If the first free header is not free actually, set
27559 it to P.
27560
27561 * kern/main.c (pupa_load_normal_mode): Just load the module
27562 "normal".
27563 (pupa_main): Don't print the message
27564 "Entering into rescue mode..." here.
27565
27566 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
27567 Declared.
27568 (pupa_rescue_cmd_initrd): Likewise.
27569 (pupa_rescue_cmd_initrd): Likewise.
27570
27571 * include/pupa/symbol.h (FUNCTION): Specify the type.
27572 (VARIABLE): Likewise.
27573
27574 * include/pupa/err.h (pupa_err_t): Added
27575 PUPA_ERR_UNKNOWN_COMMAND.
27576
27577 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
27578 (pupa_dl_get_prefix): Likewise.
27579
27580 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
27581 Added _chain.mod and _linux.mod instead of chain.mod and
27582 linux.mod.
27583 (chain_mod_SOURCES): Renamed to ...
27584 (_chain_mod_SOURCES): ... this.
27585 (chain_mod_CFLAGS): Renamed to ...
27586 (_chain_mod_CFLAGS): ... this.
27587 (linux_mod_SOURCES): Renamed to ...
27588 (_linux_mod_SOURCES): ... this.
27589 (linux_mod_CFLAGS): Renamed to ...
27590 (_linux_mod_CFLAGS): ... this.
27591 (normal_mod_SOURCES): New variable.
27592 (normal_mod_CFLAGS): Likewise.
27593 (normal_mod_ASFLAGS): Likewise.
27594
275952003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
27596
27597 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
27598 possible.
27599
fe6b695a 27600 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 27601 recursively.
27602 (pupa_dl_unref): Unrefer depending modules recursively.
27603 Don't call pupa_dl_unload implicitly, because PUPA can crash if
27604 a module is unloaded before one depending on that module is
27605 unloaded.
27606 (pupa_dl_unload): Unload depending modules explicitly,
27607 if possible.
27608
c04da074 276092003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
27610
27611 * include/pupa/i386/pc/linux.h: New file.
27612 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 27613
c04da074 27614 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
27615 Removed.
27616 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
27617 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
27618 of PUPA_CHAINLOADER_BOOT_SECTOR.
27619
27620 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
27621 (pupa_linux_prot_size): New variable.
27622 (pupa_linux_tmp_addr): Likewise.
27623 (pupa_linux_real_addr): Likewise.
27624 (pupa_linux_boot_zimage): New function.
27625 (pupa_linux_boot_bzimage): Likewise.
27626
27627 * kern/i386/pc/init.c (struct mem_region): New structure.
27628 (MAX_REGIONS): New macro.
27629 (mem_regions): New variable.
27630 (num_regions): Likewise.
27631 (pupa_os_area_addr): Likewise.
27632 (pupa_os_area_size): Likewise.
27633 (pupa_lower_mem): Likewise.
27634 (pupa_upper_mem): Likewise.
27635 (add_mem_region): New function.
27636 (compact_mem_regions): Likewise.
27637 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
27638 the size of the conventional memory and that of so-called upper
27639 memory (before the first memory hole).
27640 Instead of adding each found region to free memory, use
27641 add_mem_region and add them after removing overlaps.
27642 Also, add only 1/4 of the upper memory to free memory. The rest
27643 is used for loading OS images. Maybe this is ad hoc, but this
27644 makes it much easier to relocate OS images when booting.
27645
27646 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
27647 (pupa_enter_rescue_mode): Don't register initrd and module.
27648
27649 * kern/mm.c: Include pupa/dl.h.
27650
27651 * kern/main.c: Include pupa/file.h and pupa/device.h.
27652
27653 * kern/loader.c (pupa_loader_load_module_func): Removed.
27654 (pupa_loader_load_module): Likewise.
27655
27656 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
27657 ``.o''.
27658
27659 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
27660 (pupa_linux_tmp_addr): Likewise.
27661 (pupa_linux_real_addr): Likewise.
27662 (pupa_linux_boot_zimage): Likewise.
27663 (pupa_linux_boot_bzimage): Likewise.
27664
27665 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
27666 (pupa_upper_mem): Likewise.
27667 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
27668 module is too dangerous.
27669
27670 * include/pupa/loader.h (pupa_os_area_addr): Declared.
27671 (pupa_os_area_size): Likewise.
27672 (pupa_loader_set): Remove the first argument. Loader doesn't
27673 manage modules or initrd any longer.
27674 (pupa_loader_load_module): Removed.
27675
27676 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
27677 (linux_mod_SOURCES): New variable.
27678 (linux_mod_CFLAGS): Likewise.
27679
a13f9237 276802003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
27681
27682 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
27683 the length of a blocklist correctly.
27684
27685 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
27686 Use ioctl only if the OS file is a block device.
27687 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
27688 not very useful for normal files.
27689
27690 * kern/main.c (pupa_set_root_dev): New function.
27691 (pupa_load_normal_mode): Likewise.
27692 (pupa_main): Call those above.
27693
27694 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
27695 pupa_uint16_t.
27696
27697 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
27698
a5ffe966 276992003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27700
27701 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
27702 (setup): Configure the installed partition information and the
27703 dl prefix.
27704
27705 * loader/i386/pc/chainloader.c (my_mod): New variable.
27706 (pupa_chainloader_unload): New function.
27707 (pupa_rescue_cmd_chainloader): Refer itself.
27708 (PUPA_MOD_INIT): Save its own module in MY_MOD.
27709
27710 * kern/i386/pc/startup.S (install_partition): Removed.
27711 (version_string): Likewise.
27712 (config_file): Likewise.
27713 (pupa_install_dos_part): New variable.
27714 (pupa_install_bsd_part): Likewise.
27715 (pupa_prefix): Likewise.
27716 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
27717
27718 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
27719 and pupa/misc.h.
27720 (make_install_device): New function.
27721 (pupa_machine_init): Set the dl prefix.
27722
27723 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
27724 (buf): Renamed to ...
27725 (linebuf): ... this.
27726 (pupa_rescue_cmd_prefix): New function.
27727 (pupa_rescue_cmd_insmod): Likewise.
27728 (pupa_rescue_cmd_rmmod): Likewise.
27729 (pupa_rescue_cmd_lsmod): Likewise.
27730 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
27731 rmmod and lsmod.
27732
27733 * kern/mm.c (pupa_memalign): If failed even after invalidating
27734 disk caches, unload unneeded modules and retry.
27735
27736 * kern/misc.c (pupa_memmove): New function.
27737 (pupa_memcpy): Removed.
27738 (pupa_strcpy): New function.
27739 (pupa_itoa): Made static.
27740
27741 * kern/dl.c (pupa_dl_iterate): New function.
27742 (pupa_dl_ref): Likewise.
27743 (pupa_dl_unref): Likewise.
27744 (pupa_dl_unload): Return if succeeded or not.
27745 (pupa_dl_unload_unneeded): New function.
27746 (pupa_dl_unload_all): Likewise.
27747 (pupa_dl_init): Renamed to ...
27748 (pupa_dl_set_prefix): ... this.
27749 (pupa_dl_get_prefix): New function.
27750
27751 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
27752 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
27753 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
27754 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
27755 (pupa_install_dos_part): Declared.
27756 (pupa_install_bsd_part): Likewise.
27757 (pupa_prefix): Likewise.
27758 (pupa_boot_drive): Likewise.
27759
27760 * include/pupa/types.h: Fix a typo.
27761
27762 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
27763 pupa_memmove.
27764 (pupa_memmove): Declared.
27765 (pupa_strcpy): Likewise.
27766
27767 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
27768 pupa_mod_init takes one argument, its own module.
27769 (pupa_dl_unload_unneeded): Declared.
27770 (pupa_dl_unload_all): Likewise.
27771 (pupa_dl_ref): Likewise.
27772 (pupa_dl_unref): Likewise.
27773 (pupa_dl_iterate): Likewise.
27774 (pupa_dl_init): Renamed to ...
27775 (pupa_dl_set_prefix): ... this.
27776 (pupa_dl_get_prefix): Declared.
27777
27778 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 27779 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 27780 unloaded.
27781 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
27782 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
27783
27784 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
27785 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
27786
012d7999 277872003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
27788
27789 * util/i386/pc/pupa-setup.c (setup): Define the internal
27790 function find_first_partition_start at the top level, because GCC
27791 3.0.x cannot compile internal functions in deeper scopes
27792 correctly.
27793 (find_root_device): Use lstat instead of stat.
27794 Don't follow symbolic links.
27795 Fix the path-constructing code.
27796
27797 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
27798 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
27799 by a BLKGETSIZE ioctl first, because block devices don't fill
27800 the member st_mode of the structure stat on Linux.
27801 [__linux__] (linux_find_partition): Use a temporary buffer
27802 REAL_DEV for the working space. Copy it to DEV before returning.
27803 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
27804 buffer cache consistent.
27805 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
27806 strncmp. The previous value was merely wrong.
27807 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
27808
27809 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
27810 FAT size is 12. The previous value was merely wrong.
27811
27812 * kern/main.c (pupa_main): Don't split the starting message from
27813 newlines.
27814
27815 * kern/term.c (pupa_putchar): Put CR after LF instead of before
27816 LF, because BIOS goes crazy about character attributes in this
27817 case.
27818
1cc73a62 278192003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
27820
27821 * include/i386/pc/util/biosdisk.h: New file.
27822 * util/i386/pc/biosdisk.c: Likewise.
27823 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 27824
1cc73a62 27825 * Makefile.in (INCLUDE_DISTFILES): Added
27826 include/pupa/i386/pc/util/biosdisk.h.
27827 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
27828 directory util/i386/pc.
27829 (install-local): Added a rule for sbin_UTILITIES.
27830 (uninstall): Likewise.
27831
27832 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
27833
27834 * util/misc.c (xrealloc): New function.
27835 (pupa_malloc): Likewise.
27836 (pupa_free): Likewise.
27837 (pupa_realloc): Likewise.
27838 (pupa_stop): Likewise.
27839 (pupa_putchar): Likewise.
27840
27841 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
27842
27843 * include/pupa/util/misc.h (xrealloc): Declared.
27844
27845 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
27846 macro.
27847 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
27848 (PUPA_BOOT_MACHINE_BPB_END): ... this.
27849
27850 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
27851 [PUPA_UTIL] (pupa_fat_fini): Likewise.
27852
27853 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
27854 way should be implemented.
27855 [PUPA_UTIL] (pupa_fat_fini): Likewise.
27856
27857 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
27858 the size of NAME for safety.
27859 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
27860 0x88.
27861
27862 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
27863 (pupa_setup_SOURCES): Likewise.
27864
27865 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
27866
08b70fe8 278672002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
27868
27869 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
27870 bunch of pushl's from pusha, because this destroys the return
27871 value.
27872
62ddcc8f 278732002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
27874
27875 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
27876 This means that any missing prototypes could be fatal. Also, you
27877 must take care when writing assembly code. See the comments at
27878 the beginning of startup.S, for more details.
f19dbdb7 27879
62ddcc8f 27880 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
27881 compilation mechanism.
27882 (pupa_chainloader_real_boot): Likewise.
27883 (pupa_biosdisk_rw_int13_extensions): Likewise.
27884 (pupa_biosdisk_rw_standard): Likewise.
27885 (pupa_biosdisk_check_int13_extensions): Likewise.
27886 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
27887 (pupa_biosdisk_get_diskinfo_standard): Likewise.
27888 (pupa_get_memsize): Likewise.
27889 (pupa_get_mmap_entry): Likewise.
27890 (pupa_console_putchar): Likewise.
27891 (pupa_console_setcursor): Likewise.
27892 (pupa_getrtsecs): Use pushl instead of push.
27893
27894 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
27895 memory instead of the stack for a mmap entry, because some
27896 BIOSes may ignore the maximum size and overflow.
27897
27898 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
27899
27900 * genmk.rb (PModule#rule): Compile automatically generated
27901 sources with module-specific CFLAGS as well as other sources.
27902
9962ed99 279032002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27904
27905 * configure.ac: Check ld.
27906 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
27907 respectively, before checking endianness and sizes.
27908
27909 * Makefile.in (LD): New variable.
f19dbdb7 27910
abdfc3c5 279112002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27912
27913 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
27914
6a161fa9 279152002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27916
27917 * Changelog: New file.
27918