]> git.proxmox.com Git - grub2.git/blob - ChangeLog
Fix parallel build.
[grub2.git] / ChangeLog
1 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
2
3 Fix parallel build.
4
5 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
6 dependency.
7 * script/parser.y: #include grub_script.tab.h header.
8
9 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
10
11 Support >3GiB and <16MiB RAM in i386-qemu.
12
13 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
14 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
15 (grub_lower_mem): Removed.
16 (grub_upper_mem): Likewise.
17 (mem_size): Made static.
18 (above_4g): New variable.
19 (grub_machine_mmap_init): Detect small mem_size and above_4g.
20 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
21 support.
22
23 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
24
25 Cirrus 5446 and Bochs video cards support.
26
27 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
28 video_bochs.mod
29 (video_cirrus_mod_SOURCES): New variable.
30 (video_cirrus_mod_CFLAGS): Likewise.
31 (video_cirrus_mod_LDFLAGS): Likewise.
32 (video_bochs_mod_SOURCES): Likewise.
33 (video_bochs_mod_CFLAGS): Likewise.
34 (video_bochs_mod_LDFLAGS): Likewise.
35 * include/grub/vga.h: New file.
36 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
37 (grub_video_fb_set_page_t): New type.
38 (grub_video_fb_setup): New prototype.
39 (grub_video_fb_swap_buffers): Likewise.
40 (grub_video_fb_get_info_and_fini): Likewise.
41 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
42 (CRTC_DATA_PORT): Likewise.
43 (CRTC_CURSOR): Likewise.
44 (CRTC_CURSOR_ADDR_HIGH): Likewise.
45 (CRTC_CURSOR_ADDR_LOW): Likewise.
46 (CRTC_CURSOR_DISABLE): Likewise.
47 (update_cursor): Use grub_vga_cr_write.
48 (grub_vga_text_setcursor): Likewise.
49 * video/bochs.c: New file.
50 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
51 (palette): Likewise.
52 (palette_size): Likewise.
53 (framebuffer): New variable.
54 (grub_video_fb_init): Use 'framebuffer'.
55 (grub_video_fb_fini): Likewise.
56 (grub_video_fb_get_info): Likewise.
57 (grub_video_fb_get_palette): Likewise.
58 (grub_video_fb_set_palette): Likewise.
59 (grub_video_fb_set_viewport): Likewise.
60 (grub_video_fb_get_viewport): Likewise.
61 (grub_video_fb_map_color): Likewise.
62 (grub_video_fb_map_rgb): Likewise.
63 (grub_video_fb_map_rgba): Likewise.
64 (grub_video_fb_unmap_color): Likewise.
65 (grub_video_fb_unmap_color_int): Likewise.
66 (grub_video_fb_fill_rect): Likewise.
67 (grub_video_fb_blit_bitmap): Likewise.
68 (grub_video_fb_blit_render_target): Likewise.
69 (grub_video_fb_scroll): Likewise.
70 (grub_video_fb_create_render_target): Likewise.
71 (grub_video_fb_doublebuf_blit_init): Likewise.
72 (grub_video_fb_set_active_render_target): Handle doublebuffering.
73 (doublebuf_pageflipping_update_screen): New function.
74 (doublebuf_pageflipping_init): Likewise.
75 (grub_video_fb_setup): Likewise.
76 (grub_video_fb_swap_buffers): Likewise.
77 (grub_video_fb_get_info_and_fini): Likewise.
78 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
79 All users updated.
80 (doublebuf_pageflipping_commit): Restructured into ...
81 (doublebuf_pageflipping_set_page): ... this.
82 (doublebuf_pageflipping_update_screen): Removed.
83 (doublebuf_pageflipping_init): Likewise.
84 (double_buffering_init): Likewise.
85 (grub_video_vbe_setup): Use grub_video_fb_setup.
86 (grub_video_vbe_swap_buffers): Removed.
87 (grub_video_vbe_set_active_render_target): Likewise.
88 (grub_video_vbe_get_active_render_target): Likewise.
89 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
90 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
91 grub_video_fb_set_active_render_target and
92 grub_video_fb_get_active_render_target.
93 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
94 (SEQUENCER_DATA_PORT): Likewise.
95 (MAP_MASK_REGISTER): Likewise.
96 (CRTC_ADDR_PORT): Likewise.
97 (CRTC_DATA_PORT): Likewise.
98 (START_ADDR_HIGH_REGISTER): Likewise.
99 (START_ADDR_LOW_REGISTER): Likewise.
100 (GRAPHICS_ADDR_PORT): Likewise.
101 (GRAPHICS_DATA_PORT): Likewise.
102 (READ_MAP_REGISTER): Likewise.
103 (INPUT_STATUS1_REGISTER): Likewise.
104 (INPUT_STATUS1_VERTR_BIT): Likewise.
105 (get_map_mask): Use grub_vga_sr_read.
106 (set_map_mask): Use grub_vga_sr_write.
107 (set_read_map): Use grub_vga_gr_write.
108 (set_start_address): Use grub_vga_cr_write.
109 * video/sm712.c (framebuffer): Remove leftover fields.
110
111 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
112
113 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
114 setting GRUB_VIDEO_BACKEND. Make it available as a user override
115 instead. Replace the gfxterm backend check with a check that
116 ${GRUB_PREFIX}/video.lst is non-empty.
117 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
118 again.
119 (load_video): New generated function. Call it before loading
120 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
121 * util/grub.d/10_linux.in (linux_entry): Call load_video.
122 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
123 * docs/grub.texi (Simple configuration): Document
124 GRUB_VIDEO_BACKEND.
125
126 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
127
128 Use video functions in linux and xnu loaders.
129
130 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
131 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
132 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
133 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
134 loader/i386/pc/linux.c.
135 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
136 (find_line_len): Removed.
137 (find_framebuf): Likewise.
138 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
139 * loader/i386/efi/xnu.c: Removed.
140 * loader/i386/pc/xnu.c: Moved from here...
141 * loader/i386/xnu.c: ...here.
142
143 Enable priorities in video drivers.
144
145 * include/grub/video.h (grub_video_adapter_prio_t): New type.
146 (grub_video_adapter): New field prio.
147 (grub_video_register): Respect prio when inserting.
148 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
149 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
150 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
151 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
152 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
153 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
154 * video/sm712.c (grub_video_sm712_adapter): Likewise.
155
156 Fix SDL driver ID.
157
158 * include/grub/video.h (grub_video_driver_id_t): New value
159 GRUB_VIDEO_DRIVER_SDL.
160 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
161
162 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
163
164 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
165 argument to printf.
166 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
167
168 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
169
170 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
171 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
172
173 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
174
175 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
176 directly, and recommend grub-install instead.
177 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
178
179 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
180
181 Fix i386-pc prefix handling with nested partitions (Debian bug
182 #585068). Note that the case where the core image is booted using
183 multiboot and relocated from its original location still requires
184 more work.
185
186 * kern/i386/pc/init.c (make_install_device): If the prefix starts
187 with "(,", fill the boot drive in between those two characters, but
188 expect that a full partition specification including partition map
189 names will follow.
190 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
191 specified, write a prefix without the drive name but including a
192 full partition specification.
193
194 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
195
196 * util/grub-mkconfig.in: Ignore non-option arguments, for
197 compatibility with older versions (before 2010-06-12) which did the
198 same. In particular, this makes it easier to ship an update-grub
199 wrapper which is compatible with that used with GRUB Legacy (Debian
200 bug #586056).
201
202 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
203
204 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
205 for manual page generation.
206
207 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
208
209 * po/POTFILES: Remove leftover commands/handler.c.
210
211 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
212
213 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
214 left this script non-functional.
215
216 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
217
218 * docs/man/grub-emu.h2m: New file.
219
220 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
221
222 * docs/grub.texi (Commands): Document reduced command set in rescue
223 mode.
224 (cpuid): New section.
225
226 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
227
228 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
229 new partition naming style.
230 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
231
232 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
233
234 Add "-o grub.iso" like cmdline options support.
235
236 * util/grub-install.in: Improve cmdline option parsing.
237 * util/grub-mkconfig.in: Likewise.
238 * util/grub-mkrescue.in: Likewise.
239 * util/grub-reboot.in: Likewise.
240 * util/grub-set-default.in: Likewise.
241 * util/i386/efi/grub-install.in: Likewise.
242 * util/ieee1275/grub-install.in: Likewise.
243 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
244
245 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
246
247 * .bzrignore: Ignore 41_custom.
248
249 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
250
251 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
252
253 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
254
255 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
256 prototype declarations.
257
258 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
259 generating fs, partmap, and video lists.
260 * include/grub/fs.h (grub_fs_register): Omit prototype if
261 GRUB_LST_GENERATOR is defined.
262 * include/grub/partition.h (grub_partition_map_register): Likewise.
263 * include/grub/video.h (grub_video_register): Likewise.
264
265 2010-06-12 Javier Martín <lordhabbit@gmail.com>
266
267 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
268
269 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
270
271 * util/grub-mkrescue.in: Support --xorriso argument.
272
273 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
274
275 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
276 Suggested by: Thomas Schmitt.
277
278 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
279
280 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
281 Suggested by: Thomas Schmitt.
282
283 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
284
285 custom.cfg support.
286
287 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
288 * util/grub.d/41_custom.in: New file.
289
290 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
291
292 * util/grub-mkrescue.in (make_image): Remove sh module, which has
293 been merged back into normal.
294
295 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
296
297 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
298 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
299
300 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
301
302 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
303 when generating manual pages.
304 * docs/man/grub-bin2h.h2m: New file.
305 * docs/man/grub-editenv.h2m: New file.
306 * docs/man/grub-fstest.h2m: New file.
307 * docs/man/grub-install.h2m: New file.
308 * docs/man/grub-macho2img.h2m: New file.
309 * docs/man/grub-mkconfig.h2m: New file.
310 * docs/man/grub-mkdevicemap.h2m: New file.
311 * docs/man/grub-mkfont.h2m: New file.
312 * docs/man/grub-mkimage.h2m: New file.
313 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
314 * docs/man/grub-mkrelpath.h2m: New file.
315 * docs/man/grub-mkrescue.h2m: New file.
316 * docs/man/grub-ofpathname.h2m: New file.
317 * docs/man/grub-pe2elf.h2m: New file.
318 * docs/man/grub-probe.h2m: New file.
319 * docs/man/grub-reboot.h2m: New file.
320 * docs/man/grub-script-check.h2m: New file.
321 * docs/man/grub-set-default.h2m: New file.
322 * docs/man/grub-setup.h2m: New file.
323
324 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
325
326 Use FOR_* macros instead of *_iterate whenever possible.
327
328 * commands/handler.c: Removed.
329 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
330 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
331 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
332 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
333 (grub_probe_SOURCES): Remove kern/parser.c.
334 (util/grub-script-check.c_DEPENDENCIES): Removed.
335 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
336 and grub_script_check_init.c.
337 (grub_script_check_init.lst): Removed.
338 (grub_script_check_init.h): Likewise.
339 (grub_script_check_init.c): Likewise.
340 (pkglib_MODULES): Remove handler.mod and sh.mod.
341 (handler_mod_SOURCES): Removed.
342 (handler_mod_CFLAGS): Likewise.
343 (handler_mod_LDFLAGS): Likewise.
344 (normal_mod_SOURCES): Remove normal/handler.c.
345 Add script/main.c, script/script.c, script/execute.c,
346 script/function.c, script/lexer.c, grub_script.tab.c
347 and grub_script.yy.c.
348 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
349 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
350 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
351 (grub_setup_SOURCES): Remove kern/parser.c.
352 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
353 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
354 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
355 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
356 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
357 (grub_setup_SOURCES): Remove kern/parser.c.
358 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
359 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
360 * include/grub/command.h (grub_command_iterate): Removed.
361 (FOR_COMMANDS): New macro.
362 * include/grub/dl.h (grub_dl): New member next.
363 (grub_dl_iterate): Removed.
364 (grub_dl_head): New variable declaration.
365 (FOR_DL_MODULES): New macro.
366 * include/grub/fs.h: Include list.h.
367 (grub_fs): Make next first element.
368 (grub_fs_list): New variable declaration.
369 (grub_fs_register): Make inline.
370 (grub_fs_unregister): Likewise.
371 (grub_fs_iterate): Removed.
372 (FOR_FILESYSTEMS): New macro.
373 * include/grub/handler.h: Removed.
374 * include/grub/list.h (grub_list_hook_t): Removed.
375 (grub_list_test_t): Likewise.
376 (grub_list_pop): Likewise.
377 (grub_list_iterate): Likewise.
378 (grub_list_insert): Likewise.
379 (FOR_LIST_ELEMENTS): New macro.
380 * include/grub/parser.h (grub_parser_class): Removed.
381 (grub_parser_register): Likewise.
382 (grub_parser_unregister): Likewise.
383 (grub_parser_get_current): Likewise.
384 (grub_parser_set_current): Likewise.
385 (grub_register_rescue_parser): Likewise.
386 (grub_rescue_parse_line): New function.
387 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
388 * include/grub/script_sh.h (grub_script_function_list): New variable
389 declaration.
390 (FOR_SCRIPT_FUNCTIONS): New macro.
391 (grub_script_function_iterate): Removed.
392 (grub_normal_parse_line): New prototype.
393 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
394 (FOR_DISABLED_TERM_INPUTS): Likewise.
395 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
396 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
397 * include/grub/video.h (grub_video_adapter): Move 'next' to first
398 element.
399 (grub_video_register): Inline.
400 (grub_video_unregister): Likewise.
401 (grub_video_adapter_list): New variable declaration.
402 (grub_video_iterate): Removed.
403 (FOR_VIDEO_ADAPTERS): New macro.
404 * kern/dl.c (grub_dl_list): Removed. All users updated.
405 (grub_dl_iterate): Removed.
406 * kern/fs.c (grub_fs_list): Make global.
407 (grub_fs_register): Removed.
408 (grub_fs_unregister): Likewise.
409 (grub_fs_iterate): Likewise.
410 * kern/handler.c: Removed.
411 * kern/list.c (grub_list_pop): Removed.
412 (grub_list_iterate): Likewise.
413 (grub_list_insert): Likewise.
414 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
415 (grub_prio_list_insert): Don't use grub_list_insert.
416 * kern/main.c (grub_register_rescue_parser): Don't call
417 grub_register_rescue_parser.
418 * kern/parser.c (grub_parser_class): Removed.
419 (grub_parser_execute): Use grub_rescue_parse_line.
420 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
421 (grub_rescue_parser): Removed.
422 (grub_register_rescue_parser): Likewise.
423 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
424 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
425 (grub_auth_check_authentication): Likewise.
426 * normal/completion.c (iterate_command): Removed.
427 (grub_normal_do_completion): Use FOR_COMMANDS.
428 * normal/handler.c: Removed.
429 * normal/main.c (read_config_file): Remove parser changing.
430 (grub_normal_execute): Don't call read_handler_list.
431 (grub_normal_read_line_real): Statically allocate prompt.
432 (grub_cmdline_run): Use grub_normal_parse_line.
433 (GRUB_MOD_FINI): Don't call free_handler_list.
434 * normal/menu_entry.c (run): Likewise.
435 * script/function.c (grub_script_function_list): Make global.
436 (grub_script_function_iterate): Removed.
437 * script/main.c (grub_normal_parse_line): Make global.
438 (grub_sh_parser): Removed.
439 (GRUB_MOD_INIT): Likewise.
440 (GRUB_MOD_FINI): Likewise.
441 * tests/lib/functional_test.c (grub_functional_test): Use
442 FOR_LIST_ELEMENTS.
443 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
444 (grub_test_run): Use FOR_LIST_ELEMENTS.
445 * tests/lib/unit_test.c (main): Likewise.
446 * util/deviceiter.c (grub_util_iterate_devices): Don't use
447 grub_list_pop.
448 * util/grub-fstest.c (grub_term_input_class): Removed.
449 (grub_term_output_class): Likewise.
450 * util/grub-probe.c: Likewise.
451 * util/i386/pc/grub-setup.c: Likewise.
452 * util/sparc64/ieee1275/grub-setup.c: Likewise.
453 * util/grub-script-check.c (main): Don't call grub_init_all and
454 grub_fini_all.
455 * video/video.c (grub_video_adapter_list): Make global.
456 (grub_video_register): Removed.
457 (grub_video_unregister): Likewise.
458 (grub_video_iterate): Likewise.
459
460 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
461
462 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
463 reported by Henrique Ferreiro.
464
465 2010-06-09 Robert Millan <rmh@gnu.org>
466
467 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
468 ones, when both are available.
469
470 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
471
472 Make --version uniform and avoid hard-coded program name.
473
474 * util/grub-mkimage.c (main): Use `program_name' instead of
475 hard-coded string.
476 * util/i386/pc/grub-setup.c (main): Likewise.
477 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
478 * util/grub-install.in: Save the basename of $0 in $self, and use the
479 latter in informational messages. Use the same format for --version
480 as the binary programs.
481 * util/grub-mkconfig.in: Likewise.
482 * util/grub-mkrescue.in: Likewise.
483 * util/grub-reboot.in: Likewise.
484 * util/grub-set-default.in: Likewise.
485 * util/i386/efi/grub-install.in: Likewise.
486 * util/ieee1275/grub-install.in: Likewise.
487 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
488
489 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
490
491 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
492 embedding area. Use <= instead of == when checking for non-emptiness.
493
494 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
495
496 * configure.ac: Add `.' to the directories searched for unifont.
497
498 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
499
500 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
501 grub_script.yy.h.
502
503 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
504
505 * docs/grub.texi (History): Expand to cover GRUB 2.
506 (Serial terminal): Refer to `terminal_input' and `terminal_output'
507 commands, not `terminal'.
508 (serial): Likewise.
509 (terminal_input): New section.
510 (terminal_output): New section.
511 (uppermem): New section (stub).
512 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
513
514 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
515
516 * docs/grub.texi (Security): Menu entries are unrestricted by
517 default, not restricted to superusers as I had previously thought.
518 Reword to account for this.
519
520 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
521
522 * kern/emu/misc.c (device_mapper_null_log): New function.
523 (grub_device_mapper_supported): New function.
524 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
525 prototype.
526 * kern/emu/hostdisk.c (find_partition_start): Check whether
527 device-mapper is supported before trying to use it.
528 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
529
530 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
531
532 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
533 (File name syntax): Likewise.
534 (help): --all is no longer supported in GRUB 2. Be more precise
535 about pattern matching.
536
537 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
538
539 * normal/completion.c (grub_normal_do_completion): When completing
540 arguments to "set" and the current word contains an equals sign,
541 skip to after the equals sign before starting completion.
542
543 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
544
545 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
546
547 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
548
549 * docs/grub.texi (Network): New section.
550 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
551 `(nd)' as in GRUB Legacy.
552 (pxe_unload): New section.
553
554 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
555
556 * docs/grub.texi (Troubleshooting): `echo' is not usually available
557 in the rescue shell, so recommend using `set' instead. Thanks,
558 Jordan Uggla.
559
560 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
561
562 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
563 (password): New section.
564 (password_pbkdf2): New section.
565 (search): New section.
566 (Security): New section.
567 (Troubleshooting): New section, currently very incomplete.
568 (Invoking grub-mkpasswd-pbkdf2): New section.
569 (Internals): New section, currently very incomplete.
570
571 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
572
573 * util/grub.d/00_header.in: Add some more quoting (of
574 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
575 work again.
576 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
577
578 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
579
580 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
581 to `count', fixing variable shadowing that broke the -c option.
582
583 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
584
585 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
586 in case they contain spaces.
587
588 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
589
590 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
591 "part_" to partmap module names, in line with grub-install.
592 Reported by: Jindřich Makovička (Debian bug #584426).
593
594 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
595
596 * util/grub-mkimage.c: Make target-related error messages slightly
597 more helpful; -O talks about "format". Explicitly point to the use
598 of -O if no target is specified.
599 Reported by: Didier Raboud (Debian bug #584415).
600
601 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
602
603 * INSTALL: Document several build requirements for optional features
604 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
605
606 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
607
608 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
609 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
610 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
611
612 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
613
614 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
615 Thanks to Jordan Uggla for spotting this.
616
617 2010-06-02 Aleš Nesrsta <starous@volny.cz>
618
619 Finally make USB usable.
620
621 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
622 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
623 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
624 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
625 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
626 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
627 (GRUB_OHCI_FSMPS): Likewise.
628 (GRUB_OHCI_PERIODIC_START): Likewise.
629 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
630 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
631 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
632 (GRUB_OHCI_SET_PORT_RESET): Likewise.
633 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
634 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
635 (grub_ohci_transaction): Likewise.
636 (grub_ohci_transfer): Improve condition detection algorithms.
637 Handle toggle property. Program the transactions correctly.
638 Improve error handling. Various important fixups.
639 (grub_ohci_portstatus): Put register writes in right order.
640 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
641 (grub_uhci_transfer): Don't show "failed" message on success.
642 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
643 array.
644 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
645 determine its size.
646 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
647 before initialization is completed. Use IN direction for empty
648 transfers. Use last_trans and compute toggle.
649 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
650 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
651 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
652 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
653 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
654 (grub_usb_device): Increase toggle to 256.
655 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
656 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
657 GRUB_USBMS_SUBCLASS_SFF8070.
658 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
659 (grub_scsi_inquiry): New member page and alloc_length.
660 (grub_scsi_request_sense): New structure.
661 (grub_scsi_request_sense_data): Likewise.
662 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
663 control.
664 * disk/scsi.c (grub_scsi_request_sense): New function.
665 (grub_scsi_test_unit_ready): Likewise.
666 (grub_scsi_inquiry): Fill new fields.
667 (grub_scsi_read_capacity): Likewise.
668 (grub_scsi_read10): Add request sense at the end.
669 (grub_scsi_read12): Likewise.
670 (grub_scsi_write10): Likewise.
671 (grub_scsi_write12): Likewise.
672 (grub_scsi_open): Add Test Unit Ready.
673 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
674 Support additional subclasses. Con't clear halt yet. Activate the
675 proper config. Calculate LUNs correctly.
676 (grub_usbms_transfer): Various important fixups.
677
678 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
679
680 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
681 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
682 (grub_ohci_fini_hw): New function.
683 (grub_ohci_restore_hw): Likewise.
684 (GRUB_MOD_INIT(ohci)): Register preboot hook.
685 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
686 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
687
688 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
689
690 Dedicated DMA allocations.
691
692 * bus/pci.c (grub_memalign_dma32): New function
693 (grub_dma_free): Likewise.
694 (grub_dma_get_virt): Likewise.
695 (grub_dma_get_phys): Likewise.
696 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
697 (grub_ohci_pci_iter): Use dma32_alloc.
698 (grub_ohci_transfer): Likewise.
699 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
700 (grub_usb_bulk_readwrite): Likewise.
701 * include/grub/pci.h: Add declarations.
702
703 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
704
705 CS5536 support.
706
707 * bus/cs5536.c: New file.
708 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
709 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
710 (cs5536_mod_SOURCES): New variable.
711 (cs5536_mod_CFLAGS): Likewise.
712 (cs5536_mod_LDFLAGS): Likewise.
713 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
714 machine/pci.h.
715 (kernel_img_SOURCES): Add bus/cs5536.c.
716 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
717 usb_keyboard.mod.
718 (usb_mod_SOURCES): New variable.
719 (usb_mod_CFLAGS): New variable.
720 (usb_mod_LDFLAGS): New variable.
721 (usbtest_mod_SOURCES): New variable.
722 (usbtest_mod_CFLAGS): New variable.
723 (usbtest_mod_LDFLAGS): New variable.
724 (ohci_mod_SOURCES): New variable.
725 (ohci_mod_CFLAGS): New variable.
726 (ohci_mod_LDFLAGS): New variable.
727 (usbms_mod_SOURCES): New variable.
728 (usbms_mod_CFLAGS): New variable.
729 (usbms_mod_LDFLAGS): New variable.
730 (usb_keyboard_mod_SOURCES): New variable.
731 (usb_keyboard_mod_CFLAGS): New variable.
732 (usb_keyboard_mod_LDFLAGS): New variable.
733 * include/grub/smbus.h: New file.
734 * include/grub/cs5536.h: New file.
735
736 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
737
738 * util/grub.d/00_header.in: Add safety check to make sure that
739 ${locale_dir} exists before trying to probe it.
740
741 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
742
743 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
744 per the GNU Coding Standards; this is now too obscure to be worth
745 documenting.
746 (QNX): Likewise.
747 (chainloader): Remove cross-reference to `SCO UnixWare'.
748
749 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
750
751 * docs/grub.texi (Chain-loading): New section.
752 (DOS/Windows): New section, borrowed from GRUB Legacy with details
753 adjusted for GRUB 2.
754 (SCO UnixWare): Likewise.
755 (QNX): Likewise.
756 (chainloader): Add reference to `Block list syntax'.
757 (drivemap): New section.
758 (parttool): New section.
759
760 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
761
762 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
763 the grub shell'.
764 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
765 (Installing GRUB using grub-install): Remove reference to the grub
766 shell; mention `grub-mkimage' and `grub-setup' instead.
767 (Invoking grub-install): Likewise.
768 (Interface): Add reference to `Menu entry editor'.
769 (serial): Remove `--device' option.
770
771 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
772
773 * docs/grub.texi (Configuration): New section, documenting
774 configuration file generation using grub-mkconfig. I've left a slot
775 for documenting the full shell scripting format but have not yet
776 started on writing that up.
777 (Invoking grub-mkconfig): New section.
778
779 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
780
781 * docs/grub.texi (direntry): Remove grub-terminfo reference.
782 (GNU GRUB manual): Likewise.
783 (General commands): Update description of `terminfo' for GRUB 2.
784
785 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
786
787 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
788 (GRUB_MOD_INIT): Fix capitalisation.
789 * docs/grub.texi (Command-line and menu entry commands): Document
790 gettext and gptsync commands.
791
792 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
793
794 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
795 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
796
797 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
798
799 Add btrfs probing support, currently only in the single-device case.
800
801 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
802 function.
803 (grub_guess_root_device): Call find_root_device_from_mountinfo
804 before looking in /dev.
805
806 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
807
808 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
809 GRUB_DISK_SIZE_UNKNOWN.
810 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
811
812 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
813
814 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
815 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
816 corrupted or not synced properly.
817
818 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
819
820 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
821 Reported by: Seth Goldberg.
822
823 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
824
825 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
826 addition of dest.
827 Reported by: Seth Goldberg.
828
829 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
830
831 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
832 Reported by: Seth Goldberg.
833
834 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
835
836 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
837 64-bit address as signed on MIPS.
838
839 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
840
841 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
842 to the empty string.
843
844 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
845
846 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
847
848 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
849 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
850 * kern/misc.c (__enable_execute_stack): Disable on
851 GRUB_MACHINE_EMU.
852
853 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
854
855 Make grub-probe work with symbolic links under /dev/mapper as well
856 as with real block devices. The Linux world seems to be (at best)
857 in transition here, and GRUB shouldn't get caught in the middle.
858
859 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
860 /dev/mapper.
861
862 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
863
864 * util/grub-script-check.c (main): Ensure defined behaviour on empty
865 input files (in which case exit zero).
866
867 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
868
869 * kern/emu/misc.c (canonicalize_file_name): realpath can still
870 return NULL for various reasons even if it has a maximum-length
871 buffer: for example, there might be a symlink loop, or the path
872 might exceed PATH_MAX. If this happens, return NULL.
873
874 2010-05-27 Robert Millan <rmh@gnu.org>
875
876 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
877 partmap module to handle cross-partmap setups.
878 Reported by Orestes Mas. Gràcies!
879
880 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
881
882 * util/grub-mkrescue.in: Initialise override_dir rather than
883 assuming that it's unset or empty in the environment.
884
885 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
886
887 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
888 variable index into p_index to suppress a warning with -Wshadow.
889
890 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
891
892 * INSTALL: Added flex >= 2.5.35 requirement.
893
894 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
895
896 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
897
898 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
899
900 cmostest support.
901
902 * commands/i386/cmostest.c: New file.
903 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
904 (cmostest_mod_SOURCES): New variable.
905 (cmostest_mod_CFLAGS): Likewise.
906 (cmostest_mod_LDFLAGS): Likewise.
907 * conf/i386-pc.rmk: Likewise.
908 * docs/grub.texi (Vendor power-on keys): New section.
909 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
910 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
911 and GRUB_BUTTON_CMOS_ADDRESS.
912 * util/grub.d/00_header.in: Handle powering-on by separate button.
913
914 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
915
916 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
917 Removed drawing_scrollbar argument. All users updated
918 Fixes #29792.
919 Reported by Jo Shields
920
921 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
922
923 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
924 buffer since gfxterm handles double repaint.
925
926 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
927
928 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
929 * term/gfxterm.c (real_scroll): Likewise.
930
931 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
932
933 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
934 before calling BIOS.
935
936 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
937
938 * include/grub/i18n.h: Always enable grub_gettext.
939
940 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
941
942 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
943 partition naming style.
944
945 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
946
947 * util/grub-mkconfig.in: Fix handling of -o so that it works when
948 not the first option.
949
950 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
951
952 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
953
954 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
955
956 * util/misc.c: Move inclusion of <limits.h> to ...
957 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
958
959 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
960
961 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
962 Fix merge error in NetBSD code.
963 (find_partition_start) [__NetBSD__]: Likewise.
964
965 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
966
967 Fix grub-mkrescue usage unit testing.
968
969 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
970
971 2010-05-18 Christian Franke <franke@computer.org>
972
973 * util/grub.d/10_windows.in: Use path names instead of
974 drive letters to prevent warning from Cygwin 1.7.
975 Add drivemap command to menuentry if needed.
976
977 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
978
979 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
980 gnumach and gnumach.gz.
981
982 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
983
984 * include/grub/i18n.h (gettext): Inline instead of using #define.
985 (grub_gettext): Likewise.
986 (_): Likewise.
987
988 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
989
990 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
991 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
992 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
993 (main): Add a slash after pkglibdirroot.
994
995 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
996
997 * util/grub-install.in: Add missing "in" keyword.
998
999 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1000
1001 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
1002 Reported by: Seth Goldberg.
1003
1004 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1005
1006 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
1007
1008 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1009
1010 * configure.ac: Check for Linux device-mapper support.
1011
1012 * util/hostdisk.c (device_is_mapped): New function.
1013 (find_partition_start): New function, partly broken out from
1014 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
1015 device-mapper support added.
1016 (linux_find_partition): Use find_partition_start.
1017 (convert_system_partition_to_system_disk): Add `st' argument.
1018 Support Linux /dev/mapper/* devices if device-mapper support is
1019 available; only DM-RAID devices are understood at present.
1020 (find_system_device): Add `st' argument. Pass it to
1021 convert_system_partition_to_system_disk.
1022 (grub_util_biosdisk_get_grub_dev): Pass stat result to
1023 find_system_device and convert_system_partition_to_system_disk. Use
1024 find_partition_start.
1025
1026 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
1027 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
1028 * util/deviceiter.c [__linux__]: Define MINOR.
1029 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
1030 * util/mkdevicemap.c (grub_putchar): New function.
1031 (grub_getkey): New function.
1032 (grub_refresh): New function.
1033 (main): Set debug=all if -v -v is used.
1034
1035 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1036
1037 Fix build with non-GNU libcs.
1038
1039 * util/misc.c (canonicalize_file_name): Move to ...
1040 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
1041 grub_make_system_path_relative_to_its_root.
1042
1043 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1044
1045 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
1046 we handle finding grub-mkimage. Default to finding grub-mkimage in
1047 ${bindir} with program_transform_name applied, and provide a
1048 --grub-mkimage option to override this.
1049
1050 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1051
1052 Remove grub-mkisofs.
1053
1054 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
1055 (grub_mkisofs_SOURCES): Removed.
1056 (grub_mkisofs_CFLAGS): Removed.
1057 * util/mkisofs/defaults.h: Removed.
1058 * util/mkisofs/eltorito.c: Likewise.
1059 * util/mkisofs/exclude.h: Likewise.
1060 * util/mkisofs/hash.c: Likewise.
1061 * util/mkisofs/include/: Likewise.
1062 * util/mkisofs/include/fctldefs.h: Likewise.
1063 * util/mkisofs/include/mconfig.h: Likewise.
1064 * util/mkisofs/include/prototyp.h: Likewise.
1065 * util/mkisofs/include/statdefs.h: Likewise.
1066 * util/mkisofs/iso9660.h: Likewise.
1067 * util/mkisofs/joliet.c: Likewise.
1068 * util/mkisofs/match.c: Likewise.
1069 * util/mkisofs/match.h: Likewise.
1070 * util/mkisofs/mkisofs.c: Likewise.
1071 * util/mkisofs/mkisofs.h: Likewise.
1072 * util/mkisofs/msdos_partition.h: Likewise.
1073 * util/mkisofs/multi.c: Likewise.
1074 * util/mkisofs/name.c: Likewise.
1075 * util/mkisofs/rock.c: Likewise.
1076 * util/mkisofs/tree.c: Likewise.
1077 * util/mkisofs/write.c: Likewise.
1078
1079 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1080
1081 Unify grub-mkimage accross platforms.
1082
1083 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
1084 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
1085 (grub_mkelfimage_SOURCES): Removed.
1086 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
1087 (util/grub-mkimage.c_DEPENDENCIES): .. this.
1088 (bin_UTILITIES): Add grub-mkimage.
1089 (grub_mkimage_SOURCES): New variable.
1090 (kernel_img_HEADERS): Remove machine/kernel.h.
1091 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
1092 (pkglib_PROGRAMS): Add kernel.img.
1093 (kernel_img_HEADERS): Add machine/kernel.h.
1094 (kernel_img_FORMAT): Removed.
1095 (bin_UTILITIES): Remove grub-mkimage.
1096 (grub_mkimage_SOURCES): Removed.
1097 (grub_mkimage_CFLAGS): Likewise.
1098 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1099 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
1100 (pkglib_PROGRAMS): Add kernel.img.
1101 (bin_UTILITIES): Remove grub-mkimage.
1102 (grub_mkimage_SOURCES): Removed.
1103 (grub_mkimage_CFLAGS): Likewise.
1104 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1105 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
1106 (pkglib_PROGRAMS): Add kernel.img.
1107 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
1108 (pkglib_PROGRAMS): Add kernel.img.
1109 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
1110 (grub_mkimage_SOURCES): Removed.
1111 (grub_mkimage_CFLAGS): Likewise.
1112 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1113 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
1114 (pkglib_PROGRAMS): Add kernel.img.
1115 (bin_UTILITIES): Remove grub-mkimage.
1116 (grub_mkimage_SOURCES): Removed.
1117 (grub_mkimage_CFLAGS): Likewise.
1118 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1119 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
1120 (grub_mkimage_SOURCES): Removed.
1121 (grub_mkimage_CFLAGS): Likewise.
1122 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1123 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
1124 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
1125 (grub_pe32_optional_header): ... this.
1126 (grub_pe64_optional_header): ... and this. All users updated.
1127 (GRUB_PE32_PE32_MAGIC): Split into ..
1128 (GRUB_PE32_PE32_MAGIC): .. this.
1129 (GRUB_PE32_PE64_MAGIC): .. and this.
1130 (GRUB_PE32_SIGNATURE_SIZE): New definition.
1131 * include/grub/elf.h (PT_GNU_STACK): New definition.
1132 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
1133 * include/grub/i386/efi/kernel.h: Likewise.
1134 * include/grub/i386/kernel.h: Likewise.
1135 * include/grub/i386/pc/kernel.h: Likewise.
1136 * include/grub/i386/qemu/boot.h: Likewise.
1137 * include/grub/mips/kernel.h: Likewise.
1138 * include/grub/mips/qemu-mips/kernel.h: Likewise.
1139 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
1140 * include/grub/powerpc/kernel.h: Likewise.
1141 * include/grub/sparc64/ieee1275/boot.h: Likewise.
1142 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
1143 * include/grub/sparc64/kernel.h: Likewise.
1144 * include/grub/x86_64/efi/kernel.h: Likewise.
1145 * include/grub/x86_64/kernel.h: Likewise.
1146 * include/grub/offsets.h: New file.
1147 * include/grub/kernel.h (grub_module_info): Split into ...
1148 (grub_module_info32): ... this.
1149 (grub_module_info64): ... and this.
1150 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
1151 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
1152 (grub_boot_blocklist): Moved from here ...
1153 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
1154 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
1155 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
1156 * include/grub/types.h (grub_target_to_host16): Removed.
1157 (grub_target_to_host32): Likewise.
1158 (grub_target_to_host64): Likewise.
1159 (grub_host_to_target16): Likewise.
1160 (grub_host_to_target32): Likewise.
1161 (grub_host_to_target64): Likewise.
1162 (grub_host_to_target_addr): Likewise.
1163
1164 Support grub-mkrescue for efi, coreboot and qemu.
1165
1166 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
1167 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
1168 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
1169 * util/grub-mkrawimage.c: Moved from here ...
1170 * util/grub-mkimage.c: ... here. All users updated.
1171 (ALIGN_ADDR): Use image_target.
1172 (TARGET_NO_FIELD): New const.
1173 (image_target_desc): New type.
1174 (image_targets): New array.
1175 (grub_target_to_host64): Use image_target.
1176 (grub_target_to_host32): Likewise.
1177 (grub_target_to_host16): Likewise.
1178 (grub_host_to_target64): Likewise.
1179 (grub_host_to_target32): Likewise.
1180 (grub_host_to_target16): Likewise.
1181 (grub_host_to_target_addr): Likewise.
1182 (generate_image): Handle multiimage.
1183 (main): Require -O parameter. All users updated.
1184 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
1185 util/efi/grub-mkimage.c
1186 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
1187 New option --rom-directory.
1188 Use xorriso.
1189 * util/i386/efi/grub-mkimage.c: Removed.
1190 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
1191 (grub_target_to_host32): Likewise.
1192 (grub_target_to_host64): Likewise.
1193 (grub_host_to_target16): Likewise.
1194 (grub_host_to_target32): Likewise.
1195 (grub_host_to_target64): Likewise.
1196 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
1197 (grub_target_to_host32): Likewise.
1198 (grub_target_to_host64): Likewise.
1199 (grub_host_to_target16): Likewise.
1200 (grub_host_to_target32): Likewise.
1201 (grub_host_to_target64): Likewise.
1202
1203 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
1204
1205 Source tree is reorganized for emu build.
1206
1207 * include/grub/util/console.h: Move from here...
1208 * include/grub/emu/console.h: ...to here.
1209 * include/grub/util/getroot.h: Move from here...
1210 * include/grub/emu/getroot.h: ...to here.
1211 * include/grub/util/hostdisk.h: Move from here...
1212 * include/grub/emu/hostdisk.h: ...to here.
1213 * util/console.c: Move from here...
1214 * kern/emu/console.c: ...to here.
1215 * util/getroot.c: Move from here...
1216 * kern/emu/getroot.c: ...to here.
1217 * util/grub-emu.c: Move from here...
1218 * kern/emu/main.c: ...to here.
1219 * util/hostdisk.c: Move from here...
1220 * kern/emu/hostdisk.c: ...to here.
1221 * util/hostfs.c: Move from here...
1222 * kern/emu/hostfs.c: ...to here.
1223 * util/mm.c: Move from here...
1224 * kern/emu/mm.c: ...to here.
1225 * util/pci.c: Move from here...
1226 * bus/emu/pci.c: ...to here.
1227 * util/sdl.c: Move from here...
1228 * video/emu/sdl.c: ...to here.
1229 * util/time.c: Move from here...
1230 * kern/emu/time.c: ...to here.
1231 * util/usb.c: Move from here...
1232 * bus/usb/emu/usb.c: ...to here.
1233
1234 * include/grub/emu/misc.h: New header for grub-emu functions.
1235 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
1236
1237 * conf/any-emu.rmk: Rule updates for above renames.
1238 * conf/common.rmk: Likewise.
1239 * conf/i386-pc.rmk: Likewise.
1240 * conf/i386-qemu.rmk: Likewise.
1241 * conf/mips.rmk: Likewise.
1242 * conf/sparc64-ieee1275.rmk: Likewise.
1243 * conf/x86-efi.rmk: Likewise.
1244
1245 * disk/lvm.h: #include updates for above renames.
1246 * util/grub-mkrelpath.c: Likewise.
1247 * util/grub-probe.c: Likewise.
1248 * util/i386/pc/grub-setup.c: Likewise.
1249 * util/sparc64/ieee1275/grub-setup.c: Likewise.
1250 * kern/emu/console.c: Likewise.
1251 * kern/emu/getroot.c: Likewise.
1252 * kern/emu/hostdisk.c: Likewise.
1253 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
1254
1255 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
1256 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
1257 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
1258 * util/misc.c: Remove grub-emu functions.
1259
1260 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1261
1262 Fix gfxmenu crash.
1263 Reported by: Thorsten Grützmacher.
1264
1265 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
1266 timeout hook.
1267 (circprog_set_property): Register and unregister timeout hook.
1268 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
1269 (label_destroy): Free template. and unregister hook.
1270 (label_set_state): New function.
1271 (label_set_property): Handle templates and hooks.
1272 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
1273 timeout hook.
1274 (progress_bar_set_property): Register and unregister timeout hook.
1275 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
1276 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
1277 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
1278 (update_timeout_visit): Removed.
1279 (update_timeouts): New function.
1280 (redraw_timeouts): Likewise.
1281 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
1282 (grub_gfxmenu_clear_timeout): Likewise.
1283 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
1284 (grub_gfxmenu_timeout_notify): Likewise.
1285 (grub_gfxmenu_timeout_notifications): New external variable.
1286 (grub_gfxmenu_timeout_register): New function.
1287 (grub_gfxmenu_timeout_unregister): Likewise.
1288
1289 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1290
1291 Transform (broken) vga terminal into (working) vga video driver.
1292
1293 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
1294 video/i386/pc/vga.c.
1295 * include/grub/video.h (grub_video_driver_id):
1296 Add GRUB_VIDEO_DRIVER_VGA.
1297 * term/i386/pc/vga.c: Renamed to ...
1298 * video/i386/pc/vga.c: ...this
1299 (DEBUG_VGA): Removed.
1300 (CHAR_WIDTH): Likewise.
1301 (CHAR_HEIGHT): Likewise.
1302 (TEXT_WIDTH): Likewise.
1303 (TEXT_HEIGHT): Likewise.
1304 (DEFAULT_FG_COLOR): Likewise.
1305 (DEFAULT_BG_COLOR): Likewise.
1306 (colored_char): Likewise.
1307 (xpos): Likewise.
1308 (ypos): Likewise.
1309 (cursor_state): Likewise.
1310 (fg_color): Likewise.
1311 (bg_color): Likewise.
1312 (text_buf): Likewise.
1313 (page): Likewise.
1314 (font): Likewise.
1315 (framebuffer): New variable.
1316 (set_read_map): Disabled.
1317 (setup): New variable.
1318 (is_target): Likewise.
1319 (grub_vga_mod_init): Likewise.
1320 (grub_vga_mod_fini): Likewise.
1321 (check_vga_mem): Likewise.
1322 (write_char): Likewise.
1323 (write_cursor): Likewise.
1324 (scroll_up): Likewise.
1325 (grub_vga_putchar): Likewise.
1326 (grub_vga_getcharwidth): Likewise.
1327 (grub_vga_getwh): Likewise.
1328 (grub_vga_getxy): Likewise.
1329 (grub_vga_gotoxy): Likewise.
1330 (grub_vga_cls): Likewise.
1331 (grub_vga_setcolorstate): Likewise.
1332 (grub_vga_setcursor): Likewise.
1333 (grub_video_vga_init): New function.
1334 (grub_video_vga_setup): Likewise.
1335 (grub_video_vga_fini): Likewise.
1336 (update_target): Likewise.
1337 (grub_video_vga_blit_bitmap): Likewise.
1338 (grub_video_vga_blit_render_target): Likewise.
1339 (grub_video_vga_set_active_render_target): Likewise.
1340 (grub_video_vga_get_active_render_target): Likewise.
1341 (grub_video_vga_swap_buffers): Likewise.
1342 (grub_video_vga_set_palette): Likewise.
1343 (grub_video_vga_get_info_and_fini): Likewise.
1344 (grub_vga_term): Removed.
1345 (grub_video_vga_adapter): New variable.
1346 (GRUB_MOD_INIT): Register a video driver instead of terminal.
1347 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
1348
1349 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1350
1351 * video/readers/jpeg.c: Indented.
1352
1353 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1354
1355 Various jpeg cleanups.
1356
1357 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
1358 (grub_jpeg_decode_quan_table): Use sizeof.
1359 (grub_jpeg_decode_du): Use ARRAY_SIZE.
1360
1361 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
1362
1363 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
1364 tables. Ignore non-last ac bit.
1365 (grub_jpeg_decode_quan_table): Likewise.
1366
1367 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1368
1369 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1370 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
1371 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1372 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
1373 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
1374 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
1375
1376 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1377
1378 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
1379 error.
1380
1381 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1382
1383 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
1384
1385 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1386
1387 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
1388 condition.
1389
1390 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1391
1392 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
1393 part.
1394
1395 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1396
1397 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
1398 pointers.
1399
1400 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1401
1402 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
1403
1404 2010-05-01 Christian Franke <franke@computer.org>
1405
1406 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
1407 Remove broken Cygwin path conversion.
1408 * util/misc.c: [__CYGWIN__] Add include and define.
1409 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
1410 for Cygwin 1.7.
1411 (make_system_path_relative_to_its_root): Simplify loop, replace early
1412 return by break.
1413 [__CYGWIN__] Add conversion to win32 path.
1414 Include "/" case in trailing slash removal.
1415
1416 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1417
1418 * kern/main.c (grub_load_config): Fix copy-pasted comment.
1419 Reported by: Seth Goldberg
1420
1421 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1422
1423 * commands/help.c (grub_cmd_help): Fix a typo.
1424 Reported by: Seth Goldberg
1425
1426 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1427
1428 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
1429 name and add N_.
1430 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
1431 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
1432 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
1433 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
1434 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
1435 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
1436 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
1437 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
1438 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
1439 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
1440 * normal/context.c (GRUB_MOD_INIT): Likewise.
1441 * normal/main.c (GRUB_MOD_INIT): Likewise.
1442 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
1443 * term/serial.c (GRUB_MOD_INIT): Likewise.
1444 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
1445
1446 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1447
1448 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
1449 extra == 0.
1450
1451 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1452
1453 * commands/iorw.c: New file.
1454 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
1455 (iorw_mod_SOURCES): New variable.
1456 (iorw_mod_CFLAGS): Likewise.
1457 (iorw_mod_LDFLAGS): Likewise.
1458
1459 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1460
1461 Hotkey support
1462
1463 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
1464 * normal/main.c (hotkey_aliases): New variable.
1465 (grub_normal_add_menu_entry): Parse "--hotkey".
1466 * normal/menu_text.c (run_menu): Handle hotkeys.
1467
1468 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1469
1470 * kern/i386/coreboot/init.c (grub_machine_init): Call
1471 grub_machine_mmap_init on qemu.
1472
1473 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1474
1475 * boot/i386/qemu/boot.S: Add a missing .code16.
1476
1477 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1478
1479 Use LBIO on coreboot.
1480
1481 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
1482 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
1483 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
1484 New declaration.
1485 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
1486 grub_machine_mmap_init on coreboot.
1487 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
1488 GRUB_LINUXBIOS_MEMBER_LINK.
1489 (grub_machine_mmap_iterate): Fix declaration.
1490 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
1491
1492 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1493
1494 Split coreboot and multiboot ports.
1495
1496 * conf/i386-multiboot.rmk: New file.
1497 * configure.ac: Add multiboot port.
1498 * include/grub/i386/multiboot/boot.h: New file.
1499 * include/grub/i386/multiboot/console.h: Likewise.
1500 * include/grub/i386/multiboot/init.h: Likewise.
1501 * include/grub/i386/multiboot/kernel.h: Likewise.
1502 * include/grub/i386/multiboot/loader.h: Likewise.
1503 * include/grub/i386/multiboot/memory.h: Likewise.
1504 * include/grub/i386/multiboot/serial.h: Likewise.
1505 * include/grub/i386/multiboot/time.h: Likewise.
1506 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
1507 * loader/multiboot.c: Likewise.
1508 * loader/multiboot_mbi2.c: Likewise.
1509 * util/grub-mkrescue.in: Generate multiboot rescue.
1510
1511 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1512
1513 * kern/parser.c (grub_parser_execute): Cope with read-only config.
1514
1515 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1516
1517 Merge handling of input and output terminals. Fix a hang.
1518
1519 * commands/terminal.c (abstract_terminal): New struct.
1520 (handle_command): New function. Based on grub_cmd_terminal_input.
1521 (grub_cmd_terminal_input): Use handle_command.
1522 (grub_cmd_terminal_output): Use handle_command.
1523
1524 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
1525
1526 Fix comment handling.
1527
1528 * tests/grub_script_comments.in: New testcase.
1529 * conf/tests.rmk: Rules for new testcase.
1530 * script/yylex.l: Updated flex rules.
1531
1532 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
1533
1534 * docs/grub.texi (play): Document that zero pitches produce rests.
1535 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
1536 if argc is 1.
1537
1538 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1539
1540 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
1541 autogen issues.
1542
1543 2010-04-26 Christian Franke <franke@computer.org>
1544
1545 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
1546 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
1547 (grub_get_prefix): Remove function.
1548 * util/grub-emu.c (main): Replace grub_get_prefix () call by
1549 make_system_path_relative_to_its_root ().
1550 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
1551
1552 2010-04-24 Christian Franke <franke@computer.org>
1553
1554 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
1555 (kernel_img_LDFLAGS): Remove -static-libgcc.
1556
1557 2010-04-24 Christian Franke <franke@computer.org>
1558
1559 * configure.ac: Do not CHECK_BSS_START_SYMBOL
1560 and CHECK_END_SYMBOL if grub-emu is built.
1561 Unset TARGET_OBJ2ELF if grub-emu is built
1562 without module support.
1563
1564 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
1565
1566 Nilfs2 support.
1567
1568 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
1569 (grub_fstest_SOURCES): Likewise.
1570 (pkglib_MODULES): Add nilfs2.mod.
1571 (nilfs2_mod_SOURCES): New variable.
1572 (nilfs2_mod_CFLAGS): Likewise.
1573 (nilfs2_mod_LDFLAGS): Likewise.
1574 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1575 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1576 * fs/nilfs2.c: New file.
1577
1578 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
1579
1580 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
1581 is not supported.
1582
1583 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
1584
1585 Add grub-mkconfig support for NetBSD.
1586
1587 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
1588 * util/grub-mkconfig.in: export new NetBSD specific variables.
1589 * po/POTFILES-shell: added 10_netbsd.in.
1590 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
1591
1592 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
1593
1594 Fix emu build with grub-emu-pci and grub-emu-modules.
1595
1596 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
1597 functions.
1598 * include/grub/libpciaccess.h: New file.
1599 * conf/any-emu.rmk: Update kernel headers for emu build.
1600
1601 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1602
1603 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
1604
1605 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1606
1607 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
1608
1609 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1610
1611 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
1612 Retrieve chosen/bootpath if bootpath isn't hardcoded.
1613 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
1614 util/ieee1275/ofpath.c.
1615 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
1616 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
1617 * include/grub/sparc64/ieee1275/boot.h
1618 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
1619 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
1620 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
1621 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
1622 const char *.
1623 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
1624 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
1625 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
1626 install.
1627
1628 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
1629
1630 * util/grub-mkconfig.in: Corrected two == equality tests.
1631 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
1632 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
1633 expect a number appended to it.
1634 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
1635 expects a number appended to it.
1636
1637 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1638
1639 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
1640
1641 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1642
1643 * util/hostdisk.c (make_device_name): Change to new partition naming.
1644
1645 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1646
1647 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
1648
1649 2010-04-17 Christian Franke <franke@computer.org>
1650
1651 * Makefile.in: Add missing localedir setting.
1652
1653 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
1654
1655 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
1656 mistake in r2156. Noticed by Anthony Fok.
1657
1658 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
1659 @localedir@.
1660 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
1661
1662 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
1663
1664 Fix a spurious, uninitialized variable warning.
1665
1666 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
1667 Initialize variable, shdr.
1668 (grub_freebsd_load_elfmodule): Likewise.
1669 (grub_freebsd_load_elf_meta): Likewise.
1670
1671 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
1672
1673 Fix for escaped dollar in double quoted strings.
1674
1675 * script/yylex.l: Updated flex rules.
1676 * conf/tests.rmk: Rule for new testcase.
1677 * tests/grub_script_dollar.in: New testcase.
1678
1679 2010-04-13 Carles Pina i Estany <carles@pina.cat>
1680 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
1681
1682 Enclose all translated strings in grub.cfg in single quotes, and
1683 escape them appropriately (Ubuntu bug #552921).
1684
1685 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
1686 * util/grub.d/10_hurd.in: Use it.
1687 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
1688 * util/grub.d/10_linux.in (linux_entry): Likewise.
1689
1690 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1691
1692 Fix cygwin compilation.
1693
1694 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
1695 * include/grub/misc.h (__register_frame_info)
1696 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
1697 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
1698 * kern/misc.c (__register_frame_info)
1699 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
1700 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
1701
1702 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1703
1704 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
1705
1706 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1707
1708 Unify libgcc processing.
1709
1710 * Makefile.in (kernel_img_LDFLAGS): New variable.
1711 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
1712 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
1713 overwriting.
1714 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
1715 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
1716 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
1717 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
1718 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
1719 overwriting. Remove -lgcc and -static-libgcc
1720 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
1721 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
1722 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
1723 (kernel_img_LDFLAGS): Append instead of overwriting.
1724 Remove -lgcc and -static-libgcc
1725 * conf/sparc64-ieee1275.rmk: Likewise.
1726 * include/grub/powerpc/libgcc.h: Move to ...
1727 * include/grub/libgcc.h: .. this.
1728 * include/grub/libgcc.h: Don't export most of the function on x86.
1729 (__bswapsi2): New export.
1730 (__bswapdi2): Likewise.
1731 * include/grub/mips/libgcc.h: Removed.
1732 * include/grub/sparc64/libgcc.h: Likewise.
1733
1734 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1735
1736 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
1737 disk_info_msg (conflicts with gettexting into languages with cases).
1738
1739 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
1740
1741 Add grub-probe support for NetBSD.
1742
1743 * util/getroot.c (find_root_device): Convert block device to
1744 character device on NetBSD.
1745 * util/probe.c (probe): Require character device on NetBSD.
1746 * util/hostdisk.c: NetBSD specific headers.
1747 (configure_device_driver): new function to tune device driver
1748 parameters (currently only for NetBSD floppy driver).
1749 (grub_util_biosdisk_open): NetBSD specific code (get disk size
1750 via disklabel ioctl).
1751 (open_device): call configure_device_driver on NetBSD.
1752 (convert_system_partition_to_system_disk): NetBSD specific code.
1753 (device_is_wholedisk): Likewise.
1754 (grub_util_biosdisk_get_grub_dev): Likewise.
1755 (make_device_name): Fixed a typo in bsd_part_str.
1756 * configure.ac: check for opendisk() and getrawpartition() on
1757 NetBSD and set LIBUTIL.
1758 * Makefile.in: add LIBUTIL to LIBS.
1759
1760 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
1761
1762 Documentation fix.
1763
1764 * util/grub-script-check.c: Better help message.
1765
1766 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
1767
1768 Fix FreeBSD build.
1769
1770 * configure.ac: Flex version check.
1771 * conf/common.rmk: Add -Wno-error to sh.mod.
1772 * script/yylex.l: Remove all #pragma.
1773
1774 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1775
1776 * include/grub/util/misc.h (canonicalise_file_name): Add missing
1777 prototype.
1778 Reported by: Seth Goldberg.
1779
1780 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1781
1782 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
1783 Rename "module" to "module2".
1784 Reported by: Seth Goldberg.
1785
1786 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1787
1788 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
1789 EXPORT_FUNC.
1790 Reported by: Seth Goldberg.
1791
1792 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1793
1794 * lib/posix_wrap/locale.h: Add missing file.
1795 Reported by: Seth Goldberg.
1796
1797 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1798
1799 grub-emu module load support.
1800
1801 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
1802 NO_DYNAMIC_MODULES switched to this.
1803 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
1804 (CFLAGS): Likewise.
1805 * conf/any-emu.rmk: Generate symlist.
1806 (kernel_img_HEADERS): Add util/datetime.h.
1807 (kernel_img_HEADERS) [sdl]: Add sdl.h.
1808 (kernel_img_HEADERS) [libusb]: Add libusb.h.
1809 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
1810 kern/$(target_cpu)/cache.S.
1811 * configure.ac (grub-emu-modules): New option.
1812 * genmk.rb: Handle multiple source lists.
1813 * include/grub/sdl.h: New file.
1814 * include/grub/libusb.h: Likewise.
1815 * util/grub-emu.c (main): Hanle (host) root.
1816 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
1817 GRUB_ERR_UNKNOWN_DEVICE.
1818 * util/misc.c: Move mm functions to ...
1819 * util/mm.c: ... here. All users updated.
1820
1821 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1822
1823 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
1824 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
1825 missing files.
1826 (maintainer-clean): Remove libgcrypt-grub.
1827
1828 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1829
1830 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
1831
1832 2010-04-09 EFI Coder <eficoder@hotmail.com>
1833
1834 * normal/menu_text.c (print_message): Clean up the message and show
1835 the Fn information when on EFI
1836 * term/efi/console.c (grub_console_checkkey): Add F4 support.
1837
1838 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1839
1840 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
1841 All users updated.
1842 * normal/crypto.c (read_crypto_list): Likewise.
1843 * normal/dyncmd.c (read_command_list): Likewise.
1844 * normal/term.c (read_terminal_list): Likewise.
1845 * normal/main.c (read_lists): Use explicit prefix.
1846 (read_lists_hook): Use read_lists.
1847 (grub_normal_execute): Likewise.
1848
1849 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1850
1851 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
1852 Reported by: Thomas Schmitt.
1853 Add -no-emul-boot to grub-mkisofs parameters.
1854
1855 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1856
1857 * font/font.c: Indented.
1858
1859 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
1860
1861 Elif support to GRUB script (by Deepak Vankadaru).
1862
1863 * tests/grub_script_if.in: New testcase.
1864 * conf/tests.rmk: Rule for new testcase.
1865 * script/parser.y: Grammar rules for elif.
1866
1867 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
1868
1869 While and until loops support to GRUB script.
1870
1871 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
1872 (grub_script_create_cmdwhile): New function prototype.
1873 (grub_script_execute_cmdwhile): New function prototype.
1874 * script/execute.c (grub_script_execute_cmdwhile): New function.
1875 * script/parser.y (command): New commands.
1876 (whilecmd): New grammar rule.
1877 (untilcmd): New grammar rule.
1878 * script/script.c (grub_script_create_cmdwhile): New function.
1879 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
1880 function.
1881
1882 * tests/grub_script_while1.in: New testcase.
1883 * conf/tests.rmk: Rule for new testcase.
1884
1885 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1886
1887 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
1888 as *.jpg.
1889
1890 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
1891
1892 GRUB_BACKGROUND support.
1893
1894 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
1895 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
1896
1897 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1898
1899 Load fonts and modules for gfxmenu in grub-mkconfig.
1900 Idea by: Mario Vazquez
1901
1902 * util/grub.d/00_header.in: Load pf2 and image modules.
1903
1904 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1905
1906 grub-mkconfig multiple terminal support.
1907
1908 * util/grub-mkconfig.in: Handle multiple terminals correctly.
1909 * util/grub.d/00_header.in: Likewise.
1910
1911 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1912
1913 * Makefile.in: Specify files explicitly instead of using $< and $@ since
1914 we use cd $(srcdir).
1915
1916 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
1917
1918 * util/grub.d/10_linux.in: Only use the first word of
1919 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
1920 spaces in GRUB_DISTRIBUTOR.
1921 * util/grub.d/10_kfreebsd.in: Likewise.
1922 * util/grub.d/10_hurd.in: Likewise.
1923
1924 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
1925
1926 Fix unit testing framework for Qemu 0.12.
1927
1928 * tests/util/grub-shell.in: Remove -serial stdio option.
1929
1930 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1931
1932 POSIX header file wrappers.
1933
1934 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
1935 equivalents.
1936 * lib/posix_wrap/ctype.h: Likewise.
1937 * lib/posix_wrap/errno.h: Likewise.
1938 * lib/posix_wrap/langinfo.h: Likewise.
1939 * lib/posix_wrap/limits.h: Likewise.
1940 * lib/posix_wrap/localcharset.h: Likewise.
1941 * lib/posix_wrap/stdint.h: Likewise.
1942 * lib/posix_wrap/stdio.h: Likewise.
1943 * lib/posix_wrap/stdlib.h: Likewise.
1944 * lib/posix_wrap/string.h: Likewise.
1945 * lib/posix_wrap/sys/types.h: Likewise.
1946 * lib/posix_wrap/unistd.h: Likewise.
1947 * lib/posix_wrap/wchar.h: Likewise.
1948 * lib/posix_wrap/wctype.h: Likewise.
1949 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
1950 (grub_script.yy.h): Likewise.
1951 * script/yylex.l: Remove POSIX emulation #defines.
1952 * Makefile.in (POSIX_CFLAGS): New variable.
1953 (GNULIB_UTIL_CFLAGS): Likewise.
1954
1955 Regexp support.
1956
1957 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
1958 (regexp_mod_SOURCES): New variable.
1959 (regexp_mod_CFLAGS): Likewise.
1960 (regexp_mod_LDFLAGS): Likewise.
1961 * commands/regexp.c: New file.
1962 * gnulib/regcomp.c: New file. Imported from gnulib.
1963 * gnulib/regex.c: Likewise.
1964 * gnulib/regex_internal.c: Likewise.
1965 * gnulib/regex_internal.h: Likewise.
1966 * gnulib/regexec.c: Likewise.
1967 * gnulib/regex.h: Likewise.
1968
1969 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1970
1971 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
1972 unsupported video mode types.
1973
1974 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1975
1976 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
1977
1978 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1979
1980 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
1981 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
1982
1983 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1984
1985 Remove unused grub_vga_get_font.
1986
1987 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
1988 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
1989
1990 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1991
1992 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
1993 * include/grub/misc.h: Likewise.
1994
1995 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1996
1997 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
1998 for which failure is fatal.
1999
2000 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2001
2002 * util/grub-install.in: Use mkdir -p to create grub directory.
2003 * util/i386/efi/grub-install.in: Likewise.
2004 * util/ieee1275/grub-install.in: Likewise.
2005
2006 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2007
2008 * Makefile.in (LEX): new variable.
2009
2010 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2011
2012 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
2013 `=' and added double quotes on operands of this equality test.
2014
2015 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2016
2017 * Makefile.in (uninstall): Remove a leftover debug echo.
2018 Reported by: Grégoire Sutre
2019
2020 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2021
2022 MIPS multiboot2 support.
2023
2024 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
2025 (multiboot2_mod_SOURCES): New variable.
2026 (multiboot2_mod_CFLAGS): Likewise.
2027 (multiboot2_mod_LDFLAGS): Likewise.
2028 (multiboot2_mod_ASFLAGS): Likewise.
2029 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
2030 definition.
2031 (MULTIBOOT_ENTRY_REGISTER): Likewise.
2032 (MULTIBOOT_MBI_REGISTER): Likewise.
2033 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
2034 (MULTIBOOT_ELF32_MACHINE): Likewise.
2035 (MULTIBOOT_ELF64_MACHINE): Likewise.
2036 * include/grub/mips/multiboot.h: New file.
2037 * include/grub/video.h (grub_video_driver_id): New type
2038 GRUB_VIDEO_DRIVER_SM712.
2039 (grub_video_get_info_and_fini): Export.
2040 (grub_video_get_palette): Likewise.
2041 (grub_video_get_driver_id): Likewise.
2042 * include/multiboot2.h: Resynced with spec.
2043 * loader/i386/multiboot.c: Moved from here ...
2044 * loader/multiboot.c: ... here. All users updated.
2045 (grub_multiboot_boot): Use platform-specific macros.
2046 * loader/i386/multiboot_elfxx.c: Moved from here ...
2047 * loader/multiboot_elfxx.c: ... here. All users updated.
2048 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
2049 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
2050 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
2051
2052 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2053
2054 Import gnulib argp module.
2055
2056 * gnulib/argp-ba.c: New file.
2057 * gnulib/argp-eexst.c: Likewise.
2058 * gnulib/argp-fmtstream.c: Likewise.
2059 * gnulib/argp-fmtstream.h: Likewise.
2060 * gnulib/argp-fs-xinl.c: Likewise.
2061 * gnulib/argp-help.c: Likewise.
2062 * gnulib/argp-namefrob.h: Likewise.
2063 * gnulib/argp-parse.c: Likewise.
2064 * gnulib/argp-pin.c: Likewise.
2065 * gnulib/argp-pv.c: Likewise.
2066 * gnulib/argp-pvh.c: Likewise.
2067 * gnulib/argp-version-etc.c: Likewise.
2068 * gnulib/argp-version-etc.h: Likewise.
2069 * gnulib/argp-xinl.c: Likewise.
2070 * gnulib/argp.h: Likewise.
2071
2072 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2073
2074 * kern/device.c (grub_device_iterate): Clear errors after failed
2075 opening device.
2076
2077 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2078
2079 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
2080 returned by firmware.
2081
2082 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
2083
2084 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
2085 compilation on coreboot and qemu
2086
2087 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2088
2089 * include/multiboot2.h: Resync with spec.
2090
2091 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2092
2093 Multiboot2 tag support
2094
2095 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
2096 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
2097 Remove loader/multiboot_loader.c.
2098 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
2099 (grub_multiboot2_real_boot): Likewise.
2100 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
2101 (grub_get_multiboot_mmap_count): New proto.
2102 (grub_fill_multiboot_mmap): Likewise.
2103 (grub_multiboot_set_video_mode): Likewise.
2104 (grub_multiboot_set_console): Likewise.
2105 (grub_multiboot_load): Likewise.
2106 (grub_multiboot_load_elf): Likewise.
2107 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
2108 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
2109 * include/multiboot.h: Resynced with specification.
2110 * include/multiboot2.h: Resynced with specification.
2111 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
2112 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
2113 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
2114 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
2115 users updated.
2116 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
2117 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
2118 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
2119 Removed.
2120 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
2121 Moved from here...
2122 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
2123 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
2124 Moved from here...
2125 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
2126 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
2127 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
2128 All users updated.
2129 * loader/i386/multiboot_mbi2.c: New file.
2130
2131 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2132
2133 Resync with gnulib.
2134
2135 * Makefile.in (GNULIB_CFLAGS): New variable.
2136 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
2137 (grub_script_check_CFLAGS): New variable.
2138 * gnulib/alloca.h: Resync with gnulib.
2139 * gnulib/error.c: Likewise.
2140 * gnulib/error.h: Likewise.
2141 * gnulib/fnmatch.c: Likewise.
2142 * gnulib/fnmatch_loop.c: Likewise.
2143 * gnulib/getdelim.c: Likewise.
2144 * gnulib/getline.c: Likewise.
2145 * gnulib/getopt.c: Likewise.
2146 * gnulib/getopt1.c: Likewise.
2147 * gnulib/getopt_int.h: Likewise.
2148 * gnulib/gettext.h: Likewise.
2149 * gnulib/progname.c: Likewise.
2150 * gnulib/progname.h: Likewise.
2151
2152 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
2153
2154 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
2155 which is the case with --disabled-nls.
2156
2157 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
2158 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
2159 * util/misc.c: Likewise.
2160 * util/mkisofs/mkisofs.c: Likewise.
2161 * util/mkisofs/mkisofs.h: Likewise.
2162
2163 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2164
2165 Simplify Apple CC support.
2166
2167 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
2168 Add 0 byte at the end not to have a symbol with empty target.
2169 * mmap/i386/pc/mmap_helper.S: Likewise.
2170 * genmk.rb: Ignore errors 2030 and 2050.
2171 * kern/i386/pc/startup.S: Use LOCAL when possible.
2172
2173 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
2174
2175 Testcase and the fix for final semicolon on cmdline.
2176
2177 * tests/grub_script_final_semicolon.in: New testcase.
2178 * conf/tests.rmk: Rules for the new testcase.
2179 * script/parser.y: Grammar fix.
2180
2181 2010-03-26 BVK Chaitanya <bvk@localhost>
2182
2183 Blank lines testcase for GRUB script.
2184
2185 * tests/grub_script_blanklines.in: New testcase.
2186 * conf/tests.rmk: Rules for the new testcase.
2187
2188 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2189
2190 Don't use __FILE__.
2191
2192 * genmk.rb: Add -DGRUB_FILE to all C targets.
2193 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
2194 * include/grub/list.h: Likewise.
2195 * include/grub/misc.h: Likewise.
2196 * include/grub/mm.h: Likewise.
2197 * include/grub/test.h: Likewise.
2198 * kern/mm.c: Likewise.
2199 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
2200
2201 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2202
2203 Sunpc partitions support.
2204
2205 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
2206 (grub_fstest_SOURCES): Likewise.
2207 (pkglib_MODULES): Add part_sunpc.mod.
2208 (part_sunpc_mod_SOURCES): New variable.
2209 (part_sunpc_mod_CFLAGS): Likewise.
2210 (part_sunpc_mod_LDFLAGS): Likewise.
2211 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
2212 * partmap/sunpc.c: New file.
2213
2214 2010-03-26 BVK Chaitanya <bvk@localhost>
2215
2216 For loop support to GRUB script.
2217
2218 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
2219 (grub_script_create_cmdfor): New function prototype.
2220 (grub_script_execute_cmdfor): New function prototype.
2221 * script/execute.c (grub_script_execute_cmdfor): New function.
2222 * script/parser.y (command): New for command.
2223 (forcmd): New grammar rule.
2224 * script/script.c (grub_script_create_cmdfor): New function.
2225 * util/grub-script-check.c (grub_script_execute_cmdfor): New
2226 function.
2227 * tests/grub_script_for1.in: New testcase.
2228 * conf/tests.rmk: Rules for new testcase.
2229
2230 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2231
2232 Nested partitions
2233
2234 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
2235 'partition' is NULL, grub_partition_get_start already does that.
2236 * commands/loadenv.c (check_blocklists): Likewise.
2237 (write_blocklists): Likewise.
2238 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
2239 (grub_fstest_SOURCES): Likewise.
2240 (pkglib_MODULES): Add part_bsd.mod.
2241 (part_bsd_mod_SOURCES): New variable.
2242 (part_bsd_mod_CFLAGS): Likewise.
2243 (part_bsd_mod_LDFLAGS): Likewise.
2244 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
2245 (grub_emu_SOURCES): Likewise.
2246 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2247 * include/grub/bsdlabel.h: New file.
2248 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
2249 'get_name'.
2250 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
2251 (grub_partition_map_list): New variable.
2252 (grub_partition_map_register): Inline.
2253 (grub_partition_map_unregister): Likewise.
2254 (FOR_PARTITION_MAPS): New macro.
2255 (grub_partition_map_iterate): Removed.
2256 (grub_partition_get_start): Handle nested partitions.
2257 * include/grub/msdos_partition.h: Remove bsd-related entries.
2258 (grub_pc_partition): Remove.
2259 * kern/disk.c (grub_disk_close): Free partition data.
2260 (grub_disk_adjust_range): Handle nested partitions.
2261 * kern/partition.c (grub_partition_map_probe): New function.
2262 (grub_partition_probe): Parse name to number, handle subpartitions.
2263 (get_partmap): New function.
2264 (grub_partition_iterate): Handle subpartitions.
2265 (grub_partition_get_name): Likewise.
2266 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
2267 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
2268 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
2269 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
2270 Set 'number'.
2271 (acorn_partition_map_probe): Remove.
2272 (acorn_partition_map_get_name): Likewise.
2273 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
2274 Set 'number'.
2275 Set 'index' to 0 since there can be only one partition entry per sector.
2276 (amiga_partition_map_probe): Remove.
2277 (amiga_partition_map_get_name): Likewise.
2278 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
2279 Set 'number'.
2280 Set 'offset' and 'index' to real positions of partitions.
2281 (apple_partition_map_probe): Remove.
2282 (apple_partition_map_get_name): Likewise.
2283 * partmap/bsdlabel.c: New file.
2284 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
2285 Set 'number'.
2286 Allocate 'data' so it can be correctly freed.
2287 Set 'index' to offset inside sector.
2288 (gpt_partition_map_probe): Remove.
2289 (gpt_partition_map_get_name): Likewise.
2290 * partmap/msdos.c (grub_partition_parse): Remove.
2291 (pc_partition_map_iterate): Don't force raw access.
2292 Set 'number'.
2293 Make 'ext_offset' a local variable.
2294 (pc_partition_map_probe): Remove.
2295 (pc_partition_map_get_name): Remove.
2296 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
2297 Set 'number'.
2298 (sun_partition_map_probe): Remove.
2299 (sun_partition_map_get_name): Likewise.
2300 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
2301 (grub_pcpart_type): Likewise.
2302 * util/hostdisk.c (open_device): Handle new numbering scheme.
2303 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
2304 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
2305 * util/grub-probe.c (probe_partmap): Handle nested paritions.
2306 * util/grub-install.in: Insert all subpartition modules.
2307 * util/ieee1275/grub-install.in: Likewise.
2308
2309 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
2310
2311 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
2312 grammar.
2313
2314 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
2315
2316 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
2317
2318 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
2319
2320 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
2321 match where 'make install' puts them.
2322 * util/i386/efi/grub-install.in: Likewise.
2323
2324 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
2325
2326 * .bzrignore: Add gentrigtables, grub-script-check,
2327 grub_script_check_init.c, grub_script_check_init.h, and
2328 trigtables.c.
2329
2330 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
2331
2332 * kern/parser.c: Indented.
2333
2334 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2335
2336 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
2337
2338 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2339
2340 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
2341 alpha_mask_size == 0 case.
2342
2343 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
2344
2345 GRUB shell lexer and parser improvements.
2346
2347 * conf/any-emu.rmk: Build rule updates.
2348 * conf/common.rmk: Likewise.
2349 * conf/i386-coreboot.rmk: Likewise.
2350 * conf/i386-efi.rmk: Likewise.
2351 * conf/i386-ieee1275.rmk: Likewise.
2352 * conf/i386-pc.rmk: Likewise.
2353 * conf/powerpc-ieee1275.rmk: Likewise.
2354 * conf/x86_64-efi.rmk: Likewise.
2355
2356 * configure.ac: Configure check for flex.
2357
2358 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
2359 types.
2360 (grub_lexer_param): Struct member updates.
2361 (grub_parser_param): Likewise.
2362 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
2363 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
2364 (grub_script_lexer_init): Prototype update.
2365 (grub_script_lexer_record_start): Likewise.
2366 (grub_script_lexer_record_stop): Likewise.
2367 (grub_script_lexer_yywrap): New function prototype.
2368 (grub_script_lexer_fini): Likewise.
2369 (grub_script_execute_argument_to_string): Removed by...
2370 (grub_script_execute_argument_to_argv): ...better version.
2371
2372 * script/execute.c (ROUND_UPTO): New macro.
2373 (grub_script_execute_cmdline): Out of memory fixes.
2374 (grub_script_execute_menuentry): Likewise.
2375 (grub_script_execute_argument_to_string): Removed. Update all
2376 users by...
2377 (grub_script_execute_argument_to_argv): ...better version.
2378 * script/function.c (grub_script_function_create): Use
2379 grub_script_execute_argument_to_argv instead of
2380 grub_script_execute_argument_to_string.
2381
2382 * script/lexer.c (check_varstate): Removed.
2383 (check_textstate): Removed.
2384 (grub_script_lexer_record_start): Likewise.
2385 (grub_script_lexer_record_stop): Likewise.
2386 (recordchar): Replaced with...
2387 (grub_script_lexer_record): ...new function.
2388 (nextchar): Removed.
2389 (grub_script_lexer_init): Rewritten.
2390 (grub_script_yylex): Rewritten.
2391 (append_newline): New function.
2392 (grub_script_lexer_yywrap): New function.
2393 (grub_script_lexer_fini): New function.
2394 (grub_script_yyerror): Sets error flag.
2395
2396 * script/yylex.l: New file.
2397 (grub_lexer_yyfree): Wrapper for flex yyffre.
2398 (grub_lexer_yyalloc): Likewise.
2399 (grub_lexer_yyrealloc): Likewise.
2400 * script/parser.y: Refactored.
2401
2402 * script/script.c (grub_script_arg_add): Out of memory fixes.
2403 (grub_script_add_arglist): Likewise.
2404 (grub_script_create_cmdline): Likewise.
2405 (grub_script_create_cmdmenu): Likewise.
2406 (grub_script_add_cmd): Likewise.
2407 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
2408 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
2409 unnecessary code.
2410
2411 * tests/grub_script_echo1.in: New testcase.
2412 * tests/grub_script_vars1.in: New testcase.
2413 * tests/grub_script_echo_keywords.in: New testcase.
2414
2415 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2416
2417 Remove some redundancy in build system.
2418
2419 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
2420 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
2421 (TARGET_LDFLAGS): Add -nostdlib.
2422 (TARGET_IMG_LDFLAGS): Likewise.
2423 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
2424 anything since mmap isn't available.
2425 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
2426 Add util/time.c.
2427 (pkglib_MODULES): Remove reboot.mod.
2428 (reboot_mod_SOURCES): Removed.
2429 (reboot_mod_CFLAGS): Likewise.
2430 (reboot_mod_LDFLAGS): Likewise.
2431 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
2432 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
2433 (DEFSYMFILES): Add kernel_syms.lst.
2434 (kernel_img_HEADERS): Add common headers.
2435 (symlist.c): New target.
2436 (kernel_syms.lst): Likewise.
2437 (pkglib_MODULES): Add memdisk.mod.
2438 (memdisk_mod_SOURCES): New variable.
2439 (memdisk_mod_CFLAGS): Likewise.
2440 (memdisk_mod_LDFLAGS): Likewise.
2441 (pkglib_MODULES): Add reboot.mod.
2442 (reboot_mod_SOURCES): New variable.
2443 (reboot_mod_CFLAGS): Likewise.
2444 (reboot_mod_LDFLAGS): Likewise.
2445 (pkglib_MODULES): Add date.mod.
2446 (date_mod_SOURCES): New variable.
2447 (date_mod_CFLAGS): Likewise.
2448 (date_mod_LDFLAGS): Likewise.
2449 (pkglib_MODULES): Add datehook.mod.
2450 (datehook_mod_SOURCES): New variable.
2451 (datehook_mod_CFLAGS): Likewise.
2452 (datehook_mod_LDFLAGS): Likewise.
2453 (pkglib_MODULES): Add lsmmap.mod.
2454 (lsmmap_mod_SOURCES): New variable.
2455 (lsmmap_mod_CFLAGS): Likewise.
2456 (lsmmap_mod_LDFLAGS): Likewise.
2457 (pkglib_MODULES): Add boot.mod.
2458 (boot_mod_SOURCES): New variable.
2459 (boot_mod_CFLAGS): Likewise.
2460 (boot_mod_LDFLAGS): Likewise.
2461 * conf/i386-coreboot.rmk: Removed redundant parts.
2462 * conf/i386-ieee1275.rmk: Likewise.
2463 * conf/i386-pc.rmk: Likewise.
2464 * conf/mips-yeeloong.rmk: Likewise.
2465 * conf/mips.rmk: Likewise.
2466 * conf/powerpc-ieee1275.rmk: Likewise.
2467 * conf/sparc64-ieee1275.rmk: Likewise.
2468 * conf/x86_64-efi.rmk: Likewise.
2469 * conf/i386-coreboot.rmk: Moved qemu parts ..
2470 * conf/i386-qemu.rmk: ... here
2471 * conf/i386-efi.rmk: Moved common parts to...
2472 * conf/x86-efi.rmk: ... here.
2473 * conf/i386.rmk: Added modules common to all x86 variants.
2474 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
2475 * disk/memdisk.c: Remove grub/machine/kernel.h.
2476 * gensymlist.sh.in: Include symbol.h.
2477 * hook/datehook.c: Correct module name.
2478 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
2479 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
2480 * include/grub/i386/efi/serial.h: New file.
2481 * include/grub/x86_64/efi/serial.h: Likewise.
2482 * util/time.c: Likewise.
2483 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
2484
2485 2010-03-14 Colin King <colin.king@ubuntu.com>
2486 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
2487
2488 Shrink the pre-partition-table part of boot.img by eight bytes.
2489
2490 * boot/i386/pc/boot.S (ERR): New macro.
2491 (chs_mode): Use ERR.
2492 (geometry_error): Likewise.
2493 (hd_probe_error): Remove. This is only used once, so we wrwite
2494 it inline instead.
2495 (read_error): Instead of printing read_error_string, just set up
2496 %si and fall through to ...
2497 (error_message): ... this new function, also used by ERR.
2498
2499 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
2500
2501 Speed up consecutive hostdisk operations on the same device.
2502
2503 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
2504 (grub_util_biosdisk_open): Initialise disk->data.
2505 (struct linux_partition_cache): New structure.
2506 (linux_find_partition): Cache partition start positions; these are
2507 expensive to compute on every read and write.
2508 (open_device): Cache open file descriptor in disk->data, so that we
2509 don't have to reopen it and flush the buffer cache for consecutive
2510 operations on the same device.
2511 (grub_util_biosdisk_close): New function.
2512 (grub_util_biosdisk_dev): Set `close' member.
2513
2514 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
2515 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
2516 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
2517 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
2518 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
2519
2520 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2521
2522 Compile parts of grub-emu as modules.
2523
2524 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
2525 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
2526 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
2527 (all-local): Add $(GRUB_EMU).
2528 (install-local): Install $(GRUB_EMU).
2529 (uninstall): Uninstall $(GRUB_EMU).
2530 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
2531 * kern/dl.c: Likewise.
2532 * commands/sleep.c: Not include machine/time.h.
2533 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
2534 (COMMON_CFLAGS): Likewise.
2535 (sbin_UTILITIES): Remove grub-emu.
2536 (grub_emu_SOURCES): Removed.
2537 (kernel_img_RELOCATABLE): New variable.
2538 (pkglib_PROGRAMS): Add kernel.img.
2539 (kernel_img_SOURCES): New variable
2540 (kernel_img_CFLAGS): Likewise.
2541 (kernel_img_LDFLAGS): Likewise.
2542 (TARGET_NO_STRIP): Likewise.
2543 (TARGET_NO_DYNAMIC_MODULES): Likewise.
2544 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
2545 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
2546 (grub-emu): New target.
2547 (GRUB_EMU): New variable.
2548 * configure.ac: Whitelist -emu as possible x86_64 architecture.
2549 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
2550 * loader/xnu.c: Likewise.
2551 * include/grub/pci.h: Likewise.
2552 * genemuinit.sh: New file.
2553 * genemuinitheader.sh: Likewise.
2554 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
2555 Support TARGET_NO_DYNAMIC_MODULES.
2556 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
2557 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
2558 * disk/loopback.c: Likewise.
2559 * font/font_cmd.c: Likewise.
2560 * partmap/acorn.c: Likewise.
2561 * partmap/amiga.c: Likewise.
2562 * partmap/apple.c: Likewise.
2563 * partmap/gpt.c: Likewise.
2564 * partmap/msdos.c: Likewise.
2565 * partmap/sun.c: Likewise.
2566 * parttool/msdospart.c: Likewise.
2567 * term/gfxterm.c: Likewise.
2568 * video/bitmap.c: Likewise.
2569 * video/readers/jpeg.c: Likewise.
2570 * video/readers/png.c: Likewise.
2571 * video/readers/tga.c: Likewise.
2572 * video/video.c: Likewise.
2573 * util/grub-emu.c (read_command_list): Removed.
2574 (main): Don't call util_init_nls.
2575 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
2576 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
2577
2578 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2579
2580 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
2581 date.mod, datehook.mod.
2582 (datetime_mod_SOURCES): New variable.
2583 (datetime_mod_CFLAGS): Likewise.
2584 (datetime_mod_LDFLAGS): Likewise.
2585 (date_mod_SOURCES): Likewise.
2586 (date_mod_CFLAGS): Likewise.
2587 (date_mod_LDFLAGS): Likewise.
2588 (datehook_mod_SOURCES): Likewise.
2589 (datehook_mod_CFLAGS): Likewise.
2590 (datehook_mod_LDFLAGS): Likewise.
2591 * conf/sparc64-ieee1275.rmk: Likewise.
2592 * lib/ieee1275/datetime.c: New file.
2593
2594 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2595
2596 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
2597 (ieee1275_fb_mod_SOURCES): New variable.
2598 (ieee1275_fb_mod_CFLAGS): Likewise.
2599 (ieee1275_fb_mod_LDFLAGS): Likewise.
2600 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
2601 New proto.
2602 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
2603 (HEAP_MAX_ADDR): Likewise.
2604 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
2605 type.
2606 Correct stop condition.
2607 (grub_ieee1275_devices_iterate): New function.
2608 * video/ieee1275.c: New file.
2609
2610 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2611
2612 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
2613
2614 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
2615 as scratch.
2616 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
2617 SCRATCH_PAD_DISKBOOT as scratch.
2618 (bootit): Pass Openfirmware pointer in %o4.
2619 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
2620 of 0x200000.
2621 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
2622 with util/grub-mkrawimage.c.
2623 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
2624 * include/grub/aout.h (AOUT_MID_SUN): New definition.
2625 (grub_aout_get_type) [GRUB_UTIL]: Removed.
2626 (grub_aout_load) [GRUB_UTIL]: Likewise.
2627 * include/grub/kernel.h (grub_modules_get_end): New proto.
2628 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
2629 (SCRATCH_PAD_BOOT): New definition.
2630 (SCRATCH_PAD_DISKBOOT): Likewise.
2631 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
2632 * include/grub/sparc64/ieee1275/ieee1275.h
2633 (grub_ieee1275_original_stack): New variable
2634 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
2635 New definition
2636 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
2637 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
2638 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
2639 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
2640 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
2641 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
2642 (grub_platform_image_format_t): New type.
2643 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
2644 * kern/main.c (grub_modules_get_end)
2645 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
2646 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
2647 (codestart): Switch stacks.
2648 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
2649 variable.
2650 (grub_heap_init): Use grub_modules_get_end.
2651 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
2652 stack.
2653 * util/grub-mkrawimage.c (generate_image): Support sparc64.
2654 (main): Likewise.
2655 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
2656
2657 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
2658
2659 * util/grub-mkrescue.in: Base ISO UUID on UTC.
2660
2661 2010-03-08 Matt Kraai <kraai@ftbfs.org>
2662
2663 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
2664 bug #559005).
2665
2666 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
2667
2668 * genmoddep.awk: Output all missing symbols and not only first.
2669
2670 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2671
2672 * NEWS: Put the date of 1.98 release.
2673
2674 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2675
2676 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
2677 ft2build.h.
2678
2679 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2680
2681 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
2682 completition in the middle of string.
2683
2684 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2685
2686 * util/grub-mkrescue.in: Use mktemp with explicit template.
2687
2688 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2689
2690 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
2691
2692 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2693
2694 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
2695 right pointer.
2696
2697 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2698
2699 Fix FreeBSD compilation.
2700
2701 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
2702 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
2703
2704 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2705
2706 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
2707
2708 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2709
2710 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
2711
2712 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2713
2714 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
2715
2716 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
2717
2718 Support relative image path in theme file.
2719
2720 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
2721 (image_set_property): Handle theme_dir and relative path.
2722
2723 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2724
2725 * configure.ac: Alias amd64 to x86_64.
2726
2727 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2728
2729 * NEWS: mention multiboot on EFI.
2730
2731 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2732
2733 * kern/main.c (grub_load_modules): Handle errors from init functions of
2734 embeded modules.
2735
2736 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2737
2738 * normal/autofs.c (autoload_fs_module): Handle errors.
2739
2740 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2741
2742 Disable linux.mod on qemu-mips since it's not functional and leads
2743 to compilation failure.
2744
2745 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
2746 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
2747 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
2748 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
2749 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
2750 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
2751 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
2752 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
2753 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
2754 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
2755 Reported by: BVK Chaitanya
2756
2757 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
2758
2759 * INSTALL: Add gettext as a dependency and add qemu to a new section
2760 "Prerequisites for make-check".
2761
2762 2010-03-04 Christian Franke <franke@computer.org>
2763
2764 * util/grub-pe2elf.c: Add missing include "progname.h".
2765
2766 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2767
2768 * normal/crypto.c (read_crypto_list): Fix a typo.
2769 Reported by: Seth Goldberg.
2770
2771 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2772
2773 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
2774 Reported by: Seth Goldberg.
2775
2776 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2777
2778 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
2779 ascii.bitmaps.
2780
2781 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2782
2783 * genmk.rb: Remove terminal*.lst in make clean.
2784 Reported by: Seth Goldberg.
2785
2786 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2787
2788 * util/i386/efi/grub-install.in: Copy gettext files.
2789
2790 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2791
2792 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
2793
2794 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2795
2796 Wait for user entry basing on presence of output rather than on errors.
2797
2798 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
2799 (grub_install_newline_hook): Likewise.
2800 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
2801 * normal/menu.c (show_menu): Check line_counter to determine presence
2802 of output.
2803 * normal/term.c (grub_normal_line_counter): New variable.
2804 (grub_normal_get_line_counter): New function.
2805 (grub_install_newline_hook): Likewise.
2806
2807 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2808
2809 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
2810
2811 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2812
2813 * configure.ac: Update version to 1.98.
2814
2815 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
2816
2817 * util/grub.d/10_linux.in (linux_entry): Don't default to
2818 gfxpayload=keep if Linux doesn't support video handover.
2819
2820 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
2821
2822 Don't compile video modules on yeeloong since video subsystem is part
2823 of kernel.
2824
2825 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
2826 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
2827 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
2828 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
2829 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
2830 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
2831 * include/grub/bitmap_scale.h: Likewise.
2832 * include/grub/bufio.h: Likewise.
2833 * include/grub/font.h: Likewise.
2834 * include/grub/gfxterm.h: Likewise.
2835 * include/grub/video.h: Likewise.
2836 * include/grub/vbe.h: Don't include video_fb.h.
2837 * video/i386/pc/vbe.c: Include video_fb.h.
2838 * commands/i386/pc/vbetest.c: Include video.h.
2839
2840 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
2841
2842 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
2843 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
2844 default entry if GRUB_SAVEDEFAULT=true. This allows using
2845 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
2846 saving a new default on every boot.
2847
2848 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
2849
2850 * normal/crypto.c (read_crypto_list): Fix a memory leak.
2851 * normal/term.c (read_terminal_list): Likewise.
2852 * normal/main.c (grub_normal_init_page): Likewise.
2853 (grub_normal_read_line_real): Likewise.
2854
2855 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
2856
2857 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
2858 memory leak.
2859 Reported by: Seth Goldberg.
2860
2861 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
2862
2863 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
2864 duplicate declaration of `start'.
2865
2866 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
2867
2868 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
2869 filename.
2870 Reported by: Georgy Buranov
2871
2872 2010-02-20 Carles Pina i Estany <carles@pina.cat>
2873
2874 * util/grub-mkrawimage.c (usage): Change string formatting to
2875 improve gettext.
2876
2877 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
2878
2879 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
2880 backspace keys.
2881
2882 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
2883
2884 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
2885 Reported by: Michael Suchanek.
2886
2887 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2888
2889 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
2890 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
2891
2892 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
2893
2894 Remove any reference to non-free fonts.
2895
2896 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
2897 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
2898 uses non-free components.
2899 * font/font.c (grub_font_get_name): Remove example name.
2900 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
2901 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
2902 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
2903 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
2904
2905 2010-02-16 Georgy Buranov <gburanov@gmail.com>
2906
2907 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
2908
2909 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
2910
2911 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
2912 Double divisor.
2913 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
2914 features.
2915 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
2916
2917 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
2918
2919 * gensymlist.sh.in: Use TARGET_CC instead of CC.
2920
2921 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2922
2923 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
2924 * docs/grub.texi (Command-line and menu entry commands): Document play
2925 command.
2926
2927 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2928
2929 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
2930 parse arguments as inline tempo and notes. Move code for playing notes
2931 to...
2932 (play): ... new function.
2933
2934 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2935
2936 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
2937 grub_uint16_t instead of short.
2938 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
2939 disk from little endian to cpu endianness.
2940
2941 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
2942
2943 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
2944 GRUB_TICKS_PER_SECOND instead of 120.
2945
2946 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2947
2948 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
2949 escape sequence after \e.
2950
2951 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2952
2953 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
2954 non-ASCII characters.
2955
2956 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2957
2958 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
2959 set root in single quotes to prevent \, from being unescaped.
2960
2961 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2962
2963 Prevent unknown commands from stopping menuentry execution.
2964
2965 * script/execute.c (grub_script_execute_cmdline): Print error after
2966 unknown command.
2967
2968 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2969
2970 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
2971 Reported by: Pavel Pisa.
2972
2973 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2974
2975 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
2976
2977 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2978
2979 Merge grub_ieee1275_map_physical into grub_map and rename to
2980 grub_ieee1275_map
2981
2982 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
2983 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
2984 Remove.
2985 * kern/ieee1275/openfw.c (grub_map): Rename to ...
2986 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
2987 necessary.
2988 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
2989
2990 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2991
2992 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
2993 opening and not after.
2994
2995 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2996
2997 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
2998 constants.
2999
3000 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3001
3002 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
3003 (alloc_phys): Use ALIGN_UP instead of align_addr.
3004
3005 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3006
3007 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
3008
3009 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3010
3011 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
3012
3013 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3014
3015 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
3016 verbose dprintf.
3017
3018 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3019
3020 Fix over-4GiB seek on sparc64.
3021
3022 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
3023 Replace pos_i and pos_lo with pos. All users updated.
3024 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3025 New constant.
3026 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3027 Likewise.
3028 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
3029 and pos_lo.
3030
3031 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3032
3033 * util/grub-mkrawimage.c (main): Call set_program_name.
3034
3035 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3036
3037 Properly align 64-bit targets.
3038
3039 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
3040 (generate_image): Use ALIGN_ADDR.
3041
3042 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3043
3044 Properly create cross-endian images.
3045
3046 * include/grub/types.h (grub_host_to_target_addr): New macro
3047 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
3048
3049 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3050
3051 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
3052
3053 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3054
3055 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
3056
3057 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
3058 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
3059 (grub_linux_boot): Divide by 64K when on VESA.
3060
3061 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3062
3063 Support GRUB_GFXPAYLOAD_LINUX.
3064
3065 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
3066 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
3067
3068 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3069
3070 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
3071 to show messages instead of discarding them.
3072 Process errors after executing command and not before. Keep old method
3073 too as precaution.
3074
3075 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
3076
3077 * configure.ac: Check for ft2build.h.
3078
3079 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3080
3081 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
3082
3083 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3084
3085 * genkernsyms.sh.in: Use TARGET_CC.
3086
3087 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
3088
3089 * NEWS: Update.
3090
3091 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3092
3093 * include/grub/multiboot2.h: Remove leftover file.
3094 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
3095 * include/grub/partition.h [GRUB_UTIL]: Likewise.
3096
3097 2010-02-07 Yves Blusseau <blusseau@zetam.org>
3098
3099 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
3100
3101 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3102
3103 Fix warnings in grub-emu when compiling with maximum warning options.
3104
3105 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
3106 (grub_arch_modules_addr): Return 0 and not NULL.
3107 * util/misc.c (ENABLE_RELOCATABLE): New definition.
3108 (xstrdup): Use newstr instead of dup.
3109 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
3110 of disk to dsk to avoid shadowing.
3111 (find_free_slot): Fix prototype.
3112 * util/getroot.c (grub_util_is_dmraid): Make static.
3113 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
3114 Add missing prototype.
3115 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
3116
3117 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3118
3119 * loader/i386/linux.c (grub_linux_setup_video): Handle error
3120 appropriately.
3121
3122 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3123
3124 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
3125 code out.
3126
3127 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3128
3129 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
3130 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
3131 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
3132 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
3133 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
3134 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
3135
3136 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3137
3138 * include/grub/err.h (grub_err_printf): Don't export.
3139
3140 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3141
3142 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
3143
3144 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3145
3146 * include/grub/i18n.h (grub_gettext_dummy): Removed.
3147 * kern/misc.c (grub_gettext_dummy): Make static.
3148
3149 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3150
3151 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
3152 by non-valid ones.
3153 * kern/term.c (grub_putchar): Likewise.
3154
3155 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3156
3157 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
3158 buggy hook call and memory leak.
3159
3160 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3161
3162 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
3163
3164 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3165
3166 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
3167
3168 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3169
3170 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
3171 modevar.
3172 Return grub_errno on allocation error.
3173
3174 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3175
3176 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
3177
3178 2010-02-06 Yves Blusseau <blusseau@zetam.org>
3179
3180 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
3181 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
3182
3183 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3184
3185 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
3186 non-pxe disk.
3187 (grub_pxefs_open): Likewise.
3188
3189 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3190
3191 * util/grub.d/10_hurd.in: Add --class information to menuentries.
3192 * util/grub.d/10_kfreebsd.in: Likewise.
3193 * util/grub.d/10_linux.in: Likewise.
3194
3195 2010-02-06 Colin D Bennett <colin@gibibit.com>
3196
3197 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
3198 (gfxmenu_mod_SOURCES): New variable.
3199 (gfxmenu_mod_CFLAGS): Likewise.
3200 (gfxmenu_mod_LDFLAGS): Likewise.
3201 * include/grub/term.h (grub_term_set_current_output): Declare
3202 argument as const.
3203 * docs/gfxmenu-theme-example.txt: New file.
3204 * gfxmenu/gfxmenu.c: Likewise.
3205 * gfxmenu/gui_box.c: Likewise.
3206 * gfxmenu/gui_canvas.c: Likewise.
3207 * gfxmenu/gui_circular_progress.c: Likewise.
3208 * gfxmenu/gui_image.c: Likewise.
3209 * gfxmenu/gui_label.c: Likewise.
3210 * gfxmenu/gui_list.c: Likewise.
3211 * gfxmenu/gui_progress_bar.c: Likewise.
3212 * gfxmenu/gui_string_util.c: Likewise.
3213 * gfxmenu/gui_util.c: Likewise.
3214 * gfxmenu/icon_manager.c: Likewise.
3215 * gfxmenu/model.c: Likewise.
3216 * gfxmenu/named_colors.c: Likewise.
3217 * gfxmenu/theme_loader.c: Likewise.
3218 * gfxmenu/view.c: Likewise.
3219 * gfxmenu/widget-box.c: Likewise.
3220 * include/grub/gfxmenu_model.h: Likewise.
3221 * include/grub/gfxmenu_view.h: Likewise.
3222 * include/grub/gfxwidgets.h: Likewise.
3223 * include/grub/gui.h: Likewise.
3224 * include/grub/gui_string_util.h: Likewise.
3225 * include/grub/icon_manager.h: Likewise.
3226
3227 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3228
3229 Agglomerate scrolling in gfxterm.
3230
3231 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
3232 (grub_virtual_screen_setup): Initialise 'total_screen'.
3233 (write_char): Split to ...
3234 (paint_char): ... this ...
3235 (write_char): ... and this.
3236 (paint_char): Handle delayed scrolling.
3237 (draw_cursor): Likewise.
3238 (scroll_up): Split to ...
3239 (real_scroll): ... this ...
3240 (scroll_up): ... and this.
3241 (real_scroll): Handle multi-line scroll and draw below-the-bottom
3242 characters.
3243 (grub_gfxterm_refresh): Call real_scroll.
3244
3245 2010-02-06 Colin D Bennett <colin@gibibit.com>
3246
3247 * include/grub/misc.h (grub_iscntrl): New inline function.
3248 (grub_isalnum): Likewise.
3249 (grub_strtol): Likewise.
3250
3251 2010-02-06 Colin D Bennett <colin@gibibit.com>
3252
3253 * normal/menu_text.c (get_entry_number): Move from here ...
3254 * normal/menu.c (get_entry_number): ... moved here.
3255 * include/grub/menu.h (grub_menu_get_default_entry_index):
3256 New prototype.
3257 * normal/menu.c (grub_menu_get_default_entry_index): New function.
3258 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
3259 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
3260 (grub_menu_viewer_should_return): Likewise.
3261 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
3262 * normal/menu_text.c (run_menu): Enable menu switching.
3263 * normal/menu_viewer.c (should_return): New variable.
3264 (menu_viewer_changed): Likewise.
3265 (grub_menu_viewer_show_menu): Handle menu viewer changes.
3266 (grub_menu_viewer_should_return): New function.
3267 (menuviewer_write_hook): Likewise.
3268 (grub_menu_viewer_init): Likewise.
3269
3270 2010-02-06 Colin D Bennet <colin@gibibit.com>
3271 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3272
3273 Support for gfxterm in a window.
3274
3275 * include/grub/gfxterm.h: New file.
3276 * include/grub/video.h (struct grub_video_rect): New declaration.
3277 (grub_video_rect_t): Likewise.
3278 * term/gfxterm.c (struct grub_gfxterm_window): New type.
3279 (refcount): New variable.
3280 (render_target): Likewise.
3281 (window): Likewise.
3282 (repaint_callback): Likewise.
3283 (grub_virtual_screen_setup): Use 'render_target'.
3284 (init_window): New function.
3285 (grub_gfxterm_init_window): Likewise.
3286 (grub_gfxterm_init): Check reference counter.
3287 Use init_window.
3288 (destroy_window): New function.
3289 (grub_gfxterm_destroy_window): Likewise.
3290 (grub_gfxterm_fini): Check reference counter.
3291 Use destroy_window.
3292 (redraw_screen_rect): Restore viewport.
3293 Use 'render_target' and 'window'.
3294 Call 'repaint_callback'.
3295 (write_char): Use 'render_target'.
3296 (draw_cursor): Likewise.
3297 (scroll_up): Restore viewport.
3298 Use 'render_target' and 'window'.
3299 Call 'repaint_callback'.
3300 (grub_gfxterm_cls): Likewise.
3301 (grub_gfxterm_refresh): Use 'window'.
3302 (grub_gfxterm_set_repaint_callback): New function.
3303 (grub_gfxterm_background_image_cmd): Use 'window'.
3304 (grub_gfxterm_get_term): New function.
3305 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
3306
3307 2010-02-06 Colin D Bennett <colin@gibibit.com>
3308
3309 Bitmap scaling support.
3310
3311 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
3312 (bitmap_scale_mod_SOURCES): New variable.
3313 (bitmap_scale_mod_CFLAGS): Likewise.
3314 (bitmap_scale_mod_LDFLAGS): Likewise.
3315 * include/grub/bitmap_scale.h: New file.
3316 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
3317 (background_image_cmd_options): New variable.
3318 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
3319 (cmd): Rename and change type to ...
3320 (background_image_cmd_handle): ... this. All users updated.
3321 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
3322 * video/bitmap_scale.c: New file.
3323
3324 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3325
3326 SDL support.
3327
3328 * Makefile.in (LIBSDL): New variable.
3329 (enable_grub_emu_sdl): Likewise.
3330 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
3331 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
3332 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
3333 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
3334 * util/sdl.c: New file.
3335
3336 2010-02-06 Colin D Bennett <colin@gibibit.com>
3337 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3338
3339 Double buffering support.
3340
3341 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
3342 * include/grub/video.h: Update comment.
3343 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
3344 New type.
3345 (grub_video_fb_doublebuf_blit_init): New prototype.
3346 * term/gfxterm.c (scroll_up): Support double buffering.
3347 (grub_gfxterm_refresh): Likewise.
3348 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
3349 (grub_video_fb_doublebuf_blit_init): Likewise.
3350 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
3351 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
3352 'displayed_page', 'render_page' and 'update_screen'.
3353 (grub_video_vbe_fini): Free offscreen buffer.
3354 (doublebuf_pageflipping_commit): New function.
3355 (doublebuf_pageflipping_update_screen): Likewise.
3356 (doublebuf_pageflipping_init): Likewise.
3357 (double_buffering_init): Likewise.
3358 (grub_video_vbe_setup): Enable doublebuffering.
3359 (grub_video_vbe_swap_buffers): Implement.
3360 (grub_video_vbe_set_active_render_target): Handle double buffering.
3361 (grub_video_vbe_get_active_render_target): Likewise.
3362 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
3363 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
3364 (grub_video_vbe_enable_double_buffering): Likewise.
3365 (grub_video_vbe_swap_buffers): Use update_screen.
3366 (grub_video_set_mode): Use double buffering.
3367
3368 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3369
3370 * maintainance/gentrigtables.py: Remove.
3371 * lib/trig.c: Likewise.
3372
3373 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
3374
3375 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
3376 `trigtables.c'.
3377 (trigtables.c): New rule.
3378 (gentrigtables): Likewise.
3379 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
3380
3381 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3382
3383 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
3384 integer constants.
3385
3386 2010-02-06 Colin D Bennet <colin@gibibit.com>
3387
3388 Trigonometry support.
3389
3390 * include/grub/trig.h: New file.
3391 * lib/trig.c: Likewise.
3392 * maintainance/gentrigtables.py: Likewise.
3393 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
3394 (trig_mod_SOURCES): New variable.
3395 (trig_mod_CFLAGS): Likewise.
3396 (trig_mod_LDFLAGS): Likewise.
3397
3398 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3399
3400 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
3401 disk devices.
3402
3403 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3404
3405 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
3406 error.
3407
3408 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3409
3410 * util/hostdisk.c (open_device): Don't use partition device when reading
3411 before the partition.
3412 (grub_util_biosdisk_read): Don't read from partition and before the
3413 partition in single operation.
3414 (grub_util_biosdisk_write): Don't write to partition and before the
3415 partition in single operation.
3416
3417 2010-02-03 Torsten Landschoff <torsten@debian.org>
3418
3419 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3420 last sectors.
3421
3422 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3423
3424 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
3425 CDROM reads.
3426 (grub_biosdisk_write): Refuse to write to CDROM.
3427
3428 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3429
3430 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
3431
3432 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3433
3434 * font/font.c (find_glyph): Check that bmp_idx is available before
3435 using it.
3436 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
3437 with (font == NULL).
3438
3439 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
3440
3441 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
3442
3443 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
3444
3445 * include/grub/script_sh.h (sourcecode): Add const qualifier.
3446 * util/grub-script-check.c (getline): Fix empty lines case.
3447
3448 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
3449
3450 * Makefile.in (check): Exit with fail status when one of the tests
3451 fails.
3452 * tests/example_functional_test.c (example_test): Fix reversed assert.
3453 * tests/example_unit_test.c (example_test): Likewise.
3454
3455 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
3456
3457 * util/grub.d/10_linux.in: This script does not use any of the
3458 contents of gettext.sh, only the external command `gettext', so stop
3459 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
3460 the same prefix as GRUB.)
3461 * util/grub.d/10_kfreebsd.in: Likewise.
3462
3463 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3464
3465 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
3466 of the line.
3467
3468 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3469
3470 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3471 last sectors.
3472
3473 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3474
3475 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
3476 having a 4KiB and not 32KiB buffer size.
3477
3478 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3479
3480 * util/hostfs.c: Include `<errno.h>'.
3481 (grub_hostfs_read): Handle errors from fseeko() and fread().
3482
3483 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3484
3485 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
3486 loop when using read hooks on files whose size isn't sector-aligned.
3487
3488 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3489
3490 Remove unused parameter.
3491
3492 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
3493 (grub_iso9660_open): Remove initialization of `data->length'.
3494
3495 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3496
3497 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
3498 memleak conditions.
3499
3500 2010-01-27 Carles Pina i Estany <carles@pina.cat>
3501
3502 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
3503 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
3504
3505 2010-01-26 Carles Pina i Estany <carles@pina.cat>
3506
3507 * util/bin2h.c (usage): Fix warning (space after backslash).
3508
3509 2010-01-26 Carles Pina i Estany <carles@pina.cat>
3510
3511 * font/font.c: Include `grub/fontformat.h.
3512 Remove font file format constants.
3513 (grub_font_load): Use the new macros.
3514 * include/grub/fontformat.h: New file.
3515 * util/grub-mkfont.c: Include `grub/fontformat.c'.
3516 (write_font_pf2): Use the new macros.
3517
3518 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3519
3520 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
3521 does.
3522
3523 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3524
3525 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
3526
3527 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
3528 (_start): Macroify `0x7F'.
3529
3530 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
3531 (make_install_device): Use "(pxe)" as fallback prefix when booting
3532 via PXE.
3533
3534 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
3535
3536 * configure.ac: Reset LIBS after check for libgcc symbols.
3537
3538 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
3539
3540 * util/hostdisk.c (open_device): Add trailing newline to debug
3541 message.
3542
3543 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
3544
3545 * configure.ac: Check for `limits.h'.
3546 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
3547
3548 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
3549
3550 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
3551 capitalize error strings.
3552
3553 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3554
3555 * util/grub.d/10_hurd.in: Add a recovery mode.
3556
3557 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
3558
3559 * configure.ac: Check for libgcc symbols with -nostdlib.
3560
3561 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
3562
3563 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
3564
3565 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3566
3567 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
3568 stack since heap may be unavailable at that point.
3569 (grub_ofconsole_gotoxy): Likewise.
3570
3571 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3572
3573 * configure.ac: Check for _restgpr_14_x.
3574 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
3575 and _savegpr_* prototypes.
3576
3577 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
3578
3579 Use generic grub_reboot() for i386-efi.
3580
3581 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
3582 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
3583 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
3584
3585 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3586
3587 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
3588 presence of "prefix" variable as it breaks when normal.mod is
3589 embedded.
3590
3591 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3592
3593 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
3594 stack since heap is unavailable at that point.
3595
3596 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3597
3598 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
3599 (grub_freebsd_bootinfo): Rewritten.
3600 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
3601
3602 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3603
3604 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
3605
3606 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
3607
3608 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
3609 domain now.
3610
3611 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
3612
3613 * util/misc.c (make_system_path_relative_to_its_root): Change the work
3614 around for handling "/" to the correct fix. Fix a memory leak. Use
3615 xstrdup instead of strdup.
3616
3617 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3618
3619 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
3620
3621 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3622
3623 Optimise glyph lookup by Basic Multilingual Plane lookup array.
3624
3625 * font/font.c (struct grub_font): New member 'bmp_idx'.
3626 (font_init): Initialise 'bmp_idx'.
3627 (load_font_index): Fill 'bmp_idx'.
3628 (find_glyph): Make inline. Use bmp_idx for BMP characters.
3629
3630 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3631
3632 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
3633 unnecessary calls.
3634
3635 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3636
3637 Move context handling out of the kernel.
3638
3639 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
3640 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
3641 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
3642 * conf/i386-efi.rmk: Likewise.
3643 * conf/i386-ieee1275.rmk: Likewise.
3644 * conf/i386-pc.rmk: Likewise.
3645 * conf/powerpc-ieee1275.rmk: Likewise.
3646 * conf/sparc64-ieee1275.rmk: Likewise.
3647 * conf/x86_64-efi.rmk: Likewise.
3648 * include/grub/env.h: Include grub/menu.h.
3649 (grub_env_var_type): Removed.
3650 (grub_env_var): Replaced field 'type' with 'global'.
3651 (grub_env_find): New prototype.
3652 (grub_env_context_open): Remove EXPORT_FUNC.
3653 (grub_env_context_close): Likewise.
3654 (grub_env_export): Likewise.
3655 (grub_env_set_data_slot): Removed.
3656 (grub_env_get_data_slot): Likewise.
3657 (grub_env_unset_data_slot): Likewise.
3658 (grub_env_unset_menu): New prototype.
3659 (grub_env_set_menu): Likewise.
3660 (grub_env_get_menu): Likewise.
3661 * include/grub/env_private.h: New file.
3662 * include/grub/normal.h (grub_context_init): New prototype.
3663 (grub_context_fini): Likewise.
3664 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
3665 * normal/context.c (grub_cmd_export): ... to here.
3666 * kern/env.c: Include env_private.h.
3667 (HASHSZ): Moved to include/grub/env_private.h.
3668 (grub_env_context): Likewise.
3669 (grub_env_sorted_var): Likewise.
3670 (current_context): Renamed from this ...
3671 (grub_current_context): ...to this. 'static' removed. All users updated.
3672 (grub_env_find): Removed 'static'.
3673 (grub_env_context_open): Moved to normal/context.c.
3674 (grub_env_context_close): Likewise.
3675 (grub_env_export): Likewise.
3676 (mangle_data_slot_name): Removed.
3677 (grub_env_set_data_slot): Likewise.
3678 (grub_env_get_data_slot): Likewise.
3679 (grub_env_unset_data_slot): Likewise.
3680 * kern/main.c (grub_set_root_dev): Don't export root.
3681 It will be done later.
3682 (grub_main): Don't export prefix.
3683 It will be done later.
3684 * normal/context.c: New file.
3685 * normal/main.c (free_menu): Use grub_env_unset_menu.
3686 (grub_normal_add_menu_entry): Use grub_env_get_menu.
3687 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
3688 (GRUB_MOD_INIT(normal)): Call grub_context_init.
3689 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
3690
3691 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3692
3693 setpci support.
3694
3695 * commands/setpci.c: New file.
3696 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
3697 (setpci_mod_SOURCES): New variable.
3698 (setpci_mod_CFLAGS): Likewise.
3699 (setpci_mod_LDFLAGS): Likewise.
3700
3701 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3702
3703 Byte-addressable PCI configuration space.
3704
3705 * bus/pci.c (grub_pci_make_address): Use byte address instead of
3706 dword address.
3707 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
3708 GRUB_PCI_REG_CACHELINE.
3709 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
3710 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
3711 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
3712 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
3713 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
3714 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
3715 grub_pci_make_address.
3716 (lock_rom_area): Likewise.
3717 * commands/lspci.c (grub_lspci_iter): Use macroses
3718 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
3719 of grub_pci_make_address.
3720 * disk/ata.c (grub_ata_pciinit): Likewise.
3721 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
3722 (GRUB_PCI_REG_VENDOR): Likewise.
3723 (GRUB_PCI_REG_DEVICE): Likewise.
3724 (GRUB_PCI_REG_COMMAND): Likewise.
3725 (GRUB_PCI_REG_STATUS): Likewise.
3726 (GRUB_PCI_REG_REVISION): Likewise.
3727 (GRUB_PCI_REG_CLASS): Likewise.
3728 (GRUB_PCI_REG_CACHELINE): Likewise.
3729 (GRUB_PCI_REG_LAT_TIMER): Likewise.
3730 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
3731 (GRUB_PCI_REG_BIST): Likewise.
3732 (GRUB_PCI_REG_ADDRESSES): Likewise.
3733 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3734 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3735 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3736 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3737 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3738 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3739 (GRUB_PCI_REG_CIS_POINTER): Likewise.
3740 (GRUB_PCI_REG_SUBVENDOR): Likewise.
3741 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
3742 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
3743 (GRUB_PCI_REG_CAP_POINTER): Likewise.
3744 (GRUB_PCI_REG_IRQ_LINE): Likewise.
3745 (GRUB_PCI_REG_IRQ_PIN): Likewise.
3746 (GRUB_PCI_REG_MIN_GNT): Likewise.
3747 (GRUB_PCI_REG_MAX_LAT): Likewise.
3748 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
3749 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
3750 * video/efi_uga.c (find_framebuf): Likewise.
3751 * video/sm712.c (grub_video_sm712_setup): Likewise.
3752 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
3753 space.
3754
3755 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3756
3757 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
3758 can be reliably determined to be supported.
3759
3760 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3761
3762 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
3763 that VESA is supported.
3764 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
3765 supported.
3766
3767 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3768
3769 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
3770
3771 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3772
3773 * util/misc.c (make_system_path_relative_to_its_root): Work around
3774 special-casing of "/", as previous incarnation of this routine did.
3775
3776 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3777
3778 Fix any-emu compilation.
3779
3780 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
3781 * grub_bin2h_SOURCES: New variable.
3782
3783 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3784
3785 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
3786
3787 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3788
3789 * util/grub.d/00_header.in: Fix handling of locale_dir.
3790
3791 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3792
3793 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
3794 as possible unifont location (Gentoo).
3795 Reported by: Alexander Brüning
3796
3797 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3798
3799 Don't try to generate lists for kernel.img.
3800
3801 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
3802 (pkglib_MODULES): Remove kernel.img.
3803 (kernel_img_EXPORTS): Removed.
3804 (kernel_img_RELOCATABLE): New variable.
3805 * conf/x86_64-efi.rmk: Likewise.
3806 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
3807
3808 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3809
3810 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
3811 grub_xasprintf or grub_snprintf.
3812 (grub_vsprintf): Likewise.
3813 (grub_snprintf): New proto.
3814 (grub_vsnprintf): Likewise.
3815 (grub_xasprintf): Likewise.
3816 (grub_xvasprintf): Likewise.
3817 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
3818 (grub_sprintf): Removed.
3819 (grub_vsnprintf): New function.
3820 (grub_snprintf): Likewise.
3821 (grub_xvasprintf): Likewise.
3822 (grub_xasprintf): Likewise.
3823 (grub_vsprintf): Renamed to ...
3824 (grub_vsnprintf_real): ...this. New argument max_len.
3825
3826 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
3827
3828 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
3829 fix grub-script-check warning.
3830
3831 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3832
3833 * include/grub/font.h (grub_font_load): Fix prototype.
3834
3835 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3836
3837 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
3838
3839 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3840
3841 * include/grub/x86_64/at_keyboard.h: New file.
3842
3843 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3844
3845 * loader/mips/linux.c: Include missing grub/i18n.h.
3846
3847 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3848
3849 * normal/menu.c (notify_execution_failure): Clarify error message.
3850
3851 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3852
3853 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
3854 return value (and revert all return statements). Update users.
3855
3856 2010-01-20 Dan Merillat <debian@dan.merillat.org>
3857
3858 * kern/device.c (grub_device_iterate): Allocate new part_ent
3859 structure based on sizeof (*p) rather than sizeof (p->next), to
3860 account for structure padding.
3861
3862 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
3863 disk is NULL, which might happen for LVM physical volumes with no
3864 LVM signature.
3865
3866 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3867
3868 * loader/mips/linux.c (grub_cmd_initrd)
3869 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
3870
3871 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3872
3873 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
3874 (grub_video_video_init, grub_video_bitmap_init)
3875 (grub_font_manager_init, grub_term_gfxterm_init)
3876 (grub_at_keyboard_init): New extern declarations.
3877 (grub_machine_init): Initialize gfxterm and at_keyboard.
3878
3879 * kern/main.c (grub_main): Revert grub_printf delay kludge.
3880
3881 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
3882 `gfxterm.mod' into core image.
3883
3884 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3885 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3886 (kernel_img_FORMAT): Copy to ...
3887
3888 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3889 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3890 (kernel_img_FORMAT): ... here, and ...
3891
3892 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3893 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3894 (kernel_img_FORMAT): ... here.
3895
3896 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
3897 and input (at_keyboard) terminals in kernel.
3898 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
3899
3900 (pkglib_MODULES): Remove `pci.mod'.
3901 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
3902 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
3903 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
3904 (at_keyboard_mod_LDFLAGS): Remove variables.
3905
3906 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
3907
3908 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
3909
3910 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
3911
3912 * include/grub/mips/libgcc.h: Only export symbols for functions
3913 that libgcc provides.
3914
3915 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
3916
3917 MIPS support.
3918
3919 * bus/bonito.c: New file.
3920 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
3921 GRUB_PCI_NUM_DEVICES.
3922 * term/i386/pc/serial.c: Move to ...
3923 * term/serial.c: ... here. All users updated.
3924 * util/i386/pc/grub-mkimage.c: Move to ...
3925 * util/grub-mkrawimage.c: ... here. All users updated.
3926 * term/i386/pc/at_keyboard.c: Move to ...
3927 * term/at_keyboard.c: ... here. All users updated.
3928 * conf/mips-qemu-mips.rmk: New file.
3929 * conf/mips-yeeloong.rmk: Likewise.
3930 * conf/mips.rmk: Likewise.
3931 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
3932 mipsel-qemu-mips.
3933 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
3934 to port addresses.
3935 (grub_ata_pciinit): Support CS5536.
3936 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
3937 * font/font_cmd.c (loadfont_command): Open file before passing it to
3938 grub_font_load.
3939 (pseudo_file_read): New function.
3940 (pseudo_file_close): Likewise.
3941 (pseudo_fs): New structure.
3942 (load_font_module): New function.
3943 (GRUB_MOD_INIT(font_manager)): Load embedded font.
3944 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
3945 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
3946 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
3947 * include/grub/i386/at_keyboard.h: Split into ...
3948 * include/grub/at_keyboard.h: ... this ...
3949 * include/grub/i386/at_keyboard.h: ... and this.
3950 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
3951 New prototype.
3952 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
3953 updated.
3954 (grub_elf64_size): Likewise.
3955 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
3956 filename.
3957 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
3958 * include/grub/i386/coreboot/serial.h: Rewritten.
3959 * include/grub/i386/ieee1275/serial.h: Include
3960 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
3961 * include/grub/i386/pc/serial.h: Moved from here ...
3962 * include/grub/serial.h: ... to here. All users updated.
3963 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
3964 (GRUB_PCI_NUM_BUS): Likewise.
3965 (GRUB_PCI_NUM_DEVICES): Likewise.
3966 (grub_pci_device_map_range): Add missing volatile keyword.
3967 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
3968 * include/grub/mips/at_keyboard.h: New file.
3969 * include/grub/mips/cache.h: Likewise.
3970 * include/grub/mips/io.h: Likewise.
3971 * include/grub/mips/kernel.h: Likewise.
3972 * include/grub/mips/libgcc.h: Likewise.
3973 * include/grub/mips/pci.h: Likewise.
3974 * include/grub/mips/qemu-mips/boot.h: Likewise.
3975 * include/grub/mips/qemu-mips/kernel.h: Likewise.
3976 * include/grub/mips/qemu-mips/loader.h: Likewise.
3977 * include/grub/mips/qemu-mips/memory.h: Likewise.
3978 * include/grub/mips/qemu-mips/serial.h: Likewise.
3979 * include/grub/mips/qemu-mips/time.h: Likewise.
3980 * include/grub/mips/relocator.h: Likewise.
3981 * include/grub/mips/time.h: Likewise.
3982 * include/grub/mips/types.h: Likewise.
3983 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
3984 * include/grub/mips/yeeloong/boot.h: Likewise.
3985 * include/grub/mips/yeeloong/kernel.h: Likewise.
3986 * include/grub/mips/yeeloong/loader.h: Likewise.
3987 * include/grub/mips/yeeloong/memory.h: Likewise.
3988 * include/grub/mips/yeeloong/pci.h: Likewise.
3989 * include/grub/mips/yeeloong/serial.h: Likewise.
3990 * include/grub/mips/yeeloong/time.h: Likewise.
3991 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
3992 * kern/elf.c (grub_elf32_size): New parameter. All users
3993 updated.
3994 (grub_elf64_size): Likewise.
3995 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
3996 Load modules before saying "Welcome to GRUB!".
3997 Call grub_refresh after saying "Welcome to GRUB!".
3998 * kern/mips/cache.S: New file.
3999 * kern/mips/cache_flush.S: Likewise.
4000 * kern/mips/dl.c: Likewise.
4001 * kern/mips/init.c: Likewise.
4002 * kern/mips/qemu-mips/init.c: Likewise.
4003 * kern/mips/startup.S: Likewise.
4004 * kern/mips/yeeloong/init.c: Likewise.
4005 * kern/term.c (grub_putcode): Handle NULL terminal.
4006 (grub_getcharwidth): Likewise.
4007 (grub_getkey): Likewise.
4008 (grub_checkkey): Likewise.
4009 (grub_getkeystatus): Likewise.
4010 (grub_getxy): Likewise.
4011 (grub_getwh): Likewise.
4012 (grub_gotoxy): Likewise.
4013 (grub_cls): Likewise.
4014 (grub_setcolorstate): Likewise.
4015 (grub_setcolor): Likewise.
4016 (grub_getcolor): Likewise.
4017 (grub_refresh): Likewise.
4018 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
4019 (write_jump): Add hatch nop.
4020 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
4021 * lib/mips/setjmp.S: New file.
4022 * loader/mips/linux.c: Likewise.
4023 * term/i386/pc/at_keyboard.c: Move from here ...
4024 * term/at_keyboard.c: ... to here.
4025 * term/i386/pc/serial.c: Moved from here ...
4026 * term/serial.c: ... to here. All users updated.
4027 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
4028 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
4029 (serial_translate_key_sequence): Avoid deadlock.
4030 (grub_serial_getkey): Handle backspace.
4031 (grub_serial_putchar): Fix newline handling.
4032 * util/i386/pc/grub-mkimage.c: Move from here ...
4033 * util/grub-mkrawimage.c: ... to here. All users updated.
4034 (generate_image): New parameters 'font_path' and 'format'.
4035 Support embedding font.
4036 Use grub_host_to_target* instead of grub_cpu_to_le*.
4037 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
4038 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
4039 (options): New option "--font".
4040 (usage): Likewise.
4041 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
4042 (main): Handle "--font".
4043 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
4044 (grub_virtual_screen_setup): Set bg_color_display.
4045 (redraw_screen_rect): Use bg_color_display instead of incorrect
4046 bg_color.
4047 (grub_gfxterm_cls): Likewise.
4048 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
4049 Support embedding config file.
4050 (add_segments): Likewise.
4051 (options): New option "--config".
4052 (main): Handle "--config".
4053 * video/sm712.c: New file.
4054
4055 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4056
4057 Fix parallel builds.
4058
4059 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
4060 font.c depend on ascii.h).
4061
4062 2010-01-12 Carles Pina i Estany <carles@pina.cat>
4063
4064 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
4065
4066 2010-01-11 Carles Pina i Estany <carles@pina.cat>
4067
4068 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
4069 By default: disabled.
4070 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
4071 parameter.
4072
4073 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4074
4075 * font/font.c: Update copyright years.
4076 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
4077
4078 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4079
4080 * font/font.c: Include `ascii.h'.
4081 (ASCII_BITMAP_SIZE): New macro.
4082 (ascii_font_glyph): Define.
4083 (ascii_glyph_lookup): New function.
4084 (grub_font_get_string_width): Change comment. If glyph not found, use
4085 ascii_glyph_lookup.
4086 (grub_font_get_glyph_with_fallback): If glyph not available returns
4087 ascii_glyph_lookup.
4088 * util/grub-mkfont.c (file_formats): New enum.
4089 (options): Add `ascii-bitmaps' new option.
4090 (usage): Add `asii-bitmaps' new option.
4091 (write_font_ascii_bitmap): New function.
4092 (write_font): Rename to ...
4093 (write_font_p2): ... this. Remove print_glyphs call.
4094 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
4095 used. Call print_glyphs.
4096 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
4097
4098 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4099
4100 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
4101 (grub_bin2h_SOURCES): New variable.
4102 * util/bin2h.c: New file.
4103
4104 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4105
4106 * include/multiboot.h: Resynced with spec.
4107 * include/multiboot2.h: Likewise.
4108 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
4109 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
4110
4111 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4112
4113 * include/grub/term.h (grub_term_register_input,
4114 grub_term_register_output): Check return of terminal init()
4115 routines, and abort if errors are raised.
4116
4117 * commands/terminal.c: Update copyright year.
4118
4119 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4120
4121 * commands/terminal.c (grub_cmd_terminal_input)
4122 (grub_cmd_terminal_output): Check return of terminal init()
4123 routines, and abort if errors are raised.
4124
4125 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4126
4127 * include/grub/i386/bsd.h: Fix include pathes.
4128
4129 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4130
4131 Add missing *BSD copyright headers.
4132
4133 * include/grub/aout.h: Add BSD licence.
4134 * include/grub/i386/bsd.h: Parts under different licences moved to ...
4135 * include/grub/i386/freebsd_linker.h: ... here,
4136 * include/grub/i386/freebsd_reboot.h: ... here,
4137 * include/grub/i386/netbsd_bootinfo.h: ... here,
4138 * include/grub/i386/netbsd_reboot.h: ... here,
4139 * include/grub/i386/openbsd_bootarg.h: ... here,
4140 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
4141 licence to each file.
4142
4143 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4144
4145 * acinclude.m4: Remove `nop' assembly instruction; it's not
4146 implemented by all architectures.
4147
4148 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4149
4150 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
4151 ELILO. This is no longer necessary.
4152
4153 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
4154
4155 Added new tool, grub-scrit-check to verify grub.cfg syntax.
4156
4157 * util/grub-script-check.c: grub-script-check tool.
4158 * conf/common.rmk: Make rules for grub-script-check.
4159
4160 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4161
4162 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
4163 spotting it back in 2008. Shame on me for forgetting he did.
4164
4165 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
4166
4167 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4168
4169 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
4170 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
4171 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
4172 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
4173 (GRUB_VIDEO_TYPE_EFI): Rename to ...
4174 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
4175
4176 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
4177
4178 * include/grub/test.h: Add license header.
4179 * tests/example_functional_test.c: Likewise.
4180 * tests/example_unit_test.c: Likewise.
4181 * tests/lib/functional_test.c: Likewise.
4182 * tests/lib/test.c: Likewise.
4183 * tests/lib/unit_test.c: Likewise.
4184
4185 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
4186
4187 Use flag-based instead of hook-based video mode selection and "auto"
4188 keyword.
4189
4190 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
4191 (grub_video_set_mode): Changed prototype. All users updated.
4192 (grub_video_check_mode_flag): New inline function.
4193 * video/video.c (parse_modespec): New function.
4194 (grub_video_set_mode): Parse flags and keywords.
4195
4196 2010-01-17 Carles Pina i Estany <carles@pina.cat>
4197
4198 * util/misc.c (grub_util_info): Fix the order of the parameters in a
4199 fprintf call.
4200
4201 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
4202
4203 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
4204
4205 2010-01-16 Carles Pina i Estany <carles@pina.cat>
4206
4207 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
4208 string.
4209 * util/grub-emu.c (usage): Likewise.
4210 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
4211 * util/i386/efi/grub-mkimage.c (usage): Likewise.
4212 * util/i386/pc/grub-mkimage.c (usage): Likewise.
4213 * util/i386/pc/grub-setup.c (usage): Likewise.
4214
4215 2010-01-16 Carles Pina i Estany <carles@pina.cat>
4216
4217 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
4218 the message.
4219 (grub_util_info): Likewise.
4220 (grub_util_error): Likewise.
4221 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
4222 and/or new lines in `grub_util_warna', `grub_util_info',
4223 `grub_util_error' calls.
4224 * util/getroot.c: Likewise.
4225 * util/grub-editenv.c: Likewise.
4226 * util/grub-emu.c: Likewise.
4227 * util/grub-fstest.c: Likewise.
4228 * util/grub-mkdevicemap.c: Likewise.
4229 * util/grub-mkfont.c: Likewise.
4230 * util/grub-mkpasswd-pbkdf2.c: Likewise.
4231 * util/grub-mkrelpath.c: Likewise.
4232 * util/grub-pe2elf.c: Likewise.
4233 * util/grub-probe.c: Likewise.
4234 * util/hostdisk.c: Likewise.
4235 * util/i386/efi/grub-mkimage.c: Likewise.
4236 * util/i386/pc/grub-mkimage.c: Likewise.
4237 * util/i386/pc/grub-setup.c: Likewise.
4238 * util/ieee1275/ofpath.c: Likewise.
4239 * util/mkisofs/eltorito.c: Likewise.
4240 * util/mkisofs/rock.c: Likewise.
4241 * util/mkisofs/write.c: Likewise.
4242 * util/raid.c: Likewise.
4243 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
4244 * util/sparc64/ieee1275/grub-setup.c: Likewise.
4245
4246 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4247
4248 Enable multiboot on non-pc.
4249
4250 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
4251 multiboot.mod and multiboot2.mod to ...
4252 * conf/i386.rmk (pkglib_MODULES): ... here.
4253 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
4254 Moved to ...
4255 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
4256 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
4257 Moved to ...
4258 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
4259 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
4260 Moved to ...
4261 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
4262 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
4263 Moved to ...
4264 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
4265 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
4266 relocator.mod.
4267 (ata_mod_SOURCES): Removed.
4268 (ata_mod_CFLAGS): Likewise.
4269 (ata_mod_LDFLAGS): Likewise.
4270 (relocator_mod_SOURCES): Removed.
4271 (relocator_mod_CFLAGS): Likewise.
4272 (relocator_mod_ASFLAGS): Likewise.
4273 (relocator_mod_LDFLAGS): Likewise.
4274 Include i386.mk.
4275 * include/grub/x86_64/multiboot.h: New file.
4276 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
4277 Terminate EFI.
4278
4279 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4280
4281 Video multiboot support.
4282
4283 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
4284 New prototype.
4285 * include/multiboot.h: Resynced with multiboot specification.
4286 * include/multiboot2.h: Likewise.
4287 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
4288 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
4289 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
4290 (HAS_VGA_TEXT): Likewise.
4291 (accepts_video): New variable.
4292 (grub_multiboot_set_accepts_video): New function.
4293 (grub_multiboot_get_mbi_size): Account for video structures.
4294 (set_video_mode): New function.
4295 (retrieve_video_parameters): Likewise.
4296 (grub_multiboot_make_mbi): Fill video fields.
4297
4298 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4299
4300 Video driver ids.
4301
4302 * include/grub/video.h (grub_video_driver_id): New type.
4303 (grub_video_adapter): New member 'id'. All users updated.
4304 (grub_video_get_driver_id): New proto.
4305 * video/video.c (grub_video_get_driver_id): New function.
4306
4307 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4308
4309 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
4310 `var=val'.
4311
4312 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4313
4314 * normal/cmdline.c (print_completion): Gettextizze.
4315
4316 2001-01-14 Carles Pina i Estany <carles@pina.cat>
4317
4318 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
4319
4320 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4321
4322 * gettext/gettext.c (grub_gettext_translate): Push and pop
4323 grub_errno.
4324 (grub_gettext_delete_list): Change comment style.
4325 * kern/err.c (grub_error): Gettextizze.
4326 (grub_fatal): Gettextizze.
4327
4328 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4329
4330 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
4331 (grub_linux16_real_boot): ... this.
4332 * kern/i386/loader.S: Likewise.
4333 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
4334 (grub_linux16_boot): New function. Switches to text mode and calls
4335 grub_linux16_real_boot().
4336
4337 * loader/i386/bsd.c: Include `<grub/video.h>'.
4338 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
4339 text mode before calling grub_unix_real_boot().
4340
4341 * loader/i386/multiboot.c: Include `<grub/video.h>'.
4342 (grub_multiboot_boot): Switch to text mode before calling
4343 grub_relocator32_boot().
4344
4345 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
4346 (grub_chainloader_boot): Switch to text mode before calling
4347 grub_chainloader_real_boot().
4348
4349 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4350 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4351
4352 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
4353 non-empty value.
4354
4355 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4356 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4357
4358 * util/grub.d/00_header.in: Define a "savedefault" function for use
4359 in menu entries.
4360 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
4361
4362 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4363 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4364
4365 * util/grub-mkconfig_lib.in (save_default_entry): Only set
4366 saved_entry if boot_once is unset.
4367 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
4368 previous saved entry (i.e. grub-reboot).
4369
4370 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4371
4372 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
4373
4374 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4375
4376 * util/grub.d/00_header.in: Use `set var=val' rather than plain
4377 `var=val'.
4378 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
4379
4380 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4381
4382 * util/grub-reboot.in: Fix --version output.
4383 * util/grub-set-default.in: Likewise.
4384
4385 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4386
4387 * util/grub.d/00_header.in: Silently ignore zero-sized environment
4388 blocks.
4389
4390 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4391
4392 * util/grub.d/00_header.in: Quote the value assigned to `default',
4393 in case it contains spaces.
4394
4395 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4396
4397 * util/grub.d/30_os-prober.in: Fix merge error that moved a
4398 `save_default_entry' call from the macosx case to the linux case.
4399
4400 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4401 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
4402
4403 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
4404 in `chosen' environment variable.
4405 * normal/menu_text.c (get_entry_number): Check if the variable
4406 matches the title of a menu entry.
4407 (run_menu): Pass menu to get_entry_number.
4408
4409 * util/grub-reboot.in: New file.
4410 * util/grub-set-default.in: New file.
4411 * conf/common.rmk (grub-reboot): New utility.
4412 (grub-set-default): New utility.
4413
4414 * util/grub-mkconfig_lib.in (save_default_entry): New function.
4415 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
4416 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
4417 move it to `saved_entry' for the next boot. Load environment on
4418 initialisation.
4419 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
4420 * util/grub.d/10_hurd.in: Likewise.
4421 * util/grub.d/10_linux.in (linux_entry): Likewise.
4422 * util/grub.d/10_windows.in: Likewise.
4423 * util/grub.d/30_os-prober.in: Likewise.
4424
4425 * util/grub-install.in: Create environment block.
4426 * util/i386/efi/grub-install.in: Likewise.
4427 * util/ieee1275/grub-install.in: Likewise.
4428 * util/sparc64/ieee1275/grub-install.in: Likewise.
4429
4430 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
4431
4432 Unit testing framework for GRUB.
4433
4434 * Makefile.in: Test framework build rules for 'make check'.
4435 * conf/tests.rmk: Build rules for individual tests and framework.
4436
4437 * include/grub/test.h: Header file for whitebox tests.
4438 * tests/lib/functional_test.c: Framework support for whitebox
4439 functional tests.
4440 * tests/lib/test.c: Common whitebox testing code for unit and
4441 functional tests.
4442 * tests/lib/unit_test.c: Framework support for whitebox unit
4443 tests.
4444
4445 * tests/util/grub-shell-tester.in: Support utility for grub-script
4446 tests.
4447 * tests/util/grub-shell.in: Utility to execute grub-script
4448 commands in a Qemu instance.
4449
4450 * tests/example_functional_test.c: Example whitebox functional
4451 test.
4452 * tests/example_grub_script_test.in: Example grub-script test.
4453 * tests/example_scripted_test.in: Example scripted test.
4454 * tests/example_unit_test.c: Example whitebox unit test.
4455
4456 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
4457
4458 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
4459 Add loader/i386/multiboot_mbi.c.
4460 (multiboot2_mod_SOURCES): Likewise.
4461 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
4462 (multiboot2_mod_SOURCES): Likewise.
4463 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
4464 (grub_multiboot_make_mbi): Likewise.
4465 (grub_multiboot_free_mbi): Likewise.
4466 (grub_multiboot_init_mbi): Likewise.
4467 (grub_multiboot_add_module): Likewise.
4468 (grub_multiboot_set_bootdev): Likewise.
4469 * loader/i386/multiboot.c (mbi): Removed.
4470 (mbi_dest): Likewise.
4471 (alloc_mbi): New variable.
4472 (grub_multiboot_payload_size): Removed. All users updated.
4473 (grub_multiboot_pure_size): New variable.
4474 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
4475 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
4476 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
4477 (grub_fill_multiboot_mmap): Likewise.
4478 (grub_multiboot_get_bootdev): Likewise.
4479 (grub_multiboot): Use multiboot_mbi functions.
4480 * loader/i386/multiboot_mbi.c: New file.
4481
4482 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4483
4484 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
4485 it would result in module crash.
4486
4487 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4488
4489 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
4490 (grub_ofconsole_getwh): Split to ...
4491 (grub_ofconsole_getwh): ... this.
4492 (grub_ofconsole_dimensions): ...and this.
4493 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
4494
4495 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
4496
4497 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
4498
4499 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4500
4501 * loader/i386/pc/multiboot2.c: Removed stalled file.
4502
4503 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4504
4505 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
4506 Reported by: Grégoire Sutre
4507
4508 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
4509
4510 * util/misc.c (canonicalize_file_name): New function.
4511 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
4512 instead of realpath().
4513
4514 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
4515
4516 * util/grub-install.in (usage): Clarify meaning of --root-directory,
4517 and make it clearer that it's optional. Based on confusion
4518 witnessed on IRC.
4519
4520 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4521
4522 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
4523 in premature implicit newline.
4524
4525 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4526
4527 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
4528 which resulted in garbled command line at the end of screen.
4529
4530 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4531
4532 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
4533 initialization with similar approach as with other Linux loaders.
4534
4535 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4536
4537 Fix i386-ieee1275 build.
4538
4539 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
4540 and grub_term_height() for video_{width,height} initialization.
4541
4542 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4543
4544 Fix grub-emu build.
4545
4546 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
4547
4548 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4549 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4550
4551 Support for multiple terminals.
4552
4553 * Makefile.in (pkglib_DATA): terminal.lst.
4554 (terminal.lst): New target.
4555 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
4556 (GRUB_MOD_INIT(handler)): Likewise.
4557 (GRUB_MOD_FINI(handler)): Likewise.
4558 * commands/help.c (grub_cmd_help): Handle multiple terminals.
4559 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
4560 * commands/sleep.c (do_print): Use grub_term_restore_pos.
4561 (grub_cmd_sleep): Use grub_term_save_pos.
4562 * commands/terminal.c: New file.
4563 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
4564 commands/terminal.c and lib/charset.c.
4565 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
4566 (pkglib_MODULES): Add terminal.mod.
4567 (terminal_mod_SOURCES): New variable.
4568 (terminal_mod_CFLAGS): Likewise.
4569 (terminal_mod_LDFLAGS): Likewise.
4570 * genhandlerlist.sh: Don't handle terminals.
4571 * genmk.rb: Generate terminal-*.lst.
4572 * genterminallist.sh: New file.
4573 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
4574 (grub_is_valid_utf8): Likewise.
4575 (grub_utf8_to_ucs4_alloc): Likewise.
4576 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
4577 (grub_menu_register_viewer): Changed argument.
4578 (grub_menu_try_text): New proto.
4579 (grub_gfxmenu_try_hook): New declaration.
4580 * include/grub/normal.h (grub_normal_exit_level): New declaration.
4581 (grub_menu_init_page): Additional argument term.
4582 (grub_normal_init_page): Likewise.
4583 (grub_cmdline_get): Arguments simplified.
4584 (grub_utf8_to_ucs4_alloc): Removed.
4585 (grub_print_ucs4): Additional argument term.
4586 (grub_getstringwidth): Likewise.
4587 (grub_print_message_indented): Likewise.
4588 (grub_menu_text_register_instances): New proto.
4589 (grub_show_menu): Likewise.
4590 (read_terminal_list): Likewise.
4591 (grub_set_more): Likewise.
4592 * include/grub/parser.h: Include handler.h.
4593 * include/grub/reader.h: Rewritten.
4594 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
4595 (GRUB_TERM_WIDTH): Changed to function.
4596 (GRUB_TERM_HEIGHT): Likewise.
4597 (GRUB_TERM_BORDER_WIDTH): Likewise.
4598 (GRUB_TERM_BORDER_HEIGHT): Likewise.
4599 (GRUB_TERM_NUM_ENTRIES): Likewise.
4600 (GRUB_TERM_ENTRY_WIDTH): Likewise.
4601 (GRUB_TERM_CURSOR_X): Likewise.
4602 (grub_term_input_class): Likewise.
4603 (grub_term_output_class): Likewise.
4604 (grub_term_outputs_disabled): New declaration.
4605 (grub_term_inputs_disabled): Likewise.
4606 (grub_term_outputs): Likewise.
4607 (grub_term_inputs): Likewise.
4608 (grub_term_register_input): Rewritten.
4609 (grub_term_register_output): Likewise.
4610 (grub_term_unregister_input): Likewise.
4611 (grub_term_unregister_output): Likewise.
4612 (FOR_ACTIVE_TERM_INPUTS): New macro.
4613 (FOR_DISABLED_TERM_INPUTS): Likewise.
4614 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
4615 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
4616 * include/grub/terminfo.h: Add oterm argument to all protypes.
4617 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
4618 Use grub_rescue_run.
4619 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
4620 All users updated.
4621 * kern/reader.c: Removed. All users updated.
4622 * kern/rescue_reader.c (grub_rescue_init): Removed.
4623 (grub_rescue_reader): Likewise.
4624 (grub_register_rescue_reader): Likewise.
4625 (grub_rescue_run): New function based on kern/reader.c.
4626 * kern/term.c: Adapted for multiterm.
4627 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
4628 (grub_is_valid_utf8): Likewise.
4629 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
4630 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
4631 right terminal.
4632 * loader/i386/linux.c (grub_linux_boot): Likewise.
4633 * normal/auth.c (grub_username_get): New function.
4634 (grub_auth_check_authentication): Use grub_username_get.
4635 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
4636 * normal/color.c: Adapt for multiterm.
4637 * normal/main.c (read_config_file): Don't use grub_reader_loop.
4638 (grub_normal_init_page): Additional argument term.
4639 (read_lists): Call read_terminal_lists.
4640 (grub_enter_normal_mode): Call grub_cmdline_run.
4641 Handle grub_normal_exit_level.
4642 (grub_cmd_normal): Make reentrant.
4643 (grub_cmd_normal_exit): New function.
4644 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
4645 * normal/menu.c: Adapt for multiterm.
4646 * normal/menu_entry.c: Likewise.
4647 * normal/menu_text.c: Likewise.
4648 * normal/menu_viewer.c: Removed. All users updated.
4649 * normal/term.c: New file.
4650 * util/console.c: Change order of includes to workaround a bug in
4651 ncurses headers.
4652 * term/terminfo.c: New argument oterm on all exported functions.
4653 All users updated.
4654 * util/grub-editenv.c (grub_term_input_class): Removed.
4655 (grub_term_output_class): Likewise.
4656
4657 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4658
4659 Make loader output a bit more user-friendly.
4660
4661 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
4662 is being loaded. Likewise for the Hurd.
4663
4664 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
4665 that kernel of FreeBSD ${version} is being loaded.
4666
4667 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
4668 grub_dprintf().
4669 (grub_cmd_initrd): Likewise.
4670 * util/grub.d/10_linux.in (linux_entry): Print message indicating
4671 that Linux ${version} is being loaded. Likewise for initrd.
4672
4673 2010-01-09 Carles Pina i Estany <carles@pina.cat>
4674
4675 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
4676
4677 2010-01-08 Carles Pina i Estany <carles@pina.cat>
4678
4679 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
4680 (GRUB_MOD_INIT): Gettextizze.
4681 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
4682 (GRUB_MOD_INIT): Gettextizze.
4683 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
4684 (grub_cmd_linux): Capitalise Linux.
4685 (GRUB_MOD_INIT): Gettextizze.
4686 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
4687 (grub_cmd_linux): Capitalise Linux.
4688 (GRUB_MOD_INIT): Gettextizze.
4689 * loader/i386/linux.c: Include `<grub/i18n.h>'.
4690 (grub_cmd_linux): Capitalise Linux.
4691 (GRUB_MOD_INIT): Gettextizze.
4692 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
4693 (GRUB_MOD_INIT): Gettextizze.
4694 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
4695 (grub_cmd_linux): Capitalise Linux.
4696 (GRUB_MOD_INIT): Gettextizze.
4697 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
4698 (grub_cpu_xnu_init): Gettextizze.
4699 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
4700 (GRUB_MOD_INIT): Gettextizze.
4701 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
4702 (GRUB_MOD_INIT): Gettextizze.
4703 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
4704 (grub_linux_load64): Capitalise Linux.
4705 (GRUB_MOD_INIT): Gettextizze.
4706 * loader/xnu.c: Include `<grub/i18n.h>'.
4707 (GRUB_MOD_INIT): Gettextizze.
4708 * po/POTFILES: Add `loader/efi/appleloader.c',
4709 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
4710 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
4711 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
4712 `loader/i386/xnu.c', `loader/multiboot_loader.c',
4713 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
4714 and `loader/xnu.c'.
4715
4716 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
4717
4718 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
4719
4720 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
4721
4722 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
4723 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
4724 * util/mkisofs/mkisofs.c (main): Readjust --version output.
4725
4726 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4727
4728 Reset Multiboot 2 support. New loader implements the draft in
4729 /branches/multiboot2 and shares as much code as possible with the
4730 production Multiboot 1 implementation.
4731
4732 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
4733 * loader/multiboot2.c: Likewise.
4734 * loader/i386/multiboot_helper.S: Likewise.
4735 * include/multiboot2.h: Replace with latest version from the draft
4736 in /branches/multiboot2.
4737
4738 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
4739 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
4740 and `loader/multiboot2.c'.
4741 (pkglib_MODULES): Add `multiboot2.mod'.
4742 (multiboot2_mod_SOURCES): New variable.
4743 (multiboot2_mod_LDFLAGS): Likewise.
4744 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
4745
4746 * conf/i386-pc.rmk: Likewise.
4747
4748 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
4749 (multiboot_mod_SOURCES): Remove variable.
4750 (multiboot_mod_LDFLAGS): Likewise.
4751 (multiboot_mod_CFLAGS): Likewise.
4752
4753 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
4754 `<multiboot2.h>' instead of `<multiboot.h>'.
4755 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
4756 (MULTIBOOT_HEADER_MAGIC): New macros.
4757
4758 * loader/multiboot_loader.c (module_version_status): Remove variable.
4759 (find_multi_boot2_header): Remove function.
4760 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
4761 logic. Always check for the Multiboot version we're compiling for.
4762 (grub_cmd_module_loader): Likewise.
4763 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
4764 command instead of `multiboot'.
4765
4766 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4767
4768 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
4769 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
4770 all users.
4771
4772 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4773 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4774
4775 Fix breakage introduced with previous commit.
4776
4777 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
4778 commands.
4779 * normal/handler.c (read_handler_list): Revert part of previous commit
4780 affecting this file.
4781 * normal/main.c (read_lists): Move read_handler_list() call back to ...
4782 (grub_normal_execute): ... here.
4783
4784 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4785
4786 Merge prefix-redefinition-fix branch.
4787
4788 * normal/autofs.c (read_fs_list): Make function capable of being
4789 run multiple times, gracefuly replacing the previous data
4790 structures.
4791 * normal/dyncmd.c (read_command_list): Likewise.
4792 * normal/handler.c (read_handler_list): Likewise.
4793 * normal/main.c (read_lists): New function. Calls all the
4794 list reading functions.
4795 (grub_normal_execute): Use read_lists() instead of calling all
4796 list reading functions explicitly. Register read_lists() as a
4797 variable hook attached to ${prefix}.
4798
4799 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4800
4801 Merge crypto branch.
4802
4803 * Makefile.in (pkglib_DATA): Add crypto.lst.
4804 (crypto.lst): New target.
4805 * commands/hashsum.c: New file.
4806 * commands/password.c (check_password): Use grub_crypto_memcmp.
4807 * commands/password_pbkdf2.c: New file.
4808 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
4809 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
4810 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
4811 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
4812 -I$(srcdir)/lib/libgcrypt_wrap.
4813 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
4814 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
4815 password_pbkdf2.mod.
4816 (crypto_mod_SOURCES): New variable.
4817 (crypto_mod_CFLAGS): Likewise.
4818 (crypto_mod_LDFLAGS): Likewise.
4819 (hashsum_mod_SOURCES): New variable.
4820 (hashsum_mod_CFLAGS): Likewise.
4821 (hashsum_mod_LDFLAGS): Likewise.
4822 (pbkdf2_mod_SOURCES): New variable.
4823 (pbkdf2_mod_CFLAGS): Likewise.
4824 (pbkdf2_mod_LDFLAGS): Likewise.
4825 (password_pbkdf2_mod_SOURCES): New variable.
4826 (password_pbkdf2_mod_CFLAGS): Likewise.
4827 (password_pbkdf2_mod_LDFLAGS): Likewise.
4828 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
4829 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
4830 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
4831 Include conf/gcry.rmk.
4832 * include/grub/auth.h: Rewritten.
4833 * include/grub/crypto.h: New file.
4834 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
4835 * include/grub/normal.h (read_crypto_list): New prototype.
4836 * lib/crypto.c: New file.
4837 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
4838 * lib/pbkdf2.c: Likewise.
4839 * normal/auth.c (grub_auth_strcmp): Removed.
4840 (grub_iswordseparator): Likewise.
4841 (grub_auth_strword): Likewise.
4842 (is_authenticated): Use grub_strword.
4843 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
4844 and grub_strword. Pass entered password to authentication callback.
4845 * normal/crypto.c: New file.
4846 * normal/main.c: Call read_crypto_list.
4847 * util/grub-mkpasswd-pbkdf2.c: New file.
4848 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
4849
4850 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
4851
4852 Fix descent and ascent calculation.
4853
4854 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
4855 (options): New option "asce".
4856 (usage): Likewise.
4857 (add_char): Ignore invalid glyphs for descent calculation.
4858 Calculate ascent from actual content.
4859 (print_glyphs): Use 'asce'.
4860 (write_font): Likewise. Allow ascent override.
4861 (main): Handle "asce" option.
4862
4863 2010-01-06 Carles Pina i Estany <carles@pina.cat>
4864
4865 * kern/err.c: Include `<grub/i18n.h>'.
4866 (grub_print_error): Add full stop. Gettextizze.
4867 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
4868 (grub_bsd_load_elf): Capitalise ELF.
4869 (grub_cmd_freebsd_loadenv): Add `s' in error string.
4870 (grub_cmd_freebsd_module): Likewise.
4871 (grub_cmd_freebsd_module_elf): Likewise.
4872 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
4873
4874 2010-01-06 Carles Pina i Estany <carles@pina.cat>
4875
4876 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
4877 * commands/search_file.c (HELP_MESSAGE): New macro.
4878 * commands/search_label.c (HELP_MESSAGE): Likewise.
4879 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
4880 * po/POTFILES: Add `commands/search_file.c',
4881 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
4882 `commands/search.c'.
4883
4884 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
4885
4886 * config.rpath: Update from Gnulib.
4887
4888 2010-01-05 Yves Blusseau <blusseau@zetam.org>
4889
4890 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
4891
4892 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
4893
4894 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
4895
4896 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4897
4898 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
4899 arguments to fread so that we get a return value in bytes, rather
4900 than something that will normally be rounded down to 0.
4901 Adjust error handling to avoid producing garbage when size_t is not
4902 the same size as long long.
4903
4904 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4905
4906 * util/mkisofs/write.c (padblock_write): Check return value of
4907 fread.
4908
4909 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
4910
4911 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
4912 floppy images now.
4913
4914 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
4915
4916 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
4917
4918 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
4919 instead of manual alignment.
4920 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
4921 verbose). Avoid attempts to read past end of the device
4922 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
4923 but GRUB_DISK_CACHE_SIZE may exceed that).
4924
4925 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
4926
4927 * commands/crc.c (grub_cmd_crc): Abort on read errors.
4928 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
4929 it to upper layer.
4930
4931 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4932
4933 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
4934 New constant.
4935 (grub_efi_piwg_device_path): New structure
4936 (grub_efi_piwg_device_path_t): New type.
4937 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
4938 (devpath_1): Transform to a structure. All users updated.
4939 (devpath_2): Likewise.
4940 (devpath_3): Likewise.
4941 (devpath_4): Likewise.
4942 (devpath_5): Likewise.
4943
4944 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4945
4946 * loader/efi/appleloader.c: Restored. Update all users.
4947
4948 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
4949
4950 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
4951
4952 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
4953 (struct boot_blocklist): Move from here ...
4954 * include/grub/i386/pc/boot.h [ASM_FILE]
4955 (struct grub_boot_blocklist): ... to here. Update all users.
4956 (setup): Only initialize `start' member of `first_block'
4957 structure. Add assert() calls to verify the other members.
4958
4959 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
4960 (generate_image): Fix broken blocklist length initialization.
4961 Add assert() call to verify blocklist `segment' field.
4962
4963 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
4964
4965 * loader/efi/appleloader.c: Remove. Update all users.
4966
4967 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
4968
4969 * boot/i386/pc/boot.S: Update copyright year.
4970 * boot/i386/pc/cdboot.S: Likewise.
4971 * boot/i386/pc/diskboot.S: Likewise.
4972 * boot/i386/pc/lnxboot.S: Likewise.
4973 * boot/i386/pc/pxeboot.S: Likewise.
4974 * bus/pci.c: Likewise.
4975 * commands/cmp.c: Likewise.
4976 * commands/help.c: Likewise.
4977 * commands/hexdump.c: Likewise.
4978 * commands/i386/pc/halt.c: Likewise.
4979 * commands/i386/pc/play.c: Likewise.
4980 * commands/i386/pc/vbeinfo.c: Likewise.
4981 * commands/ls.c: Likewise.
4982 * commands/test.c: Likewise.
4983 * disk/dmraid_nvidia.c: Likewise.
4984 * disk/i386/pc/biosdisk.c: Likewise.
4985 * disk/ieee1275/nand.c: Likewise.
4986 * disk/ieee1275/ofdisk.c: Likewise.
4987 * disk/lvm.c: Likewise.
4988 * disk/raid.c: Likewise.
4989 * disk/raid6_recover.c: Likewise.
4990 * disk/scsi.c: Likewise.
4991 * fs/affs.c: Likewise.
4992 * fs/cpio.c: Likewise.
4993 * fs/ext2.c: Likewise.
4994 * fs/hfs.c: Likewise.
4995 * fs/iso9660.c: Likewise.
4996 * fs/ntfs.c: Likewise.
4997 * fs/sfs.c: Likewise.
4998 * fs/udf.c: Likewise.
4999 * fs/ufs.c: Likewise.
5000 * fs/xfs.c: Likewise.
5001 * gencmdlist.sh: Likewise.
5002 * genmk.rb: Likewise.
5003 * include/grub/disk.h: Likewise.
5004 * include/grub/efi/api.h: Likewise.
5005 * include/grub/efi/efi.h: Likewise.
5006 * include/grub/efi/pe32.h: Likewise.
5007 * include/grub/elf.h: Likewise.
5008 * include/grub/fs.h: Likewise.
5009 * include/grub/i386/at_keyboard.h: Likewise.
5010 * include/grub/i386/pc/memory.h: Likewise.
5011 * include/grub/i386/pc/vbe.h: Likewise.
5012 * include/grub/i386/pci.h: Likewise.
5013 * include/grub/i386/tsc.h: Likewise.
5014 * include/grub/ieee1275/ieee1275.h: Likewise.
5015 * include/grub/ntfs.h: Likewise.
5016 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
5017 * include/grub/sparc64/libgcc.h: Likewise.
5018 * include/grub/symbol.h: Likewise.
5019 * include/grub/types.h: Likewise.
5020 * include/multiboot2.h: Likewise.
5021 * io/gzio.c: Likewise.
5022 * kern/device.c: Likewise.
5023 * kern/disk.c: Likewise.
5024 * kern/efi/efi.c: Likewise.
5025 * kern/efi/mm.c: Likewise.
5026 * kern/elf.c: Likewise.
5027 * kern/file.c: Likewise.
5028 * kern/i386/dl.c: Likewise.
5029 * kern/i386/pc/init.c: Likewise.
5030 * kern/i386/pc/startup.S: Likewise.
5031 * kern/ieee1275/ieee1275.c: Likewise.
5032 * kern/ieee1275/init.c: Likewise.
5033 * kern/main.c: Likewise.
5034 * kern/mm.c: Likewise.
5035 * kern/powerpc/dl.c: Likewise.
5036 * kern/sparc64/dl.c: Likewise.
5037 * kern/x86_64/dl.c: Likewise.
5038 * lib/hexdump.c: Likewise.
5039 * loader/efi/appleloader.c: Likewise.
5040 * loader/i386/ieee1275/linux.c: Likewise.
5041 * loader/i386/pc/chainloader.c: Likewise.
5042 * loader/i386/pc/linux.c: Likewise.
5043 * loader/i386/pc/multiboot2.c: Likewise.
5044 * loader/ieee1275/multiboot2.c: Likewise.
5045 * loader/multiboot2.c: Likewise.
5046 * loader/multiboot_loader.c: Likewise.
5047 * loader/powerpc/ieee1275/linux.c: Likewise.
5048 * normal/completion.c: Likewise.
5049 * normal/menu_entry.c: Likewise.
5050 * partmap/apple.c: Likewise.
5051 * util/grub.d/10_hurd.in: Likewise.
5052 * util/hostfs.c: Likewise.
5053 * video/readers/png.c: Likewise.
5054
5055 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
5056
5057 * include/grub/misc.h (GNUC_PREREQ): New macro.
5058 (ATTRIBUTE_ERROR): New macro.
5059 * include/grub/list.h (grub_bad_type_cast_real): Use
5060 ATTRIBUTE_ERROR.
5061
5062 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5063
5064 * normal/menu_text.c (print_message): Change messages.
5065
5066 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5067
5068 * normal/menu_entry.c (store_completion): Gettextizze.
5069
5070 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5071
5072 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
5073
5074 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5075
5076 * po/POTFILES: Sort correctly.
5077
5078 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5079
5080 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
5081 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
5082 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
5083 full stop.
5084 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
5085 summary. Gettextizze the strings.
5086 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
5087 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
5088 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
5089 full stop.
5090 (GRUB_MOD_INIT): Remove command name from summary.
5091 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
5092 summary.
5093 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
5094 * term/i386/pc/serial.c (options): Add full stops.
5095 (GRUB_MOD_INIT): Remove command name from the summary.
5096
5097 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5098
5099 * commands/acpi.c: Gettextizze help strings and/or options. Include
5100 `grub/i18n.h' if needed.
5101 * commands/blocklist.c: Likewise.
5102 * commands/boot.c: Likewise.
5103 * commands/cat.c: Likewise.
5104 * commands/cmp.c: Likewise.
5105 * commands/configfile.c: Likewise.
5106 * commands/crc.c: Likewise.
5107 * commands/date.c: Likewise.
5108 * commands/echo.c: Likewise.
5109 * commands/efi/fixvideo.c: Likewise.
5110 * commands/efi/loadbios.c: Likewise.
5111 * commands/gptsync.c: Likewise.
5112 * commands/halt.c: Likewise.
5113 * commands/handler.c: Likewise.
5114 * commands/hdparm.c: Likewise.
5115 * commands/hexdump.c: Likewise.
5116 * commands/i386/cpuid.c: Likewise.
5117 * commands/i386/pc/drivemap.c: Likewise.
5118 * commands/i386/pc/halt.c: Likewise.
5119 * commands/i386/pc/pxecmd.c: Likewise.
5120 * commands/i386/pc/vbeinfo.c: Likewise.
5121 * commands/i386/pc/vbetest.c: Likewise.
5122 * commands/ieee1275/suspend.c: Likewise.
5123 * commands/keystatus.c: Likewise.
5124 * commands/loadenv.c: Likewise.
5125 * commands/ls.c: Likewise.
5126 * commands/lsmmap.c: Likewise.
5127 * commands/lspci.c: Likewise.
5128 * commands/memrw.c: Likewise.
5129 * commands/minicmd.c: Likewise.
5130 * commands/parttool.c: Likewise.
5131 * commands/password.c: Likewise.
5132 * commands/probe.c: Likewise.
5133 * commands/read.c: Likewise.
5134 * commands/reboot.c: Likewise.
5135 * commands/search.c: Likewise.
5136 * commands/sleep.c: Likewise.
5137 * commands/test.c: Likewise.
5138 * commands/true.c: Likewise.
5139 * commands/usbtest.c: Likewise.
5140 * commands/videotest.c: Likewise.
5141 * commands/xnu_uuid.c: Likewise.
5142 * disk/loopback.c: Likewise.
5143 * hello/hello.c: Likewise.
5144 * loader/i386/bsd.c: Likewise.
5145 * term/i386/pc/serial.c: Likewise.
5146 * po/POTFILES: Add new files.
5147
5148 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
5149
5150 * term/i386/pc/at_keyboard.c
5151 (keyboard_controller_wait_untill_ready): Rename to ...
5152 (keyboard_controller_wait_until_ready): ... this. Update all users.
5153
5154 2010-01-01 Carles Pina i Estany <carles@pina.cat>
5155
5156 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
5157 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
5158 string using string width.
5159 * normal/menu_text.c (grub_print_message_indented): Use
5160 grub_print_spaces and not print_spaces.
5161 (print_timeout): Likewise.
5162 (print_spaces): Move to...
5163 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
5164
5165 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
5166
5167 Import from Gnulib.
5168
5169 * gnulib/getdelim.c: New file.
5170 * gnulib/getline.c: Likewise.
5171
5172 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
5173
5174 * include/grub/list.h (grub_assert_fail): Removed.
5175 (grub_bad_type_cast_real): New function.
5176 (grub_bad_type_cast): New macro.
5177 (GRUB_AS_LIST): Use grub_bad_type_cast.
5178 (GRUB_AS_LIST_P): Likewise.
5179 (GRUB_AS_NAMED_LIST): Likewise.
5180 (GRUB_AS_NAMED_LIST_P): Likewise.
5181 (GRUB_AS_PRIO_LIST): Likewise.
5182 (GRUB_AS_PRIO_LIST_P): Likewise.
5183 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
5184
5185 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
5186
5187 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
5188 Fix syntax error.
5189
5190 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
5191
5192 * configure.ac: Check for TARGET_CFLAGS initialization before we
5193 initialize it ourselves (sigh).
5194 Move a few modifications to TARGET_CFLAGS to be unconditional
5195 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
5196 eh_frame)
5197
5198 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
5199 * term/i386/pc/at_keyboard.c
5200 (keyboard_controller_wait_untill_ready): Likewise.
5201 (keyboard_controller_led): Rename `led_status' paramter to avoid
5202 name conflict.
5203
5204 2009-12-28 Carles Pina i Estany <carles@pina.cat>
5205
5206 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
5207 quotes.
5208
5209 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5210
5211 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
5212
5213 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5214
5215 * normal/menu_text.c (grub_print_message_indented): Prevent
5216 past-the-end-of-array dereference.
5217
5218 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5219
5220 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
5221 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
5222
5223 2009-12-27 Carles Pina i Estany <carles@pina.cat>
5224
5225 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
5226 * normal/main.c (grub_normal_read_line): Remove a space from the
5227 default prompt.
5228
5229 2009-12-27 Carles Pina i Estany <carles@pina.cat>
5230
5231 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
5232 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5233 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5234 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5235 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5236 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5237 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5238
5239 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5240
5241 * video/readers/jpeg.c (cmd): Declare.
5242 (grub_cmd_jpegtest): Use `grub_command_t' type.
5243 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5244 Assign to `cmd'.
5245 (GRUB_MOD_FINI): Use `cmd' to unregister.
5246 * video/readers/png.c (cmd): Declare.
5247 (grub_cmd_pngtest): Use `grub_command_t' type.
5248 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5249 Assign to `cmd'.
5250 (GRUB_MOD_FINI): Use `cmd' to unregister.
5251 * video/readers/tga.c (cmd): Declare.
5252 (grub_cmd_tgatest): Use `grub_command_t' type.
5253 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5254 Assign to `cmd'.
5255 (GRUB_MOD_FINI): Use `cmd' to unregister.
5256
5257 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5258
5259 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
5260 stops.
5261 * kern/corecmd.c (grub_register_core_commands): Likewise.
5262 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
5263 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5264 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
5265 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5266 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5267 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
5268 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5269 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
5270 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5271 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5272 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5273 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5274 * normal/handler.c (insert_handler): Likewise.
5275 * normal/main.c (GRUB_MOD_INIT): Likewise.
5276 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
5277
5278 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5279
5280 * commands/help.c (grub_cmd_help): Print the command name before the
5281 summary.
5282 (GRUB_MOD_INIT): Remove command name from the summary.
5283 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
5284 string as summary.
5285 * lib/arg.c (find_long): Print the command name before the summary.
5286 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
5287 summary.
5288 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
5289 * commands/cat.c (GRUB_MOD_INIT): Likewise.
5290 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
5291 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
5292 * commands/crc.c (GRUB_MOD_INIT): Likewise.
5293 * commands/date.c (GRUB_MOD_INIT): Likewise.
5294 * commands/echo.c (GRUB_MOD_INIT): Likewise.
5295 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
5296 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
5297 * commands/handler.c (GRUB_MOD_INIT): Likewise.
5298 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
5299 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
5300 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
5301 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
5302 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
5303 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
5304 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
5305 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
5306 * commands/ls.c (GRUB_MOD_INIT): Likewise.
5307 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
5308 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
5309 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
5310 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
5311 * commands/password.c (GRUB_MOD_INIT): Likewise.
5312 * commands/probe.c (GRUB_MOD_INIT): Likewise.
5313 * commands/read.c (GRUB_MOD_INIT): Likewise.
5314 * commands/search.c (GRUB_MOD_INIT): Likewise.
5315 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
5316 * commands/test.c (GRUB_MOD_INIT): Likewise.
5317 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
5318 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
5319 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
5320 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
5321 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
5322 * lib/arg.c (GRUB_MOD_INIT): Likewise.
5323 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
5324 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5325 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5326 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5327 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
5328 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
5329 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
5330 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
5331
5332 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5333
5334 Use search command for preliminar UUID search.
5335
5336 * commands/search.c: Split into ...
5337 * commands/search_wrap.c: ...this
5338 * commands/search.c: ...and this.
5339 * commands/search_file.c: New file.
5340 * commands/search_label.c: New file.
5341 * commands/search_uuid.c: New file.
5342 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
5343 Add commands/search_wrap.c, commands/search_file.c,
5344 commands/search_label.c and commands/search_uuid.c.
5345 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
5346 (search_mod_SOURCES): Set to commands/search_wrap.c.
5347 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
5348 search_label.mod.
5349 (search_fs_file_mod_SOURCES): New variable.
5350 (search_fs_file_mod_CFLAGS): Likewise.
5351 (search_fs_file_mod_LDFLAGS): Likewise.
5352 (search_label_mod_SOURCES): Likewise.
5353 (search_label_mod_CFLAGS): Likewise.
5354 (search_label_mod_LDFLAGS): Likewise.
5355 (search_fs_uuid_mod_SOURCES): New variable.
5356 (search_fs_uuid_mod_CFLAGS): Likewise.
5357 (search_fs_uuid_mod_LDFLAGS): Likewise.
5358 (fs_file_mod_SOURCES): Removed.
5359 (fs_file_mod_CFLAGS): Likewise.
5360 (fs_file_mod_LDFLAGS): Likewise.
5361 (fs_uuid_mod_SOURCES): Removed.
5362 (fs_uuid_mod_CFLAGS): Likewise.
5363 (fs_uuid_mod_LDFLAGS): Likewise.
5364 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
5365 Set to util/grub-install.in.
5366 * disk/fs_file.c: Removed.
5367 * disk/fs_uuid.c: Likewise.
5368 * include/grub/search.h: New file.
5369 * util/grub-install.in: Handle sparc64.
5370 Create and use load.cfg.
5371 * util/sparc64/ieee1275/grub-install.in: Removed.
5372
5373 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5374
5375 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
5376 Ignore return status if CF is cleared.
5377 (grub_biosdisk_get_diskinfo_standard): Likewise.
5378
5379 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5380
5381 * term/i386/pc/at_keyboard.c
5382 (keyboard_controller_wait_untill_ready): New function.
5383 (grub_keyboard_controller_write, grub_keyboard_controller_read)
5384 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
5385 for keyboard polling, rather than duplicate the same loop. This
5386 saves a few bytes in code size.
5387
5388 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5389
5390 Support for (pxe[:server[:gateway]]) syntax and
5391 use environment variable for PXE.
5392
5393 * commands/i386/pc/pxecmd.c (options): Removed.
5394 (print_ip): Removed.
5395 (grub_cmd_pxe): Removed
5396 (grub_cmd_pxe_unload): New function.
5397 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
5398 (grub_pxe_your_ip): Made static.
5399 (grub_pxe_default_server_ip): Likewise.
5400 (grub_pxe_default_gateway_ip): Likewise.
5401 (grub_pxe_blksize): Likewise.
5402 (parse_ip): New function.
5403 (grub_pxe_open): Support server and gateway specification.
5404 (grub_pxe_close): Free disk->data.
5405 (grub_pxefs_open): Use disk->data.
5406 (grub_pxefs_read): Likewise.
5407 (grub_env_write_readonly): New function.
5408 (set_mac_env): Likewise.
5409 (set_env_limn_ro): Likewise.
5410 (parse_dhcp_vendor): Likewise.
5411 (grub_pxe_detect): Set the environment variables.
5412 (set_ip_env): New function.
5413 (write_ip_env): Likewise.
5414 (grub_env_write_pxe_default_server): Likewise.
5415 (grub_env_write_pxe_default_gateway): Likewise.
5416 (grub_env_write_pxe_blocksize): Likewise.
5417 (GRUB_MOD_INIT(pxe)): Set environment variables.
5418 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
5419 (grub_pxe_mac_addr_t): ... this. All users updated.
5420 (grub_pxe_your_ip): Removed.
5421 (grub_pxe_server_ip): Likewise.
5422 (grub_pxe_gateway_ip): Likewise.
5423 (grub_pxe_blksize): Likewise.
5424
5425 2009-12-25 Carles Pina i Estany <carles@pina.cat>
5426
5427 * commands/help.c: Include `<grub/i18n.h>'.
5428 (grub_cmd_help): Gettextizze.
5429 (GRUB_MOD_INIT): Likewise.
5430 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
5431 (GRUB_MOD_INIT): Gettextizze.
5432 * commands/search.c: Include `<grub/i18n.h>'.
5433 (options): Gettextizze.
5434 (GRUB_MOD_INIT): Gettextizze.
5435 * lib/arg.c: Include `<grub/i18n.h>'.
5436 (help_options): Gettextizze.
5437 (find_long): Likewise.
5438 (grub_arg_show_help): Likewise.
5439 * normal/dyncmd.c: Include `<grub/i18n.h>'.
5440 (read_command_list): Gettextizze.
5441 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
5442 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
5443
5444 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5445
5446 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
5447 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
5448 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
5449 (led_status): New variable.
5450 (keyboard_controller_led): New function.
5451 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
5452 update led status for caps lock, num lock and scroll lock.
5453
5454 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
5455
5456 * util/hostdisk.c (open_device): Fix a comment.
5457
5458 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5459
5460 * util/grub-install.in (host_os): New variable.
5461 * util/i386/efi/grub-install.in (host_os): Likewise.
5462
5463 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5464
5465 * util/mkisofs/write.c (padblock_write): Abort when given an
5466 excedingly large embed image, instead of silently truncating it.
5467
5468 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5469
5470 * include/multiboot.h: Indentation fixes.
5471
5472 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5473
5474 * include/multiboot.h (struct multiboot_aout_symbol_table)
5475 (struct multiboot_elf_section_header_table): New structure
5476 declarations (stolen from GRUB Legacy).
5477 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
5478 table information.
5479
5480 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
5481 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
5482 type aliases.
5483
5484 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5485
5486 * include/multiboot.h: Make comments src2texi-friendly.
5487
5488 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5489
5490 For consistency with [multiboot]/docs/boot.S.
5491
5492 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
5493 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
5494 (MULTIBOOT_MAGIC2): Rename from this ...
5495 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
5496
5497 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5498
5499 * include/multiboot.h: Remove `<grub/types.h>'.
5500 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
5501 types. Update all users.
5502
5503 2009-12-25 Carles Pina i Estany <carles@pina.cat>
5504
5505 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
5506 `couldn't' and `can not' by `cannot'.
5507 * commands/i386/pc/drivemap.c: Likewise.
5508 * disk/ata.c: Likewise.
5509 * disk/ieee1275/nand.c: Likewise.
5510 * fs/affs.c: Likewise.
5511 * fs/fat.c: Likewise.
5512 * fs/hfs.c: Likewise.
5513 * fs/hfsplus.c: Likewise.
5514 * fs/iso9660.c: Likewise.
5515 * fs/jfs.c: Likewise.
5516 * fs/minix.c: Likewise.
5517 * fs/reiserfs.c: Likewise.
5518 * fs/sfs.c: Likewise.
5519 * fs/udf.c: Likewise.
5520 * fs/ufs.c: Likewise.
5521 * fs/xfs.c: Likewise.
5522 * loader/powerpc/ieee1275/linux.c: Likewise.
5523 * loader/sparc64/ieee1275/linux.c: Likewise.
5524 * util/grub-probe.c: Likewise.
5525 * util/misc.c: Likewise.
5526
5527 2009-12-24 Carles Pina i Estany <carles@pina.cat>
5528
5529 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
5530 grub_errno calls.
5531 * commands/acpi.c: Likewise.
5532 * commands/blocklist.c: Likewise.
5533 * commands/efi/loadbios.c: Likewise.
5534 * commands/i386/pc/drivemap.c: Likewise.
5535 * commands/loadenv.c: Likewise.
5536 * commands/memrw.c: Likewise.
5537 * commands/password.c: Likewise.
5538 * commands/videotest.c: Likewise.
5539 * disk/ata.c: Likewise.
5540 * disk/ata_pthru.c: Likewise.
5541 * disk/dmraid_nvidia.c: Likewise.
5542 * disk/ieee1275/nand.c: Likewise.
5543 * disk/ieee1275/ofdisk.c: Likewise.
5544 * disk/loopback.c: Likewise.
5545 * disk/lvm.c: Likewise.
5546 * disk/mdraid_linux.c: Likewise.
5547 * disk/raid.c: Likewise.
5548 * disk/raid6_recover.c: Likewise.
5549 * disk/scsi.c: Likewise.
5550 * efiemu/main.c: Likewise.
5551 * efiemu/mm.c: Likewise.
5552 * efiemu/pnvram.c: Likewise.
5553 * efiemu/symbols.c: Likewise.
5554 * font/font.c: Likewise.
5555 * fs/cpio.c: Likewise.
5556 * fs/hfsplus.c: Likewise.
5557 * fs/iso9660.c: Likewise.
5558 * fs/jfs.c: Likewise.
5559 * fs/minix.c: Likewise.
5560 * fs/ntfs.c: Likewise.
5561 * fs/ntfscomp.c: Likewise.
5562 * fs/reiserfs.c: Likewise.
5563 * fs/ufs.c: Likewise.
5564 * fs/xfs.c: Likewise.
5565 * gettext/gettext.c: Likewise.
5566 * include/grub/auth.h: Likewise.
5567 * kern/elf.c: Likewise.
5568 * kern/file.c: Likewise.
5569 * kern/ieee1275/init.c: Likewise.
5570 * kern/ieee1275/mmap.c: Likewise.
5571 * kern/ieee1275/openfw.c: Likewise.
5572 * kern/powerpc/dl.c: Likewise.
5573 * kern/sparc64/dl.c: Likewise.
5574 * lib/arg.c: Likewise.
5575 * loader/i386/bsd.c: Likewise.
5576 * loader/i386/bsdXX.c: Likewise.
5577 * loader/i386/efi/linux.c: Likewise.
5578 * loader/i386/efi/xnu.c: Likewise.
5579 * loader/i386/ieee1275/linux.c: Likewise.
5580 * loader/i386/linux.c: Likewise.
5581 * loader/i386/multiboot.c: Likewise.
5582 * loader/i386/pc/linux.c: Likewise.
5583 * loader/i386/pc/multiboot2.c: Likewise.
5584 * loader/i386/xnu.c: Likewise.
5585 * loader/ieee1275/multiboot2.c: Likewise.
5586 * loader/macho.c: Likewise.
5587 * loader/machoXX.c: Likewise.
5588 * loader/multiboot2.c: Likewise.
5589 * loader/multiboot_loader.c: Likewise.
5590 * loader/powerpc/ieee1275/linux.c: Likewise.
5591 * loader/sparc64/ieee1275/linux.c: Likewise.
5592 * loader/xnu.c: Likewise.
5593 * loader/xnu_resume.c: Likewise.
5594 * mmap/i386/pc/mmap.c: Likewise.
5595 * normal/menu_viewer.c: Likewise.
5596 * partmap/acorn.c: Likewise.
5597 * partmap/amiga.c: Likewise.
5598 * partmap/apple.c: Likewise.
5599 * script/lexer.c: Likewise.
5600 * term/gfxterm.c: Likewise.
5601 * term/i386/pc/serial.c: Likewise.
5602 * term/i386/pc/vga.c: Likewise.
5603 * term/ieee1275/ofconsole.c: Likewise.
5604 * term/terminfo.c: Likewise.
5605 * video/bitmap.c: Likewise.
5606 * video/efi_gop.c: Likewise.
5607 * video/efi_uga.c: Likewise.
5608 * video/fb/video_fb.c: Likewise.
5609 * video/i386/pc/vbe.c: Likewise.
5610 * video/readers/tga.c: Likewise.
5611 * video/video.c: Likewise.
5612
5613 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
5614
5615 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
5616 * commands/lspci.c: Likewise.
5617 * commands/probe.c: Likewise.
5618 * commands/xnu_uuid.c: Likewise.
5619 * conf/i386-coreboot.rmk: Likewise.
5620 * conf/i386-efi.rmk: Likewise.
5621 * conf/i386-ieee1275.rmk: Likewise.
5622 * conf/i386-pc.rmk: Likewise.
5623 * conf/powerpc-ieee1275.rmk: Likewise.
5624 * conf/sparc64-ieee1275.rmk: Likewise.
5625 * conf/x86_64-efi.rmk: Likewise.
5626 * fs/i386/pc/pxe.c: Likewise.
5627 * gettext/gettext.c: Likewise.
5628 * include/grub/efi/graphics_output.h: Likewise.
5629 * include/grub/i386/pc/memory.h: Likewise.
5630 * kern/env.c: Likewise.
5631 * kern/i386/qemu/startup.S: Likewise.
5632 * lib/i386/pc/biosnum.c: Likewise.
5633 * lib/i386/relocator.c: Likewise.
5634 * lib/i386/relocator_asm.S: Likewise.
5635 * lib/relocator.c: Likewise.
5636 * loader/i386/bsd.c: Likewise.
5637 * loader/i386/multiboot.c: Likewise.
5638 * loader/i386/pc/chainloader.c: Likewise.
5639 * loader/i386/xnu.c: Likewise.
5640 * loader/xnu.c: Likewise.
5641 * normal/main.c: Likewise.
5642 * normal/menu_text.c: Likewise.
5643 * util/getroot.c: Likewise.
5644 * util/grub-mkconfig_lib.in: Likewise.
5645 * util/grub.d/00_header.in: Likewise.
5646 * util/i386/pc/grub-mkimage.c: Likewise.
5647 * util/mkisofs/eltorito.c: Likewise.
5648 * util/mkisofs/exclude.h: Likewise.
5649 * util/mkisofs/hash.c: Likewise.
5650 * util/mkisofs/iso9660.h: Likewise.
5651 * util/mkisofs/joliet.c: Likewise.
5652 * util/mkisofs/mkisofs.c: Likewise.
5653 * util/mkisofs/mkisofs.h: Likewise.
5654 * util/mkisofs/multi.c: Likewise.
5655 * util/mkisofs/name.c: Likewise.
5656 * util/mkisofs/rock.c: Likewise.
5657 * util/mkisofs/tree.c: Likewise.
5658 * util/mkisofs/write.c: Likewise.
5659 * video/efi_gop.c: Likewise.
5660
5661 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
5662
5663 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
5664 size counting.
5665
5666 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5667
5668 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
5669 * genmk.rb (class SCRIPT): Modify the target file instead of source.
5670
5671 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5672
5673 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
5674 (GRUB_MOD_INIT(memrw)): Update help line.
5675
5676 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5677
5678 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
5679 Use grub_extcmd_t. All users updated.
5680 (options): New variable.
5681 (grub_cmd_read): Restructure for readability. Support "-v" option.
5682 (grub_cmd_write): Restructure for readability.
5683
5684 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5685
5686 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
5687
5688 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5689
5690 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
5691 with the actual contents of the correspondending make variable.
5692 * util/grub-mkrescue.in (pkglib_DATA): New variable.
5693 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
5694 specifying `*.lst' and `efiemu??.o'
5695
5696 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5697
5698 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
5699 after function name.
5700 Noticed by Rene Engelhard <rene@debian.org>.
5701
5702 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5703
5704 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
5705 (options): New variable.
5706 (iospace): Likewise.
5707 (grub_lspci_iter): List IO spaces if "-i" was given.
5708 (grub_cmd_lspci): Parse options.
5709 (GRUB_MOD_INIT(lspci)): Use extcmd.
5710 (GRUB_MOD_FINI(lspci)): Likewise.
5711
5712 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5713
5714 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
5715 `function' keyword.
5716 Patch by Tony Mancill <tmancill@debian.org>.
5717
5718 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5719
5720 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
5721 (grub_uhci_portstatus): Likewise.
5722 (grub_uhci_portstatus): Add necessary delay.
5723 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
5724
5725 2009-12-21 Carles Pina i Estany <carles@pina.cat>
5726
5727 * commands/acpi.c (options): Fix capitalizations and/or full stops.
5728 (GRUB_MOD_INIT): Likewise.
5729 * commands/boot.c (GRUB_MOD_INIT): Likewise.
5730 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
5731 * commands/echo.c (options): Fix capitalizations and/or full stops.
5732 * commands/efi/loadbios.c (enable_rom_area): Likewise.
5733 (enable_rom_area): Likewise.
5734 (GRUB_MOD_INIT): Likewise.
5735 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
5736 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
5737 * commands/handler.c (GRUB_MOD_INIT): Likewise.
5738 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
5739 * commands/hexdump.c (options): Likewise.
5740 * commands/i386/cpuid.c (options): Likewise.
5741 (GRUB_MOD_INIT): Likewise.
5742 * commands/i386/pc/drivemap.c (options): Likewise.
5743 (GRUB_MOD_INIT): Likewise.
5744 * commands/i386/pc/halt (options): Likewise.
5745 (GRUB_MOD_INIT): Likewise.
5746 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
5747 * commands/i386/pc/pxecmd.c (options): Likewise.
5748 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
5749 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
5750 * commands/keystatus.c (options): Likewise.
5751 (GRUB_MOD_INIT): Likewise.
5752 * commands/loadenv.c (options): Likewise.
5753 * commands/ls.c (options): Likewise.
5754 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
5755 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
5756 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
5757 * commands/parttool.c (helpmsg): Likewise.
5758 * commands/probe.c (options): Likewise.
5759 * commands/read.c (GRUB_MOD_INIT): Likewise.
5760 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
5761 * commands/search.c (options): Likewise.
5762 * commands/sleep.c (options): Likewise.
5763 * commands/test.c (GRUB_MOD_INIT): Likewise.
5764 * commands/true.c (GRUB_MOD_INIT): Likewise.
5765 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
5766 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
5767 * lib/arg.c (help_options): Likewise.
5768 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
5769 `$(XGETTEXT)'.
5770 * po/POTFILES: Add `commands/loadenv.c'.
5771
5772 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
5773
5774 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
5775 instead of specifying them explicit.
5776
5777 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5778
5779 * NEWS: Add grub-probe support for GNU/Hurd.
5780
5781 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5782
5783 * NEWS: gettext was added after 1.97.
5784
5785 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5786
5787 * util/mkisofs/msdos_partition.h: New file (based on
5788 include/grub/msdos_partition.h).
5789 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
5790 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
5791 (ld_options, main): Recognize --protective-msdos-label.
5792 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
5793 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
5794 (padblock_write): If `use_protective_msdos_label' is set, patch a
5795 protective DOS-style label in the output image.
5796
5797 * util/grub-mkrescue.in: Use --protective-msdos-label.
5798
5799 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5800
5801 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
5802 boot.
5803
5804 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5805
5806 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
5807 variables.
5808 (ld_options, main): Recognize `--embedded-boot'.
5809 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
5810 declarations.
5811 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
5812 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
5813 (padblock_write): Likewise. Rewrite to support embedded boot image.
5814
5815 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
5816 for BIOS-based disk boot instead of only ElTorito.
5817
5818 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5819
5820 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
5821 build (not needed for bootstrap).
5822
5823 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5824
5825 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
5826 from i386-pc build (not needed for bootstrap).
5827 Rewrite a pair of strings.
5828
5829 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5830
5831 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
5832
5833 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
5834
5835 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
5836
5837 2009-12-21 Andreas Born <futur.andy@googlemail.com>
5838
5839 * kern/env.c (grub_env_context_open): Mark exported variable for
5840 reexport.
5841
5842 2009-12-21 Andreas Born <futur.andy@googlemail.com>
5843
5844 * kern/env.c (grub_env_export): Create nonexistent variables before
5845 exporting.
5846
5847 2009-12-20 Carles Pina i Estany <carles@pina.cat>
5848
5849 * include/grub/auth.h: Include `<grub/i18n.h>'.
5850 (GRUB_GET_PASSWORD): Gettextizze string.
5851 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
5852 menu_text.c.
5853 (grub_utf8_to_ucs4_alloc): Fix indentation.
5854 (grub_print_ucs4): Likewise.
5855 (grub_getstringwidth): Likewise.
5856 (print_message_indented): New declaration.
5857 * normal/auth.c: Include `<grub/i18n.h>'.
5858 (grub_auth_check_authentication): Gettexttize string.
5859 * normal/cmdline.c: Include `<grub/i18n.h>'.
5860 (grub_cmdline_get): Gettextizze.
5861 * normal/color.c: Include `<grub/i18n.h>'.
5862 (grub_parse_color_name_pair): Gettexttize strings.
5863 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
5864 string (use `print_message_indented').
5865 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
5866 `include/grub/normal.h'.
5867 (print_message_indented): Renamed to ...
5868 (grub_print_message_indented): ... this. Remove `static' qualifer (now
5869 used in normal/main.c).
5870 (print_message): Use `grub_print_message_indented' instead of
5871 `print_message_indented'.
5872 (print_timeout): Likewise.
5873 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
5874 (grub_normal_print_device_info): Gettexttize strings.
5875 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
5876
5877 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
5878
5879 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
5880 of arguments. Return number of tokens and not arguments. All users
5881 updated.
5882
5883 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
5884
5885 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
5886 non-MSDOS paritions.
5887
5888 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
5889
5890 * include/grub/types.h (UNUSED): Removed since it conflicts with
5891 NetBSD headers. All users changed to direct __attribute__ ((unused)).
5892 Reported by Grégoire Sutre.
5893
5894 2009-12-19 Carles Pina i Estany <carles@pina.cat>
5895
5896 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
5897 (grub_print_ucs4_alloc): Likewise.
5898 (grub_getstringwidth): Likewise.
5899 * normal/main.c (grub_normal_init_page): Gettextize version string.
5900 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
5901 (getstringwidth): Renamed to ...
5902 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
5903 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
5904 (grub_print_ucs4): Remove `static' qualifer (now used in
5905 normal/main.c).
5906 * po/POTFILES: Add normal/main.c.
5907
5908 2009-12-19 Carles Pina i Estany <carles@pina.cat>
5909
5910 * normal/menu_text.c (STANDARD_MARGIN): New macro.
5911 (print_message_indented): Add `margin_left' and `margin_right'
5912 parameters.
5913 (print_message): Update `print_message_indented' calls. Adds '\n' to the
5914 strings.
5915 (print_timeout): Use `print_message_indented' to print the message.
5916 Deletes `second_stage' parameter.
5917 (run_menu): Update `print_timeout' calls.
5918
5919 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
5920
5921 Fix console palette on OpenFirmware.
5922
5923 * term/ieee1275/ofconsole.c (MAX): Removed.
5924 (colors): Redone based on VGA palette.
5925 (grub_ofconsole_setcolor): Discard brightness bit since only 8
5926 colors are supported.
5927 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
5928
5929 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
5930
5931 Fix potential EfiEmu double prepare.
5932
5933 * efiemu/main.c (prepared): New variable
5934 (grub_efiemu_unload): Set prepare to '0'.
5935 (grub_efiemu_prepare): Return if already prepared. Set prepared.
5936
5937 set_virtual_address_map support.
5938
5939 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
5940 prototype.
5941 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
5942 prototype.
5943 (grub_efiemu_crc32): Likewise.
5944 (grub_efiemu_crc64): Likewise.
5945 (grub_efiemu_set_virtual_address_map): Likewise.
5946 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
5947 New definition.
5948 (grub_autoefi_set_virtual_address_map): Likewise.
5949 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
5950 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
5951 Restructure flow to accomodate it.
5952 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
5953 (grub_efiemu_crc): Recompute CRC32.
5954 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
5955 (efiemu_ptv_relocated): ... this. Made global. All users updated.
5956 * efiemu/symbols.c (relocated_handle): New variable.
5957 (grub_efiemu_free_syms): Free relocated_handle.
5958 (grub_efiemu_alloc_syms): Allocate relocated_handle.
5959 (grub_efiemu_write_sym_markers): New function.
5960 (grub_efiemu_set_virtual_address_map): Likewise.
5961
5962 Newer XNU parameters.
5963
5964 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
5965 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
5966 (grub_xnu_fill_devicetree): New prototype.
5967 (grub_xnu_heap_real_start): New variable.
5968 * loader/xnu.c (get_name_ptr): New function.
5969 (grub_xnu_load_driver): Fill namelen and name.
5970
5971 64-bit xnu support.
5972
5973 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
5974 and 'loader/macho64.c'.
5975 * conf/i386-pc.rmk: Likewise.
5976 * conf/x86_64-efi.rmk: Likewise.
5977 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
5978 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
5979 * include/grub/macho.h (grub_macho_segment64): New structure.
5980 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
5981 (grub_macho_size32): ... to this.
5982 (grub_macho32_get_entry_point): Renamed from ...
5983 (grub_macho_get_entry_point32): ... to this.
5984 (grub_macho_contains_macho64): New prototype.
5985 (grub_macho_size64): Likewise.
5986 (grub_macho_get_entry_point64): Likewise.
5987 (grub_macho32_load): Renamed from ...
5988 (grub_macho_load32): ... to this.
5989 (grub_macho32_filesize): Renamed from ...
5990 (grub_macho_filesize32): ... to this.
5991 (grub_macho32_readfile): Renamed from ...
5992 (grub_macho_readfile32): ... to this.
5993 (grub_macho_filesize64): New prototype.
5994 (grub_macho_readfile64): Likewise.
5995 (grub_macho_parse32): Likewise.
5996 (grub_macho_parse64): Likewise.
5997 * loader/macho.c: Split into ...
5998 * loader/machoXX.c: ... and this. Replace 32 with XX.
5999 * loader/macho32.c: New file.
6000 * loader/macho64.c: Likewise.
6001 * loader/xnu.c (grub_xnu_is_64bit): New variable.
6002 (grub_cmd_xnu_kernel): Make 32-bit only.
6003 (grub_cmd_xnu_kernel64): New function.
6004 (grub_xnu_load_driver): Support Mach-O 64.
6005 (grub_cmd_xnu_mkext): Likewise.
6006 * util/grub.d/30_os-prober.in (osx_entry): New function.
6007 Generate entries for 64-bit boot too.
6008
6009 Eliminate ad-hoc tree format in XNU and EfiEmu.
6010
6011 * efiemu/main.c (grub_efiemu_prepare): Update comment.
6012 * efiemu/pnvram.c: Rewritten to use environment variables.
6013 All users updated.
6014
6015 Inline utf16_to_utf8.
6016
6017 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
6018 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
6019 All users updated.
6020 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
6021
6022 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
6023 * commands/usbtest.c (grub_usb_get_string): ... move here.
6024 (usb_print_str): Fix error handling.
6025 * include/grub/usb.h (grub_usb_get_string): Remove.
6026
6027 UTF-8 to UTF-16 transformation.
6028
6029 * conf/common.rmk (pkglib_MODULES): Add charset.mod
6030 (charset_mod_SOURCES): New variable.
6031 (charset_mod_CFLAGS): Likewise.
6032 (charset_mod_LDFLAGS): Likewise.
6033 * include/grub/utf.h: New file.
6034 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
6035
6036 Support for device properties.
6037
6038 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
6039 (grub_xnu_devprop_device_header): Likewise.
6040 (grub_xnu_devprop_device_descriptor): Likewise.
6041 (grub_xnu_devprop_add_device): New prototype.
6042 (grub_xnu_devprop_remove_device): Likewise.
6043 (grub_xnu_devprop_remove_property): Likewise.
6044 (grub_xnu_devprop_add_property_utf8): Likewise.
6045 (grub_xnu_devprop_add_property_utf16): Likewise.
6046 (grub_cpu_xnu_init): Likewise.
6047 (grub_cpu_xnu_fini): Likewise.
6048 (grub_cpu_xnu_unload): Likewise.
6049 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
6050 (property_descriptor): Likewise.
6051 (devices): New variable.
6052 (grub_xnu_devprop_remove_property): New function.
6053 (grub_xnu_devprop_add_device): Likewise.
6054 (grub_xnu_devprop_remove_device): Likewise.
6055 (grub_xnu_devprop_add_property): Likewise.
6056 (grub_xnu_devprop_add_property_utf8): Likewise.
6057 (grub_xnu_devprop_add_property_utf16): Likewise.
6058 (hextoval): Likewise.
6059 (grub_cpu_xnu_fill_devprop): Likewise.
6060 (grub_cmd_devprop_load): Likewise.
6061 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
6062 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
6063 (cmd_devprop_load): New variable.
6064 (grub_cpu_xnu_init): New function.
6065 (grub_cpu_xnu_fini): Likewise.
6066 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
6067 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
6068 (grub_cmd_xnu_devtree): Likewise.
6069 (hextoval): New function.
6070 (unescape): Likewise.
6071 (grub_xnu_fill_devicetree): Likewise.
6072
6073 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
6074 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
6075
6076 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6077
6078 Workaround for broken ATI VBE.
6079
6080 * video/i386/pc/vbe.c (last_set_mode): New variable.
6081 (grub_vbe_set_video_mode): Set 'last_set_mode'.
6082 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
6083 (grub_video_vbe_setup): Don't check for reserved flag.
6084
6085 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
6086
6087 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
6088 the `find' command.
6089
6090 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
6091
6092 UUID support for HFS.
6093
6094 * fs/hfs.c (grub_hfs_uuid): New function.
6095 (grub_hfs_fs): New value .uuid.
6096 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
6097
6098 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
6099
6100 Fix a segfault with parsing unknown long options.
6101
6102 * util/grub-mkrelpath.c (options): Zero terminate it.
6103
6104 2009-12-13 Carles Pina i Estany <carles@pina.cat>
6105
6106 * include/grub/misc.h (grub_puts): New declaration.
6107 (grub_puts_): Likewise.
6108 * kern/misc.c (grub_puts): New definition.
6109 (grub_puts_): Likewise.
6110
6111 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6112
6113 * util/grub-probe.c (probe): Improve error message.
6114
6115 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6116
6117 * loader/i386/multiboot_elfxx.c
6118 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
6119 initialization.
6120
6121 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6122
6123 Relocator framework
6124
6125 * loader/i386/xnu_helper.S: Removed. All users updated.
6126 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
6127 (relocator_mod_SOURCES): New variable.
6128 (relocator_mod_CFLAGS): Likewise.
6129 (relocator_mod_LDFLAGS): Likewise.
6130 (relocator_mod_ASFLAGS): Likewise.
6131 * conf/x86_64.rmk: Likewise.
6132 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
6133 (grub_multiboot_payload_entry_offset): Likewise.
6134 (grub_multiboot_forward_relocator): Likewise.
6135 (grub_multiboot_forward_relocator_end): Likewise.
6136 (grub_multiboot_backward_relocator): Likewise.
6137 (grub_multiboot_backward_relocator_end): Likewise.
6138 (grub_multiboot_payload_eip): New variable.
6139 (grub_multiboot_payload_orig): Likewise.
6140 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
6141 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
6142 * include/grub/i386/memory.h
6143 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
6144 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
6145 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
6146 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
6147 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
6148 * include/grub/i386/relocator.h: New file.
6149 * include/grub/x86_64/relocator.h: Likewise.
6150 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
6151 (XNU_RELOCATOR): New macro.
6152 (grub_xnu_launcher_start): Remove.
6153 (grub_xnu_launcher_end): Likewise.
6154 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
6155 (grub_xnu_heap_real_start): Remove.
6156 (grub_xnu_heap_start): Change to void *. All users updated.
6157 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
6158 * lib/i386/relocator.c: New file.
6159 * lib/i386/relocator_asm.S: Likewise.
6160 * lib/i386/relocator_backward.S: Likewise.
6161 * lib/mips/relocator.c: Likewise.
6162 * lib/mips/relocator_asm.S: Likewise.
6163 * lib/relocator.c: Likewise.
6164 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
6165 (entry): Removed.
6166 (playground): Likewise.
6167 (grub_multiboot_payload_orig): New variable.
6168 (grub_multiboot_payload_dest): Likewise.
6169 (grub_multiboot_payload_size): Likewise.
6170 (grub_multiboot_payload_eip): Likewise.
6171 (grub_multiboot_payload_esp): Likewise.
6172 (grub_multiboot_boot): Use grub_relocator32_boot.
6173 (grub_multiboot_unload): Free relocators.
6174 (grub_multiboot): Setup stack. Use relocators.
6175 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
6176 (grub_multiboot_load_elfXX): Use relocators.
6177 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
6178 (grub_multiboot_payload_size): Likewise.
6179 (grub_multiboot_payload_dest): Likewise.
6180 (grub_multiboot_payload_entry_offset): Likewise.
6181 (grub_multiboot_forward_relocator): Likewise.
6182 (grub_multiboot_backward_relocator): Likewise.
6183 (grub_multiboot_real_boot): Likewise.
6184 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
6185 (grub_xnu_entry_point): Likewise.
6186 (grub_xnu_arg1): Likewise.
6187 (grub_xnu_stack): Likewise.
6188 (grub_xnu_launch): Removed.
6189 (grub_xnu_boot_resume): New function.
6190 (grub_xnu_boot): Use relocators.
6191 * loader/i386/xnu_helper.S: Removed.
6192 * loader/xnu.c (grub_xnu_heap_start): New variable.
6193 (grub_xnu_heap_size): Likewise.
6194 (grub_xnu_heap_malloc): Use relocators.
6195 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
6196
6197 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6198
6199 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
6200 anything.
6201
6202 2009-12-13 Carles Pina i Estany <carles@pina.cat>
6203
6204 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
6205 GRUB_ERR_NONE before calling grub_env_set.
6206
6207 2009-12-12 Robert Millan <rmh@aybabtu.com>
6208
6209 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
6210 * genmk.rb (video): New variable.
6211 (CLEANFILES, VIDEOFILES): Add #{video}.
6212 (#{video}): New target rule.
6213 * genvideolist.sh: New file.
6214 * Makefile.in (pkglib_DATA): Add video.lst.
6215 (video.lst): New target rule.
6216 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
6217 `video.lst'.
6218 * util/grub.d/30_os-prober.in: Replace `vbe' with
6219 ${GRUB_VIDEO_BACKEND}.
6220
6221 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
6222
6223 * THANKS: Add David Miller.
6224
6225 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
6226
6227 libpciaccess support.
6228
6229 * Makefile.in (LIBPCIACCESS): New variable.
6230 (enable_grub_emu_pci): Likewise.
6231 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
6232 util/pci.c and commands/lspci.c.
6233 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
6234 * configure.ac (grub-emu-pci): New option.
6235 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
6236 (grub_pci_device_unmap_range): Likewise.
6237 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
6238 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
6239 (grub_pci_address_t) [!GRUB_UTIL]: New type.
6240 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
6241 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
6242 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
6243 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
6244 * include/grub/pciutils.h: New file.
6245 * util/pci.c: Likewise.
6246
6247 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
6248
6249 * util/misc.c: Don't include <errno.h> twice.
6250
6251 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
6252
6253 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
6254 name in an error message.
6255 (grub_biosdisk_rw): Likewise.
6256
6257 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6258
6259 Eliminate NTFS 4Gib barrier.
6260
6261 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
6262 (read_run_data): Likewise.
6263 (grub_ntfs_read_run_list): Likewise.
6264 (grub_ntfs_read_block): Likewise.
6265 (grub_ntfs_iterate_dir): Likewise.
6266 (read_mft): Likewise.
6267 (read_data): Likewise.
6268 Use COM_LOG_LEN.
6269 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
6270 to avoid 64-bit division
6271 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
6272 (grub_ntfs_rlst): Use grub_disk_addr_t.
6273
6274 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6275
6276 Eliminate grub-fstest 4Gib barrier.
6277
6278 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
6279 (read_file): Fix error reporting.
6280
6281 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6282
6283 Eliminate hexdump 4Gib barrier.
6284
6285 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
6286 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
6287
6288 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6289
6290 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
6291 Fixes amarsh bug.
6292
6293 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
6294
6295 Remove miscellaneous files in distclean target.
6296
6297 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
6298
6299 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
6300
6301 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
6302 if they're already set. This resolves the conflict between my
6303 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
6304 fixing the --grub-probe option again.
6305 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
6306 change on 2009-10-06, so that we now once again source
6307 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
6308
6309 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
6310
6311 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
6312 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
6313 `util/devicemap.c'.
6314
6315 2009-12-08 Carles Pina i Estany <carles@pina.cat>
6316
6317 * include/grub/misc.h (grub_printf_): New declaration.
6318 * kern/misc.c (grub_printf_): New definition.
6319 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
6320 instead of `grub_printf' and `_'.
6321 * normal/menu_entry.c (store_completion): Likewise.
6322 (run): Likewise.
6323 (grub_menu_entry_run): Likewise.
6324 * normal/menu_text.c (grub_wait_after_message): Likewise.
6325 (notify_booting): Likewise.
6326 (notify_fallback): Likewise.
6327 (notify_execution_failure): Likewise.
6328
6329 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
6330
6331 * configure.ac: Check for vasprintf.
6332 * util/misc.c (asprintf): Move allocation from here ...
6333 (vasprintf): ... to here. New function.
6334 (xasprintf): New function.
6335 * include/grub/util/misc.h (vasprintf, xasprintf): Add
6336 prototypes.
6337 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
6338 * util/grub-mkfont.c (write_font): Likewise.
6339 * util/grub-probe.c (probe): Likewise.
6340 * util/hostdisk.c (make_device_name): Likewise.
6341
6342 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
6343
6344 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
6345 anything even prefixed with 'cdrom' as a cdrom.
6346
6347 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
6348
6349 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
6350 mount points.
6351
6352 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6353
6354 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
6355 grub_gettext_msg_list.
6356 (grub_gettext_gettranslation_from_position): Return const char *
6357 and not char *.
6358 (grub_gettext_translate): Add the translated strings into a list,
6359 returns from the list if existing there.
6360 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
6361 (grub_gettext_delete_list): Delete the list.
6362 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
6363 lang environment variable is changed.
6364 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
6365
6366 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6367
6368 Rename kernel.mod to kernel.img.
6369
6370 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
6371 (kernel_mod_EXPORTS): Rename to ...
6372 (kernel_img_EXPORTS): ... this.
6373 (kernel_mod_SOURCES): Rename to ...
6374 (kernel_img_SOURCES): ... this.
6375 (kernel_mod_HEADERS): Rename to ...
6376 (kernel_img_HEADERS): ... this. All users updated.
6377 (kernel_mod_CFLAGS): Rename to ...
6378 (kernel_img_CFLAGS): ... this.
6379 (kernel_mod_ASFLAGS): Rename to ...
6380 (kernel_img_ASFLAGS): ... this.
6381 (kernel_mod_LDFLAGS): Rename to ...
6382 (kernel_img_LDFLAGS): ... this.
6383 * conf/x86_64-efi.rmk: Likewise.
6384 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
6385 (read_kernel_image): ... this. All users updated.
6386 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
6387
6388 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6389
6390 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
6391 (print_spaces): New function.
6392 (grub_print_ucs4): New function.
6393 (getstringwidth): New function.
6394 (print_message_indented): New function.
6395 (print_message): Gettexttize strings using print_message_indented.
6396 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
6397 width.
6398 (get_entry_number): Gettextize and uses dynamic terminal width.
6399 (notify_booting, notify_fallback, notify_execution_failure):
6400 Gettextize.
6401 * normal/menu_entry.c (store_completion): Cleanup the gettextized
6402 string.
6403 (run): Likewise.
6404 (grub_menu_entry_run): Likewise.
6405 * PO/POTFILES: Add normal/menu_entry.c.
6406
6407 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6408
6409 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
6410
6411 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6412
6413 * util/grub-install.in: Install gettext .mo files.
6414 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
6415
6416 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6417
6418 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
6419 grub_dprintf.
6420
6421 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
6422
6423 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
6424 non-firmware-dependant one in realmode.S takes precedence.
6425
6426 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
6427
6428 * commands/halt.c: Replace misc arch-specific headers with
6429 `<grub/misc.h>'.
6430 * commands/reboot.c: Likewise.
6431 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
6432 `<grub/misc.h>'.
6433 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
6434 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
6435 (kernel_img_SOURCES): ... to here.
6436
6437 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
6438 * include/grub/i386/pc/init.h: Likewise.
6439 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
6440 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
6441
6442 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
6443
6444 * include/grub/i386/halt.h: Remove.
6445 * include/grub/i386/reboot.h: Likewise.
6446
6447 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
6448
6449 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
6450
6451 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
6452 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
6453 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
6454 "progname.h"
6455 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6456 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6457 (usage): Add missing comma in printf.
6458
6459 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
6460
6461 Use the same reboot approach on i386 coreboot and qemu as we do on
6462 BIOS.
6463
6464 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
6465 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
6466 * kern/i386/reboot.c: Remove.
6467 * include/grub/i386/reboot.h (grub_reboot): Export function.
6468 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
6469 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
6470 0xf000:0xfff0 instead of 0xffff:0x0000.
6471 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
6472 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
6473
6474 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
6475
6476 Fix $srcdir != $objdir build.
6477
6478 * Makefile.in (po/%.po): Rewrite as ...
6479 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
6480
6481 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
6482
6483 Fix GNU/Hurd grub-install crash.
6484 * util/grub-probe.c (probe): Try to access `path' only when it is not
6485 NULL.
6486
6487 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6488
6489 Correct module naming.
6490
6491 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6492 (GRUB_MOD_INIT(efi_uga)): ... to this
6493 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6494 (GRUB_MOD_FINI(efi_uga)): ... to this
6495 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6496 (GRUB_MOD_INIT(efi_gop)): ... to this
6497 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6498 (GRUB_MOD_FINI(efi_gop)): ... to this
6499
6500 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
6501
6502 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
6503 translatable.
6504 (usage): Translate `arg' strings using gettext().
6505 Thanks to Jordi Mallach for the suggestion.
6506
6507 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6508
6509 GOP support. Based on patch from Bean
6510 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
6511
6512 * video/efi_gop.c: New file.
6513 * include/grub/efi/graphics_output.h: Likewise.
6514 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
6515 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
6516 variables.
6517 * conf/x86_64-efi.rmk: Likewise.
6518
6519 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6520
6521 Rename efi_fb to efi_uga.
6522
6523 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6524 'efi_uga.mod'.
6525 (efi_fb_mod_SOURCES): Rename this ...
6526 (efi_uga_mod_SOURCES): ... to this.
6527 (efi_fb_mod_CFLAGS): Rename this ...
6528 (efi_uga_mod_CFLAGS): ... to this.
6529 (efi_fb_mod_LDFLAGS): Rename this ...
6530 (efi_uga_mod_LDFLAGS): ... to this.
6531 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6532 'efi_uga.mod'.
6533 (efi_fb_mod_SOURCES): Rename this ...
6534 (efi_uga_mod_SOURCES): ... to this.
6535 (efi_fb_mod_CFLAGS): Rename this ...
6536 (efi_uga_mod_CFLAGS): ... to this.
6537 (efi_fb_mod_LDFLAGS): Rename this ...
6538 (efi_uga_mod_LDFLAGS): ... to this.
6539 * video/efi_fb.c: Move this ...
6540 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
6541
6542 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6543
6544 * po/README: New file. Explain our PO file workflow.
6545
6546 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6547
6548 * po/ChangeLog: Remove. Move relevant entries back to ...
6549 * ChangeLog: ... here.
6550 * po/ca.po: Remove (now handled by TLP).
6551 * po/id.po: Likewise.
6552 * po/zh_CN.po: Likewise.
6553 * Makefile.in (LINGUAS): Initialize in a way that supports
6554 empty set.
6555
6556 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6557
6558 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
6559 reliing on po/LINGUAS.
6560 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
6561 (po/%.po): ... this.
6562
6563 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6564
6565 * util/i386/efi/grub-mkimage.c: Include "progname.h".
6566 (main): Use `program_name' instead of nonexistent `progname'.
6567
6568 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6569
6570 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6571 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
6572
6573 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6574
6575 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
6576 commit.
6577 * conf/i386-efi.rmk: Likewise.
6578 * conf/i386-ieee1275.rmk: Likewise.
6579 * conf/powerpc-ieee1275.rmk: Likewise.
6580 * conf/sparc64-ieee1275.rmk: Likewise.
6581 * conf/x86_64-efi.rmk: Likewise.
6582
6583 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6584
6585 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
6586
6587 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6588
6589 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
6590
6591 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6592
6593 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
6594 (grub_mkdevicemap_SOURCES): New variable.
6595 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
6596 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
6597 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
6598 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
6599 (grub_mkdevicemap_SOURCES): Remove.
6600 * conf/i386-efi.rmk: Likewise.
6601 * conf/i386-ieee1275.rmk: Likewise.
6602 * conf/i386-pc.rmk: Likewise.
6603 * conf/powerpc-ieee1275.rmk: Likewise.
6604 * conf/sparc64-ieee1275.rmk: Likewise.
6605 * conf/x86_64-efi.rmk: Likewise.
6606 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
6607 (usage): Fix strings to use `program_name'.
6608 (main): Initialize gettext.
6609 * util/grub-editenv.c: Likewise.
6610 * util/grub-emu.c: Likewise.
6611 * util/grub-fstest.c: Likewise.
6612 * util/grub-mkdevicemap.c: Likewise.
6613 * util/grub-mkfont.c: Likewise.
6614 * util/grub-mkrelpath.c: Likewise.
6615 * util/grub-pe2elf.c: Likewise.
6616 * util/grub-probe.c: Likewise.
6617 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
6618 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6619 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6620
6621 * util/misc.c: Include `"progname.h"'.
6622 (progname): Remove variable.
6623 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
6624
6625 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
6626
6627 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
6628 printf and print a newline after the menuentry header line.
6629 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
6630
6631 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
6632
6633 autoconf >= 2.60 support $(localedir).
6634
6635 * INSTALL: Note that autoconf 2.60 is required.
6636 * configure.ac (AC_PREREQ): Bump to 2.60.
6637 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
6638 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
6639
6640 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
6641
6642 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
6643 aclocal is run.
6644
6645 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6646
6647 * normal/main.c (grub_normal_read_line): Fix off-by-one
6648 buffer overflow.
6649
6650 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6651
6652 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
6653 "parser.grub" in grub_command_execute() call.
6654
6655 2009-11-24 Carles Pina i Estany <carles@pina.cat>
6656
6657 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
6658 * conf/i386-efi.rmk: Likewise.
6659 * conf/i386-ieee1275.rmk: Likewise.
6660 * conf/i386-pc.rmk: Likewise.
6661 * conf/powerpc-ieee1275.rmk: Likewise.
6662 * conf/sparc64-ieee1275.rmk: Likewise.
6663 * conf/x86_64-efi.rmk: Likewise.
6664 * gettext/gettex.c: Include <grub/i18n.h>.
6665 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
6666 here ...
6667 * include/grub/i18n.h: ... to here
6668 * include/grub/i18n.h: ... to here.
6669 * kern/misc.c: Include <grub/i18n.h>
6670 (grub_gettext_dummy): Move above user.
6671
6672 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6673
6674 * util/Makefile.in (install-local): Convert a `for' into a normal
6675 shell expansion.
6676
6677 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
6678
6679 * autogen.sh: Add automake call.
6680 * config.guess: Remove.
6681 * config.sub: Likewise.
6682 * install-sh: Likewise.
6683
6684 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6685
6686 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
6687
6688 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6689
6690 * util/Makefile.in (install-local): Convert a make `$(foreach)'
6691 function to a normal shell `for'.
6692
6693 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6694
6695 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6696
6697 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6698
6699 * util/grub-mkrelpath.c: New file.
6700 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
6701 (grub_mkrelpath_SOURCES): New variable.
6702 * include/grub/util/misc.h: New function prototype.
6703 * util/misc.c (make_system_path_relative_to_its_root): New function.
6704
6705 * util/grub-mkconfig_lib.in (bindir): New variable.
6706 (grub_mkrelpath): Likewise.
6707 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
6708
6709 * util/probe.c (probe): Make the file path relative to its root.
6710 Change a info message to use the GRUB path. Enable again the
6711 check if we can read the file with GRUB facilities.
6712
6713 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
6714 to its root.
6715
6716 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6717
6718 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
6719 platform.
6720
6721 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6722
6723 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
6724 strncmp().
6725
6726 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6727
6728 * util/getroot.c (grub_util_is_dmraid): New function.
6729 (grub_util_get_dev_abstraction): Treat dmraid and multipath
6730 devices as normal ones, not as LVM.
6731
6732 2009-11-23 Carles Pina i Estany <carles@pina.cat>
6733
6734 * conf/common.rmk: Add grub-gettext_lib target and updates
6735 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
6736 LDFLAGS.
6737 * gettext/gettext.c: New file. (Reads mo files).
6738 * include/grub/file.h (grub_file_pread): New prototype.
6739 * include/grub/i18n.h (_): New prototype.
6740 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
6741 prototypes.
6742 * kern/misc.c (grub_gettext_dummy): New function.
6743 * normal/menu_text.c: Include <grub/i18n.h>.
6744 * normal/menu_text.c (print_timeout): Gettexttize string.
6745 * normal/menu_text.c (print_message): Gettexttize string.
6746 * po/POTFILES: Add `normal/menu_text.c'.
6747 * po/ca.po: Add new translations.
6748 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
6749 gettext module and defines locale_dir and lang in grub.cfg.
6750 * NEWS: Add gettext support.
6751
6752 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6753
6754 * util/hostdisk.c: Include `<grub/i18n.h>'.
6755 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
6756 (make_device_name): Rewrite using asprintf.
6757 (convert_system_partition_to_system_disk): Replace 0 with NULL.
6758 (find_system_device): If a device is not found, generate one just
6759 by reusing the OS path name.
6760 (read_device_map): Make it permissible for device.map not to exist.
6761
6762 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6763
6764 * script/sh/execute.c: Move from here ...
6765 * script/execute.c: ... to here. Update all users.
6766 * script/sh/function.c: Move from here ...
6767 * script/function.c: ... to here. Update all users.
6768 * script/sh/lexer.c: Move from here ...
6769 * script/lexer.c: ... to here. Update all users.
6770 * script/sh/main.c: Move from here ...
6771 * script/main.c: ... to here. Update all users.
6772 * script/sh/parser.y: Move from here ...
6773 * script/parser.y: ... to here. Update all users.
6774 * script/sh/script.c: Move from here ...
6775 * script/script.c: ... to here. Update all users.
6776
6777 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6778
6779 * configure.ac: Detect all `emu' platforms. Define
6780 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
6781 --enable-grub-emu logic. Disable include/grub/machine
6782 symlink on `emu' platforms.
6783
6784 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
6785 * gensymlist.sh.in: Likewise.
6786
6787 * include/grub/i386/coreboot/machine.h: Remove file.
6788 * include/grub/i386/efi/machine.h: Likewise.
6789 * include/grub/i386/ieee1275/machine.h: Likewise.
6790 * include/grub/i386/pc/machine.h: Likewise.
6791 * include/grub/i386/qemu/machine.h: Likewise.
6792 * include/grub/powerpc/ieee1275/machine.h: Likewise.
6793 * include/grub/sparc64/ieee1275/machine.h: Likewise.
6794 * include/grub/x86_64/efi/machine.h: Likewise.
6795
6796 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
6797 * commands/halt.c: Likewise.
6798 * commands/reboot.c: Likewise.
6799 * include/grub/autoefi.h: Likewise.
6800 * include/grub/i386/at_keyboard.h: Likewise.
6801 * include/grub/i386/kernel.h: Likewise.
6802 * include/grub/i386/loader.h: Likewise.
6803 * include/grub/i386/pc/memory.h: Likewise.
6804 * kern/dl.c: Likewise.
6805 * kern/i386/coreboot/init.c: Likewise.
6806 * loader/i386/bsd.c: Likewise.
6807 * loader/i386/linux.c: Likewise.
6808 * loader/multiboot_loader.c: Likewise.
6809 * term/i386/pc/serial.c: Likewise.
6810 * term/usb_keyboard.c: Likewise.
6811
6812 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
6813 `<grub/machine/machine.h>'
6814 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
6815 * util/misc.c: Remove `<grub/machine/machine.h>' and
6816 `<grub/machine/time.h>'.
6817
6818 * Makefile.in (enable_grub_emu): Remove variable.
6819 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
6820
6821 * conf/any-emu.rmk: New file.
6822 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
6823 (grub_emu_init.c): Move from here ...
6824 * conf/any-emu.rmk: ... to here.
6825
6826 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
6827 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
6828 * conf/any-emu.rmk: ... to here.
6829
6830 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6831
6832 * include/grub/parser.h (grub_parser_register): Document need
6833 of `name' parameter.
6834 * normal/main.c (grub_normal_read_line): Simplify prompt string.
6835 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
6836 "sh" to "grub".
6837
6838 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6839
6840 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
6841 `$(XGETTEXT)'.
6842 * include/grub/i18n.h (N_): New macro.
6843 * util/mkisofs/mkisofs.h: Likewise.
6844 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
6845 around N_().
6846 (usage): Use gettext() to translate help strings when printing them.
6847
6848 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6849
6850 Based on patch from Bean
6851 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
6852
6853 * video/efi_fb.c: New file.
6854 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
6855 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
6856 variables.
6857 * conf/x86_64-efi.rmk: Likewise.
6858
6859 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
6860
6861 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
6862 * util/i386/pc/grub-setup.c: Likewise.
6863
6864 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6865
6866 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
6867 <hurd/fs.h>
6868 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
6869 file_get_storage_info to implement grub_guess_root_device.
6870
6871 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
6872
6873 * Makefile.in (target): Use make's builtin $(shell) function
6874 instead of calling directly $(SHELL) to create the locale directories,
6875 inside the $(foreach) function.
6876
6877 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
6878
6879 * util/grub-mkrescue.in: Print an error and usage if output option
6880 has not been given.
6881
6882 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
6883
6884 Patch from Loïc Minier <loic.minier@ubuntu.com>.
6885 * util/grub.d/30_os-prober.in: Cope with Linux entries where
6886 root and /boot are on different devices.
6887
6888 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6889
6890 Fix build for srcdir != objdir.
6891
6892 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
6893 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
6894 $(srcdir).
6895 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
6896 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
6897 reference for input.
6898
6899 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6900
6901 * util/grub-mkrescue.in: Use source directory direcly (without copiing
6902 or hardlinking it). Remove -J option, Joliet is not compatible with
6903 multiple source directories.
6904
6905 2009-11-21 Carles Pina i Estany <carles@pina.cat>
6906 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6907
6908 * util/grub-mkrescue.in: Recognize `--override-directory' option.
6909 (process_input_dir): New function. Process an arbitrary input
6910 directory.
6911 Misc adjustments to support both "override mode" and system-wide mode.
6912
6913 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
6914
6915 * configure.ac (UNIFONT_BDF): Rename to ...
6916 (FONT_SOURCE): ... this. Update all users.
6917
6918 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
6919
6920 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
6921 to the list of unifont files to look for.
6922
6923 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
6924
6925 Patch from Joe Auricchio <jauricchio@gmail.com>
6926 * commands/minicmd.c (grub_mini_cmd_clear): New function.
6927 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
6928 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
6929
6930 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
6931
6932 * Makefile.in (install-local): Add a missing backslash.
6933
6934 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
6935
6936 * include/grub/x86_64/io.h: New file.
6937
6938 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
6939
6940 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
6941 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
6942 Include `"progname.h"'.
6943 (main): Initialize gettext.
6944 * util/i386/pc/grub-setup.c: Gettexttize.
6945 * util/i386/pc/grub-mkimage.c: Likewise.
6946
6947 * Makefile.in (po/*.po): Redefine as ...
6948 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
6949
6950 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
6951
6952 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
6953
6954 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
6955 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
6956 (program_name): Remove.
6957 (main): Initialize gettext support.
6958 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
6959 Include `<libintl.h>'.
6960 (_): New macro.
6961
6962 * util/mkisofs/eltorito.c: Gettexttize.
6963 * util/mkisofs/joliet.c: Likewise.
6964 * util/mkisofs/mkisofs.c: Likewise.
6965 * util/mkisofs/multi.c: Likewise.
6966 * util/mkisofs/rock.c: Likewise.
6967 * util/mkisofs/tree.c: Likewise.
6968 * util/mkisofs/write.c: Likewise.
6969
6970 * po/POTFILES: Update with new files.
6971
6972 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6973
6974 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
6975 * util/mkisofs/iso9660.h: Likewise.
6976 * util/mkisofs/joliet.c: Likewise.
6977 * util/mkisofs/mkisofs.c: Likewise.
6978 * util/mkisofs/mkisofs.h: Likewise.
6979 * util/mkisofs/rock.c: Likewise.
6980 * util/mkisofs/tree.c: Likewise.
6981 * util/mkisofs/write.c: Likewise.
6982
6983 * util/mkisofs/eltorito.c (rcsid): Remove.
6984 * util/mkisofs/hash.c: Likewise.
6985 * util/mkisofs/joliet.c: Likewise.
6986 * util/mkisofs/name.c: Likewise.
6987 * util/mkisofs/rock.c: Likewise.
6988 * util/mkisofs/tree.c: Likewise.
6989 * util/mkisofs/write.c: Likewise.
6990
6991 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6992
6993 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
6994 instead of static allocation.
6995 * util/mkisofs/match.h: Likewise.
6996
6997 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6998
6999 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
7000 and `util/grub.d/10_linux.in'.
7001 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
7002 translatable Shell files.
7003
7004 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7005
7006 * Makefile.in ($(srcdir)/aclocal.m4): New target.
7007
7008 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7009
7010 * INSTALL: Document Automake is needed for bootstrap.
7011 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
7012 * util/grub.d/10_kfreebsd.in (bindir): New variable.
7013 Add gettext initialization.
7014 (kfreebsd_entry): Make menuentry output translatable.
7015
7016 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7017
7018 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
7019 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
7020 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
7021 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
7022 (LINGUAS): Auto-generate using `po/LINGUAS'.
7023 * po/LINGUAS: New file.
7024
7025 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7026
7027 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
7028 other things).
7029 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
7030 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
7031 bindtextdomain() calls for gettext initialization.
7032
7033 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7034
7035 * gnulib/progname.c: New file (imported from Gnulib).
7036 * gnulib/progname.h: Likewise.
7037 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7038 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
7039 (usage): Replace `progname' with `program_name'.
7040 (main): Use set_program_name() for program name initialization.
7041
7042 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7043
7044 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
7045 from here ...
7046 * Makefile.in (CPPFLAGS): ... to here.
7047
7048 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7049
7050 * aclocal.m4: Move from here ...
7051 * acinclude.m4: ... to here.
7052 * autogen.sh: Add call to `aclocal'.
7053 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
7054
7055 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7056
7057 * Makefile.in (CLEANFILES): Add `po/*.mo'.
7058 (LINGUAS): New variable.
7059 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
7060 (install-local): Install MO files.
7061 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
7062 * include/grub/i18n.h: New file.
7063 * po/POTFILES: New file.
7064 * po/ca.po: New file.
7065 * util/grub.d/10_linux.in (bindir): New variable.
7066 Add gettext initialization.
7067 (linux_entry): Make menuentry output translatable.
7068 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
7069 (usage): Make --help output translatable.
7070 (main): Initialize gettext.
7071
7072 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7073
7074 * import_gcry.py: New file (written by Vladimir with minor
7075 adjustments).
7076 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
7077 ciphers.
7078 * INSTALL: Document that Python is required for bootstrap.
7079
7080 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7081
7082 Import ciphers from libgcrypt 1.4.4.
7083
7084 * lib/libgcrypt/cipher/ChangeLog
7085 * lib/libgcrypt/cipher/ac.c
7086 * lib/libgcrypt/cipher/arcfour.c
7087 * lib/libgcrypt/cipher/bithelp.h
7088 * lib/libgcrypt/cipher/blowfish.c
7089 * lib/libgcrypt/cipher/camellia-glue.c
7090 * lib/libgcrypt/cipher/camellia.c
7091 * lib/libgcrypt/cipher/camellia.h
7092 * lib/libgcrypt/cipher/cast5.c
7093 * lib/libgcrypt/cipher/cipher.c
7094 * lib/libgcrypt/cipher/crc.c
7095 * lib/libgcrypt/cipher/des.c
7096 * lib/libgcrypt/cipher/dsa.c
7097 * lib/libgcrypt/cipher/ecc.c
7098 * lib/libgcrypt/cipher/elgamal.c
7099 * lib/libgcrypt/cipher/hash-common.c
7100 * lib/libgcrypt/cipher/hash-common.h
7101 * lib/libgcrypt/cipher/hmac-tests.c
7102 * lib/libgcrypt/cipher/md.c
7103 * lib/libgcrypt/cipher/md4.c
7104 * lib/libgcrypt/cipher/md5.c
7105 * lib/libgcrypt/cipher/primegen.c
7106 * lib/libgcrypt/cipher/pubkey.c
7107 * lib/libgcrypt/cipher/rfc2268.c
7108 * lib/libgcrypt/cipher/rijndael-tables.h
7109 * lib/libgcrypt/cipher/rijndael.c
7110 * lib/libgcrypt/cipher/rmd.h
7111 * lib/libgcrypt/cipher/rmd160.c
7112 * lib/libgcrypt/cipher/rsa.c
7113 * lib/libgcrypt/cipher/seed.c
7114 * lib/libgcrypt/cipher/serpent.c
7115 * lib/libgcrypt/cipher/sha1.c
7116 * lib/libgcrypt/cipher/sha256.c
7117 * lib/libgcrypt/cipher/sha512.c
7118 * lib/libgcrypt/cipher/tiger.c
7119 * lib/libgcrypt/cipher/twofish.c
7120 * lib/libgcrypt/cipher/whirlpool.c
7121
7122 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7123
7124 Fix build for systems without error().
7125
7126 * gnulib/error.c: New file (imported from Gnulib).
7127 * gnulib/error.h: Likewise.
7128 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
7129 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
7130 (this variable is now used by error()).
7131
7132 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7133
7134 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
7135 instead of relying that char is signed.
7136
7137 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7138
7139 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
7140 blocksize different from specified.
7141 (grub_pxefs_read): Likewise.
7142
7143 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7144
7145 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
7146
7147 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
7148 (grub_ata_readwrite): Likewise. Update 2 format strings.
7149 (grub_atapi_read): Likewise.
7150
7151 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
7152 * conf/i386.rmk (pkglib_MODULES): ... to here ...
7153 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
7154 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
7155 (ata_mod_LDFLAGS): Move from here ...
7156 * conf/i386.rmk: ... to here ...
7157 * conf/x86_64-efi.rmk: ... and here.
7158 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
7159 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
7160
7161 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7162
7163 Relicense multiboot.h, with RMS' blessing.
7164
7165 * include/multiboot.h: Change to X11 license.
7166
7167 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
7168
7169 Support --version in grub-mkisofs.
7170
7171 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
7172 (OPTION_VERSION): New macro.
7173 (ld_options): Recognize --version.
7174 (usage): Move `program_name' from here ...
7175 (program_name): ... to here. Add `static' qualifier.
7176 (main): Recognize `OPTION_VERSION'.
7177
7178 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
7179
7180 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
7181 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
7182
7183 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7184
7185 Fix help2man generation for mkisofs.
7186
7187 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
7188 (usage): Send output to stdout (rather than stderr).
7189
7190 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7191
7192 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
7193 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7194 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
7195 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7196 (bin_SCRIPTS): Add `grub-mkfloppy'.
7197 (grub_mkfloppy_SOURCES): New variable.
7198
7199 * util/grub-mkrescue.in: New file.
7200 * util/i386/pc/grub-mkfloppy.in: New file.
7201
7202 * util/i386/coreboot/grub-mkrescue.in: Remove.
7203 * util/i386/pc/grub-mkrescue.in: Remove.
7204
7205 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7206
7207 * include/grub/multiboot.h (struct grub_multiboot_header): Move
7208 from here ...
7209 * include/multiboot.h (struct multiboot_header): ... to here. Update
7210 all users.
7211 * include/grub/multiboot.h (struct grub_multiboot_info): Move
7212 from here ...
7213 * include/multiboot.h (struct multiboot_info): ... to here. Update
7214 all users.
7215 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
7216 from here ...
7217 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
7218 Update all users.
7219 * include/grub/multiboot.h (struct grub_mod_list): Move
7220 from here ...
7221 * include/multiboot.h (struct multiboot_mod_list): ... to here.
7222 Update all users.
7223
7224 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7225
7226 * include/multiboot2.h (multiboot_word): Rename from this ...
7227 (multiboot2_word): ... to this. Update all users.
7228 (multiboot_header): Rename from this ...
7229 (multiboot2_header): ... to this. Update all users.
7230 (multiboot_tag_header): Rename from this ...
7231 (multiboot2_tag_header): ... to this. Update all users.
7232 (multiboot_tag_start): Rename from this ...
7233 (multiboot2_tag_start): ... to this. Update all users.
7234 (multiboot_tag_name): Rename from this ...
7235 (multiboot2_tag_name): ... to this. Update all users.
7236 (multiboot_tag_module): Rename from this ...
7237 (multiboot2_tag_module): ... to this. Update all users.
7238 (multiboot_tag_memory): Rename from this ...
7239 (multiboot2_tag_memory): ... to this. Update all users.
7240 (multiboot_tag_unused): Rename from this ...
7241 (multiboot2_tag_unused): ... to this. Update all users.
7242 (multiboot_tag_end): Rename from this ...
7243 (multiboot2_tag_end): ... to this. Update all users.
7244
7245 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7246
7247 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
7248 this platform we should support Multiboot1 first.
7249
7250 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
7251 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
7252 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
7253
7254 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7255
7256 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
7257 of write calls (converting them to fwrite() if they aren't already).
7258 (get_torito_desc): Likewise.
7259 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
7260
7261 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7262
7263 * util/i386/pc/grub-install.in: Move from here ...
7264 * util/grub-install.in: ... to here. Update all users.
7265
7266 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
7267
7268 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
7269
7270 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7271
7272 Support for El Torito without floppy emulation.
7273
7274 * util/mkisofs/eltorito.c: Include `<errno.h>'.
7275 (init_boot_catalog): Improve error handling.
7276 (get_torito_desc): Don't use floppy emulation unless requested by
7277 user. Patch boot information table when requested via
7278 `-boot-info-table'.
7279 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
7280 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
7281 (use_boot_info_table): New variables.
7282 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
7283 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
7284 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
7285 `--eltorito-emul-floppy'.
7286 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
7287 and `OPTION_ELTORITO_EMUL_FLOPPY'.
7288 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
7289 (use_boot_info_table, get_731): New prototypes.
7290 * util/mkisofs/write.c (get_731): New function.
7291
7292 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
7293
7294 Fix the generation of the man page.
7295
7296 * util/pc/i386/grub-install.in: Source
7297 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
7298
7299 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7300
7301 Large file support for grub-mkisofs.
7302
7303 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
7304 * util/mkisofs/mkisofs.c (next_extent, last_extent)
7305 (session_start): Upgrade type to `uint64_t'. Update all users.
7306 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
7307 (struct directory_entry): Upgrade type of `starting_block' and
7308 `size' to `uint64_t'. Update all users.
7309 (struct deferred): Remove unused structure.
7310 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
7311 Update all users.
7312 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
7313 file is larger than `UINT32_MAX'.
7314 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
7315 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
7316 return value.
7317 (struct deferred_write): Upgrade type of `extent' and `size' to
7318 `uint64_t'. Update all users.
7319 (last_extent_written): Upgrade type to `uint64_t'. Update all
7320 users.
7321 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
7322 Update all users. Upgrade type of `remain' to `int64_t' and
7323 `use' to `size_t'. Use error() to handle fread() errors.
7324 (write_files): Rely on write_one_file() rather than calling
7325 xfwrite() directly.
7326
7327 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
7328
7329 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
7330
7331 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7332
7333 * util/mkisofs/fnmatch.c: Remove.
7334 * util/mkisofs/getopt1.c: Likewise.
7335 * util/mkisofs/getopt.c: Likewise.
7336 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
7337 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
7338 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
7339 `gnulib/getopt1.c' and `gnulib/getopt.c'.
7340 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
7341
7342 * configure.ac: Detect `mingw32msvc' host_os.
7343 Check for lstat(), getuid() and getgid().
7344
7345 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
7346 instances of `u_char' with `uint8_t'.
7347
7348 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
7349 [!HAVE_GETUID] (getuid): New function (stub).
7350 [!HAVE_GETGID] (getgid): Likewise.
7351 [!HAVE_LSTAT] (lstat): Likewise.
7352 [!S_IROTH] (S_IROTH): New macro (dummy).
7353 [!S_IRGRP] (S_IRGRP): Likewise.
7354
7355 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7356
7357 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
7358 conditional expression).
7359
7360 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7361
7362 Import from Gnulib.
7363
7364 * gnulib/fnmatch.c: New file.
7365 * gnulib/fnmatch.h: Likewise.
7366 * gnulib/fnmatch_loop.c: Likewise.
7367 * gnulib/getopt.c: Likewise.
7368 * gnulib/getopt.h: Likewise.
7369 * gnulib/getopt1.c: Likewise.
7370 * gnulib/getopt_int.h: Likewise.
7371 * gnulib/gettext.h: Likewise.
7372
7373 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7374
7375 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
7376 * normal/handler.c (read_handler_list): Likewise.
7377
7378 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7379
7380 Misc cleanup.
7381
7382 * kern/command.c (grub_register_command_prio): Use
7383 grub_zalloc() instead of explicitly zeroing data.
7384 * kern/list.c: Include `<grub/mm.h>'.
7385 (grub_named_list_find): Replace `0' with `NULL'.
7386 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
7387 (fs_module_list): Change type to `grub_named_list_t'. Update all
7388 users.
7389 * normal/dyncmd.c (read_command_list): Add space between function
7390 call and parenthesis.
7391 * normal/handler.c (read_handler_list): Likewise.
7392
7393 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7394
7395 * normal/auth.c (punishment_delay): Moved from here ...
7396 (grub_auth_strcmp): ... to here (inside function).
7397
7398 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7399
7400 * include/grub/list.h (struct grub_named_list): Remove `const'
7401 qualifier from `name'.
7402 (struct grub_prio_list): Likewise.
7403
7404 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7405
7406 * normal/auth.c: Include `<grub/time.h>'.
7407 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
7408
7409 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7410
7411 * normal/auth.c (punishment_delay): New variable.
7412 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
7413 (grub_auth_check_authentication): Punish failed login attempts with
7414 an incremental (2^N) delay.
7415
7416 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7417
7418 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
7419 path with $(srcdir).
7420
7421 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7422
7423 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
7424
7425 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7426
7427 * util/i386/coreboot/grub-mkrescue.in: New file.
7428 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
7429 variables.
7430
7431 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
7432 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
7433 * configure.ac: Add header and function checks to satisfy grub-mkisofs
7434 requirements.
7435 * util/mkisofs/defaults.h: New file.
7436 * util/mkisofs/eltorito.c: Likewise.
7437 * util/mkisofs/exclude.h: Likewise.
7438 * util/mkisofs/fnmatch.c: Likewise.
7439 * util/mkisofs/getopt.c: Likewise.
7440 * util/mkisofs/getopt1.c: Likewise.
7441 * util/mkisofs/hash.c: Likewise.
7442 * util/mkisofs/include/fctldefs.h: Likewise.
7443 * util/mkisofs/include/mconfig.h: Likewise.
7444 * util/mkisofs/include/prototyp.h: Likewise.
7445 * util/mkisofs/include/statdefs.h: Likewise.
7446 * util/mkisofs/iso9660.h: Likewise.
7447 * util/mkisofs/joliet.c: Likewise.
7448 * util/mkisofs/match.c: Likewise.
7449 * util/mkisofs/match.h: Likewise.
7450 * util/mkisofs/mkisofs.c: Likewise.
7451 * util/mkisofs/mkisofs.h: Likewise.
7452 * util/mkisofs/multi.c: Likewise.
7453 * util/mkisofs/name.c: Likewise.
7454 * util/mkisofs/rock.c: Likewise.
7455 * util/mkisofs/tree.c: Likewise.
7456 * util/mkisofs/write.c: Likewise.
7457
7458 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7459
7460 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
7461 being insecure.
7462
7463 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7464
7465 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
7466 `grub-mkimage' (and use $0 when possible).
7467
7468 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7469
7470 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
7471 error message for excessively large memory map.
7472
7473 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7474
7475 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
7476 executable bit.
7477
7478 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7479
7480 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
7481 message for coreboot users.
7482
7483 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
7484
7485 Fix build with GNU gold.
7486
7487 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
7488 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
7489 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
7490 link addresses.
7491 * aclocal.m4: Likewise.
7492
7493 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
7494
7495 * configure.ac (AC_PREREQ): Bump to 2.59d.
7496 * INSTALL: Make it more clear when Autoconf and Ruby are
7497 needed and when to run `./autogen.sh'.
7498
7499 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7500
7501 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
7502 OSes.
7503
7504 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7505
7506 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
7507
7508 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7509
7510 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
7511 giving it to GNU Mach.
7512
7513 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7514
7515 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
7516 GNU partition number to get internal GRUB partition number.
7517
7518 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7519
7520 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
7521 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
7522
7523 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
7524
7525 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
7526 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
7527 case.
7528
7529 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
7530
7531 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
7532
7533 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7534
7535 Fix build problem.
7536
7537 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
7538 `-isystem=$(srcdir)/include'.
7539
7540 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7541
7542 * util/i386/pc/grub-install.in: Remove hint that device.map should be
7543 checked (grub-install doesn't currently rely on it).
7544
7545 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
7546
7547 Revert SVN r2660.
7548
7549 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
7550 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7551 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
7552 * conf/i386-ieee1275.rmk: Likewise.
7553 * conf/i386-pc.rmk: Likewise.
7554 * conf/powerpc-ieee1275.rmk: Likewise.
7555 * conf/sparc64-ieee1275.rmk: Likewise.
7556 * conf/x86_64-efi.rmk: Likewise.
7557
7558 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7559
7560 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
7561
7562 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7563
7564 * include/grub/misc.h: Stop checking for APPLE_CC.
7565
7566 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7567
7568 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
7569 doesn't cause an infinite call loop.
7570
7571 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
7572
7573 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
7574 strings.
7575
7576 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7577
7578 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
7579 variable.
7580 * Makefile.in: Likewise.
7581
7582 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7583
7584 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
7585
7586 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7587
7588 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
7589
7590 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7591
7592 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
7593
7594 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7595
7596 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
7597 from here ...
7598 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
7599
7600 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7601
7602 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
7603 in $(MAKEINFO) invocation. This makes it clear in output that
7604 errors are being ignored.
7605
7606 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7607
7608 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
7609 from here ...
7610 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7611 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
7612 * conf/i386-ieee1275.rmk: Likewise.
7613 * conf/i386-pc.rmk: Likewise.
7614 * conf/powerpc-ieee1275.rmk: Likewise.
7615 * conf/sparc64-ieee1275.rmk: Likewise.
7616 * conf/x86_64-efi.rmk: Likewise.
7617
7618 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
7619
7620 * util/grub-editenv.c (main): If only a command is given, use
7621 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
7622 (usage): FILENAME is now optional and has a default.
7623
7624 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
7625
7626 Improve grub-mkconfig performance when there are several menu
7627 entries on a single filesystem.
7628
7629 * util/grub.d/10_linux.in (linux_entry): Cache the output of
7630 prepare_grub_to_access_device.
7631 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
7632 * util/grub.d/30_os-prober.in: Likewise.
7633
7634 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7635
7636 * util/grub.d/10_freebsd.in: Remove.
7637 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
7638 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
7639
7640 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7641
7642 * docs/grub.cfg: Fix example usage of *BSD loaders.
7643
7644 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7645
7646 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
7647 grub_util_error() call.
7648
7649 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7650
7651 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
7652 `reserved_first_sector' member.
7653 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
7654 `reserved_first_sector' to 1.
7655 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
7656 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
7657 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
7658 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
7659 filesystems which begin at first sector.
7660 (options): New option --skip-fs-probe.
7661 (main): Handle --skip-fs-probe and pass it to setup().
7662
7663 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7664
7665 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
7666 (memset): Fix function prototype.
7667
7668 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7669 2009-10-25 Vasily Averin <vvs@parallels.com>
7670
7671 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
7672 `dirent.direntlen == 0'.
7673
7674 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7675
7676 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
7677 `cpio'.
7678 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
7679
7680 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7681
7682 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
7683 `__trampoline_setup' and `__ucmpdi2'.
7684 * include/grub/powerpc/libgcc.h: Only export symbols for functions
7685 that libgcc provides.
7686
7687 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7688
7689 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
7690 * include/grub/sparc64/libgcc.h (memset): Likewise.
7691 * include/grub/misc.h (memset, memcmp): New function prototypes.
7692
7693 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7694
7695 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
7696 `cpio'.
7697 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
7698
7699 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7700
7701 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
7702 * docs/grub.cfg: Compensate for recent change in multiboot
7703 loader (since 2009-08-14 it won't pass filename to payload).
7704 * util/grub.d/10_hurd.in: Likewise.
7705
7706 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
7707
7708 * config.guess: Update to latest version from config git
7709 repository.
7710 * config.sub: Likewise.
7711
7712 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
7713
7714 Fix build on sparc64.
7715
7716 * configure.ac: Perform checks for libgcc symbols before
7717 adding `-nostdlib' to LDFLAGS.
7718
7719 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7720
7721 Let user specify OpenBSD root device.
7722
7723 * loader/i386/bsd.c (openbsd_root): New variable.
7724 (openbsd_opts): New option 'root'.
7725 (OPENBSD_ROOT_ARG): New macro.
7726 (grub_openbsd_boot): Use 'openbsd_root'.
7727 (grub_cmd_openbsd): Fill 'openbsd_root'.
7728
7729 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
7730
7731 * NEWS: Misc adjustments.
7732
7733 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7734
7735 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
7736
7737 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
7738
7739 * configure.ac: Bump version to 1.97.
7740
7741 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
7742
7743 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
7744 -mno-3dnow on x86 architectures. Some toolchains enable these
7745 features by default, but they rely on registers that aren't enabled
7746 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
7747
7748 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
7749
7750 Make entry text a bit more readable.
7751
7752 * util/grub.d/10_linux.in: Add `with' before `Linux'.
7753
7754 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7755
7756 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
7757
7758 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7759
7760 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
7761 operations.
7762
7763 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7764
7765 * configure.ac: Add missing dollar.
7766
7767 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7768
7769 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
7770
7771 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
7772 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
7773 exports.
7774 * include/grub/sparc64/libgcc.h: Likewise. Use
7775 preprocessor conditionals.
7776
7777 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
7778
7779 * conf/common.rmk (grub-dumpbios): Remove rule.
7780 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
7781 * util/grub-dumpbios.in: Remove file.
7782
7783 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
7784
7785 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
7786 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
7787
7788 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
7789 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
7790 users.
7791
7792 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
7793 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
7794 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
7795 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
7796 users.
7797
7798 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
7799
7800 * term/tparm.c: Switch to GPLv3.
7801
7802 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
7803
7804 * include/grub/i386/cpuid.h: Add header protection.
7805
7806 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
7807
7808 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
7809
7810 * include/grub/i386/cpuid.h: New file.
7811 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
7812 (has_longmode): Rename to ...
7813 (grub_cpuid_has_longmode): ... this. Update all users. Remove
7814 `static' attribute.
7815 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
7816 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
7817 on a CPU that doesn't implement AMD64 instruction set.
7818
7819 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
7820
7821 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
7822 that version.texi is rebuilt on version number changes.
7823
7824 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
7825
7826 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
7827 Fixes bug #27602.
7828
7829 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
7830
7831 * util/i386/pc/grub-install.in: Source
7832 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
7833 that the --grub-probe option will work.
7834 * util/sparc64/ieee1275/grub-install.in: Likewise.
7835
7836 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
7837
7838 * configure.ac: Bump version to 1.97~beta4.
7839
7840 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
7841
7842 Resync grub-mkdevicemap in x86_64-efi.
7843
7844 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
7845 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
7846 `util/devicemap.c'.
7847
7848 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
7849
7850 * util/grub-editenv.c (create_envblk_file): Write new block with a
7851 .new suffix and then rename it into place, to ensure atomic
7852 creation.
7853
7854 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
7855
7856 Do not automatically install headers.
7857
7858 * Makefile.in (include_DATA): Remove. Update all users.
7859
7860 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
7861
7862 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
7863 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
7864
7865 * util/osdetect.lua: Remove.
7866 * script/lua/lauxlib.c: Likewise.
7867 * script/lua/ldebug.c: Likewise.
7868 * script/lua/grub_main.c: Likewise.
7869 * script/lua/lauxlib.h: Likewise.
7870 * script/lua/ldebug.h: Likewise.
7871 * script/lua/ltablib.c: Likewise.
7872 * script/lua/liolib.c: Likewise.
7873 * script/lua/lstrlib.c: Likewise.
7874 * script/lua/lualib.h: Likewise.
7875 * script/lua/ldo.c: Likewise.
7876 * script/lua/ldump.c: Likewise.
7877 * script/lua/ldo.h: Likewise.
7878 * script/lua/loslib.c: Likewise.
7879 * script/lua/lundump.c: Likewise.
7880 * script/lua/grub_lib.c: Likewise.
7881 * script/lua/ldblib.c: Likewise.
7882 * script/lua/lundump.h: Likewise.
7883 * script/lua/lmem.c: Likewise.
7884 * script/lua/grub_lib.h: Likewise.
7885 * script/lua/lmathlib.c: Likewise.
7886 * script/lua/lstate.c: Likewise.
7887 * script/lua/ltm.c: Likewise.
7888 * script/lua/lvm.c: Likewise.
7889 * script/lua/lmem.h: Likewise.
7890 * script/lua/lstate.h: Likewise.
7891 * script/lua/ltm.h: Likewise.
7892 * script/lua/ltable.c: Likewise.
7893 * script/lua/lvm.h: Likewise.
7894 * script/lua/llex.c: Likewise.
7895 * script/lua/lgc.c: Likewise.
7896 * script/lua/grub_lua.h: Likewise.
7897 * script/lua/loadlib.c: Likewise.
7898 * script/lua/lfunc.c: Likewise.
7899 * script/lua/lopcodes.c: Likewise.
7900 * script/lua/lparser.c: Likewise.
7901 * script/lua/ltable.h: Likewise.
7902 * script/lua/llex.h: Likewise.
7903 * script/lua/lgc.h: Likewise.
7904 * script/lua/lfunc.h: Likewise.
7905 * script/lua/lbaselib.c: Likewise.
7906 * script/lua/lopcodes.h: Likewise.
7907 * script/lua/lparser.h: Likewise.
7908 * script/lua/lzio.c: Likewise.
7909 * script/lua/linit.c: Likewise.
7910 * script/lua/lobject.c: Likewise.
7911 * script/lua/llimits.h: Likewise.
7912 * script/lua/lstring.c: Likewise.
7913 * script/lua/lzio.h: Likewise.
7914 * script/lua/lapi.c: Likewise.
7915 * script/lua/lcode.c: Likewise.
7916 * script/lua/lua.h: Likewise.
7917 * script/lua/lobject.h: Likewise.
7918 * script/lua/lstring.h: Likewise.
7919 * script/lua/lapi.h: Likewise.
7920 * script/lua/lcode.h: Likewise.
7921 * script/lua/luaconf.h: Likewise.
7922
7923 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
7924
7925 * docs/grub.texi (Command-line and menu entry commands): Document
7926 date and echo commands.
7927
7928 2009-09-24 Pavel Roskin <proski@gnu.org>
7929
7930 * include/grub/kernel.h (struct grub_module_header): Remove
7931 `grub_module_header_types'. Make `type' unsigned. Make `size'
7932 32-bit on all platforms.
7933 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
7934 8-bit field. Use grub_host_to_target32() for `size'.
7935 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
7936 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
7937 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
7938
7939 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
7940
7941 Fix "lost keypress" bug in at_keyboard.
7942
7943 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
7944 Checks for readyness of input buffer (without flushing it).
7945 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
7946 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
7947
7948 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
7949
7950 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
7951 size check within GRUB_MACHINE_PCBIOS section.
7952
7953 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
7954
7955 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
7956 return value.
7957 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
7958 KEYBOARD_ISREADY check.
7959 (grub_at_keyboard_checkkey): Rename to ...
7960 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
7961 Remove gratuitous cast.
7962
7963 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
7964
7965 * configure.ac: Call AC_PROG_MKDIR_P.
7966 * Makefile.in (docs/stamp-vti): Create docs directory. Create
7967 version.texi in $(builddir) rather than $(srcdir).
7968 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
7969 to makeinfo's @include search path.
7970
7971 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
7972
7973 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
7974
7975 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
7976
7977 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
7978 for `*.dpkg-new'.
7979
7980 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
7981
7982 Build info documentation. Some code borrowed from Automake.
7983
7984 * configure.ac: Check for makeinfo.
7985 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
7986 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
7987 docs/version.texi.
7988 (MOSTLYCLEANFILES): Add vti.tmp.
7989 (docs/version.texi, docs/stamp-vti): Update automatically.
7990 (docs/grub.info): Build info documentation. Use --force and ignore
7991 errors for now.
7992 (all-local): Add $(INFOS).
7993 (install-local): Install info files.
7994 (uninstall): Uninstall info files.
7995 * docs/version.texi: Remove from revision control. This file is
7996 automatically generated on build now.
7997 * gendistlist.sh: Add `*.info'.
7998
7999 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
8000
8001 * kern/term.c: Fix indentation.
8002
8003 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
8004
8005 * util/hostdisk.c: Fix a comment.
8006
8007 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
8008
8009 Fix regression introduced in r2539.
8010
8011 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
8012 to 0xA1.
8013
8014 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
8015
8016 * util/grub.d/30_os-prober.in: Don't throw away stderr from
8017 os-prober. Under normal operation, it does not print anything to
8018 stderr; if it does, we need to debug it, and throwing away stderr
8019 makes that excessively difficult.
8020
8021 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
8022
8023 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
8024
8025 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8026
8027 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
8028 AC_LANG_PROGRAM from autoconf.
8029 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
8030 prototypes (fixes warning).
8031
8032 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
8033 `--disable-werror' was used.
8034
8035 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8036
8037 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
8038 uninitialized `lastaddr'.
8039
8040 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8041
8042 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
8043
8044 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8045
8046 * commands/test.c (get_fileinfo): Return immediately if
8047 grub_fs_probe fails.
8048
8049 2009-09-14 José Martínez <xosemp@gmail.com>
8050
8051 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
8052
8053 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8054
8055 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
8056 output.
8057
8058 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
8059
8060 * configure.ac: Remove --enable-grub-pe2elf. Only build
8061 grub-pe2elf when needed by the build system itself.
8062 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
8063
8064 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8065
8066 * configure.ac: Bump version to 1.97~beta3.
8067 * docs/version.texi: Likewise.
8068
8069 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8070
8071 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
8072 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
8073 from here ...
8074 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
8075 (grub_linux_setup_video): ... to here (with some adjustments).
8076
8077 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8078
8079 Fix memory corruption issue (spotted by Colin Watson).
8080
8081 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
8082 causing returned size to be stored in an incorrect memory location.
8083 Fix use of uninitialized value when storing the returned size.
8084
8085 2009-09-12 Yves Blusseau <blusseau@zetam.org>
8086
8087 Change clean rules to properly remove files
8088
8089 * genmk.rb: add new clean rules
8090 * Makefile.in (clean): add the new targets
8091 (mostlyclean): likewise
8092
8093 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8094
8095 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
8096 to grub_uint64_t.
8097 * fs/ntfs.c (init_file): Understand 64-bit sizes for
8098 non-resident files.
8099
8100 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8101
8102 * configure.ac: Don't look for help2man when cross-compiling. Fixes
8103 part of bug #27349.
8104
8105 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8106
8107 * util/grub-mkconfig.in: Make the created config mode 400 and
8108 print a warning if it fails.
8109
8110 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
8111
8112 * util/grub.d/40_custom.in: Ask user to type custom entries below
8113 comment, rather than below 'exec tail' line.
8114
8115 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8116
8117 * util/grub.d/40_custom.in: Make sure that the explanatory text is
8118 visible in grub.cfg.
8119
8120 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8121
8122 * util/grub.d/40_custom.in: Make it a little clearer how to use this
8123 file.
8124
8125 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8126
8127 * docs/grub.cfg: Add an example menu entry for memtest86+.
8128
8129 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
8130
8131 * config.guess: Update to latest version from config git.
8132 * config.sub: Likewise.
8133
8134 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
8135
8136 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
8137 unknown-command case. Fixes bug #27320.
8138
8139 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
8140
8141 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
8142 `help' if the command exists.
8143
8144 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
8145
8146 * INSTALL: Require GCC 4.1.3 or later.
8147
8148 2009-09-06 Yves Blusseau <blusseau@zetam.org>
8149
8150 * Makefile.in (RMKFILES): add i386-qemu.rmk
8151 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
8152 $(srcdir)/stamp-h.in
8153
8154 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
8155
8156 * util/grub-probe.c (probe): Comment out buggy codepath, which
8157 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
8158 should be re-enabled after 1.97.
8159
8160 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
8161
8162 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
8163 find searches for.
8164
8165 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
8166
8167 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
8168 unnecessary calls to grub_error.
8169
8170 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
8171
8172 * NEWS: Mention `keystatus' and Unicode fonts.
8173
8174 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
8175
8176 * configure.ac: Bump version to 1.97~beta2.
8177 * docs/version.texi: Likewise.
8178
8179 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
8180
8181 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
8182 containing unwind information in some cases where it previously did
8183 not. Use -fno-dwarf2-cfi-asm if available to restore the old
8184 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
8185 discussion.
8186
8187 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
8188
8189 Embedding loadenv module into grub-emu
8190
8191 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
8192 commands/loadenv.c
8193 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
8194 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
8195 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
8196 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
8197 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
8198 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
8199
8200 2009-09-03 Magnus Granberg <zorry@ume.nu>
8201
8202 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
8203 include -fPIE in the default specs.
8204 * configure.ac: Check if pie_possible is yes and add -fno-PIE
8205 to TARGET_CFLAGS.
8206
8207 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
8208
8209 * INSTALL: Note that GNU Bison 2.3 or later is required.
8210
8211 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
8212
8213 * kern/i386/pc/startup.S: Fix typo.
8214
8215 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
8216
8217 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
8218 according to GCS.
8219
8220 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8221
8222 * docs/grub.texi (Naming convention): Describe one-based partition
8223 numbering.
8224 (Device syntax): Likewise.
8225 (File name syntax): Likewise.
8226 (Block list syntax): Likewise.
8227 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
8228 menu.lst.
8229 (File name syntax): Likewise.
8230 (Command-line and menu entry commands): Document acpi, blocklist,
8231 crc, export, insmod, keystatus, ls, set, and unset commands.
8232
8233 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8234
8235 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
8236 to avoid implying that only one of --shift, --ctrl, or --alt may be
8237 used.
8238
8239 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8240
8241 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
8242 rather than comparing against S_IFREG, which will almost never work.
8243
8244 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
8245
8246 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
8247 (write_blocklists): Likewise.
8248
8249 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
8250
8251 * script/lua/grub_lua.h (fputs): Supply a format string as the first
8252 argument to grub_printf.
8253
8254 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
8255
8256 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
8257 non GNU test.
8258
8259 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8260
8261 * kern/file.c (grub_file_read): Spelling fix
8262
8263 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8264
8265 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
8266 loading of headers in some cases.
8267
8268 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
8269
8270 * configure.ac: Bump version to 1.97~beta1.
8271 * docs/version.texi: Likewise.
8272
8273 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8274
8275 * include/grub/i386/xnu.h: Add license header.
8276 include grub/err.h explicitly.
8277
8278 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8279
8280 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
8281 to `ufs' in the vfs.root.mountfrom kernel parameter.
8282
8283 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8284
8285 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
8286
8287 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
8288 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
8289
8290 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
8291 `ARRAY_SIZE' macro.
8292
8293 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8294
8295 * kern/file.c (grub_file_read): Check offset.
8296 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
8297 * fs/jfs.c (grub_jfs_read_file): Likewise.
8298 * fs/ntfs.c (grub_ntfs_read): Likewise.
8299 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
8300 * fs/minix.c (grub_minix_read_file): Correct offset check.
8301 * fs/ufs.c (grub_ufs_read_file): Likewise.
8302
8303 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8304
8305 * term/i386/pc/console.c (bios_data_area): Cast
8306 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
8307
8308 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8309
8310 1-bit optimised blitters.
8311
8312 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
8313 prototype.
8314 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8315 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8316 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8317 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8318 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8319 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8320 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
8321 function.
8322 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8323 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8324 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8325 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8326 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8327 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8328 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
8329 when possible.
8330 * video/video.c (grub_video_get_blit_format): Return
8331 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
8332
8333 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8334
8335 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
8336 the first argument to grub_printf.
8337
8338 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8339 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
8340
8341 Add `getkeystatus' terminal method. Add a new `keystatus' command
8342 to query it.
8343
8344 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
8345 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
8346 modifier key bitmasks.
8347 (struct grub_term_input): Add `getkeystatus' member.
8348 (grub_getkeystatus): Add prototype.
8349 * kern/term.c (grub_getkeystatus): New function.
8350
8351 * include/grub/i386/pc/memory.h
8352 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
8353 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
8354 Data Area layout.
8355 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
8356 (grub_console_term_input): Set `getkeystatus' member.
8357 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
8358 constants.
8359 (grub_usb_keyboard_getreport): Likewise.
8360 (grub_usb_keyboard_checkkey): Likewise.
8361 (grub_usb_keyboard_getkeystatus): New function.
8362 (grub_usb_keyboard_term): Set `getkeystatus' member.
8363
8364 * commands/keystatus.c: New file.
8365 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
8366 (keystatus_mod_SOURCES): New variable.
8367 (keystatus_mod_CFLAGS): Likewise.
8368 (keystatus_mod_LDFLAGS): Likewise.
8369 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
8370 commands/keystatus.c.
8371 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8372 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8373 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8374 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8375 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8376 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8377
8378 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8379
8380 Split befs.mod and afs.mod into *_be.mod and *.mod
8381
8382 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
8383 (grub_fstest_SOURCES): Likewise.
8384 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
8385 (afs_be_mod_SOURCES): New variable.
8386 (afs_be_mod_CFLAGS): Likewise.
8387 (afs_be_mod_LDFLAGS): Likewise.
8388 (befs_be_mod_SOURCES): Likewise.
8389 (befs_be_mod_CFLAGS): Likewise.
8390 (befs_be_mod_LDFLAGS): Likewise.
8391 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
8392 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8393 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8394 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
8395 (grub_emu_SOURCES): Likewise.
8396 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8397 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8398 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8399 * fs/afs_be.c: New file.
8400 * fs/befs_be.c: New file.
8401 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
8402 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
8403 (U16): Replaced with ...
8404 (grub_afs_to_cpu16): ...this. All users updated.
8405 (U32): Replaced with ...
8406 (grub_afs_to_cpu32): ...this. All users updated.
8407 (U64): Replaced with ...
8408 (grub_afs_to_cpu64): ...this. All users updated.
8409 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
8410 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
8411 (grub_afs_validate_sblock): Check only one endianness.
8412 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8413 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8414 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8415 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8416 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8417 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8418 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8419 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8420
8421 2009-08-26 Bean <bean123ch@gmail.com>
8422
8423 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
8424 64-bit number.
8425 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
8426 (grub_xfs_inode_block): Change return type to grub_uint64_t.
8427 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
8428
8429 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8430
8431 NetBSD memory map support.
8432
8433 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
8434 (grub_netbsd_btinfo_mmap_header): New structure.
8435 (grub_netbsd_btinfo_mmap_entry): Likewise.
8436 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
8437
8438 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8439
8440 Enable bsd.mod on coreboot.
8441
8442 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
8443 (bsd_mod_SOURCES): New variable.
8444 (bsd_mod_CFLAGS): Likewise.
8445 (bsd_mod_LDFLAGS): Likewise.
8446 (bsd_mod_ASFLAGS): Likewise.
8447 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
8448 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
8449
8450 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8451
8452 Cleanup NetBSD root support.
8453
8454 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
8455 grub_bsd_get_device.
8456 Fix typo.
8457
8458 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
8459
8460 * util/grub.d/00_header.in: Move check for the video backend of
8461 gfxterm from here ...
8462 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
8463 a suitable video backend.
8464
8465 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8466
8467 Fix breakage in grub-setup.
8468
8469 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
8470 "msdos_partition_map".
8471
8472 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8473
8474 Fix breakage in normal/auth.c.
8475
8476 * normal/auth.c (grub_iswordseparator): New function.
8477
8478 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8479
8480 Authentication support.
8481
8482 * commands/password.c: New file.
8483 * conf/common.rmk (pkglib_MODULES): Add password.mod.
8484 (password_mod_SOURCES): New variable.
8485 (password_mod_CFLAGS): Likewise.
8486 (password_mod_LDFLAGS): Likewise.
8487 (normal_mod_SOURCES): Add normal/auth.c.
8488 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
8489 normal/auth.c.
8490 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8491 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8492 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8493 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8494 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8495 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8496 * include/grub/auth.h: New file.
8497 * include/grub/err.h (grub_err_t): New enum value
8498 GRUB_ERR_ACCESS_DENIED.
8499 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
8500 'users'.
8501 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
8502 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
8503 users updated.
8504 * normal/auth.c: New file.
8505 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
8506 (grub_cmdline_run): Don't allow to go to command line without
8507 authentication.
8508 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
8509 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
8510 menuentry without superuser rights.
8511 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
8512 user isn't a superuser.
8513
8514 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8515
8516 Save space by inlining misc.c functions.
8517
8518 * kern/misc.c (grub_iswordseparator): Made static.
8519 * kern/misc.c (grub_strcat): Moved from here ...
8520 * include/grub/misc.h (grub_strcat): ... here. Inlined.
8521 * kern/misc.c (grub_strncat): Moved from here ...
8522 * include/grub/misc.h (grub_strncat): ... here. Inlined.
8523 * kern/misc.c (grub_strcasecmp): Moved from here ...
8524 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
8525 * kern/misc.c (grub_strncasecmp): Moved from here ...
8526 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
8527 * kern/misc.c (grub_isalpha): Moved from here ...
8528 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
8529 * kern/misc.c (grub_isdigit): Moved from here ...
8530 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
8531 * kern/misc.c (grub_isgraph): Moved from here ...
8532 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
8533 * kern/misc.c (grub_tolower): Moved from here ...
8534 * include/grub/misc.h (grub_tolower): ... here. Inlined.
8535
8536 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8537
8538 * script/sh/function.c (grub_script_function_find): Cut error message
8539 not to flood terminal.
8540 * script/sh/lexer.c (grub_script_yylex): Remove command line length
8541 limit.
8542 * script/sh/script.c (grub_script_arg_add): Duplicate string.
8543
8544 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
8545
8546 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
8547 `report' grub_uint8_t *.
8548 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
8549 Use a 50-millisecond timeout rather than just repeating
8550 grub_usb_keyboard_getreport 50 times.
8551 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
8552
8553 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8554
8555 Rename *_partition_map to part_*
8556
8557 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
8558 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
8559 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
8560 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
8561 All users updated.
8562 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
8563 All users updated.
8564 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
8565 * util/grub-probe.c (probe_partmap): Don't transform partition name
8566 to get module name.
8567
8568 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8569
8570 Fix OpenBSD and NetBSD support.
8571
8572 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
8573 memory address conflict.
8574 (OPENBSD_MMAP_ACPI): New definition.
8575 (OPENBSD_MMAP_NVS): Likewise.
8576 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
8577 and OPENBSD_MMAP_NVS.
8578 Add memory map terminator
8579 Explicit cast when calling grub_unix_real_boot.
8580 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
8581
8582 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8583
8584 Let user specify NetBSD root device.
8585
8586 * loader/i386/bsd.c (netbsd_root): New variable.
8587 (netbsd_opts): New option 'root'.
8588 (NETBSD_ROOT_ARG): New macro.
8589 (grub_netbsd_boot): Use 'netbsd_root'.
8590 (grub_bsd_unload): Free 'netbsd_root'.
8591 (grub_cmd_netbsd): Fill 'netbsd_root'.
8592
8593 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8594
8595 Support for 64-bit NetBSD.
8596
8597 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
8598 point when booting non-FreeBSD.
8599
8600 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8601
8602 Support --no-smp and --no-acpi for NetBSD.
8603
8604 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
8605 (NETBSD_AB_NOACPI): Likewise.
8606 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
8607 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
8608
8609 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8610
8611 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
8612 errors.
8613 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
8614 errors. Call grub_error when needed.
8615
8616 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8617
8618 * commands/search.c (search_fs): Try searching without autoload first.
8619 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
8620 filesystem module explicitly for faster booting.
8621
8622 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
8623
8624 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
8625
8626 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
8627
8628 * util/grub.d/30_os-prober.in: Disable os-prober if
8629 `GRUB_DISABLE_OS_PROBER' was set to true.
8630
8631 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
8632
8633 * partmap/pc.c: Rename to ...
8634 * partmap/msdos.c: ... this. Update all users.
8635 (grub_pc_partition_map): Rename to ...
8636 (grub_msdos_partition_map): ... this. Update all users.
8637
8638 * parttool/pcpart.c: Rename to ...
8639 * parttool/msdospart.c: ... this. Update all users.
8640
8641 * include/grub/pc_partition.h: Rename to ...
8642 * include/grub/msdos_partition.h: ... this. Update all users.
8643 (grub_pc_partition_bsd_entry): Rename to ...
8644 (grub_msdos_partition_bsd_entry): ... this. Update all users.
8645 (grub_pc_partition_disk_label): Rename to ...
8646 (grub_msdos_partition_disk_label): ... this. Update all users.
8647 (grub_pc_partition_entry): Rename to ...
8648 (grub_msdos_partition_entry): ... this. Update all users.
8649 (grub_pc_partition_mbr): Rename to ...
8650 (grub_msdos_partition_mbr): ... this. Update all users.
8651 (grub_pc_partition): Rename to ...
8652 (grub_msdos_partition): ... this. Update all users.
8653 (grub_pc_partition_is_empty): Rename to ...
8654 (grub_msdos_partition_is_empty): ... this. Update all users.
8655 (grub_pc_partition_is_extended): Rename to ...
8656 (grub_msdos_partition_is_extended): ... this. Update all users.
8657 (grub_pc_partition_is_bsd): Rename to ...
8658 (grub_msdos_partition_is_bsd): ... this. Update all users.
8659
8660 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
8661 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
8662 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
8663 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
8664 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
8665 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
8666 (gpt_mod_LDFLAGS): Rename to ...
8667 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
8668 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
8669 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
8670 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
8671 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
8672 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
8673 (part_gpt_mod_LDFLAGS): ... this.
8674 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
8675 `pcpart.mod' to `msdospart.mod'.
8676 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
8677 to ...
8678 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
8679 (msdospart_mod_LDFLAGS): ... this.
8680
8681 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8682
8683 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
8684 (openbsd_opts): Likewise.
8685 (netbsd_opts): Likewise.
8686 (freebsd_flags): Added 0 terminator.
8687 (openbsd_flags): Likewise.
8688 (netbsd_flags): Likewise.
8689 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
8690 (grub_cmd_freebsd): Transformed into extended command.
8691 (grub_cmd_openbsd): Likewise.
8692 (grub_cmd_netbsd): Likewise.
8693 (cmd_freebsd): Changed type to grub_extcmd_t.
8694 (cmd_openbsd): Likewise.
8695 (cmd_netbsd): Likewise.
8696 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
8697 grub_cmd_openbsd as extended commands.
8698 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
8699 cmd_netbsd and cmd_openbsd
8700
8701 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
8702
8703 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
8704
8705 2009-08-21 Pavel Roskin <proski@gnu.org>
8706
8707 * Makefile.in (install-local): When checking if a file is in the
8708 build directory, use "test -e" to detect symlinks.
8709
8710 * Makefile.in (install-local): Remove all files in
8711 $(DESTDIR)$(pkglibdir) before installing new files there.
8712
8713 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
8714
8715 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
8716 grub-mkelfimage.
8717
8718 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
8719
8720 * util/grub-mkconfig.in: Don't use gfxterm by default if not
8721 explicitly specified by the user.
8722
8723 2009-08-18 Pavel Roskin <proski@gnu.org>
8724
8725 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
8726 grub_uint8_t pointer for data.
8727 * include/grub/fbutil.h (struct grub_video_fbblit_info):
8728 Likewise.
8729 * video/fb/fbutil.c: Remove unnecessary casts.
8730
8731 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
8732
8733 VBE cleanup.
8734
8735 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
8736 (grub_vbe_set_video_mode): Save active mode info
8737 only after setting the mode.
8738 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
8739 second argument.
8740
8741 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
8742
8743 Rename variables for clarity.
8744
8745 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
8746 (active_vbe_mode_info): ... this. All users updated.
8747 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
8748 All users updated.
8749 (initial_mode): Rename to ...
8750 (initial_vbe_mode): ... this. All users updated.
8751 (mode_in_use): Rename to ..
8752 (vbe_mode_in_use): ... this. All users updated.
8753 (mode_list): Rename to ..
8754 (vbe_mode_list): ... this. All users updated.
8755 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
8756 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
8757 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
8758 'mode_list_size' to 'vbe_mode_list_size'.
8759 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
8760 'best_mode_info' to 'best_vbe_mode_info' and
8761 'best_mode' to 'best_vbe_mode'
8762
8763 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
8764
8765 Remove duplicate grub_video_fb_get_video_ptr.
8766
8767 * include/grub/fbutil.h (get_data_ptr): Rename to ...
8768 (grub_video_fb_get_video_ptr): ... this.
8769 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
8770 * video/fb/fbutil.c: Add comment about addressing.
8771 (get_data_ptr): Rename to ...
8772 (grub_video_fb_get_video_ptr): ... this. All users updated.
8773 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
8774
8775 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
8776
8777 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
8778 grub_dprintf() that was just added.
8779
8780 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
8781
8782 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
8783 (DEFAULT_VIDEO_MODE): Remove macros.
8784 (grub_linux_boot): Remove assumption that Linux has FB support,
8785 and use "text" as default video mode.
8786
8787 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
8788
8789 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
8790 grub_dprintf.
8791 * fs/fat.c (grub_fat_read_data): Likewise.
8792
8793 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8794
8795 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
8796 payload.
8797 (grub_module): Likewise.
8798
8799 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8800
8801 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
8802 mbi->cmdline but free playground.
8803
8804 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8805
8806 Handle group offset on UFS1.
8807
8808 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
8809 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
8810
8811 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8812
8813 Split ufs.mod into ufs1.mod and ufs2.mod.
8814
8815 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
8816 (grub_fstest_SOURCES): Likewise.
8817 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
8818 (ufs_mod_SOURCES): Remove.
8819 (ufs_mod_CFLAGS): Likewise.
8820 (ufs_mod_LDFLAGS): Likewise.
8821 (ufs1_mod_SOURCES): New variable.
8822 (ufs1_mod_CFLAGS): Likewise.
8823 (ufs1_mod_LDFLAGS): Likewise.
8824 (ufs2_mod_SOURCES): New variable.
8825 (ufs2_mod_CFLAGS): Likewise.
8826 (ufs2_mod_LDFLAGS): Likewise.
8827 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
8828 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
8829 Likewise.
8830 (grub_emu_SOURCES): Likewise.
8831 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8832 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8833 (grub_setup_SOURCES): Likewise.
8834 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8835 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
8836 (grub_setup_SOURCES): Likewise.
8837 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
8838 Likewise.
8839 * fs/ufs2.c: New file.
8840 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
8841
8842 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8843
8844 Framebuffer split.
8845
8846 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
8847 subsystem at the end.
8848 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
8849 (video_fb_mod_SOURCES): New variable.
8850 (video_fb_mod_CFLAGS): Likewise.
8851 (video_fb_mod_LDFLAGS): Likewise.
8852 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
8853 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
8854 * video/i386/pc/vbeblit.c: Moved from here ...
8855 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
8856 * video/i386/pc/vbefill.c: Moved from here ...
8857 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
8858 * video/i386/pc/vbeutil.c: Moved from here ...
8859 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
8860 * include/grub/i386/pc/vbeblit.h: Moved from here ...
8861 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
8862 * include/grub/i386/pc/vbefill.h: Moved from here ...
8863 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
8864 * include/grub/i386/pc/vbeutil.h: Moved from here ...
8865 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
8866 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
8867 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
8868 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
8869 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
8870 (grub_video_adapter): Added 'get_info_and_fini'.
8871 (grub_video_get_info_and_fini): New prototype.
8872 (grub_video_set_mode): make modestring const char *.
8873 * loader/i386/linux.c (grub_linux_setup_video): Use
8874 grub_video_get_info_and_fini.
8875 (grub_linux_boot): Move modesetting just before booting.
8876 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
8877 grub_video_get_info_and_fini.
8878 * video/i386/pc/vbe.c: Moved framebuffer part ...
8879 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
8880 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
8881 grub_video_fbstd_colors and grub_video_fb_set_palette.
8882 (grub_video_vbe_init): Clear 'framebuffer' variable and use
8883 grub_video_fb_init.
8884 (grub_video_vbe_fini): Use grub_video_fb_fini.
8885 (grub_video_vbe_setup): Use framebuffer.render_target instead of
8886 render_target and use grub_video_fb_set_active_render_target and
8887 grub_video_fb_set_palette.
8888 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
8889 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
8890 (grub_video_vbe_adapter): Use framebuffer.
8891 * video/video.c (grub_video_get_info_and_fini): New function.
8892 (grub_video_set_mode): Make modestring const char *.
8893 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
8894 values are already initialised.
8895
8896 2009-08-14 Pavel Roskin <proski@gnu.org>
8897
8898 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
8899 ABS and APPLE_CC.
8900 * boot/i386/pc/diskboot.S: Likewise.
8901 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
8902 sectors allow compilation on MacOSX.
8903 * conf/i386-pc.rmk: Enable unconditional compilation of
8904 lnxboot.img.
8905
8906 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
8907
8908 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
8909 * util/grub.d/00_header.in: Enter interruptible sleep if
8910 GRUB_HIDDEN_TIMEOUT is set.
8911
8912 2009-08-13 Yves Blusseau <blusseau@zetam.org>
8913
8914 * include/grub/symbol.h: Add the LOCAL macro.
8915 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
8916 starting with "L_".
8917
8918 2009-08-13 Pavel Roskin <proski@gnu.org>
8919
8920 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
8921 any modern compilers we support.
8922
8923 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
8924 Use local labels starting with "L_" so that Apple assembler
8925 knows they are local.
8926
8927 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
8928
8929 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
8930 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
8931 (bsd_kernel_types): ... this enum.
8932
8933 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
8934 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
8935 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
8936
8937 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
8938 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
8939 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
8940 messages.
8941
8942 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
8943
8944 * util/grub-dumpdevtree: Moved from here ...
8945 * util/i386/efi/grub-dumpdevtree: ... to here.
8946 (hexify): New function. Converts a string to its hex version.
8947 Generate hex versions of "efi" and "device-properties" by calling
8948 hexify() on the ASCII strings rather than by hardcoding numbers.
8949
8950 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
8951
8952 * fs/jfs.c: Update copyright year.
8953
8954 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
8955
8956 * util/grub.d/00_header.in: Fix a comment.
8957 * util/grub.d/10_linux.in: Likewise.
8958 * util/grub.d/10_windows.in: Likewise.
8959 * util/grub.d/10_hurd.in: Likewise.
8960
8961 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
8962
8963 * util/grub-mkconfig.in: Allow the user to specify the used font
8964 with GRUB_FONT.
8965
8966 2009-08-08 Pavel Roskin <proski@gnu.org>
8967
8968 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
8969 available, xfs.mod needs it now.
8970
8971 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
8972 the "g" modifier in sed when the intention is to strip something
8973 once. This fixes comparison of kernels with multiple dashes.
8974
8975 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
8976 on it. Add missing space before closing bracket. Fix
8977 misleading formatting.
8978
8979 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8980
8981 * docs/grub.texi: Major overhaul. Remove all sections that are
8982 specific to GRUB Legacy, or mostly composed of Legacy-specific
8983 information.
8984
8985 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8986
8987 * docs/version.texi: New file. Provides version information for
8988 grub.texi.
8989
8990 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8991
8992 * docs/grub.texi: Update CVS information to SVN.
8993 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
8994
8995 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
8996
8997 * util/grub-mkconfig.in: Remove a wrong `fi'.
8998
8999 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9000
9001 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
9002 (grub_jfs_uuid): New function.
9003 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
9004
9005 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9006
9007 * util/grub-mkconfig_lib.in (font_path): Move the functionality
9008 of it to ...
9009 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
9010 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
9011
9012 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9013
9014 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
9015 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
9016 Update all users.
9017
9018 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
9019 not just "vmlinu[zx]".
9020 Moved from here ...
9021 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
9022 all users.
9023
9024 * util/grub.d/10_linux.in (find_latest): Moved from here ...
9025 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
9026 all users.
9027
9028 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9029
9030 * util/grub.d/10_freebsd.in: Use an absolute device path for
9031 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
9032
9033 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
9034
9035 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
9036 handling of multiple abstraction modules.
9037
9038 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
9039
9040 Fix a bug resulting in black screen when loading Linux using a
9041 packed video mode.
9042
9043 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
9044 function.
9045
9046 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
9047 (grub_vbe_bios_getset_dac_palette_width): New function.
9048 (grub_vbe_bios_get_dac_palette_width)
9049 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
9050 grub_vbe_bios_getset_dac_palette_width()).
9051
9052 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
9053 check for return status.
9054 (grub_vbe_get_video_mode_info): When getting information for a packed
9055 mode (<= 8 bpp), obtain DAC palette width using
9056 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
9057 {red,green,blue}_mark_size.
9058
9059 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
9060
9061 * commands/search.c (options): Fix help output to match actual code.
9062
9063 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
9064
9065 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
9066 of homegrown code.
9067
9068 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9069
9070 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
9071 on XFS or ReiserFS.
9072
9073 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9074
9075 Support Apple partition map with sector size different from 512 bytes.
9076
9077 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
9078 (apple_partition_map_iterate): Respect 'aheader.blocksize'
9079 and 'apart.partmap_size'.
9080
9081 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9082 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
9083
9084 Fix cpuid command.
9085
9086 * commands/i386/cpuid.c (options): New variable.
9087 (grub_cmd_cpuid): Return real error.
9088 (GRUB_MOD_INIT(cpuid)): Declare options.
9089
9090 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
9091
9092 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
9093 valid.
9094
9095 2009-07-31 Bean <bean123ch@gmail.com>
9096
9097 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
9098 log2_inode.
9099 (grub_fshelp_node): Move inode field to the end.
9100 (grub_xfs_data): Remove inode field.
9101 (grub_xfs_inode_block): Calculate inode size using sblock.
9102 (grub_xfs_inode_offset): Likewise.
9103 (grub_xfs_read_inode): Calculate inode size using sblock.
9104 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
9105 (grub_xfs_iterate_dir): Calculate inode size using sblock.
9106 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
9107 to match inode size.
9108 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
9109 not accessible when data is null.
9110 (grub_xfs_open): Likewise.
9111
9112 2009-07-31 Bean <bean123ch@gmail.com>
9113
9114 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
9115 Don't change pv->disk if it's already set.
9116
9117 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
9118 (grub_raid_register): ... here.
9119 (grub_raid_rescan): Removed.
9120
9121 * include/grub/raid.h (grub_raid_rescan): Removed.
9122
9123 * util/grub-fstest.c: Remove include file <grub/raid.h>.
9124 (fstest): Replace grub_raid_rescan with module fini function followed
9125 by init function.
9126
9127 * util/grub-probe.c: Add include file <grub/raid.h>.
9128 (probe_raid_level): New function.
9129 (probe): Detect abstraction by walking the disk device, support two
9130 level of abstraction (LVM on RAID) when detecting partition map.
9131
9132 2009-07-31 Pavel Roskin <proski@gnu.org>
9133
9134 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
9135 to grub_zalloc(), it was erroneous.
9136 Reported by Bean <bean123ch@gmail.com>
9137
9138 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
9139
9140 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
9141 embedding zone, not only the first one.
9142
9143 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
9144
9145 * term/gfxterm.c (clear_char): New function.
9146 (grub_virtual_screen_setup): Use clear_char.
9147 (scroll_up): Likewise.
9148 (grub_virtual_screen_cls): Likewise.
9149
9150 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
9151
9152 * util/deviceiter.c (get_acceleraid_disk_name): New static
9153 function.
9154 (grub_util_iterate_devices): Handle Accelraid devices.
9155 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
9156
9157 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
9158
9159 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
9160 separator for the suggested gfxpayload string (';' collides with the
9161 parser and needs escaping).
9162
9163 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
9164
9165 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
9166 Clear direction flag before jumping to OS.
9167 (grub_multiboot2_real_boot): Likewise.
9168
9169 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
9170
9171 * util/i386/pc/grub-install: Fix parsing of --disk-module
9172 option.
9173
9174 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
9175
9176 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
9177 when embedding.
9178
9179 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
9180
9181 * util/grub-mkconfig.in (package_version): New variable.
9182 Use it do display the version.
9183
9184 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
9185
9186 * kern/file.c (grub_file_open): Revert to previous check with
9187 grub_errno.
9188
9189 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9190
9191 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
9192 from help line. It's out of sync with code.
9193
9194 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9195
9196 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
9197 entries on failed boot.
9198
9199 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
9200
9201 * kern/file.c (grub_file_open): Fix an error check.
9202
9203 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
9204
9205 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
9206 partition map couldn't be identified.
9207
9208 2009-07-23 Pavel Roskin <proski@gnu.org>
9209
9210 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
9211 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
9212 case of little endian words becomes just an optimization.
9213 Respect const modifier.
9214 (md5_final): Use code that doesn't depend on endianness.
9215
9216 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
9217 to avoid loss of upper bits if align is unsigned and shorter
9218 than addr.
9219
9220 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9221
9222 UUID support for UFS
9223
9224 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
9225 (grub_ufs_uuid): New function.
9226 (grub_ufs_fs): add .uuid
9227
9228 2009-07-21 Pavel Roskin <proski@gnu.org>
9229
9230 * kern/dl.c (grub_dl_check_header): Make static.
9231
9232 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
9233
9234 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
9235 add drivemap for Vista. It breaks Windows 7.
9236
9237 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9238
9239 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
9240 128 bytes
9241
9242 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9243
9244 Add BFS support
9245
9246 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
9247 (grub_fstest_SOURCES): Likewise.
9248 (pkglib_MODULES): Add befs.mod.
9249 (befs_mod_SOURCES): New variable.
9250 (befs_mod_CFLAGS): Likewise.
9251 (befs_mod_LDFLAGS): Likewise.
9252 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
9253 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9254 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9255 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9256 (grub_setup_SOURCES): Likewise.
9257 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9258 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9259 (grub_setup_SOURCES): Likewise.
9260 * fs/befs.c: New file.
9261 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
9262 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
9263 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
9264 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
9265 (B_KEY_INDEX_ALIGN): New declaration.
9266 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
9267 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
9268 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
9269 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
9270 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
9271 (grub_afs_mount) [MODE_BFS]: Likewise.
9272 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
9273 (grub_afs_fs): Use GRUB_AFS_FSNAME
9274 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
9275 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
9276 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
9277 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
9278
9279 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
9280
9281 * util/getroot.c (find_root_device): Add support for MacOSX.
9282 * util/hostdisk.c: Likewise.
9283
9284 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9285
9286 * font/font.c (find_glyph): Check whether a font is present to avoid
9287 segmentation fault.
9288
9289 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
9290
9291 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
9292
9293 2009-07-20 Pavel Roskin <proski@gnu.org>
9294
9295 * configure.ac: Trim excessively wordy excuses.
9296
9297 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9298
9299 Add symlink, mtime and label support to AtheFS.
9300
9301 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
9302 (grub_afs_iterate_dir): Handle symlinks.
9303 (grub_afs_open): Use grub_afs_read_symlink.
9304 (grub_afs_dir): Likewise.
9305 Pass mtime.
9306 (grub_afs_label): New function.
9307 (grub_afs_fs): Add grub_afs_label.
9308 (grub_afs_read_symlink): New function.
9309
9310 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9311
9312 Fix AtheFS support.
9313
9314 * fs/afs.c: Fix comments style.
9315 (grub_afs_blockrun): Declare as packed.
9316 (grub_afs_datastream): Likewise.
9317 (grub_afs_bnode): Likewise.
9318 (grub_afs_btree): Likewise.
9319 (grub_afs_sblock): Likewise.
9320 Declare `name' as char.
9321 (grub_afs_inode): Declare as packed.
9322 Change void *vnode to grub_uint32_t unused.
9323 (grub_afs_iterate_dir): Check that key_size is positive.
9324 (grub_afs_mount): Don't read superblock twice.
9325 (grub_afs_dir): Don't free node in case of error,
9326 grub_fshelp_find_file already handles this.
9327 (grub_afs_open): Likewise.
9328
9329 2009-07-19 Pavel Roskin <proski@gnu.org>
9330
9331 * Makefile.in: Remove LIBLZO and enable_lzo.
9332 * conf/i386-pc.rmk: Remove lzo support.
9333 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
9334 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
9335 support.
9336 * kern/i386/pc/lzo1x.S: Remove.
9337 * kern/i386/pc/startup.S: Remove lzo support.
9338 * util/i386/pc/grub-mkimage.c: Likewise.
9339
9340 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
9341
9342 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
9343 * fs/xfs.c (grub_xfs_dir): Likewise.
9344 * fs/afs.c (grub_afs_dir): Likewise.
9345 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
9346 (grub_iso9660_open): Likewise.
9347 * fs/jfs.c (grub_jfs_open): Likewise.
9348 * fs/ext2.c (grub_ext2_dir): Likewise.
9349 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
9350 * script/sh/lexer.c (grub_script_yylex): Likewise.
9351
9352 2009-07-16 Pavel Roskin <proski@gnu.org>
9353
9354 * configure.ac: Never add "-c" to CFLAGS.
9355
9356 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
9357
9358 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
9359 grub_cv_cc_efiemu should be used.
9360
9361 * configure.ac: Typo fixes.
9362
9363 * kern/mm.c (grub_zalloc): New function.
9364 (grub_debug_zalloc): Likewise.
9365 * include/grub/mm.h: Declare grub_zalloc() and
9366 grub_debug_zalloc().
9367 * util/misc.c (grub_zalloc): New function.
9368 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
9369 instead of grub_malloc(), remove unneeded initializations.
9370 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
9371 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
9372 * commands/parttool.c (grub_cmd_parttool): Likewise.
9373 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
9374 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
9375 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
9376 * disk/usbms.c (grub_usbms_finddevs): Likewise.
9377 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
9378 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
9379 (grub_cmd_efiemu_pnvram): Likewise.
9380 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
9381 * fs/iso9660.c (grub_iso9660_mount): Likewise.
9382 (grub_iso9660_iterate_dir): Likewise.
9383 * fs/jfs.c (grub_jfs_opendir): Likewise.
9384 * fs/ntfs.c (list_file): Likewise.
9385 (grub_ntfs_mount): Likewise.
9386 * kern/disk.c (grub_disk_open): Likewise.
9387 * kern/dl.c (grub_dl_load_core): Likewise.
9388 * kern/elf.c (grub_elf_file): Likewise.
9389 * kern/env.c (grub_env_context_open): Likewise.
9390 (grub_env_set): Likewise.
9391 (grub_env_set_data_slot): Likewise.
9392 * kern/file.c (grub_file_open): Likewise.
9393 * kern/fs.c (grub_fs_blocklist_open): Likewise.
9394 * loader/i386/multiboot.c (grub_module): Likewise.
9395 * loader/xnu.c (grub_xnu_create_key): Likewise.
9396 (grub_xnu_create_value): Likewise.
9397 * normal/main.c (grub_normal_add_menu_entry): Likewise.
9398 (read_config_file): Likewise.
9399 * normal/menu_entry.c (make_screen): Likewise.
9400 * partmap/sun.c (sun_partition_map_iterate): Likewise.
9401 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
9402 * script/sh/script.c (grub_script_parse): Likewise.
9403 * video/bitmap.c (grub_video_bitmap_create): Likewise.
9404 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
9405 * video/readers/png.c (grub_png_output_byte): Likewise.
9406 (grub_video_reader_png): Likewise.
9407
9408 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9409
9410 Enable all targets that can be built by default
9411
9412 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
9413 grub-mkfont and grub-fstest if they can be built
9414
9415 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9416
9417 Fix hang and segmentation fault in grub-emu-usb
9418
9419 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
9420 * util/usb.c (grub_libusb_devices): likewise
9421 (grub_libusb_init): rename to ...
9422 (GRUB_MOD_INIT (libusb)):...this
9423 (grub_libusb_fini): rename to ..
9424 (GRUB_MOD_FINI (libusb)):...this
9425 * disk/usbms.c (grub_usbms_transfer): fix retry logic
9426 * include/grub/disk.h (grub_raid_init): removed, it's useless
9427 (grub_raid_fini): likewise
9428 (grub_lvm_init): likewise
9429 (grub_lvm_fini): likewise
9430 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
9431 by grub_init_all
9432
9433 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9434
9435 Fix libusb
9436
9437 * Makefile.in (LIBUSB): new macro
9438 * genmk.rb (Utility/print_tail): new method
9439 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
9440 (top level): call util.print_tail at the end.
9441
9442 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9443
9444 Make FreeBSD accept zpool.cache
9445
9446 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
9447 type is /boot/zfs/zpool.cache
9448
9449 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9450
9451 Fix 64-bit efiemu
9452
9453 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
9454 correct wrong typedef
9455 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
9456
9457 2009-07-15 Pavel Roskin <proski@gnu.org>
9458
9459 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
9460 * kern/disk.c (struct grub_disk_cache): Likewise.
9461
9462 * commands/probe.c (options): Typo fix.
9463
9464 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
9465 Increase to 0x5a to accommodate FAT32. Adjust other offsets
9466 accordingly.
9467 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
9468
9469 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
9470 the end of "Error" to make the message more readable.
9471
9472 * boot/i386/pc/boot.S (kernel_segment): Remove.
9473 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
9474 for destination.
9475
9476 * boot/i386/pc/boot.S (boot_version): Remove.
9477 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
9478 Remove.
9479
9480 * include/grub/i386/pc/boot.h: Sort all offsets.
9481 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
9482 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
9483 * boot/i386/pc/boot.S: Assert location of every offset listed in
9484 include/grub/i386/pc/boot.h.
9485
9486 2009-07-13 Pavel Roskin <proski@gnu.org>
9487
9488 * include/grub/i386/coreboot/machine.h: Rename
9489 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
9490 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
9491 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
9492
9493 * kern/dl.c: Force native word size to suppress warnings when
9494 compiling grub-emu.
9495
9496 * kern/device.c (grub_device_iterate): Change struct part_ent to
9497 hold the name, not a pointer to it. Use one grub_malloc() per
9498 partition, not two. Free partition_name if grub_malloc() fails.
9499 Set ents to NULL only before grub_partition_iterate() is called.
9500
9501 2009-07-11 Bean <bean123ch@gmail.com>
9502
9503 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
9504 childname.
9505
9506 2009-07-10 Bean <bean123ch@gmail.com>
9507 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
9508
9509 * kern/ieee1275/openfw.c (grub_children_iterate)
9510 (grub_devalias_iterate): Fix size evaluation for property or path
9511 strings, which was broken since r2132.
9512
9513 2009-07-07 Pavel Roskin <proski@gnu.org>
9514
9515 * commands/search.c (search_file): Merge into ...
9516 (search_fs): ... this. Accept search type as argument.
9517 (grub_cmd_search): Pass search type to search_fs().
9518
9519 * include/grub/util/console.h: New file.
9520 * util/console.c: Use it instead of grub/machine/console.h.
9521 * util/grub-emu.c: Likewise.
9522
9523 * lib/arg.c (find_long_option): Remove.
9524 (find_long): Add `len' argument, make `s' const char *.
9525 (grub_arg_parse): Parse long options in place, not in a
9526 temporary buffer.
9527
9528 2009-07-06 Pavel Roskin <proski@gnu.org>
9529
9530 * commands/search.c (search_fs): Fix potential NULL pointer
9531 dereference.
9532
9533 * commands/search.c (search_fs): Replace QUID macro with quid_fn
9534 function pointer.
9535
9536 2009-07-06 Daniel Mierswa <impulze@impulze.org>
9537
9538 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
9539 comparison.
9540
9541 2009-07-05 Pavel Roskin <proski@gnu.org>
9542
9543 * include/grub/i386/linux.h (struct linux_kernel_params):
9544 Restore padding3, it's still needed.
9545
9546 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
9547 FreeBSD.
9548 * util/osdetect.lua: Likewise.
9549
9550 2009-07-05 Bean <bean123ch@gmail.com>
9551
9552 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
9553
9554 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
9555 (grub_lua_getenv): Likewise.
9556 (grub_lua_setenv): Likewise.
9557 (save_errno): New function.
9558 (push_result): Likewise.
9559 (grub_lua_enum_device): Likewise.
9560 (grub_lua_enum_file): Likewise.
9561 (grub_lua_file_open): Likewise.
9562 (grub_lua_file_close): Likewise.
9563 (grub_lua_file_seek): Likewise.
9564 (grub_lua_file_read): Likewise.
9565 (grub_lua_file_getline): Likewise.
9566 (grub_lua_file_getsize): Likewise.
9567 (grub_lua_file_getpos): Likewise.
9568 (grub_lua_file_eof): Likewise.
9569 (grub_lua_file_exist): Likewise.
9570 (grub_lua_add_menu): Likewise.
9571
9572 * script/lua/grub_lua.h (isupper): New inline function.
9573 (islower): Likewise.
9574 (ispunct): Likewise.
9575 (isxdigit): Likewise.
9576 (strcspn): Change to normal function.
9577 (strpbkr): New function declaration.
9578 (memchr): Likewise.
9579
9580 * script/lua/grub_main.c (scan_str): New function.
9581 (strcspn): Likewise.
9582 (strpbrk): Likewise.
9583 (memchr): Likewise.
9584
9585 * script/lua/linit.c (lualibs): Enable the string library.
9586
9587 * util/osdetect.lua: New file.
9588
9589 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
9590
9591 * include/grub/i386/linux.h (struct linux_kernel_params): Add
9592 `capabilities' member.
9593
9594 2009-07-02 Pavel Roskin <proski@gnu.org>
9595
9596 * genparttoollist.sh: Add missing newline at the end.
9597
9598 2009-07-01 Pavel Roskin <proski@gnu.org>
9599
9600 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
9601
9602 * util/hostdisk.c (open_device): Remove `const' from
9603 `sysctl_size', as sysctlbyname() can change it (in this case it
9604 doesn't actually happen).
9605
9606 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
9607 using signed long int constants.
9608
9609 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
9610 constant to avoid a warning on FreeBSD.
9611
9612 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
9613 where it's needed.
9614
9615 * Makefile.in: Install include/grub/machine symlink.
9616
9617 * Makefile.in: When installing symlinks, use "cp -fR", which
9618 works on FreeBSD and MacOSX.
9619 From Yves Blusseau <cl7m42e02@sneakemail.com>
9620
9621 * kern/dl.c (grub_dl_resolve_symbol): Make static.
9622 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
9623
9624 * util/misc.c: Move grub_reboot() and grub_halt() ...
9625 * util/grub-emu.c: ... here. Make main_env static.
9626 * include/grub/util/misc.h: Remove main_env.
9627
9628 * kern/mm.c: Use correct format to print size_t.
9629
9630 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
9631 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
9632 * kern/powerpc/dl.c: Likewise.
9633 * kern/sparc64/dl.c: Likewise.
9634 * kern/x86_64/dl.c: Likewise.
9635
9636 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9637
9638 Fix grub-emu build on sparc64-ieee1275.
9639
9640 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
9641 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
9642
9643 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9644
9645 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
9646 (grub_reboot, grub_halt): New functions.
9647
9648 * util/i386/pc/misc.c: Delete. Update all users.
9649 * util/sparc64/ieee1275/misc.c: Likewise.
9650 * util/powerpc/ieee1275/misc.c: Likewise.
9651
9652 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9653
9654 * conf/i386.rmk (setjmp_mod_SOURCES)
9655 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
9656 * conf/common.rmk (setjmp_mod_SOURCES)
9657 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
9658 to use $(target_cpu).
9659 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
9660 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
9661 * conf/powerpc-ieee1275.rmk: Likewise.
9662 * conf/sparc64-ieee1275.rmk: Likewise.
9663
9664 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
9665 $(target_cpu) for kern/$(target_cpu)/dl.c.
9666 * conf/i386-efi.rmk: Likewise.
9667 * conf/i386-ieee1275.rmk: Likewise.
9668 * conf/x86_64-efi.rmk: Likewise.
9669 * conf/i386-coreboot.rmk: Likewise.
9670 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
9671 $(target_cpu) for kern/$(target_cpu)/dl.c and for
9672 kern/$(target_cpu)/cache.S.
9673 * conf/sparc64-ieee1275.rmk: Likewise.
9674
9675 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9676
9677 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
9678 type to `grub_uint8_t', and adjust `padding9' accordingly.
9679
9680 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9681
9682 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
9683
9684 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
9685 assembly in final jump, using register constraints.
9686
9687 (grub_linux_boot): For text mode, initialize `have_vga' using
9688 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
9689
9690 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
9691 right before the final jump.
9692
9693 Set `video_mode' to 0x3.
9694
9695 Document initialization of `video_page', `video_mode' and
9696 `video_ega_bx'.
9697
9698 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9699
9700 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
9701 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
9702 and set GRUB_LINUX_FLAG_QUIET appropriately.
9703
9704 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9705
9706 Fix build on Debian / sparc.
9707
9708 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
9709
9710 2009-06-28 Pavel Roskin <proski@gnu.org>
9711
9712 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
9713 fix a warning.
9714
9715 * util/grub.d/10_linux.in: Match SUSE style initrd names.
9716
9717 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9718
9719 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
9720 `err'.
9721
9722 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9723
9724 Revert r2338.
9725
9726 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
9727 file can't be opened. grub_file_open() is already supposed to set
9728 grub_errno / grub_errmsg appropriately.
9729 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9730
9731 2009-06-27 Pavel Roskin <proski@gnu.org>
9732 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9733
9734 * include/grub/dl.h: Include grub/elf.h.
9735 (struct grub_dl): Add symtab field.
9736 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
9737 GRUB_MODULES_MACHINE_READONLY.
9738 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
9739 of the header for read-only modules.
9740 (grub_dl_unload): Free mod->symtab for read-only modules.
9741 * kern/i386/dl.c: Use mod->symtab.
9742 * kern/powerpc/dl.c: Likewise.
9743 * kern/sparc64/dl.c: Likewise.
9744 * kern/x86_64/dl.c: Likewise.
9745
9746 * conf/i386-qemu.rmk: New file.
9747 * kern/i386/qemu/startup.S: Likewise.
9748 * kern/i386/qemu/mmap.c: Likewise.
9749 * boot/i386/qemu/boot.S: Likewise.
9750 * include/grub/i386/qemu/time.h: Likewise.
9751 * include/grub/i386/qemu/serial.h: Likewise.
9752 * include/grub/i386/qemu/kernel.h: Likewise.
9753 * include/grub/i386/qemu/console.h: Likewise.
9754 * include/grub/i386/qemu/boot.h: Likewise.
9755 * include/grub/i386/qemu/init.h: Likewise.
9756 * include/grub/i386/qemu/machine.h: Likewise.
9757 * include/grub/i386/qemu/loader.h: Likewise.
9758 * include/grub/i386/qemu/memory.h: Likewise.
9759
9760 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
9761 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
9762 [qemu] (pkglib_IMAGES): Add `boot.img'.
9763 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
9764 [qemu] (boot_img_FORMAT): New variables.
9765 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
9766 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
9767 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
9768 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
9769 [qemu] (kernel_img_FORMAT): New variables.
9770
9771 * configure.ac: Recognise `i386-qemu'.
9772
9773 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
9774 (for no compression).
9775 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
9776 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
9777 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
9778 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
9779 ifdefs).
9780
9781 2009-06-27 Pavel Roskin <proski@gnu.org>
9782
9783 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
9784 read.
9785 * efiemu/prepare32.c: Likewise.
9786 * efiemu/prepare64.c: Likewise.
9787
9788 2009-06-26 Pavel Roskin <proski@gnu.org>
9789
9790 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
9791 * include/grub/elf.h: Define symbols without "32" or "64" based
9792 on GRUB_TARGET_WORDSIZE.
9793 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
9794 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
9795 ELF definitions.
9796 * efiemu/loadcore64.c: Likewise.
9797 * loader/i386/bsd32.c: Likewise.
9798 * loader/i386/bsd64.c: Likewise.
9799 * kern/dl.c: Remove own ELF definitions.
9800 * util/i386/efi/grub-mkimage.c: Likewise.
9801
9802 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
9803
9804 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
9805 segment 0x0 unconditionally, because the reference generated by
9806 GAS is an absolute address.
9807
9808 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9809
9810 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
9811 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
9812
9813 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9814
9815 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
9816 indexes. Check for -f explicitly.
9817 (search_file): Improve error message.
9818 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
9819
9820 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9821
9822 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
9823 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
9824
9825 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9826
9827 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
9828 * conf/i386-ieee1275.rmk: Likewise.
9829 * conf/i386-coreboot.rmk: Likewise.
9830
9831 * kern/i386/pc/startup.S (grub_stop): Remove function.
9832 * kern/i386/ieee1275/startup.S: Likewise.
9833 * kern/i386/coreboot/startup.S: Likewise.
9834 * kern/i386/misc.S (grub_stop): New function.
9835
9836 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9837
9838 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
9839 * kern/i386/realmode.S (real_to_prot): ... to here.
9840
9841 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9842
9843 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
9844 with `kernel.img'.
9845 (kernel_elf_SOURCES): Rename to ...
9846 (kernel_img_SOURCES): ... this.
9847 (kernel_elf_HEADERS): Rename to ...
9848 (kernel_img_HEADERS): ... this. Update all users.
9849 (kernel_elf_ASFLAGS): Rename to ...
9850 (kernel_img_ASFLAGS): ... this.
9851 (kernel_elf_CFLAGS): Rename to ...
9852 (kernel_img_CFLAGS): ... this.
9853 (kernel_elf_LDFLAGS): Rename to ...
9854 (kernel_img_LDFLAGS): ... this.
9855 * conf/i386-coreboot.rmk: Likewise.
9856 * conf/powerpc-ieee1275.rmk: Likewise.
9857
9858 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
9859 with "kernel.img".
9860
9861 2009-06-21 Pavel Roskin <proski@gnu.org>
9862
9863 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
9864 to match nested functions.
9865 * loader/sparc64/ieee1275/linux.c: Likewise.
9866
9867 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
9868
9869 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
9870
9871 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
9872 all i386 platforms.
9873
9874 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
9875
9876 Fix asm file handling on ELF, and remove workarounds.
9877
9878 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
9879 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
9880 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
9881 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
9882
9883 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9884
9885 Load BSD ELF modules
9886
9887 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
9888 and loader/i386/bsd64.c
9889 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
9890 (FREEBSD_MODTYPE_ELF_MODULE): New definition
9891 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
9892 (grub_freebsd_load_elfmodule32): New declaration
9893 (grub_freebsd_load_elfmoduleobj64): Likewise
9894 (grub_freebsd_load_elf_meta32): Likewise
9895 (grub_freebsd_load_elf_meta64): Likewise
9896 (grub_freebsd_add_meta): Likewise
9897 (grub_freebsd_add_meta_module): Likewise
9898 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
9899 (grub_freebsd_add_meta_module): Likewise and move module-specific
9900 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
9901 (grub_cmd_freebsd): Add elf-kernel specific parts
9902 based on grub_freebsd_add_meta_module
9903 (grub_cmd_freebsd_module): Add type parsing moved from
9904 grub_freebsd_add_meta_module
9905 (grub_cmd_freebsd_module_elf): New function
9906 (cmd_freebsd_module_elf): New variable
9907 (GRUB_MOD_INIT): Register freebsd_module_elf
9908 * loader/i386/bsd32.c: New file
9909 * loader/i386/bsd64.c: Likewise
9910 * loader/i386/bsdXX.c: Likewise
9911 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
9912 (grub_elf64_load): Likewise
9913 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
9914 All users updated
9915 (grub_elf64_load_hook_t): Likewise
9916
9917 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
9918
9919 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
9920 variable.
9921 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
9922 don't write a menu entry for recovery mode.
9923
9924 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
9925
9926 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
9927 after it's no longer needed.
9928
9929 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
9930
9931 * include/grub/i386/loader.h (grub_linux_prot_size)
9932 (grub_linux_tmp_addr, grub_linux_real_addr)
9933 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
9934 GRUB_MACHINE_PCBIOS.
9935 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
9936 common grub_util_info() call to ...
9937 (generate_image): ... here.
9938 Fix use of uninitialized memory, comparison of signed with
9939 unsigned integers and memory leak.
9940 Remove bogus module address message.
9941
9942 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9943
9944 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
9945 grub_raid_register
9946 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
9947
9948 2009-06-19 Pavel Roskin <proski@gnu.org>
9949
9950 * configure.ac: Remove stray AC_MSG_CHECKING.
9951
9952 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9953
9954 * disk/scsi.c (grub_scsi_open): use continue instead of big if
9955
9956 2009-06-18 Pavel Roskin <proski@gnu.org>
9957
9958 * conf/common.rmk: Add fs_file.mod.
9959 * disk/fs_file.c: New file.
9960 * include/grub/disk.h (enum grub_disk_dev_id): Add
9961 GRUB_DISK_DEVICE_FILE_ID.
9962
9963 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9964
9965 Fix build with Apple's toolchain. Part 2
9966
9967 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
9968 a fake start
9969
9970 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9971
9972 Fix build with Apple's toolchain. Part 1
9973
9974 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
9975 for long calls
9976 * configure.ac: remove a leftover AC_MSG_RESULT
9977 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
9978 Apple's toolchain
9979
9980 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9981
9982 Fix warnings
9983
9984 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
9985 (decomp_block): initialize ch
9986 use grub_memcpy instead of memcpy
9987
9988 2009-06-17 Pavel Roskin <proski@gnu.org>
9989
9990 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
9991 version, use declarations needed to use vga_text as the startup
9992 console.
9993
9994 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
9995 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
9996 the kernel.
9997 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
9998 and grub_at_keyboard_fini(), it's done on module load and
9999 unload.
10000
10001 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
10002
10003 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
10004 file can't be found.
10005 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10006
10007 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10008
10009 Fix newline handling
10010
10011 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
10012 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
10013 (grub_script_yylex): don't segfault on unterminated script
10014 newline terminates command and variable
10015
10016 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10017
10018 avoid double grub_adjust_range call. Bug reported by David Simner
10019
10020 * kern/disk.c (grub_disk_write): change to raw disk access before
10021 calling disk_read
10022
10023 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
10024
10025 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
10026 spaces, for the benefit of help2man.
10027 * util/i386/efi/grub-mkimage.c (usage): Likewise.
10028
10029 2009-06-16 Pavel Roskin <proski@gnu.org>
10030
10031 * kern/i386/halt.c: Include grub/machine/init.h.
10032 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
10033
10034 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
10035
10036 * util/grub.d/30_os-prober.in: Use ${root} in the generated
10037 drivemap menuentry.
10038
10039 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
10040
10041 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
10042 `echo' command.
10043
10044 2009-06-16 Pavel Roskin <proski@gnu.org>
10045
10046 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
10047 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
10048 save %dx, we only need %dl and we never change it.
10049 * boot/i386/pc/cdboot.S: Don't set the root drive.
10050 * boot/i386/pc/pxeboot.S: Likewise.
10051 * include/grub/i386/pc/boot.h: Remove
10052 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
10053 GRUB_BOOT_MACHINE_DRIVE_CHECK.
10054 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
10055 * kern/i386/pc/init.c (make_install_device): Remove references
10056 to grub_root_drive.
10057 * kern/i386/pc/startup.S: Likewise.
10058 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
10059
10060 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10061
10062 xnu_uuid command
10063
10064 * commands/xnu_uuid.c: new file
10065 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
10066 (xnu_uuid_mod_SOURCES): new variable
10067 (xnu_uuid_mod_CFLAGS): likewise
10068 (xnu_uuid_mod_LDFLAGS): likewise
10069 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10070 * conf/i386-ieee1275.rmk: likewise
10071 * conf/i386-pc.rmk: likewise
10072 * conf/powerpc-ieee1275.rmk: likewise
10073 * conf/sparc64-ieee1275.rmk: likewise
10074 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
10075
10076 2009-06-16 Pavel Roskin <proski@gnu.org>
10077
10078 * configure.ac: Avoid '==' in test command, it's not portable.
10079
10080 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10081
10082 Probe command
10083
10084 * commands/probe.c: new file
10085 * conf/common.rmk (pkglib_MODULES): add probe.mod
10086 (probe_mod_SOURCES): new variable
10087 (probe_mod_CFLAGS): likewise
10088 (probe_mod_LDFLAGS): likewise
10089 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10090 * conf/i386-ieee1275.rmk: likewise
10091 * conf/i386-pc.rmk: likewise
10092 * conf/powerpc-ieee1275.rmk: likewise
10093 * conf/sparc64-ieee1275.rmk: likewise
10094
10095 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
10096
10097 Fix handling of string like \"hello\" and "a
10098 b"
10099
10100 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
10101 (grub_script_yylex): fix parsing of quoting, escaping and newline
10102
10103 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
10104
10105 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
10106 handling
10107
10108 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
10109
10110 * util/grub-mkconfig.in: Fix parsing of --output option.
10111
10112 2009-06-12 Pavel Roskin <proski@gnu.org>
10113
10114 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
10115 genmk.rb don't need to be generated or installed.
10116
10117 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
10118
10119 * commands/i386/pc/drivemap_int13h.S: add more comments
10120
10121 2009-06-11 Pavel Roskin <proski@gnu.org>
10122
10123 * Makefile.in (uninstall): Uninstall manuals.
10124
10125 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
10126 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
10127 and update-grub_lib in two places.
10128 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
10129
10130 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
10131 a compiler warning.
10132
10133 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
10134 `entry_lo' to fix variable shadowing.
10135
10136 2009-06-11 Christian Franke <franke@computer.org>
10137
10138 * kern/misc.c (__enable_execute_stack): Add missing return type
10139 to prevent gcc warning.
10140
10141 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
10142
10143 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
10144
10145 2009-06-11 Pavel Roskin <proski@gnu.org>
10146
10147 * Makefile.in: Don't rely on any scripts being executable.
10148 Always use $(SHELL) to run shell scripts.
10149
10150 * configure.ac: Always define ___main if using -nostdlib. This
10151 fixes tests on Cygwin.
10152
10153 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
10154
10155 UDF fix
10156
10157 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
10158 is in bytes and not in blocks
10159
10160 2009-06-11 Pavel Roskin <proski@gnu.org>
10161
10162 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
10163 warning.
10164
10165 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
10166
10167 * util/grub.d/30_os-prober.in: Fix a comment. Source
10168 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
10169 to set the root device. Place drivemap command in the generated
10170 chain entry.
10171
10172 2009-06-11 Pavel Roskin <proski@gnu.org>
10173
10174 * configure.ac: Remove host_m32. Issues with 64-bit utilities
10175 have long been resolved.
10176
10177 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
10178
10179 * util/grub.d/10_linux.in: Capitalise "Linux".
10180
10181 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
10182
10183 2009-06-11 Pavel Roskin <proski@gnu.org>
10184
10185 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
10186 fix a gcc warning and ensure that the function won't ever exit.
10187
10188 * kern/i386/ieee1275/init.c: Add missing prototype for
10189 grub_stop_floppy().
10190
10191 * loader/ieee1275/multiboot2.c [__i386__]: Include
10192 grub/cpu/multiboot.h.
10193
10194 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
10195 casts to short - they are not portable and cause warnings. Fix
10196 use of uninitialized values in input_buf. Use ARRAY_SIZE.
10197
10198 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
10199
10200 Drivemap fixes
10201
10202 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
10203 new function
10204 (grub_get_root_biosnumber_saved): new variable
10205 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
10206 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
10207 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
10208 %dx after the call if necessary
10209 * conf/common.rmk (pkglib_MODULES): remove boot.mod
10210 (boot_mod_SOURCES): remove
10211 (boot_mod_CFLAGS): remove
10212 (boot_mod_LDFLAGS): remove
10213 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
10214 (boot_mod_SOURCES): new variable
10215 (boot_mod_CFLAGS): likewise
10216 (boot_mod_LDFLAGS): likewise
10217 * conf/i386-efi.rmk: likewise
10218 * conf/i386-ieee1275.rmk: likewise
10219 * conf/i386-pc.rmk: likewise
10220 * conf/powerpc-ieee1275.rmk: likewise
10221 * conf/sparc64-ieee1275.rmk: likewise
10222 * conf/x86_64-efi.rmk: likewise
10223 * include/grub/i386/pc/biosnum.h: new file
10224 * lib/i386/pc/biosnum.c: likewise
10225 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
10226 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
10227 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
10228
10229 2009-06-10 Pavel Roskin <proski@gnu.org>
10230
10231 * io/gzio.c (test_header): Don't reuse one buffer for all data.
10232 Use separate variables. Read only the file size at the end, but
10233 not the checksum that we don't use.
10234
10235 * kern/file.c (grub_file_read): Use void pointer for the buffer.
10236 Adjust all callers.
10237
10238 * kern/ieee1275/openfw.c: Remove libc includes.
10239 * kern/ieee1275/cmain.c: Likewise.
10240 * include/grub/ieee1275/ieee1275.h: Likewise.
10241
10242 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
10243 compiler warnings.
10244
10245 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
10246
10247 * Makefile.in: Remove all trailing whitespace.
10248 * conf/i386-pc.rmk: Likewise.
10249 * conf/powerpc-ieee1275.rmk: Likewise.
10250 * conf/sparc64-ieee1275.rmk: Likewise.
10251 * docs/grub.texi: Likewise.
10252 * docs/texinfo.tex: Likewise.
10253 * disk/fs_uuid.c: Likewise.
10254 * disk/lvm.c: Likewise.
10255 * disk/scsi.c: Likewise.
10256 * disk/ata.c: Likewise.
10257 * disk/ieee1275/ofdisk.c: Likewise.
10258 * disk/i386/pc/biosdisk.c: Likewise.
10259 * disk/host.c: Likewise.
10260 * disk/raid.c: Likewise.
10261 * disk/efi/efidisk.c: Likewise.
10262 * disk/usbms.c: Likewise.
10263 * disk/memdisk.c: Likewise.
10264 * disk/loopback.c: Likewise.
10265 * kern/powerpc/dl.c: Likewise.
10266 * kern/device.c: Likewise.
10267 * kern/dl.c: Likewise.
10268 * kern/sparc64/dl.c: Likewise.
10269 * kern/ieee1275/ieee1275.c: Likewise.
10270 * kern/term.c: Likewise.
10271 * kern/fs.c: Likewise.
10272 * kern/i386/dl.c: Likewise.
10273 * kern/i386/pc/startup.S: Likewise.
10274 * kern/i386/pc/init.c: Likewise.
10275 * kern/i386/pc/mmap.c: Likewise.
10276 * kern/i386/pc/lzo1x.S: Likewise.
10277 * kern/i386/ieee1275/init.c: Likewise.
10278 * kern/i386/realmode.S: Likewise.
10279 * kern/i386/tsc.c: Likewise.
10280 * kern/partition.c: Likewise.
10281 * kern/corecmd.c: Likewise.
10282 * kern/file.c: Likewise.
10283 * kern/efi/efi.c: Likewise.
10284 * kern/efi/init.c: Likewise.
10285 * kern/efi/mm.c: Likewise.
10286 * kern/main.c: Likewise.
10287 * kern/err.c: Likewise.
10288 * kern/env.c: Likewise.
10289 * kern/disk.c: Likewise.
10290 * kern/generic/millisleep.c: Likewise.
10291 * kern/generic/rtc_get_time_ms.c: Likewise.
10292 * kern/misc.c: Likewise.
10293 * kern/parser.c: Likewise.
10294 * genmk.rb: Likewise.
10295 * configure.ac: Likewise.
10296 * boot/i386/pc/diskboot.S: Likewise.
10297 * boot/i386/pc/pxeboot.S: Likewise.
10298 * boot/i386/pc/boot.S: Likewise.
10299 * boot/i386/pc/lnxboot.S: Likewise.
10300 * boot/i386/pc/cdboot.S: Likewise.
10301 * parttool/pcpart.c: Likewise.
10302 * video/readers/tga.c: Likewise.
10303 * video/video.c: Likewise.
10304 * video/bitmap.c: Likewise.
10305 * lib/envblk.c: Likewise.
10306 * lib/i386/setjmp.S: Likewise.
10307 * fs/xfs.c: Likewise.
10308 * fs/afs.c: Likewise.
10309 * fs/fat.c: Likewise.
10310 * fs/ntfs.c: Likewise.
10311 * fs/udf.c: Likewise.
10312 * fs/affs.c: Likewise.
10313 * fs/iso9660.c: Likewise.
10314 * fs/hfs.c: Likewise.
10315 * fs/fshelp.c: Likewise.
10316 * fs/ext2.c: Likewise.
10317 * fs/jfs.c: Likewise.
10318 * fs/reiserfs.c: Likewise.
10319 * fs/hfsplus.c: Likewise.
10320 * fs/minix.c: Likewise.
10321 * fs/cpio.c: Likewise.
10322 * fs/sfs.c: Likewise.
10323 * fs/ufs.c: Likewise.
10324 * efiemu/prepare.c: Likewise.
10325 * efiemu/loadcore_common.c: Likewise.
10326 * efiemu/runtime/efiemu.sh: Likewise.
10327 * efiemu/runtime/efiemu.S: Likewise.
10328 * efiemu/runtime/efiemu.c: Likewise.
10329 * efiemu/pnvram.c: Likewise.
10330 * efiemu/main.c: Likewise.
10331 * efiemu/i386/pc/cfgtables.c: Likewise.
10332 * efiemu/i386/loadcore64.c: Likewise.
10333 * efiemu/i386/loadcore32.c: Likewise.
10334 * efiemu/loadcore.c: Likewise.
10335 * efiemu/symbols.c: Likewise.
10336 * efiemu/mm.c: Likewise.
10337 * include/grub/autoefi.h: Likewise.
10338 * include/grub/datetime.h: Likewise.
10339 * include/grub/term.h: Likewise.
10340 * include/grub/hfs.h: Likewise.
10341 * include/grub/lvm.h: Likewise.
10342 * include/grub/i386/tsc.h: Likewise.
10343 * include/grub/i386/linux.h: Likewise.
10344 * include/grub/i386/xnu.h: Likewise.
10345 * include/grub/i386/efiemu.h: Likewise.
10346 * include/grub/i386/pc/biosdisk.h: Likewise.
10347 * include/grub/i386/pc/memory.h: Likewise.
10348 * include/grub/i386/pc/vbe.h: Likewise.
10349 * include/grub/parttool.h: Likewise.
10350 * include/grub/video.h: Likewise.
10351 * include/grub/memory.h: Likewise.
10352 * include/grub/fs.h: Likewise.
10353 * include/grub/partition.h: Likewise.
10354 * include/grub/xnu.h: Likewise.
10355 * include/grub/efi/api.h: Likewise.
10356 * include/grub/efi/pe32.h: Likewise.
10357 * include/grub/efi/memory.h: Likewise.
10358 * include/grub/multiboot.h: Likewise.
10359 * include/grub/usbdesc.h: Likewise.
10360 * include/grub/multiboot2.h: Likewise.
10361 * include/grub/acpi.h: Likewise.
10362 * include/grub/efiemu/efiemu.h: Likewise.
10363 * include/grub/disk.h: Likewise.
10364 * include/grub/ieee1275/ieee1275.h: Likewise.
10365 * include/grub/net.h: Likewise.
10366 * include/grub/machoload.h: Likewise.
10367 * include/grub/macho.h: Likewise.
10368 * include/multiboot.h: Likewise.
10369 * genmoddep.awk: Likewise.
10370 * normal/main.c: Likewise.
10371 * normal/menu_entry.c: Likewise.
10372 * normal/menu_viewer.c: Likewise.
10373 * normal/completion.c: Likewise.
10374 * normal/cmdline.c: Likewise.
10375 * normal/misc.c: Likewise.
10376 * normal/datetime.c: Likewise.
10377 * bus/usb/usbtrans.c: Likewise.
10378 * bus/usb/ohci.c: Likewise.
10379 * bus/usb/uhci.c: Likewise.
10380 * bus/usb/usb.c: Likewise.
10381 * mmap/efi/mmap.c: Likewise.
10382 * mmap/i386/pc/mmap_helper.S: Likewise.
10383 * mmap/i386/pc/mmap.c: Likewise.
10384 * mmap/i386/mmap.c: Likewise.
10385 * mmap/i386/uppermem.c: Likewise.
10386 * mmap/mmap.c: Likewise.
10387 * commands/acpi.c: Likewise.
10388 * commands/echo.c: Likewise.
10389 * commands/blocklist.c: Likewise.
10390 * commands/loadenv.c: Likewise.
10391 * commands/usbtest.c: Likewise.
10392 * commands/boot.c: Likewise.
10393 * commands/parttool.c: Likewise.
10394 * commands/search.c: Likewise.
10395 * commands/cat.c: Likewise.
10396 * commands/i386/pc/play.c: Likewise.
10397 * commands/i386/pc/drivemap.c: Likewise.
10398 * commands/i386/pc/vbeinfo.c: Likewise.
10399 * commands/i386/pc/acpi.c: Likewise.
10400 * commands/i386/pc/vbetest.c: Likewise.
10401 * commands/ls.c: Likewise.
10402 * commands/cmp.c: Likewise.
10403 * commands/test.c: Likewise.
10404 * commands/efi/acpi.c: Likewise.
10405 * commands/gptsync.c: Likewise.
10406 * commands/help.c: Likewise.
10407 * partmap/amiga.c: Likewise.
10408 * partmap/apple.c: Likewise.
10409 * partmap/acorn.c: Likewise.
10410 * partmap/pc.c: Likewise.
10411 * partmap/sun.c: Likewise.
10412 * partmap/gpt.c: Likewise.
10413 * script/sh/lexer.c: Likewise.
10414 * script/sh/function.c: Likewise.
10415 * font/font.c: Likewise.
10416 * font/font_cmd.c: Likewise.
10417 * loader/powerpc/ieee1275/linux.c: Likewise.
10418 * loader/efi/chainloader.c: Likewise.
10419 * loader/multiboot_loader.c: Likewise.
10420 * loader/macho.c: Likewise.
10421 * loader/i386/multiboot.c: Likewise.
10422 * loader/i386/linux.c: Likewise.
10423 * loader/i386/pc/linux.c: Likewise.
10424 * loader/i386/pc/multiboot2.c: Likewise.
10425 * loader/i386/pc/chainloader.c: Likewise.
10426 * loader/i386/pc/xnu.c: Likewise.
10427 * loader/i386/bsd_trampoline.S: Likewise.
10428 * loader/i386/efi/linux.c: Likewise.
10429 * loader/i386/multiboot_elfxx.c: Likewise.
10430 * loader/i386/bsd_helper.S: Likewise.
10431 * loader/i386/bsd.c: Likewise.
10432 * loader/i386/linux_trampoline.S: Likewise.
10433 * loader/i386/xnu_helper.S: Likewise.
10434 * loader/i386/xnu.c: Likewise.
10435 * loader/i386/bsd_pagetable.c: Likewise.
10436 * loader/i386/multiboot_helper.S: Likewise.
10437 * loader/xnu.c: Likewise.
10438 * loader/xnu_resume.c: Likewise.
10439 * io/gzio.c: Likewise.
10440 * term/efi/console.c: Likewise.
10441 * term/terminfo.c: Likewise.
10442 * term/ieee1275/ofconsole.c: Likewise.
10443 * term/i386/pc/serial.c: Likewise.
10444 * term/i386/pc/vesafb.c: Likewise.
10445 * term/i386/pc/vga.c: Likewise.
10446 * term/usb_keyboard.c: Likewise.
10447 * term/gfxterm.c: Likewise.
10448 * aclocal.m4: Likewise.
10449 * util/lvm.c: Likewise.
10450 * util/grub.d/30_os-prober.in: Likewise.
10451 * util/grub.d/10_hurd.in: Likewise.
10452 * util/console.c: Likewise.
10453 * util/grub-macho2img.c: Likewise.
10454 * util/grub-probe.c: Likewise.
10455 * util/hostfs.c: Likewise.
10456 * util/i386/pc/grub-mkimage.c: Likewise.
10457 * util/i386/pc/grub-setup.c: Likewise.
10458 * util/i386/efi/grub-mkimage.c: Likewise.
10459 * util/grub-mkconfig.in: Likewise.
10460 * util/raid.c: Likewise.
10461 * util/resolve.c: Likewise.
10462 * util/grub-mkdevicemap.c: Likewise.
10463 * util/grub-emu.c: Likewise.
10464 * util/getroot.c: Likewise.
10465 * util/hostdisk.c: Likewise.
10466 * util/usb.c: Likewise.
10467 * util/grub-editenv.c: Likewise.
10468 * util/misc.c: Likewise.
10469
10470 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
10471
10472 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
10473 `genparttoollist.sh'.
10474 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
10475 Add `*.sh' to the list find searches for and change `mdate.sh'
10476 to `mdate-sh'.
10477
10478 2009-06-10 Pavel Roskin <proski@gnu.org>
10479
10480 * include/grub/multiboot2.h: Provide compatibility defines for
10481 multiboot2.h.
10482 * include/multiboot2.h: Include stdint.h only if needed, using
10483 angle brackets.
10484 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
10485 grub/multiboot2.h.
10486 * loader/ieee1275/multiboot2.c: Likewise.
10487 * loader/multiboot2.c: Likewise.
10488 * loader/multiboot_loader.c: Likewise.
10489
10490 * configure.ac: Use -nostdlib when probing for the target. It
10491 should not be required to have libc for the target.
10492
10493 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
10494 they fail without libc headers for the target.
10495 * include/grub/powerpc/libgcc.h: Use weak attribute for all
10496 exports.
10497 * include/grub/sparc64/libgcc.h: Likewise. Don't use
10498 preprocessor conditionals.
10499
10500 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
10501 build system doesn't need to be aware of the tar.c internals.
10502
10503 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
10504
10505 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
10506
10507 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
10508
10509 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
10510 disk limit to 26 for IDE, Virtio, Xen and SCSI.
10511
10512 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
10513
10514 * util/i386/pc/grub-install.in: Change the error message if UUIDs
10515 aren't available if ata.mod gets used.
10516
10517 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
10518
10519 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
10520 initialising controller.
10521 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
10522
10523 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10524
10525 * util/i386/pc/grub-install.in: Add a parameter --disk-module
10526 to choose between ata and biosdisk module on i386-pc.
10527
10528 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
10529
10530 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
10531 Subclass and Programming Interface fields in terms of the 3 byte
10532 Class Code register.
10533 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
10534
10535 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
10536 interface is OHCI. Add grub_dprintf for symmetry with
10537 bus/usb/uhci.c.
10538 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
10539 interface is UHCI. Add interf variable for programming
10540 interface. Print interface with class/subclass.
10541
10542 * bus/usb/ohci.c: Set interf with correct field.
10543
10544 * bus/usb/uhci.c: Remove unneeded doubled lines.
10545 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
10546 Remove whitespace inside comment.
10547
10548 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
10549
10550 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
10551 as fallback an equivalent option without depth.
10552
10553 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10554
10555 Not fail if unable to retrieve C/H/S on LBA disks
10556
10557 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
10558 if unable to retrieve C/H/S on LBA disks
10559
10560 2009-06-08 Pavel Roskin <proski@gnu.org>
10561
10562 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
10563 about aliasing.
10564
10565 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10566
10567 * Makefile.in (uninstall): Remove all $lib_DATA files.
10568
10569 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10570
10571 Bugfix: install on partitionless device
10572
10573 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
10574 is a whole disk
10575
10576 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10577
10578 * Makefile.in (uninstall): Remove all $include_DATA files.
10579
10580 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10581
10582 * commands/true.c: New file. Implement the true and false commands.
10583 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
10584 (true_mod_SOURCES): New variable.
10585 (true_mod_CFLAGS): Likewise.
10586 (true_mod_LDFLAGS): Likewise.
10587
10588 2009-06-05 Colin D Bennett <colin@gibibit.com>
10589
10590 Optimized font character lookup using binary search instead of linear
10591 search. Fonts now are required to have the character index ordered by
10592 code point.
10593
10594 * font/font.c (load_font_index): Verify that fonts have ordered
10595 character indices.
10596 (find_glyph): Use binary search instead of linear search to find a
10597 character in a font.
10598
10599 2009-06-05 Michael Scherer <misc@mandriva.org>
10600
10601 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
10602 uses case sensitive btree.
10603 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
10604 only for case insensitive filesystems.
10605
10606 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
10607
10608 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
10609 * conf/common.rmk (search_mod_CFLAGS): likewise
10610
10611 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10612
10613 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
10614 compensate a compiler bug
10615
10616 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10617
10618 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
10619 instead of '\b'
10620
10621 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10622
10623 Definitions for creating asm symbols with Apple's CC
10624
10625 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
10626 [APPLE_CC] (VARIABLE): likewise
10627
10628 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10629
10630 Disable lnxboot.img when compiled
10631 with Apple's CC
10632
10633 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
10634 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
10635 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
10636 [! APPLE_CC] (CODE_LENG): skip
10637 [! APPLE_CC] (setup_sects): likewise
10638 [! APPLE_CC]: skip filling
10639
10640 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10641
10642 Address in trampolines based on 32-bit registers when compiled
10643 with Apple's CC
10644
10645 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
10646 for addresses
10647 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
10648
10649 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10650
10651 Avoid aliases when compiling with Apple's CC for PCBIOS machine
10652
10653 * kern/misc.c [APPLE_CC] (memcpy): new function
10654 [APPLE_CC] (memmove): likewise
10655 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
10656 (memcpy): define alias conditionally on !APPLE_CC
10657 (memset): likewise
10658 (abort): likewise
10659 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
10660 APPLE_CC are defined
10661 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
10662 (grub_assert_fail): make prototype conditional
10663
10664 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10665
10666 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
10667
10668 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
10669 grub-macho2img
10670 (CLEANFILES): add grub-macho2img
10671 (grub_macho2img_SOURCES): new variable
10672 * kern/i386/pc/startup.S (bss_start): new variable
10673 (bss_end): likewise
10674 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
10675 * util/grub-macho2img.c: new file
10676
10677 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10678
10679 Use objconv when compiling with Apple's CC
10680
10681 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
10682 (efiemu64.o): likewise
10683 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
10684 when compiling with Apple's CC
10685 (efiemu64_s.o): likewise
10686 * configure.ac: check for objconv when compiling with Apple's CC
10687 * genmk.rb: use objconv for modules when compiled with Apple's CC
10688
10689 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10690
10691 Define segment as well as section when compiling with
10692 Apple's CC
10693
10694 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
10695 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
10696 (efiemu_convert_pointer): likewise
10697 (efiemu_set_virtual_address_map): likewise
10698 (efiemu_convert_pointer): likewise
10699 (efiemu_getcrc32): likewise
10700 (init_crc32_table): likewise
10701 (reflect): likewise
10702 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
10703 (GRUB_MOD_DEP): likewise
10704
10705 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10706
10707 Allow a compilation without -mcmodel=large
10708
10709 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
10710 when compiled without -mcmodel=large
10711 (filter_memory_map): remove memory post 4 GiB when compiled
10712 without -mcmodel=large
10713 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
10714 TARGET_CFLAGS when -mcmodel=large isn't supported
10715
10716 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10717
10718 Remove nested functions in efiemu core
10719
10720 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
10721
10722 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10723
10724 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
10725
10726 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
10727 temporary storage
10728 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
10729 using Apple's CC
10730 (grub_cpu_is_tsc_supported): likewise
10731 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
10732
10733 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10734
10735 Absolute addressing through constant with Apple's cc
10736
10737 * kern/i386/pc/startup.S: Define necessary constants
10738 and address through it when using ABS with Apple's CC
10739 * boot/i386/pc/diskboot.S: likewise
10740 * boot/i386/pc/boot.S: likewise
10741 * boot/i386/pc/lnxboot.S: likewise
10742 * boot/i386/pc/cdboot.S: likewise
10743 * mmap/i386/pc/mmap_helper.S: likewise
10744 * commands/i386/pc/drivemap_int13h.S: likewise
10745
10746 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10747
10748 Check if compiler is apple cc
10749
10750 * Makefile.in (ASFLAGS): new variable
10751 (TARGET_ASFLAGS): likewise
10752 (TARGET_MODULE_FORMAT): likewise
10753 (TARGET_APPLE_CC): likewise
10754 (OBJCONV): likewise
10755 (TARGET_IMG_CFLAGS): likewise
10756 (TARGET_CPPFLAGS): add includedir
10757 * configure.ac: call grub_apple_cc and grub_apple_target_cc
10758 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
10759 Check for linker script only if compiler isn't Apple's CC
10760 (TARGET_MODULE_FORMAT): set
10761 (TARGET_APPLE_CC): likewise
10762 (TARGET_ASFLAGS): likewise
10763 (ASFLAGS): likewise
10764 Check for objcopy only if compiler isn't Apple's CC
10765 Check for BSS symbol only if compiler isn't Apple's CC
10766 * genmk.rb: adapt nm options if we use Apple's utils
10767 * aclocal.m4 (grub_apple_cc): new test
10768 (grub_apple_target_cc): likewise
10769
10770 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10771
10772 Simplify sed expressions and improve awk
10773
10774 * Makefile.in (install-local): simplify sed expression
10775 * gencmdlist.sh: likewise
10776 * genmoddep.awk: avoid adding module as a dependency of itself
10777
10778 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10779
10780 Add missing start symbols
10781
10782 * boot/i386/pc/boot.S: add start
10783 * boot/i386/pc/pxeboot.S: likewise
10784
10785 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10786
10787 Fix wrong assumptions with grub-mkimage on EFI
10788
10789 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
10790 (relocate_addresses): consider both r_addend and value at offset
10791 (make_mods_section): zerofill modinfo and header
10792 (convert_elf): write prefix here
10793
10794 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10795
10796 Use .asciz instead of .string
10797
10798 * i386/pc/diskboot.S: use .asciz instead of .string
10799 * i386/pc/boot.S: likewise
10800 * include/grub/dl.h (GRUB_MOD_DEP): likewise
10801 (GRUB_MOD_NAME): likewise
10802
10803 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10804
10805 gfxpayload support
10806
10807 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
10808 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
10809 (grub_video_setup): remove
10810 (grub_video_set_mode): new prototype
10811 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
10812 (vid_mode): remove
10813 (linux_vesafb_res): compile only on PCBIOS
10814 (grub_linux_boot): support gfxpayload
10815 * loader/i386/pc/xnu.c (video_hook): new function
10816 (grub_xnu_set_video): support gfxpayload
10817 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
10818 (DEFAULT_VIDEO_HEIGHT): likewise
10819 (DEFAULT_VIDEO_FLAGS): likewise
10820 (DEFAULT_VIDEO_MODE): new definition
10821 (video_hook): new function
10822 (grub_gfxterm_init): use grub_video_set_mode
10823 * util/grub.d/30_os-prober.in: remove explicit modesetting before
10824 loading xnu
10825 * video/video.c (grub_video_setup): removed
10826 (grub_video_set_mode): new function based on grub_gfxterm_init and
10827 grub_video_setup
10828
10829 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10830
10831 Avoid calling biosdisk in drivemap
10832
10833 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
10834 (revparse_biosdisk): likewise
10835 (list_mappings): derive name from id directly
10836 (grub_cmd_drivemap): use tryparse_diskstring
10837
10838 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10839
10840 Script fixes
10841
10842 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
10843 (grub_lexer_param): add tokenonhold
10844 (grub_script_create_cmdline): remove cmdline. All callers updated
10845 (grub_script_function_create): make functionname
10846 grub_script_arg. All callers updated
10847 (grub_script_execute_argument_to_string): new prototype
10848 * kern/parser.c (state_transitions): reorder
10849 (grub_parser_cmdline_state): fix a bug and make more compact
10850 * script/sh/execute.c (grub_script_execute_argument_to_string):
10851 make global
10852 (grub_script_execute_cmdline): use new format
10853 * script/sh/function.c (grub_script_function_create): make functionname
10854 grub_script_arg. All callers updated
10855 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
10856 (grub_script_yylex): remove
10857 (grub_script_yylex2): renamed to ...
10858 (grub_script_yylex): ...renamed
10859 parse the expressions like a${b}c
10860 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
10861 (GRUB_PARSER_TOKEN_VAR): remove
10862 (GRUB_PARSER_TOKEN_NAME): likewise
10863 ("if"): declare as typeless
10864 ("while"): likewise
10865 ("function"): likewise
10866 ("else"): likewise
10867 ("then"): likewise
10868 ("fi"): likewise
10869 (text): remove
10870 (argument): likewise
10871 (script): accept empty scripts and make exit on error
10872 (arguments): use GRUB_PARSER_TOKEN_ARG
10873 (function): likewise
10874 (command): move error handling to script
10875 (menuentry): move grub_script_lexer_ref before
10876 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
10877 argument. All callers updated
10878
10879 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
10880
10881 Prevent GRUB from probing floppies during boot.
10882
10883 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
10884 * commands/search.c (options): Add --no-floppy.
10885 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
10886 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
10887 --no-floppy when searching for UUIDs.
10888
10889 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
10890
10891 Simplify the code duplication in commands/search.c.
10892
10893 * commands/search.c (search_label, search_fs_uuid): Merge into ...
10894 (search_fs): ... this. Update all users.
10895
10896 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
10897
10898 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
10899
10900 2009-05-28 Pavel Roskin <proski@gnu.org>
10901
10902 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
10903 Remove the original symlink explicitly.
10904
10905 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
10906 just one slash. That's how grub_fshelp_find_file() does it.
10907
10908 2009-05-26 Pavel Roskin <proski@gnu.org>
10909
10910 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
10911 to `str'.
10912
10913 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
10914 possibly unused.
10915
10916 2009-05-25 Christian Franke <franke@computer.org>
10917
10918 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
10919 register.
10920 (grub_atapi_identify): Add wait after drive select.
10921 (grub_ata_identify): Do more strict status register check before
10922 calling grub_atapi_identify (). Suppress error message if status
10923 register is 0x00 after command failure. Add status register
10924 check after PIO read to avoid bogus identify due to stuck DRQ.
10925 Thanks to Pavel Roskin for testing.
10926 (grub_device_initialize): Remove unsafe status register check.
10927 Thanks to 'phcoder' for problem report and patch.
10928 Prevent sign extension in debug message.
10929
10930 2009-05-23 Colin D Bennett <colin@gibibit.com>
10931
10932 Cleaned up `include/grub/normal.h'. Grouped prototypes by
10933 definition file, and functions defined in `normal/menu.c' have had
10934 their prototypes moved to `include/grub/menu.h' for consistency.
10935
10936 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
10937 from normal.h.
10938 (grub_menu_get_entry): Likewise.
10939 (grub_menu_get_timeout): Likewise.
10940 (grub_menu_set_timeout): Likewise.
10941 (grub_menu_execute_entry): Likewise.
10942 (grub_menu_execute_with_fallback): Likewise.
10943 (grub_menu_entry_run): Likewise.
10944
10945 * include/grub/normal.h: Re-ordered and grouped function
10946 prototypes by file that the function is defined in.
10947 (grub_menu_execute_callback): Removed; moved to menu.h.
10948 (grub_menu_get_entry): Likewise.
10949 (grub_menu_get_timeout): Likewise.
10950 (grub_menu_set_timeout): Likewise.
10951 (grub_menu_execute_entry): Likewise.
10952 (grub_menu_execute_with_fallback): Likewise.
10953 (grub_menu_entry_run): Likewise.
10954 (grub_menu_addentry): Renamed from this ...
10955 (grub_normal_add_menu_entry): ... to this.
10956
10957 * normal/main.c (grub_menu_addentry): Renamed from this ...
10958 (grub_normal_add_menu_entry): ... to this.
10959
10960 * script/sh/execute.c (grub_script_execute_menuentry): Update
10961 reference to renamed grub_menu_addentry function.
10962
10963 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
10964
10965 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
10966
10967 2009-05-22 Pavel Roskin <proski@gnu.org>
10968
10969 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
10970 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
10971 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
10972 compiling for the i386 targets, but not for the utilities.
10973
10974 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
10975 to grub_uint8_t.
10976 (grub_root_drive): Likewise.
10977 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
10978 remove alignment.
10979 (grub_root_drive): Change size to byte.
10980 (grub_start_addr): Remove.
10981 (grub_end_addr): Likewise.
10982 (grub_apm_bios_info): Likewise.
10983
10984 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
10985
10986 * normal/i386: Remove.
10987 * normal/powerpc: Likewise.
10988 * normal/sparc64: Likewise.
10989 * normal/x86_64: Likewise.
10990
10991 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
10992
10993 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
10994 * loader/i386/linux_trampoline.S: Fix indentation
10995 * loader/i386/xnu_helper.S: Likewise
10996
10997 2009-05-18 Colin D Bennett <colin@gibibit.com>
10998
10999 Display error messages when parsing a Lua statement fails.
11000 Previously, executing a syntactically invalid statement like
11001 ")foo" or "bar;" would silently fail.
11002
11003 * script/lua/grub_main.c (handle_lua_error): New function.
11004 (grub_lua_parse_line): Improved reporting of Lua parser and
11005 execution errors.
11006
11007 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11008
11009 Remove -Werror which causes build to fail on some systems
11010
11011 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
11012 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
11013 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
11014
11015 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11016
11017 trampoline for linux on 64-bit platform
11018
11019 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
11020 loader/i386/efi/linux_trampoline.S
11021 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
11022 declaration
11023 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
11024 here
11025 * loader/i386/linux_trampoline.S: moved here
11026 * loader/i386/efi/linux.c (allocate_pages): reserve space for
11027 trampoline
11028 (jumpvector): removed
11029 (grub_linux_trampoline_start): new declaration
11030 (grub_linux_trampoline_end): likewise
11031 (grub_linux_boot): use trampoline when on 64-bit platform
11032 * loader/i386/linux.c: likewise
11033
11034 2009-05-16 Pavel Roskin <proski@gnu.org>
11035
11036 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
11037 const to avoid a warning.
11038 (grub_lua_setenv): Likewise.
11039 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
11040 lmsg to fix a warning.
11041
11042 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11043
11044 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
11045 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11046 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
11047 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11048 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11049 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11050 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11051 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11052
11053 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11054
11055 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
11056
11057 2009-05-16 Bean <bean123ch@gmail.com>
11058
11059 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
11060 (lua_mod_SOURCES): New variable.
11061 (lua_mod_CFLAGS): Likewise.
11062 (lua_mod_LDFLAGS): Likewise.
11063
11064 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
11065 (setjmp_mod_SOURCES): New variable.
11066 (setjmp_mod_CFLAGS): Likewise.
11067 (setjmp_LDFLAGS): Likewise.
11068
11069 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
11070 (setjmp_mod_SOURCES): New variable.
11071 (setjmp_mod_CFLAGS): Likewise.
11072 (setjmp_LDFLAGS): Likewise.
11073
11074 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11075 (setjmp_mod_SOURCES): New variable.
11076 (setjmp_mod_CFLAGS): Likewise.
11077 (setjmp_LDFLAGS): Likewise.
11078
11079 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11080 (setjmp_mod_SOURCES): New variable.
11081 (setjmp_mod_CFLAGS): Likewise.
11082 (setjmp_LDFLAGS): Likewise.
11083
11084 * normal/i386/setjmp.S: Moved from here ...
11085 * lib/i386/setjmp.S: ... Moved here
11086 * normal/x86_64/setjmp.S: Moved from here ...
11087 * lib/x86_64/setjmp.S: ... Moved here
11088 * normal/powerpc/setjmp.S: Moved from here ...
11089 * lib/powerpc/setjmp.S: ... Moved here
11090 * normal/sparc64/setjmp.S: Moved from here ...
11091 * lib/sparc64/setjmp.S: ... Moved here
11092
11093 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
11094 returns_twice in mingw.
11095
11096 * script/lua/grub_lib.c: New file.
11097 * script/lua/grub_lib.h: Likewise.
11098 * script/lua/grub_lua.h: Likewise.
11099 * script/lua/grub_main.c: Likewise.
11100 * script/lua/lapi.c: Likewise.
11101 * script/lua/lapi.h: Likewise.
11102 * script/lua/lauxlib.c: Likewise.
11103 * script/lua/lauxlib.h: Likewise.
11104 * script/lua/lbaselib.c: Likewise.
11105 * script/lua/lcode.c: Likewise.
11106 * script/lua/lcode.h: Likewise.
11107 * script/lua/ldblib.c: Likewise.
11108 * script/lua/ldebug.c: Likewise.
11109 * script/lua/ldebug.h: Likewise.
11110 * script/lua/ldo.c: Likewise.
11111 * script/lua/ldo.h: Likewise.
11112 * script/lua/ldump.c: Likewise.
11113 * script/lua/lfunc.c: Likewise.
11114 * script/lua/lfunc.h: Likewise.
11115 * script/lua/lgc.c: Likewise.
11116 * script/lua/lgc.h: Likewise.
11117 * script/lua/linit.c: Likewise.
11118 * script/lua/liolib.c: Likewise.
11119 * script/lua/llex.c: Likewise.
11120 * script/lua/llex.h: Likewise.
11121 * script/lua/llimits.h: Likewise.
11122 * script/lua/lmathlib.c: Likewise.
11123 * script/lua/lmem.c: Likewise.
11124 * script/lua/lmem.h: Likewise.
11125 * script/lua/loadlib.c: Likewise.
11126 * script/lua/lobject.c: Likewise.
11127 * script/lua/lobject.h: Likewise.
11128 * script/lua/lopcodes.c: Likewise.
11129 * script/lua/lopcodes.h: Likewise.
11130 * script/lua/loslib.c: Likewise.
11131 * script/lua/lparser.c: Likewise.
11132 * script/lua/lparser.h: Likewise.
11133 * script/lua/lstate.c: Likewise.
11134 * script/lua/lstate.h: Likewise.
11135 * script/lua/lstring.c: Likewise.
11136 * script/lua/lstring.h: Likewise.
11137 * script/lua/lstrlib.c: Likewise.
11138 * script/lua/ltable.c: Likewise.
11139 * script/lua/ltable.h: Likewise.
11140 * script/lua/ltablib.c: Likewise.
11141 * script/lua/ltm.c: Likewise.
11142 * script/lua/ltm.h: Likewise.
11143 * script/lua/lua.h: Likewise.
11144 * script/lua/luaconf.h: Likewise.
11145 * script/lua/lualib.h: Likewise.
11146 * script/lua/lundump.c: Likewise.
11147 * script/lua/lundump.h: Likewise.
11148 * script/lua/lvm.c: Likewise.
11149 * script/lua/lvm.h: Likewise.
11150 * script/lua/lzio.c: Likewise.
11151 * script/lua/lzio.h: Likewise.
11152
11153 2009-05-16 Bean <bean123ch@gmail.com>
11154
11155 * include/grub/kernel.h (grub_module_header_types): Add type
11156 OBJ_TYPE_CONFIG.
11157
11158 * kern/main.c (grub_load_config): New function.
11159 (grub_main): Call grub_load_config to read boot config.
11160
11161 * grub-mkimage (generate_image): New parameter config_path.
11162 (options): New option --config.
11163 (main): Parse --config option, and pass it to generate_image.
11164
11165 2009-05-14 Christian Franke <franke@computer.org>
11166
11167 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
11168 This fixes build on Cygwin.
11169
11170 2009-05-14 Pavel Roskin <proski@gnu.org>
11171
11172 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
11173 jump. This saves two bytes, so the typical case of 2 swapped
11174 drives would fit 32 bytes.
11175
11176 2009-05-13 Pavel Roskin <proski@gnu.org>
11177
11178 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
11179 grub_uint32_t to avoid a warning.
11180
11181 * loader/i386/linux.c (allocate_pages): When assigning
11182 real_mode_mem, cast through grub_size_t to fix a warning. The
11183 code already makes sure that the value would fit a pointer.
11184 (grub_linux_setup_video): Cast render_target->data to
11185 grub_size_t to fix a warning.
11186
11187 2009-05-13 Javier Martín <lordhabbit@gmail.com>
11188
11189 * commands/i386/pc/drivemap.c: New file - implement drivemap
11190 command.
11191 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
11192 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
11193
11194 2009-05-13 Pavel Roskin <proski@gnu.org>
11195
11196 * util/i386/pc/grub-setup.c (setup): Remove unused variable
11197 embedding_area_exists.
11198
11199 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
11200
11201 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
11202 it easier to understand / work with.
11203 Improve warning messages for cases where there's no embedding area,
11204 or when it is too small (or core.img too large).
11205
11206 2009-05-13 Pavel Roskin <proski@gnu.org>
11207
11208 * loader/i386/pc/multiboot2.c: Add necessary includes for
11209 grub_multiboot2_real_boot().
11210
11211 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
11212 PX record is always little-endian. We only need the lower 2
11213 bytes of the mode.
11214
11215 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
11216 facilitate code reuse.
11217 (grub_cpio_mount): Use "struct head", not a char buffer. This
11218 fixes a warning reported by gcc 4.4.
11219
11220 * kernel/disk.c (grub_disk_read): Use void pointer for the
11221 buffer.
11222 (grub_disk_write): Use const void pointer for the buffer.
11223 Adjust all callers. Remove unnecessary casts.
11224
11225 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
11226
11227 * util/i386/pc/grub-install.in: Update copyright year.
11228
11229 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11230
11231 gptsync
11232
11233 * commands/gptsync.c: new file
11234 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
11235 (gptsync_mod_SOURCES): new variable
11236 (gptsync_mod_CFLAGS): likewise
11237 (gptsync_mod_LDFLAGS): likewise
11238 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
11239 new definition
11240 (GRUB_PC_PARTITION_TYPE_HFS): likewise
11241 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
11242 * conf/i386-ieee1275.rmk: likewise
11243 * conf/i386-pc.rmk: likewise
11244 * conf/powerpc-ieee1275.rmk: likewise
11245
11246 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11247
11248 Fixed grub-emu
11249
11250 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
11251 (grub_dl_ref): likewise
11252
11253 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
11254
11255 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
11256 split in two functions (one for msdos and one for gpt).
11257
11258 2009-05-08 Pavel Roskin <proski@gnu.org>
11259
11260 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
11261 not modified.
11262
11263 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
11264 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
11265 Initialize them with -1. Add sanity check for bad1. Eliminate
11266 nerr variable.
11267
11268 2009-05-08 David S. Miller <davem@davemloft.net>
11269
11270 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
11271
11272 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
11273
11274 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
11275 existence.
11276
11277 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
11278
11279 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
11280 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
11281
11282 2009-05-05 David S. Miller <davem@davemloft.net>
11283
11284 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
11285
11286 2009-05-05 Pavel Roskin <proski@gnu.org>
11287
11288 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
11289 of grub_dl_ref() and grub_dl_unref().
11290 * commands/parttool.c: Remove preprocessor conditionals around
11291 grub_dl_ref() and grub_dl_unref().
11292 * fs/affs.c: Likewise.
11293 * fs/afs.c: Likewise.
11294 * fs/cpio.c: Likewise.
11295 * fs/ext2.c: Likewise.
11296 * fs/fat.c: Likewise.
11297 * fs/hfs.c: Likewise.
11298 * fs/hfsplus.c: Likewise.
11299 * fs/iso9660.c: Likewise.
11300 * fs/jfs.c: Likewise.
11301 * fs/minix.c: Likewise.
11302 * fs/ntfs.c: Likewise.
11303 * fs/reiserfs.c: Likewise.
11304 * fs/sfs.c: Likewise.
11305 * fs/udf.c: Likewise.
11306 * fs/ufs.c: Likewise.
11307 * fs/xfs.c: Likewise.
11308 * include/grub/dl.h: Likewise.
11309 * loader/xnu.c: Likewise.
11310
11311 2009-05-04 Pavel Roskin <proski@gnu.org>
11312
11313 * commands/acpi.c: Remove unused variable my_mod.
11314 * partmap/amiga.c: Likewise.
11315 * partmap/apple.c: Likewise.
11316 * partmap/gpt.c: Likewise.
11317 * partmap/pc.c: Likewise.
11318 * partmap/sun.c: Likewise.
11319 * term/gfxterm.c: Likewise.
11320 * term/i386/pc/vesafb.c: Likewise.
11321 * term/i386/pc/vga.c: Likewise.
11322
11323 2009-05-04 David S. Miller <davem@davemloft.net>
11324
11325 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
11326 pointer args to grub_ieee1275_get_property().
11327
11328 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
11329
11330 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
11331 devices, and do not traverse down under controller nodes.
11332
11333 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
11334 (grub_ofdisk_open): Use it to un-escape "," characters.
11335 * kern/disk.c (find_part_sep): New.
11336 (grub_disk_open): Use it to find the first non-escaped ','
11337 character in the disk name.
11338 * util/ieee1275/devicemap.c (escape_of_path): New.
11339 (grub_util_emit_devicemap_entry): Use it.
11340 * util/sparc64/ieee1275/grub-install.in: Update script to
11341 strip partition specifiers properly by not triggering on
11342 '\' escaped ',' characters.
11343
11344 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11345
11346 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
11347 to 0x300.
11348 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
11349 resolutions.
11350 (linux_vesafb_modes): Add a lot of additional modes to the list (based
11351 on documentation from Wikipedia).
11352
11353 2009-05-04 Pavel Roskin <proski@gnu.org>
11354
11355 * disk/ata.c: Spelling fixes.
11356 * disk/raid.c: Likewise.
11357 * disk/usbms.c: Likewise.
11358 * disk/dmraid_nvidia.c: Likewise.
11359 * kern/ieee1275/openfw.c: Likewise.
11360 * kern/ieee1275/init.c: Likewise.
11361 * kern/ieee1275/cmain.c: Likewise.
11362 * boot/i386/pc/cdboot.S: Likewise.
11363 * video/readers/png.c: Likewise.
11364 * video/i386/pc/vbe.c: Likewise.
11365 * fs/udf.c: Likewise.
11366 * fs/hfs.c: Likewise.
11367 * fs/reiserfs.c: Likewise.
11368 * efiemu/runtime/efiemu.c: Likewise.
11369 * efiemu/main.c: Likewise.
11370 * efiemu/mm.c: Likewise.
11371 * include/grub/elf.h: Likewise.
11372 * include/grub/xnu.h: Likewise.
11373 * include/grub/usbdesc.h: Likewise.
11374 * include/grub/usb.h: Likewise.
11375 * include/grub/script_sh.h: Likewise.
11376 * include/grub/lib/LzmaEnc.h: Likewise.
11377 * include/grub/efiemu/efiemu.h: Likewise.
11378 * include/grub/command.h: Likewise.
11379 * normal/menu.c: Likewise.
11380 * normal/main.c: Likewise.
11381 * normal/datetime.c: Likewise.
11382 * bus/usb/uhci.c: Likewise.
11383 * mmap/i386/uppermem.c: Likewise.
11384 * mmap/mmap.c: Likewise.
11385 * commands/acpi.c: Likewise.
11386 * commands/test.c: Likewise.
11387 * partmap/apple.c: Likewise.
11388 * font/font.c: Likewise.
11389 * loader/sparc64/ieee1275/linux.c: Likewise.
11390 * loader/macho.c: Likewise.
11391 * loader/i386/bsd_trampoline.S: Likewise.
11392 * loader/i386/bsd.c: Likewise.
11393 * loader/xnu.c: Likewise.
11394 * term/i386/pc/vesafb.c: Likewise.
11395 * term/usb_keyboard.c: Likewise.
11396 * util/resolve.c: Likewise.
11397 * util/getroot.c: Likewise.
11398
11399 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
11400
11401 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
11402
11403 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11404
11405 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
11406 build error.
11407
11408 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11409
11410 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
11411 parameter only available on BIOS.
11412
11413 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11414
11415 Removed wrong semicolon in declaration
11416
11417 * grub/misc.h (grub_dprintf): remove semicolon
11418
11419 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11420
11421 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
11422 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
11423 is done by grub_cmd_linux() now).
11424 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
11425 restore video to text mode.
11426 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
11427 indicates lack of "vga=" parameter. "vga=0" is mapped to
11428 `GRUB_LINUX_VID_MODE_NORMAL'.
11429
11430 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
11431
11432 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
11433 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
11434 and `normal/script.c'. Add `kern/rescue_reader.c',
11435 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
11436 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
11437 `grub_script.tab.c'.
11438
11439 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11440 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
11441 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11442 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
11443 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11444
11445 * Makefile.in: Remove duplicated 2008 in Copyright line.
11446
11447 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11448
11449 * util/misc.c (grub_util_warn): New function. Emits a warning
11450 unconditionally.
11451 * include/grub/util/misc.h (grub_util_warn): New declaration.
11452
11453 * util/i386/pc/grub-install.in: Understand --force and pass it down
11454 to grub-setup.
11455
11456 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
11457 down to setup().
11458 (setup): Improve error messages and add warnings when requested to
11459 install in odd layouts. Refuse to install using blocklists unless
11460 --force was set.
11461
11462 2009-05-04 martin f. krafft <madduck@madduck.net>
11463
11464 * disk/raid.c (grub_raid_scan_device): Improve debug message.
11465
11466 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11467
11468 Updated copyright year
11469
11470 * fs/hfsplus.c: updated copyright year
11471
11472 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11473
11474 HFS+ UUID
11475
11476 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
11477 in the space previously used by unused3
11478 (grub_hfsplus_uuid): new function
11479 (grub_hfsplus_fs): added uuid field
11480
11481 2009-05-03 Pavel Roskin <proski@gnu.org>
11482
11483 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
11484 suppress warnings. It's no longer needed.
11485 * disk/host.c: Likewise.
11486 * disk/ata_pthru.c: Likewise.
11487 * disk/loopback.c: Likewise.
11488 * hook/datehook.c: Likewise.
11489 * parttool/pcpart.c: Likewise.
11490 * fs/i386/pc/pxe.c: Likewise.
11491 * fs/ntfscomp.c: Likewise.
11492 * efiemu/main.c: Likewise.
11493 * mmap/mmap.c: Likewise.
11494 * commands/crc.c: Likewise.
11495 * commands/hexdump.c: Likewise.
11496 * commands/hdparm.c: Likewise.
11497 * commands/acpi.c: Likewise.
11498 * commands/echo.c: Likewise.
11499 * commands/minicmd.c: Likewise.
11500 * commands/blocklist.c: Likewise.
11501 * commands/memrw.c: Likewise.
11502 * commands/loadenv.c: Likewise.
11503 * commands/usbtest.c: Likewise.
11504 * commands/lsmmap.c: Likewise.
11505 * commands/boot.c: Likewise.
11506 * commands/parttool.c: Likewise.
11507 * commands/configfile.c: Likewise.
11508 * commands/search.c: Likewise.
11509 * commands/ieee1275/suspend.c: Likewise.
11510 * commands/cat.c: Likewise.
11511 * commands/i386/pc/pxecmd.c: Likewise.
11512 * commands/i386/pc/play.c: Likewise.
11513 * commands/i386/pc/halt.c: Likewise.
11514 * commands/i386/pc/vbeinfo.c: Likewise.
11515 * commands/i386/pc/vbetest.c: Likewise.
11516 * commands/lspci.c: Likewise.
11517 * commands/date.c: Likewise.
11518 * commands/handler.c: Likewise.
11519 * commands/ls.c: Likewise.
11520 * commands/test.c: Likewise.
11521 * commands/cmp.c: Likewise.
11522 * commands/efi/loadbios.c: Likewise.
11523 * commands/efi/fixvideo.c: Likewise.
11524 * commands/halt.c: Likewise.
11525 * commands/help.c: Likewise.
11526 * commands/reboot.c: Likewise.
11527 * hello/hello.c: Likewise.
11528 * script/sh/main.c: Likewise.
11529 * loader/xnu.c: Likewise.
11530 * term/terminfo.c: Likewise.
11531 * term/i386/pc/serial.c: Likewise.
11532 * term/usb_keyboard.c: Likewise.
11533
11534 2009-05-03 David S. Miller <davem@davemloft.net>
11535
11536 * normal/menu.c: Include grub/parser.h
11537
11538 2009-05-03 Pavel Roskin <proski@gnu.org>
11539
11540 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
11541 not char*.
11542 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
11543 Suggested by Javier Martín <lordhabbit@gmail.com>
11544
11545 * util/i386/pc/grub-mkrescue.in: Allow for the case when
11546 efiemu??.o doesn't exist.
11547 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
11548 copying.
11549
11550 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
11551
11552 FreeBSD 64-bit support
11553
11554 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
11555 and loader/i386/bsd_trampoline.S
11556 (bsd_mod_ASFLAGS): new variable
11557 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
11558 (FREEBSD_MODTYPE_KERNEL64): likewise
11559 (grub_bsd64_trampoline_start): likewise
11560 (grub_bsd64_trampoline_end): likewise
11561 (grub_bsd64_trampoline_selfjump): likewise
11562 (grub_bsd64_trampoline_gdt): likewise
11563 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
11564 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
11565 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
11566 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
11567 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
11568 of "attrib" member
11569 * loader/i386/bsd_pagetable.c: new file
11570 * loader/i386/bsd_trampoline.S: likewise
11571 * loader/i386/bsd.c (ALIGN_QWORD): new macro
11572 (ALIGN_VAR): likewise
11573 (entry_hi): new variable
11574 (kern_end_mdofs): likewise
11575 (is_64bit): likewise
11576 (grub_freebsd_add_meta): use ALIGN_VAR
11577 (grub_e820_mmap): new declaration
11578 (grub_freebsd_add_mmap): new function
11579 (grub_freebsd_add_meta_module): support 64 bit kernels
11580 (grub_freebsd_list_modules): use ALIGN_VAR
11581 (gdt_descriptor): new declaration
11582 (grub_freebsd_boot): support 64 bit kernels
11583 (grub_bsd_elf64_hook): new function
11584 (grub_bsd_load_elf): support elf64
11585
11586 2009-05-03 Bean <bean123ch@gmail.com>
11587
11588 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
11589 after we get the result of if statement.
11590
11591 2009-05-03 Bean <bean123ch@gmail.com>
11592
11593 * Makefile.in (enable_efiemu): New variable.
11594
11595 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
11596 set.
11597 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
11598 path.
11599 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
11600 path, add -mno-red-zone option.
11601 (efiemu64_s.o): Likewise.
11602 (efiemu64.o): Use macro $^ for source file.
11603
11604 * configure.ac (--enable-efiemu): New option.
11605
11606 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11607
11608 xnu support
11609
11610 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
11611 (pkglib_MODULES): add xnu.mod
11612 (xnu_mod_SOURCES): new variable
11613 (xnu_mod_CFLAGS): likewise
11614 (xnu_mod_LDFLAGS): likewise
11615 (xnu_mod_ASFLAGS): likewise
11616 * conf/i386-pc.rmk: likewise
11617 * conf/x86_64-efi.rmk: likewise
11618 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
11619 new declaration
11620 * include/grub/i386/macho.h: new file
11621 * include/grub/i386/xnu.h: likewise
11622 * include/grub/macho.h: likewise
11623 * include/grub/machoload.h: likewise
11624 * include/grub/x86_64/macho.h: likewise
11625 * include/grub/x86_64/xnu.h: likewise
11626 * include/grub/xnu.h: likewise
11627 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
11628 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
11629 * loader/i386/efi/xnu.c: new file
11630 * loader/i386/pc/xnu.c: likewise
11631 * loader/i386/xnu.c: likewise
11632 * loader/i386/xnu_helper.S: likewise
11633 * loader/macho.c: likewise
11634 * loader/xnu.c: likewise
11635 * loader/xnu_resume.c: likewise
11636 * util/grub-dumpdevtree: likewise
11637 * include/grub/i386/pit.h: include grub/err.h
11638 (grub_pit_wait): export
11639 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
11640
11641 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11642
11643 Efiemu
11644
11645 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
11646 _linux_efi, linux_efi.
11647 new files in grub-emu
11648 new targets efiemu32.o and efiemu64.o
11649 * loader/linux_normal_efiemu.c: likewise
11650 * loader/i386/efi/linux.c: added preliminary efiemu support
11651 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
11652 files to copy
11653 * include/grub/autoefi.h: new file
11654 * include/grub/i386/efiemu.h: likewise
11655 * include/grub/i386/pc/efiemu.h: likewise
11656 * include/grub/efi/api.h: add LL suffix when necessary
11657 new definitions relating to tables
11658 * include/grub/efiemu/efiemu.h: new file
11659 * include/grub/efiemu/runtime.h: likewise
11660 * efiemu/prepare.c: likewise
11661 * efiemu/loadcore_common.c: likewise
11662 * efiemu/loadcore64.c: likewise
11663 * efiemu/runtime/efiemu.sh: likewise
11664 * efiemu/runtime/efiemu.S: likewise
11665 * efiemu/runtime/efiemu.c: likewise
11666 * efiemu/runtime/config.h: likewise
11667 * efiemu/prepare32.c: likewise
11668 * efiemu/main.c: likewise
11669 * efiemu/modules/pnvram.c: likewise
11670 * efiemu/modules/i386: likewise
11671 * efiemu/modules/i386/pc: likewise
11672 * efiemu/modules/acpi.c: likewise
11673 * efiemu/i386/pc/cfgtables.c: likewise
11674 * efiemu/i386/loadcore64.c: likewise
11675 * efiemu/i386/loadcore32.c: likewise
11676 * efiemu/prepare64.c: likewise
11677 * efiemu/loadcore.c: likewise
11678 * efiemu/symbols.c: likewise
11679 * efiemu/mm.c: likewise
11680 * efiemu/loadcore32.c: likewise
11681
11682 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11683
11684 ACPI spoofing
11685
11686 * commands/acpi.c: new file
11687 * commands/i386/pc/acpi.c: likewise
11688 * commands/efi/acpi.c: likewise
11689 * include/grub/acpi.h: likewise
11690 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
11691 (acpi_mod_SOURCES): new variable
11692 (acpi_mod_CFLAGS): likewise
11693 (acpi_mod_LDFLAGS): likewise
11694 * conf/i386-efi.rmk: likewise
11695 * conf/x86_64-efi.rmk: likewise
11696
11697 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11698
11699 Missing part from mmap patch
11700
11701 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
11702 (grub_mmap_unregister)
11703 (grub_mmap_free_and_unregister): use grub_mmap_register
11704
11705 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11706
11707 Mmap services
11708
11709 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
11710 * loader/i386/linux.c (find_mmap_size): likewise
11711 (allocate_pages): likewise
11712 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
11713 (grub_fill_multiboot_mmap): likewise
11714 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
11715 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
11716 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
11717 (OPENBSD_MMAP_RESERVED): likewise
11718 * include/grub/i386/pc/memory.h: include grub/memory.h
11719 (grub_lower_mem): removed
11720 (grub_upper_mem): likewise
11721 (GRUB_MACHINE_MEMORY_ACPI): new definition
11722 (GRUB_MACHINE_MEMORY_NVS): likewise
11723 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
11724 (GRUB_MACHINE_MEMORY_HOLE): likewise
11725 (grub_machine_mmap_register): likewise
11726 (grub_machine_mmap_unregister): likewise
11727 (grub_machine_get_upper): likewise
11728 (grub_machine_get_lower): likewise
11729 (grub_machine_get_post64): likewise
11730 * include/grub/i386/efi/memory.h: new file
11731 * include/grub/x86_64/efi/memory.h: likewise
11732 * include/grub/efi/memory.h: likewise
11733 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
11734 (mmap_mod_SOURCES): new variable
11735 (mmap_mod_LDFLAGS): likewise
11736 (mmap_mod_ASFLAGS): likewise
11737 * conf/i386-coreboot.rmk: likewise
11738 * conf/i386-ieee1275.rmk: likewise
11739 * conf/i386-efi.rmk: likewise
11740 * conf/x86_64-efi.rmk: likewise
11741 * include/grub/types.h (UINT_TO_PTR): new macro
11742 (PTR_TO_UINT32): likewise
11743 (PTR_TO_UINT64): likewise
11744 * include/grub/memory.h: new file
11745 * mmap/i386/pc/mmap.c: likewise
11746 * mmap/i386/pc/mmap_helper.S: likewise
11747 * mmap/i386/uppermem.c: likewise
11748 * mmap/mmap.c: likewise
11749 * mmap/efi/mmap.c: likewise
11750 * kern/i386/coreboot/init.c (grub_machine_init): don't use
11751 grub_upper_mem
11752 * kern/i386/pc/init.c (grub_lower_mem): removed variable
11753 (grub_upper_mem): likewise
11754 (grub_machine_init): don't use grub_upper_mem,
11755 make grub_lower_mem local
11756 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
11757 grub_mmap_iterate and grub_mmap_get_upper
11758 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
11759
11760 2009-05-02 Bean <bean123ch@gmail.com>
11761
11762 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
11763 script/sh/parser.y.
11764 (pkglib_MODULES): Add normal.mod and sh.mod.
11765 (normal_SOURCES): New variable.
11766 (normal_mod_CFLAGS): Likewise.
11767 (normal_mod_LDFLAGS): Likewise.
11768 (sh_mod_SOURCES): Likewise.
11769 (sh_mod_CFLAGS): Likewise.
11770 (sh_mod_LDFLAGS): Likewise.
11771
11772 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
11773 script/sh/lexer.c_DEPENDENCIES.
11774 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
11775 kern/rescue_reader.c and kern/rescue_parser.c.
11776 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
11777 (grub_emu_SOURCES): Change source files.
11778 (pkglib_MODULES): Remove normal.mod.
11779 (normal_SOURCES): Removed.
11780 (normal_mod_CFLAGS): Likewise.
11781 (normal_mod_LDFLAGS): Likewise.
11782 * conf/i386-coreboot.rmk: Likewise.
11783 * conf/i386-efi.rmk: Likewise.
11784 * conf/i386-ieee1276.rmk: Likewise.
11785 * conf/powerpc-ieee1275.rmk: Likewise.
11786 * conf/sparc64-ieee1275.rmk: Likewise.
11787 * conf/x86_64-efi.rmk: Likewise.
11788
11789 * include/grub/command.h (grub_command_execute): New inline function.
11790
11791 * include/grub/menu.h (grub_menu_entry): Removed commands field.
11792
11793 * include/grub/normal.h: Remove <grub/setjmp.h>.
11794 (grub_fs_module_list): Moved to normal/autofs.c.
11795 (grub_exit_env): Removed.
11796 (grub_command_execute): Likewise.
11797 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
11798 parameter script.
11799 (read_command_list): New function declaration.
11800 (read_fs_list): Likewise.
11801
11802 * include/parser.h: Include <grub/reader.h>.
11803 (grub_parser_split_cmdline): Change type of getline parameter.
11804 (grub_parser): New structure.
11805 (grub_parser_class): New variable.
11806 (grub_parser_execute): New function declaration.
11807 (grub_register_rescue_parser): Likewise.
11808 (grub_parser_register): New inline function.
11809 (grub_parser_unregister): Likewise.
11810 (grub_parser_get_current): Likewise.
11811 (grub_parser_set_current): Likewise.
11812
11813 * include/grub/reader.h: New file.
11814 * kern/reader.c: Likewise.
11815 * kern/rescue_parser.c: Likewise.
11816 * kern/rescue_reader.c: Likewise.
11817 * normal/autofs.c: Likewise.
11818 * normal/dyncmd.c: Likewise.
11819
11820 * include/grub/rescue.h: Removed.
11821 * normal/command.h: Likewise.
11822
11823 * include/grub/script.h: Moved to ...
11824 * include/grub/script_sh.h: ... Moved here.
11825 * normal/execute.c: Moved to ...
11826 * script/sh/execute.c: ... Moved here.
11827 * normal/function.c: Moved to ...
11828 * script/sh/function.c: ... Moved here.
11829 * normal/lexer.c: Moved to ...
11830 * script/sh/lexer.c: ... Moved here.
11831 * normal/parser.y: Moved to ...
11832 * script/sh/parser.y: ... Moved here.
11833 * normal/script.c: Moved to ...
11834 * script/sh/script.c: ... Moved here.
11835
11836 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
11837 <grub/reader.h>.
11838 (grub_exit_env): Removed.
11839 (fs_module_list): Moved to normal/autofs.c.
11840 (grub_file_getline): Don't handle comment here.
11841 (free_menu): Skip removed field entry->commands.
11842 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
11843 script parameter.
11844 (read_config_file): Removed nested parameter, change getline function.
11845 (grub_enter_normal_mode): Removed.
11846 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
11847 (read_command_list): Likewise.
11848 (autoload_fs_module): Moved to normal/autofs.c.
11849 (read_fs_list): Likewise.
11850 (reader_nested): New variable.
11851 (grub_normal_execute): Run parser.sh to switch to sh parser.
11852 (grub_cmd_rescue): Removed.
11853 (cmd_normal): Removed.
11854 (grub_cmd_normal): Unregister itself at the beginning. Don't register
11855 rescue command.
11856 (grub_cmdline_run): New function.
11857 (grub_normal_reader_init): Likewise.
11858 (grub_normal_read_line): Likewise.
11859 (grub_env_write_pager): Likewise.
11860 (cmdline): New variable.
11861 (grub_normal_reader): Likewise.
11862 (GRUB_MOD_INIT): Register normal reader and set as current, register
11863 pager hook, register normal command with grub_register_command_prio,
11864 so that it won't show up in command.lst.
11865 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
11866 grub_fs_autoload_hook.
11867
11868 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
11869 (grub_menu_execute_entry): Replace grub_script_execute with
11870 grub_parser_execute, change parameter to grub_command_execute.
11871
11872 * normal/menu_text.c: Remove <grub/script.h>.
11873
11874 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
11875 and <grub/parser.h>.
11876 (run): Change editor_getline to use new parser interface. Change
11877 parameter to grub_command_execute.
11878
11879 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
11880 <grub/reader.h> and <grub/parser.h>.
11881 (grub_load_normal_mode): Execute normal command.
11882 (grub_main): Call grub_register_core_commands,
11883 grub_register_rescue_parser and grub_register_rescue_reader, use
11884 grub_reader_loop to enter input loop.
11885
11886 * kern/parser.c (grub_parser_split_cmdline): Change type of
11887 getline parameter.
11888 (grub_parser_class): New variable.
11889 (grub_parser_execute): New function.
11890
11891 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
11892 * loader/multiboot2.c: Likewise.
11893 * loader/sparc64/ieee1275/linux.c: Likewise.
11894
11895 * util/grub-emu.c (read_command_list): New dummy function.
11896
11897 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
11898
11899 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
11900 count to 16 for CCISS and IDA.
11901
11902 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
11903
11904 * normal/menu_text.c (grub_wait_after_message): Print a newline
11905 after waiting for user input.
11906
11907 * loader/i386/linux.c: Include `<grub/normal.h>'.
11908 (grub_cmd_linux): Improve the error message about `ask' mode, by
11909 waiting for user input so it's not missed (we can do this, since
11910 user requested interaction).
11911
11912 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11913
11914 Added missing lst to grub-mkrescue
11915
11916 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
11917 and ${input_dir}/parttool.lst
11918
11919 2009-04-30 David S. Miller <davem@davemloft.net>
11920
11921 * util/hostdisk.c (device_is_wholedisk): New function.
11922 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
11923 zero only if device_is_wholedisk() returns true.
11924
11925 * util/hostdisk.c (convert_system_partition_to_system_disk):
11926 Handle virtual disk devices named /dev/vdiskX as found on sparc
11927 and powerpc.
11928
11929 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
11930 lettered partition specifier is found, convert to numbered.
11931
11932 2009-04-29 David S. Miller <davem@davemloft.net>
11933
11934 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
11935 * include/grub/sparc64/ieee1275/memory.h: Likewise.
11936
11937 * normal/command.c: Add missing newline at end of file.
11938
11939 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
11940 warnings.
11941 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
11942 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
11943 grub_ofdisk_read): Likewise, and deal similarly with the fact that
11944 ihandles have a 32-bit type but need to be stored in a "void *".
11945
11946 2009-04-28 Pavel Roskin <proski@gnu.org>
11947
11948 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
11949 not disk. Adjust all dependencies.
11950 (grub_fs_uuid_close): Use grub_device_close(), not
11951 grub_disk_close().
11952
11953 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
11954 parent's partition, don't copy it by reference, as it gets freed
11955 on close.
11956
11957 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
11958
11959 Preboot hooks support
11960
11961 * commands/boot.c (struct grub_preboot_t): new declaration
11962 (preboots_head): new variable
11963 (preboots_tail): likewise
11964 (grub_loader_register_preboot_hook): new function
11965 (grub_loader_unregister_preboot_hook): likewise
11966 (grub_loader_set): launch preboot hooks
11967 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
11968 (grub_loader_register_preboot_hook): new declaration
11969 (grub_loader_unregister_preboot_hook): likewise
11970
11971 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
11972
11973 Warning fix
11974
11975 * disk/scsi.c (grub_scsi_open): added missing cast when
11976 calling grub_dprintf
11977
11978 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
11979
11980 Bug and warning fixes
11981
11982 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
11983 declaration
11984 * commands/test.c (test_parse): fixed bug with file tests and corrected
11985 declaration of find_file
11986
11987 2009-04-26 Pavel Roskin <proski@gnu.org>
11988
11989 * Makefile.in: Don't install empty manual pages if help2man is
11990 missing. Use help2man option for output, not shell redirection.
11991
11992 2009-04-26 David S. Miller <davem@davemloft.net>
11993
11994 * util/grub-mkdevicemap.c (make_device_map): Add missing
11995 NESTED_FUNC_ATTR to process_device().
11996
11997 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11998
11999 Test command
12000
12001 * commands/test.c: rewritten to use bash-like test
12002
12003 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12004
12005 Parttool autoloading and improvements
12006
12007 * Makefile.in (pkglib_DATA): add parttool.lst
12008 (parttool.lst): new target
12009 * genmk.rb: generate parttool-*
12010 (CLEANFILES): add #{parttool}
12011 (PARTTOOLFILES): new variable
12012 * genparttoollist.sh: new file
12013 * parttool/pcpart.c (grub_pcpart_boot): more feedback
12014 (grub_pcpart_type): likewise
12015 * commands/parttool.c (helpmsg): new variable
12016 (grub_cmd_parttool): output help if not enough arguments are supplied
12017 autoload modules
12018 (GRUB_MOD_INIT(parttool)): use helpmsg
12019
12020 2009-04-24 David S. Miller <davem@davemloft.net>
12021
12022 Avoiding opening same device multiple times in device iterator.
12023
12024 * kern/device.c: (grub_device_iterate): Define struct part_ent,
12025 and use it to build a list of partitions in iterate_disk() and
12026 iterate_partition().
12027
12028 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
12029 on disk->data.
12030
12031 * disk/ieee1275/nand.c (grub_nand_iterate): Return
12032 grub_devalias_iterate() result instead of unconditional 0.
12033 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
12034 Also, capture hook return value, either directly or via
12035 grub_children_iterate(), and propagate to caller.
12036 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
12037 grub_children_iterate): Return value is now 'int' instead of
12038 'grub_err_t'.
12039 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
12040 like a proper iterator, stopping when hooks return non-zero.
12041 (grub_devalias_iterate): Likewise.
12042
12043 2009-04-23 David S. Miller <davem@davemloft.net>
12044
12045 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
12046
12047 2009-04-22 David S. Miller <davem@davemloft.net>
12048
12049 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
12050 is larger than address_cells, use that value for address_cells too.
12051
12052 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
12053 IEEE1275_MAX_PATH_LEN): Define.
12054 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
12055 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
12056 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
12057 'devtype'. Explicitly NULL terminate devalias expansion.
12058
12059 * util/sparc64/ieee1275/misc.c: New file.
12060 * util/sparc64/ieee1275/grub-setup.c: New file.
12061 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
12062 * util/sparc64/ieee1275/grub-mkimage.c: New file.
12063 * util/sparc64/ieee1275/grub-install.in: New file.
12064 * util/ieee1275/ofpath.c: New file.
12065 * util/ieee1275/devicemap.c: New file.
12066 * util/devicemap.c: New file.
12067 * util/deviceiter.c: New file.
12068 * kern/sparc64/ieee1275/init.c: New file.
12069 * include/grub/util/ofpath.h: New file.
12070 * include/grub/util/deviceiter.h: New file.
12071 * util/grub-mkdevicemap.c: Include deviceiter.h.
12072 Implement using grub_util_emit_devicemap_entry and
12073 grub_util_iterate_devices.
12074 * conf/i386-corebook.rmk: Build util/deviceiter.c and
12075 util/devicemap.c into grub-mkdevicemap
12076 * conf/i386-efi.rmk: Likewise.
12077 * conf/i386-ieee1275.rmk: Likewise.
12078 * conf/i386-pc.rmk: Likewise.
12079 * conf/powerpc-ieee1275.rmk: Likewise.
12080 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
12081 images and installation utilities. Build kernel as image
12082 instead of as elf binary. Use common rules as much as possible.
12083
12084 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12085
12086 Correct GPT definition
12087
12088 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
12089 of "attrib" member
12090
12091 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
12092
12093 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
12094
12095 2009-04-19 David S. Miller <davem@davemloft.net>
12096
12097 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
12098 (grub_rescue_cmd_linux): Rename to...
12099 (grub_cmd_linux): and fix prototype.
12100 (grub_rescue_cmd_initrd): Rename to...
12101 (grub_cmd_initrd): and fix prototype.
12102 (cmd_linux, cmd_initrd): New.
12103 (GRUB_MOD_INIT(linux)): Use grub_register_command().
12104 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
12105
12106 2009-04-17 Pavel Roskin <proski@gnu.org>
12107
12108 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
12109 format.
12110 (grub_ohci_transfer): Likewise.
12111
12112 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
12113
12114 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
12115 return without a value. Fix inconsistent indentation.
12116
12117 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
12118 match struct grub_fs.
12119
12120 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
12121 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
12122 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
12123 * commands/lspci.c (grub_lspci_iter): Likewise.
12124
12125 2009-04-16 Bean <bean123ch@gmail.com>
12126
12127 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
12128 value.
12129
12130 2009-04-15 Pavel Roskin <proski@gnu.org>
12131
12132 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
12133 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
12134 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
12135 definitions.
12136
12137 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
12138
12139 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
12140 that no multiple data or metadata areas are supported and `Unknown
12141 metadata header'.
12142
12143 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12144
12145 Move loader out of the kernel
12146
12147 * kern/loader.c: moved to ...
12148 * commands/boot.c: ... moved here
12149 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
12150 * commands/boot.c (grub_cmd_boot): moved here. All users updated
12151 * include/grub/kernel.h (grub_machine_fini): export
12152 * include/grub/loader.h (grub_loader_is_loaded): update declaration
12153 (grub_loader_set): likewise
12154 (grub_loader_unset): likewise
12155 (grub_loader_boot): likewise
12156 * conf/common.rmk: new module boot.mod
12157 (pkglib_MODULES): add boot.mod
12158 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
12159 (grub_emu_SOURCES): likewise
12160 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
12161 (grub_emu_SOURCES): likewise
12162 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
12163 (grub_emu_SOURCES): likewise
12164 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
12165 (grub_emu_SOURCES): likewise
12166 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
12167 (grub_emu_SOURCES): likewise
12168 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
12169 (grub_emu_SOURCES): likewise
12170 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
12171 (grub_emu_SOURCES): likewise
12172
12173 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12174
12175 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
12176
12177 * kern/misc.c (grub_itoa): Removed function
12178 (grub_ltoa): likewise
12179 (grub_vsprintf): use grub_lltoa
12180
12181 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12182
12183 Restore grub-emu
12184
12185 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
12186 * conf/i386-coreboot.rmk: likewise
12187 * conf/i386-ieee1275.rmk: likewise
12188 * conf/powerpc-ieee1275.rmk: likewise
12189
12190 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
12191
12192 * INSTALL: Add that `./autogen.sh' needs to be run before
12193 `./configure.'.
12194
12195 2009-04-14 Bean <bean123ch@gmail.com>
12196
12197 * Makefile.in (pkglib_DATA): Add handler.lst.
12198 (handler.lst): New rule.
12199
12200 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
12201 * conf/i386-coreboot.rmk: Likewise.
12202 * conf/i386-ieee1275.rmk: Likewise.
12203 * conf/i386-efi.rmk: Likewise.
12204 * conf/x86_64-efi.rmk: Likewise.
12205 * conf/powerpc-ieee1275.rmk: Likewise.
12206 * conf/sparc64-ieee1275.rmk: Likewise.
12207
12208 * genhandlerlist.sh: New file.
12209
12210 * genmk.rb: Add rules to generate handler.lst.
12211
12212 * include/grub/normal.h (grub_file_getline): New function definition.
12213 (read_handler_list): Likewise.
12214 (free_handler_list): Likewise.
12215
12216 * include/grub/term.h (grub_term_register_input): Add name parameter
12217 for auto generation of handler.lst.
12218 (grub_term_register_output): Likewise.
12219
12220 * normal/handler.c: New file.
12221
12222 * normal/main.c (get_line): Renamed to grub_file_getline.
12223 (read_config_file): Use the newly renamed grub_file_getline.
12224 (read_command_list): Likewise.
12225 (read_fs_list): Likewise.
12226 (grub_normal_execute): Call read_handler_list to parse handler.lst.
12227 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
12228
12229 * term/efi/console.c (grub_console_init): Add name parameter for auto
12230 generation of handler.lst.
12231 * term/gfxterm.c: Likewise.
12232 * term/i386/pc/at_keyboard.c: Likewise.
12233 * term/i386/pc/console.c: Likewise.
12234 * term/i386/pc/serial.c: Likewise.
12235 * term/i386/pc/vesafb.c: Likewise.
12236 * term/i386/pc/vga.c: Likewise.
12237 * term/i386/pc/vga_text.c: Likewise.
12238 * term/ieee1275/ofconsole.c: Likewise.
12239 * term/usb_keyboard.c: Likewise.
12240
12241 2009-04-14 Bean <bean123ch@gmail.com>
12242
12243 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
12244 properly with null character.
12245
12246 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
12247
12248 * configure: Remove.
12249 * config.h.in: Likewise.
12250 * stamp-h.in: Likewise.
12251 * DISTLIST: Likewise.
12252 * conf/common.mk: Likewise.
12253 * conf/i386-coreboot.mk: Likewise.
12254 * conf/i386-efi.mk: Likewise.
12255 * conf/i386-ieee1275.mk: Likewise.
12256 * conf/i386.mk: Likewise.
12257 * conf/i386-pc.mk: Likewise.
12258 * conf/powerpc-ieee1275.mk: Likewise.
12259 * conf/sparc64-ieee1275.mk: Likewise.
12260 * conf/x86_64-efi.mk: Likewise.
12261
12262 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
12263 develop on GRUB.
12264
12265 2009-04-14 John Stanley <jpsinthemix@verizon.net>
12266 David S. Miller <davem@davemloft.net>
12267
12268 * util/hostdisk.c (make_device_name): Fix buffer length
12269 calculations.
12270
12271 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
12272
12273 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
12274 <sys/param.h> and <sys/sysctl.h>.
12275 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
12276 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
12277 opening the device and reset them afterwards.
12278
12279 2009-04-13 Pavel Roskin <proski@gnu.org>
12280
12281 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
12282 Reported by John Stanley <jpsinthemix@verizon.net>
12283
12284 2009-04-13 Robert Millan <rmh@aybabtu.com>
12285
12286 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
12287 that name for menuentries when appropriate.
12288
12289 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12290
12291 * util/grub.d/10_freebsd.in: Add a missing `fi'.
12292
12293 2009-04-13 Robert Millan <rmh@aybabtu.com>
12294
12295 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
12296 to Linux, simply abort telling the user it's no longer supported.
12297
12298 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12299
12300 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
12301 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
12302 `freebsd_loadenv' only when devices.hints exist.
12303
12304 2009-04-13 Pavel Roskin <proski@gnu.org>
12305
12306 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
12307
12308 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12309
12310 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
12311 partition number.
12312 (grub_drive): Likewise.
12313
12314 2009-04-13 David S. Miller <davem@davemloft.net>
12315
12316 * kern/sparc64/ieee1275/ieee1275.c: New file.
12317 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
12318 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
12319 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
12320 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
12321 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
12322 grub_ieee1275_alloc_physmem): Declare new exported functions.
12323
12324 * include/grub/sparc64/ieee1275/loader.h: New file.
12325 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12326 * include/grub/sparc64/kernel.h: Likewise.
12327 * loader/sparc64/ieee1275/linux.c: Likewise.
12328
12329 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
12330 (grub_fstest_SOURCES): Likewise.
12331
12332 * util/hostdisk.c (make_device_name): Do not make any assumptions
12333 about the length of drive names.
12334
12335 * kern/dl.c (grub_dl_load_file): Close file immediately when
12336 we are done using it.
12337
12338 2009-04-12 David S. Miller <davem@davemloft.net>
12339
12340 * kern/misc.c (grub_ltoa): Fix cast when handling negative
12341 values. Noticed by Pavel Roskin.
12342
12343 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
12344 target compiler.
12345
12346 * genmk.rb: Add more flexible image type specification, also
12347 pass --strip-unneeded to objcopy.
12348 * conf/i386-pc.rmk: Use *_FORMAT.
12349 * conf/i386-pc.mk: Rebuilt.
12350
12351 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
12352 (OFDISK_HASH_SZ): Define.
12353 (ofdisk_hash): New hash table.
12354 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
12355 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
12356 instead of device phandle which is not unique.
12357
12358 * kern/sparc64/ieee1275/init.c: Delete, replace with...
12359 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
12360 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
12361 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
12362 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
12363 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
12364 GRUB_KERNEL_MACHINE_DATA_END): Define.
12365 (grub_kernel_image_size, grub_total_module_size): Declare.
12366
12367 2009-04-12 Pavel Roskin <proski@gnu.org>
12368
12369 * configure.ac: Change the logic when we check for target tools.
12370 Do it when the target is specified and it's different from the
12371 specified value of the host.
12372
12373 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
12374
12375 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
12376 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
12377 GNU/kFreeBSD. Check if a device is a character device. Use
12378 DIOCGMEDIASIZE to get the size.
12379 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
12380 support for GNU/kFreeBSD.
12381 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
12382 is a character device instead of a block device. Add support for
12383 FreeBSD device names.
12384
12385 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
12386 is a character device instead of a block device.
12387
12388 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
12389 is a character device instead of a block device.
12390
12391 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
12392
12393 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
12394 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
12395 FreeBSD. Check if a device is a character device. Use
12396 DIOCGMEDIASIZE to get the size.
12397 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
12398 support for FreeBSD.
12399 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
12400 is a character device instead of a block device. Add support for
12401 FreeBSD device names.
12402
12403 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
12404 a character device instead of a block device.
12405 (grub_util_check_char_device): New function.
12406
12407 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
12408 a character device instead of a block device.
12409
12410 * include/grub/util/getroot.h (grub_util_check_char_device): New
12411 prototype.
12412
12413 2009-04-11 David S. Miller <davem@davemloft.net>
12414
12415 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
12416 static libgcc.
12417 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
12418 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
12419 function, if present.
12420 (__bswapdi2): Likewise.
12421
12422 * include/grub/sparc64/ieee1275/boot.h: New file.
12423 * boot/sparc64/ieee1275/boot.S: Likewise.
12424 * boot/sparc64/ieee1275/diskboot.S: Likewise.
12425
12426 * kern/misc.c (grub_ltoa): New function.
12427 (grub_vsprintf): Use it to format 'long' integers.
12428
12429 2009-04-10 David S. Miller <davem@davemloft.net>
12430
12431 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
12432 slots are of type grub_ieee1275_cell_t.
12433 (grub_nand_read): Likewise.
12434 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
12435 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
12436 macros are used to compare values in arg/ret block of the call.
12437 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
12438 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
12439 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
12440 grub_ieee1275_instance_to_path, grub_ieee1275_write,
12441 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
12442 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
12443 grub_ieee1275_close, grub_ieee1275_set_property,
12444 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
12445 grub_ieee1275_cell_t.
12446 * kern/ieee1275/openfw.c (grub_map): Likewise.
12447 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
12448 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
12449
12450 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
12451 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
12452 (grub_devalias_iterate): Likewise.
12453
12454 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12455
12456 UFS improvements
12457
12458 * fs/ufs.c (INODE_NBLOCKS): new definition
12459 (struct grub_ufs_dirent): added fields for non-BSD dirents
12460 (grub_ufs_get_file_block): fixed double indirect handling
12461 (grub_ufs_lookup_symlink): use more robust way to determine whether
12462 symlink is inline
12463 (grub_ufs_find_file): support for non-BSD dirents
12464 (grub_ufs_dir): support for non-BSD dirents
12465
12466 2009-04-10 Bean <bean123ch@gnail.com>
12467
12468 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
12469 attribute, otherwise the size would be wrong for i386 platform.
12470
12471 * include/grub/pci.h (grub_pci_read_word): New inline function.
12472 (grub_pci_read_byte): Likewise.
12473 (grub_pci_write): Likewise.
12474 (grub_pci_write_word): Likewise.
12475 (grub_pci_write_byte): Likewise.
12476
12477 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
12478
12479 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
12480 (find_framebuf): Scan pci to locate the frame buffer address.
12481
12482 * commands/efi/fixvideo.c: New file.
12483
12484 * commands/efi/loadbios.c: Likewise.
12485
12486 * commands/memrw.c: Likewise.
12487
12488 * util/grub-dumpbios.in: Likewise.
12489
12490 * conf/common.rmk (grub-dumpbios): New utility.
12491 (pkglib_MODULES): New module memrw.mod.
12492 (memrw_mod_SOURCE): New macro.
12493 (memrw_mod_CFLAGS): Likewise.
12494 (memrw_mod_LDFLAGS): Likewise.
12495
12496 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
12497 fixvideo.mod.
12498 (loadbios_mod_SOURCE): New macro.
12499 (loadbios_mod_CFLAGS): Likewise.
12500 (loadbios_mod_LDFLAGS): Likewise.
12501 (fixvideo_mod_SOURCE): Likewise.
12502 (fixvideo_mod_CFLAGS): Likewise.
12503 (fixvideo_mod_LDFLAGS): Likewise.
12504
12505 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
12506 fixvideo.mod.
12507 (loadbios_mod_SOURCE): New macro.
12508 (loadbios_mod_CFLAGS): Likewise.
12509 (loadbios_mod_LDFLAGS): Likewise.
12510 (fixvideo_mod_SOURCE): Likewise.
12511 (fixvideo_mod_CFLAGS): Likewise.
12512 (fixvideo_mod_LDFLAGS): Likewise.
12513
12514 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
12515
12516 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
12517
12518 2009-04-07 David S. Miller <davem@davemloft.net>
12519
12520 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
12521 support for R_SPARC_OLO10 relocations. Fix compile warning for
12522 R_SPARC_WDISP30 case.
12523 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
12524
12525 2009-04-06 Pavel Roskin <proski@gnu.org>
12526
12527 * include/grub/misc.h (ARRAY_SIZE): New macro.
12528 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
12529 New macro.
12530 * loader/i386/linux.c (allocate_pages): Use free_pages().
12531 (grub_linux_unload): Don't use free_pages().
12532 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
12533 wrong index. Treat all other modes as text modes.
12534 (grub_cmd_linux): Initialize vid_mode unconditionally to
12535 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
12536
12537 * commands/help.c (print_command_help): Use cmd->prio, not
12538 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
12539
12540 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12541
12542 Parttool
12543
12544 * parttool/pcpart.c: new file
12545 * commands/parttool.c: likewise
12546 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
12547 (parttool_mod_SOURCES): new variable
12548 (parttool_mod_CFLAGS): likewise
12549 (parttool_mod_LDFLAGS): likewise
12550 (pcpart_mod_SOURCES): likewise
12551 (pcpart_mod_CFLAGS): likewise
12552 (pcpart_mod_LDFLAGS): likewise
12553 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
12554 and parttool/pcpart.c
12555 * conf/i386-efi.rmk: likewise
12556 * conf/i386-ieee1275.rmk: likewise
12557 * conf/i386-pc.rmk: likewise
12558 * conf/powerpc-ieee1275.rmk: likewise
12559 * conf/sparc64-ieee1275.rmk: likewise
12560 * conf/x86_64-ieee1275.rmk: likewise
12561
12562 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12563
12564 Support for mtime and further expandability of dir command
12565
12566 * include/grub/lib/datetime.h: moved to ...
12567 * include/grub/datetime.h: ... moved here and added
12568 declaration of grub_unixtime2datetime. All users updated
12569 * include/grub/fs.h: new syntax for dir and mtime functions in
12570 struct grub_fs
12571 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
12572 and GRUB_FSHELP_FLAGS_MASK
12573 * commands/ls.c (grub_ls_list_files): Write mtime in long format
12574 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
12575 (grub_ext2_mtime): new function
12576 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
12577 (grub_hfsplus_mtime): new function
12578 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
12579 (GRUB_UFS_ATTR_FILE): likewise
12580 (GRUB_UFS_ATTR_LNK): likewise
12581 (struct grub_ufs_sblock): new fields mtime
12582 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
12583 all users updated
12584 (grub_ufs_dir): mtime support
12585 (grub_ufs_mtime): new function
12586 * fs/affs.c (grub_affs_dir): use new dir syntax
12587 * fs/afs.c (grub_afs_dir): likewise
12588 * fs/cpio.c (grub_cpio_dir): likewise
12589 * fs/fat.c (grub_fat_find_dir): likewise
12590 * fs/hfs.c (grub_hfs_dir): likewise
12591 * fs/iso9660.c (grub_iso9660_dir): likewise
12592 * fs/jfs.c (grub_jfs_dir): likewise
12593 * fs/minix.c (grub_minix_dir): likewise
12594 * fs/ntfs.c (grub_ntfs_dir): likewise
12595 * fs/reiserfs.c (grub_reiserfs_dir): likewise
12596 * fs/sfs.c (grub_sfs_dir): likewise
12597 * fs/xfs.c (grub_xfs_dir): likewise
12598 * util/hostfs.c (grub_hostfs_dir): likewise
12599 * lib/datetime.c: moved to ...
12600 * normal/datetime.c: ... moved here
12601 (grub_unixtime2datetime): new function
12602 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
12603 * normal/completion.c (iterate_dir): use new dir syntax
12604 * normal/misc.c (grub_normal_print_device_info): tell the
12605 last modification time of a volume
12606 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
12607 * conf/common.rmk: added lib/datetime.c to ls.mod
12608 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
12609 (normal_mod_SOURCES): likewise
12610 (datetime_mod_SOURCES): Removed lib/datetime.c
12611 * conf/i386-efi.rmk: likewise
12612 * conf/i386-ieee1275.rmk: likewise
12613 * conf/i386-pc.rmk: likewise
12614 * conf/powerpc-ieee1275.rmk: likewise
12615 * conf/sparc64-ieee1275.rmk: likewise
12616 * conf/x86_64-efi.rmk: likewise
12617
12618 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12619
12620 Trim trailing spaces in FAT label and support mtools-like labels
12621
12622 * fs/fat.c (grub_fat_iterate_dir): New function based
12623 on grub_fat_find_dir
12624 (grub_fat_find_dir): use grub_fat_iterate_dir
12625 (grub_fat_label): likewise
12626
12627 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
12628
12629 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
12630 and command.h
12631 remove extraneous kernel_elf_HEADERS
12632
12633 2009-04-04 Bean <bean123ch@gnail.com>
12634
12635 * include/grub/util/misc.h: Add dummy function fsync for mingw.
12636
12637 * util/misc.c: Likewise.
12638
12639 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
12640
12641 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
12642 instead of grub_printf.
12643
12644 2009-04-03 Robert Millan <rmh@aybabtu.com>
12645
12646 * loader/i386/linux.c (grub_linux_setup_video): Fill
12647 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
12648 values from `mode info' structure instead of hardcoded
12649 values.
12650
12651 2009-04-01 Pavel Roskin <proski@gnu.org>
12652
12653 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
12654 unused now.
12655 * genmk.rb: Likewise.
12656 * configure.ac: Likewise.
12657
12658 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
12659
12660 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
12661 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
12662
12663 2009-04-01 David S. Miller <davem@davemloft.net>
12664
12665 * normal/sparc64/setjmp.S: Fix setjmp implementation.
12666 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
12667 (grub_setjmp): Mark with 'returns_twice' attribute.
12668 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
12669 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
12670 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
12671
12672 2009-04-01 Robert Millan <rmh@aybabtu.com>
12673
12674 Reapply fix from 2008-07-28 which was accidentally reverted; also
12675 perform the same fix to a similar check in same function.
12676
12677 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
12678 with the same number are found, just use issue a warning with
12679 grub_dprintf(), as this error has been reported to be non-fatal.
12680
12681 2009-03-31 Pavel Roskin <proski@gnu.org>
12682
12683 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
12684 for cross-compilation.
12685
12686 2009-03-30 Robert Millan <rmh@aybabtu.com>
12687
12688 Fix i386-ieee1275 build.
12689
12690 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
12691 Remove declaration.
12692
12693 2009-03-30 Pavel Roskin <proski@gnu.org>
12694
12695 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
12696 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
12697 zero-terminated, rely only on the strlen value. Fix comparison
12698 of strings differing in length.
12699
12700 2009-03-30 Robert Millan <rmh@aybabtu.com>
12701
12702 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
12703 checking for abi version. Improve error messages on BIOS to notify
12704 user about `linux16' command.
12705
12706 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12707
12708 Leak fixes
12709
12710 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
12711 in case of collision
12712 * disk/scsi.c (grub_scsi_open): free scsi in case of error
12713
12714 2009-03-29 Robert Millan <rmh@aybabtu.com>
12715
12716 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
12717 set `vid_mode' accordingly.
12718 (grub_linux_boot): Process `vid_mode' and set video mode.
12719
12720 2009-03-29 Robert Millan <rmh@aybabtu.com>
12721
12722 * util/grub.d/10_linux.in (linux_entry): New function.
12723 Factorize generation of Linux boot entries.
12724
12725 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
12726
12727 Make the format of Environment Block plain text. The boot loader
12728 part is not tested well yet.
12729
12730 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
12731 (buffer): Removed.
12732 (envblk): Likewise.
12733 (usage): Remove "info" and "clear". Add "unset". Update the
12734 description of "set", as this does not delete variables any
12735 longer.
12736 (create_envblk_file): Complete rewrite.
12737 (open_envblk_file): Likewise.
12738 (cmd_info): Removed.
12739 (cmd_list): Likewise.
12740 (cmd_set): Likewise.
12741 (cmd_clear): Likewise.
12742 (list_variables): New function.
12743 (write_envblk): Likewise.
12744 (set_variables): Likewise.
12745 (unset_variables): Likewise.
12746 (main): Complete rewrite.
12747
12748 * commands/loadenv.c (buffer): Removed.
12749 (envblk): Likewise.
12750 (open_envblk_file): New function.
12751 (read_envblk_file): Complete rewrite.
12752 (grub_cmd_load_env): Likewise.
12753 (grub_cmd_list_env): Likewise.
12754 (struct blocklist): New struct.
12755 (free_blocklists): New function.
12756 (check_blocklists): Likewise.
12757 (write_blocklists): Likewise.
12758 (grub_cmd_save_env): Complete rewrite.
12759
12760 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
12761 a plain text signature.
12762 (GRUB_ENVBLK_MAXLEN): Removed.
12763 (struct grub_envblk): Complete rewrite.
12764 (grub_envblk_find): Removed.
12765 (grub_envblk_insert): Likewise.
12766 (grub_envblk_open): New prototype.
12767 (grub_envblk_set): Likewise.
12768 (grub_envblk_delete): Put const to VALUE.
12769 (grub_envblk_iterate): Put const to NAME and VALUE.
12770 (grub_envblk_close): New prototype.
12771 (grub_envblk_buffer): New inline function.
12772 (grub_envblk_size): Likewise.
12773
12774 * lib/envblk.c: Include grub/mm.h.
12775 (grub_env_find): Removed.
12776 (grub_envblk_open): New function.
12777 (grub_envblk_close): Likewise.
12778 (escaped_value_len): Likewise.
12779 (find_next_line): Likewise.
12780 (grub_envblk_insert): Removed.
12781 (grub_envblk_set): New function.
12782 (grub_envblk_delete): Complete rewrite.
12783 (grub_envblk_iterate): Likewise.
12784
12785 2009-03-28 Robert Millan <rmh@aybabtu.com>
12786
12787 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
12788 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
12789 variables. Use 16-bit loader.
12790 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
12791 loader.
12792 * kern/i386/loader.S (grub_linux_boot): Rename to ...
12793 (grub_linux16_boot): ... this. Update all users.
12794 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
12795 (grub_linux_boot): ... this. Update all users.
12796
12797 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
12798 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
12799 commands to `linux16' and `initrd16'.
12800 (GRUB_MOD_FINI(linux)): Rename to ...
12801 (GRUB_MOD_FINI(linux16)): ... this.
12802
12803 2009-03-24 Pavel Roskin <proski@gnu.org>
12804
12805 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
12806 not just for compilation.
12807
12808 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
12809
12810 Move multiboot helper out of kernel
12811
12812 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
12813 `loader/i386/multiboot_helper.S'.
12814 * conf/i386-coreboot.rmk: Likewise
12815 * conf/i386-ieee1275.rmk: Likewise
12816
12817 * kern/i386/loader.S: Move multiboot helpers from here...
12818 * loader/i386/multiboot_helper.S: ...moved here
12819 * include/grub/i386/loader.h: Move declarations of multiboot
12820 helpers from here...
12821 * include/grub/i386/multiboot.h: ...moved here
12822 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
12823
12824 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12825
12826 * kern/env.c (grub_env_context_open): Added an argument to specify
12827 whether a new context inherits exported variables from current
12828 one. This is useful when making a sandbox to interpret a config
12829 file.
12830 All callers updated.
12831
12832 * include/grub/env.h (grub_env_context_open): Updated the prototype.
12833
12834 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12835
12836 * kern/env.c (grub_env_context_close): Fix memory leaks.
12837
12838 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12839
12840 * normal/main.c (grub_normal_execute): Added an argument
12841 BATCH to specify if an interactive interface should be provided
12842 after reading a config file.
12843 All callers updated.
12844 (read_command_list): Prevent being executed twice.
12845 (read_fs_list): Likewise.
12846
12847 * include/grub/normal.h (grub_normal_execute): Updated the
12848 prototype.
12849
12850 2009-03-22 Pavel Roskin <proski@gno.org>
12851
12852 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
12853 _start.
12854 * kern/i386/pc/startup.S: Likewise.
12855 * kern/i386/efi/startup.S: Likewise.
12856 * kern/i386/ieee1275/startup.S: Likewise.
12857 * kern/i386/coreboot/startup.S: Likewise.
12858 * kern/x86_64/efi/startup.S: Likewise.
12859
12860 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
12861 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
12862 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
12863
12864 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
12865
12866 Bugfixes in multiboot for bugs uncovered by solaris kernel.
12867
12868 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
12869 limit detection.
12870 Use vaddr of correct segment for entry_point.
12871
12872 2009-03-21 Bean <bean123ch@gmail.com>
12873
12874 * commands/blocklist.c: Add include file <grub/command.h>, remove
12875 <grub/normal.h> and <grub/arg.h>.
12876 (grub_cmd_blocklist): Use the new command interface.
12877 (GRUB_MOD_INIT): Likewise.
12878 (GRUB_MOD_FINI): Likewise.
12879 * commands/boot.c: Likewise.
12880 * commands/cat.c: Likewise.
12881 * commands/cmp.c: Likewise.
12882 * commands/configfile.c: Likewise.
12883 * commands/crc.c: Likewise.
12884 * commands/echo.c: Likewise.
12885 * commands/halt.c: Likewise.
12886 * commands/handler.c: Likewise.
12887 * commands/hdparm.c: Likewise.
12888 * commands/help.c: Likewise.
12889 * commands/hexdump.c: Likewise.
12890 * commands/loadenv.c: Likewise.
12891 * commands/ls.c: Likewise.
12892 * commands/lsmmap.c: Likewise.
12893 * commands/lspci.c: Likewise.
12894 * commands/loadenv.c: Likewise.
12895 * commands/read.c: Likewise.
12896 * commands/reboot.c: Likewise.
12897 * commands/search.c: Likewise.
12898 * commands/sleep.c: Likewise.
12899 * commands/test.c: Likewise.
12900 * commands/usbtest.c: Likewise.
12901 * commands/videotest.c: Likewise.
12902 * commands/i386/cpuid.c: Likewise.
12903 * commands/i386/pc/halt.c: Likewise.
12904 * commands/i386/pc/play.c: Likewise.
12905 * commands/i386/pc/pxecmd.c: Likewise.
12906 * commands/i386/pc/vbeinfo.c: Likewise.
12907 * commands/i386/pc/vbetest.c: Likewise.
12908 * commands/ieee1275/suspend.c: Likewise.
12909 * disk/loopback.c: Likewise.
12910 * font/font_cmd.c: Likewise.
12911 * hello/hello.c: Likewise.
12912 * loader/efi/appleloader.c: Likewise.
12913 * loader/efi/chainloader.c: Likewise.
12914 * loader/i386/bsd.c: Likewise.
12915 * loader/i386/efi/linux.c: Likewise.
12916 * loader/i386/ieee1275/linux.c: Likewise.
12917 * loader/i386/linux.c: Likewise.
12918 * loader/i386/pc/chainloader.c: Likewise.
12919 * loader/i386/pc/linux.c: Likewise.
12920 * loader/powerpc/ieee1275/linux.c: Likewise.
12921 * loader/multiboot_loader.c: Likewise.
12922 * term/gfxterm.c: Likewise.
12923 * term/i386/pc/serial.c: Likewise.
12924 * term/terminfo.c: Likewise.
12925
12926 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
12927 * term/i386/pc/vga.c: Likewise.
12928 * video/readers/jpeg.c: Likewise.
12929 * video/readers/png.c: Likewise.
12930 * video/readers/tga.c: Likewise.
12931
12932 * util/grub-fstest (cmd_loopback): Removed.
12933 (cmd_blocklist): Likewise.
12934 (cmd_ls): Likewise.
12935 (grub_register_command): Likewise.
12936 (grub_unregister_command): Likewise.
12937 (execute_command): Use grub_command_find to locate command and execute
12938 it.
12939
12940 * include/grub/efi/chainloader.h: Removed.
12941 * loader/efi/chainloader_normal.c: Likewise.
12942 * loader/i386/bsd_normal.c: Likewise.
12943 * loader/i386/pc/chainloader_normal.c: Likewise.
12944 * loader/i386/pc/multiboot_normal.c: Likewise.
12945 * loader/linux_normal.c: Likewise.
12946 * loader/multiboot_loader_normal.c: Likewise.
12947 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
12948
12949 * gencmdlist.sh: Scan new registration command grub_register_extcmd
12950 and grub_register_command_p1.
12951
12952 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
12953 kern/command.c, lib/arg.c and commands/extcmd.c.
12954 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
12955 (minicmd_mod_SOURCES): New variable.
12956 (minicmd_mod_CFLAGS): Likewise.
12957 (minicmd_mod_LDFLAGS): Likewise.
12958 (extcmd_mod_SOURCES): Likewise.
12959 (extcmd_mod_CFLAGS): Likewise.
12960 (extcmd_mod_LDFLAGS): Likewise.
12961 (boot_mod_SOURCES): Removed.
12962 (boot_mod_CFLAGS): Likewise.
12963 (boot_mod_LDFLAGS): Likewise.
12964
12965 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
12966 kern/corecmd.c.
12967 (kernel_img_HEADERS): Add command.h.
12968 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
12969 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
12970 and lib/arg.c.
12971 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
12972 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
12973 remove the corresponding normal mode command.
12974 (normal_mod_SOURCES): Remove normal/arg.c.
12975 * conf/i386-coreboot.rmk: Likewise.
12976 * conf/i386-efi.rmk: Likewise.
12977 * conf/i386-ieee1275.rmk: Likewise.
12978 * conf/powerpc-ieee1275.rmk: Likewise.
12979 * conf/x86_64-efi.rmk: Likewise.
12980
12981 * include/grub/arg.h: Move from here ...
12982 * include/grub/lib/arg.h: ... to here.
12983
12984 * normal/arg.c: Move from here ...
12985 * lib/arg.c: ... to here.
12986
12987 * commands/extcmd.c: New file.
12988 * commands/minicmd.c: Likewise.
12989 * include/grub/command.h: Likewise.
12990 * include/grub/extcmd.h: Likewise.
12991 * kern/command.c: Likewise.
12992 * kern/corecmd.c: Likewise.
12993
12994 * kern/list.c (grub_list_iterate): Return int instead of void.
12995 (grub_list_insert): New function.
12996 (grub_prio_list_insert): Likewise.
12997
12998 * kern/rescue.c (grub_rescue_command): Removed.
12999 (grub_rescue_command_list): Likewise.
13000 (grub_rescue_register_command): Likewise.
13001 (grub_rescue_unregister_command): Likewise.
13002 (grub_rescue_cmd_boot): Move to minicmd.c
13003 (grub_rescue_cmd_help): Likewise.
13004 (grub_rescue_cmd_info): Likewise.
13005 (grub_rescue_cmd_boot): Likewise.
13006 (grub_rescue_cmd_testload): Likewise.
13007 (grub_rescue_cmd_dump): Likewise.
13008 (grub_rescue_cmd_rmmod): Likewise.
13009 (grub_rescue_cmd_lsmod): Likewise.
13010 (grub_rescue_cmd_exit): Likewise.
13011 (grub_rescue_print_devices): Moved to corecmd.c.
13012 (grub_rescue_print_files): Likewise.
13013 (grub_rescue_cmd_ls): Likewise.
13014 (grub_rescue_cmd_insmod): Likewise.
13015 (grub_rescue_cmd_set): Likewise.
13016 (grub_rescue_cmd_unset): Likewise.
13017 (attempt_normal_mode): Use grub_command_find to get normal module.
13018 (grub_enter_rescue_mode): Use grub_register_core_commands to register
13019 commands, remove grub_rescue_register_command calls.
13020
13021 * normal/command.c (grub_register_command): Removed.
13022 (grub_unregister_command): Likewise.
13023 (grub_command_find): Likewise.
13024 (grub_iterate_commands): Likewise.
13025 (rescue_command): Likewise.
13026 (export_command): Moved to corecmd.c.
13027 (set_command): Removed.
13028 (unset_command): Likewise.
13029 (insmod_command): Likewise.
13030 (rmmod_command): Likewise.
13031 (lsmod_command): Likewise.
13032 (grub_command_init): Likewise.
13033
13034 * normal/completion.c (iterate_command): Use cmd->prio to check for
13035 active command.
13036 (complete_arguments): Use grub_extcmd_t structure to find options.
13037 (grub_normal_do_completion): Change function grub_iterate_commands to
13038 grub_command_iterate.
13039
13040 * normal/execute.c (grub_script_execute_cmd): No need to parse
13041 argument here.
13042
13043 * normal/main.c (grub_dyncmd_dispatcher): New function.
13044 (read_command_list): Register unload commands as dyncmd.
13045 (grub_cmd_normal): Use new command interface, register rescue,
13046 unregister normal at entry, register normal, unregister rescue at exit.
13047
13048 * include/grub/list.h (grub_list_test_t): New type.
13049 (grub_list_iterate): Return int instead of void.
13050 (grub_list_insert): New function.
13051 (GRUB_AS_NAMED_LIST_P): New macro.
13052 (GRUB_AS_PRIO_LIST): Likewise.
13053 (GRUB_AS_PRIO_LIST_P): Likewise.
13054 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
13055 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
13056 (grub_prio_list): New structure.
13057 (grub_prio_list_insert): New function.
13058 (grub_prio_list_remove): New inline function.
13059
13060 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
13061 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
13062 (GRUB_COMMAND_FLAG_MENU): Likewise.
13063 (GRUB_COMMAND_FLAG_BOTH): Likewise.
13064 (GRUB_COMMAND_FLAG_TITLE): Likewise.
13065 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
13066 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
13067 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
13068 (grub_command): Likewise.
13069 (grub_register_command): Likewise.
13070 (grub_command_find): Likewise.
13071 (grub_iterate_commands): Likewise.
13072 (grub_command_init): Likewise.
13073 (grub_arg_parse): Likewise.
13074 (grub_arg_show_help): Likewise.
13075
13076 * include/grub/rescue.h (grub_rescue_register_command): Removed.
13077 (grub_rescue_unregister_command): Likewise.
13078
13079 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
13080 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
13081 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
13082
13083 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
13084 grub_rescue_cmd_initrd.
13085 * include/grub/i386/loader.h: Likewise.
13086 * include/grub/x86_64/loader.h: Likewise.
13087
13088 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
13089
13090 2009-03-21 Bean <bean123ch@gmail.com>
13091
13092 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
13093 instead of stat in mingw environment.
13094
13095 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
13096
13097 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
13098
13099 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
13100 AC_CONFIG_LINKS.
13101
13102 2009-03-21 Bean <bean123ch@gmail.com>
13103
13104 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
13105 out of range error.
13106
13107 2009-03-18 Michel Dänzer <michel@daenzer.net>
13108
13109 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
13110 checking inode flags for EXT4_EXTENTS_FLAG.
13111
13112 2009-03-18 Robert Millan <rmh@aybabtu.com>
13113
13114 * loader/i386/linux.c: Include `<grub/video.h>' and
13115 `<grub/i386/pc/vbe.h>'..
13116 (grub_linux_setup_video): New function. Loosely based on the EFI one.
13117 (grub_linux32_boot): Attempt to configure video settings with
13118 grub_linux_setup_video().
13119 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
13120 to avoid grub_console_fini() which would step out of graphical mode
13121 unconditionally.
13122
13123 2009-03-14 Robert Millan <rmh@aybabtu.com>
13124
13125 Fix build on powerpc.
13126 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
13127
13128 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
13129
13130 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
13131 background image command.
13132
13133 2009-03-12 Colin D Bennett <colin@gibibit.com>
13134
13135 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
13136 (grub_gfxterm_putchar): Extract pairs of identical calls to
13137 draw_cursor out of conditional blocks.
13138
13139 2009-03-11 Pavel Roskin <proski@gnu.org>
13140
13141 * fs/hfs.c (grub_hfs_strncasecmp): New function.
13142 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
13143
13144 2009-03-11 Robert Millan <rmh@aybabtu.com>
13145
13146 * loader/i386/multiboot_elfxx.c
13147 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
13148
13149 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
13150
13151 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
13152 `kern/handler.c'.
13153
13154 2009-03-11 Robert Millan <rmh@aybabtu.com>
13155
13156 * loader/i386/multiboot.c (code_size): New variable.
13157 (grub_multiboot): Define offsets by adding to `code_size' rather
13158 than subtracting from `grub_multiboot_payload_size'. Provide
13159 4-byte alignment to MBI and others by increasing
13160 `boot_loader_name_length' appropriately.
13161
13162 * loader/i386/multiboot_elfxx.c
13163 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
13164
13165 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
13166
13167 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
13168 `fs/ext2.c'.
13169
13170 2009-03-08 Robert Millan <rmh@aybabtu.com>
13171
13172 Make loader/i386/linux.c usable on i386-pc again.
13173
13174 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
13175 memory to heap.
13176 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
13177 `#error' stanza.
13178
13179 2009-03-07 Bean <bean123ch@gmail.com>
13180
13181 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
13182 allocation.
13183
13184 2009-03-06 Robert Millan <rmh@aybabtu.com>
13185
13186 Fix display issue on terminals with screen size other than 80x25
13187 (e.g. gfxterm with resolution higher than 640x480).
13188
13189 * normal/main.c (grub_normal_init_page): Display title text in a
13190 position relative to the center of the terminal instead of relying
13191 on a hardcoded offset.
13192
13193 2009-03-04 Robert Millan <rmh@aybabtu.com>
13194
13195 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
13196 installed.
13197
13198 * Makefile.in (host_kernel): New variable.
13199 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
13200 scripts instead of just the windows one.
13201 * configure.ac: Initialize and AC_SUBST `host_kernel'.
13202
13203 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13204
13205 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
13206 `kern/handler.c'.
13207 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13208 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13209 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13210 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13211 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13212 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13213
13214 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13215
13216 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
13217 or if there's no space for the disk label and print the partition number on a
13218 invalid magic.
13219
13220 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13221
13222 * util/misc.c: Include <time.h>.
13223 (grub_millisleep): New function.
13224
13225 2009-03-04 Bean <bean123ch@gmail.com>
13226
13227 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
13228 another option -mno-red-zone.
13229
13230 * commands/handler.c: Change module description.
13231
13232 * kern/handler.c: Add missing space at the end of description line.
13233
13234 * kern/list.c: Likewise.
13235
13236 2009-03-03 Robert Millan <rmh@aybabtu.com>
13237
13238 Move more components to the relocation area, and fix mbi pointer
13239 handling to use the destination rather than the origin (thanks to
13240 Vladimir Serbinenko for spotting).
13241
13242 * loader/i386/multiboot.c (mbi_dest): New variable.
13243 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
13244 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
13245 relocation area.
13246
13247 2009-03-01 Bean <bean123ch@gmail.com>
13248
13249 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
13250 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
13251 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
13252 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
13253
13254 * loader/i386/efi/linux.c (acpi_guid): New variable.
13255 (acpi_guid): Likewise.
13256 (EBDA_SEG_ADDR): New constant.
13257 (LOW_MEM_ADDR): Likewise.
13258 (FAKE_EBDA_SEG): Likewise.
13259 (fake_bios_data): New function.
13260 (grub_linux_boot): Call fake_bios_data.
13261
13262 2009-03-01 Bean <bean123ch@gmail.com>
13263
13264 * commands/terminal.c: Removed.
13265
13266 * commands/handler.c: New file.
13267
13268 * include/grub/list.h: Likewise.
13269
13270 * include/grub/handler.h: Likewise.
13271
13272 * kern/list.c: Likewise.
13273
13274 * kern/handler.c: Likewise.
13275
13276 * kern/term.h: Include header file <grub/handler.h>.
13277 (grub_term_input): Move next field to the beginning.
13278 (grub_term_output): Likewise.
13279 (grub_term_input_class): New variable.
13280 (grub_term_output_class): Likewise.
13281 (grub_term_register_input): Changed to inline function.
13282 (grub_term_register_output): Likewise.
13283 (grub_term_unregister_input): Likewise.
13284 (grub_term_unregister_output): Likewise.
13285 (grub_term_set_current_input): Likewise.
13286 (grub_term_set_current_output): Likewise.
13287 (grub_term_get_current_input): Likewise.
13288 (grub_term_get_current_output): Likewise.
13289 (grub_term_iterate_input): Removed.
13290 (grub_term_iterate_output): Likewise.
13291
13292 * kern/term.c (grub_term_list_input): Removed.
13293 (grub_term_list_output): Likewise.
13294 (grub_term_input_class): New variable.
13295 (grub_term_output_class): Likewise.
13296 (grub_cur_term_input): Change variable as macro.
13297 (grub_cur_term_output): Likewise.
13298 (grub_term_register_input): Removed.
13299 (grub_term_register_output): Likewise.
13300 (grub_term_unregister_input): Likewise.
13301 (grub_term_unregister_output): Likewise.
13302 (grub_term_set_current_input): Likewise.
13303 (grub_term_set_current_output): Likewise.
13304 (grub_term_iterate_input): Likewise.
13305 (grub_term_iterate_output): Likewise.
13306 (grub_term_get_current_input): Likewise.
13307 (grub_term_get_current_output): Likewise.
13308
13309 * util/grub-editenv.c: Include header file <grub/handler.h>.
13310 (grub_term_get_current_input): Removed.
13311 (grub_term_get_current_output): Likewise.
13312 (grub_term_input_class): New variable.
13313 (grub_term_output_class): Likewise.
13314
13315 * util/grub-fstest.c (grub_term_get_current_input): Removed.
13316 (grub_term_get_current_output): Likewise.
13317 (grub_term_input_class): New variable.
13318 (grub_term_output_class): Likewise.
13319
13320 * util/grub-probe.c (grub_term_get_current_input): Removed.
13321 (grub_term_get_current_output): Likewise.
13322 (grub_term_input_class): New variable.
13323 (grub_term_output_class): Likewise.
13324
13325 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
13326 (grub_term_get_current_output): Likewise.
13327 (grub_term_input_class): New variable.
13328 (grub_term_output_class): Likewise.
13329
13330 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
13331 (terminal_mod_SOURCES): Likewise.
13332 (terminal_mod_CFLAGS): Likewise.
13333 (terminal_mod_LDFLAGS): Likewise.
13334
13335 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
13336 handler.c.
13337 (kernel_img_SOURCES): Add list.c and handler.c.
13338 (kernel_img_HEADERS): Add list.h and handler.h.
13339
13340 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13341 handler.c.
13342 (kernel_mod_SOURCES): Add list.c and handler.c.
13343 (kernel_mod_HEADERS): Add list.h and handler.h.
13344
13345 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
13346 handler.c.
13347 (kernel_elf_SOURCES): Add list.c and handler.c.
13348 (kernel_elf_HEADERS): Add list.h and handler.h.
13349
13350 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13351 handler.c.
13352 (kernel_elf_SOURCES): Add list.c and handler.c.
13353 (kernel_elf_HEADERS): Add list.h and handler.h.
13354
13355 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13356 handler.c.
13357 (kernel_mod_SOURCES): Add list.c and handler.c.
13358 (kernel_mod_HEADERS): Add list.h and handler.h.
13359
13360 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13361 handler.c.
13362 (kernel_elf_SOURCES): Add list.c and handler.c.
13363 (kernel_elf_HEADERS): Add list.h and handler.h.
13364
13365 2009-02-27 Robert Millan <rmh@aybabtu.com>
13366
13367 Factorize elf32 / elf64 code in Multiboot loader. This will
13368 prevent it from getting out of sync again.
13369
13370 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
13371 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
13372 grub_multiboot_load_elf64): Move from here ...
13373 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
13374 grub_multiboot_load_elf): ... to here (new file).
13375
13376 2009-02-27 Robert Millan <rmh@aybabtu.com>
13377
13378 * util/grub.d/10_linux.in: Rename "single-user mode" to
13379 "recovery mode".
13380
13381 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
13382
13383 Don't leak in SCSI code.
13384 * disk/scsi.c (grub_scsi_close): free `scsi'.
13385
13386 2009-02-27 Robert Millan <rmh@aybabtu.com>
13387
13388 * loader/i386/pc/multiboot.c: Move from here ...
13389 * loader/i386/multiboot.c: ... to here. Update all users.
13390
13391 2009-02-27 Robert Millan <rmh@aybabtu.com>
13392
13393 Patch from Alexandre Bique <bique.alexandre@gmail.com>
13394 * util/i386/pc/grub-setup.c (setup): Fix directory path.
13395
13396 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
13397
13398 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
13399 b-tree.
13400
13401 2009-02-27 Robert Millan <rmh@aybabtu.com>
13402
13403 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
13404 `0x' qualifier as 0 when base is specified as parameter).
13405
13406 2009-02-24 Bean <bean123ch@gmail.com>
13407
13408 * configure.ac: Check for -mcmodel=large in x86_64 target.
13409
13410 * include/grub/efi/api.h (efi_call_10): New macro.
13411 (efi_wrap_10): New function.
13412
13413 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
13414 (GRUB_PE32_REL_BASED_HIGH): Likewise.
13415 (GRUB_PE32_REL_BASED_LOW): Likewise.
13416 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
13417 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
13418 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
13419 (GRUB_PE32_REL_BASED_SECTION): Likewise.
13420 (GRUB_PE32_REL_BASED_REL): Likewise.
13421 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
13422 (GRUB_PE32_REL_BASED_DIR64): Likewise.
13423 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
13424
13425 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
13426 issue.
13427
13428 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
13429 (efi_wrap_10): New function.
13430
13431 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
13432
13433 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
13434 MB/MBP model (NV chipset).
13435 (devdata_devs): Add devpath_5 to the list.
13436
13437 * load/i386/efi/linux.c (video_base): Remove variable.
13438 (RGB_MASK): New macro.
13439 (RGB_MAGIC): Likewise.
13440 (LINE_MIN): Likewise.
13441 (LINE_MAX): Likewise.
13442 (FBTEST_STEP): Likewise.
13443 (FBTEST_COUNT): Likewise.
13444 (fb_list): New variable.
13445 (grub_find_video_card): Remove function.
13446 (find_framebuf): New function.
13447 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
13448 line length.
13449
13450 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
13451 problem for x86_64.
13452
13453 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
13454
13455 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
13456
13457 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
13458 coding tool name.
13459
13460 2009-02-22 Robert Millan <rmh@aybabtu.com>
13461
13462 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
13463 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
13464 in our relocation, instead of using it directly from heap. Also
13465 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
13466
13467 2009-02-21 Robert Millan <rmh@aybabtu.com>
13468
13469 Implement USB keyboard support (based on patch by Marco Gerards)
13470
13471 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
13472 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
13473 (usb_keyboard_mod_LDFLAGS): New variables.
13474
13475 * term/usb_keyboard.c: New file.
13476
13477 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13478
13479 Corrected wrong declaration
13480
13481 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
13482
13483 2009-02-14 Christian Franke <franke@computer.org>
13484
13485 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
13486 (grub_lspci_iter): Print class code and programming interface byte.
13487
13488 2009-02-14 Christian Franke <franke@computer.org>
13489
13490 * gendistlist.sh: Ignore `.svn' directories.
13491
13492 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
13493
13494 * fs/fat.c: Add 2009 to Copyright line.
13495
13496 2009-02-14 Christian Franke <franke@computer.org>
13497
13498 * commands/hdparm.c: New file. Provides `hdparm' command
13499 which sends ATA commands via grub_disk_ata_pass_through ().
13500
13501 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
13502
13503 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
13504 and <grub/cpu/io.h> to include/grub/ata.h.
13505 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
13506 (GRUB_CDROM_SECTOR_SIZE): Remove.
13507 (GRUB_ATA_*): Move to include/grub/ata.h.
13508 (GRUB_ATAPI_*): Likewise.
13509 (enum grub_ata_commands): Likewise.
13510 (enum grub_ata_timeout_milliseconds): Likewise.
13511 (struct grub_ata_device): Likewise.
13512 (grub_ata_regset): Likewise.
13513 (grub_ata_regget): Likewise.
13514 (grub_ata_regset2): Likewise.
13515 (grub_ata_regget2): Likewise.
13516 (grub_ata_check_ready): Likewise.
13517 (grub_ata_wait_not_busy): Remove static, exported in
13518 include/grub/ata.h.
13519 (grub_ata_wait_drq): Likewise.
13520 (grub_ata_pio_read): Likewise.
13521
13522 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
13523 function for hdparm.mod.
13524
13525 * include/grub/ata.h: New file, contains declarations from
13526 disk/ata.c.
13527 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
13528
13529 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
13530 (grub_disk_ata_pass_through): New exported variable.
13531
13532 * kern/disk.c (grub_disk_ata_pass_through): New variable.
13533
13534 2009-02-13 Colin D Bennett <colin@gibibit.com>
13535
13536 Support multiple fallback entries, and provide an API to support
13537 executing default+fallback menu entries. Renamed the `terminal' menu
13538 viewer to `text'.
13539
13540 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
13541 variable declaration.
13542 (grub_menu_execute_callback): New structure declaration.
13543 (grub_menu_execute_callback_t): New typedef.
13544 (grub_menu_execute_with_fallback): New function declaration.
13545 (grub_menu_get_entry): Likewise.
13546 (grub_menu_get_timeout): Likewise.
13547 (grub_menu_set_timeout): Likewise.
13548
13549 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
13550
13551 * normal/menu.c (grub_wait_after_message): Moved to
13552 `normal/menu_text.c'.
13553 (draw_border): Likewise.
13554 (print_message): Likewise.
13555 (print_entry): Likewise.
13556 (print_entries): Likewise.
13557 (grub_menu_init_page): Likewise.
13558 (get_entry_number): Likewise.
13559 (print_timeout): Likewise.
13560 (run_menu): Likewise.
13561 (grub_menu_execute_entry): Likewise.
13562 (show_text_menu): Likewise.
13563 (get_and_remove_first_entry_number): New function.
13564 (grub_menu_execute_with_fallback): Likewise.
13565 (get_entry): Renamed to ...
13566 (grub_menu_get_entry): .. this and made it global.
13567 (get_timeout): Renamed to ...
13568 (grub_menu_get_timeout): ... this and made it global.
13569 (set_timeout): Renamed to ...
13570 (grub_menu_set_timeout): ... this and made it global.
13571 (grub_normal_terminal_menu_viewer): Renamed to ...
13572 (grub_normal_text_menu_viewer): ... this.
13573
13574 * normal/menu_text.c: New file. Extracted text-menu-specific code
13575 from normal/menu.c.
13576
13577 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
13578 (normal_mod_SOURCES): Likewise.
13579
13580 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13581 (normal_mod_SOURCES): Likewise.
13582
13583 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13584 (normal_mod_SOURCES): Likewise.
13585
13586 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
13587 (normal_mod_SOURCES): Likewise.
13588
13589 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13590 (normal_mod_SOURCES): Likewise.
13591
13592 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13593 (normal_mod_SOURCES): Likewise.
13594
13595 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13596 (normal_mod_SOURCES): Likewise.
13597
13598 2009-02-11 Robert Millan <rmh@aybabtu.com>
13599
13600 * util/grub.d/00_header.in: Update old reference to `font' command.
13601
13602 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
13603
13604 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
13605
13606 Based on patch from Javier Martín.
13607
13608 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
13609
13610 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
13611 to avoid false positives with FAT.
13612 (grub_fstest_SOURCES): Likewise.
13613 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13614 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13615 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13616 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13617 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13618 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13619
13620 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
13621
13622 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
13623 bpb.version_specific.fat12_or_fat16.fstype and
13624 bpb.version_specific.fat32.fstype.
13625
13626 2009-02-08 Robert Millan <rmh@aybabtu.com>
13627
13628 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
13629
13630 2009-02-08 Robert Millan <rmh@aybabtu.com>
13631
13632 * Makefile.in (host_os, host_cpu): New variables.
13633 (target_os): Remove. Update all users.
13634
13635 2009-02-08 Marco Gerards <marco@gnu.org>
13636
13637 * Makefile.in (enable_grub_emu_usb): New variable.
13638 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
13639 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
13640 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
13641 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
13642 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
13643 `usbtest.mod' and `usbms.mod'.
13644 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
13645 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
13646 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
13647 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
13648 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
13649 variables.
13650
13651 * disk/usbms.c: New file.
13652
13653 * include/grub/usb.h: Likewise.
13654
13655 * include/grub/usbtrans.h: Likewise.
13656
13657 * include/grub/usbdesc.h: Likewise.
13658
13659 * bus/usb/usbtrans.c: Likewise.
13660
13661 * bus/usb/ohci.c: Likewise.
13662
13663 * bus/usb/uhci.c: Likewise.
13664
13665 * bus/usb/usbhub.c: Likewise.
13666
13667 * bus/usb/usb.c: Likewise.
13668
13669 * commands/usbtest.c: Likewise.
13670
13671 * util/usb.c: Likewise.
13672
13673 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
13674
13675 * configure.ac: Test for libusb presence.
13676
13677 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
13678
13679 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
13680
13681 * kern/mm.c: Add more comments.
13682
13683 2009-02-08 Robert Millan <rmh@aybabtu.com>
13684
13685 Patch from Javier Martín.
13686 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
13687 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
13688
13689 2009-02-08 Robert Millan <rmh@aybabtu.com>
13690
13691 * fs/cpio.c: Split tar functionality to ...
13692 * fs/tar.c: ... here (new file). Update all users.
13693
13694 2009-02-07 Robert Millan <rmh@aybabtu.com>
13695
13696 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
13697 backward-incompatible features.
13698
13699 Based on patch from Javier Martín, with some adjustments.
13700
13701 2009-02-07 Michael Scherer <misc@mandriva.org>
13702
13703 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
13704
13705 2009-02-07 Robert Millan <rmh@aybabtu.com>
13706
13707 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
13708 position of `disk/lvm.c' to ensure grub_init_all() always picks it
13709 after the RAID stuff.
13710
13711 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
13712
13713 Fixes problem when running vbetest command as reported by
13714 Vladimir Serbinenko <phcoder@gmail.com>.
13715
13716 * (grub_vbe_set_video_mode): Fixed problem with text modes.
13717
13718 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
13719
13720 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
13721 /dev/md/NpN style mdraid devices.
13722
13723 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13724
13725 * util/unifont2pff.rb: Remove.
13726
13727 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13728
13729 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
13730 `#'.
13731
13732 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13733
13734 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
13735 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13736 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13737 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13738 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13739 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13740 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13741
13742 2009-02-02 Christian Franke <franke@computer.org>
13743
13744 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
13745
13746 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
13747
13748 * INSTALL: Note that we now require at least autoconf 2.59 and
13749 that LZO is optional.
13750
13751 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
13752
13753 Base on patch on bug #24154 created by Tomas Tintera
13754 <trosos@seznam.cz>.
13755
13756 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
13757
13758 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
13759
13760 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
13761 <bero@arklinux.org>.
13762
13763 * normal/parser.y (script_init): Add missing semicolon.
13764
13765 2009-01-31 Colin D Bennett <colin@gibibit.com>
13766
13767 * normal/main.c: Add include to grub/menu_viewer.h.
13768 (free_menu_entry_classes): Added.
13769 (grub_normal_menu_addentry): Added class property handling.
13770 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
13771 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
13772
13773 * normal/menu_viewer.c: New file.
13774
13775 * normal/menu.c (run_menu_entry): Renamed to ...
13776 (grub_menu_execute_entry): ... this and made it as global.
13777 (grub_menu_run): Renamed to ...
13778 (show_text_menu): ... this and made it local.
13779 (show_text_menu): Adapt to new function names.
13780 (grub_normal_terminal_menu_viewer): New global variable.
13781
13782 * include/grub/menu.h: New file.
13783
13784 * include/grub/menu_viewer.h: New file.
13785
13786 * include/grub/normal.h: Added include to grub/menu.h.
13787 (grub_menu_entry): Moved to include/grub/menu.h.
13788 (grub_menu_entry_t): Likewise.
13789 (grub_menu): Likewise.
13790 (grub_menu_t): Likewise.
13791 (grub_normal_terminal_menu_viewer): Added.
13792 (grub_menu_execute_entry): Likewise.
13793 (grub_menu_run): Removed.
13794
13795 * DISTLIST: Added include/grub/menu.h.
13796 Added include/grub/menu_viewer.h.
13797 Added normal/menu_viewer.c.
13798
13799 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
13800
13801 * normal/execute.c (grub_script_execute_menuentry): Changed to use
13802 arglist for menutitle arguments.
13803
13804 * normal/main.c (grub_normal_menu_addentry): Likewise.
13805
13806 * normal/parser.y (menuentry): Likewise.
13807
13808 * normal/script.c (grub_script_create_cmdmenu): Likewise.
13809
13810 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
13811 (grub_script_create_cmdmenu): Likewise.
13812
13813 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
13814
13815 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
13816 changes.
13817
13818 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
13819
13820 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
13821
13822 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
13823
13824 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13825
13826 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13827
13828 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13829
13830 2009-01-30 Christian Franke <franke@computer.org>
13831
13832 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
13833 in option help text.
13834
13835 2009-01-27 Pavel Roskin <proski@gnu.org>
13836
13837 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
13838
13839 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
13840
13841 * commands/lsmmap.c: Add include to grub/machine/memory.h.
13842
13843 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
13844
13845 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
13846 unregister function.
13847
13848 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
13849
13850 * disk/scsi.c (grub_scsi_read): Fix sign problem.
13851
13852 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
13853
13854 * util/grub-mkfont.c (usage): Fix typo.
13855
13856 * util/elf/grub-mkimage.c (load_modules): Fix warning.
13857
13858 2009-01-26 Daniel Mierswa <impulze@impulze.org>
13859
13860 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
13861
13862 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
13863
13864 * kern/misc.c (grub_strcasecmp): New function.
13865 (grub_strcasecmp): Use grub_size_t instead of int for length.
13866 Fix return value.
13867 * include/grub/misc.h: Update function prototypes.
13868
13869 2009-01-26 Robert Millan <rmh@aybabtu.com>
13870
13871 * configure.ac: Fix cross-compilation check.
13872
13873 2009-01-22 Christian Franke <franke@computer.org>
13874
13875 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
13876 (precision) digit string. Allow `.format2' without `format1' (width).
13877 Limit input chars for `%s' output to `format2' if specified. This is
13878 compatible with standard printf ().
13879
13880 2009-01-22 Christian Franke <franke@computer.org>
13881
13882 * disk/ata.c (grub_ata_wait_status): Replace by ...
13883 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
13884 other status bits may be invalid while BSY is asserted.
13885 (grub_ata_check_ready): New function.
13886 (grub_ata_cmd): Removed.
13887 (grub_ata_wait_drq): New function.
13888 (grub_ata_strncpy): Remove inline.
13889 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
13890 and error check now done by grub_ata_wait_drq ().
13891 (grub_ata_pio_write): Likewise.
13892 (grub_atapi_identify): Set DEV before check for !BSY. Use
13893 grub_ata_wait_drq () to wait for data.
13894 (grub_ata_device_initialize): Add status register check to
13895 detect missing SATA slave devices. Add debug messages.
13896 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
13897 (grub_atapi_packet): Set DEV before check for !BSY. Replace
13898 transfer loop by grub_ata_pio_write ().
13899 (grub_ata_identify): Set DEV before check for !BSY. Use
13900 grub_ata_wait_drq () to wait for data.
13901 (grub_ata_setaddress): Set DEV before check for !BSY.
13902 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
13903 read/write in one loop. Fix invalid command on write. Fix incomplete
13904 command on (size % batch) == 0. Add missing error check after write of
13905 last block. Add debug messages.
13906 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
13907
13908 2009-01-19 Christian Franke <franke@computer.org>
13909
13910 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
13911 (GRUB_ATAPI_IREASON_*): Likewise.
13912 (grub_ata_pio_write): Fix timeout error return.
13913 (grub_atapi_identify): Add grub_ata_wait () after cmd.
13914 (grub_atapi_wait_drq): New function.
13915 (grub_atapi_packet): New parameter `size'.
13916 Use grub_atapi_wait_drq () and direct write instead of
13917 grub_ata_pio_write ().
13918 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
13919 reads the number of bytes requested by the device for each DRQ
13920 assertion.
13921 (grub_atapi_write): Remove old implementation, return not
13922 implemented instead.
13923
13924 2009-01-19 Christian Franke <franke@computer.org>
13925
13926 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
13927 of 512 to calculate data size.
13928 (grub_scsi_read12): Likewise.
13929 (grub_scsi_write10): Likewise.
13930 (grub_scsi_write12): Likewise.
13931 (grub_scsi_read): Adjust size according to blocksize.
13932 Add checks for invalid blocksize and unaligned transfer.
13933
13934 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
13935
13936 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
13937
13938 * term/gfxterm.c (write_char): Fix background rendering for wide
13939 width glyphs.
13940
13941 2009-01-19 Robert Millan <rmh@aybabtu.com>
13942
13943 * config.guess: Update to latest version from config git.
13944 * config.sub: Likewise.
13945
13946 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
13947
13948 * Makefile.in: Change font compilation to use new grub-mkfont instead
13949 of java version.
13950
13951 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
13952 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
13953 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
13954 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
13955 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
13956 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
13957 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
13958 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
13959 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
13960
13961 2009-01-16 Christian Franke <franke@computer.org>
13962
13963 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
13964 (enum grub_ata_timeout_milliseconds): New enum.
13965 (grub_ata_wait_status): Add parameter milliseconds.
13966 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
13967 recovery from timed-out commands.
13968 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
13969 return grub_errno instead of REG_ERROR.
13970 (grub_ata_pio_write): Add parameter milliseconds.
13971 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
13972 Pass milliseconds to grub_ata_wait_status () and
13973 grub_ata_pio_read ().
13974 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
13975 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
13976 grub_ata_wait_status (). Fix IDENTIFY timeout check.
13977 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
13978 It is not suitable for device detection, because DEV bit is ignored,
13979 the command may run too long, and not all devices set the signature
13980 properly.
13981 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
13982 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
13983 Fix device selection, DEV bit must be set first to address the registers
13984 of the correct device.
13985 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
13986 grub_ata_pio_read/write ().
13987 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
13988 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
13989
13990 2009-01-13 Carles Pina i Estany <carles@pina.cat>
13991
13992 * util/grub-editenv.c (main): Use fseeko(), not fseek().
13993
13994 2009-01-13 Bean <bean123ch@gmail.com>
13995
13996 * util/grub-mkfont.c (write_font): forget to remove some debug code.
13997
13998 2009-01-13 Bean <bean123ch@gmail.com>
13999
14000 * Makefile.in: (enable_grub_mkfont): New variable.
14001 (freetype_cflags): Likewise.
14002 (freetype_libs): Likewise.
14003
14004 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
14005 (grub_mkfont_SOURCES): New variable.
14006 (grub_mkfont_CFLAGS): Likewise.
14007 (grub_mkfont_LDFLAGS): Likewise.
14008
14009 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
14010 library if `--enable-grub-mkfont' is requested.
14011 (enable_grub_mkfont): New variable.
14012 (freetype_cflags): Likewise.
14013 (freetype_libs): Likewise.
14014
14015 * util/grub-mkfont.c: New file.
14016
14017 2009-01-12 Christian Franke <franke@computer.org>
14018
14019 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
14020 mode check. Fix setting of compat_use[].
14021
14022 2009-01-10 Robert Millan <rmh@aybabtu.com>
14023
14024 Update a few copyright years which we forgot to do in 2008 (only for
14025 files whose changes made in 2008 were copyright-significant)
14026
14027 * Makefile.in: Add 2008 to Copyright line.
14028 * disk/ieee1275/ofdisk.c: Likewise.
14029 * disk/efi/efidisk.c: Likewise.
14030 * kern/dl.c: Likewise.
14031 * kern/sparc64/ieee1275/init.c: Likewise.
14032 * kern/mm.c: Likewise.
14033 * kern/efi/mm.c: Likewise.
14034 * boot/i386/pc/boot.S: Likewise.
14035 * genfslist.sh: Likewise.
14036 * fs/iso9660.c: Likewise.
14037 * fs/hfs.c: Likewise.
14038 * fs/jfs.c: Likewise.
14039 * fs/minix.c: Likewise.
14040 * fs/ufs.c: Likewise.
14041 * gensymlist.sh.in: Likewise.
14042 * genkernsyms.sh.in: Likewise.
14043 * include/grub/misc.h: Likewise.
14044 * include/grub/types.h: Likewise.
14045 * include/grub/symbol.h: Likewise.
14046 * include/grub/elf.h: Likewise.
14047 * include/grub/kernel.h: Likewise.
14048 * include/grub/disk.h: Likewise.
14049 * include/grub/dl.h: Likewise.
14050 * include/grub/i386/linux.h: Likewise.
14051 * include/grub/i386/pc/biosdisk.h: Likewise.
14052 * include/grub/efi/api.h: Likewise.
14053 * include/grub/efi/pe32.h: Likewise.
14054 * include/grub/util/misc.h: Likewise.
14055 * normal/execute.c: Likewise.
14056 * normal/arg.c: Likewise.
14057 * normal/completion.c: Likewise.
14058 * normal/lexer.c: Likewise.
14059 * normal/parser.y: Likewise.
14060 * normal/misc.c: Likewise.
14061 * commands/i386/pc/vbeinfo.c: Likewise.
14062 * commands/hexdump.c: Likewise.
14063 * commands/terminal.c: Likewise.
14064 * commands/ls.c: Likewise.
14065 * commands/help.c: Likewise.
14066 * partmap/pc.c: Likewise.
14067 * loader/efi/chainloader.c: Likewise.
14068 * loader/multiboot_loader.c: Likewise.
14069 * loader/i386/pc/multiboot2.c: Likewise.
14070 * term/efi/console.c: Likewise.
14071 * term/i386/pc/serial.c: Likewise.
14072 * util/lvm.c: Likewise.
14073 * util/console.c: Likewise.
14074 * util/i386/efi/grub-mkimage.c: Likewise.
14075 * util/raid.c: Likewise.
14076
14077 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
14078
14079 * commands/videotest.c: Removed include to grub/machine/memory.h.
14080
14081 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
14082 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
14083 (video_mod_SOURCES): Removed.
14084 (video_mod_CFLAGS): Likewise.
14085 (video_mod_LDFLAGS): Likewise.
14086 (gfxterm_mod_SOURCES): Likewise.
14087 (gfxterm_mod_CFLAGS): Likewise.
14088 (gfxterm_mod_LDFLAGS): Likewise.
14089 (videotest_mod_SOURCES): Likewise.
14090 (videotest_mod_CFLAGS): Likewise.
14091 (videotest_mod_LDFLAGS): Likewise.
14092 (bitmap_mod_SOURCES): Likewise.
14093 (bitmap_mod_CFLAGS): Likewise.
14094 (bitmap_mod_LDFLAGS): Likewise.
14095 (tga_mod_SOURCES): Likewise.
14096 (tga_mod_CFLAGS): Likewise.
14097 (tga_mod_LDFLAGS): Likewise.
14098 (jpeg_mod_SOURCES): Likewise.
14099 (jpeg_mod_CFLAGS): Likewise.
14100 (jpeg_mod_LDFLAGS): Likewise.
14101 (png_mod_SOURCES): Likewise.
14102 (png_mod_CFLAGS): Likewise.
14103 (png_mod_LDFLAGS): Likewise.
14104
14105 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
14106 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
14107 (video_mod_SOURCES): Added.
14108 (video_mod_CFLAGS): Likewise.
14109 (video_mod_LDFLAGS): Likewise.
14110 (videotest_mod_SOURCES): Likewise.
14111 (videotest_mod_CFLAGS): Likewise.
14112 (videotest_mod_LDFLAGS): Likewise.
14113 (bitmap_mod_SOURCES): Likewise.
14114 (bitmap_mod_CFLAGS): Likewise.
14115 (bitmap_mod_LDFLAGS): Likewise.
14116 (tga_mod_SOURCES): Likewise.
14117 (tga_mod_CFLAGS): Likewise.
14118 (tga_mod_LDFLAGS): Likewise.
14119 (jpeg_mod_SOURCES): Likewise.
14120 (jpeg_mod_CFLAGS): Likewise.
14121 (jpeg_mod_LDFLAGS): Likewise.
14122 (png_mod_SOURCES): Likewise.
14123 (png_mod_CFLAGS): Likewise.
14124 (png_mod_LDFLAGS): Likewise.
14125 (gfxterm_mod_SOURCES): Likewise.
14126 (gfxterm_mod_CFLAGS): Likewise.
14127 (gfxterm_mod_LDFLAGS): Likewise.
14128
14129 * term/gfxterm.c: Removed include to grub/machine/memory.h,
14130 grub/machine/console.h.
14131
14132 2009-01-04 Jerone Young <jerone@gmail.com>
14133
14134 Make on screen instructions clearer
14135
14136 Based on patch created by Jidanni <jidanni@jidanni.org>
14137
14138 * normal/menu.c: print clearer instructions on the screen
14139
14140 2009-01-02 Colin D Bennett <colin@gibibit.com>
14141
14142 New font engine.
14143
14144 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
14145 build system and fixed gfxterm.c to work with different sized fonts.
14146
14147 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
14148
14149 * configure: Re-generated.
14150
14151 * DISTLIST: Removed font/manager.c.
14152 Added font/font.c.
14153 Added font/font_cmd.c.
14154
14155 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
14156 compilation.
14157
14158 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
14159
14160 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
14161
14162 * kern/term.c: Changed users of grub_utf8_to_ucs4.
14163
14164 * normal/menu.c: Likewise.
14165
14166 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
14167 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
14168
14169 * include/grub/font.h: Replaced with new file.
14170
14171 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
14172 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
14173 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
14174 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
14175 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
14176 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
14177 fg_red, fg_green, fg_blue, fg_alpha.
14178 (grub_video_adapter): Removed blit_glyph.
14179 (grub_video_blit_glyph): Removed.
14180
14181 * font/manager.c: Removed file.
14182
14183 * font/font.c: New file.
14184
14185 * font/font_cmd.c: Likewise.
14186
14187 * video/video.c (grub_video_blit_glyph): Removed.
14188
14189 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
14190 (grub_video_vbe_map_rgba): Likewise.
14191 (grub_video_vbe_unmap_color_int): Likewise.
14192 (grub_video_vbe_blit_glyph): Removed.
14193 (grub_video_vbe_adapter): Removed blit_glyph.
14194
14195 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
14196 (get_pixel): Likewise.
14197 (set_pixel): Likewise.
14198
14199 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
14200
14201 * term/gfxterm.c: Adapted to new font engine.
14202
14203 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
14204
14205 * term/i386/pc/vga.c: Likewise.
14206
14207 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
14208
14209 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
14210
14211 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14212
14213 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14214
14215 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
14216
14217 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
14218
14219 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
14220
14221 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
14222
14223 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
14224
14225 * util/grub.d/00_header.in: Changed to use new loadfont command.
14226
14227 * util/grub-mkconfig_lib.in: Changed font extension.
14228
14229 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
14230
14231 * util/getroot.c (grub_util_get_grub_dev): Add support for
14232 /dev/md/dNNpNN style partitionable mdraid devices.
14233
14234 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
14235
14236 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
14237 at a time limit of the PXE TFTP API correctly.
14238 (grub_pxefs_close): Likewise.
14239
14240 2008-11-29 Robert Millan <rmh@aybabtu.com>
14241
14242 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
14243 grub_ata_device_initialize() calls.
14244
14245 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
14246
14247 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
14248 iteration failed.
14249 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
14250
14251 2008-11-28 Robert Millan <rmh@aybabtu.com>
14252
14253 Fix build on powerpc-ieee1275. Based on patch created by
14254 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
14255 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
14256 `kern/ieee1275/mmap.c'.
14257 * include/grub/powerpc/ieee1275/memory.h: New file.
14258
14259 Provide grub-install on coreboot.
14260 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
14261 (grub_install_SOURCES): New variable.
14262 * util/i386/pc/grub-install.in: Add a few condition checks to make it
14263 usable on coreboot.
14264
14265 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
14266
14267 * util/grub-fstest.c (grub_term_get_current_input): Change return type
14268 to `grub_term_input_t'.
14269 (grub_term_get_current_output): Change return type to
14270 `grub_term_output_t'.
14271
14272 2008-11-22 Robert Millan <rmh@aybabtu.com>
14273
14274 Fix breakage on coreboot due to declaration mismatch.
14275 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
14276 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
14277 grub_vga_text_cls().
14278
14279 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
14280 comments. Avoid copying one more byte than necessary (just in case).
14281
14282 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
14283 to 0x200000 (avoids trouble with some OFW implementations, and matches
14284 with the one in Yaboot).
14285 Reported by Manoel Abranches
14286
14287 2008-11-20 Robert Millan <rmh@aybabtu.com>
14288
14289 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
14290 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
14291
14292 * util/grub-mkconfig_lib.in (grub_warn): New function.
14293 (convert_system_path_to_grub_path): Use grub_warn() when issuing
14294 warnings, to obtain consistent formatting.
14295 * util/grub.d/00_header.in: Likewise.
14296 * util/update-grub_lib.in: Likewise.
14297
14298 * loader/i386/linux.c (allocate_pages): Fix a warning.
14299 Move comment text to `#error' stanza.
14300
14301 Harmonize ieee1275's grub_available_iterate() with the generic
14302 grub_machine_mmap_iterate() interface (fixes a recently-introduced
14303 build problem on i386-ieee1275):
14304 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
14305 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
14306 parameter `type'. Update all users of this function.
14307 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
14308 `kern/ieee1275/mmap.c'.
14309 * kern/ieee1275/init.c
14310 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
14311 with ...
14312 (grub_machine_mmap_iterate): ... this.
14313 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
14314 return type to `grub_err_t'. Update all implementations of this
14315 function prototype.
14316 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
14317 Likewise.
14318
14319 Add `lsmmap' command (lists firmware-provided memory map):
14320 * commands/lsmmap.c: New file.
14321 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
14322 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
14323 variables.
14324 * conf/powerpc-ieee1275.rmk: Likewise.
14325 * conf/i386-coreboot.rmk: Likewise.
14326 * conf/i386-ieee1275.rmk: Likewise.
14327
14328 2008-11-19 Robert Millan <rmh@aybabtu.com>
14329
14330 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
14331 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
14332 constraints to initrd allocation (based on code from
14333 loader/i386/pc/linux.c). Without them, initrd was allocated too high
14334 for Linux to find it.
14335
14336 2008-11-14 Robert Millan <rmh@aybabtu.com>
14337
14338 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
14339 order to cope with duplicate slashes.
14340
14341 2008-11-14 Robert Millan <rmh@aybabtu.com>
14342
14343 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
14344 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
14345 don't want to mess with lower memory, because it is used in the Linux
14346 loader.
14347
14348 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
14349 an appropriate place in lower memory, between 0x10000 and 0x90000,
14350 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
14351 is in our heap (probably as a result of it being corrupted during
14352 decompression). Add #error instance with comment to explain why this
14353 loader isn't currently usable on PC/BIOS.
14354
14355 2008-11-14 Robert Millan <rmh@aybabtu.com>
14356
14357 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
14358 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
14359
14360 2008-11-12 Robert Millan <rmh@aybabtu.com>
14361
14362 Make loader/i386/linux.c buildable on i386-pc (although disabled).
14363
14364 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
14365 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
14366 from here ...
14367 * include/grub/i386/pc/memory.h: ... to here.
14368
14369 2008-11-12 Robert Millan <rmh@aybabtu.com>
14370
14371 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
14372 split).
14373
14374 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
14375 (grub_console_cur_color, grub_console_real_putchar)
14376 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14377 (grub_console_setcolorstate, grub_console_setcolor)
14378 (grub_console_getcolor): Move from here ...
14379 * include/grub/i386/vga_common.h: ... to here (new file).
14380
14381 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
14382 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
14383 `<grub/i386/io.h>'.
14384 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
14385 `<grub/i386/vga_common.h>'.
14386
14387 2008-11-12 Robert Millan <rmh@aybabtu.com>
14388
14389 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
14390 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
14391 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
14392 variables.
14393 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14394 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
14395
14396 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
14397 grub_console_init() with call to grub_vga_text_init().
14398 (grub_machine_fini): Replace call to
14399 grub_console_fini() with call to grub_vga_text_fini() and
14400 grub_at_keyboard_fini().
14401
14402 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
14403 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14404 (grub_console_setcolorstate, grub_console_setcolor)
14405 (grub_console_getcolor): New function prototypes.
14406
14407 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
14408 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
14409 (grub_vga_text_setcursor): Static-ize.
14410 (grub_vga_text_term): New structure.
14411 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
14412
14413 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
14414 (grub_console_cur_color, grub_console_standard_color)
14415 (grub_console_normal_color, grub_console_highlight_color)
14416 (map_char, grub_console_putchar, grub_console_getcharwidth)
14417 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
14418 (grub_console_getcolor): Move from here ...
14419 * term/i386/vga_common.c: ... to here (same function names).
14420
14421 2008-11-12 Robert Millan <rmh@aybabtu.com>
14422
14423 Use newly-added Multiboot support in coreboot.
14424
14425 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14426 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
14427
14428 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
14429 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
14430 (codestart): Store the MBI in `startup_multiboot_info' when we're
14431 being loaded using Multiboot.
14432
14433 * kern/i386/coreboot/init.c (grub_machine_init): Move
14434 grub_at_keyboard_init() call to beginning of function (useful for
14435 debugging). Call grub_machine_mmap_init() before attempting to use
14436 grub_machine_mmap_iterate().
14437 (grub_lower_mem, grub_upper_mem): Move from here ...
14438 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
14439 here (new file).
14440
14441 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
14442 function prototype.
14443
14444 2008-11-12 Robert Millan <rmh@aybabtu.com>
14445
14446 Fix a regression introduced by the at_keyboard.mod split. Because
14447 some terminals are default on some platforms and non-default on
14448 others, the first terminal being registered determines which is
14449 going to be default.
14450
14451 * kern/term.c (grub_term_register_input): If this is the first
14452 terminal being registered, set it as the current one.
14453 (grub_term_register_output): Likewise.
14454
14455 * term/efi/console.c (grub_console_init): Do not call
14456 grub_term_set_current_output() or grub_term_set_current_input().
14457 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
14458 * term/i386/pc/console.c (grub_console_init): Likewise.
14459 (grub_console_fini): Do not call grub_term_set_current_input()
14460 (but leave grub_term_set_current_output() to restore text mode).
14461
14462 2008-11-10 Robert Millan <rmh@aybabtu.com>
14463
14464 * util/grub.d/00_header.in: Add backward compatibility check for
14465 versions of terminal.mod that don't understand `terminal_input' or
14466 `terminal_output'.
14467
14468 2008-11-09 Robert Millan <rmh@aybabtu.com>
14469
14470 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
14471 `terminal_input' / `terminal_output', not `terminal'.
14472
14473 2008-11-08 Robert Millan <rmh@aybabtu.com>
14474
14475 * Makefile.in (include_DATA): Fix srcdir=. assumption.
14476 (DISTCLEANFILES): Add `build_env.mk'.
14477
14478 2008-11-08 Robert Millan <rmh@aybabtu.com>
14479
14480 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
14481 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14482 members. Update all users.
14483 * util/console.c (grub_ncurses_term): Split in ...
14484 (grub_ncurses_term_input): ... this, and ...
14485 (grub_ncurses_term_output): ... this. Update all users.
14486 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
14487
14488 2008-11-08 Robert Millan <rmh@aybabtu.com>
14489
14490 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
14491 (PKGDATA): Add $(pkgdata_SRCDIR).
14492 (pkglib_BUILDDIR): New variable.
14493 (pkgdata_SRCDIR): New variable.
14494 (build_env.mk): New target.
14495 (include_DATA): New variable.
14496 (install-local): Install $(include_DATA) files in $(includedir).
14497
14498 2008-11-07 Pavel Roskin <proski@gnu.org>
14499
14500 * gendistlist.sh: Use C locale for sorting to ensure consistent
14501 output on all systems.
14502
14503 * util/grub.d/00_header.in: Remove incorrect space before
14504 "serial".
14505
14506 2008-11-07 Robert Millan <rmh@aybabtu.com>
14507
14508 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
14509 per specification.
14510 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
14511 * loader/multiboot_loader.c (find_multi_boot2_header): New function
14512 (based on find_multi_boot1_header).
14513 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
14514 using find_multi_boot2_header(), and abort if neither Multiboot or
14515 Multiboot headers were found.
14516
14517 2008-11-07 Robert Millan <rmh@aybabtu.com>
14518
14519 Modularize at_keyboard.mod:
14520
14521 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
14522 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
14523 (at_keyboard_mod_LDFLAGS): New variables.
14524
14525 Actual terminal split:
14526
14527 * include/grub/term.h (struct grub_term): Split in ...
14528 (struct grub_term_input): ... this, and ...
14529 (struct grub_term_output): ... this. Update all users.
14530 (grub_term_set_current): Split in ...
14531 (grub_term_set_current_input): ... this, and ...
14532 (grub_term_set_current_output): ... this.
14533 (grub_term_get_current): Split in ...
14534 (grub_term_get_current_input): ... this, and ...
14535 (grub_term_get_current_output): ... this.
14536 (grub_term_register): Split in ...
14537 (grub_term_register_input): ... this, and ...
14538 (grub_term_register_output): ... this.
14539 (grub_term_unregister): Split in ...
14540 (grub_term_unregister_input): ... this, and ...
14541 (grub_term_unregister_output): ... this.
14542 (grub_term_iterate): Split in ...
14543 (grub_term_iterate_input): ... this, and ...
14544 (grub_term_iterate_output): ... this.
14545
14546 * kern/term.c (grub_term_list): Split in ...
14547 (grub_term_list_input): ... this, and ...
14548 (grub_term_list_output): ... this. Update all users.
14549 (grub_cur_term): Split in ...
14550 (grub_cur_term_input): ... this, and ...
14551 (grub_cur_term_output): ... this. Update all users.
14552 (grub_term_set_current): Split in ...
14553 (grub_term_set_current_input): ... this, and ...
14554 (grub_term_set_current_output): ... this.
14555 (grub_term_get_current): Split in ...
14556 (grub_term_get_current_input): ... this, and ...
14557 (grub_term_get_current_output): ... this.
14558 (grub_term_register): Split in ...
14559 (grub_term_register_input): ... this, and ...
14560 (grub_term_register_output): ... this.
14561 (grub_term_unregister): Split in ...
14562 (grub_term_unregister_input): ... this, and ...
14563 (grub_term_unregister_output): ... this.
14564 (grub_term_iterate): Split in ...
14565 (grub_term_iterate_input): ... this, and ...
14566 (grub_term_iterate_output): ... this.
14567
14568 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
14569 a check for input and one for output (and only attempt to get keys
14570 from user when input works).
14571
14572 * util/grub-probe.c (grub_term_get_current): Split in ...
14573 (grub_term_get_current_input): ... this, and ...
14574 (grub_term_get_current_output): ... this.
14575 * util/grub-fstest.c: Likewise.
14576 * util/i386/pc/grub-setup.c: Likewise.
14577 * util/grub-editenv.c: Likewise.
14578
14579 Portability adjustments:
14580
14581 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
14582 `term/i386/pc/at_keyboard.c'.
14583 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
14584 grub_keyboard_controller_init() (now handled by terminal .init).
14585 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
14586 grub_at_keyboard_init().
14587 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
14588 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
14589 at_keyboard.mod via input terminal interface).
14590 * include/grub/i386/coreboot/console.h: Convert into a stub for
14591 `<grub/i386/pc/console.h>'.
14592
14593 Migrate full terminals to new API:
14594
14595 * term/efi/console.c (grub_console_term): Split into ...
14596 (grub_console_term_input): ... this, and ...
14597 (grub_console_term_output): ... this. Update all users.
14598 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
14599 (grub_ofconsole_init): Split into ...
14600 (grub_ofconsole_init_input): ... this, and ...
14601 (grub_ofconsole_init_output): ... this.
14602 (grub_ofconsole_term): Split into ...
14603 (grub_ofconsole_term_input): ... this, and ...
14604 (grub_ofconsole_term_output): ... this. Update all users.
14605 * term/i386/pc/serial.c (grub_serial_term): Split into ...
14606 (grub_serial_term_input): ... this, and ...
14607 (grub_serial_term_output): ... this. Update all users.
14608 * term/i386/pc/console.c (grub_console_term): Split into ...
14609 (grub_console_term_input): ... this, and ...
14610 (grub_console_term_output): ... this. Update all users.
14611 (grub_console_term_input): Only enable it on PC/BIOS platform.
14612 (grub_console_init): Remove grub_keyboard_controller_init() call.
14613
14614 Migrate input terminals to new API:
14615
14616 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
14617 `i386' and `i386/pc' to enable build on x86_64 (this driver is
14618 i386-specific anyway).
14619 (grub_console_checkkey): Rename to ...
14620 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
14621 users.
14622 (grub_keyboard_controller_orig): New variable.
14623 (grub_console_getkey): Rename to ...
14624 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
14625 users.
14626 (grub_keyboard_controller_init): Static-ize. Save original
14627 controller value so that it can be restored ...
14628 (grub_keyboard_controller_fini): ... here (new function).
14629 (grub_at_keyboard_term): New structure.
14630 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
14631 functions.
14632
14633 Migrate output terminals to new API:
14634
14635 * term/i386/pc/vga.c (grub_vga_term): Change type to
14636 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14637 members. Update all users.
14638 * term/gfxterm.c (grub_video_term): Change type to
14639 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14640 members. Update all users.
14641 * include/grub/i386/pc/console.h (grub_console_checkkey)
14642 (grub_console_getkey): Do not export (no longer needed by gfxterm,
14643 etc).
14644
14645 Migrate `terminal' command and userland tools to new API:
14646
14647 * commands/terminal.c (grub_cmd_terminal): Split into ...
14648 (grub_cmd_terminal_input): ... this, and ...
14649 (grub_cmd_terminal_output): ... this.
14650 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
14651 `terminal_input' and `terminal_output'.
14652 * util/grub.d/00_header.in: Adjust `terminal' calls to new
14653 `terminal_input' / `terminal_output' API.
14654 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
14655 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
14656 provided ${GRUB_TERMINAL}, convert it).
14657
14658 2008-11-04 Robert Millan <rmh@aybabtu.com>
14659
14660 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
14661 for FreeBSD.
14662 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
14663
14664 2008-11-03 Bean <bean123ch@gmail.com>
14665
14666 * kern/elf.c (grub_elf32_load): Revert to previous code.
14667 (grub_elf64_load): Likewise.
14668
14669 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
14670
14671 2008-11-01 Robert Millan <rmh@aybabtu.com>
14672
14673 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
14674 (TARGET_CPPFLAGS): Likewise.
14675 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
14676
14677 2008-11-01 Carles Pina i Estany <carles@pina.cat>
14678
14679 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
14680
14681 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
14682
14683 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
14684 addition of objects until the code is not going to be able to fail.
14685
14686 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
14687
14688 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
14689 (add a missing NULL check, and correct them by moving the pointer
14690 operations after the actual check).
14691
14692 2008-10-29 Robert Millan <rmh@aybabtu.com>
14693
14694 * util/i386/pc/grub-install.in: Handle empty string as output from
14695 make_system_path_relative_to_its_root().
14696
14697 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
14698
14699 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
14700 circular metadata worst case scenario. If the metadata is circular
14701 then copy the wrap in place.
14702 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
14703 project lib/format_text/layout.h
14704 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
14705
14706 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
14707
14708 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
14709
14710 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
14711
14712 * util/update-grub_lib.in: Mention filename in warning message.
14713
14714 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
14715
14716 * NEWS: Update for rename of update-grub to grub-mkconfig.
14717
14718 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
14719
14720 * util/update-grub_lib.in: Copy to ...
14721 * util/grub-mkconfig_lib.in: ... this. Update all users.
14722 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
14723 * util/update-grub.in: Rename to ...
14724 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
14725 option. Add `--output' option to allow users to specify the generated
14726 configuration file. Default to stdout.
14727 (update_grub_dir): Rename to ...
14728 (grub_mkconfig_dir): ... this.
14729 (grub_cfg): Default to an empty string.
14730 * conf/common.rmk (update-grub): Rename to ...
14731 (grub-mkconfig): ... this.
14732 (update-grub_lib): Copy to ...
14733 (grub-mkconfig_lib): ... this.
14734 (update-grub_SCRIPTS): Copy to ...
14735 (grub-mkconfig_SCRIPTS): ... this. Update all users.
14736 (update-grub_DATA): Rename to ...
14737 (grub-mkconfig_DATA): ... this.
14738
14739 2008-09-28 Robert Millan <rmh@aybabtu.com>
14740
14741 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
14742 to `modified'. Add the real `created' field.
14743 (grub_iso9660_uuid): Use `modified' rather than `created' for
14744 constructing the UUID.
14745
14746 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
14747
14748 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
14749 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
14750
14751 2008-09-28 Bean <bean123ch@gmail.com>
14752
14753 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
14754 Thanks to Christian Franke for finding this bug.
14755
14756 2008-09-25 Robert Millan <rmh@aybabtu.com>
14757
14758 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
14759 instances of grub_util_get_disk_name() (see previous commit).
14760
14761 2008-09-25 Robert Millan <rmh@aybabtu.com>
14762
14763 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
14764 `util/i386/get_disk_name.c'.
14765 * conf/i386-efi.rmk: Likewise.
14766 * conf/x86_64-efi.rmk: Likewise.
14767 * conf/i386-coreboot.rmk: Likewise.
14768 * conf/i386-ieee1275.rmk: Likewise.
14769 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
14770 `util/ieee1275/get_disk_name.c'.
14771 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
14772 * util/ieee1275/get_disk_name.c: Remove file.
14773 * util/i386/get_disk_name.c: Remove file.
14774 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
14775 "hd%d" for device.map entries, rather than using
14776 grub_util_get_disk_name().
14777
14778 2008-09-24 Carles Pina i Estany <carles@pina.cat>
14779
14780 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
14781 warning.
14782 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
14783
14784 2008-09-24 Carles Pina i Estany <carles@pina.cat>
14785
14786 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
14787 Changed to 0x5100.
14788 (GRUB_TERM_PPAGE): Changed to 0x4900.
14789
14790 2008-09-24 Robert Millan <rmh@aybabtu.com>
14791
14792 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
14793 macros (they were i386-pc specific).
14794 * include/grub/sparc64/ieee1275/console.h: Likewise.
14795 * include/grub/efi/console.h: Likewise.
14796
14797 2008-09-22 Bean <bean123ch@gmail.com>
14798
14799 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
14800 resident and in attribute list.
14801
14802 * include/grub/ntfs.h (BMP_LEN): Removed.
14803
14804 2008-09-22 Bean <bean123ch@gmail.com>
14805
14806 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
14807 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
14808
14809 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
14810 error occurs, as grub_disk_open will call grub_disk_close, which will
14811 call p->close (scsi).
14812
14813 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
14814
14815 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
14816 (AC_PREREQ): Bumped to 2.59.
14817 (AC_TRY_COMPILE): Replace obsolete macro with ...
14818 (AC_COMPILE_IFELSE): ... this.
14819 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
14820 (AC_LINK_IFELSE): ... this.
14821
14822 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
14823
14824 * autogen.sh: Add a call to `gendistlist.sh'.
14825
14826 2008-09-19 Christian Franke <franke@computer.org>
14827
14828 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
14829 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
14830 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
14831 Export __enable_execute_stack() to modules.
14832 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
14833 New function.
14834
14835 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
14836
14837 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
14838 Sort the list.
14839
14840 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
14841
14842 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
14843 #include <grub/util/hostdisk.h>.
14844
14845 2008-09-08 Robert Millan <rmh@aybabtu.com>
14846
14847 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
14848 segments when their filesz is zero (grub_file_read() interprets
14849 zero-size as "read until EOF", which results in memory corruption).
14850 Use `lowest_segment' rather than 0 for calculating the current
14851 segment load address.
14852
14853 2008-09-08 Robert Millan <rmh@aybabtu.com>
14854
14855 * util/hostdisk.c (open_device): Replace a grub_util_info() call
14856 with grub_dprintf("hostdisk", ...), as it was so verbose that it
14857 clobbered useful information.
14858
14859 2008-09-08 Robert Millan <rmh@aybabtu.com>
14860
14861 * include/grub/util/biosdisk.h: Move to ...
14862 * include/grub/util/hostdisk.h: ... here. Update all users.
14863 * util/biosdisk.c: Move to ...
14864 * util/hostdisk.c: ... here. Update all users.
14865
14866 2008-09-07 Robert Millan <rmh@aybabtu.com>
14867
14868 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
14869 variables.
14870 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
14871 and length can be stored directly in the `mbi->mmap_addr' and
14872 `mbi->mmap_length' struct fields.
14873
14874 2008-09-07 Robert Millan <rmh@aybabtu.com>
14875
14876 * conf/i386.rmk: New file. Provides declaration for building
14877 `cpuid.mod'.
14878 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
14879 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
14880 variables.
14881 Include `conf/i386.mk'.
14882 * conf/i386-efi.rmk: Likewise.
14883 * conf/x86_64-efi.rmk: Likewise.
14884 * conf/i386-coreboot.rmk: Likewise.
14885 * conf/i386-ieee1275.rmk: Likewise.
14886
14887 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
14888
14889 Based on patch created by Colin D Bennett <colin@gibibit.com>.
14890 Adds optimization support for BGR based modes.
14891
14892 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
14893 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
14894 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14895 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14896 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14897 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14898 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14899 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14900 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14901 (grub_video_i386_vbeblit_index_index): Likewise.
14902 (grub_video_i386_vbeblit_replace_directN): Added.
14903 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
14904 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
14905 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
14906 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
14907 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
14908 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
14909 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
14910 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
14911 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
14912 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
14913 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
14914 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
14915 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
14916
14917 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
14918 (grub_video_i386_vbefill_R8G8B8): Likewise.
14919 (grub_video_i386_vbefill_index): Likewise.
14920 (grub_video_i386_vbefill_direct32): Added.
14921 (grub_video_i386_vbefill_direct24): Likewise.
14922 (grub_video_i386_vbefill_direct16): Likewise.
14923 (grub_video_i386_vbefill_direct8): Likewise.
14924
14925 * include/grub/video.h (grub_video_blit_format): Removed
14926 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
14927 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
14928 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
14929 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
14930 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
14931
14932 * video/video.c (grub_video_get_blit_format): Updated to use new
14933 blit formats. Added handling for 16 bit color modes.
14934
14935 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
14936 fillers.
14937 (common_blitter): Updated to use new blitters.
14938
14939 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
14940 Removed.
14941 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
14942 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14943 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14944 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14945 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14946 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14947 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14948 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14949 (grub_video_i386_vbeblit_index_index): Likewise.
14950 (grub_video_i386_vbeblit_replace_directN): Added.
14951 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
14952 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
14953 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
14954 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
14955 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
14956 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
14957 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
14958 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
14959 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
14960 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
14961 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
14962 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
14963 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
14964
14965 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
14966 (grub_video_i386_vbefill_R8G8B8): Likewise.
14967 (grub_video_i386_vbefill_index): Likewise.
14968 (grub_video_i386_vbefill_direct32): Added.
14969 (grub_video_i386_vbefill_direct24): Likewise.
14970 (grub_video_i386_vbefill_direct16): Likewise.
14971 (grub_video_i386_vbefill_direct8): Likewise.
14972
14973 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
14974 types.
14975
14976 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
14977 types.
14978
14979 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
14980 blitter types.
14981
14982 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
14983 types.
14984
14985 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
14986
14987 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
14988 RAID level 1.
14989
14990 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
14991
14992 * fs/iso9660.c (grub_iso9660_date): New structure.
14993 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
14994 (grub_iso9660_uuid): New function.
14995
14996 2008-09-05 Bean <bean123ch@gmail.com>
14997
14998 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
14999
15000 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
15001 insensitive bit for names in Win32 and Win32 & DOS namespace.
15002
15003 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
15004
15005 * include/grub/types.h (LONG_MAX): Likewise.
15006
15007 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
15008
15009 * util/getroot.c: Include <config.h>.
15010 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
15011 add support for /dev/md/N devices and handle LVM double dash escaping.
15012
15013 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
15014
15015 * config.guess: Update to latest version from config git.
15016 * config.sub: Likewise.
15017
15018 2008-09-03 Robert Millan <rmh@aybabtu.com>
15019
15020 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
15021 `disk->total_sectors'.
15022
15023 2008-09-01 Colin D Bennett <colin@gibibit.com>
15024
15025 * include/grub/normal.h: Fixed incorrect comment for
15026 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
15027
15028 2008-09-01 Colin D Bennett <colin@gibibit.com>
15029
15030 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
15031 values with defines.
15032
15033 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
15034 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
15035 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
15036 (GRUB_VBE_MODEATTR_COLOR): Likewise.
15037 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
15038 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
15039 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
15040 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
15041 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
15042 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
15043 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
15044 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
15045 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
15046 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
15047 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
15048 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
15049 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
15050 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
15051 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
15052
15053 2008-08-31 Robert Millan <rmh@aybabtu.com>
15054
15055 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
15056 declaration.
15057 (grub_multiboot): Fix a few warnings.
15058
15059 2008-08-31 Robert Millan <rmh@aybabtu.com>
15060
15061 * loader/i386/pc/multiboot.c: Update comment not to say that
15062 boot_device support is unimplemented.
15063
15064 2008-08-31 Robert Millan <rmh@aybabtu.com>
15065
15066 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
15067 or memory map support are unimplemented.
15068
15069 2008-08-31 Colin D Bennett <colin@gibibit.com>
15070
15071 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
15072
15073 2008-08-31 Colin D Bennett <colin@gibibit.com>
15074
15075 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
15076 total video memory in 'vbeinfo' output; show color format details for
15077 each video mode.
15078
15079 2008-08-30 Pavel Roskin <proski@gnu.org>
15080
15081 * util/genmoddep.c: Remove for real this time.
15082 * DISTLIST: Remove util/genmoddep.c.
15083
15084 2008-08-30 Robert Millan <rmh@aybabtu.com>
15085
15086 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
15087 as required by Multiboot spec (it was already 4-byte aligned, but
15088 only by chance).
15089
15090 2008-08-29 Pavel Roskin <proski@gnu.org>
15091
15092 * kern/powerpc/ieee1275/crt0.S: Rename to ...
15093 * kern/powerpc/ieee1275/startup.S: ... this.
15094 * conf/powerpc-ieee1275.rmk: Adjust for the above.
15095 * DISTLIST: Likewise.
15096
15097 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
15098 grub/cpu/kernel.h. Add start label for consistency with other
15099 platforms. Add grub_prefix immediately after start. Add jump
15100 to the code after grub_prefix.
15101 * include/grub/powerpc/kernel.h: Provide valid values for
15102 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
15103
15104 2008-08-29 Bean <bean123ch@gmail.com>
15105
15106 * configure.ac: Change host_os to cygwin for mingw.
15107 (asprintf): New check for function.
15108
15109 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
15110 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
15111
15112 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
15113 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
15114 sync, sleep and grub_util_get_disk_size for mingw.
15115
15116 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
15117 to get size in mingw.
15118 (open_device): Use flag O_BINARY if it's defined.
15119 (find_root_device): Add dummy code for mingw.
15120
15121 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
15122 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
15123 (get_scsi_disk_name): Return 0 for mingw.
15124
15125 * util/hostfs.c: #include <grub/util/misc.h>.
15126 (grub_hostfs_open): Use "rb" flag to open file, use
15127 grub_util_get_disk_size to get disk size for mingw.
15128
15129 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
15130 (asprintf): New function if HAVE_ASPRINTF is not set.
15131 (sync): New function for mingw.
15132 (sleep): Likewise.
15133 (grub_util_get_disk_size): Likewise.
15134
15135 2008-08-28 Pavel Roskin <proski@gnu.org>
15136
15137 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15138 kern/time.c.
15139
15140 2008-08-28 Robert Millan <rmh@aybabtu.com>
15141
15142 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
15143
15144 2008-08-28 Robert Millan <rmh@aybabtu.com>
15145
15146 Change find_grub_drive() syntax so it doesn't prevent it from
15147 detecting NULL names as errors.
15148
15149 * util/biosdisk.c (find_grub_drive): Move free slot search code
15150 from here ...
15151 (find_free_slot): ... to here.
15152 (read_device_map): Use find_free_slot() to search for free slots.
15153
15154 2008-08-27 Marco Gerards <marco@gnu.org>
15155
15156 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
15157 (scsi_mod_SOURCES): New variable.
15158 (scsi_mod_CFLAGS): Likewise
15159 (scsi_mod_LDFLAGS): Likewise.
15160
15161 * disk/scsi.c: New file.
15162
15163 * include/grub/scsi.h: Likewise.
15164
15165 * include/grub/scsicmd.h: Likewise.
15166
15167 * disk/ata.c: Include <grub/scsi.h>.
15168 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
15169 instead.
15170 (grub_ata_iterate): Skip ATAPI devices.
15171 (grub_ata_open): Only handle ATAPI devices.
15172 (struct grub_atapi_read): Removed.
15173 (grub_atapi_readsector): Likewise.
15174 (grub_ata_read): No longer handle ATAPI devices.
15175 (grub_ata_write): Likewise.
15176 (grub_atapi_iterate): New function.
15177 (grub_atapi_read): Likewise.
15178 (grub_atapi_write): Likewise.
15179 (grub_atapi_open): Likewise.
15180 (grub_atapi_close): Likewise.
15181 (grub_atapi_dev): New variable.
15182 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
15183 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
15184
15185 * include/grub/disk.h (enum grub_disk_dev_id): Add
15186 `GRUB_DISK_DEVICE_SCSI_ID'.
15187
15188 2008-08-26 Robert Millan <rmh@aybabtu.com>
15189
15190 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
15191 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
15192 descriptive.
15193
15194 2008-08-23 Bean <bean123ch@gmail.com>
15195
15196 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
15197 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15198 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
15199 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
15200 dm_nv.mod.
15201 (raid5rec_mod_SOURCES): New macro.
15202 (raid5rec_mod_CFLAGS): Likewise.
15203 (raid5rec_mod_LDFLAGS): Likewise.
15204 (raid6rec_mod_SOURCES): Likewise.
15205 (raid6rec_mod_CFLAGS): Likewise.
15206 (raid6rec_mod_LDFLAGS): Likewise.
15207 (mdraid_mod_SOURCES): Likewise.
15208 (mdraid_mod_CFLAGS): Likewise.
15209 (mdraid_mod_LDFLAGS): Likewise.
15210 (dm_nv_mod_SOURCES): Likewise.
15211 (dm_nv_mod_CFLAGS): Likewise.
15212 (dm_nv_mod_LDFLAGS): Likewise.
15213
15214 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
15215 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15216 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15217
15218 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
15219 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15220
15221 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15222
15223 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15224
15225 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15226
15227 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15228
15229 * disk/raid5_recover.c: New file.
15230
15231 * disk/raid6_recover.c: Likewise.
15232
15233 * disk/mdraid_linux.c: Likewise.
15234
15235 * disk/dmraid_nvidia.c: Likewise.
15236
15237 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
15238 ULONG_MAX.
15239
15240 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
15241 calculate the size of raid device.
15242 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
15243 different layout of raid5.
15244 (grub_raid_scan_device): Remove code specific to mdraid.
15245 (grub_raid_list): New variable.
15246 (free_array): New function.
15247 (grub_raid_register): Likewise.
15248 (grub_raid_unregister): Likewise.
15249 (grub_raid_rescan): Likewise.
15250 (GRUB_MOD_INIT): Don't iterate device here.
15251 (GRUB_MOD_FINI): Use free_array to release resource.
15252
15253 * include/grub/raid.h: Remove macro and structure specific to mdraid.
15254 (grub_raid5_recover_func_t): New function variable type.
15255 (grub_raid6_recover_func_t): Likewise.
15256 (grub_raid5_recover_func): New variable.
15257 (grub_raid6_recover_func): Likewise.
15258 (grub_raid_register): New function.
15259 (grub_raid_unregister): Likewise.
15260 (grub_raid_rescan): Likewise.
15261 (grub_raid_block_xor): Likewise.
15262
15263 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
15264 (CMD_CRC): New macro.
15265 (part): Removed.
15266 (read_file): Handle device as well as file.
15267 (cmd_crc): New function.
15268 (fstest): Handle multiple disks.
15269 (options): Remove part, raw and long, add root and diskcount.
15270 (usage): Add crc, remove -p, -r, -l, add -r and -c.
15271 (main): Find the first non option entry and ignore subsequent options,
15272 add handling for the new options, support multiple disks.
15273
15274 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
15275
15276 2008-08-23 Bean <bean123ch@gmail.com>
15277
15278 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
15279
15280 * genfslist.sh: Ignore kernel.mod.
15281
15282 * genpartmaplist.sh: Likewise.
15283
15284 2008-08-23 Robert Millan <rmh@aybabtu.com>
15285
15286 * util/getroot.c (find_root_device): Skip anything that starts with
15287 a dot, not just directories. This avoids things like /dev/.tmp.md0.
15288
15289 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
15290
15291 * util/update-grub.in (GRUB_GFXMODE): Export variable.
15292 * util/grub.d/00_header.in: Allow the administrator to change default
15293 gfxmode via ${GRUB_GFXMODE}.
15294
15295 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
15296
15297 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
15298
15299 2008-08-21 Robert Millan <rmh@aybabtu.com>
15300
15301 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
15302 loader.
15303 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
15304 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
15305
15306 2008-08-20 Carles Pina i Estany <carles@pina.cat>
15307
15308 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
15309 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
15310
15311 2008-08-19 Robert Millan <rmh@aybabtu.com>
15312
15313 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
15314 (struct grub_virtual_screen): Remove `cursor_color'.
15315 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
15316 initialization.
15317 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
15318
15319 2008-08-18 Robert Millan <rmh@aybabtu.com>
15320
15321 Unify (identical) linux_normal.c files.
15322 * loader/i386/efi/linux_normal.c: Move from here ...
15323 * loader/linux_normal.c: ... to here. Update all users.
15324 * loader/i386/pc/linux_normal.c: Delete. Update all users.
15325 * loader/i386/ieee1275/linux_normal.c: Likewise.
15326
15327 2008-08-18 Robert Millan <rmh@aybabtu.com>
15328
15329 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
15330 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
15331 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
15332 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
15333 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
15334 New macros.
15335 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
15336 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
15337 (GRUB_LINUX_CL_END_OFFSET): ... to here.
15338 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
15339 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
15340 (GRUB_EFI_CL_END_OFFSET): Rename to ...
15341 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
15342 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
15343 Initialize `params->video_cursor_x' and `params->video_cursor_y'
15344 portably using grub_getxy().
15345 Replace `-EFI' with `-bzImage' in boot message.
15346
15347 2008-08-17 Robert Millan <rmh@aybabtu.com>
15348
15349 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
15350
15351 2008-08-17 Robert Millan <rmh@aybabtu.com>
15352
15353 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
15354
15355 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
15356 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
15357 (grub_machine_mmap_iterate): New function declaration.
15358 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
15359 structure.
15360 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
15361 macros.
15362
15363 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
15364 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
15365 Move e820 parsing from here ...
15366 * kern/i386/pc/mmap.c: New file.
15367 (grub_machine_mmap_iterate): ... to here.
15368
15369 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
15370 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
15371 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
15372 (grub_available_iterate): Redeclare to return `void', and redeclare
15373 its hook to use grub_uint64_t as addr and size parameters, and rename
15374 to ...
15375 (grub_machine_mmap_iterate): ... this. Update all users.
15376
15377 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
15378 to make it more readable. Rename to ...
15379 (grub_machine_mmap_iterate): ... this.
15380
15381 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
15382 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
15383 (grub_multiboot): Allocate an extra region after the payload, and fill
15384 it with a Multiboot memory map. Adjust a.out loader to calculate size
15385 with the extra space.
15386 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
15387 with the extra space.
15388
15389 2008-08-17 Carles Pina i Estany <carles@pina.cat>
15390
15391 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
15392
15393 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
15394
15395 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
15396 mdate-sh to the list `find' searches for.
15397 * DISTLIST: Regenerated.
15398
15399 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
15400
15401 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
15402 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
15403 genmoddep.awk, gensymlist.sh.in.
15404 (DISTDIRS): Add bus, docs, hook, lib.
15405 * DISTLIST: Regenerated.
15406 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
15407
15408 2008-08-16 Robert Millan <rmh@aybabtu.com>
15409
15410 * disk/raid.c (grub_raid_init): Handle/report errors set by
15411 grub_device_iterate().
15412 * disk/lvm.c (grub_lvm_init): Likewise.
15413
15414 2008-08-15 Bean <bean123ch@gmail.com>
15415
15416 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15417 and datehook.mod.
15418 (datetime_mod_SOURCES): New macro.
15419 (datetime_mod_CFLAGS): Likewise.
15420 (datetime_mod_LDFLAGS): Likewise.
15421 (date_mod_SOURCES): Likewise.
15422 (date_mod_CFLAGS): Likewise.
15423 (date_mod_LDFLAGS): Likewise.
15424 (datehook_mod_SOURCES): Likewise.
15425 (datehook_mod_CFLAGS): Likewise.
15426 (datehook_mod_LDFLAGS): Likewise.
15427
15428 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15429 and datehook.mod.
15430 (datetime_mod_SOURCES): New macro.
15431 (datetime_mod_CFLAGS): Likewise.
15432 (datetime_mod_LDFLAGS): Likewise.
15433 (date_mod_SOURCES): Likewise.
15434 (date_mod_CFLAGS): Likewise.
15435 (date_mod_LDFLAGS): Likewise.
15436 (datehook_mod_SOURCES): Likewise.
15437 (datehook_mod_CFLAGS): Likewise.
15438 (datehook_mod_LDFLAGS): Likewise.
15439
15440 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15441 and datehook.mod.
15442 (datetime_mod_SOURCES): New macro.
15443 (datetime_mod_CFLAGS): Likewise.
15444 (datetime_mod_LDFLAGS): Likewise.
15445 (date_mod_SOURCES): Likewise.
15446 (date_mod_CFLAGS): Likewise.
15447 (date_mod_LDFLAGS): Likewise.
15448 (datehook_mod_SOURCES): Likewise.
15449 (datehook_mod_CFLAGS): Likewise.
15450 (datehook_mod_LDFLAGS): Likewise.
15451
15452 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15453 and datehook.mod.
15454 (datetime_mod_SOURCES): New macro.
15455 (datetime_mod_CFLAGS): Likewise.
15456 (datetime_mod_LDFLAGS): Likewise.
15457 (date_mod_SOURCES): Likewise.
15458 (date_mod_CFLAGS): Likewise.
15459 (date_mod_LDFLAGS): Likewise.
15460 (datehook_mod_SOURCES): Likewise.
15461 (datehook_mod_CFLAGS): Likewise.
15462 (datehook_mod_LDFLAGS): Likewise.
15463
15464 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15465 and datehook.mod.
15466 (datetime_mod_SOURCES): New macro.
15467 (datetime_mod_CFLAGS): Likewise.
15468 (datetime_mod_LDFLAGS): Likewise.
15469 (date_mod_SOURCES): Likewise.
15470 (date_mod_CFLAGS): Likewise.
15471 (date_mod_LDFLAGS): Likewise.
15472 (datehook_mod_SOURCES): Likewise.
15473 (datehook_mod_CFLAGS): Likewise.
15474 (datehook_mod_LDFLAGS): Likewise.
15475
15476 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
15477
15478 * commands/date.c: New file.
15479
15480 * hook/datehook.c: Likewise.
15481
15482 * include/grub/lib/datetime.h: Likewise.
15483
15484 * include/grub/i386/cmos.h: Likewise.
15485
15486 * lib/datetime.c: Likewise.
15487
15488 * lib/i386/datetime.c: Likewise.
15489
15490 * lib/efi/datetime.c: Likewise.
15491
15492 2008-08-14 Robert Millan <rmh@aybabtu.com>
15493
15494 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
15495 (grub_mkelfimage_SOURCES): New variable.
15496 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
15497
15498 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
15499 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
15500 * conf/powerpc-ieee1275.rmk: Likewise.
15501 * conf/i386-ieee1275.rmk: Likewise.
15502
15503 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
15504 * kern/i386/coreboot/init.c: Likewise.
15505
15506 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
15507 with `<grub/cpu/kernel.h>'.
15508 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
15509 to ...
15510 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
15511 * kern/i386/coreboot/startup.S: Likewise.
15512
15513 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
15514 (GRUB_MOD_GAP): Remove.
15515 * include/grub/powerpc/kernel.h: New file.
15516 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
15517 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15518 * include/grub/i386/kernel.h: New file.
15519 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
15520 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
15521 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15522
15523 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
15524 `grub-mkelfimage'.
15525 Use --directory when invoking grub_mkimage.
15526
15527 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
15528 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
15529 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
15530 and GRUB_KERNEL_CPU_PREFIX.
15531
15532 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
15533
15534 * include/grub/err.h (grub_err_printf): New function prototype.
15535 * util/misc.c (grub_err_printf): New function.
15536 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
15537 grub_printf.
15538 * kern/err.c (grub_print_error): Use grub_err_printf.
15539
15540 2008-08-13 Robert Millan <rmh@aybabtu.com>
15541
15542 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
15543
15544 2008-08-13 Robert Millan <rmh@aybabtu.com>
15545
15546 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
15547 boot entry.
15548
15549 2008-08-12 Robert Millan <rmh@aybabtu.com>
15550
15551 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
15552 of the relocation code from here ...
15553 (grub_multiboot): ... to here.
15554 (forward_relocator, backward_relocator): Move from here ...
15555 * kern/i386/loader.S (grub_multiboot_forward_relocator)
15556 (grub_multiboot_backward_relocator): ... to here.
15557 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
15558 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
15559 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
15560 (grub_multiboot_forward_relocator_end)
15561 (grub_multiboot_backward_relocator)
15562 (grub_multiboot_backward_relocator_end): New variables.
15563
15564 2008-08-12 Bean <bean123ch@gmail.com>
15565
15566 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
15567
15568 2008-08-11 Robert Millan <rmh@aybabtu.com>
15569
15570 * kern/i386/linuxbios/startup.S: Move from here ...
15571 * kern/i386/coreboot/startup.S: ... to here.
15572
15573 * kern/i386/linuxbios/init.c: Move from here ...
15574 * kern/i386/coreboot/init.c: ... to here.
15575
15576 * kern/i386/linuxbios/table.c: Move from here ...
15577 * kern/i386/coreboot/mmap.c: ... to here.
15578
15579 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
15580
15581 2008-08-11 Robert Millan <rmh@aybabtu.com>
15582
15583 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
15584 errors. Leave it to the upper layer to handle them.
15585
15586 2008-08-09 Christian Franke <franke@computer.org>
15587
15588 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
15589 * conf/common.rmk: Install `grub-pe2elf' only if requested.
15590 Install `grub.d/10_windows' only on Cygwin.
15591 * configure.ac: Add subst of `target_os'.
15592 Check `target_os' also before setting TARGET_OBJ2ELF.
15593 Add `--enable-grub-pe2elf'.
15594
15595 2008-08-08 Robert Millan <rmh@aybabtu.com>
15596
15597 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15598 (grub_last_time): Change type to grub_uint64_t.
15599 (grub_disk_open): Migrate code from to using grub_get_time_ms().
15600 (grub_disk_close): Likewise.
15601
15602 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15603 (run_menu): Migrate code from to using grub_get_time_ms().
15604
15605 * util/misc.c (grub_get_time_ms): New function.
15606
15607 2008-08-08 Marco Gerards <marco@gnu.org>
15608
15609 * disk/ata.c (grub_ata_regget): Change return type to
15610 `grub_uint8_t'.
15611 (grub_ata_regget2): Likewise.
15612 (grub_ata_wait_status): New function.
15613 (grub_ata_wait_busy): Removed function, updated all users to use
15614 `grub_ata_wait_status'.
15615 (grub_ata_wait_drq): Likewise.
15616 (grub_ata_cmd): New function.
15617 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
15618 error handling.
15619 (grub_ata_pio_write): Add error handling.
15620 (grub_atapi_identify): Likewise.
15621 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
15622 handling.
15623 (grub_ata_identify): Use `grub_ata_cmd' and improve error
15624 handling. Actually use the detected registers. Reorder the
15625 detection logic such that it is easier to read.
15626 (grub_ata_pciinit): Do not assign the same ID to each controller.
15627 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
15628 handling.
15629 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
15630
15631 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
15632
15633 2008-08-08 Marco Gerards <marco@gnu.org>
15634
15635 * NEWS: Update.
15636
15637 2008-08-07 Bean <bean123ch@gmail.com>
15638
15639 * include/grub/x86_64/pci.h: New file.
15640
15641 2008-08-07 Christian Franke <franke@computer.org>
15642
15643 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
15644 (TIMER2_GATE): Likewise.
15645 (grub_pit_wait): Add enable/disable of the timer2 gate
15646 bit of port 0x61. This fixes a possible infinite loop.
15647
15648 2008-08-07 Bean <bean123ch@gmail.com>
15649
15650 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
15651 kern/i386/tsc.c and kern/i386/pit.c.
15652
15653 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
15654 x86_64 platform.
15655
15656 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
15657 <grub/i386/tsc.h>.
15658
15659 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
15660
15661 2008-08-07 Bean <bean123ch@gmail.com>
15662
15663 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
15664
15665 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
15666
15667 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
15668 multiple inclusion. Add #include <grub/types.h>.
15669
15670 2008-08-06 Christian Franke <franke@computer.org>
15671
15672 * conf/common.rmk: Build and install `10_windows'.
15673 * util/grub.d/10_windows.in: New script.
15674
15675 2008-08-06 Pavel Roskin <proski@gnu.org>
15676
15677 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
15678
15679 2008-08-06 Robert Millan <rmh@aybabtu.com>
15680
15681 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
15682 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
15683
15684 2008-08-06 Bean <bean123ch@gmail.com>
15685
15686 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
15687 (grub_pxefs_fs_int): Remove dummy definition.
15688 (grub_pxefs_open): Use data->block_size to store the current block
15689 size setting.
15690 (grub_pxefs_read): Use block size stored in data->block_size. As the
15691 value of grub_pxe_blksize can be changed after the file is opened.
15692
15693 2008-08-06 Bean <bean123ch@gmail.com>
15694
15695 * fs/i386/pc/pxe.c (curr_file): new variable.
15696 (grub_pxefs_open): Simply the handling of pxe file system. Don't
15697 require the dummy internal file system anymore.
15698 (grub_pxefs_read): Removed.
15699 (grub_pxefs_close): Likewise.
15700 (grub_pxefs_fs_int): Likewise.
15701 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
15702 connection when we switch file.
15703 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
15704
15705 2008-08-06 Robert Millan <rmh@aybabtu.com>
15706
15707 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
15708 `halt.mod'.
15709 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
15710 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
15711
15712 * kern/i386/halt.c: New file.
15713 * kern/i386/reboot.c: Likewise.
15714 * include/grub/i386/reboot.h: Likewise.
15715 * include/grub/i386/halt.h: Likewise.
15716
15717 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
15718 Include `<grub/cpu/halt.h>'.
15719 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
15720 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
15721
15722 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
15723 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
15724 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
15725 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
15726 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
15727 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
15728 from here ...
15729 * include/grub/i386/at_keyboard.h: ... to here.
15730
15731 2008-08-05 Robert Millan <rmh@aybabtu.com>
15732
15733 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
15734 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
15735 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
15736 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
15737 `kern/generic/millisleep.c'.
15738
15739 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
15740 instead of grub_get_rtc().
15741 (grub_tsc_init): Initialize `tsc_boot_time'.
15742
15743 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
15744 (grub_machine_init): Use grub_tsc_init() rather than
15745 installing an RTC-based handler via grub_install_get_time_ms().
15746
15747 * kern/i386/pit.c: New file.
15748 * include/grub/i386/pit.h: Likewise.
15749
15750 2008-08-05 Bean <bean123ch@gmail.com>
15751
15752 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
15753
15754 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
15755 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
15756 (pxe_mod_SOURCES): New macro.
15757 (pxe_mod_CFLAGS): Likewise.
15758 (pxe_mod_LDFLAGS): Likewise.
15759 (pxecmd_mod_SOURCES): Likewise.
15760 (pxecmd_mod_CFLAGS): Likewise.
15761 (pxecmd_mod_LDFLAGS): Likewise.
15762
15763 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
15764 (grub_pxe_call): Likewise.
15765
15766 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
15767
15768 * commands/i386/pc/pxecmd.c: New file.
15769
15770 * fs/i386/pc/pxe.c: Likewise.
15771
15772 * include/grub/i386/pc/pxe.h: Likewise.
15773
15774 2008-08-05 Bean <bean123ch@gmail.com>
15775
15776 * util/console.c (grub_console_cur_color): New variable.
15777 (grub_console_standard_color): Likewise.
15778 (grub_console_normal_color): Likewise.
15779 (grub_console_highlight_color): Likewise.
15780 (color_map): Likewise.
15781 (use_color): Likewise.
15782 (NUM_COLORS): New macro.
15783 (grub_ncurses_setcolorstate): Handle color properly.
15784 (grub_ncurses_setcolor): Don't change color here, just remember the
15785 settings, color will be set in grub_ncurses_setcolorstate.
15786 (grub_ncurses_getcolor): New function.
15787 (grub_ncurses_init): Initialize color pairs.
15788 (grub_ncurses_term): New member grub_ncurses_getcolor.
15789
15790 2008-08-05 Colin D Bennett <colin@gibibit.com>
15791
15792 High resolution timer support. Implemented for x86 CPUs using TSC.
15793 Extracted generic grub_millisleep() so it's linked in only as needed.
15794 This requires a Pentium compatible CPU; if the RDTSC instruction is
15795 not supported, then it falls back on the generic grub_get_time_ms()
15796 implementation that uses the machine's RTC.
15797
15798 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
15799 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
15800 `kern/generic/millisleep.c'.
15801
15802 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
15803 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
15804
15805 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
15806 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
15807
15808 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
15809
15810 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15811 `kern/generic/millisleep.c'.
15812
15813 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
15814
15815 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
15816
15817 * kern/generic/rtc_get_time_ms.c: New file.
15818
15819 * kern/generic/millisleep.c: New file.
15820
15821 * kern/misc.c: Don't include
15822 <kern/time.h> anymore.
15823 (grub_millisleep_generic): Removed.
15824
15825 * commands/sleep.c (grub_interruptible_millisleep): Uses
15826 grub_get_time_ms() instead of grub_get_rtc().
15827
15828 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
15829 function.
15830 (grub_cpu_is_cpuid_supported): New inline function.
15831 (grub_cpu_is_tsc_supported): New inline function.
15832 (grub_tsc_init): New function prototype.
15833 (grub_tsc_get_time_ms): New function prototype.
15834
15835 * kern/i386/tsc.c (grub_get_time_ms): New file.
15836
15837 * include/grub/time.h: Include <grub/types.h.
15838 (grub_millisleep_generic): Removed.
15839 (grub_get_time_ms): New prototype.
15840 (grub_install_get_time_ms): New prototype.
15841 (grub_rtc_get_time_ms): New prototype.
15842
15843 * kern/time.c (grub_get_time_ms): New function.
15844 (grub_install_get_time_ms): New function.
15845
15846 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
15847 <grub/time.h> anymore.
15848 (grub_millisleep): Removed.
15849 (grub_machine_init): Call grub_tsc_init.
15850
15851 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
15852 get_time_ms() implementation.
15853
15854 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
15855 (ieee1275_get_time_ms): New function.
15856 (grub_machine_init): Install get_time_ms() implementation.
15857
15858 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
15859 (grub_machine_init): Call grub_tsc_init().
15860 (grub_millisleep): Removed.
15861
15862 * kern/ieee1275/init.c (grub_millisleep): Removed.
15863 (grub_machine_init): Install ieee1275_get_time_ms()
15864 implementation.
15865 (ieee1275_get_time_ms): New function.
15866 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
15867 real work.
15868
15869 2008-08-05 Marco Gerards <marco@gnu.org>
15870
15871 * disk/ata.c: Include <grub/pci.h>.
15872 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
15873 (grub_ata_initialize): Rewritten.
15874 (grub_ata_device_initialize): New function.
15875
15876 2008-08-04 Pavel Roskin <proski@gnu.org>
15877
15878 * kern/main.c: Include grub/mm.h.
15879
15880 2008-08-04 Robert Millan <rmh@aybabtu.com>
15881
15882 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
15883 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
15884 corruption problem).
15885
15886 2008-08-04 Robert Millan <rmh@aybabtu.com>
15887
15888 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
15889 warnings introduced in my last commit.
15890
15891 2008-08-03 Robert Millan <rmh@aybabtu.com>
15892
15893 Make PCI available on all i386 architectures.
15894
15895 * include/grub/i386/pc/pci.h: Move from here ...
15896 * include/grub/i386/pci.h: ... to here.
15897
15898 * include/grub/i386/pc/pci.h: Remove.
15899 * include/grub/i386/efi/pci.h: Remove.
15900 * include/grub/x86_64/efi/pci.h: Remove.
15901
15902 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
15903 `<grub/cpu/pci.h>'.
15904
15905 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
15906 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
15907 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
15908
15909 * conf/i386-ieee1275.rmk: Likewise.
15910
15911 2008-08-03 Robert Millan <rmh@aybabtu.com>
15912
15913 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
15914 (grub_console_setcursor): Make it possible to set cursor off.
15915
15916 2008-08-03 Robert Millan <rmh@aybabtu.com>
15917
15918 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
15919 of modules instead of assuming which platform provides what.
15920 * util/update-grub.in: Likewise.
15921
15922 2008-08-03 Robert Millan <rmh@aybabtu.com>
15923
15924 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
15925 instead of `grub_install_dos_part' to determine whether a drive needs
15926 to be prepended to prefix (`grub_install_dos_part' is not reliable,
15927 because it can be overridden when loading GRUB via Multiboot).
15928
15929 2008-08-02 Robert Millan <rmh@aybabtu.com>
15930
15931 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
15932
15933 2008-08-02 Robert Millan <rmh@aybabtu.com>
15934
15935 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
15936 of informational grub_dprintf() calls.
15937
15938 2008-08-02 Robert Millan <rmh@aybabtu.com>
15939
15940 * disk/memdisk.c (memdisk_size): Don't initialize.
15941 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
15942
15943 * include/grub/i386/pc/kernel.h
15944 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
15945 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
15946 (grub_memdisk_image_size, grub_arch_memdisk_addr)
15947 (grub_arch_memdisk_size): Remove.
15948
15949 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
15950 field (was only used to transfer a constant). Add `type' field to
15951 support multiple module types.
15952 (grub_module_iterate): New function.
15953
15954 * kern/device.c (grub_device_open): Do not hide error messages
15955 when grub_disk_open() fails. Use grub_print_error() instead.
15956
15957 * kern/i386/pc/init.c (grub_arch_modules_addr)
15958 (grub_arch_memdisk_size): Remove functions.
15959 (grub_arch_modules_addr): Return the module address in high memory
15960 (now that it isn't copied anymore).
15961
15962 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
15963 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
15964 decompression routine (grub_total_module_size already includes that
15965 now). Don't copy modules back to low memory.
15966
15967 * kern/main.c: Include `<grub/mm.h>'.
15968 (grub_load_modules): Split out (and use) ...
15969 (grub_module_iterate): ... this function, which iterates through
15970 module objects and runs a hook.
15971 Comment out grub_mm_init_region() call, as it would cause non-ELF
15972 modules to be overwritten.
15973
15974 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
15975 the memdisk image in its own region, make it part of the module list.
15976 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
15977 (main): Parse --memdisk|-m option, and pass user-provided path as
15978 parameter to generate_image().
15979 (add_segments): Pass `memdisk_path' down to load_modules().
15980 (load_modules): Embed memdisk image in module section when requested.
15981 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
15982 `header.type' instead of `header.offset'.
15983
15984 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
15985 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
15986 (memdisk_mod_LDFLAGS): New variables.
15987 * conf/i386-coreboot.rmk: Likewise.
15988 * conf/i386-ieee1275.rmk: Likewise.
15989
15990 2008-08-02 Robert Millan <rmh@aybabtu.com>
15991
15992 * loader/i386/pc/multiboot.c (playground, forward_relocator)
15993 (backward_relocator): New variables. Used to allocate and relocate
15994 the payload, respectively.
15995 (grub_multiboot_load_elf32): Load into heap instead of requested
15996 address, install the appropriate relocator code in each bound of
15997 the payload, and set the entry point such that
15998 grub_multiboot_real_boot() will jump to one of them.
15999
16000 * kern/i386/loader.S (grub_multiboot_payload_size)
16001 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16002 (grub_multiboot_payload_entry_offset): New variables.
16003 (grub_multiboot_real_boot): Set cpu context to what the relocator
16004 expects, and jump to the relocator instead of the payload.
16005
16006 * include/grub/i386/loader.h (grub_multiboot_payload_size)
16007 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16008 (grub_multiboot_payload_entry_offset): Export.
16009
16010 2008-08-01 Bean <bean123ch@gmail.com>
16011
16012 * normal/menu_entry.c (editor_getline): Don't return the original
16013 string as result, as it will be released by lexer once it has done
16014 using it.
16015
16016 2008-08-01 Robert Millan <rmh@aybabtu.com>
16017
16018 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
16019 within menuentries, not before them.
16020 util/grub.d/10_hurd.in: Likewise.
16021
16022 2008-08-01 Bean <bean123ch@gmail.com>
16023
16024 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
16025 (bufio_mod_SOURCES): New macro.
16026 (bufio_mod_CFLAGS): Likewise.
16027 (bufio_mod_LDFLAGS): Likewise.
16028
16029 * include/grub/bufio.h: New file.
16030
16031 * io/bufio.c: Likewise.
16032
16033 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
16034 (grub_video_reader_png): Use grub_buffile_open to open file.
16035
16036 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
16037 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
16038
16039 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
16040 (grub_video_reader_tga): Use grub_buffile_open to open file.
16041
16042 * font/manager.c: Include <grub/bufio.h>.
16043 (add_font): Use grub_buffile_open to open file.
16044
16045 2008-07-31 Robert Millan <rmh@aybabtu.com>
16046
16047 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
16048 ELF segments, use a macro for arbitrarily accessing any of them instead
16049 of preparing a pointer that allows access to one at a time.
16050 (grub_multiboot_load_elf64): Likewise.
16051
16052 2008-07-31 Bean <bean123ch@gmail.com>
16053
16054 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
16055 GRUB_KERNEL_MACHINE_DATA_END.
16056
16057 2008-07-30 Robert Millan <rmh@aybabtu.com>
16058
16059 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
16060 Increase from 0x50 to 0x60.
16061 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
16062 use UUIDs to identify the root drive for them. If that's not
16063 possible, abort.
16064 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
16065 check, for cross-disk installs.
16066
16067 2008-07-30 Robert Millan <rmh@aybabtu.com>
16068
16069 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
16070 is non-empty, use it to set the `prefix' environment variable instead
16071 of the usual approach.
16072 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
16073 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
16074 environment variable instead of dummy make_install_device().
16075
16076 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
16077 (start): Insert a data section, with `grub_prefix' variable.
16078 * kern/i386/linuxbios/startup.S: Likewise.
16079
16080 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
16081 New variable reference.
16082 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
16083 New macro. Defines offset of `grub_prefix' within startup.S (relative
16084 to `start').
16085 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
16086 section within startup.S (relative to `start').
16087 * include/grub/i386/coreboot/kernel.h: Likewise.
16088
16089 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
16090 Overwrite grub_prefix with its contents, at the beginning of the
16091 first segment.
16092 (main): Understand -p|--prefix.
16093
16094 2008-07-30 Robert Millan <rmh@aybabtu.com>
16095
16096 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
16097
16098 2008-07-30 Robert Millan <rmh@aybabtu.com>
16099
16100 * term/i386/pc/vga_text.c (grub_console_cls): Use
16101 grub_console_gotoxy() to go back to beginning of the screen.
16102 Found by Patrick Georgi <patrick.georgi@coresystems.de>
16103
16104 2008-07-29 Christian Franke <franke@computer.org>
16105
16106 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
16107 Add conversion of emulated mount points on Cygwin.
16108
16109 2008-07-29 Christian Franke <franke@computer.org>
16110
16111 * util/update-grub.in: Add a check for admin
16112 group on Cygwin.
16113 Remove old `grub.cfg.new' before creation.
16114 Add `-f' to `mv' to handle the different filesystem
16115 semantics of Windows.
16116
16117 2008-07-29 Bean <bean123ch@gmail.com>
16118
16119 * normal/main.c (get_line): Fix buffer overflow bug.
16120
16121 2008-07-28 Robert Millan <rmh@aybabtu.com>
16122
16123 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
16124 (struct grub_apple_header): New struct. Describes the layout of
16125 the partmap header.
16126 (apple_partition_map_iterate): Check the header magic as well as the
16127 partition magic (which was already being checked).
16128
16129 2008-07-28 Pavel Roskin <proski@gnu.org>
16130
16131 * genmk.rb: Add a warning to the beginning of the output that
16132 it's a generated file and should not be edited.
16133
16134 2008-07-28 Robert Millan <rmh@aybabtu.com>
16135
16136 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
16137 with the same number are found, just use issue a warning with
16138 grub_dprintf(), as this error has been reported to be non-fatal.
16139
16140 2008-07-27 Robert Millan <rmh@aybabtu.com>
16141
16142 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
16143 information.
16144
16145 2008-07-27 Bean <bean123ch@gmail.com>
16146
16147 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
16148 (grub_fat_find_dir): Ignore case when comparing filename.
16149
16150 2008-07-27 Bean <bean123ch@gmail.com>
16151
16152 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
16153 smallino, as it's more descriptive, and i8count can be confused with
16154 the other field count.
16155 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
16156 inode type.
16157
16158 2008-07-27 Bean <bean123ch@gmail.com>
16159
16160 * commands/crc.c: New file.
16161
16162 * lib/crc.c: Likewise.
16163
16164 * include/grub/lib/crc.h: Likewise.
16165
16166 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
16167
16168 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
16169 (hexdump): Move this function to ...
16170
16171 * lib/hexdump.c: ... here.
16172
16173 * include/grub/hexdump.h: Renamed to ...
16174
16175 * include/grub/lib/hexdump.h: ... this.
16176
16177 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
16178
16179 * util/grub-editenv.c: Likewise.
16180
16181 * include/envblk.h: Renamed to ...
16182
16183 * include/lib/envblk.h: ... this.
16184
16185 * util/envblk.c: Renamed to ...
16186
16187 * lib/envblk.c: ... this.
16188
16189 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
16190 lib/hexdump.c.
16191 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
16192 (pkglib_MODULES): Add crc.mod.
16193 (hexdump_mod_SOURCES): Add lib/hexdump.c.
16194 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
16195 (crc_mod_SOURCES): New macro.
16196 (crc_mod_CFLAGS): Likewise.
16197 (crc_mod_LDFLAGS): Likewise.
16198
16199 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
16200
16201 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16202
16203 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16204
16205 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16206
16207 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16208
16209 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
16210
16211 * commands/help.c: Include <grub/term.h>.
16212 (TERM_WIDTH): Removed. Updated all users.
16213
16214 2008-07-27 Pavel Roskin <proski@gnu.org>
16215
16216 * util/getroot.c (find_root_device): Rephrase a comment to avoid
16217 spurious warnings about a comment within a comment.
16218
16219 2008-07-25 Robert Millan <rmh@aybabtu.com>
16220
16221 * util/getroot.c (find_root_device): Skip devices that match
16222 /dev/dm-[0-9]. This lets the real device be found for any type of
16223 abstraction (LVM, EVMS, RAID..).
16224 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
16225 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
16226 device is found first, find_root_device() will now skip it.
16227
16228 2008-07-24 Pavel Roskin <proski@gnu.org>
16229
16230 * include/grub/types.h: Use __builtin_bswap32() and
16231 __builtin_bswap64() with gcc 4.3 and newer.
16232
16233 2008-07-24 Christian Franke <franke@computer.org>
16234
16235 * util/i386/pc/grub-install.in: If `--debug' is specified,
16236 pass `--verbose' to grub-setup.
16237 Abort script if make_system_path_relative_to_its_root() fails.
16238
16239 2008-07-24 Bean <bean123ch@gmail.com>
16240
16241 * configure.ac: Fixed a bug caused by the previous cygwin patch,
16242 variable `target_platform' should be `platform'.
16243
16244 2008-07-24 Bean <bean123ch@gmail.com>
16245
16246 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
16247 (grub_png_init_fixed_block): New function.
16248 (grub_png_decode_image_data): Handle fixed huffman code compression.
16249
16250 2008-07-24 Bean <bean123ch@gmail.com>
16251
16252 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
16253 (grub_pe2elf_SOURCES): New macro.
16254 (CLEANFILES): Add grub-pe2elf.
16255
16256 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
16257 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
16258 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
16259 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
16260 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
16261 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
16262 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
16263 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
16264 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
16265 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
16266 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
16267 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
16268 (GRUB_PE32_DT_FUNCTION): Likewise.
16269 (GRUB_PE32_REL_I386_DIR32): Likewise.
16270 (GRUB_PE32_REL_I386_REL32): Likewise.
16271 (grub_pe32_symbol): New structure.
16272 (grub_pe32_reloc): Likewise.
16273
16274 * util/grub-pe2elf.c: New file.
16275
16276 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
16277 start symbol in non pc platform.
16278
16279 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
16280
16281 The following patches are from Christian Franke.
16282
16283 * include/grub/dl.h: Remove .previous, gas supports this only
16284 for ELF format.
16285
16286 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
16287 Remove .type, gas supports this only for ELF format.
16288
16289 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
16290 nullbytes in symbol table. This fixes an infinite loop if table is
16291 zero filled.
16292
16293 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
16294 TARGET_IMG_LDFLAGS and EXEEXT.
16295
16296 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
16297 TARGET_IMG_LDFLAGS_AC.
16298 (grub_CHECK_STACK_ARG_PROBE): New function.
16299
16300 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
16301
16302 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
16303
16304 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
16305 to set TARGET_IMG_LD* accordingly.
16306 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
16307 Add call to grub_CHECK_STACK_ARG_PROBE.
16308 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
16309
16310 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
16311
16312 * genmk.rb: Add EXEEXT to CLEANFILES.
16313
16314 2008-07-23 Robert Millan <rmh@aybabtu.com>
16315
16316 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
16317 define the codes for arrows and lines used for the menu).
16318 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
16319 as well.
16320
16321 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
16322 fonts, because the latter are too slow.
16323
16324 2008-07-21 Bean <bean123ch@gmail.com>
16325
16326 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
16327 a20. Run keyboard test last, as it will cause macbook to halt.
16328
16329 2008-07-18 Pavel Roskin <proski@gnu.org>
16330
16331 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
16332 load foreign architecture modules correctly anyway. Keep
16333 support for loading host architecture modules, whether we
16334 compile them or not.
16335
16336 2008-07-17 Pavel Roskin <proski@gnu.org>
16337
16338 * configure.ac: Use -m32 or -m64 regardless of whether we had to
16339 change target_cpu. The compiler default can mismatch target_cpu
16340 in any case.
16341
16342 * disk/efi/efidisk.c: Fix format warnings on x86_64.
16343 * kern/efi/efi.c: Likewise.
16344
16345 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
16346 target compiler is functional.
16347 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
16348 are set up.
16349
16350 * configure.ac: Default to efi platform for x86_64-apple. Allow
16351 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
16352 adjustments from the rest, only do them if target is not
16353 explicitly given. Merge other adjustments with the final sanity
16354 check. Remove an extraneous check for supported CPU. Be
16355 specific which CPU and which platform is not supported.
16356
16357 * configure.ac: Default to pc platform for x86_64.
16358
16359 2008-07-17 Robert Millan <rmh@aybabtu.com>
16360
16361 Partial LinuxBIOS -> Coreboot rename.
16362
16363 * conf/i386-linuxbios.rmk: Renamed to ...
16364 * conf/i386-coreboot.rmk: ... this.
16365 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
16366 * configure.ac: Accept "coreboot" as input platform (but maintain
16367 compatibility with "linuxbios").
16368 * include/grub/i386/linuxbios: Renamed to ...
16369 * include/grub/i386/coreboot: ... this.
16370
16371 2008-07-17 Bean <bean123ch@gmail.com>
16372
16373 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
16374 (appleldr_mod_SOURCE): New variable.
16375 (appleldr_mod_CFLAGS): Likewise.
16376 (appleldr_mod_LDFLAGS): Likewise.
16377 (pci_mod_SOURCES): Likewise.
16378 (pci_mod_CFLAGS): Likewise.
16379 (pci_mod_LDFLAGS): Likewise.
16380 (lspci_mod_SOURCES): Likewise.
16381 (lspci_mod_CFLAGS): Likewise.
16382 (lspci_mod_LDFLAGS): Likewise.
16383
16384 * conf/x86_64-efi.rmk: New file.
16385
16386 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
16387 macro.
16388 (grub_efidisk_write): Likewise.
16389
16390 * include/efi/api.h (efi_call_0): New macro.
16391 (efi_call_1): Likewise.
16392 (efi_call_2): Likewise.
16393 (efi_call_3): Likewise.
16394 (efi_call_4): Likewise.
16395 (efi_call_5): Likewise.
16396 (efi_call_6): Likewise.
16397
16398 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
16399 grub_rescue_cmd_chainloader.
16400
16401 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
16402 (grub_pe32_optional_header): Change some fields based on i386 or
16403 x86_64 platform.
16404 (GRUB_PE32_PE32_MAGIC): Likewise.
16405
16406 * include/grub/efi/uga_draw.h: New file.
16407
16408 * include/grub/elf.h (STN_ABS): New constant.
16409 (R_X86_64_NONE): Relocation constant for x86_64.
16410 (R_X86_64_64): Likewise.
16411 (R_X86_64_PC32): Likewise.
16412 (R_X86_64_GOT32): Likewise.
16413 (R_X86_64_PLT32): Likewise.
16414 (R_X86_64_COPY): Likewise.
16415 (R_X86_64_GLOB_DAT): Likewise.
16416 (R_X86_64_JUMP_SLOT): Likewise.
16417 (R_X86_64_RELATIVE): Likewise.
16418 (R_X86_64_GOTPCREL): Likewise.
16419 (R_X86_64_32): Likewise.
16420 (R_X86_64_32S): Likewise.
16421 (R_X86_64_16): Likewise.
16422 (R_X86_64_PC16): Likewise.
16423 (R_X86_64_8): Likewise.
16424 (R_X86_64_PC8): Likewise.
16425
16426 * include/grub/i386/efi/pci.h: New file.
16427
16428 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
16429 Change it value based on platform.
16430 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
16431 (GRUB_E820_RAM): Likewise.
16432 (GRUB_E820_RESERVED): Likewise.
16433 (GRUB_E820_ACPI): Likewise.
16434 (GRUB_E820_NVS): Likewise.
16435 (GRUB_E820_EXEC_CODE): Likewise.
16436 (GRUB_E820_MAX_ENTRY): Likewise.
16437 (grub_e820_mmap): New structure.
16438 (linux_kernel_header): Change the efi field according to different
16439 kernel version, also field from linux_kernel_header.
16440
16441 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
16442
16443 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
16444 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
16445 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
16446 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
16447 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
16448 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
16449 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
16450 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
16451 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
16452 (GRUB_PCI_ADDR_IO_MASK): Likewise.
16453
16454 * include/grub/x86_64/efi/kernel.h: New file.
16455
16456 * include/grub/x86_64/efi/loader.h: Likewise.
16457
16458 * include/grub/x86_64/efi/machine.h: Likewise.
16459
16460 * include/grub/x86_64/efi/pci.h: Likewise.
16461
16462 * include/grub/x86_64/efi/time.h: Likewise.
16463
16464 * include/grub/x86_64/linux.h: Likewise.
16465
16466 * include/grub/x86_64/setjmp.h: Likewise.
16467
16468 * include/grub/x86_64/time.h: Likewise.
16469
16470 * include/grub/x86_64/types.h: Likewise.
16471
16472 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
16473 GRUB_TARGET_SIZEOF_VOID_P.
16474
16475 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
16476 (grub_efi_locate_handle): Likewise.
16477 (grub_efi_open_protocol): Likewise.
16478 (grub_efi_set_text_mode): Likewise.
16479 (grub_efi_stall): Likewise.
16480 (grub_exit): Likewise.
16481 (grub_reboot): Likewise.
16482 (grub_halt): Likewise.
16483 (grub_efi_exit_boot_services): Likewise.
16484 (grub_get_rtc): Likewise.
16485
16486 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
16487 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
16488 (grub_efi_allocate_pages): Wrap efi calls.
16489 (grub_efi_free_pages): Wrap efi calls.
16490 (grub_efi_get_memory_map): Wrap efi calls.
16491
16492 * kern/x86_64/dl.c: New file.
16493
16494 * kern/x86_64/efi/callwrap.S: Likewise.
16495
16496 * kern/x86_64/efi/startup.S: Likewise.
16497
16498 * loader/efi/appleloader.c: Likewise.
16499
16500 * loader/efi/chainloader.c (cmdline): New variable.
16501 (grub_chainloader_unload): Wrap efi calls.
16502 (grub_chainloader_boot): Likewise.
16503 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
16504 command line.
16505
16506 * loader/efi/chainloader_normal.c (chainloader_command):
16507 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
16508 command line.
16509
16510 * loader/i386/efi/linux.c (allocate_pages): Change allocation
16511 method.
16512 (grub_e820_add_region): New function.
16513 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
16514 booting.
16515 (grub_find_video_card): New function.
16516 (grub_linux_setup_video): New function.
16517 (grub_rescue_cmd_linux): Probe for video information.
16518
16519 * normal/x86_64/setjmp.S: New file.
16520
16521 * term/efi/console.c (map_char): New function.
16522 (grub_console_putchar): Map unicode char.
16523 (grub_console_checkkey): Wrap efi calls.
16524 (grub_console_getkey): Likewise.
16525 (grub_console_getwh): Likewise.
16526 (grub_console_gotoxy): Likewise.
16527 (grub_console_cls): Likewise.
16528 (grub_console_setcolorstate): Likewise.
16529 (grub_console_setcursor): Likewise.
16530
16531 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
16532
16533 2008-07-16 Pavel Roskin <proski@gnu.org>
16534
16535 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
16536 format strings.
16537
16538 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
16539 pointer, not an integer. This fixes a warning and prevents
16540 precision loss on 64-bit systems.
16541 (relocate_addresses): Remove unneeded cast.
16542
16543 2008-07-15 Pavel Roskin <proski@gnu.org>
16544
16545 * kern/i386/ieee1275/init.c: Include grub/cache.h.
16546
16547 * term/ieee1275/ofconsole.c: Disable code unused on i386.
16548
16549 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
16550 Fix comparison between signed and unsigned.
16551
16552 * include/grub/i386/ieee1275/console.h: Declare
16553 grub_console_init() and grub_console_fini().
16554
16555 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
16556 It's empty and unused.
16557
16558 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
16559 beginning to avoid warnings with some compilers.
16560
16561 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
16562 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
16563
16564 2008-07-14 Pavel Roskin <proski@gnu.org>
16565
16566 * kern/env.c (grub_register_variable_hook): Don't copy empty
16567 string, it leaks memory. Pass "" to grub_env_set(), it should
16568 handle constant strings.
16569
16570 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
16571 * commands/cmp.c (grub_cmd_cmp): Likewise.
16572 * kern/dl.c (grub_dl_flush_cache): Likewise.
16573 (grub_dl_load_core): Likewise.
16574 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
16575 (grub_elf64_load_phdrs): Likewise.
16576
16577 2008-07-13 Pavel Roskin <proski@gnu.org>
16578
16579 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
16580 between signed and unsigned.
16581 (LzmaEnc_Finish): Fix warning about an unused parameter.
16582
16583 2008-07-13 Bean <bean123ch@gmail.com>
16584
16585 * Makefile.in (enable_lzo): New rule.
16586
16587 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
16588
16589 * configure.ac (ENABLE_LZO): New option --enable-lzo.
16590
16591 * boot/i386/pc/lnxboot.S: #include <config.h>.
16592
16593 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
16594 its value according to the compression algorithm used, lzo or lzma.
16595
16596 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
16597 compression algorithm according to configure macro.
16598
16599 * kern/i386/pc/startup.S (codestart): Likewise.
16600
16601 * kern/i386/pc/lzma_decode.S: New file.
16602
16603 * include/grub/lib/LzFind.h: Likewise.
16604
16605 * include/grub/lib/LzHash.h: Likewise.
16606
16607 * include/grub/lib/LzmaDec.h: Likewise.
16608
16609 * include/grub/lib/LzmaEnc.h: Likewise.
16610
16611 * include/grub/lib/LzmaTypes.h: Likewise.
16612
16613 * lib/LzFind.c: Likewise.
16614
16615 * lib/LzmaDec.c: Likewise.
16616
16617 * lib/LzmaEnc.c: Likewise.
16618
16619 2008-07-13 Bean <bean123ch@gmail.com>
16620
16621 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
16622 (grub_ext4_extent_header): New structure.
16623 (grub_ext4_extent): Likewise.
16624 (grub_ext4_extent_idx): Likewise.
16625 (grub_ext4_find_leaf): New function.
16626 (grub_ext2_read_block): Handle extents.
16627
16628 2008-07-12 Robert Millan <rmh@aybabtu.com>
16629
16630 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
16631
16632 2008-07-11 Robert Millan <rmh@aybabtu.com>
16633
16634 * util/grub.d/40_custom.in: New file. Example on how to add custom
16635 entries to /etc/grub.d.
16636 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
16637 40_custom (implicitly, by merging all the grub.d rules).
16638
16639 2008-07-11 Pavel Roskin <proski@gnu.org>
16640
16641 * commands/read.c (grub_getline): Fix invalid memory access.
16642 Don't add newline to the variable value.
16643
16644 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
16645 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
16646 (serial_hw_get_port): Check validity of the port number.
16647 (grub_cmd_serial): Check return value of serial_hw_get_port().
16648
16649 2008-07-07 Pavel Roskin <proski@gnu.org>
16650
16651 * boot/i386/pc/diskboot.S (notification_string): Replace
16652 "Loading kernel" with just "loading". This is shorter, less
16653 confusing and saves a few bytes for possible future changes.
16654
16655 2008-07-05 Pavel Roskin <proski@gnu.org>
16656
16657 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
16658 size for ATAPI devices, they are undefined. Output sector
16659 number in decimal form.
16660
16661 * disk/ata.c: Use named constants for status bits.
16662
16663 2008-07-04 Pavel Roskin <proski@gnu.org>
16664
16665 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
16666 grub_addr_t before casting it to the void pointer to fix a
16667 warning. Non-addressable regions are discarded earlier.
16668 (grub_arch_modules_addr): Cast _end to grub_addr_t.
16669 * kern/i386/linuxbios/table.c: Include grub/misc.h.
16670 (check_signature): Don't shadow table_header.
16671 (grub_linuxbios_table_iterate): Cast numeric constants to
16672 grub_linuxbios_table_header_t.
16673 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
16674 grub_stop().
16675
16676 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
16677 prevent warnings.
16678
16679 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
16680 pointer, which can cause warnings. Support 64-bit addresses.
16681
16682 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
16683 of sizeof(long). This fixes PowerPC image generation on x86_64.
16684
16685 2008-07-04 Robert Millan <rmh@aybabtu.com>
16686
16687 This fixes a performance issue when pc & gpt partmap iterators
16688 didn't abort iteration even after our hook found what it was
16689 looking for (often causing expensive probes of non-existent drives).
16690
16691 Some callers relied on previous buggy behaviour, since they would
16692 raise an error when their own hooks caused early abortion of its
16693 iteration.
16694
16695 * kern/device.c (grub_device_open): Improve error message.
16696 * disk/lvm.c (grub_lvm_open): Likewise.
16697 * disk/raid.c (grub_raid_open): Likewise.
16698
16699 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
16700 when hook requests it, independently of grub_errno.
16701 (pc_partition_map_probe): Do not fail when find_func() caused
16702 early abortion of pc_partition_map_iterate().
16703
16704 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
16705 when hook requests it, independently of grub_errno.
16706 (gpt_partition_map_probe): Do not fail when find_func() caused
16707 early abortion of gpt_partition_map_iterate().
16708
16709 * kern/partition.c (grub_partition_iterate): Abort parent iteration
16710 when hook requests it, independently of grub_errno. Do not fail when
16711 part_map_iterate_hook() caused early abortion of p->iterate().
16712
16713 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
16714 when grub_partition_iterate() returned with non-zero.
16715
16716 2008-07-03 Pavel Roskin <proski@gnu.org>
16717
16718 * disk/ata.c (grub_ata_pio_write): Check status before writing,
16719 like we do in grub_ata_pio_read().
16720 (grub_ata_readwrite): Always write individual sectors. Fix the
16721 sector count for the remainder.
16722 (grub_ata_write): Enable writing to ATA devices. Correctly
16723 report error for ATAPI devices.
16724
16725 2008-07-02 Pavel Roskin <proski@gnu.org>
16726
16727 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
16728 warning.
16729
16730 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
16731 for every read sector, we already increment it for the whole
16732 batch. This fixes reading more than 256 sectors at once.
16733
16734 * util/grub-editenv.c (cmd_info): Cast argument to long
16735 explicitly. ptrdiff_t reduces to int on i386.
16736
16737 * util/grub-editenv.c (main): Be specific which parameter is
16738 missing.
16739
16740 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
16741 (memdisk): Make memdisk_orig_addr a pointer.
16742
16743 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
16744 for file offsets, use grub_off_t instead. Fix printf format
16745 warnings.
16746
16747 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
16748 there. Real unexpected warnings should not drown in the noise
16749 about known problems.
16750
16751 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
16752 grub_disk_addr_t for memory addresses.
16753
16754 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
16755 explicitly to fix a warning.
16756
16757 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
16758
16759 * Makefile.in (MODULE_LDFLAGS): New variable.
16760 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
16761 the linker accepts --build-id=none.
16762 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
16763 MODULE_LDFLAGS.
16764 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
16765
16766 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
16767 those in Linux XFS code. Provide a way to access 64-bit parent
16768 inode.
16769 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
16770 the end of struct grub_xfs_dir_header.
16771
16772 2008-07-02 Bean <bean123ch@gmail.com>
16773
16774 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
16775 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
16776 and GRUB_IEEE1275_FLAG_NO_ANSI.
16777
16778 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
16779 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
16780 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
16781
16782 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
16783 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
16784
16785 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
16786 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
16787
16788 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
16789 esc sequence on non ANSI terminal.
16790 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
16791
16792 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
16793 beginning of file.
16794
16795 2008-07-02 Bean <bean123ch@gmail.com>
16796
16797 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
16798 (grub_editenv_SOURCES): New variable.
16799 (pkglib_MODULES): Add loadenv.mod.
16800 (loadenv_mod_SOURCES): New variable.
16801 (loadenv_mod_CFLAGS): Likewise.
16802 (loadenv_mod_LDFLAGS): Likewise.
16803
16804 * include/grub/envblk.h: New file.
16805
16806 * util/envblk.c: New file.
16807
16808 * util/grub-editenv.c: New file.
16809
16810 * commands/loadenv.c: New file.
16811
16812 2008-07-01 Pavel Roskin <proski@gnu.org>
16813
16814 * include/multiboot2.h (struct multiboot_tag_module): Use char,
16815 not unsigned char. This fixes warnings and is consistent with
16816 other tags.
16817
16818 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
16819
16820 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
16821
16822 * term/tparm.c (analyze): Always set *popcount.
16823
16824 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
16825 cast to fix a warning.
16826
16827 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
16828 cast to suppress a warning.
16829
16830 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
16831 grub_fshelp_read_file() expects.
16832
16833 * fs/fat.c: Fix UUID calculation on big-endian systems. We
16834 write uuid as a 32-bit value in CPU byte order, so declare and
16835 use it as such.
16836
16837 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
16838 long if the format specifier expects it.
16839 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
16840 * partmap/pc.c (pc_partition_map_iterate): Likewise.
16841 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
16842 long to fix a warning.
16843 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
16844 grub_dprintf() arguments to fix warnings.
16845
16846 2008-06-30 Pavel Roskin <proski@gnu.org>
16847
16848 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
16849 install_bsd_part immediately before core.img is embedded or
16850 modified on disk. This fixes core.img verification if core.img
16851 cannot be embedded.
16852
16853 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
16854 core_path to calculate the blocklist.
16855 Patch from Javier Martín <lordhabbit@gmail.com>
16856
16857 2008-06-29 Robert Millan <rmh@aybabtu.com>
16858
16859 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
16860 block to disk block.
16861 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
16862 Patch from Niels Böhm <bitbucket@arcor.de>
16863
16864 2008-06-29 Robert Millan <rmh@aybabtu.com>
16865
16866 * util/update-grub_lib.in (font_path): Search for fonts in
16867 /boot/grub first, which is more likely to be readable (we aren't
16868 deciding where fonts live, just looking for them).
16869
16870 2008-06-26 Pavel Roskin <proski@gnu.org>
16871
16872 * util/biosdisk.c (read_device_map): Don't leave dead map
16873 entries for devices failing stat() check.
16874
16875 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
16876 core_path_dev for the core.img path on the target device.
16877
16878 2008-06-26 Robert Millan <rmh@aybabtu.com>
16879
16880 * disk/fs_uuid.c: New file.
16881 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
16882 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
16883 (fs_uuid_mod_LDFLAGS): New variables.
16884 * include/grub/disk.h (grub_disk_dev_id): Add
16885 `GRUB_DISK_DEVICE_UUID_ID'.
16886 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
16887 implement iterate().
16888
16889 2008-06-26 Robert Millan <rmh@aybabtu.com>
16890
16891 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
16892 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
16893 Linux image includes no initrd.
16894
16895 2008-06-21 Javier Martín <lordhabbit@gmail.com>
16896
16897 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
16898 call to resolve the core image location that effectively appended the
16899 name twice.
16900
16901 2008-06-21 Robert Millan <rmh@aybabtu.com>
16902
16903 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
16904 call from here ...
16905
16906 * util/grub.d/10_hurd.in: ... to here ...
16907 * util/grub.d/10_linux.in: ... and here.
16908
16909 2008-06-19 Robert Millan <rmh@aybabtu.com>
16910
16911 * kern/main.c (grub_main): Export `prefix' variable immediately
16912 after it has been set by grub_machine_set_prefix().
16913
16914 2008-06-19 Robert Millan <rmh@aybabtu.com>
16915
16916 * commands/search.c (search_label, search_fs_uuid, search_file): Print
16917 search result when not saving to variable, not the other way around.
16918 When saving to variable, abort iteration as soon as a match is found.
16919
16920 2008-06-19 Robert Millan <rmh@aybabtu.com>
16921
16922 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
16923 check for partition that provides /boot/grub. Its logic is flawed,
16924 as it prevents prepare_grub_to_access_device() from being called
16925 multiple times.
16926
16927 2008-06-19 Robert Millan <rmh@aybabtu.com>
16928
16929 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
16930 "insmod" command directly when abstraction modules are needed,
16931 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
16932 since it had already been processed).
16933
16934 2008-06-19 Pavel Roskin <proski@gnu.org>
16935
16936 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
16937 changed. This is needed in case GRUB_LIBDIR changes.
16938 * conf/i386-ieee1275.rmk: Likewise.
16939 * conf/i386-linuxbios.rmk: Likewise.
16940 * conf/i386-pc.rmk: Likewise.
16941 * conf/powerpc-ieee1275.rmk: Likewise.
16942
16943 2008-06-18 Pavel Roskin <proski@gnu.org>
16944
16945 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
16946 kernel_elf_symlist.c to symlist.c for consistency with other
16947 architectures. Update all users.
16948 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16949
16950 2008-06-18 Robert Millan <rmh@aybabtu.com>
16951
16952 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
16953 it in prefix.
16954
16955 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
16956 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
16957 a RAID device, run setup() for all members independently on whether
16958 LVM abstraction is being used.
16959 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
16960 If grub-mkimage has set `*install_dos_part == -2', don't override this
16961 value.
16962 Perform *install_dos_part adjustments independently on whether
16963 we're embedding or not.
16964 Clarify error message when image is too big for embedding.
16965 Remove duplicate *install_dos_part stanza.
16966
16967 2008-06-17 Robert Millan <rmh@aybabtu.com>
16968
16969 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
16970 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
16971 variables.
16972 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
16973 values in grub_ofconsole_normal_color and
16974 grub_ofconsole_highlight_color (they're not directly related to
16975 background and foreground).
16976 (grub_ofconsole_setcolorstate): Extract background and foreground
16977 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
16978
16979 2008-06-17 Robert Millan <rmh@aybabtu.com>
16980
16981 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
16982 /boot/grub for the check in last commit, not /boot (they could be
16983 different partitions).
16984
16985 2008-06-16 Robert Millan <rmh@aybabtu.com>
16986
16987 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
16988 asked to setup access for the same partition that provides /boot,
16989 don't bother using UUIDs since our root already has the value we
16990 want.
16991
16992 2008-06-16 Robert Millan <rmh@aybabtu.com>
16993
16994 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
16995 I2O devices.
16996 Patch from Sven Mueller <sven@debian.org>.
16997
16998 2008-06-16 Robert Millan <rmh@aybabtu.com>
16999
17000 * util/update-grub.in: Check for $EUID instead of $UID.
17001 Reported by Vincent Zweije.
17002
17003 2008-06-16 Bean <bean123ch@gmail.com>
17004
17005 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
17006 (grub_ext2_read_block): Likewise.
17007 (grub_ext2_read_inode): Likewise.
17008 (grub_ext2_mount): Likewise.
17009 (grub_ext2_close): Likewise.
17010 (grub_ext3_get_journal): Removed.
17011
17012 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
17013 (grub_reiserfs_read_symlink): Likewise.
17014 (grub_reiserfs_mount): Likewise.
17015 (grub_reiserfs_open): Likewise.
17016 (grub_reiserfs_read): Likewise.
17017 (grub_reiserfs_close): Likewise.
17018 (grub_reiserfs_get_journal): Removed.
17019
17020 * fs/fshelp.c (grub_fshelp_read): Removed.
17021 (grub_fshelp_map_block): Likewise.
17022
17023 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
17024 (grub_fshelp_journal): Likewise.
17025 (grub_fshelp_read): Likewise.
17026 (grub_fshelp_map_block): Likewise.
17027
17028 2008-06-16 Pavel Roskin <proski@gnu.org>
17029
17030 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
17031 floating point anymore.
17032 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
17033
17034 2008-06-15 Pavel Roskin <proski@gnu.org>
17035
17036 * commands/ls.c (grub_ls_list_files): Use integer calculations
17037 for human readable format, avoid floating point use.
17038 * kern/misc.c (grub_ftoa): Remove.
17039 (grub_vsprintf): Remove floating point support.
17040
17041 2008-06-15 Robert Millan <rmh@aybabtu.com>
17042
17043 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
17044 devices.
17045 Reported by Max Vozeler.
17046
17047 2008-06-15 Robert Millan <rmh@aybabtu.com>
17048
17049 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
17050 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
17051 skipped later.
17052 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
17053 the beginning of the prefix.
17054
17055 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
17056 It is assumed that if we have a memdisk, grub-mkimage has set
17057 grub_prefix to include the "(memdisk)" drive in it.
17058
17059 2008-06-15 Robert Millan <rmh@aybabtu.com>
17060
17061 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
17062 Initialize keyboard controller after registering the terminal, so that
17063 grub_printf() can be called from grub_keyboard_controller_init().
17064
17065 2008-06-15 Robert Millan <rmh@aybabtu.com>
17066
17067 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
17068 extent-btree which is written as big endian on disk.
17069 Reported by Alain Greppin <al@chilibi.org>.
17070
17071 2008-06-14 Robert Millan <rmh@aybabtu.com>
17072
17073 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
17074 * util/i386/pc/grub-install.in (modules): Likewise.
17075
17076 2008-06-13 Pavel Roskin <proski@gnu.org>
17077
17078 * commands/ls.c (grub_ls_list_files): Fix format warnings.
17079
17080 2008-06-13 Bean <bean123ch@gmail.com>
17081
17082 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
17083
17084 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
17085
17086 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
17087 to indicate sparse block.
17088
17089 2008-06-12 Pavel Roskin <proski@gnu.org>
17090
17091 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
17092 number, grub_fshelp_read() does it for us.
17093
17094 * fs/fshelp.c (grub_fshelp_read): New function. Implement
17095 linear disk read with journal translation.
17096 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
17097 * include/grub/fshelp.h: Declare grub_fshelp_read().
17098
17099 2008-06-09 Pavel Roskin <proski@gnu.org>
17100
17101 * fs/minix.c (grub_minix_mount): Handle error reading
17102 superblock.
17103
17104 2008-06-08 Robert Millan <rmh@aybabtu.com>
17105
17106 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
17107 don't append the RAID prefix afterwards.
17108 Reported by Clint Adams.
17109
17110 2008-06-08 Robert Millan <rmh@aybabtu.com>
17111
17112 Based on description from Pavel:
17113 * kern/disk.c (grub_disk_check_range): Rename to ...
17114 (grub_disk_adjust_range): ... this. Add a comment explaining the
17115 tasks performed by this function.
17116
17117 2008-06-08 Robert Millan <rmh@aybabtu.com>
17118
17119 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
17120 `num_serial' (for consistency with other variables).
17121 (struct grub_ntfs_data): Add `uuid' member.
17122 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
17123 (grub_ntfs_uuid): New function.
17124 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
17125
17126 2008-06-07 Pavel Roskin <proski@gnu.org>
17127
17128 * util/biosdisk.c (open_device): Revert last change to the
17129 function, it broke installation. The sector needs to be
17130 different dependent on which device is opened.
17131
17132 2008-06-06 Robert Millan <rmh@aybabtu.com>
17133
17134 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
17135 rest of GRUB, and breakage doesn't happen if its value were modified.
17136
17137 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17138 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
17139 a constant (same value).
17140 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
17141 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
17142
17143 2008-06-06 Robert Millan <rmh@aybabtu.com>
17144
17145 * util/biosdisk.c (open_device): Do not modify sector offset when
17146 accessing a partition. kern/disk.c already handles this for us.
17147
17148 2008-06-06 Robert Millan <rmh@aybabtu.com>
17149
17150 * util/grub-emu.c (grub_machine_init): Move code in this function from
17151 here ...
17152 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
17153 segfault in case grub_printf() is called).
17154
17155 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
17156 grub_probe. Update all users not to explicitly add it again.
17157 (grub_device): New variable; contains corresponding device for grubdir.
17158 (fs_module, partmap_module, devabstraction_module): Pass
17159 `--device ${grub_device}' to grub_probe to avoid traversing /dev
17160 every time.
17161
17162 2008-06-05 Robert Millan <rmh@aybabtu.com>
17163
17164 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
17165 is found, print it (same layout as with labels).
17166
17167 2008-06-04 Robert Millan <rmh@aybabtu.com>
17168
17169 * util/biosdisk.c (get_drive): Rename to ...
17170 (find_grub_drive): ... this. Update all users.
17171
17172 (get_os_disk): Rename to ...
17173 (convert_system_partition_to_system_disk): ... this. Update all users.
17174
17175 (find_drive): Rename to ...
17176 (find_system_device): ... this. Update all users.
17177
17178 2008-06-04 Robert Millan <rmh@aybabtu.com>
17179
17180 * util/biosdisk.c (get_os_disk): Handle IDA devices.
17181 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17182 (make_device_map): Likewise.
17183
17184 2008-06-01 Robert Millan <rmh@aybabtu.com>
17185
17186 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
17187 before dereferencing it.
17188
17189 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
17190 union with fat12/fat16-specific ones. Add some new fields, including
17191 `num_serial' for both versions.
17192 (struct grub_fat_data): Add `uuid' member.
17193 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
17194 names. Initialize `data->uuid' using `num_serial'.
17195 (grub_fat_uuid): New function.
17196 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
17197
17198 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
17199 (grub_reiserfs_uuid): New function.
17200 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
17201 member.
17202
17203 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
17204 (grub_xfs_uuid): New function.
17205 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
17206
17207 2008-06-01 Robert Millan <rmh@aybabtu.com>
17208
17209 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
17210 code that is backward compatible with pre-uuid search command.
17211
17212 2008-05-31 Robert Millan <rmh@aybabtu.com>
17213
17214 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
17215 floppies after everything else, to ensure floppy drive isn't accessed
17216 unnecessarily (patch from Bean).
17217
17218 2008-05-31 Robert Millan <rmh@aybabtu.com>
17219
17220 * commands/search.c (search_label, search_fs_uuid, search_file): Do
17221 not print device names when we were asked to set a variable.
17222
17223 2008-05-31 Robert Millan <rmh@aybabtu.com>
17224
17225 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
17226 using "cursor-on" and "cursor-off" commands (understood at least by
17227 the Open Firmware flavour on OLPC).
17228
17229 2008-05-31 Michael Gorven <michael@gorven.za.net>
17230
17231 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
17232 on and off sequences.
17233
17234 2008-05-31 Robert Millan <rmh@aybabtu.com>
17235
17236 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
17237 * util/update-grub.in: Likewise.
17238
17239 2008-05-30 Pavel Roskin <proski@gnu.org>
17240
17241 * util/biosdisk.c (linux_find_partition): Simplify logic and
17242 make the code more universal. Keep special processing for
17243 devfs, but use a simple rule for all other devices. If the
17244 device ends with a number, append 'p' and the partition number.
17245 Otherwise, append only the partition number.
17246
17247 2008-05-30 Robert Millan <rmh@aybabtu.com>
17248
17249 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
17250 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
17251 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
17252 the `root' parameter to Linux.
17253
17254 2008-05-30 Robert Millan <rmh@aybabtu.com>
17255
17256 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
17257 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
17258 --fs_uuid with --fs-uuid.
17259 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
17260 all filesystems support them).
17261
17262 2008-05-30 Robert Millan <rmh@aybabtu.com>
17263
17264 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
17265 grub_printf() flags, since we're printing in units of 2 bytes.
17266
17267 2008-05-30 Robert Millan <rmh@aybabtu.com>
17268
17269 * util/grub.d/00_header.in: Remove obsolete comment referencing
17270 convert_system_path_to_grub_path().
17271 * util/update-grub.in: Likewise.
17272 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
17273 (convert_system_path_to_grub_path): Add a warning message explaining
17274 that this function is deprecated. Rely on is_path_readable_by_grub()
17275 for the readability checks.
17276 (font_path): Use is_path_readable_by_grub() for the readability
17277 check rather than convert_system_path_to_grub_path().
17278
17279 2008-05-30 Robert Millan <rmh@aybabtu.com>
17280
17281 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
17282 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
17283 converting it first.
17284 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
17285 grub.cfg for access to font file, and afterwards call it again to set
17286 the root device.
17287
17288 2008-05-30 Robert Millan <rmh@aybabtu.com>
17289
17290 * commands/search.c (options): Add --fs_uuid option.
17291 (search_fs_uuid): New function.
17292 (grub_cmd_search): Fix --set argument passing.
17293 Use search_fs_uuid() when requested via --fs_uuid.
17294 (grub_search_init): Update help message.
17295 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
17296 and redeclare it as an array of 16-bit words.
17297 (grub_ext2_uuid): New function.
17298 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
17299 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
17300 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
17301 (GRUB_DEVICE_BOOT_UUID): New variables.
17302 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
17303 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
17304 whenever possible.
17305 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
17306 just assume `root' variable has the right value.
17307 * util/grub.d/10_linux.in: Likewise.
17308 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
17309 via PRINT_FS_UUID.
17310 (main): Recognise `-t fs_uuid' argument.
17311
17312 2008-05-30 Robert Millan <rmh@aybabtu.com>
17313
17314 * util/biosdisk.c (map): Redefine structure to hold information
17315 about GRUB drive name.
17316 (get_drive): Reimplement without assuming (and verifying) BIOS-like
17317 drive names.
17318 (call_hook): Remove.
17319 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
17320 member. Assume drive has partitions.
17321 (grub_util_biosdisk_open): Access device names via `.device' struct
17322 member.
17323 (open_device): Likewise.
17324 (find_drive): Likewise.
17325 (read_device_map): Adjust map[] usage to match the new struct
17326 definition. Don't check for duplicates (still possible, but not cheap
17327 anymore).
17328 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
17329 (make_device_name): Remove assumption of BIOS-like drive names.
17330
17331 2008-05-30 Pavel Roskin <proski@gnu.org>
17332
17333 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
17334 compiling execute.c doesn't need grub_script.tab.h anymore.
17335 (normal/command.c_DEPENDENCIES): Likewise.
17336 (normal/function.c_DEPENDENCIES): Likewise.
17337 * conf/i386-ieee1275.rmk: Likewise.
17338 * conf/i386-linuxbios.rmk: Likewise.
17339 * conf/i386-pc.rmk: Likewise.
17340 * conf/powerpc-ieee1275.rmk: Likewise.
17341 * conf/sparc64-ieee1275.rmk: Likewise.
17342
17343 2008-05-29 Pavel Roskin <proski@gnu.org>
17344
17345 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
17346 when scanning metadata for volume group name.
17347
17348 * include/grub/script.h: Don't include grub_script.tab.h. It's
17349 a generated file, which may only be included from the files with
17350 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
17351 use union YYSTYPE, as the later allows forward declaration.
17352 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
17353
17354 2008-05-29 Robert Millan <rmh@aybabtu.com>
17355
17356 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
17357 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
17358 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
17359 (grub_console_checkkey): Add grub_dprintf() call to report unknown
17360 scan codes.
17361
17362 2008-05-29 Robert Millan <rmh@aybabtu.com>
17363
17364 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
17365 control key combinations.
17366
17367 2008-05-29 Robert Millan <rmh@aybabtu.com>
17368
17369 * util/powerpc/ieee1275/grub-install.in: Move from here ...
17370 * util/ieee1275/grub-install.in: ... to here.
17371 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
17372 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
17373 (grub_install_SOURCES): Likewise.
17374
17375 2008-05-29 Robert Millan <rmh@aybabtu.com>
17376
17377 * fs/affs.c: Update copyright year.
17378 * fs/ext2.c: Likewise.
17379 * fs/fshelp.c: Likewise.
17380 * fs/hfsplus.c: Likewise.
17381 * fs/ntfs.c: Likewise.
17382 * fs/xfs.c: Likewise.
17383 * include/grub/fshelp.h: Likewise.
17384 * util/grub-mkdevicemap.c: Likewise.
17385
17386 2008-05-28 Robert Millan <rmh@aybabtu.com>
17387
17388 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
17389 might need to be fatfs to support some firmware implementations
17390 (e.g. OFW or EFI).
17391
17392 2008-05-28 Robert Millan <rmh@aybabtu.com>
17393
17394 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
17395 devices.
17396 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17397 (make_device_map): Likewise.
17398
17399 2008-05-20 Bean <bean123ch@gmail.com>
17400
17401 * fs/fshelp.c (grub_fshelp_map_block): New function.
17402 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
17403 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
17404
17405 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
17406 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
17407 (grub_fshelp_journal): New structure.
17408 (grub_fshelp_map_block): New function prototype.
17409 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
17410 (grub_fshelp_map_block): Likewise.
17411
17412 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
17413 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
17414 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
17415 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
17416 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
17417 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
17418 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
17419 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
17420 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
17421 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
17422 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
17423 (grub_ext2_sblock): New members for journal support.
17424 (grub_ext3_journal_header): New structure.
17425 (grub_ext3_journal_revoke_header): Likewise.
17426 (grub_ext3_journal_block_tag): Likewise.
17427 (grub_ext3_journal_sblock): Likewise.
17428 (grub_fshelp_node): New members logfile and journal.
17429 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
17430 grub_fshelp_map_block to get real block number.
17431 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
17432 number.
17433 (grub_ext2_read_inode): Likewise.
17434 (grub_ext3_get_journal): New function.
17435 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
17436 (grub_ext2_close): Release memory used by journal.
17437
17438 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
17439 (REISERFS_MAGIC_DESC_BLOCK): New macro.
17440 (grub_reiserfs_transaction_header): Renamed to
17441 grub_reiserfs_description_block, replace field data with real_blocks.
17442 (grub_reiserfs_commit_block): New structure.
17443 (grub_reiserfs_data): New member journal.
17444 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
17445 number.
17446 (grub_reiserfs_read_symlink): Likewise.
17447 (grub_reiserfs_iterate_dir): Likewise.
17448 (grub_reiserfs_open): Likewise.
17449 (grub_reiserfs_read): Likewise.
17450 (grub_reiserfs_get_journal): New function.
17451 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
17452 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
17453 using grub_reiserfs_get_journal.
17454 (grub_reiserfs_close): Release memory used by journal.
17455
17456 * fs/affs.c (grub_affs_read_block): Change block type to
17457 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
17458
17459 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
17460
17461 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
17462
17463 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
17464
17465 * fs/udf.c (grub_udf_read_block): Change block type to
17466 grub_disk_addr_t. Use type cast to avoid warning.
17467
17468 * fs/xfs.c (grub_xfs_read_block): Likewise.
17469
17470 2008-05-16 Christian Franke <franke@computer.org>
17471
17472 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
17473 to ensure that break with ESC will always work.
17474 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
17475 Remove ESC from keyboard queue.
17476
17477 2008-05-16 Christian Franke <franke@computer.org>
17478
17479 * util/biosdisk.c: [__CYGWIN__] Add includes.
17480 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
17481 (get_os_disk): Move variable declarations to OS specific
17482 parts to avoid warning.
17483 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
17484 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
17485 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
17486 Cygwin.
17487 * util/getroot.c: [__CYGWIN__] Add includes.
17488 (strip_extra_slashes): Fix "/" case.
17489 [__CYGWIN__] (get_win32_path): New function.
17490 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
17491 [__CYGWIN__] (find_root_device): Disable.
17492 [__CYGWIN__] (get_bootsec_serial): New function.
17493 [__CYGWIN__] (find_cygwin_root_device): Likewise.
17494 [__linux__] (grub_guess_root_device): Add early returns to simplify
17495 structure.
17496 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
17497 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
17498 check for Linux only.
17499
17500 2008-05-15 Bean <bean123ch@gmail.com>
17501
17502 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
17503 keyboard hang problem in apple's intel mac.
17504
17505 2008-05-09 Robert Millan <rmh@aybabtu.com>
17506
17507 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
17508 devices.
17509 * util/grub-mkdevicemap.c (get_virtio_disk_name)
17510 (make_device_map): Likewise.
17511 Reported by Aurelien Jarno <aurel32@debian.org>
17512
17513 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
17514
17515 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
17516 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
17517 (make_device_map): Output entries for xvd type disks.
17518
17519 2008-05-07 Robert Millan <rmh@aybabtu.com>
17520
17521 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
17522 devices.
17523 * util/grub-mkdevicemap.c (get_cciss_disk_name)
17524 (make_device_map): Likewise.
17525 Reported by Roland Dreier <rdreier@cisco.com>
17526
17527 2008-05-07 Robert Millan <rmh@aybabtu.com>
17528
17529 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
17530 grub_strstr() call. Correct a few mistakes in failure path handling.
17531
17532 2008-05-06 Robert Millan <rmh@aybabtu.com>
17533
17534 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
17535 Do not print a trailing slash (therefore, the root directory is an
17536 empty string).
17537 (convert_system_path_to_grub_path): Do not remove trailing slash
17538 from make_system_path_relative_to_its_root() output.
17539
17540 * util/i386/pc/grub-install.in: Add trailing slash to output from
17541 make_system_path_relative_to_its_root().
17542
17543 2008-05-06 Robert Millan <rmh@aybabtu.com>
17544
17545 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
17546 ensures that output lines aren't intermangled with those sent to
17547 stderr (via grub_util_info()).
17548 * util/grub-probe.c (grub_refresh): Likewise.
17549 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
17550
17551 2008-05-05 Christian Franke <franke@computer.org>
17552
17553 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
17554 Add Cygwin device names.
17555 (get_ide_disk_name) [__CYGWIN__]: Likewise.
17556 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
17557 (check_device): Return error instead of success on empty name.
17558 (make_device_map): Move label inside linux specific code to
17559 prevent compiler warning.
17560
17561 2008-04-30 Robert Millan <rmh@aybabtu.com>
17562
17563 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
17564 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
17565 first boot option.
17566 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
17567
17568 2008-04-29 Robert Millan <rmh@aybabtu.com>
17569
17570 * docs/grub.cfg: New file (example GRUB configuration).
17571
17572 2008-04-26 Robert Millan <rmh@aybabtu.com>
17573
17574 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
17575 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
17576 and `disk/ieee1275/nand.c'.
17577
17578 2008-04-25 Bean <bean123ch@gmail.com>
17579
17580 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
17581 i386-linuxbios.
17582
17583 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
17584 change the buffer size to 4096 for cdrom device.
17585
17586 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
17587 and nand.mod.
17588 (_linux_mod_SOURCES): New variable.
17589 (_linux_mod_CFLAGS): Likewise.
17590 (_linux_mod_LDFLAGS): Likewise.
17591 (linux_mod_SOURCES): Likewise.
17592 (linux_mod_CFLAGS): Likewise.
17593 (linux_mod_LDFLAGS): Likewise.
17594 (nand_mod_SOURCES): Likewise.
17595 (nand_mod_CFLAGS): Likewise.
17596 (nand_mod_LDFLAGS): Likewise.
17597
17598 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
17599 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
17600 type property. (nand device in olpc don't have this property)
17601
17602 * include/grub/disk.h (grub_disk_dev_id): New macro
17603 GRUB_DISK_DEVICE_NAND_ID.
17604
17605 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
17606 function prototype.
17607 (grub_rescue_cmd_initrd): Likewise.
17608
17609 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
17610 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
17611 ofw_cif_handler and ofw_idt, adjust padding number.
17612
17613 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
17614 GRUB_MACHINE_IEEE1275 is defined.
17615
17616 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
17617 Use NESTED_FUNC_ATTR attribute on the hook parameter.
17618
17619 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
17620 on nested function heap_init.
17621 (grub_upper_mem): New variable for i386-ieee1275.
17622 (grub_get_extended_memory): New function for i386-ieee1275.
17623 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
17624
17625 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
17626 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
17627 property.
17628
17629 * loader/i386/ieee1275/linux.c: New file.
17630
17631 * loader/i386/ieee1275/linux_normal.c: New file.
17632
17633 * disk/ieee1275/nand.c: New file.
17634
17635 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
17636
17637 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
17638 value.
17639 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
17640
17641 2008-04-18 Robert Millan <rmh@aybabtu.com>
17642
17643 Restructures early code path on ieee1275 to unify grub_main() as
17644 the first C function that is executed in every platform.
17645
17646 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
17647 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
17648 cmain().
17649 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
17650 * kern/ieee1275/cmain.c (cmain): Rename to ...
17651 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
17652 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
17653 at the beginning.
17654
17655 2008-04-18 Robert Millan <rmh@aybabtu.com>
17656
17657 * util/update-grub.in: Fix syntax error when setting
17658 `GRUB_PRELOAD_MODULES'.
17659 Reported by Stephane Chazelas <stephane@artesyncp.com>
17660
17661 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
17662
17663 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
17664 section into account, newer toolchains generate unique build ids
17665 * configure.ac: remove the test for --build-id=none acceptance,
17666 we want build ids to be preserved
17667 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
17668 far from other sections don't cause the raw binary images grow
17669 size
17670
17671 2008-04-15 Robert Millan <rmh@aybabtu.com>
17672
17673 * disk/lvm.c: Update copyright year.
17674 * kern/misc.c: Likewise.
17675
17676 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
17677
17678 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
17679 there is no memory left for physical volume name.
17680
17681 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
17682
17683 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
17684 volume name mapping to support bigger than 9 character names properly.
17685
17686 2008-04-13 Robert Millan <rmh@aybabtu.com>
17687
17688 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
17689 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
17690
17691 2008-04-13 Christian Franke <franke@computer.org>
17692
17693 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
17694 to create a floppy emulation boot CD when non emulation mode
17695 does not work.
17696 Enable Joliet CD filesystem extension.
17697
17698 2008-04-13 Robert Millan <rmh@aybabtu.com>
17699
17700 * kern/misc.c (grub_strncat): Fix off-by-one error.
17701 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
17702
17703 * kern/env.c (grub_env_context_close): Clear current context, not
17704 previous one.
17705 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
17706
17707 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
17708
17709 2008-04-13 Robert Millan <rmh@aybabtu.com>
17710
17711 Improve robustness when handling LVM.
17712
17713 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
17714 (and leave `*p' unmodified).
17715 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
17716 through it.
17717 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
17718 iterating through it.
17719 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
17720 through it.
17721 (grub_lvm_scan_device): Check the return value (and fail gracefully
17722 when due) on each grub_lvm_getvalue() or grub_strstr() call.
17723 Don't assume `vg->pvs != NULL' when iterating through it.
17724
17725 2008-04-13 Robert Millan <rmh@aybabtu.com>
17726
17727 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
17728 * genmk.rb (partmap): New variable.
17729 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
17730 (#{partmap}): New target rule.
17731 * genpartmaplist.sh: New file.
17732 * Makefile.in (pkglib_DATA): Add partmap.lst.
17733 (partmap.lst): New target rule.
17734 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
17735 modules (including all partition maps), instead of preloading them.
17736
17737 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
17738
17739 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
17740 `linux-boot-prober' (if installed) to detect other operating
17741 systems which are installed on the computer and add them to
17742 the boot menu.
17743 * conf/common.rmk: Build and install 30_os-prober.
17744
17745 2008-04-12 Robert Millan <rmh@aybabtu.com>
17746
17747 * kern/powerpc/ieee1275/init.c: Move from here ...
17748 * kern/ieee1275/init.c: ... to here. Update all users.
17749
17750 * kern/powerpc/ieee1275/cmain.c: Move from here ...
17751 * kern/ieee1275/cmain.c: ... to here. Update all users.
17752
17753 * kern/powerpc/ieee1275/openfw.c: Move from here ...
17754 * kern/ieee1275/openfw.c: ... to here. Update all users.
17755
17756 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
17757 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
17758
17759 2008-04-10 Pavel Roskin <proski@gnu.org>
17760
17761 * configure.ac: Always use "_cv_" in cache variables for
17762 compatibility with Autoconf 2.62.
17763
17764 2008-04-07 Robert Millan <rmh@aybabtu.com>
17765
17766 Revert grub/machine/init.h addition by Pavel (since it breaks on
17767 i386-ieee1275 and others):
17768 * util/i386/pc/misc.c: Remove grub/machine/init.h.
17769 * util/powerpc/ieee1275/misc.c: Likewise.
17770
17771 2008-04-07 Robert Millan <rmh@aybabtu.com>
17772
17773 * util/grub-probe.c (probe): Improve error message.
17774
17775 2008-04-07 Robert Millan <rmh@aybabtu.com>
17776
17777 * util/biosdisk.c (read_device_map): Skip devices that don't exist
17778 (this prevents the presence of a bogus entry from ruining the whole
17779 thing).
17780
17781 2008-04-06 Pavel Roskin <proski@gnu.org>
17782
17783 * util/biosdisk.c: Include grub/util/biosdisk.h.
17784 * util/grub-fstest.c (execute_command): Make static.
17785 * util/grub-mkdevicemap.c (check_device): Likewise.
17786 * util/i386/pc/misc.c: Include grub/machine/init.h.
17787 * util/powerpc/ieee1275/misc.c: Likewise.
17788 * util/lvm.c: Include grub/util/lvm.h.
17789 * util/misc.c: Include grub/kernel.h, grub/misc.h and
17790 grub/cache.h.
17791 * util/raid.c: Include grub/util/raid.h.
17792 (grub_util_getdiskname): Make static.
17793
17794 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
17795 grub_hostfs_fini(), as they are called from grub_init_all() and
17796 grub_fini_all() respectively. This fixes an infinite loop in
17797 grub-fstest due to double registration of hostfs.
17798 Reported by Christian Franke <Christian.Franke@t-online.de>
17799
17800 2008-04-05 Pavel Roskin <proski@gnu.org>
17801
17802 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
17803 all 8 functions. Otherwise, probe function 0 only.
17804
17805 2008-04-04 Pavel Roskin <proski@gnu.org>
17806
17807 * commands/lspci.c (grub_lspci_iter): Print the bus number
17808 correctly.
17809
17810 * commands/lspci.c (grub_pci_classes): Fix typos.
17811 (grub_lspci_iter): Don't print func twice. Print vendor ID
17812 before device ID, as it's normally done.
17813
17814 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
17815 Fix signedness warnings.
17816 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
17817 Likewise.
17818 * util/ieee1275/get_disk_name.c: Include config.h so that
17819 _GNU_SOURCE is defined and getline() is declared. Mark an
17820 unused argument as such. Fix a signedness warning.
17821
17822 2008-04-02 Pavel Roskin <proski@gnu.org>
17823
17824 * genkernsyms.sh.in: Use more robust assignments for CC and
17825 srcdir. Quote srcdir.
17826 * gensymlist.sh.in: Likewise. Assert at the compile time that
17827 the symbol table is not empty.
17828
17829 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
17830 * fs/cpio.c (grub_cpio_read): Likewise.
17831
17832 2008-04-01 Pavel Roskin <proski@gnu.org>
17833
17834 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
17835 * disk/host.c (grub_host_open): Likewise.
17836 * disk/loopback.c (grub_loopback_open): Likewise.
17837 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
17838 disk->id as in disk/host.c, not a multi-character constant.
17839
17840 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
17841 later is obsolete, potentially dangerous and sets a bad example.
17842 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
17843 * util/misc.c (grub_util_get_image_size): Likewise.
17844
17845 * disk/loopback.c (options): Improve help for "--partitions".
17846
17847 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
17848 options to align them with the short options, e.g. "echo -e".
17849
17850 2008-03-31 Bean <bean123ch@gmail.com>
17851
17852 * video/reader/png.c (grub_png_data): New member is_16bit and
17853 image_data.
17854 (grub_png_decode_image_header): Detect 16 bit png image.
17855 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
17856 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
17857 (grub_video_reader_png): Release memory occupied by image_data.
17858
17859 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
17860 4096 bytes.
17861 (grub_nfs_mount): Skip the test for sector per cluster.
17862
17863 * include/grub/ntfs.h (MAX_SPC): Removed.
17864
17865 2008-03-31 Bean <bean123ch@gmail.com>
17866
17867 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
17868 (grub_probe_SOURCES): Add fs/afs.c.
17869 (grub_fstest_SOURCES): Likewise.
17870 (afs_mod_SOURCES): New variable.
17871 (afs_mod_CFLAGS): Likewise.
17872 (afs_mod_LDFLAGS): Likewise.
17873
17874 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
17875 (grub_emu_SOURCES): Likewise.
17876
17877 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17878
17879 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17880
17881 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
17882
17883 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17884
17885 * fs/afs.c: New file.
17886
17887 2008-03-30 Pavel Roskin <proski@gnu.org>
17888
17889 * disk/host.c: Include grub/misc.h to fix a warning.
17890 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
17891 warnings about implicit declarations.
17892
17893 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
17894 variable.
17895 * include/grub/i386/loader.h: Change declaration of
17896 grub_linux_boot() to match what grub_loader_set() expects.
17897 * util/getroot.c (grub_guess_root_device): Return const char* to
17898 fix a warning.
17899 * util/grub-probe.c (probe): Fix a warning about uninitialized
17900 abstraction_name variable.
17901 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
17902 second argument as unused to fix a warning.
17903
17904 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
17905 missing grub_error() call.
17906
17907 * util/update-grub_lib.in: Define datarootdir, since Autoconf
17908 2.60 and newer uses it to define datadir.
17909
17910 * commands/sleep.c: Fix warning about implicit declaration.
17911 * disk/memdisk.c: Likewise.
17912 * loader/aout.c: Likewise.
17913 * loader/i386/bsd_normal.c: Likewise.
17914 * util/grub-probe.c: Likewise.
17915
17916 * commands/i386/cpuid.c (has_longmode): Make static.
17917 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
17918 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
17919
17920 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
17921 GDT. This is more robust, as %ds can change.
17922 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
17923 calling real_to_prot().
17924 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
17925
17926 2008-03-28 Pavel Roskin <proski@gnu.org>
17927
17928 * kern/i386/pc/startup.S: Assert that uncompressed functions
17929 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
17930 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
17931 code, as they push parts of the code (error handlers) beyond
17932 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
17933 code as correctness and size.
17934
17935 2008-03-28 Pavel Roskin <proski@gnu.org>
17936
17937 * kern/i386/pc/startup.S
17938 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
17939 data block address to the real mode, keep offset minimal. This
17940 works around a bug in AWARD BIOS on old Athlon systems, which
17941 makes CD detection hang.
17942
17943 2008-03-26 Pavel Roskin <proski@gnu.org>
17944
17945 * normal/color.c (grub_parse_color_name_pair): Make `name' a
17946 const.
17947 * include/grub/normal.h: Add grub_parse_color_name_pair()
17948 declaration.
17949
17950 2008-03-24 Bean <bean123ch@gmail.com>
17951
17952 * disk/i386/pc/biosdisk.c (cd_start): Removed.
17953 (cd_count): Removed.
17954 (cd_drive): New variable.
17955 (grub_biosdisk_get_drive): Don't check for (cdN) device.
17956 (grub_biosdisk_call_hook): Likewise.
17957 (grub_biosdisk_iterate): Change cdrom detection method.
17958 (grub_biosdisk_open): Replace cd_start with cd_drive.
17959 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
17960 detect cdrom device.
17961
17962 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
17963 Removed.
17964 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
17965 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
17966 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
17967 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
17968 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
17969 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
17970 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
17971 (grub_biosdisk_cdrp): New structure.
17972 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
17973
17974 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
17975
17976 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
17977 device.
17978
17979 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
17980 New function.
17981
17982 2008-03-20 Robert Millan <rmh@aybabtu.com>
17983
17984 Remove 2 TiB limit in ata.mod.
17985 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
17986 (grub_ata_dumpinfo): Print sector count with 0x%llx.
17987 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
17988 grub_uint64_t instead of grub_uint32_t.
17989
17990 2008-03-05 Bean <bean123ch@gmail.com>
17991
17992 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
17993 (grub_multiboot): Set boot device.
17994
17995 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
17996
17997 2008-03-02 Bean <bean123ch@gmail.com>
17998
17999 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
18000 symlink_buffer.
18001
18002 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
18003
18004 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
18005 texinfo.tex.
18006
18007 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
18008 modified.
18009
18010 * docs/fdl.texi: New file.
18011
18012 * docs/mdate-sh: New file. Copied from gnulib.
18013 * docs/texinfo.tex: Likewise.
18014
18015 * config.guess: Updated from gnulib.
18016 * install-sh: Likewise.
18017
18018 2008-02-28 Robert Millan <rmh@aybabtu.com>
18019
18020 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
18021 (aout_mod_SOURCES): New variable.
18022 (aout_mod_CFLAGS): Likewise.
18023 (aout_mod_LDFLAGS): Likewise.
18024
18025 * conf/i386-ieee1275.rmk: Likewise.
18026
18027 2008-02-28 Robert Millan <rmh@aybabtu.com>
18028
18029 * util/update-grub.in: Reorganise terminal validity check. Accept
18030 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
18031 Based on suggestion by Franklin PIAT.
18032
18033 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
18034
18035 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
18036 function.
18037 * util/getroot.c (grub_util_check_block_device): New function that
18038 returns the given argument if it is a block device and returns NULL else.
18039 * util/grub-probe.c (argument_is_device): New variable.
18040 (probe): Promote device_name from a variable to an argument. Receive
18041 device_name from grub_util_check_block_device() if path is NULL and from
18042 grub_guess_root_device() else. Do not free() device_name anymore.
18043 (options): Introduce new parameter '-d, --device'.
18044 (main): Add description of the new parameter to the help screen.
18045 Rename path variable to argument. Set argument_is_device if the '-d'
18046 option is given. Pass argument to probe() depending on
18047 argument_is_device.
18048
18049 2008-02-24 Bean <bean123ch@gmail.com>
18050
18051 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
18052 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
18053 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
18054 (GRUB_ISO9660_VOLDESC_PART): Likewise.
18055 (GRUB_ISO9660_VOLDESC_END): Likewise.
18056 (grub_iso9660_primary_voldesc): New member escape.
18057 (grub_iso9660_data): New member joliet.
18058 (grub_iso9660_convert_string): New function.
18059 (grub_iso9660_mount): Detect joliet extension.
18060 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
18061 (grub_iso9660_iso9660_label): Likewise.
18062
18063 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
18064 (grub_setup_SOURCES): Add fs/udf.c.
18065 (grub_fstest_SOURCES): Likewise.
18066 (udf_mod_SOURCES): New variable.
18067 (udf_mod_CFLAGS): Likewise.
18068 (udf_mod_LDFLAGS): Likewise.
18069
18070 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
18071 (grub_emu_SOURCES): Likewise.
18072
18073 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18074
18075 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18076
18077 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18078
18079 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18080
18081 * fs/udf.c: New file.
18082
18083 2008-02-24 Robert Millan <rmh@aybabtu.com>
18084
18085 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
18086 (normal/lexer.c_DEPENDENCIES): New variables.
18087 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18088 (normal/lexer.c_DEPENDENCIES): Likewise.
18089 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
18090 (normal/lexer.c_DEPENDENCIES): Likewise.
18091 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
18092 (normal/lexer.c_DEPENDENCIES): Likewise.
18093 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18094 (normal/lexer.c_DEPENDENCIES): Likewise.
18095 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18096 (normal/lexer.c_DEPENDENCIES): Likewise.
18097
18098 2008-02-23 Robert Millan <rmh@aybabtu.com>
18099
18100 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
18101 since they were intended to be in hex. This didn't break previously
18102 because of a bug in gpt_partition_map_iterate() (see below).
18103
18104 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
18105 when checking the validity of GPT header.
18106 Remove `partno', since it always provides the same information as `i'.
18107
18108 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
18109
18110 * include/grub/efi/time.h: Fix a wrong comment.
18111
18112 2008-02-19 Pavel Roskin <proski@gnu.org>
18113
18114 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
18115 message.
18116
18117 2008-02-19 Bean <bean123ch@gmail.com>
18118
18119 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
18120 (aout_mod_SOURCES): New variable.
18121 (aout_mod_CFLAGS): Likewise.
18122 (aout_mod_LDFLAGS): Likewise.
18123 (_bsd_mod_SOURCES): New variable.
18124 (_bsd_mod_CFLAGS): Likewise.
18125 (_bsd_mod_LDFLAGS): Likewise.
18126 (bsd_mod_SOURCES): New variable.
18127 (bsd_mod_CFLAGS): Likewise.
18128 (bsd_mod_LDFLAGS): Likewise.
18129
18130 * include/grub/aout.h: New file.
18131
18132 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
18133
18134 * include/grub/i386/bsd.h: New file.
18135
18136 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
18137 to make it public.
18138
18139 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
18140 function is called, so that it's possible to change it inside the hook.
18141 (grub_elf64_load): Likewise.
18142 (grub_elf_file): Don't close the file if elf header is not found.
18143 (grub_elf_close): Close the file if grub_elf_file fails (The new
18144 grub_elf_file won't close it).
18145 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
18146 (grub_elf64_size): Likewise.
18147
18148 * kern/i386/loader.S (grub_unix_real_boot): New function.
18149
18150 * loader/aout.c: New file.
18151
18152 * loader/i386/bsd.c: New file.
18153
18154 * loader/i386/bsd_normal.c: New file.
18155
18156 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
18157
18158 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
18159 can test other formats.
18160
18161 2008-02-19 Robert Millan <rmh@aybabtu.com>
18162
18163 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
18164 (grub_gpt_partition_type_empty): Redefine with macro from
18165 `<grub/gpt_partition.h>'.
18166 (gpt_partition_map_iterate): Adjust partition type comparison.
18167
18168 Export `entry' as partmap-specific `part.data' struct.
18169 (grub_gpt_header, grub_gpt_partentry): Move from here ...
18170
18171 * include/grub/gpt_partition.h (grub_gpt_header)
18172 (grub_gpt_partentry): ... to here (new file).
18173
18174 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
18175
18176 (grub_gpt_partition_type_bios_boot): New const variable, defined
18177 with macro from `<grub/gpt_partition.h>'.
18178
18179 (setup): Replace `first_start' with `embed_region', which keeps
18180 track of the embed region (and is partmap-agnostic).
18181
18182 Replace find_first_partition_start() with find_usable_region(),
18183 which finds a usable region for embedding using partmap-specific
18184 knowledge (supports PC/MSDOS and GPT).
18185
18186 Fix all assumptions that the embed region start at sector 1, using
18187 `embed_region.start' from now on. Similarly, use `embed_region.end'
18188 rather than `first_start' to calculate available size.
18189
18190 In grub_util_info() message, replace "into after the MBR" with an
18191 indication of the specific sector our embed region starts at.
18192
18193 2008-02-19 Robert Millan <rmh@aybabtu.com>
18194
18195 * DISTLIST: Replace `commands/ieee1275/halt.c' and
18196 `commands/ieee1275/reboot.c' with `commands/halt.c' and
18197 `commands/reboot.c'.
18198 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18199 (halt_mod_SOURCES): Likewise.
18200 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18201 (halt_mod_SOURCES): Likewise.
18202
18203 2008-02-17 Christian Franke <franke@computer.org>
18204
18205 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
18206
18207 2008-02-17 Robert Millan <rmh@aybabtu.com>
18208
18209 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18210 set `first_start' to 0 for non-PC/MSDOS partition maps.
18211
18212 2008-02-16 Robert Millan <rmh@aybabtu.com>
18213
18214 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18215 do not assume partition map is PC/MSDOS before performing checks that
18216 are specific to that layout.
18217
18218 2008-02-13 Robert Millan <rmh@aybabtu.com>
18219
18220 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
18221 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
18222 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
18223
18224 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
18225
18226 * configure.ac: Only a cosmetic change on the handling of
18227 -fno-stack-protector.
18228
18229 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
18230
18231 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
18232 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
18233 reboot.c.
18234 (grub_install_SOURCES): Add halt.mod and reboot.mod.
18235 (halt_mod_SOURCES): New variable.
18236 (halt_mod_CFLAGS): Likewise.
18237 (halt_mod_LDFLAGS): Likewise.
18238 (reboot_mod_SOURCES): Likewise.
18239 (reboot_mod_CFLAGS): Likewise.
18240 (reboot_mod_LDFLAGS): Likewise.
18241
18242 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
18243 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
18244 reboot.c.
18245 (halt_mod_SOURCES): Likewise.
18246 (reboot_mod_SOURCES): Likewise.
18247
18248 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
18249 commands/i386/pc/reboot.c by commands/reboot.c.
18250 (reboot_mod_SOURCES): Likewise.
18251
18252 * commands/i386/pc/reboot.c: merge this file ...
18253
18254 * commands/ieee1275/reboot.c: ... and this file ...
18255
18256 * commands/reboot.c: ... to this file.
18257 Add some precompiler directive to include the correct header for
18258 each machine.
18259
18260 * commands/ieee1275/halt.c: move this file ...
18261
18262 * commands/halt.c: ... to here.
18263 Add some precompiler directive to include the correct header for
18264 each machine.
18265
18266 * include/grub/efi/efi.h (grub_reboot): New function declaration.
18267 (grub_halt): Likewise.
18268
18269 * kern/efi/efi.c (grub_reboot): New function.
18270 (grub_halt): Likewise.
18271
18272 2008-02-12 Robert Millan <rmh@aybabtu.com>
18273
18274 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
18275 /dev (like it is done for /dev/mapper). This doesn't provide support
18276 for EVMS, but at least it is now easy to identify the problem when it
18277 arises.
18278
18279 2008-02-11 Robert Millan <rmh@aybabtu.com>
18280
18281 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
18282 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
18283 comparing it with -1, not 0.
18284
18285 2008-02-10 Robert Millan <rmh@aybabtu.com>
18286
18287 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
18288 `disk/lvm.c'.
18289 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18290 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18291
18292 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
18293 `disk/lvm.c' to the end of the list.
18294 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18295 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18296
18297 2008-02-10 Robert Millan <rmh@aybabtu.com>
18298
18299 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
18300 grub_print_error() instead. This will let user know why we're entering
18301 rescue mode.
18302 Based on suggestions from Sam Morris.
18303
18304 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
18305
18306 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
18307 on remaining N args, instead of "--" arg N times.
18308
18309 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
18310
18311 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
18312 (fill_with_default_glyph): Changed to use unknown_glyph for fill
18313 pattern for unknown glyphs.
18314
18315 2008-02-09 Robert Millan <rmh@aybabtu.com>
18316
18317 * configure.ac: Probe for `help2man'.
18318 * Makefile.in (builddir): New variable.
18319 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
18320 or otherwise add a few flags/options to it.
18321 (install-local): For every executable utility or script that is
18322 installed, invoke $(HELP2MAN) to install a manpage based on --help
18323 output.
18324
18325 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
18326 that it doesn't prevent --help from working in build tree.
18327
18328 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
18329 with `bug-grub@gnu.org'.
18330 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
18331 * util/update-grub.in (usage): New function.
18332 Implement proper argument check, with support for --help and --version
18333 (as well as existing -y).
18334
18335 2008-02-09 Christian Franke <franke@computer.org>
18336
18337 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
18338 avoid overwriting previous output.
18339 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
18340
18341 2008-02-09 Robert Millan <rmh@aybabtu.com>
18342
18343 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
18344 drawing the menu.
18345
18346 2008-02-09 Robert Millan <rmh@aybabtu.com>
18347
18348 * commands/sleep.c: New file.
18349 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
18350 (sleep_mod_SOURCES): New variable.
18351 (sleep_mod_CFLAGS): Likewise.
18352 (sleep_mod_LDFLAGS): Likewise.
18353
18354 2008-02-09 Robert Millan <rmh@aybabtu.com>
18355
18356 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
18357 situations in which we can deduce the RAID size and the superblock
18358 doesn't match it.
18359
18360 2008-02-09 Robert Millan <rmh@aybabtu.com>
18361
18362 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
18363 and return a grub_diskmemberlist_t composed of LVM physical volumes.
18364 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
18365
18366 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
18367 and return a grub_diskmemberlist_t composed of physical array members.
18368 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
18369
18370 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
18371 prototype.
18372 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
18373 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
18374 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
18375
18376 * util/grub-probe.c (probe): Move partmap probing code from here ...
18377 (probe_partmap): ... to here.
18378 (probe): Use probe_partmap() once for the disk we're probing, and
18379 additionally, when such disk contains a memberlist() struct member,
18380 once for each disk that is contained in the structure returned by
18381 memberlist().
18382
18383 2008-02-09 Robert Millan <rmh@aybabtu.com>
18384
18385 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
18386 environment variable to 'all' in order to obtain debug output from
18387 non-util/ code.
18388 * util/i386/pc/grub-setup.c (main): Likewise.
18389
18390 2008-02-08 Robert Millan <rmh@aybabtu.com>
18391
18392 * disk/raid.c (grub_raid_scan_device): Check for
18393 `array->device[sb.this_disk.number]' rather than for
18394 `array->device[sb.this_disk.number]->name', since the latter is not
18395 guaranteed to be accessible.
18396
18397 2008-02-08 Robert Millan <rmh@aybabtu.com>
18398
18399 * disk/raid.c: Update copyright.
18400 * fs/cpio.c: Likewise.
18401 * include/grub/raid.h: Likewise.
18402 * loader/i386/pc/multiboot.c: Likewise.
18403 * util/hostfs.c: Likewise.
18404
18405 2008-02-08 Robert Millan <rmh@aybabtu.com>
18406
18407 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
18408 to a grub_disk_t array.
18409 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
18410 `device[x]'.
18411 (grub_raid_scan_device): Replace `device[x].name' accesses with
18412 `device[x]->name'. Simplify initialization of `array->device[x]'.
18413
18414 2008-02-08 Robert Millan <rmh@aybabtu.com>
18415
18416 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
18417 grub_dprintf() calls.
18418 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
18419 error message.
18420
18421 2008-02-07 Christian Franke <franke@computer.org>
18422
18423 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
18424 instead of fseek and ftell to support large files.
18425 (grub_hostfs_read): Likewise.
18426
18427 2008-02-07 Robert Millan <rmh@aybabtu.com>
18428
18429 Patch from Jeroen Dekkers.
18430 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
18431 failure, since successfully reading all array members might not be
18432 required.
18433
18434 2008-02-06 Robert Millan <rmh@aybabtu.com>
18435
18436 * util/grub-probe.c (probe): Simplify partmap probing (with the
18437 assumption that the first word up to the underscore equals to
18438 the module name).
18439
18440 2008-02-06 Christian Franke <franke@computer.org>
18441
18442 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
18443 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
18444 last block of a cpio or tar stream.
18445 Check for "TRAILER!!!" instead of any empty data
18446 block to detect last block of a cpio stream.
18447 (grub_cpio_dir): Fix constness of variable np.
18448 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
18449 cpio or tar trailer is detected. This fixes a crash
18450 on open of a non existing file.
18451
18452 2008-02-05 Bean <bean123ch@gmail.com>
18453
18454 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
18455 address of entry.
18456 (grub_multiboot_load_elf64): Likewise.
18457 (grub_multiboot): Initialize mbi structure.
18458
18459 * util/grub-fstest.c: Don't include unused header file script.h.
18460
18461 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
18462 of file.
18463 (grub_fstest_SOURCES): Likewise.
18464
18465 2008-02-05 Robert Millan <rmh@aybabtu.com>
18466
18467 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
18468 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
18469 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
18470 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
18471
18472 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
18473 (translation_table): Replace hardcoded values with macros
18474 provided by `<grub/term.h>'.
18475
18476 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
18477 (keyboard_map): Correct/add a few values, with macros provided
18478 by `<grub/term.h>'.
18479 (keyboard_map_shift): Zero values that don't differ from their
18480 `keyboard_map' equivalents.
18481 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
18482 Discard the second scan code that is always sent by Caps lock.
18483 Only use `keyboard_map_shift' when it provides a non-zero value,
18484 otherwise fallback to `keyboard_map'.
18485
18486 2008-02-04 Bean <bean123ch@gmail.com>
18487
18488 * Makefile.in (enable_grub_fstest): New variable.
18489
18490 * conf/common.rmk (grub_fstest_init.lst): New rule.
18491 (grub_fstest_init.h): Likewise.
18492 (grub_fstest_init.c): Likewise.
18493 (util/grub-fstest.c_DEPENDENCIES): New variable.
18494 (grub_fstest_SOURCES): Likewise.
18495
18496 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
18497
18498 * util/grub-fstest.c: New file.
18499
18500 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18501
18502 Make grub-setup handle a separate root device.
18503
18504 * util/i386/pc/grub-setup.c (setup): Always open the root device,
18505 so that the root device can be compared with the destination
18506 device.
18507 When embedding the core image, if the root and destination devices
18508 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
18509 0xFF.
18510 When not embedding, set ROOT_DRIVE to 0xFF.
18511
18512 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18513
18514 Add support for having a grub directory in a different drive. This
18515 is still only the data handling part.
18516
18517 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
18518 (codestart): Save %dh in GRUB_ROOT_DRIVE.
18519 (grub_root_drive): New variable.
18520
18521 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
18522 instead of GRUB_BOOT_DRIVE to construct a device name. Set
18523 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
18524 as it was.
18525
18526 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
18527
18528 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
18529 macro.
18530 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
18531
18532 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
18533 is bogus, because PXE booting does not specify any drive
18534 correctly.
18535
18536 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
18537 am not sure if this is really correct.
18538
18539 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
18540 is always identical to the boot drive when booting from a CD.
18541
18542 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
18543 longer.
18544 (root_drive): New variable.
18545 (real_start): Unconditionally set %dh to ROOT_DRIVE.
18546 (setup_sectors): Push %dx right after popping it, because %dh will
18547 be modified later.
18548 (copy_buffer): Restore %dx.
18549
18550 2008-02-03 Robert Millan <rmh@aybabtu.com>
18551
18552 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
18553 use `cdboot.img' for cdrom images.
18554
18555 2008-02-03 Robert Millan <rmh@aybabtu.com>
18556
18557 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
18558 only setup gfxterm when `font' command has succeeded.
18559
18560 2008-02-03 Robert Millan <rmh@aybabtu.com>
18561
18562 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
18563 (grub_rescue_cmd_multiboot_loader)
18564 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
18565
18566 2008-02-03 Pavel Roskin <proski@gnu.org>
18567
18568 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
18569 %edx and %esi from stack only after grub_gate_a20() is called.
18570 grub_gate_a20() clobbers %edx.
18571
18572 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18573
18574 * configure.ac (AC_INIT): Bumped to 1.96.
18575
18576 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
18577 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
18578 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
18579 video/readers/png.c.
18580
18581 2008-02-03 Bean <bean123ch@gmail.com>
18582
18583 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
18584 (cdboot_img_SOURCES): New variable.
18585 (cdboot_img_ASFLAGS): New variable.
18586 (cdboot_img_LDFLAGS): New variable.
18587
18588 * boot/i386/pc/cdboot.S: New file.
18589
18590 * disk/i386/pc/biosdisk.c (cd_start): New variable.
18591 (cd_count): Likewise.
18592 (grub_biosdisk_get_drive): Add support for cd device.
18593 (grub_biosdisk_call_hook): Likewise.
18594 (grub_biosdisk_iterate): Likewise.
18595 (grub_biosdisk_open): Likewise.
18596 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
18597 (grub_biosdisk_rw): Support reading from cd device.
18598 (GRUB_MOD_INIT): Iterate cd devices.
18599
18600 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
18601 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
18602 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
18603
18604 * kern/i386/pc/init.c (make_install_device): Check for cd device.
18605
18606 2008-02-02 Robert Millan <rmh@aybabtu.com>
18607
18608 * commands/read.c: New file.
18609 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
18610 (read_mod_SOURCES): New variable.
18611 (read_mod_CFLAGS): Likewise.
18612 (read_mod_LDFLAGS): Likewise.
18613
18614 2008-02-02 Robert Millan <rmh@aybabtu.com>
18615
18616 * normal/main.c (grub_normal_execute): Check for `menu->size' when
18617 determining whether menu has to be displayed.
18618
18619 2008-02-02 Marco Gerards <marco@gnu.org>
18620
18621 * bus/pci.c: New file.
18622
18623 * include/grub/pci.h: Likewise.
18624
18625 * include/grub/i386/pc/pci.h: Likewise.
18626
18627 * commands/lspci.c: Likewise.
18628
18629 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
18630 `lspci.mod'.
18631 (pci_mod_SOURCES): New variable.
18632 (pci_mod_CFLAGS): Likewise.
18633 (pci_mod_LDFLAGS): Likewise.
18634 (lspci_mod_SOURCES): Likewise.
18635 (lspci_mod_CFLAGS): Likewise.
18636 (lspci_mod_LDFLAGS): Likewise.
18637
18638 2008-02-02 Bean <bean123ch@gmail.com>
18639
18640 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
18641 (grub_ufs_get_file_block): Fix indirect block calculation problem.
18642
18643 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
18644 (grub_xfs_btree_node): New structure.
18645 (grub_xfs_btree_root): New structure.
18646 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
18647 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
18648 (GRUB_XFS_EXTENT_BLOCK): Likewise.
18649 (GRUB_XFS_EXTENT_SIZE): Likewise.
18650 (grub_xfs_read_block): Support btree format type.
18651 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
18652 Use directory block as basic unit.
18653
18654 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
18655
18656 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
18657 __attribute__ ((__regparm__ (1))).
18658
18659 2008-02-01 Robert Millan <rmh@aybabtu.com>
18660
18661 Correct a mistake in previous commit.
18662
18663 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
18664 top.
18665 (normal/command.c_DEPENDENCIES): New variable.
18666
18667 2008-02-01 Robert Millan <rmh@aybabtu.com>
18668
18669 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
18670 top.
18671 (normal/command.c_DEPENDENCIES): New variable.
18672 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
18673 * conf/i386-ieee1275.rmk: Likewise.
18674 * conf/i386-linuxbios.rmk: Likewise.
18675 * conf/i386-pc.rmk: Likewise.
18676 * conf/sparc64-ieee1275.rmk: Likewise.
18677 * conf/powerpc-ieee1275.rmk: Likewise.
18678 (grub_emu_SOURCES): Add `fs/fshelp.c'.
18679
18680 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
18681
18682 2008-02-01 Robert Millan <rmh@aybabtu.com>
18683
18684 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
18685 call at beginning of function.
18686
18687 2008-01-31 Pavel Roskin <proski@gnu.org>
18688
18689 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
18690 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
18691 (grub_mkrescue_SOURCES): Likewise.
18692 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
18693
18694 2008-01-30 Robert Millan <rmh@aybabtu.com>
18695
18696 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
18697 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
18698 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
18699 (grub_probe_SOURCES): ... to here.
18700
18701 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
18702 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
18703 * conf/i386-ieee1275.rmk: Likewise.
18704 * conf/i386-linuxbios.rmk: Likewise.
18705 * conf/powerpc-ieee1275.rmk: Likewise.
18706
18707 2008-01-30 Tristan Gingold <gingold@free.fr>
18708
18709 * kern/rescue.c: Silently accept empty lines.
18710
18711 2008-01-29 Bean <bean123ch@gmail.com>
18712
18713 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
18714 (real_code_2): Code cleanup and change comment style.
18715 (move_memory): Avoid using 32-bit address mode.
18716
18717 2008-01-29 Bean <bean123ch@gmail.com>
18718
18719 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
18720 (png_mod_SOURCES): New variable.
18721 (png_mod_CFLAGS): Likewise.
18722 (png_mod_LDFLAGS): Likewise.
18723
18724 * video/readers/png.c: New file.
18725
18726 2008-01-28 Robert Millan <rmh@aybabtu.com>
18727
18728 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
18729 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
18730 `ifndef GRUB_MOD_GAP' hack.
18731 * util/elf/grub-mkimage.c (add_segments): Likewise.
18732
18733 2008-01-27 Robert Millan <rmh@aybabtu.com>
18734
18735 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
18736 `GRUB_MOD_GAP' for platforms in which it's not defined.
18737 * util/elf/grub-mkimage.c (add_segments): Likewise.
18738
18739 2008-01-27 Robert Millan <rmh@aybabtu.com>
18740
18741 Get grub-emu to build again (including parallel builds).
18742
18743 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
18744 Split into ...
18745 (util/grub-emu.c_DEPENDENCIES): ... this, ...
18746 (normal/execute.c_DEPENDENCIES): ... this, ...
18747 (grub-emu_DEPENDENCIES): ... and this.
18748
18749 * conf/i386-efi.rmk: Likewise.
18750 * conf/i386-linuxbios.rmk: Likewise.
18751 * conf/i386-ieee1275.rmk: Likewise.
18752 * conf/powerpc-ieee1275.rmk: Likewise.
18753 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
18754
18755 2008-01-27 Robert Millan <rmh@aybabtu.com>
18756
18757 * NEWS: Add a few items.
18758
18759 2008-01-27 Robert Millan <rmh@aybabtu.com>
18760
18761 Fix parallel builds with grub-emu. Based on earlier commit for
18762 grub-probe and grub-setup.
18763
18764 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18765 (util/grub-emu.c_DEPENDENCIES): ... this.
18766 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18767 (util/grub-emu.c_DEPENDENCIES): ... this.
18768 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18769 (util/grub-emu.c_DEPENDENCIES): ... this.
18770 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18771 (util/grub-emu.c_DEPENDENCIES): ... this.
18772 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18773 (util/grub-emu.c_DEPENDENCIES): ... this.
18774
18775 2008-01-27 Pavel Roskin <proski@gnu.org>
18776
18777 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
18778 to create a gap between _end and the modules added to the image
18779 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
18780 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
18781 * util/elf/grub-mkimage.c (add_segments): Likewise.
18782
18783 2008-01-26 Pavel Roskin <proski@gnu.org>
18784
18785 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
18786 just return an error.
18787
18788 2008-01-26 Bean <bean123ch@gmail.com>
18789
18790 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
18791 (grub_reiserfs_get_item): Save offset of the next item.
18792 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
18793
18794 2008-01-25 Robert Millan <rmh@aybabtu.com>
18795
18796 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
18797 make all filesystem sources appear together (possibly fixing omissions
18798 while at it).
18799 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18800 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18801 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18802 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18803
18804 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
18805 add `kern/file.c'.
18806 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
18807 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
18808 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
18809 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
18810
18811 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
18812 (probe): Add a sanity check to make sure of our ability to read
18813 requested files when probing for filesystem type.
18814
18815 * genmk.rb: Update copyright year (2007).
18816
18817 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
18818 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
18819 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
18820 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
18821 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
18822 : Remove function prototypes.
18823
18824 2008-01-25 Robert Millan <rmh@aybabtu.com>
18825
18826 Revert my previous commits (based on wrong assumption of how grub_errno
18827 works).
18828
18829 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
18830 * kern/file.c (grub_file_open): Likewise.
18831
18832 2008-01-24 Pavel Roskin <proski@gnu.org>
18833
18834 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
18835 that hang if GRUB tries to setup colors.
18836 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
18837 colors for firmwares that don't support it.
18838 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
18839 Recognize Open Hack'Ware, set flags to work around its
18840 limitations.
18841
18842 2008-01-24 Robert Millan <rmh@aybabtu.com>
18843
18844 * kern/file.c (grub_file_open): Do not account previous failures of
18845 unrelated functions when grub_errno is checked for.
18846 Reported by Oleg Strikov.
18847
18848 2008-01-24 Bean <bean123ch@gmail.com>
18849
18850 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
18851 (grub_ufs_sblock): New member volume name.
18852 (grub_ufs_find_file): Fix string copy bug.
18853 (grub_ufs_label): Implement this function properly.
18854
18855 * fs/hfs.c (grub_hfs_cnid_type): New enum.
18856 (grub_hfs_iterate_records): Use the correct file number for extents
18857 and catalog file. Fix problem in next index calculation.
18858 (grub_hfs_find_node): Replace recursive function call with loop.
18859 (grub_hfs_iterate_dir): Replace recursive function call with loop.
18860
18861 2008-01-23 Robert Millan <rmh@aybabtu.com>
18862
18863 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
18864 `<grub/symbol.h>' and `<grub/multiboot.h>'.
18865 (grub_multiboot2_real_boot): New function prototype.
18866
18867 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
18868 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
18869
18870 * kern/i386/ieee1275/init.c (grub_os_area_addr)
18871 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
18872
18873 2008-01-23 Robert Millan <rmh@aybabtu.com>
18874
18875 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
18876 #ifdef'ed out grub_printf().
18877
18878 2008-01-23 Robert Millan <rmh@aybabtu.com>
18879
18880 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
18881 grub_dprintf calls, since they make "debug=all" mode unusable.
18882 (grub_console_checkkey): Likewise.
18883
18884 2008-01-23 Robert Millan <rmh@aybabtu.com>
18885
18886 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
18887 `term/i386/pc/at_keyboard.c'.
18888 (pkglib_MODULES): Add `serial.mod'.
18889 (serial_mod_SOURCES): New variable.
18890 (serial_mod_CFLAGS): Likewise.
18891 (serial_mod_LDFLAGS): Likewise.
18892
18893 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
18894 `<grub/powerpc/ieee1275/console.h>'.
18895 (grub_keyboard_controller_init): New function prototype.
18896 (grub_console_checkkey): Likewise.
18897 (grub_console_getkey): Likewise.
18898
18899 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
18900 keyboard on i386.
18901
18902 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
18903 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
18904
18905 2008-01-23 Robert Millan <rmh@aybabtu.com>
18906
18907 * kern/i386/pc/init.c (make_install_device): When memdisk image is
18908 present, "(memdisk)/boot/grub" becomes the default prefix.
18909
18910 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
18911 a memdisk tarball with all the modules. Add --overlay=DIR option that
18912 allows users to overlay additional files into the image.
18913
18914 2008-01-23 Robert Millan <rmh@aybabtu.com>
18915
18916 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
18917 and `machine/memory.h'.
18918 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
18919 (_multiboot_mod_SOURCES): New variable.
18920 (_multiboot_mod_CFLAGS): Likewise.
18921 (_multiboot_mod_LDFLAGS): Likewise.
18922 (multiboot_mod_SOURCES): Likewise.
18923 (multiboot_mod_CFLAGS): Likewise.
18924 (multiboot_mod_LDFLAGS): Likewise.
18925
18926 * include/grub/i386/ieee1275/loader.h: New file.
18927
18928 * include/grub/i386/ieee1275/machine.h: Likewise.
18929
18930 * include/grub/i386/ieee1275/memory.h: Likewise.
18931
18932 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
18933 variable declaration.
18934 (grub_os_area_size): Likewise.
18935
18936 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
18937 (grub_lower_mem, grub_upper_mem): New variables.
18938 (grub_stop_floppy): New function (just to make
18939 grub_multiboot2_real_boot() happy).
18940
18941 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
18942 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
18943 (grub_stop): New function.
18944 Include `"../realmode.S"' and `"../loader.S"'.
18945
18946 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
18947 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
18948
18949 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
18950 rely on grub_multiboot2_real_boot() for final boot.
18951
18952 2008-01-22 Robert Millan <rmh@aybabtu.com>
18953
18954 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
18955 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
18956 device that doesn't look like an SD card.
18957 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
18958 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
18959 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
18960 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
18961 found.
18962
18963 2008-01-22 Robert Millan <rmh@aybabtu.com>
18964
18965 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
18966 avoid claiming over our own code.
18967
18968 2008-01-22 Bean <bean123ch@gmail.com>
18969
18970 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
18971 (jpeg_mod_SOURCES): New variable.
18972 (jpeg_mod_CFLAGS): Likewise.
18973 (jpeg_mod_LDFLAGS): Likewise.
18974
18975 * video/readers/jpeg.c : New file.
18976
18977 2008-01-22 Bean <bean123ch@gmail.com>
18978
18979 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
18980 there are no more items.
18981
18982 2008-01-21 Robert Millan <rmh@aybabtu.com>
18983
18984 * kern/mm.c (grub_mm_init_region): Improve debug message.
18985
18986 2008-01-21 Robert Millan <rmh@aybabtu.com>
18987
18988 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
18989 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
18990 address.
18991 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
18992 a C macro.
18993 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
18994 Indicates start of upper memory.
18995 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
18996 (generate_image): Abort when image size is big enough to corrupt
18997 upper memory.
18998
18999 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
19000 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
19001 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19002 instead of hardcoding 0xA0000.
19003 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
19004 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19005 instead of hardcoding 0xA0000.
19006
19007 2008-01-21 Robert Millan <rmh@aybabtu.com>
19008
19009 * disk/memdisk.c (memdisk_size): New variable.
19010 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
19011 `memdisk_size'.
19012 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
19013 image to dynamic memory.
19014 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
19015 `memdisk_size'. Free memdisk block.
19016
19017 2008-01-21 Robert Millan <rmh@aybabtu.com>
19018
19019 Fix detection of very small filesystems (like tar).
19020
19021 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
19022 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
19023 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
19024 a problem with this disk).
19025
19026 2008-01-21 Robert Millan <rmh@aybabtu.com>
19027
19028 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
19029 on grub_biosdisk_rw_standard() error.
19030
19031 2008-01-21 Robert Millan <rmh@aybabtu.com>
19032
19033 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
19034 recent changes.
19035 * kern/elf.c: Likewise.
19036 * kern/ieee1275/ieee1275.c: Likewise.
19037 * kern/powerpc/ieee1275/openfw.c: Likewise.
19038 * term/ieee1275/ofconsole.c: Likewise.
19039
19040 2008-01-21 Robert Millan <rmh@aybabtu.com>
19041
19042 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
19043
19044 * include/grub/kernel.h (grub_arch_memdisk_addr)
19045 (grub_arch_memdisk_size): Moved from here ...
19046
19047 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
19048 (grub_arch_memdisk_size): ... to here.
19049
19050 2008-01-21 Robert Millan <rmh@aybabtu.com>
19051
19052 Mostly based on bugfix from Bean.
19053
19054 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
19055 attribute with hook() parameter.
19056 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
19057 declaration.
19058 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
19059 attribute with hook() parameter.
19060 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
19061 declaration.
19062
19063 2008-01-21 Robert Millan <rmh@aybabtu.com>
19064
19065 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
19066 (pkglib_MODULES): Add `memdisk.mod'.
19067 (memdisk_mod_SOURCES): New variable.
19068 (memdisk_mod_CFLAGS): Likewise.
19069 (memdisk_mod_LDFLAGS): Likewise.
19070
19071 * disk/memdisk.c: New file.
19072
19073 * include/grub/disk.h (grub_disk_dev_id): Add
19074 `GRUB_DISK_DEVICE_MEMDISK_ID'.
19075
19076 * include/grub/i386/pc/kernel.h
19077 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
19078 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
19079 (grub_kernel_image_size): New variable declaration.
19080 (grub_total_module_size): Likewise.
19081 (grub_memdisk_image_size): Likewise.
19082
19083 * include/grub/i386/pc/memory.h
19084 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
19085
19086 * include/grub/kernel.h: Include `<grub/symbol.h>'.
19087 (grub_arch_memdisk_addr): New variable declaration.
19088 (grub_arch_memdisk_size): Likewise.
19089
19090 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
19091 (grub_arch_memdisk_size): Likewise.
19092
19093 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
19094 (codestart): Replace hardcoded `0x100000' with
19095 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
19096
19097 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
19098 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
19099 not NULL, append the contents of the file it refers to, at the end of
19100 the compressed kernel image. Initialize `grub_memdisk_image_size'
19101 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
19102 (options): Add "memdisk"|'m' option.
19103 (main): Parse --memdisk|-m option, and pass user-provided path as
19104 parameter to generate_image().
19105
19106 2008-01-20 Robert Millan <rmh@aybabtu.com>
19107
19108 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
19109 grub_dprintf() calls from here ...
19110 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
19111
19112 2008-01-20 Robert Millan <rmh@aybabtu.com>
19113
19114 Fix detection of "real mode" when /options/real-mode? doesn't exist.
19115
19116 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
19117 declaration.
19118 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
19119 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
19120 `GRUB_IEEE1275_FLAG_REAL_MODE'.
19121 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
19122 property).
19123 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
19124 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
19125
19126 2008-01-19 Robert Millan <rmh@aybabtu.com>
19127
19128 Get rid of confusing function (superseded by
19129 `grub_ieee1275_get_integer_property')
19130 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
19131 prototype.
19132 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
19133 function.
19134 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
19135 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
19136 in native endianness from grub_ieee1275_get_integer_property().
19137
19138 2008-01-19 Robert Millan <rmh@aybabtu.com>
19139
19140 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
19141 command after "shut-down", since implementations differ on which
19142 the command for halt is.
19143
19144 2008-01-19 Robert Millan <rmh@aybabtu.com>
19145
19146 * include/grub/i386/linuxbios/console.h: Add header protection.
19147 (grub_keyboard_controller_init): New function prototype.
19148 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
19149 (KEYBOARD_COMMAND_READ): Likewise.
19150 (KEYBOARD_COMMAND_WRITE): Likewise.
19151 (KEYBOARD_SCANCODE_SET1): Likewise.
19152 (grub_keyboard_controller_write): New function.
19153 (grub_keyboard_controller_read): Likewise.
19154 (grub_keyboard_controller_init): Likewise.
19155
19156 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
19157 (grub_console_init): On coreboot/LinuxBIOS, call
19158 grub_keyboard_controller_init().
19159
19160 2008-01-19 Robert Millan <rmh@aybabtu.com>
19161
19162 PowerPC changes provided by Pavel Roskin.
19163
19164 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
19165 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
19166 don't rely on cmain() doing it.
19167 * kern/i386/ieee1275/startup.S (_start): Store %eax in
19168 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
19169
19170 2008-01-16 Robert Millan <rmh@aybabtu.com>
19171
19172 * include/grub/i386/linuxbios/memory.h
19173 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
19174 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
19175 receive `table_header' as argument. Instead, probe for it in the
19176 known memory ranges where it can be present.
19177 (grub_available_iterate): Do not pass a fixed `table_header' address
19178 to grub_linuxbios_table_iterate().
19179
19180 2008-01-15 Robert Millan <rmh@aybabtu.com>
19181
19182 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
19183 * conf/i386-ieee1275.rmk: New file.
19184 * include/grub/i386/ieee1275/console.h: Likewise.
19185 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
19186 * include/grub/i386/ieee1275/kernel.h: Likewise.
19187 * include/grub/i386/ieee1275/time.h: Likewise.
19188 * kern/i386/ieee1275/init.c: Likewise.
19189 * kern/i386/ieee1275/startup.S: Likewise.
19190
19191 2008-01-15 Robert Millan <rmh@aybabtu.com>
19192
19193 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
19194 when pointers are 32-bit (but still do set it to one when they are
19195 64-bit).
19196
19197 2008-01-15 Robert Millan <rmh@aybabtu.com>
19198
19199 * include/grub/ieee1275/ieee1275.h
19200 (grub_ieee1275_get_integer_property): New function prototype.
19201
19202 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
19203 (grub_ieee1275_get_integer_property): New function. Wraps around
19204 grub_ieee1275_get_property() to handle endianness.
19205
19206 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
19207 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
19208 where appropriate.
19209 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
19210 (grub_map): Likewise.
19211 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
19212
19213 2008-01-15 Bean <bean123ch@gmail.com>
19214
19215 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
19216 (grub_script_execute_cmdline): Reset grub_errno.
19217
19218 * normal/main.c (read_config_file): Reset grub_errno.
19219
19220 * normal/parse.y (script_init): New.
19221 (script): Move function and menuentry here.
19222 (delimiter): New.
19223 (command): Add delimiter at the end of command.
19224 (commands): Adjust to match the new command.
19225 (commandblock): Remove grub_script_lexer_record_start.
19226 (menuentry): Add grub_script_lexer_record_start, use the new commands.
19227 (if): Use the new commands.
19228
19229 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
19230
19231 2008-01-15 Robert Millan <rmh@aybabtu.com>
19232
19233 * normal/menu.c (run_menu): Move timeout message from here ...
19234 (print_timeout): ... to here.
19235 (run_menu): Use print_timeout() once during initial draw to print
19236 the whole message, and again in every clock tick to update only
19237 the number of seconds.
19238
19239 2008-01-15 Robert Millan <rmh@aybabtu.com>
19240
19241 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
19242 actual size of `available' from grub_ieee1275_get_property(), and
19243 restrict parsing to that bound.
19244
19245 2008-01-15 Christian Franke <franke@computer.org>
19246
19247 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
19248 (argp_program_version): Remove variable.
19249 (argp_program_bug_address): Likewise.
19250 (options): Convert from struct argp_option to struct option.
19251 (struct arguments): Remove.
19252 (parse_opt): Remove.
19253 (usage): New function.
19254 (main): Replace struct args members by simple variables.
19255 Replace argp_parse() by getopt_long().
19256 Add switch to evaluate options.
19257 Add missing "(...)" around root_dev in prefix string.
19258
19259 2008-01-14 Robert Millan <rmh@aybabtu.com>
19260
19261 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
19262 for grub_ieee1275_exit(), in order to improve portability.
19263
19264 2008-01-14 Robert Millan <rmh@aybabtu.com>
19265
19266 * util/grub.d/10_linux.in (prefix): Define.
19267 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
19268
19269 2008-01-13 Pavel Roskin <proski@gnu.org>
19270
19271 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
19272 grub_errno if no errors have been detected.
19273
19274 2008-01-12 Robert Millan <rmh@aybabtu.com>
19275
19276 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
19277 (grub_util_get_dev_abstraction): New function prototype.
19278
19279 * util/getroot.c: Include `<grub/util/getroot.h>'
19280 (grub_util_get_grub_dev): Move detection of abstraction type to ...
19281 (grub_util_get_dev_abstraction): ... here (new function).
19282
19283 * util/grub-probe.c: Convert PRINT_* to an enum. Add
19284 `PRINT_ABSTRACTION'.
19285 (probe): Probe for abstraction type when requested.
19286 (main): Understand `--target=abstraction'.
19287
19288 * util/i386/efi/grub-install.in: Add abstraction module to core
19289 image when it is found to be necessary.
19290 * util/i386/pc/grub-install.in: Likewise.
19291 * util/powerpc/ieee1275/grub-install.in: Likewise.
19292
19293 * util/update-grub_lib.in (font_path): Return system path without
19294 converting to GRUB path.
19295 * util/update-grub.in: Convert system path returned by font_path()
19296 to a GRUB path. Use `grub-probe -t abstraction' to determine what
19297 abstraction module is needed for loading fonts (if any). Export
19298 that as `GRUB_PRELOAD_MODULES'.
19299 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
19300 insmod commands).
19301
19302 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
19303
19304 Remove some unused code from reiserfs.
19305
19306 * fs/reiserfs.c (struct grub_reiserfs_key)
19307 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
19308 (struct grub_reiserfs_node_body): Removed.
19309 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19310 Likewise.
19311 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19312 Likewise.
19313 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19314 Likewise.
19315 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19316 Likewise.
19317 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19318 Likewise.
19319 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
19320 Likewise.
19321 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19322 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19323 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19324
19325 2008-01-10 Robert Millan <rmh@aybabtu.com>
19326
19327 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
19328 Determines if a file is garbage left by packaging systems, etc.
19329 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
19330 for processing /etc/grub.d scripts.
19331 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
19332 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
19333 as a condition for processing Linux images.
19334
19335 2008-01-10 Pavel Roskin <proski@gnu.org>
19336
19337 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
19338 to compile reiserfs.c on PowerPC.
19339
19340 2008-01-10 Robert Millan <rmh@aybabtu.com>
19341
19342 * kern/device.c (grub_device_iterate): Do not abort device iteration
19343 when one of the devices cannot be opened.
19344 * kern/disk.c (grub_disk_open): Do not account previous failures of
19345 unrelated functions when grub_errno is checked for.
19346
19347 2008-01-08 Robert Millan <rmh@aybabtu.com>
19348
19349 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
19350 `! grub_linux_is_bzimage', change order of address comparison to make
19351 it more intuitive, and improve "too big zImage" error message.
19352
19353 2008-01-08 Robert Millan <rmh@aybabtu.com>
19354
19355 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
19356 `$(update-grub_DATA)'.
19357 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
19358 targets.
19359
19360 2008-01-07 Robert Millan <rmh@aybabtu.com>
19361
19362 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
19363 which instruction is modified by grub-setup during installation
19364 (since it wasn't obvious by only looking at this file).
19365
19366 2008-01-07 Robert Millan <rmh@aybabtu.com>
19367
19368 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
19369 listing actual TODO items.
19370
19371 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19372
19373 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
19374 correctly.
19375 (grub_reiserfs_get_key_offset): Likewise.
19376 (grub_reiserfs_set_key_offset): Likewise.
19377 (grub_reiserfs_set_key_type): Likewise.
19378 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
19379
19380 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
19381 better to remove the bitfield version completely.
19382
19383 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19384
19385 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
19386 allocated from the heap, due to the fshelp implementation.
19387 (grub_reiserfs_dir): Free NODE, due to the same reason.
19388
19389 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19390
19391 Mostly from Vincent Pelletier:
19392
19393 * fs/reiserfs.c: New file.
19394
19395 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
19396 (reiserfs_mod_SOURCES): New variable.
19397 (reiserfs_mod_CFLAGS): Likewise.
19398 (reiserfs_mod_LDFLAGS): Likewise.
19399
19400 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
19401 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
19402 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
19403 normal/color.c.
19404
19405 2008-01-06 Robert Millan <rmh@aybabtu.com>
19406
19407 * normal/color.c: Remove `<grub/env.h>'.
19408
19409 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
19410
19411 * include/grub/normal.h: Include <grub/env.h>.
19412
19413 2008-01-05 Robert Millan <rmh@aybabtu.com>
19414
19415 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
19416 usage example with `(hd0,1)'.
19417 Reported by Samuel Thibault.
19418
19419 2008-01-05 Robert Millan <rmh@aybabtu.com>
19420
19421 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
19422 (grub_linux_boot_zimage): Rename to ...
19423 (grub_linux_boot): ... this.
19424 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
19425 (grub_linux_boot_zimage): Conditionalize zImage copy.
19426
19427 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
19428 (grub_linux_boot_bzimage): Remove prototype.
19429 (grub_linux_boot_zimage): Rename to ...
19430 (grub_linux_boot): ... this.
19431
19432 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
19433 (grub_linux_boot): Remove function.
19434
19435 2008-01-05 Robert Millan <rmh@aybabtu.com>
19436
19437 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
19438 (grub_env_write_color_highlight): Likewise.
19439 (grub_wait_after_message): Likewise.
19440
19441 * normal/color.c: New file.
19442
19443 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19444 (normal_mod_DEPENDENCIES): Likewise.
19445
19446 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19447 (normal_mod_DEPENDENCIES): Likewise.
19448
19449 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19450 (normal_mod_DEPENDENCIES): Likewise.
19451
19452 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19453 (normal_mod_DEPENDENCIES): Likewise.
19454
19455 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
19456 for waiting after a message is printed.
19457 * normal/main.c (read_config_file): Likewise.
19458 (grub_normal_init): Register grub_env_write_color_normal() and
19459 grub_env_write_color_highlight() hooks. Mark `color_normal' and
19460 `color_highlight' variables as global.
19461
19462 * normal/menu.c (grub_wait_after_message): New function.
19463 (grub_color_menu_normal): New variable. Replaces ...
19464 (GRUB_COLOR_MENU_NORMAL): ... this macro.
19465 (grub_color_menu_highlight): New variable. Replaces ...
19466 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
19467 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
19468 `GRUB_TERM_COLOR_STANDARD'.
19469 (print_message): Use `grub_setcolorstate' to reload colors. Rename
19470 `normal_code' and `highlight_code' to `old_color_normal' and
19471 `old_color_highlight', respectively.
19472 (grub_menu_init_page): Update colors when drawing the menu, based on
19473 `menu_color_normal' and `menu_color_highlight' variables.
19474 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
19475 a message is printed.
19476
19477 2008-01-05 Robert Millan <rmh@aybabtu.com>
19478
19479 * kern/env.c (grub_env_context_open): Propagate hooks for global
19480 variables to new context.
19481
19482 * kern/main.c (grub_set_root_dev): Export `root' variable.
19483
19484 2008-01-05 Robert Millan <rmh@aybabtu.com>
19485
19486 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
19487 discs unconditionally, since udev and others have options to provide
19488 them.
19489
19490 2008-01-05 Robert Millan <rmh@aybabtu.com>
19491
19492 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
19493
19494 2008-01-04 Christian Franke <franke@computer.org>
19495
19496 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
19497 of eisa_mmap.
19498
19499 2008-01-03 Pavel Roskin <proski@gnu.org>
19500
19501 * kern/i386/linuxbios/init.c: Put "void" to all function
19502 declarations with no arguments.
19503 * kern/powerpc/ieee1275/init.c: Likewise.
19504 * term/i386/pc/at_keyboard.c: Likewise.
19505 * term/i386/pc/vga_text.c: Likewise.
19506 * util/grub-mkdevicemap.c: Likewise.
19507
19508 2008-01-02 Robert Millan <rmh@aybabtu.com>
19509
19510 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
19511 message when loaded image is out of bounds.
19512 (grub_multiboot_load_elf64): Likewise.
19513
19514 2008-01-02 Pavel Roskin <proski@gnu.org>
19515
19516 * util/grub.d/10_linux.in: Try version without ".old" when
19517 looking for initrd. It's better to use initrd from the newer
19518 kernel of the same version than no initrd at all.
19519
19520 2008-01-01 Robert Millan <rmh@aybabtu.com>
19521
19522 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
19523
19524 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
19525
19526 * include/grub/video.h: Added grub_video_unmap_color and
19527 grub_video_get_active_render_target.
19528 (grub_video_adapter): Added unmap_color and get_active_render_target.
19529
19530 * video/video.c: Added grub_video_unmap_color and
19531 grub_video_get_active_render_target.
19532 (grub_video_get_info): Changed method to accept NULL pointer as an
19533 argument to allow detection of active video adapter.
19534
19535 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
19536 grub_video_vbe_unmap_color_int.
19537 Added grub_video_vbe_unmap_color and
19538 grub_video_vbe_get_active_render_target.
19539 (grub_video_vbe_adapter): Added unmap_color and
19540 get_active_render_target.
19541
19542 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
19543 with grub_video_vbe_unmap_color_int.
19544
19545 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
19546 (DEFAULT_NORMAL_COLOR): Likewise.
19547 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
19548 (DEFAULT_FG_COLOR): Removed.
19549 (DEFAULT_BG_COLOR): Likewise.
19550 (DEFAULT_CURSOR_COLOR): Changed value.
19551 (grub_virtual_screen): Added standard_color_setting,
19552 normal_color_setting, highlight_color_setting and term_color.
19553 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
19554 (bitmap_width): Added.
19555 (bitmap_height): Likewise.
19556 (bitmap): Likewise.
19557 (set_term_color): Likewise.
19558 (grub_virtual_screen_setup): Changed to use new terminal coloring
19559 settings.
19560 (grub_gfxterm_init): Added init for bitmap.
19561 (grub_gfxterm_fini): Added destroy for bitmap.
19562 (redraw_screen_rect): Updated to use background bitmap and new
19563 terminal coloring.
19564 (scroll_up): Added optimization for case when there is no bitmap.
19565 (grub_gfxterm_cls): Fixed to use correct background color.
19566 (grub_virtual_screen_setcolorstate): Changed to use new terminal
19567 coloring.
19568 (grub_virtual_screen_setcolor): Likewise.
19569 (grub_virtual_screen_getcolor): Added.
19570 (grub_gfxterm_background_image_cmd): Likewise.
19571 (grub_video_term): Added setcolor and getcolor.
19572 (MOD_INIT): Added registration of background_image command.
19573 (MOD_TERM): Added unregistration for background_image command.
19574
19575 2007-12-30 Pavel Roskin <proski@gnu.org>
19576
19577 * loader/multiboot_loader.c: Fix multiboot command
19578 unregistration. Fix all typos in the word "multiboot".
19579
19580 2007-12-29 Pavel Roskin <proski@gnu.org>
19581
19582 * util/grub.d/10_linux.in: Refactor search for initrd. Add
19583 support for initrd names used in Fedora.
19584
19585 2007-12-26 Bean <bean123ch@gmail.com>
19586
19587 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
19588 (cpio_mod_SOURCES): New variable.
19589 (cpio_mod_CFLAGS): Likewise.
19590 (cpio_mod_LDFLAGS): Likewise.
19591
19592 * fs/cpio.c: New file.
19593
19594 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
19595
19596 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19597
19598 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19599
19600 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19601
19602 2007-12-25 Robert Millan <rmh@aybabtu.com>
19603
19604 * include/grub/term.h (struct grub_term): Add `getcolor' function.
19605 (grub_getcolor): New function.
19606
19607 * kern/term.c (grub_getcolor): New function.
19608 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
19609 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
19610 (print_entry): Set normal and highlight colors to
19611 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
19612 respectively, before printing and restore them to old
19613 values afterwards.
19614 (grub_menu_init_page): Likewise. Fill an additional colored space
19615 that would otherwise be left blank.
19616
19617 * term/efi/console.c (grub_console_getcolor): New function.
19618 (struct grub_console_term.getcolor): New variable.
19619 * term/i386/pc/console.c (grub_console_getcolor): New function.
19620 (struct grub_console_term.getcolor): New variable.
19621 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
19622 (struct grub_console_term.getcolor): New variable.
19623
19624 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
19625 (struct grub_console_term.setcolor): Remove variable.
19626 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
19627 (struct grub_console_term.setcolor): Remove variable.
19628 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
19629 (struct grub_console_term.setcolor): Remove variable.
19630 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
19631 (struct grub_console_term.setcolor): Remove variable.
19632
19633 2007-12-25 Robert Millan <rmh@aybabtu.com>
19634
19635 * configure.ac: Search for possible unifont.hex locations, and
19636 define UNIFONT_HEX if found.
19637
19638 * Makefile.in (UNIFONT_HEX): Define variable.
19639 (DATA): Rename to ...
19640 (PKGLIB): ... this. Update all users.
19641 (PKGDATA): New variable.
19642 (pkgdata_IMAGES): Rename to ...
19643 (pkglib_IMAGES): ... this. Update all users.
19644 (pkgdata_MODULES): Rename to ...
19645 (pkglib_MODULES): ... this. Update all users.
19646 (pkgdata_PROGRAMS): Rename to ...
19647 (pkglib_PROGRAMS): ... this. Update all users.
19648 (pkgdata_DATA): Rename to ...
19649 (pkglib_DATA): ... this. Update all users.
19650 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
19651 (unicode.pff, ascii.pff): New rules.
19652 (all-local): Add `$(PKGDATA)' dependency.
19653 (install-local): Process `$(PKGDATA)'.
19654
19655 * util/update-grub_lib.in (font_path): Search for *.pff files in
19656 a few more locations, including `${pkgdata}'.
19657
19658 2007-12-23 Robert Millan <rmh@aybabtu.com>
19659
19660 Patch from Bean <bean123ch@gmail.com>:
19661 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
19662 `size'.
19663
19664 2007-12-21 Bean <bean123ch@gmail.com>
19665
19666 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
19667 (ntfscomp_mod_SOURCES): New variable.
19668 (ntfscomp_mod_CFLAGS): Likewise.
19669 (ntfscomp_mod_LDFLAGS): Likewise.
19670
19671 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
19672 (grub_probe_SOURCES): Likewise.
19673 (grub_emu_SOURCES): Likewise.
19674
19675 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19676 (grub_emu_SOURCES): Likewise.
19677
19678 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19679 (grub_emu_SOURCES): Likewise.
19680
19681 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19682 (grub_emu_SOURCES): Likewise.
19683
19684 * fs/ntfs.c (grub_ntfscomp_func): New variable.
19685 (read_run_list): Renamed to grub_ntfs_read_run_list.
19686 (decomp_nextvcn): Moved to ntfscomp.c.
19687 (decomp_getch): Likewise.
19688 (decomp_get16): Likewise.
19689 (decomp_block): Likewise.
19690 (read_block): Likewise.
19691 (read_data): Partially moved to ntfscomp.c.
19692 (fixup): Change unsigned to grub_uint16_t.
19693 (read_mft): Change unsigned long to grub_uint32_t.
19694 (read_attr): Likewise.
19695 (read_data): Likewise.
19696 (read_run_data): Likewise.
19697 (read_run_list): Likewise.
19698 (read_mft): Likewise.
19699
19700 * fs/ntfscomp.c: New file.
19701
19702 * include/grub/ntfs.h: New file.
19703
19704 2007-12-16 Robert Millan <rmh@aybabtu.com>
19705
19706 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
19707 IDE disk check, since Linux is known to support 20 IDE disks.
19708 Reported by Colin Watson.
19709
19710 2007-12-15 Bean <bean123ch@gmail.com>
19711
19712 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
19713 (lnxboot_img_SOURCES): New variable.
19714 (lnxboot_img_ASFLAGS): Likewise.
19715 (lnxboot_img_LDFLAGS): Likewise.
19716
19717 * boot/i386/pc/lnxboot.S: New file.
19718
19719 2007-11-24 Pavel Roskin <proski@gnu.org>
19720
19721 * configure.ac: Test if '--build-id=none' is supported by the
19722 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
19723 objcopy to generate incorrect binary files (binutils
19724 2.17.50.0.18-1 as shipped by Fedora 8).
19725 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
19726 linking, so that build ID doesn't break the test.
19727
19728 2007-11-24 Pavel Roskin <proski@gnu.org>
19729
19730 * include/grub/i386/time.h: use "void" in the argument list
19731 of grub_cpu_idle().
19732 * include/grub/powerpc/time.h: Likewise.
19733 * include/grub/sparc64/time.h: Likewise.
19734
19735 2007-11-18 Christian Franke <franke@computer.org>
19736
19737 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
19738 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
19739 This fixes the problem that function keys did not work in grub-emu.
19740
19741 2007-11-18 Christian Franke <franke@computer.org>
19742
19743 * disk/host.c (grub_host_open): Remove attribute unused from
19744 name parameter. Add check for "host". This fixes the problem
19745 that grub-emu does not find partitions.
19746
19747 2007-11-18 Christian Franke <franke@computer.org>
19748
19749 * util/hostfs.c (is_dir): New function.
19750 (grub_hostfs_dir): Handle missing dirent.d_type case.
19751 (grub_hostfs_read): Add missing fseek().
19752 (grub_hostfs_label): Clear label pointer. This fixes a crash
19753 of grub-emu on "ls (host)".
19754
19755 2007-11-18 Christian Franke <franke@computer.org>
19756
19757 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
19758 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
19759 to 64 bit boundary by default.
19760
19761 2007-11-18 Bean <bean123ch@gmail.com>
19762
19763 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
19764 (hexdump_mod_SOURCES): New variable.
19765 (hexdump_mod_CFLAGS): Likewise.
19766 (hexdump_mod_LDFLAGS): Likewise.
19767
19768 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19769
19770 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19771
19772 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19773
19774 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19775
19776 * include/grub/hexdump.h: New file.
19777
19778 * commands/hexdump.c: New file.
19779
19780 2007-11-10 Robert Millan <rmh@aybabtu.com>
19781
19782 * commands/i386/pc/play.c (beep_off): Switch order of arguments
19783 in grub_outb() calls.
19784 (beep_on): Likewise.
19785
19786 2007-11-10 Christian Franke <franke@computer.org>
19787
19788 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
19789 (grub_menu_run): Likewise.
19790
19791 2007-11-10 Robert Millan <rmh@aybabtu.com>
19792
19793 * include/grub/i386/efi/machine.h: New file.
19794 * include/grub/i386/linuxbios/machine.h: Likewise.
19795 * include/grub/i386/pc/machine.h: Likewise.
19796 * include/grub/powerpc/ieee1275/machine.h: Likewise.
19797 * include/grub/sparc64/ieee1275/machine.h: Likewise.
19798
19799 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
19800 (serial_hw_io_addr): New variable.
19801 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
19802 instead of `(unsigned short *) 0x400'.
19803
19804 2007-11-10 Bean <bean123ch@gmail.com>
19805
19806 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
19807
19808 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
19809
19810 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
19811 (vga_mod_SOURCES): Added.
19812 (vga_mod_CFLAGS): Likewise.
19813 (vga_mod_LDFLAGS): Likewise.
19814
19815 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
19816 grub_outb() calls.
19817 (set_map_mask): Likewise.
19818 (set_read_map): Likewise.
19819 (set_read_address): Likewise.
19820 (vga_font): Removed variable.
19821 (get_vga_glyph): Removed function.
19822 (invalidate_char): Likewise.
19823 (write_char): Changed to use grub_font_get_glyph() for font
19824 information.
19825 (grub_vga_putchar): Likewise.
19826 (grub_vga_getcharwidth): Likewise.
19827
19828 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
19829
19830 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
19831 flags.
19832 (pxeboot_img_LDFLAGS): Likewise.
19833 (diskboot_img_LDFLAGS): Likewise.
19834 (kernel_img_LDFLAGS): Likewise.
19835
19836 2007-11-06 Robert Millan <rmh@aybabtu.com>
19837
19838 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
19839 in grub_outb() calls.
19840 (serial_hw_init): Likewise.
19841
19842 2007-11-05 Robert Millan <rmh@aybabtu.com>
19843
19844 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
19845 spaces. Skip non-regular files.
19846
19847 2007-11-05 Robert Millan <rmh@aybabtu.com>
19848
19849 * kern/disk.c (grub_disk_firmware_fini)
19850 (grub_disk_firmware_is_tainted): New variables.
19851
19852 * include/grub/disk.h (grub_disk_firmware_fini)
19853 (grub_disk_firmware_is_tainted): Likewise.
19854
19855 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
19856 (grub_disk_biosdisk_fini): ... to here.
19857 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
19858 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
19859 is set. Register grub_disk_biosdisk_fini() in
19860 `grub_disk_firmware_fini'.
19861
19862 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
19863 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
19864 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
19865 to finish existing firmware disk interface.
19866
19867 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
19868 (ata_mod_SOURCES): New variable.
19869 (ata_mod_CFLAGS): Likewise.
19870 (ata_mod_LDFLAGS): Likewise.
19871
19872 2007-11-05 Robert Millan <rmh@aybabtu.com>
19873
19874 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
19875 (grub_ata_wait): Reimplement using grub_millisleep().
19876
19877 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
19878 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
19879
19880 2007-11-03 Marco Gerards <marco@gnu.org>
19881
19882 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
19883 (CRTC_ADDR_PORT): New macro.
19884 (CRTC_DATA_PORT): Likewise.
19885 (CRTC_CURSOR): Likewise.
19886 (CRTC_CURSOR_ADDR_HIGH): Likewise.
19887 (CRTC_CURSOR_ADDR_LOW): Likewise.
19888 (update_cursor): New function.
19889 (grub_console_real_putchar): Call `update_cursor'.
19890 (grub_console_gotoxy): Likewise.
19891 (grub_console_cls): Set the default color when clearing the
19892 screen.
19893 (grub_console_setcursor): Implemented.
19894
19895 2007-11-03 Marco Gerards <marco@gnu.org>
19896
19897 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
19898 become activate.
19899 (grub_ata_pio_write): Likewise.
19900
19901 (grub_atapi_identify): Wait after issuing an ATA command.
19902 (grub_atapi_packet): Likewise.
19903 (grub_ata_identify): Likewise.
19904 (grub_ata_readwrite): Likewise.
19905
19906 2007-11-03 Marco Gerards <marco@gnu.org>
19907
19908 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
19909 (grub_ata_pio_write): Likewise.
19910 (grub_ata_readwrite): Use `grub_error', instead of
19911 returning `grub_errno'.
19912
19913 2007-11-03 Marco Gerards <marco@gnu.org>
19914
19915 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
19916 grub_ata_pio_write once for every single sector, instead of for
19917 multiple sectors.
19918
19919 2007-10-31 Robert Millan <rmh@aybabtu.com>
19920
19921 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
19922
19923 * conf/i386-linuxbios.rmk: New file.
19924
19925 * kern/i386/pc/hardware.c: Likewise.
19926 * term/i386/pc/at_keyboard.c: Likewise.
19927 * term/i386/pc/vga_text.c: Likewise.
19928
19929 * include/grub/i386/linuxbios/boot.h: Likewise.
19930 * include/grub/i386/linuxbios/console.h: Likewise.
19931 * include/grub/i386/linuxbios/init.h: Likewise.
19932 * include/grub/i386/linuxbios/kernel.h: Likewise.
19933 * include/grub/i386/linuxbios/loader.h: Likewise.
19934 * include/grub/i386/linuxbios/memory.h: Likewise.
19935 * include/grub/i386/linuxbios/serial.h: Likewise.
19936 * include/grub/i386/linuxbios/time.h: Likewise.
19937
19938 * kern/i386/linuxbios/init.c: Likewise.
19939 * kern/i386/linuxbios/startup.S: Likewise.
19940 * kern/i386/linuxbios/table.c: Likewise.
19941
19942 2007-10-31 Marco Gerards <marco@gnu.org>
19943
19944 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
19945 (ata_mod_SOURCES): New variable.
19946 (ata_mod_CFLAGS): Likewise.
19947 (ata_mod_LDFLAGS): Likewise.
19948
19949 * disk/ata.c: New file.
19950
19951 * include/grub/disk.h (grub_disk_dev_id): Add
19952 `GRUB_DISK_DEV_ATA_ID'.
19953
19954 2007-10-31 Robert Millan <rmh@aybabtu.com>
19955
19956 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
19957 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
19958
19959 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
19960 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
19961
19962 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
19963 `<grub/types.h>'.
19964
19965 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
19966
19967 2007-10-27 Robert Millan <rmh@aybabtu.com>
19968
19969 * include/grub/types.h (ULONG_MAX): Define macro.
19970
19971 2007-10-22 Robert Millan <rmh@aybabtu.com>
19972
19973 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
19974 `"../realmode.S"'.
19975 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
19976
19977 2007-10-22 Robert Millan <rmh@aybabtu.com>
19978
19979 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
19980 (pkgdata_MODULES): Add `biosdisk.mod'.
19981 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
19982 variables.
19983
19984 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
19985 (grub_biosdisk_init): Replace with ...
19986 (GRUB_MOD_INIT(biosdisk)): ... this.
19987 (grub_biosdisk_fini): Replace with ...
19988 (GRUB_MOD_FINI(biosdisk)): ... this.
19989
19990 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
19991 (grub_machine_init): Remove call to grub_biosdisk_init().
19992 (grub_machine_fini): Remove call to grub_machine_fini().
19993
19994 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
19995
19996 2007-10-22 Robert Millan <rmh@aybabtu.com>
19997
19998 * include/grub/time.h: New file.
19999 * include/grub/i386/time.h: Likewise.
20000 * include/grub/powerpc/time.h: Likewise.
20001 * include/grub/sparc64/time.h: Likewise.
20002
20003 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
20004 instances to ...
20005 (KERNEL_MACHINE_TIME_HEADER): ... this.
20006 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20007 instances to ...
20008 (KERNEL_MACHINE_TIME_HEADER): ... this.
20009 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20010 instances to ...
20011 (KERNEL_MACHINE_TIME_HEADER): ... this.
20012
20013 * kern/i386/efi/init.c: Include `<grub/time.h>'.
20014 (grub_millisleep): New function.
20015 * kern/i386/pc/init.c: Include `<grub/time.h>'.
20016 (grub_millisleep): New function.
20017 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
20018 Remove `grub/machine/time.h' include.
20019 (grub_millisleep): New function.
20020 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
20021 Remove `grub/machine/time.h' include.
20022 (grub_millisleep): New function.
20023
20024 * include/grub/misc.h (grub_div_roundup): New function.
20025
20026 * kern/misc.c: Include `<grub/time.h>'.
20027 (grub_millisleep_generic): New function.
20028
20029 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
20030 Add `time.h'.
20031 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
20032 Add `time.h'.
20033 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
20034 `machine/time.h'. Add `time.h'.
20035 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
20036
20037 2007-10-21 Robert Millan <rmh@aybabtu.com>
20038
20039 * include/grub/misc.h (grub_max): New function.
20040
20041 2007-10-21 Robert Millan <rmh@aybabtu.com>
20042
20043 * util/misc.c (grub_util_info): Call fflush() before returning.
20044
20045 2007-10-20 Robert Millan <rmh@aybabtu.com>
20046
20047 * genmk.rb (Image): Copy `extra_flags' from here ...
20048 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
20049
20050 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
20051 to `argc' and `args' arguments.
20052
20053 2007-10-17 Robert Millan <rmh@aybabtu.com>
20054
20055 * kern/i386/loader.S: New file.
20056
20057 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
20058 * kern/i386/loader.S (grub_linux_prot_size)... to here.
20059 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
20060 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
20061 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
20062 * kern/i386/loader.S (grub_linux_real_addr)... to here.
20063 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
20064 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
20065 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
20066 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
20067 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
20068 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
20069 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
20070 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
20071
20072 * kern/i386/realmode.S: New file.
20073
20074 * kern/i386/pc/startup.S (protstack): Moved from here ...
20075 * kern/i386/realmode.S (protstack)... to here.
20076 * kern/i386/pc/startup.S (gdt): Moved from here ...
20077 * kern/i386/realmode.S (gdt)... to here.
20078 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
20079 * kern/i386/realmode.S (prot_to_real)... to here.
20080
20081 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
20082 `kern/i386/realmode.S'.
20083
20084 2007-10-17 Robert Millan <rmh@aybabtu.com>
20085
20086 * include/grub/i386/loader.h: New file.
20087
20088 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
20089 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20090 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20091 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20092 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
20093 * include/grub/i386/loader.h (grub_linux_prot_size)
20094 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20095 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20096 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20097 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
20098
20099 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
20100
20101 2007-10-15 Robert Millan <rmh@aybabtu.com>
20102
20103 * normal/misc.c (grub_normal_print_device_info): Do not probe for
20104 filesystem when dev->disk is unset.
20105 Do probe for filesystem even when dev->disk->has_partitions is set.
20106 In case a filesystem is found, always report it.
20107 In case it isn't, if dev->disk->has_partitions is set, report that
20108 a partition table was found instead of reporting that no filesystem
20109 could be identified.
20110
20111 2007-10-12 Robert Millan <rmh@aybabtu.com>
20112
20113 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
20114 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
20115
20116 * include/grub/types.h (grub_host_to_target16): New macro.
20117 (grub_host_to_target32): Likewise.
20118 (grub_host_to_target64): Likewise.
20119 (grub_target_to_host16): Likewise.
20120 (grub_target_to_host32): Likewise.
20121 (grub_target_to_host64): Likewise.
20122
20123 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
20124 Renamed from to ...
20125 (GRUB_MOD_ALIGN): ...this. Update all users.
20126
20127 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
20128 grub_host_to_target32.
20129 Replace grub_be_to_cpu32 with grub_target_to_host32.
20130 (load_modules): Likewise.
20131 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
20132 Replace grub_be_to_cpu32 with grub_target_to_host32.
20133 Replace grub_cpu_to_be16 with grub_host_to_target16.
20134 Replace grub_cpu_to_be32 grub_host_to_target32.
20135
20136 2007-10-12 Robert Millan <rmh@aybabtu.com>
20137
20138 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
20139 * util/elf/grub-mkimage.c: ... here.
20140
20141 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
20142 `util/powerpc/ieee1275/grub-mkimage.c'.
20143
20144 2007-10-07 Robert Millan <rmh@aybabtu.com>
20145
20146 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
20147 and make it easier to figure out.
20148 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
20149 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
20150 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
20151 leave us with less than HEAP_MIN_SIZE total heap.
20152 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
20153
20154 2007-10-03 Robert Millan <rmh@aybabtu.com>
20155
20156 * include/grub/i386/io.h: New file.
20157 * commands/i386/pc/play.c (inb): Removed.
20158 (outb): Removed.
20159 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20160 with grub_outb().
20161 * term/i386/pc/serial.c (inb): Removed.
20162 (outb): Removed.
20163 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20164 with grub_outb().
20165 * term/i386/pc/vga.c (inb): Removed.
20166 (outb): Removed.
20167 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20168 with grub_outb().
20169
20170 2007-10-02 Robert Millan <rmh@aybabtu.com>
20171
20172 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
20173 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20174 Reported by Marcin Kurek.
20175
20176 2007-09-07 Robert Millan <rmh@aybabtu.com>
20177
20178 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
20179 SmartFirmware version updates (as released by Sven Luther), and avoid
20180 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
20181 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
20182 known broken.
20183
20184 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20185
20186 From Hitoshi Ozeki:
20187 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
20188 when merging two regions.
20189
20190 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20191
20192 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
20193 * normal/completion.c (grub_normal_do_completion): Likewise.
20194 Reported by Hitoshi Ozeki.
20195
20196 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20197
20198 Do not use devices at boot in chainloading.
20199
20200 * loader/i386/pc/chainloader.c (boot_drive): New variable.
20201 (boot_part_addr): Likewise.
20202 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
20203 with BOOT_DRIVE and BOOT_PART_ADDR.
20204 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
20205 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
20206
20207 2007-08-29 Robert Millan <rmh@aybabtu.com>
20208
20209 Patch from Simon Peter <dn.tlp@gmx.net>:
20210 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
20211 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
20212 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
20213 util/i386/pc/grub-setup.c_DEPENDENCIES.
20214 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
20215 util/grub-probe.c_DEPENDENCIES.
20216 * conf/powerpc-ieee1275.rmk: Likewise.
20217
20218 2007-08-28 Robert Millan <rmh@aybabtu.com>
20219
20220 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
20221 to tell grub-mkdevicemap how to name devices.
20222 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
20223 feature).
20224
20225 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
20226 util/i386/get_disk_name.c.
20227 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
20228 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
20229 util/ieee1275/get_disk_name.c.
20230
20231 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
20232
20233 * DISTLIST: Add util/i386/get_disk_name.c and
20234 util/ieee1275/get_disk_name.c.
20235
20236 * util/grub-mkdevicemap.c: Replace device naming logic with
20237 grub_util_get_disk_name() calls.
20238
20239 2007-08-20 Robert Millan <rmh@aybabtu.com>
20240
20241 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
20242 (so that it works for both plural and singular quantities).
20243
20244 2007-08-05 Robert Millan <rmh@aybabtu.com>
20245
20246 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
20247 so that [xz] isn't taken into account when determining order.
20248
20249 2007-08-02 Marco Gerards <marco@gnu.org>
20250
20251 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
20252 `include/multiboot2.h', `include/grub/elfload.h',
20253 `include/multiboot.h', `include/grub/multiboot.h',
20254 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
20255 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
20256 `kern/elf.c', `loader/multiboot_loader.c',
20257 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
20258 `loader/i386/pc/multiboot2.c',
20259 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
20260 `util/i386/pc/grub-mkrescue.in'. Remove
20261 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
20262 `include/grub/i386/pc/util/biosdisk.h' and
20263 `include/grub/powerpc/ieee1275/multiboot.h'.
20264
20265 2007-08-02 Bean <bean123ch@gmail.com>
20266
20267 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
20268 (ntfs_mod_SOURCES): New variable.
20269 (ntfs_mod_CFLAGS): Likewise.
20270 (ntfs_mod_LDFLAGS): Likewise.
20271
20272 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
20273 (grub_probe_SOURCES): Likewise.
20274 (grub_emu_SOURCES): Likewise.
20275
20276 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20277 (grub_emu_SOURCES): Likewise.
20278
20279 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20280 (grub_emu_SOURCES): Likewise.
20281
20282 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
20283
20284 * fs/ntfs.c: New file.
20285
20286 2007-08-02 Bean <bean123ch@gmail.com>
20287
20288 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
20289
20290 * file.h (grub_file): Likewise.
20291
20292 * fshelp.h (grub_fshelp_read_file): Likewise.
20293
20294 * util/i386/pc/grub-setup.c (setup): Likewise.
20295 (save_first_sector): Likewise.
20296 (save_blocklists): Likewise.
20297
20298 * fs/affs.c (grub_affs_read_file): Likewise.
20299
20300 * fs/ext2.c (grub_ext2_read_file): Likewise.
20301
20302 * fs/fat.c (grub_fat_read_data): Likewise.
20303
20304 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
20305
20306 * fs/hfs.c (grub_hfs_read_file): Likewise.
20307
20308 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
20309
20310 * fs/jfs.c (grub_jfs_read_file): Likewise.
20311
20312 * fs/minix.c (grub_minix_read_file): Likewise.
20313
20314 * fs/sfs.c (grub_sfs_read_file): Likewise.
20315
20316 * fs/ufs.c (grub_ufs_read_file): Likewise.
20317
20318 * fs/xfs.c (grub_xfs_read_file): Likewise.
20319
20320 * command/blocklist.c (read_blocklist): Likewise.
20321 (print_blocklist): Likewise.
20322
20323 2007-08-02 Marco Gerards <marco@gnu.org>
20324
20325 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
20326 `util/hostfs.c'.
20327
20328 * disk/host.c: New file.
20329
20330 * util/hostfs.c: Likewise.
20331
20332 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
20333 return `GRUB_ERR_BAD_FS'.
20334 * fs/sfs.c (grub_sfs_mount): Likewise.
20335 * fs/xfs.c (grub_xfs_mount): Likewise.
20336
20337 * include/grub/disk.h (enum grub_disk_dev_id): Add
20338 `GRUB_DISK_DEVICE_HOST_ID'.
20339
20340 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
20341
20342 2007-07-24 Jerone Young <jerone@gmail.com>
20343
20344 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
20345 modules for compilation.
20346 * conf/powerpc-ieee1275.rmk: Likewise.
20347
20348 * include/multiboot.h: Move multiboot definitions to one file. Rename
20349 many definitions to not get grub specific.
20350 * include/multiboot2.h: Create header with multiboot 2 definitions.
20351 * include/grub/multiboot.h: Header for grub specific function
20352 prototypes and definitions.
20353 * include/grub/multiboot2.h: Likewise.
20354 * include/grub/multiboot_loader.h: Likewise.
20355 * include/grub/i386/pc/multiboot.h: Removed.
20356 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
20357
20358 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
20359 and 2 to allow for one multiboot and module commands.
20360 * loader/multiboot2.c: Add multiboot2 functionality.
20361 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
20362 and definition names.
20363 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
20364 2 functions.
20365 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
20366 ieee1275 specific multiboot2 code.
20367
20368 * kern/i386/pc/startup.S: Change headers and definition names for
20369 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
20370
20371 2007-07-22 Robert Millan <rmh@aybabtu.com>
20372
20373 * geninitheader.sh: Process file specified in first parameter rather
20374 than hardcoding grub_modules_init.lst.
20375 * geninit.sh: Likewise. Also, construct header name dynamically rather
20376 than hardcoding grub_modules_init.h.
20377
20378 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
20379 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
20380 grub_probe_init.[ch] and grub_setup_init.[ch].
20381
20382 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
20383 grub_modules_init.h with grub_emu_init.h.
20384 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
20385 grub_probe_init.[ch] files.
20386 * conf/i386-efi.rmk: Likewise.
20387 * conf/i386-pc.rmk: Likewise.
20388 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
20389 grub_setup_init.[ch] files.
20390
20391 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
20392 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
20393 to initialize modules rather than a list of hardcoded functions.
20394 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
20395 grub_init_all() to initialize modules rather than a list of hardcoded
20396 functions.
20397
20398 2007-07-22 Robert Millan <rmh@aybabtu.com>
20399
20400 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20401 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
20402
20403 2007-07-22 Robert Millan <rmh@aybabtu.com>
20404
20405 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
20406 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
20407 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
20408 flag when running on SmartFirmware.
20409 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
20410 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
20411 was set.
20412
20413 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
20414 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
20415 rather than decreasing it.
20416
20417 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
20418 there's not enough space to do it, fail in the same way as when it
20419 can't be done because there are no partitions.
20420
20421 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
20422 when nvsetenv failed.
20423
20424 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20425
20426 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
20427 because this rule is automatically generated.
20428 (grub-mkrescue): Removed for the same reason as above.
20429
20430 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20431
20432 Migrate to GNU General Public License Version 3.
20433
20434 * COPYING: Replaced with the plain text version of GPLv3.
20435
20436 * config.guess: Updated from gnulib.
20437 * config.sub: Likewise.
20438
20439 * geninit.sh: Output a GPLv3 copyright notice.
20440 * geninitheader.sh: Likewise.
20441 * genmodsrc.sh: Likewise.
20442 * gensymlist.sh.in: Likewise.
20443
20444 * boot/i386/pc/boot.S: Upgraded to GPLv3.
20445 * boot/i386/pc/diskboot.S: Likewise.
20446 * boot/i386/pc/pxeboot.S: Likewise.
20447 * commands/blocklist.c: Likewise.
20448 * commands/boot.c: Likewise.
20449 * commands/cat.c: Likewise.
20450 * commands/cmp.c: Likewise.
20451 * commands/configfile.c: Likewise.
20452 * commands/echo.c: Likewise.
20453 * commands/help.c: Likewise.
20454 * commands/ls.c: Likewise.
20455 * commands/search.c: Likewise.
20456 * commands/terminal.c: Likewise.
20457 * commands/test.c: Likewise.
20458 * commands/videotest.c: Likewise.
20459 * commands/i386/cpuid.c: Likewise.
20460 * commands/i386/pc/halt.c: Likewise.
20461 * commands/i386/pc/play.c: Likewise.
20462 * commands/i386/pc/reboot.c: Likewise.
20463 * commands/i386/pc/vbeinfo.c: Likewise.
20464 * commands/i386/pc/vbetest.c: Likewise.
20465 * commands/ieee1275/halt.c: Likewise.
20466 * commands/ieee1275/reboot.c: Likewise.
20467 * commands/ieee1275/suspend.c: Likewise.
20468 * disk/loopback.c: Likewise.
20469 * disk/lvm.c: Likewise.
20470 * disk/raid.c: Likewise.
20471 * disk/efi/efidisk.c: Likewise.
20472 * disk/i386/pc/biosdisk.c: Likewise.
20473 * disk/ieee1275/ofdisk.c: Likewise.
20474 * font/manager.c: Likewise.
20475 * fs/affs.c: Likewise.
20476 * fs/ext2.c: Likewise.
20477 * fs/fat.c: Likewise.
20478 * fs/fshelp.c: Likewise.
20479 * fs/hfs.c: Likewise.
20480 * fs/hfsplus.c: Likewise.
20481 * fs/iso9660.c: Likewise.
20482 * fs/jfs.c: Likewise.
20483 * fs/minix.c: Likewise.
20484 * fs/sfs.c: Likewise.
20485 * fs/ufs.c: Likewise.
20486 * fs/xfs.c: Likewise.
20487 * hello/hello.c: Likewise.
20488 * include/grub/acorn_filecore.h: Likewise.
20489 * include/grub/arg.h: Likewise.
20490 * include/grub/bitmap.h: Likewise.
20491 * include/grub/boot.h: Likewise.
20492 * include/grub/cache.h: Likewise.
20493 * include/grub/device.h: Likewise.
20494 * include/grub/disk.h: Likewise.
20495 * include/grub/dl.h: Likewise.
20496 * include/grub/elfload.h: Likewise.
20497 * include/grub/env.h: Likewise.
20498 * include/grub/err.h: Likewise.
20499 * include/grub/file.h: Likewise.
20500 * include/grub/font.h: Likewise.
20501 * include/grub/fs.h: Likewise.
20502 * include/grub/fshelp.h: Likewise.
20503 * include/grub/gzio.h: Likewise.
20504 * include/grub/hfs.h: Likewise.
20505 * include/grub/kernel.h: Likewise.
20506 * include/grub/loader.h: Likewise.
20507 * include/grub/lvm.h: Likewise.
20508 * include/grub/misc.h: Likewise.
20509 * include/grub/mm.h: Likewise.
20510 * include/grub/net.h: Likewise.
20511 * include/grub/normal.h: Likewise.
20512 * include/grub/parser.h: Likewise.
20513 * include/grub/partition.h: Likewise.
20514 * include/grub/pc_partition.h: Likewise.
20515 * include/grub/raid.h: Likewise.
20516 * include/grub/rescue.h: Likewise.
20517 * include/grub/script.h: Likewise.
20518 * include/grub/setjmp.h: Likewise.
20519 * include/grub/symbol.h: Likewise.
20520 * include/grub/term.h: Likewise.
20521 * include/grub/terminfo.h: Likewise.
20522 * include/grub/tparm.h: Likewise.
20523 * include/grub/types.h: Likewise.
20524 * include/grub/video.h: Likewise.
20525 * include/grub/efi/api.h: Likewise.
20526 * include/grub/efi/chainloader.h: Likewise.
20527 * include/grub/efi/console.h: Likewise.
20528 * include/grub/efi/console_control.h: Likewise.
20529 * include/grub/efi/disk.h: Likewise.
20530 * include/grub/efi/efi.h: Likewise.
20531 * include/grub/efi/pe32.h: Likewise.
20532 * include/grub/efi/time.h: Likewise.
20533 * include/grub/i386/linux.h: Likewise.
20534 * include/grub/i386/setjmp.h: Likewise.
20535 * include/grub/i386/types.h: Likewise.
20536 * include/grub/i386/efi/kernel.h: Likewise.
20537 * include/grub/i386/efi/loader.h: Likewise.
20538 * include/grub/i386/efi/time.h: Likewise.
20539 * include/grub/i386/pc/biosdisk.h: Likewise.
20540 * include/grub/i386/pc/boot.h: Likewise.
20541 * include/grub/i386/pc/chainloader.h: Likewise.
20542 * include/grub/i386/pc/console.h: Likewise.
20543 * include/grub/i386/pc/init.h: Likewise.
20544 * include/grub/i386/pc/kernel.h: Likewise.
20545 * include/grub/i386/pc/loader.h: Likewise.
20546 * include/grub/i386/pc/memory.h: Likewise.
20547 * include/grub/i386/pc/multiboot.h: Likewise.
20548 * include/grub/i386/pc/serial.h: Likewise.
20549 * include/grub/i386/pc/time.h: Likewise.
20550 * include/grub/i386/pc/vbe.h: Likewise.
20551 * include/grub/i386/pc/vbeblit.h: Likewise.
20552 * include/grub/i386/pc/vbefill.h: Likewise.
20553 * include/grub/i386/pc/vbeutil.h: Likewise.
20554 * include/grub/i386/pc/vga.h: Likewise.
20555 * include/grub/ieee1275/ieee1275.h: Likewise.
20556 * include/grub/ieee1275/ofdisk.h: Likewise.
20557 * include/grub/powerpc/libgcc.h: Likewise.
20558 * include/grub/powerpc/setjmp.h: Likewise.
20559 * include/grub/powerpc/types.h: Likewise.
20560 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
20561 * include/grub/powerpc/ieee1275/console.h: Likewise.
20562 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
20563 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
20564 * include/grub/powerpc/ieee1275/loader.h: Likewise.
20565 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
20566 * include/grub/powerpc/ieee1275/time.h: Likewise.
20567 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
20568 * include/grub/sparc64/libgcc.h: Likewise.
20569 * include/grub/sparc64/setjmp.h: Likewise.
20570 * include/grub/sparc64/types.h: Likewise.
20571 * include/grub/sparc64/ieee1275/console.h: Likewise.
20572 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
20573 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
20574 * include/grub/sparc64/ieee1275/time.h: Likewise.
20575 * include/grub/util/biosdisk.h: Likewise.
20576 * include/grub/util/getroot.h: Likewise.
20577 * include/grub/util/lvm.h: Likewise.
20578 * include/grub/util/misc.h: Likewise.
20579 * include/grub/util/raid.h: Likewise.
20580 * include/grub/util/resolve.h: Likewise.
20581 * io/gzio.c: Likewise.
20582 * kern/device.c: Likewise.
20583 * kern/disk.c: Likewise.
20584 * kern/dl.c: Likewise.
20585 * kern/elf.c: Likewise.
20586 * kern/env.c: Likewise.
20587 * kern/err.c: Likewise.
20588 * kern/file.c: Likewise.
20589 * kern/fs.c: Likewise.
20590 * kern/loader.c: Likewise.
20591 * kern/main.c: Likewise.
20592 * kern/misc.c: Likewise.
20593 * kern/mm.c: Likewise.
20594 * kern/parser.c: Likewise.
20595 * kern/partition.c: Likewise.
20596 * kern/rescue.c: Likewise.
20597 * kern/term.c: Likewise.
20598 * kern/efi/efi.c: Likewise.
20599 * kern/efi/init.c: Likewise.
20600 * kern/efi/mm.c: Likewise.
20601 * kern/i386/dl.c: Likewise.
20602 * kern/i386/efi/init.c: Likewise.
20603 * kern/i386/efi/startup.S: Likewise.
20604 * kern/i386/pc/init.c: Likewise.
20605 * kern/i386/pc/lzo1x.S: Likewise.
20606 * kern/i386/pc/startup.S: Likewise.
20607 * kern/ieee1275/ieee1275.c: Likewise.
20608 * kern/powerpc/cache.S: Likewise.
20609 * kern/powerpc/dl.c: Likewise.
20610 * kern/powerpc/ieee1275/cmain.c: Likewise.
20611 * kern/powerpc/ieee1275/crt0.S: Likewise.
20612 * kern/powerpc/ieee1275/init.c: Likewise.
20613 * kern/powerpc/ieee1275/openfw.c: Likewise.
20614 * kern/sparc64/cache.S: Likewise.
20615 * kern/sparc64/dl.c: Likewise.
20616 * kern/sparc64/ieee1275/init.c: Likewise.
20617 * kern/sparc64/ieee1275/openfw.c: Likewise.
20618 * loader/efi/chainloader.c: Likewise.
20619 * loader/efi/chainloader_normal.c: Likewise.
20620 * loader/i386/efi/linux.c: Likewise.
20621 * loader/i386/efi/linux_normal.c: Likewise.
20622 * loader/i386/pc/chainloader.c: Likewise.
20623 * loader/i386/pc/chainloader_normal.c: Likewise.
20624 * loader/i386/pc/linux.c: Likewise.
20625 * loader/i386/pc/linux_normal.c: Likewise.
20626 * loader/i386/pc/multiboot.c: Likewise.
20627 * loader/i386/pc/multiboot_normal.c: Likewise.
20628 * loader/powerpc/ieee1275/linux.c: Likewise.
20629 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
20630 * normal/arg.c: Likewise.
20631 * normal/cmdline.c: Likewise.
20632 * normal/command.c: Likewise.
20633 * normal/completion.c: Likewise.
20634 * normal/execute.c: Likewise.
20635 * normal/function.c: Likewise.
20636 * normal/lexer.c: Likewise.
20637 * normal/main.c: Likewise.
20638 * normal/menu.c: Likewise.
20639 * normal/menu_entry.c: Likewise.
20640 * normal/misc.c: Likewise.
20641 * normal/parser.y: Likewise.
20642 * normal/script.c: Likewise.
20643 * normal/i386/setjmp.S: Likewise.
20644 * normal/powerpc/setjmp.S: Likewise.
20645 * normal/sparc64/setjmp.S: Likewise.
20646 * partmap/acorn.c: Likewise.
20647 * partmap/amiga.c: Likewise.
20648 * partmap/apple.c: Likewise.
20649 * partmap/gpt.c: Likewise.
20650 * partmap/pc.c: Likewise.
20651 * partmap/sun.c: Likewise.
20652 * term/gfxterm.c: Likewise.
20653 * term/terminfo.c: Likewise.
20654 * term/efi/console.c: Likewise.
20655 * term/i386/pc/console.c: Likewise.
20656 * term/i386/pc/serial.c: Likewise.
20657 * term/i386/pc/vesafb.c: Likewise.
20658 * term/i386/pc/vga.c: Likewise.
20659 * term/ieee1275/ofconsole.c: Likewise.
20660 * util/biosdisk.c: Likewise.
20661 * util/console.c: Likewise.
20662 * util/genmoddep.c: Likewise.
20663 * util/getroot.c: Likewise.
20664 * util/grub-emu.c: Likewise.
20665 * util/grub-mkdevicemap.c: Likewise.
20666 * util/grub-probe.c: Likewise.
20667 * util/lvm.c: Likewise.
20668 * util/misc.c: Likewise.
20669 * util/raid.c: Likewise.
20670 * util/resolve.c: Likewise.
20671 * util/update-grub.in: Likewise.
20672 * util/update-grub_lib.in: Likewise.
20673 * util/grub.d/00_header.in: Likewise.
20674 * util/grub.d/10_hurd.in: Likewise.
20675 * util/grub.d/10_linux.in: Likewise.
20676 * util/i386/efi/grub-install.in: Likewise.
20677 * util/i386/efi/grub-mkimage.c: Likewise.
20678 * util/i386/pc/grub-install.in: Likewise.
20679 * util/i386/pc/grub-mkimage.c: Likewise.
20680 * util/i386/pc/grub-mkrescue.in: Likewise.
20681 * util/i386/pc/grub-setup.c: Likewise.
20682 * util/i386/pc/misc.c: Likewise.
20683 * util/powerpc/ieee1275/grub-install.in: Likewise.
20684 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
20685 * util/powerpc/ieee1275/misc.c: Likewise.
20686 * video/bitmap.c: Likewise.
20687 * video/video.c: Likewise.
20688 * video/i386/pc/vbe.c: Likewise.
20689 * video/i386/pc/vbeblit.c: Likewise.
20690 * video/i386/pc/vbefill.c: Likewise.
20691 * video/i386/pc/vbeutil.c: Likewise.
20692 * video/readers/tga.c: Likewise.
20693
20694 2007-07-02 Robert Millan <rmh@aybabtu.com>
20695
20696 * conf/i386-efi.rmk: Replace obsolete reference to
20697 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
20698 with util/getroot.c.
20699 * conf/powerpc-ieee1275.rmk: Likewise.
20700 * conf/sparc64-ieee1275.rmk: Likewise.
20701
20702 * util/grub-emu.c (main): Fix unchecked pointer handling.
20703
20704 2007-07-02 Robert Millan <rmh@aybabtu.com>
20705
20706 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
20707 invocation to fail, in order to support partition-less media.
20708
20709 * util/i386/pc/grub-install.in: Likewise.
20710
20711 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
20712 which fs or partmap modules are needed (akin to its sister scripts).
20713
20714 Also use grub-probe to get rid of unportable /proc/mounts check.
20715
20716 Print the same informational message that the other scripts do, before
20717 exiting.
20718
20719 2007-06-23 Robert Millan <rmh@aybabtu.com>
20720
20721 * util/update-grub_lib.in (font_path): New function. Determine whether
20722 a font file can be found and, if so, echo the GRUB path to it.
20723
20724 * util/update-grub.in: Handle multiple terminals depending on user
20725 input, platform availability and font file presence. Propagate
20726 variables of our findings to /etc/grub.d/ children.
20727
20728 * util/grub.d/00_header.in: Handle multiple terminals, based on
20729 environment setup by update-grub.
20730
20731 2007-06-23 Robert Millan <rmh@aybabtu.com>
20732
20733 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
20734
20735 2007-06-21 Robert Millan <rmh@aybabtu.com>
20736
20737 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
20738 indicate end of data section in kernel image.
20739 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
20740 GRUB_KERNEL_MACHINE_DATA_END.
20741
20742 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
20743 space for it.
20744 * kern/i386/efi/startup.S: Likewise.
20745
20746 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
20747 during image generation. Implement --prefix option to override this
20748 patch.
20749 * util/i386/efi/grub-mkimage.c: Likewise.
20750
20751 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
20752 code to make path relative to its root into a separate function.
20753
20754 * util/i386/pc/grub-install.in: Use newly provided
20755 make_system_path_relative_to_its_root() to convert ${grubdir}, then
20756 pass the result to grub-install --prefix.
20757
20758 2007-06-13 Robert Millan <rmh@aybabtu.com>
20759
20760 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
20761 DEFAULT_DEVICE_MAP.
20762 * util/grub-emu.c: Use above definitions from misc.h instead of
20763 defining them.
20764 * util/grub-mkdevicemap.c: Likewise.
20765 * util/i386/pc/grub-setup.c: Likewise.
20766 * util/grub-probe.c: Likewise.
20767 (probe): Abort with grub_util_error() when either
20768 grub_guess_root_device or grub_util_get_grub_dev fails.
20769
20770 2007-06-12 Robert Millan <rmh@aybabtu.com>
20771
20772 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
20773 "pager" assignment.
20774 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
20775 "pcdata".
20776 * util/grub-probe.c (probe): Likewise for "drive_name".
20777
20778 2007-06-11 Robert Millan <rmh@aybabtu.com>
20779
20780 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
20781 not just the cdrom one.
20782
20783 2007-06-11 Robert Millan <rmh@aybabtu.com>
20784
20785 * util/i386/pc/grub-mkrescue.in: Add "set -e".
20786 Add --pkglibdir=DIR option to override pkglibdir.
20787 Mention --image-type=TYPE in help output.
20788 Fix --grub-mkimage (it was a no-op).
20789 Abort gracefully when no parameter is given.
20790
20791 2007-06-11 Robert Millan <rmh@aybabtu.com>
20792
20793 * util/i386/pc/grub-mkrescue.in: New file.
20794 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
20795 * Makefile.in: Handle bin_SCRIPTS.
20796
20797 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
20798
20799 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
20800 list of video modes.
20801
20802 2007-06-06 Robert Millan <rmh@aybabtu.com>
20803
20804 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
20805 file doesn't exist, or if it is in a filesystem grub can't read.
20806
20807 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
20808 not abort if GRUB_DRIVE could not be defined. Rearrange generated
20809 header comment to fit in 80 columns when the variables are resolved.
20810
20811 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
20812 could be identified by update-grub. Remove redundant check for
20813 unifont.pff existence (since convert_system_path_to_grub_path now
20814 handles that).
20815
20816 2007-06-04 Robert Millan <rmh@aybabtu.com>
20817
20818 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
20819
20820 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
20821
20822 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
20823
20824 2007-06-04 Robert Millan <rmh@aybabtu.com>
20825
20826 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
20827
20828 * include/grub/partition.h: Declare grub_apple_partition_map_init and
20829 grub_apple_partition_map_fini.
20830
20831 * util/biosdisk.c
20832 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
20833 to access >2 TiB disks).
20834
20835 Print disk->total_sectors with %llu instead of %lu, since this
20836 variable is always 64-bit (prevents wrong disk size from being displayed
20837 on either >2 TiB disk or big-endian CPU).
20838
20839 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
20840 into a generic case that supports all (sane) partition maps.
20841
20842 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
20843 breaks big-endian.
20844
20845 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
20846 and grub_apple_partition_map_fini() after that.
20847
20848 2007-06-01 Robert Millan <rmh@aybabtu.com>
20849
20850 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
20851
20852 * util/grub.d/00_header.in: Only enable gfxterm when
20853 convert_system_path_to_grub_path() succeeds.
20854
20855 2007-05-20 Robert Millan <rmh@aybabtu.com>
20856
20857 * util/update-grub_lib.in: New file.
20858 * DISTLIST: Add update-grub_lib.in.
20859 * conf/common.rmk: Generate update-grub_lib and install it in
20860 $(lib_DATA).
20861 * Makefile.in: Add install routine for $(lib_DATA).
20862
20863 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
20864 function provided by update-grub_lib to support arbitrary paths of
20865 unifont.pff.
20866 * util/update-grub.in: Use convert_system_path_to_grub_path() to
20867 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
20868
20869 2007-05-19 Robert Millan <rmh@aybabtu.com>
20870
20871 * commands/i386/cpuid.c: New module.
20872 * DISTLIST: Add it.
20873 * conf/i386-efi.rmk: Enable cpuid.mod.
20874 * conf/i386-pc.rmk: Likewise.
20875
20876 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
20877
20878 * kern/disk.c (grub_disk_read): Check return value of
20879 grub_realloc().
20880
20881 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
20882
20883 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
20884 arrays.
20885 * disk/raid.c (grub_raid_open): Likewise.
20886
20887 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
20888
20889 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
20890 stack instead of on the heap.
20891
20892 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
20893 before doing a read on it.
20894
20895 * configure.ac: Only use -fno-stack-protector for the target
20896 environment.
20897
20898 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
20899
20900 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
20901 __attribute_ ((unused)) to mode_type argument.
20902
20903 * util/getroot.c (grub_guess_root_device): Fix #endif.
20904
20905 * kern/misc.c (memcmp): Fix prototype.
20906
20907 * include/grub/partition.h [GRUB_UTIL]
20908 (grub_gpt_partition_map_init): Add prototype.
20909 (grub_gpt_partition_map_fini): Likewise.
20910
20911 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
20912 at the right place.
20913
20914 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
20915 (grub_fat_read_data): Likewise.
20916 (grub_fat_find_dir): Likewise.
20917
20918 * font/manager.c (find_glyph): Make table a const.
20919 (grub_font_get_glyph): Remove bitmap from if statement.
20920
20921 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
20922
20923 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
20924 code, first search for device in /dev/mapper, then in /dev.
20925 (grub_util_get_grub_dev): New function.
20926 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
20927 prototype.
20928 * util/grub-probe.c (probe): Remove check for RAID, call
20929 grub_util_get_grub_dev() instead of
20930 grub_util_biosdisk_get_grub_dev().
20931 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
20932 grub_util_biosdisk_get_grub_dev().
20933 * util/i386/pc/grub-setup.c (main): Likewise.
20934
20935 2007-05-16 Robert Millan <rmh@aybabtu.com>
20936
20937 * DISTLIST: Update for the latest changes.
20938 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
20939 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
20940 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
20941 grub/util/biosdisk.h.
20942 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
20943 grub/util/biosdisk.h.
20944
20945 2007-05-16 Robert Millan <rmh@aybabtu.com>
20946
20947 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
20948
20949 2007-05-16 Robert Millan <rmh@aybabtu.com>
20950
20951 * util/i386/efi/grub-install.in: New.
20952 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
20953 newly added grub-install.
20954 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
20955 include.
20956 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
20957 grub/util/biosdisk.h.
20958 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
20959 grub/util/biosdisk.h.
20960
20961 2007-05-16 Robert Millan <rmh@aybabtu.com>
20962
20963 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
20964 * include/grub/util/biosdisk.h: ... here.
20965 * util/i386/pc/biosdisk.c: Moved to ...
20966 * util/biosdisk.c: ... here.
20967 * util/i386/pc/getroot.c: Moved to ...
20968 * util/getroot.c: ... here.
20969 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
20970 * util/grub-mkdevicemap.c: ... here.
20971 * util/i386/pc/grub-probe.c: Moved to ...
20972 * util/grub-probe.c: ... here.
20973
20974 2007-05-15 Robert Millan <rmh@aybabtu.com>
20975
20976 * util/update-grub.in: Remove duplicated line in grub.cfg header
20977 message.
20978
20979 2007-05-13 Robert Millan <rmh@aybabtu.com>
20980
20981 * util/update-grub.in: Fix a few assumptions about the devices holding
20982 /, /boot and /boot/grub being the same.
20983 * util/grub.d/00_header.in: Likewise.
20984 * util/grub.d/10_hurd.in: Likewise.
20985 * util/grub.d/10_linux.in: Likewise.
20986
20987 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
20988 patterns. Use that to define the `.old' suffix as older than `'.
20989
20990 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
20991
20992 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
20993 the grub.cfg header message.
20994
20995 2007-05-11 Robert Millan <rmh@aybabtu.com>
20996
20997 * util/update-grub.in: Create device.map if it doesn't already exist,
20998 before attempting to run grub-probe.
20999 Check for grub-probe and grub-mkdevicemap with the same code
21000 grub-install is using.
21001 Remove test mode.
21002
21003 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
21004
21005 * Makefile.in: Add the datarootdir autoconf variable.
21006
21007 2007-05-09 Robert Millan <rmh@aybabtu.com>
21008
21009 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
21010 fail gracefully if dev->disk->partition == NULL.
21011
21012 2007-05-07 Robert Millan <rmh@aybabtu.com>
21013
21014 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
21015 determine partition map module.
21016 * util/i386/pc/grub-install.in: Use this feature to decide which
21017 partition module to load, instead of hardcoding pc and gpt.
21018
21019 2007-05-07 Robert Millan <rmh@aybabtu.com>
21020
21021 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
21022 source directory differs from build directory.
21023
21024 2007-05-05 Robert Millan <rmh@aybabtu.com>
21025
21026 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
21027 initialisation.
21028
21029 2007-05-05 Robert Millan <rmh@aybabtu.com>
21030
21031 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
21032
21033 2007-05-05 Robert Millan <rmh@aybabtu.com>
21034
21035 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
21036 command-line arguments via ${GRUB_CMDLINE_LINUX}.
21037
21038 2007-05-05 Robert Millan <rmh@aybabtu.com>
21039
21040 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
21041 (grub_probe_SOURCES): Likewise.
21042 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
21043 GPT and initialize dos_part and bsd_part accordingly.
21044 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
21045 install_bsd_part.
21046 (main): Activate gpt module for use during partition identification,
21047 and deactivate it afterwards.
21048 * util/i386/pc/grub-install.in: Add gpt module to core.img.
21049 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
21050 partition identification, and deactivate it afterwards.
21051
21052 2007-05-05 Robert Millan <rmh@aybabtu.com>
21053
21054 * term/i386/pc/console.c (grub_console_fini): Call
21055 grub_term_set_current() before grub_term_unregister().
21056
21057 2007-05-04 Robert Millan <rmh@aybabtu.com>
21058
21059 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
21060 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
21061 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
21062 and update-grub_DATA.
21063 * conf/common.rmk: Build and install update-grub components.
21064 * conf/common.mk: Regenerate.
21065 * util/update-grub.in: New. Core of update-grub.
21066 * util/grub.d/00_header.in: New. Generates grub.cfg header.
21067 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
21068 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
21069 * util/grub.d/README: New. Document grub.d directory layout.
21070
21071 2007-05-01 Robert Millan <rmh@aybabtu.com>
21072
21073 * util/grub-emu.c: Move initialization functions
21074 grub_util_biosdisk_init() and grub_init_all() before
21075 grub_util_biosdisk_get_grub_dev(), which relies on them.
21076
21077 2007-04-19 Robert Millan <rmh@aybabtu.com>
21078
21079 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
21080 it is used later.
21081
21082 2007-04-18 Jerone Young <jerone@gmail.com>
21083
21084 * kernel/elf.c: Add missing parenthesis for conditional statement
21085 stanza.
21086
21087 2007-04-10 Jerone Young <jerone@gmail.com>
21088
21089 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
21090 continue on and look for device node with real device name.
21091
21092 2007-04-10 Jerone Young <jerone@gmail.com>
21093
21094 * configure.ac: Add argument for autoconf to use transformation
21095 ability.
21096 * Makefile.in: Add autoconf package transformation code.
21097 * util/i386/pc/grub-install.in: Likewise.
21098 * util/powerpc/ieee1275/grub-install.in: Likewise.
21099
21100 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
21101
21102 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
21103 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
21104 (EXT2_REVISION): Likewise.
21105 (EXT2_INODE_SIZE): Likewise.
21106 (struct grub_ext2_block_group): Added a missing member
21107 "used_dirs".
21108 (grub_ext2_read_inode): Divide by the inode size in a superblock
21109 instead of 128 to obtain INODES_PER_BLOCK.
21110 Use the macro EXT2_INODE_SIZE instead of directly using
21111 SBLOCK->INODE_SIZE.
21112
21113 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
21114
21115 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
21116 superblock instead of the structure size to compute an
21117 offset. This fixes the problem that GRUB could not read a
21118 filesystem when inode size is different from 128-byte.
21119
21120 2007-03-05 Marco Gerards <marco@gnu.org>
21121
21122 * normal/main.c (read_config_file): When "menu" is not set, create
21123 an initial context.
21124
21125 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21126
21127 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
21128 (HEAP_LIMIT): New macro.
21129 (grub_claim_heap): Claim memory up to `heaplimit'.
21130
21131 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21132
21133 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
21134 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
21135 (_start): Likewise.
21136 (grub_arch_modules_addr): Return address after `_end'.
21137 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
21138 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
21139 (add_segments): Calculate `_end' from phdr size and location.
21140 (ALIGN_UP): Moved to ...
21141 * include/grub/misc.h: here.
21142 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
21143 New macro.
21144 (GRUB_IEEE1275_MODULE_BASE): Removed.
21145
21146 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21147
21148 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
21149 loop boundary.
21150
21151 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21152
21153 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
21154 All users updated.
21155 (grub_elf64_load_hook_t): Likewise.
21156 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
21157 debug output.
21158
21159 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21160
21161 * kern/mm.c: Update copyright.
21162 (grub_mm_debug): Correct syntax error.
21163 (grub_mm_dump_free): New function.
21164 (grub_debug_free): Call `grub_free'.
21165 * include/grub/mm.h: Update copyright.
21166 (grub_mm_dump_free): Add declaration.
21167
21168 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21169
21170 * include/grub/ieee1275/ieee1275.h: Update copyright.
21171 * kern/powerpc/ieee1275/init.c: Likewise.
21172 * kern/powerpc/ieee1275/openfw.c: Likewise.
21173
21174 * loader/powerpc/ieee1275/linux.c: Likewise.
21175 * include/grub/elfload.h: Likewise.
21176 * kern/elf.c: Likewise.
21177 (grub_elf32_load): Pass `base' and `size' parameters. Update all
21178 callers.
21179 (grub_elf64_load): Likewise.
21180 (grub_elf32_load_segment): Move to a nested function.
21181 (grub_elf64_load_segment): Likewise.
21182
21183 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21184
21185 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
21186 prototype.
21187 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
21188 (grub_heap_len): Likewise.
21189 (HEAP_SIZE): New macro.
21190 (grub_claim_heap): New function.
21191 (grub_machine_init): Don't claim heap directly. Call
21192 `grub_claim_heap'.
21193 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
21194 (grub_available_iterate): New function.
21195
21196 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
21197
21198 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
21199 * configure.ac: Use it for testing the HOST and TARGET compilers.
21200
21201 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
21202
21203 * Makefile.in (enable_grub_emu): New variable.
21204 * configure.ac (--enable-grub-emu): New option.
21205 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
21206 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
21207 * conf/i386-pc.rmk: Likewise.
21208 * conf/powerpc-ieee1275.rmk: Likewise.
21209 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
21210
21211 2006-12-12 Marco Gerards <marco@gnu.org>
21212
21213 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
21214
21215 * kern/env.c (grub_env_unset): Don't free the member `value' when
21216 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
21217 pointer.
21218
21219 * normal/main.c (current_menu): Removed.
21220 (free_menu): Unset the `menu' environment variable.
21221 (grub_normal_menu_addentry): Make use of the environment variable
21222 `menu', instead of using the global `current_menu'. Allocate
21223 memory for the sourcecode of this entry.
21224 (read_config_file): New argument `nested', changed all callers.
21225 Only in the case of a new context, initialize a new menu. Set the
21226 `menu' environment variable.
21227 (grub_normal_execute): Don't set and unset the environment
21228 variable `menu' here anymore. Only free the menu when leaving the
21229 context.
21230
21231 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
21232 leak.
21233
21234 2006-12-11 Marco Gerards <marco@gnu.org>
21235
21236 * normal/menu_entry.c (run): Fix off by one bug so the last line
21237 is executed. Move the loader check to outside the loop.
21238
21239 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
21240
21241 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
21242
21243 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
21244
21245 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
21246 the number of sectors. Reported by Andrey Shuvikov
21247 <mr_hyro@yahoo.com>.
21248
21249 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
21250
21251 * kern/disk.c (grub_disk_read): When there is a read error, always
21252 try to read only the necessary data.
21253
21254 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
21255 disk/raid.c.
21256 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
21257 prototype.
21258 [GRUB_UTIL] (grub_raid_fini): Likewise.
21259 [GRUB_UTIL] (grub_lvm_init): Likewise.
21260 [GRUB_UTIL] (grub_lvm_fini): Likewise.
21261 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
21262 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
21263 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
21264 and grub_raid_fini().
21265
21266 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
21267
21268 * include/grub/types.h (__unused): Rename to UNUSED.
21269 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
21270 (grub_elf64_size): Likewise.
21271
21272 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21273
21274 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
21275 grub_error_push and grub_error_pop in the error-handling path.
21276 (grub_elf32_load_segment): Only call grub_file_read with non-zero
21277 length.
21278
21279 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21280
21281 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
21282 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21283 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21284 (kernel_elf_SOURCES): Likewise.
21285 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
21286 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
21287 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21288 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21289 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
21290 (elf_mod_SOURCES): New variable.
21291 (elf_mod_CFLAGS): Likewise.
21292 (elf_mod_LDFLAGS): Likewise.
21293 * include/grub/types.h (__unused): New macro.
21294 * include/grub/elfload.h: New file.
21295 * kern/elf.c: Likewise.
21296 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
21297 (ELF32_LOADMASK): New macro.
21298 (ELF64_LOADMASK): Likewise.
21299 (vmlinux): Removed.
21300 (grub_linux_load32): New function.
21301 (grub_linux_load64): Likewise.
21302 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
21303 Use grub_elf_t instead of grub_file_t.
21304
21305 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
21306
21307 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
21308 `catch_result' to struct set_color_args.
21309
21310 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
21311
21312 * normal/menu.c: Include grub/script.h.
21313 * normal/menu_entry.c: Likewise.
21314 * include/grub/normal.h: Do not include grub/script.h.
21315
21316 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21317
21318 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
21319
21320 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21321
21322 * kern/disk.c (grub_disk_open): Print debug messages when opening a
21323 disk.
21324 (grub_disk_close): Print debug messages when closing a disk.
21325 (grub_disk_read): Print debug messages when disk read fails.
21326 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
21327 filesystem type.
21328 * kern/partition.c: Include misc.h.
21329 (grub_partition_iterate): Print debug messages when detecting
21330 partition type.
21331
21332 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21333
21334 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
21335 is negative.
21336 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
21337
21338 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
21339
21340 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
21341 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
21342
21343 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
21344
21345 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
21346 instead of sizeof(lv). Patch by Michael Guntsche.
21347
21348 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
21349
21350 * disk/lvm.c: Rename VGS to VG_LIST.
21351 (grub_lvm_iterate): Change VGS->LV to VG-LV.
21352 (grub_lvm_open): Likewise.
21353 Thanks to Michael Guntsche for finding this bug.
21354
21355 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
21356
21357 * configure.ac (AC_INIT): Bumped to 1.95.
21358
21359 2006-10-14 Robert Millan <rmh@aybabtu.com>
21360
21361 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
21362 with "/dev/.static/dev/md".
21363
21364 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21365
21366 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
21367 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
21368 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
21369 DRIVE_NAME are always freed.
21370
21371 * util/i386/pc/biosdisk.c (make_device_name): Add one into
21372 DOS_PART, as a DOS partition is counted from one instead of zero
21373 now. Reported by Robert Millan.
21374
21375 2006-10-14 Robert Millan <rmh@aybabtu.com>
21376
21377 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
21378 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
21379 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
21380 string returned by grub_guess_root_device.
21381 * util/i386/pc/grub-setup.c: Likewise.
21382 * util/i386/pc/grub-probefs.c: Likewise.
21383
21384 * util/i386/pc/grub-probefs.c: Rename to ...
21385 * util/i386/pc/grub-probe.c: ... this.
21386 * DISTLIST: Remove grub-probefs, add grub-probe.
21387 * conf/i386-efi.rmk: Likewise.
21388 * conf/i386-pc.rmk: Likewise.
21389 * util/i386/pc/grub-install.in: Likewise.
21390
21391 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
21392 choose which information we want to print.
21393
21394 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21395
21396 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
21397 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
21398 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
21399 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
21400 video/readers/tga.c and video/i386/pc/vbeutil.c.
21401
21402 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
21403
21404 Added support for RAID and LVM.
21405
21406 * disk/lvm.c: New file.
21407 * disk/raid.c: Likewise.
21408 * include/grub/lvm.h: Likewise.
21409 * include/grub/raid.h: Likewise.
21410 * include/grub/util/lvm.h: Likewise.
21411 * include/grub/util/raid.h: Likewise.
21412 * util/lvm.c: Likewise.
21413 * util/raid.c: Likewise.
21414
21415 * include/grub/disk.h (grub_disk_dev_id): Add
21416 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
21417 (grub_disk_get_size): New prototype.
21418 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
21419 returns a partition.
21420 (grub_disk_get_size): New function.
21421
21422 * kern/i386/pc/init.c (make_install_device): Copy the prefix
21423 verbatim if grub_install_dos_part is -2.
21424
21425 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
21426 and LVM devices.
21427
21428 * util/i386/pc/grub-setup.c (setup): New argument
21429 MUST_EMBED. Force embedding of GRUB when the argument is
21430 true. Close FILE before returning.
21431 (main): Add support for RAID and LVM.
21432
21433 * conf/common.rmk: Add RAID and LVM modules.
21434 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
21435 util/lvm.c.
21436 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
21437
21438 * kern/misc.c (grub_strstr): New function.
21439 * include/grub/misc.h (grub_strstr): New prototype.
21440
21441 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
21442
21443 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
21444
21445 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
21446
21447 * kern/misc.c (grub_strtoull): Guess the base only if not
21448 specified.
21449
21450 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21451
21452 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
21453 PowerMac support.
21454
21455 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21456
21457 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
21458
21459 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
21460 Remove `flags' argument. All callers changed.
21461 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
21462 (IEEE1275_IHANDLE_INVALID): New variable.
21463 (IEEE1275_CELL_INVALID): New variable.
21464 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
21465 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
21466 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
21467 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
21468 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
21469 codes from Open Firmware. All callers updated.
21470 (grub_ieee1275_next_property): Directly return Open Firmware return
21471 code.
21472 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
21473 Standardize error checking from `grub_ieee1275_get_property'.
21474 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
21475 `devalias' to `aliases'. Correct comments. Consolidate error paths.
21476
21477 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21478
21479 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
21480 `instance_to_package_args' to `instance_to_path_args'.
21481
21482 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
21483 `grub_ieee1275_chosen'.
21484
21485 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
21486 `grub_ieee1275_interpret'.
21487
21488 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
21489
21490 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
21491
21492 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
21493
21494 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
21495 (__cmpdi): Likewise.
21496
21497 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
21498 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
21499 `grub_ssize_t'.
21500
21501 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
21502
21503 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
21504 to type `grub_ssize_t'.
21505 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
21506
21507 2006-09-22 Marco Gerards <marco@gnu.org>
21508
21509 * normal/script.c (grub_script_create_cmdmenu): Skip leading
21510 newlines.
21511
21512 2006-09-22 Marco Gerards <marco@gnu.org>
21513
21514 * commands/echo.c: New file.
21515
21516 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
21517
21518 * conf/common.rmk (echo_mod_SOURCES): New variable.
21519 (echo_mod_CFLAGS): Likewise.
21520 (echo_mod_LDFLAGS): Likewise.
21521
21522 2006-09-22 Marco Gerards <marco@gnu.org>
21523
21524 * normal/main.c (get_line): Malloc memory instead of using
21525 preallocated memory. Removed the arguments `cmdline' and
21526 `max_len'. Updated all callers.
21527
21528 2006-09-22 Marco Gerards <marco@gnu.org>
21529
21530 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
21531 (normal_mod_DEPENDENCIES): Likewise.
21532
21533 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
21534 (normal_mod_DEPENDENCIES): Likewise.
21535
21536 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
21537
21538 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
21539
21540 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
21541 programs.
21542 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
21543 (normal_mod_DEPENDENCIES): Likewise.
21544 * conf/i386-pc.mk: Regenerate.
21545 * conf/i386-efi.mk: Likewise
21546 * conf/common.mk: Likewise.
21547 * conf/powerpc-ieee1275.mk: Likewise.
21548 * conf/sparc64-ieee1275.mk: Likewise.
21549
21550 2006-09-22 Robert Millan <rmh@aybabtu.com>
21551
21552 Sync with i386 version.
21553 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
21554 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
21555
21556 2006-09-21 Robert Millan <rmh@aybabtu.com>
21557
21558 Import from GRUB Legacy (lib/device.c):
21559 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
21560 (init_device_map) [__linux__]: Add support for I2O devices.
21561
21562 2006-09-14 Marco Gerards <marco@gnu.org>
21563
21564 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
21565 `-melf_i386'.
21566
21567 2006-09-14 Robert Millan <rmh@aybabtu.com>
21568
21569 * util/i386/pc/grub-install.in: Skip menu.lst when removing
21570 /boot/grub/*.lst.
21571
21572 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
21573
21574 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
21575 before adding it to device.map.
21576
21577 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
21578
21579 * genmk.rb: Let GCC generate dependencies the first time it
21580 compiles a file; using the -MD option.
21581 * conf/common.mk: Regenerate.
21582 * conf/i386-pc.mk: Likewise.
21583 * conf/i386-efi.mk: Likewise.
21584 * conf/powerpc-ieee1275.mk: Likewise.
21585 * conf/sparc64-ieee1275.mk: Likewise.
21586
21587 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
21588
21589 Move the prototypes of grub_setjmp and grub_longjmp to
21590 cpu/setjmp.h, so that each architecture may specify different
21591 attributes.
21592
21593 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
21594 (grub_longjmp): Likewise.
21595 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
21596 (grub_longjmp): Likewise.
21597 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
21598 (grub_longjmp): Likewise.
21599
21600 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
21601 [!GRUB_UTIL] (grub_longjmp): Removed.
21602
21603 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
21604
21605 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
21606 "color!" method does not return any value.
21607
21608 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21609
21610 * include/grub/bitmap.h: New file.
21611
21612 * include/grub/i386/pc/vbeutil.h: Likewise.
21613
21614 * video/bitmap.c: Likewise.
21615
21616 * video/readers/tga.c: Likewise.
21617
21618 * video/i386/pc/vbeutil.c: Likewise.
21619
21620 * commands/videotest.c: Code cleanup and updated to reflect to new
21621 video API.
21622
21623 * term/gfxterm.c: Likewise.
21624
21625 * video/video.c: Likewise.
21626
21627 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
21628 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
21629 (bitmap_mod_SOURCES): New entry.
21630 (bitmap_mod_CFLAGS): Likewise.
21631 (bitmap_mod_LDFLAGS): Likewise.
21632 (tga_mod_SOURCES): Likewise.
21633 (tga_mod_CFLAGS): Likewise.
21634 (tga_mod_LDFLAGS): Likewise.
21635
21636 * include/grub/video.h (grub_video_blit_operators): New enum type.
21637 (grub_video_render_target): Changed as forward declaration and moved
21638 actual definition to be video driver specific.
21639 (grub_video_adapter.blit_bitmap): Added blitting operator.
21640 (grub_video_adapter.blit_render_target): Likewise.
21641 (grub_video_blit_bitmap): Likewise.
21642 (grub_video_blit_render_target): Likewise.
21643
21644 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
21645 driver specific render target definition.
21646 (grub_video_vbe_map_rgba): Added driver internal helper.
21647 (grub_video_vbe_unmap_color): Updated to use
21648 grub_video_i386_vbeblit_info.
21649 (grub_video_vbe_get_video_ptr): Likewise.
21650
21651 * include/grub/i386/pc/vbeblit.h
21652 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
21653 grub_video_i386_vbeblit_info.
21654 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
21655 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
21656 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
21657 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
21658 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
21659 (grub_video_i386_vbeblit_index_index): Likewise.
21660 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
21661 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
21662 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
21663 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
21664 operator.
21665 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
21666 operator.
21667
21668 * video/i386/pc/vbeblit.c: Updated to reflect changes on
21669 include/grub/i386/pc/vbeblit.h.
21670
21671 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
21672 Updated to use grub_video_i386_vbeblit_info.
21673 (grub_video_i386_vbefill_R8G8B8): Likewise.
21674 (grub_video_i386_vbefill_index): Likewise.
21675 (grub_video_i386_vbefill): Added generic filler.
21676
21677 * video/i386/pc/vbefill.c: Updated to reflect changes on
21678 include/grub/i386/pc/vbefill.h.
21679
21680 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
21681 grub_video_i386_vbeblit_info.
21682 (grub_video_vbe_unmap_color): Likewise.
21683 (grub_video_vbe_blit_glyph): Likewise.
21684 (grub_video_vbe_scroll): Likewise.
21685 (grub_video_vbe_draw_pixel): Removed function.
21686 (grub_video_vbe_get_pixel): Likewise.
21687 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
21688 updated code to use it.
21689 (common_blitter): Added common blitter for render target and bitmap.
21690 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
21691 (grub_video_vbe_blit_render_target): Likewise.
21692
21693 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
21694
21695 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
21696 is in text mode if there is no console control protocol instance
21697 available.
21698
21699 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21700
21701 * include/grub/video.h: Code cleanup.
21702
21703 * include/grub/i386/pc/vbe.h: Likewise.
21704
21705 * video/i386/pc/vbe.c: Likewise.
21706
21707 * video/i386/pc/vbeblit.c: Likewise.
21708
21709 * video/i386/pc/vbefill.c: Likewise.
21710
21711 * video/video.c: Likewise. Also added more comments.
21712
21713 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21714
21715 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
21716 (struct grub_biosdisk_dap): Likewise.
21717
21718 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
21719 linkage settings for all functions.
21720
21721 2006-07-12 Marco Gerards <marco@gnu.org>
21722
21723 * configure.ac (--enable-mm-debug): Fix typo.
21724
21725 * genkernsyms.sh.in: Use proper quoting for `CC'.
21726
21727 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
21728
21729 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
21730 (normal_mod_ASFLAGS): Remove "-m32".
21731
21732 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
21733
21734 * util/misc.c: Include config.h.
21735 [!HAVE_MEMALIGN]: Do not include malloc.h.
21736 (grub_memalign): Use posix_memalign, if present. Then, use
21737 memalign, if present. Otherwise, emit an error.
21738
21739 * util/grub-emu.c: Do not include malloc.h.
21740
21741 * include/grub/util/misc.h: Include unistd.h. This is required for
21742 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
21743 D. Eades III <hde@foobar-qux.org>.
21744
21745 * configure.ac (AC_GNU_SOURCE): Added.
21746 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
21747 type.
21748
21749 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
21750
21751 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
21752 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
21753
21754 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
21755
21756 * include/grub/types.h (grub_host_addr_t): Rename to
21757 grub_target_addr_t.
21758 (grub_host_off_t): Rename to grub_target_off_t.
21759 (grub_host_size_t): Rename to grub_target_size_t.
21760 (grub_host_ssize_t): Rename to grub_target_ssize_t.
21761 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
21762
21763 * include/grub/kernel.h (struct grub_module_header): Change type
21764 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
21765 (grub_module_info): Likewise.
21766
21767 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
21768
21769 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
21770 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
21771 Velazquez <jesus.velazquez@gmail.com>.
21772
21773 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
21774
21775 Count partitions from 1 instead of 0 in the string representation
21776 of partitions. Still use 0-based internally.
21777
21778 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
21779 (sun_partition_map_iterate): Use grub_partition_t instead of
21780 struct grub_partition *. Cast DESC->START_CYLINDER to
21781 grub_uint64_t after converting the endian.
21782 (sun_partition_map_probe): Subtract 1 for PARTNUM.
21783 (sun_partition_map_get_name): Add 1 to P->INDEX.
21784
21785 * partmap/pc.c (grub_partition_parse): Subtract 1 for
21786 PCDATA->DOS_PART.
21787 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
21788
21789 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
21790 zero instead of one.
21791 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
21792 (gpt_partition_map_get_name): Add 1 into P->INDEX.
21793
21794 * partmap/apple.c (apple_partition_map_iterate): Change the type
21795 of POS to unsigned.
21796 (apple_partition_map_probe): Subtract 1 for PARTNUM.
21797 (apple_partition_map_get_name): Add 1 into P->INDEX.
21798
21799 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
21800 of POS to unsigned.
21801 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
21802 calculate the offset of a partition.
21803 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
21804 (amiga_partition_map_get_name): Add 1 into P->INDEX.
21805
21806 * partmap/acorn.c (acorn_partition_map_find): Change the type of
21807 SECTOR to grub_disk_addr_t.
21808 (acorn_partition_map_iterate): Likewise.
21809 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
21810 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
21811 top.
21812 (acorn_partition_map_get_name): Add 1 into P->INDEX.
21813
21814 * kern/i386/pc/init.c (make_install_device): Add 1 into
21815 GRUB_INSTALL_DOS_PART.
21816
21817 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
21818 conditional.
21819
21820 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
21821
21822 Clean up the code to support 64-bit addressing in disks and
21823 files. This change is not enough for filesystems yet.
21824
21825 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
21826 type of "start" to grub_uint64_t.
21827 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
21828 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
21829 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
21830 convert addresses.
21831
21832 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
21833 to grub_disk_addr_t.
21834
21835 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
21836 string.
21837
21838 * partmap/pc.c (pc_partition_map_iterate): Likewise.
21839
21840 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
21841 to char *.
21842
21843 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
21844
21845 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
21846
21847 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
21848
21849 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
21850 to grub_off_t, to detect an error from grub_file_seek.
21851 (grub_multiboot_load_elf32): Likewise.
21852
21853 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
21854 maximum unsigned long value when an overflow is detected.
21855 (grub_strtoull): New function.
21856 (grub_divmod64): Likewise.
21857 (grub_lltoa): use grub_divmod64.
21858
21859 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
21860 grub_disk_addr_t.
21861 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
21862 the pointer to next character. Use grub_strtoull instead of
21863 grub_strtoul.
21864 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
21865 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
21866 respectively.
21867
21868 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
21869 return value is signed.
21870 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
21871 test if OFFSET is less than zero, as OFFSET is unsigned now.
21872
21873 * kern/disk.c (struct grub_disk_cache): Change the type of
21874 "sector" to grub_disk_addr_t.
21875 (grub_disk_cache_get_index): Change the type of SECTOR to
21876 grub_disk_addr_t. Calculate the hash with SECTOR casted to
21877 unsigned after shifting.
21878 (grub_disk_cache_invalidate): Change the type of SECTOR to
21879 grub_disk_addr_t.
21880 (grub_disk_cache_unlock): Likewise.
21881 (grub_disk_cache_store): Likewise.
21882 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
21883 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
21884 grub_disk_addr_t and grub_uint64_t, respectively.
21885 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
21886 body, as the value of OFFSET is tweaked by
21887 grub_disk_check_range. Change the types of START_SECTOR, LEN and
21888 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
21889 respectively.
21890 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
21891 body, as the value of OFFSET is tweaked by
21892 grub_disk_check_range. Change the types of LEN and N to
21893 grub_size_t.
21894
21895 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
21896 and "saved_offset" to grub_off_t.
21897 (test_header): Cast BUF to char *.
21898 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
21899 to char *.
21900 (grub_gzio_read): Change the types of OFFSET and SIZE to
21901 grub_off_t and grub_size_t, respectively.
21902
21903 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
21904 Removed.
21905 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
21906 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
21907 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
21908 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
21909 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
21910
21911 * include/grub/types.h (grub_off_t): Unconditionally set to
21912 grub_uint64_t.
21913 (grub_disk_addr_t): Changed to grub_uint64_t.
21914
21915 * include/grub/partition.h (struct grub_partition): Change the
21916 types of "start", "len" and "offset" to grub_disk_addr_t,
21917 grub_uint64_t and grub_disk_addr_t, respectively.
21918 (grub_partition_get_start): Return grub_disk_addr_t.
21919 (grub_partition_get_len): Return grub_uint64_t.
21920
21921 * include/grub/misc.h (grub_strtoull): New prototype.
21922 (grub_divmod64): Likewise.
21923
21924 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
21925 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
21926 grub_off_t, respectively.
21927 All callers and references changed.
21928
21929 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
21930 grub_size_t in "read".
21931 All callers and references changed.
21932
21933 * include/grub/file.h (struct grub_file): Change the types of
21934 "offset" and "size" to grub_off_t and grub_off_t,
21935 respectively. Change the type of SECTOR to grub_disk_addr_t in
21936 "read_hook".
21937 (grub_file_read): Change the type of LEN to grub_size_t.
21938 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
21939 grub_off_t.
21940 (grub_file_size): Return grub_off_t.
21941 (grub_file_tell): Likewise.
21942 All callers and references changed.
21943
21944 * include/grub/disk.h (struct grub_disk_dev): Change the types of
21945 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
21946 "write".
21947 (struct grub_disk): Change the type of "total_sectors" to
21948 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
21949 "read_hook".
21950 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
21951 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
21952 (grub_disk_write): Likewise.
21953 All callers and references changed.
21954
21955 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
21956 char * for grub_strncmp to silence gcc.
21957 (grub_iso9660_mount): Likewise.
21958 (grub_iso9660_mount): Likewise.
21959 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
21960 return statement.
21961 (grub_iso9660_iterate_dir): Likewise.
21962 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
21963
21964 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
21965 LEN to grub_disk_addr_t and grub_size_t, respectively.
21966
21967 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
21968
21969 * fs/jfs.c (grub_jfs_read_file): Likewise.
21970
21971 * fs/minix.c (grub_jfs_read_file): Likewise.
21972
21973 * fs/sfs.c (grub_jfs_read_file): Likewise.
21974
21975 * fs/ufs.c (grub_jfs_read_file): Likewise.
21976
21977 * fs/xfs.c (grub_jfs_read_file): Likewise.
21978
21979 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
21980 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
21981 respectively.
21982
21983 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
21984 BLKNR to -1 instead of returning GRUB_ERRNO.
21985 (grub_ext2_read_file): Change the types of SECTOR and
21986 LEN to grub_disk_addr_t and grub_size_t, respectively.
21987
21988 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
21989 LEN to grub_disk_addr_t and grub_size_t, respectively.
21990
21991 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
21992 grub_file_read.
21993
21994 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
21995 string. Do not cast SECTOR explicitly.
21996
21997 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
21998 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
21999 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
22000 grub_disk_addr_t and grub_size_t, respectively. If the sector is
22001 over 2TB and LBA mode is not supported, raise an error.
22002 (get_safe_sectors): New function.
22003 (grub_biosdisk_read): Use get_safe_sectors.
22004 (grub_biosdisk_write): Likewise.
22005
22006 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
22007 (grub_efidisk_write): Likewise.
22008
22009 * disk/loopback.c (delete_loopback): Cosmetic changes.
22010 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
22011 correctly.
22012 (grub_loopback_open): Likewise.
22013 (grub_loopback_read): Likewise. Also, change the type of POS to
22014 grub_off_t, and fix the usage of grub_memset.
22015
22016 * commands/i386/pc/play.c: Include grub/machine/time.h.
22017
22018 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
22019 print FILE->SIZE.
22020
22021 * commands/configfile.c: Include grub/env.h.
22022
22023 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
22024 GRUB_ERRNO directly instead. Change the type of POS to
22025 grub_off_t. Follow the coding standard.
22026
22027 * commands/blocklist.c: Include grub/partition.h.
22028 (grub_cmd_blocklist): Return an error if the underlying device is
22029 not a disk. Take the starting sector of a partition into account,
22030 if a partition is used.
22031
22032 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
22033 a length field.
22034 (lba_mode): Support 64-bit addresses.
22035 (chs_mode): Likewise.
22036 (copy_buffer): Adapted to the new offsets of a length field and a
22037 segment field.
22038 (blocklist_default_start): Allocate 64-bit space.
22039
22040 * boot/i386/pc/boot.S (force_lba): Removed.
22041 (boot_drive): Moved to under KERNEL_SECTOR.
22042 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
22043 space.
22044 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
22045 is useless.
22046 (lba_mode): Refactored to support a 64-bit address. More size
22047 optimization.
22048 (setup_sectors): Likewise.
22049
22050 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22051
22052 * DISTLIST: Added include/grub/i386/linux.h. Removed
22053 include/grub/i386/pc/linux.h
22054
22055 * configure.ac (AC_INIT): Bumped to 1.94.
22056
22057 * config.guess: Updated from gnulib.
22058 * config.sub: Likewise.
22059 * install-sh: Likewise.
22060 * mkinstalldirs: Likewise.
22061
22062 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22063
22064 * conf/common.rmk (grub_modules_init.lst): Depended on
22065 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
22066 MODSRCFILES.
22067
22068 * genmk.rb (PModule::rule): Reverted the previous change.
22069
22070 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22071
22072 * conf/common.rmk (grub_modules_init.lst): Depends on
22073 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
22074 that the target does not exist before producing.
22075 (grub_modules_init.h): Remove the target before generating.
22076 (grub_emu_init.c): Likewise.
22077
22078 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
22079
22080 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
22081
22082 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
22083 for the target-specific tests. Make sure that we also have the
22084 up-to-date target variables for those tests.
22085
22086 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22087
22088 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
22089 (PModule::rule): Likewise.
22090
22091 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22092
22093 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
22094 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
22095 target-specific flags should be prefixed.
22096 (PModule::rule): Likewise.
22097
22098 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
22099
22100 * configure.ac (CMP): Check if cmp is available explicitly.
22101
22102 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
22103
22104 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
22105 (target_cpu): New variable.
22106 (pkglibdir): Use target_cpu instead of host_cpu.
22107
22108 * util/i386/pc/grub-install.in (host_cpu): Removed.
22109 (target_cpu): New variable.
22110 (pkglibdir): Use target_cpu instead of host_cpu.
22111
22112 * util/genmoddep.c: Removed.
22113
22114 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
22115 instead of GRUB_HOST_SIZEOF_VOID_P.
22116 * kern/dl.c: Likewise.
22117
22118 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
22119 ...
22120 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22121 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22122 (GRUB_TARGET_SIZEOF_LONG): ... this.
22123 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22124 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22125 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22126 to ...
22127 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22128 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22129 (GRUB_TARGET_SIZEOF_LONG): ... this.
22130 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22131 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22132 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22133 to ...
22134 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22135 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22136 (GRUB_TARGET_SIZEOF_LONG): ... this.
22137 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22138 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22139
22140 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
22141 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
22142 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
22143 instead of GRUB_HOST_SIZEOF_LONG.
22144 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
22145 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
22146 GRUB_CPU_WORDS_BIGENDIAN.
22147 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
22148 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
22149 grub_host_ssize_t.
22150
22151 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
22152 (genmoddep_SOURCES): Likewise.
22153 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
22154 (genmoddep_SOURCES): Likewise.
22155 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
22156 (genmoddep_SOURCES): Likewise.
22157 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
22158 Likewise.
22159 (genmoddep_SOURCES): Likewise.
22160
22161 * genmoddep.awk: New file.
22162
22163 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
22164 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
22165 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
22166 (PModule::rule): Likewise.
22167 (Program::rule): Likewise.
22168 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
22169 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
22170 respectively.
22171
22172 * configure.ac: Rewritten intensively to use host and target
22173 instead of build and host, respectively.
22174
22175 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
22176 (host_cpu): Removed.
22177 (target_cpu): New variable.
22178 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
22179 (BUILD_CC): Removed.
22180 (BUILD_CFLAGS): Likewise.
22181 (BUILD_CPPFLAGS): Likewise.
22182 (TARGET_CC): New variable.
22183 (TARGET_CFLAGS): Likewise.
22184 (TARGET_CPPFLAGS): Likewise.
22185 (TARGET_LDFLAGS): Likewise.
22186 (AWK): Likewise.
22187 (include): Use target_cpu instead of host_cpu.
22188 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
22189
22190 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
22191
22192 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
22193
22194 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
22195 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
22196 field 'false' to 'exec_on_false'.
22197 (grub_script_create_cmdif): Renamed argument names to reflect above
22198 changes.
22199
22200 * normal/execute.c (grub_script_execute_cmdif): Likewise.
22201
22202 * normal/script.c (grub_script_create_cmdif): Likewise.
22203
22204 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
22205
22206 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
22207 top.
22208 (grub_hfsplus_btree_recptr): Likewise.
22209 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
22210 FILEBLOCK both to pass a block number and store next block
22211 number.
22212 (grub_hfsplus_read_block): Rewritten heavily to support an extent
22213 overflow file correctly. Specify errors appropriately, because
22214 fshelp expects that GRUB_ERRNO is set when fails. Reuse
22215 grub_hfsplus_btree_recptr to get the pointer to a found key.
22216 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
22217 is found.
22218
22219 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
22220 linux.mod.
22221 (_linux_mod_SOURCES): New variable.
22222 (_linux_mod_CFLAGS): Likewise.
22223 (_linux_mod_LDFLAGS): Likewise.
22224 (linux_mod_SOURCES): Likewise.
22225 (linux_mod_CFLAGS): Likewise.
22226 (linux_mod_LDFLAGS): Likewise.
22227
22228 * DISTLIST: Added loader/i386/efi/linux.c,
22229 loader/i386/efi/linux_normal.c and
22230 include/grub/i386/efi/loader.h.
22231
22232 * loader/i386/efi/linux.c: New file.
22233 * loader/i386/efi/linux_normal.c: Likewise.
22234 * include/grub/i386/efi/loader.h: Likewise.
22235
22236 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
22237
22238 * commands/blocklist.c: New file.
22239
22240 * DISTLIST: Added commands/blocklist.c.
22241
22242 * term/efi/console.c (grub_console_highlight_color): Use a lighter
22243 color for the background, and a darker color for the foreground.
22244 (grub_console_checkkey): Return READ_KEY.
22245 (grub_console_cls): Set the background to
22246 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
22247
22248 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
22249
22250 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
22251 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
22252
22253 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
22254 prototype.
22255
22256 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
22257 BG. The spec is wrong again.
22258
22259 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
22260 prototype.
22261 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
22262
22263 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
22264 commands/blocklist.c.
22265 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22266
22267 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
22268 (blocklist_mod_SOURCES): New variable.
22269 (blocklist_mod_CFLAGS): Likewise.
22270 (blocklist_mod_LDFLAGS): Likewise.
22271
22272 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
22273
22274 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
22275 duplication.
22276 (lba_mode): Use %eax more intensively to reduce the code size.
22277
22278 2006-05-20 Marco Gerards <marco@gnu.org>
22279
22280 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
22281
22282 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
22283 for `menuentry'.
22284 (script): Accept leading newlines.
22285 (newlines): New rule to describe 0 or more newlines.
22286 (commands): Accept `command' with trailing newline. Fixed the
22287 order in which arguments were passed to `grub_script_add_cmd'.
22288 Accept commands separated by newlines.
22289 (function): Changed to accept newlines.
22290 (menuentry) Rewritten.
22291
22292 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
22293 front of the list, instead of to the end.
22294
22295 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
22296
22297 * util/i386/pc/grub-install.in (bindir): New variable.
22298 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
22299 Shaver <lbgwjl@gmail.com>.
22300
22301 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
22302
22303 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
22304 grub/machine/linux.h
22305 * loader/i386/pc/linux.c: Likewise.
22306
22307 * include/grub/i386/pc/linux.h: Moved to ...
22308 * include/grub/i386/linux.h: ... here.
22309
22310 * include/grub/i386/linux.h (struct linux_kernel_params): New
22311 struct.
22312
22313 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
22314
22315 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
22316 checking.
22317 (grub_video_vbe_blit_glyph): Likewise.
22318 (grub_video_vbe_blit_bitmap): Likewise.
22319 (grub_video_vbe_blit_render_target): Likewise.
22320
22321 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
22322
22323 * configure.ac (--with-platform): Properly quote the square
22324 brackets.
22325
22326 2006-05-08 Marco Gerards <marco@gnu.org>
22327
22328 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
22329 this...
22330 (kernel_elf_HEADERS): ...to this. Updated all users.
22331 (grubof_symlist.c): Renamed from this...
22332 (kernel_elf_symlist.c): ...to this. Updated all users.
22333 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22334 (grubof_SOURCES): Renamed from this...
22335 (kernel_elf_SOURCES): ...to this.
22336 (grubof_HEADERS): Renamed from this...
22337 (kernel_elf_HEADERS): ...to this.
22338 (grubof_CFLAGS): Renamed from this...
22339 (kernel_elf_CFLAGS): ...to this.
22340 (grubof_ASFLAGS): Renamed from this...
22341 (kernel_elf_ASFLAGS): ...to this.
22342 (grubof_LDFLAGS): Renamed from this...
22343 (kernel_elf_LDFLAGS): ...to this.
22344
22345 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
22346 this...
22347 (kernel_elf_HEADERS): ...to this. Updated all users.
22348 (grubof_symlist.c): Renamed from this...
22349 (kernel_elf_symlist.c): ...to this. Updated all users.
22350 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22351 (grubof_SOURCES): Renamed from this...
22352 (kernel_elf_SOURCES): ...to this.
22353 (grubof_HEADERS): Renamed from this...
22354 (kernel_elf_HEADERS): ...to this.
22355 (grubof_CFLAGS): Renamed from this...
22356 (kernel_elf_CFLAGS): ...to this.
22357 (grubof_ASFLAGS): Renamed from this...
22358 (kernel_elf_ASFLAGS): ...to this.
22359 (grubof_LDFLAGS): Renamed from this...
22360 (kernel_elf_LDFLAGS): ...to this.
22361
22362 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
22363 `kernel.elf' instead of `grubof'.
22364
22365 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
22366
22367 Add --with-platform to configure. Use pkglibdir instead of
22368 pkgdatadir. This is reported by Roger Leigh.
22369
22370 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
22371 (host_vendor): Likewise.
22372 (host_os): Likewise.
22373 (pkgdatadir): Likewise.
22374 (platform): New variable.
22375 (pkglibdir): Likewise.
22376 Use PKGLIBDIR instead of PKGDATADIR.
22377
22378 * util/i386/pc/grub-install.in (datadir): Removed.
22379 (host_vendor): Likewise.
22380 (host_os): Likewise.
22381 (pkgdatadir): Likewise.
22382 (platform): New variable.
22383 (pkglibdir): Likewise.
22384 Use PKGLIBDIR instead of PKGDATADIR.
22385
22386 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
22387 instead of GRUB_DATADIR.
22388 (main): Likewise.
22389 * util/i386/pc/grub-mkimage.c (usage): Likewise.
22390 (main): Likewise.
22391 * util/i386/efi/grub-mkimage.c (usage): Likewise.
22392 (main): Likewise.
22393
22394 * configure.ac (--with-platform): New option.
22395 Use PLATFORM instead of HOST_VENDOR to specify a platform.
22396
22397 * Makefile.in: Include a makefile based on PLATFORM instead of
22398 HOST_VENDOR.
22399 (pkgdatadir): Not appended by the machine type.
22400 (pkglibdir): Appended by the machine type.
22401 (host_vendor): Removed.
22402 (platform): New variable.
22403 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
22404 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
22405 (uninstall): Likewise.
22406
22407 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
22408
22409 Use the environment context in the menu. Remove the commands
22410 "default" and "timeout", and use variables instead.
22411
22412 * normal/menu.c: Include grub/env.h.
22413 (print_entry): Cast TITLE to silence gcc.
22414 (get_timeout): New function.
22415 (set_timeout): Likewise.
22416 (get_entry_number): Likewise.
22417 (run_menu): Use a default entry, a fallback entry and a timeout
22418 in the environment variables "default", "fallback" and
22419 "timeout". Also, tweak the default entry if it is not within the
22420 current menu entries.
22421 (grub_menu_run): Use a fallback entry in the environment variable
22422 "fallback".
22423
22424 * normal/main.c (read_config_file): Do not initialize
22425 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
22426 NEWMENU->TIMEOUT.
22427 (grub_normal_execute): Use a data slot to store the menu.
22428
22429 * include/grub/normal.h (struct grub_menu): Removed default_entry,
22430 fallback_entry and timeout.
22431 (struct grub_menu_list): Removed.
22432 (grub_menu_list_t): Likewise.
22433 (struct grub_context): Likewise.
22434 (grub_context_t): Likewise.
22435 (grub_context_get): Likewise.
22436 (grub_context_get_current_menu): Likewise.
22437 (grub_context_push_menu): Likewise.
22438 (grub_context_pop_menu): Likewise.
22439 (grub_default_init): Likewise.
22440 (grub_default_fini): Likewise.
22441 (grub_timeout_init): Likewise.
22442 (grub_timeout_fini): Likewise.
22443
22444 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
22445 and timeout.mod.
22446 (normal_mod_SOURCES): Removed normal/context.c.
22447
22448 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
22449 commands/default.c, commands/timeout.c and normal/context.c.
22450 (normal_mod_SOURCES): Removed normal/context.c.
22451
22452 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
22453 commands/timeout.c and normal/context.c.
22454 (normal_mod_SOURCES): Removed normal/context.c.
22455
22456 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
22457 commands/default.c, commands/timeout.c and normal/context.c.
22458 (normal_mod_SOURCES): Removed normal/context.c.
22459
22460 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
22461 timeout.mod.
22462 (default_mod_SOURCES): Removed.
22463 (default_mod_CFLAGS): Likewise.
22464 (default_mod_LDFLAGS): Likewise.
22465 (timeout_mod_SOURCES): Removed.
22466 (timeout_mod_CFLAGS): Likewise.
22467 (timeout_mod_LDFLAGS): Likewise.
22468
22469 * DISTLIST: Removed commands/default.c, commands/timeout.c and
22470 normal/context.c.
22471
22472 * commands/default.c: Removed.
22473 * commands/timeout.c: Likewise.
22474 * normal/context.c: Likewise.
22475
22476 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
22477
22478 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
22479
22480 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
22481
22482 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
22483 "next" to "prev" for readability.
22484 (struct grub_env_sorted_var): New struct.
22485 (grub_env_context): Renamed to ...
22486 (initial_context): ... this.
22487 (grub_env_var_context): Renamed to ...
22488 (current_context): ... this.
22489 (grub_env_find): Look only at CURRENT_CONTEXT.
22490 (grub_env_context_open): Rewritten to copy exported variables from
22491 previous context.
22492 (grub_env_context_close): Rewritten according to the new
22493 scheme. Also, add an assertion to prevent the initial context from
22494 removed.
22495 (grub_env_insert): Removed the code for the sorted list.
22496 (grub_env_remove): Likewise.
22497 (grub_env_export): Simply mark the variable with
22498 GRUB_ENV_VAR_GLOBAL.
22499 (grub_env_set): A cosmetic change for naming consistency.
22500 (grub_env_get): Likewise.
22501 (grub_env_unset): Likewise.
22502 (grub_env_iterate): Rewritten to sort variables within this
22503 function.
22504 (grub_register_variable_hook): Fixed for naming consistency. Call
22505 grub_env_find again, only if NAME is not found at the first time.
22506 (mangle_data_slot_name): New function.
22507 (grub_env_set_data_slot): Likewise.
22508 (grub_env_get_data_slot): Likewise.
22509 (grub_env_unset_data_slot): Likewise.
22510
22511 * include/grub/env.h (grub_env_var_type): New enum.
22512 (GRUB_ENV_VAR_LOCAL): New constant.
22513 (GRUB_ENV_VAR_GLOBAL): Likewise.
22514 (GRUB_ENV_VAR_DATA): Likewise.
22515 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
22516 "type".
22517 (grub_env_set): Replace VAR with NAME for consistency.
22518 (grub_register_variable_hook): Likewise.
22519 (grub_env_export): Specify the name of the argument.
22520 (grub_env_set_data_slot): New prototype.
22521 (grub_env_get_data_slot): Likewise.
22522 (grub_env_unset_data_slot): Likewise.
22523
22524 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22525
22526 Extend the loader so that GRUB can accept a loader which comes
22527 back to GRUB when a loaded image exits. Also, this change adds
22528 support for a chainloader on EFI.
22529
22530 * term/efi/console.c: Include grub/misc.h.
22531 (grub_console_checkkey): Display a scan code on the top for
22532 debugging. This will be removed once the EFI port gets stable.
22533 Correct the scan code mapping.
22534
22535 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
22536 allocate memory from larger regions, in order to reduce the number
22537 of allocated regions. Otherwise, the MacOSX loader panics.
22538 (filter_memory_map): Avoid less than 1MB for compatibility with
22539 other loaders.
22540 (add_memory_regions): Allocate from the tail of a region, if
22541 possible, to avoid allocating a region near to 1MB, for the MacOSX
22542 loader.
22543
22544 * kern/efi/init.c (grub_efi_set_prefix): Specify
22545 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
22546
22547 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
22548 argument IMAGE_HANDLE and specify it to get a loaded image.
22549 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
22550 grub_efi_get_loaded_image.
22551 (grub_efi_get_filename): Divide the length by the size of
22552 grub_efi_char16_t.
22553 (grub_efi_get_device_path): New function.
22554 (grub_efi_print_device_path): Print End Device Path nodes. Divide
22555 the length by the size of grub_efi_char16_t for a file path device
22556 path node.
22557
22558 * kern/loader.c (grub_loader_noreturn): New variable.
22559 (grub_loader_set): Accept a new argument NORETURN. Set
22560 GRUB_LOADER_NORETURN to NORETURN.
22561 All callers changed.
22562 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
22563 grub_machine_fini.
22564
22565 * include/grub/efi/efi.h (grub_efi_get_device_path): New
22566 prototype.
22567 (grub_efi_get_loaded_image): Take an argument to specify an image
22568 handle.
22569
22570 * include/grub/loader.h (grub_loader_set): Added one more argument
22571 NORETURN.
22572
22573 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
22574 instead of grub_efi_open_protocol.
22575 (grub_efidisk_get_device_name): Likewise.
22576 (grub_efidisk_close): Print a newline.
22577 (grub_efidisk_get_device_handle): Fixed to use
22578 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
22579 GRUB_EFI_DEVICE_PATH_TYPE.
22580
22581 * disk/efi/efidisk.c (device_path_guid): Moved to ...
22582 * kern/efi/efi.c (device_path_guid): ... here.
22583
22584 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
22585 chain.mod.
22586 (kernel_mod_HEADERS): Added efi/disk.h.
22587 (_chain_mod_SOURCES): New variable.
22588 (_chain_mod_CFLAGS): Likewise.
22589 (_chain_mod_LDFLAGS): Likewise.
22590 (chain_mod_SOURCES): Likewise.
22591 (chain_mod_CFLAGS): Likewise.
22592 (chain_mod_LDFLAGS): Likewise.
22593
22594 * DISTLIST: Added include/grub/efi/chainloader.h,
22595 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
22596
22597 * include/grub/efi/chainloader.h: New file.
22598 * loader/efi/chainloader.c: Likewise.
22599 * loader/efi/chainloader_normal.c: Likewise.
22600
22601 2006-04-30 Marco Gerards <marco@gnu.org>
22602
22603 * commands/configfile.c (grub_cmd_source): New function.
22604 (GRUB_MOD_INIT): Register the commands `source' and `.'.
22605 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
22606
22607 2006-04-30 Marco Gerards <marco@gnu.org>
22608
22609 * normal/execute.c (grub_script_execute_cmd): Change the return
22610 type to `grub_err_t'. Correctly return the error.
22611 (grub_script_execute_cmdline): In case a command line is not a
22612 command or a function, try to interpret it as an assignment.
22613
22614 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22615
22616 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
22617 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
22618 skip a node whose name is obviously invalid as UTF-16,
22619 i.e. contains a NUL character. Stop the iteration when the last
22620 directory entry is found. Instead of using the return value of
22621 grub_hfsplus_btree_iterate_node, store the value in RET and use
22622 it, because the iterator can be stopped by the last directory
22623 entry.
22624
22625 2006-04-30 Marco Gerards <marco@gnu.org>
22626
22627 * include/grub/env.h (grub_env_export): New prototype. Reported
22628 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
22629
22630 2006-04-30 Marco Gerards <marco@gnu.org>
22631
22632 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
22633 size of the extents in a catalog file record.
22634
22635 2006-04-29 Marco Gerards <marco@gnu.org>
22636
22637 * commands/configfile.c (grub_cmd_configfile): Execute the
22638 configfile within its own context.
22639
22640 * include/grub/env.h (grub_env_context_open): New prototype.
22641 (grub_env_context_close): Likewise.
22642
22643 * kern/env.c (grub_env): Removed.
22644 (grub_env_sorted): Likewise.
22645 (grub_env_context): New variable.
22646 (grub_env_var_context): Likewise.
22647 (grub_env_find): Search both the active context and the global
22648 context.
22649 (grub_env_context_open): New function.
22650 (grub_env_context_close): Likewise.
22651 (grub_env_insert): Likewise.
22652 (grub_env_remove): Likewise.
22653 (grub_env_export): Likewise.
22654 (grub_env_set): Changed to use helper functions to avoid code
22655 duplication.
22656 (grub_env_iterate): Rewritten so both the current context and the
22657 global context are being used.
22658
22659 * normal/command.c (export_command): New function.
22660 (grub_command_init): Register the `export' function.
22661
22662 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
22663
22664 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
22665 explicitly to suppress gcc's warnings.
22666 * fs/fat.c (grub_fat_find_dir): Likewise.
22667 (grub_fat_label): Likewise.
22668 * fs/xfs.c (grub_xfs_read_inode): Likewise.
22669 (grub_xfs_mount): Likewise.
22670 (grub_xfs_label): Likewise.
22671 * fs/affs.c (grub_affs_mount): Likewise.
22672 (grub_affs_label): Likewise.
22673 (grub_affs_iterate_dir): Likewise.
22674 * fs/sfs.c (grub_sfs_mount): Likewise.
22675 (grub_sfs_iterate_dir): Likewise.
22676 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
22677 * fs/hfs.c (grub_hfs_mount): Likewise.
22678 (grub_hfs_cmp_catkeys): Likewise.
22679 (grub_hfs_find_dir): Likewise.
22680 (grub_hfs_dir): Likewise.
22681 (grub_hfs_label): Likewise.
22682 * fs/jfs.c (grub_jfs_mount): Likewise.
22683 (grub_jfs_opendir): Likewise.
22684 (grub_jfs_getent): Likewise.
22685 (grub_jfs_lookup_symlink): Likewise.
22686 (grub_jfs_label): Likewise.
22687 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
22688 (grub_hfsplus_iterate_dir): Likewise.
22689 (grub_hfsplus_btree_iterate_node): Made static.
22690
22691 * util/grub-emu.c (prefix): New variable.
22692 (grub_machine_set_prefix): New function.
22693 (main): Do not set the environment variable "prefix" here. Only
22694 set PREFIX, which is used later by grub_machine_set_prefix.
22695
22696 * include/grub/video.h: Do not include grub/symbol.h.
22697 (grub_video_register): Not exported. This symbol is not defined in
22698 the kernel.
22699 (grub_video_unregister): Likewise.
22700 (grub_video_iterate): Likewise.
22701 (grub_video_setup): Likewise.
22702 (grub_video_restore): Likewise.
22703 (grub_video_get_info): Likewise.
22704 (grub_video_get_blit_format): Likewise.
22705 (grub_video_set_palette): Likewise.
22706 (grub_video_get_palette): Likewise.
22707 (grub_video_set_viewport): Likewise.
22708 (grub_video_get_viewport): Likewise.
22709 (grub_video_map_color): Likewise.
22710 (grub_video_map_rgb): Likewise.
22711 (grub_video_map_rgba): Likewise.
22712 (grub_video_fill_rect): Likewise.
22713 (grub_video_blit_glyph): Likewise.
22714 (grub_video_blit_bitmap): Likewise.
22715 (grub_video_blit_render_target): Likewise.
22716 (grub_video_scroll): Likewise.
22717 (grub_video_swap_buffers): Likewise.
22718 (grub_video_create_render_target): Likewise.
22719 (grub_video_delete_render_target): Likewise.
22720 (grub_video_set_active_render_target): Likewise.
22721
22722 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
22723 Undefined.
22724 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
22725
22726 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
22727 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22728 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22729 instead of $(srcdir)/genkernsyms.sh.
22730
22731 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
22732 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22733 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22734 instead of $(srcdir)/genkernsyms.sh.
22735
22736 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
22737 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22738 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22739 instead of $(srcdir)/genkernsyms.sh.
22740
22741 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
22742 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22743 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22744 instead of $(srcdir)/genkernsyms.sh.
22745
22746 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
22747 genkernsyms.sh.
22748
22749 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
22750 genkernsyms.sh.
22751 (gensymlist.sh): New target.
22752 (genkernsyms.sh): Likewise.
22753
22754 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
22755 genkernsyms.sh.in and gensymlist.sh.in.
22756
22757 * genkernsyms.sh: Removed.
22758 * gensymlist.sh: Likewise.
22759
22760 * genkernsyms.sh.in: New file.
22761 * gensymlist.sh.in: Likewise.
22762
22763 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
22764
22765 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
22766 clobber "prefix", since we may have already set it manually.
22767
22768 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
22769
22770 * kern/misc.c (abort): New alias for grub_abort.
22771
22772 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
22773
22774 A new machine-specific function "grub_machine_set_prefix" is
22775 defined. This is called after loading modules, so that a prefix
22776 initialization can use modules. Also, this change adds an
22777 intensive debugging feature for the memory manager via the
22778 configure option "--enable-mm-debug".
22779
22780 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
22781 PART.LEN.
22782
22783 * kern/sparc64/ieee1275/init.c (abort): Removed.
22784 (grub_stop): Likewise.
22785 (grub_exit): New function.
22786 (grub_set_prefix): Renamed to ...
22787 (grub_machine_set_prefix): ... this.
22788 (grub_machine_init): Do not call grub_set_prefix.
22789
22790 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
22791 (grub_machine_set_prefix): ... this.
22792 (grub_machine_init): Do not call grub_set_prefix.
22793
22794 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
22795 (grub_machine_init): Do not set the prefix here.
22796
22797 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
22798
22799 * kern/efi/init.c: Include grub/mm.h.
22800 (grub_efi_set_prefix): New function.
22801
22802 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
22803 (grub_efi_get_filename): New function.
22804 (grub_print_device_path): Renamed to ...
22805 (grub_efi_print_device_path): ... this.
22806
22807 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
22808 [MM_DEBUG] (grub_realloc): Likewise.
22809 [MM_DEBUG] (grub_free): Likewise.
22810 [MM_DEBUG] (grub_memalign): Likewise.
22811 [MM_DEBUG] (grub_mm_debug): New variable.
22812 [MM_DEBUG] (grub_debug_malloc): New function.
22813 [MM_DEBUG] (grub_debug_free): New function.
22814 [MM_DEBUG] (grub_debug_realloc): New function.
22815 [MM_DEBUG] (grub_debug_memalign): New function.
22816
22817 * kern/misc.c (grub_abort): Print a newline to distinguish
22818 the message.
22819
22820 * kern/main.c (grub_main): Call grub_machine_set_prefix and
22821 grub_set_root_dev after loading modules. This is necessary when
22822 setting a prefix depends on modules.
22823
22824 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
22825 (grub_efi_print_device_path): ... this.
22826 (grub_efi_get_filename): New prototype.
22827 (grub_efi_set_prefix): Likewise.
22828
22829 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
22830 and grub/disk.h.
22831 (grub_efidisk_get_device_handle): New prototype.
22832 (grub_efidisk_get_device_name): Likewise.
22833
22834 * include/grub/mm.h: Include config.h.
22835 (MM_DEBUG): Removed.
22836 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
22837 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
22838 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
22839 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
22840 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
22841 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
22842 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
22843 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
22844 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
22845
22846 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
22847
22848 * disk/efi/efidisk.c: Include grub/partition.h.
22849 (iterate_child_devices): New function.
22850 (add_device): First, compare only last device path nodes, so that
22851 devices are sorted by the types.
22852 (grub_efidisk_get_device_handle): New function.
22853 (grub_efidisk_get_device_name): Likewise.
22854
22855 * configure.ac (--enable-mm-debug): New option to enable the
22856 memory manager debugging feature. This makes the binary much
22857 bigger, so is disabled by default.
22858
22859 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
22860
22861 Use grub_abort instead of grub_stop, and grub_exit must be
22862 define in each architecture now. Also, this change adds support
22863 for EFI disks.
22864
22865 * util/i386/pc/grub-probefs.c: Include grub/term.h.
22866 (grub_getkey): New function.
22867 (grub_term_get_current): Likewise.
22868
22869 * util/i386/pc/grub-setup.c: Include grub/term.h.
22870 (grub_getkey): New function.
22871 (grub_term_get_current): Likewise.
22872
22873 * util/misc.c (grub_stop): Renamed to ...
22874 (grub_exit): ... this.
22875
22876 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
22877 (grub_exit): ... this.
22878 (grub_machine_init): Use grub_abort instead of abort.
22879 (grub_stop): Removed.
22880
22881 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
22882 abort.
22883
22884 * kern/i386/pc/startup.S (grub_exit): New function.
22885 (cold_reboot): New label.
22886
22887 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
22888 (grub_efi_init): Call grub_efidisk_init.
22889 (grub_efi_fini): Call grub_efidisk_fini.
22890
22891 * kern/efi/efi.c: Include grub/mm.h.
22892 (grub_efi_console_control_guid): Renamed to ...
22893 (console_control_guid): ... this.
22894 (grub_efi_loaded_image_guid): Renamed to ...
22895 (loaded_image_guid): ... this.
22896 (grub_efi_locate_handle): New function.
22897 (grub_efi_open_protocol): Likewise.
22898 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
22899 GRUB_EFI_CONSOLE_CONTROL_GUID.
22900 (grub_efi_exit): Removed.
22901 (grub_stop): Likewise.
22902 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
22903 (grub_exit): New function.
22904 (grub_print_device_path): Likewise.
22905
22906 * kern/rescue.c (grub_rescue_cmd_exit): New function.
22907 (grub_enter_rescue_mode): Register "exit".
22908
22909 * kern/misc.c (grub_real_dprintf): A cosmetic change.
22910 (grub_abort): New function.
22911
22912 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
22913
22914 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
22915
22916 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
22917
22918 * include/grub/efi/efi.h (grub_efi_exit): Removed.
22919 (grub_print_device_path): New prototype.
22920 (grub_efi_locate_handle): Likewise.
22921 (grub_efi_open_protocol): Likewise.
22922
22923 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
22924 * disk/efi/efidisk.c: Likewise.
22925
22926 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
22927
22928 * include/grub/efi/console_control.h
22929 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
22930
22931 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
22932 last 8 bytes as an array.
22933 (GRUB_EFI_DISK_IO_GUID): New macro.
22934 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
22935 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
22936 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
22937 grub_uint8_t.
22938 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
22939 (struct grub_efi_device_path): Rename the member "sub_type" to
22940 "subtype".
22941 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
22942 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
22943 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
22944 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
22945 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
22946 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
22947 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
22948 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
22949 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
22950 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
22951 (struct grub_efi_pci_device_path): New structure.
22952 (grub_efi_pci_device_path_t): New type.
22953 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
22954 (struct grub_efi_pccard_device_path): New structure.
22955 (grub_efi_pccard_device_path_t): New type.
22956 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
22957 (struct grub_efi_memory_mapped_device_path): New structure.
22958 (grub_efi_memory_mapped_device_path_t): New type.
22959 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
22960 (struct grub_efi_vendor_device_path): New structure.
22961 (grub_efi_vendor_device_path_t): New type.
22962 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
22963 (struct grub_efi_controller_device_path): New structure.
22964 (grub_efi_controller_device_path_t): New type.
22965 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
22966 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
22967 (struct grub_efi_acpi_device_path): New structure.
22968 (grub_efi_acpi_device_path_t): New type.
22969 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
22970 (struct grub_efi_expanded_acpi_device_path): New structure.
22971 (grub_efi_expanded_acpi_device_path_t): New type.
22972 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
22973 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
22974 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
22975 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
22976 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
22977 (struct grub_efi_atapi_device_path): New structure.
22978 (grub_efi_atapi_device_path_t): New type.
22979 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
22980 (struct grub_efi_fibre_channel_device_path): New structure.
22981 (grub_efi_fibre_channel_device_path_t): New type.
22982 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
22983 (struct grub_efi_1394_device_path): New structure.
22984 (grub_efi_1394_device_path_t): New type.
22985 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
22986 (struct grub_efi_usb_device_path): New structure.
22987 (grub_efi_usb_device_path_t): New type.
22988 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
22989 (struct grub_efi_usb_class_device_path): New structure.
22990 (grub_efi_usb_class_device_path_t): New type.
22991 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
22992 (struct grub_efi_i2o_device_path): New structure.
22993 (grub_efi_i2o_device_path_t): New type.
22994 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
22995 (struct grub_efi_mac_address_device_path): New structure.
22996 (grub_efi_mac_address_device_path_t): New type.
22997 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
22998 (struct grub_efi_ipv4_device_path): New structure.
22999 (grub_efi_ipv4_device_path_t): New type.
23000 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
23001 (struct grub_efi_ipv6_device_path): New structure.
23002 (grub_efi_ipv6_device_path_t): New type.
23003 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
23004 (struct grub_efi_infiniband_device_path): New structure.
23005 (grub_efi_infiniband_device_path_t): New type.
23006 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
23007 (struct grub_efi_uart_device_path): New structure.
23008 (grub_efi_uart_device_path_t): New type.
23009 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
23010 (struct grub_efi_vendor_messaging_device_path): New structure.
23011 (grub_efi_vendor_messaging_device_path_t): New type.
23012 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
23013 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
23014 (struct grub_efi_hard_drive_device_path): New structure.
23015 (grub_efi_hard_drive_device_path_t): New type.
23016 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
23017 (struct grub_efi_cdrom_device_path): New structure.
23018 (grub_efi_cdrom_device_path_t): New type.
23019 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
23020 (struct grub_efi_vendor_media_device_path): New structure.
23021 (grub_efi_vendor_media_device_path_t): New type.
23022 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
23023 (struct grub_efi_file_path_device_path): New structure.
23024 (grub_efi_file_path_device_path_t): New type.
23025 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
23026 (struct grub_efi_protocol_device_path): New structure.
23027 (grub_efi_protocol_device_path_t): New type.
23028 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
23029 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
23030 (struct grub_efi_bios_device_path): New structure.
23031 (grub_efi_bios_device_path_t): New type.
23032 (struct grub_efi_disk_io): New structure.
23033 (grub_efi_disk_io_t): New type.
23034 (struct grub_efi_block_io_media): New structure.
23035 (grub_efi_block_io_media_t): New type.
23036 (struct grub_efi_block_io): New structure.
23037 (grub_efi_block_io_t): New type.
23038
23039 * include/grub/misc.h (grub_stop): Removed.
23040 (grub_exit): New prototype.
23041 (grub_abort): Likewise.
23042
23043 * include/grub/disk.h (enum grub_disk_dev_id): Added
23044 GRUB_DISK_DEVICE_EFIDISK_ID.
23045
23046 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
23047 disk/efi/efidisk.c.
23048 (kernel_syms.lst): Remove the target if an error occurs.
23049
23050 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
23051
23052 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
23053 as it was simply too buggy.
23054
23055 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
23056
23057 * kern/misc.c (grub_lltoa): New function.
23058 (grub_vsprintf): Added support for the long long suffix,
23059 i.e. "ll".
23060
23061 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
23062
23063 * Makefile.in (LDFLAGS): Add variable.
23064 (LD): Remove variable.
23065 * configure.ac: Add -m32 to LDFLAGS.
23066 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
23067 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
23068 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
23069 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
23070 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
23071 variables.
23072 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
23073 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
23074 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
23075
23076 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
23077
23078 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
23079 length for unknown glyph.
23080
23081 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23082
23083 Add support for pre-loaded modules into the EFI port.
23084
23085 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
23086 completely. Accept one more argument DIR. The caller has changed.
23087
23088 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
23089
23090 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
23091 (grub_efi_loaded_image_guid): New variable.
23092 (grub_efi_get_loaded_image): New function.
23093 (grub_arch_modules_addr): Likewise.
23094
23095 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
23096 prototype.
23097
23098 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
23099 (struct grub_efi_loaded_image): New structure.
23100 (grub_efi_loaded_image_t): New type.
23101
23102 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23103
23104 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
23105 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
23106 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
23107
23108 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
23109
23110 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
23111
23112 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
23113
23114 * DISTLIST: Added include/grub/efi/console.h,
23115 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
23116 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23117
23118 * include/grub/efi/console.h: New file.
23119 * include/grub/efi/time.h: Likewise.
23120 * include/grub/i386/efi/kernel.h: Likewise.
23121 * kern/efi/init.c: Likewise.
23122 * kern/efi/mm.c: Likewise.
23123 * term/efi/console.c: Likewise.
23124
23125 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
23126 (grub_stop): Removed.
23127 (grub_get_rtc): Likewise.
23128 (grub_machine_init): Simply call grub_efi_init.
23129 (grub_machine_fini): Call grub_efi_fini.
23130
23131 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
23132 (grub_efi_output_string): Removed.
23133 (grub_efi_stall): New function.
23134 (grub_stop): Likewise.
23135 (grub_get_rtc): Likewise.
23136
23137 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
23138 (grub_efi_stall): New prototype.
23139 (grub_efi_allocate_pages): Likewise.
23140 (grub_efi_free_pages): Likewise.
23141 (grub_efi_get_memory_map): Likewise.
23142 (grub_efi_mm_init): Likewise.
23143 (grub_efi_mm_fini): Likewise.
23144 (grub_efi_init): Likewise.
23145 (grub_efi_fini): Likewise.
23146
23147 * include/grub/i386/efi/time.h: Do not include
23148 grub/symbol.h. Include grub/efi/time.h.
23149 (GRUB_TICKS_PER_SECOND): Removed.
23150 (grub_get_rtc): Likewise.
23151
23152 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
23153 Added padding. The EFI spec is buggy.
23154 (GRUB_EFI_BLACK): New macro.
23155 (GRUB_EFI_BLUE): Likewise.
23156 (GRUB_EFI_GREEN): Likewise.
23157 (GRUB_EFI_CYAN): Likewise.
23158 (GRUB_EFI_RED): Likewise.
23159 (GRUB_EFI_MAGENTA): Likewise.
23160 (GRUB_EFI_BROWN): Likewise.
23161 (GRUB_EFI_LIGHTGRAY): Likewise.
23162 (GRUB_EFI_BRIGHT): Likewise.
23163 (GRUB_EFI_DARKGRAY): Likewise.
23164 (GRUB_EFI_LIGHTBLUE): Likewise.
23165 (GRUB_EFI_LIGHTGREEN): Likewise.
23166 (GRUB_EFI_LIGHTCYAN): Likewise.
23167 (GRUB_EFI_LIGHTRED): Likewise.
23168 (GRUB_EFI_LIGHTMAGENTA): Likewise.
23169 (GRUB_EFI_YELLOW): Likewise.
23170 (GRUB_EFI_WHITE): Likewise.
23171 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
23172 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
23173 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
23174 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
23175 (GRUB_EFI_BACKGROUND_RED): Likewise.
23176 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
23177 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
23178 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
23179 (GRUB_EFI_TEXT_ATTR): Likewise.
23180
23181 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
23182 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23183 (kernel_mod_HEADERS): Added efi/time.h.
23184
23185 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
23186
23187 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
23188 include/grub/efi/api.h, include/grub/efi/console_control.h,
23189 include/grub/efi/efi.h, include/grub/efi/pe32.h,
23190 include/grub/i386/efi/time.h, kern/efi/efi.c,
23191 kern/i386/efi/init.c, kern/i386/efi/startup.S,
23192 and util/i386/efi/grub-mkimage.c.
23193
23194 * Makefile.in (RMKFILES): Added i386-efi.rmk.
23195
23196 * genmk.rb (PModule#rule): Do not export symbols if
23197 #{prefix}_EXPORTS is set to "no".
23198
23199 * conf/i386-efi.mk: New file.
23200 * conf/i386-efi.rmk: Likewise.
23201 * include/grub/efi/api.h: Likewise.
23202 * include/grub/efi/console_control.h: Likewise.
23203 * include/grub/efi/efi.h: Likewise.
23204 * include/grub/efi/pe32.h: Likewise.
23205 * include/grub/i386/efi/time.h: Likewise.
23206 * kern/efi/efi.c: Likewise.
23207 * kern/i386/efi/init.c: Likewise.
23208 * kern/i386/efi/startup.S: Likewise.
23209 * util/i386/efi/grub-mkimage.c: Likewise.
23210
23211 2006-04-17 Marco Gerards <marco@gnu.org>
23212
23213 * include/grub/script.h: Include <grub/parser.h> and
23214 "grub_script.tab.h".
23215 (struct grub_lexer_param): New struct.
23216 (struct grub_parser_param): Likewise.
23217 (grub_script_create_arglist): Pass the state in an argument.
23218 (grub_script_add_arglist): Likewise.
23219 (grub_script_create_cmdline): Likewise.
23220 (grub_script_create_cmdblock): Likewise.
23221 (grub_script_create_cmdif): Likewise.
23222 (grub_script_create_cmdmenu): Likewise.
23223 (grub_script_add_cmd): Likewise.
23224 (grub_script_arg_add): Likewise.
23225 (grub_script_lexer_ref): Likewise.
23226 (grub_script_lexer_deref): Likewise.
23227 (grub_script_lexer_record_start): Likewise.
23228 (grub_script_lexer_record_stop): Likewise.
23229 (grub_script_mem_record): Likewise.
23230 (grub_script_mem_record_stop): Likewise.
23231 (grub_script_malloc): Likewise.
23232 (grub_script_yylex): Likewise.
23233 (grub_script_yyparse): Likewise.
23234 (grub_script_yyerror): Likewise.
23235 (grub_script_yylex): Likewise.
23236 (grub_script_lexer_init): Return the state.
23237
23238 * normal/lexer.c (grub_script_lexer_state): Removed variable.
23239 (grub_script_lexer_done): Likewise.
23240 (grub_script_lexer_getline): Likewise.
23241 (grub_script_lexer_refs): Likewise.
23242 (script): Likewise.
23243 (newscript): Likewise.
23244 (record): Likewise.
23245 (recording): Likewise.
23246 (recordpos): Likewise.
23247 (recordlen): Likewise.
23248 (grub_script_lexer_init): Return the state instead of setting
23249 global variables.
23250 (grub_script_lexer_ref): Use the newly added argument for state
23251 instead of globals.
23252 (grub_script_lexer_deref): Likewise.
23253 (grub_script_lexer_record_start): Likewise.
23254 (grub_script_lexer_record_stop): Likewise.
23255 (recordchar): Likewise.
23256 (nextchar): Likewise.
23257 (grub_script_yylex2): Likewise.
23258 (grub_script_yylex): Likewise.
23259 (grub_script_yyerror): Likewise.
23260
23261 * normal/parser.y (func_mem): Removed variable.
23262 (menu_entry): Likewise.
23263 (err): Likewise.
23264 (%lex-param): New parser option.
23265 (%parse-param): Likewise.
23266 (script): Always return the AST.
23267 (argument): Pass the state around.
23268 (arguments): Likewise.
23269 (grubcmd): Likewise.
23270 (commands): Likewise.
23271 (function): Likewise.
23272 (menuentry): Likewise.
23273 (if_statement): Likewise.
23274 (if): Likewise.
23275
23276 * normal/script.c (grub_script_memused): Removed variable.
23277 (grub_script_parsed): Likewise.
23278 (grub_script_malloc): Added a state argument. Use that instead of
23279 global variables.
23280 (grub_script_mem_record): Likewise.
23281 (grub_script_mem_record_stop): Likewise.
23282 (grub_script_arg_add): Likewise.
23283 (grub_script_add_arglist): Likewise.
23284 (grub_script_create_cmdline): Likewise.
23285 (grub_script_create_cmdif): Likewise.
23286 (grub_script_create_cmdmenu): Likewise.
23287 (grub_script_add_cmd): Likewise.
23288 (grub_script_parse): Setup the state before calling the parser.
23289
23290 2006-04-16 Marco Gerards <marco@gnu.org>
23291
23292 * normal/command.c (grub_command_init): Remove the title command.
23293
23294 * normal/lexer.c (grub_script_yylex): Renamed from this...
23295 (grub_script_yylex2): ... to this.
23296 (grub_script_yylex): New function. Temporary
23297 introduced to filter some tokens.
23298 (grub_script_yyerror): Print a newline.
23299
23300 * normal/main.c (read_config_file): Output information about the
23301 lines that contain errors. Wait for a key after all lines have
23302 been processed. Don't return an empty menu.
23303
23304 * normal/parser.y (func_mem): Don't initialize.
23305 (menu_entry): Likewise.
23306 (err): New variable.
23307 (script): Don't return anything when an error was encountered.
23308 (ws, returns): Removed rules.
23309 (argument): Disabled concatenated variable support.
23310 (arguments): Remove explicit separators.
23311 (grubcmd): Likewise.
23312 (function): Likewise.
23313 (menuentry): Likewise.
23314 (if): Likewise.
23315 (commands): Likewise. Add error handling.
23316
23317 * normal/script.c (grub_script_create_cmdline): If
23318 `grub_script_parsed' is 0, assume the parser encountered an error.
23319
23320 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
23321
23322 * configure.ac: Add support for EFI. Fix the typo
23323 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
23324
23325 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23326
23327 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
23328 foreign multibyte characters should be shown correctly.
23329
23330 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23331
23332 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
23333 calculation.
23334 (read_config_file): Made it to close file before returning.
23335
23336 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
23337
23338 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
23339 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
23340 video/i386/pc/vbefill.c.
23341
23342 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
23343 video/i386/pc/vbefill.c.
23344
23345 * include/grub/video.h (grub_video_blit_format): New enum.
23346 (grub_video_mode_info): Added new member blit_format.
23347 (grub_video_get_blit_format): New function prototype.
23348
23349 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
23350 function prototype.
23351 (grub_video_vbe_map_rgb): Likewise.
23352 (grub_video_vbe_unmap_color): Likewise.
23353
23354 * include/grub/i386/pc/vbeblit.h: New file.
23355
23356 * include/grub/i386/pc/vbefill.h: New file.
23357
23358 * video/video.c (grub_video_get_blit_format): New function.
23359 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
23360 (grub_video_vbe_map_rgb): Likewise.
23361 (grub_video_vbe_unmap_color): Likewise.
23362
23363 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
23364 optimized fills.
23365 (grub_video_vbe_blit_render_target): Changed to use more optimized
23366 blits.
23367 (grub_video_vbe_setup): Added detection for optimized settings.
23368 (grub_video_vbe_create_render_target): Likewise.
23369
23370 * video/i386/pc/vbeblit.c: New file.
23371
23372 * video/i386/pc/vbefill.c: New file.
23373
23374 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
23375
23376 * font/manager.c (grub_font_get_glyph): Removed font fixup from
23377 here...
23378
23379 * util/unifont2pff.rb: ... and moved it to here. Improved argument
23380 parsing to support both hex and dec ranges. If filename was missing
23381 show usage information.
23382
23383 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
23384
23385 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
23386 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
23387
23388 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
23389 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
23390 (video_mod_SOURCES): Added.
23391 (video_mod_CFLAGS): Likewise.
23392 (video_mod_LDFLAGS): Likewise.
23393 (gfxterm_mod_SOURCES): Likewise.
23394 (gfxterm_mod_CFLAGS): Likewise.
23395 (gfxterm_mod_LDFLAGS): Likewise.
23396 (videotest_mod_SOURCES): Likewise.
23397 (videotest_mod_CFLAGS): Likewise.
23398 (videotest_mod_LDFLAGS): Likewise.
23399 (vesafb_mod_SOURCES): Removed.
23400 (vesafb_mod_CFLAGS): Likewise.
23401 (vesafb_mod_LDFLAGS): Likewise.
23402 (vga_mod_SOURCES): Likewise.
23403 (vga_mod_CFLAGS): Likewise.
23404 (vga_mod_LDFLAGS): Likewise.
23405
23406 * commands/videotest.c: New file.
23407
23408 * font/manager.c (fill_with_default_glyph): Modified to use
23409 grub_font_glyph.
23410 (grub_font_get_glyph): Likewise.
23411 (fontmanager): Renamed from this...
23412 (font_manager): ... to this.
23413
23414 * include/grub/font.h (grub_font_glyph): Added new structure.
23415 (grub_font_get_glyph): Modified to use grub_font_glyph.
23416
23417 * include/grub/misc.h (grub_abs): Added as inline function.
23418
23419 * include/grub/video.h: New file.
23420
23421 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
23422 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
23423 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
23424 (grub_vbe_get_controller_info): Renamed from this...
23425 (grub_vbe_bios_get_controller_info): ... to this.
23426 (grub_vbe_get_mode_info): Renamed from this...
23427 (grub_vbe_bios_get_mode_info): ... to this.
23428 (grub_vbe_set_mode): Renamed from this...
23429 (grub_vbe_bios_set_mode): ... to this.
23430 (grub_vbe_get_mode): Renamed from this...
23431 (grub_vbe_bios_get_mode): ... to this.
23432 (grub_vbe_set_memory_window): Renamed from this...
23433 (grub_vbe_bios_set_memory_window): ... to this.
23434 (grub_vbe_get_memory_window): Renamed from this...
23435 (grub_vbe_bios_get_memory_window): ... to this.
23436 (grub_vbe_set_scanline_length): Renamed from this...
23437 (grub_vbe_set_scanline_length): ... to this.
23438 (grub_vbe_get_scanline_length): Renamed from this...
23439 (grub_vbe_bios_get_scanline_length): ... to this.
23440 (grub_vbe_set_display_start): Renamed from this...
23441 (grub_vbe_bios_set_display_start): ... to this.
23442 (grub_vbe_get_display_start): Renamed from this...
23443 (grub_vbe_bios_get_display_start): ... to this.
23444 (grub_vbe_set_palette_data): Renamed from this...
23445 (grub_vbe_bios_set_palette_data): ... to this.
23446 (grub_vbe_set_pixel_rgb): Removed.
23447 (grub_vbe_set_pixel_index): Likewise.
23448
23449 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
23450 from this...
23451 (grub_vbe_bios_get_controller_info): ... to this.
23452 (grub_vbe_get_mode_info): Renamed from this...
23453 (grub_vbe_bios_get_mode_info): ... to this.
23454 (grub_vbe_set_mode): Renamed from this...
23455 (grub_vbe_bios_set_mode): ... to this.
23456 (grub_vbe_get_mode): Renamed from this...
23457 (grub_vbe_bios_get_mode): ... to this.
23458 (grub_vbe_set_memory_window): Renamed from this...
23459 (grub_vbe_bios_set_memory_window): ... to this.
23460 (grub_vbe_get_memory_window): Renamed from this...
23461 (grub_vbe_bios_get_memory_window): ... to this.
23462 (grub_vbe_set_scanline_length): Renamed from this...
23463 (grub_vbe_set_scanline_length): ... to this.
23464 (grub_vbe_get_scanline_length): Renamed from this...
23465 (grub_vbe_bios_get_scanline_length): ... to this.
23466 (grub_vbe_set_display_start): Renamed from this...
23467 (grub_vbe_bios_set_display_start): ... to this.
23468 (grub_vbe_get_display_start): Renamed from this...
23469 (grub_vbe_bios_get_display_start): ... to this.
23470 (grub_vbe_set_palette_data): Renamed from this...
23471 (grub_vbe_bios_set_palette_data): ... to this.
23472 (grub_vbe_bios_get_controller_info): Fixed problem with registers
23473 getting corrupted after calling it. Added more pushes and pops.
23474 (grub_vbe_bios_set_mode): Likewise.
23475 (grub_vbe_bios_get_mode): Likewise.
23476 (grub_vbe_bios_get_memory_window): Likewise.
23477 (grub_vbe_bios_set_scanline_length): Likewise.
23478 (grub_vbe_bios_get_scanline_length): Likewise.
23479 (grub_vbe_bios_get_display_start): Likewise.
23480 (grub_vbe_bios_set_palette_data): Likewise.
23481
23482 * normal/cmdline.c (cl_set_pos): Refresh the screen.
23483 (cl_insert): Likewise.
23484 (cl_delete): Likewise.
23485
23486 * term/gfxterm.c: New file.
23487
23488 * term/i386/pc/vesafb.c: Removed file.
23489
23490 * video/video.c: New file.
23491
23492 * video/i386/pc/vbe.c (real2pm): Added new function.
23493 (grub_video_vbe_draw_pixel): Likewise.
23494 (grub_video_vbe_get_video_ptr): Likewise.
23495 (grub_video_vbe_get_pixel): Likewise
23496 (grub_video_vbe_init): Likewise.
23497 (grub_video_vbe_fini): Likewise.
23498 (grub_video_vbe_setup): Likewise.
23499 (grub_video_vbe_get_info): Likewise.
23500 (grub_video_vbe_set_palette): Likewise.
23501 (grub_video_vbe_get_palette): Likewise.
23502 (grub_video_vbe_set_viewport): Likewise.
23503 (grub_video_vbe_get_viewport): Likewise.
23504 (grub_video_vbe_map_color): Likewise.
23505 (grub_video_vbe_map_rgb): Likewise.
23506 (grub_video_vbe_map_rgba): Likewise.
23507 (grub_video_vbe_unmap_color): Likewise.
23508 (grub_video_vbe_fill_rect): Likewise.
23509 (grub_video_vbe_blit_glyph): Likewise.
23510 (grub_video_vbe_blit_bitmap): Likewise.
23511 (grub_video_vbe_blit_render_target): Likewise.
23512 (grub_video_vbe_scroll): Likewise.
23513 (grub_video_vbe_swap_buffers): Likewise.
23514 (grub_video_vbe_create_render_target): Likewise.
23515 (grub_video_vbe_delete_render_target): Likewise.
23516 (grub_video_vbe_set_active_render_target): Likewise.
23517 (grub_vbe_set_pixel_rgb): Remove function.
23518 (grub_vbe_set_pixel_index): Likewise.
23519 (index_color_mode): Remove static variable.
23520 (active_mode): Likewise.
23521 (framebuffer): Likewise.
23522 (bytes_per_scan_line): Likewise.
23523 (grub_video_vbe_adapter): Added new static variable.
23524 (framebuffer): Likewise.
23525 (render_target): Likewise.
23526 (initial_mode): Likewise.
23527 (mode_in_use): Likewise.
23528 (mode_list): Likewise.
23529
23530 2006-03-10 Marco Gerards <marco@gnu.org>
23531
23532 * configure.ac (AC_INIT): Bumped to 1.93.
23533
23534 * DISTLIST: Added `include/grub/hfs.h'.
23535
23536 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
23537
23538 * boot/i386/pc/boot.S (general_error): Before looping, try INT
23539 18H, which might help the BIOS falling back to next boot media.
23540
23541 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
23542
23543 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
23544 Poe Chen <poe.poechen@gmail.com>.
23545
23546 2006-01-17 Marco Gerards <marco@gnu.org>
23547
23548 * include/grub/normal.h: Include <grub/script.h>.
23549 (grub_command_list): Removed struct.
23550 (grub_command_list_t): Removed type.
23551 (grub_menu_entry): Remove members `num' and `command_list'. Add
23552 members `commands' and `sourcecode'.
23553 * include/grub/script.h: Add inclusion guards.
23554 (grub_script_cmd_menuentry): New struct.
23555 (grub_script_execute_menuentry): New prototype.
23556 (grub_script_lexer_record_start): Likewise.
23557 (grub_script_lexer_record_stop): Likewise.
23558 * normal/execute.c (grub_script_execute_menuentry): New function.
23559 * normal/lexer.c (record, recording, recordpos, recordlen): New
23560 variables.
23561 (grub_script_lexer_record_start): New function.
23562 (grub_script_lexer_record_stop): Likewise.
23563 (recordchar): Likewise.
23564 (nextchar): Likewise.
23565 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
23566 2048 as the buffer size. Add the tokens `menuentry' and `@'.
23567 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
23568 (current_menu): New variable.
23569 (free_menu): Mainly rewritten.
23570 (grub_normal_menu_addentry): New function.
23571 (read_config_file): Rewritten.
23572 * normal/menu.c (run_menu_entry): Mainly rewritten.
23573 * normal/menu_entry.c (make_screen): Rewritten the code to insert
23574 the menu entry.
23575 (run): Mainly rewritten.
23576 * normal/parser.y (menu_entry): New variable.
23577 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
23578 (menuentry): New rule.
23579 (command): Add `menuentry'.
23580 (if_statement): Allow additional returns before `fi'.
23581 * normal/script.c (grub_script_create_cmdmenu): New function.
23582
23583 2006-01-03 Marco Gerards <marco@gnu.org>
23584
23585 * INSTALL: GNU Bison is required.
23586 * configure.ac: Rewritten the test to detect Bison.
23587 * Makefile.in (YACC): New variable. Reported by Xun Sun
23588 <xun.sun.cn@gmail.com>.
23589
23590 2006-01-03 Marco Gerards <marco@gnu.org>
23591
23592 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
23593 the HFS+ filesystem to filesystem blocks.
23594 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
23595 GCC warning is silenced.
23596
23597 2006-01-03 Marco Gerards <marco@gnu.org>
23598
23599 * partmap/apple.c (apple_partition_map_iterate): Convert the data
23600 read from disk from big endian to host byte order.
23601
23602 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
23603
23604 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
23605 documentation.
23606 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
23607 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
23608 embedded HFS+ filesystem.
23609 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
23610 (grub_hfs_sblock): Move from here...
23611 * include/grub/hfs.h: To here... New file.
23612 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
23613 documentation.
23614 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
23615 New macros.
23616 (grub_hfsplus_volheader): Change type of member `magic' to
23617 `grub_uint16_t'.
23618 (grub_hfsplus_data): Add new member `embedded_offset'.
23619 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
23620 returned block.
23621 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
23622 Calculate the offset.
23623
23624 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23625
23626 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
23627 Removed.
23628 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
23629
23630 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23631
23632 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
23633 ENV->NAME is NULL after allocating ENV->VALUE.
23634
23635 2005-12-25 Marco Gerards <marco@gnu.org>
23636
23637 * kern/env.c (grub_env_set): Rewritten the error handling code.
23638
23639 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23640
23641 * geninit.sh: Made more robust, and more portable.
23642
23643 2005-12-25 Marco Gerards <marco@gnu.org>
23644
23645 Add support for Apple HFS+ filesystems.
23646
23647 * fs/hfsplus.c: New file.
23648
23649 * DISTLIST: Added `fs/hfsplus.c'.
23650
23651 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
23652 (hfsplus_mod_SOURCES): New variable.
23653 (hfsplus_mod_CFLAGS): Likewise.
23654 (hfsplus_mod_LDFLAGS): Likewise.
23655 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
23656 (grub_setup_SOURCES): Likewise.
23657 (grub_mkdevicemap_SOURCES): Likewise.
23658 (grub_emu_SOURCES): Likewise.
23659 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23660
23661 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
23662
23663 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
23664
23665 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23666
23667 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
23668 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
23669 include/grub/parser.h, include/grub/script.h, kern/parser.c,
23670 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
23671 normal/lexer.c, normal/parser.y, normal/script.c, and
23672 partmap/gpt.c.
23673 Removed kern/sparc64/cache.c.
23674
23675 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
23676 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
23677 grub_emu_init.c.
23678
23679 * configure.ac (AC_INIT): Bumped to 1.92.
23680
23681 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
23682
23683 * kern/err.c (grub_error_push): Added new function to support error
23684 stacks.
23685 (grub_error_pop): Likewise.
23686 (grub_error_stack_items): New local variable to support error stacks.
23687 (grub_error_stack_pos): Likewise.
23688 (grub_error_stack_assert): Likewise.
23689 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
23690 stack depth.
23691 (grub_print_error): Added support to print errors from error stack.
23692
23693 * include/grub/err.h (grub_error_push): Added function prototype.
23694 (grub_error_pop): Likewise.
23695
23696 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
23697
23698 * configure.ac: Accept `powerpc64' as host_cpu.
23699 (amd64): Rename to `biarch32'.
23700
23701 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
23702 non-cacheline-aligned addresses.
23703
23704 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
23705 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
23706 if `size' is non-zero.
23707
23708 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
23709
23710 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
23711 and `cd' to make sure the filename is not prefixed with a
23712 directory name.
23713 (pkgdata_MODULES): Add `gpt.mod'.
23714 (gpt_mod_SOURCES): New variable.
23715 (gpt_mod_CFLAGS): Likewise.
23716 (gpt_mod_LDFLAGS): Likewise.
23717
23718 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
23719
23720 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
23721 New macro.
23722
23723 * partmap/gpt.c: New file.
23724
23725 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
23726 GPT partition map is detected.
23727
23728 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
23729
23730 * commands/i386/pc/play.c: New file.
23731 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
23732 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
23733 macros.
23734
23735 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
23736
23737 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
23738 ((unused))' to silence gcc warning.
23739
23740 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
23741
23742 * configure.ac: Correct `AC_PROG_YACC' test.
23743
23744 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23745
23746 * util/powerpc/ieee1275/grub-install.in: Run the mount point
23747 check before installing files.
23748
23749 2005-11-22 Mike Small <smallm@panix.com>
23750
23751 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
23752 number regex so multidigit numbers are recognized correctly.
23753
23754 2005-11-22 Mike Small <smallm@panix.com>
23755
23756 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
23757 debugging message before attempting to claim memory.
23758 (grub_rescue_cmd_initrd): Add a claim debugging message and try
23759 multiple addresses in case of failure.
23760
23761 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23762
23763 * term/tparm.c (get_space): Remove empty `if' statement.
23764
23765 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
23766
23767 * kern/parser.c (check_varstate): Rename `state' to 's'.
23768
23769 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23770
23771 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
23772 variable definitions to the beginning of each function. Sort stack
23773 variables by size.
23774 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
23775 `buf' argument to `char *'.
23776
23777 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23778
23779 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
23780 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
23781 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
23782 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
23783 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
23784 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
23785 configfile.mod, search.mod, gzio.mod and test.mod.
23786 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
23787 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
23788 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
23789 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
23790 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
23791 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
23792 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
23793 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
23794 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
23795 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
23796 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
23797 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
23798 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
23799 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
23800 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
23801 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
23802 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
23803 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
23804 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
23805 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
23806 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
23807 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
23808 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
23809
23810 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
23811 `grep --include'.
23812 (pkgdata_MODULES): Add test.mod.
23813
23814 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23815
23816 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
23817 appending to variables with "+=".
23818 (PModule): Use full pathname to generate *.lst filenames.
23819
23820 * Makefile.in: Fixed list rules moved from genmk.rb.
23821 (.DELETE_ON_ERROR): New special target.
23822 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
23823
23824 * conf/i386-pc.rmk: Include conf/common.mk.
23825 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
23826 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
23827 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
23828 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
23829 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
23830 configfile.mod, search.mod, gzio.mod and test.mod.
23831 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
23832 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
23833 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
23834 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
23835 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
23836 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
23837 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
23838 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
23839 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
23840 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
23841 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
23842 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
23843 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
23844 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
23845 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
23846 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
23847 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
23848 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
23849 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
23850 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
23851 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
23852 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
23853 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
23854 here...
23855 * conf/common.rmk: ... to here. New file.
23856
23857 * conf/common.mk: New file.
23858
23859 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
23860
23861 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
23862 (grub_script.tab.c): ... here.
23863
23864 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
23865 (grub_script.tab.c): ... here.
23866
23867 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
23868 (grub_script.tab.c): ... here.
23869
23870 * normal/command.c (grub_command_find): Fixed a memory leak of
23871 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
23872
23873 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23874
23875 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
23876 "@" which marks the start of a comment on ARM.
23877 (VARIABLE): Likewise.
23878
23879 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23880
23881 Add support for Linux/ADFS partition tables.
23882
23883 * partmap/acorn.c: New file.
23884
23885 * include/grub/acorn_filecore.h: Likewise.
23886
23887 * DISTLIST: Added `partmap/acorn.c' and
23888 `include/grub/acorn_filecore.h'.
23889
23890 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
23891 `partmap/acorn.c'.
23892 (pkgdata_MODULES): Add `acorn.mod'.
23893 (acorn_mod_SOURCES): New variable.
23894 (acorn_mod_CFLAGS): Likewise.
23895
23896 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
23897 `partmap/acorn.c'.
23898 (pkgdata_MODULES): Add `acorn.mod'.
23899 (acorn_mod_SOURCES): New variable.
23900 (acorn_mod_CFLAGS): Likewise.
23901
23902 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
23903 (pkgdata_MODULES): Add `acorn.mod'.
23904 (acorn_mod_SOURCES): New variable.
23905 (acorn_mod_CFLAGS): Likewise.
23906 (acorn_mod_LDFLAGS): Likewise.
23907
23908 * include/types.h (grub_disk_addr_t): New typedef.
23909
23910 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
23911
23912 * geninit.sh: New file.
23913
23914 * geninitheader.sh: Likewise.
23915
23916 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
23917 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
23918 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
23919 * commands/configfile.c (grub_configfile_init)
23920 (grub_configfile_fini): Likewise.
23921 * commands/default.c (grub_default_init, grub_default_fini):
23922 Likewise.
23923 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
23924 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
23925 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
23926 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
23927 Likewise.
23928 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
23929 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
23930 Likewise.
23931 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
23932 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
23933 Likewise.
23934 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
23935 Likewise.
23936 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
23937 Likewise.
23938 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
23939 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
23940 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
23941 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
23942 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
23943 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
23944 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
23945 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
23946 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
23947 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
23948 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
23949 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
23950 * partmap/amiga.c (grub_amiga_partition_map_init)
23951 (grub_amiga_partition_map_fini): Likewise.
23952 * partmap/apple.c (grub_apple_partition_map_init)
23953 (grub_apple_partition_map_fini): Likewise.
23954 * partmap/pc.c (grub_pc_partition_map_init)
23955 (grub_pc_partition_map_fini): Likewise.
23956 * partmap/sun.c (grub_sun_partition_map_init,
23957 grub_sun_partition_map_fini): Likewise.
23958 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
23959 Likewise.
23960
23961 * util/grub-emu.c: Include <grub_modules_init.h>.
23962 (main): Don't initialize and de-initialize any modules directly,
23963 use `grub_init_all' and `grub_fini_all' instead.
23964
23965 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
23966 `grub_vesafb_mod_init'.
23967 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
23968 all users.
23969 * term/i386/pc/vga.c (grub_vga_init): Renamed to
23970 `grub_vga_mod_init'. Updated all users.
23971 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
23972
23973 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
23974 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
23975 rules.
23976
23977 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
23978 Generate a function to initialize the module in utilities.
23979 Updated all callers.
23980 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
23981 initialize the module in utilities. Updated all callers.
23982
23983 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
23984
23985 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
23986 escape sequence and a literal ^L to clear the screen.
23987
23988 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
23989 when returning from Open Firmware.
23990
23991 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
23992
23993 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
23994 (grub_ofconsole_height): Likewise.
23995 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
23996 manually insert a '\n'.
23997 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
23998 `grub_ofconsole_height'. Return early if these are already set.
23999
24000 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
24001
24002 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
24003 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
24004 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
24005 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
24006 and `normal/script.c'.
24007 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24008 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24009 (test_mod_SOURCES): New variable.
24010 (test_mod_CFLAGS): Likewise.
24011 (test_mod_LDFLAGS): Likewise.
24012 (pkgdata_MODULES): Add `test.mod'.
24013 (grub_script.tab.c): New rule.
24014 (grub_script.tab.h): Likewise.
24015
24016 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
24017
24018 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24019 `commands/test.c', `normal/execute.c', `normal/lexer.c',
24020 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24021 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24022 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24023 (test_mod_SOURCES): New variable.
24024 (test_mod_CFLAGS): Likewise.
24025 (pkgdata_MODULES): Add `test.mod'.
24026 (grub_script.tab.c): New rule.
24027 (grub_script.tab.h): Likewise.
24028
24029 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
24030
24031 Add initial scripting support.
24032
24033 * commands/test.c: New file.
24034 * include/grub/script.h: Likewise.
24035 * normal/execute.c: Likewise.
24036 * normal/function.c: Likewise.
24037 * normal/lexer.c: Likewise.
24038 * normal/parser.y: Likewise.
24039 * normal/script.c: Likewise.
24040
24041 * configure.ac: Add `AC_PROG_YACC' test.
24042
24043 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
24044 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
24045 `normal/function.c' and `normal/script.c'.
24046 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24047 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24048 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
24049 variables.
24050 (pkgdata_MODULES): Add `test.mod'.
24051 (grub_script.tab.c): New rule.
24052 (grub_script.tab.h): Likewise.
24053
24054 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
24055
24056 * include/grub/normal.h (grub_test_init): New prototype.
24057 (grub_test_fini): Likewise.
24058
24059 * normal/command.c: Include <grub/script.h>.
24060 (grub_command_execute): Rewritten.
24061
24062 * util/grub-emu.c (main): Call `grub_test_init' and
24063 `grub_test_fini'.
24064
24065 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24066
24067 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
24068 to 0.
24069 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
24070 there are no pending characters.
24071
24072 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24073
24074 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
24075 `grub_strndup' to drop device arguments. Replace unnecessary
24076 `grub_strndup' with `grub_strdup'.
24077
24078 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24079
24080 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
24081 `debug' environment variable has been set.
24082
24083 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
24084
24085 * Makefile.in (install-local): Use $(DATA).
24086 (uninstall): Likewise.
24087 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
24088 (sbin_UTILITIES): ... to here.
24089 (sbin_SCRIPTS): New variable.
24090 (grub_install_SOURCES): New variable.
24091 * util/powerpc/ieee1275/grub-install.in: New file.
24092 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
24093 variable.
24094 (add_segments): Call `grub_util_get_path'.
24095
24096 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
24097
24098 From Timothy Baldwin:
24099 * commands/ls.c (grub_ls_list_files): Close FILE with
24100 grub_file_close.
24101 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
24102
24103 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
24104
24105 * include/grub/parser.h: New file.
24106
24107 * kern/parser.c: Likewise.
24108
24109 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
24110 (grub_setup_SOURCES): Likewise.
24111 (grub_probefs_SOURCES): Likewise.
24112 (grub_emu_SOURCES): Likewise.
24113 (kernel_img_HEADERS): Add `parser.h'.
24114
24115 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24116 (grub_emu_SOURCES): Add `kern/parser.c'.
24117 (grubof_SOURCES): Likewise.
24118
24119 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24120 (grubof_SOURCES): Add `kern/parser.c'.
24121
24122 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
24123
24124 * kern/misc.c (grub_split_cmdline): Removed function.
24125
24126 * kern/rescue.c: Include <grub/parser.h>.
24127 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
24128 of `grub_split_cmdline'.
24129
24130 * normal/command.c: Include <grub/parser.h>.
24131 (grub_command_execute): Use `grub_parser_split_cmdline' instead
24132 of `grub_split_cmdline'.
24133
24134 * normal/completion.c: Include <grub/parser.h>.
24135 (cmdline_state): New variable.
24136 (iterate_dir): End the filename with a quote depending on the
24137 command line state.
24138 (get_state): new function.
24139 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
24140 split the arguments and determine the current argument. When the
24141 argument string is not quoted, escape all spaces.
24142
24143 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24144
24145 * normal/sparc64/setjmp.S: New file.
24146
24147 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24148
24149 * include/grub/sparc64/libgcc.h: New file.
24150 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
24151 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
24152 normal/sparc64/setjmp.c.
24153
24154 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24155
24156 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
24157 * kern/sparc64/cache.S: New file.
24158 * kern/sparc64/cache.c: Removed.
24159 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
24160 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
24161 -mtune=ultrasparc.
24162 (COMMON_LDFLAGS): Add -melf64_sparc.
24163 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
24164 (grubof_SOURCES): Use cache.S instead of cache.c.
24165 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
24166 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
24167 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
24168 commented though.
24169 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
24170 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
24171 (linux_mod_CFLAGS): Commented out.
24172 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
24173 out because module isn't built.
24174 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
24175 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
24176 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
24177 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
24178 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
24179 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24180 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24181 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
24182 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
24183 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
24184 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24185 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24186 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
24187 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
24188
24189 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
24190
24191 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
24192 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
24193 longer, because HFS should not be used on PC.
24194
24195 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24196
24197 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
24198 consistently within the loop.
24199
24200 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
24201
24202 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
24203 directory can not be read.
24204
24205 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24206
24207 * configure.ac (AC_INIT): Increase the version number to 1.91.
24208
24209 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
24210 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
24211 term/i386/pc/serial.c.
24212
24213 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24214
24215 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
24216 file size must be permitted.
24217
24218 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
24219 between %ah and %al.
24220
24221 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24222
24223 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
24224 grub_uint64_t.
24225 Call the hook with a NUL-terminated filename.
24226 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
24227 grub_cpu_to_be32.
24228
24229 * kern/term.c (cursor_state): New variable.
24230 (grub_term_set_current): Reset the cursor state on a new
24231 terminal.
24232 (grub_setcursor): Rewritten to use CURSOR_STATE.
24233 (grub_getcursor): New function.
24234
24235 * include/grub/term.h (grub_getcursor): New prototype.
24236
24237 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
24238 integers on ARM. Reported by Timothy Baldwin
24239 <T.E.Baldwin99@members.leeds.ac.uk>.
24240
24241 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
24242
24243 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
24244 allocated.
24245 (grub_sfs_dir): Likewise.
24246
24247 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
24248
24249 Add support for the SFS filesystem.
24250
24251 * fs/sfs.c: New file.
24252
24253 * DISTLIST: Added `fs/sfs.c'.
24254
24255 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
24256 (grub_probefs_SOURCES): Likewise.
24257 (grub_emu_SOURCES): Likewise.
24258 (pkgdata_MODULES): Add `sfs.mod'.
24259 (sfs_mod_SOURCES): New variable.
24260 (sfs_mod_CFLAGS): Likewise.
24261 (sfs_mod_LDFLAGS): Likewise.
24262
24263 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
24264 (pkgdata_MODULES): Add `sfs.mod'.
24265 (sfs_mod_SOURCES): New variable.
24266 (sfs_mod_CFLAGS): Likewise.
24267
24268 * util/grub-emu.c (main): Call `grub_sfs_init' and
24269 `grub_sfs_fini'.
24270
24271 * include/grub/fs.h (grub_sfs_init): New prototype.
24272 (grub_sfs_fini): Likewise.
24273
24274 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
24275
24276 Add support for the AFFS filesystem.
24277
24278 * fs/affs.c: New file.
24279
24280 * DISTLIST: Added `fs/affs.c'.
24281
24282 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
24283 (grub_probefs_SOURCES): Likewise.
24284 (grub_emu_SOURCES): Likewise.
24285 (pkgdata_MODULES): Add `affs.mod'.
24286 (affs_mod_SOURCES): New variable.
24287 (affs_mod_CFLAGS): Likewise.
24288 (affs_mod_LDFLAGS): Likewise.
24289
24290 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
24291 (pkgdata_MODULES): Add `affs.mod'.
24292 (affs_mod_SOURCES): New variable.
24293 (affs_mod_CFLAGS): Likewise.
24294
24295 * util/grub-emu.c (main): Call `grub_affs_init' and
24296 `grub_affs_fini'.
24297
24298 * include/grub/fs.h (grub_affs_init): New prototype.
24299 (grub_affs_fini): Likewise.
24300
24301 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
24302
24303 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
24304
24305 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
24306
24307 * configure.ac: Accept `x86_64' as host_cpu. In that case add
24308 `-m32' to CFLAGS.
24309
24310 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
24311 linking.
24312
24313 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
24314 (COMMON_LDFLAGS): New variable.
24315 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
24316 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
24317 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
24318 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
24319 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
24320 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
24321 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
24322 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
24323 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
24324 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
24325 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24326 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24327 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
24328 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
24329 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
24330 variables.
24331 (normal_mod_ASFLAGS): Add `-m32'.
24332
24333 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
24334 (grub_host_size_t, grub_host_ssize_t): New types.
24335 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
24336 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
24337 `GRUB_HOST_SIZEOF_VOID_P'.
24338
24339 * include/grub/kernel.h (struct grub_module_header): Type of
24340 member offset changed to `grub_host_off_t'. Type of member size
24341 changed to `grub_host_size_t'.
24342 (struct grub_module_info): Type of member offset changed to
24343 `grub_host_off_t'. Type of member size changed to
24344 `grub_host_size_t'.
24345
24346 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
24347
24348 Make GRUB's kernel compliant to Multiboot Specification.
24349
24350 * kern/i386/pc/startup.S (multiboot_header): New label.
24351 (multiboot_entry): Likewise.
24352 (multiboot_trampoline): Likewise.
24353
24354 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
24355 Increased to 0x4A0.
24356
24357 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
24358 put parentheses after a question mark.
24359 [!GRUB_UTIL] (my_mod): New variable.
24360
24361 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
24362
24363 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
24364
24365 Adds support for the XFS filesystem. Btrees are not supported
24366 yet.
24367
24368 * fs/xfs.c: New file.
24369
24370 * DISTLIST: Added `fs/xfs.c'.
24371
24372 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
24373 (grub_probefs_SOURCES): Likewise.
24374 (grub_emu_SOURCES): Likewise.
24375 (pkgdata_MODULES): Add `xfs.mod'.
24376 (xfs_mod_SOURCES): New variable.
24377 (xfs_mod_CFLAGS): Likewise.
24378
24379 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
24380 (pkgdata_MODULES): Add `xfs.mod'.
24381 (xfs_mod_SOURCES): New variable.
24382 (xfs_mod_CFLAGS): Likewise.
24383
24384 * util/grub-emu.c (main): Call `grub_xfs_init' and
24385 `grub_xfs_fini'.
24386
24387 * include/grub/fs.h (grub_xfs_init): New prototype.
24388 (grub_xfs_fini): Likewise.
24389
24390
24391 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
24392
24393 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
24394 color modes, allow greater than 16 colors to be configured as
24395 a default palette.
24396
24397 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
24398
24399 * normal/completion.c (complete_arguments): Add the qualifier
24400 const into OPTIONS.
24401
24402 From Omniflux <omniflux+lists@omniflux.com>:
24403 * include/grub/terminfo.h: New file.
24404 * include/grub/tparm.h: Likewise.
24405 * include/grub/i386/pc/serial.h: Likewise.
24406 * term/terminfo.c: Likewise.
24407 * term/tparm.c: Likewise.
24408 * term/i386/pc/serial.c: Likewise.
24409 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
24410 serial.mod.
24411 (terminfo_mod_SOURCES): New variable.
24412 (terminfo_mod_CFLAGS): Likewise.
24413 (serial_mod_SOURCES): Likewise.
24414 (serial_mod_CFLAGS): Likewise.
24415
24416 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
24417
24418 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
24419 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
24420 and kern/powerpc/ieee1275/cmain.c, respectively.
24421
24422 * boot/powerpc/ieee1275/crt0.S: Moved to ...
24423 * kern/powerpc/ieee1275/crt0.S: ... here.
24424
24425 * boot/powerpc/ieee1275/cmain.c: Moved to ...
24426 * kern/powerpc/ieee1275/cmain.c: ... here.
24427
24428 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
24429 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
24430 instead of boot/powerpc/ieee1275/crt0.S and
24431 boot/powerpc/ieee1275/cmain.c, respectively.
24432
24433 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
24434 sectors. It was not used anyway.
24435
24436 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24437
24438 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
24439 `unused parameter' warning.
24440
24441 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24442
24443 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
24444 function.
24445 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
24446 getcharwidth.
24447
24448 2005-08-28 Marco Gerards <metgerards@student.han.nl>
24449
24450 * include/grub/normal.h (enum grub_completion_type): Added
24451 `GRUB_COMPLETION_TYPE_ARGUMENT'.
24452
24453 * normal/cmdline.c (print_completion): Handle
24454 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
24455 * normal/menu_entry.c (store_completion): Likewise.
24456
24457 * normal/completion.c (complete_arguments): New function.
24458 (grub_normal_do_completion): Call `complete_arguments' when the
24459 current words start with a dash.
24460
24461 2005-08-27 Marco Gerards <metgerards@student.han.nl>
24462
24463 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
24464 `gzio.mod' instead of `io.mod').
24465
24466 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
24467
24468 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
24469 (DISTDIRS): Added io and video.
24470 Rewrite the search routine to make an output consistently.
24471
24472 * DISTLIST: Added conf/sparc64-ieee1275.mk,
24473 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
24474 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
24475 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
24476 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
24477 util/powerpc/ieee1275/misc.c.
24478
24479 * include/grub/gzio.h: New file.
24480 * io/gzio.c: Likewise.
24481
24482 * kern/file.c (grub_file_close): Call grub_device_close only if
24483 FILE->DEVICE is not NULL.
24484
24485 * include/grub/mm.h [!NULL] (NULL): New macro.
24486
24487 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
24488
24489 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
24490 (pkgdata_MODULES): Added gzio.mod.
24491 (gzio_mod_SOURCES): New variable.
24492 (gzio_mod_CFLAGS): Likewise.
24493
24494 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
24495 (pkgdata_MODULES): Added gzio.mod.
24496 (gzio_mod_SOURCES): New variable.
24497 (gzio_mod_CFLAGS): Likewise.
24498
24499 * commands/cat.c: Include grub/gzio.h.
24500 (grub_cmd_cat): Use grub_gzfile_open instead of
24501 grub_file_open.
24502
24503 * commands/cmp.c: Include grub/gzio.h.
24504 (grub_cmd_cmp): Use grub_gzfile_open instead of
24505 grub_file_open.
24506
24507 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
24508 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
24509 grub_file_open.
24510 (grub_rescue_cmd_module): Likewise.
24511
24512 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24513
24514 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
24515 kern/sparc64/ieee1275/init.c because it contains _start.
24516 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
24517
24518 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24519
24520 * configure.ac: Add support for sparc64 host with ieee1275
24521 firmware.
24522 * configure: Generated from configure.ac.
24523 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
24524 instead of int.
24525 (grub_ofdisk_read): Likewise.
24526 (grub_ofdisk_open): Use %p to print pointer values, and cast the
24527 pointers as (void *) to remove a warning.
24528 (grub_ofdisk_close): Likewise.
24529 (grub_ofdisk_read): Likewise.
24530 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
24531 returns, so make it return void to remove a warning.
24532 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
24533 Corresponding prototype change.
24534 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
24535 values, and cast the pointers as (void *) to remove a warning.
24536 (grub_mm_dump): Likewise.
24537 * conf/sparc64-ieee1275.mk: New file.
24538 * conf/sparc64-ieee1275.rmk: Likewise.
24539 * include/grub/sparc64/setjmp.h: Likewise.
24540 * include/grub/sparc64/types.h: Likewise.
24541 * include/grub/sparc64/ieee1275/console.h: Likewise.
24542 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
24543 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
24544 * include/grub/sparc64/ieee1275/time.h: Likewise.
24545 * kern/sparc64/cache.c: Likewise.
24546 * kern/sparc64/dl.c: Likewise.
24547 * kern/sparc64/ieee1275/init.c: Likewise.
24548 * kern/sparc64/ieee1275/openfw.c: Likewise.
24549
24550 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
24551
24552 * util/console.c (grub_ncurses_putchar): If C is greater than
24553 0x7f, set C to a question mark.
24554 (grub_ncurses_getcharwidth): New function.
24555 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
24556 getcharwidth.
24557
24558 * normal/menu.c (print_entry): Made aware of Unicode. First,
24559 convert TITLE to UCS-4, and predict the cursor position by
24560 grub_getcharwidth.
24561
24562 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
24563 const to SRC.
24564 * kern/misc.c (grub_utf16_to_utf8): Likewise.
24565
24566 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24567
24568 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
24569 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24570 grub_strcat.
24571
24572 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
24573 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24574 grub_strcpy and grub_strlen. Take it into account that a space
24575 character is inserted as a delimiter.
24576
24577 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24578
24579 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
24580 invalid magic in the error.
24581
24582 * commands/search.c: New file.
24583
24584 * util/grub-emu.c (main): Call grub_search_init and
24585 grub_search_fini.
24586
24587 * kern/rescue.c (grub_rescue_print_disks): Removed.
24588 (grub_rescue_print_devices): New function.
24589 (grub_rescue_cmd_ls): Use grub_device_iterate with
24590 grub_rescue_print_devices instead of grub_disk_dev_iterate with
24591 grub_rescue_print_disks.
24592
24593 * kern/partition.c (grub_partition_iterate): Return the result of
24594 PARTMAP->ITERATE instead of GRUB_ERRNO.
24595
24596 * kern/device.c: Include grub/partition.h.
24597 (grub_device_iterate): New function.
24598
24599 * include/grub/partition.h (grub_partition_iterate): Return int
24600 instead of grub_err_t.
24601
24602 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
24603 prototype.
24604 [GRUB_UTIL] (grub_search_fini): Likewise.
24605
24606 * include/grub/device.h (grub_device_iterate): New prototype.
24607
24608 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
24609 commands/search.c.
24610 (pkgdata_MODULES): Added search.mod.
24611 (search_mod_SOURCES): New variable.
24612 (search_mod_CFLAGS): Likewise.
24613
24614 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
24615 (pkgdata_MODULES): Added search.mod.
24616 (search_mod_SOURCES): New variable.
24617 (search_mod_CFLAGS): Likewise.
24618
24619 * commands/ls.c (grub_ls_list_disks): Renamed to ...
24620 (grub_ls_list_devices): ... this, and use grub_device_iterate.
24621 All callers changed.
24622
24623 * DISTLIST: Added commands/search.c.
24624
24625 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24626
24627 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
24628 conversion.
24629 (grub_getcharwidth): New function.
24630
24631 * kern/misc.c (grub_utf8_to_ucs4): New function.
24632
24633 * include/grub/term.h (struct grub_term): Added a new member
24634 "getcharwidth".
24635 (grub_getcharwidth): New prototype.
24636
24637 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
24638
24639 * term/i386/pc/console.c (map_char): New function. Segregated from
24640 grub_console_putchar.
24641 (grub_console_putchar): Use map_char.
24642 (grub_console_getcharwidth): New function.
24643 (grub_console_term): Specified grub_console_getcharwidth as
24644 getcharwidth.
24645
24646 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
24647 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
24648
24649 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
24650 GRUB_ERRNO.
24651 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
24652 on grub_strtoul completely.
24653 (write_char): Declare local variables in the beginning of the
24654 function.
24655 (grub_vesafb_getcharwidth): New function.
24656 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
24657 getcharwidth.
24658
24659 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
24660
24661 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
24662 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
24663 commands/i386/pc/vbetest.c.
24664
24665 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
24666 call grub_vbe_get_controller_info again, because the returned
24667 information is volatile.
24668 (grub_vbe_set_video_mode): Mostly rewritten.
24669 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
24670 grub_vbe_status_t correctly.
24671 (grub_vbe_get_video_mode_info): Likewise.
24672 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
24673 several if statements.
24674
24675 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
24676 * commands/i386/pc/vbeinfo.c: ... this.
24677
24678 * commands/i386/pc/vbe_test.c: Renamed to ...
24679 * commands/i386/pc/vbetest.c: ... this.
24680
24681 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
24682 ...
24683 (grub_cmd_vbeinfo): ... this. Save video modes before
24684 iterating. Skip a video mode, if it is not available, not enough
24685 information is given or it is monochrome. Show the memory
24686 model. Leave the interpretation of MODEVAR to grub_strtoul
24687 completely.
24688 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
24689 (GRUB_MOD_FINI): Likewise.
24690
24691 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
24692 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
24693 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
24694 duplicated grub_env_get. Leave the interpretation of MODEVAR to
24695 grub_strtoul completely.
24696 (real2pm): Removed.
24697 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
24698 (GRUB_MOD_FINI): Likewise.
24699
24700 * normal/misc.c: Include grub/mm.h.
24701
24702 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
24703 vbe_list_modes with vbetest.mod and vbeinfo.mod.
24704 (vbe_list_modes_mod_SOURCES): Removed.
24705 (vbe_list_modes_mod_CFLAGS): Likewise.
24706 (vbe_test_mod_SOURCES): Likewise.
24707 (vbe_test_mod_CFLAGS): Likewise.
24708 (vbeinfo_mod_SOURCES): New variable.
24709 (vbeinfo_mod_CFLAGS): Likewise.
24710 (vbetest_mod_SOURCES): Likewise.
24711 (vbetest_mod_CFLAGS): Likewise.
24712
24713 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
24714
24715 * normal/misc.c: New file.
24716
24717 * DISTLIST: Added normal/misc.c.
24718
24719 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
24720 DISK to HOOK. Call HOOK with DISK.
24721 * partmap/apple.c (apple_partition_map_iterate): Likewise.
24722 * partmap/pc.c (pc_partition_map_iterate): Likewise.
24723 * partmap/sun.c (sun_partition_map_iterate): Likewise.
24724
24725 * normal/menu_entry.c (struct screen): Added a new member
24726 "completion_shown".
24727 (completion_buffer): New global variable.
24728 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
24729 (store_completion): New function.
24730 (complete): Likewise.
24731 (clear_completions): Likewise.
24732 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
24733 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
24734 a tab, call complete.
24735
24736 * normal/completion.c (disk_dev): Removed.
24737 (print_simple_completion): Likewise.
24738 (print_partition_completion): Likewise.
24739 (print_func): New global variable.
24740 (add_completion): Do not take the arguments WHAT or PRINT any
24741 longer. Added a new argument TYPE. Instead of printing directly,
24742 call PRINT_FUNC if not NULL.
24743 All callers changed.
24744 (complete_device): Use a local variable DEV instead of
24745 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
24746 (grub_normal_do_completion): Take a new argument HOOK. Do not
24747 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
24748 empty string, return NULL instead.
24749 All callers changed.
24750
24751 * normal/cmdline.c (print_completion): New function.
24752
24753 * kern/partition.c (grub_partition_iterate): Add an argument DISK
24754 to HOOK.
24755 All callers changed.
24756
24757 * kern/disk.c (grub_print_partinfo): Removed.
24758
24759 * include/grub/partition.h (struct grub_partition_map): Add a new
24760 argument DISK into HOOK of ITERATE.
24761 (grub_partition_iterate): Add a new argument DISK to HOOK.
24762
24763 * include/grub/normal.h (enum grub_completion_type): New enum.
24764 (grub_completion_type_t): New type.
24765 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
24766 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
24767 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
24768 (GRUB_COMPLETION_TYPE_FILE): Likewise.
24769 (grub_normal_do_completion): Added a new argument HOOK.
24770 (grub_normal_print_device_info): New prototype.
24771
24772 * include/grub/disk.h (grub_print_partinfo): Removed.
24773
24774 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
24775 (normal_mod_SOURCES): Likewise.
24776 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24777 (normal_mod_SOURCES): Likewise.
24778
24779 * commands/ls.c (grub_ls_list_disks): Use
24780 grub_normal_print_device_info instead of grub_print_partinfo. Free
24781 PNAME.
24782 (grub_ls_list_files): Use grub_normal_print_device_info instead of
24783 duplicating the code.
24784
24785 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
24786
24787 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
24788 follow GCS more precisely.
24789 * commands/i386/pc/vbe_test.c: Likewise.
24790 * include/grub/i386/pc/vbe.h: Likewise.
24791 * term/i386/pc/vesafb.c: Likewise.
24792 * video/i386/pc/vbe.c: Likewise.
24793
24794 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
24795
24796 * DISTLIST: Added term/i386/pc/vesafb.c
24797 DISTLIST: Added video/i386/pc/vbe.c
24798 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
24799 DISTLIST: Added commands/i386/pc/vbe_test.c.
24800 * commands/i386/pc/vbe_list_modes.c: New file.
24801 * commands/i386/pc/vbe_test.c: Likewise.
24802 * term/i386/pc/vesafb.c: Likewise.
24803 * video/i386/pc/vbe.c: Likewise.
24804 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
24805 (grub_vbe_probe) Added prototype.
24806 (grub_vbe_set_video_mode) Likewise.
24807 (grub_vbe_get_video_mode) Likewise.
24808 (grub_vbe_get_video_mode_info) Likewise.
24809 (grub_vbe_set_pixel_rgb) Likewise.
24810 (grub_vbe_set_pixel_index) Likewise.
24811 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
24812 (pkgdata_MODULES): Added vesafb.mod.
24813 (pkgdata_MODULES): Added vbe_list_modes.mod.
24814 (pkgdata_MODULES): Added vbe_test.mod.
24815 (vbe_mod_SOURCES): Added.
24816 (vbe_mod_CFLAGS): Likewise.
24817 (vesafb_mod_SOURCES): Likewise.
24818 (vesafb_mod_CFLAGS): Likewise.
24819 (vbe_list_modes_mod_SOURCES): Likewise.
24820 (vbe_list_modes_mod_CFLAGS): Likewise.
24821 (vbe_test_mod_SOURCES): Likewise.
24822 (vbe_test_mod_CFLAGS): Likewise.
24823
24824 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
24825
24826 * normal/command.c (grub_command_execute): If INTERACTIVE is
24827 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
24828 CMDLINE. Disable the pager if INTERACTIVE is true.
24829 All callers are changed.
24830
24831 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
24832 before reading a config file.
24833 * normal/main.c (read_config_file): Even if a command is not
24834 found, register it if it is within an entry.
24835
24836 * util/grub-emu.c: Include sys/types.h and unistd.h.
24837 (options): Added --hold.
24838 (struct arguments): Added a new member "hold".
24839 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
24840 missing.
24841 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
24842 cleared by a debugger, if it is not zero.
24843
24844 * include/grub/normal.h (grub_command_execute): Add an argument
24845 INTERACTIVE.
24846
24847 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
24848
24849 * DISTLIST: Added include/grub/i386/pc/vbe.h.
24850
24851 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
24852
24853 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
24854 program with another one, because the old one didn't detect a bug
24855 in gcc-3.4. Always use regparm 2, because the new test is still
24856 not enough for gcc-4.0. Someone must investigate a simple test
24857 case which detects a bug in gcc-4.0.
24858
24859 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
24860
24861 * DISTLIST: Added normal/completion.c.
24862
24863 * normal/completion.c: New file.
24864
24865 * term/i386/pc/console.c (grub_console_getwh): New function.
24866 (grub_console_term): Assign grub_console_getwh to getwh.
24867
24868 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
24869 function is defined in normal/completion.c as
24870 grub_normal_do_completion.
24871 (grub_cmdline_get): Use grub_normal_do_completion instead of
24872 grub_tab_complete.
24873
24874 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
24875 returns non-zero, otherwise return 0.
24876 (grub_partition_iterate): First, probe the partition map. Then,
24877 call ITERATE only for this partition map.
24878
24879 * kern/misc.c (grub_strncmp): Rewritten.
24880
24881 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
24882 returns non-zero. Otherwise return 0.
24883
24884 * include/grub/partition.h (grub_partition_map_iterate): Return
24885 int instead of void.
24886
24887 * include/grub/normal.h (grub_normal_do_completion): New prototype.
24888
24889 * include/grub/misc.h (grub_strncmp): Change the type of N to
24890 grub_size_t.
24891
24892 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
24893 of void.
24894
24895 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
24896 unsigned explicitly before comparing it with I.
24897
24898 * kern/main.c (grub_env_write_root): Add the attribute unused into
24899 VAR.
24900
24901 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
24902 normal/completion.c.
24903 (normal_mod_SOURCES): Likewise.
24904 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24905 (normal_mod_SOURCES): Likewise.
24906
24907 * normal/command.c (grub_iterate_commands): If ITERATE returns
24908 non-zero, return one immediately.
24909
24910 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
24911
24912 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
24913 * kern/i386/pc/startup.S: Updated Global Descriptor table's
24914 descriptions.
24915 (grub_vbe_get_controller_info): New function.
24916 (grub_vbe_get_mode_info): Likewise.
24917 (grub_vbe_set_mode): Likewise.
24918 (grub_vbe_get_mode): Likewise.
24919 (grub_vbe_set_memory_window): Likewise.
24920 (grub_vbe_get_memory_window): Likewise.
24921 (grub_vbe_set_scanline_length): Likewise.
24922 (grub_vbe_get_scanline_length): Likewise.
24923 (grub_vbe_set_display_start): Likewise.
24924 (grub_vbe_get_display_start): Likewise.
24925 (grub_vbe_set_palette_data): Likewise.
24926 * include/grub/i386/pc/vbe.h: New file.
24927
24928 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
24929
24930 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
24931 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
24932 * DISTLIST: Likewise.
24933 * kern/ieee1275/of.c: Moved to ...
24934 * kern/ieee1275/ieee1275.c: ... here.
24935
24936 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
24937
24938 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
24939 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
24940 Pass 0 as `end' parameter to grub_strtoul().
24941
24942 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
24943
24944 * include/grub/powerpc/ieee1275/console.h: Do not include
24945 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
24946 ifdef.
24947 (grub_console_cur_color): Remove i386-specific prototype.
24948 (grub_console_real_putchar): Likewise.
24949 (grub_console_checkkey): Likewise.
24950 (grub_console_getkey): Likewise.
24951 (grub_console_getxy): Likewise.
24952 (grub_console_gotoxy): Likewise.
24953 (grub_console_cls): Likewise.
24954 (grub_console_setcursor): Likewise.
24955 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
24956 Include <grub/machine/console.h>.
24957 * term/ieee1275/ofconsole.c: Likewise.
24958
24959 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
24960
24961 * Makefile.in (LIBLZO): New variable.
24962
24963 * configure.ac: Check for LZO version 2.
24964
24965 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
24966 lzo/lzo1x.h instead of lzo1x.h.
24967
24968 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
24969 of -llzo.
24970
24971 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
24972 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
24973
24974 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
24975 copying the data from PARTITION to P.
24976
24977 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
24978
24979 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
24980 negative, unload the module.
24981
24982 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
24983 map is "pc_partition_map" but not "pc".
24984 (usage): Fix the description. The options are --boot-image and
24985 --core-image but not --boot-file or --core-file.
24986 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
24987 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
24988 DEFAULT_DIRECTORY.
24989
24990 * util/i386/pc/grub-install.in: Do not specify --boot-file or
24991 --core-file. Specify INSTALL_DEVICE as an argument.
24992
24993 * util/console.c: Include config.h.
24994 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
24995 [HAVE_NCURSES_H]: Include ncurses.h.
24996 [HAVE_CURSES_H]: Include curses.h.
24997 [!A_NORMAL] (A_NORMAL): Defined as zero.
24998 [!A_STANDOUT] (A_STANDOUT): Likewise.
24999
25000 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
25001 -lncurses.
25002 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
25003
25004 * configure.ac: Check for curses libraries and headers.
25005
25006 * Makefile.in (LIBCURSES): New variable.
25007
25008 * genmk.rb (Script::rule): Set the executable bits.
25009
25010 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
25011 name of the PC partition map is "pc_partition_map" but not "pc".
25012
25013 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25014
25015 * util/i386/pc/grub-install.in (grub_probefs): New variable.
25016 (modules): Likewise.
25017 (usage): Added descriptions for --modules and --grub-probefs.
25018 Handle --modules and --grub-probefs. Save the arguments in MODULES
25019 and GRUB_PROBEFS, respectively.
25020 Auto-detect a filesystem module against GRUBDIR. If the result is
25021 empty and modules are not specified explicitly, abort the
25022 installation. Add the result to MODULES.
25023
25024 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
25025 disk/powerpc/ieee1275/ofdisk.c,
25026 include/grub/powerpc/ieee1275/init.h and
25027 term/powerpc/ieee1275/ofconsole.c.
25028 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
25029 term/ieee1275/ofconsole.c.
25030
25031 * include/grub/powerpc/ieee1275/console.h: Resurrected.
25032
25033 * COPYING: Upgraded to the latest version. Only the address of the
25034 FSF office has changed.
25035
25036 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25037
25038 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25039 kern/ieee1275.c with kern/ieee1275/of.c.
25040
25041 * kern/ieee1275.c: Moved to ...
25042 * kern/ieee1275/of.c: ... here.
25043
25044 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
25045
25046 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
25047 readability.
25048
25049 * config.guess: Updated to the latest version from gnulib.
25050 * config.sub: Likewise.
25051 * install.sh: Likewise.
25052 * mkinstalldirs: Likewise.
25053
25054 * include/grub/console.h: Removed. This file is arch-specific. Do
25055 not put this in include/grub.
25056
25057 * include/grub/i386/pc/console.h: Resurrected.
25058
25059 * util/console.c: Include grub/machine/console.h instead of
25060 grub/console.h.
25061 * util/grub-emu.c: Likewise.
25062
25063 2005-08-04 Marco Gerards <metgerards@student.han.nl>
25064
25065 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
25066 hardcoded value.
25067
25068 From Vincent Pelletier <subdino2004@yahoo.fr>
25069 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
25070 Redefined to use grub_getwh.
25071 (grub_term): New member named getwh.
25072 (grub_getwh): New prototype.
25073 * kern/term.c (grub_getwh): New function.
25074 * term/i386/pc/console.c (grub_console_getwh): New function.
25075 (grub_console_term): New member `getwh'.
25076 * term/i386/pc/vga.c (grub_vga_getwh): New function.
25077 (grub_vga_term): New member `getwh'.
25078 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
25079 grub_ssize_t.
25080 (grub_ofconsole_getw): New function.
25081 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
25082 (grub_ofconsole_term): New field named getwh and new initial
25083 value.
25084
25085 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
25086
25087 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
25088 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
25089 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
25090 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
25091 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
25092 of <grub/machine/ieee1275.h>.
25093 * commands/ieee1275/reboot.c: Likewise.
25094 * boot/powerpc/ieee1275/ieee1275.c: Move ...
25095 * kern/ieee1275.c: ... to here. All users updated. Change all
25096 parameter structs to use new type `grub_ieee1275_cell_t'.
25097 * term/powerpc/ieee1275/ofconsole.c: Move ...
25098 * term/ieee1275/ofconsole.c: ... to here. All users updated.
25099 * disk/powerpc/ieee1275/ofdisk.c: Move ...
25100 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
25101 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
25102 to return int.
25103 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
25104 Remove unused prototypes. All users updated.
25105 * include/grub/powerpc/ieee1275/console.h: Removed.
25106 * include/grub/powerpc/ieee1275/ieee1275.h: Define
25107 `grub_ieee1275_cell_t'.
25108 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
25109 Cast comparisons with -1 to the correct type.
25110 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
25111 type to match `grub_ieee1275_entry_fn'.
25112
25113 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
25114
25115 * DISTLIST: Added util/i386/pc/grub-probefs.c.
25116
25117 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
25118 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
25119 partmap/sun.c.
25120 (grub_probefs_SOURCES): New variable.
25121
25122 * util/i386/pc/grub-probefs.c: New file.
25123
25124 * util/i386/pc/grub-setup.c (main): Call
25125 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
25126 grub_hfs_init and grub_jfs_init to initialize the system. Call
25127 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
25128 grub_pc_partition_map_fini to finish the system.
25129
25130 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
25131
25132 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
25133 function.
25134 (grub_multiboot_load_elf32): Likewise.
25135 (grub_multiboot_is_elf64): Likewise.
25136 (grub_multiboot_load_elf64): Likewise.
25137 (grub_multiboot_load_elf): Likewise.
25138 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
25139 an ELF32 or ELF64 file.
25140 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
25141
25142 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
25143 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
25144 NULL before calling FS->LABEL.
25145 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
25146 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
25147 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
25148 before calling FS->LABEL.
25149
25150 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
25151
25152 * util/i386/pc/grub-install.in (datadir): New variable.
25153 (libdir): Removed.
25154 (pkgdatadir): New variable.
25155 (pkglibdir): Removed.
25156
25157 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
25158
25159 * DISTLIST: Added util/i386/pc/grub-install.in.
25160
25161 * util/i386/pc/grub-install.in: New file.
25162
25163 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
25164 (grub_install_SOURCES): Likewise.
25165
25166 * genmk.rb: Added support for scripts.
25167 (Script): New class.
25168 (scripts): New variable.
25169
25170 * Makefile.in (install-local): Install sbin_SCRIPTS by
25171 INSTALL_SCRIPT.
25172 (uninstall): Remove sbin_SCRIPTS.
25173
25174 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
25175 device, try to get a GRUB device by
25176 grub_util_biosdisk_get_grub_dev.
25177 Free DEST_DEV.
25178
25179 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
25180 description for --device-map.
25181
25182 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25183
25184 Change the semantics of variable hooks. They now return strings
25185 instead of error values.
25186
25187 * util/i386/pc/grub-setup.c: Include grub/env.h.
25188 (setup): Use grub_device_set_root instead of grub_env_set.
25189
25190 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
25191 grub_env_get instead of grub_device_set_root and
25192 grub_device_get_root, respectively.
25193
25194 * kern/main.c (grub_env_write_root): New function.
25195 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
25196 grub_env_set instead of grub_device_set_root.
25197
25198 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
25199 many variables.
25200 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
25201 rather than calling ENV->WRITE_HOOK afterwards.
25202 (grub_env_get): Return the result of ENV->READ_HOOK rather than
25203 passing a pointer of a pointer.
25204 (grub_register_variable_hook): Change the types of "read_hook" and
25205 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
25206 respectively.
25207 Allocate the default empty string on the heap, because this string
25208 may be freed later.
25209
25210 * kern/device.c: Include grub/env.h.
25211 (grub_device_set_root): Removed.
25212 (grub_device_get_root): Likewise.
25213 (grub_device_open): Use grub_env_get instead of
25214 grub_device_get_root.
25215
25216 * include/grub/env.h (grub_env_read_hook_t): New type.
25217 (grub_env_write_hook_t): Likewise.
25218 (grub_env_var): Change the types of "read_hook" and "write_hook"
25219 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
25220 (grub_register_variable_hook): Likewise.
25221
25222 * include/grub/device.h (grub_device_set_root): Removed.
25223 (grub_device_set_root): Likewise.
25224
25225 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
25226 make sure that DIRNAME terminates with '/', so that
25227 grub_fat_find_dir will fail if PATH is not a directory.
25228
25229 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
25230 from DIRNAME.
25231 Use the qualifier auto for print_files and print_files_long.
25232 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
25233 as a regular file.
25234 Put a newline only if there is no error.
25235 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
25236 used.
25237
25238 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25239
25240 * kern/partition.c (grub_partition_probe): Initialize PART to
25241 NULL. Otherwise, when no partition map is registered, this returns
25242 a garbage.
25243
25244 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
25245
25246 * partmap/apple.c (apple_partition_map_iterate): Check if POS
25247 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
25248 valid.
25249
25250 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
25251
25252 * commands/ls.c (grub_ls_list_disks): Print the filesystem
25253 information on each device, if it does not have partitions. Print
25254 "Device" instead of "Disk", because this function is not specific
25255 to disk devices.
25256
25257 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
25258 static to ensure that it is put on the memory rather than a
25259 register.
25260
25261 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25262
25263 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
25264 (grub_cat_init): Likewise.
25265 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
25266 (options): Likewise.
25267 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25268 (grub_configfile_init): Likewise.
25269 * font/manager.c (GRUB_MOD_INIT): Likewise.
25270 * commands/help.c (GRUB_MOD_INIT): Likewise.
25271 (grub_help_init): Likewise.
25272 * normal/command.c (grub_command_init): Likewise.
25273 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
25274 * disk/loopback.c (grub_loop_init): Likewise.
25275 (GRUB_MOD_INIT): Likewise.
25276 * commands/ls.c (grub_ls_init): Likewise.
25277 (GRUB_MOD_INIT): Likewise.
25278 (options): Likewise.
25279 * commands/boot.c (grub_boot_init): Likewise.
25280 (GRUB_MOD_INIT): Likewise.
25281 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
25282 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
25283 (GRUB_MOD_INIT): Likewise.
25284 * commands/cmp.c (grub_cmp_init): Likewise.
25285 (GRUB_MOD_INIT): Likewise.
25286
25287 * normal/arg.c: Use <> instead of "" to include header files.
25288 (SHORT_ARG_HELP): New macro.
25289 (SHORT_ARG_USAGE): Likewise.
25290 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
25291 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
25292 descriptions.
25293 (find_short): Check if C is 'h' or 'u' explicitly.
25294 (grub_arg_show_help): Use space characters instead of tabs. Treat
25295 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
25296 are shown with --help and --usage only if they are not used for
25297 the command itself.
25298 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
25299 'h' and 'u'.
25300
25301 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
25302 const into "longarg". Change the type of "shortarg" to int.
25303
25304 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25305
25306 * boot/i386/pc/boot.S (boot_drive_check): New label.
25307
25308 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
25309 macro.
25310
25311 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
25312 which do not pass a boot drive correctly. Copied from GRUB Legacy.
25313
25314 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25315
25316 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
25317 When turning off Gate A20, skip the check and return immediately,
25318 because this is not fatal usually.
25319
25320 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25321
25322 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
25323 be 0x7C00 instead of 0x8000.
25324
25325 * boot/i386/pc/pxeboot.S: Rewritten.
25326
25327 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
25328 EXT_C.
25329 (gate_a20_check_state): Read a byte from 0x108000. Invert the
25330 result.
25331
25332 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
25333
25334 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
25335 robustness. This routine now supports a BIOS call and System
25336 Control Port A to modify the gate A20.
25337
25338 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25339 Increased to 0x440.
25340
25341 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
25342
25343 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
25344 device path and resulting ihandle.
25345 (grub_ofdisk_close): dprintf the ihandle being closed.
25346 (grub_ofdisk_read): dprintf function parameters.
25347 * kern/mm.c (grub_mm_init_region): Likewise.
25348 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
25349 (grub_linux_boot): dprintf the Linux entry point, initrd address and
25350 size, and boot arguments.
25351 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
25352 before loading into memory.
25353 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
25354 before loading into memory.
25355
25356 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
25357
25358 * kern/mm.c: Added much documentation.
25359 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
25360 8, set to 5 instead of 8.
25361
25362 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
25363
25364 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
25365
25366 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
25367 (grub_mkdevicemap_SOURCES): New variable.
25368
25369 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
25370 lib/device.c of GRUB Legacy.
25371
25372 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
25373
25374 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
25375 instead of PATH is NULL.
25376
25377 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
25378
25379 * commands/cmp.c (BUFFER_SIZE): New macro.
25380 (grub_cmd_cmp): Close the right file at the right time. Compare
25381 only data just read. Don't report files of different size as
25382 identical. Dynamically allocate buffers. Move variable
25383 declarations at the beginning of function.
25384
25385 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
25386
25387 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
25388 reverse.
25389
25390 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
25391
25392 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
25393 when backspace is pressed at beginning of line.
25394
25395 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
25396
25397 * DISTLIST: Added genfslist.sh.
25398
25399 * normal/main.c (fs_module_list): New variable.
25400 (autoload_fs_module): New function.
25401 (read_fs_list): Likewise.
25402 (grub_normal_execute): Call read_fs_list.
25403
25404 * kern/fs.c (grub_fs_autoload_hook): New variable.
25405 (grub_fs_probe): Added support for auto-loading.
25406
25407 * include/grub/normal.h (struct grub_fs_module_list): New struct.
25408 (grub_fs_module_list_t): New type.
25409
25410 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
25411 (grub_fs_autoload_hook): New prototype.
25412
25413 * genfslist.sh: New file.
25414
25415 * genmk.rb: Added a rule to generate a filesystem list.
25416
25417 2005-06-30 Marco Gerards <metgerards@student.han.nl>
25418
25419 * configure.ac: Fix the test for cross-compiling.
25420
25421 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
25422 define GRUB_UTIL anymore.
25423
25424 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
25425 so this function works on other systems than just big endian.
25426 (load_modules): Likewise.
25427 (add_segments): Likewise.
25428
25429 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
25430
25431 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
25432 contains `l' modifier, get a long from va_arg().
25433
25434 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
25435
25436 * kern/mm.c (grub_free): If the next free block which is being
25437 merged is the first free block, set the first block to the block
25438 being freed.
25439 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
25440
25441 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25442
25443 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
25444 `grub_ieee1275_chosen'.
25445
25446 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25447
25448 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
25449 (grub_ieee1275_chosen): New variable.
25450 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
25451 `chosen'.
25452 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
25453 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
25454 Rename first argument to `phandle' for consistency.
25455 (grub_ieee1275_get_property_length): Likewise.
25456 (grub_ieee1275_next_property): Likewise. Change type of first argument
25457 to grub_ieee1275_phandle_t.
25458 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
25459 Move export next to declaration.
25460 (grub_ieee1275_chosen): New variable.
25461 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
25462 Correct cosmetic typo.
25463 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
25464 `grub_ieee1275_chosen'.
25465 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
25466 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
25467 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
25468 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
25469 `grub_ieee1275_chosen'.
25470
25471 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
25472
25473 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
25474 /chosen/bootargs.
25475 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
25476 /chosen/bootargs as "variable=value" pairs.
25477
25478 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
25479
25480 * include/grub/misc.h (grub_dprintf): New macro.
25481 (grub_real_dprintf): New prototype.
25482 (grub_strword): Likewise.
25483 (grub_iswordseparator): Likewise.
25484 * kern/misc.c (grub_real_dprintf): New function.
25485 (grub_strword): Likewise.
25486 (grub_iswordseparator): Likewise.
25487
25488 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
25489
25490 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
25491 (roundup): Remove macro.
25492 (grub_ieee1275_flags): Make static.
25493 (grub_ieee1275_realmode): Remove.
25494 (grub_ieee1275_test_flag): New function.
25495 (grub_ieee1275_set_flag): Likewise.
25496 (find_options): Rename to `grub_ieee1275_find_options'; update
25497 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
25498 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
25499 (cmain): New prototype.
25500 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
25501 `grub_ieee1275_flags' directly.
25502 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
25503 machine/biosdisk.h.
25504 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
25505 Don't include grub/machine/init.h.
25506 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
25507 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
25508 Remove prototype.
25509 (grub_ieee1275_realmode): Likewise.
25510 (grub_ieee1275_flag): New enum.
25511 (grub_ieee1275_test_flag): New prototype.
25512 (grub_ieee1275_set_flag): New prototype.
25513 * include/grub/powerpc/ieee1275/init.h: Remove file.
25514 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
25515 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
25516 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
25517 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
25518 comment.
25519 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
25520 `grub_ieee1275_test_flag'.
25521 (grub_ieee1275_encode_devname): Likewise.
25522
25523 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
25524
25525 * include/grub/powerpc/ieee1275/ieee1275.h
25526 (grub_ieee1275_encode_devname): New prototype.
25527 (grub_ieee1275_get_filename): Likewise.
25528 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
25529 function.
25530 (grub_set_prefix): Likewise.
25531 (grub_machine_init): Call grub_set_prefix.
25532 * kern/powerpc/ieee1275/openfw.c: Fix typos.
25533 (grub_parse_type): New enum.
25534 (grub_ieee1275_get_devargs): New function.
25535 (grub_ieee1275_get_devname): Likewise.
25536 (grub_ieee1275_parse_args): Likewise.
25537 (grub_ieee1275_get_filename): Likewise.
25538 (grub_ieee1275_encode_devname): Likewise.
25539
25540 2005-03-30 Marco Gerards <metgerards@student.han.nl>
25541
25542 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
25543 `grub_loader_unset'.
25544
25545 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
25546
25547 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
25548 instead of grub_ieee1275_interpret.
25549 (grub_halt_init): New function.
25550 (grub_halt_fini): Likewise.
25551 (GRUB_MOD_INIT): Correct message grammar.
25552 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
25553 instead of grub_ieee1275_interpret.
25554 (grub_reboot_init): New function.
25555 (grub_reboot_fini): Likewise.
25556 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
25557 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
25558 util/i386/pc/misc.c with commands/ieee1275/halt.c,
25559 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
25560 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
25561 function.
25562 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
25563 Add prototype.
25564 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
25565 prototype.
25566 (grub_halt): Likewise.
25567 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
25568 (cmain): Remove __attribute__((unused)).
25569 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
25570 (grub_heap_len): Likewise.
25571 (grub_machine_fini): New function.
25572 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
25573 (grub_halt): Likewise.
25574 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
25575 function.
25576 * util/powerpc/ieee1275/misc.c: New file.
25577
25578 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
25579
25580 * DISTLIST: New file.
25581 * gendistlist.sh: Likewise.
25582
25583 * Makefile.in (COMMON_DISTFILES): Removed.
25584 (BOOT_DISTFILES): Likewise.
25585 (CONF_DISTFILES): Likewise.
25586 (DISK_DISTFILES): Likewise.
25587 (FS_DISTFILES): Likewise.
25588 (INCLUDE_DISTFILES): Likewise.
25589 (KERN_DISTFILES): Likewise.
25590 (LOADER_DISTFILES): Likewise.
25591 (TERM_DISTFILES): Likewise.
25592 (UTIL_DISTFILES): Likewise.
25593 (DISTFILES): Likewise.
25594 (uninstall): Uninstall files in $(pkgdata_DATA).
25595 (DISTLIST): New target.
25596 (distdir): Use the contents of the file DISTLIST to get a list of
25597 distributed files.
25598
25599 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
25600
25601 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
25602 descriptor. This is ported from GRUB Legacy.
25603
25604 * gencmdlist.sh: Added an extra semicolon to make it work with
25605 old sed versions. Reported by Robert Bihlmeyer
25606 <robbe@orcus.priv.at>.
25607
25608 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
25609
25610 Automatic loading of commands is supported.
25611
25612 * normal/main.c (read_command_list): New function.
25613 (grub_normal_execute): Call read_command_list.
25614
25615 * normal/command.c (grub_register_command): Return zero or CMD.
25616 Allocate CMD->NAME from the heap.
25617 Initialize CMD->MODULE_NAME to zero.
25618 Find the same name as well. If the same command is found and it is
25619 a dummy command, overwrite members. If it is not a dummy command,
25620 return zero.
25621 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
25622 (grub_command_find): If a dummy command is found, load a module
25623 and retry to find a command only once.
25624
25625 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
25626 make sure that each command is loaded.
25627
25628 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
25629 macro.
25630 (struct grub_command): Remove const from the member `name'.
25631 Add a new member `module_name'.
25632 (grub_register_command): Return grub_command_t.
25633
25634 * commands/help.c (grub_cmd_help): Call grub_command_find to make
25635 sure that each command is loaded.
25636
25637 * genmk.rb (PModule::rule): Specify a module name without the
25638 suffix ".mod" to gencmdlist.sh.
25639
25640 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25641
25642 * gencmdlist.sh: New file.
25643
25644 * genmk.rb (PModule::rule): Generate a rule for a command list.
25645 Clean command.lst.
25646 Generate command.lst from $(COMMANDFILES).
25647
25648 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
25649 (DATA): Added $(pkgdata_DATA).
25650 (install-local): Install files in $(pkgdata_DATA).
25651
25652 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25653
25654 * term/i386/pc/vga.c (debug_command): Removed.
25655 (GRUB_MOD_INIT): Do not register the command "debug".
25656
25657 From Hollis Blanchard:
25658 * commands/configfile.c: New file.
25659 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25660 commands/configfile.c.
25661 (pkgdata_MODULES): Added configfile.mod.
25662 (configfile_mod_SOURCES): New variable.
25663 (configfile_mod_CFLAGS): Likewise.
25664 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25665 commands/configfile.c.
25666 (pkgdata_MODULES): Added configfile.mod.
25667 (configfile_mod_SOURCES): New variable.
25668 (configfile_mod_CFLAGS): Likewise.
25669 * util/grub-emu.c (main): Call grub_configfile_init and
25670 grub_configfile_fini.
25671 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
25672 prototype.
25673 [GRUB_UTIL] (grub_configfile_fini): Likewise.
25674
25675 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
25676
25677 * normal/arg.c (grub_arg_show_help): Do not show the bug report
25678 address.
25679
25680 * commands/help.c (grub_cmd_help): Do not print newlines after
25681 the last command in print_command_help.
25682
25683 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
25684
25685 * commands/default.h: New file.
25686 * commands/timeout.h: Likewise.
25687 * normal/context.c: Likewise.
25688
25689 * util/misc.c: Do not include sys/times.h.
25690 Include sys/time.h and grub/machine/time.h.
25691 (grub_get_rtc): Rewritten with gettimeofday.
25692
25693 * util/grub-emu.c (main): Call grub_default_init and
25694 grub_timeout_init before grub_normal_init, and call
25695 grub_timeout_fini and grub_default_fini after grub_main.
25696
25697 * util/console.c (grub_ncurses_checkkey): Return the read
25698 character or -1.
25699
25700 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
25701 timeouts.
25702
25703 * normal/main.c (read_config_file): Push MENU. If this fails,
25704 print an error and wait for a user input.
25705 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
25706 If a menu is empty or an error occurs, pop MENU.
25707 (grub_normal_execute): Pop and free MENU after grub_menu_run
25708 returns.
25709
25710 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
25711
25712 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
25713 include time.h.
25714 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
25715 without GRUB_UTIL.
25716 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
25717 time.h.
25718 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
25719 without GRUB_UTIL.
25720
25721 * include/grub/normal.h (struct grub_menu_list): New struct.
25722 (grub_menu_list_t): New type.
25723 (struct grub_context): New struct.
25724 (grub_context_t): New type.
25725 (grub_register_command): Got rid of EXPORT_FUNC.
25726 (grub_unregister_command): Likewise.
25727 (grub_context_get): New prototype.
25728 (grub_context_get_current_menu): Likewise.
25729 (grub_context_push_menu): Likewise.
25730 (grub_context_pop_menu): Likewise.
25731 [GRUB_UTIL] (grub_default_init): Likewise.
25732 [GRUB_UTIL] (grub_default_fini): Likewise.
25733 [GRUB_UTIL] (grub_timeout_init): Likewise.
25734 [GRUB_UTIL] (grub_timeout_fini): Likewise.
25735
25736 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
25737 commands/timeout.c and normal/context.c.
25738 (pkgdata_MODULES): Added default.mod and timeout.mod.
25739 (normal_mod_SOURCES): Added normal/context.c.
25740 (default_mod_SOURCES): New variable.
25741 (default_mod_CFLAGS): Likewise.
25742 (timeout_mod_SOURCES): Likewise.
25743 (timeout_mod_CFLAGS): Likewise.
25744 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
25745 conf/i386-pc.rmk.
25746 (pkgdata_MODULES): Added default.mod and timeout.mod.
25747 (normal_mod_SOURCES): Added normal/context.c.
25748 (default_mod_SOURCES): New variable.
25749 (default_mod_CFLAGS): Likewise.
25750 (timeout_mod_SOURCES): Likewise.
25751 (timeout_mod_CFLAGS): Likewise.
25752
25753 * Makefile.in (all-local): Added $(MKFILES).
25754
25755 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
25756
25757 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
25758 (grub_emu_SOURCES): Likewise.
25759 (pkgdata_MODULES): Add `sun.mod'.
25760 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
25761 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25762 `partmap/sun.c'.
25763 (pkgdata_MODULES): Add `sun.mod'.
25764 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
25765 * include/grub/partition.h (grub_sun_partition_map_init): New
25766 prototype.
25767 (grub_sun_partition_map_fini): Likewise.
25768 * partmap/sun.c: New file.
25769 * util/grub-emu.c (main): Initialize and de-initialize the sun
25770 partitionmap support.
25771
25772 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
25773
25774 This implements an Emacs-like menu entry editor.
25775
25776 * normal/menu_entry.c: New file.
25777
25778 * util/console.c (grub_ncurses_putchar): Translate some Unicode
25779 characters to ASCII.
25780 (saved_char): New variable.
25781 (grub_ncurses_checkkey): Rewritten completely.
25782 (grub_ncurses_getkey): Likewise.
25783 (grub_ncurses_init): Call raw instead of cbreak.
25784
25785 * normal/menu.c (print_entry): Do not put a space.
25786 (init_page): Renamed to ...
25787 (grub_menu_init_page): ... this. All callers changed.
25788 (edit_menu_entry): Removed.
25789 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
25790
25791 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
25792
25793 * kern/misc.c (grub_vprintf): Call grub_refresh.
25794
25795 * normal/menu.c (DISP_LEFT): Renamed to ...
25796 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
25797 * normal/menu.c (DISP_UP): Renamed to ...
25798 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
25799 * normal/menu.c (DISP_RIGHT): Renamed to ...
25800 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
25801 * normal/menu.c (DISP_DOWN): Renamed to ...
25802 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
25803 * normal/menu.c (DISP_HLINE): Renamed to ...
25804 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
25805 * normal/menu.c (DISP_VLINE): Renamed to ...
25806 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
25807 * normal/menu.c (DISP_UL): Renamed to ...
25808 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
25809 * normal/menu.c (DISP_UR): Renamed to ...
25810 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
25811 * normal/menu.c (DISP_LL): Renamed to ...
25812 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
25813 * normal/menu.c (DISP_LR): Renamed to ...
25814 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
25815 * normal/menu.c (TERM_WIDTH): Renamed to ...
25816 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
25817 * normal/menu.c (TERM_HEIGHT): Renamed to ...
25818 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
25819 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
25820 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
25821 * normal/menu.c (TERM_MARGIN): Renamed to ...
25822 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
25823 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
25824 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
25825 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
25826 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
25827 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
25828 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
25829 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
25830 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
25831 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
25832 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
25833 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
25834 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
25835 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
25836 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
25837 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
25838 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
25839 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
25840 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
25841 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
25842 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
25843 All callers changed.
25844
25845 * include/grub/normal.h: New prototype.
25846
25847 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25848 normal/menu_entry.c.
25849 (normal_mod_SOURCES): Likewise.
25850 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25851 (normal_mod_SOURCES): Likewise.
25852
25853 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
25854
25855 * include/grub/normal.h (grub_halt_init): New prototype.
25856 (grub_halt_fini): Likewise.
25857 (grub_reboot_init): Likewise.
25858 (grub_reboot_fini): Likewise.
25859
25860 * util/grub-emu.c: Include signal.h.
25861 (main_env): New global variable.
25862 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
25863 catch C-c.
25864 (grub_machine_fini): New function.
25865 (main): Call grub_halt_init and grub_reboot_init before
25866 grub_main, and grub_reboot_fini and grub_halt_fini after it.
25867 Call setjmp with MAIN_ENV to go back afterwards.
25868 Call grub_machine_fini right before return.
25869
25870 * include/grub/util/misc.h: Include setjmp.h.
25871 (main_env): New prototype.
25872
25873 * include/grub/kernel.h (grub_machine_fini): New prototype.
25874 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
25875 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
25876
25877 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
25878 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
25879 * term/i386/pc/console.c (grub_console_fini): Likewise.
25880
25881 * util/i386/pc/misc.c: New file.
25882
25883 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25884 util/i386/pc/misc.c, commands/i386/pc/halt.c and
25885 commands/i386/pc/reboot.c.
25886
25887 2005-02-14 Guillem Jover <guillem@hadrons.org>
25888
25889 * include/grub/dl.h (grub_dl_check_header): New prototype.
25890 (grub_arch_dl_check_header): Change return type to grub_err_t,
25891 remove size parameter and export function. Update all callers.
25892 * kern/dl.c (grub_dl_check_header): New function.
25893 (grub_dl_load_core): Use `grub_dl_check_header' instead of
25894 `grub_arch_dl_check_header'. Check ELF type. Check if sections
25895 are inside the core.
25896 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
25897 independent ELF header checks.
25898 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
25899 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
25900 `grub_dl_check_header' instead of explicit checks. Check for the
25901 ELF type.
25902 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
25903 `grub_dl_check_header' instead of explicit checks. Remove arch
25904 specific ELF header checks.
25905
25906 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
25907 argument SIZE.
25908
25909 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
25910
25911 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
25912 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
25913
25914 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
25915
25916 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
25917 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
25918 (part_map_iterate): Clear `grub_errno' and return 0 if
25919 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
25920 * partmap/amiga.c (amiga_partition_map_iterate): Return
25921 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
25922 * partmap/apple.c (apple_partition_map_iterate): Likewise.
25923
25924 2005-02-01 Guillem Jover <guillem@hadrons.org>
25925
25926 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
25927 help info.
25928
25929 2005-01-31 Marco Gerards <metgerards@student.han.nl>
25930
25931 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
25932 Removed prototype.
25933 (grub_rescue_cmd_linux): New prototype.
25934 (grub_rescue_cmd_initrd): Likewise.
25935 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
25936 `bi_rec'.
25937 (grub_linux_release_mem): Release the memory for the initrd.
25938 (grub_load_linux): Renamed from this...
25939 (grub_rescue_cmd_linux): ...To this. Changed all callers.
25940 Changed `entry' not to be static. Loop over memory regions to
25941 find another one when the default fails.
25942 (grub_rescue_cmd_initrd): New function.
25943 (grub_linux_init): Remove function.
25944 (grub_linux_fini): Likewise.
25945 (GRUB_MOD_INIT): Register `initrd'.
25946 (GRUB_MOD_FINI): Unregister `initrd'.
25947 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
25948 Function removed.
25949 (grub_linux_normal_fini): Likewise.
25950 (GRUB_MOD_INIT): Register `initrd'.
25951 (GRUB_MOD_FINI): Unregister `initrd'.
25952
25953 2005-01-31 Marco Gerards <metgerards@student.han.nl>
25954
25955 * commands/help.c: New file.
25956 * normal/arg.c (show_help): Renamed to...
25957 (grub_arg_show_help): ... this.
25958 * commands/i386/pc/halt.c: New file.
25959 * commands/i386/pc/reboot.c: Likewise.
25960 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
25961 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
25962 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
25963 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
25964 variables.
25965 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25966 `commands/help.c'.
25967 (pkgdata_MODULES): Add `help.mod'.
25968 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
25969 * grub/i386/pc/init.h (grub_reboot): New prototype.
25970 (grub_halt): Likewise.
25971 * include/grub/normal.h (grub_arg_show_help): New prototype.
25972 (grub_help_init): Likewise.
25973 (grub_help_fini): Likewise.
25974 * util/grub-emu.c (main): Initialize and deinitialize the help
25975 command.
25976
25977 * normal/cmdline.c (grub_cmdline_get): Doc fix.
25978
25979 * normal/command.c (grub_command_init): Fixed the description of
25980 the `set' and `unset' commands.
25981
25982 2005-01-31 Marco Gerards <metgerards@student.han.nl>
25983
25984 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
25985 function.
25986 * commands/ieee1275/halt.c: New file.
25987 * commands/ieee1275/reboot.c: Likewise.
25988 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
25989 `__attribute__ ((unused))'. Some GCS related fixed.
25990 (grub_suspend_init) [GRUB_UTIL]: Function removed.
25991 (grub_suspend_fini): Likewise.
25992 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
25993 and `halt.mod'.
25994 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
25995 (halt_mod_CFLAGS): New variables.
25996 * include/grub/powerpc/ieee1275/ieee1275.h
25997 (grub_ieee1275_interpret): New prototype.
25998
25999 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
26000
26001 * include/grub/misc.h (memmove): New prototype.
26002 (memcpy): Likewise.
26003
26004 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
26005
26006 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
26007 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
26008
26009 2005-01-22 Marco Gerards <metgerards@student.han.nl>
26010
26011 * kern/misc.c (grub_strndup): Function rewritten.
26012
26013 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
26014
26015 * normal/menu.c (TERM_WIDTH): Macro redefined.
26016 (TERM_TOP_BORDER_Y): Likewise.
26017 (draw_border): Replaced while-loop by a for-loop. Make the number
26018 of lines consistent with the number of lines displayed in
26019 print_entries. Added a margin below the rectangle.
26020 (print_entry): Make the entry fit in the rectangle.
26021 (print_entries): Display the scroll arrows next to the right
26022 border.
26023
26024 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26025
26026 * fs/minix.c (grub_minix_find_file): Reserve more space for
26027 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
26028 `grub_strncpy' to copy `path' into it.
26029
26030 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26031
26032 Add the loopback device, a device via which files can be accessed
26033 as devices.
26034
26035 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
26036 (pkgdata_MODULES): Add loopback.mod.
26037 (loopback_mod_SOURCES): New variable.
26038 (loopback_mod_CFLAGS): Likewise.
26039 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26040 `disk/loopback.c'.
26041 (pkgdata_MODULES): Add loopback.mod.
26042 (loopback_mod_SOURCES): New variable.
26043 (loopback_mod_CFLAGS): Likewise.
26044 * disk/loopback.c: new file.
26045 * include/grub/normal.h (grub_loop_init): New prototype.
26046 (grub_loop_fini): New prototype.
26047 * util/grub-emu.c (main): Initialize and de-initialize loopback
26048 support.
26049 * include/grub/disk.h (grub_disk_dev_id): Add
26050 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
26051
26052 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
26053
26054 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
26055 function.
26056 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
26057 (suspend_mod_SOURCES): New variable.
26058 (suspend_mod_CFLAGS): Likewise.
26059 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
26060 New prototype.
26061 * commands/ieee1275/suspend.c: New file.
26062
26063 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
26064
26065 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
26066 ((unused))' to `__attribute__ ((used))'.
26067 (GRUB_MOD_FINI): Likewise.
26068 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
26069 * genmk.rb (PModule): Assign space to common symbols when linking
26070 modules.
26071
26072 2005-01-20 Marco Gerards <metgerards@student.han.nl>
26073
26074 * include/grub/mm.h (grub_mm_init_region): Change the type of the
26075 `unsigned' arguments to `grub_size_t'.
26076 (grub_malloc): Likewise.
26077 (grub_realloc): Likewise.
26078 (grub_memalign): Likewise.
26079 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
26080 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26081 * util/misc.c (grub_malloc): Likewise.
26082 (grub_realloc): Likewise.
26083 * kern/mm.c (get_header_from_pointer): Change the casts to
26084 `unsigned' into a cast to `grub_size_t'.
26085
26086 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
26087 point to `currnode' when `currnode' is changed.
26088
26089 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
26090 Schottelius <nico-linux@schottelius.org>.
26091
26092 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
26093
26094 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
26095 (note_path): Remove variable.
26096 (GRUB_IEEE1275_NOTE_NAME): New macro.
26097 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
26098 (grub_ieee1275_note_hdr): New structure.
26099 (grub_ieee1275_note_desc): Likewise.
26100 (grub_ieee1275_note): Likewise.
26101 (load_note): Remove `dir' argument. All callers updated. Remove
26102 `note_img' and `path'. Do not load a file from `note_path'.
26103 Initialize a struct grub_ieee1275_note and write that to `out'.
26104 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
26105
26106 2005-01-05 Marco Gerards <metgerards@student.han.nl>
26107
26108 * util/misc.c (grub_util_read_image): Revert last change. It
26109 called `grub_util_read_at', which seeks from the beginning of the
26110 file.
26111
26112 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
26113
26114 * TODO: Add note about endianness in grub-mkimage.
26115 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
26116 section.
26117 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
26118 (grub_mkimage_SOURCES): New target.
26119 * include/grub/kernel.h (grub_start_addr): Remove variable.
26120 (grub_end_addr): Likewise.
26121 (grub_total_module_size): Likewise.
26122 (grub_kernel_image_size): Likewise.
26123 (GRUB_MODULE_MAGIC): New constant.
26124 (grub_module_info): New structure.
26125 (grub_arch_modules_addr): New prototype.
26126 (grub_get_end_addr): Remove prototype.
26127 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
26128 * include/grub/powerpc/ieee1275/kernel.h: New file.
26129 * include/grub/util/misc.h (grub_util_get_fp_size): New
26130 prototype.
26131 (grub_util_read_at): Likewise.
26132 (grub_util_write_image_at): Likewise.
26133 * kern/main.c (grub_get_end_addr): Remove function.
26134 (grub_load_modules): Call grub_arch_modules_addr instead of using
26135 grub_end_addr. Look for a grub_module_info struct in memory. Use
26136 the grub_module_info fields instead of calling grub_get_end_addr
26137 as loop conditions. Move grub_add_unused_region code here.
26138 (grub_add_unused_region): Remove function.
26139 * kern/i386/pc/init.c: Include grub/cache.h.
26140 (grub_machine_init): Remove call to grub_get_end_addr. Remove
26141 one call to add_mem_region.
26142 (grub_arch_modules_addr): New function.
26143 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
26144 (grub_total_module_size): Likewise.
26145 Include grub/machine/kernel.h.
26146 (grub_arch_modules_addr): New function.
26147 * util/grub-emu.c (grub_end_addr): Remove variable.
26148 (grub_total_module_size): Likewise.
26149 (grub_arch_modules_addr): New function.
26150 * util/misc.c: Include unistd.h.
26151 (grub_util_get_fp_size): New function.
26152 (grub_util_read_at): Likewise.
26153 (grub_util_write_image_at): Likewise.
26154 (grub_util_read_image): Call grub_util_read_at.
26155 (grub_util_write_image): Call grub_util_write_image_at.
26156 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
26157 additional memory in kernel_img for a struct grub_module_info.
26158 Fill in that grub_module_info.
26159 * util/powerpc/ieee1275/grub-mkimage.c: New file.
26160
26161 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26162
26163 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
26164 New function.
26165 * include/grub/powerpc/ieee1275/ieee1275.h
26166 (grub_ieee1275_milliseconds): New prototype.
26167 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
26168 Change to 1000.
26169 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
26170 grub_ieee1275_milliseconds.
26171
26172 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26173
26174 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
26175 variable.
26176 (find_options): New function.
26177 (cmain): Call find_options.
26178 * include/grub/powerpc/ieee1275/ieee1275.h
26179 (grub_ieee1275_realmode): New extern variable.
26180 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
26181 grub_map if grub_ieee1275_realmode is false.
26182
26183 2004-12-29 Marco Gerards <metgerards@student.han.nl>
26184
26185 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
26186 lines are inserted and make it work like readline. Reported by
26187 Vincent Pelletier <subdino2004@yahoo.fr>.
26188
26189 2004-12-28 Marco Gerards <metgerards@student.han.nl>
26190
26191 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
26192
26193 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
26194 `kern/powerpc/cache.S'.
26195
26196 2004-12-27 Marco Gerards <metgerards@student.han.nl>
26197
26198 * genmk.rb: Handle the `Program' class in the main loop. Written
26199 by Johan Rydberg <jrydberg@gnu.org>.
26200 (Program): New class.
26201 (programs): New variable.
26202 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
26203 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
26204 instead of "grub/kernel.h". Include <grub/machine/init.h>.
26205 (help_arch): Function removed.
26206 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
26207 `powerpc/libgcc.h' and `loader.h'.
26208 (pkgdata_PROGRAMS): New variable.
26209 (sbin_UTILITIES): Variable removed.
26210 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
26211 (grubof_SOURCES): Variable re-defined so it only includes the
26212 core functionality.
26213 (grubof_CFLAGS): Remove `-DGRUBOF'.
26214 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
26215 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
26216 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
26217 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
26218 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
26219 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
26220 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
26221 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
26222 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
26223 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
26224 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
26225 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
26226 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
26227 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
26228 (pc_mod_CFLAGS): New variables.
26229 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
26230 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
26231 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
26232 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
26233 Moved from here...
26234 * include/grub/i386/pc/init.h (grub_os_area_addr)
26235 (rub_os_area_size): ... to here.
26236 * include/grub/powerpc/ieee1275/ieee1275.h
26237 (grub_ieee1275_entry_fn): Export symbol.
26238 * include/grub/powerpc/ieee1275/init.h: New file.
26239 * include/grub/powerpc/libgcc.h: Likewise.
26240 * include/grub/cache.h: Likewise.
26241 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
26242 <hollis@penguinppc.org>.
26243 * kern/dl.c: Include <grub/cache.h>.
26244 (grub_dl_flush_cache): New function.
26245 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
26246 for this module.
26247 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
26248 (grub_console_init): Removed prototypes.
26249 (grub_machine_init): Don't initialize the modules anymore.
26250 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
26251 static.
26252 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
26253 Macro undef removed.
26254 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
26255 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
26256 relocation `R_PPC_REL32'. Return an error when the relocation is
26257 unknown.
26258 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
26259 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
26260 * util/misc.c (grub_arch_sync_caches): Likewise.
26261
26262 2004-12-19 Marco Gerards <metgerards@student.han.nl>
26263
26264 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
26265 `symlist.c', add `grubof_symlist.c'.
26266 (symlist.c): Variable removed.
26267 (grubof_HEADERS): Variable added.
26268 (grubof_symlist.c): New target.
26269 (kernel_syms.lst): Use `grubof_HEADERS' instead of
26270 `kernel_img_HEADERS'.
26271 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
26272 * kern/powerpc/dl.c: New file.
26273 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
26274 Function removed.
26275 (grub_arch_dl_relocate_symbols): Likewise.
26276 (grub_register_exported_symbols): Likewise.
26277
26278 2004-12-13 Marco Gerards <metgerards@student.han.nl>
26279
26280 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
26281 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
26282 to fail instead. Reported by Vincent Pelletier
26283 <subdino2004@yahoo.fr>.
26284
26285 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
26286 it is not allocated. Reported by Vincent Pelletier
26287 <subdino2004@yahoo.fr>.
26288
26289 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
26290 output so the output looks better.
26291
26292 2004-12-04 Marco Gerards <metgerards@student.han.nl>
26293
26294 Modulize the partition map support and add support for the amiga
26295 partition map.
26296
26297 * commands/ls.c: Include <grub/partition.h> instead of
26298 <grub/machine/partition.h>.
26299 * kern/disk.c: Likewise.
26300 * kern/rescue.c: Likewise.
26301 * loader/i386/pc/chainloader.c: Likewise.
26302 * normal/cmdline.c: Likewise.
26303 * kern/powerpc/ieee1275/init.c: Likewise.
26304 (grub_machine_init): Call `grub_pc_partition_map_init',
26305 `grub_amiga_partition_map_init' and
26306 `grub_apple_partition_map_init'.
26307 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
26308 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
26309 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
26310 `partition.h' and `pc_partition.h'.
26311 (grub_setup_SOURCES): Remove
26312 `disk/i386/pc/partition.c'. Add `kern/partition.c',
26313 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26314 (grub_emu_SOURCES): Likewise.
26315 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
26316 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
26317 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
26318 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26319 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
26320 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26321 (grubof_SOURCES): Likewise.
26322 * disk/i386/pc/partition.c: File removed.
26323 * disk/powerpc/ieee1275/partition.c: Likewise.
26324 * include/grub/powerpc/ieee1275/partition.h: Likewise.
26325 * include/grub/i386/pc/partition.h: Likewise.
26326 * kern/partition.c: New file.
26327 * partmap/amiga.c: Likewise.
26328 * partmap/apple.c: Likewise.
26329 * partmap/pc.c: Likewise.
26330 * include/grub/partition.h: Likewise..
26331 * include/grub/pc_partition.h: Likewise.
26332 * util/grub-emu.c: Include <grub/partition.h> instead of
26333 <grub/machine/partition.h>.
26334 (main): Call `grub_pc_partition_map_init',
26335 `grub_amiga_partition_map_init' and
26336 `grub_apple_partition_map_init' and deinitialize afterwards.
26337 * util/i386/pc/biosdisk.c: Include `#include
26338 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26339 `<grub/machine/partition.h>'.
26340 * util/i386/pc/grub-setup.c: Likewise.
26341 * util/i386/pc/biosdisk.c: Likewise.
26342 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
26343 partition information in case of a PC partition.
26344 * util/i386/pc/grub-setup.c: Include `#include
26345 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26346 `<grub/machine/partition.h>'.
26347 (setup): Only access the PC specific partition information in case
26348 of a PC partition.
26349
26350 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
26351
26352 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
26353 (grub_longjmp): Likewise.
26354 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
26355 20.
26356 * normal/powerpc/setjmp.S: New file.
26357 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
26358 `normal/powerpc/setjmp.S'.
26359 (grubof_CFLAGS): Add `-DGRUBOF'.
26360 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
26361 [GRUB_UTIL && !GRUBOF].
26362
26363 2004-11-16 Marco Gerards <metgerards@student.han.nl>
26364
26365 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
26366 property named `name'. Correctly handle the error returned by
26367 `grub_ieee1275_finddevice' if a device can not be opened.
26368
26369 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
26370
26371 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
26372 `actual' for negativity.
26373 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26374 kern/fshelp.c.
26375
26376 2004-11-01 Marco Gerards <metgerards@student.han.nl>
26377
26378 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
26379 (PAGE_OFFSET): New macro.
26380 (CRTC_ADDR_PORT): Likewise.
26381 (CRTC_DATA_PORT): Likewise.
26382 (START_ADDR_HIGH_REGISTER): Likewise.
26383 (START_ADDR_LOW_REGISTER): Likewise.
26384 (GRAPHICS_ADDR_PORT): Likewise.
26385 (GRAPHICS_DATA_PORT): Likewise.
26386 (READ_MAP_REGISTER): Likewise.
26387 (INPUT_STATUS1_REGISTER): Likewise.
26388 (INPUT_STATUS1_VERTR_BIT): Likewise.
26389 (page): New variable.
26390 (wait_vretrace): New function.
26391 (set_read_map): Likewise.
26392 (set_start_address): Likewise.
26393 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
26394 the right page.
26395 (check_vga_mem): Take the page into account.
26396 (write_char): Likewise.
26397 (write_cursor): Likewise.
26398 (scroll_up): Likewise. Copy the page to the page that is not
26399 shown and switch between both pages.
26400 (grub_vga_putchar): Fix off by one error.
26401 (grub_vga_cls): Wait for the vertical retrace. Take the page into
26402 account.
26403
26404 2004-11-01 Marco Gerards <metgerards@student.han.nl>
26405
26406 Add support for iso9660 (including rockridge).
26407
26408 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26409 (iso9660_mod_SOURCES): New variable.
26410 (iso9660_mod_CFLAGS): Likewise.
26411 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26412 * include/grub/fs.h (grub_iso9660_init): New prototype.
26413 * util/grub-emu.c (main): Call `grub_iso9660_init'.
26414 * fs/iso9660.c: New file.
26415
26416 * include/grub/misc.h (grub_strncat): New prototype.
26417 * kern/misc.c (grub_strncat): New function.
26418
26419 * fs/hfs.c (grub_hfs_mount): Translate the error
26420 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
26421 * fs/jfs.c (grub_jfs_mount): Likewise.
26422 * fs/ufs.c (grub_ufs_mount): Likewise.
26423
26424 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
26425
26426 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
26427 which initialized BAT registers.
26428 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
26429 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26430 Move from here...
26431 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
26432 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26433 ... to here.
26434 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
26435 (grub_mapclaim): Likewise.
26436 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
26437 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
26438 hand.
26439
26440 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
26441
26442 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
26443 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
26444 -ffreestanding and -msoft-float.
26445
26446 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
26447
26448 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
26449 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
26450 set in grub_ieee1275_flags.
26451
26452 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
26453
26454 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
26455 prototype.
26456 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
26457 grub_console_init first.
26458 Change the memory range used for grub_ieee1275_claim and
26459 grub_mm_init_region.
26460 Print an error message if the claim fails.
26461 Include <grub/misc.h>.
26462
26463 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
26464
26465 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
26466 Call grub_children_iterate for device nodes of type `scsi',
26467 `ide', or `ata'.
26468 (grub_ofdisk_open): Remove manual device alias resolution.
26469 Fix memory leak when device cannot be opened.
26470 * include/grub/powerpc/ieee1275/ieee1275.h
26471 (grub_children_iterate): New prototype.
26472 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
26473 New function.
26474 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26475 Return -1 if args.size was -1.
26476
26477 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26478
26479 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
26480 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
26481 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
26482 Open Firmware's memory for it; claim memory from _start to _end.
26483 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
26484 (_end): New extern.
26485 (_start): Zero BSS from __bss_start to _end.
26486 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
26487 New extern.
26488 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
26489
26490 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26491
26492 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
26493 -1 if args.base was -1.
26494
26495 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
26496
26497 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
26498 escape sequence instead of a literal ^L. Also call
26499 grub_ofconsole_gotoxy.
26500
26501 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
26502
26503 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
26504 void * arguments to grub_addr_t. All callers updated. Also make
26505 the `result' argument optional.
26506 (grub_ieee1275_release): change void * arguments to grub_addr_t.
26507 All callers updated.
26508
26509 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
26510
26511 * commands/ls.c (grub_ls_list_files): Use the string following the
26512 initial ')', if present, as the filesystem path.
26513 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
26514
26515 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
26516
26517 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
26518
26519 Make the source code of the menu interface more readable.
26520
26521 * normal/menu.c: Include grub/mm.h.
26522 (TERM_WIDTH): New macro.
26523 (TERM_HEIGHT): Likewise.
26524 (TERM_INFO_HEIGHT): Likewise.
26525 (TERM_MARGIN): Likewise.
26526 (TERM_SCROLL_WIDTH): Likewise.
26527 (TERM_TOP_BORDER_Y): Likewise.
26528 (TERM_LEFT_BORDER_X): Likewise.
26529 (TERM_BORDER_WIDTH): Likewise.
26530 (TERM_MESSAGE_HEIGHT): Likewise.
26531 (TERM_BORDER_HEIGHT): Likewise.
26532 (TERM_NUM_ENTRIES): Likewise.
26533 (TERM_FIRST_ENTRY_Y): Likewise.
26534 (TERM_ENTRY_WIDTH): Likewise.
26535 (TERM_CURSOR_X): Likewise.
26536 (draw_border): Use macros instead of magic numbers.
26537 (print_entry): Likewise.
26538 (print_entries): Likewise.
26539 (run_menu): Likewise. Also, handle the key 'e'.
26540 (run_menu_entry): Ignore empty command lines.
26541 (print_message): Added a new argument EDIT. If EDIT is true,
26542 print a different message.
26543 (init_page): Likewise.
26544 (edit_menu_entry): New function. Not implemented yet.
26545
26546 2004-09-17 Marco Gerards <metgerards@student.han.nl>
26547
26548 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
26549 can be loaded from normal mode.
26550
26551 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
26552 `multiboot.mod'.
26553 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
26554 (multiboot_mod_CFLAGS): New variables.
26555 * loader/i386/pc/linux_normal.c: New file.
26556 * loader/i386/pc/multiboot_normal.c: Likewise.
26557
26558 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
26559 attribute `unused'.
26560
26561 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
26562 `fdiro' to read the mode information from instead of `diro'.
26563
26564 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
26565 looking up a symlink.
26566
26567 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
26568 macro.
26569 * normal/command.c (grub_command_execute): Don't parse the
26570 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
26571 flags of the command.
26572
26573 * normal/menu.c (grub_menu_run): Fix typo.
26574
26575 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
26576
26577 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
26578
26579 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
26580 `y + 1' instead of `y - 1'.
26581
26582 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
26583
26584 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
26585
26586 From Hollis Blanchard <hollis@penguinppc.org>:
26587 * kern/misc.c (memmove): New alias for grub_memmove.
26588 (memcmp): New alias for grub_memcmp.
26589 (memset): New alias for grub_memset.
26590 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26591 Change "int handle" to "grub_ieee1275_phandle_t handle".
26592 * include/grub/powerpc/ieee1275/ieee1275.h
26593 (grub_ieee1275_get_property): Likewise.
26594
26595 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
26596
26597 Added normal mode command `chainloader' as module chain.mod, which
26598 depends on normal.mod and _chain.mod.
26599
26600 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
26601 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
26602 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
26603 Deleted prototype.
26604 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
26605 but arguments parsing moved to ...
26606 (grub_chainloader_cmd): ... here. New function.
26607 * include/grub/i386/pc/chainloader.h: New file.
26608 * loader/i386/pc/chainloader_normal.c: Likewise.
26609
26610 2004-09-11 Marco Gerards <metgerards@student.han.nl>
26611
26612 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
26613 (grub_mkimage_LDFLAGS): Likewise.
26614 (grub_emu_SOURCES): Likewise.
26615 (kernel_img_HEADERS): Added fshelp.h.
26616 * fs/ext2.c: Include <grub/fshelp.h>.
26617 (FILETYPE_REG): New macro.
26618 (FILETYPE_INO_REG): Likewise.
26619 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
26620 Changed all users.
26621 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
26622 all users.
26623 (grub_fshelp_node): New struct.
26624 (grub_ext2_data): Added member `diropen'. Changed member `inode'
26625 to a pointer.
26626 (grub_ext2_get_file_block): Removed function.
26627 (grub_ext2_read_block): New function.
26628 (grub_ext2_read_file): Replaced parameter `data' by `node'.
26629 This function was written.
26630 (grub_ext2_mount): Read the root inode. Create a diropen struct.
26631 (grub_ext2_find_file): Removed function.
26632 (grub_ext2_read_symlink): New function.
26633 (grub_ext2_iterate_dir): Likewise.
26634 (grub_ext2_open): Rewritten.
26635 (grub_ext2_dir): Rewritten.
26636 * include/grub/fshelp.h: New file.
26637 * fs/fshelp.c: Likewise.
26638
26639 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
26640
26641 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
26642 (print_message): Add a missing newline.
26643 (run_menu): Added timeout support.
26644 (run_menu_entry): New local function.
26645 (grub_menu_run): Added support for booting.
26646
26647 * kern/loader.c (grub_loader_is_loaded): New function.
26648
26649 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
26650 (grub_get_rtc): Exported.
26651
26652 * include/grub/i386/pc/time.h: Include grub/symbol.h.
26653 (grub_get_rtc): Exported.
26654
26655 * include/grub/normal.h (struct grub_command_list): Remove
26656 constant from the member `command'.
26657
26658 * include/grub/loader.h (grub_loader_is_loaded): Declared.
26659
26660 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
26661
26662 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
26663
26664 2004-08-28 Marco Gerards <metgerards@student.han.nl>
26665
26666 Add support for the JFS filesystem.
26667
26668 * fs/jfs.c: New file.
26669 * include/grub/fs.h (grub_jfs_init): New prototype.
26670 (grub_jfs_fini): New prototype.
26671 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
26672 (grub_emu_SOURCES): Likewise.
26673 (pkgdata_MODULES): Add jfs.mod.
26674 (jfs_mod_SOURCES): New variable.
26675 (jfs_mod_CFLAGS): Likewise.
26676 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
26677 (grubof_SOURCES): Likewise.
26678 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
26679
26680 * fs/fat.c (grub_fat_find_dir): Convert the filename little
26681 endian to the host endian.
26682 (grub_fat_utf16_to_utf8): Move function from there...
26683 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
26684 the endianness of the source string anymore.
26685 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
26686
26687 2004-08-24 Marco Gerards <metgerards@student.han.nl>
26688
26689 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
26690 (grub_boot_fini) [GRUB_UTIL]: Likewise.
26691 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
26692 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
26693
26694 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
26695 (grub_hfs_iterate_dir): Make the function static. Add prototypes
26696 for `node_found' and `it_dir'.
26697 (grub_hfs_dir): Add prototype for `dir_hook'.
26698
26699 * fs/minix.c (grub_minix_get_file_block): Add prototype for
26700 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
26701 and `indir32' to silence a gcc warning.
26702
26703 * include/grub/fs.h (grub_hfs_init): New prototype.
26704 (grub_hfs_fini): Likewise.
26705
26706
26707 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
26708
26709 Each disk device has its own id now. This is useful to make use
26710 of multiple disk devices.
26711
26712 * include/grub/disk.h (grub_disk_dev_id): New enum.
26713 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
26714 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
26715
26716 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
26717 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
26718
26719 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
26720 GRUB_DISK_DEVICE_OFDISK_ID as an id.
26721
26722 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
26723 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
26724
26725 * include/grub/disk.h (struct grub_disk_dev): Added a new member
26726 "id" which is used by the cache manager.
26727
26728 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
26729 of just "GRUB".
26730
26731 2004-08-18 Marco Gerards <metgerards@student.han.nl>
26732
26733 * fs/hfs.c: New file.
26734 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
26735 (grub_emu_SOURCES): Likewise.
26736 (pkgdata_MODULES): Add hfs.mod.
26737 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
26738 (grubof_SOURCES): Likewise.
26739 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
26740
26741 * include/grub/misc.h (grub_strncasecmp): Add prototype.
26742 * kern/misc.c (grub_strncasecmp): Add function.
26743
26744 2004-08-14 Marco Gerards <metgerards@student.han.nl>
26745
26746 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
26747 with parentheses.
26748
26749 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
26750 (grub_ext2_dir): In case the directory entry type is unknown, read
26751 it from the inode.
26752
26753 2004-08-02 Peter Bruin <pjbruin@dds.nl>
26754
26755 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
26756 grub_load_linux instead of grub_rescue_cmd_linux as second
26757 argument of grub_rescue_register_command.
26758
26759 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
26760
26761 2004-07-27 Marco Gerards <metgerards@student.han.nl>
26762
26763 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
26764 function.
26765 * commands/boot.c: Remove the check for `GRUB_UTIL'.
26766 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
26767 `loader/powerpc/ieee1275/linux.c',
26768 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
26769 * include/grub/powerpc/ieee1275/ieee1275.h
26770 (grub_ieee1275_release): New prototype.
26771 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
26772 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
26773 normal, boot, linux and linux_normal.
26774 * loader/powerpc/ieee1275/linux.c: New file.
26775 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
26776
26777 2004-07-12 Marco Gerards <metgerards@student.han.nl>
26778
26779 * normal/arg.c (grub_arg_parse): Correct error handling after
26780 reallocating the argumentlist (check if `argl' is not null instead
26781 of checking if `args' is not null).
26782 * kern/mm.c (grub_realloc): Return the same pointer when using the
26783 same region, instead of returning the header address.
26784
26785 2004-07-11 Marco Gerards <metgerards@student.han.nl>
26786
26787 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
26788 one block instead of two when looking for the initial partition.
26789 (grub_partition_probe): Initialize the local variable `p' with 0.
26790 Use base 10 for the grub_strtoul call.
26791 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
26792 need for one local variable.
26793 (grub_strtoul): Don't add the new value to `num', instead of that
26794 just assign it.
26795
26796 2004-07-11 Marco Gerards <metgerards@student.han.nl>
26797
26798 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
26799 (pxeboot_img_SOURCES): New variable.
26800 (pxeboot_img_ASFLAGS): Likewise.
26801 (pxeboot_img_LDFLAGS): Likewise.
26802 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
26803 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
26804 <lode_leroy@hotmail.com>.
26805
26806 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26807
26808 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
26809 there was no input.
26810
26811 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26812
26813 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
26814 the history buffer logic.
26815
26816 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26817
26818 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
26819 (FILETYPE_INO_SYMLINK): New macros.
26820 (grub_ext2_find_file): Check if the node is a directory using the
26821 inode stat information instead of using the filetype in the
26822 dirent. Exclude the first character of an absolute symlink.
26823 (grub_ext2_dir): Mask out the filetype part of the mode member of
26824 the inode.
26825
26826 2004-05-24 Marco Gerards <metgerards@student.han.nl>
26827
26828 Add support for UFS version 1 and 2. Add support for the minix
26829 filesystem version 1 and 2, both the variants with 14 and 30 long
26830 filenames.
26831
26832 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
26833 fs/minix.c.
26834 (grub_emu_SOURCES): Likewise.
26835 (pkgdata_MODULES): Add ufs.mod and minix.mod.
26836 (ufs_mod_SOURCES): New variable.
26837 (ufs_mod_CFLAGS): Likewise.
26838 (minix_mod_SOURCES): Likewise.
26839 (minix_mod_CFLAGS): Likewise.
26840 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
26841 fs/minix.c.
26842 (grubof_SOURCES): Likewise.
26843 * fs/ufs.c: New file.
26844 * fs/minix.c: New file.
26845 * include/grub/fs.h (grub_ufs_init): New prototype.
26846 (grub_ufs_fini): Likewise.
26847 (grub_minix_init): Likewise.
26848 (grub_minix_fini): Likewise.
26849 * util/grub-emu.c (main): Initialize and deinitialize UFS and
26850 minix fs.
26851
26852 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
26853
26854 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
26855 commands/ls.c, commands/terminal.c, commands/boot.c,
26856 commands/cmp.c and commands/cat.c.
26857 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
26858
26859 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
26860 "env.h"
26861
26862 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
26863
26864 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
26865 and grub_, respectively. Because the conversion is trivial and
26866 mechanical, I omit the details here. Please refer to the CVS
26867 if you need more information.
26868
26869 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
26870
26871 * include/pupa: Renamed to ...
26872 * include/grub: ... this.
26873 * util/i386/pc/pupa-mkimage.c: Renamed to ...
26874 * util/i386/pc/grub-mkimage.c: ... this.
26875 * util/i386/pc/pupa-setup.c: Renamed to ...
26876 * util/i386/pc/grub-setup.c: ... this.
26877 * util/pupa-emu.c: Renamed to ...
26878 * util/grub-emu.c: ... this.
26879
26880 2004-03-29 Marco Gerards <metgerards@student.han.nl>
26881
26882 Add support for the newworld apple macintosh (PPC). This has been
26883 tested on the powerbook 2000 only. It only adds support for
26884 generic ieee1275 functions, console and disk support. This should
26885 be easy to port to other architectures with support for Open
26886 Firmware.
26887
26888 * configure.ac: Accept the powerpc as host_cpu. In the case of
26889 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
26890 specific tests are only executed while building for the i386.
26891 Inverse test for crosscompile.
26892 * genmk.rb (Utility): Allow assembler files.
26893 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
26894 * conf/powerpc-ieee1275.rmk: New file.
26895 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
26896 * disk/powerpc/ieee1275/partition.c: Likewise.
26897 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
26898 * include/pupa/powerpc/ieee1275/console.h: Likewise.
26899 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
26900 * include/pupa/powerpc/ieee1275/time.h: Likewise.
26901 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
26902 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
26903 * include/pupa/powerpc/ieee1275/loader.h
26904 * include/pupa/powerpc/setjmp.h: Likewise.
26905 * include/pupa/powerpc/types.h: Likewise.
26906 * kern/powerpc/ieee1275/init.c: Likewise.
26907 * kern/powerpc/ieee1275/openfw.c: Likewise.
26908 * term/powerpc/ieee1275/ofconsole.c: Likewise.
26909
26910 These files were written by Johan Rydberg
26911 (jrydberg@night.trouble.net) and I only modified them slightly.
26912
26913 * boot/powerpc/ieee1275/cmain.c: New file.
26914 * boot/powerpc/ieee1275/crt0.S: Likewise.
26915 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
26916 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
26917
26918 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
26919
26920 * Makefile.in: Update copyright.
26921 * genmodsrc.sh: Likewise.
26922 * gensymlist.sh: Likewise.
26923 * term/i386/pc/vga.c: Indent correctly.
26924
26925 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
26926 bugreporting address.
26927 * util/i386/pc/pupa-setup.c (usage): Likewise,
26928 (main): Call pupa_ext2_init and pupa_ext2_fini.
26929
26930 * fs/fat.c (log2): Renamed to ...
26931 (fat_log2): ... this.
26932 All callers changed.
26933 * kern/misc.c (memcpy): Alias to pupa_memmove.
26934 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
26935 lvalue cast.
26936 * util/console.c (pupa_ncurses_fini): Return 0.
26937
26938 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
26939 Move fail label here.
26940 [__GNU__]: Don't warn when using stat.
26941 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
26942 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
26943 long int. Use strtol instead of strtoul.
26944
26945 2004-03-14 Marco Gerards <metgerards@student.han.nl>
26946
26947 * commands/boot.c: New file.
26948 * commands/cat.c: Likewise.
26949 * commands/cmp.c: Likewise.
26950 * commands/ls.c: Likewise.
26951 * commands/terminal.c: Likewise.
26952 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
26953 (pupa_register_command): Changed interface to match the new
26954 argument parser.
26955 (pupa_command_execute): Changed (almost rewritten) so it uses
26956 pupa_split_command. Added support for setting variables using the
26957 syntax `foo=bar'.
26958 (rescue_command): Changed to work with the new argument parser.
26959 (terminal_command): Moved from here to commands/terminal.c.
26960 (set_command): New function.
26961 (unset_command): New function.
26962 (insmod_command): New function.
26963 (rmmod_command): New function.
26964 (lsmod_command): New function.
26965 (pupa_command_init): Don't initialize the command terminal
26966 anymore. Initialize the commands set, unset, insmod, rmmod and
26967 lsmod.
26968 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
26969 (kernel_img_HEADERS): Add arg.h and env.h.
26970 (pupa_mkimage_LDFLAGS): Add kern/env.c.
26971 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
26972 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
26973 normal/arg.c.
26974 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
26975 terminal.mod.
26976 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
26977 (boot_mod_SOURCES): New variable.
26978 (terminal_mod_SOURCES): Likewise.
26979 (ls_mod_SOURCES): Likewise.
26980 (cmp_mod_SOURCES): Likewise.
26981 (cat_mod_SOURCES): Likewise.
26982
26983 * normal/arg.c: New file.
26984 * kern/env.c: Likewise.
26985 * include/pupa/arg.h: Likewise.
26986 * include/pupa/env.h: Likewise.
26987 * font/manager.c (font_command): Changed to match argument parsing
26988 interface changes.
26989 (PUPA_MOD_INIT): Likewise.
26990 * hello/hello.c (pupa_cmd_hello): Likewise.
26991 (PUPA_MOD_INIT): Likewise.
26992 * include/pupa/disk.h: Include <pupa/device.h>.
26993 (pupa_print_partinfo): New prototype.
26994 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
26995 (pupa_dl_get_prefix): Likewise.
26996 * include/pupa/misc.h: Include <pupa/err.h>.
26997 (pupa_isgraph): New prototype.
26998 (pupa_isdigit): Likewise.
26999 (pupa_split_cmdline): Likewise.
27000 * include/pupa/normal.h: Include <pupa/arg.h>.
27001 (pupa_command): Changed the prototype of the member `func' to
27002 match the argument parsing interface. Added member `options'.
27003 (pupa_register_command): Updated to match function.
27004 (pupa_arg_parse): New prototype.
27005 (pupa_hello_init) [PUPA_UTIL]: New prototype.
27006 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
27007 (pupa_ls_init) [PUPA_UTIL]: Likewise.
27008 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
27009 (pupa_cat_init) [PUPA_UTIL]: Likewise.
27010 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
27011 (pupa_boot_init) [PUPA_UTIL]: Likewise.
27012 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
27013 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
27014 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
27015 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
27016 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
27017 * kern/disk.c: Include <pupa/file.h>.
27018 (pupa_print_partinfo): New function.
27019 * kern/dl.c: Include <pupa/env.h>.
27020 (pupa_dl_dir): Variable removed.
27021 (pupa_dl_load): Use the environment variable `prefix' instead of
27022 the variable pupa_dl_dir.
27023 (pupa_dl_set_prefix): Function removed.
27024 (pupa_dl_get_prefix): Likewise.
27025 * kern/i386/pc/init.c: Include <pupa/env.h>.
27026 (pupa_machine_init): Use the environment variable `prefix' instead of
27027 using pupa_dl_set_prefix to set the prefix.
27028 * kern/main.c: Include <pupa/env.h>.
27029 (pupa_set_root_dev): Use the environment variable `prefix' instead of
27030 using pupa_dl_get_prefix to get the prefix.
27031 * kern/misc.c: Include <pupa/env.h>.
27032 (pupa_isdigit): New function.
27033 (pupa_isgraph): Likewise.
27034 (pupa_ftoa): Likewise.
27035 (pupa_vsprintf): Added support for printing values of the type
27036 `double'. Make it possible to format variable output when using
27037 formatting like `%1.2%f'.
27038 (pupa_split_cmdline): New function.
27039 * kern/rescue.c: Include <pupa/env.h>.
27040 (next_word): Removed function.
27041 (pupa_rescue_cmd_prefix): Likewise.
27042 (pupa_rescue_cmd_set): New function.
27043 (pupa_rescue_cmd_unset): New function.
27044 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
27045 split the command line instead of splitting it here. Added
27046 support for setting variables using the syntax `foo=bar'. Don't
27047 initialize the prefix command anymore. Initialized the set and
27048 unset commands.
27049 * normal/cmdline.c: Include <pupa/env.h>.
27050 (pupa_tab_complete): Added prototypes for print_simple_completion,
27051 print_partition_completion, add_completion, iterate_commands,
27052 iterate_dev, iterate_part and iterate_dir. Moved code to print
27053 partition information from here to kern/disk.c.
27054 (pupa_cmdline_run): Don't check if the function exists anymore.
27055 * normal/main.c: Include <pupa/env.h>.
27056 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
27057 instead of using pupa_dl_get_prefix to get the prefix.
27058 * term/i386/pc/vga.c: Include <pupa/arg.h>.
27059 (check_vga_mem): Cast pointers to `void *' to silence a gcc
27060 warning.
27061 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
27062 (pupa_vga_setcolor): Declare unused variables with `__attribute__
27063 ((unused))' to silence a gcc warning.
27064 (pupa_vga_setcolor): Likewise.
27065 (debug_command): Changed to match argument parsing
27066 interface changes.
27067 * util/pupa-emu.c: Include <pupa/env.h>.
27068 (options): Added 0's for unused fields to silence a gcc warning.
27069 (argp): Likewise.
27070 (main): Use the environment variable `prefix' instead of using
27071 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
27072 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
27073 and terminal.
27074
27075 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
27076 * util/misc.c: Include <malloc.h>.
27077 (pupa_malloc): Rewritten so errors are correctly reported.
27078 (pupa_realloc): Likewise.
27079 (pupa_memalign): Likewise.
27080 (pupa_mm_init_region): Declare unused variables with
27081 `__attribute__ ((unused))' to silence a gcc warning.
27082 * normal/i386/setjmp.S: Remove tab at the end of the file to
27083 silence a gcc warning.
27084 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
27085 variables with `__attribute__ ((unused))' to silence a gcc
27086 warning.
27087 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
27088 local variable i unsigned to silence a gcc warning.
27089
27090 * kern/term.c: Include <pupa/misc.h>.
27091 (pupa_more_lines): New variable.
27092 (pupa_more): Likewise.
27093 (pupa_putcode): When the pager is active pause at the end of every
27094 screen.
27095 (pupa_set_more): New function.
27096 * include/pupa/term.h (pupa_set_more): New prototype.
27097
27098
27099 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
27100
27101 Now this project is GRUB 2 rather than PUPA. The location of
27102 the CVS repository was moved to GRUB's.
27103
27104 * configure.ac: Use bug-grub as the reporting address.
27105 Use GRUB instead of PUPA.
27106 Change the version number to 1.90.
27107
27108 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
27109
27110 * genkernsyms.sh: Updated copyright information.
27111 * genmk.rb: Likewise.
27112 * genmodsrc.sh: Likewise.
27113 * gensymlist.sh: Likewise.
27114 * boot/i386/pc/boot.S: Likewise.
27115 * boot/i386/pc/diskboot.S: Likewise.
27116 * disk/i386/pc/biosdisk.c: Likewise.
27117 * disk/i386/pc/partition.c: Likewise.
27118 * font/manager.c: Likewise.
27119 * fs/ext2.c: Likewise.
27120 * fs/fat.c: Likewise.
27121 * include/pupa/boot.h: Likewise.
27122 * include/pupa/device.h: Likewise.
27123 * include/pupa/disk.h: Likewise.
27124 * include/pupa/dl.h: Likewise.
27125 * include/pupa/elf.h: Likewise.
27126 * include/pupa/err.h: Likewise.
27127 * include/pupa/file.h: Likewise.
27128 * include/pupa/font.h: Likewise.
27129 * include/pupa/fs.h: Likewise.
27130 * include/pupa/kernel.h: Likewise.
27131 * include/pupa/loader.h: Likewise.
27132 * include/pupa/misc.h: Likewise.
27133 * include/pupa/mm.h: Likewise.
27134 * include/pupa/net.h: Likewise.
27135 * include/pupa/normal.h: Likewise.
27136 * include/pupa/rescue.h: Likewise.
27137 * include/pupa/setjmp.h: Likewise.
27138 * include/pupa/symbol.h: Likewise.
27139 * include/pupa/term.h: Likewise.
27140 * include/pupa/types.h: Likewise.
27141 * include/pupa/i386/setjmp.h: Likewise.
27142 * include/pupa/i386/types.h: Likewise.
27143 * include/pupa/i386/pc/biosdisk.h: Likewise.
27144 * include/pupa/i386/pc/boot.h: Likewise.
27145 * include/pupa/i386/pc/console.h: Likewise.
27146 * include/pupa/i386/pc/init.h: Likewise.
27147 * include/pupa/i386/pc/kernel.h: Likewise.
27148 * include/pupa/i386/pc/linux.h: Likewise.
27149 * include/pupa/i386/pc/loader.h: Likewise.
27150 * include/pupa/i386/pc/memory.h: Likewise.
27151 * include/pupa/i386/pc/multiboot.h: Likewise.
27152 * include/pupa/i386/pc/partition.h: Likewise.
27153 * include/pupa/i386/pc/time.h: Likewise.
27154 * include/pupa/i386/pc/vga.h: Likewise.
27155 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
27156 * include/pupa/util/getroot.h: Likewise.
27157 * include/pupa/util/misc.h: Likewise.
27158 * include/pupa/util/resolve.h: Likewise.
27159 * kern/device.c: Likewise.
27160 * kern/disk.c: Likewise.
27161 * kern/dl.c: Likewise.
27162 * kern/err.c: Likewise.
27163 * kern/file.c: Likewise.
27164 * kern/fs.c: Likewise.
27165 * kern/loader.c: Likewise.
27166 * kern/main.c: Likewise.
27167 * kern/misc.c: Likewise.
27168 * kern/mm.c: Likewise.
27169 * kern/rescue.c: Likewise.
27170 * kern/term.c: Likewise.
27171 * kern/i386/dl.c: Likewise.
27172 * kern/i386/pc/init.c: Likewise.
27173 * kern/i386/pc/lzo1x.S: Likewise.
27174 * kern/i386/pc/startup.S: Likewise.
27175 * loader/i386/pc/chainloader.c: Likewise.
27176 * loader/i386/pc/linux.c: Likewise.
27177 * loader/i386/pc/multiboot.c: Likewise.
27178 * normal/cmdline.c: Likewise.
27179 * normal/command.c: Likewise.
27180 * normal/main.c: Likewise.
27181 * normal/menu.c: Likewise.
27182 * normal/i386/setjmp.S: Likewise.
27183 * term/i386/pc/console.c: Likewise.
27184 * term/i386/pc/vga.c: Likewise.
27185 * util/console.c: Likewise.
27186 * util/genmoddep.c: Likewise.
27187 * util/misc.c: Likewise.
27188 * util/pupa-emu.c: Likewise.
27189 * util/resolve.c: Likewise.
27190 * util/unifont2pff.rb: Likewise.
27191 * util/i386/pc/biosdisk.c: Likewise.
27192 * util/i386/pc/getroot.c: Likewise.
27193 * util/i386/pc/pupa-mkimage.c: Likewise.
27194 * util/i386/pc/pupa-setup.c: Likewise.
27195
27196 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
27197
27198 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
27199 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
27200 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
27201 reading and reset it after reading.
27202 (pupa_ext2_close): Return PUPA_ERR_NONE.
27203
27204 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
27205 Correct value.
27206 (struct linux_kernel_header): Add kernel_version and
27207 initrd_addr_max.
27208 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
27209 pupa_file_read succeeds.
27210 (pupa_rescue_cmd_initrd): Implement.
27211
27212 2003-12-03 Marco Gerards <metgerards@student.han.nl>
27213
27214 * fs/ext2.c (pupa_ext2_label): New function.
27215 (pupa_ext2_fs): Added label.
27216 * fs/fat.c (pupa_fat_label): New function.
27217 (pupa_fat_fs): Added label.
27218 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
27219
27220 * kern/misc.c (pupa_strndup): New function.
27221 * include/pupa/misc.h (pupa_strndup): New prototype.
27222
27223 * include/pupa/normal.h: Include <pupa/err.h>.
27224 (pupa_set_history): New prototype.
27225 (pupa_iterate_commands): New prototype.
27226 * normal/cmdline.c: Include <pupa/machine/partition.h>,
27227 <pupa/disk.h>, <pupa/file.h>.
27228 (hist_size): New variable.
27229 (hist_lines): Likewise.
27230 (hist_end): Likewise.
27231 (hist_used): Likewise.
27232 (pupa_set_history): New function.
27233 (pupa_history_get): Likewise.
27234 (pupa_history_add): Likewise.
27235 (pupa_history_replace): Likewise.
27236 (pupa_tab_complete): Likewise.
27237 (pupa_cmdline_run): Added tab completion and history buffer. Tab
27238 completion shows partitionnames while completing partitions, this
27239 feature was suggested by Jeff Bailey.
27240 * normal/command.c (pupa_iterate_commands): New function.
27241 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
27242 (pupa_normal_init): Initialize history buffer.
27243 (PUPA_MOD_INIT): Likewise.
27244 (pupa_normal_fini): Free the history buffer.
27245 (PUPA_MOD_FINI): Likewise.
27246
27247 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
27248 key.
27249
27250 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
27251 * configure.ac [i386]: Check for regparam bug.
27252 (NESTED_FUNC_ATTR) [! i386]: Defined.
27253
27254 2003-11-17 Marco Gerards <metgerards@student.han.nl>
27255
27256 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
27257 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
27258 (pupa_emu_SOURCES): New variable.
27259 (pupa_emu_LDFLAGS): Likewise.
27260 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
27261 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
27262 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
27263 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27264 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
27265 (pupa_jmp_buf): New typedef.
27266 (pupa_setjmp) [PUPA_UTIL]: New macro.
27267 (pupa_longjmp) [PUPA_UTIL]: Likewise.
27268 * include/pupa/term.h (struct pupa_term): New member `refresh'.
27269 (pupa_refresh): New prototype.
27270 * include/pupa/util/getroot.h: New file.
27271 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
27272 it.
27273 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
27274 (pupa_rescue_cmd_cat): Likewise.
27275 (pupa_rescue_cmd_ls): Likewise.
27276 (pupa_rescue_cmd_testload): Likewise.
27277 (pupa_rescue_cmd_lsmod): Likewise.
27278 * normal/cmdline.c (pupa_cmdline_get): Likewise.
27279 * normal/menu.c (run_menu): Likewise.
27280 * kern/term.c (pupa_cls): Likewise.
27281 (pupa_refresh): New function.
27282 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
27283 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27284 * util/console.c: New file.
27285
27286 * util/i386/pc/getroot.c: New file.
27287 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
27288 (pupa_putchar): New function.
27289 (pupa_refresh): Likewise.
27290 (xgetcwd): Function moved to ...
27291 (strip_extra_slashes): Likewise.
27292 (get_prefix): Likewise.
27293 * util/i386/pc/getroot.c: ... here.
27294 (find_root_device): Function moved and renamed to...
27295 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
27296 Changed all callers.
27297 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
27298 and renamed to...
27299 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
27300 Changed all callers.
27301 * util/misc.c (pupa_memalign): New function.
27302 (pupa_mm_init_region): Likewise.
27303 (pupa_register_exported_symbols): Likewise.
27304 (pupa_putchar): Function removed.
27305 * util/pupa-emu.c: New file.
27306
27307 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
27308
27309 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
27310 (_multiboot_mod_SOURCES): New variable.
27311 (_multiboot_mod_CFLAGS): Likewise.
27312 * loader/i386/pc/multiboot.c: New file.
27313 * include/pupa/i386/pc/multiboot.h: Likewise.
27314 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
27315 (pupa_multiboot_real_boot): New function.
27316 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
27317 (pupa_multiboot_real_boot): New prototype.
27318 (pupa_rescue_cmd_multiboot): Likewise
27319 (pupa_rescue_cmd_module): Likewise.
27320
27321 * kern/loader.c (pupa_loader_set): Continue when
27322 pupa_loader_unload_func() fails.
27323 (pupa_loader_unset): New function.
27324 * include/pupa/loader.h (pupa_loader_unset): New prototype.
27325
27326 * kern/misc.c (pupa_stpcpy): New function.
27327 * include/pupa/misc.h (pupa_stpcpy): New prototype.
27328
27329 2003-11-12 Marco Gerards <metgerards@student.han.nl>
27330
27331 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
27332 for available extensions.
27333
27334 * include/pupa/i386/pc/time.h: New file.
27335 * kern/disk.c: Include <pupa/machine/time.h>.
27336 (PUPA_CACHE_TIMEOUT): New macro.
27337 (pupa_last_time): New variable.
27338 (pupa_disk_open): Flush the cache when there was a timeout.
27339 (pupa_disk_close): Reset the timer.
27340 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
27341 pupa_currticks.
27342 * util/misc.c: Include <sys/times.h>
27343 (pupa_get_rtc): New function.
27344
27345 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
27346
27347 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
27348 as blocks.
27349 (pupa_ext2_get_file_block): Use blocks member.
27350
27351 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
27352 first block. Return -1 instead of pupa_errno on error.
27353
27354 2003-10-27 Marco Gerards <metgerards@student.han.nl>
27355
27356 * README: In the pupa-mkimage example use _chain instead of chain
27357 and ext2 instead of fat.
27358 * TODO: Replace ext2fs with jfs as an example. Add an item for
27359 adding journal playback for ext2fs.
27360 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
27361 (pkgdata_MODULES): Added ext2.mod.
27362 (ext2_mod_SOURCES): New variable.
27363 (ext2_mod_CFLAGS): Likewise.
27364 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
27365 * include/pupa/misc.h (pupa_strncpy): New prototype.
27366 (pupa_strcat): Likewise.
27367 (pupa_strncmp): Likewise.
27368 * kern/misc.c (pupa_strcat): Enable function.
27369 (pupa_strncpy): New function.
27370 (pupa_strncmp): Likewise.
27371 * fs/ext2.c: New file.
27372
27373 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
27374 when the read failed before retrying.
27375 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
27376 (_FILE_OFFSET_BITS): Likewise.
27377 * configure.ac: Added AC_SYS_LARGEFILE.
27378
27379 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27380
27381 * genmk.rb (PModule#rule): Make sure to get only symbol names
27382 from the output of nm.
27383 Reported by Robert Millan <rmh.grub@aybabtu.com>.
27384
27385 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27386
27387 I forgot to check in these changes for a long time. This adds
27388 incomplete support for VGA console, and this is still very
27389 buggy. Also, a lot of consideration is required for I18N,
27390 UNICODE, and VGA font issues. Therefore, assume that this is
27391 such that "better than nothing".
27392
27393 * font/manager.c: New file.
27394 * include/pupa/font.h: Likewise.
27395 * include/pupa/i386/pc/vga.h: Likewise.
27396 * term/i386/pc/vga.c: Likewise.
27397 * util/unifont2pff.rb: Likewise.
27398
27399 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
27400 (pkgdata_MODULES): Added vga.mod and font.mod.
27401 (vga_mod_SOURCES): New variables.
27402 (vga_mod_CFLAGS): Likewise.
27403 (font_mod_SOURCES): Likewise.
27404 (font_mod_CFLAGS): Likewise.
27405
27406 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
27407
27408 * include/pupa/term.h: Include pupa/err.h.
27409 (struct pupa_term): Added init and fini.
27410 Changed the argument of putchar to pupa_uint32_t.
27411
27412 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
27413 (pupa_console_real_putchar): New prototype.
27414 (pupa_console_putchar): Removed.
27415 (pupa_console_checkkey): Exported.
27416 (pupa_console_getkey): Likewise.
27417
27418 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
27419 characters.
27420
27421 * kern/term.c (pupa_term_set_current): Rewritten.
27422 (pupa_putchar): Likewise.
27423 (pupa_putcode): New function.
27424
27425 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
27426 (pupa_console_real_putchar): ... this.
27427 (pupa_vga_set_mode): New function.
27428 (pupa_vga_get_font): Likewise.
27429
27430 * normal/command.c: Include pupa/term.h.
27431 (terminal_command): New function.
27432 (pupa_command_init): Register the command "terminal".
27433
27434 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
27435 (DISP_UP): Likewise.
27436 (DISP_RIGHT): Likewise.
27437 (DISP_DOWN): Likewise.
27438 (DISP_HLINE): Likewise.
27439 (DISP_VLINE): Likewise.
27440 (DISP_UL): Likewise.
27441 (DISP_UR): Likewise.
27442 (DISP_LL): Likewise.
27443 (DISP_LR): Likewise.
27444
27445 * term/i386/pc/console.c (pupa_console_putchar): New function.
27446
27447 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
27448
27449 * util/resolve.c (pupa_util_resolve_dependencies): BUG
27450 FIX. Reverse the path_list.
27451
27452 * include/pupa/normal.h: Export pupa_register_command and
27453 pupa_unregister_command.
27454
27455 * hello/hello.c (pupa_cmd_hello): New module.
27456 * conf/i386-pc.rmk: Added hello.mod.
27457
27458 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
27459
27460 * kern/i386/pc/lzo1x.S: New file.
27461
27462 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
27463 (compress_kernel): New variable.
27464 (generate_image): Heavily modified to support compressing a
27465 large part of the core image.
27466
27467 * util/misc.c (pupa_util_read_image): Fix a file descriptor
27468 leak.
27469 (pupa_util_load_image): New function.
27470
27471 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
27472 (pupa_compressed_size): New variable.
27473 (codestart): Enable Gate A20 here.
27474 Decompress the compressed part of the core image.
27475 Rearrange the code to put functions and variables which are
27476 required for initialization in the non-compressed part.
27477 Include lzo1x.S.
27478
27479 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
27480 here.
27481
27482 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
27483
27484 * include/pupa/i386/pc/kernel.h
27485 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
27486 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
27487 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
27488 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
27489 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
27490
27491 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
27492
27493 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
27494 (Utility#rule): Likewise.
27495
27496 * configure.ac: Check if LZO is available.
27497
27498 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
27499
27500 * include/pupa/normal.h: New file.
27501 * include/pupa/setjmp.h: Likewise.
27502 * include/pupa/i386/setjmp.h: Likewise.
27503 * normal/cmdline.c: Likewise.
27504 * normal/command.c: Likewise.
27505 * normal/main.c: Likewise.
27506 * normal/menu.c: Likewise.
27507 * normal/i386/setjmp.S: Likewise.
27508
27509 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
27510 (pupa_rescue_cmd_initrd): Likewise.
27511
27512 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
27513 Likewise.
27514
27515 * kern/i386/pc/startup.S (translation_table): New variable.
27516 (translate_keycode): New function.
27517 (pupa_console_getkey): Call translate_keycode.
27518
27519 * kern/rescue.c (attempt_normal_mode): New function.
27520 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
27521 it failed, print a message.
27522
27523 * kern/mm.c (pupa_real_malloc): Print more information when a
27524 free magic is broken.
27525 (pupa_free): If the first free header is not free actually, set
27526 it to P.
27527
27528 * kern/main.c (pupa_load_normal_mode): Just load the module
27529 "normal".
27530 (pupa_main): Don't print the message
27531 "Entering into rescue mode..." here.
27532
27533 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
27534 Declared.
27535 (pupa_rescue_cmd_initrd): Likewise.
27536 (pupa_rescue_cmd_initrd): Likewise.
27537
27538 * include/pupa/symbol.h (FUNCTION): Specify the type.
27539 (VARIABLE): Likewise.
27540
27541 * include/pupa/err.h (pupa_err_t): Added
27542 PUPA_ERR_UNKNOWN_COMMAND.
27543
27544 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
27545 (pupa_dl_get_prefix): Likewise.
27546
27547 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
27548 Added _chain.mod and _linux.mod instead of chain.mod and
27549 linux.mod.
27550 (chain_mod_SOURCES): Renamed to ...
27551 (_chain_mod_SOURCES): ... this.
27552 (chain_mod_CFLAGS): Renamed to ...
27553 (_chain_mod_CFLAGS): ... this.
27554 (linux_mod_SOURCES): Renamed to ...
27555 (_linux_mod_SOURCES): ... this.
27556 (linux_mod_CFLAGS): Renamed to ...
27557 (_linux_mod_CFLAGS): ... this.
27558 (normal_mod_SOURCES): New variable.
27559 (normal_mod_CFLAGS): Likewise.
27560 (normal_mod_ASFLAGS): Likewise.
27561
27562 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
27563
27564 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
27565 possible.
27566
27567 * kern/dl.c (pupa_dl_ref): Refer depending modules
27568 recursively.
27569 (pupa_dl_unref): Unrefer depending modules recursively.
27570 Don't call pupa_dl_unload implicitly, because PUPA can crash if
27571 a module is unloaded before one depending on that module is
27572 unloaded.
27573 (pupa_dl_unload): Unload depending modules explicitly,
27574 if possible.
27575
27576 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
27577
27578 * include/pupa/i386/pc/linux.h: New file.
27579 * loader/i386/pc/linux.c: Likewise.
27580
27581 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
27582 Removed.
27583 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
27584 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
27585 of PUPA_CHAINLOADER_BOOT_SECTOR.
27586
27587 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
27588 (pupa_linux_prot_size): New variable.
27589 (pupa_linux_tmp_addr): Likewise.
27590 (pupa_linux_real_addr): Likewise.
27591 (pupa_linux_boot_zimage): New function.
27592 (pupa_linux_boot_bzimage): Likewise.
27593
27594 * kern/i386/pc/init.c (struct mem_region): New structure.
27595 (MAX_REGIONS): New macro.
27596 (mem_regions): New variable.
27597 (num_regions): Likewise.
27598 (pupa_os_area_addr): Likewise.
27599 (pupa_os_area_size): Likewise.
27600 (pupa_lower_mem): Likewise.
27601 (pupa_upper_mem): Likewise.
27602 (add_mem_region): New function.
27603 (compact_mem_regions): Likewise.
27604 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
27605 the size of the conventional memory and that of so-called upper
27606 memory (before the first memory hole).
27607 Instead of adding each found region to free memory, use
27608 add_mem_region and add them after removing overlaps.
27609 Also, add only 1/4 of the upper memory to free memory. The rest
27610 is used for loading OS images. Maybe this is ad hoc, but this
27611 makes it much easier to relocate OS images when booting.
27612
27613 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
27614 (pupa_enter_rescue_mode): Don't register initrd and module.
27615
27616 * kern/mm.c: Include pupa/dl.h.
27617
27618 * kern/main.c: Include pupa/file.h and pupa/device.h.
27619
27620 * kern/loader.c (pupa_loader_load_module_func): Removed.
27621 (pupa_loader_load_module): Likewise.
27622
27623 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
27624 ``.o''.
27625
27626 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
27627 (pupa_linux_tmp_addr): Likewise.
27628 (pupa_linux_real_addr): Likewise.
27629 (pupa_linux_boot_zimage): Likewise.
27630 (pupa_linux_boot_bzimage): Likewise.
27631
27632 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
27633 (pupa_upper_mem): Likewise.
27634 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
27635 module is too dangerous.
27636
27637 * include/pupa/loader.h (pupa_os_area_addr): Declared.
27638 (pupa_os_area_size): Likewise.
27639 (pupa_loader_set): Remove the first argument. Loader doesn't
27640 manage modules or initrd any longer.
27641 (pupa_loader_load_module): Removed.
27642
27643 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
27644 (linux_mod_SOURCES): New variable.
27645 (linux_mod_CFLAGS): Likewise.
27646
27647 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
27648
27649 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
27650 the length of a blocklist correctly.
27651
27652 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
27653 Use ioctl only if the OS file is a block device.
27654 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
27655 not very useful for normal files.
27656
27657 * kern/main.c (pupa_set_root_dev): New function.
27658 (pupa_load_normal_mode): Likewise.
27659 (pupa_main): Call those above.
27660
27661 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
27662 pupa_uint16_t.
27663
27664 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
27665
27666 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27667
27668 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
27669 (setup): Configure the installed partition information and the
27670 dl prefix.
27671
27672 * loader/i386/pc/chainloader.c (my_mod): New variable.
27673 (pupa_chainloader_unload): New function.
27674 (pupa_rescue_cmd_chainloader): Refer itself.
27675 (PUPA_MOD_INIT): Save its own module in MY_MOD.
27676
27677 * kern/i386/pc/startup.S (install_partition): Removed.
27678 (version_string): Likewise.
27679 (config_file): Likewise.
27680 (pupa_install_dos_part): New variable.
27681 (pupa_install_bsd_part): Likewise.
27682 (pupa_prefix): Likewise.
27683 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
27684
27685 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
27686 and pupa/misc.h.
27687 (make_install_device): New function.
27688 (pupa_machine_init): Set the dl prefix.
27689
27690 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
27691 (buf): Renamed to ...
27692 (linebuf): ... this.
27693 (pupa_rescue_cmd_prefix): New function.
27694 (pupa_rescue_cmd_insmod): Likewise.
27695 (pupa_rescue_cmd_rmmod): Likewise.
27696 (pupa_rescue_cmd_lsmod): Likewise.
27697 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
27698 rmmod and lsmod.
27699
27700 * kern/mm.c (pupa_memalign): If failed even after invalidating
27701 disk caches, unload unneeded modules and retry.
27702
27703 * kern/misc.c (pupa_memmove): New function.
27704 (pupa_memcpy): Removed.
27705 (pupa_strcpy): New function.
27706 (pupa_itoa): Made static.
27707
27708 * kern/dl.c (pupa_dl_iterate): New function.
27709 (pupa_dl_ref): Likewise.
27710 (pupa_dl_unref): Likewise.
27711 (pupa_dl_unload): Return if succeeded or not.
27712 (pupa_dl_unload_unneeded): New function.
27713 (pupa_dl_unload_all): Likewise.
27714 (pupa_dl_init): Renamed to ...
27715 (pupa_dl_set_prefix): ... this.
27716 (pupa_dl_get_prefix): New function.
27717
27718 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
27719 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
27720 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
27721 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
27722 (pupa_install_dos_part): Declared.
27723 (pupa_install_bsd_part): Likewise.
27724 (pupa_prefix): Likewise.
27725 (pupa_boot_drive): Likewise.
27726
27727 * include/pupa/types.h: Fix a typo.
27728
27729 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
27730 pupa_memmove.
27731 (pupa_memmove): Declared.
27732 (pupa_strcpy): Likewise.
27733
27734 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
27735 pupa_mod_init takes one argument, its own module.
27736 (pupa_dl_unload_unneeded): Declared.
27737 (pupa_dl_unload_all): Likewise.
27738 (pupa_dl_ref): Likewise.
27739 (pupa_dl_unref): Likewise.
27740 (pupa_dl_iterate): Likewise.
27741 (pupa_dl_init): Renamed to ...
27742 (pupa_dl_set_prefix): ... this.
27743 (pupa_dl_get_prefix): Declared.
27744
27745 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
27746 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
27747 unloaded.
27748 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
27749 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
27750
27751 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
27752 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
27753
27754 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
27755
27756 * util/i386/pc/pupa-setup.c (setup): Define the internal
27757 function find_first_partition_start at the top level, because GCC
27758 3.0.x cannot compile internal functions in deeper scopes
27759 correctly.
27760 (find_root_device): Use lstat instead of stat.
27761 Don't follow symbolic links.
27762 Fix the path-constructing code.
27763
27764 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
27765 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
27766 by a BLKGETSIZE ioctl first, because block devices don't fill
27767 the member st_mode of the structure stat on Linux.
27768 [__linux__] (linux_find_partition): Use a temporary buffer
27769 REAL_DEV for the working space. Copy it to DEV before returning.
27770 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
27771 buffer cache consistent.
27772 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
27773 strncmp. The previous value was merely wrong.
27774 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
27775
27776 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
27777 FAT size is 12. The previous value was merely wrong.
27778
27779 * kern/main.c (pupa_main): Don't split the starting message from
27780 newlines.
27781
27782 * kern/term.c (pupa_putchar): Put CR after LF instead of before
27783 LF, because BIOS goes crazy about character attributes in this
27784 case.
27785
27786 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
27787
27788 * include/i386/pc/util/biosdisk.h: New file.
27789 * util/i386/pc/biosdisk.c: Likewise.
27790 * util/i386/pc/pupa-setup.c: Likewise.
27791
27792 * Makefile.in (INCLUDE_DISTFILES): Added
27793 include/pupa/i386/pc/util/biosdisk.h.
27794 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
27795 directory util/i386/pc.
27796 (install-local): Added a rule for sbin_UTILITIES.
27797 (uninstall): Likewise.
27798
27799 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
27800
27801 * util/misc.c (xrealloc): New function.
27802 (pupa_malloc): Likewise.
27803 (pupa_free): Likewise.
27804 (pupa_realloc): Likewise.
27805 (pupa_stop): Likewise.
27806 (pupa_putchar): Likewise.
27807
27808 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
27809
27810 * include/pupa/util/misc.h (xrealloc): Declared.
27811
27812 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
27813 macro.
27814 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
27815 (PUPA_BOOT_MACHINE_BPB_END): ... this.
27816
27817 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
27818 [PUPA_UTIL] (pupa_fat_fini): Likewise.
27819
27820 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
27821 way should be implemented.
27822 [PUPA_UTIL] (pupa_fat_fini): Likewise.
27823
27824 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
27825 the size of NAME for safety.
27826 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
27827 0x88.
27828
27829 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
27830 (pupa_setup_SOURCES): Likewise.
27831
27832 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
27833
27834 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
27835
27836 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
27837 bunch of pushl's from pusha, because this destroys the return
27838 value.
27839
27840 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
27841
27842 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
27843 This means that any missing prototypes could be fatal. Also, you
27844 must take care when writing assembly code. See the comments at
27845 the beginning of startup.S, for more details.
27846
27847 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
27848 compilation mechanism.
27849 (pupa_chainloader_real_boot): Likewise.
27850 (pupa_biosdisk_rw_int13_extensions): Likewise.
27851 (pupa_biosdisk_rw_standard): Likewise.
27852 (pupa_biosdisk_check_int13_extensions): Likewise.
27853 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
27854 (pupa_biosdisk_get_diskinfo_standard): Likewise.
27855 (pupa_get_memsize): Likewise.
27856 (pupa_get_mmap_entry): Likewise.
27857 (pupa_console_putchar): Likewise.
27858 (pupa_console_setcursor): Likewise.
27859 (pupa_getrtsecs): Use pushl instead of push.
27860
27861 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
27862 memory instead of the stack for a mmap entry, because some
27863 BIOSes may ignore the maximum size and overflow.
27864
27865 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
27866
27867 * genmk.rb (PModule#rule): Compile automatically generated
27868 sources with module-specific CFLAGS as well as other sources.
27869
27870 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27871
27872 * configure.ac: Check ld.
27873 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
27874 respectively, before checking endianness and sizes.
27875
27876 * Makefile.in (LD): New variable.
27877
27878 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27879
27880 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
27881
27882 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27883
27884 * Changelog: New file.
27885