]> git.proxmox.com Git - grub2.git/blame - ChangeLog
2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
[grub2.git] / ChangeLog
CommitLineData
618307dd
VS
12010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
4 filename.
5 Reported by: Georgy Buranov
6
7dd05b96 72010-02-20 Carles Pina i Estany <carles@pina.cat>
8
9 * util/grub-mkrawimage.c (usage): Change string formatting to
10 improve gettext.
11
d1484a42
MRA
122010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
13
14 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
15 backspace keys.
16
42b1d186
VS
172010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
18
19 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
20 Reported by: Michael Suchanek.
21
222010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
23
24 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
25 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
26
d9f31a41
VS
272010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
28
29 Remove any reference to non-free fonts.
30
31 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
32 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
33 uses non-free components.
34 * font/font.c (grub_font_get_name): Remove example name.
35 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
36 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
37 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
38 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
39
2793c71e
GB
402010-02-16 Georgy Buranov <gburanov@gmail.com>
41
42 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
43
402e3779
VS
442010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
45
46 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
47 Double divisor.
48 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
49 features.
50 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
51
0dd1e0dd
VS
522010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
53
54 * gensymlist.sh.in: Use TARGET_CC instead of CC.
55
6fa7cfce
ST
562010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
57
58 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
59 * docs/grub.texi (Command-line and menu entry commands): Document play
60 command.
61
37c8483b
ST
622010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
63
64 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
65 parse arguments as inline tempo and notes. Move code for playing notes
66 to...
67 (play): ... new function.
68
14da0fb7
ST
692010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
70
71 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
72 grub_uint16_t instead of short.
73 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
74 disk from little endian to cpu endianness.
75
04459e70
ST
762010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
77
78 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
79 GRUB_TICKS_PER_SECOND instead of 120.
80
a0876943
VS
812010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
82
83 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
84 escape sequence after \e.
85
e29f95dc
VS
862010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
87
88 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
89 non-ASCII characters.
90
d27859b2
VS
912010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
92
93 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
94 set root in single quotes to prevent \, from being unescaped.
95
bc028f2f
VS
962010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
97
98 Prevent unknown commands from stopping menuentry execution.
99
100 * script/execute.c (grub_script_execute_cmdline): Print error after
101 unknown command.
102
095f5f82
VS
1032010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
104
105 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
106 Reported by: Pavel Pisa.
107
8c717950
VS
1082010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
109
110 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
111
904935c3
VS
1122010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
113
114 Merge grub_ieee1275_map_physical into grub_map and rename to
115 grub_ieee1275_map
116
117 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
118 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
119 Remove.
120 * kern/ieee1275/openfw.c (grub_map): Rename to ...
121 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
122 necessary.
123 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
124
5b59a4e3
VS
1252010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
126
127 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
128 opening and not after.
129
69e137e8
VS
1302010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
131
132 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
133 constants.
134
2c0fcc36
VS
1352010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
136
137 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
138 (alloc_phys): Use ALIGN_UP instead of align_addr.
139
8c6052ce
VS
1402010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
141
142 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
143
17cec782
VS
1442010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
145
146 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
147
e0128bbd
VS
1482010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
149
150 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
151 verbose dprintf.
152
ca62070b
VS
1532010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
154
155 Fix over-4GiB seek on sparc64.
156
157 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
158 Replace pos_i and pos_lo with pos. All users updated.
159 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
160 New constant.
161 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
162 Likewise.
163 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
164 and pos_lo.
165
bdca2607
VS
1662010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
167
168 * util/grub-mkrawimage.c (main): Call set_program_name.
169
da278c4d
VS
1702010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
171
172 Properly align 64-bit targets.
173
174 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
175 (generate_image): Use ALIGN_ADDR.
176
b274d734
VS
1772010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
178
179 Properly create cross-endian images.
180
181 * include/grub/types.h (grub_host_to_target_addr): New macro
182 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
183
82da2062
VS
1842010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
185
186 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
187
7cae4377
VS
1882010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
189
190 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
191
192 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
193 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
194 (grub_linux_boot): Divide by 64K when on VESA.
195
65a533e7
VS
1962010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
197
198 Support GRUB_GFXPAYLOAD_LINUX.
199
200 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
201 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
202
dd01d397
VS
2032010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
204
205 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
206 to show messages instead of discarding them.
207 Process errors after executing command and not before. Keep old method
208 too as precaution.
209
660960d6
VS
2102010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
211
212 * configure.ac: Check for ft2build.h.
213
62509f04
VS
2142010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
215
216 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
217
473df63d
VS
2182010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
219
220 * genkernsyms.sh.in: Use TARGET_CC.
221
c98d2a13
CW
2222010-02-07 Colin Watson <cjwatson@ubuntu.com>
223
224 * NEWS: Update.
225
6e14234c
VS
2262010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
227
228 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
229 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
230 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 231
b255e9cf
YB
2322010-02-07 Yves Blusseau <blusseau@zetam.org>
233
6e14234c 234 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 235
98e6959d
VS
2362010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
237
238 Fix warnings in grub-emu when compiling with maximum warning options.
239
240 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
241 (grub_arch_modules_addr): Return 0 and not NULL.
242 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 243 (xstrdup): Use newstr instead of dup.
f88d801b
VS
244 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
245 of disk to dsk to avoid shadowing.
74e4934e
VS
246 (find_free_slot): Fix prototype.
247 * util/getroot.c (grub_util_is_dmraid): Make static.
248 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
249 Add missing prototype.
250 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 251
74e31b5c
VS
2522010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
253
254 * loader/i386/linux.c (grub_linux_setup_video): Handle error
255 appropriately.
256
6b2ad14b
VS
2572010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
258
259 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
260 code out.
261
8f891adc
VS
2622010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
263
264 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
265 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
266 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
267 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
268 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
269 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
270
74b45184
VS
2712010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
272
273 * include/grub/err.h (grub_err_printf): Don't export.
274
a4bced77
VS
2752010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
276
277 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
278
007d0695
VS
2792010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
280
281 * include/grub/i18n.h (grub_gettext_dummy): Removed.
282 * kern/misc.c (grub_gettext_dummy): Make static.
283
b6c0d9c2
VS
2842010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
285
286 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
287 by non-valid ones.
288 * kern/term.c (grub_putchar): Likewise.
289
f51a90d0
VS
2902010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
291
292 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
293 buggy hook call and memory leak.
294
6846cec5
VS
2952010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
296
297 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
298
468d69fe
VS
2992010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
300
301 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
302
51906b8c
VS
3032010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
304
305 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
306 modevar.
307 Return grub_errno on allocation error.
308
09706ce5
VS
3092010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
310
311 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
312
911df80c
YB
3132010-02-06 Yves Blusseau <blusseau@zetam.org>
314
315 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
316 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
317
3746a6bc
VS
3182010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
319
320 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
321 non-pxe disk.
322 (grub_pxefs_open): Likewise.
323
09706ce5
VS
3242010-02-06 Robert Millan <rmh.grub@aybabtu.com>
325
326 * util/grub.d/10_hurd.in: Add --class information to menuentries.
327 * util/grub.d/10_kfreebsd.in: Likewise.
328 * util/grub.d/10_linux.in: Likewise.
329
7cc192d9
VS
3302010-02-06 Colin D Bennett <colin@gibibit.com>
331
332 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
333 (gfxmenu_mod_SOURCES): New variable.
334 (gfxmenu_mod_CFLAGS): Likewise.
335 (gfxmenu_mod_LDFLAGS): Likewise.
336 * include/grub/term.h (grub_term_set_current_output): Declare
337 argument as const.
338 * docs/gfxmenu-theme-example.txt: New file.
339 * gfxmenu/gfxmenu.c: Likewise.
340 * gfxmenu/gui_box.c: Likewise.
341 * gfxmenu/gui_canvas.c: Likewise.
342 * gfxmenu/gui_circular_progress.c: Likewise.
343 * gfxmenu/gui_image.c: Likewise.
344 * gfxmenu/gui_label.c: Likewise.
345 * gfxmenu/gui_list.c: Likewise.
346 * gfxmenu/gui_progress_bar.c: Likewise.
347 * gfxmenu/gui_string_util.c: Likewise.
348 * gfxmenu/gui_util.c: Likewise.
349 * gfxmenu/icon_manager.c: Likewise.
350 * gfxmenu/model.c: Likewise.
351 * gfxmenu/named_colors.c: Likewise.
352 * gfxmenu/theme_loader.c: Likewise.
353 * gfxmenu/view.c: Likewise.
354 * gfxmenu/widget-box.c: Likewise.
355 * include/grub/gfxmenu_model.h: Likewise.
356 * include/grub/gfxmenu_view.h: Likewise.
357 * include/grub/gfxwidgets.h: Likewise.
358 * include/grub/gui.h: Likewise.
359 * include/grub/gui_string_util.h: Likewise.
360 * include/grub/icon_manager.h: Likewise.
361
3622010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
363
364 Agglomerate scrolling in gfxterm.
365
366 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
367 (grub_virtual_screen_setup): Initialise 'total_screen'.
368 (write_char): Split to ...
369 (paint_char): ... this ...
370 (write_char): ... and this.
371 (paint_char): Handle delayed scrolling.
372 (draw_cursor): Likewise.
373 (scroll_up): Split to ...
374 (real_scroll): ... this ...
375 (scroll_up): ... and this.
376 (real_scroll): Handle multi-line scroll and draw below-the-bottom
377 characters.
378 (grub_gfxterm_refresh): Call real_scroll.
379
3802010-02-06 Colin D Bennett <colin@gibibit.com>
381
382 * include/grub/misc.h (grub_iscntrl): New inline function.
383 (grub_isalnum): Likewise.
384 (grub_strtol): Likewise.
385
3862010-02-06 Colin D Bennett <colin@gibibit.com>
387
388 * normal/menu_text.c (get_entry_number): Move from here ...
389 * normal/menu.c (get_entry_number): ... moved here.
390 * include/grub/menu.h (grub_menu_get_default_entry_index):
391 New prototype.
392 * normal/menu.c (grub_menu_get_default_entry_index): New function.
393 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
394 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
395 (grub_menu_viewer_should_return): Likewise.
396 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
397 * normal/menu_text.c (run_menu): Enable menu switching.
398 * normal/menu_viewer.c (should_return): New variable.
399 (menu_viewer_changed): Likewise.
400 (grub_menu_viewer_show_menu): Handle menu viewer changes.
401 (grub_menu_viewer_should_return): New function.
402 (menuviewer_write_hook): Likewise.
403 (grub_menu_viewer_init): Likewise.
404
4052010-02-06 Colin D Bennet <colin@gibibit.com>
4062010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
407
408 Support for gfxterm in a window.
409
410 * include/grub/gfxterm.h: New file.
411 * include/grub/video.h (struct grub_video_rect): New declaration.
412 (grub_video_rect_t): Likewise.
413 * term/gfxterm.c (struct grub_gfxterm_window): New type.
414 (refcount): New variable.
415 (render_target): Likewise.
416 (window): Likewise.
417 (repaint_callback): Likewise.
418 (grub_virtual_screen_setup): Use 'render_target'.
419 (init_window): New function.
420 (grub_gfxterm_init_window): Likewise.
421 (grub_gfxterm_init): Check reference counter.
422 Use init_window.
423 (destroy_window): New function.
424 (grub_gfxterm_destroy_window): Likewise.
425 (grub_gfxterm_fini): Check reference counter.
426 Use destroy_window.
427 (redraw_screen_rect): Restore viewport.
428 Use 'render_target' and 'window'.
429 Call 'repaint_callback'.
430 (write_char): Use 'render_target'.
431 (draw_cursor): Likewise.
432 (scroll_up): Restore viewport.
433 Use 'render_target' and 'window'.
434 Call 'repaint_callback'.
435 (grub_gfxterm_cls): Likewise.
436 (grub_gfxterm_refresh): Use 'window'.
437 (grub_gfxterm_set_repaint_callback): New function.
438 (grub_gfxterm_background_image_cmd): Use 'window'.
439 (grub_gfxterm_get_term): New function.
440 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
441
4422010-02-06 Colin D Bennett <colin@gibibit.com>
443
444 Bitmap scaling support.
445
446 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
447 (bitmap_scale_mod_SOURCES): New variable.
448 (bitmap_scale_mod_CFLAGS): Likewise.
449 (bitmap_scale_mod_LDFLAGS): Likewise.
450 * include/grub/bitmap_scale.h: New file.
451 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
452 (background_image_cmd_options): New variable.
453 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
454 (cmd): Rename and change type to ...
455 (background_image_cmd_handle): ... this. All users updated.
456 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
457 * video/bitmap_scale.c: New file.
458
4592010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
460
461 SDL support.
462
463 * Makefile.in (LIBSDL): New variable.
464 (enable_grub_emu_sdl): Likewise.
465 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
466 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
467 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
468 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
469 * util/sdl.c: New file.
470
4712010-02-06 Colin D Bennett <colin@gibibit.com>
4722010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
473
474 Double buffering support.
475
476 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
477 * include/grub/video.h: Update comment.
478 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
479 New type.
480 (grub_video_fb_doublebuf_blit_init): New prototype.
481 * term/gfxterm.c (scroll_up): Support double buffering.
482 (grub_gfxterm_refresh): Likewise.
483 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
484 (grub_video_fb_doublebuf_blit_init): Likewise.
485 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
486 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
487 'displayed_page', 'render_page' and 'update_screen'.
488 (grub_video_vbe_fini): Free offscreen buffer.
489 (doublebuf_pageflipping_commit): New function.
490 (doublebuf_pageflipping_update_screen): Likewise.
491 (doublebuf_pageflipping_init): Likewise.
492 (double_buffering_init): Likewise.
493 (grub_video_vbe_setup): Enable doublebuffering.
494 (grub_video_vbe_swap_buffers): Implement.
495 (grub_video_vbe_set_active_render_target): Handle double buffering.
496 (grub_video_vbe_get_active_render_target): Likewise.
497 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
498 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
499 (grub_video_vbe_enable_double_buffering): Likewise.
500 (grub_video_vbe_swap_buffers): Use update_screen.
501 (grub_video_set_mode): Use double buffering.
502
5032010-02-06 Robert Millan <rmh.grub@aybabtu.com>
504
505 * maintainance/gentrigtables.py: Remove.
506 * lib/trig.c: Likewise.
507
508 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
509
510 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
511 `trigtables.c'.
512 (trigtables.c): New rule.
513 (gentrigtables): Likewise.
514 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
515
5162010-02-06 Robert Millan <rmh.grub@aybabtu.com>
517
518 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
519 integer constants.
520
5212010-02-06 Colin D Bennet <colin@gibibit.com>
522
523 Trigonometry support.
524
525 * include/grub/trig.h: New file.
526 * lib/trig.c: Likewise.
527 * maintainance/gentrigtables.py: Likewise.
528 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
529 (trig_mod_SOURCES): New variable.
530 (trig_mod_CFLAGS): Likewise.
531 (trig_mod_LDFLAGS): Likewise.
532
5562834e
VS
5332010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
534
535 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
536 disk devices.
537
4f8528fc
VS
5382010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
539
540 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
541 error.
542
2b4068e9
VS
5432010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
544
545 * util/hostdisk.c (open_device): Don't use partition device when reading
546 before the partition.
547 (grub_util_biosdisk_read): Don't read from partition and before the
548 partition in single operation.
549 (grub_util_biosdisk_write): Don't write to partition and before the
550 partition in single operation.
551
399f6e4d
TL
5522010-02-03 Torsten Landschoff <torsten@debian.org>
553
554 * kern/disk.c (grub_disk_read): Fix offset computation when reading
555 last sectors.
556
996649b0
VS
5572010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
558
559 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
560 CDROM reads.
561 (grub_biosdisk_write): Refuse to write to CDROM.
562
3b205d4d
VS
5632010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
564
565 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
566
61e89d9d
VS
5672010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
568
569 * font/font.c (find_glyph): Check that bmp_idx is available before
570 using it.
571 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
572 with (font == NULL).
573
bf7fcba2
CS
5742010-01-28 Christian Schmitt <chris@ilovelinux.de>
575
576 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
577
f45d2663
BC
5782010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
579
580 * include/grub/script_sh.h (sourcecode): Add const qualifier.
581 * util/grub-script-check.c (getline): Fix empty lines case.
582
ec1444e6
RM
5832010-01-28 Robert Millan <rmh.grub@aybabtu.com>
584
585 * Makefile.in (check): Exit with fail status when one of the tests
586 fails.
587 * tests/example_functional_test.c (example_test): Fix reversed assert.
588 * tests/example_unit_test.c (example_test): Likewise.
589
2e1cb9bb
CW
5902010-01-28 Colin Watson <cjwatson@ubuntu.com>
591
592 * util/grub.d/10_linux.in: This script does not use any of the
593 contents of gettext.sh, only the external command `gettext', so stop
594 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
595 the same prefix as GRUB.)
596 * util/grub.d/10_kfreebsd.in: Likewise.
597
63533ab0
VS
5982010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
599
600 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
601 of the line.
602
989e1f93
VS
6032010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
604
605 * kern/disk.c (grub_disk_read): Fix offset computation when reading
606 last sectors.
607
e709ebe2
VS
6082010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
609
610 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
611 having a 4KiB and not 32KiB buffer size.
612
27dea7ed
RM
6132010-01-27 Robert Millan <rmh.grub@aybabtu.com>
614
615 * util/hostfs.c: Include `<errno.h>'.
616 (grub_hostfs_read): Handle errors from fseeko() and fread().
617
67667b9c
RM
6182010-01-27 Robert Millan <rmh.grub@aybabtu.com>
619
620 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
621 loop when using read hooks on files whose size isn't sector-aligned.
622
c294d9d8
RM
6232010-01-27 Robert Millan <rmh.grub@aybabtu.com>
624
625 Remove unused parameter.
626
627 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
628 (grub_iso9660_open): Remove initialization of `data->length'.
629
af75a9f1
RM
6302010-01-27 Robert Millan <rmh.grub@aybabtu.com>
631
632 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
633 memleak conditions.
634
254e2ce5 6352010-01-27 Carles Pina i Estany <carles@pina.cat>
636
637 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
638 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
639
b510928c 6402010-01-26 Carles Pina i Estany <carles@pina.cat>
641
642 * util/bin2h.c (usage): Fix warning (space after backslash).
643
aa2f9dd2 6442010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 645
646 * font/font.c: Include `grub/fontformat.h.
647 Remove font file format constants.
648 (grub_font_load): Use the new macros.
649 * include/grub/fontformat.h: New file.
650 * util/grub-mkfont.c: Include `grub/fontformat.c'.
651 (write_font_pf2): Use the new macros.
652
94e7e712
RM
6532010-01-26 Robert Millan <rmh.grub@aybabtu.com>
654
655 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
656 does.
657
3973a59a
RM
6582010-01-26 Robert Millan <rmh.grub@aybabtu.com>
659
660 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
661
662 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
663 (_start): Macroify `0x7F'.
664
665 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
666 (make_install_device): Use "(pxe)" as fallback prefix when booting
667 via PXE.
668
42e0cba3
GS
6692010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
670
671 * configure.ac: Reset LIBS after check for libgcc symbols.
672
847effd8
CW
6732010-01-25 Colin Watson <cjwatson@ubuntu.com>
674
675 * util/hostdisk.c (open_device): Add trailing newline to debug
676 message.
677
ea4a7e35
GS
6782010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
679
680 * configure.ac: Check for `limits.h'.
681 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
682
67951a53
RM
6832010-01-24 Robert Millan <rmh.grub@aybabtu.com>
684
685 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
686 capitalize error strings.
687
c273d4ce
ST
6882010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
689
690 * util/grub.d/10_hurd.in: Add a recovery mode.
691
69be5b74
VS
6922010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
693
694 * configure.ac: Check for libgcc symbols with -nostdlib.
695
fc9e5810
BC
6962010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
697
698 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
699
4b358c0a
VS
7002010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
701
702 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
703 stack since heap may be unavailable at that point.
704 (grub_ofconsole_gotoxy): Likewise.
705
454fcd1c
VS
7062010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
707
708 * configure.ac: Check for _restgpr_14_x.
709 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
710 and _savegpr_* prototypes.
711
566863ca
RM
7122010-01-22 Robert Millan <rmh.grub@aybabtu.com>
713
714 Use generic grub_reboot() for i386-efi.
715
716 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
717 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
718 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
719
bf86e59a
VS
7202010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
721
722 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
723 presence of "prefix" variable as it breaks when normal.mod is
724 embedded.
725
d645e0f8
VS
7262010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
727
728 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
729 stack since heap is unavailable at that point.
730
f9ab2e25
VS
7312010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
732
733 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
734 (grub_freebsd_bootinfo): Rewritten.
735 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
736
01fc7054
VS
7372010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
738
739 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
740
caab4fd6
RM
7412010-01-21 Robert Millan <rmh.grub@aybabtu.com>
742
743 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
744 domain now.
745
67eb1427
FZ
7462010-01-20 Felix Zielcke <fzielcke@z-51.de>
747
748 * util/misc.c (make_system_path_relative_to_its_root): Change the work
749 around for handling "/" to the correct fix. Fix a memory leak. Use
750 xstrdup instead of strdup.
751
a9ed4ff3
VS
7522010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
753
754 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
755
7562010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
757
758 Optimise glyph lookup by Basic Multilingual Plane lookup array.
759
760 * font/font.c (struct grub_font): New member 'bmp_idx'.
761 (font_init): Initialise 'bmp_idx'.
762 (load_font_index): Fill 'bmp_idx'.
763 (find_glyph): Make inline. Use bmp_idx for BMP characters.
764
48209f4f
VS
7652010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
766
767 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
768 unnecessary calls.
769
9f0a4bb7
VS
7702010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
771
772 Move context handling out of the kernel.
773
774 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
775 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
776 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
777 * conf/i386-efi.rmk: Likewise.
778 * conf/i386-ieee1275.rmk: Likewise.
779 * conf/i386-pc.rmk: Likewise.
780 * conf/powerpc-ieee1275.rmk: Likewise.
781 * conf/sparc64-ieee1275.rmk: Likewise.
782 * conf/x86_64-efi.rmk: Likewise.
783 * include/grub/env.h: Include grub/menu.h.
784 (grub_env_var_type): Removed.
785 (grub_env_var): Replaced field 'type' with 'global'.
786 (grub_env_find): New prototype.
787 (grub_env_context_open): Remove EXPORT_FUNC.
788 (grub_env_context_close): Likewise.
789 (grub_env_export): Likewise.
790 (grub_env_set_data_slot): Removed.
791 (grub_env_get_data_slot): Likewise.
792 (grub_env_unset_data_slot): Likewise.
793 (grub_env_unset_menu): New prototype.
794 (grub_env_set_menu): Likewise.
795 (grub_env_get_menu): Likewise.
796 * include/grub/env_private.h: New file.
797 * include/grub/normal.h (grub_context_init): New prototype.
798 (grub_context_fini): Likewise.
799 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
800 * normal/context.c (grub_cmd_export): ... to here.
801 * kern/env.c: Include env_private.h.
802 (HASHSZ): Moved to include/grub/env_private.h.
803 (grub_env_context): Likewise.
804 (grub_env_sorted_var): Likewise.
805 (current_context): Renamed from this ...
806 (grub_current_context): ...to this. 'static' removed. All users updated.
807 (grub_env_find): Removed 'static'.
808 (grub_env_context_open): Moved to normal/context.c.
809 (grub_env_context_close): Likewise.
810 (grub_env_export): Likewise.
811 (mangle_data_slot_name): Removed.
812 (grub_env_set_data_slot): Likewise.
813 (grub_env_get_data_slot): Likewise.
814 (grub_env_unset_data_slot): Likewise.
815 * kern/main.c (grub_set_root_dev): Don't export root.
816 It will be done later.
817 (grub_main): Don't export prefix.
818 It will be done later.
819 * normal/context.c: New file.
820 * normal/main.c (free_menu): Use grub_env_unset_menu.
821 (grub_normal_add_menu_entry): Use grub_env_get_menu.
822 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
823 (GRUB_MOD_INIT(normal)): Call grub_context_init.
824 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
825
8dd35b8c
VS
8262010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
827
828 setpci support.
829
830 * commands/setpci.c: New file.
831 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
832 (setpci_mod_SOURCES): New variable.
833 (setpci_mod_CFLAGS): Likewise.
834 (setpci_mod_LDFLAGS): Likewise.
835
449193d5
VS
8362010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
837
838 Byte-addressable PCI configuration space.
839
840 * bus/pci.c (grub_pci_make_address): Use byte address instead of
841 dword address.
842 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
843 GRUB_PCI_REG_CACHELINE.
844 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
845 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
846 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
847 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
848 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
849 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
850 grub_pci_make_address.
851 (lock_rom_area): Likewise.
852 * commands/lspci.c (grub_lspci_iter): Use macroses
853 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
854 of grub_pci_make_address.
855 * disk/ata.c (grub_ata_pciinit): Likewise.
856 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
857 (GRUB_PCI_REG_VENDOR): Likewise.
858 (GRUB_PCI_REG_DEVICE): Likewise.
859 (GRUB_PCI_REG_COMMAND): Likewise.
860 (GRUB_PCI_REG_STATUS): Likewise.
861 (GRUB_PCI_REG_REVISION): Likewise.
862 (GRUB_PCI_REG_CLASS): Likewise.
863 (GRUB_PCI_REG_CACHELINE): Likewise.
864 (GRUB_PCI_REG_LAT_TIMER): Likewise.
865 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
866 (GRUB_PCI_REG_BIST): Likewise.
867 (GRUB_PCI_REG_ADDRESSES): Likewise.
868 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
869 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
870 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
871 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
872 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
873 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
874 (GRUB_PCI_REG_CIS_POINTER): Likewise.
875 (GRUB_PCI_REG_SUBVENDOR): Likewise.
876 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
877 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
878 (GRUB_PCI_REG_CAP_POINTER): Likewise.
879 (GRUB_PCI_REG_IRQ_LINE): Likewise.
880 (GRUB_PCI_REG_IRQ_PIN): Likewise.
881 (GRUB_PCI_REG_MIN_GNT): Likewise.
882 (GRUB_PCI_REG_MAX_LAT): Likewise.
883 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
884 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
885 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 886 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
887 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
888 space.
889
96d73208
RM
8902010-01-20 Robert Millan <rmh.grub@aybabtu.com>
891
892 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
893 can be reliably determined to be supported.
894
d4484482
RM
8952010-01-20 Robert Millan <rmh.grub@aybabtu.com>
896
897 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
898 that VESA is supported.
899 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
900 supported.
901
00308ecf
VS
9022010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
903
904 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
905
f66924a4
RM
9062010-01-20 Robert Millan <rmh.grub@aybabtu.com>
907
908 * util/misc.c (make_system_path_relative_to_its_root): Work around
909 special-casing of "/", as previous incarnation of this routine did.
910
cbca0ada
VS
9112010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
912
913 Fix any-emu compilation.
914
915 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
916 * grub_bin2h_SOURCES: New variable.
917
34a66d99
RM
9182010-01-20 Robert Millan <rmh.grub@aybabtu.com>
919
920 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
921
94fabf58
RM
9222010-01-20 Robert Millan <rmh.grub@aybabtu.com>
923
924 * util/grub.d/00_header.in: Fix handling of locale_dir.
925
02cf98ca
VS
9262010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
927
928 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
929 as possible unifont location (Gentoo).
930 Reported by: Alexander Brüning
931
327dbcd7
VS
9322010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
933
934 Don't try to generate lists for kernel.img.
935
936 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
937 (pkglib_MODULES): Remove kernel.img.
938 (kernel_img_EXPORTS): Removed.
939 (kernel_img_RELOCATABLE): New variable.
940 * conf/x86_64-efi.rmk: Likewise.
941 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
942
ca467290
VS
9432010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
944
945 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
946 grub_xasprintf or grub_snprintf.
947 (grub_vsprintf): Likewise.
948 (grub_snprintf): New proto.
949 (grub_vsnprintf): Likewise.
950 (grub_xasprintf): Likewise.
951 (grub_xvasprintf): Likewise.
952 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
953 (grub_sprintf): Removed.
954 (grub_vsnprintf): New function.
955 (grub_snprintf): Likewise.
956 (grub_xvasprintf): Likewise.
957 (grub_xasprintf): Likewise.
958 (grub_vsprintf): Renamed to ...
959 (grub_vsnprintf_real): ...this. New argument max_len.
960
aca655fd
BC
9612010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
962
963 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
964 fix grub-script-check warning.
965
7ee92c32
VS
9662010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
967
968 * include/grub/font.h (grub_font_load): Fix prototype.
969
f80927ca
VS
9702010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
971
972 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
973
119c50ea
VS
9742010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
975
976 * include/grub/x86_64/at_keyboard.h: New file.
977
47d5f3c1
VS
9782010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
979
980 * loader/mips/linux.c: Include missing grub/i18n.h.
981
55ff5266
RM
9822009-12-20 Robert Millan <rmh.grub@aybabtu.com>
983
984 * normal/menu.c (notify_execution_failure): Clarify error message.
985
c893cc87
RM
9862009-12-20 Robert Millan <rmh.grub@aybabtu.com>
987
988 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
989 return value (and revert all return statements). Update users.
990
917dd370
CW
9912010-01-20 Dan Merillat <debian@dan.merillat.org>
992
993 * kern/device.c (grub_device_iterate): Allocate new part_ent
994 structure based on sizeof (*p) rather than sizeof (p->next), to
995 account for structure padding.
996
997 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
998 disk is NULL, which might happen for LVM physical volumes with no
999 LVM signature.
1000
d4a4ee57
RM
10012009-12-20 Robert Millan <rmh.grub@aybabtu.com>
1002
1003 * loader/mips/linux.c (grub_cmd_initrd)
1004 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
1005
10062009-12-20 Robert Millan <rmh.grub@aybabtu.com>
1007
1008 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
1009 (grub_video_video_init, grub_video_bitmap_init)
1010 (grub_font_manager_init, grub_term_gfxterm_init)
1011 (grub_at_keyboard_init): New extern declarations.
1012 (grub_machine_init): Initialize gfxterm and at_keyboard.
1013
1014 * kern/main.c (grub_main): Revert grub_printf delay kludge.
1015
1016 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
1017 `gfxterm.mod' into core image.
1018
1019 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
1020 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
1021 (kernel_img_FORMAT): Copy to ...
1022
1023 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
1024 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
1025 (kernel_img_FORMAT): ... here, and ...
1026
1027 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
1028 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
1029 (kernel_img_FORMAT): ... here.
1030
1031 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
1032 and input (at_keyboard) terminals in kernel.
1033 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
1034
1035 (pkglib_MODULES): Remove `pci.mod'.
1036 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
1037 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
1038 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
1039 (at_keyboard_mod_LDFLAGS): Remove variables.
1040
10412010-01-11 Felix Zielcke <fzielcke@z-51.de>
1042
1043 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
1044
10452009-12-10 Robert Millan <rmh.grub@aybabtu.com>
1046
1047 * include/grub/mips/libgcc.h: Only export symbols for functions
1048 that libgcc provides.
1049
10502009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1051
1052 MIPS support.
1053
1054 * bus/bonito.c: New file.
1055 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
1056 GRUB_PCI_NUM_DEVICES.
1057 * term/i386/pc/serial.c: Move to ...
1058 * term/serial.c: ... here. All users updated.
1059 * util/i386/pc/grub-mkimage.c: Move to ...
1060 * util/grub-mkrawimage.c: ... here. All users updated.
1061 * term/i386/pc/at_keyboard.c: Move to ...
1062 * term/at_keyboard.c: ... here. All users updated.
1063 * conf/mips-qemu-mips.rmk: New file.
1064 * conf/mips-yeeloong.rmk: Likewise.
1065 * conf/mips.rmk: Likewise.
1066 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
1067 mipsel-qemu-mips.
1068 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
1069 to port addresses.
1070 (grub_ata_pciinit): Support CS5536.
1071 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
1072 * font/font_cmd.c (loadfont_command): Open file before passing it to
1073 grub_font_load.
1074 (pseudo_file_read): New function.
1075 (pseudo_file_close): Likewise.
1076 (pseudo_fs): New structure.
1077 (load_font_module): New function.
1078 (GRUB_MOD_INIT(font_manager)): Load embedded font.
1079 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
1080 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
1081 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
1082 * include/grub/i386/at_keyboard.h: Split into ...
1083 * include/grub/at_keyboard.h: ... this ...
1084 * include/grub/i386/at_keyboard.h: ... and this.
1085 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
1086 New prototype.
1087 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
1088 updated.
1089 (grub_elf64_size): Likewise.
1090 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
1091 filename.
1092 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
1093 * include/grub/i386/coreboot/serial.h: Rewritten.
1094 * include/grub/i386/ieee1275/serial.h: Include
1095 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
1096 * include/grub/i386/pc/serial.h: Moved from here ...
1097 * include/grub/serial.h: ... to here. All users updated.
1098 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
1099 (GRUB_PCI_NUM_BUS): Likewise.
1100 (GRUB_PCI_NUM_DEVICES): Likewise.
1101 (grub_pci_device_map_range): Add missing volatile keyword.
1102 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
1103 * include/grub/mips/at_keyboard.h: New file.
1104 * include/grub/mips/cache.h: Likewise.
1105 * include/grub/mips/io.h: Likewise.
1106 * include/grub/mips/kernel.h: Likewise.
1107 * include/grub/mips/libgcc.h: Likewise.
1108 * include/grub/mips/pci.h: Likewise.
1109 * include/grub/mips/qemu-mips/boot.h: Likewise.
1110 * include/grub/mips/qemu-mips/kernel.h: Likewise.
1111 * include/grub/mips/qemu-mips/loader.h: Likewise.
1112 * include/grub/mips/qemu-mips/memory.h: Likewise.
1113 * include/grub/mips/qemu-mips/serial.h: Likewise.
1114 * include/grub/mips/qemu-mips/time.h: Likewise.
1115 * include/grub/mips/relocator.h: Likewise.
1116 * include/grub/mips/time.h: Likewise.
1117 * include/grub/mips/types.h: Likewise.
1118 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
1119 * include/grub/mips/yeeloong/boot.h: Likewise.
1120 * include/grub/mips/yeeloong/kernel.h: Likewise.
1121 * include/grub/mips/yeeloong/loader.h: Likewise.
1122 * include/grub/mips/yeeloong/memory.h: Likewise.
1123 * include/grub/mips/yeeloong/pci.h: Likewise.
1124 * include/grub/mips/yeeloong/serial.h: Likewise.
1125 * include/grub/mips/yeeloong/time.h: Likewise.
1126 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
1127 * kern/elf.c (grub_elf32_size): New parameter. All users
1128 updated.
1129 (grub_elf64_size): Likewise.
1130 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
1131 Load modules before saying "Welcome to GRUB!".
1132 Call grub_refresh after saying "Welcome to GRUB!".
1133 * kern/mips/cache.S: New file.
1134 * kern/mips/cache_flush.S: Likewise.
1135 * kern/mips/dl.c: Likewise.
1136 * kern/mips/init.c: Likewise.
1137 * kern/mips/qemu-mips/init.c: Likewise.
1138 * kern/mips/startup.S: Likewise.
1139 * kern/mips/yeeloong/init.c: Likewise.
1140 * kern/term.c (grub_putcode): Handle NULL terminal.
1141 (grub_getcharwidth): Likewise.
1142 (grub_getkey): Likewise.
1143 (grub_checkkey): Likewise.
1144 (grub_getkeystatus): Likewise.
1145 (grub_getxy): Likewise.
1146 (grub_getwh): Likewise.
1147 (grub_gotoxy): Likewise.
1148 (grub_cls): Likewise.
1149 (grub_setcolorstate): Likewise.
1150 (grub_setcolor): Likewise.
1151 (grub_getcolor): Likewise.
1152 (grub_refresh): Likewise.
1153 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
1154 (write_jump): Add hatch nop.
1155 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
1156 * lib/mips/setjmp.S: New file.
1157 * loader/mips/linux.c: Likewise.
1158 * term/i386/pc/at_keyboard.c: Move from here ...
1159 * term/at_keyboard.c: ... to here.
1160 * term/i386/pc/serial.c: Moved from here ...
1161 * term/serial.c: ... to here. All users updated.
1162 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
1163 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
1164 (serial_translate_key_sequence): Avoid deadlock.
1165 (grub_serial_getkey): Handle backspace.
1166 (grub_serial_putchar): Fix newline handling.
1167 * util/i386/pc/grub-mkimage.c: Move from here ...
1168 * util/grub-mkrawimage.c: ... to here. All users updated.
1169 (generate_image): New parameters 'font_path' and 'format'.
1170 Support embedding font.
1171 Use grub_host_to_target* instead of grub_cpu_to_le*.
1172 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
1173 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
1174 (options): New option "--font".
1175 (usage): Likewise.
1176 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
1177 (main): Handle "--font".
1178 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
1179 (grub_virtual_screen_setup): Set bg_color_display.
1180 (redraw_screen_rect): Use bg_color_display instead of incorrect
1181 bg_color.
1182 (grub_gfxterm_cls): Likewise.
1183 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
1184 Support embedding config file.
1185 (add_segments): Likewise.
1186 (options): New option "--config".
1187 (main): Handle "--config".
1188 * video/sm712.c: New file.
1189
25c2b5b3
RM
11902010-01-18 Robert Millan <rmh.grub@aybabtu.com>
1191
1192 Fix parallel builds.
1193
1194 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
1195 font.c depend on ascii.h).
1196
11972010-01-12 Carles Pina i Estany <carles@pina.cat>
1198
1199 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
1200
12012010-01-11 Carles Pina i Estany <carles@pina.cat>
1202
1203 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
1204 By default: disabled.
1205 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
1206 parameter.
1207
12082010-01-10 Carles Pina i Estany <carles@pina.cat>
1209
1210 * font/font.c: Update copyright years.
1211 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
1212
12132010-01-10 Carles Pina i Estany <carles@pina.cat>
1214
1215 * font/font.c: Include `ascii.h'.
1216 (ASCII_BITMAP_SIZE): New macro.
1217 (ascii_font_glyph): Define.
1218 (ascii_glyph_lookup): New function.
1219 (grub_font_get_string_width): Change comment. If glyph not found, use
1220 ascii_glyph_lookup.
1221 (grub_font_get_glyph_with_fallback): If glyph not available returns
1222 ascii_glyph_lookup.
1223 * util/grub-mkfont.c (file_formats): New enum.
1224 (options): Add `ascii-bitmaps' new option.
1225 (usage): Add `asii-bitmaps' new option.
1226 (write_font_ascii_bitmap): New function.
1227 (write_font): Rename to ...
1228 (write_font_p2): ... this. Remove print_glyphs call.
1229 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
1230 used. Call print_glyphs.
1231 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
1232
12332010-01-14 Robert Millan <rmh.grub@aybabtu.com>
1234
1235 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
1236 (grub_bin2h_SOURCES): New variable.
1237 * util/bin2h.c: New file.
1238
915fc1b8
VS
12392010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
1240
1241 * include/multiboot.h: Resynced with spec.
1242 * include/multiboot2.h: Likewise.
1243 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
1244 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
1245
9444b678
RM
12462010-01-18 Robert Millan <rmh.grub@aybabtu.com>
1247
1248 * include/grub/term.h (grub_term_register_input,
1249 grub_term_register_output): Check return of terminal init()
1250 routines, and abort if errors are raised.
1251
1252 * commands/terminal.c: Update copyright year.
1253
cba98e8d
RM
12542010-01-18 Robert Millan <rmh.grub@aybabtu.com>
1255
1256 * commands/terminal.c (grub_cmd_terminal_input)
1257 (grub_cmd_terminal_output): Check return of terminal init()
1258 routines, and abort if errors are raised.
1259
6f7db5d6
VS
12602010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
1261
1262 * include/grub/i386/bsd.h: Fix include pathes.
1263
262bff8d
VS
12642010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
1265
1266 Add missing *BSD copyright headers.
1267
1268 * include/grub/aout.h: Add BSD licence.
1269 * include/grub/i386/bsd.h: Parts under different licences moved to ...
1270 * include/grub/i386/freebsd_linker.h: ... here,
1271 * include/grub/i386/freebsd_reboot.h: ... here,
1272 * include/grub/i386/netbsd_bootinfo.h: ... here,
1273 * include/grub/i386/netbsd_reboot.h: ... here,
1274 * include/grub/i386/openbsd_bootarg.h: ... here,
1275 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
1276 licence to each file.
1277
b2cab848
RM
12782010-01-18 Robert Millan <rmh.grub@aybabtu.com>
1279
1280 * acinclude.m4: Remove `nop' assembly instruction; it's not
1281 implemented by all architectures.
1282
2cb6be4b
RM
12832010-01-18 Robert Millan <rmh.grub@aybabtu.com>
1284
1285 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
1286 ELILO. This is no longer necessary.
1287
a2eaee15
BC
12882010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
1289
1290 Added new tool, grub-scrit-check to verify grub.cfg syntax.
1291
1292 * util/grub-script-check.c: grub-script-check tool.
1293 * conf/common.rmk: Make rules for grub-script-check.
1294
88d17012
RM
12952010-01-18 Robert Millan <rmh.grub@aybabtu.com>
1296
1297 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
1298 spotting it back in 2008. Shame on me for forgetting he did.
1299
1300 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
1301
8040619d
RM
13022010-01-18 Robert Millan <rmh.grub@aybabtu.com>
1303
1304 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
1305 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
1306 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
1307 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
1308 (GRUB_VIDEO_TYPE_EFI): Rename to ...
1309 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
1310
a0c2a0f6
RM
13112010-01-17 Robert Millan <rmh.grub@aybabtu.com>
1312
1313 * include/grub/test.h: Add license header.
1314 * tests/example_functional_test.c: Likewise.
1315 * tests/example_unit_test.c: Likewise.
1316 * tests/lib/functional_test.c: Likewise.
1317 * tests/lib/test.c: Likewise.
1318 * tests/lib/unit_test.c: Likewise.
1319
b0b13907
VS
13202010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
1321
1322 Use flag-based instead of hook-based video mode selection and "auto"
1323 keyword.
1324
1325 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
1326 (grub_video_set_mode): Changed prototype. All users updated.
1327 (grub_video_check_mode_flag): New inline function.
1328 * video/video.c (parse_modespec): New function.
1329 (grub_video_set_mode): Parse flags and keywords.
1330
ea379330 13312010-01-17 Carles Pina i Estany <carles@pina.cat>
1332
1333 * util/misc.c (grub_util_info): Fix the order of the parameters in a
1334 fprintf call.
1335
e15c215e
FZ
13362010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
1337
1338 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
1339
409ae1c9 13402010-01-16 Carles Pina i Estany <carles@pina.cat>
1341
1342 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
1343 string.
1344 * util/grub-emu.c (usage): Likewise.
1345 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
1346 * util/i386/efi/grub-mkimage.c (usage): Likewise.
1347 * util/i386/pc/grub-mkimage.c (usage): Likewise.
1348 * util/i386/pc/grub-setup.c (usage): Likewise.
1349
70a14d3d 13502010-01-16 Carles Pina i Estany <carles@pina.cat>
1351
1352 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
1353 the message.
1354 (grub_util_info): Likewise.
1355 (grub_util_error): Likewise.
1356 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
1357 and/or new lines in `grub_util_warna', `grub_util_info',
1358 `grub_util_error' calls.
1359 * util/getroot.c: Likewise.
1360 * util/grub-editenv.c: Likewise.
1361 * util/grub-emu.c: Likewise.
1362 * util/grub-fstest.c: Likewise.
1363 * util/grub-mkdevicemap.c: Likewise.
1364 * util/grub-mkfont.c: Likewise.
1365 * util/grub-mkpasswd-pbkdf2.c: Likewise.
1366 * util/grub-mkrelpath.c: Likewise.
1367 * util/grub-pe2elf.c: Likewise.
1368 * util/grub-probe.c: Likewise.
1369 * util/hostdisk.c: Likewise.
1370 * util/i386/efi/grub-mkimage.c: Likewise.
1371 * util/i386/pc/grub-mkimage.c: Likewise.
1372 * util/i386/pc/grub-setup.c: Likewise.
1373 * util/ieee1275/ofpath.c: Likewise.
1374 * util/mkisofs/eltorito.c: Likewise.
1375 * util/mkisofs/rock.c: Likewise.
1376 * util/mkisofs/write.c: Likewise.
1377 * util/raid.c: Likewise.
1378 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
1379 * util/sparc64/ieee1275/grub-setup.c: Likewise.
1380
a0b766fc
VS
13812010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
1382
1383 Enable multiboot on non-pc.
1384
1385 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
1386 multiboot.mod and multiboot2.mod to ...
1387 * conf/i386.rmk (pkglib_MODULES): ... here.
1388 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
1389 Moved to ...
1390 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
1391 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
1392 Moved to ...
1393 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
1394 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
1395 Moved to ...
1396 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
1397 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
1398 Moved to ...
1399 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
1400 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
1401 relocator.mod.
1402 (ata_mod_SOURCES): Removed.
1403 (ata_mod_CFLAGS): Likewise.
1404 (ata_mod_LDFLAGS): Likewise.
1405 (relocator_mod_SOURCES): Removed.
1406 (relocator_mod_CFLAGS): Likewise.
1407 (relocator_mod_ASFLAGS): Likewise.
1408 (relocator_mod_LDFLAGS): Likewise.
1409 Include i386.mk.
1410 * include/grub/x86_64/multiboot.h: New file.
1411 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
1412 Terminate EFI.
1413
884ade56
VS
14142010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
1415
1416 Video multiboot support.
1417
1418 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
1419 New prototype.
1420 * include/multiboot.h: Resynced with multiboot specification.
1421 * include/multiboot2.h: Likewise.
1422 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
1423 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
1424 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
1425 (HAS_VGA_TEXT): Likewise.
1426 (accepts_video): New variable.
1427 (grub_multiboot_set_accepts_video): New function.
1428 (grub_multiboot_get_mbi_size): Account for video structures.
1429 (set_video_mode): New function.
1430 (retrieve_video_parameters): Likewise.
1431 (grub_multiboot_make_mbi): Fill video fields.
1432
0d90e8a6
VS
14332010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
1434
1435 Video driver ids.
1436
1437 * include/grub/video.h (grub_video_driver_id): New type.
1438 (grub_video_adapter): New member 'id'. All users updated.
1439 (grub_video_get_driver_id): New proto.
1440 * video/video.c (grub_video_get_driver_id): New function.
1441
5c71db1b 14422010-01-14 Carles Pina i Estany <carles@pina.cat>
1443
1444 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
1445 `var=val'.
1446
cca15b52 14472010-01-14 Carles Pina i Estany <carles@pina.cat>
1448
1449 * normal/cmdline.c (print_completion): Gettextizze.
1450
c586fbb2 14512001-01-14 Carles Pina i Estany <carles@pina.cat>
1452
1453 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
1454
ba2f6848 14552010-01-14 Carles Pina i Estany <carles@pina.cat>
1456
1457 * gettext/gettext.c (grub_gettext_translate): Push and pop
1458 grub_errno.
1459 (grub_gettext_delete_list): Change comment style.
1460 * kern/err.c (grub_error): Gettextizze.
1461 (grub_fatal): Gettextizze.
1462
0a46429a
RM
14632010-01-14 Robert Millan <rmh.grub@aybabtu.com>
1464
1465 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
1466 (grub_linux16_real_boot): ... this.
1467 * kern/i386/loader.S: Likewise.
1468 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
1469 (grub_linux16_boot): New function. Switches to text mode and calls
1470 grub_linux16_real_boot().
1471
1472 * loader/i386/bsd.c: Include `<grub/video.h>'.
1473 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
1474 text mode before calling grub_unix_real_boot().
1475
1476 * loader/i386/multiboot.c: Include `<grub/video.h>'.
1477 (grub_multiboot_boot): Switch to text mode before calling
1478 grub_relocator32_boot().
1479
1480 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
1481 (grub_chainloader_boot): Switch to text mode before calling
1482 grub_chainloader_real_boot().
1483
d6f93a66
RM
14842010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
14852010-01-05 Colin Watson <cjwatson@ubuntu.com>
1486
1487 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
1488 non-empty value.
1489
14902010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
14912010-01-05 Colin Watson <cjwatson@ubuntu.com>
1492
1493 * util/grub.d/00_header.in: Define a "savedefault" function for use
1494 in menu entries.
1495 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
1496
14972010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
14982010-01-05 Colin Watson <cjwatson@ubuntu.com>
1499
1500 * util/grub-mkconfig_lib.in (save_default_entry): Only set
1501 saved_entry if boot_once is unset.
1502 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
1503 previous saved entry (i.e. grub-reboot).
1504
15052009-12-08 Colin Watson <cjwatson@ubuntu.com>
1506
1507 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
1508
15092009-12-08 Colin Watson <cjwatson@ubuntu.com>
1510
1511 * util/grub.d/00_header.in: Use `set var=val' rather than plain
1512 `var=val'.
1513 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
1514
15152009-12-08 Colin Watson <cjwatson@ubuntu.com>
1516
1517 * util/grub-reboot.in: Fix --version output.
1518 * util/grub-set-default.in: Likewise.
1519
15202009-12-08 Colin Watson <cjwatson@ubuntu.com>
1521
1522 * util/grub.d/00_header.in: Silently ignore zero-sized environment
1523 blocks.
1524
15252009-12-08 Colin Watson <cjwatson@ubuntu.com>
1526
1527 * util/grub.d/00_header.in: Quote the value assigned to `default',
1528 in case it contains spaces.
1529
15302009-12-08 Colin Watson <cjwatson@ubuntu.com>
1531
1532 * util/grub.d/30_os-prober.in: Fix merge error that moved a
1533 `save_default_entry' call from the macosx case to the linux case.
1534
15352009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
15362009-10-25 Colin Watson <cjwatson@ubuntu.com>
1537
1538 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
1539 in `chosen' environment variable.
1540 * normal/menu_text.c (get_entry_number): Check if the variable
1541 matches the title of a menu entry.
1542 (run_menu): Pass menu to get_entry_number.
1543
1544 * util/grub-reboot.in: New file.
1545 * util/grub-set-default.in: New file.
1546 * conf/common.rmk (grub-reboot): New utility.
1547 (grub-set-default): New utility.
1548
1549 * util/grub-mkconfig_lib.in (save_default_entry): New function.
1550 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
1551 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
1552 move it to `saved_entry' for the next boot. Load environment on
1553 initialisation.
1554 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
1555 * util/grub.d/10_hurd.in: Likewise.
1556 * util/grub.d/10_linux.in (linux_entry): Likewise.
1557 * util/grub.d/10_windows.in: Likewise.
1558 * util/grub.d/30_os-prober.in: Likewise.
1559
1560 * util/grub-install.in: Create environment block.
1561 * util/i386/efi/grub-install.in: Likewise.
1562 * util/ieee1275/grub-install.in: Likewise.
1563 * util/sparc64/ieee1275/grub-install.in: Likewise.
1564
0934d184
BC
15652010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
1566
1567 Unit testing framework for GRUB.
1568
1569 * Makefile.in: Test framework build rules for 'make check'.
1570 * conf/tests.rmk: Build rules for individual tests and framework.
1571
1572 * include/grub/test.h: Header file for whitebox tests.
1573 * tests/lib/functional_test.c: Framework support for whitebox
1574 functional tests.
1575 * tests/lib/test.c: Common whitebox testing code for unit and
1576 functional tests.
1577 * tests/lib/unit_test.c: Framework support for whitebox unit
1578 tests.
1579
1580 * tests/util/grub-shell-tester.in: Support utility for grub-script
1581 tests.
1582 * tests/util/grub-shell.in: Utility to execute grub-script
1583 commands in a Qemu instance.
1584
1585 * tests/example_functional_test.c: Example whitebox functional
1586 test.
1587 * tests/example_grub_script_test.in: Example grub-script test.
1588 * tests/example_scripted_test.in: Example scripted test.
1589 * tests/example_unit_test.c: Example whitebox unit test.
1590
9c4ffeeb
VS
15912010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1592
1593 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
1594 Add loader/i386/multiboot_mbi.c.
1595 (multiboot2_mod_SOURCES): Likewise.
1596 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
1597 (multiboot2_mod_SOURCES): Likewise.
1598 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
1599 (grub_multiboot_make_mbi): Likewise.
1600 (grub_multiboot_free_mbi): Likewise.
1601 (grub_multiboot_init_mbi): Likewise.
1602 (grub_multiboot_add_module): Likewise.
1603 (grub_multiboot_set_bootdev): Likewise.
1604 * loader/i386/multiboot.c (mbi): Removed.
1605 (mbi_dest): Likewise.
1606 (alloc_mbi): New variable.
1607 (grub_multiboot_payload_size): Removed. All users updated.
1608 (grub_multiboot_pure_size): New variable.
1609 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
1610 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
1611 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
1612 (grub_fill_multiboot_mmap): Likewise.
1613 (grub_multiboot_get_bootdev): Likewise.
1614 (grub_multiboot): Use multiboot_mbi functions.
1615 * loader/i386/multiboot_mbi.c: New file.
1616
17383dfe
VS
16172010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1618
1619 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
1620 it would result in module crash.
1621
c1f28820
VS
16222010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1623
1624 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
1625 (grub_ofconsole_getwh): Split to ...
1626 (grub_ofconsole_getwh): ... this.
1627 (grub_ofconsole_dimensions): ...and this.
1628 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
1629
58655a16
RM
16302010-01-13 Robert Millan <rmh.grub@aybabtu.com>
1631
1632 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
1633
10891398
VS
16342010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1635
1636 * loader/i386/pc/multiboot2.c: Removed stalled file.
1637
0b8a223c
VS
16382010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1639
1640 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
1641 Reported by: Grégoire Sutre
1642
92ab12b0
RM
16432010-01-11 Robert Millan <rmh.grub@aybabtu.com>
1644
1645 * util/misc.c (canonicalize_file_name): New function.
1646 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
1647 instead of realpath().
1648
a788afb6
CW
16492010-01-11 Colin Watson <cjwatson@ubuntu.com>
1650
1651 * util/grub-install.in (usage): Clarify meaning of --root-directory,
1652 and make it clearer that it's optional. Based on confusion
1653 witnessed on IRC.
1654
ffa8e3d2
VS
16552010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1656
1657 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
1658 in premature implicit newline.
1659
e9060a9d
VS
16602010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1661
1662 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
1663 which resulted in garbled command line at the end of screen.
1664
f0d0c0b7
RM
16652010-01-10 Robert Millan <rmh.grub@aybabtu.com>
1666
1667 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
1668 initialization with similar approach as with other Linux loaders.
1669
0e60bae7
RM
16702010-01-10 Robert Millan <rmh.grub@aybabtu.com>
1671
1672 Fix i386-ieee1275 build.
1673
1674 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
1675 and grub_term_height() for video_{width,height} initialization.
1676
16772010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
1678
1679 Fix grub-emu build.
1680
1681 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
1682
cdb3f378
RM
16832010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
16842010-01-09 Robert Millan <rmh.grub@aybabtu.com>
1685
1686 Support for multiple terminals.
1687
1688 * Makefile.in (pkglib_DATA): terminal.lst.
1689 (terminal.lst): New target.
1690 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
1691 (GRUB_MOD_INIT(handler)): Likewise.
1692 (GRUB_MOD_FINI(handler)): Likewise.
1693 * commands/help.c (grub_cmd_help): Handle multiple terminals.
1694 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
1695 * commands/sleep.c (do_print): Use grub_term_restore_pos.
1696 (grub_cmd_sleep): Use grub_term_save_pos.
1697 * commands/terminal.c: New file.
1698 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
1699 commands/terminal.c and lib/charset.c.
1700 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
1701 (pkglib_MODULES): Add terminal.mod.
1702 (terminal_mod_SOURCES): New variable.
1703 (terminal_mod_CFLAGS): Likewise.
1704 (terminal_mod_LDFLAGS): Likewise.
1705 * genhandlerlist.sh: Don't handle terminals.
1706 * genmk.rb: Generate terminal-*.lst.
1707 * genterminallist.sh: New file.
1708 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
1709 (grub_is_valid_utf8): Likewise.
1710 (grub_utf8_to_ucs4_alloc): Likewise.
1711 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
1712 (grub_menu_register_viewer): Changed argument.
1713 (grub_menu_try_text): New proto.
1714 (grub_gfxmenu_try_hook): New declaration.
1715 * include/grub/normal.h (grub_normal_exit_level): New declaration.
1716 (grub_menu_init_page): Additional argument term.
1717 (grub_normal_init_page): Likewise.
1718 (grub_cmdline_get): Arguments simplified.
1719 (grub_utf8_to_ucs4_alloc): Removed.
1720 (grub_print_ucs4): Additional argument term.
1721 (grub_getstringwidth): Likewise.
1722 (grub_print_message_indented): Likewise.
1723 (grub_menu_text_register_instances): New proto.
1724 (grub_show_menu): Likewise.
1725 (read_terminal_list): Likewise.
1726 (grub_set_more): Likewise.
1727 * include/grub/parser.h: Include handler.h.
1728 * include/grub/reader.h: Rewritten.
1729 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
1730 (GRUB_TERM_WIDTH): Changed to function.
1731 (GRUB_TERM_HEIGHT): Likewise.
1732 (GRUB_TERM_BORDER_WIDTH): Likewise.
1733 (GRUB_TERM_BORDER_HEIGHT): Likewise.
1734 (GRUB_TERM_NUM_ENTRIES): Likewise.
1735 (GRUB_TERM_ENTRY_WIDTH): Likewise.
1736 (GRUB_TERM_CURSOR_X): Likewise.
1737 (grub_term_input_class): Likewise.
1738 (grub_term_output_class): Likewise.
1739 (grub_term_outputs_disabled): New declaration.
1740 (grub_term_inputs_disabled): Likewise.
1741 (grub_term_outputs): Likewise.
1742 (grub_term_inputs): Likewise.
1743 (grub_term_register_input): Rewritten.
1744 (grub_term_register_output): Likewise.
1745 (grub_term_unregister_input): Likewise.
1746 (grub_term_unregister_output): Likewise.
1747 (FOR_ACTIVE_TERM_INPUTS): New macro.
1748 (FOR_DISABLED_TERM_INPUTS): Likewise.
1749 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
1750 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
1751 * include/grub/terminfo.h: Add oterm argument to all protypes.
1752 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
1753 Use grub_rescue_run.
1754 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
1755 All users updated.
1756 * kern/reader.c: Removed. All users updated.
1757 * kern/rescue_reader.c (grub_rescue_init): Removed.
1758 (grub_rescue_reader): Likewise.
1759 (grub_register_rescue_reader): Likewise.
1760 (grub_rescue_run): New function based on kern/reader.c.
1761 * kern/term.c: Adapted for multiterm.
1762 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
1763 (grub_is_valid_utf8): Likewise.
1764 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
1765 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
1766 right terminal.
1767 * loader/i386/linux.c (grub_linux_boot): Likewise.
1768 * normal/auth.c (grub_username_get): New function.
1769 (grub_auth_check_authentication): Use grub_username_get.
1770 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
1771 * normal/color.c: Adapt for multiterm.
1772 * normal/main.c (read_config_file): Don't use grub_reader_loop.
1773 (grub_normal_init_page): Additional argument term.
1774 (read_lists): Call read_terminal_lists.
1775 (grub_enter_normal_mode): Call grub_cmdline_run.
1776 Handle grub_normal_exit_level.
1777 (grub_cmd_normal): Make reentrant.
1778 (grub_cmd_normal_exit): New function.
1779 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
1780 * normal/menu.c: Adapt for multiterm.
1781 * normal/menu_entry.c: Likewise.
1782 * normal/menu_text.c: Likewise.
1783 * normal/menu_viewer.c: Removed. All users updated.
1784 * normal/term.c: New file.
1785 * util/console.c: Change order of includes to workaround a bug in
1786 ncurses headers.
1787 * term/terminfo.c: New argument oterm on all exported functions.
1788 All users updated.
1789 * util/grub-editenv.c (grub_term_input_class): Removed.
1790 (grub_term_output_class): Likewise.
1791
1a064917
RM
17922010-01-09 Robert Millan <rmh.grub@aybabtu.com>
1793
1794 Make loader output a bit more user-friendly.
1795
1796 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
1797 is being loaded. Likewise for the Hurd.
1798
1799 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
1800 that kernel of FreeBSD ${version} is being loaded.
1801
1802 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
1803 grub_dprintf().
1804 (grub_cmd_initrd): Likewise.
1805 * util/grub.d/10_linux.in (linux_entry): Print message indicating
1806 that Linux ${version} is being loaded. Likewise for initrd.
1807
5ce0a83a 18082010-01-09 Carles Pina i Estany <carles@pina.cat>
1809
1810 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
1811
809bbfeb 18122010-01-08 Carles Pina i Estany <carles@pina.cat>
1813
1814 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
1815 (GRUB_MOD_INIT): Gettextizze.
1816 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
1817 (GRUB_MOD_INIT): Gettextizze.
1818 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
1819 (grub_cmd_linux): Capitalise Linux.
1820 (GRUB_MOD_INIT): Gettextizze.
1821 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
1822 (grub_cmd_linux): Capitalise Linux.
1823 (GRUB_MOD_INIT): Gettextizze.
1824 * loader/i386/linux.c: Include `<grub/i18n.h>'.
1825 (grub_cmd_linux): Capitalise Linux.
1826 (GRUB_MOD_INIT): Gettextizze.
1827 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
1828 (GRUB_MOD_INIT): Gettextizze.
1829 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
1830 (grub_cmd_linux): Capitalise Linux.
1831 (GRUB_MOD_INIT): Gettextizze.
1832 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
1833 (grub_cpu_xnu_init): Gettextizze.
1834 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
1835 (GRUB_MOD_INIT): Gettextizze.
1836 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
1837 (GRUB_MOD_INIT): Gettextizze.
1838 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
1839 (grub_linux_load64): Capitalise Linux.
1840 (GRUB_MOD_INIT): Gettextizze.
1841 * loader/xnu.c: Include `<grub/i18n.h>'.
1842 (GRUB_MOD_INIT): Gettextizze.
1843 * po/POTFILES: Add `loader/efi/appleloader.c',
1844 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
1845 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
1846 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
1847 `loader/i386/xnu.c', `loader/multiboot_loader.c',
1848 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
1849 and `loader/xnu.c'.
1850
b394b2ca
RM
18512010-01-08 Robert Millan <rmh.grub@aybabtu.com>
1852
1853 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
1854
18552010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
1856
1857 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
1858 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
1859 * util/mkisofs/mkisofs.c (main): Readjust --version output.
1860
bc8b32b3
RM
18612010-01-07 Robert Millan <rmh.grub@aybabtu.com>
1862
1863 Reset Multiboot 2 support. New loader implements the draft in
1864 /branches/multiboot2 and shares as much code as possible with the
1865 production Multiboot 1 implementation.
1866
1867 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
1868 * loader/multiboot2.c: Likewise.
1869 * loader/i386/multiboot_helper.S: Likewise.
1870 * include/multiboot2.h: Replace with latest version from the draft
1871 in /branches/multiboot2.
1872
1873 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
1874 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
1875 and `loader/multiboot2.c'.
1876 (pkglib_MODULES): Add `multiboot2.mod'.
1877 (multiboot2_mod_SOURCES): New variable.
1878 (multiboot2_mod_LDFLAGS): Likewise.
1879 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
1880
1881 * conf/i386-pc.rmk: Likewise.
1882
1883 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
1884 (multiboot_mod_SOURCES): Remove variable.
1885 (multiboot_mod_LDFLAGS): Likewise.
1886 (multiboot_mod_CFLAGS): Likewise.
1887
1888 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
1889 `<multiboot2.h>' instead of `<multiboot.h>'.
1890 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
1891 (MULTIBOOT_HEADER_MAGIC): New macros.
1892
1893 * loader/multiboot_loader.c (module_version_status): Remove variable.
1894 (find_multi_boot2_header): Remove function.
1895 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
1896 logic. Always check for the Multiboot version we're compiling for.
1897 (grub_cmd_module_loader): Likewise.
1898 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
1899 command instead of `multiboot'.
1900
5d2c52b8
RM
19012010-01-07 Robert Millan <rmh.grub@aybabtu.com>
1902
1903 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
1904 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
1905 all users.
1906
53108d92
RM
19072010-01-07 Robert Millan <rmh.grub@aybabtu.com>
19082010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
1909
1910 Fix breakage introduced with previous commit.
1911
1912 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
1913 commands.
1914 * normal/handler.c (read_handler_list): Revert part of previous commit
1915 affecting this file.
1916 * normal/main.c (read_lists): Move read_handler_list() call back to ...
1917 (grub_normal_execute): ... here.
1918
e2e936b2
RM
19192010-01-07 Robert Millan <rmh.grub@aybabtu.com>
1920
1921 Merge prefix-redefinition-fix branch.
1922
1923 * normal/autofs.c (read_fs_list): Make function capable of being
1924 run multiple times, gracefuly replacing the previous data
1925 structures.
1926 * normal/dyncmd.c (read_command_list): Likewise.
1927 * normal/handler.c (read_handler_list): Likewise.
1928 * normal/main.c (read_lists): New function. Calls all the
1929 list reading functions.
1930 (grub_normal_execute): Use read_lists() instead of calling all
1931 list reading functions explicitly. Register read_lists() as a
1932 variable hook attached to ${prefix}.
1933
607a3701
VS
19342010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
1935
1936 Merge crypto branch.
1937
1938 * Makefile.in (pkglib_DATA): Add crypto.lst.
1939 (crypto.lst): New target.
1940 * commands/hashsum.c: New file.
1941 * commands/password.c (check_password): Use grub_crypto_memcmp.
1942 * commands/password_pbkdf2.c: New file.
1943 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
1944 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
1945 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
1946 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
1947 -I$(srcdir)/lib/libgcrypt_wrap.
1948 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
1949 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
1950 password_pbkdf2.mod.
1951 (crypto_mod_SOURCES): New variable.
1952 (crypto_mod_CFLAGS): Likewise.
1953 (crypto_mod_LDFLAGS): Likewise.
1954 (hashsum_mod_SOURCES): New variable.
1955 (hashsum_mod_CFLAGS): Likewise.
1956 (hashsum_mod_LDFLAGS): Likewise.
1957 (pbkdf2_mod_SOURCES): New variable.
1958 (pbkdf2_mod_CFLAGS): Likewise.
1959 (pbkdf2_mod_LDFLAGS): Likewise.
1960 (password_pbkdf2_mod_SOURCES): New variable.
1961 (password_pbkdf2_mod_CFLAGS): Likewise.
1962 (password_pbkdf2_mod_LDFLAGS): Likewise.
1963 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
1964 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
1965 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
1966 Include conf/gcry.rmk.
1967 * include/grub/auth.h: Rewritten.
1968 * include/grub/crypto.h: New file.
1969 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
1970 * include/grub/normal.h (read_crypto_list): New prototype.
1971 * lib/crypto.c: New file.
1972 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
1973 * lib/pbkdf2.c: Likewise.
1974 * normal/auth.c (grub_auth_strcmp): Removed.
1975 (grub_iswordseparator): Likewise.
1976 (grub_auth_strword): Likewise.
1977 (is_authenticated): Use grub_strword.
1978 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
1979 and grub_strword. Pass entered password to authentication callback.
1980 * normal/crypto.c: New file.
1981 * normal/main.c: Call read_crypto_list.
1982 * util/grub-mkpasswd-pbkdf2.c: New file.
1983 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
1984
42841caa
VS
19852010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
1986
1987 Fix descent and ascent calculation.
1988
1989 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
1990 (options): New option "asce".
1991 (usage): Likewise.
1992 (add_char): Ignore invalid glyphs for descent calculation.
1993 Calculate ascent from actual content.
1994 (print_glyphs): Use 'asce'.
1995 (write_font): Likewise. Allow ascent override.
1996 (main): Handle "asce" option.
1997
e7730de7 19982010-01-06 Carles Pina i Estany <carles@pina.cat>
1999
2000 * kern/err.c: Include `<grub/i18n.h>'.
2001 (grub_print_error): Add full stop. Gettextizze.
2002 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
2003 (grub_bsd_load_elf): Capitalise ELF.
2004 (grub_cmd_freebsd_loadenv): Add `s' in error string.
2005 (grub_cmd_freebsd_module): Likewise.
2006 (grub_cmd_freebsd_module_elf): Likewise.
2007 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
2008
40e3a41f 20092010-01-06 Carles Pina i Estany <carles@pina.cat>
2010
2011 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
2012 * commands/search_file.c (HELP_MESSAGE): New macro.
2013 * commands/search_label.c (HELP_MESSAGE): Likewise.
2014 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
2015 * po/POTFILES: Add `commands/search_file.c',
2016 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
2017 `commands/search.c'.
2018
83507e68
RM
20192010-01-05 Robert Millan <rmh.grub@aybabtu.com>
2020
2021 * config.rpath: Update from Gnulib.
2022
465c787b
YB
20232010-01-05 Yves Blusseau <blusseau@zetam.org>
2024
2025 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
2026
6581dd3a
YB
20272010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
2028
2029 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
2030
3bff18c5
CW
20312010-01-05 Colin Watson <cjwatson@ubuntu.com>
2032
2033 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
2034 arguments to fread so that we get a return value in bytes, rather
2035 than something that will normally be rounded down to 0.
2036 Adjust error handling to avoid producing garbage when size_t is not
2037 the same size as long long.
2038
a1368118
CW
20392010-01-05 Colin Watson <cjwatson@ubuntu.com>
2040
2041 * util/mkisofs/write.c (padblock_write): Check return value of
2042 fread.
2043
7c302978
RM
20442010-01-05 Robert Millan <rmh.grub@aybabtu.com>
2045
2046 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
2047 floppy images now.
2048
2049 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
2050
e33ace06
RM
20512010-01-04 Robert Millan <rmh.grub@aybabtu.com>
2052
2053 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
2054 instead of manual alignment.
2055 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
2056 verbose). Avoid attempts to read past end of the device
2057 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
2058 but GRUB_DISK_CACHE_SIZE may exceed that).
2059
4b856776
RM
20602010-01-04 Robert Millan <rmh.grub@aybabtu.com>
2061
2062 * commands/crc.c (grub_cmd_crc): Abort on read errors.
2063 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
2064 it to upper layer.
2065
52c2d97f
VS
20662010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2067
2068 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
2069 New constant.
2070 (grub_efi_piwg_device_path): New structure
2071 (grub_efi_piwg_device_path_t): New type.
2072 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
2073 (devpath_1): Transform to a structure. All users updated.
2074 (devpath_2): Likewise.
2075 (devpath_3): Likewise.
2076 (devpath_4): Likewise.
2077 (devpath_5): Likewise.
2078
98ff6a54
VS
20792010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2080
2081 * loader/efi/appleloader.c: Restored. Update all users.
2082
3a73dcb6
RM
20832010-01-03 Robert Millan <rmh.grub@aybabtu.com>
2084
2085 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
2086
2087 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
2088 (struct boot_blocklist): Move from here ...
2089 * include/grub/i386/pc/boot.h [ASM_FILE]
2090 (struct grub_boot_blocklist): ... to here. Update all users.
2091 (setup): Only initialize `start' member of `first_block'
2092 structure. Add assert() calls to verify the other members.
2093
2094 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
2095 (generate_image): Fix broken blocklist length initialization.
2096 Add assert() call to verify blocklist `segment' field.
2097
ab0eeb0c
RM
20982010-01-03 Robert Millan <rmh.grub@aybabtu.com>
2099
2100 * loader/efi/appleloader.c: Remove. Update all users.
2101
58bc8bd5
RM
21022010-01-03 Robert Millan <rmh.grub@aybabtu.com>
2103
2104 * boot/i386/pc/boot.S: Update copyright year.
2105 * boot/i386/pc/cdboot.S: Likewise.
2106 * boot/i386/pc/diskboot.S: Likewise.
2107 * boot/i386/pc/lnxboot.S: Likewise.
2108 * boot/i386/pc/pxeboot.S: Likewise.
2109 * bus/pci.c: Likewise.
2110 * commands/cmp.c: Likewise.
2111 * commands/help.c: Likewise.
2112 * commands/hexdump.c: Likewise.
2113 * commands/i386/pc/halt.c: Likewise.
2114 * commands/i386/pc/play.c: Likewise.
2115 * commands/i386/pc/vbeinfo.c: Likewise.
2116 * commands/ls.c: Likewise.
2117 * commands/test.c: Likewise.
2118 * disk/dmraid_nvidia.c: Likewise.
2119 * disk/i386/pc/biosdisk.c: Likewise.
2120 * disk/ieee1275/nand.c: Likewise.
2121 * disk/ieee1275/ofdisk.c: Likewise.
2122 * disk/lvm.c: Likewise.
2123 * disk/raid.c: Likewise.
2124 * disk/raid6_recover.c: Likewise.
2125 * disk/scsi.c: Likewise.
2126 * fs/affs.c: Likewise.
2127 * fs/cpio.c: Likewise.
2128 * fs/ext2.c: Likewise.
2129 * fs/hfs.c: Likewise.
2130 * fs/iso9660.c: Likewise.
2131 * fs/ntfs.c: Likewise.
2132 * fs/sfs.c: Likewise.
2133 * fs/udf.c: Likewise.
2134 * fs/ufs.c: Likewise.
2135 * fs/xfs.c: Likewise.
2136 * gencmdlist.sh: Likewise.
2137 * genmk.rb: Likewise.
2138 * include/grub/disk.h: Likewise.
2139 * include/grub/efi/api.h: Likewise.
2140 * include/grub/efi/efi.h: Likewise.
2141 * include/grub/efi/pe32.h: Likewise.
2142 * include/grub/elf.h: Likewise.
2143 * include/grub/fs.h: Likewise.
2144 * include/grub/i386/at_keyboard.h: Likewise.
2145 * include/grub/i386/pc/memory.h: Likewise.
2146 * include/grub/i386/pc/vbe.h: Likewise.
2147 * include/grub/i386/pci.h: Likewise.
2148 * include/grub/i386/tsc.h: Likewise.
2149 * include/grub/ieee1275/ieee1275.h: Likewise.
2150 * include/grub/ntfs.h: Likewise.
2151 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
2152 * include/grub/sparc64/libgcc.h: Likewise.
2153 * include/grub/symbol.h: Likewise.
2154 * include/grub/types.h: Likewise.
2155 * include/multiboot2.h: Likewise.
2156 * io/gzio.c: Likewise.
2157 * kern/device.c: Likewise.
2158 * kern/disk.c: Likewise.
2159 * kern/efi/efi.c: Likewise.
2160 * kern/efi/mm.c: Likewise.
2161 * kern/elf.c: Likewise.
2162 * kern/file.c: Likewise.
2163 * kern/i386/dl.c: Likewise.
2164 * kern/i386/pc/init.c: Likewise.
2165 * kern/i386/pc/startup.S: Likewise.
2166 * kern/ieee1275/ieee1275.c: Likewise.
2167 * kern/ieee1275/init.c: Likewise.
2168 * kern/main.c: Likewise.
2169 * kern/mm.c: Likewise.
2170 * kern/powerpc/dl.c: Likewise.
2171 * kern/sparc64/dl.c: Likewise.
2172 * kern/x86_64/dl.c: Likewise.
2173 * lib/hexdump.c: Likewise.
2174 * loader/efi/appleloader.c: Likewise.
2175 * loader/i386/ieee1275/linux.c: Likewise.
2176 * loader/i386/pc/chainloader.c: Likewise.
2177 * loader/i386/pc/linux.c: Likewise.
2178 * loader/i386/pc/multiboot2.c: Likewise.
2179 * loader/ieee1275/multiboot2.c: Likewise.
2180 * loader/multiboot2.c: Likewise.
2181 * loader/multiboot_loader.c: Likewise.
2182 * loader/powerpc/ieee1275/linux.c: Likewise.
2183 * normal/completion.c: Likewise.
2184 * normal/menu_entry.c: Likewise.
2185 * partmap/apple.c: Likewise.
2186 * util/grub.d/10_hurd.in: Likewise.
2187 * util/hostfs.c: Likewise.
2188 * video/readers/png.c: Likewise.
2189
e2d70b5c
CW
21902010-01-03 Colin Watson <cjwatson@ubuntu.com>
2191
2192 * include/grub/misc.h (GNUC_PREREQ): New macro.
2193 (ATTRIBUTE_ERROR): New macro.
2194 * include/grub/list.h (grub_bad_type_cast_real): Use
2195 ATTRIBUTE_ERROR.
2196
a173283f 21972010-01-03 Carles Pina i Estany <carles@pina.cat>
2198
2199 * normal/menu_text.c (print_message): Change messages.
2200
7fa7ff74 22012010-01-03 Carles Pina i Estany <carles@pina.cat>
2202
2203 * normal/menu_entry.c (store_completion): Gettextizze.
2204
136d24f6 22052010-01-03 Carles Pina i Estany <carles@pina.cat>
2206
2207 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
2208
f936862e 22092010-01-03 Carles Pina i Estany <carles@pina.cat>
2210
2211 * po/POTFILES: Sort correctly.
2212
29c44ad1 22132010-01-03 Carles Pina i Estany <carles@pina.cat>
2214
2215 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
2216 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
2217 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
2218 full stop.
2219 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
2220 summary. Gettextizze the strings.
2221 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
2222 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
2223 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
2224 full stop.
2225 (GRUB_MOD_INIT): Remove command name from summary.
2226 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
2227 summary.
2228 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
2229 * term/i386/pc/serial.c (options): Add full stops.
2230 (GRUB_MOD_INIT): Remove command name from the summary.
2231
77a79592 22322010-01-03 Carles Pina i Estany <carles@pina.cat>
2233
2234 * commands/acpi.c: Gettextizze help strings and/or options. Include
2235 `grub/i18n.h' if needed.
2236 * commands/blocklist.c: Likewise.
2237 * commands/boot.c: Likewise.
2238 * commands/cat.c: Likewise.
2239 * commands/cmp.c: Likewise.
2240 * commands/configfile.c: Likewise.
2241 * commands/crc.c: Likewise.
2242 * commands/date.c: Likewise.
2243 * commands/echo.c: Likewise.
2244 * commands/efi/fixvideo.c: Likewise.
2245 * commands/efi/loadbios.c: Likewise.
2246 * commands/gptsync.c: Likewise.
2247 * commands/halt.c: Likewise.
2248 * commands/handler.c: Likewise.
2249 * commands/hdparm.c: Likewise.
2250 * commands/hexdump.c: Likewise.
2251 * commands/i386/cpuid.c: Likewise.
2252 * commands/i386/pc/drivemap.c: Likewise.
2253 * commands/i386/pc/halt.c: Likewise.
2254 * commands/i386/pc/pxecmd.c: Likewise.
2255 * commands/i386/pc/vbeinfo.c: Likewise.
2256 * commands/i386/pc/vbetest.c: Likewise.
2257 * commands/ieee1275/suspend.c: Likewise.
2258 * commands/keystatus.c: Likewise.
2259 * commands/loadenv.c: Likewise.
2260 * commands/ls.c: Likewise.
2261 * commands/lsmmap.c: Likewise.
2262 * commands/lspci.c: Likewise.
2263 * commands/memrw.c: Likewise.
2264 * commands/minicmd.c: Likewise.
2265 * commands/parttool.c: Likewise.
2266 * commands/password.c: Likewise.
2267 * commands/probe.c: Likewise.
2268 * commands/read.c: Likewise.
2269 * commands/reboot.c: Likewise.
2270 * commands/search.c: Likewise.
2271 * commands/sleep.c: Likewise.
2272 * commands/test.c: Likewise.
2273 * commands/true.c: Likewise.
2274 * commands/usbtest.c: Likewise.
2275 * commands/videotest.c: Likewise.
2276 * commands/xnu_uuid.c: Likewise.
2277 * disk/loopback.c: Likewise.
2278 * hello/hello.c: Likewise.
2279 * loader/i386/bsd.c: Likewise.
2280 * term/i386/pc/serial.c: Likewise.
2281 * po/POTFILES: Add new files.
2282
da8d5c53
CW
22832010-01-02 Colin Watson <cjwatson@ubuntu.com>
2284
2285 * term/i386/pc/at_keyboard.c
2286 (keyboard_controller_wait_untill_ready): Rename to ...
2287 (keyboard_controller_wait_until_ready): ... this. Update all users.
2288
33937904 22892010-01-01 Carles Pina i Estany <carles@pina.cat>
2290
2291 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
2292 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
2293 string using string width.
2294 * normal/menu_text.c (grub_print_message_indented): Use
2295 grub_print_spaces and not print_spaces.
2296 (print_timeout): Likewise.
2297 (print_spaces): Move to...
2298 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
2299
3fd3b8d8
RM
23002010-01-01 Robert Millan <rmh.grub@aybabtu.com>
2301
2302 Import from Gnulib.
2303
2304 * gnulib/getdelim.c: New file.
2305 * gnulib/getline.c: Likewise.
2306
33433555
VS
23072009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
2308
2309 * include/grub/list.h (grub_assert_fail): Removed.
2310 (grub_bad_type_cast_real): New function.
2311 (grub_bad_type_cast): New macro.
2312 (GRUB_AS_LIST): Use grub_bad_type_cast.
2313 (GRUB_AS_LIST_P): Likewise.
e44721e8 2314 (GRUB_AS_NAMED_LIST): Likewise.
33433555 2315 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 2316 (GRUB_AS_PRIO_LIST): Likewise.
33433555 2317 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 2318 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 2319
f5a51306
VS
23202009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
2321
2322 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
2323 Fix syntax error.
2324
90d1e879
RM
23252009-12-29 Robert Millan <rmh.grub@aybabtu.com>
2326
2327 * configure.ac: Check for TARGET_CFLAGS initialization before we
2328 initialize it ourselves (sigh).
2329 Move a few modifications to TARGET_CFLAGS to be unconditional
2330 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
2331 eh_frame)
2332
2333 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
2334 * term/i386/pc/at_keyboard.c
2335 (keyboard_controller_wait_untill_ready): Likewise.
2336 (keyboard_controller_led): Rename `led_status' paramter to avoid
2337 name conflict.
2338
465b5a81 23392009-12-28 Carles Pina i Estany <carles@pina.cat>
2340
2341 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
2342 quotes.
2343
c181849b
VS
23442009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2345
2346 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
2347
9c8739a4
VS
23482009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2349
2350 * normal/menu_text.c (grub_print_message_indented): Prevent
2351 past-the-end-of-array dereference.
2352
3e74249c
VS
23532009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2354
2355 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
2356 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
2357
64fd18ed 23582009-12-27 Carles Pina i Estany <carles@pina.cat>
2359
2360 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
2361 * normal/main.c (grub_normal_read_line): Remove a space from the
2362 default prompt.
2363
714af9b9 23642009-12-27 Carles Pina i Estany <carles@pina.cat>
2365
2366 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
2367 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
2368 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
2369 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
2370 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
2371 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
2372 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
2373
82f3e412 23742009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 2375
2376 * video/readers/jpeg.c (cmd): Declare.
2377 (grub_cmd_jpegtest): Use `grub_command_t' type.
2378 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
2379 Assign to `cmd'.
2380 (GRUB_MOD_FINI): Use `cmd' to unregister.
2381 * video/readers/png.c (cmd): Declare.
2382 (grub_cmd_pngtest): Use `grub_command_t' type.
2383 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
2384 Assign to `cmd'.
2385 (GRUB_MOD_FINI): Use `cmd' to unregister.
2386 * video/readers/tga.c (cmd): Declare.
2387 (grub_cmd_tgatest): Use `grub_command_t' type.
2388 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
2389 Assign to `cmd'.
2390 (GRUB_MOD_FINI): Use `cmd' to unregister.
2391
82f3e412 23922009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 2393
2394 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
2395 stops.
2396 * kern/corecmd.c (grub_register_core_commands): Likewise.
2397 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
2398 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
2399 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
2400 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
2401 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
2402 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
2403 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
2404 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
2405 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
2406 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
2407 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
2408 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
2409 * normal/handler.c (insert_handler): Likewise.
2410 * normal/main.c (GRUB_MOD_INIT): Likewise.
2411 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
2412
fdcdbb66 24132009-12-26 Carles Pina i Estany <carles@pina.cat>
2414
2415 * commands/help.c (grub_cmd_help): Print the command name before the
2416 summary.
2417 (GRUB_MOD_INIT): Remove command name from the summary.
2418 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 2419 string as summary.
fdcdbb66 2420 * lib/arg.c (find_long): Print the command name before the summary.
2421 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
2422 summary.
2423 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
2424 * commands/cat.c (GRUB_MOD_INIT): Likewise.
2425 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
2426 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
2427 * commands/crc.c (GRUB_MOD_INIT): Likewise.
2428 * commands/date.c (GRUB_MOD_INIT): Likewise.
2429 * commands/echo.c (GRUB_MOD_INIT): Likewise.
2430 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
2431 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
2432 * commands/handler.c (GRUB_MOD_INIT): Likewise.
2433 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
2434 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
2435 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
2436 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
2437 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
2438 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
2439 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
2440 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
2441 * commands/ls.c (GRUB_MOD_INIT): Likewise.
2442 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
2443 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
2444 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
2445 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
2446 * commands/password.c (GRUB_MOD_INIT): Likewise.
2447 * commands/probe.c (GRUB_MOD_INIT): Likewise.
2448 * commands/read.c (GRUB_MOD_INIT): Likewise.
2449 * commands/search.c (GRUB_MOD_INIT): Likewise.
2450 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
2451 * commands/test.c (GRUB_MOD_INIT): Likewise.
2452 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
2453 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
2454 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
2455 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
2456 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
2457 * lib/arg.c (GRUB_MOD_INIT): Likewise.
2458 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
2459 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
2460 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
2461 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
2462 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
2463 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
2464 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
2465 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
2466
9c288be2
VS
24672009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2468
2469 Use search command for preliminar UUID search.
2470
2471 * commands/search.c: Split into ...
2472 * commands/search_wrap.c: ...this
2473 * commands/search.c: ...and this.
2474 * commands/search_file.c: New file.
2475 * commands/search_label.c: New file.
2476 * commands/search_uuid.c: New file.
2477 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
2478 Add commands/search_wrap.c, commands/search_file.c,
2479 commands/search_label.c and commands/search_uuid.c.
2480 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
2481 (search_mod_SOURCES): Set to commands/search_wrap.c.
2482 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
2483 search_label.mod.
2484 (search_fs_file_mod_SOURCES): New variable.
2485 (search_fs_file_mod_CFLAGS): Likewise.
2486 (search_fs_file_mod_LDFLAGS): Likewise.
2487 (search_label_mod_SOURCES): Likewise.
2488 (search_label_mod_CFLAGS): Likewise.
2489 (search_label_mod_LDFLAGS): Likewise.
2490 (search_fs_uuid_mod_SOURCES): New variable.
2491 (search_fs_uuid_mod_CFLAGS): Likewise.
2492 (search_fs_uuid_mod_LDFLAGS): Likewise.
2493 (fs_file_mod_SOURCES): Removed.
2494 (fs_file_mod_CFLAGS): Likewise.
2495 (fs_file_mod_LDFLAGS): Likewise.
2496 (fs_uuid_mod_SOURCES): Removed.
2497 (fs_uuid_mod_CFLAGS): Likewise.
2498 (fs_uuid_mod_LDFLAGS): Likewise.
2499 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
2500 Set to util/grub-install.in.
2501 * disk/fs_file.c: Removed.
2502 * disk/fs_uuid.c: Likewise.
2503 * include/grub/search.h: New file.
2504 * util/grub-install.in: Handle sparc64.
2505 Create and use load.cfg.
2506 * util/sparc64/ieee1275/grub-install.in: Removed.
2507
db943399
VS
25082009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2509
2510 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
2511 Ignore return status if CF is cleared.
2512 (grub_biosdisk_get_diskinfo_standard): Likewise.
2513
3fdae612
RM
25142009-12-25 Robert Millan <rmh.grub@aybabtu.com>
2515
2516 * term/i386/pc/at_keyboard.c
2517 (keyboard_controller_wait_untill_ready): New function.
2518 (grub_keyboard_controller_write, grub_keyboard_controller_read)
2519 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
2520 for keyboard polling, rather than duplicate the same loop. This
2521 saves a few bytes in code size.
2522
7ebaa2b4
VS
25232009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2524
2525 Support for (pxe[:server[:gateway]]) syntax and
2526 use environment variable for PXE.
2527
2528 * commands/i386/pc/pxecmd.c (options): Removed.
2529 (print_ip): Removed.
2530 (grub_cmd_pxe): Removed
2531 (grub_cmd_pxe_unload): New function.
2532 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
2533 (grub_pxe_your_ip): Made static.
2534 (grub_pxe_default_server_ip): Likewise.
2535 (grub_pxe_default_gateway_ip): Likewise.
2536 (grub_pxe_blksize): Likewise.
2537 (parse_ip): New function.
2538 (grub_pxe_open): Support server and gateway specification.
2539 (grub_pxe_close): Free disk->data.
2540 (grub_pxefs_open): Use disk->data.
2541 (grub_pxefs_read): Likewise.
2542 (grub_env_write_readonly): New function.
2543 (set_mac_env): Likewise.
2544 (set_env_limn_ro): Likewise.
2545 (parse_dhcp_vendor): Likewise.
2546 (grub_pxe_detect): Set the environment variables.
2547 (set_ip_env): New function.
2548 (write_ip_env): Likewise.
2549 (grub_env_write_pxe_default_server): Likewise.
2550 (grub_env_write_pxe_default_gateway): Likewise.
2551 (grub_env_write_pxe_blocksize): Likewise.
2552 (GRUB_MOD_INIT(pxe)): Set environment variables.
2553 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
2554 (grub_pxe_mac_addr_t): ... this. All users updated.
2555 (grub_pxe_your_ip): Removed.
2556 (grub_pxe_server_ip): Likewise.
2557 (grub_pxe_gateway_ip): Likewise.
2558 (grub_pxe_blksize): Likewise.
2559
ec5f98ab 25602009-12-25 Carles Pina i Estany <carles@pina.cat>
2561
2562 * commands/help.c: Include `<grub/i18n.h>'.
2563 (grub_cmd_help): Gettextizze.
2564 (GRUB_MOD_INIT): Likewise.
2565 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
2566 (GRUB_MOD_INIT): Gettextizze.
2567 * commands/search.c: Include `<grub/i18n.h>'.
2568 (options): Gettextizze.
2569 (GRUB_MOD_INIT): Gettextizze.
2570 * lib/arg.c: Include `<grub/i18n.h>'.
2571 (help_options): Gettextizze.
2572 (find_long): Likewise.
2573 (grub_arg_show_help): Likewise.
2574 * normal/dyncmd.c: Include `<grub/i18n.h>'.
2575 (read_command_list): Gettextizze.
2576 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 2577 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 2578
22815526
RM
25792009-12-25 Robert Millan <rmh.grub@aybabtu.com>
2580
2581 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
2582 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
2583 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
2584 (led_status): New variable.
2585 (keyboard_controller_led): New function.
2586 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
2587 update led status for caps lock, num lock and scroll lock.
2588
0ad46fd7
FZ
25892009-12-25 Felix Zielcke <fzielcke@z-51.de>
2590
2591 * util/hostdisk.c (open_device): Fix a comment.
2592
d0e158c2
RM
25932009-12-24 Robert Millan <rmh.grub@aybabtu.com>
2594
2595 * util/grub-install.in (host_os): New variable.
2596 * util/i386/efi/grub-install.in (host_os): Likewise.
2597
401c0ad6
RM
25982009-12-24 Robert Millan <rmh.grub@aybabtu.com>
2599
2600 * util/mkisofs/write.c (padblock_write): Abort when given an
2601 excedingly large embed image, instead of silently truncating it.
2602
d14d3370
RM
26032009-12-24 Robert Millan <rmh.grub@aybabtu.com>
2604
2605 * include/multiboot.h: Indentation fixes.
2606
eeed10b4
RM
26072009-12-24 Robert Millan <rmh.grub@aybabtu.com>
2608
2609 * include/multiboot.h (struct multiboot_aout_symbol_table)
2610 (struct multiboot_elf_section_header_table): New structure
2611 declarations (stolen from GRUB Legacy).
2612 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
2613 table information.
2614
2615 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
2616 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
2617 type aliases.
2618
681c70ab
RM
26192009-12-24 Robert Millan <rmh.grub@aybabtu.com>
2620
2621 * include/multiboot.h: Make comments src2texi-friendly.
2622
e4d47d8d
RM
26232009-12-24 Robert Millan <rmh.grub@aybabtu.com>
2624
2625 For consistency with [multiboot]/docs/boot.S.
2626
2627 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
2628 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
2629 (MULTIBOOT_MAGIC2): Rename from this ...
2630 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
2631
a0b70bda
RM
26322009-12-24 Robert Millan <rmh.grub@aybabtu.com>
2633
2634 * include/multiboot.h: Remove `<grub/types.h>'.
2635 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
2636 types. Update all users.
2637
61ba42be 26382009-12-25 Carles Pina i Estany <carles@pina.cat>
2639
2640 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
2641 `couldn't' and `can not' by `cannot'.
2642 * commands/i386/pc/drivemap.c: Likewise.
2643 * disk/ata.c: Likewise.
2644 * disk/ieee1275/nand.c: Likewise.
2645 * fs/affs.c: Likewise.
2646 * fs/fat.c: Likewise.
2647 * fs/hfs.c: Likewise.
2648 * fs/hfsplus.c: Likewise.
2649 * fs/iso9660.c: Likewise.
2650 * fs/jfs.c: Likewise.
2651 * fs/minix.c: Likewise.
2652 * fs/reiserfs.c: Likewise.
2653 * fs/sfs.c: Likewise.
2654 * fs/udf.c: Likewise.
2655 * fs/ufs.c: Likewise.
2656 * fs/xfs.c: Likewise.
2657 * loader/powerpc/ieee1275/linux.c: Likewise.
2658 * loader/sparc64/ieee1275/linux.c: Likewise.
2659 * util/grub-probe.c: Likewise.
2660 * util/misc.c: Likewise.
2661
7fd0baee 26622009-12-24 Carles Pina i Estany <carles@pina.cat>
2663
2664 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
2665 grub_errno calls.
2666 * commands/acpi.c: Likewise.
2667 * commands/blocklist.c: Likewise.
2668 * commands/efi/loadbios.c: Likewise.
2669 * commands/i386/pc/drivemap.c: Likewise.
2670 * commands/loadenv.c: Likewise.
2671 * commands/memrw.c: Likewise.
2672 * commands/password.c: Likewise.
2673 * commands/videotest.c: Likewise.
2674 * disk/ata.c: Likewise.
2675 * disk/ata_pthru.c: Likewise.
2676 * disk/dmraid_nvidia.c: Likewise.
2677 * disk/ieee1275/nand.c: Likewise.
2678 * disk/ieee1275/ofdisk.c: Likewise.
2679 * disk/loopback.c: Likewise.
2680 * disk/lvm.c: Likewise.
2681 * disk/mdraid_linux.c: Likewise.
2682 * disk/raid.c: Likewise.
2683 * disk/raid6_recover.c: Likewise.
2684 * disk/scsi.c: Likewise.
2685 * efiemu/main.c: Likewise.
2686 * efiemu/mm.c: Likewise.
2687 * efiemu/pnvram.c: Likewise.
2688 * efiemu/symbols.c: Likewise.
2689 * font/font.c: Likewise.
2690 * fs/cpio.c: Likewise.
2691 * fs/hfsplus.c: Likewise.
2692 * fs/iso9660.c: Likewise.
2693 * fs/jfs.c: Likewise.
2694 * fs/minix.c: Likewise.
2695 * fs/ntfs.c: Likewise.
2696 * fs/ntfscomp.c: Likewise.
2697 * fs/reiserfs.c: Likewise.
2698 * fs/ufs.c: Likewise.
2699 * fs/xfs.c: Likewise.
2700 * gettext/gettext.c: Likewise.
2701 * include/grub/auth.h: Likewise.
2702 * kern/elf.c: Likewise.
2703 * kern/file.c: Likewise.
2704 * kern/ieee1275/init.c: Likewise.
2705 * kern/ieee1275/mmap.c: Likewise.
2706 * kern/ieee1275/openfw.c: Likewise.
2707 * kern/powerpc/dl.c: Likewise.
2708 * kern/sparc64/dl.c: Likewise.
2709 * lib/arg.c: Likewise.
2710 * loader/i386/bsd.c: Likewise.
2711 * loader/i386/bsdXX.c: Likewise.
2712 * loader/i386/efi/linux.c: Likewise.
2713 * loader/i386/efi/xnu.c: Likewise.
2714 * loader/i386/ieee1275/linux.c: Likewise.
2715 * loader/i386/linux.c: Likewise.
2716 * loader/i386/multiboot.c: Likewise.
2717 * loader/i386/pc/linux.c: Likewise.
2718 * loader/i386/pc/multiboot2.c: Likewise.
2719 * loader/i386/xnu.c: Likewise.
2720 * loader/ieee1275/multiboot2.c: Likewise.
2721 * loader/macho.c: Likewise.
2722 * loader/machoXX.c: Likewise.
2723 * loader/multiboot2.c: Likewise.
2724 * loader/multiboot_loader.c: Likewise.
2725 * loader/powerpc/ieee1275/linux.c: Likewise.
2726 * loader/sparc64/ieee1275/linux.c: Likewise.
2727 * loader/xnu.c: Likewise.
2728 * loader/xnu_resume.c: Likewise.
2729 * mmap/i386/pc/mmap.c: Likewise.
2730 * normal/menu_viewer.c: Likewise.
2731 * partmap/acorn.c: Likewise.
2732 * partmap/amiga.c: Likewise.
2733 * partmap/apple.c: Likewise.
2734 * script/lexer.c: Likewise.
2735 * term/gfxterm.c: Likewise.
2736 * term/i386/pc/serial.c: Likewise.
2737 * term/i386/pc/vga.c: Likewise.
2738 * term/ieee1275/ofconsole.c: Likewise.
2739 * term/terminfo.c: Likewise.
2740 * video/bitmap.c: Likewise.
2741 * video/efi_gop.c: Likewise.
2742 * video/efi_uga.c: Likewise.
2743 * video/fb/video_fb.c: Likewise.
2744 * video/i386/pc/vbe.c: Likewise.
2745 * video/readers/tga.c: Likewise.
2746 * video/video.c: Likewise.
2747
0ad46fd7 27482009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
2749
2750 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
2751 * commands/lspci.c: Likewise.
2752 * commands/probe.c: Likewise.
2753 * commands/xnu_uuid.c: Likewise.
2754 * conf/i386-coreboot.rmk: Likewise.
2755 * conf/i386-efi.rmk: Likewise.
2756 * conf/i386-ieee1275.rmk: Likewise.
2757 * conf/i386-pc.rmk: Likewise.
2758 * conf/powerpc-ieee1275.rmk: Likewise.
2759 * conf/sparc64-ieee1275.rmk: Likewise.
2760 * conf/x86_64-efi.rmk: Likewise.
2761 * fs/i386/pc/pxe.c: Likewise.
2762 * gettext/gettext.c: Likewise.
2763 * include/grub/efi/graphics_output.h: Likewise.
2764 * include/grub/i386/pc/memory.h: Likewise.
2765 * kern/env.c: Likewise.
2766 * kern/i386/qemu/startup.S: Likewise.
2767 * lib/i386/pc/biosnum.c: Likewise.
2768 * lib/i386/relocator.c: Likewise.
2769 * lib/i386/relocator_asm.S: Likewise.
2770 * lib/relocator.c: Likewise.
2771 * loader/i386/bsd.c: Likewise.
2772 * loader/i386/multiboot.c: Likewise.
2773 * loader/i386/pc/chainloader.c: Likewise.
2774 * loader/i386/xnu.c: Likewise.
2775 * loader/xnu.c: Likewise.
2776 * normal/main.c: Likewise.
2777 * normal/menu_text.c: Likewise.
2778 * util/getroot.c: Likewise.
2779 * util/grub-mkconfig_lib.in: Likewise.
2780 * util/grub.d/00_header.in: Likewise.
2781 * util/i386/pc/grub-mkimage.c: Likewise.
2782 * util/mkisofs/eltorito.c: Likewise.
2783 * util/mkisofs/exclude.h: Likewise.
2784 * util/mkisofs/hash.c: Likewise.
2785 * util/mkisofs/iso9660.h: Likewise.
2786 * util/mkisofs/joliet.c: Likewise.
2787 * util/mkisofs/mkisofs.c: Likewise.
2788 * util/mkisofs/mkisofs.h: Likewise.
2789 * util/mkisofs/multi.c: Likewise.
2790 * util/mkisofs/name.c: Likewise.
2791 * util/mkisofs/rock.c: Likewise.
2792 * util/mkisofs/tree.c: Likewise.
2793 * util/mkisofs/write.c: Likewise.
2794 * video/efi_gop.c: Likewise.
2795
009ec743
VS
27962009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2797
2798 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
2799 size counting.
2800
0ad46fd7 28012009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
2802
2803 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
2804 * genmk.rb (class SCRIPT): Modify the target file instead of source.
2805
d3d30ea0
VS
28062009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
2807
2808 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
2809 (GRUB_MOD_INIT(memrw)): Update help line.
2810
a34f5c70
VS
28112009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
2812
2813 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
2814 Use grub_extcmd_t. All users updated.
2815 (options): New variable.
2816 (grub_cmd_read): Restructure for readability. Support "-v" option.
2817 (grub_cmd_write): Restructure for readability.
2818
0ad46fd7 28192009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
2820
2821 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
2822
0ad46fd7 28232009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
2824
2825 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
2826 with the actual contents of the correspondending make variable.
2827 * util/grub-mkrescue.in (pkglib_DATA): New variable.
2828 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
2829 specifying `*.lst' and `efiemu??.o'
2830
0ad46fd7 28312009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
2832
2833 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
2834 after function name.
2835 Noticed by Rene Engelhard <rene@debian.org>.
2836
dc77a799
VS
28372009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
2838
2839 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
2840 (options): New variable.
2841 (iospace): Likewise.
2842 (grub_lspci_iter): List IO spaces if "-i" was given.
2843 (grub_cmd_lspci): Parse options.
2844 (GRUB_MOD_INIT(lspci)): Use extcmd.
2845 (GRUB_MOD_FINI(lspci)): Likewise.
2846
0ad46fd7 28472009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
2848
2849 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
2850 `function' keyword.
2851 Patch by Tony Mancill <tmancill@debian.org>.
2852
b5d5993b
VS
28532009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
2854
2855 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
2856 (grub_uhci_portstatus): Likewise.
2857 (grub_uhci_portstatus): Add necessary delay.
11d18281 2858 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 2859
941903f2 28602009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 2861
941903f2 2862 * commands/acpi.c (options): Fix capitalizations and/or full stops.
2863 (GRUB_MOD_INIT): Likewise.
2864 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 2865 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
2866 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 2867 * commands/efi/loadbios.c (enable_rom_area): Likewise.
2868 (enable_rom_area): Likewise.
2869 (GRUB_MOD_INIT): Likewise.
2870 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
2871 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
2872 * commands/handler.c (GRUB_MOD_INIT): Likewise.
2873 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
2874 * commands/hexdump.c (options): Likewise.
2875 * commands/i386/cpuid.c (options): Likewise.
2876 (GRUB_MOD_INIT): Likewise.
2877 * commands/i386/pc/drivemap.c (options): Likewise.
2878 (GRUB_MOD_INIT): Likewise.
2879 * commands/i386/pc/halt (options): Likewise.
2880 (GRUB_MOD_INIT): Likewise.
2881 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
2882 * commands/i386/pc/pxecmd.c (options): Likewise.
2883 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
2884 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
2885 * commands/keystatus.c (options): Likewise.
2886 (GRUB_MOD_INIT): Likewise.
2887 * commands/loadenv.c (options): Likewise.
2888 * commands/ls.c (options): Likewise.
2889 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
2890 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
2891 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
2892 * commands/parttool.c (helpmsg): Likewise.
2893 * commands/probe.c (options): Likewise.
2894 * commands/read.c (GRUB_MOD_INIT): Likewise.
2895 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
2896 * commands/search.c (options): Likewise.
2897 * commands/sleep.c (options): Likewise.
2898 * commands/test.c (GRUB_MOD_INIT): Likewise.
2899 * commands/true.c (GRUB_MOD_INIT): Likewise.
2900 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
2901 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
2902 * lib/arg.c (help_options): Likewise.
e9bbb4e7 2903 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
2904 `$(XGETTEXT)'.
98a50553 2905 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 2906
0ad46fd7 29072009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 2908
ef3c2c3a 2909 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
2910 instead of specifying them explicit.
2911
7922f68b
RM
29122009-12-21 Robert Millan <rmh.grub@aybabtu.com>
2913
2914 * NEWS: Add grub-probe support for GNU/Hurd.
2915
537ce47f
RM
29162009-12-21 Robert Millan <rmh.grub@aybabtu.com>
2917
2918 * NEWS: gettext was added after 1.97.
2919
9b214e3a
RM
29202009-12-21 Robert Millan <rmh.grub@aybabtu.com>
2921
2922 * util/mkisofs/msdos_partition.h: New file (based on
2923 include/grub/msdos_partition.h).
2924 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
2925 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
2926 (ld_options, main): Recognize --protective-msdos-label.
2927 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
2928 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
2929 (padblock_write): If `use_protective_msdos_label' is set, patch a
2930 protective DOS-style label in the output image.
2931
2932 * util/grub-mkrescue.in: Use --protective-msdos-label.
2933
e9309813
RM
29342009-12-21 Robert Millan <rmh.grub@aybabtu.com>
2935
2936 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
2937 boot.
2938
0ae56929
RM
29392009-12-21 Robert Millan <rmh.grub@aybabtu.com>
2940
2941 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
2942 variables.
2943 (ld_options, main): Recognize `--embedded-boot'.
2944 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
2945 declarations.
2946 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
2947 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
2948 (padblock_write): Likewise. Rewrite to support embedded boot image.
2949
2950 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
2951 for BIOS-based disk boot instead of only ElTorito.
2952
b15937b1
RM
29532009-12-21 Robert Millan <rmh.grub@aybabtu.com>
2954
2955 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
2956 build (not needed for bootstrap).
2957
52cc3ce0
RM
29582009-12-21 Robert Millan <rmh.grub@aybabtu.com>
2959
2960 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
2961 from i386-pc build (not needed for bootstrap).
2962 Rewrite a pair of strings.
2963
36f5ff04
RM
29642009-12-21 Robert Millan <rmh.grub@aybabtu.com>
2965
2966 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
2967
973c6c85 29682009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
2969
2970 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
2971
05d21547
AB
29722009-12-21 Andreas Born <futur.andy@googlemail.com>
2973
2974 * kern/env.c (grub_env_context_open): Mark exported variable for
2975 reexport.
2976
0175d51f
AB
29772009-12-21 Andreas Born <futur.andy@googlemail.com>
2978
2979 * kern/env.c (grub_env_export): Create nonexistent variables before
2980 exporting.
2981
7f39d92f 29822009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 2983
7f39d92f 2984 * include/grub/auth.h: Include `<grub/i18n.h>'.
2985 (GRUB_GET_PASSWORD): Gettextizze string.
2986 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
2987 menu_text.c.
2988 (grub_utf8_to_ucs4_alloc): Fix indentation.
2989 (grub_print_ucs4): Likewise.
2990 (grub_getstringwidth): Likewise.
2991 (print_message_indented): New declaration.
2992 * normal/auth.c: Include `<grub/i18n.h>'.
2993 (grub_auth_check_authentication): Gettexttize string.
2994 * normal/cmdline.c: Include `<grub/i18n.h>'.
2995 (grub_cmdline_get): Gettextizze.
2996 * normal/color.c: Include `<grub/i18n.h>'.
2997 (grub_parse_color_name_pair): Gettexttize strings.
2998 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
2999 string (use `print_message_indented').
3000 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
3001 `include/grub/normal.h'.
3002 (print_message_indented): Renamed to ...
3003 (grub_print_message_indented): ... this. Remove `static' qualifer (now
3004 used in normal/main.c).
3005 (print_message): Use `grub_print_message_indented' instead of
3006 `print_message_indented'.
3007 (print_timeout): Likewise.
3008 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
3009 (grub_normal_print_device_info): Gettexttize strings.
3010 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
3011
3041d898
VS
30122009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
3013
3014 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
3015 of arguments. Return number of tokens and not arguments. All users
3016 updated.
3017
de15bf8e
VS
30182009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
3019
3020 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
3021 non-MSDOS paritions.
3022
e0a6ca52
VS
30232009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
3024
3025 * include/grub/types.h (UNUSED): Removed since it conflicts with
3026 NetBSD headers. All users changed to direct __attribute__ ((unused)).
3027 Reported by Grégoire Sutre.
3028
b99518d1 30292009-12-19 Carles Pina i Estany <carles@pina.cat>
3030
3031 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
3032 (grub_print_ucs4_alloc): Likewise.
3033 (grub_getstringwidth): Likewise.
3034 * normal/main.c (grub_normal_init_page): Gettextize version string.
3035 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
3036 (getstringwidth): Renamed to ...
3037 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
3038 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
3039 (grub_print_ucs4): Remove `static' qualifer (now used in
3040 normal/main.c).
3041 * po/POTFILES: Add normal/main.c.
3042
bfd5e52b 30432009-12-19 Carles Pina i Estany <carles@pina.cat>
3044
3045 * normal/menu_text.c (STANDARD_MARGIN): New macro.
3046 (print_message_indented): Add `margin_left' and `margin_right'
3047 parameters.
3048 (print_message): Update `print_message_indented' calls. Adds '\n' to the
3049 strings.
3050 (print_timeout): Use `print_message_indented' to print the message.
3051 Deletes `second_stage' parameter.
3052 (run_menu): Update `print_timeout' calls.
3053
5a1ad2b9
VS
30542009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
3055
3056 Fix console palette on OpenFirmware.
3057
3058 * term/ieee1275/ofconsole.c (MAX): Removed.
3059 (colors): Redone based on VGA palette.
3060 (grub_ofconsole_setcolor): Discard brightness bit since only 8
3061 colors are supported.
3062 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
3063
b045f00a
VS
30642009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
3065
3066 Fix potential EfiEmu double prepare.
3067
3068 * efiemu/main.c (prepared): New variable
3069 (grub_efiemu_unload): Set prepare to '0'.
3070 (grub_efiemu_prepare): Return if already prepared. Set prepared.
3071
3072 set_virtual_address_map support.
3073
3074 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
3075 prototype.
3076 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
3077 prototype.
3078 (grub_efiemu_crc32): Likewise.
3079 (grub_efiemu_crc64): Likewise.
3080 (grub_efiemu_set_virtual_address_map): Likewise.
3081 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
3082 New definition.
3083 (grub_autoefi_set_virtual_address_map): Likewise.
3084 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
3085 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
3086 Restructure flow to accomodate it.
3087 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
3088 (grub_efiemu_crc): Recompute CRC32.
3089 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
3090 (efiemu_ptv_relocated): ... this. Made global. All users updated.
3091 * efiemu/symbols.c (relocated_handle): New variable.
3092 (grub_efiemu_free_syms): Free relocated_handle.
3093 (grub_efiemu_alloc_syms): Allocate relocated_handle.
3094 (grub_efiemu_write_sym_markers): New function.
3095 (grub_efiemu_set_virtual_address_map): Likewise.
3096
3097 Newer XNU parameters.
3098
3099 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
3100 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
3101 (grub_xnu_fill_devicetree): New prototype.
3102 (grub_xnu_heap_real_start): New variable.
3103 * loader/xnu.c (get_name_ptr): New function.
3104 (grub_xnu_load_driver): Fill namelen and name.
3105
3106 64-bit xnu support.
3107
3108 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
3109 and 'loader/macho64.c'.
3110 * conf/i386-pc.rmk: Likewise.
3111 * conf/x86_64-efi.rmk: Likewise.
3112 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
3113 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
3114 * include/grub/macho.h (grub_macho_segment64): New structure.
3115 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
3116 (grub_macho_size32): ... to this.
3117 (grub_macho32_get_entry_point): Renamed from ...
3118 (grub_macho_get_entry_point32): ... to this.
3119 (grub_macho_contains_macho64): New prototype.
3120 (grub_macho_size64): Likewise.
3121 (grub_macho_get_entry_point64): Likewise.
3122 (grub_macho32_load): Renamed from ...
3123 (grub_macho_load32): ... to this.
3124 (grub_macho32_filesize): Renamed from ...
3125 (grub_macho_filesize32): ... to this.
3126 (grub_macho32_readfile): Renamed from ...
3127 (grub_macho_readfile32): ... to this.
3128 (grub_macho_filesize64): New prototype.
3129 (grub_macho_readfile64): Likewise.
3130 (grub_macho_parse32): Likewise.
3131 (grub_macho_parse64): Likewise.
3132 * loader/macho.c: Split into ...
3133 * loader/machoXX.c: ... and this. Replace 32 with XX.
3134 * loader/macho32.c: New file.
3135 * loader/macho64.c: Likewise.
3136 * loader/xnu.c (grub_xnu_is_64bit): New variable.
3137 (grub_cmd_xnu_kernel): Make 32-bit only.
3138 (grub_cmd_xnu_kernel64): New function.
3139 (grub_xnu_load_driver): Support Mach-O 64.
3140 (grub_cmd_xnu_mkext): Likewise.
3141 * util/grub.d/30_os-prober.in (osx_entry): New function.
3142 Generate entries for 64-bit boot too.
3143
3144 Eliminate ad-hoc tree format in XNU and EfiEmu.
3145
3146 * efiemu/main.c (grub_efiemu_prepare): Update comment.
3147 * efiemu/pnvram.c: Rewritten to use environment variables.
3148 All users updated.
3149
3150 Inline utf16_to_utf8.
3151
3152 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
3153 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
3154 All users updated.
3155 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
3156
3157 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
3158 * commands/usbtest.c (grub_usb_get_string): ... move here.
3159 (usb_print_str): Fix error handling.
3160 * include/grub/usb.h (grub_usb_get_string): Remove.
3161
3162 UTF-8 to UTF-16 transformation.
3163
3164 * conf/common.rmk (pkglib_MODULES): Add charset.mod
3165 (charset_mod_SOURCES): New variable.
3166 (charset_mod_CFLAGS): Likewise.
3167 (charset_mod_LDFLAGS): Likewise.
3168 * include/grub/utf.h: New file.
3169 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
3170
3171 Support for device properties.
3172
3173 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
3174 (grub_xnu_devprop_device_header): Likewise.
3175 (grub_xnu_devprop_device_descriptor): Likewise.
3176 (grub_xnu_devprop_add_device): New prototype.
3177 (grub_xnu_devprop_remove_device): Likewise.
3178 (grub_xnu_devprop_remove_property): Likewise.
3179 (grub_xnu_devprop_add_property_utf8): Likewise.
3180 (grub_xnu_devprop_add_property_utf16): Likewise.
3181 (grub_cpu_xnu_init): Likewise.
3182 (grub_cpu_xnu_fini): Likewise.
3183 (grub_cpu_xnu_unload): Likewise.
3184 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
3185 (property_descriptor): Likewise.
3186 (devices): New variable.
3187 (grub_xnu_devprop_remove_property): New function.
3188 (grub_xnu_devprop_add_device): Likewise.
3189 (grub_xnu_devprop_remove_device): Likewise.
3190 (grub_xnu_devprop_add_property): Likewise.
3191 (grub_xnu_devprop_add_property_utf8): Likewise.
3192 (grub_xnu_devprop_add_property_utf16): Likewise.
3193 (hextoval): Likewise.
3194 (grub_cpu_xnu_fill_devprop): Likewise.
3195 (grub_cmd_devprop_load): Likewise.
3196 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
3197 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
3198 (cmd_devprop_load): New variable.
3199 (grub_cpu_xnu_init): New function.
3200 (grub_cpu_xnu_fini): Likewise.
3201 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
3202 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
3203 (grub_cmd_xnu_devtree): Likewise.
3204 (hextoval): New function.
3205 (unescape): Likewise.
3206 (grub_xnu_fill_devicetree): Likewise.
3207
3208 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
3209 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
3210
0945f181
VS
32112009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
3212
3213 Workaround for broken ATI VBE.
3214
3215 * video/i386/pc/vbe.c (last_set_mode): New variable.
3216 (grub_vbe_set_video_mode): Set 'last_set_mode'.
3217 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
3218 (grub_video_vbe_setup): Don't check for reserved flag.
3219
0ad46fd7 32202009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
3221
3222 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
3223 the `find' command.
3224
c179ebe4
VS
32252009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
3226
3227 UUID support for HFS.
3228
3229 * fs/hfs.c (grub_hfs_uuid): New function.
3230 (grub_hfs_fs): New value .uuid.
3231 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
3232
0ad46fd7 32332009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
3234
3235 Fix a segfault with parsing unknown long options.
3236
3237 * util/grub-mkrelpath.c (options): Zero terminate it.
3238
c4a3e41a
CPE
32392009-12-13 Carles Pina i Estany <carles@pina.cat>
3240
3241 * include/grub/misc.h (grub_puts): New declaration.
3242 (grub_puts_): Likewise.
a22008a6 3243 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
3244 (grub_puts_): Likewise.
3245
2e8a7602
RM
32462009-12-13 Robert Millan <rmh.grub@aybabtu.com>
3247
3248 * util/grub-probe.c (probe): Improve error message.
3249
b50b77b9
RM
32502009-12-13 Robert Millan <rmh.grub@aybabtu.com>
3251
3252 * loader/i386/multiboot_elfxx.c
3253 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
3254 initialization.
3255
32562009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3257
3258 Relocator framework
3259
3260 * loader/i386/xnu_helper.S: Removed. All users updated.
3261 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
3262 (relocator_mod_SOURCES): New variable.
3263 (relocator_mod_CFLAGS): Likewise.
3264 (relocator_mod_LDFLAGS): Likewise.
3265 (relocator_mod_ASFLAGS): Likewise.
3266 * conf/x86_64.rmk: Likewise.
3267 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
3268 (grub_multiboot_payload_entry_offset): Likewise.
3269 (grub_multiboot_forward_relocator): Likewise.
3270 (grub_multiboot_forward_relocator_end): Likewise.
3271 (grub_multiboot_backward_relocator): Likewise.
3272 (grub_multiboot_backward_relocator_end): Likewise.
3273 (grub_multiboot_payload_eip): New variable.
3274 (grub_multiboot_payload_orig): Likewise.
3275 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
3276 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
3277 * include/grub/i386/memory.h
3278 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
3279 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
3280 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
3281 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
3282 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
3283 * include/grub/i386/relocator.h: New file.
3284 * include/grub/x86_64/relocator.h: Likewise.
3285 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
3286 (XNU_RELOCATOR): New macro.
3287 (grub_xnu_launcher_start): Remove.
3288 (grub_xnu_launcher_end): Likewise.
3289 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
3290 (grub_xnu_heap_real_start): Remove.
3291 (grub_xnu_heap_start): Change to void *. All users updated.
3292 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
3293 * lib/i386/relocator.c: New file.
3294 * lib/i386/relocator_asm.S: Likewise.
3295 * lib/i386/relocator_backward.S: Likewise.
3296 * lib/mips/relocator.c: Likewise.
3297 * lib/mips/relocator_asm.S: Likewise.
3298 * lib/relocator.c: Likewise.
3299 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
3300 (entry): Removed.
3301 (playground): Likewise.
3302 (grub_multiboot_payload_orig): New variable.
3303 (grub_multiboot_payload_dest): Likewise.
3304 (grub_multiboot_payload_size): Likewise.
3305 (grub_multiboot_payload_eip): Likewise.
3306 (grub_multiboot_payload_esp): Likewise.
3307 (grub_multiboot_boot): Use grub_relocator32_boot.
3308 (grub_multiboot_unload): Free relocators.
3309 (grub_multiboot): Setup stack. Use relocators.
3310 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
3311 (grub_multiboot_load_elfXX): Use relocators.
3312 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
3313 (grub_multiboot_payload_size): Likewise.
3314 (grub_multiboot_payload_dest): Likewise.
3315 (grub_multiboot_payload_entry_offset): Likewise.
3316 (grub_multiboot_forward_relocator): Likewise.
3317 (grub_multiboot_backward_relocator): Likewise.
3318 (grub_multiboot_real_boot): Likewise.
3319 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
3320 (grub_xnu_entry_point): Likewise.
3321 (grub_xnu_arg1): Likewise.
3322 (grub_xnu_stack): Likewise.
3323 (grub_xnu_launch): Removed.
3324 (grub_xnu_boot_resume): New function.
3325 (grub_xnu_boot): Use relocators.
3326 * loader/i386/xnu_helper.S: Removed.
3327 * loader/xnu.c (grub_xnu_heap_start): New variable.
3328 (grub_xnu_heap_size): Likewise.
3329 (grub_xnu_heap_malloc): Use relocators.
3330 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
3331
29eb90c6
VS
33322009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3333
3334 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
3335 anything.
3336
31027430
CPE
33372009-12-13 Carles Pina i Estany <carles@pina.cat>
3338
3339 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
3340 GRUB_ERR_NONE before calling grub_env_set.
3341
dc0c71d9
RM
33422009-12-12 Robert Millan <rmh@aybabtu.com>
3343
3344 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
3345 * genmk.rb (video): New variable.
3346 (CLEANFILES, VIDEOFILES): Add #{video}.
3347 (#{video}): New target rule.
3348 * genvideolist.sh: New file.
3349 * Makefile.in (pkglib_DATA): Add video.lst.
3350 (video.lst): New target rule.
3351 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
3352 `video.lst'.
3353 * util/grub.d/30_os-prober.in: Replace `vbe' with
3354 ${GRUB_VIDEO_BACKEND}.
3355
2a4bfcf0
RM
33562009-12-11 Robert Millan <rmh.grub@aybabtu.com>
3357
3358 * THANKS: Add David Miller.
3359
2a3aa4d5
RM
33602009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
3361
3362 libpciaccess support.
3363
3364 * Makefile.in (LIBPCIACCESS): New variable.
3365 (enable_grub_emu_pci): Likewise.
3366 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
3367 util/pci.c and commands/lspci.c.
3368 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
3369 * configure.ac (grub-emu-pci): New option.
3370 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
3371 (grub_pci_device_unmap_range): Likewise.
3372 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
3373 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
3374 (grub_pci_address_t) [!GRUB_UTIL]: New type.
3375 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
3376 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
3377 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
3378 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
3379 * include/grub/pciutils.h: New file.
3380 * util/pci.c: Likewise.
3381
0ad46fd7 33822009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
3383
3384 * util/misc.c: Don't include <errno.h> twice.
3385
0ad46fd7 33862009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
3387
3388 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
3389 name in an error message.
3390 (grub_biosdisk_rw): Likewise.
3391
2e59983c
VS
33922009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3393
3394 Eliminate NTFS 4Gib barrier.
3395
3396 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
3397 (read_run_data): Likewise.
3398 (grub_ntfs_read_run_list): Likewise.
3399 (grub_ntfs_read_block): Likewise.
3400 (grub_ntfs_iterate_dir): Likewise.
3401 (read_mft): Likewise.
3402 (read_data): Likewise.
3403 Use COM_LOG_LEN.
3404 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
3405 to avoid 64-bit division
3406 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
3407 (grub_ntfs_rlst): Use grub_disk_addr_t.
3408
71ee178a
VS
34092009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3410
3411 Eliminate grub-fstest 4Gib barrier.
3412
3413 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
3414 (read_file): Fix error reporting.
3415
2520d4b8
VS
34162009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3417
3418 Eliminate hexdump 4Gib barrier.
3419
3420 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
3421 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
3422
e1f27065
VS
34232009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3424
3425 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
3426 Fixes amarsh bug.
3427
1a0f7f45
RM
34282009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
3429
3430 Remove miscellaneous files in distclean target.
3431
3432 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
3433
c631d9fb
CW
34342009-12-09 Colin Watson <cjwatson@ubuntu.com>
3435
3436 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
3437 if they're already set. This resolves the conflict between my
3438 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
3439 fixing the --grub-probe option again.
3440 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
3441 change on 2009-10-06, so that we now once again source
3442 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
3443
7c7b6106
RM
34442009-12-08 Robert Millan <rmh.grub@aybabtu.com>
3445
3446 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
3447 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
3448 `util/devicemap.c'.
3449
e3069ec1
CPE
34502009-12-08 Carles Pina i Estany <carles@pina.cat>
3451
3452 * include/grub/misc.h (grub_printf_): New declaration.
3453 * kern/misc.c (grub_printf_): New definition.
3454 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
3455 instead of `grub_printf' and `_'.
3456 * normal/menu_entry.c (store_completion): Likewise.
3457 (run): Likewise.
3458 (grub_menu_entry_run): Likewise.
3459 * normal/menu_text.c (grub_wait_after_message): Likewise.
3460 (notify_booting): Likewise.
3461 (notify_fallback): Likewise.
3462 (notify_execution_failure): Likewise.
3463
d6ceebf1
CW
34642009-12-07 Colin Watson <cjwatson@ubuntu.com>
3465
3466 * configure.ac: Check for vasprintf.
3467 * util/misc.c (asprintf): Move allocation from here ...
3468 (vasprintf): ... to here. New function.
3469 (xasprintf): New function.
3470 * include/grub/util/misc.h (vasprintf, xasprintf): Add
3471 prototypes.
3472 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
3473 * util/grub-mkfont.c (write_font): Likewise.
3474 * util/grub-probe.c (probe): Likewise.
3475 * util/hostdisk.c (make_device_name): Likewise.
3476
de6daa8b
DM
34772009-12-06 David S. Miller <davem@sunset.davemloft.net>
3478
3479 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
3480 anything even prefixed with 'cdrom' as a cdrom.
3481
0ad46fd7 34822009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
3483
3484 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
3485 mount points.
3486
98d3dc02
CPE
34872009-12-05 Carles Pina i Estany <carles@pina.cat>
3488
3489 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
3490 grub_gettext_msg_list.
3491 (grub_gettext_gettranslation_from_position): Return const char *
3492 and not char *.
a2c1332b 3493 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
3494 returns from the list if existing there.
3495 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
3496 (grub_gettext_delete_list): Delete the list.
3497 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
3498 lang environment variable is changed.
3499 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
3500
b283f108
VS
35012009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
3502
3503 Rename kernel.mod to kernel.img.
3504
3505 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
3506 (kernel_mod_EXPORTS): Rename to ...
3507 (kernel_img_EXPORTS): ... this.
3508 (kernel_mod_SOURCES): Rename to ...
3509 (kernel_img_SOURCES): ... this.
3510 (kernel_mod_HEADERS): Rename to ...
3511 (kernel_img_HEADERS): ... this. All users updated.
3512 (kernel_mod_CFLAGS): Rename to ...
3513 (kernel_img_CFLAGS): ... this.
3514 (kernel_mod_ASFLAGS): Rename to ...
3515 (kernel_img_ASFLAGS): ... this.
3516 (kernel_mod_LDFLAGS): Rename to ...
3517 (kernel_img_LDFLAGS): ... this.
3518 * conf/x86_64-efi.rmk: Likewise.
3519 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
3520 (read_kernel_image): ... this. All users updated.
3521 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
3522
69055f8a
CPE
35232009-12-05 Carles Pina i Estany <carles@pina.cat>
3524
3525 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
3526 (print_spaces): New function.
3527 (grub_print_ucs4): New function.
3528 (getstringwidth): New function.
3529 (print_message_indented): New function.
3530 (print_message): Gettexttize strings using print_message_indented.
3531 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
3532 width.
3533 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 3534 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
3535 Gettextize.
3536 * normal/menu_entry.c (store_completion): Cleanup the gettextized
3537 string.
3538 (run): Likewise.
3539 (grub_menu_entry_run): Likewise.
3540 * PO/POTFILES: Add normal/menu_entry.c.
3541
f616f51c
VS
35422009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
3543
3544 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
3545
57bbe3be
CPE
35462009-12-05 Carles Pina i Estany <carles@pina.cat>
3547
3548 * util/grub-install.in: Install gettext .mo files.
3549 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
3550
013d67a1
CPE
35512009-12-05 Carles Pina i Estany <carles@pina.cat>
3552
3553 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
3554 grub_dprintf.
3555
fb954db0
RM
35562009-12-05 Robert Millan <rmh.grub@aybabtu.com>
3557
3558 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
3559 non-firmware-dependant one in realmode.S takes precedence.
3560
6b8474f8
RM
35612009-12-04 Robert Millan <rmh.grub@aybabtu.com>
3562
3563 * commands/halt.c: Replace misc arch-specific headers with
3564 `<grub/misc.h>'.
3565 * commands/reboot.c: Likewise.
3566 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
3567 `<grub/misc.h>'.
3568 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
3569 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
3570 (kernel_img_SOURCES): ... to here.
3571
3572 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
3573 * include/grub/i386/pc/init.h: Likewise.
3574 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
3575 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
3576
3577 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
3578
3579 * include/grub/i386/halt.h: Remove.
3580 * include/grub/i386/reboot.h: Likewise.
3581
3582 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
3583
4b2e6ca2
DM
35842009-12-03 David S. Miller <davem@sunset.davemloft.net>
3585
3586 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
3587 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
3588 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
3589 "progname.h"
3590 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
3591 * util/sparc64/ieee1275/grub-setup.c: Likewise.
3592 (usage): Add missing comma in printf.
3593
5239348f
RM
35942009-12-02 Robert Millan <rmh.grub@aybabtu.com>
3595
3596 Use the same reboot approach on i386 coreboot and qemu as we do on
3597 BIOS.
3598
3599 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
3600 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
3601 * kern/i386/reboot.c: Remove.
3602 * include/grub/i386/reboot.h (grub_reboot): Export function.
3603 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
3604 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
3605 0xf000:0xfff0 instead of 0xffff:0x0000.
3606 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
3607 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
3608
ef34cbd4
RM
36092009-11-30 Robert Millan <rmh.grub@aybabtu.com>
3610
3611 Fix $srcdir != $objdir build.
3612
3613 * Makefile.in (po/%.po): Rewrite as ...
3614 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
3615
dc9837ea
ST
36162009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
3617
3618 Fix GNU/Hurd grub-install crash.
3619 * util/grub-probe.c (probe): Try to access `path' only when it is not
3620 NULL.
3621
2f857f98
VS
36222009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
3623
3624 Correct module naming.
3625
3626 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
3627 (GRUB_MOD_INIT(efi_uga)): ... to this
3628 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
3629 (GRUB_MOD_FINI(efi_uga)): ... to this
3630 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
3631 (GRUB_MOD_INIT(efi_gop)): ... to this
3632 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
3633 (GRUB_MOD_FINI(efi_gop)): ... to this
3634
c5448046
RM
36352009-11-28 Robert Millan <rmh.grub@aybabtu.com>
3636
3637 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
3638 translatable.
3639 (usage): Translate `arg' strings using gettext().
3640 Thanks to Jordi Mallach for the suggestion.
3641
c85184ad
VS
36422009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
3643
3644 GOP support. Based on patch from Bean
3645 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
3646
3647 * video/efi_gop.c: New file.
3648 * include/grub/efi/graphics_output.h: Likewise.
3649 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
3650 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
3651 variables.
3652 * conf/x86_64-efi.rmk: Likewise.
3653
8a4c48d8
VS
36542009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
3655
3656 Rename efi_fb to efi_uga.
3657
3658 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
3659 'efi_uga.mod'.
3660 (efi_fb_mod_SOURCES): Rename this ...
3661 (efi_uga_mod_SOURCES): ... to this.
3662 (efi_fb_mod_CFLAGS): Rename this ...
3663 (efi_uga_mod_CFLAGS): ... to this.
3664 (efi_fb_mod_LDFLAGS): Rename this ...
3665 (efi_uga_mod_LDFLAGS): ... to this.
3666 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
3667 'efi_uga.mod'.
3668 (efi_fb_mod_SOURCES): Rename this ...
3669 (efi_uga_mod_SOURCES): ... to this.
3670 (efi_fb_mod_CFLAGS): Rename this ...
3671 (efi_uga_mod_CFLAGS): ... to this.
3672 (efi_fb_mod_LDFLAGS): Rename this ...
3673 (efi_uga_mod_LDFLAGS): ... to this.
3674 * video/efi_fb.c: Move this ...
3675 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
3676
fb6c1a7b
RM
36772009-11-27 Robert Millan <rmh.grub@aybabtu.com>
3678
3679 * po/README: New file. Explain our PO file workflow.
3680
3bc7896c
RM
36812009-11-27 Robert Millan <rmh.grub@aybabtu.com>
3682
3683 * po/ChangeLog: Remove. Move relevant entries back to ...
3684 * ChangeLog: ... here.
3685 * po/ca.po: Remove (now handled by TLP).
3686 * po/id.po: Likewise.
3687 * po/zh_CN.po: Likewise.
3688 * Makefile.in (LINGUAS): Initialize in a way that supports
3689 empty set.
3690
9ed4841d
RM
36912009-11-27 Robert Millan <rmh.grub@aybabtu.com>
3692
3693 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
3694 reliing on po/LINGUAS.
3695 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
3696 (po/%.po): ... this.
3697
0ad46fd7 36982009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
3699
3700 * util/i386/efi/grub-mkimage.c: Include "progname.h".
3701 (main): Use `program_name' instead of nonexistent `progname'.
3702
e30dd392
FZ
37032009-11-26 Felix Zielcke <fzielcke@z-51.de>
3704
3705 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
3706 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
3707
7656de4f
RM
37082009-11-26 Robert Millan <rmh.grub@aybabtu.com>
3709
3710 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
3711 commit.
3712 * conf/i386-efi.rmk: Likewise.
3713 * conf/i386-ieee1275.rmk: Likewise.
3714 * conf/powerpc-ieee1275.rmk: Likewise.
3715 * conf/sparc64-ieee1275.rmk: Likewise.
3716 * conf/x86_64-efi.rmk: Likewise.
3717
db77c4d4
FZ
37182009-11-26 Felix Zielcke <fzielcke@z-51.de>
3719
3720 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
3721
a755bb04
FZ
37222009-11-26 Felix Zielcke <fzielcke@z-51.de>
3723
3724 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
3725
8a4c07fd
RM
37262009-11-26 Robert Millan <rmh.grub@aybabtu.com>
3727
3728 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
3729 (grub_mkdevicemap_SOURCES): New variable.
3730 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
3731 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
3732 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
3733 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
3734 (grub_mkdevicemap_SOURCES): Remove.
3735 * conf/i386-efi.rmk: Likewise.
3736 * conf/i386-ieee1275.rmk: Likewise.
3737 * conf/i386-pc.rmk: Likewise.
3738 * conf/powerpc-ieee1275.rmk: Likewise.
3739 * conf/sparc64-ieee1275.rmk: Likewise.
3740 * conf/x86_64-efi.rmk: Likewise.
3741 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
3742 (usage): Fix strings to use `program_name'.
3743 (main): Initialize gettext.
3744 * util/grub-editenv.c: Likewise.
3745 * util/grub-emu.c: Likewise.
3746 * util/grub-fstest.c: Likewise.
3747 * util/grub-mkdevicemap.c: Likewise.
3748 * util/grub-mkfont.c: Likewise.
3749 * util/grub-mkrelpath.c: Likewise.
3750 * util/grub-pe2elf.c: Likewise.
3751 * util/grub-probe.c: Likewise.
3752 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
3753 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
3754 * util/sparc64/ieee1275/grub-setup.c: Likewise.
3755
3756 * util/misc.c: Include `"progname.h"'.
3757 (progname): Remove variable.
3758 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
3759
6f61ed55
FZ
37602009-11-25 Felix Zielcke <fzielcke@z-51.de>
3761
3762 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
3763 printf and print a newline after the menuentry header line.
3764 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
3765
f022876b
FZ
37662009-11-25 Felix Zielcke <fzielcke@z-51.de>
3767
3768 autoconf >= 2.60 support $(localedir).
3769
3770 * INSTALL: Note that autoconf 2.60 is required.
3771 * configure.ac (AC_PREREQ): Bump to 2.60.
3772 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
3773 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
3774
6717926e
YB
37752009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
3776
3777 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
3778 aclocal is run.
3779
08806a54
RM
37802009-11-25 Robert Millan <rmh.grub@aybabtu.com>
3781
3782 * normal/main.c (grub_normal_read_line): Fix off-by-one
3783 buffer overflow.
3784
13b33fba
RM
37852009-11-25 Robert Millan <rmh.grub@aybabtu.com>
3786
3787 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
3788 "parser.grub" in grub_command_execute() call.
3789
4a8572e9
CPE
37902009-11-24 Carles Pina i Estany <carles@pina.cat>
3791
3792 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
3793 * conf/i386-efi.rmk: Likewise.
3794 * conf/i386-ieee1275.rmk: Likewise.
3795 * conf/i386-pc.rmk: Likewise.
3796 * conf/powerpc-ieee1275.rmk: Likewise.
3797 * conf/sparc64-ieee1275.rmk: Likewise.
3798 * conf/x86_64-efi.rmk: Likewise.
3799 * gettext/gettex.c: Include <grub/i18n.h>.
3800 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
3801 here ...
3802 * include/grub/i18n.h: ... to here
3803 * include/grub/i18n.h: ... to here.
3804 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 3805 (grub_gettext_dummy): Move above user.
4a8572e9 3806
bee48093
FZ
38072009-11-24 Felix Zielcke <fzielcke@z-51.de>
3808
3809 * util/Makefile.in (install-local): Convert a `for' into a normal
3810 shell expansion.
3811
a031e91c
RM
38122009-11-24 Robert Millan <rmh.grub@aybabtu.com>
3813
3814 * autogen.sh: Add automake call.
3815 * config.guess: Remove.
3816 * config.sub: Likewise.
3817 * install-sh: Likewise.
3818
26bec39d
FZ
38192009-11-24 Felix Zielcke <fzielcke@z-51.de>
3820
3821 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
3822
8e2532fd
FZ
38232009-11-24 Felix Zielcke <fzielcke@z-51.de>
3824
3825 * util/Makefile.in (install-local): Convert a make `$(foreach)'
3826 function to a normal shell `for'.
3827
fefa1b7d
FZ
38282009-11-24 Felix Zielcke <fzielcke@z-51.de>
3829
3830 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
3831
4501250b
FZ
38322009-11-24 Felix Zielcke <fzielcke@z-51.de>
3833
3834 * util/grub-mkrelpath.c: New file.
3835 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
3836 (grub_mkrelpath_SOURCES): New variable.
3837 * include/grub/util/misc.h: New function prototype.
3838 * util/misc.c (make_system_path_relative_to_its_root): New function.
3839
3840 * util/grub-mkconfig_lib.in (bindir): New variable.
3841 (grub_mkrelpath): Likewise.
3842 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
3843
3844 * util/probe.c (probe): Make the file path relative to its root.
3845 Change a info message to use the GRUB path. Enable again the
3846 check if we can read the file with GRUB facilities.
3847
3848 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
3849 to its root.
3850
11d9778b
FZ
38512009-11-24 Felix Zielcke <fzielcke@z-51.de>
3852
3853 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
3854 platform.
3855
4465287d
FZ
38562009-11-24 Felix Zielcke <fzielcke@z-51.de>
3857
3858 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
3859 strncmp().
3860
62b47f22
FZ
38612009-11-24 Felix Zielcke <fzielcke@z-51.de>
3862
3863 * util/getroot.c (grub_util_is_dmraid): New function.
3864 (grub_util_get_dev_abstraction): Treat dmraid and multipath
3865 devices as normal ones, not as LVM.
3866
1eafb9b9 38672009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
3868
3869 * conf/common.rmk: Add grub-gettext_lib target and updates
3870 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
3871 LDFLAGS.
3872 * gettext/gettext.c: New file. (Reads mo files).
3873 * include/grub/file.h (grub_file_pread): New prototype.
3874 * include/grub/i18n.h (_): New prototype.
3875 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
3876 prototypes.
3877 * kern/misc.c (grub_gettext_dummy): New function.
3878 * normal/menu_text.c: Include <grub/i18n.h>.
3879 * normal/menu_text.c (print_timeout): Gettexttize string.
3880 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
3881 * po/POTFILES: Add `normal/menu_text.c'.
3882 * po/ca.po: Add new translations.
c3ea6bd4
CPE
3883 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
3884 gettext module and defines locale_dir and lang in grub.cfg.
3885 * NEWS: Add gettext support.
3886
0fdb2568
RM
38872009-11-23 Robert Millan <rmh.grub@aybabtu.com>
3888
3889 * util/hostdisk.c: Include `<grub/i18n.h>'.
3890 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
3891 (make_device_name): Rewrite using asprintf.
3892 (convert_system_partition_to_system_disk): Replace 0 with NULL.
3893 (find_system_device): If a device is not found, generate one just
3894 by reusing the OS path name.
3895 (read_device_map): Make it permissible for device.map not to exist.
3896
f515aa62
RM
38972009-11-23 Robert Millan <rmh.grub@aybabtu.com>
3898
3899 * script/sh/execute.c: Move from here ...
3900 * script/execute.c: ... to here. Update all users.
3901 * script/sh/function.c: Move from here ...
3902 * script/function.c: ... to here. Update all users.
3903 * script/sh/lexer.c: Move from here ...
3904 * script/lexer.c: ... to here. Update all users.
3905 * script/sh/main.c: Move from here ...
3906 * script/main.c: ... to here. Update all users.
3907 * script/sh/parser.y: Move from here ...
3908 * script/parser.y: ... to here. Update all users.
3909 * script/sh/script.c: Move from here ...
3910 * script/script.c: ... to here. Update all users.
3911
f84b481b
RM
39122009-11-23 Robert Millan <rmh.grub@aybabtu.com>
3913
3914 * configure.ac: Detect all `emu' platforms. Define
3915 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
3916 --enable-grub-emu logic. Disable include/grub/machine
3917 symlink on `emu' platforms.
3918
3919 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
3920 * gensymlist.sh.in: Likewise.
3921
3922 * include/grub/i386/coreboot/machine.h: Remove file.
3923 * include/grub/i386/efi/machine.h: Likewise.
3924 * include/grub/i386/ieee1275/machine.h: Likewise.
3925 * include/grub/i386/pc/machine.h: Likewise.
3926 * include/grub/i386/qemu/machine.h: Likewise.
3927 * include/grub/powerpc/ieee1275/machine.h: Likewise.
3928 * include/grub/sparc64/ieee1275/machine.h: Likewise.
3929 * include/grub/x86_64/efi/machine.h: Likewise.
3930
3931 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
3932 * commands/halt.c: Likewise.
3933 * commands/reboot.c: Likewise.
3934 * include/grub/autoefi.h: Likewise.
3935 * include/grub/i386/at_keyboard.h: Likewise.
3936 * include/grub/i386/kernel.h: Likewise.
3937 * include/grub/i386/loader.h: Likewise.
3938 * include/grub/i386/pc/memory.h: Likewise.
3939 * kern/dl.c: Likewise.
3940 * kern/i386/coreboot/init.c: Likewise.
3941 * loader/i386/bsd.c: Likewise.
3942 * loader/i386/linux.c: Likewise.
3943 * loader/multiboot_loader.c: Likewise.
3944 * term/i386/pc/serial.c: Likewise.
3945 * term/usb_keyboard.c: Likewise.
3946
3947 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
3948 `<grub/machine/machine.h>'
3949 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
3950 * util/misc.c: Remove `<grub/machine/machine.h>' and
3951 `<grub/machine/time.h>'.
3952
3953 * Makefile.in (enable_grub_emu): Remove variable.
3954 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
3955
3956 * conf/any-emu.rmk: New file.
3957 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
3958 (grub_emu_init.c): Move from here ...
3959 * conf/any-emu.rmk: ... to here.
3960
3961 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
3962 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
3963 * conf/any-emu.rmk: ... to here.
3964
4efeab03
RM
39652009-11-23 Robert Millan <rmh.grub@aybabtu.com>
3966
3967 * include/grub/parser.h (grub_parser_register): Document need
3968 of `name' parameter.
3969 * normal/main.c (grub_normal_read_line): Simplify prompt string.
3970 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
3971 "sh" to "grub".
3972
ea1dd8bf
RM
39732009-11-23 Robert Millan <rmh.grub@aybabtu.com>
3974
3975 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
3976 `$(XGETTEXT)'.
3977 * include/grub/i18n.h (N_): New macro.
3978 * util/mkisofs/mkisofs.h: Likewise.
3979 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
3980 around N_().
3981 (usage): Use gettext() to translate help strings when printing them.
3982
0c140626
RM
39832009-11-23 Robert Millan <rmh.grub@aybabtu.com>
3984
3985 Based on patch from Bean
3986 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
3987
3988 * video/efi_fb.c: New file.
3989 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
3990 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
3991 variables.
3992 * conf/x86_64-efi.rmk: Likewise.
3993
87d58298
RM
39942009-11-22 Robert Millan <rmh.grub@aybabtu.com>
3995
3996 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
3997 * util/i386/pc/grub-setup.c: Likewise.
3998
994cc3a3
ST
39992009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
4000
4001 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
4002 <hurd/fs.h>
4003 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
4004 file_get_storage_info to implement grub_guess_root_device.
4005
26a61d6a
FZ
40062009-11-21 Felix Zielcke <fzielcke@z-51.de>
4007
4008 * Makefile.in (target): Use make's builtin $(shell) function
4009 instead of calling directly $(SHELL) to create the locale directories,
4010 inside the $(foreach) function.
4011
74ff1dd5
FZ
40122009-11-21 Felix Zielcke <fzielcke@z-51.de>
4013
4014 * util/grub-mkrescue.in: Print an error and usage if output option
4015 has not been given.
4016
0b787d0e
FZ
40172009-11-21 Felix Zielcke <fzielcke@z-51.de>
4018
4019 Patch from Loïc Minier <loic.minier@ubuntu.com>.
4020 * util/grub.d/30_os-prober.in: Cope with Linux entries where
4021 root and /boot are on different devices.
4022
1164b270
RM
40232009-11-21 Robert Millan <rmh.grub@aybabtu.com>
4024
4025 Fix build for srcdir != objdir.
4026
4027 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
4028 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
4029 $(srcdir).
4030 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
4031 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
4032 reference for input.
4033
13774a2f
RM
40342009-11-21 Robert Millan <rmh.grub@aybabtu.com>
4035
4036 * util/grub-mkrescue.in: Use source directory direcly (without copiing
4037 or hardlinking it). Remove -J option, Joliet is not compatible with
4038 multiple source directories.
4039
efda854e
RM
40402009-11-21 Carles Pina i Estany <carles@pina.cat>
40412009-11-21 Robert Millan <rmh.grub@aybabtu.com>
4042
4043 * util/grub-mkrescue.in: Recognize `--override-directory' option.
4044 (process_input_dir): New function. Process an arbitrary input
4045 directory.
4046 Misc adjustments to support both "override mode" and system-wide mode.
4047
6c09890c
FZ
40482009-11-20 Felix Zielcke <fzielcke@z-51.de>
4049
4050 * configure.ac (UNIFONT_BDF): Rename to ...
4051 (FONT_SOURCE): ... this. Update all users.
4052
a797824f
FZ
40532009-11-20 Felix Zielcke <fzielcke@z-51.de>
4054
4055 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
4056 to the list of unifont files to look for.
4057
cd4f42b0
RM
40582009-11-19 Robert Millan <rmh.grub@aybabtu.com>
4059
4060 Patch from Joe Auricchio <jauricchio@gmail.com>
4061 * commands/minicmd.c (grub_mini_cmd_clear): New function.
4062 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
4063 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
4064
393c783d
FZ
40652009-11-19 Felix Zielcke <fzielcke@z-51.de>
4066
4067 * Makefile.in (install-local): Add a missing backslash.
4068
b2f1e327
FZ
40692009-11-19 Felix Zielcke <fzielcke@z-51.de>
4070
4071 * include/grub/x86_64/io.h: New file.
4072
f577f7a0
RM
40732009-11-19 Robert Millan <rmh.grub@aybabtu.com>
4074
4075 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
4076 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
4077 Include `"progname.h"'.
4078 (main): Initialize gettext.
4079 * util/i386/pc/grub-setup.c: Gettexttize.
4080 * util/i386/pc/grub-mkimage.c: Likewise.
4081
4082 * Makefile.in (po/*.po): Redefine as ...
4083 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
4084
3bc7896c
RM
4085 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
4086
c37943b6
RM
40872009-11-19 Robert Millan <rmh.grub@aybabtu.com>
4088
4089 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
4090 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
4091 (program_name): Remove.
4092 (main): Initialize gettext support.
6323f705
RM
4093 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
4094 Include `<libintl.h>'.
4095 (_): New macro.
c37943b6
RM
4096
4097 * util/mkisofs/eltorito.c: Gettexttize.
4098 * util/mkisofs/joliet.c: Likewise.
4099 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
4100 * util/mkisofs/multi.c: Likewise.
4101 * util/mkisofs/rock.c: Likewise.
4102 * util/mkisofs/tree.c: Likewise.
4103 * util/mkisofs/write.c: Likewise.
4104
3bc7896c
RM
4105 * po/POTFILES: Update with new files.
4106
5ce77c6e
RM
41072009-11-18 Robert Millan <rmh.grub@aybabtu.com>
4108
4109 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
4110 * util/mkisofs/iso9660.h: Likewise.
4111 * util/mkisofs/joliet.c: Likewise.
4112 * util/mkisofs/mkisofs.c: Likewise.
4113 * util/mkisofs/mkisofs.h: Likewise.
4114 * util/mkisofs/rock.c: Likewise.
4115 * util/mkisofs/tree.c: Likewise.
4116 * util/mkisofs/write.c: Likewise.
4117
4118 * util/mkisofs/eltorito.c (rcsid): Remove.
4119 * util/mkisofs/hash.c: Likewise.
4120 * util/mkisofs/joliet.c: Likewise.
4121 * util/mkisofs/name.c: Likewise.
4122 * util/mkisofs/rock.c: Likewise.
4123 * util/mkisofs/tree.c: Likewise.
4124 * util/mkisofs/write.c: Likewise.
4125
1dabbc77
RM
41262009-11-18 Robert Millan <rmh.grub@aybabtu.com>
4127
4128 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
4129 instead of static allocation.
4130 * util/mkisofs/match.h: Likewise.
4131
633877cb
RM
41322009-11-18 Robert Millan <rmh.grub@aybabtu.com>
4133
3bc7896c
RM
4134 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
4135 and `util/grub.d/10_linux.in'.
633877cb
RM
4136 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
4137 translatable Shell files.
4138
af1c0c85
RM
41392009-11-18 Robert Millan <rmh.grub@aybabtu.com>
4140
4141 * Makefile.in ($(srcdir)/aclocal.m4): New target.
4142
769ae37b
RM
41432009-11-17 Robert Millan <rmh.grub@aybabtu.com>
4144
4145 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 4146 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
4147 * util/grub.d/10_kfreebsd.in (bindir): New variable.
4148 Add gettext initialization.
4149 (kfreebsd_entry): Make menuentry output translatable.
4150
41512009-11-17 Robert Millan <rmh.grub@aybabtu.com>
4152
4153 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
4154 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
4155 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
4156 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
4157 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 4158 * po/LINGUAS: New file.
769ae37b
RM
4159
41602009-11-17 Robert Millan <rmh.grub@aybabtu.com>
4161
4162 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
4163 other things).
4164 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
4165 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
4166 bindtextdomain() calls for gettext initialization.
4167
41682009-11-17 Robert Millan <rmh.grub@aybabtu.com>
4169
4170 * gnulib/progname.c: New file (imported from Gnulib).
4171 * gnulib/progname.h: Likewise.
4172 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
4173 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
4174 (usage): Replace `progname' with `program_name'.
4175 (main): Use set_program_name() for program name initialization.
4176
41772009-11-17 Robert Millan <rmh.grub@aybabtu.com>
4178
4179 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
4180 from here ...
4181 * Makefile.in (CPPFLAGS): ... to here.
4182
41832009-11-16 Robert Millan <rmh.grub@aybabtu.com>
4184
4185 * aclocal.m4: Move from here ...
4186 * acinclude.m4: ... to here.
4187 * autogen.sh: Add call to `aclocal'.
4188 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
4189
41902009-11-16 Robert Millan <rmh.grub@aybabtu.com>
4191
4192 * Makefile.in (CLEANFILES): Add `po/*.mo'.
4193 (LINGUAS): New variable.
4194 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
4195 (install-local): Install MO files.
4196 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
4197 * include/grub/i18n.h: New file.
3bc7896c
RM
4198 * po/POTFILES: New file.
4199 * po/ca.po: New file.
769ae37b
RM
4200 * util/grub.d/10_linux.in (bindir): New variable.
4201 Add gettext initialization.
4202 (linux_entry): Make menuentry output translatable.
4203 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
4204 (usage): Make --help output translatable.
4205 (main): Initialize gettext.
4206
02c0a6ad
RM
42072009-11-17 Robert Millan <rmh.grub@aybabtu.com>
4208
4209 * import_gcry.py: New file (written by Vladimir with minor
4210 adjustments).
4211 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
4212 ciphers.
4213 * INSTALL: Document that Python is required for bootstrap.
4214
42152009-11-17 Robert Millan <rmh.grub@aybabtu.com>
4216
4217 Import ciphers from libgcrypt 1.4.4.
4218
4219 * lib/libgcrypt/cipher/ChangeLog
4220 * lib/libgcrypt/cipher/ac.c
4221 * lib/libgcrypt/cipher/arcfour.c
4222 * lib/libgcrypt/cipher/bithelp.h
4223 * lib/libgcrypt/cipher/blowfish.c
4224 * lib/libgcrypt/cipher/camellia-glue.c
4225 * lib/libgcrypt/cipher/camellia.c
4226 * lib/libgcrypt/cipher/camellia.h
4227 * lib/libgcrypt/cipher/cast5.c
4228 * lib/libgcrypt/cipher/cipher.c
4229 * lib/libgcrypt/cipher/crc.c
4230 * lib/libgcrypt/cipher/des.c
4231 * lib/libgcrypt/cipher/dsa.c
4232 * lib/libgcrypt/cipher/ecc.c
4233 * lib/libgcrypt/cipher/elgamal.c
4234 * lib/libgcrypt/cipher/hash-common.c
4235 * lib/libgcrypt/cipher/hash-common.h
4236 * lib/libgcrypt/cipher/hmac-tests.c
4237 * lib/libgcrypt/cipher/md.c
4238 * lib/libgcrypt/cipher/md4.c
4239 * lib/libgcrypt/cipher/md5.c
4240 * lib/libgcrypt/cipher/primegen.c
4241 * lib/libgcrypt/cipher/pubkey.c
4242 * lib/libgcrypt/cipher/rfc2268.c
4243 * lib/libgcrypt/cipher/rijndael-tables.h
4244 * lib/libgcrypt/cipher/rijndael.c
4245 * lib/libgcrypt/cipher/rmd.h
4246 * lib/libgcrypt/cipher/rmd160.c
4247 * lib/libgcrypt/cipher/rsa.c
4248 * lib/libgcrypt/cipher/seed.c
4249 * lib/libgcrypt/cipher/serpent.c
4250 * lib/libgcrypt/cipher/sha1.c
4251 * lib/libgcrypt/cipher/sha256.c
4252 * lib/libgcrypt/cipher/sha512.c
4253 * lib/libgcrypt/cipher/tiger.c
4254 * lib/libgcrypt/cipher/twofish.c
4255 * lib/libgcrypt/cipher/whirlpool.c
4256
af2f93ac
RM
42572009-11-16 Robert Millan <rmh.grub@aybabtu.com>
4258
4259 Fix build for systems without error().
4260
4261 * gnulib/error.c: New file (imported from Gnulib).
4262 * gnulib/error.h: Likewise.
4263 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
4264 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
4265 (this variable is now used by error()).
4266
73fb3dd5
FZ
42672009-11-16 Felix Zielcke <fzielcke@z-51.de>
4268
814f5e96
FZ
4269 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
4270 instead of relying that char is signed.
73fb3dd5 4271
a691ca33
VS
42722009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
4273
4274 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
4275 blocksize different from specified.
4276 (grub_pxefs_read): Likewise.
4277
2af8f0f4
FZ
42782009-11-16 Felix Zielcke <fzielcke@z-51.de>
4279
4280 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
4281
4282 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
4283 (grub_ata_readwrite): Likewise. Update 2 format strings.
4284 (grub_atapi_read): Likewise.
4285
4286 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
4287 * conf/i386.rmk (pkglib_MODULES): ... to here ...
4288 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
4289 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
4290 (ata_mod_LDFLAGS): Move from here ...
4291 * conf/i386.rmk: ... to here ...
4292 * conf/x86_64-efi.rmk: ... and here.
4293 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
4294 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
4295
83bdecaf
RM
42962009-11-16 Robert Millan <rmh.grub@aybabtu.com>
4297
4298 Relicense multiboot.h, with RMS' blessing.
4299
4300 * include/multiboot.h: Change to X11 license.
4301
fd6fd3d7
RM
43022009-11-15 Robert Millan <rmh.grub@aybabtu.com>
4303
4304 Support --version in grub-mkisofs.
4305
4306 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
4307 (OPTION_VERSION): New macro.
4308 (ld_options): Recognize --version.
4309 (usage): Move `program_name' from here ...
4310 (program_name): ... to here. Add `static' qualifier.
4311 (main): Recognize `OPTION_VERSION'.
4312
16a88c49
FZ
43132009-11-15 Felix Zielcke <fzielcke@z-51.de>
4314
4315 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
4316 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
4317
a4158476
RM
43182009-11-14 Robert Millan <rmh.grub@aybabtu.com>
4319
4320 Fix help2man generation for mkisofs.
4321
4322 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
4323 (usage): Send output to stdout (rather than stderr).
4324
fc2208b0
RM
43252009-11-14 Robert Millan <rmh.grub@aybabtu.com>
4326
4327 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
4328 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
4329 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
4330 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
4331 (bin_SCRIPTS): Add `grub-mkfloppy'.
4332 (grub_mkfloppy_SOURCES): New variable.
4333
4334 * util/grub-mkrescue.in: New file.
4335 * util/i386/pc/grub-mkfloppy.in: New file.
4336
4337 * util/i386/coreboot/grub-mkrescue.in: Remove.
4338 * util/i386/pc/grub-mkrescue.in: Remove.
4339
8d0edf4a
RM
43402009-11-13 Robert Millan <rmh.grub@aybabtu.com>
4341
4342 * include/grub/multiboot.h (struct grub_multiboot_header): Move
4343 from here ...
4344 * include/multiboot.h (struct multiboot_header): ... to here. Update
4345 all users.
4346 * include/grub/multiboot.h (struct grub_multiboot_info): Move
4347 from here ...
4348 * include/multiboot.h (struct multiboot_info): ... to here. Update
4349 all users.
4350 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
4351 from here ...
4352 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
4353 Update all users.
4354 * include/grub/multiboot.h (struct grub_mod_list): Move
4355 from here ...
4356 * include/multiboot.h (struct multiboot_mod_list): ... to here.
4357 Update all users.
4358
a73f5969
RM
43592009-11-13 Robert Millan <rmh.grub@aybabtu.com>
4360
4361 * include/multiboot2.h (multiboot_word): Rename from this ...
4362 (multiboot2_word): ... to this. Update all users.
4363 (multiboot_header): Rename from this ...
4364 (multiboot2_header): ... to this. Update all users.
4365 (multiboot_tag_header): Rename from this ...
4366 (multiboot2_tag_header): ... to this. Update all users.
4367 (multiboot_tag_start): Rename from this ...
4368 (multiboot2_tag_start): ... to this. Update all users.
4369 (multiboot_tag_name): Rename from this ...
4370 (multiboot2_tag_name): ... to this. Update all users.
4371 (multiboot_tag_module): Rename from this ...
4372 (multiboot2_tag_module): ... to this. Update all users.
4373 (multiboot_tag_memory): Rename from this ...
4374 (multiboot2_tag_memory): ... to this. Update all users.
4375 (multiboot_tag_unused): Rename from this ...
4376 (multiboot2_tag_unused): ... to this. Update all users.
4377 (multiboot_tag_end): Rename from this ...
4378 (multiboot2_tag_end): ... to this. Update all users.
4379
1c8927f0
RM
43802009-11-13 Robert Millan <rmh.grub@aybabtu.com>
4381
4382 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
4383 this platform we should support Multiboot1 first.
4384
4385 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
4386 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
4387 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
4388
6e1e0d89
RM
43892009-11-12 Robert Millan <rmh.grub@aybabtu.com>
4390
4391 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
4392 of write calls (converting them to fwrite() if they aren't already).
4393 (get_torito_desc): Likewise.
4394 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
4395
7f2b34d8
RM
43962009-11-12 Robert Millan <rmh.grub@aybabtu.com>
4397
4398 * util/i386/pc/grub-install.in: Move from here ...
4399 * util/grub-install.in: ... to here. Update all users.
4400
c0ef3311
CW
44012009-11-11 Colin Watson <cjwatson@ubuntu.com>
4402
4403 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
4404
e1f240ff
RM
44052009-11-11 Robert Millan <rmh.grub@aybabtu.com>
4406
4407 Support for El Torito without floppy emulation.
4408
4409 * util/mkisofs/eltorito.c: Include `<errno.h>'.
4410 (init_boot_catalog): Improve error handling.
4411 (get_torito_desc): Don't use floppy emulation unless requested by
4412 user. Patch boot information table when requested via
4413 `-boot-info-table'.
4414 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
4415 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
4416 (use_boot_info_table): New variables.
4417 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
4418 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
4419 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
4420 `--eltorito-emul-floppy'.
4421 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
4422 and `OPTION_ELTORITO_EMUL_FLOPPY'.
4423 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
4424 (use_boot_info_table, get_731): New prototypes.
4425 * util/mkisofs/write.c (get_731): New function.
4426
af7d4de5
FZ
44272009-11-11 Felix Zielcke <fzielcke@z-51.de>
4428
4429 Fix the generation of the man page.
4430
4431 * util/pc/i386/grub-install.in: Source
4432 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
4433
2c55dbc0
RM
44342009-11-11 Robert Millan <rmh.grub@aybabtu.com>
4435
4436 Large file support for grub-mkisofs.
4437
4438 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
4439 * util/mkisofs/mkisofs.c (next_extent, last_extent)
4440 (session_start): Upgrade type to `uint64_t'. Update all users.
4441 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
4442 (struct directory_entry): Upgrade type of `starting_block' and
4443 `size' to `uint64_t'. Update all users.
4444 (struct deferred): Remove unused structure.
4445 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
4446 Update all users.
4447 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
4448 file is larger than `UINT32_MAX'.
4449 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
4450 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
4451 return value.
4452 (struct deferred_write): Upgrade type of `extent' and `size' to
4453 `uint64_t'. Update all users.
4454 (last_extent_written): Upgrade type to `uint64_t'. Update all
4455 users.
4456 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
4457 Update all users. Upgrade type of `remain' to `int64_t' and
4458 `use' to `size_t'. Use error() to handle fread() errors.
4459 (write_files): Rely on write_one_file() rather than calling
4460 xfwrite() directly.
4461
6a9cead5
FZ
44622009-11-09 Felix Zielcke <fzielcke@z-51.de>
4463
4464 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
4465
4825d790
RM
44662009-11-09 Robert Millan <rmh.grub@aybabtu.com>
4467
4468 * util/mkisofs/fnmatch.c: Remove.
4469 * util/mkisofs/getopt1.c: Likewise.
4470 * util/mkisofs/getopt.c: Likewise.
4471 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
4472 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
4473 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
4474 `gnulib/getopt1.c' and `gnulib/getopt.c'.
4475 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
4476
4477 * configure.ac: Detect `mingw32msvc' host_os.
4478 Check for lstat(), getuid() and getgid().
4479
4480 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
4481 instances of `u_char' with `uint8_t'.
4482
4483 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
4484 [!HAVE_GETUID] (getuid): New function (stub).
4485 [!HAVE_GETGID] (getgid): Likewise.
4486 [!HAVE_LSTAT] (lstat): Likewise.
4487 [!S_IROTH] (S_IROTH): New macro (dummy).
4488 [!S_IRGRP] (S_IRGRP): Likewise.
4489
84b860d8
RM
44902009-11-09 Robert Millan <rmh.grub@aybabtu.com>
4491
4492 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
4493 conditional expression).
4494
66e9b712
RM
44952009-11-09 Robert Millan <rmh.grub@aybabtu.com>
4496
4497 Import from Gnulib.
4498
4499 * gnulib/fnmatch.c: New file.
4500 * gnulib/fnmatch.h: Likewise.
4501 * gnulib/fnmatch_loop.c: Likewise.
4502 * gnulib/getopt.c: Likewise.
4503 * gnulib/getopt.h: Likewise.
4504 * gnulib/getopt1.c: Likewise.
4505 * gnulib/getopt_int.h: Likewise.
4506 * gnulib/gettext.h: Likewise.
4507
34f4a5b0
RM
45082009-11-09 Robert Millan <rmh.grub@aybabtu.com>
4509
4510 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
4511 * normal/handler.c (read_handler_list): Likewise.
4512
ac451143
RM
45132009-11-09 Robert Millan <rmh.grub@aybabtu.com>
4514
4515 Misc cleanup.
4516
4517 * kern/command.c (grub_register_command_prio): Use
4518 grub_zalloc() instead of explicitly zeroing data.
4519 * kern/list.c: Include `<grub/mm.h>'.
4520 (grub_named_list_find): Replace `0' with `NULL'.
4521 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
4522 (fs_module_list): Change type to `grub_named_list_t'. Update all
4523 users.
4524 * normal/dyncmd.c (read_command_list): Add space between function
4525 call and parenthesis.
4526 * normal/handler.c (read_handler_list): Likewise.
4527
4089b167
RM
45282009-11-09 Robert Millan <rmh.grub@aybabtu.com>
4529
4530 * normal/auth.c (punishment_delay): Moved from here ...
4531 (grub_auth_strcmp): ... to here (inside function).
4532
325f5037
RM
45332009-11-09 Robert Millan <rmh.grub@aybabtu.com>
4534
4535 * include/grub/list.h (struct grub_named_list): Remove `const'
4536 qualifier from `name'.
4537 (struct grub_prio_list): Likewise.
4538
7aea29a3
RM
45392009-11-09 Robert Millan <rmh.grub@aybabtu.com>
4540
4541 * normal/auth.c: Include `<grub/time.h>'.
4542 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
4543
3fd6f044
RM
45442009-11-09 Robert Millan <rmh.grub@aybabtu.com>
4545
4546 * normal/auth.c (punishment_delay): New variable.
4547 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
4548 (grub_auth_check_authentication): Punish failed login attempts with
4549 an incremental (2^N) delay.
4550
a4cd68e4
RM
45512009-11-09 Robert Millan <rmh.grub@aybabtu.com>
4552
4553 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
4554 path with $(srcdir).
4555
7ad12f43
VS
45562009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
4557
4558 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
4559
c1129f03
RM
45602009-11-09 Robert Millan <rmh.grub@aybabtu.com>
4561
4562 * util/i386/coreboot/grub-mkrescue.in: New file.
4563 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
4564 variables.
4565
4566 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
4567 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
4568 * configure.ac: Add header and function checks to satisfy grub-mkisofs
4569 requirements.
4570 * util/mkisofs/defaults.h: New file.
4571 * util/mkisofs/eltorito.c: Likewise.
4572 * util/mkisofs/exclude.h: Likewise.
4573 * util/mkisofs/fnmatch.c: Likewise.
4574 * util/mkisofs/getopt.c: Likewise.
4575 * util/mkisofs/getopt1.c: Likewise.
4576 * util/mkisofs/hash.c: Likewise.
4577 * util/mkisofs/include/fctldefs.h: Likewise.
4578 * util/mkisofs/include/mconfig.h: Likewise.
4579 * util/mkisofs/include/prototyp.h: Likewise.
4580 * util/mkisofs/include/statdefs.h: Likewise.
4581 * util/mkisofs/iso9660.h: Likewise.
4582 * util/mkisofs/joliet.c: Likewise.
4583 * util/mkisofs/match.c: Likewise.
4584 * util/mkisofs/match.h: Likewise.
4585 * util/mkisofs/mkisofs.c: Likewise.
4586 * util/mkisofs/mkisofs.h: Likewise.
4587 * util/mkisofs/multi.c: Likewise.
4588 * util/mkisofs/name.c: Likewise.
4589 * util/mkisofs/rock.c: Likewise.
4590 * util/mkisofs/tree.c: Likewise.
4591 * util/mkisofs/write.c: Likewise.
4592
ec8bb77d
VS
45932009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
4594
4595 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
4596 being insecure.
4597
3716b12c
RM
45982009-11-08 Robert Millan <rmh.grub@aybabtu.com>
4599
4600 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
4601 `grub-mkimage' (and use $0 when possible).
4602
b97b7b91
RM
46032009-11-08 Robert Millan <rmh.grub@aybabtu.com>
4604
4605 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
4606 error message for excessively large memory map.
4607
04114812
RM
46082009-11-08 Robert Millan <rmh.grub@aybabtu.com>
4609
4610 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
4611 executable bit.
4612
e4eb2373
RM
46132009-11-08 Robert Millan <rmh.grub@aybabtu.com>
4614
4615 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
4616 message for coreboot users.
4617
c926e1d5 46182009-11-07 Robert Millan <rmh.grub@aybabtu.com>
4619
4620 Fix build with GNU gold.
4621
4622 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
4623 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
4624 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
4625 link addresses.
4626 * aclocal.m4: Likewise.
4627
86e5b1db 46282009-11-04 Felix Zielcke <fzielcke@z-51.de>
4629
4630 * configure.ac (AC_PREREQ): Bump to 2.59d.
4631 * INSTALL: Make it more clear when Autoconf and Ruby are
4632 needed and when to run `./autogen.sh'.
4633
246cd78f 46342009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4635
4636 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
4637 OSes.
4638
4f9dfb37 46392009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
4640
4641 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
4642
b82bd5e1 46432009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
4644
4645 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
4646 giving it to GNU Mach.
4647
ff1a9bca 46482009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
4649
4650 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
4651 GNU partition number to get internal GRUB partition number.
4652
61697d9c 46532009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
4654
4655 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
4656 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
4657
a50569e1 46582009-11-01 Robert Millan <rmh.grub@aybabtu.com>
4659
4660 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
4661 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
4662 case.
4663
5b153867 46642009-11-01 Felix Zielcke <fzielcke@z-51.de>
4665
4666 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
4667
d9e2cd70 46682009-10-30 Robert Millan <rmh.grub@aybabtu.com>
4669
4670 Fix build problem.
4671
4672 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
4673 `-isystem=$(srcdir)/include'.
4674
805111a4 46752009-10-30 Robert Millan <rmh.grub@aybabtu.com>
4676
4677 * util/i386/pc/grub-install.in: Remove hint that device.map should be
4678 checked (grub-install doesn't currently rely on it).
4679
fa6e945f 46802009-10-29 Robert Millan <rmh.grub@aybabtu.com>
4681
4682 Revert SVN r2660.
4683
4684 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
4685 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
4686 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
4687 * conf/i386-ieee1275.rmk: Likewise.
4688 * conf/i386-pc.rmk: Likewise.
4689 * conf/powerpc-ieee1275.rmk: Likewise.
4690 * conf/sparc64-ieee1275.rmk: Likewise.
4691 * conf/x86_64-efi.rmk: Likewise.
4692
cee15086 46932009-10-28 Robert Millan <rmh.grub@aybabtu.com>
4694
4695 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
4696
95b9239e 46972009-10-28 Robert Millan <rmh.grub@aybabtu.com>
4698
4699 * include/grub/misc.h: Stop checking for APPLE_CC.
4700
2ed19dfd 47012009-10-28 Robert Millan <rmh.grub@aybabtu.com>
4702
4703 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
4704 doesn't cause an infinite call loop.
4705
fdcdde19 47062009-10-28 Felix Zielcke <fzielcke@z-51.de>
4707
4708 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
4709 strings.
4710
cefabfe1 47112009-10-26 Robert Millan <rmh.grub@aybabtu.com>
4712
4713 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
4714 variable.
4715 * Makefile.in: Likewise.
4716
ed96ab6d 47172009-10-26 Robert Millan <rmh.grub@aybabtu.com>
4718
4719 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
4720
0579b753 47212009-10-26 Robert Millan <rmh.grub@aybabtu.com>
4722
4723 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
4724
478df409 47252009-10-26 Robert Millan <rmh.grub@aybabtu.com>
4726
4727 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
4728
083d1679 47292009-10-26 Robert Millan <rmh.grub@aybabtu.com>
4730
4731 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
4732 from here ...
4733 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
4734
5947ae32 47352009-10-26 Robert Millan <rmh.grub@aybabtu.com>
4736
4737 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
4738 in $(MAKEINFO) invocation. This makes it clear in output that
4739 errors are being ignored.
4740
94180ff6 47412009-10-26 Robert Millan <rmh.grub@aybabtu.com>
4742
4743 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
4744 from here ...
4745 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
4746 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
4747 * conf/i386-ieee1275.rmk: Likewise.
4748 * conf/i386-pc.rmk: Likewise.
4749 * conf/powerpc-ieee1275.rmk: Likewise.
4750 * conf/sparc64-ieee1275.rmk: Likewise.
4751 * conf/x86_64-efi.rmk: Likewise.
4752
9031b03a 47532009-10-26 Colin Watson <cjwatson@ubuntu.com>
4754
4755 * util/grub-editenv.c (main): If only a command is given, use
4756 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
4757 (usage): FILENAME is now optional and has a default.
4758
e4f6809b 47592009-10-26 Colin Watson <cjwatson@ubuntu.com>
4760
4761 Improve grub-mkconfig performance when there are several menu
4762 entries on a single filesystem.
4763
4764 * util/grub.d/10_linux.in (linux_entry): Cache the output of
4765 prepare_grub_to_access_device.
4766 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
4767 * util/grub.d/30_os-prober.in: Likewise.
4768
67937d4d 47692009-10-26 Robert Millan <rmh.grub@aybabtu.com>
4770
4771 * util/grub.d/10_freebsd.in: Remove.
4772 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
4773 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
4774
ee3756cc 47752009-10-26 Robert Millan <rmh.grub@aybabtu.com>
4776
5c35048e 4777 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 4778
4dea1c6f 47792009-10-25 Robert Millan <rmh.grub@aybabtu.com>
4780
4781 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
4782 grub_util_error() call.
4783
042484d7 47842009-10-25 Robert Millan <rmh.grub@aybabtu.com>
4785
4786 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
4787 `reserved_first_sector' member.
4788 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
4789 `reserved_first_sector' to 1.
4790 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
4791 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
4792 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
4793 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
4794 filesystems which begin at first sector.
4795 (options): New option --skip-fs-probe.
4796 (main): Handle --skip-fs-probe and pass it to setup().
4797
d64448a7 47982009-10-25 Robert Millan <rmh.grub@aybabtu.com>
4799
4800 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
4801 (memset): Fix function prototype.
4802
508d42ec 48032009-10-25 Robert Millan <rmh.grub@aybabtu.com>
48042009-10-25 Vasily Averin <vvs@parallels.com>
4805
4806 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
4807 `dirent.direntlen == 0'.
4808
b240e30c 48092009-10-25 Robert Millan <rmh.grub@aybabtu.com>
4810
4811 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
4812 `cpio'.
4813 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
4814
346e7fbe 48152009-10-25 Robert Millan <rmh.grub@aybabtu.com>
4816
4817 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
4818 `__trampoline_setup' and `__ucmpdi2'.
4819 * include/grub/powerpc/libgcc.h: Only export symbols for functions
4820 that libgcc provides.
4821
cdb308b0 48222009-10-25 Robert Millan <rmh.grub@aybabtu.com>
4823
4824 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
4825 * include/grub/sparc64/libgcc.h (memset): Likewise.
4826 * include/grub/misc.h (memset, memcmp): New function prototypes.
4827
fb26abc2 48282009-10-25 Robert Millan <rmh.grub@aybabtu.com>
4829
4830 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
4831 `cpio'.
4832 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
4833
f6693890 48342009-10-25 Robert Millan <rmh.grub@aybabtu.com>
4835
4836 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
4837 * docs/grub.cfg: Compensate for recent change in multiboot
4838 loader (since 2009-08-14 it won't pass filename to payload).
4839 * util/grub.d/10_hurd.in: Likewise.
4840
0933cdc0 48412009-10-21 Felix Zielcke <fzielcke@z-51.de>
4842
4843 * config.guess: Update to latest version from config git
4844 repository.
4845 * config.sub: Likewise.
4846
3b2fe8c2 48472009-10-20 Robert Millan <rmh.grub@aybabtu.com>
4848
4849 Fix build on sparc64.
4850
4851 * configure.ac: Perform checks for libgcc symbols before
4852 adding `-nostdlib' to LDFLAGS.
4853
46695a62 48542009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4855
4856 Let user specify OpenBSD root device.
4857
4858 * loader/i386/bsd.c (openbsd_root): New variable.
4859 (openbsd_opts): New option 'root'.
4860 (OPENBSD_ROOT_ARG): New macro.
4861 (grub_openbsd_boot): Use 'openbsd_root'.
4862 (grub_cmd_openbsd): Fill 'openbsd_root'.
4863
d2b6b7fc 48642009-10-16 Robert Millan <rmh.grub@aybabtu.com>
4865
4866 * NEWS: Misc adjustments.
4867
421bd7ac 48682009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4869
4870 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
4871
f1d29d87 48722009-10-16 Robert Millan <rmh.grub@aybabtu.com>
4873
4874 * configure.ac: Bump version to 1.97.
4875
6f3cd880 48762009-10-16 Colin Watson <cjwatson@ubuntu.com>
4877
4878 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
4879 -mno-3dnow on x86 architectures. Some toolchains enable these
4880 features by default, but they rely on registers that aren't enabled
4881 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
4882
035f7122 48832009-10-15 Robert Millan <rmh.grub@aybabtu.com>
4884
4885 Make entry text a bit more readable.
4886
4887 * util/grub.d/10_linux.in: Add `with' before `Linux'.
4888
44998e58 48892009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4890
4891 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
4892
cd2851b3 48932009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4894
4895 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
4896 operations.
4897
c6f3b249 48982009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4899
4900 * configure.ac: Add missing dollar.
4901
6b5886ba 49022009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4903
4904 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
4905
4906 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
4907 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
4908 exports.
4909 * include/grub/sparc64/libgcc.h: Likewise. Use
4910 preprocessor conditionals.
4911
e9d66f6d 49122009-10-14 Robert Millan <rmh.grub@aybabtu.com>
4913
4914 * conf/common.rmk (grub-dumpbios): Remove rule.
4915 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
4916 * util/grub-dumpbios.in: Remove file.
4917
9155bc17 49182009-10-14 Robert Millan <rmh.grub@aybabtu.com>
4919
4920 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
4921 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
4922
4923 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
4924 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
4925 users.
4926
4927 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
4928 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
4929 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
4930 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
4931 users.
4932
bf7f7a18 49332009-10-12 Robert Millan <rmh.grub@aybabtu.com>
4934
4935 * term/tparm.c: Switch to GPLv3.
4936
86564c26 49372009-10-09 Robert Millan <rmh.grub@aybabtu.com>
4938
4939 * include/grub/i386/cpuid.h: Add header protection.
4940
5c936493 49412009-10-09 Robert Millan <rmh.grub@aybabtu.com>
4942
4943 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
4944
4945 * include/grub/i386/cpuid.h: New file.
4946 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
4947 (has_longmode): Rename to ...
4948 (grub_cpuid_has_longmode): ... this. Update all users. Remove
4949 `static' attribute.
4950 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
4951 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
4952 on a CPU that doesn't implement AMD64 instruction set.
4953
186e7cf2 49542009-10-06 Colin Watson <cjwatson@ubuntu.com>
4955
4956 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
4957 that version.texi is rebuilt on version number changes.
4958
83b65c4a 49592009-10-06 Colin Watson <cjwatson@ubuntu.com>
4960
4961 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
4962 Fixes bug #27602.
4963
d244281c 49642009-10-06 Colin Watson <cjwatson@ubuntu.com>
4965
4966 * util/i386/pc/grub-install.in: Source
4967 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
4968 that the --grub-probe option will work.
4969 * util/sparc64/ieee1275/grub-install.in: Likewise.
4970
da25306d 49712009-10-05 Robert Millan <rmh.grub@aybabtu.com>
4972
4973 * configure.ac: Bump version to 1.97~beta4.
4974
e8ee83c0 49752009-10-03 Robert Millan <rmh.grub@aybabtu.com>
4976
4977 Resync grub-mkdevicemap in x86_64-efi.
4978
4979 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
4980 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
4981 `util/devicemap.c'.
4982
50dcabcf 49832009-10-01 Colin Watson <cjwatson@ubuntu.com>
4984
4985 * util/grub-editenv.c (create_envblk_file): Write new block with a
4986 .new suffix and then rename it into place, to ensure atomic
4987 creation.
4988
0e51c3a7 49892009-09-28 Robert Millan <rmh.grub@aybabtu.com>
4990
4991 Do not automatically install headers.
4992
4993 * Makefile.in (include_DATA): Remove. Update all users.
4994
31299a95 49952009-09-26 Robert Millan <rmh.grub@aybabtu.com>
4996
4997 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
4998 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
4999
5000 * util/osdetect.lua: Remove.
5001 * script/lua/lauxlib.c: Likewise.
5002 * script/lua/ldebug.c: Likewise.
5003 * script/lua/grub_main.c: Likewise.
5004 * script/lua/lauxlib.h: Likewise.
5005 * script/lua/ldebug.h: Likewise.
5006 * script/lua/ltablib.c: Likewise.
5007 * script/lua/liolib.c: Likewise.
5008 * script/lua/lstrlib.c: Likewise.
5009 * script/lua/lualib.h: Likewise.
5010 * script/lua/ldo.c: Likewise.
5011 * script/lua/ldump.c: Likewise.
5012 * script/lua/ldo.h: Likewise.
5013 * script/lua/loslib.c: Likewise.
5014 * script/lua/lundump.c: Likewise.
5015 * script/lua/grub_lib.c: Likewise.
5016 * script/lua/ldblib.c: Likewise.
5017 * script/lua/lundump.h: Likewise.
5018 * script/lua/lmem.c: Likewise.
5019 * script/lua/grub_lib.h: Likewise.
5020 * script/lua/lmathlib.c: Likewise.
5021 * script/lua/lstate.c: Likewise.
5022 * script/lua/ltm.c: Likewise.
5023 * script/lua/lvm.c: Likewise.
5024 * script/lua/lmem.h: Likewise.
5025 * script/lua/lstate.h: Likewise.
5026 * script/lua/ltm.h: Likewise.
5027 * script/lua/ltable.c: Likewise.
5028 * script/lua/lvm.h: Likewise.
5029 * script/lua/llex.c: Likewise.
5030 * script/lua/lgc.c: Likewise.
5031 * script/lua/grub_lua.h: Likewise.
5032 * script/lua/loadlib.c: Likewise.
5033 * script/lua/lfunc.c: Likewise.
5034 * script/lua/lopcodes.c: Likewise.
5035 * script/lua/lparser.c: Likewise.
5036 * script/lua/ltable.h: Likewise.
5037 * script/lua/llex.h: Likewise.
5038 * script/lua/lgc.h: Likewise.
5039 * script/lua/lfunc.h: Likewise.
5040 * script/lua/lbaselib.c: Likewise.
5041 * script/lua/lopcodes.h: Likewise.
5042 * script/lua/lparser.h: Likewise.
5043 * script/lua/lzio.c: Likewise.
5044 * script/lua/linit.c: Likewise.
5045 * script/lua/lobject.c: Likewise.
5046 * script/lua/llimits.h: Likewise.
5047 * script/lua/lstring.c: Likewise.
5048 * script/lua/lzio.h: Likewise.
5049 * script/lua/lapi.c: Likewise.
5050 * script/lua/lcode.c: Likewise.
5051 * script/lua/lua.h: Likewise.
5052 * script/lua/lobject.h: Likewise.
5053 * script/lua/lstring.h: Likewise.
5054 * script/lua/lapi.h: Likewise.
5055 * script/lua/lcode.h: Likewise.
5056 * script/lua/luaconf.h: Likewise.
5057
cb8a2c38 50582009-09-26 Colin Watson <cjwatson@ubuntu.com>
5059
5060 * docs/grub.texi (Command-line and menu entry commands): Document
5061 date and echo commands.
5062
6b9b6276 50632009-09-24 Pavel Roskin <proski@gnu.org>
5064
5065 * include/grub/kernel.h (struct grub_module_header): Remove
5066 `grub_module_header_types'. Make `type' unsigned. Make `size'
5067 32-bit on all platforms.
5068 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
5069 8-bit field. Use grub_host_to_target32() for `size'.
5070 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
5071 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
5072 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
5073
4e5a02a7 50742009-09-24 Robert Millan <rmh.grub@aybabtu.com>
5075
5076 Fix "lost keypress" bug in at_keyboard.
5077
5078 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
5079 Checks for readyness of input buffer (without flushing it).
5080 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
5081 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
5082
c6dcedf6 50832009-09-24 Robert Millan <rmh.grub@aybabtu.com>
5084
5085 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
5086 size check within GRUB_MACHINE_PCBIOS section.
5087
74c958b1 50882009-09-24 Robert Millan <rmh.grub@aybabtu.com>
5089
5090 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
5091 return value.
5092 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
5093 KEYBOARD_ISREADY check.
5094 (grub_at_keyboard_checkkey): Rename to ...
5095 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
5096 Remove gratuitous cast.
5097
ff420223 50982009-09-23 Colin Watson <cjwatson@ubuntu.com>
5099
5100 * configure.ac: Call AC_PROG_MKDIR_P.
5101 * Makefile.in (docs/stamp-vti): Create docs directory. Create
5102 version.texi in $(builddir) rather than $(srcdir).
5103 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
5104 to makeinfo's @include search path.
5105
d96875df 51062009-09-23 Felix Zielcke <fzielcke@z-51.de>
5107
5108 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
5109
9b3f8365 51102009-09-23 Felix Zielcke <fzielcke@z-51.de>
5111
5112 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
5113 for `*.dpkg-new'.
5114
c44c90db 51152009-09-21 Colin Watson <cjwatson@ubuntu.com>
5116
5117 Build info documentation. Some code borrowed from Automake.
5118
5119 * configure.ac: Check for makeinfo.
5120 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
5121 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
5122 docs/version.texi.
5123 (MOSTLYCLEANFILES): Add vti.tmp.
5124 (docs/version.texi, docs/stamp-vti): Update automatically.
5125 (docs/grub.info): Build info documentation. Use --force and ignore
5126 errors for now.
5127 (all-local): Add $(INFOS).
5128 (install-local): Install info files.
5129 (uninstall): Uninstall info files.
5130 * docs/version.texi: Remove from revision control. This file is
5131 automatically generated on build now.
5132 * gendistlist.sh: Add `*.info'.
5133
e0b37bb5 51342009-09-21 Felix Zielcke <fzielcke@z-51.de>
5135
5136 * kern/term.c: Fix indentation.
5137
5a78865b 51382009-09-21 Felix Zielcke <fzielcke@z-51.de>
5139
5140 * util/hostdisk.c: Fix a comment.
5141
dace7e8a 51422009-09-20 Robert Millan <rmh.grub@aybabtu.com>
5143
5144 Fix regression introduced in r2539.
5145
5146 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
5147 to 0xA1.
5148
a83d079b 51492009-09-19 Colin Watson <cjwatson@ubuntu.com>
5150
5151 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 5152 os-prober. Under normal operation, it does not print anything to
5153 stderr; if it does, we need to debug it, and throwing away stderr
5154 makes that excessively difficult.
a83d079b 5155
be94a509 51562009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
5157
5158 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
5159
63f745e8 51602009-09-16 Robert Millan <rmh.grub@aybabtu.com>
5161
5162 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
5163 AC_LANG_PROGRAM from autoconf.
5164 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
5165 prototypes (fixes warning).
5166
5167 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
5168 `--disable-werror' was used.
5169
bbb2a70f 51702009-09-16 Robert Millan <rmh.grub@aybabtu.com>
5171
5172 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
5173 uninitialized `lastaddr'.
5174
77c24f1d 51752009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
5176
0f0b8c87 5177 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 5178
07197f23 51792009-09-14 Colin Watson <cjwatson@ubuntu.com>
5180
5181 * commands/test.c (get_fileinfo): Return immediately if
5182 grub_fs_probe fails.
5183
dabf1798 51842009-09-14 José Martínez <xosemp@gmail.com>
5185
5186 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
5187
d52109a7 51882009-09-14 Colin Watson <cjwatson@ubuntu.com>
5189
5190 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
5191 output.
5192
56532179 51932009-09-13 Robert Millan <rmh.grub@aybabtu.com>
5194
5195 * configure.ac: Remove --enable-grub-pe2elf. Only build
5196 grub-pe2elf when needed by the build system itself.
5197 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
5198
8ef070f5 51992009-09-12 Robert Millan <rmh.grub@aybabtu.com>
5200
5201 * configure.ac: Bump version to 1.97~beta3.
5202 * docs/version.texi: Likewise.
5203
61229557 52042009-09-12 Robert Millan <rmh.grub@aybabtu.com>
5205
5206 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
5207 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
5208 from here ...
5209 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
5210 (grub_linux_setup_video): ... to here (with some adjustments).
5211
5c9f8d84 52122009-09-12 Robert Millan <rmh.grub@aybabtu.com>
5213
5214 Fix memory corruption issue (spotted by Colin Watson).
5215
5216 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
5217 causing returned size to be stored in an incorrect memory location.
5218 Fix use of uninitialized value when storing the returned size.
5219
e8f5d6e9 52202009-09-12 Yves Blusseau <blusseau@zetam.org>
5221
5222 Change clean rules to properly remove files
5223
5224 * genmk.rb: add new clean rules
5225 * Makefile.in (clean): add the new targets
5226 (mostlyclean): likewise
5227
cda2a409 52282009-09-11 Colin Watson <cjwatson@ubuntu.com>
5229
5230 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
5231 to grub_uint64_t.
5232 * fs/ntfs.c (init_file): Understand 64-bit sizes for
5233 non-resident files.
5234
86695375 52352009-09-11 Colin Watson <cjwatson@ubuntu.com>
5236
5237 * configure.ac: Don't look for help2man when cross-compiling. Fixes
5238 part of bug #27349.
5239
8aa1541a 52402009-09-10 Felix Zielcke <fzielcke@z-51.de>
5241
5242 * util/grub-mkconfig.in: Make the created config mode 400 and
5243 print a warning if it fails.
5244
48d9bb0a 52452009-09-10 Robert Millan <rmh.grub@aybabtu.com>
5246
5247 * util/grub.d/40_custom.in: Ask user to type custom entries below
5248 comment, rather than below 'exec tail' line.
5249
3b0521be 52502009-09-10 Colin Watson <cjwatson@ubuntu.com>
5251
5252 * util/grub.d/40_custom.in: Make sure that the explanatory text is
5253 visible in grub.cfg.
5254
50051d55 52552009-09-10 Colin Watson <cjwatson@ubuntu.com>
5256
5257 * util/grub.d/40_custom.in: Make it a little clearer how to use this
5258 file.
5259
c0d34387 52602009-09-10 Felix Zielcke <fzielcke@z-51.de>
5261
5262 * docs/grub.cfg: Add an example menu entry for memtest86+.
5263
80a608f3 52642009-09-09 Felix Zielcke <fzielcke@z-51.de>
5265
a2094832 5266 * config.guess: Update to latest version from config git.
80a608f3 5267 * config.sub: Likewise.
5268
99423078 52692009-09-08 Colin Watson <cjwatson@ubuntu.com>
5270
5271 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
5272 unknown-command case. Fixes bug #27320.
5273
44454e4c 52742009-09-08 Felix Zielcke <fzielcke@z-51.de>
5275
5276 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
5277 `help' if the command exists.
5278
e30d87ad 52792009-09-06 Robert Millan <rmh.grub@aybabtu.com>
5280
5281 * INSTALL: Require GCC 4.1.3 or later.
5282
9a86f1ec 52832009-09-06 Yves Blusseau <blusseau@zetam.org>
5284
5285 * Makefile.in (RMKFILES): add i386-qemu.rmk
5286 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
5287 $(srcdir)/stamp-h.in
5288
7f26d466 52892009-09-05 Robert Millan <rmh.grub@aybabtu.com>
5290
5291 * util/grub-probe.c (probe): Comment out buggy codepath, which
5292 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
5293 should be re-enabled after 1.97.
5294
3a613259 52952009-09-05 Felix Zielcke <fzielcke@z-51.de>
5296
5297 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
5298 find searches for.
5299
197f76c7 53002009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
5301
5302 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
5303 unnecessary calls to grub_error.
5304
70ba68ce 53052009-09-04 Colin Watson <cjwatson@ubuntu.com>
5306
5307 * NEWS: Mention `keystatus' and Unicode fonts.
5308
4ff0d7a4 53092009-09-04 Robert Millan <rmh.grub@aybabtu.com>
5310
5311 * configure.ac: Bump version to 1.97~beta2.
5312 * docs/version.texi: Likewise.
5313
77c55a87 53142009-09-03 Colin Watson <cjwatson@ubuntu.com>
5315
5316 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
5317 containing unwind information in some cases where it previously did
5318 not. Use -fno-dwarf2-cfi-asm if available to restore the old
5319 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
5320 discussion.
5321
f79572cd 53222009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
5323
5324 Embedding loadenv module into grub-emu
5325
5326 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
5327 commands/loadenv.c
5328 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
5329 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
5330 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
5331 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
5332 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
5333 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
5334
93a81088 53352009-09-03 Magnus Granberg <zorry@ume.nu>
5336
5337 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
5338 include -fPIE in the default specs.
5339 * configure.ac: Check if pie_possible is yes and add -fno-PIE
5340 to TARGET_CFLAGS.
5341
160034b2 53422009-09-03 Felix Zielcke <fzielcke@z-51.de>
5343
5344 * INSTALL: Note that GNU Bison 2.3 or later is required.
5345
087c07c4 53462009-09-03 Colin Watson <cjwatson@ubuntu.com>
5347
5348 * kern/i386/pc/startup.S: Fix typo.
5349
cbf978c0 53502009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5351
5352 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
5353 according to GCS.
5354
53552009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 5356
5357 * docs/grub.texi (Naming convention): Describe one-based partition
5358 numbering.
5359 (Device syntax): Likewise.
5360 (File name syntax): Likewise.
5361 (Block list syntax): Likewise.
5362 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
5363 menu.lst.
5364 (File name syntax): Likewise.
5365 (Command-line and menu entry commands): Document acpi, blocklist,
5366 crc, export, insmod, keystatus, ls, set, and unset commands.
5367
f3e8cdfd 53682009-09-02 Colin Watson <cjwatson@ubuntu.com>
5369
5370 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
5371 to avoid implying that only one of --shift, --ctrl, or --alt may be
5372 used.
5373
c0bc232b 53742009-09-02 Colin Watson <cjwatson@ubuntu.com>
5375
5376 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
5377 rather than comparing against S_IFREG, which will almost never work.
5378
aa0f752d 53792009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
5380
5381 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
5382 (write_blocklists): Likewise.
5383
ecb3166a 53842009-09-01 Colin Watson <cjwatson@ubuntu.com>
5385
5386 * script/lua/grub_lua.h (fputs): Supply a format string as the first
5387 argument to grub_printf.
5388
c403a125 53892009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 5390
5391 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 5392 non GNU test.
31aba781 5393
b5e7312c 53942009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5395
5396 * kern/file.c (grub_file_read): Spelling fix
5397
fe00f472 53982009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5399
5400 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
5401 loading of headers in some cases.
5402
cc55302e 54032009-08-30 Robert Millan <rmh.grub@aybabtu.com>
5404
5405 * configure.ac: Bump version to 1.97~beta1.
5406 * docs/version.texi: Likewise.
5407
5c90cdd2 54082009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 5409
5410 * include/grub/i386/xnu.h: Add license header.
5411 include grub/err.h explicitly.
5412
c90edae4 54132009-08-29 Robert Millan <rmh.grub@aybabtu.com>
5414
5415 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
5416 to `ufs' in the vfs.root.mountfrom kernel parameter.
5417
d8888b5c 54182009-08-29 Robert Millan <rmh.grub@aybabtu.com>
5419
5420 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
5421
5422 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
5423 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
5424
5425 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
5426 `ARRAY_SIZE' macro.
5427
6f07b921 54282009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
5429
5430 * kern/file.c (grub_file_read): Check offset.
5431 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
5432 * fs/jfs.c (grub_jfs_read_file): Likewise.
5433 * fs/ntfs.c (grub_ntfs_read): Likewise.
5434 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
5435 * fs/minix.c (grub_minix_read_file): Correct offset check.
5436 * fs/ufs.c (grub_ufs_read_file): Likewise.
5437
b4f34077 54382009-08-28 Colin Watson <cjwatson@ubuntu.com>
5439
5440 * term/i386/pc/console.c (bios_data_area): Cast
5441 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
5442
e7c69859 54432009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
5444
5445 1-bit optimised blitters.
5446
5447 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
5448 prototype.
5449 (grub_video_fbblit_replace_24bit_1bit): Likewise.
5450 (grub_video_fbblit_replace_16bit_1bit): Likewise.
5451 (grub_video_fbblit_replace_8bit_1bit): Likewise.
5452 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
5453 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
5454 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
5455 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
5456 function.
5457 (grub_video_fbblit_replace_24bit_1bit): Likewise.
5458 (grub_video_fbblit_replace_16bit_1bit): Likewise.
5459 (grub_video_fbblit_replace_8bit_1bit): Likewise.
5460 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
5461 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
5462 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
5463 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
5464 when possible.
5465 * video/video.c (grub_video_get_blit_format): Return
5466 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
5467
a57da43f 54682009-08-28 Colin Watson <cjwatson@ubuntu.com>
5469
5470 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
5471 the first argument to grub_printf.
5472
4cbe67e5 54732009-08-28 Colin Watson <cjwatson@ubuntu.com>
54742009-08-28 Robert Millan <rmh.grub@aybabtu.com>
5475
5476 Add `getkeystatus' terminal method. Add a new `keystatus' command
5477 to query it.
5478
5479 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
5480 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
5481 modifier key bitmasks.
5482 (struct grub_term_input): Add `getkeystatus' member.
5483 (grub_getkeystatus): Add prototype.
5484 * kern/term.c (grub_getkeystatus): New function.
5485
5486 * include/grub/i386/pc/memory.h
5487 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
5488 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
5489 Data Area layout.
5490 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
5491 (grub_console_term_input): Set `getkeystatus' member.
5492 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
5493 constants.
5494 (grub_usb_keyboard_getreport): Likewise.
5495 (grub_usb_keyboard_checkkey): Likewise.
5496 (grub_usb_keyboard_getkeystatus): New function.
5497 (grub_usb_keyboard_term): Set `getkeystatus' member.
5498
5499 * commands/keystatus.c: New file.
5500 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
5501 (keystatus_mod_SOURCES): New variable.
5502 (keystatus_mod_CFLAGS): Likewise.
5503 (keystatus_mod_LDFLAGS): Likewise.
5504 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
5505 commands/keystatus.c.
5506 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
5507 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5508 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
5509 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5510 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5511 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 5512
6e2a9085 55132009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
5514
5515 Split befs.mod and afs.mod into *_be.mod and *.mod
5516
5517 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
5518 (grub_fstest_SOURCES): Likewise.
5519 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
5520 (afs_be_mod_SOURCES): New variable.
5521 (afs_be_mod_CFLAGS): Likewise.
5522 (afs_be_mod_LDFLAGS): Likewise.
5523 (befs_be_mod_SOURCES): Likewise.
5524 (befs_be_mod_CFLAGS): Likewise.
5525 (befs_be_mod_LDFLAGS): Likewise.
5526 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
5527 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
5528 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5529 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
5530 (grub_emu_SOURCES): Likewise.
5531 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5532 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5533 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5534 * fs/afs_be.c: New file.
5535 * fs/befs_be.c: New file.
5536 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
5537 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
5538 (U16): Replaced with ...
5539 (grub_afs_to_cpu16): ...this. All users updated.
5540 (U32): Replaced with ...
5541 (grub_afs_to_cpu32): ...this. All users updated.
5542 (U64): Replaced with ...
5543 (grub_afs_to_cpu64): ...this. All users updated.
5544 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
5545 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 5546 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 5547 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
5548 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
5549 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
5550 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
5551 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
5552 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
5553 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
5554 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
5555
32a71655 55562009-08-26 Bean <bean123ch@gmail.com>
5557
5558 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
5559 64-bit number.
5560 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
5561 (grub_xfs_inode_block): Change return type to grub_uint64_t.
5562 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
5563
552bf6c5 55642009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
5565
5566 NetBSD memory map support.
5567
5568 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
5569 (grub_netbsd_btinfo_mmap_header): New structure.
5570 (grub_netbsd_btinfo_mmap_entry): Likewise.
5571 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
5572
1ae2078c 55732009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
5574
5575 Enable bsd.mod on coreboot.
5576
5577 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
5578 (bsd_mod_SOURCES): New variable.
5579 (bsd_mod_CFLAGS): Likewise.
5580 (bsd_mod_LDFLAGS): Likewise.
5581 (bsd_mod_ASFLAGS): Likewise.
5582 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
5583 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
5584
beefc598 55852009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
5586
5587 Cleanup NetBSD root support.
5588
5589 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
5590 grub_bsd_get_device.
5591 Fix typo.
5592
3b76e68b 55932009-08-25 Felix Zielcke <fzielcke@z-51.de>
5594
5595 * util/grub.d/00_header.in: Move check for the video backend of
5596 gfxterm from here ...
5597 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
5598 a suitable video backend.
5599
aea664ea 56002009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
5601
5602 Fix breakage in grub-setup.
5603
5604 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
5605 "msdos_partition_map".
5606
ff747d50 56072009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
5608
5609 Fix breakage in normal/auth.c.
5610
5611 * normal/auth.c (grub_iswordseparator): New function.
5612
e7e1f93f 56132009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
5614
5615 Authentication support.
5616
5617 * commands/password.c: New file.
5618 * conf/common.rmk (pkglib_MODULES): Add password.mod.
5619 (password_mod_SOURCES): New variable.
5620 (password_mod_CFLAGS): Likewise.
5621 (password_mod_LDFLAGS): Likewise.
5622 (normal_mod_SOURCES): Add normal/auth.c.
5623 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
5624 normal/auth.c.
5625 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
5626 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5627 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
5628 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5629 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5630 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5631 * include/grub/auth.h: New file.
5632 * include/grub/err.h (grub_err_t): New enum value
5633 GRUB_ERR_ACCESS_DENIED.
5634 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
5635 'users'.
5636 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
5637 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
5638 users updated.
5639 * normal/auth.c: New file.
5640 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
5641 (grub_cmdline_run): Don't allow to go to command line without
5642 authentication.
5643 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
5644 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
5645 menuentry without superuser rights.
5646 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
5647 user isn't a superuser.
5648
70f1161d 56492009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
5650
5651 Save space by inlining misc.c functions.
5652
5653 * kern/misc.c (grub_iswordseparator): Made static.
5654 * kern/misc.c (grub_strcat): Moved from here ...
5655 * include/grub/misc.h (grub_strcat): ... here. Inlined.
5656 * kern/misc.c (grub_strncat): Moved from here ...
5657 * include/grub/misc.h (grub_strncat): ... here. Inlined.
5658 * kern/misc.c (grub_strcasecmp): Moved from here ...
5659 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
5660 * kern/misc.c (grub_strncasecmp): Moved from here ...
5661 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
5662 * kern/misc.c (grub_isalpha): Moved from here ...
5663 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
5664 * kern/misc.c (grub_isdigit): Moved from here ...
5665 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
5666 * kern/misc.c (grub_isgraph): Moved from here ...
5667 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
5668 * kern/misc.c (grub_tolower): Moved from here ...
5669 * include/grub/misc.h (grub_tolower): ... here. Inlined.
5670
48e40bff 56712009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
5672
5673 * script/sh/function.c (grub_script_function_find): Cut error message
5674 not to flood terminal.
5675 * script/sh/lexer.c (grub_script_yylex): Remove command line length
5676 limit.
5677 * script/sh/script.c (grub_script_arg_add): Duplicate string.
5678
c385bfc3 56792009-08-24 Colin Watson <cjwatson@ubuntu.com>
5680
5681 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
5682 `report' grub_uint8_t *.
5683 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
5684 Use a 50-millisecond timeout rather than just repeating
5685 grub_usb_keyboard_getreport 50 times.
5686 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
5687
2d21e3e8 56882009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
5689
5690 Rename *_partition_map to part_*
5691
5692 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
5693 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
5694 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
5695 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
5696 All users updated.
5697 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
5698 All users updated.
5699 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
5700 * util/grub-probe.c (probe_partmap): Don't transform partition name
5701 to get module name.
5702
dd103c4e 57032009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
5704
5705 Fix OpenBSD and NetBSD support.
5706
5707 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
5708 memory address conflict.
5709 (OPENBSD_MMAP_ACPI): New definition.
5710 (OPENBSD_MMAP_NVS): Likewise.
5711 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
5712 and OPENBSD_MMAP_NVS.
5713 Add memory map terminator
5714 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 5715 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 5716
16c84d74 57172009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
5718
5719 Let user specify NetBSD root device.
5720
5721 * loader/i386/bsd.c (netbsd_root): New variable.
5722 (netbsd_opts): New option 'root'.
5723 (NETBSD_ROOT_ARG): New macro.
5724 (grub_netbsd_boot): Use 'netbsd_root'.
5725 (grub_bsd_unload): Free 'netbsd_root'.
5726 (grub_cmd_netbsd): Fill 'netbsd_root'.
5727
adb29902 57282009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
5729
5730 Support for 64-bit NetBSD.
5731
5732 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
5733 point when booting non-FreeBSD.
5734
f5ae9f74 57352009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
5736
5737 Support --no-smp and --no-acpi for NetBSD.
5738
5739 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
5740 (NETBSD_AB_NOACPI): Likewise.
5741 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
5742 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
5743
de74f136 57442009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5745
5746 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
5747 errors.
5748 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
5749 errors. Call grub_error when needed.
5750
e9a925da 57512009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5752
5753 * commands/search.c (search_fs): Try searching without autoload first.
5754 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
5755 filesystem module explicitly for faster booting.
5756
5174302b 57572009-08-23 Colin Watson <cjwatson@ubuntu.com>
5758
5759 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
5760
c8c80635 57612009-08-23 Colin Watson <cjwatson@ubuntu.com>
5762
5763 * util/grub.d/30_os-prober.in: Disable os-prober if
5764 `GRUB_DISABLE_OS_PROBER' was set to true.
5765
71acf5e5 57662009-08-23 Robert Millan <rmh.grub@aybabtu.com>
5767
5768 * partmap/pc.c: Rename to ...
5769 * partmap/msdos.c: ... this. Update all users.
5770 (grub_pc_partition_map): Rename to ...
5771 (grub_msdos_partition_map): ... this. Update all users.
5772
5773 * parttool/pcpart.c: Rename to ...
5774 * parttool/msdospart.c: ... this. Update all users.
5775
5776 * include/grub/pc_partition.h: Rename to ...
5777 * include/grub/msdos_partition.h: ... this. Update all users.
5778 (grub_pc_partition_bsd_entry): Rename to ...
5779 (grub_msdos_partition_bsd_entry): ... this. Update all users.
5780 (grub_pc_partition_disk_label): Rename to ...
5781 (grub_msdos_partition_disk_label): ... this. Update all users.
5782 (grub_pc_partition_entry): Rename to ...
5783 (grub_msdos_partition_entry): ... this. Update all users.
5784 (grub_pc_partition_mbr): Rename to ...
5785 (grub_msdos_partition_mbr): ... this. Update all users.
5786 (grub_pc_partition): Rename to ...
5787 (grub_msdos_partition): ... this. Update all users.
5788 (grub_pc_partition_is_empty): Rename to ...
5789 (grub_msdos_partition_is_empty): ... this. Update all users.
5790 (grub_pc_partition_is_extended): Rename to ...
5791 (grub_msdos_partition_is_extended): ... this. Update all users.
5792 (grub_pc_partition_is_bsd): Rename to ...
5793 (grub_msdos_partition_is_bsd): ... this. Update all users.
5794
5795 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
5796 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
5797 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
5798 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
5799 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
5800 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
5801 (gpt_mod_LDFLAGS): Rename to ...
5802 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
5803 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
5804 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
5805 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
5806 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
5807 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
5808 (part_gpt_mod_LDFLAGS): ... this.
5809 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
5810 `pcpart.mod' to `msdospart.mod'.
5811 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
5812 to ...
5813 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
5814 (msdospart_mod_LDFLAGS): ... this.
5815
c11fded5 58162009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5817
5818 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
5819 (openbsd_opts): Likewise.
5820 (netbsd_opts): Likewise.
5821 (freebsd_flags): Added 0 terminator.
5822 (openbsd_flags): Likewise.
5823 (netbsd_flags): Likewise.
5824 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
5825 (grub_cmd_freebsd): Transformed into extended command.
5826 (grub_cmd_openbsd): Likewise.
5827 (grub_cmd_netbsd): Likewise.
5828 (cmd_freebsd): Changed type to grub_extcmd_t.
5829 (cmd_openbsd): Likewise.
5830 (cmd_netbsd): Likewise.
5831 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
5832 grub_cmd_openbsd as extended commands.
5833 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
5834 cmd_netbsd and cmd_openbsd
5835
11d1c769 58362009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5837
5838 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
5839
7a9094e5 58402009-08-21 Pavel Roskin <proski@gnu.org>
5841
5496c37e 5842 * Makefile.in (install-local): When checking if a file is in the
5843 build directory, use "test -e" to detect symlinks.
5844
7a9094e5 5845 * Makefile.in (install-local): Remove all files in
5846 $(DESTDIR)$(pkglibdir) before installing new files there.
5847
e53cea11 58482009-08-18 Felix Zielcke <fzielcke@z-51.de>
5849
5850 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
5851 grub-mkelfimage.
5852
9aced544 58532009-08-18 Felix Zielcke <fzielcke@z-51.de>
5854
5855 * util/grub-mkconfig.in: Don't use gfxterm by default if not
5856 explicitly specified by the user.
5857
b7da6bab 58582009-08-18 Pavel Roskin <proski@gnu.org>
5859
5860 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
5861 grub_uint8_t pointer for data.
5862 * include/grub/fbutil.h (struct grub_video_fbblit_info):
5863 Likewise.
5864 * video/fb/fbutil.c: Remove unnecessary casts.
5865
19f1b335 58662009-08-17 Michal Suchanek <hramrach@centrum.cz>
5867
5868 VBE cleanup.
5869
5870 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
5871 (grub_vbe_set_video_mode): Save active mode info
5872 only after setting the mode.
5873 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
5874 second argument.
5875
2f467aa9 58762009-08-17 Michal Suchanek <hramrach@centrum.cz>
5877
5878 Rename variables for clarity.
5879
5880 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
5881 (active_vbe_mode_info): ... this. All users updated.
5882 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
5883 All users updated.
5884 (initial_mode): Rename to ...
5885 (initial_vbe_mode): ... this. All users updated.
5886 (mode_in_use): Rename to ..
5887 (vbe_mode_in_use): ... this. All users updated.
5888 (mode_list): Rename to ..
5889 (vbe_mode_list): ... this. All users updated.
5890 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
5891 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
5892 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
5893 'mode_list_size' to 'vbe_mode_list_size'.
5894 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
5895 'best_mode_info' to 'best_vbe_mode_info' and
5896 'best_mode' to 'best_vbe_mode'
5897
6025fcd7 58982009-08-17 Michal Suchanek <hramrach@centrum.cz>
5899
5900 Remove duplicate grub_video_fb_get_video_ptr.
5901
5902 * include/grub/fbutil.h (get_data_ptr): Rename to ...
5903 (grub_video_fb_get_video_ptr): ... this.
5904 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
5905 * video/fb/fbutil.c: Add comment about addressing.
5906 (get_data_ptr): Rename to ...
5907 (grub_video_fb_get_video_ptr): ... this. All users updated.
5908 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
5909
cc8c6faf 59102009-08-17 Robert Millan <rmh.grub@aybabtu.com>
5911
5912 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
5913 grub_dprintf() that was just added.
5914
08aa61f0 59152009-08-17 Robert Millan <rmh.grub@aybabtu.com>
5916
5917 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
5918 (DEFAULT_VIDEO_MODE): Remove macros.
5919 (grub_linux_boot): Remove assumption that Linux has FB support,
5920 and use "text" as default video mode.
5921
7cef4f75 59222009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
5923
5924 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
5925 grub_dprintf.
5926 * fs/fat.c (grub_fat_read_data): Likewise.
5927
e1f39873 59282009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5929
5930 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
5931 payload.
5932 (grub_module): Likewise.
5933
c166d79e 59342009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5935
5936 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
5937 mbi->cmdline but free playground.
5938
c60cee8e 59392009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5940
5941 Handle group offset on UFS1.
5942
5943 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
5944 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
5945
c0d8b5d4 59462009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5947
5948 Split ufs.mod into ufs1.mod and ufs2.mod.
5949
5950 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
5951 (grub_fstest_SOURCES): Likewise.
5952 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
5953 (ufs_mod_SOURCES): Remove.
5954 (ufs_mod_CFLAGS): Likewise.
5955 (ufs_mod_LDFLAGS): Likewise.
5956 (ufs1_mod_SOURCES): New variable.
5957 (ufs1_mod_CFLAGS): Likewise.
5958 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 5959 (ufs2_mod_SOURCES): New variable.
5960 (ufs2_mod_CFLAGS): Likewise.
5961 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 5962 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
5963 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
5964 Likewise.
5965 (grub_emu_SOURCES): Likewise.
5966 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5967 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
5968 (grub_setup_SOURCES): Likewise.
5969 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5970 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
5971 (grub_setup_SOURCES): Likewise.
5972 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
5973 Likewise.
5974 * fs/ufs2.c: New file.
5975 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
5976
d3539132 59772009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5978
5979 Framebuffer split.
5980
5981 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
5982 subsystem at the end.
5983 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
5984 (video_fb_mod_SOURCES): New variable.
5985 (video_fb_mod_CFLAGS): Likewise.
5986 (video_fb_mod_LDFLAGS): Likewise.
5987 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
5988 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
5989 * video/i386/pc/vbeblit.c: Moved from here ...
5990 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
5991 * video/i386/pc/vbefill.c: Moved from here ...
5992 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
5993 * video/i386/pc/vbeutil.c: Moved from here ...
5994 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
5995 * include/grub/i386/pc/vbeblit.h: Moved from here ...
5996 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
5997 * include/grub/i386/pc/vbefill.h: Moved from here ...
5998 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
5999 * include/grub/i386/pc/vbeutil.h: Moved from here ...
6000 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
6001 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
6002 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
6003 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
6004 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
6005 (grub_video_adapter): Added 'get_info_and_fini'.
6006 (grub_video_get_info_and_fini): New prototype.
6007 (grub_video_set_mode): make modestring const char *.
6008 * loader/i386/linux.c (grub_linux_setup_video): Use
6009 grub_video_get_info_and_fini.
6010 (grub_linux_boot): Move modesetting just before booting.
6011 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
6012 grub_video_get_info_and_fini.
6013 * video/i386/pc/vbe.c: Moved framebuffer part ...
6014 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
6015 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
6016 grub_video_fbstd_colors and grub_video_fb_set_palette.
6017 (grub_video_vbe_init): Clear 'framebuffer' variable and use
6018 grub_video_fb_init.
6019 (grub_video_vbe_fini): Use grub_video_fb_fini.
6020 (grub_video_vbe_setup): Use framebuffer.render_target instead of
6021 render_target and use grub_video_fb_set_active_render_target and
6022 grub_video_fb_set_palette.
6023 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
6024 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
6025 (grub_video_vbe_adapter): Use framebuffer.
6026 * video/video.c (grub_video_get_info_and_fini): New function.
6027 (grub_video_set_mode): Make modestring const char *.
6028 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
6029 values are already initialised.
6030
d404ee56 60312009-08-14 Pavel Roskin <proski@gnu.org>
6032
6033 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
6034 ABS and APPLE_CC.
6035 * boot/i386/pc/diskboot.S: Likewise.
6036 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
6037 sectors allow compilation on MacOSX.
6038 * conf/i386-pc.rmk: Enable unconditional compilation of
6039 lnxboot.img.
6040
9a10df16 60412009-08-13 Colin Watson <cjwatson@ubuntu.com>
6042
6043 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
6044 * util/grub.d/00_header.in: Enter interruptible sleep if
6045 GRUB_HIDDEN_TIMEOUT is set.
6046
be3c9ca7 60472009-08-13 Yves Blusseau <blusseau@zetam.org>
6048
6049 * include/grub/symbol.h: Add the LOCAL macro.
6050 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
6051 starting with "L_".
6052
1f9e557e 60532009-08-13 Pavel Roskin <proski@gnu.org>
6054
9ca62843 6055 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
6056 any modern compilers we support.
6057
1f9e557e 6058 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
6059 Use local labels starting with "L_" so that Apple assembler
6060 knows they are local.
6061
81623db6 60622009-08-10 Robert Millan <rmh.grub@aybabtu.com>
6063
6064 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
6065 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
6066 (bsd_kernel_types): ... this enum.
6067
6068 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
6069 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
6070 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
6071
6072 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
6073 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
6074 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
6075 messages.
6076
f5d35e7a 60772009-08-08 Robert Millan <rmh.grub@aybabtu.com>
6078
6079 * util/grub-dumpdevtree: Moved from here ...
6080 * util/i386/efi/grub-dumpdevtree: ... to here.
6081 (hexify): New function. Converts a string to its hex version.
6082 Generate hex versions of "efi" and "device-properties" by calling
6083 hexify() on the ASCII strings rather than by hardcoding numbers.
6084
d1e1d527 60852009-08-08 Robert Millan <rmh.grub@aybabtu.com>
6086
6087 * fs/jfs.c: Update copyright year.
6088
1ebbe064 60892009-08-08 Felix Zielcke <fzielcke@z-51.de>
6090
6091 * util/grub.d/00_header.in: Fix a comment.
6092 * util/grub.d/10_linux.in: Likewise.
6093 * util/grub.d/10_windows.in: Likewise.
6094 * util/grub.d/10_hurd.in: Likewise.
6095
a78c8d24 60962009-08-08 Felix Zielcke <fzielcke@z-51.de>
6097
6098 * util/grub-mkconfig.in: Allow the user to specify the used font
6099 with GRUB_FONT.
6100
29a6b9e8 61012009-08-08 Pavel Roskin <proski@gnu.org>
6102
b5f16cc4 6103 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
6104 available, xfs.mod needs it now.
6105
2f5cb827 6106 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
6107 the "g" modifier in sed when the intention is to strip something
6108 once. This fixes comparison of kernels with multiple dashes.
6109
29a6b9e8 6110 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
6111 on it. Add missing space before closing bracket. Fix
6112 misleading formatting.
6113
892a3d98 61142009-08-07 Robert Millan <rmh.grub@aybabtu.com>
6115
6116 * docs/grub.texi: Major overhaul. Remove all sections that are
6117 specific to GRUB Legacy, or mostly composed of Legacy-specific
6118 information.
6119
ed94253f 61202009-08-07 Robert Millan <rmh.grub@aybabtu.com>
6121
6122 * docs/version.texi: New file. Provides version information for
6123 grub.texi.
6124
126d6628 61252009-08-07 Robert Millan <rmh.grub@aybabtu.com>
6126
6127 * docs/grub.texi: Update CVS information to SVN.
6128 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
6129
998b5aa9 61302009-08-07 Felix Zielcke <fzielcke@z-51.de>
6131
6132 * util/grub-mkconfig.in: Remove a wrong `fi'.
6133
818e094a 61342009-08-07 Felix Zielcke <fzielcke@z-51.de>
6135
6136 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
6137 (grub_jfs_uuid): New function.
6138 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
6139
b969c52f 61402009-08-07 Felix Zielcke <fzielcke@z-51.de>
6141
6142 * util/grub-mkconfig_lib.in (font_path): Move the functionality
6143 of it to ...
6144 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
6145 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
6146
7a4894cc 61472009-08-07 Robert Millan <rmh.grub@aybabtu.com>
6148
6149 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
6150 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
6151 Update all users.
6152
6153 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
6154 not just "vmlinu[zx]".
6155 Moved from here ...
6156 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
6157 all users.
6158
6159 * util/grub.d/10_linux.in (find_latest): Moved from here ...
6160 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
6161 all users.
6162
4e2171f8 61632009-08-07 Robert Millan <rmh.grub@aybabtu.com>
6164
6165 * util/grub.d/10_freebsd.in: Use an absolute device path for
6166 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
6167
6dcfcb32 61682009-08-06 Felix Zielcke <fzielcke@z-51.de>
6169
6170 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
6171 handling of multiple abstraction modules.
6172
f56a8756 61732009-08-04 Robert Millan <rmh.grub@aybabtu.com>
6174
6175 Fix a bug resulting in black screen when loading Linux using a
6176 packed video mode.
6177
6178 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
6179 function.
6180
6181 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
6182 (grub_vbe_bios_getset_dac_palette_width): New function.
6183 (grub_vbe_bios_get_dac_palette_width)
6184 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
6185 grub_vbe_bios_getset_dac_palette_width()).
6186
6187 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
6188 check for return status.
6189 (grub_vbe_get_video_mode_info): When getting information for a packed
6190 mode (<= 8 bpp), obtain DAC palette width using
6191 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
6192 {red,green,blue}_mark_size.
6193
222671b2 61942009-08-04 Felix Zielcke <fzielcke@z-51.de>
6195
ecb1a6d9 6196 * commands/search.c (options): Fix help output to match actual code.
222671b2 6197
f84114f5 61982009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
6199
6200 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
6201 of homegrown code.
6202
bd288a20 62032009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 6204
6205 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
6206 on XFS or ReiserFS.
6207
8aab5e25 62082009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
6209
6210 Support Apple partition map with sector size different from 512 bytes.
6211
6212 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
6213 (apple_partition_map_iterate): Respect 'aheader.blocksize'
6214 and 'apart.partmap_size'.
6215
6ad6258a 62162009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
62172009-08-01 Robert Millan <rmh.grub@aybabtu.com>
6218
6219 Fix cpuid command.
6220
6221 * commands/i386/cpuid.c (options): New variable.
6222 (grub_cmd_cpuid): Return real error.
6223 (GRUB_MOD_INIT(cpuid)): Declare options.
6224
67459bc6 62252009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
6226
6227 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
6228 valid.
6229
fbc6ab54 62302009-07-31 Bean <bean123ch@gmail.com>
6231
6232 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
6233 log2_inode.
6234 (grub_fshelp_node): Move inode field to the end.
6235 (grub_xfs_data): Remove inode field.
6236 (grub_xfs_inode_block): Calculate inode size using sblock.
6237 (grub_xfs_inode_offset): Likewise.
6238 (grub_xfs_read_inode): Calculate inode size using sblock.
6239 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
6240 (grub_xfs_iterate_dir): Calculate inode size using sblock.
6241 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
6242 to match inode size.
6243 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
6244 not accessible when data is null.
6245 (grub_xfs_open): Likewise.
6246
f45d6cfc 62472009-07-31 Bean <bean123ch@gmail.com>
6248
6249 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
6250 Don't change pv->disk if it's already set.
6251
6252 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
6253 (grub_raid_register): ... here.
6254 (grub_raid_rescan): Removed.
6255
6256 * include/grub/raid.h (grub_raid_rescan): Removed.
6257
6258 * util/grub-fstest.c: Remove include file <grub/raid.h>.
6259 (fstest): Replace grub_raid_rescan with module fini function followed
6260 by init function.
6261
6262 * util/grub-probe.c: Add include file <grub/raid.h>.
6263 (probe_raid_level): New function.
6264 (probe): Detect abstraction by walking the disk device, support two
6265 level of abstraction (LVM on RAID) when detecting partition map.
6266
24443b5a 62672009-07-31 Pavel Roskin <proski@gnu.org>
6268
6269 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
6270 to grub_zalloc(), it was erroneous.
6271 Reported by Bean <bean123ch@gmail.com>
6272
a275d9e7 62732009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
6274
6275 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 6276 embedding zone, not only the first one.
a275d9e7 6277
56c5a47f 62782009-07-29 Joe Auricchio <jauricchio@gmail.com>
6279
6280 * term/gfxterm.c (clear_char): New function.
6281 (grub_virtual_screen_setup): Use clear_char.
6282 (scroll_up): Likewise.
6283 (grub_virtual_screen_cls): Likewise.
6284
67bb323a 62852009-07-29 Felix Zielcke <fzielcke@z-51.de>
6286
6287 * util/deviceiter.c (get_acceleraid_disk_name): New static
6288 function.
6289 (grub_util_iterate_devices): Handle Accelraid devices.
6290 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
6291
388a7c75 62922009-07-28 Robert Millan <rmh.grub@aybabtu.com>
6293
6294 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
6295 separator for the suggested gfxpayload string (';' collides with the
6296 parser and needs escaping).
6297
3bb7abcf 62982009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
6299
6300 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
6301 Clear direction flag before jumping to OS.
6302 (grub_multiboot2_real_boot): Likewise.
6303
2ddd36d7 63042009-07-28 Felix Zielcke <fzielcke@z-51.de>
6305
6306 * util/i386/pc/grub-install: Fix parsing of --disk-module
6307 option.
6308
c521b62b 63092009-07-28 Felix Zielcke <fzielcke@z-51.de>
6310
6311 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
6312 when embedding.
6313
880e0a0c 63142009-07-26 Felix Zielcke <fzielcke@z-51.de>
6315
6316 * util/grub-mkconfig.in (package_version): New variable.
6317 Use it do display the version.
6318
2366e356 63192009-07-25 Felix Zielcke <fzielcke@z-51.de>
6320
6321 * kern/file.c (grub_file_open): Revert to previous check with
6322 grub_errno.
6323
7ad8c80e 63242009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
6325
6326 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
6327 from help line. It's out of sync with code.
6328
72b9658b 63292009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
6330
6331 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
6332 entries on failed boot.
6333
77435277 63342009-07-25 Felix Zielcke <fzielcke@z-51.de>
6335
6336 * kern/file.c (grub_file_open): Fix an error check.
6337
fcaa8b21 63382009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
6339
35d16c74 6340 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
6341 partition map couldn't be identified.
fcaa8b21 6342
48904cd1 63432009-07-23 Pavel Roskin <proski@gnu.org>
6344
ef3c317f 6345 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
6346 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
6347 case of little endian words becomes just an optimization.
6348 Respect const modifier.
ad8ea1f4 6349 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 6350
48904cd1 6351 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
6352 to avoid loss of upper bits if align is unsigned and shorter
6353 than addr.
6354
260c9a89 63552009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
6356
6357 UUID support for UFS
6358
6359 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
6360 (grub_ufs_uuid): New function.
6361 (grub_ufs_fs): add .uuid
6362
f76ce889 63632009-07-21 Pavel Roskin <proski@gnu.org>
6364
6365 * kern/dl.c (grub_dl_check_header): Make static.
6366
6a6cbcaf 63672009-07-21 Felix Zielcke <fzielcke@z-51.de>
6368
6369 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
6370 add drivemap for Vista. It breaks Windows 7.
6371
cffcddb2 63722009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
6373
6374 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
6375 128 bytes
6376
1ef44b80 63772009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
6378
6379 Add BFS support
6380
6381 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
6382 (grub_fstest_SOURCES): Likewise.
6383 (pkglib_MODULES): Add befs.mod.
6384 (befs_mod_SOURCES): New variable.
6385 (befs_mod_CFLAGS): Likewise.
6386 (befs_mod_LDFLAGS): Likewise.
6387 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
6388 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6389 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6390 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
6391 (grub_setup_SOURCES): Likewise.
6392 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6393 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6394 (grub_setup_SOURCES): Likewise.
6395 * fs/befs.c: New file.
6396 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
6397 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
6398 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
6399 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
6400 (B_KEY_INDEX_ALIGN): New declaration.
6401 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
6402 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
6403 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
6404 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
6405 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
6406 (grub_afs_mount) [MODE_BFS]: Likewise.
6407 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
6408 (grub_afs_fs): Use GRUB_AFS_FSNAME
6409 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
6410 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
6411 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
6412 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
6413
4f253044 64142009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
6415
6416 * util/getroot.c (find_root_device): Add support for MacOSX.
6417 * util/hostdisk.c: Likewise.
6418
57a55913 64192009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
6420
6421 * font/font.c (find_glyph): Check whether a font is present to avoid
6422 segmentation fault.
75421ca9 6423
64242009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 6425
6426 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
6427
e98cd0c2 64282009-07-20 Pavel Roskin <proski@gnu.org>
6429
6430 * configure.ac: Trim excessively wordy excuses.
6431
1d2d169a 64322009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
6433
6434 Add symlink, mtime and label support to AtheFS.
6435
6436 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
6437 (grub_afs_iterate_dir): Handle symlinks.
6438 (grub_afs_open): Use grub_afs_read_symlink.
6439 (grub_afs_dir): Likewise.
6440 Pass mtime.
6441 (grub_afs_label): New function.
6442 (grub_afs_fs): Add grub_afs_label.
6443 (grub_afs_read_symlink): New function.
6444
186f3189 64452009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
6446
6447 Fix AtheFS support.
6448
6449 * fs/afs.c: Fix comments style.
6450 (grub_afs_blockrun): Declare as packed.
6451 (grub_afs_datastream): Likewise.
6452 (grub_afs_bnode): Likewise.
6453 (grub_afs_btree): Likewise.
6454 (grub_afs_sblock): Likewise.
6455 Declare `name' as char.
6456 (grub_afs_inode): Declare as packed.
6457 Change void *vnode to grub_uint32_t unused.
6458 (grub_afs_iterate_dir): Check that key_size is positive.
6459 (grub_afs_mount): Don't read superblock twice.
75421ca9 6460 (grub_afs_dir): Don't free node in case of error,
186f3189 6461 grub_fshelp_find_file already handles this.
6462 (grub_afs_open): Likewise.
6463
5680109e 64642009-07-19 Pavel Roskin <proski@gnu.org>
6465
6466 * Makefile.in: Remove LIBLZO and enable_lzo.
6467 * conf/i386-pc.rmk: Remove lzo support.
6468 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
6469 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
6470 support.
6471 * kern/i386/pc/lzo1x.S: Remove.
6472 * kern/i386/pc/startup.S: Remove lzo support.
6473 * util/i386/pc/grub-mkimage.c: Likewise.
6474
ac70fa32 64752009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
6476
6477 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
6478 * fs/xfs.c (grub_xfs_dir): Likewise.
6479 * fs/afs.c (grub_afs_dir): Likewise.
6480 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
6481 (grub_iso9660_open): Likewise.
6482 * fs/jfs.c (grub_jfs_open): Likewise.
6483 * fs/ext2.c (grub_ext2_dir): Likewise.
6484 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
6485 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 6486
eab58da2 64872009-07-16 Pavel Roskin <proski@gnu.org>
6488
d2838156 6489 * configure.ac: Never add "-c" to CFLAGS.
6490
55c70904 6491 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
6492
43e6200c 6493 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
6494 grub_cv_cc_efiemu should be used.
6495
ce7a733d 6496 * configure.ac: Typo fixes.
6497
eab58da2 6498 * kern/mm.c (grub_zalloc): New function.
6499 (grub_debug_zalloc): Likewise.
6500 * include/grub/mm.h: Declare grub_zalloc() and
6501 grub_debug_zalloc().
6502 * util/misc.c (grub_zalloc): New function.
6503 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
6504 instead of grub_malloc(), remove unneeded initializations.
6505 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
6506 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
6507 * commands/parttool.c (grub_cmd_parttool): Likewise.
6508 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
6509 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
6510 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
6511 * disk/usbms.c (grub_usbms_finddevs): Likewise.
6512 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
6513 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
6514 (grub_cmd_efiemu_pnvram): Likewise.
6515 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
6516 * fs/iso9660.c (grub_iso9660_mount): Likewise.
6517 (grub_iso9660_iterate_dir): Likewise.
6518 * fs/jfs.c (grub_jfs_opendir): Likewise.
6519 * fs/ntfs.c (list_file): Likewise.
6520 (grub_ntfs_mount): Likewise.
6521 * kern/disk.c (grub_disk_open): Likewise.
6522 * kern/dl.c (grub_dl_load_core): Likewise.
6523 * kern/elf.c (grub_elf_file): Likewise.
6524 * kern/env.c (grub_env_context_open): Likewise.
6525 (grub_env_set): Likewise.
6526 (grub_env_set_data_slot): Likewise.
6527 * kern/file.c (grub_file_open): Likewise.
6528 * kern/fs.c (grub_fs_blocklist_open): Likewise.
6529 * loader/i386/multiboot.c (grub_module): Likewise.
6530 * loader/xnu.c (grub_xnu_create_key): Likewise.
6531 (grub_xnu_create_value): Likewise.
6532 * normal/main.c (grub_normal_add_menu_entry): Likewise.
6533 (read_config_file): Likewise.
6534 * normal/menu_entry.c (make_screen): Likewise.
6535 * partmap/sun.c (sun_partition_map_iterate): Likewise.
6536 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
6537 * script/sh/script.c (grub_script_parse): Likewise.
6538 * video/bitmap.c (grub_video_bitmap_create): Likewise.
6539 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
6540 * video/readers/png.c (grub_png_output_byte): Likewise.
6541 (grub_video_reader_png): Likewise.
6542
830afef7 65432009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 6544
6545 Enable all targets that can be built by default
6546
830afef7 6547 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 6548 grub-mkfont and grub-fstest if they can be built
6549
ee293aee 65502009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
6551
6552 Fix hang and segmentation fault in grub-emu-usb
6553
6554 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
6555 * util/usb.c (grub_libusb_devices): likewise
6556 (grub_libusb_init): rename to ...
6557 (GRUB_MOD_INIT (libusb)):...this
6558 (grub_libusb_fini): rename to ..
6559 (GRUB_MOD_FINI (libusb)):...this
6560 * disk/usbms.c (grub_usbms_transfer): fix retry logic
6561 * include/grub/disk.h (grub_raid_init): removed, it's useless
6562 (grub_raid_fini): likewise
6563 (grub_lvm_init): likewise
6564 (grub_lvm_fini): likewise
6565 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
6566 by grub_init_all
6567
94414221 65682009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
6569
6570 Fix libusb
6571
6572 * Makefile.in (LIBUSB): new macro
6573 * genmk.rb (Utility/print_tail): new method
6574 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
6575 (top level): call util.print_tail at the end.
6576
59ade63d 65772009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
6578
6579 Make FreeBSD accept zpool.cache
6580
6581 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
6582 type is /boot/zfs/zpool.cache
6583
a58da8c7 65842009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
6585
6586 Fix 64-bit efiemu
6587
6588 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
6589 correct wrong typedef
6590 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
6591
20591577 65922009-07-15 Pavel Roskin <proski@gnu.org>
6593
560ca572 6594 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
6595 * kern/disk.c (struct grub_disk_cache): Likewise.
6596
e8e8e4fd 6597 * commands/probe.c (options): Typo fix.
6598
fde24e10 6599 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
6600 Increase to 0x5a to accommodate FAT32. Adjust other offsets
6601 accordingly.
6602 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
6603
379c54c1 6604 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
6605 the end of "Error" to make the message more readable.
6606
7bd8f5bf 6607 * boot/i386/pc/boot.S (kernel_segment): Remove.
6608 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
6609 for destination.
6610
40b132c5 6611 * boot/i386/pc/boot.S (boot_version): Remove.
6612 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
6613 Remove.
6614
20591577 6615 * include/grub/i386/pc/boot.h: Sort all offsets.
6616 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
6617 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
6618 * boot/i386/pc/boot.S: Assert location of every offset listed in
6619 include/grub/i386/pc/boot.h.
6620
2df32b2c 66212009-07-13 Pavel Roskin <proski@gnu.org>
6622
44b5d879 6623 * include/grub/i386/coreboot/machine.h: Rename
6624 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
6625 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
6626 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
6627
17dc3751 6628 * kern/dl.c: Force native word size to suppress warnings when
6629 compiling grub-emu.
6630
2df32b2c 6631 * kern/device.c (grub_device_iterate): Change struct part_ent to
6632 hold the name, not a pointer to it. Use one grub_malloc() per
6633 partition, not two. Free partition_name if grub_malloc() fails.
6634 Set ents to NULL only before grub_partition_iterate() is called.
6635
75c59f59 66362009-07-11 Bean <bean123ch@gmail.com>
6637
6638 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
6639 childname.
6640
0ae1bf88 66412009-07-10 Bean <bean123ch@gmail.com>
66422009-07-10 Robert Millan <rmh.grub@aybabtu.com>
6643
6644 * kern/ieee1275/openfw.c (grub_children_iterate)
6645 (grub_devalias_iterate): Fix size evaluation for property or path
6646 strings, which was broken since r2132.
6647
8279cade 66482009-07-07 Pavel Roskin <proski@gnu.org>
6649
7d8a52d3 6650 * commands/search.c (search_file): Merge into ...
6651 (search_fs): ... this. Accept search type as argument.
6652 (grub_cmd_search): Pass search type to search_fs().
6653
25f9a05a 6654 * include/grub/util/console.h: New file.
6655 * util/console.c: Use it instead of grub/machine/console.h.
6656 * util/grub-emu.c: Likewise.
6657
8279cade 6658 * lib/arg.c (find_long_option): Remove.
6659 (find_long): Add `len' argument, make `s' const char *.
6660 (grub_arg_parse): Parse long options in place, not in a
6661 temporary buffer.
6662
4a11b60f 66632009-07-06 Pavel Roskin <proski@gnu.org>
6664
99f68041 6665 * commands/search.c (search_fs): Fix potential NULL pointer
6666 dereference.
6667
4a11b60f 6668 * commands/search.c (search_fs): Replace QUID macro with quid_fn
6669 function pointer.
6670
e110f4de 66712009-07-06 Daniel Mierswa <impulze@impulze.org>
6672
6673 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
6674 comparison.
6675
46eeb6a2 66762009-07-05 Pavel Roskin <proski@gnu.org>
6677
bab74958 6678 * include/grub/i386/linux.h (struct linux_kernel_params):
6679 Restore padding3, it's still needed.
6680
46eeb6a2 6681 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
6682 FreeBSD.
6683 * util/osdetect.lua: Likewise.
6684
b4a1dc79 66852009-07-05 Bean <bean123ch@gmail.com>
6686
6687 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
6688
6689 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
6690 (grub_lua_getenv): Likewise.
6691 (grub_lua_setenv): Likewise.
6692 (save_errno): New function.
6693 (push_result): Likewise.
6694 (grub_lua_enum_device): Likewise.
6695 (grub_lua_enum_file): Likewise.
6696 (grub_lua_file_open): Likewise.
6697 (grub_lua_file_close): Likewise.
6698 (grub_lua_file_seek): Likewise.
6699 (grub_lua_file_read): Likewise.
6700 (grub_lua_file_getline): Likewise.
6701 (grub_lua_file_getsize): Likewise.
6702 (grub_lua_file_getpos): Likewise.
6703 (grub_lua_file_eof): Likewise.
6704 (grub_lua_file_exist): Likewise.
6705 (grub_lua_add_menu): Likewise.
6706
6707 * script/lua/grub_lua.h (isupper): New inline function.
6708 (islower): Likewise.
6709 (ispunct): Likewise.
6710 (isxdigit): Likewise.
6711 (strcspn): Change to normal function.
6712 (strpbkr): New function declaration.
6713 (memchr): Likewise.
6714
6715 * script/lua/grub_main.c (scan_str): New function.
6716 (strcspn): Likewise.
6717 (strpbrk): Likewise.
6718 (memchr): Likewise.
6719
6720 * script/lua/linit.c (lualibs): Enable the string library.
6721
6722 * util/osdetect.lua: New file.
6723
2da92295 67242009-07-04 Robert Millan <rmh.grub@aybabtu.com>
6725
6726 * include/grub/i386/linux.h (struct linux_kernel_params): Add
6727 `capabilities' member.
6728
b2582ec9 67292009-07-02 Pavel Roskin <proski@gnu.org>
6730
6731 * genparttoollist.sh: Add missing newline at the end.
6732
32622956 67332009-07-01 Pavel Roskin <proski@gnu.org>
6734
87a7339e 6735 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
6736
d23af54e 6737 * util/hostdisk.c (open_device): Remove `const' from
6738 `sysctl_size', as sysctlbyname() can change it (in this case it
6739 doesn't actually happen).
6740
c94b18a9 6741 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
6742 using signed long int constants.
6743
c6cd3ef0 6744 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
6745 constant to avoid a warning on FreeBSD.
6746
0df63420 6747 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
6748 where it's needed.
6749
999577f1 6750 * Makefile.in: Install include/grub/machine symlink.
6751
6f41557f 6752 * Makefile.in: When installing symlinks, use "cp -fR", which
6753 works on FreeBSD and MacOSX.
6754 From Yves Blusseau <cl7m42e02@sneakemail.com>
6755
c8d22988 6756 * kern/dl.c (grub_dl_resolve_symbol): Make static.
6757 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
6758
1b96e952 6759 * util/misc.c: Move grub_reboot() and grub_halt() ...
6760 * util/grub-emu.c: ... here. Make main_env static.
6761 * include/grub/util/misc.h: Remove main_env.
6762
2ef0084d 6763 * kern/mm.c: Use correct format to print size_t.
6764
32622956 6765 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
6766 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
6767 * kern/powerpc/dl.c: Likewise.
6768 * kern/sparc64/dl.c: Likewise.
6769 * kern/x86_64/dl.c: Likewise.
6770
3f7f0cd0 67712009-07-01 Robert Millan <rmh.grub@aybabtu.com>
6772
6773 Fix grub-emu build on sparc64-ieee1275.
6774
75421ca9 6775 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 6776 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
6777
211d06b5 67782009-07-01 Robert Millan <rmh.grub@aybabtu.com>
6779
6780 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
6781 (grub_reboot, grub_halt): New functions.
6782
6783 * util/i386/pc/misc.c: Delete. Update all users.
6784 * util/sparc64/ieee1275/misc.c: Likewise.
6785 * util/powerpc/ieee1275/misc.c: Likewise.
6786
aaf53e3c 67872009-07-01 Robert Millan <rmh.grub@aybabtu.com>
6788
6789 * conf/i386.rmk (setjmp_mod_SOURCES)
6790 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
6791 * conf/common.rmk (setjmp_mod_SOURCES)
6792 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
6793 to use $(target_cpu).
6794 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
6795 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
6796 * conf/powerpc-ieee1275.rmk: Likewise.
6797 * conf/sparc64-ieee1275.rmk: Likewise.
6798
6799 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
6800 $(target_cpu) for kern/$(target_cpu)/dl.c.
6801 * conf/i386-efi.rmk: Likewise.
6802 * conf/i386-ieee1275.rmk: Likewise.
6803 * conf/x86_64-efi.rmk: Likewise.
6804 * conf/i386-coreboot.rmk: Likewise.
6805 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
6806 $(target_cpu) for kern/$(target_cpu)/dl.c and for
6807 kern/$(target_cpu)/cache.S.
6808 * conf/sparc64-ieee1275.rmk: Likewise.
6809
a337130b 68102009-07-01 Robert Millan <rmh.grub@aybabtu.com>
6811
6812 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
6813 type to `grub_uint8_t', and adjust `padding9' accordingly.
6814
c6fe4d53 68152009-06-29 Robert Millan <rmh.grub@aybabtu.com>
6816
b09db61d 6817 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
6818
c6fe4d53 6819 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
6820 assembly in final jump, using register constraints.
6821
b09db61d 6822 (grub_linux_boot): For text mode, initialize `have_vga' using
6823 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
6824
6825 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
6826 right before the final jump.
6827
6828 Set `video_mode' to 0x3.
6829
6830 Document initialization of `video_page', `video_mode' and
6831 `video_ega_bx'.
6832
28333ad0 68332009-06-29 Robert Millan <rmh.grub@aybabtu.com>
6834
6835 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
6836 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 6837 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 6838
02164e1b 68392009-06-29 Robert Millan <rmh.grub@aybabtu.com>
6840
6841 Fix build on Debian / sparc.
6842
6843 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
6844
18b6c557 68452009-06-28 Pavel Roskin <proski@gnu.org>
6846
85f2aab6 6847 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
6848 fix a warning.
6849
18b6c557 6850 * util/grub.d/10_linux.in: Match SUSE style initrd names.
6851
ad760f81 68522009-06-27 Robert Millan <rmh.grub@aybabtu.com>
6853
6854 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
6855 `err'.
6856
87a4623b 68572009-06-27 Robert Millan <rmh.grub@aybabtu.com>
6858
6859 Revert r2338.
6860
6861 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
6862 file can't be opened. grub_file_open() is already supposed to set
75421ca9 6863 grub_errno / grub_errmsg appropriately.
87a4623b 6864 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
6865
8231fb77 68662009-06-27 Pavel Roskin <proski@gnu.org>
68672009-06-27 Robert Millan <rmh.grub@aybabtu.com>
6868
6869 * include/grub/dl.h: Include grub/elf.h.
6870 (struct grub_dl): Add symtab field.
6871 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
6872 GRUB_MODULES_MACHINE_READONLY.
6873 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
6874 of the header for read-only modules.
6875 (grub_dl_unload): Free mod->symtab for read-only modules.
6876 * kern/i386/dl.c: Use mod->symtab.
6877 * kern/powerpc/dl.c: Likewise.
6878 * kern/sparc64/dl.c: Likewise.
6879 * kern/x86_64/dl.c: Likewise.
6880
6881 * conf/i386-qemu.rmk: New file.
6882 * kern/i386/qemu/startup.S: Likewise.
6883 * kern/i386/qemu/mmap.c: Likewise.
6884 * boot/i386/qemu/boot.S: Likewise.
6885 * include/grub/i386/qemu/time.h: Likewise.
6886 * include/grub/i386/qemu/serial.h: Likewise.
6887 * include/grub/i386/qemu/kernel.h: Likewise.
6888 * include/grub/i386/qemu/console.h: Likewise.
6889 * include/grub/i386/qemu/boot.h: Likewise.
6890 * include/grub/i386/qemu/init.h: Likewise.
6891 * include/grub/i386/qemu/machine.h: Likewise.
6892 * include/grub/i386/qemu/loader.h: Likewise.
6893 * include/grub/i386/qemu/memory.h: Likewise.
6894
6895 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
6896 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
6897 [qemu] (pkglib_IMAGES): Add `boot.img'.
6898 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
6899 [qemu] (boot_img_FORMAT): New variables.
6900 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
6901 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
6902 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
6903 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
6904 [qemu] (kernel_img_FORMAT): New variables.
6905
6906 * configure.ac: Recognise `i386-qemu'.
6907
6908 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
6909 (for no compression).
6910 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
6911 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
6912 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
6913 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
6914 ifdefs).
6915
97fe384e 69162009-06-27 Pavel Roskin <proski@gnu.org>
6917
6918 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
6919 read.
6920 * efiemu/prepare32.c: Likewise.
6921 * efiemu/prepare64.c: Likewise.
6922
c402ab17 69232009-06-26 Pavel Roskin <proski@gnu.org>
6924
6925 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
6926 * include/grub/elf.h: Define symbols without "32" or "64" based
6927 on GRUB_TARGET_WORDSIZE.
6928 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
6929 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
6930 ELF definitions.
6931 * efiemu/loadcore64.c: Likewise.
6932 * loader/i386/bsd32.c: Likewise.
6933 * loader/i386/bsd64.c: Likewise.
6934 * kern/dl.c: Remove own ELF definitions.
6935 * util/i386/efi/grub-mkimage.c: Likewise.
6936
9bbdfd4d 69372009-06-23 Robert Millan <rmh.grub@aybabtu.com>
6938
6939 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
6940 segment 0x0 unconditionally, because the reference generated by
6941 GAS is an absolute address.
6942
a42ce6e9 69432009-06-22 Robert Millan <rmh.grub@aybabtu.com>
6944
6945 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
6946 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
6947
c952cf92 69482009-06-22 Robert Millan <rmh.grub@aybabtu.com>
6949
6950 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
6951 indexes. Check for -f explicitly.
cc3752ad 6952 (search_file): Improve error message.
6953 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 6954
132a0a59 69552009-06-22 Robert Millan <rmh.grub@aybabtu.com>
6956
6957 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
6958 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
6959
387a140c 69602009-06-22 Robert Millan <rmh.grub@aybabtu.com>
6961
6962 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
6963 * conf/i386-ieee1275.rmk: Likewise.
6964 * conf/i386-coreboot.rmk: Likewise.
6965
6966 * kern/i386/pc/startup.S (grub_stop): Remove function.
6967 * kern/i386/ieee1275/startup.S: Likewise.
6968 * kern/i386/coreboot/startup.S: Likewise.
6969 * kern/i386/misc.S (grub_stop): New function.
6970
41da9665 69712009-06-22 Robert Millan <rmh.grub@aybabtu.com>
6972
6973 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
6974 * kern/i386/realmode.S (real_to_prot): ... to here.
6975
bf337234 69762009-06-22 Robert Millan <rmh.grub@aybabtu.com>
6977
6978 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
6979 with `kernel.img'.
6980 (kernel_elf_SOURCES): Rename to ...
6981 (kernel_img_SOURCES): ... this.
6982 (kernel_elf_HEADERS): Rename to ...
6983 (kernel_img_HEADERS): ... this. Update all users.
6984 (kernel_elf_ASFLAGS): Rename to ...
6985 (kernel_img_ASFLAGS): ... this.
6986 (kernel_elf_CFLAGS): Rename to ...
6987 (kernel_img_CFLAGS): ... this.
6988 (kernel_elf_LDFLAGS): Rename to ...
6989 (kernel_img_LDFLAGS): ... this.
6990 * conf/i386-coreboot.rmk: Likewise.
6991 * conf/powerpc-ieee1275.rmk: Likewise.
6992
6993 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
6994 with "kernel.img".
6995
f52196ff 69962009-06-21 Pavel Roskin <proski@gnu.org>
6997
c3cee413 6998 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
6999 to match nested functions.
7000 * loader/sparc64/ieee1275/linux.c: Likewise.
7001
f52196ff 7002 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
7003
58750afc 70042009-06-21 Robert Millan <rmh.grub@aybabtu.com>
7005
7006 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
7007 all i386 platforms.
7008
15355c7d 70092009-06-21 Robert Millan <rmh.grub@aybabtu.com>
7010
7011 Fix asm file handling on ELF, and remove workarounds.
7012
7013 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 7014 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 7015 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
7016 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
7017
3f3ec72b 70182009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
7019
7020 Load BSD ELF modules
7021
7022 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
7023 and loader/i386/bsd64.c
7024 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
7025 (FREEBSD_MODTYPE_ELF_MODULE): New definition
7026 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
7027 (grub_freebsd_load_elfmodule32): New declaration
7028 (grub_freebsd_load_elfmoduleobj64): Likewise
7029 (grub_freebsd_load_elf_meta32): Likewise
7030 (grub_freebsd_load_elf_meta64): Likewise
7031 (grub_freebsd_add_meta): Likewise
7032 (grub_freebsd_add_meta_module): Likewise
7033 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
7034 (grub_freebsd_add_meta_module): Likewise and move module-specific
7035 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
7036 (grub_cmd_freebsd): Add elf-kernel specific parts
7037 based on grub_freebsd_add_meta_module
7038 (grub_cmd_freebsd_module): Add type parsing moved from
7039 grub_freebsd_add_meta_module
7040 (grub_cmd_freebsd_module_elf): New function
7041 (cmd_freebsd_module_elf): New variable
7042 (GRUB_MOD_INIT): Register freebsd_module_elf
7043 * loader/i386/bsd32.c: New file
7044 * loader/i386/bsd64.c: Likewise
7045 * loader/i386/bsdXX.c: Likewise
7046 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
7047 (grub_elf64_load): Likewise
7048 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
7049 All users updated
7050 (grub_elf64_load_hook_t): Likewise
7051
0db15301 70522009-06-21 Colin Watson <cjwatson@ubuntu.com>
7053
7054 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
7055 variable.
7056 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
7057 don't write a menu entry for recovery mode.
7058
546796c1 70592009-06-20 Robert Millan <rmh.grub@aybabtu.com>
7060
7061 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
7062 after it's no longer needed.
7063
cd7310d5 70642009-06-20 Robert Millan <rmh.grub@aybabtu.com>
7065
7066 * include/grub/i386/loader.h (grub_linux_prot_size)
7067 (grub_linux_tmp_addr, grub_linux_real_addr)
7068 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
7069 GRUB_MACHINE_PCBIOS.
7070 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
7071 common grub_util_info() call to ...
7072 (generate_image): ... here.
7073 Fix use of uninitialized memory, comparison of signed with
7074 unsigned integers and memory leak.
7075 Remove bogus module address message.
7076
ab32d3b5 70772009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
7078
7079 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
7080 grub_raid_register
7081 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
7082
024ef597 70832009-06-19 Pavel Roskin <proski@gnu.org>
7084
7085 * configure.ac: Remove stray AC_MSG_CHECKING.
7086
3ac72b51 70872009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
7088
7089 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 7090
e14cd814 70912009-06-18 Pavel Roskin <proski@gnu.org>
7092
7093 * conf/common.rmk: Add fs_file.mod.
7094 * disk/fs_file.c: New file.
7095 * include/grub/disk.h (enum grub_disk_dev_id): Add
7096 GRUB_DISK_DEVICE_FILE_ID.
7097
26586d98 70982009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
7099
7100 Fix build with Apple's toolchain. Part 2
7101
7102 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
7103 a fake start
7104
26de2bcd 71052009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
7106
7107 Fix build with Apple's toolchain. Part 1
7108
7109 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
7110 for long calls
7111 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 7112 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 7113 Apple's toolchain
7114
09b3490b 71152009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
7116
7117 Fix warnings
7118
7119 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
7120 (decomp_block): initialize ch
7121 use grub_memcpy instead of memcpy
7122
c22a006a 71232009-06-17 Pavel Roskin <proski@gnu.org>
7124
d3638678 7125 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
7126 version, use declarations needed to use vga_text as the startup
7127 console.
7128
c22a006a 7129 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
7130 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
7131 the kernel.
7132 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
7133 and grub_at_keyboard_fini(), it's done on module load and
7134 unload.
7135
05b129e0 71362009-06-17 Felix Zielcke <fzielcke@z-51.de>
7137
7138 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
7139 file can't be found.
7140 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7141
cf24ed9e 71422009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
7143
7144 Fix newline handling
7145
7146 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 7147 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 7148 (grub_script_yylex): don't segfault on unterminated script
7149 newline terminates command and variable
7150
74aa8e4b 71512009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
7152
7153 avoid double grub_adjust_range call. Bug reported by David Simner
7154
7155 * kern/disk.c (grub_disk_write): change to raw disk access before
7156 calling disk_read
7157
1bd265f3 71582009-06-17 Colin Watson <cjwatson@ubuntu.com>
7159
7160 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
7161 spaces, for the benefit of help2man.
7162 * util/i386/efi/grub-mkimage.c (usage): Likewise.
7163
a2d08c06 71642009-06-16 Pavel Roskin <proski@gnu.org>
7165
7166 * kern/i386/halt.c: Include grub/machine/init.h.
7167 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
7168
b97bcb19 71692009-06-16 Felix Zielcke <fzielcke@z-51.de>
7170
7171 * util/grub.d/30_os-prober.in: Use ${root} in the generated
7172 drivemap menuentry.
7173
0644f96c 71742009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
7175
7176 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
7177 `echo' command.
7178
3ef17a2e 71792009-06-16 Pavel Roskin <proski@gnu.org>
7180
7181 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
7182 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
7183 save %dx, we only need %dl and we never change it.
7184 * boot/i386/pc/cdboot.S: Don't set the root drive.
7185 * boot/i386/pc/pxeboot.S: Likewise.
7186 * include/grub/i386/pc/boot.h: Remove
7187 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
7188 GRUB_BOOT_MACHINE_DRIVE_CHECK.
7189 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
7190 * kern/i386/pc/init.c (make_install_device): Remove references
7191 to grub_root_drive.
7192 * kern/i386/pc/startup.S: Likewise.
7193 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
7194
693fe637 71952009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
7196
7197 xnu_uuid command
7198
7199 * commands/xnu_uuid.c: new file
7200 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
7201 (xnu_uuid_mod_SOURCES): new variable
7202 (xnu_uuid_mod_CFLAGS): likewise
7203 (xnu_uuid_mod_LDFLAGS): likewise
7204 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
7205 * conf/i386-ieee1275.rmk: likewise
7206 * conf/i386-pc.rmk: likewise
7207 * conf/powerpc-ieee1275.rmk: likewise
7208 * conf/sparc64-ieee1275.rmk: likewise
7209 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
7210
c9da87d0 72112009-06-16 Pavel Roskin <proski@gnu.org>
7212
7213 * configure.ac: Avoid '==' in test command, it's not portable.
7214
9c6f4596 72152009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
7216
7217 Probe command
7218
7219 * commands/probe.c: new file
7220 * conf/common.rmk (pkglib_MODULES): add probe.mod
7221 (probe_mod_SOURCES): new variable
7222 (probe_mod_CFLAGS): likewise
7223 (probe_mod_LDFLAGS): likewise
7224 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
7225 * conf/i386-ieee1275.rmk: likewise
7226 * conf/i386-pc.rmk: likewise
7227 * conf/powerpc-ieee1275.rmk: likewise
7228 * conf/sparc64-ieee1275.rmk: likewise
7229
70b7f9fd 72302009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
7231
7232 Fix handling of string like \"hello\" and "a
7233 b"
7234
7235 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
7236 (grub_script_yylex): fix parsing of quoting, escaping and newline
7237
71c79a6b 72382009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
7239
dd74360c 7240 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 7241 handling
dd74360c 7242
0644f96c 72432009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 7244
7245 * util/grub-mkconfig.in: Fix parsing of --output option.
7246
e40893c3 72472009-06-12 Pavel Roskin <proski@gnu.org>
7248
7249 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
7250 genmk.rb don't need to be generated or installed.
7251
3a1acfe2 72522009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
7253
7254 * commands/i386/pc/drivemap_int13h.S: add more comments
7255
3a4575d4 72562009-06-11 Pavel Roskin <proski@gnu.org>
7257
0658e928 7258 * Makefile.in (uninstall): Uninstall manuals.
7259
ca0388f0 7260 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
7261 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
7262 and update-grub_lib in two places.
7263 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
7264
e3b27c39 7265 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
7266 a compiler warning.
7267
3a4575d4 7268 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
7269 `entry_lo' to fix variable shadowing.
7270
af1f4f55 72712009-06-11 Christian Franke <franke@computer.org>
7272
7273 * kern/misc.c (__enable_execute_stack): Add missing return type
7274 to prevent gcc warning.
7275
5225e649 72762009-06-11 Felix Zielcke <fzielcke@z-51.de>
7277
7278 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
7279
7d83bd47 72802009-06-11 Pavel Roskin <proski@gnu.org>
7281
c1cb63ba 7282 * Makefile.in: Don't rely on any scripts being executable.
7283 Always use $(SHELL) to run shell scripts.
7284
7d83bd47 7285 * configure.ac: Always define ___main if using -nostdlib. This
7286 fixes tests on Cygwin.
7287
948f48e7 72882009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
7289
7290 UDF fix
7291
7d83bd47 7292 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 7293 is in bytes and not in blocks
7d83bd47 7294
8ada9bc1 72952009-06-11 Pavel Roskin <proski@gnu.org>
7296
7297 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
7298 warning.
7299
25ad2323 73002009-06-11 Felix Zielcke <fzielcke@z-51.de>
7301
7302 * util/grub.d/30_os-prober.in: Fix a comment. Source
7303 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
7304 to set the root device. Place drivemap command in the generated
7305 chain entry.
7306
e65acb0c 73072009-06-11 Pavel Roskin <proski@gnu.org>
7308
7309 * configure.ac: Remove host_m32. Issues with 64-bit utilities
7310 have long been resolved.
7311
f285fe2d 73122009-06-11 Colin Watson <cjwatson@ubuntu.com>
7313
bd47b0b5 7314 * util/grub.d/10_linux.in: Capitalise "Linux".
7315
f285fe2d 7316 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
7317
a0c62e4e 73182009-06-11 Pavel Roskin <proski@gnu.org>
7319
b6783cb2 7320 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
7321 fix a gcc warning and ensure that the function won't ever exit.
7322
dde032e8 7323 * kern/i386/ieee1275/init.c: Add missing prototype for
7324 grub_stop_floppy().
7325
22cd079d 7326 * loader/ieee1275/multiboot2.c [__i386__]: Include
7327 grub/cpu/multiboot.h.
7328
a0c62e4e 7329 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
7330 casts to short - they are not portable and cause warnings. Fix
7331 use of uninitialized values in input_buf. Use ARRAY_SIZE.
7332
63963d17 73332009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
7334
7335 Drivemap fixes
7336
7337 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
7338 new function
7339 (grub_get_root_biosnumber_saved): new variable
7340 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
7341 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 7342 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 7343 %dx after the call if necessary
7344 * conf/common.rmk (pkglib_MODULES): remove boot.mod
7345 (boot_mod_SOURCES): remove
7346 (boot_mod_CFLAGS): remove
7347 (boot_mod_LDFLAGS): remove
7348 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
7349 (boot_mod_SOURCES): new variable
7350 (boot_mod_CFLAGS): likewise
7351 (boot_mod_LDFLAGS): likewise
7352 * conf/i386-efi.rmk: likewise
7353 * conf/i386-ieee1275.rmk: likewise
7354 * conf/i386-pc.rmk: likewise
7355 * conf/powerpc-ieee1275.rmk: likewise
7356 * conf/sparc64-ieee1275.rmk: likewise
7357 * conf/x86_64-efi.rmk: likewise
7358 * include/grub/i386/pc/biosnum.h: new file
7359 * lib/i386/pc/biosnum.c: likewise
7360 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
7361 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
7362 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 7363
33abf7ae 73642009-06-10 Pavel Roskin <proski@gnu.org>
7365
5ac35b35 7366 * io/gzio.c (test_header): Don't reuse one buffer for all data.
7367 Use separate variables. Read only the file size at the end, but
7368 not the checksum that we don't use.
7369
5c5215d5 7370 * kern/file.c (grub_file_read): Use void pointer for the buffer.
7371 Adjust all callers.
7372
27d5fef7 7373 * kern/ieee1275/openfw.c: Remove libc includes.
7374 * kern/ieee1275/cmain.c: Likewise.
7375 * include/grub/ieee1275/ieee1275.h: Likewise.
7376
33abf7ae 7377 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
7378 compiler warnings.
7379
19d50c2b 73802009-06-10 Felix Zielcke <fzielcke@z-51.de>
7381
7382 * Makefile.in: Remove all trailing whitespace.
7383 * conf/i386-pc.rmk: Likewise.
7384 * conf/powerpc-ieee1275.rmk: Likewise.
7385 * conf/sparc64-ieee1275.rmk: Likewise.
7386 * docs/grub.texi: Likewise.
7387 * docs/texinfo.tex: Likewise.
7388 * disk/fs_uuid.c: Likewise.
7389 * disk/lvm.c: Likewise.
7390 * disk/scsi.c: Likewise.
7391 * disk/ata.c: Likewise.
7392 * disk/ieee1275/ofdisk.c: Likewise.
7393 * disk/i386/pc/biosdisk.c: Likewise.
7394 * disk/host.c: Likewise.
7395 * disk/raid.c: Likewise.
7396 * disk/efi/efidisk.c: Likewise.
7397 * disk/usbms.c: Likewise.
7398 * disk/memdisk.c: Likewise.
7399 * disk/loopback.c: Likewise.
7400 * kern/powerpc/dl.c: Likewise.
7401 * kern/device.c: Likewise.
7402 * kern/dl.c: Likewise.
7403 * kern/sparc64/dl.c: Likewise.
7404 * kern/ieee1275/ieee1275.c: Likewise.
7405 * kern/term.c: Likewise.
7406 * kern/fs.c: Likewise.
7407 * kern/i386/dl.c: Likewise.
7408 * kern/i386/pc/startup.S: Likewise.
7409 * kern/i386/pc/init.c: Likewise.
7410 * kern/i386/pc/mmap.c: Likewise.
7411 * kern/i386/pc/lzo1x.S: Likewise.
7412 * kern/i386/ieee1275/init.c: Likewise.
7413 * kern/i386/realmode.S: Likewise.
7414 * kern/i386/tsc.c: Likewise.
7415 * kern/partition.c: Likewise.
7416 * kern/corecmd.c: Likewise.
7417 * kern/file.c: Likewise.
7418 * kern/efi/efi.c: Likewise.
7419 * kern/efi/init.c: Likewise.
7420 * kern/efi/mm.c: Likewise.
7421 * kern/main.c: Likewise.
7422 * kern/err.c: Likewise.
7423 * kern/env.c: Likewise.
7424 * kern/disk.c: Likewise.
7425 * kern/generic/millisleep.c: Likewise.
7426 * kern/generic/rtc_get_time_ms.c: Likewise.
7427 * kern/misc.c: Likewise.
7428 * kern/parser.c: Likewise.
7429 * genmk.rb: Likewise.
7430 * configure.ac: Likewise.
7431 * boot/i386/pc/diskboot.S: Likewise.
7432 * boot/i386/pc/pxeboot.S: Likewise.
7433 * boot/i386/pc/boot.S: Likewise.
7434 * boot/i386/pc/lnxboot.S: Likewise.
7435 * boot/i386/pc/cdboot.S: Likewise.
7436 * parttool/pcpart.c: Likewise.
7437 * video/readers/tga.c: Likewise.
7438 * video/video.c: Likewise.
7439 * video/bitmap.c: Likewise.
7440 * lib/envblk.c: Likewise.
7441 * lib/i386/setjmp.S: Likewise.
7442 * fs/xfs.c: Likewise.
7443 * fs/afs.c: Likewise.
7444 * fs/fat.c: Likewise.
7445 * fs/ntfs.c: Likewise.
7446 * fs/udf.c: Likewise.
7447 * fs/affs.c: Likewise.
7448 * fs/iso9660.c: Likewise.
7449 * fs/hfs.c: Likewise.
7450 * fs/fshelp.c: Likewise.
7451 * fs/ext2.c: Likewise.
7452 * fs/jfs.c: Likewise.
7453 * fs/reiserfs.c: Likewise.
7454 * fs/hfsplus.c: Likewise.
7455 * fs/minix.c: Likewise.
7456 * fs/cpio.c: Likewise.
7457 * fs/sfs.c: Likewise.
7458 * fs/ufs.c: Likewise.
7459 * efiemu/prepare.c: Likewise.
7460 * efiemu/loadcore_common.c: Likewise.
7461 * efiemu/runtime/efiemu.sh: Likewise.
7462 * efiemu/runtime/efiemu.S: Likewise.
7463 * efiemu/runtime/efiemu.c: Likewise.
7464 * efiemu/pnvram.c: Likewise.
7465 * efiemu/main.c: Likewise.
7466 * efiemu/i386/pc/cfgtables.c: Likewise.
7467 * efiemu/i386/loadcore64.c: Likewise.
7468 * efiemu/i386/loadcore32.c: Likewise.
7469 * efiemu/loadcore.c: Likewise.
7470 * efiemu/symbols.c: Likewise.
7471 * efiemu/mm.c: Likewise.
7472 * include/grub/autoefi.h: Likewise.
7473 * include/grub/datetime.h: Likewise.
7474 * include/grub/term.h: Likewise.
7475 * include/grub/hfs.h: Likewise.
7476 * include/grub/lvm.h: Likewise.
7477 * include/grub/i386/tsc.h: Likewise.
7478 * include/grub/i386/linux.h: Likewise.
7479 * include/grub/i386/xnu.h: Likewise.
7480 * include/grub/i386/efiemu.h: Likewise.
7481 * include/grub/i386/pc/biosdisk.h: Likewise.
7482 * include/grub/i386/pc/memory.h: Likewise.
7483 * include/grub/i386/pc/vbe.h: Likewise.
7484 * include/grub/parttool.h: Likewise.
7485 * include/grub/video.h: Likewise.
7486 * include/grub/memory.h: Likewise.
7487 * include/grub/fs.h: Likewise.
7488 * include/grub/partition.h: Likewise.
7489 * include/grub/xnu.h: Likewise.
7490 * include/grub/efi/api.h: Likewise.
7491 * include/grub/efi/pe32.h: Likewise.
7492 * include/grub/efi/memory.h: Likewise.
7493 * include/grub/multiboot.h: Likewise.
7494 * include/grub/usbdesc.h: Likewise.
7495 * include/grub/multiboot2.h: Likewise.
7496 * include/grub/acpi.h: Likewise.
7497 * include/grub/efiemu/efiemu.h: Likewise.
7498 * include/grub/disk.h: Likewise.
7499 * include/grub/ieee1275/ieee1275.h: Likewise.
7500 * include/grub/net.h: Likewise.
7501 * include/grub/machoload.h: Likewise.
7502 * include/grub/macho.h: Likewise.
7503 * include/multiboot.h: Likewise.
7504 * genmoddep.awk: Likewise.
7505 * normal/main.c: Likewise.
7506 * normal/menu_entry.c: Likewise.
7507 * normal/menu_viewer.c: Likewise.
7508 * normal/completion.c: Likewise.
7509 * normal/cmdline.c: Likewise.
7510 * normal/misc.c: Likewise.
7511 * normal/datetime.c: Likewise.
7512 * bus/usb/usbtrans.c: Likewise.
7513 * bus/usb/ohci.c: Likewise.
7514 * bus/usb/uhci.c: Likewise.
7515 * bus/usb/usb.c: Likewise.
7516 * mmap/efi/mmap.c: Likewise.
7517 * mmap/i386/pc/mmap_helper.S: Likewise.
7518 * mmap/i386/pc/mmap.c: Likewise.
7519 * mmap/i386/mmap.c: Likewise.
7520 * mmap/i386/uppermem.c: Likewise.
7521 * mmap/mmap.c: Likewise.
7522 * commands/acpi.c: Likewise.
7523 * commands/echo.c: Likewise.
7524 * commands/blocklist.c: Likewise.
7525 * commands/loadenv.c: Likewise.
7526 * commands/usbtest.c: Likewise.
7527 * commands/boot.c: Likewise.
7528 * commands/parttool.c: Likewise.
7529 * commands/search.c: Likewise.
7530 * commands/cat.c: Likewise.
7531 * commands/i386/pc/play.c: Likewise.
7532 * commands/i386/pc/drivemap.c: Likewise.
7533 * commands/i386/pc/vbeinfo.c: Likewise.
7534 * commands/i386/pc/acpi.c: Likewise.
7535 * commands/i386/pc/vbetest.c: Likewise.
7536 * commands/ls.c: Likewise.
7537 * commands/cmp.c: Likewise.
7538 * commands/test.c: Likewise.
7539 * commands/efi/acpi.c: Likewise.
7540 * commands/gptsync.c: Likewise.
7541 * commands/help.c: Likewise.
7542 * partmap/amiga.c: Likewise.
7543 * partmap/apple.c: Likewise.
7544 * partmap/acorn.c: Likewise.
7545 * partmap/pc.c: Likewise.
7546 * partmap/sun.c: Likewise.
7547 * partmap/gpt.c: Likewise.
7548 * script/sh/lexer.c: Likewise.
7549 * script/sh/function.c: Likewise.
7550 * font/font.c: Likewise.
7551 * font/font_cmd.c: Likewise.
7552 * loader/powerpc/ieee1275/linux.c: Likewise.
7553 * loader/efi/chainloader.c: Likewise.
7554 * loader/multiboot_loader.c: Likewise.
7555 * loader/macho.c: Likewise.
7556 * loader/i386/multiboot.c: Likewise.
7557 * loader/i386/linux.c: Likewise.
7558 * loader/i386/pc/linux.c: Likewise.
7559 * loader/i386/pc/multiboot2.c: Likewise.
7560 * loader/i386/pc/chainloader.c: Likewise.
7561 * loader/i386/pc/xnu.c: Likewise.
7562 * loader/i386/bsd_trampoline.S: Likewise.
7563 * loader/i386/efi/linux.c: Likewise.
7564 * loader/i386/multiboot_elfxx.c: Likewise.
7565 * loader/i386/bsd_helper.S: Likewise.
7566 * loader/i386/bsd.c: Likewise.
7567 * loader/i386/linux_trampoline.S: Likewise.
7568 * loader/i386/xnu_helper.S: Likewise.
7569 * loader/i386/xnu.c: Likewise.
7570 * loader/i386/bsd_pagetable.c: Likewise.
7571 * loader/i386/multiboot_helper.S: Likewise.
7572 * loader/xnu.c: Likewise.
7573 * loader/xnu_resume.c: Likewise.
7574 * io/gzio.c: Likewise.
7575 * term/efi/console.c: Likewise.
7576 * term/terminfo.c: Likewise.
7577 * term/ieee1275/ofconsole.c: Likewise.
7578 * term/i386/pc/serial.c: Likewise.
7579 * term/i386/pc/vesafb.c: Likewise.
7580 * term/i386/pc/vga.c: Likewise.
7581 * term/usb_keyboard.c: Likewise.
7582 * term/gfxterm.c: Likewise.
7583 * aclocal.m4: Likewise.
7584 * util/lvm.c: Likewise.
7585 * util/grub.d/30_os-prober.in: Likewise.
7586 * util/grub.d/10_hurd.in: Likewise.
7587 * util/console.c: Likewise.
7588 * util/grub-macho2img.c: Likewise.
7589 * util/grub-probe.c: Likewise.
7590 * util/hostfs.c: Likewise.
7591 * util/i386/pc/grub-mkimage.c: Likewise.
7592 * util/i386/pc/grub-setup.c: Likewise.
7593 * util/i386/efi/grub-mkimage.c: Likewise.
7594 * util/grub-mkconfig.in: Likewise.
7595 * util/raid.c: Likewise.
7596 * util/resolve.c: Likewise.
7597 * util/grub-mkdevicemap.c: Likewise.
7598 * util/grub-emu.c: Likewise.
7599 * util/getroot.c: Likewise.
7600 * util/hostdisk.c: Likewise.
7601 * util/usb.c: Likewise.
7602 * util/grub-editenv.c: Likewise.
7603 * util/misc.c: Likewise.
7604
d2d49665 76052009-06-10 Felix Zielcke <fzielcke@z-51.de>
7606
7607 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
7608 `genparttoollist.sh'.
7609 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
7610 Add `*.sh' to the list find searches for and change `mdate.sh'
7611 to `mdate-sh'.
7612
fe052e37 76132009-06-10 Pavel Roskin <proski@gnu.org>
7614
2763ac18 7615 * include/grub/multiboot2.h: Provide compatibility defines for
7616 multiboot2.h.
7617 * include/multiboot2.h: Include stdint.h only if needed, using
7618 angle brackets.
7619 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
7620 grub/multiboot2.h.
7621 * loader/ieee1275/multiboot2.c: Likewise.
7622 * loader/multiboot2.c: Likewise.
7623 * loader/multiboot_loader.c: Likewise.
7624
437e6adc 7625 * configure.ac: Use -nostdlib when probing for the target. It
7626 should not be required to have libc for the target.
7627
06a6836c 7628 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
7629 they fail without libc headers for the target.
7630 * include/grub/powerpc/libgcc.h: Use weak attribute for all
7631 exports.
7632 * include/grub/sparc64/libgcc.h: Likewise. Don't use
7633 preprocessor conditionals.
7634
fe052e37 7635 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
7636 build system doesn't need to be aware of the tar.c internals.
7637
afd22553 76382009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 7639
afd22553 7640 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 7641
6b787c4f 76422009-06-09 Robert Millan <rmh.grub@aybabtu.com>
7643
7644 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
7645 disk limit to 26 for IDE, Virtio, Xen and SCSI.
7646
76472009-06-09 Felix Zielcke <fzielcke@z-51.de>
7648
7649 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 7650 aren't available if ata.mod gets used.
6b787c4f 7651
473d1e45 76522009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 7653
473d1e45 7654 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 7655 initialising controller.
473d1e45 7656 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 7657
255a27d4 76582009-06-08 Felix Zielcke <fzielcke@z-51.de>
7659
7660 * util/i386/pc/grub-install.in: Add a parameter --disk-module
7661 to choose between ata and biosdisk module on i386-pc.
7662
473d1e45 76632009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 7664
d55842d8 7665 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
7666 Subclass and Programming Interface fields in terms of the 3 byte
7667 Class Code register.
7668 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
7669
fa5db0b1 7670 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
7671 interface is OHCI. Add grub_dprintf for symmetry with
7672 bus/usb/uhci.c.
7673 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
7674 interface is UHCI. Add interf variable for programming
7675 interface. Print interface with class/subclass.
7676
c0947beb 7677 * bus/usb/ohci.c: Set interf with correct field.
7678
69da8877 7679 * bus/usb/uhci.c: Remove unneeded doubled lines.
7680 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
7681 Remove whitespace inside comment.
7682
9e172e30 76832009-06-08 Robert Millan <rmh.grub@aybabtu.com>
7684
7685 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
7686 as fallback an equivalent option without depth.
7687
de65ee2b 76882009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
7689
7690 Not fail if unable to retrieve C/H/S on LBA disks
7691
473d1e45 7692 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 7693 if unable to retrieve C/H/S on LBA disks
7694
b57ea2c9 76952009-06-08 Pavel Roskin <proski@gnu.org>
7696
7697 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
7698 about aliasing.
7699
af361263 77002009-06-08 Felix Zielcke <fzielcke@z-51.de>
7701
7702 * Makefile.in (uninstall): Remove all $lib_DATA files.
7703
4c9ec6b3 77042009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
7705
7706 Bugfix: install on partitionless device
7707
7708 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
7709 is a whole disk
7710
e76fc924 77112009-06-08 Felix Zielcke <fzielcke@z-51.de>
7712
7713 * Makefile.in (uninstall): Remove all $include_DATA files.
7714
ba5a0d05 77152009-06-08 Felix Zielcke <fzielcke@z-51.de>
7716
7717 * commands/true.c: New file. Implement the true and false commands.
7718 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
7719 (true_mod_SOURCES): New variable.
7720 (true_mod_CFLAGS): Likewise.
7721 (true_mod_LDFLAGS): Likewise.
7722
c8048e32 77232009-06-05 Colin D Bennett <colin@gibibit.com>
7724
7725 Optimized font character lookup using binary search instead of linear
7726 search. Fonts now are required to have the character index ordered by
7727 code point.
7728
7729 * font/font.c (load_font_index): Verify that fonts have ordered
7730 character indices.
7731 (find_glyph): Use binary search instead of linear search to find a
7732 character in a font.
7733
408305be 77342009-06-05 Michael Scherer <misc@mandriva.org>
7735
7736 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
7737 uses case sensitive btree.
7738 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
7739 only for case insensitive filesystems.
7740
8ee1e0d9 77412009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
7742
7743 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
7744 * conf/common.rmk (search_mod_CFLAGS): likewise
7745
a9966eb1 77462009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
7747
473d1e45 7748 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 7749 compensate a compiler bug
7750
9e7100fb 77512009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
7752
473d1e45 7753 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 7754 instead of '\b'
473d1e45 7755
ede21d71 77562009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
7757
7758 Definitions for creating asm symbols with Apple's CC
7759
7760 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
7761 [APPLE_CC] (VARIABLE): likewise
7762
9dbf7653 77632009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
7764
7765 Disable lnxboot.img when compiled
7766 with Apple's CC
7767
7768 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
7769 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
7770 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
7771 [! APPLE_CC] (CODE_LENG): skip
7772 [! APPLE_CC] (setup_sects): likewise
7773 [! APPLE_CC]: skip filling
473d1e45 7774
e93cdc3d 77752009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
7776
7777 Address in trampolines based on 32-bit registers when compiled
7778 with Apple's CC
7779
473d1e45 7780 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 7781 for addresses
7782 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
7783
6c688477 77842009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
7785
7786 Avoid aliases when compiling with Apple's CC for PCBIOS machine
7787
7788 * kern/misc.c [APPLE_CC] (memcpy): new function
7789 [APPLE_CC] (memmove): likewise
7790 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 7791 (memcpy): define alias conditionally on !APPLE_CC
6c688477 7792 (memset): likewise
7793 (abort): likewise
7794 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
7795 APPLE_CC are defined
7796 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
7797 (grub_assert_fail): make prototype conditional
7798
e37ffc5c 77992009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
7800
7801 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
7802
473d1e45 7803 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
7804 grub-macho2img
e37ffc5c 7805 (CLEANFILES): add grub-macho2img
7806 (grub_macho2img_SOURCES): new variable
7807 * kern/i386/pc/startup.S (bss_start): new variable
7808 (bss_end): likewise
7809 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
7810 * util/grub-macho2img.c: new file
7811
cf00df31 78122009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
7813
7814 Use objconv when compiling with Apple's CC
7815
7816 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
7817 (efiemu64.o): likewise
7818 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
7819 when compiling with Apple's CC
7820 (efiemu64_s.o): likewise
7821 * configure.ac: check for objconv when compiling with Apple's CC
7822 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 7823
d119a20c 78242009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
7825
7826 Define segment as well as section when compiling with
7827 Apple's CC
7828
7829 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
7830 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
7831 (efiemu_convert_pointer): likewise
7832 (efiemu_set_virtual_address_map): likewise
7833 (efiemu_convert_pointer): likewise
7834 (efiemu_getcrc32): likewise
7835 (init_crc32_table): likewise
7836 (reflect): likewise
7837 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
7838 (GRUB_MOD_DEP): likewise
473d1e45 7839
c8600122 78402009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
7841
7842 Allow a compilation without -mcmodel=large
7843
7844 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
7845 when compiled without -mcmodel=large
473d1e45 7846 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 7847 without -mcmodel=large
473d1e45 7848 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 7849 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 7850
e8df1d4e 78512009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
7852
7853 Remove nested functions in efiemu core
7854
7855 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 7856
cc6c3ac1 78572009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
7858
7859 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
7860
7861 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
7862 temporary storage
473d1e45 7863 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
7864 using Apple's CC
cc6c3ac1 7865 (grub_cpu_is_tsc_supported): likewise
7866 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 7867
3e325901 78682009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
7869
7870 Absolute addressing through constant with Apple's cc
7871
7872 * kern/i386/pc/startup.S: Define necessary constants
7873 and address through it when using ABS with Apple's CC
7874 * boot/i386/pc/diskboot.S: likewise
7875 * boot/i386/pc/boot.S: likewise
7876 * boot/i386/pc/lnxboot.S: likewise
7877 * boot/i386/pc/cdboot.S: likewise
7878 * mmap/i386/pc/mmap_helper.S: likewise
7879 * commands/i386/pc/drivemap_int13h.S: likewise
7880
2b167a72 78812009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
7882
7883 Check if compiler is apple cc
7884
7885 * Makefile.in (ASFLAGS): new variable
7886 (TARGET_ASFLAGS): likewise
7887 (TARGET_MODULE_FORMAT): likewise
7888 (TARGET_APPLE_CC): likewise
7889 (OBJCONV): likewise
7890 (TARGET_IMG_CFLAGS): likewise
7891 (TARGET_CPPFLAGS): add includedir
7892 * configure.ac: call grub_apple_cc and grub_apple_target_cc
7893 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
7894 Check for linker script only if compiler isn't Apple's CC
7895 (TARGET_MODULE_FORMAT): set
7896 (TARGET_APPLE_CC): likewise
7897 (TARGET_ASFLAGS): likewise
7898 (ASFLAGS): likewise
7899 Check for objcopy only if compiler isn't Apple's CC
7900 Check for BSS symbol only if compiler isn't Apple's CC
7901 * genmk.rb: adapt nm options if we use Apple's utils
7902 * aclocal.m4 (grub_apple_cc): new test
7903 (grub_apple_target_cc): likewise
473d1e45 7904
fb14123e 79052009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
7906
7907 Simplify sed expressions and improve awk
7908
7909 * Makefile.in (install-local): simplify sed expression
7910 * gencmdlist.sh: likewise
7911 * genmoddep.awk: avoid adding module as a dependency of itself
7912
5b889789 79132009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
7914
7915 Add missing start symbols
7916
7917 * boot/i386/pc/boot.S: add start
fb14123e 7918 * boot/i386/pc/pxeboot.S: likewise
473d1e45 7919
fd2bf2e3 79202009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
7921
7922 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 7923
7924 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 7925 (relocate_addresses): consider both r_addend and value at offset
7926 (make_mods_section): zerofill modinfo and header
7927 (convert_elf): write prefix here
473d1e45 7928
5389763d 79292009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
7930
7931 Use .asciz instead of .string
7932
7933 * i386/pc/diskboot.S: use .asciz instead of .string
7934 * i386/pc/boot.S: likewise
7935 * include/grub/dl.h (GRUB_MOD_DEP): likewise
7936 (GRUB_MOD_NAME): likewise
473d1e45 7937
3eb5ed4e 79382009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
7939
7940 gfxpayload support
7941
7942 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
7943 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
7944 (grub_video_setup): remove
7945 (grub_video_set_mode): new prototype
7946 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
7947 (vid_mode): remove
7948 (linux_vesafb_res): compile only on PCBIOS
7949 (grub_linux_boot): support gfxpayload
7950 * loader/i386/pc/xnu.c (video_hook): new function
7951 (grub_xnu_set_video): support gfxpayload
7952 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
7953 (DEFAULT_VIDEO_HEIGHT): likewise
7954 (DEFAULT_VIDEO_FLAGS): likewise
7955 (DEFAULT_VIDEO_MODE): new definition
7956 (video_hook): new function
7957 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 7958 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 7959 loading xnu
7960 * video/video.c (grub_video_setup): removed
473d1e45 7961 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 7962 grub_video_setup
7963
4b0e1143 79642009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
7965
7966 Avoid calling biosdisk in drivemap
7967
7968 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
7969 (revparse_biosdisk): likewise
7970 (list_mappings): derive name from id directly
7971 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 7972
fda6cb98 79732009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
7974
7975 Script fixes
7976
7977 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
7978 (grub_lexer_param): add tokenonhold
7979 (grub_script_create_cmdline): remove cmdline. All callers updated
7980 (grub_script_function_create): make functionname
7981 grub_script_arg. All callers updated
7982 (grub_script_execute_argument_to_string): new prototype
7983 * kern/parser.c (state_transitions): reorder
7984 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 7985 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 7986 make global
7987 (grub_script_execute_cmdline): use new format
7988 * script/sh/function.c (grub_script_function_create): make functionname
7989 grub_script_arg. All callers updated
473d1e45 7990 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 7991 (grub_script_yylex): remove
7992 (grub_script_yylex2): renamed to ...
7993 (grub_script_yylex): ...renamed
7994 parse the expressions like a${b}c
7995 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
7996 (GRUB_PARSER_TOKEN_VAR): remove
7997 (GRUB_PARSER_TOKEN_NAME): likewise
7998 ("if"): declare as typeless
7999 ("while"): likewise
8000 ("function"): likewise
8001 ("else"): likewise
8002 ("then"): likewise
8003 ("fi"): likewise
8004 (text): remove
8005 (argument): likewise
8006 (script): accept empty scripts and make exit on error
8007 (arguments): use GRUB_PARSER_TOKEN_ARG
8008 (function): likewise
8009 (command): move error handling to script
8010 (menuentry): move grub_script_lexer_ref before
473d1e45 8011 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 8012 argument. All callers updated
8013
f4448a07 80142009-06-04 Robert Millan <rmh.grub@aybabtu.com>
8015
8016 Prevent GRUB from probing floppies during boot.
8017
8018 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
8019 * commands/search.c (options): Add --no-floppy.
8020 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
8021 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
8022 --no-floppy when searching for UUIDs.
8023
2bf5885a 80242009-06-04 Robert Millan <rmh.grub@aybabtu.com>
8025
8026 Simplify the code duplication in commands/search.c.
8027
8028 * commands/search.c (search_label, search_fs_uuid): Merge into ...
8029 (search_fs): ... this. Update all users.
8030
f6fd460a 80312009-06-03 Felix Zielcke <fzielcke@z-51.de>
8032
8033 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
8034
cbb3c83e 80352009-05-28 Pavel Roskin <proski@gnu.org>
8036
57788cfd 8037 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
8038 Remove the original symlink explicitly.
8039
cbb3c83e 8040 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
8041 just one slash. That's how grub_fshelp_find_file() does it.
8042
cd0d5e30 80432009-05-26 Pavel Roskin <proski@gnu.org>
8044
f0f8bbe2 8045 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
8046 to `str'.
8047
cd0d5e30 8048 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
8049 possibly unused.
8050
8c2cab51 80512009-05-25 Christian Franke <franke@computer.org>
8052
8053 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
8054 register.
8055 (grub_atapi_identify): Add wait after drive select.
8056 (grub_ata_identify): Do more strict status register check before
8057 calling grub_atapi_identify (). Suppress error message if status
8058 register is 0x00 after command failure. Add status register
8059 check after PIO read to avoid bogus identify due to stuck DRQ.
8060 Thanks to Pavel Roskin for testing.
8061 (grub_device_initialize): Remove unsafe status register check.
8062 Thanks to 'phcoder' for problem report and patch.
8063 Prevent sign extension in debug message.
8064
230c0ad6 80652009-05-23 Colin D Bennett <colin@gibibit.com>
8066
8067 Cleaned up `include/grub/normal.h'. Grouped prototypes by
8068 definition file, and functions defined in `normal/menu.c' have had
8069 their prototypes moved to `include/grub/menu.h' for consistency.
8070
8071 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
8072 from normal.h.
8073 (grub_menu_get_entry): Likewise.
8074 (grub_menu_get_timeout): Likewise.
8075 (grub_menu_set_timeout): Likewise.
8076 (grub_menu_execute_entry): Likewise.
8077 (grub_menu_execute_with_fallback): Likewise.
8078 (grub_menu_entry_run): Likewise.
8079
8080 * include/grub/normal.h: Re-ordered and grouped function
8081 prototypes by file that the function is defined in.
8082 (grub_menu_execute_callback): Removed; moved to menu.h.
8083 (grub_menu_get_entry): Likewise.
8084 (grub_menu_get_timeout): Likewise.
8085 (grub_menu_set_timeout): Likewise.
8086 (grub_menu_execute_entry): Likewise.
8087 (grub_menu_execute_with_fallback): Likewise.
8088 (grub_menu_entry_run): Likewise.
8089 (grub_menu_addentry): Renamed from this ...
8090 (grub_normal_add_menu_entry): ... to this.
8091
8092 * normal/main.c (grub_menu_addentry): Renamed from this ...
8093 (grub_normal_add_menu_entry): ... to this.
8094
8095 * script/sh/execute.c (grub_script_execute_menuentry): Update
8096 reference to renamed grub_menu_addentry function.
8097
861f03a5 80982009-05-23 Felix Zielcke <fzielcke@z-51.de>
8099
8100 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
8101
96b1619a 81022009-05-22 Pavel Roskin <proski@gnu.org>
8103
bf6a5fb2 8104 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
8105 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
8106 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
8107 compiling for the i386 targets, but not for the utilities.
8108
96b1619a 8109 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
8110 to grub_uint8_t.
8111 (grub_root_drive): Likewise.
8112 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
8113 remove alignment.
8114 (grub_root_drive): Change size to byte.
8115 (grub_start_addr): Remove.
8116 (grub_end_addr): Likewise.
8117 (grub_apm_bios_info): Likewise.
8118
b729776b 81192009-05-21 Felix Zielcke <fzielcke@z-51.de>
8120
8121 * normal/i386: Remove.
8122 * normal/powerpc: Likewise.
8123 * normal/sparc64: Likewise.
8124 * normal/x86_64: Likewise.
8125
0a15ce80 81262009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
8127
8128 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 8129 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 8130 * loader/i386/xnu_helper.S: Likewise
d6da58e6 8131
33db9015 81322009-05-18 Colin D Bennett <colin@gibibit.com>
8133
d6da58e6 8134 Display error messages when parsing a Lua statement fails.
8135 Previously, executing a syntactically invalid statement like
8136 ")foo" or "bar;" would silently fail.
33db9015 8137
8138 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 8139 (grub_lua_parse_line): Improved reporting of Lua parser and
8140 execution errors.
33db9015 8141
46422c89 81422009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
8143
8144 Remove -Werror which causes build to fail on some systems
8145
8146 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
8147 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
8148 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 8149
22f53a96 81502009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
8151
8152 trampoline for linux on 64-bit platform
8153
18f547ad 8154 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
8155 loader/i386/efi/linux_trampoline.S
8156 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 8157 declaration
d6da58e6 8158 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
8159 here
22f53a96 8160 * loader/i386/linux_trampoline.S: moved here
d6da58e6 8161 * loader/i386/efi/linux.c (allocate_pages): reserve space for
8162 trampoline
22f53a96 8163 (jumpvector): removed
8164 (grub_linux_trampoline_start): new declaration
8165 (grub_linux_trampoline_end): likewise
8166 (grub_linux_boot): use trampoline when on 64-bit platform
8167 * loader/i386/linux.c: likewise
8168
cb5a0f40 81692009-05-16 Pavel Roskin <proski@gnu.org>
8170
8171 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
8172 const to avoid a warning.
8173 (grub_lua_setenv): Likewise.
8174 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
8175 lmsg to fix a warning.
8176
334f2c28 81772009-05-16 Felix Zielcke <fzielcke@z-51.de>
8178
8179 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 8180 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
8181 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
8182 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
8183 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
8184 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
8185 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
8186 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 8187
59e5d3ec 81882009-05-16 Felix Zielcke <fzielcke@z-51.de>
8189
8190 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
8191
9d87a1ba 81922009-05-16 Bean <bean123ch@gmail.com>
8193
8194 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
8195 (lua_mod_SOURCES): New variable.
8196 (lua_mod_CFLAGS): Likewise.
8197 (lua_mod_LDFLAGS): Likewise.
8198
8199 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
8200 (setjmp_mod_SOURCES): New variable.
8201 (setjmp_mod_CFLAGS): Likewise.
8202 (setjmp_LDFLAGS): Likewise.
8203
8204 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
8205 (setjmp_mod_SOURCES): New variable.
8206 (setjmp_mod_CFLAGS): Likewise.
8207 (setjmp_LDFLAGS): Likewise.
8208
8209 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
8210 (setjmp_mod_SOURCES): New variable.
8211 (setjmp_mod_CFLAGS): Likewise.
8212 (setjmp_LDFLAGS): Likewise.
8213
8214 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
8215 (setjmp_mod_SOURCES): New variable.
8216 (setjmp_mod_CFLAGS): Likewise.
8217 (setjmp_LDFLAGS): Likewise.
8218
8219 * normal/i386/setjmp.S: Moved from here ...
8220 * lib/i386/setjmp.S: ... Moved here
8221 * normal/x86_64/setjmp.S: Moved from here ...
8222 * lib/x86_64/setjmp.S: ... Moved here
8223 * normal/powerpc/setjmp.S: Moved from here ...
8224 * lib/powerpc/setjmp.S: ... Moved here
8225 * normal/sparc64/setjmp.S: Moved from here ...
8226 * lib/sparc64/setjmp.S: ... Moved here
8227
8228 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
8229 returns_twice in mingw.
8230
8231 * script/lua/grub_lib.c: New file.
8232 * script/lua/grub_lib.h: Likewise.
8233 * script/lua/grub_lua.h: Likewise.
8234 * script/lua/grub_main.c: Likewise.
8235 * script/lua/lapi.c: Likewise.
8236 * script/lua/lapi.h: Likewise.
8237 * script/lua/lauxlib.c: Likewise.
8238 * script/lua/lauxlib.h: Likewise.
8239 * script/lua/lbaselib.c: Likewise.
8240 * script/lua/lcode.c: Likewise.
8241 * script/lua/lcode.h: Likewise.
8242 * script/lua/ldblib.c: Likewise.
8243 * script/lua/ldebug.c: Likewise.
8244 * script/lua/ldebug.h: Likewise.
8245 * script/lua/ldo.c: Likewise.
8246 * script/lua/ldo.h: Likewise.
8247 * script/lua/ldump.c: Likewise.
8248 * script/lua/lfunc.c: Likewise.
8249 * script/lua/lfunc.h: Likewise.
8250 * script/lua/lgc.c: Likewise.
8251 * script/lua/lgc.h: Likewise.
8252 * script/lua/linit.c: Likewise.
8253 * script/lua/liolib.c: Likewise.
8254 * script/lua/llex.c: Likewise.
8255 * script/lua/llex.h: Likewise.
8256 * script/lua/llimits.h: Likewise.
8257 * script/lua/lmathlib.c: Likewise.
8258 * script/lua/lmem.c: Likewise.
8259 * script/lua/lmem.h: Likewise.
8260 * script/lua/loadlib.c: Likewise.
8261 * script/lua/lobject.c: Likewise.
8262 * script/lua/lobject.h: Likewise.
8263 * script/lua/lopcodes.c: Likewise.
8264 * script/lua/lopcodes.h: Likewise.
8265 * script/lua/loslib.c: Likewise.
8266 * script/lua/lparser.c: Likewise.
8267 * script/lua/lparser.h: Likewise.
8268 * script/lua/lstate.c: Likewise.
8269 * script/lua/lstate.h: Likewise.
8270 * script/lua/lstring.c: Likewise.
8271 * script/lua/lstring.h: Likewise.
8272 * script/lua/lstrlib.c: Likewise.
8273 * script/lua/ltable.c: Likewise.
8274 * script/lua/ltable.h: Likewise.
8275 * script/lua/ltablib.c: Likewise.
8276 * script/lua/ltm.c: Likewise.
8277 * script/lua/ltm.h: Likewise.
8278 * script/lua/lua.h: Likewise.
8279 * script/lua/luaconf.h: Likewise.
8280 * script/lua/lualib.h: Likewise.
8281 * script/lua/lundump.c: Likewise.
8282 * script/lua/lundump.h: Likewise.
8283 * script/lua/lvm.c: Likewise.
8284 * script/lua/lvm.h: Likewise.
8285 * script/lua/lzio.c: Likewise.
8286 * script/lua/lzio.h: Likewise.
8287
5e898c9d 82882009-05-16 Bean <bean123ch@gmail.com>
8289
8290 * include/grub/kernel.h (grub_module_header_types): Add type
8291 OBJ_TYPE_CONFIG.
8292
8293 * kern/main.c (grub_load_config): New function.
8294 (grub_main): Call grub_load_config to read boot config.
8295
8296 * grub-mkimage (generate_image): New parameter config_path.
8297 (options): New option --config.
8298 (main): Parse --config option, and pass it to generate_image.
8299
cf353a47 83002009-05-14 Christian Franke <franke@computer.org>
8301
8302 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
8303 This fixes build on Cygwin.
8304
3834887f 83052009-05-14 Pavel Roskin <proski@gnu.org>
8306
8307 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
8308 jump. This saves two bytes, so the typical case of 2 swapped
8309 drives would fit 32 bytes.
8310
8090fc01 83112009-05-13 Pavel Roskin <proski@gnu.org>
8312
ac963883 8313 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
8314 grub_uint32_t to avoid a warning.
8315
8090fc01 8316 * loader/i386/linux.c (allocate_pages): When assigning
8317 real_mode_mem, cast through grub_size_t to fix a warning. The
8318 code already makes sure that the value would fit a pointer.
8319 (grub_linux_setup_video): Cast render_target->data to
8320 grub_size_t to fix a warning.
8321
18f547ad 83222009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 8323
8324 * commands/i386/pc/drivemap.c: New file - implement drivemap
8325 command.
8326 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
8327 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
8328
6f6a8b28 83292009-05-13 Pavel Roskin <proski@gnu.org>
8330
8331 * util/i386/pc/grub-setup.c (setup): Remove unused variable
8332 embedding_area_exists.
8333
15fbf4c4 83342009-05-13 Robert Millan <rmh.grub@aybabtu.com>
8335
8336 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
8337 it easier to understand / work with.
59978c8a 8338 Improve warning messages for cases where there's no embedding area,
8339 or when it is too small (or core.img too large).
15fbf4c4 8340
238e871f 83412009-05-13 Pavel Roskin <proski@gnu.org>
8342
0ab3a9a4 8343 * loader/i386/pc/multiboot2.c: Add necessary includes for
8344 grub_multiboot2_real_boot().
8345
a2c8c5f8 8346 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
8347 PX record is always little-endian. We only need the lower 2
8348 bytes of the mode.
8349
faec96af 8350 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
8351 facilitate code reuse.
8352 (grub_cpio_mount): Use "struct head", not a char buffer. This
8353 fixes a warning reported by gcc 4.4.
8354
238e871f 8355 * kernel/disk.c (grub_disk_read): Use void pointer for the
8356 buffer.
8357 (grub_disk_write): Use const void pointer for the buffer.
8358 Adjust all callers. Remove unnecessary casts.
8359
901d2f0c 83602009-05-10 Robert Millan <rmh.grub@aybabtu.com>
8361
8362 * util/i386/pc/grub-install.in: Update copyright year.
8363
18f547ad 83642009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 8365
8366 gptsync
8367
8368 * commands/gptsync.c: new file
8369 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
8370 (gptsync_mod_SOURCES): new variable
8371 (gptsync_mod_CFLAGS): likewise
8372 (gptsync_mod_LDFLAGS): likewise
18f547ad 8373 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 8374 new definition
8375 (GRUB_PC_PARTITION_TYPE_HFS): likewise
8376 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
8377 * conf/i386-ieee1275.rmk: likewise
8378 * conf/i386-pc.rmk: likewise
8379 * conf/powerpc-ieee1275.rmk: likewise
8380
b4ba690a 83812009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
8382
8383 Fixed grub-emu
8384
8385 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
8386 (grub_dl_ref): likewise
8387
317e1a44 83882009-05-08 Robert Millan <rmh.grub@aybabtu.com>
8389
8390 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
8391 split in two functions (one for msdos and one for gpt).
8392
041b8094 83932009-05-08 Pavel Roskin <proski@gnu.org>
8394
752473c2 8395 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
8396 not modified.
8397
041b8094 8398 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
8399 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
8400 Initialize them with -1. Add sanity check for bad1. Eliminate
8401 nerr variable.
8402
172800ce 84032009-05-08 David S. Miller <davem@davemloft.net>
8404
8405 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
8406
29aa5e81 84072009-05-06 Robert Millan <rmh.grub@aybabtu.com>
8408
8409 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 8410 existence.
29aa5e81 8411
96613b62 84122009-05-05 Felix Zielcke <fzielcke@z-51.de>
8413
8414 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 8415 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 8416
eef73c8a 84172009-05-05 David S. Miller <davem@davemloft.net>
8418
8419 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
8420
119494b5 84212009-05-05 Pavel Roskin <proski@gnu.org>
8422
8423 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
8424 of grub_dl_ref() and grub_dl_unref().
8425 * commands/parttool.c: Remove preprocessor conditionals around
8426 grub_dl_ref() and grub_dl_unref().
8427 * fs/affs.c: Likewise.
8428 * fs/afs.c: Likewise.
8429 * fs/cpio.c: Likewise.
8430 * fs/ext2.c: Likewise.
8431 * fs/fat.c: Likewise.
8432 * fs/hfs.c: Likewise.
8433 * fs/hfsplus.c: Likewise.
8434 * fs/iso9660.c: Likewise.
8435 * fs/jfs.c: Likewise.
8436 * fs/minix.c: Likewise.
8437 * fs/ntfs.c: Likewise.
8438 * fs/reiserfs.c: Likewise.
8439 * fs/sfs.c: Likewise.
8440 * fs/udf.c: Likewise.
8441 * fs/ufs.c: Likewise.
8442 * fs/xfs.c: Likewise.
8443 * include/grub/dl.h: Likewise.
8444 * loader/xnu.c: Likewise.
8445
de5fd76e 84462009-05-04 Pavel Roskin <proski@gnu.org>
8447
8448 * commands/acpi.c: Remove unused variable my_mod.
8449 * partmap/amiga.c: Likewise.
8450 * partmap/apple.c: Likewise.
8451 * partmap/gpt.c: Likewise.
8452 * partmap/pc.c: Likewise.
8453 * partmap/sun.c: Likewise.
8454 * term/gfxterm.c: Likewise.
8455 * term/i386/pc/vesafb.c: Likewise.
8456 * term/i386/pc/vga.c: Likewise.
8457
983598ad 84582009-05-04 David S. Miller <davem@davemloft.net>
8459
8460 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
8461 pointer args to grub_ieee1275_get_property().
8462
8aadec43 8463 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
8464
9554b15e 8465 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
8466 devices, and do not traverse down under controller nodes.
8467
67e23c90 8468 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
8469 (grub_ofdisk_open): Use it to un-escape "," characters.
8470 * kern/disk.c (find_part_sep): New.
8471 (grub_disk_open): Use it to find the first non-escaped ','
8472 character in the disk name.
8473 * util/ieee1275/devicemap.c (escape_of_path): New.
8474 (grub_util_emit_devicemap_entry): Use it.
8475 * util/sparc64/ieee1275/grub-install.in: Update script to
8476 strip partition specifiers properly by not triggering on
8477 '\' escaped ',' characters.
8478
74bfdd2f 84792009-05-04 Robert Millan <rmh.grub@aybabtu.com>
8480
8481 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
8482 to 0x300.
8483 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
8484 resolutions.
8485 (linux_vesafb_modes): Add a lot of additional modes to the list (based
8486 on documentation from Wikipedia).
8487
4241d2b1 84882009-05-04 Pavel Roskin <proski@gnu.org>
8489
8490 * disk/ata.c: Spelling fixes.
8491 * disk/raid.c: Likewise.
8492 * disk/usbms.c: Likewise.
8493 * disk/dmraid_nvidia.c: Likewise.
8494 * kern/ieee1275/openfw.c: Likewise.
8495 * kern/ieee1275/init.c: Likewise.
8496 * kern/ieee1275/cmain.c: Likewise.
8497 * boot/i386/pc/cdboot.S: Likewise.
8498 * video/readers/png.c: Likewise.
8499 * video/i386/pc/vbe.c: Likewise.
8500 * fs/udf.c: Likewise.
8501 * fs/hfs.c: Likewise.
8502 * fs/reiserfs.c: Likewise.
8503 * efiemu/runtime/efiemu.c: Likewise.
8504 * efiemu/main.c: Likewise.
8505 * efiemu/mm.c: Likewise.
8506 * include/grub/elf.h: Likewise.
8507 * include/grub/xnu.h: Likewise.
8508 * include/grub/usbdesc.h: Likewise.
8509 * include/grub/usb.h: Likewise.
8510 * include/grub/script_sh.h: Likewise.
8511 * include/grub/lib/LzmaEnc.h: Likewise.
8512 * include/grub/efiemu/efiemu.h: Likewise.
8513 * include/grub/command.h: Likewise.
8514 * normal/menu.c: Likewise.
8515 * normal/main.c: Likewise.
8516 * normal/datetime.c: Likewise.
8517 * bus/usb/uhci.c: Likewise.
8518 * mmap/i386/uppermem.c: Likewise.
8519 * mmap/mmap.c: Likewise.
8520 * commands/acpi.c: Likewise.
8521 * commands/test.c: Likewise.
8522 * partmap/apple.c: Likewise.
8523 * font/font.c: Likewise.
8524 * loader/sparc64/ieee1275/linux.c: Likewise.
8525 * loader/macho.c: Likewise.
8526 * loader/i386/bsd_trampoline.S: Likewise.
8527 * loader/i386/bsd.c: Likewise.
8528 * loader/xnu.c: Likewise.
8529 * term/i386/pc/vesafb.c: Likewise.
8530 * term/usb_keyboard.c: Likewise.
8531 * util/resolve.c: Likewise.
8532 * util/getroot.c: Likewise.
8533
0cfc0083 85342009-05-04 Felix Zielcke <fzielcke@z-51.de>
8535
8536 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
8537
7c1d00cd 85382009-05-04 Robert Millan <rmh.grub@aybabtu.com>
8539
8540 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
8541 build error.
8542
b01f0548 85432009-05-04 Robert Millan <rmh.grub@aybabtu.com>
8544
8545 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
8546 parameter only available on BIOS.
8547
ecc3eb22 85482009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
8549
8550 Removed wrong semicolon in declaration
8551
8552 * grub/misc.h (grub_dprintf): remove semicolon
8553
112972a9 85542009-05-04 Robert Millan <rmh.grub@aybabtu.com>
8555
8556 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
8557 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
8558 is done by grub_cmd_linux() now).
8559 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
8560 restore video to text mode.
8561 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
8562 indicates lack of "vga=" parameter. "vga=0" is mapped to
8563 `GRUB_LINUX_VID_MODE_NORMAL'.
8564
afd5c115 85652009-05-04 Felix Zielcke <fzielcke@z-51.de>
8566
8567 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
8568 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
8569 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 8570 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 8571 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
8572 `grub_script.tab.c'.
8573
8574 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8575 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8576 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8577 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
8578 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8579
faa517ce 8580 * Makefile.in: Remove duplicated 2008 in Copyright line.
8581
ae0c0bdc 85822009-05-04 Robert Millan <rmh.grub@aybabtu.com>
8583
473d1e45 8584 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 8585 unconditionally.
8586 * include/grub/util/misc.h (grub_util_warn): New declaration.
8587
8588 * util/i386/pc/grub-install.in: Understand --force and pass it down
8589 to grub-setup.
8590
8591 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
8592 down to setup().
8593 (setup): Improve error messages and add warnings when requested to
8594 install in odd layouts. Refuse to install using blocklists unless
8595 --force was set.
8596
18f547ad 85972009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 8598
8599 * disk/raid.c (grub_raid_scan_device): Improve debug message.
8600
6d260daa 86012009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
8602
8603 Updated copyright year
8604
8605 * fs/hfsplus.c: updated copyright year
18f547ad 8606
69f853f8 86072009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
8608
8609 HFS+ UUID
8610
18f547ad 8611 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 8612 in the space previously used by unused3
8613 (grub_hfsplus_uuid): new function
8614 (grub_hfsplus_fs): added uuid field
8615
4c402e73 86162009-05-03 Pavel Roskin <proski@gnu.org>
8617
8618 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
8619 suppress warnings. It's no longer needed.
8620 * disk/host.c: Likewise.
8621 * disk/ata_pthru.c: Likewise.
8622 * disk/loopback.c: Likewise.
8623 * hook/datehook.c: Likewise.
8624 * parttool/pcpart.c: Likewise.
8625 * fs/i386/pc/pxe.c: Likewise.
8626 * fs/ntfscomp.c: Likewise.
8627 * efiemu/main.c: Likewise.
8628 * mmap/mmap.c: Likewise.
8629 * commands/crc.c: Likewise.
8630 * commands/hexdump.c: Likewise.
8631 * commands/hdparm.c: Likewise.
8632 * commands/acpi.c: Likewise.
8633 * commands/echo.c: Likewise.
8634 * commands/minicmd.c: Likewise.
8635 * commands/blocklist.c: Likewise.
8636 * commands/memrw.c: Likewise.
8637 * commands/loadenv.c: Likewise.
8638 * commands/usbtest.c: Likewise.
8639 * commands/lsmmap.c: Likewise.
8640 * commands/boot.c: Likewise.
8641 * commands/parttool.c: Likewise.
8642 * commands/configfile.c: Likewise.
8643 * commands/search.c: Likewise.
8644 * commands/ieee1275/suspend.c: Likewise.
8645 * commands/cat.c: Likewise.
8646 * commands/i386/pc/pxecmd.c: Likewise.
8647 * commands/i386/pc/play.c: Likewise.
8648 * commands/i386/pc/halt.c: Likewise.
8649 * commands/i386/pc/vbeinfo.c: Likewise.
8650 * commands/i386/pc/vbetest.c: Likewise.
8651 * commands/lspci.c: Likewise.
8652 * commands/date.c: Likewise.
8653 * commands/handler.c: Likewise.
8654 * commands/ls.c: Likewise.
8655 * commands/test.c: Likewise.
8656 * commands/cmp.c: Likewise.
8657 * commands/efi/loadbios.c: Likewise.
8658 * commands/efi/fixvideo.c: Likewise.
8659 * commands/halt.c: Likewise.
8660 * commands/help.c: Likewise.
8661 * commands/reboot.c: Likewise.
8662 * hello/hello.c: Likewise.
8663 * script/sh/main.c: Likewise.
8664 * loader/xnu.c: Likewise.
8665 * term/terminfo.c: Likewise.
8666 * term/i386/pc/serial.c: Likewise.
8667 * term/usb_keyboard.c: Likewise.
8668
515b5079 86692009-05-03 David S. Miller <davem@davemloft.net>
8670
8671 * normal/menu.c: Include grub/parser.h
8672
dfc31a22 86732009-05-03 Pavel Roskin <proski@gnu.org>
8674
2fee74f1 8675 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
8676 not char*.
8677 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
8678 Suggested by Javier Martín <lordhabbit@gmail.com>
8679
dfc31a22 8680 * util/i386/pc/grub-mkrescue.in: Allow for the case when
8681 efiemu??.o doesn't exist.
8682 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
8683 copying.
8684
18f547ad 86852009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 8686
8687 FreeBSD 64-bit support
8688
18f547ad 8689 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 8690 and loader/i386/bsd_trampoline.S
8691 (bsd_mod_ASFLAGS): new variable
8692 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
8693 (FREEBSD_MODTYPE_KERNEL64): likewise
8694 (grub_bsd64_trampoline_start): likewise
8695 (grub_bsd64_trampoline_end): likewise
8696 (grub_bsd64_trampoline_selfjump): likewise
8697 (grub_bsd64_trampoline_gdt): likewise
8698 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
8699 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
8700 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
8701 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 8702 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 8703 of "attrib" member
8704 * loader/i386/bsd_pagetable.c: new file
8705 * loader/i386/bsd_trampoline.S: likewise
8706 * loader/i386/bsd.c (ALIGN_QWORD): new macro
8707 (ALIGN_VAR): likewise
8708 (entry_hi): new variable
8709 (kern_end_mdofs): likewise
8710 (is_64bit): likewise
8711 (grub_freebsd_add_meta): use ALIGN_VAR
8712 (grub_e820_mmap): new declaration
8713 (grub_freebsd_add_mmap): new function
8714 (grub_freebsd_add_meta_module): support 64 bit kernels
8715 (grub_freebsd_list_modules): use ALIGN_VAR
8716 (gdt_descriptor): new declaration
8717 (grub_freebsd_boot): support 64 bit kernels
8718 (grub_bsd_elf64_hook): new function
8719 (grub_bsd_load_elf): support elf64
8720
038c5720 87212009-05-03 Bean <bean123ch@gmail.com>
8722
8723 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
8724 after we get the result of if statement.
8725
fc45fb58 87262009-05-03 Bean <bean123ch@gmail.com>
8727
8728 * Makefile.in (enable_efiemu): New variable.
8729
8730 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
8731 set.
8732 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
8733 path.
8734 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
8735 path, add -mno-red-zone option.
8736 (efiemu64_s.o): Likewise.
8737 (efiemu64.o): Use macro $^ for source file.
8738
8739 * configure.ac (--enable-efiemu): New option.
8740
bbee0f2b 87412009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
8742
8743 xnu support
8744
8745 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
8746 (pkglib_MODULES): add xnu.mod
8747 (xnu_mod_SOURCES): new variable
8748 (xnu_mod_CFLAGS): likewise
8749 (xnu_mod_LDFLAGS): likewise
8750 (xnu_mod_ASFLAGS): likewise
8751 * conf/i386-pc.rmk: likewise
8752 * conf/x86_64-efi.rmk: likewise
7dd4a573 8753 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 8754 new declaration
8755 * include/grub/i386/macho.h: new file
8756 * include/grub/i386/xnu.h: likewise
8757 * include/grub/macho.h: likewise
8758 * include/grub/machoload.h: likewise
8759 * include/grub/x86_64/macho.h: likewise
8760 * include/grub/x86_64/xnu.h: likewise
8761 * include/grub/xnu.h: likewise
8762 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
8763 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
8764 * loader/i386/efi/xnu.c: new file
8765 * loader/i386/pc/xnu.c: likewise
8766 * loader/i386/xnu.c: likewise
8767 * loader/i386/xnu_helper.S: likewise
8768 * loader/macho.c: likewise
8769 * loader/xnu.c: likewise
8770 * loader/xnu_resume.c: likewise
8771 * util/grub-dumpdevtree: likewise
8772 * include/grub/i386/pit.h: include grub/err.h
8773 (grub_pit_wait): export
8774 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 8775
5caf964d 87762009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
8777
8778 Efiemu
7dd4a573 8779
5caf964d 8780 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 8781 _linux_efi, linux_efi.
8782 new files in grub-emu
5caf964d 8783 new targets efiemu32.o and efiemu64.o
8784 * loader/linux_normal_efiemu.c: likewise
8785 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 8786 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 8787 files to copy
8788 * include/grub/autoefi.h: new file
7dd4a573 8789 * include/grub/i386/efiemu.h: likewise
5caf964d 8790 * include/grub/i386/pc/efiemu.h: likewise
8791 * include/grub/efi/api.h: add LL suffix when necessary
8792 new definitions relating to tables
8793 * include/grub/efiemu/efiemu.h: new file
8794 * include/grub/efiemu/runtime.h: likewise
8795 * efiemu/prepare.c: likewise
8796 * efiemu/loadcore_common.c: likewise
8797 * efiemu/loadcore64.c: likewise
8798 * efiemu/runtime/efiemu.sh: likewise
8799 * efiemu/runtime/efiemu.S: likewise
8800 * efiemu/runtime/efiemu.c: likewise
8801 * efiemu/runtime/config.h: likewise
8802 * efiemu/prepare32.c: likewise
8803 * efiemu/main.c: likewise
8804 * efiemu/modules/pnvram.c: likewise
8805 * efiemu/modules/i386: likewise
8806 * efiemu/modules/i386/pc: likewise
8807 * efiemu/modules/acpi.c: likewise
8808 * efiemu/i386/pc/cfgtables.c: likewise
8809 * efiemu/i386/loadcore64.c: likewise
8810 * efiemu/i386/loadcore32.c: likewise
8811 * efiemu/prepare64.c: likewise
8812 * efiemu/loadcore.c: likewise
8813 * efiemu/symbols.c: likewise
8814 * efiemu/mm.c: likewise
8815 * efiemu/loadcore32.c: likewise
7dd4a573 8816
88172009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 8818
8819 ACPI spoofing
8820
8821 * commands/acpi.c: new file
8822 * commands/i386/pc/acpi.c: likewise
8823 * commands/efi/acpi.c: likewise
8824 * include/grub/acpi.h: likewise
8825 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
8826 (acpi_mod_SOURCES): new variable
8827 (acpi_mod_CFLAGS): likewise
8828 (acpi_mod_LDFLAGS): likewise
8829 * conf/i386-efi.rmk: likewise
8830 * conf/x86_64-efi.rmk: likewise
8831
7dd4a573 88322009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 8833
8834 Missing part from mmap patch
8835
8836 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
8837 (grub_mmap_unregister)
8838 (grub_mmap_free_and_unregister): use grub_mmap_register
8839
7dd4a573 88402009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 8841
8842 Mmap services
8843
8844 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
8845 * loader/i386/linux.c (find_mmap_size): likewise
8846 (allocate_pages): likewise
8847 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
8848 (grub_fill_multiboot_mmap): likewise
8849 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
8850 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
8851 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
8852 (OPENBSD_MMAP_RESERVED): likewise
8853 * include/grub/i386/pc/memory.h: include grub/memory.h
8854 (grub_lower_mem): removed
8855 (grub_upper_mem): likewise
8856 (GRUB_MACHINE_MEMORY_ACPI): new definition
8857 (GRUB_MACHINE_MEMORY_NVS): likewise
8858 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
8859 (GRUB_MACHINE_MEMORY_HOLE): likewise
8860 (grub_machine_mmap_register): likewise
8861 (grub_machine_mmap_unregister): likewise
8862 (grub_machine_get_upper): likewise
8863 (grub_machine_get_lower): likewise
8864 (grub_machine_get_post64): likewise
8865 * include/grub/i386/efi/memory.h: new file
8866 * include/grub/x86_64/efi/memory.h: likewise
8867 * include/grub/efi/memory.h: likewise
8868 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
8869 (mmap_mod_SOURCES): new variable
8870 (mmap_mod_LDFLAGS): likewise
8871 (mmap_mod_ASFLAGS): likewise
8872 * conf/i386-coreboot.rmk: likewise
8873 * conf/i386-ieee1275.rmk: likewise
8874 * conf/i386-efi.rmk: likewise
8875 * conf/x86_64-efi.rmk: likewise
8876 * include/grub/types.h (UINT_TO_PTR): new macro
8877 (PTR_TO_UINT32): likewise
8878 (PTR_TO_UINT64): likewise
8879 * include/grub/memory.h: new file
8880 * mmap/i386/pc/mmap.c: likewise
8881 * mmap/i386/pc/mmap_helper.S: likewise
8882 * mmap/i386/uppermem.c: likewise
8883 * mmap/mmap.c: likewise
8884 * mmap/efi/mmap.c: likewise
7dd4a573 8885 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 8886 grub_upper_mem
8887 * kern/i386/pc/init.c (grub_lower_mem): removed variable
8888 (grub_upper_mem): likewise
8889 (grub_machine_init): don't use grub_upper_mem,
8890 make grub_lower_mem local
8891 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
8892 grub_mmap_iterate and grub_mmap_get_upper
8893 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
8894
d558e6b5 88952009-05-02 Bean <bean123ch@gmail.com>
8896
8897 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
8898 script/sh/parser.y.
8899 (pkglib_MODULES): Add normal.mod and sh.mod.
8900 (normal_SOURCES): New variable.
8901 (normal_mod_CFLAGS): Likewise.
8902 (normal_mod_LDFLAGS): Likewise.
8903 (sh_mod_SOURCES): Likewise.
8904 (sh_mod_CFLAGS): Likewise.
8905 (sh_mod_LDFLAGS): Likewise.
8906
8907 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
8908 script/sh/lexer.c_DEPENDENCIES.
8909 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
8910 kern/rescue_reader.c and kern/rescue_parser.c.
8911 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
8912 (grub_emu_SOURCES): Change source files.
8913 (pkglib_MODULES): Remove normal.mod.
8914 (normal_SOURCES): Removed.
8915 (normal_mod_CFLAGS): Likewise.
8916 (normal_mod_LDFLAGS): Likewise.
8917 * conf/i386-coreboot.rmk: Likewise.
8918 * conf/i386-efi.rmk: Likewise.
8919 * conf/i386-ieee1276.rmk: Likewise.
8920 * conf/powerpc-ieee1275.rmk: Likewise.
8921 * conf/sparc64-ieee1275.rmk: Likewise.
8922 * conf/x86_64-efi.rmk: Likewise.
8923
8924 * include/grub/command.h (grub_command_execute): New inline function.
8925
8926 * include/grub/menu.h (grub_menu_entry): Removed commands field.
8927
8928 * include/grub/normal.h: Remove <grub/setjmp.h>.
8929 (grub_fs_module_list): Moved to normal/autofs.c.
8930 (grub_exit_env): Removed.
8931 (grub_command_execute): Likewise.
8932 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
8933 parameter script.
8934 (read_command_list): New function declaration.
8935 (read_fs_list): Likewise.
8936
8937 * include/parser.h: Include <grub/reader.h>.
8938 (grub_parser_split_cmdline): Change type of getline parameter.
8939 (grub_parser): New structure.
8940 (grub_parser_class): New variable.
8941 (grub_parser_execute): New function declaration.
8942 (grub_register_rescue_parser): Likewise.
8943 (grub_parser_register): New inline function.
8944 (grub_parser_unregister): Likewise.
8945 (grub_parser_get_current): Likewise.
8946 (grub_parser_set_current): Likewise.
8947
8948 * include/grub/reader.h: New file.
8949 * kern/reader.c: Likewise.
8950 * kern/rescue_parser.c: Likewise.
8951 * kern/rescue_reader.c: Likewise.
8952 * normal/autofs.c: Likewise.
8953 * normal/dyncmd.c: Likewise.
8954
8955 * include/grub/rescue.h: Removed.
8956 * normal/command.h: Likewise.
8957
8958 * include/grub/script.h: Moved to ...
8959 * include/grub/script_sh.h: ... Moved here.
8960 * normal/execute.c: Moved to ...
8961 * script/sh/execute.c: ... Moved here.
8962 * normal/function.c: Moved to ...
8963 * script/sh/function.c: ... Moved here.
8964 * normal/lexer.c: Moved to ...
8965 * script/sh/lexer.c: ... Moved here.
8966 * normal/parser.y: Moved to ...
8967 * script/sh/parser.y: ... Moved here.
8968 * normal/script.c: Moved to ...
8969 * script/sh/script.c: ... Moved here.
8970
8971 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
8972 <grub/reader.h>.
8973 (grub_exit_env): Removed.
8974 (fs_module_list): Moved to normal/autofs.c.
8975 (grub_file_getline): Don't handle comment here.
8976 (free_menu): Skip removed field entry->commands.
8977 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
8978 script parameter.
8979 (read_config_file): Removed nested parameter, change getline function.
8980 (grub_enter_normal_mode): Removed.
8981 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
8982 (read_command_list): Likewise.
8983 (autoload_fs_module): Moved to normal/autofs.c.
8984 (read_fs_list): Likewise.
8985 (reader_nested): New variable.
8986 (grub_normal_execute): Run parser.sh to switch to sh parser.
8987 (grub_cmd_rescue): Removed.
8988 (cmd_normal): Removed.
8989 (grub_cmd_normal): Unregister itself at the beginning. Don't register
8990 rescue command.
8991 (grub_cmdline_run): New function.
8992 (grub_normal_reader_init): Likewise.
8993 (grub_normal_read_line): Likewise.
8994 (grub_env_write_pager): Likewise.
8995 (cmdline): New variable.
8996 (grub_normal_reader): Likewise.
8997 (GRUB_MOD_INIT): Register normal reader and set as current, register
8998 pager hook, register normal command with grub_register_command_prio,
8999 so that it won't show up in command.lst.
9000 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
9001 grub_fs_autoload_hook.
9002
9003 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
9004 (grub_menu_execute_entry): Replace grub_script_execute with
9005 grub_parser_execute, change parameter to grub_command_execute.
9006
9007 * normal/menu_text.c: Remove <grub/script.h>.
9008
9009 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
9010 and <grub/parser.h>.
9011 (run): Change editor_getline to use new parser interface. Change
9012 parameter to grub_command_execute.
9013
9014 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
9015 <grub/reader.h> and <grub/parser.h>.
9016 (grub_load_normal_mode): Execute normal command.
9017 (grub_main): Call grub_register_core_commands,
9018 grub_register_rescue_parser and grub_register_rescue_reader, use
9019 grub_reader_loop to enter input loop.
9020
7dd4a573 9021 * kern/parser.c (grub_parser_split_cmdline): Change type of
9022 getline parameter.
d558e6b5 9023 (grub_parser_class): New variable.
9024 (grub_parser_execute): New function.
9025
9026 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
9027 * loader/multiboot2.c: Likewise.
9028 * loader/sparc64/ieee1275/linux.c: Likewise.
9029
9030 * util/grub-emu.c (read_command_list): New dummy function.
9031
18db813d 90322009-05-02 Robert Millan <rmh.grub@aybabtu.com>
9033
9034 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
9035 count to 16 for CCISS and IDA.
9036
6c67de15 90372009-05-02 Robert Millan <rmh.grub@aybabtu.com>
9038
9039 * normal/menu_text.c (grub_wait_after_message): Print a newline
9040 after waiting for user input.
9041
9042 * loader/i386/linux.c: Include `<grub/normal.h>'.
9043 (grub_cmd_linux): Improve the error message about `ask' mode, by
9044 waiting for user input so it's not missed (we can do this, since
9045 user requested interaction).
9046
d9dc87b0 90472009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
9048
9049 Added missing lst to grub-mkrescue
9050
9051 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
9052 and ${input_dir}/parttool.lst
9053
ac8a2baa 90542009-04-30 David S. Miller <davem@davemloft.net>
9055
ad22a610 9056 * util/hostdisk.c (device_is_wholedisk): New function.
9057 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
9058 zero only if device_is_wholedisk() returns true.
9059
6966215d 9060 * util/hostdisk.c (convert_system_partition_to_system_disk):
9061 Handle virtual disk devices named /dev/vdiskX as found on sparc
9062 and powerpc.
9063
ac8a2baa 9064 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
9065 lettered partition specifier is found, convert to numbered.
9066
979b4fb4 90672009-04-29 David S. Miller <davem@davemloft.net>
9068
e2bf39b2 9069 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
9070 * include/grub/sparc64/ieee1275/memory.h: Likewise.
9071
3c64e104 9072 * normal/command.c: Add missing newline at end of file.
9073
979b4fb4 9074 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
9075 warnings.
9076 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
9077 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
9078 grub_ofdisk_read): Likewise, and deal similarly with the fact that
9079 ihandles have a 32-bit type but need to be stored in a "void *".
9080
136d9f82 90812009-04-28 Pavel Roskin <proski@gnu.org>
9082
9459c306 9083 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
9084 not disk. Adjust all dependencies.
2e08a26a 9085 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 9086 grub_disk_close().
9087
136d9f82 9088 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
9089 parent's partition, don't copy it by reference, as it gets freed
9090 on close.
9091
7dd4a573 90922009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 9093
9094 Preboot hooks support
9095
9096 * commands/boot.c (struct grub_preboot_t): new declaration
9097 (preboots_head): new variable
9098 (preboots_tail): likewise
9099 (grub_loader_register_preboot_hook): new function
9100 (grub_loader_unregister_preboot_hook): likewise
9101 (grub_loader_set): launch preboot hooks
9102 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
9103 (grub_loader_register_preboot_hook): new declaration
9104 (grub_loader_unregister_preboot_hook): likewise
9105
5af922b5 91062009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
9107
9108 Warning fix
9109
7dd4a573 9110 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 9111 calling grub_dprintf
9112
a5562c30 91132009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
9114
9115 Bug and warning fixes
9116
7dd4a573 9117 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 9118 declaration
9119 * commands/test.c (test_parse): fixed bug with file tests and corrected
9120 declaration of find_file
9121
4006f85c 91222009-04-26 Pavel Roskin <proski@gnu.org>
9123
9124 * Makefile.in: Don't install empty manual pages if help2man is
9125 missing. Use help2man option for output, not shell redirection.
9126
5c77c3de 91272009-04-26 David S. Miller <davem@davemloft.net>
9128
9129 * util/grub-mkdevicemap.c (make_device_map): Add missing
9130 NESTED_FUNC_ATTR to process_device().
9131
033b10a8 91322009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
9133
9134 Test command
9135
9136 * commands/test.c: rewritten to use bash-like test
9137
e4343593 91382009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
9139
9140 Parttool autoloading and improvements
9141
7dd4a573 9142 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 9143 (parttool.lst): new target
9144 * genmk.rb: generate parttool-*
9145 (CLEANFILES): add #{parttool}
9146 (PARTTOOLFILES): new variable
9147 * genparttoollist.sh: new file
7dd4a573 9148 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 9149 (grub_pcpart_type): likewise
9150 * commands/parttool.c (helpmsg): new variable
9151 (grub_cmd_parttool): output help if not enough arguments are supplied
9152 autoload modules
9153 (GRUB_MOD_INIT(parttool)): use helpmsg
9154
0d312500 91552009-04-24 David S. Miller <davem@davemloft.net>
9156
7dd4a573 9157 Avoiding opening same device multiple times in device iterator.
0d312500 9158
9159 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 9160 and use it to build a list of partitions in iterate_disk() and
0d312500 9161 iterate_partition().
9162
ac20caff 9163 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
9164 on disk->data.
9165
0dcf7495 9166 * disk/ieee1275/nand.c (grub_nand_iterate): Return
9167 grub_devalias_iterate() result instead of unconditional 0.
9168 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
9169 Also, capture hook return value, either directly or via
9170 grub_children_iterate(), and propagate to caller.
9171 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
9172 grub_children_iterate): Return value is now 'int' instead of
9173 'grub_err_t'.
9174 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
9175 like a proper iterator, stopping when hooks return non-zero.
9176 (grub_devalias_iterate): Likewise.
9177
c8c08833 91782009-04-23 David S. Miller <davem@davemloft.net>
9179
9180 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
9181
f01005a8 91822009-04-22 David S. Miller <davem@davemloft.net>
9183
9184 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
9185 is larger than address_cells, use that value for address_cells too.
9186
4e8269da 9187 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
9188 IEEE1275_MAX_PATH_LEN): Define.
9189 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
9190 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
9191 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
9192 'devtype'. Explicitly NULL terminate devalias expansion.
9193
a1447506 9194 * util/sparc64/ieee1275/misc.c: New file.
9195 * util/sparc64/ieee1275/grub-setup.c: New file.
9196 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
9197 * util/sparc64/ieee1275/grub-mkimage.c: New file.
9198 * util/sparc64/ieee1275/grub-install.in: New file.
9199 * util/ieee1275/ofpath.c: New file.
9200 * util/ieee1275/devicemap.c: New file.
9201 * util/devicemap.c: New file.
9202 * util/deviceiter.c: New file.
9203 * kern/sparc64/ieee1275/init.c: New file.
9204 * include/grub/util/ofpath.h: New file.
9205 * include/grub/util/deviceiter.h: New file.
9206 * util/grub-mkdevicemap.c: Include deviceiter.h.
9207 Implement using grub_util_emit_devicemap_entry and
9208 grub_util_iterate_devices.
9209 * conf/i386-corebook.rmk: Build util/deviceiter.c and
9210 util/devicemap.c into grub-mkdevicemap
9211 * conf/i386-efi.rmk: Likewise.
9212 * conf/i386-ieee1275.rmk: Likewise.
9213 * conf/i386-pc.rmk: Likewise.
9214 * conf/powerpc-ieee1275.rmk: Likewise.
9215 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
9216 images and installation utilities. Build kernel as image
9217 instead of as elf binary. Use common rules as much as possible.
9218
7dd4a573 92192009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 9220
9221 Correct GPT definition
9222
7dd4a573 9223 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 9224 of "attrib" member
9225
c6c5219f 92262009-04-19 Felix Zielcke <fzielcke@z-51.de>
9227
9228 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
9229
0552ff9f 92302009-04-19 David S. Miller <davem@davemloft.net>
9231
9232 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
9233 (grub_rescue_cmd_linux): Rename to...
9234 (grub_cmd_linux): and fix prototype.
9235 (grub_rescue_cmd_initrd): Rename to...
9236 (grub_cmd_initrd): and fix prototype.
9237 (cmd_linux, cmd_initrd): New.
9238 (GRUB_MOD_INIT(linux)): Use grub_register_command().
9239 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
9240
d1a282fc 92412009-04-17 Pavel Roskin <proski@gnu.org>
9242
07c5039f 9243 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
9244 format.
9245 (grub_ohci_transfer): Likewise.
9246
b012002d 9247 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
9248
1bc09c35 9249 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
9250 return without a value. Fix inconsistent indentation.
9251
e0ff9126 9252 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
9253 match struct grub_fs.
9254
d1a282fc 9255 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
9256 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
9257 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
9258 * commands/lspci.c (grub_lspci_iter): Likewise.
9259
a96df3f2 92602009-04-16 Bean <bean123ch@gmail.com>
9261
9262 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
9263 value.
9264
41bb0fe9 92652009-04-15 Pavel Roskin <proski@gnu.org>
9266
9267 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
9268 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
9269 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
9270 definitions.
9271
596c6970 92722009-04-15 Felix Zielcke <fzielcke@z-51.de>
9273
9274 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 9275 that no multiple data or metadata areas are supported and `Unknown
596c6970 9276 metadata header'.
9277
7dd4a573 92782009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 9279
9280 Move loader out of the kernel
9281
9282 * kern/loader.c: moved to ...
9283 * commands/boot.c: ... moved here
9284 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
9285 * commands/boot.c (grub_cmd_boot): moved here. All users updated
9286 * include/grub/kernel.h (grub_machine_fini): export
9287 * include/grub/loader.h (grub_loader_is_loaded): update declaration
9288 (grub_loader_set): likewise
9289 (grub_loader_unset): likewise
9290 (grub_loader_boot): likewise
9291 * conf/common.rmk: new module boot.mod
9292 (pkglib_MODULES): add boot.mod
9293 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
9294 (grub_emu_SOURCES): likewise
9295 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
9296 (grub_emu_SOURCES): likewise
9297 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
9298 (grub_emu_SOURCES): likewise
9299 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
9300 (grub_emu_SOURCES): likewise
9301 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
9302 (grub_emu_SOURCES): likewise
7dd4a573 9303 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
9304 (grub_emu_SOURCES): likewise
0d5d5653 9305 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 9306 (grub_emu_SOURCES): likewise
0d5d5653 9307
7dd4a573 93082009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 9309
9310 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 9311
5999d619 9312 * kern/misc.c (grub_itoa): Removed function
9313 (grub_ltoa): likewise
9314 (grub_vsprintf): use grub_lltoa
9315
7dd4a573 93162009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 9317
9318 Restore grub-emu
9319
9320 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
9321 * conf/i386-coreboot.rmk: likewise
9322 * conf/i386-ieee1275.rmk: likewise
9323 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 9324
20318222 93252009-04-15 Felix Zielcke <fzielcke@z-51.de>
9326
9327 * INSTALL: Add that `./autogen.sh' needs to be run before
9328 `./configure.'.
9329
d05f0df3 93302009-04-14 Bean <bean123ch@gmail.com>
9331
9332 * Makefile.in (pkglib_DATA): Add handler.lst.
9333 (handler.lst): New rule.
9334
9335 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
9336 * conf/i386-coreboot.rmk: Likewise.
9337 * conf/i386-ieee1275.rmk: Likewise.
9338 * conf/i386-efi.rmk: Likewise.
9339 * conf/x86_64-efi.rmk: Likewise.
9340 * conf/powerpc-ieee1275.rmk: Likewise.
9341 * conf/sparc64-ieee1275.rmk: Likewise.
9342
9343 * genhandlerlist.sh: New file.
9344
9345 * genmk.rb: Add rules to generate handler.lst.
9346
9347 * include/grub/normal.h (grub_file_getline): New function definition.
9348 (read_handler_list): Likewise.
9349 (free_handler_list): Likewise.
9350
9351 * include/grub/term.h (grub_term_register_input): Add name parameter
9352 for auto generation of handler.lst.
9353 (grub_term_register_output): Likewise.
9354
9355 * normal/handler.c: New file.
9356
9357 * normal/main.c (get_line): Renamed to grub_file_getline.
9358 (read_config_file): Use the newly renamed grub_file_getline.
9359 (read_command_list): Likewise.
9360 (read_fs_list): Likewise.
9361 (grub_normal_execute): Call read_handler_list to parse handler.lst.
9362 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
9363
9364 * term/efi/console.c (grub_console_init): Add name parameter for auto
9365 generation of handler.lst.
9366 * term/gfxterm.c: Likewise.
9367 * term/i386/pc/at_keyboard.c: Likewise.
9368 * term/i386/pc/console.c: Likewise.
9369 * term/i386/pc/serial.c: Likewise.
9370 * term/i386/pc/vesafb.c: Likewise.
9371 * term/i386/pc/vga.c: Likewise.
9372 * term/i386/pc/vga_text.c: Likewise.
9373 * term/ieee1275/ofconsole.c: Likewise.
9374 * term/usb_keyboard.c: Likewise.
9375
33c846be 93762009-04-14 Bean <bean123ch@gmail.com>
9377
9378 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
9379 properly with null character.
9380
4484e01e 93812009-04-14 Felix Zielcke <fzielcke@z-51.de>
9382
9383 * configure: Remove.
9384 * config.h.in: Likewise.
f93d668e 9385 * stamp-h.in: Likewise.
4484e01e 9386 * DISTLIST: Likewise.
9387 * conf/common.mk: Likewise.
9388 * conf/i386-coreboot.mk: Likewise.
9389 * conf/i386-efi.mk: Likewise.
9390 * conf/i386-ieee1275.mk: Likewise.
9391 * conf/i386.mk: Likewise.
9392 * conf/i386-pc.mk: Likewise.
9393 * conf/powerpc-ieee1275.mk: Likewise.
9394 * conf/sparc64-ieee1275.mk: Likewise.
9395 * conf/x86_64-efi.mk: Likewise.
9396
9397 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
9398 develop on GRUB.
9399
7dd4a573 94002009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 9401 David S. Miller <davem@davemloft.net>
9402
9403 * util/hostdisk.c (make_device_name): Fix buffer length
9404 calculations.
9405
e25b5a8c 94062009-04-14 Felix Zielcke <fzielcke@z-51.de>
9407
9408 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
9409 <sys/param.h> and <sys/sysctl.h>.
9410 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
9411 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
9412 opening the device and reset them afterwards.
9413
1f1f580c 94142009-04-13 Pavel Roskin <proski@gnu.org>
9415
9416 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
9417 Reported by John Stanley <jpsinthemix@verizon.net>
9418
7ebc2d6b 94192009-04-13 Robert Millan <rmh@aybabtu.com>
9420
9421 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 9422 that name for menuentries when appropriate.
7ebc2d6b 9423
d8ba3667 94242009-04-13 Felix Zielcke <fzielcke@z-51.de>
9425
9426 * util/grub.d/10_freebsd.in: Add a missing `fi'.
9427
cba416eb 94282009-04-13 Robert Millan <rmh@aybabtu.com>
9429
9430 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
9431 to Linux, simply abort telling the user it's no longer supported.
9432
a547a745 94332009-04-13 Felix Zielcke <fzielcke@z-51.de>
9434
9435 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 9436 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 9437 `freebsd_loadenv' only when devices.hints exist.
9438
232a769c 94392009-04-13 Pavel Roskin <proski@gnu.org>
9440
9441 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
9442
c3012039 94432009-04-13 Felix Zielcke <fzielcke@z-51.de>
9444
9445 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
9446 partition number.
9447 (grub_drive): Likewise.
9448
234022fe 94492009-04-13 David S. Miller <davem@davemloft.net>
9450
9451 * kern/sparc64/ieee1275/ieee1275.c: New file.
9452 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
9453 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
9454 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
9455 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
9456 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
9457 grub_ieee1275_alloc_physmem): Declare new exported functions.
9458
d8e1836c 9459 * include/grub/sparc64/ieee1275/loader.h: New file.
9460 * include/grub/sparc64/ieee1275/memory.h: Likewise.
9461 * include/grub/sparc64/kernel.h: Likewise.
9462 * loader/sparc64/ieee1275/linux.c: Likewise.
9463
96bd81ec 9464 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
9465 (grub_fstest_SOURCES): Likewise.
9466
6a4737e5 9467 * util/hostdisk.c (make_device_name): Do not make any assumptions
9468 about the length of drive names.
9469
1d7a72fd 9470 * kern/dl.c (grub_dl_load_file): Close file immediately when
9471 we are done using it.
9472
56bc2471 94732009-04-12 David S. Miller <davem@davemloft.net>
9474
9475 * kern/misc.c (grub_ltoa): Fix cast when handling negative
9476 values. Noticed by Pavel Roskin.
9477
df38d0bb 9478 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
9479 target compiler.
7dd4a573 9480
e382e93a 9481 * genmk.rb: Add more flexible image type specification, also
9482 pass --strip-unneeded to objcopy.
9483 * conf/i386-pc.rmk: Use *_FORMAT.
9484 * conf/i386-pc.mk: Rebuilt.
9485
f5dbbca9 9486 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
9487 (OFDISK_HASH_SZ): Define.
9488 (ofdisk_hash): New hash table.
9489 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
9490 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
9491 instead of device phandle which is not unique.
9492
91c88b12 9493 * kern/sparc64/ieee1275/init.c: Delete, replace with...
9494 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
9495 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
9496 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
9497 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
9498 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
9499 GRUB_KERNEL_MACHINE_DATA_END): Define.
9500 (grub_kernel_image_size, grub_total_module_size): Declare.
9501
5b5d4aa5 95022009-04-12 Pavel Roskin <proski@gnu.org>
9503
7dd4a573 9504 * configure.ac: Change the logic when we check for target tools.
9505 Do it when the target is specified and it's different from the
9506 specified value of the host.
5b5d4aa5 9507
c91e1793 95082009-04-11 Felix Zielcke <fzielcke@z-51.de>
9509
9510 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
9511 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
9512 GNU/kFreeBSD. Check if a device is a character device. Use
9513 DIOCGMEDIASIZE to get the size.
9514 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
9515 support for GNU/kFreeBSD.
9516 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
9517 is a character device instead of a block device. Add support for
9518 FreeBSD device names.
9519
9520 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
9521 is a character device instead of a block device.
9522
9523 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
9524 is a character device instead of a block device.
9525
b1ac8644 95262009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
9527
9528 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
9529 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
9530 FreeBSD. Check if a device is a character device. Use
9531 DIOCGMEDIASIZE to get the size.
9532 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
9533 support for FreeBSD.
9534 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
9535 is a character device instead of a block device. Add support for
9536 FreeBSD device names.
9537
9538 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
9539 a character device instead of a block device.
9540 (grub_util_check_char_device): New function.
9541
9542 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
9543 a character device instead of a block device.
9544
9545 * include/grub/util/getroot.h (grub_util_check_char_device): New
9546 prototype.
9547
a3f7515a 95482009-04-11 David S. Miller <davem@davemloft.net>
9549
9550 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
9551 static libgcc.
9552 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
9553 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
9554 function, if present.
9555 (__bswapdi2): Likewise.
9556
0d44993d 9557 * include/grub/sparc64/ieee1275/boot.h: New file.
9558 * boot/sparc64/ieee1275/boot.S: Likewise.
9559 * boot/sparc64/ieee1275/diskboot.S: Likewise.
9560
ed3d2bc2 9561 * kern/misc.c (grub_ltoa): New function.
9562 (grub_vsprintf): Use it to format 'long' integers.
9563
d3bfb59c 95642009-04-10 David S. Miller <davem@davemloft.net>
9565
9566 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
9567 slots are of type grub_ieee1275_cell_t.
9568 (grub_nand_read): Likewise.
9569 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
9570 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
9571 macros are used to compare values in arg/ret block of the call.
9572 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
9573 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
9574 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
9575 grub_ieee1275_instance_to_path, grub_ieee1275_write,
9576 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
9577 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
9578 grub_ieee1275_close, grub_ieee1275_set_property,
9579 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
9580 grub_ieee1275_cell_t.
9581 * kern/ieee1275/openfw.c (grub_map): Likewise.
9582 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
9583 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
9584
450e2238 9585 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
9586 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
9587 (grub_devalias_iterate): Likewise.
9588
7dd4a573 95892009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 9590
9591 UFS improvements
9592
9593 * fs/ufs.c (INODE_NBLOCKS): new definition
9594 (struct grub_ufs_dirent): added fields for non-BSD dirents
9595 (grub_ufs_get_file_block): fixed double indirect handling
9596 (grub_ufs_lookup_symlink): use more robust way to determine whether
9597 symlink is inline
9598 (grub_ufs_find_file): support for non-BSD dirents
9599 (grub_ufs_dir): support for non-BSD dirents
9600
e7e6862a 96012009-04-10 Bean <bean123ch@gnail.com>
9602
9603 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
9604 attribute, otherwise the size would be wrong for i386 platform.
9605
9606 * include/grub/pci.h (grub_pci_read_word): New inline function.
9607 (grub_pci_read_byte): Likewise.
9608 (grub_pci_write): Likewise.
9609 (grub_pci_write_word): Likewise.
9610 (grub_pci_write_byte): Likewise.
9611
9612 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
9613
9614 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
9615 (find_framebuf): Scan pci to locate the frame buffer address.
9616
9617 * commands/efi/fixvideo.c: New file.
9618
9619 * commands/efi/loadbios.c: Likewise.
9620
9621 * commands/memrw.c: Likewise.
9622
9623 * util/grub-dumpbios.in: Likewise.
9624
9625 * conf/common.rmk (grub-dumpbios): New utility.
9626 (pkglib_MODULES): New module memrw.mod.
9627 (memrw_mod_SOURCE): New macro.
9628 (memrw_mod_CFLAGS): Likewise.
9629 (memrw_mod_LDFLAGS): Likewise.
9630
7dd4a573 9631 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 9632 fixvideo.mod.
9633 (loadbios_mod_SOURCE): New macro.
9634 (loadbios_mod_CFLAGS): Likewise.
9635 (loadbios_mod_LDFLAGS): Likewise.
9636 (fixvideo_mod_SOURCE): Likewise.
9637 (fixvideo_mod_CFLAGS): Likewise.
9638 (fixvideo_mod_LDFLAGS): Likewise.
9639
7dd4a573 9640 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 9641 fixvideo.mod.
9642 (loadbios_mod_SOURCE): New macro.
9643 (loadbios_mod_CFLAGS): Likewise.
9644 (loadbios_mod_LDFLAGS): Likewise.
9645 (fixvideo_mod_SOURCE): Likewise.
9646 (fixvideo_mod_CFLAGS): Likewise.
9647 (fixvideo_mod_LDFLAGS): Likewise.
9648
af63ada2 96492009-04-08 Felix Zielcke <fzielcke@z-51.de>
9650
9651 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
9652
c2cdde70 96532009-04-07 David S. Miller <davem@davemloft.net>
9654
9655 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
9656 support for R_SPARC_OLO10 relocations. Fix compile warning for
9657 R_SPARC_WDISP30 case.
ea3f72cf 9658 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 9659
761319cf 96602009-04-06 Pavel Roskin <proski@gnu.org>
9661
1007d1f5 9662 * include/grub/misc.h (ARRAY_SIZE): New macro.
9663 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
9664 New macro.
9665 * loader/i386/linux.c (allocate_pages): Use free_pages().
9666 (grub_linux_unload): Don't use free_pages().
9667 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
9668 wrong index. Treat all other modes as text modes.
9669 (grub_cmd_linux): Initialize vid_mode unconditionally to
9670 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
9671
761319cf 9672 * commands/help.c (print_command_help): Use cmd->prio, not
9673 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
9674
ea761d40 96752009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 9676
ea761d40 9677 Parttool
9678
9679 * parttool/pcpart.c: new file
9680 * commands/parttool.c: likewise
9681 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
9682 (parttool_mod_SOURCES): new variable
9683 (parttool_mod_CFLAGS): likewise
9684 (parttool_mod_LDFLAGS): likewise
9685 (pcpart_mod_SOURCES): likewise
9686 (pcpart_mod_CFLAGS): likewise
9687 (pcpart_mod_LDFLAGS): likewise
7dd4a573 9688 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 9689 and parttool/pcpart.c
9690 * conf/i386-efi.rmk: likewise
9691 * conf/i386-ieee1275.rmk: likewise
9692 * conf/i386-pc.rmk: likewise
9693 * conf/powerpc-ieee1275.rmk: likewise
9694 * conf/sparc64-ieee1275.rmk: likewise
9695 * conf/x86_64-ieee1275.rmk: likewise
9696
05aaebfb 96972009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
9698
9699 Support for mtime and further expandability of dir command
9700
9701 * include/grub/lib/datetime.h: moved to ...
7dd4a573 9702 * include/grub/datetime.h: ... moved here and added
05aaebfb 9703 declaration of grub_unixtime2datetime. All users updated
7dd4a573 9704 * include/grub/fs.h: new syntax for dir and mtime functions in
9705 struct grub_fs
05aaebfb 9706 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
9707 and GRUB_FSHELP_FLAGS_MASK
9708 * commands/ls.c (grub_ls_list_files): Write mtime in long format
9709 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
9710 (grub_ext2_mtime): new function
9711 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
9712 (grub_hfsplus_mtime): new function
9713 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
9714 (GRUB_UFS_ATTR_FILE): likewise
9715 (GRUB_UFS_ATTR_LNK): likewise
9716 (struct grub_ufs_sblock): new fields mtime
9717 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
9718 all users updated
9719 (grub_ufs_dir): mtime support
9720 (grub_ufs_mtime): new function
9721 * fs/affs.c (grub_affs_dir): use new dir syntax
9722 * fs/afs.c (grub_afs_dir): likewise
9723 * fs/cpio.c (grub_cpio_dir): likewise
9724 * fs/fat.c (grub_fat_find_dir): likewise
9725 * fs/hfs.c (grub_hfs_dir): likewise
9726 * fs/iso9660.c (grub_iso9660_dir): likewise
9727 * fs/jfs.c (grub_jfs_dir): likewise
9728 * fs/minix.c (grub_minix_dir): likewise
9729 * fs/ntfs.c (grub_ntfs_dir): likewise
9730 * fs/reiserfs.c (grub_reiserfs_dir): likewise
9731 * fs/sfs.c (grub_sfs_dir): likewise
9732 * fs/xfs.c (grub_xfs_dir): likewise
9733 * util/hostfs.c (grub_hostfs_dir): likewise
9734 * lib/datetime.c: moved to ...
9735 * normal/datetime.c: ... moved here
9736 (grub_unixtime2datetime): new function
9737 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 9738 * normal/completion.c (iterate_dir): use new dir syntax
9739 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 9740 last modification time of a volume
7dd4a573 9741 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 9742 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 9743 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 9744 (normal_mod_SOURCES): likewise
9745 (datetime_mod_SOURCES): Removed lib/datetime.c
9746 * conf/i386-efi.rmk: likewise
7dd4a573 9747 * conf/i386-ieee1275.rmk: likewise
05aaebfb 9748 * conf/i386-pc.rmk: likewise
9749 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 9750 * conf/sparc64-ieee1275.rmk: likewise
9751 * conf/x86_64-efi.rmk: likewise
05aaebfb 9752
8a7e1a14 97532009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
9754
9755 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 9756
9757 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 9758 on grub_fat_find_dir
9759 (grub_fat_find_dir): use grub_fat_iterate_dir
9760 (grub_fat_label): likewise
9761
04186a9c 97622009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
9763
7dd4a573 9764 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 9765 and command.h
9766 remove extraneous kernel_elf_HEADERS
9767
da4c0bb6 97682009-04-04 Bean <bean123ch@gnail.com>
9769
9770 * include/grub/util/misc.h: Add dummy function fsync for mingw.
9771
9772 * util/misc.c: Likewise.
9773
54ad9555 97742009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
9775
9776 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
9777 instead of grub_printf.
9778
7a6bf9f2 97792009-04-03 Robert Millan <rmh@aybabtu.com>
9780
9781 * loader/i386/linux.c (grub_linux_setup_video): Fill
9782 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
9783 values from `mode info' structure instead of hardcoded
9784 values.
9785
3fcc2083 97862009-04-01 Pavel Roskin <proski@gnu.org>
9787
9788 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
9789 unused now.
9790 * genmk.rb: Likewise.
9791 * configure.ac: Likewise.
9792
5ec9740b 97932009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
9794
9795 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
9796 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
9797
5270cec8 97982009-04-01 David S. Miller <davem@davemloft.net>
9799
9800 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 9801 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 9802 (grub_setjmp): Mark with 'returns_twice' attribute.
9803 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
9804 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
9805 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
9806
9c3dd854 98072009-04-01 Robert Millan <rmh@aybabtu.com>
9808
9809 Reapply fix from 2008-07-28 which was accidentally reverted; also
9810 perform the same fix to a similar check in same function.
9811
9812 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
9813 with the same number are found, just use issue a warning with
9814 grub_dprintf(), as this error has been reported to be non-fatal.
9815
0d818b7e 98162009-03-31 Pavel Roskin <proski@gnu.org>
9817
9818 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
9819 for cross-compilation.
9820
95646d92 98212009-03-30 Robert Millan <rmh@aybabtu.com>
9822
9823 Fix i386-ieee1275 build.
9824
9825 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
9826 Remove declaration.
9827
6a003ed1 98282009-03-30 Pavel Roskin <proski@gnu.org>
9829
9830 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
9831 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
9832 zero-terminated, rely only on the strlen value. Fix comparison
9833 of strings differing in length.
9834
92f33540 98352009-03-30 Robert Millan <rmh@aybabtu.com>
9836
9837 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
9838 checking for abi version. Improve error messages on BIOS to notify
9839 user about `linux16' command.
9840
a8c48fd5 98412009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
9842
f968172e 9843 Leak fixes
a8c48fd5 9844
f968172e 9845 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
9846 in case of collision
9847 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 9848
9c323f09 98492009-03-29 Robert Millan <rmh@aybabtu.com>
9850
9851 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
9852 set `vid_mode' accordingly.
9853 (grub_linux_boot): Process `vid_mode' and set video mode.
9854
ae68f423 98552009-03-29 Robert Millan <rmh@aybabtu.com>
9856
9857 * util/grub.d/10_linux.in (linux_entry): New function.
9858 Factorize generation of Linux boot entries.
9859
5709cfc4 98602009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
9861
9862 Make the format of Environment Block plain text. The boot loader
9863 part is not tested well yet.
7dd4a573 9864
5709cfc4 9865 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
9866 (buffer): Removed.
9867 (envblk): Likewise.
9868 (usage): Remove "info" and "clear". Add "unset". Update the
9869 description of "set", as this does not delete variables any
9870 longer.
9871 (create_envblk_file): Complete rewrite.
9872 (open_envblk_file): Likewise.
9873 (cmd_info): Removed.
9874 (cmd_list): Likewise.
9875 (cmd_set): Likewise.
9876 (cmd_clear): Likewise.
9877 (list_variables): New function.
9878 (write_envblk): Likewise.
9879 (set_variables): Likewise.
9880 (unset_variables): Likewise.
9881 (main): Complete rewrite.
9882
9883 * commands/loadenv.c (buffer): Removed.
9884 (envblk): Likewise.
9885 (open_envblk_file): New function.
9886 (read_envblk_file): Complete rewrite.
9887 (grub_cmd_load_env): Likewise.
9888 (grub_cmd_list_env): Likewise.
9889 (struct blocklist): New struct.
9890 (free_blocklists): New function.
9891 (check_blocklists): Likewise.
9892 (write_blocklists): Likewise.
9893 (grub_cmd_save_env): Complete rewrite.
9894
9895 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
9896 a plain text signature.
9897 (GRUB_ENVBLK_MAXLEN): Removed.
9898 (struct grub_envblk): Complete rewrite.
9899 (grub_envblk_find): Removed.
9900 (grub_envblk_insert): Likewise.
9901 (grub_envblk_open): New prototype.
9902 (grub_envblk_set): Likewise.
9903 (grub_envblk_delete): Put const to VALUE.
9904 (grub_envblk_iterate): Put const to NAME and VALUE.
9905 (grub_envblk_close): New prototype.
9906 (grub_envblk_buffer): New inline function.
9907 (grub_envblk_size): Likewise.
9908
9909 * lib/envblk.c: Include grub/mm.h.
9910 (grub_env_find): Removed.
9911 (grub_envblk_open): New function.
9912 (grub_envblk_close): Likewise.
9913 (escaped_value_len): Likewise.
9914 (find_next_line): Likewise.
9915 (grub_envblk_insert): Removed.
9916 (grub_envblk_set): New function.
9917 (grub_envblk_delete): Complete rewrite.
9918 (grub_envblk_iterate): Likewise.
9919
a9368fd3 99202009-03-28 Robert Millan <rmh@aybabtu.com>
9921
9922 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
9923 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
9924 variables. Use 16-bit loader.
9925 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
9926 loader.
9927 * kern/i386/loader.S (grub_linux_boot): Rename to ...
9928 (grub_linux16_boot): ... this. Update all users.
9929 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
9930 (grub_linux_boot): ... this. Update all users.
9931
9932 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
9933 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
9934 commands to `linux16' and `initrd16'.
9935 (GRUB_MOD_FINI(linux)): Rename to ...
9936 (GRUB_MOD_FINI(linux16)): ... this.
9937
e4dd5a7e 99382009-03-24 Pavel Roskin <proski@gnu.org>
9939
9940 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
9941 not just for compilation.
9942
c04d6e05 99432009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
9944
9945 Move multiboot helper out of kernel
9946
9947 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
9948 `loader/i386/multiboot_helper.S'.
9949 * conf/i386-coreboot.rmk: Likewise
9950 * conf/i386-ieee1275.rmk: Likewise
9951
9952 * kern/i386/loader.S: Move multiboot helpers from here...
9953 * loader/i386/multiboot_helper.S: ...moved here
9954 * include/grub/i386/loader.h: Move declarations of multiboot
9955 helpers from here...
9956 * include/grub/i386/multiboot.h: ...moved here
9957 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
9958
42a5b3fc 99592009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
9960
9961 * kern/env.c (grub_env_context_open): Added an argument to specify
9962 whether a new context inherits exported variables from current
9963 one. This is useful when making a sandbox to interpret a config
9964 file.
9965 All callers updated.
9966
9967 * include/grub/env.h (grub_env_context_open): Updated the prototype.
9968
b28bbc4e 99692009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
9970
9971 * kern/env.c (grub_env_context_close): Fix memory leaks.
9972
f04f02e4 99732009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
9974
9975 * normal/main.c (grub_normal_execute): Added an argument
9976 BATCH to specify if an interactive interface should be provided
9977 after reading a config file.
9978 All callers updated.
9979 (read_command_list): Prevent being executed twice.
9980 (read_fs_list): Likewise.
9981
42a5b3fc 9982 * include/grub/normal.h (grub_normal_execute): Updated the
9983 prototype.
f04f02e4 9984
41473ac2 99852009-03-22 Pavel Roskin <proski@gno.org>
9986
fbc00b0c 9987 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
9988 _start.
9989 * kern/i386/pc/startup.S: Likewise.
9990 * kern/i386/efi/startup.S: Likewise.
9991 * kern/i386/ieee1275/startup.S: Likewise.
9992 * kern/i386/coreboot/startup.S: Likewise.
9993 * kern/x86_64/efi/startup.S: Likewise.
9994
41473ac2 9995 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
9996 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
9997 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
9998
2274cc8f 99992009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
10000
10001 Bugfixes in multiboot for bugs uncovered by solaris kernel.
10002
10003 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
10004 limit detection.
10005 Use vaddr of correct segment for entry_point.
10006
b1b797cb 100072009-03-21 Bean <bean123ch@gmail.com>
10008
10009 * commands/blocklist.c: Add include file <grub/command.h>, remove
10010 <grub/normal.h> and <grub/arg.h>.
10011 (grub_cmd_blocklist): Use the new command interface.
10012 (GRUB_MOD_INIT): Likewise.
10013 (GRUB_MOD_FINI): Likewise.
10014 * commands/boot.c: Likewise.
10015 * commands/cat.c: Likewise.
10016 * commands/cmp.c: Likewise.
10017 * commands/configfile.c: Likewise.
10018 * commands/crc.c: Likewise.
10019 * commands/echo.c: Likewise.
10020 * commands/halt.c: Likewise.
10021 * commands/handler.c: Likewise.
10022 * commands/hdparm.c: Likewise.
10023 * commands/help.c: Likewise.
10024 * commands/hexdump.c: Likewise.
10025 * commands/loadenv.c: Likewise.
10026 * commands/ls.c: Likewise.
10027 * commands/lsmmap.c: Likewise.
10028 * commands/lspci.c: Likewise.
10029 * commands/loadenv.c: Likewise.
10030 * commands/read.c: Likewise.
10031 * commands/reboot.c: Likewise.
10032 * commands/search.c: Likewise.
10033 * commands/sleep.c: Likewise.
10034 * commands/test.c: Likewise.
10035 * commands/usbtest.c: Likewise.
10036 * commands/videotest.c: Likewise.
10037 * commands/i386/cpuid.c: Likewise.
10038 * commands/i386/pc/halt.c: Likewise.
10039 * commands/i386/pc/play.c: Likewise.
10040 * commands/i386/pc/pxecmd.c: Likewise.
10041 * commands/i386/pc/vbeinfo.c: Likewise.
10042 * commands/i386/pc/vbetest.c: Likewise.
10043 * commands/ieee1275/suspend.c: Likewise.
10044 * disk/loopback.c: Likewise.
10045 * font/font_cmd.c: Likewise.
10046 * hello/hello.c: Likewise.
10047 * loader/efi/appleloader.c: Likewise.
10048 * loader/efi/chainloader.c: Likewise.
10049 * loader/i386/bsd.c: Likewise.
10050 * loader/i386/efi/linux.c: Likewise.
10051 * loader/i386/ieee1275/linux.c: Likewise.
10052 * loader/i386/linux.c: Likewise.
10053 * loader/i386/pc/chainloader.c: Likewise.
10054 * loader/i386/pc/linux.c: Likewise.
10055 * loader/powerpc/ieee1275/linux.c: Likewise.
10056 * loader/multiboot_loader.c: Likewise.
10057 * term/gfxterm.c: Likewise.
10058 * term/i386/pc/serial.c: Likewise.
10059 * term/terminfo.c: Likewise.
10060
10061 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
10062 * term/i386/pc/vga.c: Likewise.
10063 * video/readers/jpeg.c: Likewise.
10064 * video/readers/png.c: Likewise.
10065 * video/readers/tga.c: Likewise.
10066
10067 * util/grub-fstest (cmd_loopback): Removed.
10068 (cmd_blocklist): Likewise.
10069 (cmd_ls): Likewise.
10070 (grub_register_command): Likewise.
10071 (grub_unregister_command): Likewise.
10072 (execute_command): Use grub_command_find to locate command and execute
10073 it.
10074
10075 * include/grub/efi/chainloader.h: Removed.
10076 * loader/efi/chainloader_normal.c: Likewise.
10077 * loader/i386/bsd_normal.c: Likewise.
10078 * loader/i386/pc/chainloader_normal.c: Likewise.
10079 * loader/i386/pc/multiboot_normal.c: Likewise.
10080 * loader/linux_normal.c: Likewise.
10081 * loader/multiboot_loader_normal.c: Likewise.
10082 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
10083
10084 * gencmdlist.sh: Scan new registration command grub_register_extcmd
10085 and grub_register_command_p1.
10086
10087 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
10088 kern/command.c, lib/arg.c and commands/extcmd.c.
10089 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
10090 (minicmd_mod_SOURCES): New variable.
10091 (minicmd_mod_CFLAGS): Likewise.
10092 (minicmd_mod_LDFLAGS): Likewise.
10093 (extcmd_mod_SOURCES): Likewise.
10094 (extcmd_mod_CFLAGS): Likewise.
10095 (extcmd_mod_LDFLAGS): Likewise.
10096 (boot_mod_SOURCES): Removed.
10097 (boot_mod_CFLAGS): Likewise.
10098 (boot_mod_LDFLAGS): Likewise.
10099
10100 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
10101 kern/corecmd.c.
10102 (kernel_img_HEADERS): Add command.h.
10103 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
10104 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
10105 and lib/arg.c.
10106 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
10107 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
10108 remove the corresponding normal mode command.
10109 (normal_mod_SOURCES): Remove normal/arg.c.
10110 * conf/i386-coreboot.rmk: Likewise.
10111 * conf/i386-efi.rmk: Likewise.
10112 * conf/i386-ieee1275.rmk: Likewise.
10113 * conf/powerpc-ieee1275.rmk: Likewise.
10114 * conf/x86_64-efi.rmk: Likewise.
10115
10116 * include/grub/arg.h: Move from here ...
10117 * include/grub/lib/arg.h: ... to here.
10118
10119 * normal/arg.c: Move from here ...
10120 * lib/arg.c: ... to here.
10121
10122 * commands/extcmd.c: New file.
10123 * commands/minicmd.c: Likewise.
10124 * include/grub/command.h: Likewise.
10125 * include/grub/extcmd.h: Likewise.
10126 * kern/command.c: Likewise.
10127 * kern/corecmd.c: Likewise.
10128
10129 * kern/list.c (grub_list_iterate): Return int instead of void.
10130 (grub_list_insert): New function.
10131 (grub_prio_list_insert): Likewise.
10132
10133 * kern/rescue.c (grub_rescue_command): Removed.
10134 (grub_rescue_command_list): Likewise.
10135 (grub_rescue_register_command): Likewise.
10136 (grub_rescue_unregister_command): Likewise.
10137 (grub_rescue_cmd_boot): Move to minicmd.c
10138 (grub_rescue_cmd_help): Likewise.
10139 (grub_rescue_cmd_info): Likewise.
10140 (grub_rescue_cmd_boot): Likewise.
10141 (grub_rescue_cmd_testload): Likewise.
10142 (grub_rescue_cmd_dump): Likewise.
10143 (grub_rescue_cmd_rmmod): Likewise.
10144 (grub_rescue_cmd_lsmod): Likewise.
10145 (grub_rescue_cmd_exit): Likewise.
10146 (grub_rescue_print_devices): Moved to corecmd.c.
10147 (grub_rescue_print_files): Likewise.
10148 (grub_rescue_cmd_ls): Likewise.
10149 (grub_rescue_cmd_insmod): Likewise.
10150 (grub_rescue_cmd_set): Likewise.
10151 (grub_rescue_cmd_unset): Likewise.
7d074e3c 10152 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 10153 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 10154 commands, remove grub_rescue_register_command calls.
b1b797cb 10155
7d074e3c 10156 * normal/command.c (grub_register_command): Removed.
b1b797cb 10157 (grub_unregister_command): Likewise.
10158 (grub_command_find): Likewise.
10159 (grub_iterate_commands): Likewise.
10160 (rescue_command): Likewise.
10161 (export_command): Moved to corecmd.c.
10162 (set_command): Removed.
10163 (unset_command): Likewise.
10164 (insmod_command): Likewise.
10165 (rmmod_command): Likewise.
10166 (lsmod_command): Likewise.
10167 (grub_command_init): Likewise.
10168
10169 * normal/completion.c (iterate_command): Use cmd->prio to check for
10170 active command.
10171 (complete_arguments): Use grub_extcmd_t structure to find options.
10172 (grub_normal_do_completion): Change function grub_iterate_commands to
10173 grub_command_iterate.
10174
10175 * normal/execute.c (grub_script_execute_cmd): No need to parse
10176 argument here.
10177
10178 * normal/main.c (grub_dyncmd_dispatcher): New function.
10179 (read_command_list): Register unload commands as dyncmd.
10180 (grub_cmd_normal): Use new command interface, register rescue,
10181 unregister normal at entry, register normal, unregister rescue at exit.
10182
10183 * include/grub/list.h (grub_list_test_t): New type.
10184 (grub_list_iterate): Return int instead of void.
10185 (grub_list_insert): New function.
10186 (GRUB_AS_NAMED_LIST_P): New macro.
10187 (GRUB_AS_PRIO_LIST): Likewise.
10188 (GRUB_AS_PRIO_LIST_P): Likewise.
10189 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
10190 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
10191 (grub_prio_list): New structure.
10192 (grub_prio_list_insert): New function.
10193 (grub_prio_list_remove): New inline function.
10194
10195 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
10196 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
10197 (GRUB_COMMAND_FLAG_MENU): Likewise.
10198 (GRUB_COMMAND_FLAG_BOTH): Likewise.
10199 (GRUB_COMMAND_FLAG_TITLE): Likewise.
10200 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
10201 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
10202 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
10203 (grub_command): Likewise.
10204 (grub_register_command): Likewise.
10205 (grub_command_find): Likewise.
10206 (grub_iterate_commands): Likewise.
10207 (grub_command_init): Likewise.
10208 (grub_arg_parse): Likewise.
10209 (grub_arg_show_help): Likewise.
10210
10211 * include/grub/rescue.h (grub_rescue_register_command): Removed.
10212 (grub_rescue_unregister_command): Likewise.
10213
10214 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
10215 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
10216 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
10217
10218 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
10219 grub_rescue_cmd_initrd.
10220 * include/grub/i386/loader.h: Likewise.
10221 * include/grub/x86_64/loader.h: Likewise.
10222
10223 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
10224
1f4147aa 102252009-03-21 Bean <bean123ch@gmail.com>
10226
10227 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
10228 instead of stat in mingw environment.
10229
10230 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
10231
10232 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
10233
10234 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
10235 AC_CONFIG_LINKS.
10236
2156d5ba 102372009-03-21 Bean <bean123ch@gmail.com>
10238
10239 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
10240 out of range error.
10241
177b82ca 102422009-03-18 Michel Dänzer <michel@daenzer.net>
10243
10244 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
10245 checking inode flags for EXT4_EXTENTS_FLAG.
10246
14aad807 102472009-03-18 Robert Millan <rmh@aybabtu.com>
10248
10249 * loader/i386/linux.c: Include `<grub/video.h>' and
10250 `<grub/i386/pc/vbe.h>'..
10251 (grub_linux_setup_video): New function. Loosely based on the EFI one.
10252 (grub_linux32_boot): Attempt to configure video settings with
10253 grub_linux_setup_video().
10254 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
10255 to avoid grub_console_fini() which would step out of graphical mode
10256 unconditionally.
10257
8cf83a27 102582009-03-14 Robert Millan <rmh@aybabtu.com>
10259
10260 Fix build on powerpc.
10261 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
10262
40164e75 102632009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
10264
10265 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
10266 background image command.
10267
c58bc32a 102682009-03-12 Colin D Bennett <colin@gibibit.com>
10269
10270 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
10271 (grub_gfxterm_putchar): Extract pairs of identical calls to
10272 draw_cursor out of conditional blocks.
10273
5415144a 102742009-03-11 Pavel Roskin <proski@gnu.org>
10275
10276 * fs/hfs.c (grub_hfs_strncasecmp): New function.
10277 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
10278
6394042e 102792009-03-11 Robert Millan <rmh@aybabtu.com>
10280
10281 * loader/i386/multiboot_elfxx.c
10282 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
10283
b7b50e5f 102842009-03-11 Felix Zielcke <fzielcke@z-51.de>
10285
10286 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
10287 `kern/handler.c'.
10288
1ca7fc96 102892009-03-11 Robert Millan <rmh@aybabtu.com>
10290
10291 * loader/i386/multiboot.c (code_size): New variable.
10292 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 10293 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 10294 4-byte alignment to MBI and others by increasing
7d074e3c 10295 `boot_loader_name_length' appropriately.
1ca7fc96 10296
10297 * loader/i386/multiboot_elfxx.c
10298 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
10299
a83ea1d2 103002009-03-09 Felix Zielcke <fzielcke@z-51.de>
10301
10302 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
10303 `fs/ext2.c'.
10304
aa9f3bff 103052009-03-08 Robert Millan <rmh@aybabtu.com>
10306
10307 Make loader/i386/linux.c usable on i386-pc again.
10308
10309 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
10310 memory to heap.
10311 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
10312 `#error' stanza.
10313
d8b3b60e 103142009-03-07 Bean <bean123ch@gmail.com>
10315
10316 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
10317 allocation.
10318
b362c9e9 103192009-03-06 Robert Millan <rmh@aybabtu.com>
10320
10321 Fix display issue on terminals with screen size other than 80x25
10322 (e.g. gfxterm with resolution higher than 640x480).
10323
10324 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 10325 position relative to the center of the terminal instead of relying
b362c9e9 10326 on a hardcoded offset.
10327
9304eef1 103282009-03-04 Robert Millan <rmh@aybabtu.com>
10329
10330 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
10331 installed.
10332
10333 * Makefile.in (host_kernel): New variable.
10334 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
10335 scripts instead of just the windows one.
10336 * configure.ac: Initialize and AC_SUBST `host_kernel'.
10337
eabc95fb 103382009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 10339
10340 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
10341 `kern/handler.c'.
10342 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10343 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
10344 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
10345 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10346 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10347 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10348
ceb1223c 103492009-03-04 Felix Zielcke <fzielcke@z-51.de>
10350
10351 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
10352 or if there's no space for the disk label and print the partition number on a
10353 invalid magic.
10354
4910684a 103552009-03-04 Felix Zielcke <fzielcke@z-51.de>
10356
10357 * util/misc.c: Include <time.h>.
10358 (grub_millisleep): New function.
10359
7e9ca17a 103602009-03-04 Bean <bean123ch@gmail.com>
10361
10362 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
10363 another option -mno-red-zone.
10364
10365 * commands/handler.c: Change module description.
10366
10367 * kern/handler.c: Add missing space at the end of description line.
10368
10369 * kern/list.c: Likewise.
10370
f501677c 103712009-03-03 Robert Millan <rmh@aybabtu.com>
10372
10373 Move more components to the relocation area, and fix mbi pointer
10374 handling to use the destination rather than the origin (thanks to
10375 Vladimir Serbinenko for spotting).
10376
10377 * loader/i386/multiboot.c (mbi_dest): New variable.
10378 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
10379 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
10380 relocation area.
10381
9902d047 103822009-03-01 Bean <bean123ch@gmail.com>
10383
50fb7002 10384 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 10385 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
10386 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
10387 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
10388
10389 * loader/i386/efi/linux.c (acpi_guid): New variable.
10390 (acpi_guid): Likewise.
10391 (EBDA_SEG_ADDR): New constant.
10392 (LOW_MEM_ADDR): Likewise.
10393 (FAKE_EBDA_SEG): Likewise.
10394 (fake_bios_data): New function.
10395 (grub_linux_boot): Call fake_bios_data.
10396
71b9f361 103972009-03-01 Bean <bean123ch@gmail.com>
10398
10399 * commands/terminal.c: Removed.
10400
10401 * commands/handler.c: New file.
10402
10403 * include/grub/list.h: Likewise.
10404
10405 * include/grub/handler.h: Likewise.
10406
10407 * kern/list.c: Likewise.
10408
10409 * kern/handler.c: Likewise.
10410
10411 * kern/term.h: Include header file <grub/handler.h>.
10412 (grub_term_input): Move next field to the beginning.
10413 (grub_term_output): Likewise.
10414 (grub_term_input_class): New variable.
10415 (grub_term_output_class): Likewise.
10416 (grub_term_register_input): Changed to inline function.
10417 (grub_term_register_output): Likewise.
10418 (grub_term_unregister_input): Likewise.
10419 (grub_term_unregister_output): Likewise.
10420 (grub_term_set_current_input): Likewise.
10421 (grub_term_set_current_output): Likewise.
10422 (grub_term_get_current_input): Likewise.
10423 (grub_term_get_current_output): Likewise.
10424 (grub_term_iterate_input): Removed.
10425 (grub_term_iterate_output): Likewise.
10426
10427 * kern/term.c (grub_term_list_input): Removed.
10428 (grub_term_list_output): Likewise.
10429 (grub_term_input_class): New variable.
10430 (grub_term_output_class): Likewise.
50fb7002 10431 (grub_cur_term_input): Change variable as macro.
71b9f361 10432 (grub_cur_term_output): Likewise.
10433 (grub_term_register_input): Removed.
10434 (grub_term_register_output): Likewise.
10435 (grub_term_unregister_input): Likewise.
10436 (grub_term_unregister_output): Likewise.
10437 (grub_term_set_current_input): Likewise.
10438 (grub_term_set_current_output): Likewise.
10439 (grub_term_iterate_input): Likewise.
10440 (grub_term_iterate_output): Likewise.
10441 (grub_term_get_current_input): Likewise.
10442 (grub_term_get_current_output): Likewise.
10443
10444 * util/grub-editenv.c: Include header file <grub/handler.h>.
10445 (grub_term_get_current_input): Removed.
10446 (grub_term_get_current_output): Likewise.
10447 (grub_term_input_class): New variable.
50fb7002 10448 (grub_term_output_class): Likewise.
71b9f361 10449
10450 * util/grub-fstest.c (grub_term_get_current_input): Removed.
10451 (grub_term_get_current_output): Likewise.
10452 (grub_term_input_class): New variable.
50fb7002 10453 (grub_term_output_class): Likewise.
71b9f361 10454
10455 * util/grub-probe.c (grub_term_get_current_input): Removed.
10456 (grub_term_get_current_output): Likewise.
10457 (grub_term_input_class): New variable.
50fb7002 10458 (grub_term_output_class): Likewise.
71b9f361 10459
10460 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
10461 (grub_term_get_current_output): Likewise.
10462 (grub_term_input_class): New variable.
50fb7002 10463 (grub_term_output_class): Likewise.
71b9f361 10464
10465 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
10466 (terminal_mod_SOURCES): Likewise.
10467 (terminal_mod_CFLAGS): Likewise.
10468 (terminal_mod_LDFLAGS): Likewise.
10469
10470 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
10471 handler.c.
10472 (kernel_img_SOURCES): Add list.c and handler.c.
10473 (kernel_img_HEADERS): Add list.h and handler.h.
10474
10475 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
10476 handler.c.
10477 (kernel_mod_SOURCES): Add list.c and handler.c.
10478 (kernel_mod_HEADERS): Add list.h and handler.h.
10479
10480 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
10481 handler.c.
10482 (kernel_elf_SOURCES): Add list.c and handler.c.
10483 (kernel_elf_HEADERS): Add list.h and handler.h.
10484
10485 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
10486 handler.c.
10487 (kernel_elf_SOURCES): Add list.c and handler.c.
10488 (kernel_elf_HEADERS): Add list.h and handler.h.
10489
10490 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
10491 handler.c.
10492 (kernel_mod_SOURCES): Add list.c and handler.c.
10493 (kernel_mod_HEADERS): Add list.h and handler.h.
10494
10495 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
10496 handler.c.
10497 (kernel_elf_SOURCES): Add list.c and handler.c.
10498 (kernel_elf_HEADERS): Add list.h and handler.h.
10499
8a31787f 105002009-02-27 Robert Millan <rmh@aybabtu.com>
10501
10502 Factorize elf32 / elf64 code in Multiboot loader. This will
10503 prevent it from getting out of sync again.
10504
10505 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
10506 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
10507 grub_multiboot_load_elf64): Move from here ...
10508 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
10509 grub_multiboot_load_elf): ... to here (new file).
10510
51cd3dfc 105112009-02-27 Robert Millan <rmh@aybabtu.com>
10512
10513 * util/grub.d/10_linux.in: Rename "single-user mode" to
10514 "recovery mode".
10515
6e8c9c3a 105162009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10517
10518 Don't leak in SCSI code.
10519 * disk/scsi.c (grub_scsi_close): free `scsi'.
10520
4b6bf4f9 105212009-02-27 Robert Millan <rmh@aybabtu.com>
10522
10523 * loader/i386/pc/multiboot.c: Move from here ...
10524 * loader/i386/multiboot.c: ... to here. Update all users.
10525
b9413424 105262009-02-27 Robert Millan <rmh@aybabtu.com>
10527
10528 Patch from Alexandre Bique <bique.alexandre@gmail.com>
10529 * util/i386/pc/grub-setup.c (setup): Fix directory path.
10530
50fb7002 105312009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 10532
10533 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
10534 b-tree.
10535
8cc50345 105362009-02-27 Robert Millan <rmh@aybabtu.com>
10537
10538 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
10539 `0x' qualifier as 0 when base is specified as parameter).
10540
6e09b8b7 105412009-02-24 Bean <bean123ch@gmail.com>
10542
10543 * configure.ac: Check for -mcmodel=large in x86_64 target.
10544
10545 * include/grub/efi/api.h (efi_call_10): New macro.
10546 (efi_wrap_10): New function.
10547
10548 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
10549 (GRUB_PE32_REL_BASED_HIGH): Likewise.
10550 (GRUB_PE32_REL_BASED_LOW): Likewise.
10551 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
10552 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
10553 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
10554 (GRUB_PE32_REL_BASED_SECTION): Likewise.
10555 (GRUB_PE32_REL_BASED_REL): Likewise.
10556 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
10557 (GRUB_PE32_REL_BASED_DIR64): Likewise.
10558 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
10559
10560 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
10561 issue.
10562
10563 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
10564 (efi_wrap_10): New function.
10565
10566 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
10567
10568 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
10569 MB/MBP model (NV chipset).
10570 (devdata_devs): Add devpath_5 to the list.
10571
10572 * load/i386/efi/linux.c (video_base): Remove variable.
10573 (RGB_MASK): New macro.
10574 (RGB_MAGIC): Likewise.
10575 (LINE_MIN): Likewise.
10576 (LINE_MAX): Likewise.
10577 (FBTEST_STEP): Likewise.
10578 (FBTEST_COUNT): Likewise.
10579 (fb_list): New variable.
10580 (grub_find_video_card): Remove function.
10581 (find_framebuf): New function.
10582 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
10583 line length.
10584
10585 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
10586 problem for x86_64.
10587
74b21bee 105882009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
10589
10590 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
10591
10592 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
10593 coding tool name.
10594
a455f472 105952009-02-22 Robert Millan <rmh@aybabtu.com>
10596
10597 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
10598 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
10599 in our relocation, instead of using it directly from heap. Also
10600 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
10601
6374daf3 106022009-02-21 Robert Millan <rmh@aybabtu.com>
10603
10604 Implement USB keyboard support (based on patch by Marco Gerards)
10605
10606 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
10607 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
10608 (usb_keyboard_mod_LDFLAGS): New variables.
10609
10610 * term/usb_keyboard.c: New file.
10611
8fa4ea70 106122009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
10613
10614 Corrected wrong declaration
10615
10616 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
10617
353976ac 106182009-02-14 Christian Franke <franke@computer.org>
10619
10620 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
10621 (grub_lspci_iter): Print class code and programming interface byte.
10622
6aa1169b 106232009-02-14 Christian Franke <franke@computer.org>
10624
10625 * gendistlist.sh: Ignore `.svn' directories.
10626
265372ca 106272009-02-14 Felix Zielcke <fzielcke@z-51.de>
10628
10629 * fs/fat.c: Add 2009 to Copyright line.
10630
9ff516f3 106312009-02-14 Christian Franke <franke@computer.org>
10632
10633 * commands/hdparm.c: New file. Provides `hdparm' command
10634 which sends ATA commands via grub_disk_ata_pass_through ().
10635
10636 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
10637
10638 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
10639 and <grub/cpu/io.h> to include/grub/ata.h.
10640 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
10641 (GRUB_CDROM_SECTOR_SIZE): Remove.
10642 (GRUB_ATA_*): Move to include/grub/ata.h.
10643 (GRUB_ATAPI_*): Likewise.
10644 (enum grub_ata_commands): Likewise.
10645 (enum grub_ata_timeout_milliseconds): Likewise.
10646 (struct grub_ata_device): Likewise.
10647 (grub_ata_regset): Likewise.
10648 (grub_ata_regget): Likewise.
10649 (grub_ata_regset2): Likewise.
10650 (grub_ata_regget2): Likewise.
10651 (grub_ata_check_ready): Likewise.
10652 (grub_ata_wait_not_busy): Remove static, exported in
10653 include/grub/ata.h.
10654 (grub_ata_wait_drq): Likewise.
10655 (grub_ata_pio_read): Likewise.
10656
10657 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
10658 function for hdparm.mod.
10659
10660 * include/grub/ata.h: New file, contains declarations from
10661 disk/ata.c.
10662 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
10663
10664 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
10665 (grub_disk_ata_pass_through): New exported variable.
10666
10667 * kern/disk.c (grub_disk_ata_pass_through): New variable.
10668
772e23da 106692009-02-13 Colin D Bennett <colin@gibibit.com>
10670
10671 Support multiple fallback entries, and provide an API to support
10672 executing default+fallback menu entries. Renamed the `terminal' menu
10673 viewer to `text'.
10674
10675 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
10676 variable declaration.
10677 (grub_menu_execute_callback): New structure declaration.
10678 (grub_menu_execute_callback_t): New typedef.
10679 (grub_menu_execute_with_fallback): New function declaration.
10680 (grub_menu_get_entry): Likewise.
10681 (grub_menu_get_timeout): Likewise.
10682 (grub_menu_set_timeout): Likewise.
10683
10684 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
10685
10686 * normal/menu.c (grub_wait_after_message): Moved to
10687 `normal/menu_text.c'.
10688 (draw_border): Likewise.
10689 (print_message): Likewise.
10690 (print_entry): Likewise.
10691 (print_entries): Likewise.
10692 (grub_menu_init_page): Likewise.
10693 (get_entry_number): Likewise.
10694 (print_timeout): Likewise.
10695 (run_menu): Likewise.
10696 (grub_menu_execute_entry): Likewise.
10697 (show_text_menu): Likewise.
10698 (get_and_remove_first_entry_number): New function.
10699 (grub_menu_execute_with_fallback): Likewise.
10700 (get_entry): Renamed to ...
10701 (grub_menu_get_entry): .. this and made it global.
10702 (get_timeout): Renamed to ...
10703 (grub_menu_get_timeout): ... this and made it global.
10704 (set_timeout): Renamed to ...
10705 (grub_menu_set_timeout): ... this and made it global.
10706 (grub_normal_terminal_menu_viewer): Renamed to ...
10707 (grub_normal_text_menu_viewer): ... this.
10708
10709 * normal/menu_text.c: New file. Extracted text-menu-specific code
10710 from normal/menu.c.
10711
10712 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
10713 (normal_mod_SOURCES): Likewise.
10714
10715 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10716 (normal_mod_SOURCES): Likewise.
10717
10718 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10719 (normal_mod_SOURCES): Likewise.
10720
10721 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
10722 (normal_mod_SOURCES): Likewise.
10723
10724 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10725 (normal_mod_SOURCES): Likewise.
10726
10727 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10728 (normal_mod_SOURCES): Likewise.
10729
10730 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
10731 (normal_mod_SOURCES): Likewise.
10732
16ac430e 107332009-02-11 Robert Millan <rmh@aybabtu.com>
10734
10735 * util/grub.d/00_header.in: Update old reference to `font' command.
10736
06ff20fc 107372009-02-10 Felix Zielcke <fzielcke@z-51.de>
10738
10739 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
10740
10741 Based on patch from Javier Martín.
10742
96da9407 107432009-02-09 Felix Zielcke <fzielcke@z-51.de>
10744
10745 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 10746 to avoid false positives with FAT.
96da9407 10747 (grub_fstest_SOURCES): Likewise.
10748 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
10749 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
10750 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10751 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
10752 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10753 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10754
6dca6fe4 107552009-02-09 Felix Zielcke <fzielcke@z-51.de>
10756
06ff20fc 10757 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 10758 bpb.version_specific.fat12_or_fat16.fstype and
10759 bpb.version_specific.fat32.fstype.
10760
2550c62f 107612009-02-08 Robert Millan <rmh@aybabtu.com>
10762
be110b30 10763 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 10764
56978920 107652009-02-08 Robert Millan <rmh@aybabtu.com>
10766
10767 * Makefile.in (host_os, host_cpu): New variables.
10768 (target_os): Remove. Update all users.
10769
d64399b5 107702009-02-08 Marco Gerards <marco@gnu.org>
10771
10772 * Makefile.in (enable_grub_emu_usb): New variable.
10773 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
10774 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
10775 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
10776 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
10777 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
10778 `usbtest.mod' and `usbms.mod'.
10779 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
10780 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
10781 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
10782 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
10783 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
10784 variables.
10785
10786 * disk/usbms.c: New file.
10787
10788 * include/grub/usb.h: Likewise.
10789
10790 * include/grub/usbtrans.h: Likewise.
10791
10792 * include/grub/usbdesc.h: Likewise.
10793
10794 * bus/usb/usbtrans.c: Likewise.
10795
10796 * bus/usb/ohci.c: Likewise.
10797
10798 * bus/usb/uhci.c: Likewise.
10799
10800 * bus/usb/usbhub.c: Likewise.
10801
10802 * bus/usb/usb.c: Likewise.
10803
10804 * commands/usbtest.c: Likewise.
10805
10806 * util/usb.c: Likewise.
50fb7002 10807
d64399b5 10808 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
10809
10810 * configure.ac: Test for libusb presence.
50fb7002 10811
d64399b5 10812 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
10813
2b40d6bb 108142009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
10815
10816 * kern/mm.c: Add more comments.
10817
73a4ce81 108182009-02-08 Robert Millan <rmh@aybabtu.com>
10819
10820 Patch from Javier Martín.
10821 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
10822 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
10823
f821ce59 108242009-02-08 Robert Millan <rmh@aybabtu.com>
10825
10826 * fs/cpio.c: Split tar functionality to ...
10827 * fs/tar.c: ... here (new file). Update all users.
10828
aebfc4b0 108292009-02-07 Robert Millan <rmh@aybabtu.com>
10830
10831 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
10832 backward-incompatible features.
10833
10834 Based on patch from Javier Martín, with some adjustments.
10835
50fb7002 108362009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 10837
10838 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
10839
0bb5115e 108402009-02-07 Robert Millan <rmh@aybabtu.com>
10841
10842 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
10843 position of `disk/lvm.c' to ensure grub_init_all() always picks it
10844 after the RAID stuff.
10845
38a0f8e7 108462009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
10847
50fb7002 10848 Fixes problem when running vbetest command as reported by
38a0f8e7 10849 Vladimir Serbinenko <phcoder@gmail.com>.
10850
10851 * (grub_vbe_set_video_mode): Fixed problem with text modes.
10852
3143cc1c 108532009-02-04 Felix Zielcke <fzielcke@z-51.de>
10854
10855 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
10856 /dev/md/NpN style mdraid devices.
10857
9cba6fce 108582009-02-03 Felix Zielcke <fzielcke@z-51.de>
10859
10860 * util/unifont2pff.rb: Remove.
10861
e507a2c1 108622009-02-03 Felix Zielcke <fzielcke@z-51.de>
10863
10864 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
10865 `#'.
10866
d2c2b4cd 108672009-02-03 Felix Zielcke <fzielcke@z-51.de>
10868
10869 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
10870 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10871 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
10872 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
10873 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10874 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10875 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10876
b4315fb0 108772009-02-02 Christian Franke <franke@computer.org>
10878
10879 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
10880
de3aa260 108812009-02-01 Felix Zielcke <fzielcke@z-51.de>
10882
7c3ff286 10883 * INSTALL: Note that we now require at least autoconf 2.59 and
10884 that LZO is optional.
de3aa260 10885
825a182b 108862009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
10887
10888 Base on patch on bug #24154 created by Tomas Tintera
10889 <trosos@seznam.cz>.
10890
10891 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
10892
a69ef770 108932009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
10894
7c3ff286 10895 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 10896 <bero@arklinux.org>.
10897
10898 * normal/parser.y (script_init): Add missing semicolon.
10899
6fa42fa6 109002009-01-31 Colin D Bennett <colin@gibibit.com>
10901
7c3ff286 10902 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 10903 (free_menu_entry_classes): Added.
10904 (grub_normal_menu_addentry): Added class property handling.
10905 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
10906 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
10907
10908 * normal/menu_viewer.c: New file.
10909
10910 * normal/menu.c (run_menu_entry): Renamed to ...
10911 (grub_menu_execute_entry): ... this and made it as global.
10912 (grub_menu_run): Renamed to ...
10913 (show_text_menu): ... this and made it local.
10914 (show_text_menu): Adapt to new function names.
10915 (grub_normal_terminal_menu_viewer): New global variable.
10916
10917 * include/grub/menu.h: New file.
10918
10919 * include/grub/menu_viewer.h: New file.
10920
10921 * include/grub/normal.h: Added include to grub/menu.h.
10922 (grub_menu_entry): Moved to include/grub/menu.h.
10923 (grub_menu_entry_t): Likewise.
10924 (grub_menu): Likewise.
10925 (grub_menu_t): Likewise.
10926 (grub_normal_terminal_menu_viewer): Added.
10927 (grub_menu_execute_entry): Likewise.
10928 (grub_menu_run): Removed.
10929
10930 * DISTLIST: Added include/grub/menu.h.
10931 Added include/grub/menu_viewer.h.
10932 Added normal/menu_viewer.c.
10933
109342009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
10935
10936 * normal/execute.c (grub_script_execute_menuentry): Changed to use
10937 arglist for menutitle arguments.
10938
10939 * normal/main.c (grub_normal_menu_addentry): Likewise.
10940
10941 * normal/parser.y (menuentry): Likewise.
10942
10943 * normal/script.c (grub_script_create_cmdmenu): Likewise.
10944
10945 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
10946 (grub_script_create_cmdmenu): Likewise.
10947
10948 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
10949
10950 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
10951 changes.
10952
10953 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
10954
10955 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
10956
10957 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
10958
10959 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
10960
10961 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
10962
10963 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
10964
56192c23 109652009-01-30 Christian Franke <franke@computer.org>
10966
10967 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
10968 in option help text.
10969
d72521b3 109702009-01-27 Pavel Roskin <proski@gnu.org>
10971
10972 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
10973
994b5e84 109742009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
10975
10976 * commands/lsmmap.c: Add include to grub/machine/memory.h.
10977
10978 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
10979
10980 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
10981 unregister function.
10982
6a7eab2c 109832009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
10984
10985 * disk/scsi.c (grub_scsi_read): Fix sign problem.
10986
10987 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
10988
10989 * util/grub-mkfont.c (usage): Fix typo.
10990
10991 * util/elf/grub-mkimage.c (load_modules): Fix warning.
10992
1806b56e 109932009-01-26 Daniel Mierswa <impulze@impulze.org>
10994
3fb18f09 10995 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
10996
336e1fb9 10997 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
10998
1806b56e 10999 * kern/misc.c (grub_strcasecmp): New function.
11000 (grub_strcasecmp): Use grub_size_t instead of int for length.
11001 Fix return value.
11002 * include/grub/misc.h: Update function prototypes.
11003
580b2a0f 110042009-01-26 Robert Millan <rmh@aybabtu.com>
11005
11006 * configure.ac: Fix cross-compilation check.
ef257b36 11007
d31c24f1 110082009-01-22 Christian Franke <franke@computer.org>
11009
11010 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
11011 (precision) digit string. Allow `.format2' without `format1' (width).
11012 Limit input chars for `%s' output to `format2' if specified. This is
11013 compatible with standard printf ().
11014
3138b44c 110152009-01-22 Christian Franke <franke@computer.org>
11016
11017 * disk/ata.c (grub_ata_wait_status): Replace by ...
11018 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
11019 other status bits may be invalid while BSY is asserted.
11020 (grub_ata_check_ready): New function.
11021 (grub_ata_cmd): Removed.
11022 (grub_ata_wait_drq): New function.
11023 (grub_ata_strncpy): Remove inline.
11024 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
11025 and error check now done by grub_ata_wait_drq ().
11026 (grub_ata_pio_write): Likewise.
11027 (grub_atapi_identify): Set DEV before check for !BSY. Use
11028 grub_ata_wait_drq () to wait for data.
11029 (grub_ata_device_initialize): Add status register check to
11030 detect missing SATA slave devices. Add debug messages.
11031 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
11032 (grub_atapi_packet): Set DEV before check for !BSY. Replace
11033 transfer loop by grub_ata_pio_write ().
11034 (grub_ata_identify): Set DEV before check for !BSY. Use
11035 grub_ata_wait_drq () to wait for data.
ef257b36 11036 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 11037 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
11038 read/write in one loop. Fix invalid command on write. Fix incomplete
11039 command on (size % batch) == 0. Add missing error check after write of
11040 last block. Add debug messages.
11041 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
11042
59a64ef6 110432009-01-19 Christian Franke <franke@computer.org>
11044
11045 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
11046 (GRUB_ATAPI_IREASON_*): Likewise.
11047 (grub_ata_pio_write): Fix timeout error return.
11048 (grub_atapi_identify): Add grub_ata_wait () after cmd.
11049 (grub_atapi_wait_drq): New function.
11050 (grub_atapi_packet): New parameter `size'.
11051 Use grub_atapi_wait_drq () and direct write instead of
11052 grub_ata_pio_write ().
11053 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
11054 reads the number of bytes requested by the device for each DRQ
11055 assertion.
11056 (grub_atapi_write): Remove old implementation, return not
11057 implemented instead.
11058
1cfe20b3 110592009-01-19 Christian Franke <franke@computer.org>
11060
11061 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
11062 of 512 to calculate data size.
11063 (grub_scsi_read12): Likewise.
11064 (grub_scsi_write10): Likewise.
11065 (grub_scsi_write12): Likewise.
11066 (grub_scsi_read): Adjust size according to blocksize.
11067 Add checks for invalid blocksize and unaligned transfer.
11068
bee5fe5d 110692009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
11070
11071 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
11072
ef257b36 11073 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 11074 width glyphs.
11075
3e643f8c 110762009-01-19 Robert Millan <rmh@aybabtu.com>
11077
11078 * config.guess: Update to latest version from config git.
11079 * config.sub: Likewise.
11080
4fa80998 110812009-01-17 Felix Zielcke <fzielcke@z-51.de>
11082
11083 * Makefile.in: Change font compilation to use new grub-mkfont instead
11084 of java version.
11085
11086 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
11087 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
11088 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
11089 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
11090 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
11091 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
11092 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
11093 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
11094 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
11095
7086085b 110962009-01-16 Christian Franke <franke@computer.org>
11097
11098 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
11099 (enum grub_ata_timeout_milliseconds): New enum.
11100 (grub_ata_wait_status): Add parameter milliseconds.
11101 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
11102 recovery from timed-out commands.
11103 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
11104 return grub_errno instead of REG_ERROR.
11105 (grub_ata_pio_write): Add parameter milliseconds.
11106 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
11107 Pass milliseconds to grub_ata_wait_status () and
11108 grub_ata_pio_read ().
11109 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
11110 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
11111 grub_ata_wait_status (). Fix IDENTIFY timeout check.
11112 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
11113 It is not suitable for device detection, because DEV bit is ignored,
11114 the command may run too long, and not all devices set the signature
11115 properly.
11116 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
11117 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
11118 Fix device selection, DEV bit must be set first to address the registers
11119 of the correct device.
11120 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
11121 grub_ata_pio_read/write ().
11122 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
11123 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
11124
4a412913 111252009-01-13 Carles Pina i Estany <carles@pina.cat>
11126
11127 * util/grub-editenv.c (main): Use fseeko(), not fseek().
11128
7795c55e 111292009-01-13 Bean <bean123ch@gmail.com>
d913988c 11130
11131 * util/grub-mkfont.c (write_font): forget to remove some debug code.
11132
7795c55e 111332009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 11134
11135 * Makefile.in: (enable_grub_mkfont): New variable.
11136 (freetype_cflags): Likewise.
11137 (freetype_libs): Likewise.
11138
11139 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
11140 (grub_mkfont_SOURCES): New variable.
11141 (grub_mkfont_CFLAGS): Likewise.
11142 (grub_mkfont_LDFLAGS): Likewise.
11143
11144 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
11145 library if `--enable-grub-mkfont' is requested.
11146 (enable_grub_mkfont): New variable.
11147 (freetype_cflags): Likewise.
11148 (freetype_libs): Likewise.
11149
11150 * util/grub-mkfont.c: New file.
11151
093af1fe 111522009-01-12 Christian Franke <franke@computer.org>
11153
11154 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
11155 mode check. Fix setting of compat_use[].
11156
f36cc108 111572009-01-10 Robert Millan <rmh@aybabtu.com>
11158
11159 Update a few copyright years which we forgot to do in 2008 (only for
11160 files whose changes made in 2008 were copyright-significant)
11161
11162 * Makefile.in: Add 2008 to Copyright line.
11163 * disk/ieee1275/ofdisk.c: Likewise.
11164 * disk/efi/efidisk.c: Likewise.
11165 * kern/dl.c: Likewise.
11166 * kern/sparc64/ieee1275/init.c: Likewise.
11167 * kern/mm.c: Likewise.
11168 * kern/efi/mm.c: Likewise.
11169 * boot/i386/pc/boot.S: Likewise.
11170 * genfslist.sh: Likewise.
11171 * fs/iso9660.c: Likewise.
11172 * fs/hfs.c: Likewise.
11173 * fs/jfs.c: Likewise.
11174 * fs/minix.c: Likewise.
11175 * fs/ufs.c: Likewise.
11176 * gensymlist.sh.in: Likewise.
11177 * genkernsyms.sh.in: Likewise.
11178 * include/grub/misc.h: Likewise.
11179 * include/grub/types.h: Likewise.
11180 * include/grub/symbol.h: Likewise.
11181 * include/grub/elf.h: Likewise.
11182 * include/grub/kernel.h: Likewise.
11183 * include/grub/disk.h: Likewise.
11184 * include/grub/dl.h: Likewise.
11185 * include/grub/i386/linux.h: Likewise.
11186 * include/grub/i386/pc/biosdisk.h: Likewise.
11187 * include/grub/efi/api.h: Likewise.
11188 * include/grub/efi/pe32.h: Likewise.
11189 * include/grub/util/misc.h: Likewise.
11190 * normal/execute.c: Likewise.
11191 * normal/arg.c: Likewise.
11192 * normal/completion.c: Likewise.
11193 * normal/lexer.c: Likewise.
11194 * normal/parser.y: Likewise.
11195 * normal/misc.c: Likewise.
11196 * commands/i386/pc/vbeinfo.c: Likewise.
11197 * commands/hexdump.c: Likewise.
11198 * commands/terminal.c: Likewise.
11199 * commands/ls.c: Likewise.
11200 * commands/help.c: Likewise.
11201 * partmap/pc.c: Likewise.
11202 * loader/efi/chainloader.c: Likewise.
11203 * loader/multiboot_loader.c: Likewise.
11204 * loader/i386/pc/multiboot2.c: Likewise.
11205 * term/efi/console.c: Likewise.
11206 * term/i386/pc/serial.c: Likewise.
11207 * util/lvm.c: Likewise.
11208 * util/console.c: Likewise.
11209 * util/i386/efi/grub-mkimage.c: Likewise.
11210 * util/raid.c: Likewise.
11211
7f02114b 112122009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
11213
11214 * commands/videotest.c: Removed include to grub/machine/memory.h.
11215
11216 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
11217 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
11218 (video_mod_SOURCES): Removed.
11219 (video_mod_CFLAGS): Likewise.
11220 (video_mod_LDFLAGS): Likewise.
11221 (gfxterm_mod_SOURCES): Likewise.
11222 (gfxterm_mod_CFLAGS): Likewise.
11223 (gfxterm_mod_LDFLAGS): Likewise.
11224 (videotest_mod_SOURCES): Likewise.
11225 (videotest_mod_CFLAGS): Likewise.
11226 (videotest_mod_LDFLAGS): Likewise.
11227 (bitmap_mod_SOURCES): Likewise.
11228 (bitmap_mod_CFLAGS): Likewise.
11229 (bitmap_mod_LDFLAGS): Likewise.
11230 (tga_mod_SOURCES): Likewise.
11231 (tga_mod_CFLAGS): Likewise.
11232 (tga_mod_LDFLAGS): Likewise.
11233 (jpeg_mod_SOURCES): Likewise.
11234 (jpeg_mod_CFLAGS): Likewise.
11235 (jpeg_mod_LDFLAGS): Likewise.
11236 (png_mod_SOURCES): Likewise.
11237 (png_mod_CFLAGS): Likewise.
11238 (png_mod_LDFLAGS): Likewise.
11239
11240 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
11241 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
11242 (video_mod_SOURCES): Added.
11243 (video_mod_CFLAGS): Likewise.
11244 (video_mod_LDFLAGS): Likewise.
11245 (videotest_mod_SOURCES): Likewise.
11246 (videotest_mod_CFLAGS): Likewise.
11247 (videotest_mod_LDFLAGS): Likewise.
11248 (bitmap_mod_SOURCES): Likewise.
11249 (bitmap_mod_CFLAGS): Likewise.
11250 (bitmap_mod_LDFLAGS): Likewise.
11251 (tga_mod_SOURCES): Likewise.
11252 (tga_mod_CFLAGS): Likewise.
11253 (tga_mod_LDFLAGS): Likewise.
11254 (jpeg_mod_SOURCES): Likewise.
11255 (jpeg_mod_CFLAGS): Likewise.
11256 (jpeg_mod_LDFLAGS): Likewise.
11257 (png_mod_SOURCES): Likewise.
11258 (png_mod_CFLAGS): Likewise.
11259 (png_mod_LDFLAGS): Likewise.
11260 (gfxterm_mod_SOURCES): Likewise.
11261 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 11262 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 11263
11264 * term/gfxterm.c: Removed include to grub/machine/memory.h,
11265 grub/machine/console.h.
11266
644fff97 112672009-01-04 Jerone Young <jerone@gmail.com>
11268
11269 Make on screen instructions clearer
11270
11271 Based on patch created by Jidanni <jidanni@jidanni.org>
11272
11273 * normal/menu.c: print clearer instructions on the screen
11274
1e901a75 112752009-01-02 Colin D Bennett <colin@gibibit.com>
11276
11277 New font engine.
34c44600 11278
1e901a75 11279 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
11280 build system and fixed gfxterm.c to work with different sized fonts.
11281
11282 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 11283
1e901a75 11284 * configure: Re-generated.
34c44600 11285
1e901a75 11286 * DISTLIST: Removed font/manager.c.
11287 Added font/font.c.
11288 Added font/font_cmd.c.
34c44600 11289
1e901a75 11290 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
11291 compilation.
34c44600 11292
1e901a75 11293 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 11294
11295 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 11296
11297 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 11298
1e901a75 11299 * normal/menu.c: Likewise.
34c44600 11300
1e901a75 11301 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
11302 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 11303
1e901a75 11304 * include/grub/font.h: Replaced with new file.
34c44600 11305
1e901a75 11306 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
11307 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
11308 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
11309 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
11310 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 11311 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 11312 fg_red, fg_green, fg_blue, fg_alpha.
11313 (grub_video_adapter): Removed blit_glyph.
34c44600 11314 (grub_video_blit_glyph): Removed.
11315
1e901a75 11316 * font/manager.c: Removed file.
34c44600 11317
11318 * font/font.c: New file.
11319
1e901a75 11320 * font/font_cmd.c: Likewise.
34c44600 11321
1e901a75 11322 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 11323
1e901a75 11324 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
11325 (grub_video_vbe_map_rgba): Likewise.
11326 (grub_video_vbe_unmap_color_int): Likewise.
11327 (grub_video_vbe_blit_glyph): Removed.
11328 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 11329
1e901a75 11330 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
11331 (get_pixel): Likewise.
34c44600 11332 (set_pixel): Likewise.
11333
1e901a75 11334 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 11335
1e901a75 11336 * term/gfxterm.c: Adapted to new font engine.
34c44600 11337
1e901a75 11338 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 11339
1e901a75 11340 * term/i386/pc/vga.c: Likewise.
34c44600 11341
1e901a75 11342 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 11343
1e901a75 11344 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 11345
1e901a75 11346 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 11347
1e901a75 11348 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 11349
1e901a75 11350 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 11351
1e901a75 11352 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 11353
1e901a75 11354 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 11355
1e901a75 11356 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 11357
1e901a75 11358 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
11359
11360 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 11361
1e901a75 11362 * util/grub-mkconfig_lib.in: Changed font extension.
11363
278922e8 113642008-12-28 Felix Zielcke <fzielcke@z-51.de>
11365
11366 * util/getroot.c (grub_util_get_grub_dev): Add support for
11367 /dev/md/dNNpNN style partitionable mdraid devices.
11368
3ced05cf 113692008-12-12 Alex Smith <alex@alex-smith.me.uk>
11370
11371 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
11372 at a time limit of the PXE TFTP API correctly.
11373 (grub_pxefs_close): Likewise.
11374
7fd0ee30 113752008-11-29 Robert Millan <rmh@aybabtu.com>
11376
34c44600 11377 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 11378 grub_ata_device_initialize() calls.
11379
34c44600 113802008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 11381
11382 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
11383 iteration failed.
11384 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
11385
89313780 113862008-11-28 Robert Millan <rmh@aybabtu.com>
11387
11388 Fix build on powerpc-ieee1275. Based on patch created by
11389 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
11390 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
11391 `kern/ieee1275/mmap.c'.
11392 * include/grub/powerpc/ieee1275/memory.h: New file.
11393
15257703 11394 Provide grub-install on coreboot.
11395 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
11396 (grub_install_SOURCES): New variable.
11397 * util/i386/pc/grub-install.in: Add a few condition checks to make it
11398 usable on coreboot.
11399
9fc5388a 114002008-11-25 Felix Zielcke <fzielcke@z-51.de>
11401
11402 * util/grub-fstest.c (grub_term_get_current_input): Change return type
11403 to `grub_term_input_t'.
11404 (grub_term_get_current_output): Change return type to
11405 `grub_term_output_t'.
11406
bc3a2f31 114072008-11-22 Robert Millan <rmh@aybabtu.com>
11408
34c44600 11409 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 11410 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
11411 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
11412 grub_vga_text_cls().
11413
80fc88f2 11414 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 11415 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 11416
cbf36fd3 11417 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
11418 to 0x200000 (avoids trouble with some OFW implementations, and matches
11419 with the one in Yaboot).
11420 Reported by Manoel Abranches
11421
73e8e268 114222008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 11423
11424 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
11425 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
11426
73e8e268 11427 * util/grub-mkconfig_lib.in (grub_warn): New function.
11428 (convert_system_path_to_grub_path): Use grub_warn() when issuing
11429 warnings, to obtain consistent formatting.
11430 * util/grub.d/00_header.in: Likewise.
11431 * util/update-grub_lib.in: Likewise.
11432
e94045a1 11433 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 11434 Move comment text to `#error' stanza.
e94045a1 11435
79d29fd7 11436 Harmonize ieee1275's grub_available_iterate() with the generic
11437 grub_machine_mmap_iterate() interface (fixes a recently-introduced
11438 build problem on i386-ieee1275):
11439 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
11440 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
11441 parameter `type'. Update all users of this function.
11442 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
11443 `kern/ieee1275/mmap.c'.
11444 * kern/ieee1275/init.c
11445 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
11446 with ...
11447 (grub_machine_mmap_iterate): ... this.
11448 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
11449 return type to `grub_err_t'. Update all implementations of this
11450 function prototype.
11451 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
11452 Likewise.
11453
60d6b16e 11454 Add `lsmmap' command (lists firmware-provided memory map):
11455 * commands/lsmmap.c: New file.
11456 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
11457 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
11458 variables.
11459 * conf/powerpc-ieee1275.rmk: Likewise.
11460 * conf/i386-coreboot.rmk: Likewise.
11461 * conf/i386-ieee1275.rmk: Likewise.
11462
ebaaf49b 114632008-11-19 Robert Millan <rmh@aybabtu.com>
11464
11465 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 11466 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
11467 constraints to initrd allocation (based on code from
11468 loader/i386/pc/linux.c). Without them, initrd was allocated too high
11469 for Linux to find it.
ebaaf49b 11470
dfab719f 114712008-11-14 Robert Millan <rmh@aybabtu.com>
11472
11473 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
11474 order to cope with duplicate slashes.
11475
10fc3eb9 114762008-11-14 Robert Millan <rmh@aybabtu.com>
11477
11478 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
11479 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
11480 don't want to mess with lower memory, because it is used in the Linux
11481 loader.
11482
11483 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 11484 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 11485 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
11486 is in our heap (probably as a result of it being corrupted during
2f2a3442 11487 decompression). Add #error instance with comment to explain why this
11488 loader isn't currently usable on PC/BIOS.
10fc3eb9 11489
e2e07847 114902008-11-14 Robert Millan <rmh@aybabtu.com>
11491
11492 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 11493 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 11494
fe8e8d69 114952008-11-12 Robert Millan <rmh@aybabtu.com>
11496
11497 Make loader/i386/linux.c buildable on i386-pc (although disabled).
11498
11499 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
11500 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
11501 from here ...
11502 * include/grub/i386/pc/memory.h: ... to here.
11503
976b07d0 115042008-11-12 Robert Millan <rmh@aybabtu.com>
11505
11506 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
11507 split).
11508
11509 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
11510 (grub_console_cur_color, grub_console_real_putchar)
11511 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
11512 (grub_console_setcolorstate, grub_console_setcolor)
11513 (grub_console_getcolor): Move from here ...
11514 * include/grub/i386/vga_common.h: ... to here (new file).
11515
11516 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
11517 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
11518 `<grub/i386/io.h>'.
11519 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
11520 `<grub/i386/vga_common.h>'.
11521
76679cd3 115222008-11-12 Robert Millan <rmh@aybabtu.com>
11523
11524 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
11525 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
11526 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
11527 variables.
11528 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
11529 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
11530
11531 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
11532 grub_console_init() with call to grub_vga_text_init().
11533 (grub_machine_fini): Replace call to
11534 grub_console_fini() with call to grub_vga_text_fini() and
11535 grub_at_keyboard_fini().
11536
11537 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
11538 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
11539 (grub_console_setcolorstate, grub_console_setcolor)
11540 (grub_console_getcolor): New function prototypes.
11541
11542 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
11543 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
11544 (grub_vga_text_setcursor): Static-ize.
11545 (grub_vga_text_term): New structure.
11546 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
11547
11548 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
11549 (grub_console_cur_color, grub_console_standard_color)
11550 (grub_console_normal_color, grub_console_highlight_color)
11551 (map_char, grub_console_putchar, grub_console_getcharwidth)
11552 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
11553 (grub_console_getcolor): Move from here ...
11554 * term/i386/vga_common.c: ... to here (same function names).
11555
95b841d3 115562008-11-12 Robert Millan <rmh@aybabtu.com>
11557
11558 Use newly-added Multiboot support in coreboot.
11559
11560 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
11561 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
11562
11563 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
11564 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
11565 (codestart): Store the MBI in `startup_multiboot_info' when we're
11566 being loaded using Multiboot.
11567
11568 * kern/i386/coreboot/init.c (grub_machine_init): Move
11569 grub_at_keyboard_init() call to beginning of function (useful for
11570 debugging). Call grub_machine_mmap_init() before attempting to use
11571 grub_machine_mmap_iterate().
11572 (grub_lower_mem, grub_upper_mem): Move from here ...
11573 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
11574 here (new file).
11575
11576 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
11577 function prototype.
11578
761ca975 115792008-11-12 Robert Millan <rmh@aybabtu.com>
11580
11581 Fix a regression introduced by the at_keyboard.mod split. Because
11582 some terminals are default on some platforms and non-default on
11583 others, the first terminal being registered determines which is
11584 going to be default.
11585
11586 * kern/term.c (grub_term_register_input): If this is the first
11587 terminal being registered, set it as the current one.
11588 (grub_term_register_output): Likewise.
11589
11590 * term/efi/console.c (grub_console_init): Do not call
11591 grub_term_set_current_output() or grub_term_set_current_input().
11592 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
11593 * term/i386/pc/console.c (grub_console_init): Likewise.
11594 (grub_console_fini): Do not call grub_term_set_current_input()
11595 (but leave grub_term_set_current_output() to restore text mode).
11596
6c529df7 115972008-11-10 Robert Millan <rmh@aybabtu.com>
11598
11599 * util/grub.d/00_header.in: Add backward compatibility check for
11600 versions of terminal.mod that don't understand `terminal_input' or
11601 `terminal_output'.
11602
132e4113 116032008-11-09 Robert Millan <rmh@aybabtu.com>
11604
11605 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
11606 `terminal_input' / `terminal_output', not `terminal'.
11607
ac293d50 116082008-11-08 Robert Millan <rmh@aybabtu.com>
11609
11610 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 11611 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 11612
0025933a 116132008-11-08 Robert Millan <rmh@aybabtu.com>
11614
11615 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 11616 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 11617 members. Update all users.
11618 * util/console.c (grub_ncurses_term): Split in ...
11619 (grub_ncurses_term_input): ... this, and ...
11620 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 11621 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 11622
37c86336 116232008-11-08 Robert Millan <rmh@aybabtu.com>
11624
11625 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
11626 (PKGDATA): Add $(pkgdata_SRCDIR).
11627 (pkglib_BUILDDIR): New variable.
11628 (pkgdata_SRCDIR): New variable.
11629 (build_env.mk): New target.
11630 (include_DATA): New variable.
11631 (install-local): Install $(include_DATA) files in $(includedir).
11632
b6c15a2d 116332008-11-07 Pavel Roskin <proski@gnu.org>
11634
d99d46f1 11635 * gendistlist.sh: Use C locale for sorting to ensure consistent
11636 output on all systems.
11637
b6c15a2d 11638 * util/grub.d/00_header.in: Remove incorrect space before
11639 "serial".
11640
c32ee8c9 116412008-11-07 Robert Millan <rmh@aybabtu.com>
11642
11643 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
11644 per specification.
11645 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
11646 * loader/multiboot_loader.c (find_multi_boot2_header): New function
11647 (based on find_multi_boot1_header).
11648 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
11649 using find_multi_boot2_header(), and abort if neither Multiboot or
11650 Multiboot headers were found.
11651
651c29b7 116522008-11-07 Robert Millan <rmh@aybabtu.com>
11653
11654 Modularize at_keyboard.mod:
11655
11656 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
11657 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
11658 (at_keyboard_mod_LDFLAGS): New variables.
11659
11660 Actual terminal split:
11661
11662 * include/grub/term.h (struct grub_term): Split in ...
11663 (struct grub_term_input): ... this, and ...
11664 (struct grub_term_output): ... this. Update all users.
11665 (grub_term_set_current): Split in ...
11666 (grub_term_set_current_input): ... this, and ...
11667 (grub_term_set_current_output): ... this.
11668 (grub_term_get_current): Split in ...
11669 (grub_term_get_current_input): ... this, and ...
11670 (grub_term_get_current_output): ... this.
11671 (grub_term_register): Split in ...
11672 (grub_term_register_input): ... this, and ...
11673 (grub_term_register_output): ... this.
11674 (grub_term_unregister): Split in ...
11675 (grub_term_unregister_input): ... this, and ...
11676 (grub_term_unregister_output): ... this.
11677 (grub_term_iterate): Split in ...
11678 (grub_term_iterate_input): ... this, and ...
11679 (grub_term_iterate_output): ... this.
11680
11681 * kern/term.c (grub_term_list): Split in ...
11682 (grub_term_list_input): ... this, and ...
11683 (grub_term_list_output): ... this. Update all users.
11684 (grub_cur_term): Split in ...
11685 (grub_cur_term_input): ... this, and ...
11686 (grub_cur_term_output): ... this. Update all users.
11687 (grub_term_set_current): Split in ...
11688 (grub_term_set_current_input): ... this, and ...
11689 (grub_term_set_current_output): ... this.
11690 (grub_term_get_current): Split in ...
11691 (grub_term_get_current_input): ... this, and ...
11692 (grub_term_get_current_output): ... this.
11693 (grub_term_register): Split in ...
11694 (grub_term_register_input): ... this, and ...
11695 (grub_term_register_output): ... this.
11696 (grub_term_unregister): Split in ...
11697 (grub_term_unregister_input): ... this, and ...
11698 (grub_term_unregister_output): ... this.
11699 (grub_term_iterate): Split in ...
11700 (grub_term_iterate_input): ... this, and ...
11701 (grub_term_iterate_output): ... this.
11702
11703 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
11704 a check for input and one for output (and only attempt to get keys
11705 from user when input works).
11706
11707 * util/grub-probe.c (grub_term_get_current): Split in ...
11708 (grub_term_get_current_input): ... this, and ...
11709 (grub_term_get_current_output): ... this.
11710 * util/grub-fstest.c: Likewise.
11711 * util/i386/pc/grub-setup.c: Likewise.
11712 * util/grub-editenv.c: Likewise.
11713
11714 Portability adjustments:
11715
11716 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
11717 `term/i386/pc/at_keyboard.c'.
11718 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
11719 grub_keyboard_controller_init() (now handled by terminal .init).
11720 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
11721 grub_at_keyboard_init().
11722 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
11723 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
11724 at_keyboard.mod via input terminal interface).
11725 * include/grub/i386/coreboot/console.h: Convert into a stub for
11726 `<grub/i386/pc/console.h>'.
11727
11728 Migrate full terminals to new API:
11729
11730 * term/efi/console.c (grub_console_term): Split into ...
11731 (grub_console_term_input): ... this, and ...
11732 (grub_console_term_output): ... this. Update all users.
11733 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
11734 (grub_ofconsole_init): Split into ...
11735 (grub_ofconsole_init_input): ... this, and ...
11736 (grub_ofconsole_init_output): ... this.
11737 (grub_ofconsole_term): Split into ...
11738 (grub_ofconsole_term_input): ... this, and ...
11739 (grub_ofconsole_term_output): ... this. Update all users.
11740 * term/i386/pc/serial.c (grub_serial_term): Split into ...
11741 (grub_serial_term_input): ... this, and ...
11742 (grub_serial_term_output): ... this. Update all users.
11743 * term/i386/pc/console.c (grub_console_term): Split into ...
11744 (grub_console_term_input): ... this, and ...
11745 (grub_console_term_output): ... this. Update all users.
11746 (grub_console_term_input): Only enable it on PC/BIOS platform.
11747 (grub_console_init): Remove grub_keyboard_controller_init() call.
11748
11749 Migrate input terminals to new API:
11750
11751 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
11752 `i386' and `i386/pc' to enable build on x86_64 (this driver is
11753 i386-specific anyway).
11754 (grub_console_checkkey): Rename to ...
11755 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
11756 users.
11757 (grub_keyboard_controller_orig): New variable.
11758 (grub_console_getkey): Rename to ...
11759 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
11760 users.
11761 (grub_keyboard_controller_init): Static-ize. Save original
11762 controller value so that it can be restored ...
11763 (grub_keyboard_controller_fini): ... here (new function).
11764 (grub_at_keyboard_term): New structure.
11765 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
11766 functions.
11767
11768 Migrate output terminals to new API:
11769
11770 * term/i386/pc/vga.c (grub_vga_term): Change type to
11771 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
11772 members. Update all users.
11773 * term/gfxterm.c (grub_video_term): Change type to
11774 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
11775 members. Update all users.
11776 * include/grub/i386/pc/console.h (grub_console_checkkey)
11777 (grub_console_getkey): Do not export (no longer needed by gfxterm,
11778 etc).
11779
11780 Migrate `terminal' command and userland tools to new API:
11781
11782 * commands/terminal.c (grub_cmd_terminal): Split into ...
11783 (grub_cmd_terminal_input): ... this, and ...
11784 (grub_cmd_terminal_output): ... this.
11785 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
11786 `terminal_input' and `terminal_output'.
11787 * util/grub.d/00_header.in: Adjust `terminal' calls to new
11788 `terminal_input' / `terminal_output' API.
11789 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
11790 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
11791 provided ${GRUB_TERMINAL}, convert it).
11792
96e5d876 117932008-11-04 Robert Millan <rmh@aybabtu.com>
11794
11795 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
11796 for FreeBSD.
11797 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
11798
556f3775 117992008-11-03 Bean <bean123ch@gmail.com>
11800
11801 * kern/elf.c (grub_elf32_load): Revert to previous code.
11802 (grub_elf64_load): Likewise.
11803
11804 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
11805
926b9823 118062008-11-01 Robert Millan <rmh@aybabtu.com>
11807
11808 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
11809 (TARGET_CPPFLAGS): Likewise.
11810 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
11811
1432e958 118122008-11-01 Carles Pina i Estany <carles@pina.cat>
11813
11814 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
11815
dba3f844 118162008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 11817
11818 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
11819 addition of objects until the code is not going to be able to fail.
11820
dba3f844 118212008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 11822
11823 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
11824 (add a missing NULL check, and correct them by moving the pointer
11825 operations after the actual check).
11826
7ab28c21 118272008-10-29 Robert Millan <rmh@aybabtu.com>
11828
11829 * util/i386/pc/grub-install.in: Handle empty string as output from
11830 make_system_path_relative_to_its_root().
11831
1b7748eb 118322008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
11833
11834 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
11835 circular metadata worst case scenario. If the metadata is circular
11836 then copy the wrap in place.
11837 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
11838 project lib/format_text/layout.h
11839 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
11840
c9618ab2 118412008-10-03 Felix Zielcke <fzielcke@z-51.de>
11842
7a36edca 11843 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 11844
bf981c62 118452008-10-03 Felix Zielcke <fzielcke@z-51.de>
11846
11847 * util/update-grub_lib.in: Mention filename in warning message.
11848
6d994591 118492008-09-29 Felix Zielcke <fzielcke@z-51.de>
11850
11851 * NEWS: Update for rename of update-grub to grub-mkconfig.
11852
18ade780 118532008-09-29 Felix Zielcke <fzielcke@z-51.de>
11854
11855 * util/update-grub_lib.in: Copy to ...
11856 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 11857 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 11858 * util/update-grub.in: Rename to ...
11859 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
11860 option. Add `--output' option to allow users to specify the generated
11861 configuration file. Default to stdout.
11862 (update_grub_dir): Rename to ...
11863 (grub_mkconfig_dir): ... this.
11864 (grub_cfg): Default to an empty string.
11865 * conf/common.rmk (update-grub): Rename to ...
11866 (grub-mkconfig): ... this.
11867 (update-grub_lib): Copy to ...
11868 (grub-mkconfig_lib): ... this.
11869 (update-grub_SCRIPTS): Copy to ...
11870 (grub-mkconfig_SCRIPTS): ... this. Update all users.
11871 (update-grub_DATA): Rename to ...
11872 (grub-mkconfig_DATA): ... this.
11873
556ce6ac 118742008-09-28 Robert Millan <rmh@aybabtu.com>
11875
11876 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
11877 to `modified'. Add the real `created' field.
11878 (grub_iso9660_uuid): Use `modified' rather than `created' for
11879 constructing the UUID.
11880
118812008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 11882
11883 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
11884 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
11885
92274e85 118862008-09-28 Bean <bean123ch@gmail.com>
11887
11888 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
11889 Thanks to Christian Franke for finding this bug.
11890
add6f17a 118912008-09-25 Robert Millan <rmh@aybabtu.com>
11892
11893 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
11894 instances of grub_util_get_disk_name() (see previous commit).
11895
d2a367b8 118962008-09-25 Robert Millan <rmh@aybabtu.com>
11897
11898 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
11899 `util/i386/get_disk_name.c'.
11900 * conf/i386-efi.rmk: Likewise.
11901 * conf/x86_64-efi.rmk: Likewise.
11902 * conf/i386-coreboot.rmk: Likewise.
11903 * conf/i386-ieee1275.rmk: Likewise.
11904 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
11905 `util/ieee1275/get_disk_name.c'.
11906 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
11907 * util/ieee1275/get_disk_name.c: Remove file.
11908 * util/i386/get_disk_name.c: Remove file.
11909 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
11910 "hd%d" for device.map entries, rather than using
11911 grub_util_get_disk_name().
11912
81a06771 119132008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 11914
11915 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
11916 warning.
11917 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
11918
5a004279 119192008-09-24 Carles Pina i Estany <carles@pina.cat>
11920
11921 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
11922 Changed to 0x5100.
11923 (GRUB_TERM_PPAGE): Changed to 0x4900.
11924
397093d3 119252008-09-24 Robert Millan <rmh@aybabtu.com>
11926
11927 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
11928 macros (they were i386-pc specific).
11929 * include/grub/sparc64/ieee1275/console.h: Likewise.
11930 * include/grub/efi/console.h: Likewise.
11931
a91b6c7c 119322008-09-22 Bean <bean123ch@gmail.com>
11933
11934 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
11935 resident and in attribute list.
11936
11937 * include/grub/ntfs.h (BMP_LEN): Removed.
11938
c40fd116 119392008-09-22 Bean <bean123ch@gmail.com>
11940
81a06771 11941 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 11942 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
11943
11944 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
11945 error occurs, as grub_disk_open will call grub_disk_close, which will
11946 call p->close (scsi).
11947
81a06771 119482008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 11949
11950 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
11951 (AC_PREREQ): Bumped to 2.59.
11952 (AC_TRY_COMPILE): Replace obsolete macro with ...
11953 (AC_COMPILE_IFELSE): ... this.
11954 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
11955 (AC_LINK_IFELSE): ... this.
11956
5dc43410 119572008-09-21 Felix Zielcke <fzielcke@z-51.de>
11958
11959 * autogen.sh: Add a call to `gendistlist.sh'.
11960
9035dce4 119612008-09-19 Christian Franke <franke@computer.org>
11962
11963 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
11964 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
11965 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
11966 Export __enable_execute_stack() to modules.
11967 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
11968 New function.
11969
7fd75377 119702008-09-09 Felix Zielcke <fzielcke@z-51.de>
11971
040030b3 11972 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
11973 Sort the list.
11974
119752008-09-09 Felix Zielcke <fzielcke@z-51.de>
11976
11977 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 11978 #include <grub/util/hostdisk.h>.
11979
89d5ffcf 119802008-09-08 Robert Millan <rmh@aybabtu.com>
11981
11982 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
11983 segments when their filesz is zero (grub_file_read() interprets
81a06771 11984 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 11985 Use `lowest_segment' rather than 0 for calculating the current
11986 segment load address.
11987
40da438f 119882008-09-08 Robert Millan <rmh@aybabtu.com>
11989
11990 * util/hostdisk.c (open_device): Replace a grub_util_info() call
11991 with grub_dprintf("hostdisk", ...), as it was so verbose that it
11992 clobbered useful information.
11993
ddbf5556 119942008-09-08 Robert Millan <rmh@aybabtu.com>
11995
11996 * include/grub/util/biosdisk.h: Move to ...
11997 * include/grub/util/hostdisk.h: ... here. Update all users.
11998 * util/biosdisk.c: Move to ...
11999 * util/hostdisk.c: ... here. Update all users.
12000
783d0f48 120012008-09-07 Robert Millan <rmh@aybabtu.com>
12002
12003 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
12004 variables.
12005 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
12006 and length can be stored directly in the `mbi->mmap_addr' and
12007 `mbi->mmap_length' struct fields.
12008
548e2ea5 120092008-09-07 Robert Millan <rmh@aybabtu.com>
12010
12011 * conf/i386.rmk: New file. Provides declaration for building
12012 `cpuid.mod'.
12013 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
12014 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
12015 variables.
12016 Include `conf/i386.mk'.
12017 * conf/i386-efi.rmk: Likewise.
12018 * conf/x86_64-efi.rmk: Likewise.
12019 * conf/i386-coreboot.rmk: Likewise.
12020 * conf/i386-ieee1275.rmk: Likewise.
12021
0ea85a37 120222008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
12023
12024 Based on patch created by Colin D Bennett <colin@gibibit.com>.
12025 Adds optimization support for BGR based modes.
12026
12027 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
12028 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
12029 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
12030 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
12031 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
12032 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
12033 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
12034 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
12035 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
12036 (grub_video_i386_vbeblit_index_index): Likewise.
12037 (grub_video_i386_vbeblit_replace_directN): Added.
12038 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
12039 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
12040 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
12041 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
12042 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
12043 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 12044 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 12045 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
12046 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
12047 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
12048 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
12049 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
12050 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
12051
12052 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
12053 (grub_video_i386_vbefill_R8G8B8): Likewise.
12054 (grub_video_i386_vbefill_index): Likewise.
12055 (grub_video_i386_vbefill_direct32): Added.
12056 (grub_video_i386_vbefill_direct24): Likewise.
12057 (grub_video_i386_vbefill_direct16): Likewise.
12058 (grub_video_i386_vbefill_direct8): Likewise.
12059
81a06771 12060 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 12061 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
12062 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
12063 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
12064 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
12065 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 12066
0ea85a37 12067 * video/video.c (grub_video_get_blit_format): Updated to use new
12068 blit formats. Added handling for 16 bit color modes.
81a06771 12069
12070 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 12071 fillers.
12072 (common_blitter): Updated to use new blitters.
12073
12074 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
12075 Removed.
12076 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
12077 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
12078 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
12079 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
12080 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
12081 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
12082 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
12083 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
12084 (grub_video_i386_vbeblit_index_index): Likewise.
12085 (grub_video_i386_vbeblit_replace_directN): Added.
12086 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
12087 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
12088 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
12089 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
12090 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
12091 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
12092 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
12093 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
12094 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
12095 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
12096 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
12097 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
12098 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 12099
0ea85a37 12100 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
12101 (grub_video_i386_vbefill_R8G8B8): Likewise.
12102 (grub_video_i386_vbefill_index): Likewise.
12103 (grub_video_i386_vbefill_direct32): Added.
12104 (grub_video_i386_vbefill_direct24): Likewise.
12105 (grub_video_i386_vbefill_direct16): Likewise.
12106 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 12107
0ea85a37 12108 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
12109 types.
81a06771 12110
0ea85a37 12111 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
12112 types.
81a06771 12113
0ea85a37 12114 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
12115 blitter types.
81a06771 12116
0ea85a37 12117 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
12118 types.
12119
e8a83df6 121202008-09-06 Felix Zielcke <fzielcke@z-51.de>
12121
12122 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
12123 RAID level 1.
12124
6bcd8ee5 121252008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 12126
6bcd8ee5 12127 * fs/iso9660.c (grub_iso9660_date): New structure.
12128 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
12129 (grub_iso9660_uuid): New function.
c375ae58 12130
59261157 121312008-09-05 Bean <bean123ch@gmail.com>
12132
12133 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
12134
12135 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
12136 insensitive bit for names in Win32 and Win32 & DOS namespace.
12137
12138 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
12139
12140 * include/grub/types.h (LONG_MAX): Likewise.
12141
58b6645a 121422008-09-04 Felix Zielcke <fzielcke@z-51.de>
12143
4ee55921 12144 * util/getroot.c: Include <config.h>.
12145 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
12146 add support for /dev/md/N devices and handle LVM double dash escaping.
12147
121482008-09-04 Felix Zielcke <fzielcke@z-51.de>
12149
12150 * config.guess: Update to latest version from config git.
12151 * config.sub: Likewise.
58b6645a 12152
9124f65d 121532008-09-03 Robert Millan <rmh@aybabtu.com>
12154
12155 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
12156 `disk->total_sectors'.
12157
81a06771 121582008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 12159
12160 * include/grub/normal.h: Fixed incorrect comment for
12161 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
12162
81a06771 121632008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 12164
12165 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
12166 values with defines.
12167
12168 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
12169 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
12170 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
12171 (GRUB_VBE_MODEATTR_COLOR): Likewise.
12172 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
12173 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
12174 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
12175 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
12176 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
12177 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
12178 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
12179 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
12180 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
12181 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
12182 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
12183 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
12184 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
12185 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
12186 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
12187
93d5cbf8 121882008-08-31 Robert Millan <rmh@aybabtu.com>
12189
12190 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
12191 declaration.
12192 (grub_multiboot): Fix a few warnings.
12193
21751d50 121942008-08-31 Robert Millan <rmh@aybabtu.com>
12195
12196 * loader/i386/pc/multiboot.c: Update comment not to say that
12197 boot_device support is unimplemented.
12198
e27a75c5 121992008-08-31 Robert Millan <rmh@aybabtu.com>
12200
12201 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
12202 or memory map support are unimplemented.
12203
81a06771 122042008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 12205
12206 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
12207
81a06771 122082008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 12209
12210 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
12211 total video memory in 'vbeinfo' output; show color format details for
12212 each video mode.
12213
7c5d8d95 122142008-08-30 Pavel Roskin <proski@gnu.org>
12215
12216 * util/genmoddep.c: Remove for real this time.
12217 * DISTLIST: Remove util/genmoddep.c.
12218
4cebd25a 122192008-08-30 Robert Millan <rmh@aybabtu.com>
12220
12221 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
12222 as required by Multiboot spec (it was already 4-byte aligned, but
12223 only by chance).
12224
b497a269 122252008-08-29 Pavel Roskin <proski@gnu.org>
12226
e3925185 12227 * kern/powerpc/ieee1275/crt0.S: Rename to ...
12228 * kern/powerpc/ieee1275/startup.S: ... this.
12229 * conf/powerpc-ieee1275.rmk: Adjust for the above.
12230 * DISTLIST: Likewise.
12231
b497a269 12232 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
12233 grub/cpu/kernel.h. Add start label for consistency with other
12234 platforms. Add grub_prefix immediately after start. Add jump
12235 to the code after grub_prefix.
12236 * include/grub/powerpc/kernel.h: Provide valid values for
12237 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
12238
6e5a42fe 122392008-08-29 Bean <bean123ch@gmail.com>
12240
12241 * configure.ac: Change host_os to cygwin for mingw.
12242 (asprintf): New check for function.
12243
12244 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
12245 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
12246
12247 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 12248 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 12249 sync, sleep and grub_util_get_disk_size for mingw.
12250
12251 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
12252 to get size in mingw.
12253 (open_device): Use flag O_BINARY if it's defined.
12254 (find_root_device): Add dummy code for mingw.
12255
12256 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
12257 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
12258 (get_scsi_disk_name): Return 0 for mingw.
12259
12260 * util/hostfs.c: #include <grub/util/misc.h>.
12261 (grub_hostfs_open): Use "rb" flag to open file, use
12262 grub_util_get_disk_size to get disk size for mingw.
12263
12264 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
12265 (asprintf): New function if HAVE_ASPRINTF is not set.
12266 (sync): New function for mingw.
12267 (sleep): Likewise.
12268 (grub_util_get_disk_size): Likewise.
12269
ab3f2673 122702008-08-28 Pavel Roskin <proski@gnu.org>
12271
12272 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
12273 kern/time.c.
12274
1c282483 122752008-08-28 Robert Millan <rmh@aybabtu.com>
12276
12277 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
12278
678e849c 122792008-08-28 Robert Millan <rmh@aybabtu.com>
12280
12281 Change find_grub_drive() syntax so it doesn't prevent it from
12282 detecting NULL names as errors.
12283
12284 * util/biosdisk.c (find_grub_drive): Move free slot search code
12285 from here ...
12286 (find_free_slot): ... to here.
12287 (read_device_map): Use find_free_slot() to search for free slots.
12288
965c75ca 122892008-08-27 Marco Gerards <marco@gnu.org>
12290
12291 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
12292 (scsi_mod_SOURCES): New variable.
12293 (scsi_mod_CFLAGS): Likewise
12294 (scsi_mod_LDFLAGS): Likewise.
12295
12296 * disk/scsi.c: New file.
12297
12298 * include/grub/scsi.h: Likewise.
12299
12300 * include/grub/scsicmd.h: Likewise.
12301
12302 * disk/ata.c: Include <grub/scsi.h>.
12303 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
12304 instead.
12305 (grub_ata_iterate): Skip ATAPI devices.
12306 (grub_ata_open): Only handle ATAPI devices.
12307 (struct grub_atapi_read): Removed.
12308 (grub_atapi_readsector): Likewise.
12309 (grub_ata_read): No longer handle ATAPI devices.
12310 (grub_ata_write): Likewise.
12311 (grub_atapi_iterate): New function.
12312 (grub_atapi_read): Likewise.
12313 (grub_atapi_write): Likewise.
12314 (grub_atapi_open): Likewise.
12315 (grub_atapi_close): Likewise.
12316 (grub_atapi_dev): New variable.
12317 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
12318 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
12319
12320 * include/grub/disk.h (enum grub_disk_dev_id): Add
12321 `GRUB_DISK_DEVICE_SCSI_ID'.
12322
c07ae501 123232008-08-26 Robert Millan <rmh@aybabtu.com>
12324
12325 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
12326 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
12327 descriptive.
12328
5ed20adc 123292008-08-23 Bean <bean123ch@gmail.com>
12330
12331 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
12332 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
12333 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
12334 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
12335 dm_nv.mod.
12336 (raid5rec_mod_SOURCES): New macro.
12337 (raid5rec_mod_CFLAGS): Likewise.
12338 (raid5rec_mod_LDFLAGS): Likewise.
12339 (raid6rec_mod_SOURCES): Likewise.
12340 (raid6rec_mod_CFLAGS): Likewise.
12341 (raid6rec_mod_LDFLAGS): Likewise.
12342 (mdraid_mod_SOURCES): Likewise.
12343 (mdraid_mod_CFLAGS): Likewise.
12344 (mdraid_mod_LDFLAGS): Likewise.
12345 (dm_nv_mod_SOURCES): Likewise.
12346 (dm_nv_mod_CFLAGS): Likewise.
12347 (dm_nv_mod_LDFLAGS): Likewise.
12348
12349 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
12350 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
12351 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
12352
12353 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
12354 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
12355
12356 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12357
12358 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
12359
12360 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12361
12362 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12363
12364 * disk/raid5_recover.c: New file.
12365
12366 * disk/raid6_recover.c: Likewise.
12367
12368 * disk/mdraid_linux.c: Likewise.
12369
12370 * disk/dmraid_nvidia.c: Likewise.
12371
12372 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
12373 ULONG_MAX.
12374
12375 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
12376 calculate the size of raid device.
12377 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
12378 different layout of raid5.
12379 (grub_raid_scan_device): Remove code specific to mdraid.
12380 (grub_raid_list): New variable.
12381 (free_array): New function.
12382 (grub_raid_register): Likewise.
12383 (grub_raid_unregister): Likewise.
12384 (grub_raid_rescan): Likewise.
12385 (GRUB_MOD_INIT): Don't iterate device here.
12386 (GRUB_MOD_FINI): Use free_array to release resource.
12387
12388 * include/grub/raid.h: Remove macro and structure specific to mdraid.
12389 (grub_raid5_recover_func_t): New function variable type.
12390 (grub_raid6_recover_func_t): Likewise.
12391 (grub_raid5_recover_func): New variable.
12392 (grub_raid6_recover_func): Likewise.
12393 (grub_raid_register): New function.
12394 (grub_raid_unregister): Likewise.
12395 (grub_raid_rescan): Likewise.
12396 (grub_raid_block_xor): Likewise.
12397
12398 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
12399 (CMD_CRC): New macro.
12400 (part): Removed.
12401 (read_file): Handle device as well as file.
12402 (cmd_crc): New function.
12403 (fstest): Handle multiple disks.
12404 (options): Remove part, raw and long, add root and diskcount.
12405 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 12406 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 12407 add handling for the new options, support multiple disks.
12408
12409 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
12410
29c18915 124112008-08-23 Bean <bean123ch@gmail.com>
12412
12413 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
12414
12415 * genfslist.sh: Ignore kernel.mod.
12416
12417 * genpartmaplist.sh: Likewise.
12418
8415f261 124192008-08-23 Robert Millan <rmh@aybabtu.com>
12420
12421 * util/getroot.c (find_root_device): Skip anything that starts with
12422 a dot, not just directories. This avoids things like /dev/.tmp.md0.
12423
d5a7dc5b 124242008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 12425
d5a7dc5b 12426 * util/update-grub.in (GRUB_GFXMODE): Export variable.
12427 * util/grub.d/00_header.in: Allow the administrator to change default
12428 gfxmode via ${GRUB_GFXMODE}.
12429
380cfbb4 124302008-08-21 Felix Zielcke <fzielcke@z-51.de>
12431
12432 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
12433
c9baafe7 124342008-08-21 Robert Millan <rmh@aybabtu.com>
12435
12436 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
12437 loader.
12438 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
12439 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
12440
e290bef2 124412008-08-20 Carles Pina i Estany <carles@pina.cat>
12442
12443 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
12444 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
12445
f9dbfc96 124462008-08-19 Robert Millan <rmh@aybabtu.com>
12447
12448 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
12449 (struct grub_virtual_screen): Remove `cursor_color'.
12450 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
12451 initialization.
12452 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
12453
dd6bd6ab 124542008-08-18 Robert Millan <rmh@aybabtu.com>
12455
12456 Unify (identical) linux_normal.c files.
12457 * loader/i386/efi/linux_normal.c: Move from here ...
12458 * loader/linux_normal.c: ... to here. Update all users.
12459 * loader/i386/pc/linux_normal.c: Delete. Update all users.
12460 * loader/i386/ieee1275/linux_normal.c: Likewise.
12461
7f42f83e 124622008-08-18 Robert Millan <rmh@aybabtu.com>
12463
12464 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
12465 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
12466 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
12467 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
12468 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
12469 New macros.
12470 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
12471 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
12472 (GRUB_LINUX_CL_END_OFFSET): ... to here.
12473 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
12474 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
12475 (GRUB_EFI_CL_END_OFFSET): Rename to ...
12476 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
12477 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
12478 Initialize `params->video_cursor_x' and `params->video_cursor_y'
12479 portably using grub_getxy().
12480 Replace `-EFI' with `-bzImage' in boot message.
12481
38487ddb 124822008-08-17 Robert Millan <rmh@aybabtu.com>
12483
12484 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
12485
deceb3ec 124862008-08-17 Robert Millan <rmh@aybabtu.com>
12487
12488 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
12489
12490 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
12491 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
12492 (grub_machine_mmap_iterate): New function declaration.
12493 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
12494 structure.
12495 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
12496 macros.
12497
12498 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
12499 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
12500 Move e820 parsing from here ...
12501 * kern/i386/pc/mmap.c: New file.
12502 (grub_machine_mmap_iterate): ... to here.
12503
12504 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
12505 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
12506 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
12507 (grub_available_iterate): Redeclare to return `void', and redeclare
12508 its hook to use grub_uint64_t as addr and size parameters, and rename
12509 to ...
12510 (grub_machine_mmap_iterate): ... this. Update all users.
12511
12512 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
12513 to make it more readable. Rename to ...
12514 (grub_machine_mmap_iterate): ... this.
12515
12516 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
12517 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
12518 (grub_multiboot): Allocate an extra region after the payload, and fill
12519 it with a Multiboot memory map. Adjust a.out loader to calculate size
12520 with the extra space.
12521 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
12522 with the extra space.
12523
f8aa0f43 125242008-08-17 Carles Pina i Estany <carles@pina.cat>
12525
9807deb9 12526 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 12527
605f5bb6 125282008-08-17 Felix Zielcke <fzielcke@z-51.de>
12529
12530 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
12531 mdate-sh to the list `find' searches for.
12532 * DISTLIST: Regenerated.
12533
210db6c6 125342008-08-16 Felix Zielcke <fzielcke@z-51.de>
12535
12536 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
12537 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 12538 genmoddep.awk, gensymlist.sh.in.
12539 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 12540 * DISTLIST: Regenerated.
48cdbfd4 12541 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 12542
1082b929 125432008-08-16 Robert Millan <rmh@aybabtu.com>
12544
12545 * disk/raid.c (grub_raid_init): Handle/report errors set by
12546 grub_device_iterate().
12547 * disk/lvm.c (grub_lvm_init): Likewise.
12548
42ce5170 125492008-08-15 Bean <bean123ch@gmail.com>
12550
12551 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
12552 and datehook.mod.
12553 (datetime_mod_SOURCES): New macro.
12554 (datetime_mod_CFLAGS): Likewise.
12555 (datetime_mod_LDFLAGS): Likewise.
12556 (date_mod_SOURCES): Likewise.
12557 (date_mod_CFLAGS): Likewise.
12558 (date_mod_LDFLAGS): Likewise.
12559 (datehook_mod_SOURCES): Likewise.
12560 (datehook_mod_CFLAGS): Likewise.
12561 (datehook_mod_LDFLAGS): Likewise.
12562
12563 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
12564 and datehook.mod.
12565 (datetime_mod_SOURCES): New macro.
12566 (datetime_mod_CFLAGS): Likewise.
12567 (datetime_mod_LDFLAGS): Likewise.
12568 (date_mod_SOURCES): Likewise.
12569 (date_mod_CFLAGS): Likewise.
12570 (date_mod_LDFLAGS): Likewise.
12571 (datehook_mod_SOURCES): Likewise.
12572 (datehook_mod_CFLAGS): Likewise.
12573 (datehook_mod_LDFLAGS): Likewise.
12574
12575 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
12576 and datehook.mod.
12577 (datetime_mod_SOURCES): New macro.
12578 (datetime_mod_CFLAGS): Likewise.
12579 (datetime_mod_LDFLAGS): Likewise.
12580 (date_mod_SOURCES): Likewise.
12581 (date_mod_CFLAGS): Likewise.
12582 (date_mod_LDFLAGS): Likewise.
12583 (datehook_mod_SOURCES): Likewise.
12584 (datehook_mod_CFLAGS): Likewise.
12585 (datehook_mod_LDFLAGS): Likewise.
12586
12587 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
12588 and datehook.mod.
12589 (datetime_mod_SOURCES): New macro.
12590 (datetime_mod_CFLAGS): Likewise.
12591 (datetime_mod_LDFLAGS): Likewise.
12592 (date_mod_SOURCES): Likewise.
12593 (date_mod_CFLAGS): Likewise.
12594 (date_mod_LDFLAGS): Likewise.
12595 (datehook_mod_SOURCES): Likewise.
12596 (datehook_mod_CFLAGS): Likewise.
12597 (datehook_mod_LDFLAGS): Likewise.
12598
12599 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
12600 and datehook.mod.
12601 (datetime_mod_SOURCES): New macro.
12602 (datetime_mod_CFLAGS): Likewise.
12603 (datetime_mod_LDFLAGS): Likewise.
12604 (date_mod_SOURCES): Likewise.
12605 (date_mod_CFLAGS): Likewise.
12606 (date_mod_LDFLAGS): Likewise.
12607 (datehook_mod_SOURCES): Likewise.
12608 (datehook_mod_CFLAGS): Likewise.
12609 (datehook_mod_LDFLAGS): Likewise.
12610
12611 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
12612
12613 * commands/date.c: New file.
12614
12615 * hook/datehook.c: Likewise.
12616
12617 * include/grub/lib/datetime.h: Likewise.
12618
12619 * include/grub/i386/cmos.h: Likewise.
12620
12621 * lib/datetime.c: Likewise.
12622
12623 * lib/i386/datetime.c: Likewise.
12624
12625 * lib/efi/datetime.c: Likewise.
12626
0e9242da 126272008-08-14 Robert Millan <rmh@aybabtu.com>
12628
12629 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
12630 (grub_mkelfimage_SOURCES): New variable.
12631 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
12632
12633 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
12634 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
12635 * conf/powerpc-ieee1275.rmk: Likewise.
12636 * conf/i386-ieee1275.rmk: Likewise.
12637
12638 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
12639 * kern/i386/coreboot/init.c: Likewise.
12640
12641 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
12642 with `<grub/cpu/kernel.h>'.
12643 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
12644 to ...
12645 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
12646 * kern/i386/coreboot/startup.S: Likewise.
12647
12648 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
12649 (GRUB_MOD_GAP): Remove.
12650 * include/grub/powerpc/kernel.h: New file.
12651 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
12652 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
12653 * include/grub/i386/kernel.h: New file.
12654 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
12655 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
12656 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
12657
12658 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
12659 `grub-mkelfimage'.
12660 Use --directory when invoking grub_mkimage.
12661
12662 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
12663 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
12664 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
12665 and GRUB_KERNEL_CPU_PREFIX.
12666
b86408f8 126672008-08-14 Felix Zielcke <fzielcke@z-51.de>
12668
d5e619ca 12669 * include/grub/err.h (grub_err_printf): New function prototype.
12670 * util/misc.c (grub_err_printf): New function.
12671 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
12672 grub_printf.
12673 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 12674
7161f0e0 126752008-08-13 Robert Millan <rmh@aybabtu.com>
12676
12677 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
12678
a1967522 126792008-08-13 Robert Millan <rmh@aybabtu.com>
12680
12681 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
12682 boot entry.
12683
371458b5 126842008-08-12 Robert Millan <rmh@aybabtu.com>
12685
12686 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
12687 of the relocation code from here ...
12688 (grub_multiboot): ... to here.
12689 (forward_relocator, backward_relocator): Move from here ...
12690 * kern/i386/loader.S (grub_multiboot_forward_relocator)
12691 (grub_multiboot_backward_relocator): ... to here.
12692 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
12693 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
12694 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
12695 (grub_multiboot_forward_relocator_end)
12696 (grub_multiboot_backward_relocator)
12697 (grub_multiboot_backward_relocator_end): New variables.
12698
05f9452b 126992008-08-12 Bean <bean123ch@gmail.com>
12700
12701 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
12702
20024ab0 127032008-08-11 Robert Millan <rmh@aybabtu.com>
12704
12705 * kern/i386/linuxbios/startup.S: Move from here ...
12706 * kern/i386/coreboot/startup.S: ... to here.
12707
12708 * kern/i386/linuxbios/init.c: Move from here ...
12709 * kern/i386/coreboot/init.c: ... to here.
12710
12711 * kern/i386/linuxbios/table.c: Move from here ...
12712 * kern/i386/coreboot/mmap.c: ... to here.
12713
12714 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
12715
e352e9cd 127162008-08-11 Robert Millan <rmh@aybabtu.com>
12717
12718 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
12719 errors. Leave it to the upper layer to handle them.
12720
2d05bc6a 127212008-08-09 Christian Franke <franke@computer.org>
12722
12723 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
12724 * conf/common.rmk: Install `grub-pe2elf' only if requested.
12725 Install `grub.d/10_windows' only on Cygwin.
12726 * configure.ac: Add subst of `target_os'.
12727 Check `target_os' also before setting TARGET_OBJ2ELF.
12728 Add `--enable-grub-pe2elf'.
12729
042bd419 127302008-08-08 Robert Millan <rmh@aybabtu.com>
12731
12732 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
12733 (grub_last_time): Change type to grub_uint64_t.
12734 (grub_disk_open): Migrate code from to using grub_get_time_ms().
12735 (grub_disk_close): Likewise.
12736
12737 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
12738 (run_menu): Migrate code from to using grub_get_time_ms().
12739
12740 * util/misc.c (grub_get_time_ms): New function.
12741
7f280db5 127422008-08-08 Marco Gerards <marco@gnu.org>
12743
12744 * disk/ata.c (grub_ata_regget): Change return type to
12745 `grub_uint8_t'.
12746 (grub_ata_regget2): Likewise.
12747 (grub_ata_wait_status): New function.
12748 (grub_ata_wait_busy): Removed function, updated all users to use
12749 `grub_ata_wait_status'.
12750 (grub_ata_wait_drq): Likewise.
12751 (grub_ata_cmd): New function.
12752 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
12753 error handling.
12754 (grub_ata_pio_write): Add error handling.
12755 (grub_atapi_identify): Likewise.
12756 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
12757 handling.
12758 (grub_ata_identify): Use `grub_ata_cmd' and improve error
12759 handling. Actually use the detected registers. Reorder the
12760 detection logic such that it is easier to read.
12761 (grub_ata_pciinit): Do not assign the same ID to each controller.
12762 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
12763 handling.
12764 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
12765
12766 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
12767
1fbc5e66 127682008-08-08 Marco Gerards <marco@gnu.org>
12769
12770 * NEWS: Update.
12771
819ce6c0 127722008-08-07 Bean <bean123ch@gmail.com>
12773
12774 * include/grub/x86_64/pci.h: New file.
12775
5c41d44d 127762008-08-07 Christian Franke <franke@computer.org>
12777
12778 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
12779 (TIMER2_GATE): Likewise.
12780 (grub_pit_wait): Add enable/disable of the timer2 gate
12781 bit of port 0x61. This fixes a possible infinite loop.
12782
5ebc275d 127832008-08-07 Bean <bean123ch@gmail.com>
12784
12785 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
12786 kern/i386/tsc.c and kern/i386/pit.c.
12787
12788 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
12789 x86_64 platform.
12790
12791 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
12792 <grub/i386/tsc.h>.
12793
12794 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
12795
e383b3d0 127962008-08-07 Bean <bean123ch@gmail.com>
12797
12798 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
12799
12800 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
12801
12802 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
12803 multiple inclusion. Add #include <grub/types.h>.
12804
1cbb58ac 128052008-08-06 Christian Franke <franke@computer.org>
12806
12807 * conf/common.rmk: Build and install `10_windows'.
12808 * util/grub.d/10_windows.in: New script.
12809
337f5a1e 128102008-08-06 Pavel Roskin <proski@gnu.org>
12811
12812 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
12813
057bc4ac 128142008-08-06 Robert Millan <rmh@aybabtu.com>
12815
12816 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
12817 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
12818
2b99f123 128192008-08-06 Bean <bean123ch@gmail.com>
12820
12821 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
12822 (grub_pxefs_fs_int): Remove dummy definition.
12823 (grub_pxefs_open): Use data->block_size to store the current block
12824 size setting.
12825 (grub_pxefs_read): Use block size stored in data->block_size. As the
12826 value of grub_pxe_blksize can be changed after the file is opened.
12827
9f0234cb 128282008-08-06 Bean <bean123ch@gmail.com>
12829
12830 * fs/i386/pc/pxe.c (curr_file): new variable.
12831 (grub_pxefs_open): Simply the handling of pxe file system. Don't
12832 require the dummy internal file system anymore.
12833 (grub_pxefs_read): Removed.
12834 (grub_pxefs_close): Likewise.
12835 (grub_pxefs_fs_int): Likewise.
12836 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
12837 connection when we switch file.
12838 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
12839
a55d42e0 128402008-08-06 Robert Millan <rmh@aybabtu.com>
12841
12842 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
12843 `halt.mod'.
12844 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
12845 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
12846
12847 * kern/i386/halt.c: New file.
12848 * kern/i386/reboot.c: Likewise.
12849 * include/grub/i386/reboot.h: Likewise.
12850 * include/grub/i386/halt.h: Likewise.
12851
12852 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
12853 Include `<grub/cpu/halt.h>'.
12854 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
12855 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
12856
12857 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
12858 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
12859 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
12860 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
12861 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
12862 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
12863 from here ...
12864 * include/grub/i386/at_keyboard.h: ... to here.
12865
24371d26 128662008-08-05 Robert Millan <rmh@aybabtu.com>
12867
12868 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
12869 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
12870 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
12871 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
12872 `kern/generic/millisleep.c'.
12873
12874 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
12875 instead of grub_get_rtc().
12876 (grub_tsc_init): Initialize `tsc_boot_time'.
12877
12878 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
12879 (grub_machine_init): Use grub_tsc_init() rather than
12880 installing an RTC-based handler via grub_install_get_time_ms().
12881
12882 * kern/i386/pit.c: New file.
12883 * include/grub/i386/pit.h: Likewise.
12884
9e7007b3 128852008-08-05 Bean <bean123ch@gmail.com>
12886
12887 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
12888
12889 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
12890 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
12891 (pxe_mod_SOURCES): New macro.
12892 (pxe_mod_CFLAGS): Likewise.
12893 (pxe_mod_LDFLAGS): Likewise.
12894 (pxecmd_mod_SOURCES): Likewise.
12895 (pxecmd_mod_CFLAGS): Likewise.
12896 (pxecmd_mod_LDFLAGS): Likewise.
12897
12898 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
12899 (grub_pxe_call): Likewise.
12900
12901 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
12902
12903 * commands/i386/pc/pxecmd.c: New file.
12904
9f0234cb 12905 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 12906
12907 * include/grub/i386/pc/pxe.h: Likewise.
12908
6977d49f 129092008-08-05 Bean <bean123ch@gmail.com>
12910
12911 * util/console.c (grub_console_cur_color): New variable.
12912 (grub_console_standard_color): Likewise.
12913 (grub_console_normal_color): Likewise.
12914 (grub_console_highlight_color): Likewise.
12915 (color_map): Likewise.
12916 (use_color): Likewise.
12917 (NUM_COLORS): New macro.
12918 (grub_ncurses_setcolorstate): Handle color properly.
12919 (grub_ncurses_setcolor): Don't change color here, just remember the
12920 settings, color will be set in grub_ncurses_setcolorstate.
12921 (grub_ncurses_getcolor): New function.
12922 (grub_ncurses_init): Initialize color pairs.
12923 (grub_ncurses_term): New member grub_ncurses_getcolor.
12924
9c2ff3ee 129252008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 12926
9c2ff3ee 12927 High resolution timer support. Implemented for x86 CPUs using TSC.
12928 Extracted generic grub_millisleep() so it's linked in only as needed.
12929 This requires a Pentium compatible CPU; if the RDTSC instruction is
12930 not supported, then it falls back on the generic grub_get_time_ms()
12931 implementation that uses the machine's RTC.
12932
12933 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
12934 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
12935 `kern/generic/millisleep.c'.
12936
12937 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
12938 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
12939
12940 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
12941 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
12942
12943 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
12944
12945 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
12946 `kern/generic/millisleep.c'.
12947
12948 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
12949
12950 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
12951
12952 * kern/generic/rtc_get_time_ms.c: New file.
12953
12954 * kern/generic/millisleep.c: New file.
337f5a1e 12955
9c2ff3ee 12956 * kern/misc.c: Don't include
12957 <kern/time.h> anymore.
12958 (grub_millisleep_generic): Removed.
12959
12960 * commands/sleep.c (grub_interruptible_millisleep): Uses
12961 grub_get_time_ms() instead of grub_get_rtc().
12962
12963 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
12964 function.
12965 (grub_cpu_is_cpuid_supported): New inline function.
12966 (grub_cpu_is_tsc_supported): New inline function.
12967 (grub_tsc_init): New function prototype.
12968 (grub_tsc_get_time_ms): New function prototype.
12969
12970 * kern/i386/tsc.c (grub_get_time_ms): New file.
12971
12972 * include/grub/time.h: Include <grub/types.h.
12973 (grub_millisleep_generic): Removed.
12974 (grub_get_time_ms): New prototype.
12975 (grub_install_get_time_ms): New prototype.
12976 (grub_rtc_get_time_ms): New prototype.
12977
12978 * kern/time.c (grub_get_time_ms): New function.
12979 (grub_install_get_time_ms): New function.
12980
12981 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
12982 <grub/time.h> anymore.
12983 (grub_millisleep): Removed.
12984 (grub_machine_init): Call grub_tsc_init.
12985
12986 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
12987 get_time_ms() implementation.
12988
12989 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
12990 (ieee1275_get_time_ms): New function.
12991 (grub_machine_init): Install get_time_ms() implementation.
12992
12993 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
12994 (grub_machine_init): Call grub_tsc_init().
12995 (grub_millisleep): Removed.
bf06a93f 12996
9c2ff3ee 12997 * kern/ieee1275/init.c (grub_millisleep): Removed.
12998 (grub_machine_init): Install ieee1275_get_time_ms()
12999 implementation.
13000 (ieee1275_get_time_ms): New function.
13001 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
13002 real work.
13003
9ec92aaf 130042008-08-05 Marco Gerards <marco@gnu.org>
13005
13006 * disk/ata.c: Include <grub/pci.h>.
13007 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
13008 (grub_ata_initialize): Rewritten.
13009 (grub_ata_device_initialize): New function.
13010
8d23f507 130112008-08-04 Pavel Roskin <proski@gnu.org>
13012
13013 * kern/main.c: Include grub/mm.h.
13014
5e15ee3d 130152008-08-04 Robert Millan <rmh@aybabtu.com>
13016
13017 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
13018 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
13019 corruption problem).
13020
a9053f8f 130212008-08-04 Robert Millan <rmh@aybabtu.com>
13022
13023 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
13024 warnings introduced in my last commit.
13025
dd19c7d7 130262008-08-03 Robert Millan <rmh@aybabtu.com>
13027
13028 Make PCI available on all i386 architectures.
13029
13030 * include/grub/i386/pc/pci.h: Move from here ...
13031 * include/grub/i386/pci.h: ... to here.
13032
13033 * include/grub/i386/pc/pci.h: Remove.
13034 * include/grub/i386/efi/pci.h: Remove.
13035 * include/grub/x86_64/efi/pci.h: Remove.
13036
13037 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
13038 `<grub/cpu/pci.h>'.
13039
13040 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
13041 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
13042 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
13043
13044 * conf/i386-ieee1275.rmk: Likewise.
13045
e14a6184 130462008-08-03 Robert Millan <rmh@aybabtu.com>
13047
13048 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
13049 (grub_console_setcursor): Make it possible to set cursor off.
13050
52768e37 130512008-08-03 Robert Millan <rmh@aybabtu.com>
13052
13053 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
13054 of modules instead of assuming which platform provides what.
13055 * util/update-grub.in: Likewise.
13056
2d52f57f 130572008-08-03 Robert Millan <rmh@aybabtu.com>
13058
13059 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
13060 instead of `grub_install_dos_part' to determine whether a drive needs
13061 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 13062 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 13063
2a5cd121 130642008-08-02 Robert Millan <rmh@aybabtu.com>
13065
13066 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
13067
93808428 130682008-08-02 Robert Millan <rmh@aybabtu.com>
13069
13070 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
13071 of informational grub_dprintf() calls.
13072
3bd0a12a 130732008-08-02 Robert Millan <rmh@aybabtu.com>
13074
13075 * disk/memdisk.c (memdisk_size): Don't initialize.
13076 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
13077
13078 * include/grub/i386/pc/kernel.h
13079 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
13080 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
13081 (grub_memdisk_image_size, grub_arch_memdisk_addr)
13082 (grub_arch_memdisk_size): Remove.
13083
13084 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
13085 field (was only used to transfer a constant). Add `type' field to
13086 support multiple module types.
13087 (grub_module_iterate): New function.
13088
13089 * kern/device.c (grub_device_open): Do not hide error messages
13090 when grub_disk_open() fails. Use grub_print_error() instead.
13091
13092 * kern/i386/pc/init.c (grub_arch_modules_addr)
13093 (grub_arch_memdisk_size): Remove functions.
13094 (grub_arch_modules_addr): Return the module address in high memory
13095 (now that it isn't copied anymore).
13096
13097 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
13098 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
13099 decompression routine (grub_total_module_size already includes that
13100 now). Don't copy modules back to low memory.
13101
13102 * kern/main.c: Include `<grub/mm.h>'.
13103 (grub_load_modules): Split out (and use) ...
13104 (grub_module_iterate): ... this function, which iterates through
13105 module objects and runs a hook.
13106 Comment out grub_mm_init_region() call, as it would cause non-ELF
13107 modules to be overwritten.
13108
13109 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
13110 the memdisk image in its own region, make it part of the module list.
13111 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
13112 (main): Parse --memdisk|-m option, and pass user-provided path as
13113 parameter to generate_image().
13114 (add_segments): Pass `memdisk_path' down to load_modules().
13115 (load_modules): Embed memdisk image in module section when requested.
13116 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
13117 `header.type' instead of `header.offset'.
13118
13119 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
13120 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
13121 (memdisk_mod_LDFLAGS): New variables.
13122 * conf/i386-coreboot.rmk: Likewise.
13123 * conf/i386-ieee1275.rmk: Likewise.
13124
a927cc73 131252008-08-02 Robert Millan <rmh@aybabtu.com>
13126
13127 * loader/i386/pc/multiboot.c (playground, forward_relocator)
13128 (backward_relocator): New variables. Used to allocate and relocate
13129 the payload, respectively.
13130 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 13131 address, install the appropriate relocator code in each bound of
a927cc73 13132 the payload, and set the entry point such that
13133 grub_multiboot_real_boot() will jump to one of them.
13134
13135 * kern/i386/loader.S (grub_multiboot_payload_size)
13136 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
13137 (grub_multiboot_payload_entry_offset): New variables.
13138 (grub_multiboot_real_boot): Set cpu context to what the relocator
13139 expects, and jump to the relocator instead of the payload.
13140
13141 * include/grub/i386/loader.h (grub_multiboot_payload_size)
13142 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
13143 (grub_multiboot_payload_entry_offset): Export.
13144
b15d8a0c 131452008-08-01 Bean <bean123ch@gmail.com>
13146
13147 * normal/menu_entry.c (editor_getline): Don't return the original
13148 string as result, as it will be released by lexer once it has done
13149 using it.
13150
cdfb3d22 131512008-08-01 Robert Millan <rmh@aybabtu.com>
13152
13153 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
13154 within menuentries, not before them.
13155 util/grub.d/10_hurd.in: Likewise.
13156
9175e93d 131572008-08-01 Bean <bean123ch@gmail.com>
13158
13159 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
13160 (bufio_mod_SOURCES): New macro.
13161 (bufio_mod_CFLAGS): Likewise.
13162 (bufio_mod_LDFLAGS): Likewise.
13163
13164 * include/grub/bufio.h: New file.
13165
13166 * io/bufio.c: Likewise.
13167
13168 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
13169 (grub_video_reader_png): Use grub_buffile_open to open file.
13170
13171 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
13172 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
13173
13174 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
13175 (grub_video_reader_tga): Use grub_buffile_open to open file.
13176
13177 * font/manager.c: Include <grub/bufio.h>.
13178 (add_font): Use grub_buffile_open to open file.
13179
3d8383e7 131802008-07-31 Robert Millan <rmh@aybabtu.com>
13181
13182 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
13183 ELF segments, use a macro for arbitrarily accessing any of them instead
13184 of preparing a pointer that allows access to one at a time.
13185 (grub_multiboot_load_elf64): Likewise.
13186
16e641b6 131872008-07-31 Bean <bean123ch@gmail.com>
13188
13189 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
13190 GRUB_KERNEL_MACHINE_DATA_END.
13191
59198b72 131922008-07-30 Robert Millan <rmh@aybabtu.com>
13193
13194 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
13195 Increase from 0x50 to 0x60.
13196 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
13197 use UUIDs to identify the root drive for them. If that's not
13198 possible, abort.
13199 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
13200 check, for cross-disk installs.
13201
ae88bca3 132022008-07-30 Robert Millan <rmh@aybabtu.com>
13203
13204 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
13205 is non-empty, use it to set the `prefix' environment variable instead
13206 of the usual approach.
13207 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
13208 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
13209 environment variable instead of dummy make_install_device().
13210
13211 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
13212 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 13213 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 13214
13215 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
13216 New variable reference.
13217 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
13218 New macro. Defines offset of `grub_prefix' within startup.S (relative
13219 to `start').
13220 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
13221 section within startup.S (relative to `start').
13222 * include/grub/i386/coreboot/kernel.h: Likewise.
13223
13224 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
13225 Overwrite grub_prefix with its contents, at the beginning of the
13226 first segment.
13227 (main): Understand -p|--prefix.
13228
14f41dd1 132292008-07-30 Robert Millan <rmh@aybabtu.com>
13230
13231 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
13232
4ca049a3 132332008-07-30 Robert Millan <rmh@aybabtu.com>
13234
13235 * term/i386/pc/vga_text.c (grub_console_cls): Use
13236 grub_console_gotoxy() to go back to beginning of the screen.
13237 Found by Patrick Georgi <patrick.georgi@coresystems.de>
13238
2921d337 132392008-07-29 Christian Franke <franke@computer.org>
13240
13241 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
13242 Add conversion of emulated mount points on Cygwin.
13243
b609876d 132442008-07-29 Christian Franke <franke@computer.org>
13245
13246 * util/update-grub.in: Add a check for admin
13247 group on Cygwin.
13248 Remove old `grub.cfg.new' before creation.
13249 Add `-f' to `mv' to handle the different filesystem
13250 semantics of Windows.
13251
e93e4679 132522008-07-29 Bean <bean123ch@gmail.com>
13253
13254 * normal/main.c (get_line): Fix buffer overflow bug.
13255
41694fd0 132562008-07-28 Robert Millan <rmh@aybabtu.com>
13257
13258 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
13259 (struct grub_apple_header): New struct. Describes the layout of
13260 the partmap header.
13261 (apple_partition_map_iterate): Check the header magic as well as the
13262 partition magic (which was already being checked).
13263
cfd0b4e6 132642008-07-28 Pavel Roskin <proski@gnu.org>
13265
13266 * genmk.rb: Add a warning to the beginning of the output that
13267 it's a generated file and should not be edited.
13268
93cce016 132692008-07-28 Robert Millan <rmh@aybabtu.com>
13270
13271 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
13272 with the same number are found, just use issue a warning with
13273 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 13274
cd1df915 132752008-07-27 Robert Millan <rmh@aybabtu.com>
13276
13277 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
13278 information.
13279
b70a8427 132802008-07-27 Bean <bean123ch@gmail.com>
13281
13282 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
13283 (grub_fat_find_dir): Ignore case when comparing filename.
13284
8f5e379f 132852008-07-27 Bean <bean123ch@gmail.com>
13286
13287 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
13288 smallino, as it's more descriptive, and i8count can be confused with
13289 the other field count.
13290 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
13291 inode type.
13292
a85cd5a0 132932008-07-27 Bean <bean123ch@gmail.com>
13294
13295 * commands/crc.c: New file.
13296
13297 * lib/crc.c: Likewise.
13298
13299 * include/grub/lib/crc.h: Likewise.
13300
13301 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
13302
13303 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
13304 (hexdump): Move this function to ...
13305
13306 * lib/hexdump.c: ... here.
13307
13308 * include/grub/hexdump.h: Renamed to ...
13309
13310 * include/grub/lib/hexdump.h: ... this.
13311
13312 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
13313
13314 * util/grub-editenv.c: Likewise.
13315
13316 * include/envblk.h: Renamed to ...
13317
13318 * include/lib/envblk.h: ... this.
13319
13320 * util/envblk.c: Renamed to ...
13321
13322 * lib/envblk.c: ... this.
13323
13324 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
13325 lib/hexdump.c.
13326 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
13327 (pkglib_MODULES): Add crc.mod.
13328 (hexdump_mod_SOURCES): Add lib/hexdump.c.
13329 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
13330 (crc_mod_SOURCES): New macro.
13331 (crc_mod_CFLAGS): Likewise.
13332 (crc_mod_LDFLAGS): Likewise.
13333
13334 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
13335
13336 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13337
13338 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13339
13340 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13341
13342 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13343
c298def0 133442008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 13345
13346 * commands/help.c: Include <grub/term.h>.
13347 (TERM_WIDTH): Removed. Updated all users.
13348
cc349fb3 133492008-07-27 Pavel Roskin <proski@gnu.org>
13350
13351 * util/getroot.c (find_root_device): Rephrase a comment to avoid
13352 spurious warnings about a comment within a comment.
13353
9051607e 133542008-07-25 Robert Millan <rmh@aybabtu.com>
13355
13356 * util/getroot.c (find_root_device): Skip devices that match
13357 /dev/dm-[0-9]. This lets the real device be found for any type of
13358 abstraction (LVM, EVMS, RAID..).
13359 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
13360 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
13361 device is found first, find_root_device() will now skip it.
13362
01453bfc 133632008-07-24 Pavel Roskin <proski@gnu.org>
13364
13365 * include/grub/types.h: Use __builtin_bswap32() and
13366 __builtin_bswap64() with gcc 4.3 and newer.
13367
6af9849f 133682008-07-24 Christian Franke <franke@computer.org>
13369
3a0fa256 13370 * util/i386/pc/grub-install.in: If `--debug' is specified,
13371 pass `--verbose' to grub-setup.
13372 Abort script if make_system_path_relative_to_its_root() fails.
13373
7810e747 133742008-07-24 Bean <bean123ch@gmail.com>
13375
13376 * configure.ac: Fixed a bug caused by the previous cygwin patch,
13377 variable `target_platform' should be `platform'.
13378
42290e17 133792008-07-24 Bean <bean123ch@gmail.com>
13380
51cc5193 13381 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 13382 (grub_png_init_fixed_block): New function.
13383 (grub_png_decode_image_data): Handle fixed huffman code compression.
13384
2a8a80e4 133852008-07-24 Bean <bean123ch@gmail.com>
13386
13387 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
13388 (grub_pe2elf_SOURCES): New macro.
13389 (CLEANFILES): Add grub-pe2elf.
13390
13391 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
13392 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
13393 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
13394 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
13395 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
13396 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
13397 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
13398 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
13399 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
13400 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
13401 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
13402 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
13403 (GRUB_PE32_DT_FUNCTION): Likewise.
13404 (GRUB_PE32_REL_I386_DIR32): Likewise.
13405 (GRUB_PE32_REL_I386_REL32): Likewise.
13406 (grub_pe32_symbol): New structure.
13407 (grub_pe32_reloc): Likewise.
13408
13409 * util/grub-pe2elf.c: New file.
13410
13411 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
13412 start symbol in non pc platform.
13413
13414 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
13415
13416 The following patches are from Christian Franke.
13417
13418 * include/grub/dl.h: Remove .previous, gas supports this only
13419 for ELF format.
13420
13421 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
13422 Remove .type, gas supports this only for ELF format.
13423
13424 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
13425 nullbytes in symbol table. This fixes an infinite loop if table is
13426 zero filled.
13427
13428 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
13429 TARGET_IMG_LDFLAGS and EXEEXT.
13430
13431 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
13432 TARGET_IMG_LDFLAGS_AC.
13433 (grub_CHECK_STACK_ARG_PROBE): New function.
13434
13435 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
13436
13437 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
13438
13439 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
13440 to set TARGET_IMG_LD* accordingly.
13441 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
13442 Add call to grub_CHECK_STACK_ARG_PROBE.
13443 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
13444
13445 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
13446
13447 * genmk.rb: Add EXEEXT to CLEANFILES.
13448
12ccdb75 134492008-07-23 Robert Millan <rmh@aybabtu.com>
13450
13451 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
13452 define the codes for arrows and lines used for the menu).
13453 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
13454 as well.
13455
13456 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
13457 fonts, because the latter are too slow.
13458
18eeaf04 134592008-07-21 Bean <bean123ch@gmail.com>
13460
13461 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
13462 a20. Run keyboard test last, as it will cause macbook to halt.
13463
b095e2ad 134642008-07-18 Pavel Roskin <proski@gnu.org>
13465
13466 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
13467 load foreign architecture modules correctly anyway. Keep
13468 support for loading host architecture modules, whether we
13469 compile them or not.
13470
737feb35 134712008-07-17 Pavel Roskin <proski@gnu.org>
13472
3f4ce737 13473 * configure.ac: Use -m32 or -m64 regardless of whether we had to
13474 change target_cpu. The compiler default can mismatch target_cpu
13475 in any case.
13476
4ad2d049 13477 * disk/efi/efidisk.c: Fix format warnings on x86_64.
13478 * kern/efi/efi.c: Likewise.
13479
f6130a12 13480 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
13481 target compiler is functional.
13482 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
13483 are set up.
13484
58393a2d 13485 * configure.ac: Default to efi platform for x86_64-apple. Allow
13486 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
13487 adjustments from the rest, only do them if target is not
13488 explicitly given. Merge other adjustments with the final sanity
13489 check. Remove an extraneous check for supported CPU. Be
13490 specific which CPU and which platform is not supported.
13491
737feb35 13492 * configure.ac: Default to pc platform for x86_64.
13493
546f966a 134942008-07-17 Robert Millan <rmh@aybabtu.com>
13495
13496 Partial LinuxBIOS -> Coreboot rename.
13497
13498 * conf/i386-linuxbios.rmk: Renamed to ...
13499 * conf/i386-coreboot.rmk: ... this.
13500 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
13501 * configure.ac: Accept "coreboot" as input platform (but maintain
13502 compatibility with "linuxbios").
13503 * include/grub/i386/linuxbios: Renamed to ...
13504 * include/grub/i386/coreboot: ... this.
13505
20011694 135062008-07-17 Bean <bean123ch@gmail.com>
13507
13508 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 13509 (appleldr_mod_SOURCE): New variable.
20011694 13510 (appleldr_mod_CFLAGS): Likewise.
13511 (appleldr_mod_LDFLAGS): Likewise.
13512 (pci_mod_SOURCES): Likewise.
13513 (pci_mod_CFLAGS): Likewise.
13514 (pci_mod_LDFLAGS): Likewise.
13515 (lspci_mod_SOURCES): Likewise.
13516 (lspci_mod_CFLAGS): Likewise.
13517 (lspci_mod_LDFLAGS): Likewise.
13518
13519 * conf/x86_64-efi.rmk: New file.
13520
13521 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
13522 macro.
13523 (grub_efidisk_write): Likewise.
13524
13525 * include/efi/api.h (efi_call_0): New macro.
13526 (efi_call_1): Likewise.
13527 (efi_call_2): Likewise.
13528 (efi_call_3): Likewise.
13529 (efi_call_4): Likewise.
13530 (efi_call_5): Likewise.
13531 (efi_call_6): Likewise.
13532
13533 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
13534 grub_rescue_cmd_chainloader.
13535
13536 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
13537 (grub_pe32_optional_header): Change some fields based on i386 or
13538 x86_64 platform.
13539 (GRUB_PE32_PE32_MAGIC): Likewise.
13540
13541 * include/grub/efi/uga_draw.h: New file.
13542
13543 * include/grub/elf.h (STN_ABS): New constant.
13544 (R_X86_64_NONE): Relocation constant for x86_64.
13545 (R_X86_64_64): Likewise.
13546 (R_X86_64_PC32): Likewise.
13547 (R_X86_64_GOT32): Likewise.
13548 (R_X86_64_PLT32): Likewise.
13549 (R_X86_64_COPY): Likewise.
13550 (R_X86_64_GLOB_DAT): Likewise.
13551 (R_X86_64_JUMP_SLOT): Likewise.
13552 (R_X86_64_RELATIVE): Likewise.
13553 (R_X86_64_GOTPCREL): Likewise.
13554 (R_X86_64_32): Likewise.
13555 (R_X86_64_32S): Likewise.
13556 (R_X86_64_16): Likewise.
13557 (R_X86_64_PC16): Likewise.
13558 (R_X86_64_8): Likewise.
13559 (R_X86_64_PC8): Likewise.
13560
13561 * include/grub/i386/efi/pci.h: New file.
13562
13563 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
13564 Change it value based on platform.
13565 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
13566 (GRUB_E820_RAM): Likewise.
13567 (GRUB_E820_RESERVED): Likewise.
13568 (GRUB_E820_ACPI): Likewise.
13569 (GRUB_E820_NVS): Likewise.
13570 (GRUB_E820_EXEC_CODE): Likewise.
13571 (GRUB_E820_MAX_ENTRY): Likewise.
13572 (grub_e820_mmap): New structure.
13573 (linux_kernel_header): Change the efi field according to different
13574 kernel version, also field from linux_kernel_header.
13575
13576 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
13577
13578 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
13579 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
13580 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
13581 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
13582 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
13583 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
13584 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
13585 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
13586 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
13587 (GRUB_PCI_ADDR_IO_MASK): Likewise.
13588
13589 * include/grub/x86_64/efi/kernel.h: New file.
13590
13591 * include/grub/x86_64/efi/loader.h: Likewise.
13592
13593 * include/grub/x86_64/efi/machine.h: Likewise.
13594
13595 * include/grub/x86_64/efi/pci.h: Likewise.
13596
13597 * include/grub/x86_64/efi/time.h: Likewise.
13598
13599 * include/grub/x86_64/linux.h: Likewise.
13600
13601 * include/grub/x86_64/setjmp.h: Likewise.
13602
13603 * include/grub/x86_64/time.h: Likewise.
13604
13605 * include/grub/x86_64/types.h: Likewise.
13606
13607 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
13608 GRUB_TARGET_SIZEOF_VOID_P.
13609
13610 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
13611 (grub_efi_locate_handle): Likewise.
13612 (grub_efi_open_protocol): Likewise.
13613 (grub_efi_set_text_mode): Likewise.
13614 (grub_efi_stall): Likewise.
13615 (grub_exit): Likewise.
13616 (grub_reboot): Likewise.
13617 (grub_halt): Likewise.
13618 (grub_efi_exit_boot_services): Likewise.
13619 (grub_get_rtc): Likewise.
13620
13621 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
13622 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
13623 (grub_efi_allocate_pages): Wrap efi calls.
13624 (grub_efi_free_pages): Wrap efi calls.
13625 (grub_efi_get_memory_map): Wrap efi calls.
13626
13627 * kern/x86_64/dl.c: New file.
13628
13629 * kern/x86_64/efi/callwrap.S: Likewise.
13630
13631 * kern/x86_64/efi/startup.S: Likewise.
13632
13633 * loader/efi/appleloader.c: Likewise.
13634
13635 * loader/efi/chainloader.c (cmdline): New variable.
13636 (grub_chainloader_unload): Wrap efi calls.
13637 (grub_chainloader_boot): Likewise.
13638 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
13639 command line.
13640
13641 * loader/efi/chainloader_normal.c (chainloader_command):
13642 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
13643 command line.
13644
13645 * loader/i386/efi/linux.c (allocate_pages): Change allocation
13646 method.
13647 (grub_e820_add_region): New function.
13648 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
13649 booting.
13650 (grub_find_video_card): New function.
13651 (grub_linux_setup_video): New function.
13652 (grub_rescue_cmd_linux): Probe for video information.
13653
13654 * normal/x86_64/setjmp.S: New file.
13655
13656 * term/efi/console.c (map_char): New function.
13657 (grub_console_putchar): Map unicode char.
13658 (grub_console_checkkey): Wrap efi calls.
13659 (grub_console_getkey): Likewise.
13660 (grub_console_getwh): Likewise.
13661 (grub_console_gotoxy): Likewise.
13662 (grub_console_cls): Likewise.
13663 (grub_console_setcolorstate): Likewise.
13664 (grub_console_setcursor): Likewise.
13665
13666 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
13667
59652a20 136682008-07-16 Pavel Roskin <proski@gnu.org>
13669
ef294055 13670 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
13671 format strings.
13672
59652a20 13673 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
13674 pointer, not an integer. This fixes a warning and prevents
13675 precision loss on 64-bit systems.
13676 (relocate_addresses): Remove unneeded cast.
13677
afc3b5d7 136782008-07-15 Pavel Roskin <proski@gnu.org>
13679
506b2b3e 13680 * kern/i386/ieee1275/init.c: Include grub/cache.h.
13681
62ead89c 13682 * term/ieee1275/ofconsole.c: Disable code unused on i386.
13683
c4cd51d7 13684 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
13685 Fix comparison between signed and unsigned.
13686
0d3d8f28 13687 * include/grub/i386/ieee1275/console.h: Declare
13688 grub_console_init() and grub_console_fini().
13689
8804b286 13690 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
13691 It's empty and unused.
13692
ee01cf35 13693 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
13694 beginning to avoid warnings with some compilers.
13695
afc3b5d7 13696 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
13697 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
13698
e4e8eaa5 136992008-07-14 Pavel Roskin <proski@gnu.org>
13700
407aceb4 13701 * kern/env.c (grub_register_variable_hook): Don't copy empty
13702 string, it leaks memory. Pass "" to grub_env_set(), it should
13703 handle constant strings.
13704
e4e8eaa5 13705 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
13706 * commands/cmp.c (grub_cmd_cmp): Likewise.
13707 * kern/dl.c (grub_dl_flush_cache): Likewise.
13708 (grub_dl_load_core): Likewise.
13709 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
13710 (grub_elf64_load_phdrs): Likewise.
13711
d4e2dad3 137122008-07-13 Pavel Roskin <proski@gnu.org>
13713
13714 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
13715 between signed and unsigned.
13716 (LzmaEnc_Finish): Fix warning about an unused parameter.
13717
aa24b516 137182008-07-13 Bean <bean123ch@gmail.com>
13719
13720 * Makefile.in (enable_lzo): New rule.
13721
13722 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
13723
13724 * configure.ac (ENABLE_LZO): New option --enable-lzo.
13725
13726 * boot/i386/pc/lnxboot.S: #include <config.h>.
13727
13728 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 13729 its value according to the compression algorithm used, lzo or lzma.
aa24b516 13730
13731 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
13732 compression algorithm according to configure macro.
13733
13734 * kern/i386/pc/startup.S (codestart): Likewise.
13735
13736 * kern/i386/pc/lzma_decode.S: New file.
13737
13738 * include/grub/lib/LzFind.h: Likewise.
13739
13740 * include/grub/lib/LzHash.h: Likewise.
13741
13742 * include/grub/lib/LzmaDec.h: Likewise.
13743
13744 * include/grub/lib/LzmaEnc.h: Likewise.
13745
13746 * include/grub/lib/LzmaTypes.h: Likewise.
13747
13748 * lib/LzFind.c: Likewise.
13749
13750 * lib/LzmaDec.c: Likewise.
13751
13752 * lib/LzmaEnc.c: Likewise.
13753
4ae821ac 137542008-07-13 Bean <bean123ch@gmail.com>
13755
13756 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
13757 (grub_ext4_extent_header): New structure.
13758 (grub_ext4_extent): Likewise.
13759 (grub_ext4_extent_idx): Likewise.
13760 (grub_ext4_find_leaf): New function.
13761 (grub_ext2_read_block): Handle extents.
13762
9a745147 137632008-07-12 Robert Millan <rmh@aybabtu.com>
13764
13765 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
13766
d49a4cf6 137672008-07-11 Robert Millan <rmh@aybabtu.com>
13768
13769 * util/grub.d/40_custom.in: New file. Example on how to add custom
13770 entries to /etc/grub.d.
13771 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
13772 40_custom (implicitly, by merging all the grub.d rules).
13773
947414b4 137742008-07-11 Pavel Roskin <proski@gnu.org>
13775
0059cf6f 13776 * commands/read.c (grub_getline): Fix invalid memory access.
13777 Don't add newline to the variable value.
13778
947414b4 13779 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
13780 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
13781 (serial_hw_get_port): Check validity of the port number.
13782 (grub_cmd_serial): Check return value of serial_hw_get_port().
13783
62a02d00 137842008-07-07 Pavel Roskin <proski@gnu.org>
13785
13786 * boot/i386/pc/diskboot.S (notification_string): Replace
13787 "Loading kernel" with just "loading". This is shorter, less
13788 confusing and saves a few bytes for possible future changes.
13789
3e5581b0 137902008-07-05 Pavel Roskin <proski@gnu.org>
13791
ea387a48 13792 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
13793 size for ATAPI devices, they are undefined. Output sector
13794 number in decimal form.
13795
3e5581b0 13796 * disk/ata.c: Use named constants for status bits.
13797
fdecb8fd 137982008-07-04 Pavel Roskin <proski@gnu.org>
13799
bcd35b90 13800 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
13801 grub_addr_t before casting it to the void pointer to fix a
13802 warning. Non-addressable regions are discarded earlier.
13803 (grub_arch_modules_addr): Cast _end to grub_addr_t.
13804 * kern/i386/linuxbios/table.c: Include grub/misc.h.
13805 (check_signature): Don't shadow table_header.
13806 (grub_linuxbios_table_iterate): Cast numeric constants to
13807 grub_linuxbios_table_header_t.
13808 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
13809 grub_stop().
13810
af58ab3d 13811 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
13812 prevent warnings.
13813
1759aa57 13814 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
13815 pointer, which can cause warnings. Support 64-bit addresses.
13816
fdecb8fd 13817 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
13818 of sizeof(long). This fixes PowerPC image generation on x86_64.
13819
8516d2a8 138202008-07-04 Robert Millan <rmh@aybabtu.com>
13821
13822 This fixes a performance issue when pc & gpt partmap iterators
13823 didn't abort iteration even after our hook found what it was
fe987087 13824 looking for (often causing expensive probes of non-existent drives).
8516d2a8 13825
13826 Some callers relied on previous buggy behaviour, since they would
34c44600 13827 raise an error when their own hooks caused early abortion of its
8516d2a8 13828 iteration.
13829
13830 * kern/device.c (grub_device_open): Improve error message.
13831 * disk/lvm.c (grub_lvm_open): Likewise.
13832 * disk/raid.c (grub_raid_open): Likewise.
13833
13834 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
13835 when hook requests it, independently of grub_errno.
13836 (pc_partition_map_probe): Do not fail when find_func() caused
13837 early abortion of pc_partition_map_iterate().
13838
13839 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
13840 when hook requests it, independently of grub_errno.
13841 (gpt_partition_map_probe): Do not fail when find_func() caused
13842 early abortion of gpt_partition_map_iterate().
13843
13844 * kern/partition.c (grub_partition_iterate): Abort parent iteration
13845 when hook requests it, independently of grub_errno. Do not fail when
13846 part_map_iterate_hook() caused early abortion of p->iterate().
13847
13848 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
13849 when grub_partition_iterate() returned with non-zero.
13850
277d0de9 138512008-07-03 Pavel Roskin <proski@gnu.org>
13852
13853 * disk/ata.c (grub_ata_pio_write): Check status before writing,
13854 like we do in grub_ata_pio_read().
13855 (grub_ata_readwrite): Always write individual sectors. Fix the
13856 sector count for the remainder.
13857 (grub_ata_write): Enable writing to ATA devices. Correctly
13858 report error for ATAPI devices.
13859
d4c9b428 138602008-07-02 Pavel Roskin <proski@gnu.org>
13861
e43fc690 13862 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
13863 warning.
13864
f707af42 13865 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
13866 for every read sector, we already increment it for the whole
13867 batch. This fixes reading more than 256 sectors at once.
13868
11e16b15 13869 * util/grub-editenv.c (cmd_info): Cast argument to long
13870 explicitly. ptrdiff_t reduces to int on i386.
13871
cbabfdd4 13872 * util/grub-editenv.c (main): Be specific which parameter is
13873 missing.
13874
b8fbce0a 13875 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
13876 (memdisk): Make memdisk_orig_addr a pointer.
13877
c9c8e606 13878 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
13879 for file offsets, use grub_off_t instead. Fix printf format
13880 warnings.
13881
ca62e598 13882 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
13883 there. Real unexpected warnings should not drown in the noise
13884 about known problems.
13885
ce8d1766 13886 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
13887 grub_disk_addr_t for memory addresses.
13888
00c7a56a 13889 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
13890 explicitly to fix a warning.
13891
08d3ef09 13892 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
13893
cb71ba20 13894 * Makefile.in (MODULE_LDFLAGS): New variable.
13895 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
13896 the linker accepts --build-id=none.
13897 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
13898 MODULE_LDFLAGS.
13899 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
13900
d4c9b428 13901 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
13902 those in Linux XFS code. Provide a way to access 64-bit parent
13903 inode.
13904 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
13905 the end of struct grub_xfs_dir_header.
13906
d4156eee 139072008-07-02 Bean <bean123ch@gmail.com>
13908
13909 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
13910 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
13911 and GRUB_IEEE1275_FLAG_NO_ANSI.
13912
13913 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
13914 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
13915 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
13916
13917 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
13918 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
13919
13920 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
13921 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
13922
13923 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
13924 esc sequence on non ANSI terminal.
13925 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
13926
13927 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
13928 beginning of file.
13929
2270f77b 139302008-07-02 Bean <bean123ch@gmail.com>
13931
13932 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
13933 (grub_editenv_SOURCES): New variable.
13934 (pkglib_MODULES): Add loadenv.mod.
13935 (loadenv_mod_SOURCES): New variable.
13936 (loadenv_mod_CFLAGS): Likewise.
13937 (loadenv_mod_LDFLAGS): Likewise.
13938
13939 * include/grub/envblk.h: New file.
13940
13941 * util/envblk.c: New file.
13942
13943 * util/grub-editenv.c: New file.
13944
13945 * commands/loadenv.c: New file.
13946
0e9e51ec 139472008-07-01 Pavel Roskin <proski@gnu.org>
13948
d89b7634 13949 * include/multiboot2.h (struct multiboot_tag_module): Use char,
13950 not unsigned char. This fixes warnings and is consistent with
13951 other tags.
13952
bf1835b1 13953 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
13954
8222a04b 13955 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
13956
6a42d99d 13957 * term/tparm.c (analyze): Always set *popcount.
13958
10b159d1 13959 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
13960 cast to fix a warning.
13961
b8789f6c 13962 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
13963 cast to suppress a warning.
13964
29d7e38a 13965 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
13966 grub_fshelp_read_file() expects.
13967
f341f669 13968 * fs/fat.c: Fix UUID calculation on big-endian systems. We
13969 write uuid as a 32-bit value in CPU byte order, so declare and
13970 use it as such.
13971
0e9e51ec 13972 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
13973 long if the format specifier expects it.
13974 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
13975 * partmap/pc.c (pc_partition_map_iterate): Likewise.
13976 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
13977 long to fix a warning.
13978 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
13979 grub_dprintf() arguments to fix warnings.
13980
3aefa857 139812008-06-30 Pavel Roskin <proski@gnu.org>
13982
56c7668b 13983 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
13984 install_bsd_part immediately before core.img is embedded or
13985 modified on disk. This fixes core.img verification if core.img
13986 cannot be embedded.
13987
3aefa857 13988 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
13989 core_path to calculate the blocklist.
13990 Patch from Javier Martín <lordhabbit@gmail.com>
13991
5444088d 139922008-06-29 Robert Millan <rmh@aybabtu.com>
13993
13994 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
13995 block to disk block.
13996 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
13997 Patch from Niels Böhm <bitbucket@arcor.de>
13998
674835c8 139992008-06-29 Robert Millan <rmh@aybabtu.com>
14000
14001 * util/update-grub_lib.in (font_path): Search for fonts in
14002 /boot/grub first, which is more likely to be readable (we aren't
14003 deciding where fonts live, just looking for them).
14004
f527dbc8 140052008-06-26 Pavel Roskin <proski@gnu.org>
14006
6c2d8df6 14007 * util/biosdisk.c (read_device_map): Don't leave dead map
14008 entries for devices failing stat() check.
14009
f527dbc8 14010 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
14011 core_path_dev for the core.img path on the target device.
14012
aebe3d13 140132008-06-26 Robert Millan <rmh@aybabtu.com>
14014
14015 * disk/fs_uuid.c: New file.
14016 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
14017 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
14018 (fs_uuid_mod_LDFLAGS): New variables.
14019 * include/grub/disk.h (grub_disk_dev_id): Add
14020 `GRUB_DISK_DEVICE_UUID_ID'.
14021 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
14022 implement iterate().
14023
37aaf354 140242008-06-26 Robert Millan <rmh@aybabtu.com>
14025
14026 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
14027 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
14028 Linux image includes no initrd.
14029
25ff262a 140302008-06-21 Javier Martín <lordhabbit@gmail.com>
14031
14032 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
14033 call to resolve the core image location that effectively appended the
14034 name twice.
14035
76a2bd44 140362008-06-21 Robert Millan <rmh@aybabtu.com>
14037
14038 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
14039 call from here ...
14040
14041 * util/grub.d/10_hurd.in: ... to here ...
14042 * util/grub.d/10_linux.in: ... and here.
14043
650e1c79 140442008-06-19 Robert Millan <rmh@aybabtu.com>
14045
fe987087 14046 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 14047 after it has been set by grub_machine_set_prefix().
14048
6ce63911 140492008-06-19 Robert Millan <rmh@aybabtu.com>
14050
14051 * commands/search.c (search_label, search_fs_uuid, search_file): Print
14052 search result when not saving to variable, not the other way around.
14053 When saving to variable, abort iteration as soon as a match is found.
14054
73940cec 140552008-06-19 Robert Millan <rmh@aybabtu.com>
14056
14057 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
14058 check for partition that provides /boot/grub. Its logic is flawed,
14059 as it prevents prepare_grub_to_access_device() from being called
14060 multiple times.
14061
3c62a39d 140622008-06-19 Robert Millan <rmh@aybabtu.com>
14063
14064 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
14065 "insmod" command directly when abstraction modules are needed,
fe987087 14066 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 14067 since it had already been processed).
14068
47395a42 140692008-06-19 Pavel Roskin <proski@gnu.org>
14070
14071 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
14072 changed. This is needed in case GRUB_LIBDIR changes.
14073 * conf/i386-ieee1275.rmk: Likewise.
14074 * conf/i386-linuxbios.rmk: Likewise.
14075 * conf/i386-pc.rmk: Likewise.
14076 * conf/powerpc-ieee1275.rmk: Likewise.
14077
a145ac2d 140782008-06-18 Pavel Roskin <proski@gnu.org>
14079
14080 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
14081 kernel_elf_symlist.c to symlist.c for consistency with other
14082 architectures. Update all users.
14083 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
14084
7847c51e 140852008-06-18 Robert Millan <rmh@aybabtu.com>
14086
14087 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
14088 it in prefix.
14089
14090 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
14091 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
14092 a RAID device, run setup() for all members independently on whether
14093 LVM abstraction is being used.
14094 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
14095 If grub-mkimage has set `*install_dos_part == -2', don't override this
14096 value.
14097 Perform *install_dos_part adjustments independently on whether
14098 we're embedding or not.
14099 Clarify error message when image is too big for embedding.
14100 Remove duplicate *install_dos_part stanza.
14101
b23e5644 141022008-06-17 Robert Millan <rmh@aybabtu.com>
14103
14104 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
14105 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
14106 variables.
14107 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
14108 values in grub_ofconsole_normal_color and
14109 grub_ofconsole_highlight_color (they're not directly related to
14110 background and foreground).
14111 (grub_ofconsole_setcolorstate): Extract background and foreground
14112 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
14113
0aac2f79 141142008-06-17 Robert Millan <rmh@aybabtu.com>
14115
14116 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
14117 /boot/grub for the check in last commit, not /boot (they could be
14118 different partitions).
14119
3cca7ef3 141202008-06-16 Robert Millan <rmh@aybabtu.com>
14121
14122 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
14123 asked to setup access for the same partition that provides /boot,
14124 don't bother using UUIDs since our root already has the value we
14125 want.
14126
347396d8 141272008-06-16 Robert Millan <rmh@aybabtu.com>
14128
14129 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
14130 I2O devices.
14131 Patch from Sven Mueller <sven@debian.org>.
14132
991477f8 141332008-06-16 Robert Millan <rmh@aybabtu.com>
14134
14135 * util/update-grub.in: Check for $EUID instead of $UID.
14136 Reported by Vincent Zweije.
14137
d31a32a1 141382008-06-16 Bean <bean123ch@gmail.com>
14139
fe987087 14140 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 14141 (grub_ext2_read_block): Likewise.
14142 (grub_ext2_read_inode): Likewise.
14143 (grub_ext2_mount): Likewise.
14144 (grub_ext2_close): Likewise.
14145 (grub_ext3_get_journal): Removed.
14146
fe987087 14147 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 14148 (grub_reiserfs_read_symlink): Likewise.
14149 (grub_reiserfs_mount): Likewise.
14150 (grub_reiserfs_open): Likewise.
14151 (grub_reiserfs_read): Likewise.
14152 (grub_reiserfs_close): Likewise.
14153 (grub_reiserfs_get_journal): Removed.
14154
14155 * fs/fshelp.c (grub_fshelp_read): Removed.
14156 (grub_fshelp_map_block): Likewise.
14157
14158 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
14159 (grub_fshelp_journal): Likewise.
14160 (grub_fshelp_read): Likewise.
14161 (grub_fshelp_map_block): Likewise.
14162
3540a760 141632008-06-16 Pavel Roskin <proski@gnu.org>
14164
14165 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
14166 floating point anymore.
14167 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
14168
95614c84 141692008-06-15 Pavel Roskin <proski@gnu.org>
14170
14171 * commands/ls.c (grub_ls_list_files): Use integer calculations
14172 for human readable format, avoid floating point use.
14173 * kern/misc.c (grub_ftoa): Remove.
14174 (grub_vsprintf): Remove floating point support.
14175
50465dd6 141762008-06-15 Robert Millan <rmh@aybabtu.com>
14177
fe6b695a 14178 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 14179 devices.
14180 Reported by Max Vozeler.
14181
a9207284 141822008-06-15 Robert Millan <rmh@aybabtu.com>
14183
14184 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
14185 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
14186 skipped later.
14187 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
14188 the beginning of the prefix.
14189
14190 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
14191 It is assumed that if we have a memdisk, grub-mkimage has set
14192 grub_prefix to include the "(memdisk)" drive in it.
14193
a7cbd45a 141942008-06-15 Robert Millan <rmh@aybabtu.com>
14195
14196 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
14197 Initialize keyboard controller after registering the terminal, so that
14198 grub_printf() can be called from grub_keyboard_controller_init().
14199
21cf716a 142002008-06-15 Robert Millan <rmh@aybabtu.com>
14201
14202 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
14203 extent-btree which is written as big endian on disk.
14204 Reported by Alain Greppin <al@chilibi.org>.
14205
23a64d8e 142062008-06-14 Robert Millan <rmh@aybabtu.com>
14207
14208 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
14209 * util/i386/pc/grub-install.in (modules): Likewise.
14210
d687651c 142112008-06-13 Pavel Roskin <proski@gnu.org>
14212
14213 * commands/ls.c (grub_ls_list_files): Fix format warnings.
14214
dfe9ddd4 142152008-06-13 Bean <bean123ch@gmail.com>
14216
14217 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
14218
14219 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
14220
14221 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
14222 to indicate sparse block.
14223
16ae7781 142242008-06-12 Pavel Roskin <proski@gnu.org>
14225
e6d1a308 14226 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
14227 number, grub_fshelp_read() does it for us.
14228
16ae7781 14229 * fs/fshelp.c (grub_fshelp_read): New function. Implement
14230 linear disk read with journal translation.
14231 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
14232 * include/grub/fshelp.h: Declare grub_fshelp_read().
14233
40fd3a2b 142342008-06-09 Pavel Roskin <proski@gnu.org>
14235
14236 * fs/minix.c (grub_minix_mount): Handle error reading
14237 superblock.
14238
f5679726 142392008-06-08 Robert Millan <rmh@aybabtu.com>
14240
14241 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
14242 don't append the RAID prefix afterwards.
14243 Reported by Clint Adams.
14244
ce525529 142452008-06-08 Robert Millan <rmh@aybabtu.com>
14246
14247 Based on description from Pavel:
14248 * kern/disk.c (grub_disk_check_range): Rename to ...
14249 (grub_disk_adjust_range): ... this. Add a comment explaining the
14250 tasks performed by this function.
14251
ad4936a0 142522008-06-08 Robert Millan <rmh@aybabtu.com>
14253
14254 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
14255 `num_serial' (for consistency with other variables).
14256 (struct grub_ntfs_data): Add `uuid' member.
14257 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
14258 (grub_ntfs_uuid): New function.
14259 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
14260
dc20b0f9 142612008-06-07 Pavel Roskin <proski@gnu.org>
14262
14263 * util/biosdisk.c (open_device): Revert last change to the
14264 function, it broke installation. The sector needs to be
14265 different dependent on which device is opened.
14266
c5e3cfba 142672008-06-06 Robert Millan <rmh@aybabtu.com>
14268
14269 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
14270 rest of GRUB, and breakage doesn't happen if its value were modified.
14271
14272 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
14273 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
14274 a constant (same value).
14275 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
14276 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
14277
26a1f8c4 142782008-06-06 Robert Millan <rmh@aybabtu.com>
14279
14280 * util/biosdisk.c (open_device): Do not modify sector offset when
14281 accessing a partition. kern/disk.c already handles this for us.
14282
25d6b327 142832008-06-06 Robert Millan <rmh@aybabtu.com>
14284
14285 * util/grub-emu.c (grub_machine_init): Move code in this function from
14286 here ...
14287 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
14288 segfault in case grub_printf() is called).
14289
14290 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
14291 grub_probe. Update all users not to explicitly add it again.
14292 (grub_device): New variable; contains corresponding device for grubdir.
14293 (fs_module, partmap_module, devabstraction_module): Pass
14294 `--device ${grub_device}' to grub_probe to avoid traversing /dev
14295 every time.
14296
9ece62fb 142972008-06-05 Robert Millan <rmh@aybabtu.com>
14298
14299 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
14300 is found, print it (same layout as with labels).
14301
1ad36d37 143022008-06-04 Robert Millan <rmh@aybabtu.com>
14303
14304 * util/biosdisk.c (get_drive): Rename to ...
14305 (find_grub_drive): ... this. Update all users.
14306
14307 (get_os_disk): Rename to ...
14308 (convert_system_partition_to_system_disk): ... this. Update all users.
14309
14310 (find_drive): Rename to ...
14311 (find_system_device): ... this. Update all users.
14312
e6a30859 143132008-06-04 Robert Millan <rmh@aybabtu.com>
14314
14315 * util/biosdisk.c (get_os_disk): Handle IDA devices.
14316 * util/grub-mkdevicemap.c (get_mmc_disk_name)
14317 (make_device_map): Likewise.
14318
00c108a4 143192008-06-01 Robert Millan <rmh@aybabtu.com>
14320
14321 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
14322 before dereferencing it.
14323
14324 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
14325 union with fat12/fat16-specific ones. Add some new fields, including
14326 `num_serial' for both versions.
14327 (struct grub_fat_data): Add `uuid' member.
14328 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
14329 names. Initialize `data->uuid' using `num_serial'.
14330 (grub_fat_uuid): New function.
14331 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
14332
14333 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
14334 (grub_reiserfs_uuid): New function.
14335 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
14336 member.
14337
14338 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
14339 (grub_xfs_uuid): New function.
14340 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
14341
1385c5bb 143422008-06-01 Robert Millan <rmh@aybabtu.com>
14343
14344 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
14345 code that is backward compatible with pre-uuid search command.
14346
c682dfd7 143472008-05-31 Robert Millan <rmh@aybabtu.com>
14348
14349 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
14350 floppies after everything else, to ensure floppy drive isn't accessed
14351 unnecessarily (patch from Bean).
14352
b7db5d47 143532008-05-31 Robert Millan <rmh@aybabtu.com>
14354
14355 * commands/search.c (search_label, search_fs_uuid, search_file): Do
14356 not print device names when we were asked to set a variable.
14357
6e037aa9 143582008-05-31 Robert Millan <rmh@aybabtu.com>
14359
14360 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
14361 using "cursor-on" and "cursor-off" commands (understood at least by
14362 the Open Firmware flavour on OLPC).
14363
41305bc8 143642008-05-31 Michael Gorven <michael@gorven.za.net>
14365
14366 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
14367 on and off sequences.
14368
69ba137e 143692008-05-31 Robert Millan <rmh@aybabtu.com>
14370
14371 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
14372 * util/update-grub.in: Likewise.
14373
520ae21b 143742008-05-30 Pavel Roskin <proski@gnu.org>
14375
14376 * util/biosdisk.c (linux_find_partition): Simplify logic and
14377 make the code more universal. Keep special processing for
14378 devfs, but use a simple rule for all other devices. If the
14379 device ends with a number, append 'p' and the partition number.
14380 Otherwise, append only the partition number.
14381
5786569b 143822008-05-30 Robert Millan <rmh@aybabtu.com>
14383
14384 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
14385 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
14386 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
14387 the `root' parameter to Linux.
14388
51500452 143892008-05-30 Robert Millan <rmh@aybabtu.com>
14390
14391 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
14392 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
14393 --fs_uuid with --fs-uuid.
14394 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
14395 all filesystems support them).
14396
811d3878 143972008-05-30 Robert Millan <rmh@aybabtu.com>
14398
14399 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 14400 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 14401
cab63c95 144022008-05-30 Robert Millan <rmh@aybabtu.com>
14403
14404 * util/grub.d/00_header.in: Remove obsolete comment referencing
14405 convert_system_path_to_grub_path().
14406 * util/update-grub.in: Likewise.
14407 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
14408 (convert_system_path_to_grub_path): Add a warning message explaining
14409 that this function is deprecated. Rely on is_path_readable_by_grub()
14410 for the readability checks.
14411 (font_path): Use is_path_readable_by_grub() for the readability
14412 check rather than convert_system_path_to_grub_path().
14413
972e2f7a 144142008-05-30 Robert Millan <rmh@aybabtu.com>
14415
14416 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
14417 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
14418 converting it first.
14419 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
14420 grub.cfg for access to font file, and afterwards call it again to set
14421 the root device.
14422
62191274 144232008-05-30 Robert Millan <rmh@aybabtu.com>
14424
14425 * commands/search.c (options): Add --fs_uuid option.
14426 (search_fs_uuid): New function.
14427 (grub_cmd_search): Fix --set argument passing.
14428 Use search_fs_uuid() when requested via --fs_uuid.
14429 (grub_search_init): Update help message.
14430 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
14431 and redeclare it as an array of 16-bit words.
14432 (grub_ext2_uuid): New function.
14433 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
14434 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
14435 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
14436 (GRUB_DEVICE_BOOT_UUID): New variables.
14437 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
14438 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
14439 whenever possible.
14440 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
14441 just assume `root' variable has the right value.
14442 * util/grub.d/10_linux.in: Likewise.
14443 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
14444 via PRINT_FS_UUID.
14445 (main): Recognise `-t fs_uuid' argument.
14446
01b73ec8 144472008-05-30 Robert Millan <rmh@aybabtu.com>
14448
14449 * util/biosdisk.c (map): Redefine structure to hold information
14450 about GRUB drive name.
fe6b695a 14451 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 14452 drive names.
14453 (call_hook): Remove.
14454 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
14455 member. Assume drive has partitions.
14456 (grub_util_biosdisk_open): Access device names via `.device' struct
14457 member.
14458 (open_device): Likewise.
14459 (find_drive): Likewise.
14460 (read_device_map): Adjust map[] usage to match the new struct
14461 definition. Don't check for duplicates (still possible, but not cheap
14462 anymore).
14463 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
14464 (make_device_name): Remove assumption of BIOS-like drive names.
14465
22f16596 144662008-05-30 Pavel Roskin <proski@gnu.org>
14467
14468 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
14469 compiling execute.c doesn't need grub_script.tab.h anymore.
14470 (normal/command.c_DEPENDENCIES): Likewise.
14471 (normal/function.c_DEPENDENCIES): Likewise.
14472 * conf/i386-ieee1275.rmk: Likewise.
14473 * conf/i386-linuxbios.rmk: Likewise.
14474 * conf/i386-pc.rmk: Likewise.
14475 * conf/powerpc-ieee1275.rmk: Likewise.
14476 * conf/sparc64-ieee1275.rmk: Likewise.
14477
528ad8f2 144782008-05-29 Pavel Roskin <proski@gnu.org>
14479
d1dff95d 14480 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
14481 when scanning metadata for volume group name.
14482
528ad8f2 14483 * include/grub/script.h: Don't include grub_script.tab.h. It's
14484 a generated file, which may only be included from the files with
14485 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
14486 use union YYSTYPE, as the later allows forward declaration.
14487 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
14488
47248e08 144892008-05-29 Robert Millan <rmh@aybabtu.com>
14490
14491 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
14492 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
14493 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
14494 (grub_console_checkkey): Add grub_dprintf() call to report unknown
14495 scan codes.
14496
ee632529 144972008-05-29 Robert Millan <rmh@aybabtu.com>
14498
14499 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
14500 control key combinations.
14501
eee96e08 145022008-05-29 Robert Millan <rmh@aybabtu.com>
14503
14504 * util/powerpc/ieee1275/grub-install.in: Move from here ...
14505 * util/ieee1275/grub-install.in: ... to here.
14506 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
14507 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
14508 (grub_install_SOURCES): Likewise.
14509
da9a6a94 145102008-05-29 Robert Millan <rmh@aybabtu.com>
14511
14512 * fs/affs.c: Update copyright year.
14513 * fs/ext2.c: Likewise.
14514 * fs/fshelp.c: Likewise.
14515 * fs/hfsplus.c: Likewise.
14516 * fs/ntfs.c: Likewise.
14517 * fs/xfs.c: Likewise.
14518 * include/grub/fshelp.h: Likewise.
14519 * util/grub-mkdevicemap.c: Likewise.
14520
12e65f3a 145212008-05-28 Robert Millan <rmh@aybabtu.com>
14522
14523 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
14524 might need to be fatfs to support some firmware implementations
14525 (e.g. OFW or EFI).
14526
23023641 145272008-05-28 Robert Millan <rmh@aybabtu.com>
14528
14529 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
14530 devices.
14531 * util/grub-mkdevicemap.c (get_mmc_disk_name)
14532 (make_device_map): Likewise.
14533
887d2619 145342008-05-20 Bean <bean123ch@gmail.com>
14535
14536 * fs/fshelp.c (grub_fshelp_map_block): New function.
14537 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
14538 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
14539
14540 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
14541 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
14542 (grub_fshelp_journal): New structure.
14543 (grub_fshelp_map_block): New function prototype.
14544 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
14545 (grub_fshelp_map_block): Likewise.
14546
14547 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
14548 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
14549 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
14550 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
14551 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
14552 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
14553 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
14554 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
14555 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
14556 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
14557 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
14558 (grub_ext2_sblock): New members for journal support.
14559 (grub_ext3_journal_header): New structure.
14560 (grub_ext3_journal_revoke_header): Likewise.
14561 (grub_ext3_journal_block_tag): Likewise.
14562 (grub_ext3_journal_sblock): Likewise.
14563 (grub_fshelp_node): New members logfile and journal.
14564 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
14565 grub_fshelp_map_block to get real block number.
14566 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
14567 number.
14568 (grub_ext2_read_inode): Likewise.
14569 (grub_ext3_get_journal): New function.
14570 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
14571 (grub_ext2_close): Release memory used by journal.
14572
14573 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
14574 (REISERFS_MAGIC_DESC_BLOCK): New macro.
14575 (grub_reiserfs_transaction_header): Renamed to
14576 grub_reiserfs_description_block, replace field data with real_blocks.
14577 (grub_reiserfs_commit_block): New structure.
14578 (grub_reiserfs_data): New member journal.
14579 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
14580 number.
14581 (grub_reiserfs_read_symlink): Likewise.
14582 (grub_reiserfs_iterate_dir): Likewise.
14583 (grub_reiserfs_open): Likewise.
14584 (grub_reiserfs_read): Likewise.
14585 (grub_reiserfs_get_journal): New function.
14586 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
14587 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
14588 using grub_reiserfs_get_journal.
14589 (grub_reiserfs_close): Release memory used by journal.
14590
14591 * fs/affs.c (grub_affs_read_block): Change block type to
14592 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
14593
14594 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
14595
14596 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
14597
14598 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
14599
14600 * fs/udf.c (grub_udf_read_block): Change block type to
14601 grub_disk_addr_t. Use type cast to avoid warning.
14602
14603 * fs/xfs.c (grub_xfs_read_block): Likewise.
14604
b7c6bed5 146052008-05-16 Christian Franke <franke@computer.org>
14606
14607 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
14608 to ensure that break with ESC will always work.
14609 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
14610 Remove ESC from keyboard queue.
14611
eedf167f 146122008-05-16 Christian Franke <franke@computer.org>
14613
14614 * util/biosdisk.c: [__CYGWIN__] Add includes.
14615 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
14616 (get_os_disk): Move variable declarations to OS specific
14617 parts to avoid warning.
14618 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
14619 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
14620 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
14621 Cygwin.
14622 * util/getroot.c: [__CYGWIN__] Add includes.
14623 (strip_extra_slashes): Fix "/" case.
14624 [__CYGWIN__] (get_win32_path): New function.
14625 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
14626 [__CYGWIN__] (find_root_device): Disable.
14627 [__CYGWIN__] (get_bootsec_serial): New function.
14628 [__CYGWIN__] (find_cygwin_root_device): Likewise.
14629 [__linux__] (grub_guess_root_device): Add early returns to simplify
14630 structure.
14631 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
14632 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
14633 check for Linux only.
14634
a079699e 146352008-05-15 Bean <bean123ch@gmail.com>
14636
14637 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
14638 keyboard hang problem in apple's intel mac.
14639
1cf4059a 146402008-05-09 Robert Millan <rmh@aybabtu.com>
14641
14642 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
14643 devices.
14644 * util/grub-mkdevicemap.c (get_virtio_disk_name)
14645 (make_device_map): Likewise.
14646 Reported by Aurelien Jarno <aurel32@debian.org>
14647
ed759390 146482008-05-07 Ian Campbell <ijc@hellion.org.uk>
14649
14650 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
14651 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
14652 (make_device_map): Output entries for xvd type disks.
14653
b56c4eaa 146542008-05-07 Robert Millan <rmh@aybabtu.com>
14655
14656 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
14657 devices.
14658 * util/grub-mkdevicemap.c (get_cciss_disk_name)
14659 (make_device_map): Likewise.
14660 Reported by Roland Dreier <rdreier@cisco.com>
14661
7f8866ed 146622008-05-07 Robert Millan <rmh@aybabtu.com>
14663
14664 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
14665 grub_strstr() call. Correct a few mistakes in failure path handling.
14666
b0346e0f 146672008-05-06 Robert Millan <rmh@aybabtu.com>
14668
14669 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
14670 Do not print a trailing slash (therefore, the root directory is an
14671 empty string).
14672 (convert_system_path_to_grub_path): Do not remove trailing slash
14673 from make_system_path_relative_to_its_root() output.
14674
14675 * util/i386/pc/grub-install.in: Add trailing slash to output from
14676 make_system_path_relative_to_its_root().
14677
6cf12cbd 146782008-05-06 Robert Millan <rmh@aybabtu.com>
14679
14680 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
14681 ensures that output lines aren't intermangled with those sent to
14682 stderr (via grub_util_info()).
14683 * util/grub-probe.c (grub_refresh): Likewise.
14684 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
14685
0fbb3117 146862008-05-05 Christian Franke <franke@computer.org>
14687
14688 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
14689 Add Cygwin device names.
14690 (get_ide_disk_name) [__CYGWIN__]: Likewise.
14691 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
14692 (check_device): Return error instead of success on empty name.
14693 (make_device_map): Move label inside linux specific code to
14694 prevent compiler warning.
14695
8124cdb7 146962008-04-30 Robert Millan <rmh@aybabtu.com>
14697
14698 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
14699 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
14700 first boot option.
14701 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
14702
094c01d0 147032008-04-29 Robert Millan <rmh@aybabtu.com>
14704
14705 * docs/grub.cfg: New file (example GRUB configuration).
14706
f4b1fc02 147072008-04-26 Robert Millan <rmh@aybabtu.com>
14708
329ce2a5 14709 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
14710 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
14711 and `disk/ieee1275/nand.c'.
f4b1fc02 14712
25f16ec1 147132008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 14714
25f16ec1 14715 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
14716 i386-linuxbios.
14717
14718 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
14719 change the buffer size to 4096 for cdrom device.
14720
14721 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
14722 and nand.mod.
14723 (_linux_mod_SOURCES): New variable.
14724 (_linux_mod_CFLAGS): Likewise.
14725 (_linux_mod_LDFLAGS): Likewise.
14726 (linux_mod_SOURCES): Likewise.
14727 (linux_mod_CFLAGS): Likewise.
14728 (linux_mod_LDFLAGS): Likewise.
14729 (nand_mod_SOURCES): Likewise.
14730 (nand_mod_CFLAGS): Likewise.
14731 (nand_mod_LDFLAGS): Likewise.
14732
14733 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
14734 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
14735 type property. (nand device in olpc don't have this property)
14736
14737 * include/grub/disk.h (grub_disk_dev_id): New macro
14738 GRUB_DISK_DEVICE_NAND_ID.
14739
14740 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
14741 function prototype.
14742 (grub_rescue_cmd_initrd): Likewise.
14743
14744 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
14745 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
14746 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 14747
25f16ec1 14748 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
14749 GRUB_MACHINE_IEEE1275 is defined.
14750
14751 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
14752 Use NESTED_FUNC_ATTR attribute on the hook parameter.
14753
14754 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
14755 on nested function heap_init.
14756 (grub_upper_mem): New variable for i386-ieee1275.
14757 (grub_get_extended_memory): New function for i386-ieee1275.
14758 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
14759
14760 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
14761 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
14762 property.
f19dbdb7 14763
25f16ec1 14764 * loader/i386/ieee1275/linux.c: New file.
14765
14766 * loader/i386/ieee1275/linux_normal.c: New file.
14767
14768 * disk/ieee1275/nand.c: New file.
14769
e89d61e9 147702008-04-18 Thomas Schwinge <tschwinge@gnu.org>
14771
14772 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
14773 value.
14774 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
14775
602566f6 147762008-04-18 Robert Millan <rmh@aybabtu.com>
14777
14778 Restructures early code path on ieee1275 to unify grub_main() as
14779 the first C function that is executed in every platform.
14780
14781 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
14782 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
14783 cmain().
14784 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
14785 * kern/ieee1275/cmain.c (cmain): Rename to ...
14786 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
14787 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
14788 at the beginning.
14789
57490c2b 147902008-04-18 Robert Millan <rmh@aybabtu.com>
14791
14792 * util/update-grub.in: Fix syntax error when setting
14793 `GRUB_PRELOAD_MODULES'.
14794 Reported by Stephane Chazelas <stephane@artesyncp.com>
14795
1977517d 147962008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
14797
14798 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
14799 section into account, newer toolchains generate unique build ids
14800 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 14801 we want build ids to be preserved
1977517d 14802 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
14803 far from other sections don't cause the raw binary images grow
14804 size
14805
bfb1f1a2 148062008-04-15 Robert Millan <rmh@aybabtu.com>
14807
14808 * disk/lvm.c: Update copyright year.
14809 * kern/misc.c: Likewise.
14810
01979850 148112008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
14812
14813 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 14814 there is no memory left for physical volume name.
01979850 14815
0a1150e2 148162008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
14817
14818 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
14819 volume name mapping to support bigger than 9 character names properly.
14820
82ead3fe 148212008-04-13 Robert Millan <rmh@aybabtu.com>
14822
14823 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
14824 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
14825
e54a72f5 148262008-04-13 Christian Franke <franke@computer.org>
14827
14828 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
14829 to create a floppy emulation boot CD when non emulation mode
14830 does not work.
14831 Enable Joliet CD filesystem extension.
14832
9fe86034 148332008-04-13 Robert Millan <rmh@aybabtu.com>
14834
14835 * kern/misc.c (grub_strncat): Fix off-by-one error.
14836 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
14837
14838 * kern/env.c (grub_env_context_close): Clear current context, not
14839 previous one.
14840 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
14841
14842 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
14843
7ceeee39 148442008-04-13 Robert Millan <rmh@aybabtu.com>
14845
14846 Improve robustness when handling LVM.
14847
14848 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 14849 (and leave `*p' unmodified).
7ceeee39 14850 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
14851 through it.
14852 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
14853 iterating through it.
14854 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
14855 through it.
fe6b695a 14856 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 14857 when due) on each grub_lvm_getvalue() or grub_strstr() call.
14858 Don't assume `vg->pvs != NULL' when iterating through it.
14859
58cd3d85 148602008-04-13 Robert Millan <rmh@aybabtu.com>
14861
14862 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
14863 * genmk.rb (partmap): New variable.
14864 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
14865 (#{partmap}): New target rule.
14866 * genpartmaplist.sh: New file.
14867 * Makefile.in (pkglib_DATA): Add partmap.lst.
14868 (partmap.lst): New target rule.
14869 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
14870 modules (including all partition maps), instead of preloading them.
14871
78b51059 148722007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
14873
14874 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
14875 `linux-boot-prober' (if installed) to detect other operating
14876 systems which are installed on the computer and add them to
14877 the boot menu.
14878 * conf/common.rmk: Build and install 30_os-prober.
14879
a91627b4 148802008-04-12 Robert Millan <rmh@aybabtu.com>
14881
14882 * kern/powerpc/ieee1275/init.c: Move from here ...
14883 * kern/ieee1275/init.c: ... to here. Update all users.
14884
14885 * kern/powerpc/ieee1275/cmain.c: Move from here ...
14886 * kern/ieee1275/cmain.c: ... to here. Update all users.
14887
14888 * kern/powerpc/ieee1275/openfw.c: Move from here ...
14889 * kern/ieee1275/openfw.c: ... to here. Update all users.
14890
14891 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
14892 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
14893
322562ea 148942008-04-10 Pavel Roskin <proski@gnu.org>
14895
14896 * configure.ac: Always use "_cv_" in cache variables for
14897 compatibility with Autoconf 2.62.
14898
a02a73c5 148992008-04-07 Robert Millan <rmh@aybabtu.com>
14900
14901 Revert grub/machine/init.h addition by Pavel (since it breaks on
14902 i386-ieee1275 and others):
14903 * util/i386/pc/misc.c: Remove grub/machine/init.h.
14904 * util/powerpc/ieee1275/misc.c: Likewise.
14905
25c024b1 149062008-04-07 Robert Millan <rmh@aybabtu.com>
14907
14908 * util/grub-probe.c (probe): Improve error message.
14909
3cbd2f98 149102008-04-07 Robert Millan <rmh@aybabtu.com>
14911
14912 * util/biosdisk.c (read_device_map): Skip devices that don't exist
14913 (this prevents the presence of a bogus entry from ruining the whole
14914 thing).
14915
87a297bf 149162008-04-06 Pavel Roskin <proski@gnu.org>
14917
36747a62 14918 * util/biosdisk.c: Include grub/util/biosdisk.h.
14919 * util/grub-fstest.c (execute_command): Make static.
14920 * util/grub-mkdevicemap.c (check_device): Likewise.
14921 * util/i386/pc/misc.c: Include grub/machine/init.h.
14922 * util/powerpc/ieee1275/misc.c: Likewise.
14923 * util/lvm.c: Include grub/util/lvm.h.
14924 * util/misc.c: Include grub/kernel.h, grub/misc.h and
14925 grub/cache.h.
14926 * util/raid.c: Include grub/util/raid.h.
14927 (grub_util_getdiskname): Make static.
14928
87a297bf 14929 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
14930 grub_hostfs_fini(), as they are called from grub_init_all() and
14931 grub_fini_all() respectively. This fixes an infinite loop in
14932 grub-fstest due to double registration of hostfs.
14933 Reported by Christian Franke <Christian.Franke@t-online.de>
14934
f6ce7629 149352008-04-05 Pavel Roskin <proski@gnu.org>
14936
14937 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
14938 all 8 functions. Otherwise, probe function 0 only.
14939
070e49e4 149402008-04-04 Pavel Roskin <proski@gnu.org>
14941
8b088a4c 14942 * commands/lspci.c (grub_lspci_iter): Print the bus number
14943 correctly.
14944
4f657021 14945 * commands/lspci.c (grub_pci_classes): Fix typos.
14946 (grub_lspci_iter): Don't print func twice. Print vendor ID
14947 before device ID, as it's normally done.
14948
070e49e4 14949 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
14950 Fix signedness warnings.
14951 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
14952 Likewise.
14953 * util/ieee1275/get_disk_name.c: Include config.h so that
14954 _GNU_SOURCE is defined and getline() is declared. Mark an
14955 unused argument as such. Fix a signedness warning.
14956
ba7328dc 149572008-04-02 Pavel Roskin <proski@gnu.org>
14958
26887f22 14959 * genkernsyms.sh.in: Use more robust assignments for CC and
14960 srcdir. Quote srcdir.
14961 * gensymlist.sh.in: Likewise. Assert at the compile time that
14962 the symbol table is not empty.
14963
ba7328dc 14964 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
14965 * fs/cpio.c (grub_cpio_read): Likewise.
14966
0f582c6b 149672008-04-01 Pavel Roskin <proski@gnu.org>
14968
4b6e1995 14969 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
14970 * disk/host.c (grub_host_open): Likewise.
14971 * disk/loopback.c (grub_loopback_open): Likewise.
14972 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
14973 disk->id as in disk/host.c, not a multi-character constant.
14974
828a2768 14975 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
14976 later is obsolete, potentially dangerous and sets a bad example.
14977 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
14978 * util/misc.c (grub_util_get_image_size): Likewise.
14979
2bb4fb47 14980 * disk/loopback.c (options): Improve help for "--partitions".
14981
0f582c6b 14982 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
14983 options to align them with the short options, e.g. "echo -e".
14984
a33224e0 149852008-03-31 Bean <bean123ch@gmail.com>
14986
14987 * video/reader/png.c (grub_png_data): New member is_16bit and
14988 image_data.
14989 (grub_png_decode_image_header): Detect 16 bit png image.
14990 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
14991 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
14992 (grub_video_reader_png): Release memory occupied by image_data.
14993
14994 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
14995 4096 bytes.
14996 (grub_nfs_mount): Skip the test for sector per cluster.
14997
14998 * include/grub/ntfs.h (MAX_SPC): Removed.
14999
86cb4f54 150002008-03-31 Bean <bean123ch@gmail.com>
15001
15002 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
15003 (grub_probe_SOURCES): Add fs/afs.c.
15004 (grub_fstest_SOURCES): Likewise.
15005 (afs_mod_SOURCES): New variable.
15006 (afs_mod_CFLAGS): Likewise.
15007 (afs_mod_LDFLAGS): Likewise.
15008
15009 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
15010 (grub_emu_SOURCES): Likewise.
15011
15012 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15013
15014 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15015
15016 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
15017
15018 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15019
15020 * fs/afs.c: New file.
15021
17c74c21 150222008-03-30 Pavel Roskin <proski@gnu.org>
15023
4cb68e89 15024 * disk/host.c: Include grub/misc.h to fix a warning.
15025 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
15026 warnings about implicit declarations.
15027
8790bb04 15028 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
15029 variable.
15030 * include/grub/i386/loader.h: Change declaration of
15031 grub_linux_boot() to match what grub_loader_set() expects.
15032 * util/getroot.c (grub_guess_root_device): Return const char* to
15033 fix a warning.
15034 * util/grub-probe.c (probe): Fix a warning about uninitialized
15035 abstraction_name variable.
15036 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
15037 second argument as unused to fix a warning.
15038
9a3f3296 15039 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
15040 missing grub_error() call.
15041
0ecef90d 15042 * util/update-grub_lib.in: Define datarootdir, since Autoconf
15043 2.60 and newer uses it to define datadir.
15044
0bf6d401 15045 * commands/sleep.c: Fix warning about implicit declaration.
15046 * disk/memdisk.c: Likewise.
15047 * loader/aout.c: Likewise.
15048 * loader/i386/bsd_normal.c: Likewise.
15049 * util/grub-probe.c: Likewise.
15050
7cdacf97 15051 * commands/i386/cpuid.c (has_longmode): Make static.
15052 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
15053 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
15054
17c74c21 15055 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
15056 GDT. This is more robust, as %ds can change.
15057 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
15058 calling real_to_prot().
15059 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
15060
80a3e68b 150612008-03-28 Pavel Roskin <proski@gnu.org>
15062
15063 * kern/i386/pc/startup.S: Assert that uncompressed functions
15064 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
15065 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
15066 code, as they push parts of the code (error handlers) beyond
15067 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
15068 code as correctness and size.
15069
77bcd272 150702008-03-28 Pavel Roskin <proski@gnu.org>
15071
15072 * kern/i386/pc/startup.S
15073 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
15074 data block address to the real mode, keep offset minimal. This
15075 works around a bug in AWARD BIOS on old Athlon systems, which
15076 makes CD detection hang.
15077
c5dfd43b 150782008-03-26 Pavel Roskin <proski@gnu.org>
15079
15080 * normal/color.c (grub_parse_color_name_pair): Make `name' a
15081 const.
15082 * include/grub/normal.h: Add grub_parse_color_name_pair()
15083 declaration.
15084
bf962df2 150852008-03-24 Bean <bean123ch@gmail.com>
15086
15087 * disk/i386/pc/biosdisk.c (cd_start): Removed.
15088 (cd_count): Removed.
15089 (cd_drive): New variable.
15090 (grub_biosdisk_get_drive): Don't check for (cdN) device.
15091 (grub_biosdisk_call_hook): Likewise.
15092 (grub_biosdisk_iterate): Change cdrom detection method.
15093 (grub_biosdisk_open): Replace cd_start with cd_drive.
15094 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
15095 detect cdrom device.
15096
15097 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
15098 Removed.
15099 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
15100 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
15101 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
15102 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
15103 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
15104 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
15105 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
15106 (grub_biosdisk_cdrp): New structure.
15107 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
15108
15109 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
15110
15111 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
15112 device.
15113
15114 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
15115 New function.
15116
68e7fc7a 151172008-03-20 Robert Millan <rmh@aybabtu.com>
15118
15119 Remove 2 TiB limit in ata.mod.
15120 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
15121 (grub_ata_dumpinfo): Print sector count with 0x%llx.
15122 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
15123 grub_uint64_t instead of grub_uint32_t.
15124
38ad2cf5 151252008-03-05 Bean <bean123ch@gmail.com>
15126
15127 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
15128 (grub_multiboot): Set boot device.
15129
15130 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
15131
2b89344e 151322008-03-02 Bean <bean123ch@gmail.com>
15133
15134 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
15135 symlink_buffer.
15136
87a95d1f 151372008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
15138
15139 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
15140 texinfo.tex.
15141
15142 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
15143 modified.
15144
15145 * docs/fdl.texi: New file.
f19dbdb7 15146
87a95d1f 15147 * docs/mdate-sh: New file. Copied from gnulib.
15148 * docs/texinfo.tex: Likewise.
15149
15150 * config.guess: Updated from gnulib.
15151 * install-sh: Likewise.
15152
7dc15d8e 151532008-02-28 Robert Millan <rmh@aybabtu.com>
15154
15155 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
15156 (aout_mod_SOURCES): New variable.
15157 (aout_mod_CFLAGS): Likewise.
15158 (aout_mod_LDFLAGS): Likewise.
15159
15160 * conf/i386-ieee1275.rmk: Likewise.
15161
b00ab696 151622008-02-28 Robert Millan <rmh@aybabtu.com>
15163
15164 * util/update-grub.in: Reorganise terminal validity check. Accept
15165 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
15166 Based on suggestion by Franklin PIAT.
15167
79ca2d78 151682008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
15169
15170 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
15171 function.
15172 * util/getroot.c (grub_util_check_block_device): New function that
15173 returns the given argument if it is a block device and returns NULL else.
15174 * util/grub-probe.c (argument_is_device): New variable.
15175 (probe): Promote device_name from a variable to an argument. Receive
15176 device_name from grub_util_check_block_device() if path is NULL and from
15177 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 15178 (options): Introduce new parameter '-d, --device'.
79ca2d78 15179 (main): Add description of the new parameter to the help screen.
15180 Rename path variable to argument. Set argument_is_device if the '-d'
15181 option is given. Pass argument to probe() depending on
15182 argument_is_device.
15183
0d16e571 151842008-02-24 Bean <bean123ch@gmail.com>
15185
15186 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
15187 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
15188 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
15189 (GRUB_ISO9660_VOLDESC_PART): Likewise.
15190 (GRUB_ISO9660_VOLDESC_END): Likewise.
15191 (grub_iso9660_primary_voldesc): New member escape.
15192 (grub_iso9660_data): New member joliet.
15193 (grub_iso9660_convert_string): New function.
15194 (grub_iso9660_mount): Detect joliet extension.
15195 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
15196 (grub_iso9660_iso9660_label): Likewise.
15197
15198 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
15199 (grub_setup_SOURCES): Add fs/udf.c.
15200 (grub_fstest_SOURCES): Likewise.
15201 (udf_mod_SOURCES): New variable.
15202 (udf_mod_CFLAGS): Likewise.
15203 (udf_mod_LDFLAGS): Likewise.
15204
15205 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
15206 (grub_emu_SOURCES): Likewise.
15207
15208 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15209
15210 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15211
15212 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
15213
15214 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15215
15216 * fs/udf.c: New file.
15217
8a594a17 152182008-02-24 Robert Millan <rmh@aybabtu.com>
15219
15220 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
15221 (normal/lexer.c_DEPENDENCIES): New variables.
15222 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
15223 (normal/lexer.c_DEPENDENCIES): Likewise.
15224 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
15225 (normal/lexer.c_DEPENDENCIES): Likewise.
15226 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
15227 (normal/lexer.c_DEPENDENCIES): Likewise.
15228 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
15229 (normal/lexer.c_DEPENDENCIES): Likewise.
15230 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
15231 (normal/lexer.c_DEPENDENCIES): Likewise.
15232
2dc33c03 152332008-02-23 Robert Millan <rmh@aybabtu.com>
15234
15235 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
15236 since they were intended to be in hex. This didn't break previously
15237 because of a bug in gpt_partition_map_iterate() (see below).
15238
15239 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
15240 when checking the validity of GPT header.
15241 Remove `partno', since it always provides the same information as `i'.
15242
f6f4cfb0 152432008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
15244
15245 * include/grub/efi/time.h: Fix a wrong comment.
15246
79ff665f 152472008-02-19 Pavel Roskin <proski@gnu.org>
15248
15249 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
15250 message.
15251
d38e24c2 152522008-02-19 Bean <bean123ch@gmail.com>
15253
15254 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
15255 (aout_mod_SOURCES): New variable.
15256 (aout_mod_CFLAGS): Likewise.
15257 (aout_mod_LDFLAGS): Likewise.
15258 (_bsd_mod_SOURCES): New variable.
15259 (_bsd_mod_CFLAGS): Likewise.
15260 (_bsd_mod_LDFLAGS): Likewise.
15261 (bsd_mod_SOURCES): New variable.
15262 (bsd_mod_CFLAGS): Likewise.
15263 (bsd_mod_LDFLAGS): Likewise.
15264
15265 * include/grub/aout.h: New file.
15266
15267 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
15268
15269 * include/grub/i386/bsd.h: New file.
15270
15271 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
15272 to make it public.
15273
15274 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
15275 function is called, so that it's possible to change it inside the hook.
15276 (grub_elf64_load): Likewise.
15277 (grub_elf_file): Don't close the file if elf header is not found.
15278 (grub_elf_close): Close the file if grub_elf_file fails (The new
15279 grub_elf_file won't close it).
15280 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
15281 (grub_elf64_size): Likewise.
15282
15283 * kern/i386/loader.S (grub_unix_real_boot): New function.
15284
15285 * loader/aout.c: New file.
15286
15287 * loader/i386/bsd.c: New file.
15288
15289 * loader/i386/bsd_normal.c: New file.
15290
15291 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
15292
15293 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 15294 can test other formats.
d38e24c2 15295
b93bdb0f 152962008-02-19 Robert Millan <rmh@aybabtu.com>
15297
15298 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
15299 (grub_gpt_partition_type_empty): Redefine with macro from
15300 `<grub/gpt_partition.h>'.
15301 (gpt_partition_map_iterate): Adjust partition type comparison.
15302
15303 Export `entry' as partmap-specific `part.data' struct.
15304 (grub_gpt_header, grub_gpt_partentry): Move from here ...
15305
15306 * include/grub/gpt_partition.h (grub_gpt_header)
15307 (grub_gpt_partentry): ... to here (new file).
15308
15309 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
15310
15311 (grub_gpt_partition_type_bios_boot): New const variable, defined
15312 with macro from `<grub/gpt_partition.h>'.
15313
15314 (setup): Replace `first_start' with `embed_region', which keeps
15315 track of the embed region (and is partmap-agnostic).
15316
15317 Replace find_first_partition_start() with find_usable_region(),
15318 which finds a usable region for embedding using partmap-specific
15319 knowledge (supports PC/MSDOS and GPT).
15320
15321 Fix all assumptions that the embed region start at sector 1, using
15322 `embed_region.start' from now on. Similarly, use `embed_region.end'
15323 rather than `first_start' to calculate available size.
15324
15325 In grub_util_info() message, replace "into after the MBR" with an
15326 indication of the specific sector our embed region starts at.
15327
66cb40f6 153282008-02-19 Robert Millan <rmh@aybabtu.com>
15329
15330 * DISTLIST: Replace `commands/ieee1275/halt.c' and
15331 `commands/ieee1275/reboot.c' with `commands/halt.c' and
15332 `commands/reboot.c'.
15333 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
15334 (halt_mod_SOURCES): Likewise.
15335 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
15336 (halt_mod_SOURCES): Likewise.
15337
b7202015 153382008-02-17 Christian Franke <franke@computer.org>
15339
15340 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
15341
32b0fc49 153422008-02-17 Robert Millan <rmh@aybabtu.com>
15343
15344 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
15345 set `first_start' to 0 for non-PC/MSDOS partition maps.
15346
aca63502 153472008-02-16 Robert Millan <rmh@aybabtu.com>
15348
15349 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
15350 do not assume partition map is PC/MSDOS before performing checks that
15351 are specific to that layout.
15352
0de8be86 153532008-02-13 Robert Millan <rmh@aybabtu.com>
15354
15355 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
15356 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
15357 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
15358
c3db8364 153592008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
15360
15361 * configure.ac: Only a cosmetic change on the handling of
15362 -fno-stack-protector.
15363
f714229e 153642008-02-12 Alexandre Boeglin <alex@boeglin.org>
15365
c3db8364 15366 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
15367 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
15368 reboot.c.
f714229e 15369 (grub_install_SOURCES): Add halt.mod and reboot.mod.
15370 (halt_mod_SOURCES): New variable.
15371 (halt_mod_CFLAGS): Likewise.
15372 (halt_mod_LDFLAGS): Likewise.
15373 (reboot_mod_SOURCES): Likewise.
15374 (reboot_mod_CFLAGS): Likewise.
15375 (reboot_mod_LDFLAGS): Likewise.
15376
c3db8364 15377 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
15378 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
15379 reboot.c.
f714229e 15380 (halt_mod_SOURCES): Likewise.
15381 (reboot_mod_SOURCES): Likewise.
15382
c3db8364 15383 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
15384 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 15385 (reboot_mod_SOURCES): Likewise.
15386
15387 * commands/i386/pc/reboot.c: merge this file ...
15388
15389 * commands/ieee1275/reboot.c: ... and this file ...
15390
15391 * commands/reboot.c: ... to this file.
c3db8364 15392 Add some precompiler directive to include the correct header for
15393 each machine.
f714229e 15394
15395 * commands/ieee1275/halt.c: move this file ...
15396
15397 * commands/halt.c: ... to here.
c3db8364 15398 Add some precompiler directive to include the correct header for
15399 each machine.
f714229e 15400
15401 * include/grub/efi/efi.h (grub_reboot): New function declaration.
15402 (grub_halt): Likewise.
15403
15404 * kern/efi/efi.c (grub_reboot): New function.
15405 (grub_halt): Likewise.
15406
c74493e0 154072008-02-12 Robert Millan <rmh@aybabtu.com>
15408
15409 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
15410 /dev (like it is done for /dev/mapper). This doesn't provide support
15411 for EVMS, but at least it is now easy to identify the problem when it
15412 arises.
15413
d0db4b04 154142008-02-11 Robert Millan <rmh@aybabtu.com>
15415
15416 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
15417 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
15418 comparing it with -1, not 0.
15419
bf748642 154202008-02-10 Robert Millan <rmh@aybabtu.com>
15421
15422 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
15423 `disk/lvm.c'.
15424 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15425 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
15426
15427 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
15428 `disk/lvm.c' to the end of the list.
15429 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
15430 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
15431
b5db202a 154322008-02-10 Robert Millan <rmh@aybabtu.com>
15433
15434 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
15435 grub_print_error() instead. This will let user know why we're entering
15436 rescue mode.
15437 Based on suggestions from Sam Morris.
15438
83abee31 154392008-02-10 Alexandre Boeglin <alex@boeglin.org>
15440
15441 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
15442 on remaining N args, instead of "--" arg N times.
15443
78d5a08b 154442008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
15445
15446 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
15447 (fill_with_default_glyph): Changed to use unknown_glyph for fill
15448 pattern for unknown glyphs.
15449
68807e5f 154502008-02-09 Robert Millan <rmh@aybabtu.com>
15451
15452 * configure.ac: Probe for `help2man'.
15453 * Makefile.in (builddir): New variable.
15454 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
15455 or otherwise add a few flags/options to it.
15456 (install-local): For every executable utility or script that is
15457 installed, invoke $(HELP2MAN) to install a manpage based on --help
15458 output.
15459
15460 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
15461 that it doesn't prevent --help from working in build tree.
15462
15463 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
15464 with `bug-grub@gnu.org'.
15465 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
15466 * util/update-grub.in (usage): New function.
15467 Implement proper argument check, with support for --help and --version
15468 (as well as existing -y).
15469
154702008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 15471
15472 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
15473 avoid overwriting previous output.
15474 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
15475
c1962162 154762008-02-09 Robert Millan <rmh@aybabtu.com>
15477
15478 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
15479 drawing the menu.
15480
3dac2e3f 154812008-02-09 Robert Millan <rmh@aybabtu.com>
15482
15483 * commands/sleep.c: New file.
15484 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
15485 (sleep_mod_SOURCES): New variable.
15486 (sleep_mod_CFLAGS): Likewise.
15487 (sleep_mod_LDFLAGS): Likewise.
15488
7a634e08 154892008-02-09 Robert Millan <rmh@aybabtu.com>
15490
15491 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
15492 situations in which we can deduce the RAID size and the superblock
15493 doesn't match it.
15494
b92f0c18 154952008-02-09 Robert Millan <rmh@aybabtu.com>
15496
15497 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
15498 and return a grub_diskmemberlist_t composed of LVM physical volumes.
15499 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
15500
15501 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
15502 and return a grub_diskmemberlist_t composed of physical array members.
15503 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
15504
15505 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
15506 prototype.
15507 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
15508 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
15509 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
15510
15511 * util/grub-probe.c (probe): Move partmap probing code from here ...
15512 (probe_partmap): ... to here.
15513 (probe): Use probe_partmap() once for the disk we're probing, and
15514 additionally, when such disk contains a memberlist() struct member,
15515 once for each disk that is contained in the structure returned by
15516 memberlist().
15517
91a4bf68 155182008-02-09 Robert Millan <rmh@aybabtu.com>
15519
15520 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
15521 environment variable to 'all' in order to obtain debug output from
15522 non-util/ code.
15523 * util/i386/pc/grub-setup.c (main): Likewise.
15524
a96f9caa 155252008-02-08 Robert Millan <rmh@aybabtu.com>
15526
15527 * disk/raid.c (grub_raid_scan_device): Check for
15528 `array->device[sb.this_disk.number]' rather than for
15529 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 15530 guaranteed to be accessible.
a96f9caa 15531
b37a9222 155322008-02-08 Robert Millan <rmh@aybabtu.com>
15533
15534 * disk/raid.c: Update copyright.
15535 * fs/cpio.c: Likewise.
15536 * include/grub/raid.h: Likewise.
15537 * loader/i386/pc/multiboot.c: Likewise.
15538 * util/hostfs.c: Likewise.
15539
5626aee1 155402008-02-08 Robert Millan <rmh@aybabtu.com>
15541
15542 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
15543 to a grub_disk_t array.
15544 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
15545 `device[x]'.
15546 (grub_raid_scan_device): Replace `device[x].name' accesses with
15547 `device[x]->name'. Simplify initialization of `array->device[x]'.
15548
554f0187 155492008-02-08 Robert Millan <rmh@aybabtu.com>
15550
15551 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
15552 grub_dprintf() calls.
15553 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
15554 error message.
15555
1ec8425d 155562008-02-07 Christian Franke <franke@computer.org>
15557
15558 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
15559 instead of fseek and ftell to support large files.
15560 (grub_hostfs_read): Likewise.
15561
f2156fda 155622008-02-07 Robert Millan <rmh@aybabtu.com>
15563
15564 Patch from Jeroen Dekkers.
15565 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 15566 failure, since successfully reading all array members might not be
f2156fda 15567 required.
15568
9216e0e7 155692008-02-06 Robert Millan <rmh@aybabtu.com>
15570
15571 * util/grub-probe.c (probe): Simplify partmap probing (with the
15572 assumption that the first word up to the underscore equals to
15573 the module name).
15574
b0dfd29a 155752008-02-06 Christian Franke <franke@computer.org>
15576
15577 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
15578 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
15579 last block of a cpio or tar stream.
15580 Check for "TRAILER!!!" instead of any empty data
15581 block to detect last block of a cpio stream.
15582 (grub_cpio_dir): Fix constness of variable np.
15583 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
15584 cpio or tar trailer is detected. This fixes a crash
15585 on open of a non existing file.
15586
c32865bf 155872008-02-05 Bean <bean123ch@gmail.com>
15588
15589 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
15590 address of entry.
15591 (grub_multiboot_load_elf64): Likewise.
15592 (grub_multiboot): Initialize mbi structure.
15593
15594 * util/grub-fstest.c: Don't include unused header file script.h.
15595
fe6b695a 15596 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 15597 of file.
15598 (grub_fstest_SOURCES): Likewise.
15599
409480b7 156002008-02-05 Robert Millan <rmh@aybabtu.com>
15601
15602 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
15603 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
15604 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
15605 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
15606
15607 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
15608 (translation_table): Replace hardcoded values with macros
15609 provided by `<grub/term.h>'.
15610
15611 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
15612 (keyboard_map): Correct/add a few values, with macros provided
15613 by `<grub/term.h>'.
15614 (keyboard_map_shift): Zero values that don't differ from their
15615 `keyboard_map' equivalents.
15616 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
15617 Discard the second scan code that is always sent by Caps lock.
15618 Only use `keyboard_map_shift' when it provides a non-zero value,
15619 otherwise fallback to `keyboard_map'.
15620
99fadbaa 156212008-02-04 Bean <bean123ch@gmail.com>
15622
15623 * Makefile.in (enable_grub_fstest): New variable.
15624
15625 * conf/common.rmk (grub_fstest_init.lst): New rule.
15626 (grub_fstest_init.h): Likewise.
15627 (grub_fstest_init.c): Likewise.
15628 (util/grub-fstest.c_DEPENDENCIES): New variable.
15629 (grub_fstest_SOURCES): Likewise.
15630
15631 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
15632
15633 * util/grub-fstest.c: New file.
15634
bf567c50 156352008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
15636
15637 Make grub-setup handle a separate root device.
f19dbdb7 15638
bf567c50 15639 * util/i386/pc/grub-setup.c (setup): Always open the root device,
15640 so that the root device can be compared with the destination
15641 device.
15642 When embedding the core image, if the root and destination devices
15643 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
15644 0xFF.
15645 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 15646
9be6b98b 156472008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
15648
15649 Add support for having a grub directory in a different drive. This
15650 is still only the data handling part.
f19dbdb7 15651
9be6b98b 15652 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
15653 (codestart): Save %dh in GRUB_ROOT_DRIVE.
15654 (grub_root_drive): New variable.
15655
15656 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
15657 instead of GRUB_BOOT_DRIVE to construct a device name. Set
15658 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
15659 as it was.
15660
15661 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
15662
15663 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
15664 macro.
15665 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
15666
15667 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
15668 is bogus, because PXE booting does not specify any drive
15669 correctly.
15670
15671 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
15672 am not sure if this is really correct.
15673
15674 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
15675 is always identical to the boot drive when booting from a CD.
15676
15677 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
15678 longer.
15679 (root_drive): New variable.
15680 (real_start): Unconditionally set %dh to ROOT_DRIVE.
15681 (setup_sectors): Push %dx right after popping it, because %dh will
15682 be modified later.
15683 (copy_buffer): Restore %dx.
15684
e0ca0677 156852008-02-03 Robert Millan <rmh@aybabtu.com>
15686
15687 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
15688 use `cdboot.img' for cdrom images.
15689
3b3f6629 156902008-02-03 Robert Millan <rmh@aybabtu.com>
15691
15692 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
15693 only setup gfxterm when `font' command has succeeded.
15694
d42b3672 156952008-02-03 Robert Millan <rmh@aybabtu.com>
15696
15697 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
15698 (grub_rescue_cmd_multiboot_loader)
15699 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
15700
fa370ea6 157012008-02-03 Pavel Roskin <proski@gnu.org>
15702
e0c5dacb 15703 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 15704 %edx and %esi from stack only after grub_gate_a20() is called.
15705 grub_gate_a20() clobbers %edx.
15706
f2a76e1d 157072008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
15708
15709 * configure.ac (AC_INIT): Bumped to 1.96.
15710
15711 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
15712 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
15713 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
15714 video/readers/png.c.
15715
90fd32d1 157162008-02-03 Bean <bean123ch@gmail.com>
9be665dd 15717
15718 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
15719 (cdboot_img_SOURCES): New variable.
15720 (cdboot_img_ASFLAGS): New variable.
15721 (cdboot_img_LDFLAGS): New variable.
15722
15723 * boot/i386/pc/cdboot.S: New file.
15724
15725 * disk/i386/pc/biosdisk.c (cd_start): New variable.
15726 (cd_count): Likewise.
15727 (grub_biosdisk_get_drive): Add support for cd device.
15728 (grub_biosdisk_call_hook): Likewise.
15729 (grub_biosdisk_iterate): Likewise.
15730 (grub_biosdisk_open): Likewise.
15731 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
15732 (grub_biosdisk_rw): Support reading from cd device.
15733 (GRUB_MOD_INIT): Iterate cd devices.
15734
15735 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
15736 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
15737 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
15738
15739 * kern/i386/pc/init.c (make_install_device): Check for cd device.
15740
4020aa53 157412008-02-02 Robert Millan <rmh@aybabtu.com>
15742
15743 * commands/read.c: New file.
15744 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
15745 (read_mod_SOURCES): New variable.
15746 (read_mod_CFLAGS): Likewise.
15747 (read_mod_LDFLAGS): Likewise.
15748
e03a1132 157492008-02-02 Robert Millan <rmh@aybabtu.com>
15750
15751 * normal/main.c (grub_normal_execute): Check for `menu->size' when
15752 determining whether menu has to be displayed.
15753
58c69220 157542008-02-02 Marco Gerards <marco@gnu.org>
15755
15756 * bus/pci.c: New file.
15757
15758 * include/grub/pci.h: Likewise.
15759
15760 * include/grub/i386/pc/pci.h: Likewise.
15761
15762 * commands/lspci.c: Likewise.
15763
15764 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
15765 `lspci.mod'.
15766 (pci_mod_SOURCES): New variable.
15767 (pci_mod_CFLAGS): Likewise.
15768 (pci_mod_LDFLAGS): Likewise.
15769 (lspci_mod_SOURCES): Likewise.
15770 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 15771 (lspci_mod_LDFLAGS): Likewise.
58c69220 15772
c004e1b4 157732008-02-02 Bean <bean123ch@gmail.com>
15774
15775 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
15776 (grub_ufs_get_file_block): Fix indirect block calculation problem.
15777
15778 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
15779 (grub_xfs_btree_node): New structure.
15780 (grub_xfs_btree_root): New structure.
15781 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
15782 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
15783 (GRUB_XFS_EXTENT_BLOCK): Likewise.
15784 (GRUB_XFS_EXTENT_SIZE): Likewise.
15785 (grub_xfs_read_block): Support btree format type.
15786 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
15787 Use directory block as basic unit.
15788
15789 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
15790
15791 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
15792 __attribute__ ((__regparm__ (1))).
15793
f95562bf 157942008-02-01 Robert Millan <rmh@aybabtu.com>
15795
15796 Correct a mistake in previous commit.
15797
15798 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
15799 top.
15800 (normal/command.c_DEPENDENCIES): New variable.
15801
7d31f41f 158022008-02-01 Robert Millan <rmh@aybabtu.com>
15803
15804 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
15805 top.
15806 (normal/command.c_DEPENDENCIES): New variable.
15807 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
15808 * conf/i386-ieee1275.rmk: Likewise.
15809 * conf/i386-linuxbios.rmk: Likewise.
15810 * conf/i386-pc.rmk: Likewise.
15811 * conf/sparc64-ieee1275.rmk: Likewise.
15812 * conf/powerpc-ieee1275.rmk: Likewise.
15813 (grub_emu_SOURCES): Add `fs/fshelp.c'.
15814
15815 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
15816
60b6be74 158172008-02-01 Robert Millan <rmh@aybabtu.com>
15818
15819 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
15820 call at beginning of function.
15821
078522ab 158222008-01-31 Pavel Roskin <proski@gnu.org>
15823
15824 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 15825 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
15826 (grub_mkrescue_SOURCES): Likewise.
078522ab 15827 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
15828
ccaa8a5f 158292008-01-30 Robert Millan <rmh@aybabtu.com>
15830
15831 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
15832 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
15833 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
15834 (grub_probe_SOURCES): ... to here.
15835
15836 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
15837 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
15838 * conf/i386-ieee1275.rmk: Likewise.
15839 * conf/i386-linuxbios.rmk: Likewise.
15840 * conf/powerpc-ieee1275.rmk: Likewise.
15841
ae5a9cd7 158422008-01-30 Tristan Gingold <gingold@free.fr>
15843
15844 * kern/rescue.c: Silently accept empty lines.
15845
70bc2ef2 158462008-01-29 Bean <bean123ch@gmail.com>
15847
15848 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
15849 (real_code_2): Code cleanup and change comment style.
15850 (move_memory): Avoid using 32-bit address mode.
15851
6a4d50ea 158522008-01-29 Bean <bean123ch@gmail.com>
15853
15854 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
15855 (png_mod_SOURCES): New variable.
15856 (png_mod_CFLAGS): Likewise.
15857 (png_mod_LDFLAGS): Likewise.
15858
15859 * video/readers/png.c: New file.
15860
11cc30ac 158612008-01-28 Robert Millan <rmh@aybabtu.com>
15862
15863 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
15864 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
15865 `ifndef GRUB_MOD_GAP' hack.
15866 * util/elf/grub-mkimage.c (add_segments): Likewise.
15867
3abc589f 158682008-01-27 Robert Millan <rmh@aybabtu.com>
15869
15870 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
15871 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 15872 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 15873
e1907778 158742008-01-27 Robert Millan <rmh@aybabtu.com>
15875
15876 Get grub-emu to build again (including parallel builds).
15877
15878 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
15879 Split into ...
15880 (util/grub-emu.c_DEPENDENCIES): ... this, ...
15881 (normal/execute.c_DEPENDENCIES): ... this, ...
15882 (grub-emu_DEPENDENCIES): ... and this.
15883
15884 * conf/i386-efi.rmk: Likewise.
15885 * conf/i386-linuxbios.rmk: Likewise.
15886 * conf/i386-ieee1275.rmk: Likewise.
15887 * conf/powerpc-ieee1275.rmk: Likewise.
15888 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
15889
2216b101 158902008-01-27 Robert Millan <rmh@aybabtu.com>
15891
15892 * NEWS: Add a few items.
15893
f75172d9 158942008-01-27 Robert Millan <rmh@aybabtu.com>
15895
15896 Fix parallel builds with grub-emu. Based on earlier commit for
15897 grub-probe and grub-setup.
15898
15899 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
15900 (util/grub-emu.c_DEPENDENCIES): ... this.
15901 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
15902 (util/grub-emu.c_DEPENDENCIES): ... this.
15903 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
15904 (util/grub-emu.c_DEPENDENCIES): ... this.
15905 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
15906 (util/grub-emu.c_DEPENDENCIES): ... this.
15907 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
15908 (util/grub-emu.c_DEPENDENCIES): ... this.
15909
3f51de77 159102008-01-27 Pavel Roskin <proski@gnu.org>
15911
15912 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
15913 to create a gap between _end and the modules added to the image
15914 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
15915 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
15916 * util/elf/grub-mkimage.c (add_segments): Likewise.
15917
2033f53e 159182008-01-26 Pavel Roskin <proski@gnu.org>
15919
15920 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
15921 just return an error.
15922
22da1f6f 159232008-01-26 Bean <bean123ch@gmail.com>
15924
15925 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
15926 (grub_reiserfs_get_item): Save offset of the next item.
15927 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
15928
2a9525e6 159292008-01-25 Robert Millan <rmh@aybabtu.com>
15930
15931 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
15932 make all filesystem sources appear together (possibly fixing omissions
15933 while at it).
15934 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15935 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15936 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
15937 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15938
15939 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
15940 add `kern/file.c'.
15941 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
15942 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
15943 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
15944 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
15945
15946 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
15947 (probe): Add a sanity check to make sure of our ability to read
15948 requested files when probing for filesystem type.
15949
15950 * genmk.rb: Update copyright year (2007).
15951
15952 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
15953 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
15954 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
15955 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
15956 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
15957 : Remove function prototypes.
15958
b95f71b5 159592008-01-25 Robert Millan <rmh@aybabtu.com>
15960
15961 Revert my previous commits (based on wrong assumption of how grub_errno
15962 works).
15963
fe6b695a 15964 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 15965 * kern/file.c (grub_file_open): Likewise.
15966
d08bbb49 159672008-01-24 Pavel Roskin <proski@gnu.org>
15968
15969 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
15970 that hang if GRUB tries to setup colors.
15971 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
15972 colors for firmwares that don't support it.
15973 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
15974 Recognize Open Hack'Ware, set flags to work around its
15975 limitations.
15976
605e36ed 159772008-01-24 Robert Millan <rmh@aybabtu.com>
15978
15979 * kern/file.c (grub_file_open): Do not account previous failures of
15980 unrelated functions when grub_errno is checked for.
15981 Reported by Oleg Strikov.
15982
bac332a1 159832008-01-24 Bean <bean123ch@gmail.com>
15984
15985 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
15986 (grub_ufs_sblock): New member volume name.
15987 (grub_ufs_find_file): Fix string copy bug.
15988 (grub_ufs_label): Implement this function properly.
15989
15990 * fs/hfs.c (grub_hfs_cnid_type): New enum.
15991 (grub_hfs_iterate_records): Use the correct file number for extents
15992 and catalog file. Fix problem in next index calculation.
15993 (grub_hfs_find_node): Replace recursive function call with loop.
15994 (grub_hfs_iterate_dir): Replace recursive function call with loop.
15995
15c80c09 159962008-01-23 Robert Millan <rmh@aybabtu.com>
15997
15998 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
15999 `<grub/symbol.h>' and `<grub/multiboot.h>'.
16000 (grub_multiboot2_real_boot): New function prototype.
16001
16002 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
16003 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
16004
16005 * kern/i386/ieee1275/init.c (grub_os_area_addr)
16006 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
16007
305338fd 160082008-01-23 Robert Millan <rmh@aybabtu.com>
16009
16010 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
16011 #ifdef'ed out grub_printf().
16012
3ea52685 160132008-01-23 Robert Millan <rmh@aybabtu.com>
16014
16015 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
16016 grub_dprintf calls, since they make "debug=all" mode unusable.
16017 (grub_console_checkkey): Likewise.
16018
5882ae4b 160192008-01-23 Robert Millan <rmh@aybabtu.com>
16020
16021 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
16022 `term/i386/pc/at_keyboard.c'.
16023 (pkglib_MODULES): Add `serial.mod'.
16024 (serial_mod_SOURCES): New variable.
16025 (serial_mod_CFLAGS): Likewise.
16026 (serial_mod_LDFLAGS): Likewise.
16027
16028 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
16029 `<grub/powerpc/ieee1275/console.h>'.
16030 (grub_keyboard_controller_init): New function prototype.
16031 (grub_console_checkkey): Likewise.
16032 (grub_console_getkey): Likewise.
16033
16034 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
16035 keyboard on i386.
16036
16037 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
16038 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
16039
06ab5303 160402008-01-23 Robert Millan <rmh@aybabtu.com>
16041
16042 * kern/i386/pc/init.c (make_install_device): When memdisk image is
16043 present, "(memdisk)/boot/grub" becomes the default prefix.
16044
16045 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
16046 a memdisk tarball with all the modules. Add --overlay=DIR option that
16047 allows users to overlay additional files into the image.
16048
dbb475a4 160492008-01-23 Robert Millan <rmh@aybabtu.com>
16050
16051 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
16052 and `machine/memory.h'.
16053 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
16054 (_multiboot_mod_SOURCES): New variable.
16055 (_multiboot_mod_CFLAGS): Likewise.
16056 (_multiboot_mod_LDFLAGS): Likewise.
16057 (multiboot_mod_SOURCES): Likewise.
16058 (multiboot_mod_CFLAGS): Likewise.
16059 (multiboot_mod_LDFLAGS): Likewise.
16060
16061 * include/grub/i386/ieee1275/loader.h: New file.
16062
16063 * include/grub/i386/ieee1275/machine.h: Likewise.
16064
16065 * include/grub/i386/ieee1275/memory.h: Likewise.
16066
16067 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
16068 variable declaration.
16069 (grub_os_area_size): Likewise.
16070
16071 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
16072 (grub_lower_mem, grub_upper_mem): New variables.
16073 (grub_stop_floppy): New function (just to make
16074 grub_multiboot2_real_boot() happy).
16075
16076 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
16077 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
16078 (grub_stop): New function.
16079 Include `"../realmode.S"' and `"../loader.S"'.
16080
16081 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
16082 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
16083
16084 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
16085 rely on grub_multiboot2_real_boot() for final boot.
16086
25638629 160872008-01-22 Robert Millan <rmh@aybabtu.com>
16088
16089 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
16090 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
16091 device that doesn't look like an SD card.
16092 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
16093 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
16094 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
16095 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
16096 found.
16097
9dad816d 160982008-01-22 Robert Millan <rmh@aybabtu.com>
16099
16100 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
16101 avoid claiming over our own code.
16102
34842f2d 161032008-01-22 Bean <bean123ch@gmail.com>
16104
16105 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
16106 (jpeg_mod_SOURCES): New variable.
16107 (jpeg_mod_CFLAGS): Likewise.
16108 (jpeg_mod_LDFLAGS): Likewise.
16109
16110 * video/readers/jpeg.c : New file.
16111
44023a28 161122008-01-22 Bean <bean123ch@gmail.com>
16113
16114 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
16115 there are no more items.
16116
bc2d8ac6 161172008-01-21 Robert Millan <rmh@aybabtu.com>
16118
16119 * kern/mm.c (grub_mm_init_region): Improve debug message.
16120
261bd4bc 161212008-01-21 Robert Millan <rmh@aybabtu.com>
16122
16123 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
16124 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
16125 address.
16126 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
16127 a C macro.
16128 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
16129 Indicates start of upper memory.
16130 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
16131 (generate_image): Abort when image size is big enough to corrupt
16132 upper memory.
16133
16134 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
16135 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
16136 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
16137 instead of hardcoding 0xA0000.
16138 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
16139 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
16140 instead of hardcoding 0xA0000.
16141
f970b55e 161422008-01-21 Robert Millan <rmh@aybabtu.com>
16143
16144 * disk/memdisk.c (memdisk_size): New variable.
16145 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
16146 `memdisk_size'.
16147 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
16148 image to dynamic memory.
16149 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
16150 `memdisk_size'. Free memdisk block.
16151
1a8b0526 161522008-01-21 Robert Millan <rmh@aybabtu.com>
16153
16154 Fix detection of very small filesystems (like tar).
16155
16156 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
16157 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
16158 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
16159 a problem with this disk).
16160
6e9b4aab 161612008-01-21 Robert Millan <rmh@aybabtu.com>
16162
16163 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
16164 on grub_biosdisk_rw_standard() error.
16165
0d8837b2 161662008-01-21 Robert Millan <rmh@aybabtu.com>
16167
16168 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
16169 recent changes.
16170 * kern/elf.c: Likewise.
16171 * kern/ieee1275/ieee1275.c: Likewise.
16172 * kern/powerpc/ieee1275/openfw.c: Likewise.
16173 * term/ieee1275/ofconsole.c: Likewise.
16174
ffd36e34 161752008-01-21 Robert Millan <rmh@aybabtu.com>
16176
16177 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
16178
3f0093d0 16179 * include/grub/kernel.h (grub_arch_memdisk_addr)
16180 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 16181
3f0093d0 16182 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
16183 (grub_arch_memdisk_size): ... to here.
ffd36e34 16184
6c391b21 161852008-01-21 Robert Millan <rmh@aybabtu.com>
16186
16187 Mostly based on bugfix from Bean.
16188
16189 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
16190 attribute with hook() parameter.
16191 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
16192 declaration.
16193 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
16194 attribute with hook() parameter.
16195 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
16196 declaration.
16197
55a581dc 161982008-01-21 Robert Millan <rmh@aybabtu.com>
16199
16200 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
16201 (pkglib_MODULES): Add `memdisk.mod'.
16202 (memdisk_mod_SOURCES): New variable.
16203 (memdisk_mod_CFLAGS): Likewise.
16204 (memdisk_mod_LDFLAGS): Likewise.
16205
16206 * disk/memdisk.c: New file.
16207
16208 * include/grub/disk.h (grub_disk_dev_id): Add
16209 `GRUB_DISK_DEVICE_MEMDISK_ID'.
16210
16211 * include/grub/i386/pc/kernel.h
16212 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
16213 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
16214 (grub_kernel_image_size): New variable declaration.
16215 (grub_total_module_size): Likewise.
16216 (grub_memdisk_image_size): Likewise.
16217
16218 * include/grub/i386/pc/memory.h
16219 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
16220
16221 * include/grub/kernel.h: Include `<grub/symbol.h>'.
16222 (grub_arch_memdisk_addr): New variable declaration.
16223 (grub_arch_memdisk_size): Likewise.
16224
16225 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
16226 (grub_arch_memdisk_size): Likewise.
16227
16228 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
16229 (codestart): Replace hardcoded `0x100000' with
16230 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
16231
16232 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
16233 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
16234 not NULL, append the contents of the file it refers to, at the end of
16235 the compressed kernel image. Initialize `grub_memdisk_image_size'
16236 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
16237 (options): Add "memdisk"|'m' option.
16238 (main): Parse --memdisk|-m option, and pass user-provided path as
16239 parameter to generate_image().
16240
3d7f54c9 162412008-01-20 Robert Millan <rmh@aybabtu.com>
16242
16243 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
16244 grub_dprintf() calls from here ...
16245 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
16246
0bf74728 162472008-01-20 Robert Millan <rmh@aybabtu.com>
16248
16249 Fix detection of "real mode" when /options/real-mode? doesn't exist.
16250
16251 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
16252 declaration.
16253 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
16254 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
16255 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 16256 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 16257 property).
16258 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
16259 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
16260
33bf70a7 162612008-01-19 Robert Millan <rmh@aybabtu.com>
16262
fe6b695a 16263 Get rid of confusing function (superseded by
33bf70a7 16264 `grub_ieee1275_get_integer_property')
16265 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
16266 prototype.
16267 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
16268 function.
16269 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
16270 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 16271 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 16272
e2da7d26 162732008-01-19 Robert Millan <rmh@aybabtu.com>
16274
16275 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
16276 command after "shut-down", since implementations differ on which
16277 the command for halt is.
16278
59f1fd8d 162792008-01-19 Robert Millan <rmh@aybabtu.com>
16280
16281 * include/grub/i386/linuxbios/console.h: Add header protection.
16282 (grub_keyboard_controller_init): New function prototype.
16283 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
16284 (KEYBOARD_COMMAND_READ): Likewise.
16285 (KEYBOARD_COMMAND_WRITE): Likewise.
16286 (KEYBOARD_SCANCODE_SET1): Likewise.
16287 (grub_keyboard_controller_write): New function.
16288 (grub_keyboard_controller_read): Likewise.
16289 (grub_keyboard_controller_init): Likewise.
16290
16291 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
16292 (grub_console_init): On coreboot/LinuxBIOS, call
16293 grub_keyboard_controller_init().
16294
5f5a7c15 162952008-01-19 Robert Millan <rmh@aybabtu.com>
16296
16297 PowerPC changes provided by Pavel Roskin.
16298
16299 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
16300 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
16301 don't rely on cmain() doing it.
16302 * kern/i386/ieee1275/startup.S (_start): Store %eax in
16303 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
16304
1210e168 163052008-01-16 Robert Millan <rmh@aybabtu.com>
16306
16307 * include/grub/i386/linuxbios/memory.h
16308 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
16309 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
16310 receive `table_header' as argument. Instead, probe for it in the
16311 known memory ranges where it can be present.
16312 (grub_available_iterate): Do not pass a fixed `table_header' address
16313 to grub_linuxbios_table_iterate().
16314
3d04eab8 163152008-01-15 Robert Millan <rmh@aybabtu.com>
16316
16317 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
16318 * conf/i386-ieee1275.rmk: New file.
16319 * include/grub/i386/ieee1275/console.h: Likewise.
16320 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
16321 * include/grub/i386/ieee1275/kernel.h: Likewise.
16322 * include/grub/i386/ieee1275/time.h: Likewise.
16323 * kern/i386/ieee1275/init.c: Likewise.
16324 * kern/i386/ieee1275/startup.S: Likewise.
16325
d1bc1b73 163262008-01-15 Robert Millan <rmh@aybabtu.com>
16327
16328 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
16329 when pointers are 32-bit (but still do set it to one when they are
16330 64-bit).
16331
66a65807 163322008-01-15 Robert Millan <rmh@aybabtu.com>
16333
16334 * include/grub/ieee1275/ieee1275.h
16335 (grub_ieee1275_get_integer_property): New function prototype.
16336
16337 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
16338 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 16339 grub_ieee1275_get_property() to handle endianness.
66a65807 16340
16341 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
16342 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 16343 where appropriate.
66a65807 16344 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
16345 (grub_map): Likewise.
16346 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
16347
a83ccafd 163482008-01-15 Bean <bean123ch@gmail.com>
16349
16350 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
16351 (grub_script_execute_cmdline): Reset grub_errno.
16352
16353 * normal/main.c (read_config_file): Reset grub_errno.
16354
16355 * normal/parse.y (script_init): New.
16356 (script): Move function and menuentry here.
16357 (delimiter): New.
16358 (command): Add delimiter at the end of command.
16359 (commands): Adjust to match the new command.
16360 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 16361 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 16362 (if): Use the new commands.
16363
16364 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
16365
df6ecfc6 163662008-01-15 Robert Millan <rmh@aybabtu.com>
16367
16368 * normal/menu.c (run_menu): Move timeout message from here ...
16369 (print_timeout): ... to here.
16370 (run_menu): Use print_timeout() once during initial draw to print
16371 the whole message, and again in every clock tick to update only
16372 the number of seconds.
16373
87ae25eb 163742008-01-15 Robert Millan <rmh@aybabtu.com>
16375
16376 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
16377 actual size of `available' from grub_ieee1275_get_property(), and
16378 restrict parsing to that bound.
16379
47bf09a4 163802008-01-15 Christian Franke <franke@computer.org>
16381
16382 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
16383 (argp_program_version): Remove variable.
16384 (argp_program_bug_address): Likewise.
16385 (options): Convert from struct argp_option to struct option.
16386 (struct arguments): Remove.
16387 (parse_opt): Remove.
16388 (usage): New function.
16389 (main): Replace struct args members by simple variables.
16390 Replace argp_parse() by getopt_long().
16391 Add switch to evaluate options.
16392 Add missing "(...)" around root_dev in prefix string.
16393
c86f1469 163942008-01-14 Robert Millan <rmh@aybabtu.com>
16395
16396 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
16397 for grub_ieee1275_exit(), in order to improve portability.
16398
e622c559 163992008-01-14 Robert Millan <rmh@aybabtu.com>
16400
16401 * util/grub.d/10_linux.in (prefix): Define.
16402 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
16403
44cb1ec8 164042008-01-13 Pavel Roskin <proski@gnu.org>
16405
16406 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
16407 grub_errno if no errors have been detected.
16408
1eb8c802 164092008-01-12 Robert Millan <rmh@aybabtu.com>
16410
16411 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
16412 (grub_util_get_dev_abstraction): New function prototype.
16413
16414 * util/getroot.c: Include `<grub/util/getroot.h>'
16415 (grub_util_get_grub_dev): Move detection of abstraction type to ...
16416 (grub_util_get_dev_abstraction): ... here (new function).
16417
16418 * util/grub-probe.c: Convert PRINT_* to an enum. Add
16419 `PRINT_ABSTRACTION'.
16420 (probe): Probe for abstraction type when requested.
16421 (main): Understand `--target=abstraction'.
16422
16423 * util/i386/efi/grub-install.in: Add abstraction module to core
16424 image when it is found to be necessary.
16425 * util/i386/pc/grub-install.in: Likewise.
16426 * util/powerpc/ieee1275/grub-install.in: Likewise.
16427
16428 * util/update-grub_lib.in (font_path): Return system path without
16429 converting to GRUB path.
16430 * util/update-grub.in: Convert system path returned by font_path()
16431 to a GRUB path. Use `grub-probe -t abstraction' to determine what
16432 abstraction module is needed for loading fonts (if any). Export
16433 that as `GRUB_PRELOAD_MODULES'.
16434 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
16435 insmod commands).
16436
52bd3de9 164372008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
16438
16439 Remove some unused code from reiserfs.
f19dbdb7 16440
52bd3de9 16441 * fs/reiserfs.c (struct grub_reiserfs_key)
16442 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
16443 (struct grub_reiserfs_node_body): Removed.
16444 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
16445 Likewise.
16446 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
16447 Likewise.
16448 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
16449 Likewise.
16450 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
16451 Likewise.
16452 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
16453 Likewise.
16454 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
16455 Likewise.
16456 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
16457 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
16458 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
16459
2f80039d 164602008-01-10 Robert Millan <rmh@aybabtu.com>
16461
16462 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
16463 Determines if a file is garbage left by packaging systems, etc.
16464 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
16465 for processing /etc/grub.d scripts.
16466 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
16467 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
16468 as a condition for processing Linux images.
16469
87888032 164702008-01-10 Pavel Roskin <proski@gnu.org>
16471
16472 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
16473 to compile reiserfs.c on PowerPC.
16474
7e54fced 164752008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 16476
16477 * kern/device.c (grub_device_iterate): Do not abort device iteration
16478 when one of the devices cannot be opened.
16479 * kern/disk.c (grub_disk_open): Do not account previous failures of
16480 unrelated functions when grub_errno is checked for.
16481
5aa541e6 164822008-01-08 Robert Millan <rmh@aybabtu.com>
16483
16484 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
16485 `! grub_linux_is_bzimage', change order of address comparison to make
16486 it more intuitive, and improve "too big zImage" error message.
16487
7076340d 164882008-01-08 Robert Millan <rmh@aybabtu.com>
16489
16490 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
16491 `$(update-grub_DATA)'.
16492 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
16493 targets.
16494
9ca70333 164952008-01-07 Robert Millan <rmh@aybabtu.com>
16496
16497 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
16498 which instruction is modified by grub-setup during installation
16499 (since it wasn't obvious by only looking at this file).
16500
38ccf575 165012008-01-07 Robert Millan <rmh@aybabtu.com>
16502
16503 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
16504 listing actual TODO items.
16505
f5db4291 165062008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
16507
868967cf 16508 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
16509 correctly.
16510 (grub_reiserfs_get_key_offset): Likewise.
16511 (grub_reiserfs_set_key_offset): Likewise.
16512 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 16513 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 16514
16515 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
16516 better to remove the bitfield version completely.
f19dbdb7 16517
868967cf 165182008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 16519
f5db4291 16520 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
16521 allocated from the heap, due to the fshelp implementation.
16522 (grub_reiserfs_dir): Free NODE, due to the same reason.
16523
492e6d9d 165242008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
16525
16526 Mostly from Vincent Pelletier:
f19dbdb7 16527
492e6d9d 16528 * fs/reiserfs.c: New file.
f19dbdb7 16529
492e6d9d 16530 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
16531 (reiserfs_mod_SOURCES): New variable.
16532 (reiserfs_mod_CFLAGS): Likewise.
16533 (reiserfs_mod_LDFLAGS): Likewise.
16534
16535 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
16536 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
16537 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
16538 normal/color.c.
16539
9ce3e7c1 165402008-01-06 Robert Millan <rmh@aybabtu.com>
16541
16542 * normal/color.c: Remove `<grub/env.h>'.
16543
f3b58148 165442008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
16545
16546 * include/grub/normal.h: Include <grub/env.h>.
16547
7ac3bcfa 165482008-01-05 Robert Millan <rmh@aybabtu.com>
16549
16550 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
16551 usage example with `(hd0,1)'.
fb358190 16552 Reported by Samuel Thibault.
7ac3bcfa 16553
c8ee99d7 165542008-01-05 Robert Millan <rmh@aybabtu.com>
16555
16556 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
16557 (grub_linux_boot_zimage): Rename to ...
16558 (grub_linux_boot): ... this.
16559 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
16560 (grub_linux_boot_zimage): Conditionalize zImage copy.
16561
16562 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
16563 (grub_linux_boot_bzimage): Remove prototype.
16564 (grub_linux_boot_zimage): Rename to ...
16565 (grub_linux_boot): ... this.
16566
16567 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
16568 (grub_linux_boot): Remove function.
16569
0ece25b1 165702008-01-05 Robert Millan <rmh@aybabtu.com>
16571
16572 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
16573 (grub_env_write_color_highlight): Likewise.
16574 (grub_wait_after_message): Likewise.
16575
16576 * normal/color.c: New file.
16577
16578 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
16579 (normal_mod_DEPENDENCIES): Likewise.
16580
16581 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
16582 (normal_mod_DEPENDENCIES): Likewise.
16583
16584 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
16585 (normal_mod_DEPENDENCIES): Likewise.
16586
16587 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
16588 (normal_mod_DEPENDENCIES): Likewise.
16589
16590 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
16591 for waiting after a message is printed.
16592 * normal/main.c (read_config_file): Likewise.
16593 (grub_normal_init): Register grub_env_write_color_normal() and
16594 grub_env_write_color_highlight() hooks. Mark `color_normal' and
16595 `color_highlight' variables as global.
16596
16597 * normal/menu.c (grub_wait_after_message): New function.
16598 (grub_color_menu_normal): New variable. Replaces ...
16599 (GRUB_COLOR_MENU_NORMAL): ... this macro.
16600 (grub_color_menu_highlight): New variable. Replaces ...
16601 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
16602 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
16603 `GRUB_TERM_COLOR_STANDARD'.
16604 (print_message): Use `grub_setcolorstate' to reload colors. Rename
16605 `normal_code' and `highlight_code' to `old_color_normal' and
16606 `old_color_highlight', respectively.
16607 (grub_menu_init_page): Update colors when drawing the menu, based on
16608 `menu_color_normal' and `menu_color_highlight' variables.
16609 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
16610 a message is printed.
16611
182dd4e5 166122008-01-05 Robert Millan <rmh@aybabtu.com>
16613
16614 * kern/env.c (grub_env_context_open): Propagate hooks for global
16615 variables to new context.
16616
16617 * kern/main.c (grub_set_root_dev): Export `root' variable.
16618
ddf8f6ad 166192008-01-05 Robert Millan <rmh@aybabtu.com>
16620
16621 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 16622 discs unconditionally, since udev and others have options to provide
ddf8f6ad 16623 them.
16624
d8b43d9b 166252008-01-05 Robert Millan <rmh@aybabtu.com>
16626
16627 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
16628
2bff2de3 166292008-01-04 Christian Franke <franke@computer.org>
16630
16631 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
16632 of eisa_mmap.
16633
97eab917 166342008-01-03 Pavel Roskin <proski@gnu.org>
16635
16636 * kern/i386/linuxbios/init.c: Put "void" to all function
16637 declarations with no arguments.
16638 * kern/powerpc/ieee1275/init.c: Likewise.
16639 * term/i386/pc/at_keyboard.c: Likewise.
16640 * term/i386/pc/vga_text.c: Likewise.
16641 * util/grub-mkdevicemap.c: Likewise.
16642
b9416d00 166432008-01-02 Robert Millan <rmh@aybabtu.com>
16644
16645 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
16646 message when loaded image is out of bounds.
16647 (grub_multiboot_load_elf64): Likewise.
16648
92695df9 166492008-01-02 Pavel Roskin <proski@gnu.org>
16650
16651 * util/grub.d/10_linux.in: Try version without ".old" when
16652 looking for initrd. It's better to use initrd from the newer
16653 kernel of the same version than no initrd at all.
16654
d98d9cad 166552008-01-01 Robert Millan <rmh@aybabtu.com>
16656
16657 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
16658
dbfdce36 166592008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
16660
f19dbdb7 16661 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 16662 grub_video_get_active_render_target.
16663 (grub_video_adapter): Added unmap_color and get_active_render_target.
16664
f19dbdb7 16665 * video/video.c: Added grub_video_unmap_color and
dbfdce36 16666 grub_video_get_active_render_target.
16667 (grub_video_get_info): Changed method to accept NULL pointer as an
16668 argument to allow detection of active video adapter.
16669
16670 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
16671 grub_video_vbe_unmap_color_int.
16672 Added grub_video_vbe_unmap_color and
16673 grub_video_vbe_get_active_render_target.
16674 (grub_video_vbe_adapter): Added unmap_color and
16675 get_active_render_target.
16676
f19dbdb7 16677 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 16678 with grub_video_vbe_unmap_color_int.
16679
16680 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
16681 (DEFAULT_NORMAL_COLOR): Likewise.
16682 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
16683 (DEFAULT_FG_COLOR): Removed.
16684 (DEFAULT_BG_COLOR): Likewise.
16685 (DEFAULT_CURSOR_COLOR): Changed value.
16686 (grub_virtual_screen): Added standard_color_setting,
16687 normal_color_setting, highlight_color_setting and term_color.
16688 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
16689 (bitmap_width): Added.
16690 (bitmap_height): Likewise.
16691 (bitmap): Likewise.
16692 (set_term_color): Likewise.
16693 (grub_virtual_screen_setup): Changed to use new terminal coloring
16694 settings.
16695 (grub_gfxterm_init): Added init for bitmap.
16696 (grub_gfxterm_fini): Added destroy for bitmap.
16697 (redraw_screen_rect): Updated to use background bitmap and new
16698 terminal coloring.
16699 (scroll_up): Added optimization for case when there is no bitmap.
16700 (grub_gfxterm_cls): Fixed to use correct background color.
16701 (grub_virtual_screen_setcolorstate): Changed to use new terminal
16702 coloring.
16703 (grub_virtual_screen_setcolor): Likewise.
16704 (grub_virtual_screen_getcolor): Added.
16705 (grub_gfxterm_background_image_cmd): Likewise.
16706 (grub_video_term): Added setcolor and getcolor.
16707 (MOD_INIT): Added registration of background_image command.
16708 (MOD_TERM): Added unregistration for background_image command.
16709
c3c20931 167102007-12-30 Pavel Roskin <proski@gnu.org>
16711
16712 * loader/multiboot_loader.c: Fix multiboot command
16713 unregistration. Fix all typos in the word "multiboot".
16714
df266716 167152007-12-29 Pavel Roskin <proski@gnu.org>
94239199 16716
16717 * util/grub.d/10_linux.in: Refactor search for initrd. Add
16718 support for initrd names used in Fedora.
16719
fc6e896c 167202007-12-26 Bean <bean123ch@gmail.com>
16721
16722 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
16723 (cpio_mod_SOURCES): New variable.
16724 (cpio_mod_CFLAGS): Likewise.
16725 (cpio_mod_LDFLAGS): Likewise.
16726
16727 * fs/cpio.c: New file.
16728
16729 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
16730
16731 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16732
16733 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
16734
16735 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16736
533110ad 167372007-12-25 Robert Millan <rmh@aybabtu.com>
16738
16739 * include/grub/term.h (struct grub_term): Add `getcolor' function.
16740 (grub_getcolor): New function.
16741
16742 * kern/term.c (grub_getcolor): New function.
16743 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
16744 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
16745 (print_entry): Set normal and highlight colors to
16746 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
16747 respectively, before printing and restore them to old
16748 values afterwards.
16749 (grub_menu_init_page): Likewise. Fill an additional colored space
16750 that would otherwise be left blank.
16751
16752 * term/efi/console.c (grub_console_getcolor): New function.
16753 (struct grub_console_term.getcolor): New variable.
16754 * term/i386/pc/console.c (grub_console_getcolor): New function.
16755 (struct grub_console_term.getcolor): New variable.
16756 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
16757 (struct grub_console_term.getcolor): New variable.
16758
16759 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
16760 (struct grub_console_term.setcolor): Remove variable.
16761 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
16762 (struct grub_console_term.setcolor): Remove variable.
16763 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
16764 (struct grub_console_term.setcolor): Remove variable.
16765 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
16766 (struct grub_console_term.setcolor): Remove variable.
16767
4931827f 167682007-12-25 Robert Millan <rmh@aybabtu.com>
16769
16770 * configure.ac: Search for possible unifont.hex locations, and
16771 define UNIFONT_HEX if found.
16772
16773 * Makefile.in (UNIFONT_HEX): Define variable.
16774 (DATA): Rename to ...
16775 (PKGLIB): ... this. Update all users.
16776 (PKGDATA): New variable.
16777 (pkgdata_IMAGES): Rename to ...
16778 (pkglib_IMAGES): ... this. Update all users.
16779 (pkgdata_MODULES): Rename to ...
16780 (pkglib_MODULES): ... this. Update all users.
16781 (pkgdata_PROGRAMS): Rename to ...
16782 (pkglib_PROGRAMS): ... this. Update all users.
16783 (pkgdata_DATA): Rename to ...
16784 (pkglib_DATA): ... this. Update all users.
16785 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
16786 (unicode.pff, ascii.pff): New rules.
16787 (all-local): Add `$(PKGDATA)' dependency.
16788 (install-local): Process `$(PKGDATA)'.
16789
16790 * util/update-grub_lib.in (font_path): Search for *.pff files in
16791 a few more locations, including `${pkgdata}'.
16792
57e57e31 167932007-12-23 Robert Millan <rmh@aybabtu.com>
16794
16795 Patch from Bean <bean123ch@gmail.com>:
16796 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
16797 `size'.
16798
4bc72aa9 167992007-12-21 Bean <bean123ch@gmail.com>
16800
16801 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
16802 (ntfscomp_mod_SOURCES): New variable.
16803 (ntfscomp_mod_CFLAGS): Likewise.
16804 (ntfscomp_mod_LDFLAGS): Likewise.
16805
16806 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
16807 (grub_probe_SOURCES): Likewise.
16808 (grub_emu_SOURCES): Likewise.
16809
16810 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
16811 (grub_emu_SOURCES): Likewise.
16812
16813 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
16814 (grub_emu_SOURCES): Likewise.
16815
16816 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
16817 (grub_emu_SOURCES): Likewise.
16818
16819 * fs/ntfs.c (grub_ntfscomp_func): New variable.
16820 (read_run_list): Renamed to grub_ntfs_read_run_list.
16821 (decomp_nextvcn): Moved to ntfscomp.c.
16822 (decomp_getch): Likewise.
16823 (decomp_get16): Likewise.
16824 (decomp_block): Likewise.
16825 (read_block): Likewise.
16826 (read_data): Partially moved to ntfscomp.c.
16827 (fixup): Change unsigned to grub_uint16_t.
16828 (read_mft): Change unsigned long to grub_uint32_t.
16829 (read_attr): Likewise.
16830 (read_data): Likewise.
16831 (read_run_data): Likewise.
16832 (read_run_list): Likewise.
16833 (read_mft): Likewise.
16834
16835 * fs/ntfscomp.c: New file.
16836
16837 * include/grub/ntfs.h: New file.
16838
af680a87 168392007-12-16 Robert Millan <rmh@aybabtu.com>
16840
16841 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
16842 IDE disk check, since Linux is known to support 20 IDE disks.
16843 Reported by Colin Watson.
16844
84be7599 168452007-12-15 Bean <bean123ch@gmail.com>
16846
16847 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
16848 (lnxboot_img_SOURCES): New variable.
16849 (lnxboot_img_ASFLAGS): Likewise.
16850 (lnxboot_img_LDFLAGS): Likewise.
16851
16852 * boot/i386/pc/lnxboot.S: New file.
16853
6af9db01 168542007-11-24 Pavel Roskin <proski@gnu.org>
16855
16856 * configure.ac: Test if '--build-id=none' is supported by the
16857 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
16858 objcopy to generate incorrect binary files (binutils
16859 2.17.50.0.18-1 as shipped by Fedora 8).
16860 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
16861 linking, so that build ID doesn't break the test.
16862
7361cfe6 168632007-11-24 Pavel Roskin <proski@gnu.org>
16864
16865 * include/grub/i386/time.h: use "void" in the argument list
16866 of grub_cpu_idle().
16867 * include/grub/powerpc/time.h: Likewise.
16868 * include/grub/sparc64/time.h: Likewise.
16869
1593e10c 168702007-11-18 Christian Franke <franke@computer.org>
16871
16872 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
16873 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
16874 This fixes the problem that function keys did not work in grub-emu.
16875
3b8db1a8 168762007-11-18 Christian Franke <franke@computer.org>
16877
16878 * disk/host.c (grub_host_open): Remove attribute unused from
16879 name parameter. Add check for "host". This fixes the problem
16880 that grub-emu does not find partitions.
16881
2e29408d 168822007-11-18 Christian Franke <franke@computer.org>
16883
16884 * util/hostfs.c (is_dir): New function.
16885 (grub_hostfs_dir): Handle missing dirent.d_type case.
16886 (grub_hostfs_read): Add missing fseek().
16887 (grub_hostfs_label): Clear label pointer. This fixes a crash
16888 of grub-emu on "ls (host)".
16889
398cd047 168902007-11-18 Christian Franke <franke@computer.org>
16891
16892 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
16893 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
16894 to 64 bit boundary by default.
16895
c405c391 168962007-11-18 Bean <bean123ch@gmail.com>
16897
16898 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
16899 (hexdump_mod_SOURCES): New variable.
16900 (hexdump_mod_CFLAGS): Likewise.
16901 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 16902
c405c391 16903 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
16904
16905 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
16906
16907 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
16908
16909 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
16910
16911 * include/grub/hexdump.h: New file.
16912
16913 * commands/hexdump.c: New file.
16914
5cced7fd 169152007-11-10 Robert Millan <rmh@aybabtu.com>
16916
16917 * commands/i386/pc/play.c (beep_off): Switch order of arguments
16918 in grub_outb() calls.
16919 (beep_on): Likewise.
16920
8b714eb0 169212007-11-10 Christian Franke <franke@computer.org>
16922
16923 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
16924 (grub_menu_run): Likewise.
16925
ce0f1839 169262007-11-10 Robert Millan <rmh@aybabtu.com>
16927
16928 * include/grub/i386/efi/machine.h: New file.
16929 * include/grub/i386/linuxbios/machine.h: Likewise.
16930 * include/grub/i386/pc/machine.h: Likewise.
16931 * include/grub/powerpc/ieee1275/machine.h: Likewise.
16932 * include/grub/sparc64/ieee1275/machine.h: Likewise.
16933
16934 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
16935 (serial_hw_io_addr): New variable.
16936 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
16937 instead of `(unsigned short *) 0x400'.
16938
270c237d 169392007-11-10 Bean <bean123ch@gmail.com>
16940
16941 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
16942
a87783bf 169432007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
16944
16945 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
16946 (vga_mod_SOURCES): Added.
16947 (vga_mod_CFLAGS): Likewise.
16948 (vga_mod_LDFLAGS): Likewise.
16949
16950 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
16951 grub_outb() calls.
16952 (set_map_mask): Likewise.
16953 (set_read_map): Likewise.
16954 (set_read_address): Likewise.
16955 (vga_font): Removed variable.
16956 (get_vga_glyph): Removed function.
16957 (invalidate_char): Likewise.
16958 (write_char): Changed to use grub_font_get_glyph() for font
16959 information.
16960 (grub_vga_putchar): Likewise.
16961 (grub_vga_getcharwidth): Likewise.
16962
6433b448 169632007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
16964
16965 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
16966 flags.
16967 (pxeboot_img_LDFLAGS): Likewise.
16968 (diskboot_img_LDFLAGS): Likewise.
16969 (kernel_img_LDFLAGS): Likewise.
16970
49178511 169712007-11-06 Robert Millan <rmh@aybabtu.com>
16972
16973 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
16974 in grub_outb() calls.
16975 (serial_hw_init): Likewise.
16976
53b052de 169772007-11-05 Robert Millan <rmh@aybabtu.com>
16978
16979 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
16980 spaces. Skip non-regular files.
16981
5ab33bba 169822007-11-05 Robert Millan <rmh@aybabtu.com>
16983
16984 * kern/disk.c (grub_disk_firmware_fini)
16985 (grub_disk_firmware_is_tainted): New variables.
16986
16987 * include/grub/disk.h (grub_disk_firmware_fini)
16988 (grub_disk_firmware_is_tainted): Likewise.
16989
16990 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
16991 (grub_disk_biosdisk_fini): ... to here.
16992 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
16993 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
16994 is set. Register grub_disk_biosdisk_fini() in
16995 `grub_disk_firmware_fini'.
16996
16997 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
16998 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
16999 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
17000 to finish existing firmware disk interface.
17001
17002 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
17003 (ata_mod_SOURCES): New variable.
17004 (ata_mod_CFLAGS): Likewise.
17005 (ata_mod_LDFLAGS): Likewise.
17006
0149ab7c 170072007-11-05 Robert Millan <rmh@aybabtu.com>
17008
17009 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
17010 (grub_ata_wait): Reimplement using grub_millisleep().
17011
17012 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
17013 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
17014
be7ac41e 170152007-11-03 Marco Gerards <marco@gnu.org>
17016
17017 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
17018 (CRTC_ADDR_PORT): New macro.
17019 (CRTC_DATA_PORT): Likewise.
17020 (CRTC_CURSOR): Likewise.
17021 (CRTC_CURSOR_ADDR_HIGH): Likewise.
17022 (CRTC_CURSOR_ADDR_LOW): Likewise.
17023 (update_cursor): New function.
17024 (grub_console_real_putchar): Call `update_cursor'.
17025 (grub_console_gotoxy): Likewise.
17026 (grub_console_cls): Set the default color when clearing the
17027 screen.
17028 (grub_console_setcursor): Implemented.
17029
bb06ab2e 170302007-11-03 Marco Gerards <marco@gnu.org>
17031
17032 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
17033 become activate.
17034 (grub_ata_pio_write): Likewise.
17035
17036 (grub_atapi_identify): Wait after issuing an ATA command.
17037 (grub_atapi_packet): Likewise.
17038 (grub_ata_identify): Likewise.
17039 (grub_ata_readwrite): Likewise.
17040
cf8f780b 170412007-11-03 Marco Gerards <marco@gnu.org>
17042
17043 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
17044 (grub_ata_pio_write): Likewise.
17045 (grub_ata_readwrite): Use `grub_error', instead of
17046 returning `grub_errno'.
17047
ed649e54 170482007-11-03 Marco Gerards <marco@gnu.org>
17049
17050 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
17051 grub_ata_pio_write once for every single sector, instead of for
17052 multiple sectors.
17053
ca25d8f0 170542007-10-31 Robert Millan <rmh@aybabtu.com>
17055
17056 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
17057
17058 * conf/i386-linuxbios.rmk: New file.
17059
17060 * kern/i386/pc/hardware.c: Likewise.
17061 * term/i386/pc/at_keyboard.c: Likewise.
17062 * term/i386/pc/vga_text.c: Likewise.
17063
17064 * include/grub/i386/linuxbios/boot.h: Likewise.
17065 * include/grub/i386/linuxbios/console.h: Likewise.
17066 * include/grub/i386/linuxbios/init.h: Likewise.
17067 * include/grub/i386/linuxbios/kernel.h: Likewise.
17068 * include/grub/i386/linuxbios/loader.h: Likewise.
17069 * include/grub/i386/linuxbios/memory.h: Likewise.
17070 * include/grub/i386/linuxbios/serial.h: Likewise.
17071 * include/grub/i386/linuxbios/time.h: Likewise.
17072
17073 * kern/i386/linuxbios/init.c: Likewise.
17074 * kern/i386/linuxbios/startup.S: Likewise.
17075 * kern/i386/linuxbios/table.c: Likewise.
17076
e911ecc1 170772007-10-31 Marco Gerards <marco@gnu.org>
17078
17079 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
17080 (ata_mod_SOURCES): New variable.
17081 (ata_mod_CFLAGS): Likewise.
17082 (ata_mod_LDFLAGS): Likewise.
17083
17084 * disk/ata.c: New file.
17085
17086 * include/grub/disk.h (grub_disk_dev_id): Add
17087 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 17088
7f66d0e0 170892007-10-31 Robert Millan <rmh@aybabtu.com>
17090
17091 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
17092 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
17093
17094 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
17095 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
17096
17097 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
17098 `<grub/types.h>'.
17099
17100 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
17101
5cd7dd46 171022007-10-27 Robert Millan <rmh@aybabtu.com>
17103
3236ca65 17104 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 17105
2ebfc90f 171062007-10-22 Robert Millan <rmh@aybabtu.com>
17107
17108 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
17109 `"../realmode.S"'.
17110 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
17111
73fcb0f3 171122007-10-22 Robert Millan <rmh@aybabtu.com>
17113
17114 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
17115 (pkgdata_MODULES): Add `biosdisk.mod'.
17116 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
17117 variables.
17118
17119 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
17120 (grub_biosdisk_init): Replace with ...
17121 (GRUB_MOD_INIT(biosdisk)): ... this.
17122 (grub_biosdisk_fini): Replace with ...
17123 (GRUB_MOD_FINI(biosdisk)): ... this.
17124
17125 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
17126 (grub_machine_init): Remove call to grub_biosdisk_init().
17127 (grub_machine_fini): Remove call to grub_machine_fini().
17128
17129 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
17130
3381d274 171312007-10-22 Robert Millan <rmh@aybabtu.com>
17132
17133 * include/grub/time.h: New file.
17134 * include/grub/i386/time.h: Likewise.
17135 * include/grub/powerpc/time.h: Likewise.
17136 * include/grub/sparc64/time.h: Likewise.
17137
17138 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
17139 instances to ...
17140 (KERNEL_MACHINE_TIME_HEADER): ... this.
17141 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
17142 instances to ...
17143 (KERNEL_MACHINE_TIME_HEADER): ... this.
17144 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
17145 instances to ...
17146 (KERNEL_MACHINE_TIME_HEADER): ... this.
17147
17148 * kern/i386/efi/init.c: Include `<grub/time.h>'.
17149 (grub_millisleep): New function.
17150 * kern/i386/pc/init.c: Include `<grub/time.h>'.
17151 (grub_millisleep): New function.
17152 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
17153 Remove `grub/machine/time.h' include.
17154 (grub_millisleep): New function.
17155 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
17156 Remove `grub/machine/time.h' include.
17157 (grub_millisleep): New function.
17158
17159 * include/grub/misc.h (grub_div_roundup): New function.
17160
17161 * kern/misc.c: Include `<grub/time.h>'.
17162 (grub_millisleep_generic): New function.
17163
17164 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
17165 Add `time.h'.
17166 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
17167 Add `time.h'.
17168 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
17169 `machine/time.h'. Add `time.h'.
17170 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
17171
a39a0312 171722007-10-21 Robert Millan <rmh@aybabtu.com>
17173
17174 * include/grub/misc.h (grub_max): New function.
17175
2aad70e2 171762007-10-21 Robert Millan <rmh@aybabtu.com>
17177
17178 * util/misc.c (grub_util_info): Call fflush() before returning.
17179
54b71c4b 171802007-10-20 Robert Millan <rmh@aybabtu.com>
17181
17182 * genmk.rb (Image): Copy `extra_flags' from here ...
17183 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
17184
17185 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
17186 to `argc' and `args' arguments.
17187
a979f513 171882007-10-17 Robert Millan <rmh@aybabtu.com>
17189
17190 * kern/i386/loader.S: New file.
17191
17192 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
17193 * kern/i386/loader.S (grub_linux_prot_size)... to here.
17194 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
17195 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
17196 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
17197 * kern/i386/loader.S (grub_linux_real_addr)... to here.
17198 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
17199 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
17200 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
17201 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
17202 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
17203 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
17204 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
17205 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
17206
17207 * kern/i386/realmode.S: New file.
17208
17209 * kern/i386/pc/startup.S (protstack): Moved from here ...
17210 * kern/i386/realmode.S (protstack)... to here.
17211 * kern/i386/pc/startup.S (gdt): Moved from here ...
17212 * kern/i386/realmode.S (gdt)... to here.
17213 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
17214 * kern/i386/realmode.S (prot_to_real)... to here.
17215
17216 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
17217 `kern/i386/realmode.S'.
17218
825fc8fd 172192007-10-17 Robert Millan <rmh@aybabtu.com>
17220
17221 * include/grub/i386/loader.h: New file.
17222
17223 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
17224 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
17225 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
17226 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
17227 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
17228 * include/grub/i386/loader.h (grub_linux_prot_size)
17229 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
17230 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
17231 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
17232 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
17233
17234 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
17235
e179b2f4 172362007-10-15 Robert Millan <rmh@aybabtu.com>
17237
17238 * normal/misc.c (grub_normal_print_device_info): Do not probe for
17239 filesystem when dev->disk is unset.
17240 Do probe for filesystem even when dev->disk->has_partitions is set.
17241 In case a filesystem is found, always report it.
17242 In case it isn't, if dev->disk->has_partitions is set, report that
17243 a partition table was found instead of reporting that no filesystem
17244 could be identified.
17245
5db82af6 172462007-10-12 Robert Millan <rmh@aybabtu.com>
17247
17248 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
17249 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
17250
68f6ac74 17251 * include/grub/types.h (grub_host_to_target16): New macro.
17252 (grub_host_to_target32): Likewise.
17253 (grub_host_to_target64): Likewise.
17254 (grub_target_to_host16): Likewise.
17255 (grub_target_to_host32): Likewise.
17256 (grub_target_to_host64): Likewise.
5db82af6 17257
17258 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
17259 Renamed from to ...
17260 (GRUB_MOD_ALIGN): ...this. Update all users.
17261
68f6ac74 17262 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
17263 grub_host_to_target32.
17264 Replace grub_be_to_cpu32 with grub_target_to_host32.
17265 (load_modules): Likewise.
17266 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
17267 Replace grub_be_to_cpu32 with grub_target_to_host32.
17268 Replace grub_cpu_to_be16 with grub_host_to_target16.
17269 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 17270
3cf497cc 172712007-10-12 Robert Millan <rmh@aybabtu.com>
17272
17273 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
17274 * util/elf/grub-mkimage.c: ... here.
17275
17276 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
17277 `util/powerpc/ieee1275/grub-mkimage.c'.
17278
c8cc3692 172792007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 17280
c8cc3692 17281 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
17282 and make it easier to figure out.
17283 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
17284 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
17285 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
17286 leave us with less than HEAP_MIN_SIZE total heap.
17287 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 17288
5c58b791 172892007-10-03 Robert Millan <rmh@aybabtu.com>
17290
17291 * include/grub/i386/io.h: New file.
17292 * commands/i386/pc/play.c (inb): Removed.
17293 (outb): Removed.
17294 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
17295 with grub_outb().
afcd2ef8 17296 * term/i386/pc/serial.c (inb): Removed.
17297 (outb): Removed.
17298 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
17299 with grub_outb().
17300 * term/i386/pc/vga.c (inb): Removed.
17301 (outb): Removed.
17302 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
17303 with grub_outb().
5c58b791 17304
1a477ed6 173052007-10-02 Robert Millan <rmh@aybabtu.com>
17306
17307 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
17308 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17309 Reported by Marcin Kurek.
17310
6b5d80fa 173112007-09-07 Robert Millan <rmh@aybabtu.com>
17312
17313 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
17314 SmartFirmware version updates (as released by Sven Luther), and avoid
17315 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
17316 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
17317 known broken.
17318
5618afbf 173192007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
17320
17321 From Hitoshi Ozeki:
17322 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
17323 when merging two regions.
17324
6139dcd9 173252007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
17326
508e39ee 17327 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
17328 * normal/completion.c (grub_normal_do_completion): Likewise.
17329 Reported by Hitoshi Ozeki.
17330
173312007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 17332
6139dcd9 17333 Do not use devices at boot in chainloading.
f19dbdb7 17334
6139dcd9 17335 * loader/i386/pc/chainloader.c (boot_drive): New variable.
17336 (boot_part_addr): Likewise.
17337 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
17338 with BOOT_DRIVE and BOOT_PART_ADDR.
17339 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
17340 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
17341
38da6516 173422007-08-29 Robert Millan <rmh@aybabtu.com>
17343
17344 Patch from Simon Peter <dn.tlp@gmx.net>:
17345 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
17346 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
17347 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
17348 util/i386/pc/grub-setup.c_DEPENDENCIES.
17349 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
17350 util/grub-probe.c_DEPENDENCIES.
17351 * conf/powerpc-ieee1275.rmk: Likewise.
17352
29d0928c 173532007-08-28 Robert Millan <rmh@aybabtu.com>
17354
17355 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
17356 to tell grub-mkdevicemap how to name devices.
17357 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
17358 feature).
17359
17360 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
17361 util/i386/get_disk_name.c.
17362 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
17363 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
17364 util/ieee1275/get_disk_name.c.
17365
17366 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
17367
17368 * DISTLIST: Add util/i386/get_disk_name.c and
17369 util/ieee1275/get_disk_name.c.
17370
17371 * util/grub-mkdevicemap.c: Replace device naming logic with
17372 grub_util_get_disk_name() calls.
17373
5a0d3cca 173742007-08-20 Robert Millan <rmh@aybabtu.com>
17375
17376 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
17377 (so that it works for both plural and singular quantities).
17378
8b72db2f 173792007-08-05 Robert Millan <rmh@aybabtu.com>
17380
17381 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
17382 so that [xz] isn't taken into account when determining order.
17383
352466bf 173842007-08-02 Marco Gerards <marco@gnu.org>
17385
17386 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
17387 `include/multiboot2.h', `include/grub/elfload.h',
17388 `include/multiboot.h', `include/grub/multiboot.h',
17389 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
17390 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
17391 `kern/elf.c', `loader/multiboot_loader.c',
17392 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
17393 `loader/i386/pc/multiboot2.c',
17394 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
17395 `util/i386/pc/grub-mkrescue.in'. Remove
17396 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
17397 `include/grub/i386/pc/util/biosdisk.h' and
17398 `include/grub/powerpc/ieee1275/multiboot.h'.
17399
8f096014 174002007-08-02 Bean <bean123ch@gmail.com>
17401
17402 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
17403 (ntfs_mod_SOURCES): New variable.
17404 (ntfs_mod_CFLAGS): Likewise.
17405 (ntfs_mod_LDFLAGS): Likewise.
17406
17407 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
17408 (grub_probe_SOURCES): Likewise.
17409 (grub_emu_SOURCES): Likewise.
17410
17411 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
17412 (grub_emu_SOURCES): Likewise.
17413
17414 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
17415 (grub_emu_SOURCES): Likewise.
f19dbdb7 17416
8f096014 17417 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
17418
17419 * fs/ntfs.c: New file.
17420
9959f7db 174212007-08-02 Bean <bean123ch@gmail.com>
17422
17423 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
17424
17425 * file.h (grub_file): Likewise.
17426
17427 * fshelp.h (grub_fshelp_read_file): Likewise.
17428
17429 * util/i386/pc/grub-setup.c (setup): Likewise.
17430 (save_first_sector): Likewise.
17431 (save_blocklists): Likewise.
f19dbdb7 17432
9959f7db 17433 * fs/affs.c (grub_affs_read_file): Likewise.
17434
17435 * fs/ext2.c (grub_ext2_read_file): Likewise.
17436
17437 * fs/fat.c (grub_fat_read_data): Likewise.
17438
17439 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
17440
17441 * fs/hfs.c (grub_hfs_read_file): Likewise.
17442
17443 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
17444
17445 * fs/jfs.c (grub_jfs_read_file): Likewise.
17446
17447 * fs/minix.c (grub_minix_read_file): Likewise.
17448
17449 * fs/sfs.c (grub_sfs_read_file): Likewise.
17450
17451 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 17452
9959f7db 17453 * fs/xfs.c (grub_xfs_read_file): Likewise.
17454
17455 * command/blocklist.c (read_blocklist): Likewise.
17456 (print_blocklist): Likewise.
17457
0a203f83 174582007-08-02 Marco Gerards <marco@gnu.org>
17459
17460 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
17461 `util/hostfs.c'.
17462
17463 * disk/host.c: New file.
17464
17465 * util/hostfs.c: Likewise.
17466
17467 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
17468 return `GRUB_ERR_BAD_FS'.
17469 * fs/sfs.c (grub_sfs_mount): Likewise.
17470 * fs/xfs.c (grub_xfs_mount): Likewise.
17471
17472 * include/grub/disk.h (enum grub_disk_dev_id): Add
17473 `GRUB_DISK_DEVICE_HOST_ID'.
17474
17475 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
17476
e5dfe777 174772007-07-24 Jerone Young <jerone@gmail.com>
17478
f19dbdb7 17479 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 17480 modules for compilation.
17481 * conf/powerpc-ieee1275.rmk: Likewise.
17482
17483 * include/multiboot.h: Move multiboot definitions to one file. Rename
17484 many definitions to not get grub specific.
17485 * include/multiboot2.h: Create header with multiboot 2 definitions.
17486 * include/grub/multiboot.h: Header for grub specific function
17487 prototypes and definitions.
17488 * include/grub/multiboot2.h: Likewise.
17489 * include/grub/multiboot_loader.h: Likewise.
17490 * include/grub/i386/pc/multiboot.h: Removed.
17491 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
17492
17493 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
17494 and 2 to allow for one multiboot and module commands.
17495 * loader/multiboot2.c: Add multiboot2 functionality.
17496 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
17497 and definition names.
17498 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
17499 2 functions.
17500 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
17501 ieee1275 specific multiboot2 code.
17502
17503 * kern/i386/pc/startup.S: Change headers and definition names for
17504 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
17505
daf0f0ba 175062007-07-22 Robert Millan <rmh@aybabtu.com>
17507
17508 * geninitheader.sh: Process file specified in first parameter rather
17509 than hardcoding grub_modules_init.lst.
fe6b695a 17510 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 17511 than hardcoding grub_modules_init.h.
17512
17513 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
17514 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
17515 grub_probe_init.[ch] and grub_setup_init.[ch].
17516
17517 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
17518 grub_modules_init.h with grub_emu_init.h.
17519 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
17520 grub_probe_init.[ch] files.
17521 * conf/i386-efi.rmk: Likewise.
17522 * conf/i386-pc.rmk: Likewise.
17523 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
17524 grub_setup_init.[ch] files.
17525
17526 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
17527 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
17528 to initialize modules rather than a list of hardcoded functions.
17529 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
17530 grub_init_all() to initialize modules rather than a list of hardcoded
17531 functions.
17532
54cdc1cc 175332007-07-22 Robert Millan <rmh@aybabtu.com>
17534
17535 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
17536 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
17537
ad0686cc 175382007-07-22 Robert Millan <rmh@aybabtu.com>
17539
17540 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
17541 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
17542 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
17543 flag when running on SmartFirmware.
17544 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
17545 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
17546 was set.
17547
17548 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17549 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
17550 rather than decreasing it.
17551
17552 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
17553 there's not enough space to do it, fail in the same way as when it
17554 can't be done because there are no partitions.
17555
17556 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
17557 when nvsetenv failed.
17558
969c02ec 175592007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
17560
17561 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
17562 because this rule is automatically generated.
17563 (grub-mkrescue): Removed for the same reason as above.
17564
5a79f472 175652007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
17566
17567 Migrate to GNU General Public License Version 3.
f19dbdb7 17568
5a79f472 17569 * COPYING: Replaced with the plain text version of GPLv3.
17570
17571 * config.guess: Updated from gnulib.
17572 * config.sub: Likewise.
17573
17574 * geninit.sh: Output a GPLv3 copyright notice.
17575 * geninitheader.sh: Likewise.
17576 * genmodsrc.sh: Likewise.
17577 * gensymlist.sh.in: Likewise.
17578
17579 * boot/i386/pc/boot.S: Upgraded to GPLv3.
17580 * boot/i386/pc/diskboot.S: Likewise.
17581 * boot/i386/pc/pxeboot.S: Likewise.
17582 * commands/blocklist.c: Likewise.
17583 * commands/boot.c: Likewise.
17584 * commands/cat.c: Likewise.
17585 * commands/cmp.c: Likewise.
17586 * commands/configfile.c: Likewise.
17587 * commands/echo.c: Likewise.
17588 * commands/help.c: Likewise.
17589 * commands/ls.c: Likewise.
17590 * commands/search.c: Likewise.
17591 * commands/terminal.c: Likewise.
17592 * commands/test.c: Likewise.
17593 * commands/videotest.c: Likewise.
17594 * commands/i386/cpuid.c: Likewise.
17595 * commands/i386/pc/halt.c: Likewise.
17596 * commands/i386/pc/play.c: Likewise.
17597 * commands/i386/pc/reboot.c: Likewise.
17598 * commands/i386/pc/vbeinfo.c: Likewise.
17599 * commands/i386/pc/vbetest.c: Likewise.
17600 * commands/ieee1275/halt.c: Likewise.
17601 * commands/ieee1275/reboot.c: Likewise.
17602 * commands/ieee1275/suspend.c: Likewise.
17603 * disk/loopback.c: Likewise.
17604 * disk/lvm.c: Likewise.
17605 * disk/raid.c: Likewise.
17606 * disk/efi/efidisk.c: Likewise.
17607 * disk/i386/pc/biosdisk.c: Likewise.
17608 * disk/ieee1275/ofdisk.c: Likewise.
17609 * font/manager.c: Likewise.
17610 * fs/affs.c: Likewise.
17611 * fs/ext2.c: Likewise.
17612 * fs/fat.c: Likewise.
17613 * fs/fshelp.c: Likewise.
17614 * fs/hfs.c: Likewise.
17615 * fs/hfsplus.c: Likewise.
17616 * fs/iso9660.c: Likewise.
17617 * fs/jfs.c: Likewise.
17618 * fs/minix.c: Likewise.
17619 * fs/sfs.c: Likewise.
17620 * fs/ufs.c: Likewise.
17621 * fs/xfs.c: Likewise.
17622 * hello/hello.c: Likewise.
17623 * include/grub/acorn_filecore.h: Likewise.
17624 * include/grub/arg.h: Likewise.
17625 * include/grub/bitmap.h: Likewise.
17626 * include/grub/boot.h: Likewise.
17627 * include/grub/cache.h: Likewise.
17628 * include/grub/device.h: Likewise.
17629 * include/grub/disk.h: Likewise.
17630 * include/grub/dl.h: Likewise.
17631 * include/grub/elfload.h: Likewise.
17632 * include/grub/env.h: Likewise.
17633 * include/grub/err.h: Likewise.
17634 * include/grub/file.h: Likewise.
17635 * include/grub/font.h: Likewise.
17636 * include/grub/fs.h: Likewise.
17637 * include/grub/fshelp.h: Likewise.
17638 * include/grub/gzio.h: Likewise.
17639 * include/grub/hfs.h: Likewise.
17640 * include/grub/kernel.h: Likewise.
17641 * include/grub/loader.h: Likewise.
17642 * include/grub/lvm.h: Likewise.
17643 * include/grub/misc.h: Likewise.
17644 * include/grub/mm.h: Likewise.
17645 * include/grub/net.h: Likewise.
17646 * include/grub/normal.h: Likewise.
17647 * include/grub/parser.h: Likewise.
17648 * include/grub/partition.h: Likewise.
17649 * include/grub/pc_partition.h: Likewise.
17650 * include/grub/raid.h: Likewise.
17651 * include/grub/rescue.h: Likewise.
17652 * include/grub/script.h: Likewise.
17653 * include/grub/setjmp.h: Likewise.
17654 * include/grub/symbol.h: Likewise.
17655 * include/grub/term.h: Likewise.
17656 * include/grub/terminfo.h: Likewise.
17657 * include/grub/tparm.h: Likewise.
17658 * include/grub/types.h: Likewise.
17659 * include/grub/video.h: Likewise.
17660 * include/grub/efi/api.h: Likewise.
17661 * include/grub/efi/chainloader.h: Likewise.
17662 * include/grub/efi/console.h: Likewise.
17663 * include/grub/efi/console_control.h: Likewise.
17664 * include/grub/efi/disk.h: Likewise.
17665 * include/grub/efi/efi.h: Likewise.
17666 * include/grub/efi/pe32.h: Likewise.
17667 * include/grub/efi/time.h: Likewise.
17668 * include/grub/i386/linux.h: Likewise.
17669 * include/grub/i386/setjmp.h: Likewise.
17670 * include/grub/i386/types.h: Likewise.
17671 * include/grub/i386/efi/kernel.h: Likewise.
17672 * include/grub/i386/efi/loader.h: Likewise.
17673 * include/grub/i386/efi/time.h: Likewise.
17674 * include/grub/i386/pc/biosdisk.h: Likewise.
17675 * include/grub/i386/pc/boot.h: Likewise.
17676 * include/grub/i386/pc/chainloader.h: Likewise.
17677 * include/grub/i386/pc/console.h: Likewise.
17678 * include/grub/i386/pc/init.h: Likewise.
17679 * include/grub/i386/pc/kernel.h: Likewise.
17680 * include/grub/i386/pc/loader.h: Likewise.
17681 * include/grub/i386/pc/memory.h: Likewise.
17682 * include/grub/i386/pc/multiboot.h: Likewise.
17683 * include/grub/i386/pc/serial.h: Likewise.
17684 * include/grub/i386/pc/time.h: Likewise.
17685 * include/grub/i386/pc/vbe.h: Likewise.
17686 * include/grub/i386/pc/vbeblit.h: Likewise.
17687 * include/grub/i386/pc/vbefill.h: Likewise.
17688 * include/grub/i386/pc/vbeutil.h: Likewise.
17689 * include/grub/i386/pc/vga.h: Likewise.
17690 * include/grub/ieee1275/ieee1275.h: Likewise.
17691 * include/grub/ieee1275/ofdisk.h: Likewise.
17692 * include/grub/powerpc/libgcc.h: Likewise.
17693 * include/grub/powerpc/setjmp.h: Likewise.
17694 * include/grub/powerpc/types.h: Likewise.
17695 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
17696 * include/grub/powerpc/ieee1275/console.h: Likewise.
17697 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
17698 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
17699 * include/grub/powerpc/ieee1275/loader.h: Likewise.
17700 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
17701 * include/grub/powerpc/ieee1275/time.h: Likewise.
17702 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
17703 * include/grub/sparc64/libgcc.h: Likewise.
17704 * include/grub/sparc64/setjmp.h: Likewise.
17705 * include/grub/sparc64/types.h: Likewise.
17706 * include/grub/sparc64/ieee1275/console.h: Likewise.
17707 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
17708 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
17709 * include/grub/sparc64/ieee1275/time.h: Likewise.
17710 * include/grub/util/biosdisk.h: Likewise.
17711 * include/grub/util/getroot.h: Likewise.
17712 * include/grub/util/lvm.h: Likewise.
17713 * include/grub/util/misc.h: Likewise.
17714 * include/grub/util/raid.h: Likewise.
17715 * include/grub/util/resolve.h: Likewise.
17716 * io/gzio.c: Likewise.
17717 * kern/device.c: Likewise.
17718 * kern/disk.c: Likewise.
17719 * kern/dl.c: Likewise.
17720 * kern/elf.c: Likewise.
17721 * kern/env.c: Likewise.
17722 * kern/err.c: Likewise.
17723 * kern/file.c: Likewise.
17724 * kern/fs.c: Likewise.
17725 * kern/loader.c: Likewise.
17726 * kern/main.c: Likewise.
17727 * kern/misc.c: Likewise.
17728 * kern/mm.c: Likewise.
17729 * kern/parser.c: Likewise.
17730 * kern/partition.c: Likewise.
17731 * kern/rescue.c: Likewise.
17732 * kern/term.c: Likewise.
17733 * kern/efi/efi.c: Likewise.
17734 * kern/efi/init.c: Likewise.
17735 * kern/efi/mm.c: Likewise.
17736 * kern/i386/dl.c: Likewise.
17737 * kern/i386/efi/init.c: Likewise.
17738 * kern/i386/efi/startup.S: Likewise.
17739 * kern/i386/pc/init.c: Likewise.
17740 * kern/i386/pc/lzo1x.S: Likewise.
17741 * kern/i386/pc/startup.S: Likewise.
17742 * kern/ieee1275/ieee1275.c: Likewise.
17743 * kern/powerpc/cache.S: Likewise.
17744 * kern/powerpc/dl.c: Likewise.
17745 * kern/powerpc/ieee1275/cmain.c: Likewise.
17746 * kern/powerpc/ieee1275/crt0.S: Likewise.
17747 * kern/powerpc/ieee1275/init.c: Likewise.
17748 * kern/powerpc/ieee1275/openfw.c: Likewise.
17749 * kern/sparc64/cache.S: Likewise.
17750 * kern/sparc64/dl.c: Likewise.
17751 * kern/sparc64/ieee1275/init.c: Likewise.
17752 * kern/sparc64/ieee1275/openfw.c: Likewise.
17753 * loader/efi/chainloader.c: Likewise.
17754 * loader/efi/chainloader_normal.c: Likewise.
17755 * loader/i386/efi/linux.c: Likewise.
17756 * loader/i386/efi/linux_normal.c: Likewise.
17757 * loader/i386/pc/chainloader.c: Likewise.
17758 * loader/i386/pc/chainloader_normal.c: Likewise.
17759 * loader/i386/pc/linux.c: Likewise.
17760 * loader/i386/pc/linux_normal.c: Likewise.
17761 * loader/i386/pc/multiboot.c: Likewise.
17762 * loader/i386/pc/multiboot_normal.c: Likewise.
17763 * loader/powerpc/ieee1275/linux.c: Likewise.
17764 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
17765 * normal/arg.c: Likewise.
17766 * normal/cmdline.c: Likewise.
17767 * normal/command.c: Likewise.
17768 * normal/completion.c: Likewise.
17769 * normal/execute.c: Likewise.
17770 * normal/function.c: Likewise.
17771 * normal/lexer.c: Likewise.
17772 * normal/main.c: Likewise.
17773 * normal/menu.c: Likewise.
17774 * normal/menu_entry.c: Likewise.
17775 * normal/misc.c: Likewise.
17776 * normal/parser.y: Likewise.
17777 * normal/script.c: Likewise.
17778 * normal/i386/setjmp.S: Likewise.
17779 * normal/powerpc/setjmp.S: Likewise.
17780 * normal/sparc64/setjmp.S: Likewise.
17781 * partmap/acorn.c: Likewise.
17782 * partmap/amiga.c: Likewise.
17783 * partmap/apple.c: Likewise.
17784 * partmap/gpt.c: Likewise.
17785 * partmap/pc.c: Likewise.
17786 * partmap/sun.c: Likewise.
17787 * term/gfxterm.c: Likewise.
17788 * term/terminfo.c: Likewise.
17789 * term/efi/console.c: Likewise.
17790 * term/i386/pc/console.c: Likewise.
17791 * term/i386/pc/serial.c: Likewise.
17792 * term/i386/pc/vesafb.c: Likewise.
17793 * term/i386/pc/vga.c: Likewise.
17794 * term/ieee1275/ofconsole.c: Likewise.
17795 * util/biosdisk.c: Likewise.
17796 * util/console.c: Likewise.
17797 * util/genmoddep.c: Likewise.
17798 * util/getroot.c: Likewise.
17799 * util/grub-emu.c: Likewise.
17800 * util/grub-mkdevicemap.c: Likewise.
17801 * util/grub-probe.c: Likewise.
17802 * util/lvm.c: Likewise.
17803 * util/misc.c: Likewise.
17804 * util/raid.c: Likewise.
17805 * util/resolve.c: Likewise.
17806 * util/update-grub.in: Likewise.
17807 * util/update-grub_lib.in: Likewise.
17808 * util/grub.d/00_header.in: Likewise.
17809 * util/grub.d/10_hurd.in: Likewise.
17810 * util/grub.d/10_linux.in: Likewise.
17811 * util/i386/efi/grub-install.in: Likewise.
17812 * util/i386/efi/grub-mkimage.c: Likewise.
17813 * util/i386/pc/grub-install.in: Likewise.
17814 * util/i386/pc/grub-mkimage.c: Likewise.
17815 * util/i386/pc/grub-mkrescue.in: Likewise.
17816 * util/i386/pc/grub-setup.c: Likewise.
17817 * util/i386/pc/misc.c: Likewise.
17818 * util/powerpc/ieee1275/grub-install.in: Likewise.
17819 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
17820 * util/powerpc/ieee1275/misc.c: Likewise.
17821 * video/bitmap.c: Likewise.
17822 * video/video.c: Likewise.
17823 * video/i386/pc/vbe.c: Likewise.
17824 * video/i386/pc/vbeblit.c: Likewise.
17825 * video/i386/pc/vbefill.c: Likewise.
17826 * video/i386/pc/vbeutil.c: Likewise.
17827 * video/readers/tga.c: Likewise.
17828
3572d015 178292007-07-02 Robert Millan <rmh@aybabtu.com>
17830
17831 * conf/i386-efi.rmk: Replace obsolete reference to
17832 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
17833 with util/getroot.c.
17834 * conf/powerpc-ieee1275.rmk: Likewise.
17835 * conf/sparc64-ieee1275.rmk: Likewise.
17836
17837 * util/grub-emu.c (main): Fix unchecked pointer handling.
17838
2c2a681b 178392007-07-02 Robert Millan <rmh@aybabtu.com>
17840
17841 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
17842 invocation to fail, in order to support partition-less media.
17843
17844 * util/i386/pc/grub-install.in: Likewise.
17845
17846 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
17847 which fs or partmap modules are needed (akin to its sister scripts).
17848
17849 Also use grub-probe to get rid of unportable /proc/mounts check.
17850
17851 Print the same informational message that the other scripts do, before
fe6b695a 17852 exiting.
2c2a681b 17853
6193defe 178542007-06-23 Robert Millan <rmh@aybabtu.com>
17855
fe6b695a 17856 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 17857 a font file can be found and, if so, echo the GRUB path to it.
17858
17859 * util/update-grub.in: Handle multiple terminals depending on user
17860 input, platform availability and font file presence. Propagate
17861 variables of our findings to /etc/grub.d/ children.
17862
17863 * util/grub.d/00_header.in: Handle multiple terminals, based on
17864 environment setup by update-grub.
17865
eface1dc 178662007-06-23 Robert Millan <rmh@aybabtu.com>
17867
ba50d28f 17868 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 17869
bf697e28 178702007-06-21 Robert Millan <rmh@aybabtu.com>
17871
17872 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
17873 indicate end of data section in kernel image.
17874 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
17875 GRUB_KERNEL_MACHINE_DATA_END.
17876
17877 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
17878 space for it.
17879 * kern/i386/efi/startup.S: Likewise.
17880
17881 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
17882 during image generation. Implement --prefix option to override this
17883 patch.
17884 * util/i386/efi/grub-mkimage.c: Likewise.
17885
17886 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
17887 code to make path relative to its root into a separate function.
17888
17889 * util/i386/pc/grub-install.in: Use newly provided
17890 make_system_path_relative_to_its_root() to convert ${grubdir}, then
17891 pass the result to grub-install --prefix.
17892
baa574b4 178932007-06-13 Robert Millan <rmh@aybabtu.com>
17894
17895 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
17896 DEFAULT_DEVICE_MAP.
17897 * util/grub-emu.c: Use above definitions from misc.h instead of
17898 defining them.
17899 * util/grub-mkdevicemap.c: Likewise.
17900 * util/i386/pc/grub-setup.c: Likewise.
17901 * util/grub-probe.c: Likewise.
17902 (probe): Abort with grub_util_error() when either
17903 grub_guess_root_device or grub_util_get_grub_dev fails.
17904
0215dcbf 179052007-06-12 Robert Millan <rmh@aybabtu.com>
17906
17907 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
17908 "pager" assignment.
17909 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
17910 "pcdata".
17911 * util/grub-probe.c (probe): Likewise for "drive_name".
17912
8af2ab7b 179132007-06-11 Robert Millan <rmh@aybabtu.com>
17914
17915 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
17916 not just the cdrom one.
17917
59d31694 179182007-06-11 Robert Millan <rmh@aybabtu.com>
17919
17920 * util/i386/pc/grub-mkrescue.in: Add "set -e".
17921 Add --pkglibdir=DIR option to override pkglibdir.
17922 Mention --image-type=TYPE in help output.
17923 Fix --grub-mkimage (it was a no-op).
fe6b695a 17924 Abort gracefully when no parameter is given.
59d31694 17925
7ee367e4 179262007-06-11 Robert Millan <rmh@aybabtu.com>
17927
17928 * util/i386/pc/grub-mkrescue.in: New file.
17929 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
17930 * Makefile.in: Handle bin_SCRIPTS.
17931
29b0ed46 179322007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
17933
17934 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
17935 list of video modes.
17936
c0f90770 179372007-06-06 Robert Millan <rmh@aybabtu.com>
17938
17939 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
17940 file doesn't exist, or if it is in a filesystem grub can't read.
17941
17942 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
17943 not abort if GRUB_DRIVE could not be defined. Rearrange generated
17944 header comment to fit in 80 columns when the variables are resolved.
17945
17946 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
17947 could be identified by update-grub. Remove redundant check for
fe6b695a 17948 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 17949 handles that).
17950
fb36dc26 179512007-06-04 Robert Millan <rmh@aybabtu.com>
17952
17953 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
17954
17955 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
17956
17957 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
17958
0c68c93e 179592007-06-04 Robert Millan <rmh@aybabtu.com>
17960
17961 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
17962
17963 * include/grub/partition.h: Declare grub_apple_partition_map_init and
17964 grub_apple_partition_map_fini.
17965
17966 * util/biosdisk.c
17967 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
17968 to access >2 TiB disks).
17969
17970 Print disk->total_sectors with %llu instead of %lu, since this
17971 variable is always 64-bit (prevents wrong disk size from being displayed
17972 on either >2 TiB disk or big-endian CPU).
17973
17974 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
17975 into a generic case that supports all (sane) partition maps.
17976
17977 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
17978 breaks big-endian.
17979
17980 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
17981 and grub_apple_partition_map_fini() after that.
17982
0f23eb74 179832007-06-01 Robert Millan <rmh@aybabtu.com>
17984
17985 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
17986
17987 * util/grub.d/00_header.in: Only enable gfxterm when
17988 convert_system_path_to_grub_path() succeeds.
17989
42c71976 179902007-05-20 Robert Millan <rmh@aybabtu.com>
17991
17992 * util/update-grub_lib.in: New file.
17993 * DISTLIST: Add update-grub_lib.in.
17994 * conf/common.rmk: Generate update-grub_lib and install it in
17995 $(lib_DATA).
17996 * Makefile.in: Add install routine for $(lib_DATA).
17997
17998 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
17999 function provided by update-grub_lib to support arbitrary paths of
18000 unifont.pff.
18001 * util/update-grub.in: Use convert_system_path_to_grub_path() to
18002 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
18003
5beb2291 180042007-05-19 Robert Millan <rmh@aybabtu.com>
18005
18006 * commands/i386/cpuid.c: New module.
18007 * DISTLIST: Add it.
18008 * conf/i386-efi.rmk: Enable cpuid.mod.
18009 * conf/i386-pc.rmk: Likewise.
18010
7262eca1 180112007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
18012
18013 * kern/disk.c (grub_disk_read): Check return value of
18014 grub_realloc().
18015
260ba823 180162007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
18017
18018 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
18019 arrays.
18020 * disk/raid.c (grub_raid_open): Likewise.
18021
1ecb6cf2 180222007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
18023
18024 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
18025 stack instead of on the heap.
18026
18027 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
18028 before doing a read on it.
18029
18030 * configure.ac: Only use -fno-stack-protector for the target
18031 environment.
f19dbdb7 18032
21c8cbb1 180332007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
18034
18035 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
18036 __attribute_ ((unused)) to mode_type argument.
18037
18038 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 18039
21c8cbb1 18040 * kern/misc.c (memcmp): Fix prototype.
18041
18042 * include/grub/partition.h [GRUB_UTIL]
18043 (grub_gpt_partition_map_init): Add prototype.
18044 (grub_gpt_partition_map_fini): Likewise.
18045
18046 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
18047 at the right place.
18048
18049 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
18050 (grub_fat_read_data): Likewise.
18051 (grub_fat_find_dir): Likewise.
18052
18053 * font/manager.c (find_glyph): Make table a const.
18054 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 18055
849d55d3 180562007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
18057
18058 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
18059 code, first search for device in /dev/mapper, then in /dev.
18060 (grub_util_get_grub_dev): New function.
18061 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
18062 prototype.
18063 * util/grub-probe.c (probe): Remove check for RAID, call
18064 grub_util_get_grub_dev() instead of
18065 grub_util_biosdisk_get_grub_dev().
18066 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
18067 grub_util_biosdisk_get_grub_dev().
18068 * util/i386/pc/grub-setup.c (main): Likewise.
18069
8fff7c2f 180702007-05-16 Robert Millan <rmh@aybabtu.com>
18071
18072 * DISTLIST: Update for the latest changes.
18073 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
18074 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
18075 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
18076 grub/util/biosdisk.h.
18077 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
18078 grub/util/biosdisk.h.
18079
48e12b52 180802007-05-16 Robert Millan <rmh@aybabtu.com>
18081
18082 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
18083
46b9d128 180842007-05-16 Robert Millan <rmh@aybabtu.com>
18085
18086 * util/i386/efi/grub-install.in: New.
18087 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
18088 newly added grub-install.
18089 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
18090 include.
18091 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
18092 grub/util/biosdisk.h.
18093 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
18094 grub/util/biosdisk.h.
18095
2d1a40a9 180962007-05-16 Robert Millan <rmh@aybabtu.com>
18097
18098 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
18099 * include/grub/util/biosdisk.h: ... here.
18100 * util/i386/pc/biosdisk.c: Moved to ...
18101 * util/biosdisk.c: ... here.
18102 * util/i386/pc/getroot.c: Moved to ...
18103 * util/getroot.c: ... here.
18104 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
18105 * util/grub-mkdevicemap.c: ... here.
18106 * util/i386/pc/grub-probe.c: Moved to ...
18107 * util/grub-probe.c: ... here.
18108
9e26e3bc 181092007-05-15 Robert Millan <rmh@aybabtu.com>
18110
18111 * util/update-grub.in: Remove duplicated line in grub.cfg header
18112 message.
18113
57f96397 181142007-05-13 Robert Millan <rmh@aybabtu.com>
18115
18116 * util/update-grub.in: Fix a few assumptions about the devices holding
18117 /, /boot and /boot/grub being the same.
18118 * util/grub.d/00_header.in: Likewise.
18119 * util/grub.d/10_hurd.in: Likewise.
18120 * util/grub.d/10_linux.in: Likewise.
18121
18122 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
18123 patterns. Use that to define the `.old' suffix as older than `'.
18124
18125 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
18126
18127 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
18128 the grub.cfg header message.
18129
2e610d62 181302007-05-11 Robert Millan <rmh@aybabtu.com>
18131
18132 * util/update-grub.in: Create device.map if it doesn't already exist,
18133 before attempting to run grub-probe.
18134 Check for grub-probe and grub-mkdevicemap with the same code
18135 grub-install is using.
18136 Remove test mode.
18137
3f6a10ef 181382007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
18139
18140 * Makefile.in: Add the datarootdir autoconf variable.
18141
02e7b75e 181422007-05-09 Robert Millan <rmh@aybabtu.com>
18143
18144 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 18145 fail gracefully if dev->disk->partition == NULL.
02e7b75e 18146
75f396cc 181472007-05-07 Robert Millan <rmh@aybabtu.com>
18148
18149 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
18150 determine partition map module.
18151 * util/i386/pc/grub-install.in: Use this feature to decide which
18152 partition module to load, instead of hardcoding pc and gpt.
18153
da65cb36 181542007-05-07 Robert Millan <rmh@aybabtu.com>
18155
18156 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
18157 source directory differs from build directory.
18158
b57d6a91 181592007-05-05 Robert Millan <rmh@aybabtu.com>
18160
18161 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
18162 initialisation.
18163
509d00f1 181642007-05-05 Robert Millan <rmh@aybabtu.com>
18165
18166 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
18167
c48f23ef 181682007-05-05 Robert Millan <rmh@aybabtu.com>
18169
18170 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
18171 command-line arguments via ${GRUB_CMDLINE_LINUX}.
18172
20b97658 181732007-05-05 Robert Millan <rmh@aybabtu.com>
18174
18175 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
18176 (grub_probe_SOURCES): Likewise.
18177 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
18178 GPT and initialize dos_part and bsd_part accordingly.
18179 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
18180 install_bsd_part.
18181 (main): Activate gpt module for use during partition identification,
18182 and deactivate it afterwards.
18183 * util/i386/pc/grub-install.in: Add gpt module to core.img.
18184 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
18185 partition identification, and deactivate it afterwards.
18186
99123174 181872007-05-05 Robert Millan <rmh@aybabtu.com>
18188
18189 * term/i386/pc/console.c (grub_console_fini): Call
18190 grub_term_set_current() before grub_term_unregister().
18191
ebd97f6e 181922007-05-04 Robert Millan <rmh@aybabtu.com>
18193
18194 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
18195 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
18196 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
18197 and update-grub_DATA.
18198 * conf/common.rmk: Build and install update-grub components.
18199 * conf/common.mk: Regenerate.
18200 * util/update-grub.in: New. Core of update-grub.
18201 * util/grub.d/00_header.in: New. Generates grub.cfg header.
18202 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
18203 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
18204 * util/grub.d/README: New. Document grub.d directory layout.
18205
b06a264d 182062007-05-01 Robert Millan <rmh@aybabtu.com>
18207
18208 * util/grub-emu.c: Move initialization functions
18209 grub_util_biosdisk_init() and grub_init_all() before
18210 grub_util_biosdisk_get_grub_dev(), which relies on them.
18211
41f0050e 182122007-04-19 Robert Millan <rmh@aybabtu.com>
18213
18214 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
18215 it is used later.
18216
04582bb3 182172007-04-18 Jerone Young <jerone@gmail.com>
18218
f19dbdb7 18219 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 18220 stanza.
18221
08db4632 182222007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 18223
08db4632 18224 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
18225 continue on and look for device node with real device name.
18226
801b76be 182272007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 18228
fe6b695a 18229 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 18230 ability.
18231 * Makefile.in: Add autoconf package transformation code.
18232 * util/i386/pc/grub-install.in: Likewise.
18233 * util/powerpc/ieee1275/grub-install.in: Likewise.
18234
6795c4e1 182352007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
18236
18237 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
18238 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
18239 (EXT2_REVISION): Likewise.
18240 (EXT2_INODE_SIZE): Likewise.
18241 (struct grub_ext2_block_group): Added a missing member
18242 "used_dirs".
18243 (grub_ext2_read_inode): Divide by the inode size in a superblock
18244 instead of 128 to obtain INODES_PER_BLOCK.
18245 Use the macro EXT2_INODE_SIZE instead of directly using
18246 SBLOCK->INODE_SIZE.
18247
d70af616 182482007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
18249
18250 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
18251 superblock instead of the structure size to compute an
18252 offset. This fixes the problem that GRUB could not read a
18253 filesystem when inode size is different from 128-byte.
18254
3b801603 182552007-03-05 Marco Gerards <marco@gnu.org>
18256
18257 * normal/main.c (read_config_file): When "menu" is not set, create
18258 an initial context.
18259
4785bfe4 182602007-02-21 Hollis Blanchard <hollis@penguinppc.org>
18261
18262 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
18263 (HEAP_LIMIT): New macro.
18264 (grub_claim_heap): Claim memory up to `heaplimit'.
18265
a0cbb023 182662007-02-21 Hollis Blanchard <hollis@penguinppc.org>
18267
18268 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
18269 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
18270 (_start): Likewise.
18271 (grub_arch_modules_addr): Return address after `_end'.
18272 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
18273 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
18274 (add_segments): Calculate `_end' from phdr size and location.
18275 (ALIGN_UP): Moved to ...
18276 * include/grub/misc.h: here.
18277 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
18278 New macro.
18279 (GRUB_IEEE1275_MODULE_BASE): Removed.
18280
fd7d8eba 182812007-02-20 Hollis Blanchard <hollis@penguinppc.org>
18282
18283 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
18284 loop boundary.
18285
9b09e6fc 182862007-02-20 Hollis Blanchard <hollis@penguinppc.org>
18287
18288 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
18289 All users updated.
18290 (grub_elf64_load_hook_t): Likewise.
18291 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
18292 debug output.
18293
3ce27299 182942007-02-20 Hollis Blanchard <hollis@penguinppc.org>
18295
18296 * kern/mm.c: Update copyright.
18297 (grub_mm_debug): Correct syntax error.
18298 (grub_mm_dump_free): New function.
18299 (grub_debug_free): Call `grub_free'.
18300 * include/grub/mm.h: Update copyright.
18301 (grub_mm_dump_free): Add declaration.
18302
077d5fee 183032007-02-12 Hollis Blanchard <hollis@penguinppc.org>
18304
18305 * include/grub/ieee1275/ieee1275.h: Update copyright.
18306 * kern/powerpc/ieee1275/init.c: Likewise.
18307 * kern/powerpc/ieee1275/openfw.c: Likewise.
18308
18309 * loader/powerpc/ieee1275/linux.c: Likewise.
18310 * include/grub/elfload.h: Likewise.
18311 * kern/elf.c: Likewise.
18312 (grub_elf32_load): Pass `base' and `size' parameters. Update all
18313 callers.
18314 (grub_elf64_load): Likewise.
18315 (grub_elf32_load_segment): Move to a nested function.
18316 (grub_elf64_load_segment): Likewise.
18317
dc946850 183182007-02-12 Hollis Blanchard <hollis@penguinppc.org>
18319
18320 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
18321 prototype.
18322 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
18323 (grub_heap_len): Likewise.
18324 (HEAP_SIZE): New macro.
18325 (grub_claim_heap): New function.
18326 (grub_machine_init): Don't claim heap directly. Call
18327 `grub_claim_heap'.
18328 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
18329 (grub_available_iterate): New function.
18330
baa2a121 183312007-02-03 Thomas Schwinge <tschwinge@gnu.org>
18332
18333 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
18334 * configure.ac: Use it for testing the HOST and TARGET compilers.
18335
4fe9862e 183362006-12-13 Thomas Schwinge <tschwinge@gnu.org>
18337
18338 * Makefile.in (enable_grub_emu): New variable.
18339 * configure.ac (--enable-grub-emu): New option.
18340 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
18341 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
18342 * conf/i386-pc.rmk: Likewise.
18343 * conf/powerpc-ieee1275.rmk: Likewise.
18344 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
18345
a8aa5762 183462006-12-12 Marco Gerards <marco@gnu.org>
18347
18348 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
18349
18350 * kern/env.c (grub_env_unset): Don't free the member `value' when
18351 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
18352 pointer.
18353
18354 * normal/main.c (current_menu): Removed.
18355 (free_menu): Unset the `menu' environment variable.
18356 (grub_normal_menu_addentry): Make use of the environment variable
18357 `menu', instead of using the global `current_menu'. Allocate
18358 memory for the sourcecode of this entry.
18359 (read_config_file): New argument `nested', changed all callers.
18360 Only in the case of a new context, initialize a new menu. Set the
18361 `menu' environment variable.
18362 (grub_normal_execute): Don't set and unset the environment
18363 variable `menu' here anymore. Only free the menu when leaving the
18364 context.
18365
18366 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
18367 leak.
18368
957b3a3e 183692006-12-11 Marco Gerards <marco@gnu.org>
18370
18371 * normal/menu_entry.c (run): Fix off by one bug so the last line
18372 is executed. Move the loader check to outside the loop.
18373
ef875714 183742006-12-08 Hollis Blanchard <hollis@penguinppc.org>
18375
18376 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
18377
4e739985 183782006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
18379
18380 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
18381 the number of sectors. Reported by Andrey Shuvikov
18382 <mr_hyro@yahoo.com>.
f19dbdb7 18383
790707f2 183842006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
18385
18386 * kern/disk.c (grub_disk_read): When there is a read error, always
18387 try to read only the necessary data.
f19dbdb7 18388
790707f2 18389 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
18390 disk/raid.c.
18391 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
18392 prototype.
18393 [GRUB_UTIL] (grub_raid_fini): Likewise.
18394 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 18395 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 18396 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
18397 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
18398 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
18399 and grub_raid_fini().
f19dbdb7 18400
03e58196 184012006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
18402
18403 * include/grub/types.h (__unused): Rename to UNUSED.
18404 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
18405 (grub_elf64_size): Likewise.
f19dbdb7 18406
ae4f23bf 184072006-11-03 Hollis Blanchard <hollis@penguinppc.org>
18408
18409 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
18410 grub_error_push and grub_error_pop in the error-handling path.
18411 (grub_elf32_load_segment): Only call grub_file_read with non-zero
18412 length.
18413
2166cc83 184142006-11-03 Hollis Blanchard <hollis@penguinppc.org>
18415
18416 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
18417 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18418 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18419 (kernel_elf_SOURCES): Likewise.
18420 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
18421 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
18422 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
18423 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
18424 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
18425 (elf_mod_SOURCES): New variable.
18426 (elf_mod_CFLAGS): Likewise.
18427 (elf_mod_LDFLAGS): Likewise.
18428 * include/grub/types.h (__unused): New macro.
18429 * include/grub/elfload.h: New file.
18430 * kern/elf.c: Likewise.
18431 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
18432 (ELF32_LOADMASK): New macro.
18433 (ELF64_LOADMASK): Likewise.
18434 (vmlinux): Removed.
18435 (grub_linux_load32): New function.
18436 (grub_linux_load64): Likewise.
18437 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
18438 Use grub_elf_t instead of grub_file_t.
18439
a09d5aa5 184402006-11-02 Hollis Blanchard <hollis@penguinppc.org>
18441
18442 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
18443 `catch_result' to struct set_color_args.
18444
d976fc51 184452006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
18446
18447 * normal/menu.c: Include grub/script.h.
18448 * normal/menu_entry.c: Likewise.
18449 * include/grub/normal.h: Do not include grub/script.h.
18450
67507549 184512006-10-27 Hollis Blanchard <hollis@penguinppc.org>
18452
18453 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
18454
69203a99 184552006-10-27 Hollis Blanchard <hollis@penguinppc.org>
18456
18457 * kern/disk.c (grub_disk_open): Print debug messages when opening a
18458 disk.
18459 (grub_disk_close): Print debug messages when closing a disk.
18460 (grub_disk_read): Print debug messages when disk read fails.
18461 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
18462 filesystem type.
18463 * kern/partition.c: Include misc.h.
18464 (grub_partition_iterate): Print debug messages when detecting
18465 partition type.
18466
e2b8278c 184672006-10-27 Hollis Blanchard <hollis@penguinppc.org>
18468
18469 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
18470 is negative.
18471 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
18472
97b2f2ff 184732006-10-26 Hollis Blanchard <hollis@penguinppc.org>
18474
18475 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
18476 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
18477
6555d655 184782006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
18479
18480 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
18481 instead of sizeof(lv). Patch by Michael Guntsche.
18482
4d42b77f 184832006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
18484
18485 * disk/lvm.c: Rename VGS to VG_LIST.
18486 (grub_lvm_iterate): Change VGS->LV to VG-LV.
18487 (grub_lvm_open): Likewise.
18488 Thanks to Michael Guntsche for finding this bug.
18489
5d74d927 184902006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
18491
18492 * configure.ac (AC_INIT): Bumped to 1.95.
18493
a1bb27e4 184942006-10-14 Robert Millan <rmh@aybabtu.com>
18495
18496 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
18497 with "/dev/.static/dev/md".
18498
e0994b8b 184992006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
18500
18501 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
18502 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
18503 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
18504 DRIVE_NAME are always freed.
18505
18506 * util/i386/pc/biosdisk.c (make_device_name): Add one into
18507 DOS_PART, as a DOS partition is counted from one instead of zero
18508 now. Reported by Robert Millan.
18509
ddd5cee9 185102006-10-14 Robert Millan <rmh@aybabtu.com>
18511
18512 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
18513 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
18514 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
18515 string returned by grub_guess_root_device.
18516 * util/i386/pc/grub-setup.c: Likewise.
18517 * util/i386/pc/grub-probefs.c: Likewise.
18518
18519 * util/i386/pc/grub-probefs.c: Rename to ...
18520 * util/i386/pc/grub-probe.c: ... this.
18521 * DISTLIST: Remove grub-probefs, add grub-probe.
18522 * conf/i386-efi.rmk: Likewise.
18523 * conf/i386-pc.rmk: Likewise.
18524 * util/i386/pc/grub-install.in: Likewise.
18525
18526 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
18527 choose which information we want to print.
18528
2b002173 185292006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
18530
18531 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
18532 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
18533 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
18534 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
18535 video/readers/tga.c and video/i386/pc/vbeutil.c.
18536
185372006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
18538
18539 Added support for RAID and LVM.
f19dbdb7 18540
2b002173 18541 * disk/lvm.c: New file.
18542 * disk/raid.c: Likewise.
18543 * include/grub/lvm.h: Likewise.
f19dbdb7 18544 * include/grub/raid.h: Likewise.
2b002173 18545 * include/grub/util/lvm.h: Likewise.
18546 * include/grub/util/raid.h: Likewise.
18547 * util/lvm.c: Likewise.
18548 * util/raid.c: Likewise.
18549
18550 * include/grub/disk.h (grub_disk_dev_id): Add
18551 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
18552 (grub_disk_get_size): New prototype.
18553 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
18554 returns a partition.
18555 (grub_disk_get_size): New function.
f19dbdb7 18556
2b002173 18557 * kern/i386/pc/init.c (make_install_device): Copy the prefix
18558 verbatim if grub_install_dos_part is -2.
18559
18560 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
18561 and LVM devices.
18562
18563 * util/i386/pc/grub-setup.c (setup): New argument
18564 MUST_EMBED. Force embedding of GRUB when the argument is
18565 true. Close FILE before returning.
18566 (main): Add support for RAID and LVM.
f19dbdb7 18567
2b002173 18568 * conf/common.rmk: Add RAID and LVM modules.
18569 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
18570 util/lvm.c.
18571 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
18572
18573 * kern/misc.c (grub_strstr): New function.
18574 * include/grub/misc.h (grub_strstr): New prototype.
18575
050548d0 185762006-10-10 Tristan Gingold <tristan.gingold@bull.net>
18577
18578 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
18579
da849d2d 185802006-10-05 Tristan Gingold <tristan.gingold@bull.net>
18581
18582 * kern/misc.c (grub_strtoull): Guess the base only if not
18583 specified.
18584
97b2f2ff 185852006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 18586
18587 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
18588 PowerMac support.
18589
97b2f2ff 185902006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 18591
18592 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
18593
18594 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
18595 Remove `flags' argument. All callers changed.
18596 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
18597 (IEEE1275_IHANDLE_INVALID): New variable.
18598 (IEEE1275_CELL_INVALID): New variable.
18599 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
18600 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
18601 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
18602 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
18603 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
18604 codes from Open Firmware. All callers updated.
18605 (grub_ieee1275_next_property): Directly return Open Firmware return
18606 code.
18607 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
18608 Standardize error checking from `grub_ieee1275_get_property'.
18609 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
18610 `devalias' to `aliases'. Correct comments. Consolidate error paths.
18611
97b2f2ff 186122006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 18613
18614 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
18615 `instance_to_package_args' to `instance_to_path_args'.
18616
18617 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
18618 `grub_ieee1275_chosen'.
18619
18620 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
18621 `grub_ieee1275_interpret'.
18622
97b2f2ff 186232006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 18624
18625 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
18626
97b2f2ff 186272006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 18628
18629 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
18630 (__cmpdi): Likewise.
18631
18632 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
18633 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
18634 `grub_ssize_t'.
18635
02bb8acc 18636 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 18637
18638 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
18639 to type `grub_ssize_t'.
18640 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
18641
7f9a8531 186422006-09-22 Marco Gerards <marco@gnu.org>
18643
18644 * normal/script.c (grub_script_create_cmdmenu): Skip leading
18645 newlines.
18646
b5ef1102 186472006-09-22 Marco Gerards <marco@gnu.org>
18648
18649 * commands/echo.c: New file.
18650
18651 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
18652
18653 * conf/common.rmk (echo_mod_SOURCES): New variable.
18654 (echo_mod_CFLAGS): Likewise.
18655 (echo_mod_LDFLAGS): Likewise.
18656
2cff3677 186572006-09-22 Marco Gerards <marco@gnu.org>
18658
18659 * normal/main.c (get_line): Malloc memory instead of using
18660 preallocated memory. Removed the arguments `cmdline' and
18661 `max_len'. Updated all callers.
18662
6ba4688b 186632006-09-22 Marco Gerards <marco@gnu.org>
18664
18665 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
18666 (normal_mod_DEPENDENCIES): Likewise.
18667
18668 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
18669 (normal_mod_DEPENDENCIES): Likewise.
18670
18671 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
18672
e02ac02c 186732006-09-22 Johan Rydberg <jrydberg@gnu.org>
18674
18675 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
18676 programs.
18677 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
18678 (normal_mod_DEPENDENCIES): Likewise.
18679 * conf/i386-pc.mk: Regenerate.
18680 * conf/i386-efi.mk: Likewise
18681 * conf/common.mk: Likewise.
18682 * conf/powerpc-ieee1275.mk: Likewise.
18683 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 18684
8d252e44 186852006-09-22 Robert Millan <rmh@aybabtu.com>
18686
18687 Sync with i386 version.
18688 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
18689 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
18690
209bf7ac 186912006-09-21 Robert Millan <rmh@aybabtu.com>
18692
18693 Import from GRUB Legacy (lib/device.c):
18694 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
18695 (init_device_map) [__linux__]: Add support for I2O devices.
18696
6b146090 186972006-09-14 Marco Gerards <marco@gnu.org>
18698
18699 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
18700 `-melf_i386'.
18701
e38600a8 187022006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 18703
18704 * util/i386/pc/grub-install.in: Skip menu.lst when removing
18705 /boot/grub/*.lst.
78fa1790 18706
2952da5d 18707 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 18708
2952da5d 18709 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
18710 before adding it to device.map.
18711
01b82a64 187122006-08-15 Johan Rydberg <jrydberg@gnu.org>
18713
fe6b695a 18714 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 18715 compiles a file; using the -MD option.
18716 * conf/common.mk: Regenerate.
18717 * conf/i386-pc.mk: Likewise.
18718 * conf/i386-efi.mk: Likewise.
18719 * conf/powerpc-ieee1275.mk: Likewise.
18720 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 18721
1064790d 187222006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
18723
18724 Move the prototypes of grub_setjmp and grub_longjmp to
18725 cpu/setjmp.h, so that each architecture may specify different
18726 attributes.
f19dbdb7 18727
1064790d 18728 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
18729 (grub_longjmp): Likewise.
18730 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
18731 (grub_longjmp): Likewise.
18732 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
18733 (grub_longjmp): Likewise.
18734
18735 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
18736 [!GRUB_UTIL] (grub_longjmp): Removed.
18737
29dda3ed 187382006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
18739
18740 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
18741 "color!" method does not return any value.
18742
ad2a06ed 187432006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
18744
18745 * include/grub/bitmap.h: New file.
18746
18747 * include/grub/i386/pc/vbeutil.h: Likewise.
18748
18749 * video/bitmap.c: Likewise.
18750
18751 * video/readers/tga.c: Likewise.
18752
18753 * video/i386/pc/vbeutil.c: Likewise.
18754
18755 * commands/videotest.c: Code cleanup and updated to reflect to new
18756 video API.
18757
18758 * term/gfxterm.c: Likewise.
18759
18760 * video/video.c: Likewise.
18761
18762 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
18763 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
18764 (bitmap_mod_SOURCES): New entry.
18765 (bitmap_mod_CFLAGS): Likewise.
18766 (bitmap_mod_LDFLAGS): Likewise.
18767 (tga_mod_SOURCES): Likewise.
18768 (tga_mod_CFLAGS): Likewise.
18769 (tga_mod_LDFLAGS): Likewise.
18770
18771 * include/grub/video.h (grub_video_blit_operators): New enum type.
18772 (grub_video_render_target): Changed as forward declaration and moved
18773 actual definition to be video driver specific.
18774 (grub_video_adapter.blit_bitmap): Added blitting operator.
18775 (grub_video_adapter.blit_render_target): Likewise.
18776 (grub_video_blit_bitmap): Likewise.
18777 (grub_video_blit_render_target): Likewise.
18778
18779 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
18780 driver specific render target definition.
18781 (grub_video_vbe_map_rgba): Added driver internal helper.
18782 (grub_video_vbe_unmap_color): Updated to use
18783 grub_video_i386_vbeblit_info.
18784 (grub_video_vbe_get_video_ptr): Likewise.
18785
18786 * include/grub/i386/pc/vbeblit.h
18787 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
18788 grub_video_i386_vbeblit_info.
18789 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
18790 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
18791 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
18792 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
18793 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
18794 (grub_video_i386_vbeblit_index_index): Likewise.
18795 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
18796 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
18797 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
18798 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
18799 operator.
18800 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
18801 operator.
18802
18803 * video/i386/pc/vbeblit.c: Updated to reflect changes on
18804 include/grub/i386/pc/vbeblit.h.
18805
18806 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
18807 Updated to use grub_video_i386_vbeblit_info.
18808 (grub_video_i386_vbefill_R8G8B8): Likewise.
18809 (grub_video_i386_vbefill_index): Likewise.
18810 (grub_video_i386_vbefill): Added generic filler.
18811
18812 * video/i386/pc/vbefill.c: Updated to reflect changes on
18813 include/grub/i386/pc/vbefill.h.
18814
18815 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
18816 grub_video_i386_vbeblit_info.
18817 (grub_video_vbe_unmap_color): Likewise.
18818 (grub_video_vbe_blit_glyph): Likewise.
18819 (grub_video_vbe_scroll): Likewise.
18820 (grub_video_vbe_draw_pixel): Removed function.
18821 (grub_video_vbe_get_pixel): Likewise.
18822 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
18823 updated code to use it.
18824 (common_blitter): Added common blitter for render target and bitmap.
18825 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
18826 (grub_video_vbe_blit_render_target): Likewise.
18827
bc8c036d 188282006-07-30 Johan Rydberg <jrydberg@gnu.org>
18829
18830 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
18831 is in text mode if there is no console control protocol instance
18832 available.
18833
684a8eff 188342006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
18835
18836 * include/grub/video.h: Code cleanup.
18837
18838 * include/grub/i386/pc/vbe.h: Likewise.
18839
18840 * video/i386/pc/vbe.c: Likewise.
18841
18842 * video/i386/pc/vbeblit.c: Likewise.
18843
18844 * video/i386/pc/vbefill.c: Likewise.
18845
18846 * video/video.c: Likewise. Also added more comments.
18847
5915059b 188482006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
18849
18850 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
18851 (struct grub_biosdisk_dap): Likewise.
18852
18853 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
18854 linkage settings for all functions.
18855
90ce5d56 188562006-07-12 Marco Gerards <marco@gnu.org>
18857
18858 * configure.ac (--enable-mm-debug): Fix typo.
18859
18860 * genkernsyms.sh.in: Use proper quoting for `CC'.
18861
43e7f879 188622006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
18863
18864 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
18865 (normal_mod_ASFLAGS): Remove "-m32".
18866
4889bdec 188672006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
18868
18869 * util/misc.c: Include config.h.
18870 [!HAVE_MEMALIGN]: Do not include malloc.h.
18871 (grub_memalign): Use posix_memalign, if present. Then, use
18872 memalign, if present. Otherwise, emit an error.
18873
18874 * util/grub-emu.c: Do not include malloc.h.
18875
18876 * include/grub/util/misc.h: Include unistd.h. This is required for
18877 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
18878 D. Eades III <hde@foobar-qux.org>.
18879
18880 * configure.ac (AC_GNU_SOURCE): Added.
18881 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
18882 type.
18883
fd39d4da 188842006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
18885
18886 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
18887 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
18888
b786f3b5 188892006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
18890
18891 * include/grub/types.h (grub_host_addr_t): Rename to
18892 grub_target_addr_t.
18893 (grub_host_off_t): Rename to grub_target_off_t.
18894 (grub_host_size_t): Rename to grub_target_size_t.
18895 (grub_host_ssize_t): Rename to grub_target_ssize_t.
18896 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
18897
18898 * include/grub/kernel.h (struct grub_module_header): Change type
18899 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
18900 (grub_module_info): Likewise.
f19dbdb7 18901
051988bb 189022006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
18903
18904 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
18905 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
18906 Velazquez <jesus.velazquez@gmail.com>.
18907
deae281b 189082006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
18909
18910 Count partitions from 1 instead of 0 in the string representation
18911 of partitions. Still use 0-based internally.
f19dbdb7 18912
deae281b 18913 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
18914 (sun_partition_map_iterate): Use grub_partition_t instead of
18915 struct grub_partition *. Cast DESC->START_CYLINDER to
18916 grub_uint64_t after converting the endian.
18917 (sun_partition_map_probe): Subtract 1 for PARTNUM.
18918 (sun_partition_map_get_name): Add 1 to P->INDEX.
18919
18920 * partmap/pc.c (grub_partition_parse): Subtract 1 for
18921 PCDATA->DOS_PART.
18922 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
18923
18924 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
18925 zero instead of one.
18926 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
18927 (gpt_partition_map_get_name): Add 1 into P->INDEX.
18928
18929 * partmap/apple.c (apple_partition_map_iterate): Change the type
18930 of POS to unsigned.
18931 (apple_partition_map_probe): Subtract 1 for PARTNUM.
18932 (apple_partition_map_get_name): Add 1 into P->INDEX.
18933
18934 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
18935 of POS to unsigned.
18936 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
18937 calculate the offset of a partition.
18938 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
18939 (amiga_partition_map_get_name): Add 1 into P->INDEX.
18940
18941 * partmap/acorn.c (acorn_partition_map_find): Change the type of
18942 SECTOR to grub_disk_addr_t.
18943 (acorn_partition_map_iterate): Likewise.
18944 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
18945 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
18946 top.
18947 (acorn_partition_map_get_name): Add 1 into P->INDEX.
18948
18949 * kern/i386/pc/init.c (make_install_device): Add 1 into
18950 GRUB_INSTALL_DOS_PART.
18951
18952 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
18953 conditional.
18954
524a1e6a 189552006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
18956
18957 Clean up the code to support 64-bit addressing in disks and
18958 files. This change is not enough for filesystems yet.
f19dbdb7 18959
524a1e6a 18960 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
18961 type of "start" to grub_uint64_t.
18962 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
18963 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
18964 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
18965 convert addresses.
18966
18967 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
18968 to grub_disk_addr_t.
18969
18970 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
18971 string.
18972
18973 * partmap/pc.c (pc_partition_map_iterate): Likewise.
18974
18975 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
18976 to char *.
18977
18978 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
18979
18980 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
18981
18982 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
18983
18984 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
18985 to grub_off_t, to detect an error from grub_file_seek.
18986 (grub_multiboot_load_elf32): Likewise.
18987
18988 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
18989 maximum unsigned long value when an overflow is detected.
18990 (grub_strtoull): New function.
18991 (grub_divmod64): Likewise.
18992 (grub_lltoa): use grub_divmod64.
18993
18994 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
18995 grub_disk_addr_t.
18996 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
18997 the pointer to next character. Use grub_strtoull instead of
18998 grub_strtoul.
18999 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
19000 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
19001 respectively.
19002
fe6b695a 19003 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 19004 return value is signed.
19005 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
19006 test if OFFSET is less than zero, as OFFSET is unsigned now.
19007
19008 * kern/disk.c (struct grub_disk_cache): Change the type of
19009 "sector" to grub_disk_addr_t.
19010 (grub_disk_cache_get_index): Change the type of SECTOR to
19011 grub_disk_addr_t. Calculate the hash with SECTOR casted to
19012 unsigned after shifting.
19013 (grub_disk_cache_invalidate): Change the type of SECTOR to
19014 grub_disk_addr_t.
19015 (grub_disk_cache_unlock): Likewise.
19016 (grub_disk_cache_store): Likewise.
19017 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
19018 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
19019 grub_disk_addr_t and grub_uint64_t, respectively.
19020 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
19021 body, as the value of OFFSET is tweaked by
19022 grub_disk_check_range. Change the types of START_SECTOR, LEN and
19023 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
19024 respectively.
19025 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
19026 body, as the value of OFFSET is tweaked by
19027 grub_disk_check_range. Change the types of LEN and N to
19028 grub_size_t.
19029
19030 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
19031 and "saved_offset" to grub_off_t.
19032 (test_header): Cast BUF to char *.
19033 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
19034 to char *.
19035 (grub_gzio_read): Change the types of OFFSET and SIZE to
19036 grub_off_t and grub_size_t, respectively.
19037
19038 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
19039 Removed.
19040 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
19041 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
19042 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
19043 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
19044 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
19045
19046 * include/grub/types.h (grub_off_t): Unconditionally set to
19047 grub_uint64_t.
19048 (grub_disk_addr_t): Changed to grub_uint64_t.
19049
19050 * include/grub/partition.h (struct grub_partition): Change the
19051 types of "start", "len" and "offset" to grub_disk_addr_t,
19052 grub_uint64_t and grub_disk_addr_t, respectively.
19053 (grub_partition_get_start): Return grub_disk_addr_t.
19054 (grub_partition_get_len): Return grub_uint64_t.
19055
19056 * include/grub/misc.h (grub_strtoull): New prototype.
19057 (grub_divmod64): Likewise.
19058
19059 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
19060 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
19061 grub_off_t, respectively.
19062 All callers and references changed.
19063
19064 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
19065 grub_size_t in "read".
19066 All callers and references changed.
19067
19068 * include/grub/file.h (struct grub_file): Change the types of
19069 "offset" and "size" to grub_off_t and grub_off_t,
19070 respectively. Change the type of SECTOR to grub_disk_addr_t in
19071 "read_hook".
19072 (grub_file_read): Change the type of LEN to grub_size_t.
19073 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
19074 grub_off_t.
19075 (grub_file_size): Return grub_off_t.
19076 (grub_file_tell): Likewise.
19077 All callers and references changed.
19078
19079 * include/grub/disk.h (struct grub_disk_dev): Change the types of
19080 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
19081 "write".
19082 (struct grub_disk): Change the type of "total_sectors" to
19083 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 19084 "read_hook".
524a1e6a 19085 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
19086 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
19087 (grub_disk_write): Likewise.
19088 All callers and references changed.
19089
19090 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
19091 char * for grub_strncmp to silence gcc.
19092 (grub_iso9660_mount): Likewise.
19093 (grub_iso9660_mount): Likewise.
19094 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
19095 return statement.
19096 (grub_iso9660_iterate_dir): Likewise.
19097 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
19098
19099 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
19100 LEN to grub_disk_addr_t and grub_size_t, respectively.
19101
19102 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
19103
19104 * fs/jfs.c (grub_jfs_read_file): Likewise.
19105
19106 * fs/minix.c (grub_jfs_read_file): Likewise.
19107
19108 * fs/sfs.c (grub_jfs_read_file): Likewise.
19109
19110 * fs/ufs.c (grub_jfs_read_file): Likewise.
19111
19112 * fs/xfs.c (grub_jfs_read_file): Likewise.
19113
19114 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
19115 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
19116 respectively.
19117
19118 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
19119 BLKNR to -1 instead of returning GRUB_ERRNO.
19120 (grub_ext2_read_file): Change the types of SECTOR and
19121 LEN to grub_disk_addr_t and grub_size_t, respectively.
19122
19123 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
19124 LEN to grub_disk_addr_t and grub_size_t, respectively.
19125
19126 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
19127 grub_file_read.
19128
19129 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
19130 string. Do not cast SECTOR explicitly.
19131
19132 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
19133 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
19134 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
19135 grub_disk_addr_t and grub_size_t, respectively. If the sector is
19136 over 2TB and LBA mode is not supported, raise an error.
19137 (get_safe_sectors): New function.
19138 (grub_biosdisk_read): Use get_safe_sectors.
19139 (grub_biosdisk_write): Likewise.
19140
19141 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
19142 (grub_efidisk_write): Likewise.
19143
19144 * disk/loopback.c (delete_loopback): Cosmetic changes.
19145 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
19146 correctly.
19147 (grub_loopback_open): Likewise.
19148 (grub_loopback_read): Likewise. Also, change the type of POS to
19149 grub_off_t, and fix the usage of grub_memset.
19150
19151 * commands/i386/pc/play.c: Include grub/machine/time.h.
19152
19153 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
19154 print FILE->SIZE.
19155
19156 * commands/configfile.c: Include grub/env.h.
19157
19158 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
19159 GRUB_ERRNO directly instead. Change the type of POS to
19160 grub_off_t. Follow the coding standard.
19161
19162 * commands/blocklist.c: Include grub/partition.h.
19163 (grub_cmd_blocklist): Return an error if the underlying device is
19164 not a disk. Take the starting sector of a partition into account,
19165 if a partition is used.
19166
19167 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
19168 a length field.
19169 (lba_mode): Support 64-bit addresses.
19170 (chs_mode): Likewise.
19171 (copy_buffer): Adapted to the new offsets of a length field and a
19172 segment field.
19173 (blocklist_default_start): Allocate 64-bit space.
19174
19175 * boot/i386/pc/boot.S (force_lba): Removed.
19176 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 19177 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 19178 space.
19179 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
19180 is useless.
19181 (lba_mode): Refactored to support a 64-bit address. More size
19182 optimization.
19183 (setup_sectors): Likewise.
19184
53af98ad 191852006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
19186
19187 * DISTLIST: Added include/grub/i386/linux.h. Removed
19188 include/grub/i386/pc/linux.h
19189
19190 * configure.ac (AC_INIT): Bumped to 1.94.
19191
19192 * config.guess: Updated from gnulib.
19193 * config.sub: Likewise.
19194 * install-sh: Likewise.
19195 * mkinstalldirs: Likewise.
19196
b4c1940a 191972006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
19198
19199 * conf/common.rmk (grub_modules_init.lst): Depended on
19200 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
19201 MODSRCFILES.
19202
19203 * genmk.rb (PModule::rule): Reverted the previous change.
19204
cfca1cfd 192052006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
19206
19207 * conf/common.rmk (grub_modules_init.lst): Depends on
19208 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
19209 that the target does not exist before producing.
19210 (grub_modules_init.h): Remove the target before generating.
19211 (grub_emu_init.c): Likewise.
19212
19213 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
19214
aa6d7826 192152006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
19216
19217 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
19218 for the target-specific tests. Make sure that we also have the
19219 up-to-date target variables for those tests.
19220
26c607b9 192212006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
19222
19223 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
19224 (PModule::rule): Likewise.
19225
0162321a 192262006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
19227
19228 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
19229 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
19230 target-specific flags should be prefixed.
19231 (PModule::rule): Likewise.
19232
6c826348 192332006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
19234
19235 * configure.ac (CMP): Check if cmp is available explicitly.
19236
b977bf01 192372006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
19238
19239 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
19240 (target_cpu): New variable.
19241 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 19242
b977bf01 19243 * util/i386/pc/grub-install.in (host_cpu): Removed.
19244 (target_cpu): New variable.
19245 (pkglibdir): Use target_cpu instead of host_cpu.
19246
19247 * util/genmoddep.c: Removed.
f19dbdb7 19248
b977bf01 19249 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
19250 instead of GRUB_HOST_SIZEOF_VOID_P.
19251 * kern/dl.c: Likewise.
19252
19253 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
19254 ...
19255 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
19256 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
19257 (GRUB_TARGET_SIZEOF_LONG): ... this.
19258 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
19259 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
19260 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
19261 to ...
19262 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
19263 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
19264 (GRUB_TARGET_SIZEOF_LONG): ... this.
19265 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
19266 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
19267 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
19268 to ...
19269 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
19270 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
19271 (GRUB_TARGET_SIZEOF_LONG): ... this.
19272 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
19273 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
19274
19275 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
19276 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
19277 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
19278 instead of GRUB_HOST_SIZEOF_LONG.
19279 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
19280 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
19281 GRUB_CPU_WORDS_BIGENDIAN.
19282 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
19283 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
19284 grub_host_ssize_t.
19285
19286 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
19287 (genmoddep_SOURCES): Likewise.
19288 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
19289 (genmoddep_SOURCES): Likewise.
19290 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
19291 (genmoddep_SOURCES): Likewise.
19292 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
19293 Likewise.
19294 (genmoddep_SOURCES): Likewise.
19295
19296 * genmoddep.awk: New file.
19297
19298 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
19299 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
19300 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
19301 (PModule::rule): Likewise.
19302 (Program::rule): Likewise.
19303 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
19304 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
19305 respectively.
19306
19307 * configure.ac: Rewritten intensively to use host and target
19308 instead of build and host, respectively.
19309
19310 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
19311 (host_cpu): Removed.
19312 (target_cpu): New variable.
19313 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
19314 (BUILD_CC): Removed.
19315 (BUILD_CFLAGS): Likewise.
19316 (BUILD_CPPFLAGS): Likewise.
19317 (TARGET_CC): New variable.
19318 (TARGET_CFLAGS): Likewise.
19319 (TARGET_CPPFLAGS): Likewise.
19320 (TARGET_LDFLAGS): Likewise.
19321 (AWK): Likewise.
19322 (include): Use target_cpu instead of host_cpu.
19323 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 19324
b977bf01 19325 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
19326
f09771a1 193272006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
19328
19329 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
19330 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
19331 field 'false' to 'exec_on_false'.
19332 (grub_script_create_cmdif): Renamed argument names to reflect above
19333 changes.
19334
19335 * normal/execute.c (grub_script_execute_cmdif): Likewise.
19336
19337 * normal/script.c (grub_script_create_cmdif): Likewise.
19338
118f4fb3 193392006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
19340
19341 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
19342 top.
19343 (grub_hfsplus_btree_recptr): Likewise.
19344 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
19345 FILEBLOCK both to pass a block number and store next block
19346 number.
19347 (grub_hfsplus_read_block): Rewritten heavily to support an extent
19348 overflow file correctly. Specify errors appropriately, because
19349 fshelp expects that GRUB_ERRNO is set when fails. Reuse
19350 grub_hfsplus_btree_recptr to get the pointer to a found key.
19351 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
19352 is found.
19353
19354 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
19355 linux.mod.
19356 (_linux_mod_SOURCES): New variable.
19357 (_linux_mod_CFLAGS): Likewise.
19358 (_linux_mod_LDFLAGS): Likewise.
19359 (linux_mod_SOURCES): Likewise.
19360 (linux_mod_CFLAGS): Likewise.
19361 (linux_mod_LDFLAGS): Likewise.
19362
19363 * DISTLIST: Added loader/i386/efi/linux.c,
19364 loader/i386/efi/linux_normal.c and
19365 include/grub/i386/efi/loader.h.
19366
19367 * loader/i386/efi/linux.c: New file.
19368 * loader/i386/efi/linux_normal.c: Likewise.
19369 * include/grub/i386/efi/loader.h: Likewise.
19370
89a7d726 193712006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
19372
19373 * commands/blocklist.c: New file.
19374
19375 * DISTLIST: Added commands/blocklist.c.
19376
19377 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 19378 color for the background, and a darker color for the foreground.
89a7d726 19379 (grub_console_checkkey): Return READ_KEY.
19380 (grub_console_cls): Set the background to
19381 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
19382
19383 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
19384
19385 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
19386 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
19387
19388 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
19389 prototype.
19390
19391 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
19392 BG. The spec is wrong again.
19393
19394 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
19395 prototype.
19396 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
19397
19398 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
19399 commands/blocklist.c.
19400 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 19401
89a7d726 19402 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
19403 (blocklist_mod_SOURCES): New variable.
19404 (blocklist_mod_CFLAGS): Likewise.
19405 (blocklist_mod_LDFLAGS): Likewise.
19406
75c8f258 194072006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
19408
19409 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
19410 duplication.
19411 (lba_mode): Use %eax more intensively to reduce the code size.
19412
da2eb181 194132006-05-20 Marco Gerards <marco@gnu.org>
19414
19415 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
19416
19417 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
19418 for `menuentry'.
19419 (script): Accept leading newlines.
19420 (newlines): New rule to describe 0 or more newlines.
19421 (commands): Accept `command' with trailing newline. Fixed the
19422 order in which arguments were passed to `grub_script_add_cmd'.
19423 Accept commands separated by newlines.
19424 (function): Changed to accept newlines.
19425 (menuentry) Rewritten.
19426
19427 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
19428 front of the list, instead of to the end.
19429
577b4050 194302006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
19431
19432 * util/i386/pc/grub-install.in (bindir): New variable.
19433 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
19434 Shaver <lbgwjl@gmail.com>.
19435
0d6e1189 194362006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
19437
19438 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
19439 grub/machine/linux.h
19440 * loader/i386/pc/linux.c: Likewise.
19441
19442 * include/grub/i386/pc/linux.h: Moved to ...
19443 * include/grub/i386/linux.h: ... here.
19444
19445 * include/grub/i386/linux.h (struct linux_kernel_params): New
19446 struct.
f19dbdb7 19447
31b86e9f 194482006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
19449
19450 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
19451 checking.
19452 (grub_video_vbe_blit_glyph): Likewise.
19453 (grub_video_vbe_blit_bitmap): Likewise.
19454 (grub_video_vbe_blit_render_target): Likewise.
19455
83b984de 194562006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
19457
19458 * configure.ac (--with-platform): Properly quote the square
19459 brackets.
19460
5f0413bd 194612006-05-08 Marco Gerards <marco@gnu.org>
19462
19463 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
19464 this...
19465 (kernel_elf_HEADERS): ...to this. Updated all users.
19466 (grubof_symlist.c): Renamed from this...
19467 (kernel_elf_symlist.c): ...to this. Updated all users.
19468 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
19469 (grubof_SOURCES): Renamed from this...
19470 (kernel_elf_SOURCES): ...to this.
19471 (grubof_HEADERS): Renamed from this...
19472 (kernel_elf_HEADERS): ...to this.
19473 (grubof_CFLAGS): Renamed from this...
19474 (kernel_elf_CFLAGS): ...to this.
19475 (grubof_ASFLAGS): Renamed from this...
19476 (kernel_elf_ASFLAGS): ...to this.
19477 (grubof_LDFLAGS): Renamed from this...
19478 (kernel_elf_LDFLAGS): ...to this.
19479
19480 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
19481 this...
19482 (kernel_elf_HEADERS): ...to this. Updated all users.
19483 (grubof_symlist.c): Renamed from this...
19484 (kernel_elf_symlist.c): ...to this. Updated all users.
19485 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
19486 (grubof_SOURCES): Renamed from this...
19487 (kernel_elf_SOURCES): ...to this.
19488 (grubof_HEADERS): Renamed from this...
19489 (kernel_elf_HEADERS): ...to this.
19490 (grubof_CFLAGS): Renamed from this...
19491 (kernel_elf_CFLAGS): ...to this.
19492 (grubof_ASFLAGS): Renamed from this...
19493 (kernel_elf_ASFLAGS): ...to this.
19494 (grubof_LDFLAGS): Renamed from this...
19495 (kernel_elf_LDFLAGS): ...to this.
19496
19497 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
19498 `kernel.elf' instead of `grubof'.
19499
05568c2e 195002006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
19501
19502 Add --with-platform to configure. Use pkglibdir instead of
19503 pkgdatadir. This is reported by Roger Leigh.
19504
19505 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
19506 (host_vendor): Likewise.
19507 (host_os): Likewise.
19508 (pkgdatadir): Likewise.
19509 (platform): New variable.
19510 (pkglibdir): Likewise.
19511 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 19512
05568c2e 19513 * util/i386/pc/grub-install.in (datadir): Removed.
19514 (host_vendor): Likewise.
19515 (host_os): Likewise.
19516 (pkgdatadir): Likewise.
19517 (platform): New variable.
19518 (pkglibdir): Likewise.
19519 Use PKGLIBDIR instead of PKGDATADIR.
19520
19521 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
19522 instead of GRUB_DATADIR.
19523 (main): Likewise.
19524 * util/i386/pc/grub-mkimage.c (usage): Likewise.
19525 (main): Likewise.
19526 * util/i386/efi/grub-mkimage.c (usage): Likewise.
19527 (main): Likewise.
19528
19529 * configure.ac (--with-platform): New option.
19530 Use PLATFORM instead of HOST_VENDOR to specify a platform.
19531
19532 * Makefile.in: Include a makefile based on PLATFORM instead of
19533 HOST_VENDOR.
19534 (pkgdatadir): Not appended by the machine type.
19535 (pkglibdir): Appended by the machine type.
19536 (host_vendor): Removed.
19537 (platform): New variable.
19538 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
19539 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
19540 (uninstall): Likewise.
19541
4e93851c 195422006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
19543
19544 Use the environment context in the menu. Remove the commands
19545 "default" and "timeout", and use variables instead.
f19dbdb7 19546
4e93851c 19547 * normal/menu.c: Include grub/env.h.
19548 (print_entry): Cast TITLE to silence gcc.
19549 (get_timeout): New function.
19550 (set_timeout): Likewise.
19551 (get_entry_number): Likewise.
19552 (run_menu): Use a default entry, a fallback entry and a timeout
19553 in the environment variables "default", "fallback" and
19554 "timeout". Also, tweak the default entry if it is not within the
19555 current menu entries.
19556 (grub_menu_run): Use a fallback entry in the environment variable
19557 "fallback".
19558
19559 * normal/main.c (read_config_file): Do not initialize
19560 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
19561 NEWMENU->TIMEOUT.
19562 (grub_normal_execute): Use a data slot to store the menu.
19563
19564 * include/grub/normal.h (struct grub_menu): Removed default_entry,
19565 fallback_entry and timeout.
19566 (struct grub_menu_list): Removed.
19567 (grub_menu_list_t): Likewise.
19568 (struct grub_context): Likewise.
19569 (grub_context_t): Likewise.
19570 (grub_context_get): Likewise.
19571 (grub_context_get_current_menu): Likewise.
19572 (grub_context_push_menu): Likewise.
19573 (grub_context_pop_menu): Likewise.
19574 (grub_default_init): Likewise.
19575 (grub_default_fini): Likewise.
19576 (grub_timeout_init): Likewise.
19577 (grub_timeout_fini): Likewise.
19578
19579 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
19580 and timeout.mod.
19581 (normal_mod_SOURCES): Removed normal/context.c.
19582
19583 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
19584 commands/default.c, commands/timeout.c and normal/context.c.
19585 (normal_mod_SOURCES): Removed normal/context.c.
19586
19587 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
19588 commands/timeout.c and normal/context.c.
19589 (normal_mod_SOURCES): Removed normal/context.c.
19590
19591 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
19592 commands/default.c, commands/timeout.c and normal/context.c.
19593 (normal_mod_SOURCES): Removed normal/context.c.
19594
19595 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
19596 timeout.mod.
19597 (default_mod_SOURCES): Removed.
19598 (default_mod_CFLAGS): Likewise.
19599 (default_mod_LDFLAGS): Likewise.
19600 (timeout_mod_SOURCES): Removed.
19601 (timeout_mod_CFLAGS): Likewise.
19602 (timeout_mod_LDFLAGS): Likewise.
19603
19604 * DISTLIST: Removed commands/default.c, commands/timeout.c and
19605 normal/context.c.
19606
19607 * commands/default.c: Removed.
19608 * commands/timeout.c: Likewise.
19609 * normal/context.c: Likewise.
19610
1eb9cc1d 196112006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
19612
19613 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
19614
385bd9c1 196152006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
19616
19617 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
19618 "next" to "prev" for readability.
19619 (struct grub_env_sorted_var): New struct.
19620 (grub_env_context): Renamed to ...
19621 (initial_context): ... this.
19622 (grub_env_var_context): Renamed to ...
19623 (current_context): ... this.
19624 (grub_env_find): Look only at CURRENT_CONTEXT.
19625 (grub_env_context_open): Rewritten to copy exported variables from
19626 previous context.
19627 (grub_env_context_close): Rewritten according to the new
19628 scheme. Also, add an assertion to prevent the initial context from
19629 removed.
19630 (grub_env_insert): Removed the code for the sorted list.
19631 (grub_env_remove): Likewise.
19632 (grub_env_export): Simply mark the variable with
19633 GRUB_ENV_VAR_GLOBAL.
19634 (grub_env_set): A cosmetic change for naming consistency.
19635 (grub_env_get): Likewise.
19636 (grub_env_unset): Likewise.
19637 (grub_env_iterate): Rewritten to sort variables within this
19638 function.
19639 (grub_register_variable_hook): Fixed for naming consistency. Call
19640 grub_env_find again, only if NAME is not found at the first time.
19641 (mangle_data_slot_name): New function.
19642 (grub_env_set_data_slot): Likewise.
19643 (grub_env_get_data_slot): Likewise.
19644 (grub_env_unset_data_slot): Likewise.
19645
19646 * include/grub/env.h (grub_env_var_type): New enum.
19647 (GRUB_ENV_VAR_LOCAL): New constant.
19648 (GRUB_ENV_VAR_GLOBAL): Likewise.
19649 (GRUB_ENV_VAR_DATA): Likewise.
19650 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
19651 "type".
19652 (grub_env_set): Replace VAR with NAME for consistency.
19653 (grub_register_variable_hook): Likewise.
19654 (grub_env_export): Specify the name of the argument.
19655 (grub_env_set_data_slot): New prototype.
19656 (grub_env_get_data_slot): Likewise.
19657 (grub_env_unset_data_slot): Likewise.
19658
7f362539 196592006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
19660
19661 Extend the loader so that GRUB can accept a loader which comes
19662 back to GRUB when a loaded image exits. Also, this change adds
19663 support for a chainloader on EFI.
f19dbdb7 19664
7f362539 19665 * term/efi/console.c: Include grub/misc.h.
19666 (grub_console_checkkey): Display a scan code on the top for
19667 debugging. This will be removed once the EFI port gets stable.
19668 Correct the scan code mapping.
19669
19670 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
19671 allocate memory from larger regions, in order to reduce the number
19672 of allocated regions. Otherwise, the MacOSX loader panics.
19673 (filter_memory_map): Avoid less than 1MB for compatibility with
19674 other loaders.
19675 (add_memory_regions): Allocate from the tail of a region, if
19676 possible, to avoid allocating a region near to 1MB, for the MacOSX
19677 loader.
19678
19679 * kern/efi/init.c (grub_efi_set_prefix): Specify
19680 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
19681
19682 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
19683 argument IMAGE_HANDLE and specify it to get a loaded image.
19684 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
19685 grub_efi_get_loaded_image.
fe6b695a 19686 (grub_efi_get_filename): Divide the length by the size of
7f362539 19687 grub_efi_char16_t.
19688 (grub_efi_get_device_path): New function.
19689 (grub_efi_print_device_path): Print End Device Path nodes. Divide
19690 the length by the size of grub_efi_char16_t for a file path device
19691 path node.
19692
19693 * kern/loader.c (grub_loader_noreturn): New variable.
19694 (grub_loader_set): Accept a new argument NORETURN. Set
19695 GRUB_LOADER_NORETURN to NORETURN.
19696 All callers changed.
19697 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
19698 grub_machine_fini.
19699
19700 * include/grub/efi/efi.h (grub_efi_get_device_path): New
19701 prototype.
19702 (grub_efi_get_loaded_image): Take an argument to specify an image
19703 handle.
19704
19705 * include/grub/loader.h (grub_loader_set): Added one more argument
19706 NORETURN.
19707
19708 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
19709 instead of grub_efi_open_protocol.
19710 (grub_efidisk_get_device_name): Likewise.
19711 (grub_efidisk_close): Print a newline.
19712 (grub_efidisk_get_device_handle): Fixed to use
19713 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
19714 GRUB_EFI_DEVICE_PATH_TYPE.
19715
19716 * disk/efi/efidisk.c (device_path_guid): Moved to ...
19717 * kern/efi/efi.c (device_path_guid): ... here.
19718
19719 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
19720 chain.mod.
19721 (kernel_mod_HEADERS): Added efi/disk.h.
19722 (_chain_mod_SOURCES): New variable.
19723 (_chain_mod_CFLAGS): Likewise.
19724 (_chain_mod_LDFLAGS): Likewise.
19725 (chain_mod_SOURCES): Likewise.
19726 (chain_mod_CFLAGS): Likewise.
19727 (chain_mod_LDFLAGS): Likewise.
19728
19729 * DISTLIST: Added include/grub/efi/chainloader.h,
19730 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
19731
19732 * include/grub/efi/chainloader.h: New file.
19733 * loader/efi/chainloader.c: Likewise.
19734 * loader/efi/chainloader_normal.c: Likewise.
19735
c0111d6e 197362006-04-30 Marco Gerards <marco@gnu.org>
19737
19738 * commands/configfile.c (grub_cmd_source): New function.
19739 (GRUB_MOD_INIT): Register the commands `source' and `.'.
19740 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
19741
df5341da 197422006-04-30 Marco Gerards <marco@gnu.org>
19743
19744 * normal/execute.c (grub_script_execute_cmd): Change the return
19745 type to `grub_err_t'. Correctly return the error.
19746 (grub_script_execute_cmdline): In case a command line is not a
19747 command or a function, try to interpret it as an assignment.
19748
f85934bd 197492006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
19750
19751 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
19752 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
19753 skip a node whose name is obviously invalid as UTF-16,
19754 i.e. contains a NUL character. Stop the iteration when the last
19755 directory entry is found. Instead of using the return value of
19756 grub_hfsplus_btree_iterate_node, store the value in RET and use
19757 it, because the iterator can be stopped by the last directory
19758 entry.
19759
8f8a2cf8 197602006-04-30 Marco Gerards <marco@gnu.org>
19761
19762 * include/grub/env.h (grub_env_export): New prototype. Reported
19763 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
19764
a27e84ce 197652006-04-30 Marco Gerards <marco@gnu.org>
19766
19767 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
19768 size of the extents in a catalog file record.
19769
eaef0553 197702006-04-29 Marco Gerards <marco@gnu.org>
19771
19772 * commands/configfile.c (grub_cmd_configfile): Execute the
19773 configfile within its own context.
19774
19775 * include/grub/env.h (grub_env_context_open): New prototype.
19776 (grub_env_context_close): Likewise.
19777
19778 * kern/env.c (grub_env): Removed.
19779 (grub_env_sorted): Likewise.
19780 (grub_env_context): New variable.
19781 (grub_env_var_context): Likewise.
19782 (grub_env_find): Search both the active context and the global
19783 context.
19784 (grub_env_context_open): New function.
19785 (grub_env_context_close): Likewise.
19786 (grub_env_insert): Likewise.
19787 (grub_env_remove): Likewise.
19788 (grub_env_export): Likewise.
19789 (grub_env_set): Changed to use helper functions to avoid code
19790 duplication.
19791 (grub_env_iterate): Rewritten so both the current context and the
19792 global context are being used.
19793
19794 * normal/command.c (export_command): New function.
19795 (grub_command_init): Register the `export' function.
19796
7b455f4d 197972006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
19798
19799 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
19800 explicitly to suppress gcc's warnings.
19801 * fs/fat.c (grub_fat_find_dir): Likewise.
19802 (grub_fat_label): Likewise.
19803 * fs/xfs.c (grub_xfs_read_inode): Likewise.
19804 (grub_xfs_mount): Likewise.
19805 (grub_xfs_label): Likewise.
19806 * fs/affs.c (grub_affs_mount): Likewise.
19807 (grub_affs_label): Likewise.
19808 (grub_affs_iterate_dir): Likewise.
19809 * fs/sfs.c (grub_sfs_mount): Likewise.
19810 (grub_sfs_iterate_dir): Likewise.
19811 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
19812 * fs/hfs.c (grub_hfs_mount): Likewise.
19813 (grub_hfs_cmp_catkeys): Likewise.
19814 (grub_hfs_find_dir): Likewise.
19815 (grub_hfs_dir): Likewise.
19816 (grub_hfs_label): Likewise.
19817 * fs/jfs.c (grub_jfs_mount): Likewise.
19818 (grub_jfs_opendir): Likewise.
19819 (grub_jfs_getent): Likewise.
19820 (grub_jfs_lookup_symlink): Likewise.
19821 (grub_jfs_label): Likewise.
19822 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
19823 (grub_hfsplus_iterate_dir): Likewise.
19824 (grub_hfsplus_btree_iterate_node): Made static.
19825
19826 * util/grub-emu.c (prefix): New variable.
19827 (grub_machine_set_prefix): New function.
19828 (main): Do not set the environment variable "prefix" here. Only
19829 set PREFIX, which is used later by grub_machine_set_prefix.
19830
19831 * include/grub/video.h: Do not include grub/symbol.h.
19832 (grub_video_register): Not exported. This symbol is not defined in
19833 the kernel.
19834 (grub_video_unregister): Likewise.
19835 (grub_video_iterate): Likewise.
19836 (grub_video_setup): Likewise.
19837 (grub_video_restore): Likewise.
19838 (grub_video_get_info): Likewise.
19839 (grub_video_get_blit_format): Likewise.
19840 (grub_video_set_palette): Likewise.
19841 (grub_video_get_palette): Likewise.
19842 (grub_video_set_viewport): Likewise.
19843 (grub_video_get_viewport): Likewise.
19844 (grub_video_map_color): Likewise.
19845 (grub_video_map_rgb): Likewise.
19846 (grub_video_map_rgba): Likewise.
19847 (grub_video_fill_rect): Likewise.
19848 (grub_video_blit_glyph): Likewise.
19849 (grub_video_blit_bitmap): Likewise.
19850 (grub_video_blit_render_target): Likewise.
19851 (grub_video_scroll): Likewise.
19852 (grub_video_swap_buffers): Likewise.
19853 (grub_video_create_render_target): Likewise.
19854 (grub_video_delete_render_target): Likewise.
19855 (grub_video_set_active_render_target): Likewise.
19856
19857 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
19858 Undefined.
19859 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
19860
19861 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
19862 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
19863 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
19864 instead of $(srcdir)/genkernsyms.sh.
19865
19866 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
19867 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
19868 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
19869 instead of $(srcdir)/genkernsyms.sh.
19870
19871 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
19872 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
19873 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
19874 instead of $(srcdir)/genkernsyms.sh.
19875
19876 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
19877 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
19878 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
19879 instead of $(srcdir)/genkernsyms.sh.
19880
19881 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
19882 genkernsyms.sh.
19883
19884 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
19885 genkernsyms.sh.
19886 (gensymlist.sh): New target.
19887 (genkernsyms.sh): Likewise.
19888
19889 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
19890 genkernsyms.sh.in and gensymlist.sh.in.
19891
19892 * genkernsyms.sh: Removed.
19893 * gensymlist.sh: Likewise.
f19dbdb7 19894
7b455f4d 19895 * genkernsyms.sh.in: New file.
19896 * gensymlist.sh.in: Likewise.
19897
1885bb27 198982006-04-25 Hollis Blanchard <hollis@penguinppc.org>
19899
19900 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
19901 clobber "prefix", since we may have already set it manually.
19902
71538dff 199032006-04-25 Hollis Blanchard <hollis@penguinppc.org>
19904
19905 * kern/misc.c (abort): New alias for grub_abort.
19906
2965c7cc 199072006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
19908
19909 A new machine-specific function "grub_machine_set_prefix" is
19910 defined. This is called after loading modules, so that a prefix
19911 initialization can use modules. Also, this change adds an
19912 intensive debugging feature for the memory manager via the
19913 configure option "--enable-mm-debug".
f19dbdb7 19914
2965c7cc 19915 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
19916 PART.LEN.
19917
19918 * kern/sparc64/ieee1275/init.c (abort): Removed.
19919 (grub_stop): Likewise.
19920 (grub_exit): New function.
19921 (grub_set_prefix): Renamed to ...
19922 (grub_machine_set_prefix): ... this.
19923 (grub_machine_init): Do not call grub_set_prefix.
19924
19925 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
19926 (grub_machine_set_prefix): ... this.
19927 (grub_machine_init): Do not call grub_set_prefix.
19928
19929 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
19930 (grub_machine_init): Do not set the prefix here.
19931
19932 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
19933
19934 * kern/efi/init.c: Include grub/mm.h.
19935 (grub_efi_set_prefix): New function.
19936
19937 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
19938 (grub_efi_get_filename): New function.
19939 (grub_print_device_path): Renamed to ...
19940 (grub_efi_print_device_path): ... this.
19941
19942 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
19943 [MM_DEBUG] (grub_realloc): Likewise.
19944 [MM_DEBUG] (grub_free): Likewise.
19945 [MM_DEBUG] (grub_memalign): Likewise.
19946 [MM_DEBUG] (grub_mm_debug): New variable.
19947 [MM_DEBUG] (grub_debug_malloc): New function.
19948 [MM_DEBUG] (grub_debug_free): New function.
19949 [MM_DEBUG] (grub_debug_realloc): New function.
19950 [MM_DEBUG] (grub_debug_memalign): New function.
19951
19952 * kern/misc.c (grub_abort): Print a newline to distinguish
19953 the message.
19954
19955 * kern/main.c (grub_main): Call grub_machine_set_prefix and
19956 grub_set_root_dev after loading modules. This is necessary when
19957 setting a prefix depends on modules.
19958
19959 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
19960 (grub_efi_print_device_path): ... this.
19961 (grub_efi_get_filename): New prototype.
19962 (grub_efi_set_prefix): Likewise.
19963
19964 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
19965 and grub/disk.h.
19966 (grub_efidisk_get_device_handle): New prototype.
19967 (grub_efidisk_get_device_name): Likewise.
19968
19969 * include/grub/mm.h: Include config.h.
19970 (MM_DEBUG): Removed.
19971 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
19972 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
19973 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
19974 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
19975 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
19976 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
19977 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
19978 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
19979 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
19980
19981 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
19982
19983 * disk/efi/efidisk.c: Include grub/partition.h.
19984 (iterate_child_devices): New function.
19985 (add_device): First, compare only last device path nodes, so that
19986 devices are sorted by the types.
19987 (grub_efidisk_get_device_handle): New function.
19988 (grub_efidisk_get_device_name): Likewise.
19989
19990 * configure.ac (--enable-mm-debug): New option to enable the
19991 memory manager debugging feature. This makes the binary much
19992 bigger, so is disabled by default.
19993
9cacaa17 199942006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
19995
19996 Use grub_abort instead of grub_stop, and grub_exit must be
19997 define in each architecture now. Also, this change adds support
19998 for EFI disks.
f19dbdb7 19999
9cacaa17 20000 * util/i386/pc/grub-probefs.c: Include grub/term.h.
20001 (grub_getkey): New function.
20002 (grub_term_get_current): Likewise.
20003
20004 * util/i386/pc/grub-setup.c: Include grub/term.h.
20005 (grub_getkey): New function.
20006 (grub_term_get_current): Likewise.
20007
20008 * util/misc.c (grub_stop): Renamed to ...
20009 (grub_exit): ... this.
20010
20011 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
20012 (grub_exit): ... this.
20013 (grub_machine_init): Use grub_abort instead of abort.
20014 (grub_stop): Removed.
20015
20016 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
20017 abort.
20018
20019 * kern/i386/pc/startup.S (grub_exit): New function.
20020 (cold_reboot): New label.
20021
20022 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
20023 (grub_efi_init): Call grub_efidisk_init.
20024 (grub_efi_fini): Call grub_efidisk_fini.
20025
20026 * kern/efi/efi.c: Include grub/mm.h.
20027 (grub_efi_console_control_guid): Renamed to ...
20028 (console_control_guid): ... this.
20029 (grub_efi_loaded_image_guid): Renamed to ...
20030 (loaded_image_guid): ... this.
20031 (grub_efi_locate_handle): New function.
20032 (grub_efi_open_protocol): Likewise.
20033 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
20034 GRUB_EFI_CONSOLE_CONTROL_GUID.
20035 (grub_efi_exit): Removed.
20036 (grub_stop): Likewise.
20037 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
20038 (grub_exit): New function.
20039 (grub_print_device_path): Likewise.
20040
20041 * kern/rescue.c (grub_rescue_cmd_exit): New function.
20042 (grub_enter_rescue_mode): Register "exit".
20043
20044 * kern/misc.c (grub_real_dprintf): A cosmetic change.
20045 (grub_abort): New function.
20046
20047 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
20048
20049 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
20050
20051 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
20052
20053 * include/grub/efi/efi.h (grub_efi_exit): Removed.
20054 (grub_print_device_path): New prototype.
20055 (grub_efi_locate_handle): Likewise.
20056 (grub_efi_open_protocol): Likewise.
20057
20058 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
20059 * disk/efi/efidisk.c: Likewise.
20060
20061 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
20062
20063 * include/grub/efi/console_control.h
20064 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
20065
20066 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
20067 last 8 bytes as an array.
20068 (GRUB_EFI_DISK_IO_GUID): New macro.
20069 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
20070 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
20071 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
20072 grub_uint8_t.
20073 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
20074 (struct grub_efi_device_path): Rename the member "sub_type" to
20075 "subtype".
20076 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
20077 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
20078 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
20079 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
20080 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
20081 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
20082 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
20083 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
20084 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
20085 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
20086 (struct grub_efi_pci_device_path): New structure.
20087 (grub_efi_pci_device_path_t): New type.
20088 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
20089 (struct grub_efi_pccard_device_path): New structure.
20090 (grub_efi_pccard_device_path_t): New type.
20091 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
20092 (struct grub_efi_memory_mapped_device_path): New structure.
20093 (grub_efi_memory_mapped_device_path_t): New type.
20094 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
20095 (struct grub_efi_vendor_device_path): New structure.
20096 (grub_efi_vendor_device_path_t): New type.
20097 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
20098 (struct grub_efi_controller_device_path): New structure.
20099 (grub_efi_controller_device_path_t): New type.
20100 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
20101 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
20102 (struct grub_efi_acpi_device_path): New structure.
20103 (grub_efi_acpi_device_path_t): New type.
20104 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
20105 (struct grub_efi_expanded_acpi_device_path): New structure.
20106 (grub_efi_expanded_acpi_device_path_t): New type.
20107 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
20108 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
20109 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
20110 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
20111 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
20112 (struct grub_efi_atapi_device_path): New structure.
20113 (grub_efi_atapi_device_path_t): New type.
20114 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
20115 (struct grub_efi_fibre_channel_device_path): New structure.
20116 (grub_efi_fibre_channel_device_path_t): New type.
20117 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
20118 (struct grub_efi_1394_device_path): New structure.
20119 (grub_efi_1394_device_path_t): New type.
20120 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
20121 (struct grub_efi_usb_device_path): New structure.
20122 (grub_efi_usb_device_path_t): New type.
20123 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
20124 (struct grub_efi_usb_class_device_path): New structure.
20125 (grub_efi_usb_class_device_path_t): New type.
20126 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
20127 (struct grub_efi_i2o_device_path): New structure.
20128 (grub_efi_i2o_device_path_t): New type.
20129 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
20130 (struct grub_efi_mac_address_device_path): New structure.
20131 (grub_efi_mac_address_device_path_t): New type.
20132 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
20133 (struct grub_efi_ipv4_device_path): New structure.
20134 (grub_efi_ipv4_device_path_t): New type.
20135 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
20136 (struct grub_efi_ipv6_device_path): New structure.
20137 (grub_efi_ipv6_device_path_t): New type.
20138 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
20139 (struct grub_efi_infiniband_device_path): New structure.
20140 (grub_efi_infiniband_device_path_t): New type.
20141 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
20142 (struct grub_efi_uart_device_path): New structure.
20143 (grub_efi_uart_device_path_t): New type.
20144 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
20145 (struct grub_efi_vendor_messaging_device_path): New structure.
20146 (grub_efi_vendor_messaging_device_path_t): New type.
20147 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
20148 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
20149 (struct grub_efi_hard_drive_device_path): New structure.
20150 (grub_efi_hard_drive_device_path_t): New type.
20151 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
20152 (struct grub_efi_cdrom_device_path): New structure.
20153 (grub_efi_cdrom_device_path_t): New type.
20154 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
20155 (struct grub_efi_vendor_media_device_path): New structure.
20156 (grub_efi_vendor_media_device_path_t): New type.
20157 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
20158 (struct grub_efi_file_path_device_path): New structure.
20159 (grub_efi_file_path_device_path_t): New type.
20160 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
20161 (struct grub_efi_protocol_device_path): New structure.
20162 (grub_efi_protocol_device_path_t): New type.
20163 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
20164 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
20165 (struct grub_efi_bios_device_path): New structure.
20166 (grub_efi_bios_device_path_t): New type.
20167 (struct grub_efi_disk_io): New structure.
20168 (grub_efi_disk_io_t): New type.
20169 (struct grub_efi_block_io_media): New structure.
20170 (grub_efi_block_io_media_t): New type.
20171 (struct grub_efi_block_io): New structure.
20172 (grub_efi_block_io_t): New type.
20173
20174 * include/grub/misc.h (grub_stop): Removed.
20175 (grub_exit): New prototype.
20176 (grub_abort): Likewise.
20177
20178 * include/grub/disk.h (enum grub_disk_dev_id): Added
20179 GRUB_DISK_DEVICE_EFIDISK_ID.
20180
20181 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
20182 disk/efi/efidisk.c.
20183 (kernel_syms.lst): Remove the target if an error occurs.
20184
49986a9f 201852006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
20186
20187 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
20188 as it was simply too buggy.
20189
970d3b8a 201902006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
20191
20192 * kern/misc.c (grub_lltoa): New function.
20193 (grub_vsprintf): Added support for the long long suffix,
20194 i.e. "ll".
20195
ff04ec24 201962006-04-20 Hollis Blanchard <hollis@penguinppc.org>
20197
20198 * Makefile.in (LDFLAGS): Add variable.
20199 (LD): Remove variable.
20200 * configure.ac: Add -m32 to LDFLAGS.
20201 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
20202 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
20203 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
20204 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
20205 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
20206 variables.
20207 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
20208 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
20209 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
20210
37e5e1a4 202112006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
20212
20213 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
20214 length for unknown glyph.
20215
c352d8dd 202162006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
20217
2eab1c0d 20218 Add support for pre-loaded modules into the EFI port.
f19dbdb7 20219
2eab1c0d 20220 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
20221 completely. Accept one more argument DIR. The caller has changed.
20222
20223 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
20224
20225 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
20226 (grub_efi_loaded_image_guid): New variable.
20227 (grub_efi_get_loaded_image): New function.
20228 (grub_arch_modules_addr): Likewise.
20229
20230 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
20231 prototype.
20232
20233 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
20234 (struct grub_efi_loaded_image): New structure.
20235 (grub_efi_loaded_image_t): New type.
20236
202372006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 20238
c352d8dd 20239 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
20240 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
20241 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
20242
6d01d6b4 202432006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
20244
20245 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
20246
976a4ea0 202472006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
20248
20249 * DISTLIST: Added include/grub/efi/console.h,
20250 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
20251 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
20252
20253 * include/grub/efi/console.h: New file.
20254 * include/grub/efi/time.h: Likewise.
20255 * include/grub/i386/efi/kernel.h: Likewise.
20256 * kern/efi/init.c: Likewise.
20257 * kern/efi/mm.c: Likewise.
20258 * term/efi/console.c: Likewise.
f19dbdb7 20259
976a4ea0 20260 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
20261 (grub_stop): Removed.
20262 (grub_get_rtc): Likewise.
20263 (grub_machine_init): Simply call grub_efi_init.
20264 (grub_machine_fini): Call grub_efi_fini.
20265
20266 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
20267 (grub_efi_output_string): Removed.
20268 (grub_efi_stall): New function.
20269 (grub_stop): Likewise.
20270 (grub_get_rtc): Likewise.
20271
20272 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
20273 (grub_efi_stall): New prototype.
20274 (grub_efi_allocate_pages): Likewise.
20275 (grub_efi_free_pages): Likewise.
20276 (grub_efi_get_memory_map): Likewise.
20277 (grub_efi_mm_init): Likewise.
20278 (grub_efi_mm_fini): Likewise.
20279 (grub_efi_init): Likewise.
20280 (grub_efi_fini): Likewise.
20281
20282 * include/grub/i386/efi/time.h: Do not include
20283 grub/symbol.h. Include grub/efi/time.h.
20284 (GRUB_TICKS_PER_SECOND): Removed.
20285 (grub_get_rtc): Likewise.
20286
20287 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
20288 Added padding. The EFI spec is buggy.
20289 (GRUB_EFI_BLACK): New macro.
20290 (GRUB_EFI_BLUE): Likewise.
20291 (GRUB_EFI_GREEN): Likewise.
20292 (GRUB_EFI_CYAN): Likewise.
20293 (GRUB_EFI_RED): Likewise.
20294 (GRUB_EFI_MAGENTA): Likewise.
20295 (GRUB_EFI_BROWN): Likewise.
20296 (GRUB_EFI_LIGHTGRAY): Likewise.
20297 (GRUB_EFI_BRIGHT): Likewise.
20298 (GRUB_EFI_DARKGRAY): Likewise.
20299 (GRUB_EFI_LIGHTBLUE): Likewise.
20300 (GRUB_EFI_LIGHTGREEN): Likewise.
20301 (GRUB_EFI_LIGHTCYAN): Likewise.
20302 (GRUB_EFI_LIGHTRED): Likewise.
20303 (GRUB_EFI_LIGHTMAGENTA): Likewise.
20304 (GRUB_EFI_YELLOW): Likewise.
20305 (GRUB_EFI_WHITE): Likewise.
20306 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
20307 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
20308 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
20309 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
20310 (GRUB_EFI_BACKGROUND_RED): Likewise.
20311 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
20312 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
20313 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
20314 (GRUB_EFI_TEXT_ATTR): Likewise.
20315
20316 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
20317 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
20318 (kernel_mod_HEADERS): Added efi/time.h.
20319
83709125 203202006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
20321
20322 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
20323 include/grub/efi/api.h, include/grub/efi/console_control.h,
20324 include/grub/efi/efi.h, include/grub/efi/pe32.h,
20325 include/grub/i386/efi/time.h, kern/efi/efi.c,
20326 kern/i386/efi/init.c, kern/i386/efi/startup.S,
20327 and util/i386/efi/grub-mkimage.c.
20328
20329 * Makefile.in (RMKFILES): Added i386-efi.rmk.
20330
20331 * genmk.rb (PModule#rule): Do not export symbols if
20332 #{prefix}_EXPORTS is set to "no".
20333
20334 * conf/i386-efi.mk: New file.
20335 * conf/i386-efi.rmk: Likewise.
20336 * include/grub/efi/api.h: Likewise.
20337 * include/grub/efi/console_control.h: Likewise.
20338 * include/grub/efi/efi.h: Likewise.
20339 * include/grub/efi/pe32.h: Likewise.
20340 * include/grub/i386/efi/time.h: Likewise.
20341 * kern/efi/efi.c: Likewise.
20342 * kern/i386/efi/init.c: Likewise.
20343 * kern/i386/efi/startup.S: Likewise.
20344 * util/i386/efi/grub-mkimage.c: Likewise.
20345
203462006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 20347
20348 * include/grub/script.h: Include <grub/parser.h> and
20349 "grub_script.tab.h".
20350 (struct grub_lexer_param): New struct.
20351 (struct grub_parser_param): Likewise.
20352 (grub_script_create_arglist): Pass the state in an argument.
20353 (grub_script_add_arglist): Likewise.
20354 (grub_script_create_cmdline): Likewise.
20355 (grub_script_create_cmdblock): Likewise.
20356 (grub_script_create_cmdif): Likewise.
20357 (grub_script_create_cmdmenu): Likewise.
20358 (grub_script_add_cmd): Likewise.
20359 (grub_script_arg_add): Likewise.
20360 (grub_script_lexer_ref): Likewise.
20361 (grub_script_lexer_deref): Likewise.
20362 (grub_script_lexer_record_start): Likewise.
20363 (grub_script_lexer_record_stop): Likewise.
20364 (grub_script_mem_record): Likewise.
20365 (grub_script_mem_record_stop): Likewise.
20366 (grub_script_malloc): Likewise.
20367 (grub_script_yylex): Likewise.
20368 (grub_script_yyparse): Likewise.
20369 (grub_script_yyerror): Likewise.
20370 (grub_script_yylex): Likewise.
20371 (grub_script_lexer_init): Return the state.
20372
20373 * normal/lexer.c (grub_script_lexer_state): Removed variable.
20374 (grub_script_lexer_done): Likewise.
20375 (grub_script_lexer_getline): Likewise.
20376 (grub_script_lexer_refs): Likewise.
20377 (script): Likewise.
20378 (newscript): Likewise.
20379 (record): Likewise.
20380 (recording): Likewise.
20381 (recordpos): Likewise.
20382 (recordlen): Likewise.
20383 (grub_script_lexer_init): Return the state instead of setting
20384 global variables.
20385 (grub_script_lexer_ref): Use the newly added argument for state
20386 instead of globals.
20387 (grub_script_lexer_deref): Likewise.
20388 (grub_script_lexer_record_start): Likewise.
20389 (grub_script_lexer_record_stop): Likewise.
20390 (recordchar): Likewise.
20391 (nextchar): Likewise.
20392 (grub_script_yylex2): Likewise.
20393 (grub_script_yylex): Likewise.
20394 (grub_script_yyerror): Likewise.
20395
20396 * normal/parser.y (func_mem): Removed variable.
20397 (menu_entry): Likewise.
20398 (err): Likewise.
20399 (%lex-param): New parser option.
20400 (%parse-param): Likewise.
20401 (script): Always return the AST.
20402 (argument): Pass the state around.
20403 (arguments): Likewise.
20404 (grubcmd): Likewise.
20405 (commands): Likewise.
20406 (function): Likewise.
20407 (menuentry): Likewise.
20408 (if_statement): Likewise.
20409 (if): Likewise.
20410
20411 * normal/script.c (grub_script_memused): Removed variable.
20412 (grub_script_parsed): Likewise.
20413 (grub_script_malloc): Added a state argument. Use that instead of
20414 global variables.
20415 (grub_script_mem_record): Likewise.
20416 (grub_script_mem_record_stop): Likewise.
20417 (grub_script_arg_add): Likewise.
20418 (grub_script_add_arglist): Likewise.
20419 (grub_script_create_cmdline): Likewise.
20420 (grub_script_create_cmdif): Likewise.
20421 (grub_script_create_cmdmenu): Likewise.
20422 (grub_script_add_cmd): Likewise.
20423 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 20424
e2a8c904 204252006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 20426
20427 * normal/command.c (grub_command_init): Remove the title command.
20428
20429 * normal/lexer.c (grub_script_yylex): Renamed from this...
20430 (grub_script_yylex2): ... to this.
20431 (grub_script_yylex): New function. Temporary
20432 introduced to filter some tokens.
20433 (grub_script_yyerror): Print a newline.
20434
20435 * normal/main.c (read_config_file): Output information about the
20436 lines that contain errors. Wait for a key after all lines have
20437 been processed. Don't return an empty menu.
20438
20439 * normal/parser.y (func_mem): Don't initialize.
20440 (menu_entry): Likewise.
20441 (err): New variable.
20442 (script): Don't return anything when an error was encountered.
20443 (ws, returns): Removed rules.
20444 (argument): Disabled concatenated variable support.
20445 (arguments): Remove explicit separators.
20446 (grubcmd): Likewise.
20447 (function): Likewise.
20448 (menuentry): Likewise.
20449 (if): Likewise.
20450 (commands): Likewise. Add error handling.
20451
20452 * normal/script.c (grub_script_create_cmdline): If
20453 `grub_script_parsed' is 0, assume the parser encountered an error.
20454
c9a86192 204552006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
20456
20457 * configure.ac: Add support for EFI. Fix the typo
20458 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
20459
70f3b243 204602006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
20461
20462 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
20463 foreign multibyte characters should be shown correctly.
20464
65f201ad 204652006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
20466
20467 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
20468 calculation.
20469 (read_config_file): Made it to close file before returning.
20470
b4b93674 204712006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
20472
20473 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
20474 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
20475 video/i386/pc/vbefill.c.
20476
20477 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
20478 video/i386/pc/vbefill.c.
20479
20480 * include/grub/video.h (grub_video_blit_format): New enum.
20481 (grub_video_mode_info): Added new member blit_format.
20482 (grub_video_get_blit_format): New function prototype.
20483
20484 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
20485 function prototype.
20486 (grub_video_vbe_map_rgb): Likewise.
20487 (grub_video_vbe_unmap_color): Likewise.
20488
20489 * include/grub/i386/pc/vbeblit.h: New file.
20490
20491 * include/grub/i386/pc/vbefill.h: New file.
20492
20493 * video/video.c (grub_video_get_blit_format): New function.
20494 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
20495 (grub_video_vbe_map_rgb): Likewise.
20496 (grub_video_vbe_unmap_color): Likewise.
20497
20498 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
20499 optimized fills.
20500 (grub_video_vbe_blit_render_target): Changed to use more optimized
20501 blits.
20502 (grub_video_vbe_setup): Added detection for optimized settings.
20503 (grub_video_vbe_create_render_target): Likewise.
20504
20505 * video/i386/pc/vbeblit.c: New file.
20506
20507 * video/i386/pc/vbefill.c: New file.
20508
c2379b9c 205092006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
20510
20511 * font/manager.c (grub_font_get_glyph): Removed font fixup from
20512 here...
20513
20514 * util/unifont2pff.rb: ... and moved it to here. Improved argument
20515 parsing to support both hex and dec ranges. If filename was missing
20516 show usage information.
20517
bd0d7896 205182006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
20519
20520 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
20521 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
20522
20523 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
20524 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
20525 (video_mod_SOURCES): Added.
20526 (video_mod_CFLAGS): Likewise.
20527 (video_mod_LDFLAGS): Likewise.
20528 (gfxterm_mod_SOURCES): Likewise.
20529 (gfxterm_mod_CFLAGS): Likewise.
20530 (gfxterm_mod_LDFLAGS): Likewise.
20531 (videotest_mod_SOURCES): Likewise.
20532 (videotest_mod_CFLAGS): Likewise.
20533 (videotest_mod_LDFLAGS): Likewise.
20534 (vesafb_mod_SOURCES): Removed.
20535 (vesafb_mod_CFLAGS): Likewise.
20536 (vesafb_mod_LDFLAGS): Likewise.
20537 (vga_mod_SOURCES): Likewise.
20538 (vga_mod_CFLAGS): Likewise.
20539 (vga_mod_LDFLAGS): Likewise.
20540
20541 * commands/videotest.c: New file.
20542
20543 * font/manager.c (fill_with_default_glyph): Modified to use
20544 grub_font_glyph.
20545 (grub_font_get_glyph): Likewise.
20546 (fontmanager): Renamed from this...
20547 (font_manager): ... to this.
20548
20549 * include/grub/font.h (grub_font_glyph): Added new structure.
20550 (grub_font_get_glyph): Modified to use grub_font_glyph.
20551
20552 * include/grub/misc.h (grub_abs): Added as inline function.
20553
20554 * include/grub/video.h: New file.
20555
20556 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
20557 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
20558 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
20559 (grub_vbe_get_controller_info): Renamed from this...
20560 (grub_vbe_bios_get_controller_info): ... to this.
20561 (grub_vbe_get_mode_info): Renamed from this...
20562 (grub_vbe_bios_get_mode_info): ... to this.
20563 (grub_vbe_set_mode): Renamed from this...
20564 (grub_vbe_bios_set_mode): ... to this.
20565 (grub_vbe_get_mode): Renamed from this...
20566 (grub_vbe_bios_get_mode): ... to this.
20567 (grub_vbe_set_memory_window): Renamed from this...
20568 (grub_vbe_bios_set_memory_window): ... to this.
20569 (grub_vbe_get_memory_window): Renamed from this...
20570 (grub_vbe_bios_get_memory_window): ... to this.
20571 (grub_vbe_set_scanline_length): Renamed from this...
20572 (grub_vbe_set_scanline_length): ... to this.
20573 (grub_vbe_get_scanline_length): Renamed from this...
20574 (grub_vbe_bios_get_scanline_length): ... to this.
20575 (grub_vbe_set_display_start): Renamed from this...
20576 (grub_vbe_bios_set_display_start): ... to this.
20577 (grub_vbe_get_display_start): Renamed from this...
20578 (grub_vbe_bios_get_display_start): ... to this.
20579 (grub_vbe_set_palette_data): Renamed from this...
20580 (grub_vbe_bios_set_palette_data): ... to this.
20581 (grub_vbe_set_pixel_rgb): Removed.
20582 (grub_vbe_set_pixel_index): Likewise.
20583
20584 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
20585 from this...
20586 (grub_vbe_bios_get_controller_info): ... to this.
20587 (grub_vbe_get_mode_info): Renamed from this...
20588 (grub_vbe_bios_get_mode_info): ... to this.
20589 (grub_vbe_set_mode): Renamed from this...
20590 (grub_vbe_bios_set_mode): ... to this.
20591 (grub_vbe_get_mode): Renamed from this...
20592 (grub_vbe_bios_get_mode): ... to this.
20593 (grub_vbe_set_memory_window): Renamed from this...
20594 (grub_vbe_bios_set_memory_window): ... to this.
20595 (grub_vbe_get_memory_window): Renamed from this...
20596 (grub_vbe_bios_get_memory_window): ... to this.
20597 (grub_vbe_set_scanline_length): Renamed from this...
20598 (grub_vbe_set_scanline_length): ... to this.
20599 (grub_vbe_get_scanline_length): Renamed from this...
20600 (grub_vbe_bios_get_scanline_length): ... to this.
20601 (grub_vbe_set_display_start): Renamed from this...
20602 (grub_vbe_bios_set_display_start): ... to this.
20603 (grub_vbe_get_display_start): Renamed from this...
20604 (grub_vbe_bios_get_display_start): ... to this.
20605 (grub_vbe_set_palette_data): Renamed from this...
20606 (grub_vbe_bios_set_palette_data): ... to this.
20607 (grub_vbe_bios_get_controller_info): Fixed problem with registers
20608 getting corrupted after calling it. Added more pushes and pops.
20609 (grub_vbe_bios_set_mode): Likewise.
20610 (grub_vbe_bios_get_mode): Likewise.
20611 (grub_vbe_bios_get_memory_window): Likewise.
20612 (grub_vbe_bios_set_scanline_length): Likewise.
20613 (grub_vbe_bios_get_scanline_length): Likewise.
20614 (grub_vbe_bios_get_display_start): Likewise.
20615 (grub_vbe_bios_set_palette_data): Likewise.
20616
20617 * normal/cmdline.c (cl_set_pos): Refresh the screen.
20618 (cl_insert): Likewise.
20619 (cl_delete): Likewise.
20620
20621 * term/gfxterm.c: New file.
20622
20623 * term/i386/pc/vesafb.c: Removed file.
20624
20625 * video/video.c: New file.
20626
20627 * video/i386/pc/vbe.c (real2pm): Added new function.
20628 (grub_video_vbe_draw_pixel): Likewise.
20629 (grub_video_vbe_get_video_ptr): Likewise.
20630 (grub_video_vbe_get_pixel): Likewise
20631 (grub_video_vbe_init): Likewise.
20632 (grub_video_vbe_fini): Likewise.
20633 (grub_video_vbe_setup): Likewise.
20634 (grub_video_vbe_get_info): Likewise.
20635 (grub_video_vbe_set_palette): Likewise.
20636 (grub_video_vbe_get_palette): Likewise.
20637 (grub_video_vbe_set_viewport): Likewise.
20638 (grub_video_vbe_get_viewport): Likewise.
20639 (grub_video_vbe_map_color): Likewise.
20640 (grub_video_vbe_map_rgb): Likewise.
20641 (grub_video_vbe_map_rgba): Likewise.
20642 (grub_video_vbe_unmap_color): Likewise.
20643 (grub_video_vbe_fill_rect): Likewise.
20644 (grub_video_vbe_blit_glyph): Likewise.
20645 (grub_video_vbe_blit_bitmap): Likewise.
20646 (grub_video_vbe_blit_render_target): Likewise.
20647 (grub_video_vbe_scroll): Likewise.
20648 (grub_video_vbe_swap_buffers): Likewise.
20649 (grub_video_vbe_create_render_target): Likewise.
20650 (grub_video_vbe_delete_render_target): Likewise.
20651 (grub_video_vbe_set_active_render_target): Likewise.
20652 (grub_vbe_set_pixel_rgb): Remove function.
20653 (grub_vbe_set_pixel_index): Likewise.
20654 (index_color_mode): Remove static variable.
20655 (active_mode): Likewise.
20656 (framebuffer): Likewise.
20657 (bytes_per_scan_line): Likewise.
20658 (grub_video_vbe_adapter): Added new static variable.
20659 (framebuffer): Likewise.
20660 (render_target): Likewise.
20661 (initial_mode): Likewise.
20662 (mode_in_use): Likewise.
20663 (mode_list): Likewise.
20664
5f97350b 206652006-03-10 Marco Gerards <marco@gnu.org>
20666
20667 * configure.ac (AC_INIT): Bumped to 1.93.
20668
20669 * DISTLIST: Added `include/grub/hfs.h'.
20670
a3c5c6f8 206712006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
20672
20673 * boot/i386/pc/boot.S (general_error): Before looping, try INT
20674 18H, which might help the BIOS falling back to next boot media.
20675
6de53d26 206762006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
20677
20678 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
20679 Poe Chen <poe.poechen@gmail.com>.
20680
77c4a393 206812006-01-17 Marco Gerards <marco@gnu.org>
20682
20683 * include/grub/normal.h: Include <grub/script.h>.
20684 (grub_command_list): Removed struct.
20685 (grub_command_list_t): Removed type.
20686 (grub_menu_entry): Remove members `num' and `command_list'. Add
20687 members `commands' and `sourcecode'.
20688 * include/grub/script.h: Add inclusion guards.
20689 (grub_script_cmd_menuentry): New struct.
20690 (grub_script_execute_menuentry): New prototype.
20691 (grub_script_lexer_record_start): Likewise.
20692 (grub_script_lexer_record_stop): Likewise.
20693 * normal/execute.c (grub_script_execute_menuentry): New function.
20694 * normal/lexer.c (record, recording, recordpos, recordlen): New
20695 variables.
20696 (grub_script_lexer_record_start): New function.
20697 (grub_script_lexer_record_stop): Likewise.
20698 (recordchar): Likewise.
20699 (nextchar): Likewise.
20700 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
20701 2048 as the buffer size. Add the tokens `menuentry' and `@'.
20702 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
20703 (current_menu): New variable.
20704 (free_menu): Mainly rewritten.
20705 (grub_normal_menu_addentry): New function.
20706 (read_config_file): Rewritten.
20707 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 20708 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 20709 the menu entry.
20710 (run): Mainly rewritten.
20711 * normal/parser.y (menu_entry): New variable.
20712 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
20713 (menuentry): New rule.
20714 (command): Add `menuentry'.
20715 (if_statement): Allow additional returns before `fi'.
20716 * normal/script.c (grub_script_create_cmdmenu): New function.
20717
144f1f98 207182006-01-03 Marco Gerards <marco@gnu.org>
20719
20720 * INSTALL: GNU Bison is required.
20721 * configure.ac: Rewritten the test to detect Bison.
20722 * Makefile.in (YACC): New variable. Reported by Xun Sun
20723 <xun.sun.cn@gmail.com>.
20724
af4b2d89 207252006-01-03 Marco Gerards <marco@gnu.org>
20726
20727 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
20728 the HFS+ filesystem to filesystem blocks.
20729 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
20730 GCC warning is silenced.
20731
15643b71 207322006-01-03 Marco Gerards <marco@gnu.org>
20733
20734 * partmap/apple.c (apple_partition_map_iterate): Convert the data
20735 read from disk from big endian to host byte order.
20736
00905879 207372006-01-03 Hollis Blanchard <hollis@penguinppc.org>
20738
20739 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
20740 documentation.
20741 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
20742 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
20743 embedded HFS+ filesystem.
20744 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
20745 (grub_hfs_sblock): Move from here...
20746 * include/grub/hfs.h: To here... New file.
20747 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
20748 documentation.
20749 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
20750 New macros.
20751 (grub_hfsplus_volheader): Change type of member `magic' to
20752 `grub_uint16_t'.
20753 (grub_hfsplus_data): Add new member `embedded_offset'.
20754 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
20755 returned block.
20756 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
20757 Calculate the offset.
20758
8899bc3e 207592005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
20760
20761 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
20762 Removed.
20763 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
20764
ae8c0277 207652005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
20766
20767 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
20768 ENV->NAME is NULL after allocating ENV->VALUE.
20769
07084456 207702005-12-25 Marco Gerards <marco@gnu.org>
20771
20772 * kern/env.c (grub_env_set): Rewritten the error handling code.
20773
4750f5f1 207742005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
20775
20776 * geninit.sh: Made more robust, and more portable.
20777
50214199 207782005-12-25 Marco Gerards <marco@gnu.org>
20779
20780 Add support for Apple HFS+ filesystems.
f19dbdb7 20781
50214199 20782 * fs/hfsplus.c: New file.
20783
20784 * DISTLIST: Added `fs/hfsplus.c'.
20785
20786 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
20787 (hfsplus_mod_SOURCES): New variable.
20788 (hfsplus_mod_CFLAGS): Likewise.
20789 (hfsplus_mod_LDFLAGS): Likewise.
20790 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
20791 (grub_setup_SOURCES): Likewise.
20792 (grub_mkdevicemap_SOURCES): Likewise.
20793 (grub_emu_SOURCES): Likewise.
20794 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20795
20796 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
20797
20798 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
20799
befaed6c 208002005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
20801
20802 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
20803 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
20804 include/grub/parser.h, include/grub/script.h, kern/parser.c,
20805 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
20806 normal/lexer.c, normal/parser.y, normal/script.c, and
20807 partmap/gpt.c.
20808 Removed kern/sparc64/cache.c.
20809
20810 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
20811 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
20812 grub_emu_init.c.
20813
20814 * configure.ac (AC_INIT): Bumped to 1.92.
20815
6a124103 208162005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
20817
20818 * kern/err.c (grub_error_push): Added new function to support error
20819 stacks.
20820 (grub_error_pop): Likewise.
20821 (grub_error_stack_items): New local variable to support error stacks.
20822 (grub_error_stack_pos): Likewise.
20823 (grub_error_stack_assert): Likewise.
20824 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
20825 stack depth.
20826 (grub_print_error): Added support to print errors from error stack.
20827
20828 * include/grub/err.h (grub_error_push): Added function prototype.
20829 (grub_error_pop): Likewise.
20830
be973c1b 208312005-12-09 Hollis Blanchard <hollis@penguinppc.org>
20832
20833 * configure.ac: Accept `powerpc64' as host_cpu.
20834 (amd64): Rename to `biarch32'.
20835
20836 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
20837 non-cacheline-aligned addresses.
20838
20839 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
20840 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
20841 if `size' is non-zero.
20842
b04216ab 208432005-12-03 Marco Gerards <mgerards@xs4all.nl>
20844
20845 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
20846 and `cd' to make sure the filename is not prefixed with a
20847 directory name.
20848 (pkgdata_MODULES): Add `gpt.mod'.
20849 (gpt_mod_SOURCES): New variable.
20850 (gpt_mod_CFLAGS): Likewise.
20851 (gpt_mod_LDFLAGS): Likewise.
20852
20853 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
20854
20855 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
20856 New macro.
20857
20858 * partmap/gpt.c: New file.
20859
20860 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
20861 GPT partition map is detected.
20862
41730ed9 208632005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
20864
20865 * commands/i386/pc/play.c: New file.
20866 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
20867 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
20868 macros.
f19dbdb7 20869
95dc3643 208702005-11-27 Marco Gerards <mgerards@xs4all.nl>
20871
20872 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
20873 ((unused))' to silence gcc warning.
20874
1569ec51 208752005-11-26 Hollis Blanchard <hollis@penguinppc.org>
20876
20877 * configure.ac: Correct `AC_PROG_YACC' test.
20878
9abde152 208792005-11-22 Hollis Blanchard <hollis@penguinppc.org>
20880
20881 * util/powerpc/ieee1275/grub-install.in: Run the mount point
20882 check before installing files.
20883
44b83271 208842005-11-22 Mike Small <smallm@panix.com>
20885
20886 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
20887 number regex so multidigit numbers are recognized correctly.
20888
208892005-11-22 Mike Small <smallm@panix.com>
20890
20891 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
20892 debugging message before attempting to claim memory.
20893 (grub_rescue_cmd_initrd): Add a claim debugging message and try
20894 multiple addresses in case of failure.
20895
9c12956b 208962005-11-22 Hollis Blanchard <hollis@penguinppc.org>
20897
20898 * term/tparm.c (get_space): Remove empty `if' statement.
20899
20900 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
20901
20902 * kern/parser.c (check_varstate): Rename `state' to 's'.
20903
aeaf81d9 209042005-11-22 Hollis Blanchard <hollis@penguinppc.org>
20905
20906 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
20907 variable definitions to the beginning of each function. Sort stack
20908 variables by size.
20909 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
20910 `buf' argument to `char *'.
20911
79bbb63f 209122005-11-22 Hollis Blanchard <hollis@penguinppc.org>
20913
20914 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
20915 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 20916 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 20917 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
20918 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
20919 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
20920 configfile.mod, search.mod, gzio.mod and test.mod.
20921 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
20922 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
20923 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
20924 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
20925 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
20926 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
20927 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
20928 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
20929 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
20930 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
20931 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
20932 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
20933 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
20934 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
20935 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
20936 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
20937 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
20938 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
20939 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
20940 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
20941 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
20942 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
20943 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
20944
20945 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
20946 `grep --include'.
20947 (pkgdata_MODULES): Add test.mod.
20948
233b1628 209492005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
20950
20951 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
20952 appending to variables with "+=".
20953 (PModule): Use full pathname to generate *.lst filenames.
20954
20955 * Makefile.in: Fixed list rules moved from genmk.rb.
20956 (.DELETE_ON_ERROR): New special target.
20957 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
20958
20959 * conf/i386-pc.rmk: Include conf/common.mk.
20960 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 20961 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 20962 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
20963 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
20964 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
20965 configfile.mod, search.mod, gzio.mod and test.mod.
20966 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
20967 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
20968 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
20969 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
20970 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
20971 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
20972 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
20973 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
20974 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
20975 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
20976 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
20977 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
20978 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
20979 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
20980 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
20981 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
20982 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
20983 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
20984 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
20985 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
20986 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
20987 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
20988 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
20989 here...
20990 * conf/common.rmk: ... to here. New file.
20991
20992 * conf/common.mk: New file.
20993
16f820c8 209942005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
20995
20996 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
20997 (grub_script.tab.c): ... here.
20998
20999 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
21000 (grub_script.tab.c): ... here.
21001
21002 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
21003 (grub_script.tab.c): ... here.
21004
21005 * normal/command.c (grub_command_find): Fixed a memory leak of
21006 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
21007
63ba1554 210082005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
21009
21010 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
21011 "@" which marks the start of a comment on ARM.
21012 (VARIABLE): Likewise.
21013
7f67dc13 210142005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
21015
79bbb63f 21016 Add support for Linux/ADFS partition tables.
7f67dc13 21017
21018 * partmap/acorn.c: New file.
21019
21020 * include/grub/acorn_filecore.h: Likewise.
21021
21022 * DISTLIST: Added `partmap/acorn.c' and
21023 `include/grub/acorn_filecore.h'.
f19dbdb7 21024
7f67dc13 21025 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
21026 `partmap/acorn.c'.
21027 (pkgdata_MODULES): Add `acorn.mod'.
21028 (acorn_mod_SOURCES): New variable.
21029 (acorn_mod_CFLAGS): Likewise.
21030
21031 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
21032 `partmap/acorn.c'.
21033 (pkgdata_MODULES): Add `acorn.mod'.
21034 (acorn_mod_SOURCES): New variable.
21035 (acorn_mod_CFLAGS): Likewise.
21036
21037 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
21038 (pkgdata_MODULES): Add `acorn.mod'.
21039 (acorn_mod_SOURCES): New variable.
21040 (acorn_mod_CFLAGS): Likewise.
21041 (acorn_mod_LDFLAGS): Likewise.
21042
21043 * include/types.h (grub_disk_addr_t): New typedef.
21044
6d099807 210452005-11-13 Marco Gerards <mgerards@xs4all.nl>
21046
21047 * geninit.sh: New file.
21048
21049 * geninitheader.sh: Likewise.
21050
21051 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
21052 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
21053 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
21054 * commands/configfile.c (grub_configfile_init)
21055 (grub_configfile_fini): Likewise.
21056 * commands/default.c (grub_default_init, grub_default_fini):
21057 Likewise.
21058 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
21059 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
21060 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
21061 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
21062 Likewise.
21063 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
21064 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
21065 Likewise.
21066 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 21067 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 21068 Likewise.
21069 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
21070 Likewise.
fe6b695a 21071 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 21072 Likewise.
21073 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
21074 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
21075 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
21076 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
21077 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
21078 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
21079 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
21080 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
21081 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
21082 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
21083 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
21084 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
21085 * partmap/amiga.c (grub_amiga_partition_map_init)
21086 (grub_amiga_partition_map_fini): Likewise.
21087 * partmap/apple.c (grub_apple_partition_map_init)
21088 (grub_apple_partition_map_fini): Likewise.
21089 * partmap/pc.c (grub_pc_partition_map_init)
21090 (grub_pc_partition_map_fini): Likewise.
21091 * partmap/sun.c (grub_sun_partition_map_init,
21092 grub_sun_partition_map_fini): Likewise.
21093 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
21094 Likewise.
21095
21096 * util/grub-emu.c: Include <grub_modules_init.h>.
21097 (main): Don't initialize and de-initialize any modules directly,
21098 use `grub_init_all' and `grub_fini_all' instead.
21099
21100 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
21101 `grub_vesafb_mod_init'.
21102 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
21103 all users.
21104 * term/i386/pc/vga.c (grub_vga_init): Renamed to
21105 `grub_vga_mod_init'. Updated all users.
21106 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 21107
6d099807 21108 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
21109 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
21110 rules.
21111
21112 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
21113 Generate a function to initialize the module in utilities.
21114 Updated all callers.
21115 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
21116 initialize the module in utilities. Updated all callers.
21117
9046bcf0 211182005-11-09 Hollis Blanchard <hollis@penguinppc.org>
21119
21120 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
21121 escape sequence and a literal ^L to clear the screen.
21122
21123 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
21124 when returning from Open Firmware.
21125
d13ea639 211262005-11-09 Hollis Blanchard <hollis@penguinppc.org>
21127
21128 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
21129 (grub_ofconsole_height): Likewise.
21130 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
21131 manually insert a '\n'.
21132 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
21133 `grub_ofconsole_height'. Return early if these are already set.
21134
a8fcf206 211352005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
21136
21137 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
21138 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
21139 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
21140 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
21141 and `normal/script.c'.
21142 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
21143 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
21144 (test_mod_SOURCES): New variable.
21145 (test_mod_CFLAGS): Likewise.
21146 (test_mod_LDFLAGS): Likewise.
21147 (pkgdata_MODULES): Add `test.mod'.
21148 (grub_script.tab.c): New rule.
21149 (grub_script.tab.h): Likewise.
21150
b6b32745 211512005-11-07 Marco Gerards <mgerards@xs4all.nl>
21152
21153 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
21154 `commands/test.c', `normal/execute.c', `normal/lexer.c',
21155 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
21156 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
21157 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
21158 (test_mod_SOURCES): New variable.
21159 (test_mod_CFLAGS): Likewise.
21160 (pkgdata_MODULES): Add `test.mod'.
21161 (grub_script.tab.c): New rule.
21162 (grub_script.tab.h): Likewise.
21163
daac212a 211642005-11-06 Marco Gerards <mgerards@xs4all.nl>
21165
21166 Add initial scripting support.
21167
21168 * commands/test.c: New file.
21169 * include/grub/script.h: Likewise.
21170 * normal/execute.c: Likewise.
21171 * normal/function.c: Likewise.
21172 * normal/lexer.c: Likewise.
21173 * normal/parser.y: Likewise.
21174 * normal/script.c: Likewise.
21175
21176 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 21177
daac212a 21178 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
21179 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
21180 `normal/function.c' and `normal/script.c'.
21181 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
21182 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 21183 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
21184 variables.
daac212a 21185 (pkgdata_MODULES): Add `test.mod'.
21186 (grub_script.tab.c): New rule.
21187 (grub_script.tab.h): Likewise.
21188
21189 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
21190
21191 * include/grub/normal.h (grub_test_init): New prototype.
21192 (grub_test_fini): Likewise.
f19dbdb7 21193
daac212a 21194 * normal/command.c: Include <grub/script.h>.
21195 (grub_command_execute): Rewritten.
f19dbdb7 21196
daac212a 21197 * util/grub-emu.c (main): Call `grub_test_init' and
21198 `grub_test_fini'.
21199
77500b2b 212002005-11-03 Hollis Blanchard <hollis@penguinppc.org>
21201
21202 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
21203 to 0.
21204 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
21205 there are no pending characters.
21206
e45deb9e 212072005-11-03 Hollis Blanchard <hollis@penguinppc.org>
21208
21209 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
21210 `grub_strndup' to drop device arguments. Replace unnecessary
21211 `grub_strndup' with `grub_strdup'.
21212
4ce32619 212132005-11-03 Hollis Blanchard <hollis@penguinppc.org>
21214
21215 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
21216 `debug' environment variable has been set.
21217
212182005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 21219
4ce32619 21220 * Makefile.in (install-local): Use $(DATA).
21221 (uninstall): Likewise.
21222 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
21223 (sbin_UTILITIES): ... to here.
21224 (sbin_SCRIPTS): New variable.
21225 (grub_install_SOURCES): New variable.
21226 * util/powerpc/ieee1275/grub-install.in: New file.
21227 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
21228 variable.
21229 (add_segments): Call `grub_util_get_path'.
21230
25fe6f03 212312005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
21232
21233 From Timothy Baldwin:
21234 * commands/ls.c (grub_ls_list_files): Close FILE with
21235 grub_file_close.
21236 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
21237
04ccf3ec 212382005-10-24 Marco Gerards <mgerards@xs4all.nl>
21239
21240 * include/grub/parser.h: New file.
21241
21242 * kern/parser.c: Likewise.
21243
21244 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
21245 (grub_setup_SOURCES): Likewise.
21246 (grub_probefs_SOURCES): Likewise.
21247 (grub_emu_SOURCES): Likewise.
21248 (kernel_img_HEADERS): Add `parser.h'.
21249
21250 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
21251 (grub_emu_SOURCES): Add `kern/parser.c'.
21252 (grubof_SOURCES): Likewise.
21253
21254 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
21255 (grubof_SOURCES): Add `kern/parser.c'.
21256
21257 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
21258
21259 * kern/misc.c (grub_split_cmdline): Removed function.
21260
21261 * kern/rescue.c: Include <grub/parser.h>.
21262 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
21263 of `grub_split_cmdline'.
21264
21265 * normal/command.c: Include <grub/parser.h>.
21266 (grub_command_execute): Use `grub_parser_split_cmdline' instead
21267 of `grub_split_cmdline'.
21268
21269 * normal/completion.c: Include <grub/parser.h>.
21270 (cmdline_state): New variable.
21271 (iterate_dir): End the filename with a quote depending on the
21272 command line state.
21273 (get_state): new function.
21274 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
21275 split the arguments and determine the current argument. When the
21276 argument string is not quoted, escape all spaces.
21277
6d8f4b0e 212782005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
21279
21280 * normal/sparc64/setjmp.S: New file.
21281
15cf03ed 212822005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
21283
21284 * include/grub/sparc64/libgcc.h: New file.
21285 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
21286 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
21287 normal/sparc64/setjmp.c.
21288
03e8661a 212892005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
21290
21291 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
21292 * kern/sparc64/cache.S: New file.
21293 * kern/sparc64/cache.c: Removed.
21294 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
21295 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
21296 -mtune=ultrasparc.
21297 (COMMON_LDFLAGS): Add -melf64_sparc.
21298 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
21299 (grubof_SOURCES): Use cache.S instead of cache.c.
21300 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
21301 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
21302 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
21303 commented though.
21304 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
21305 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
21306 (linux_mod_CFLAGS): Commented out.
21307 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
21308 out because module isn't built.
21309 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
21310 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
21311 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
21312 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
21313 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
21314 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
21315 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
21316 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
21317 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
21318 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
21319 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
21320 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
21321 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
21322 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
21323
34eeec8a 213242005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
21325
21326 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
21327 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
21328 longer, because HFS should not be used on PC.
21329
708367a3 213302005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
21331
21332 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
21333 consistently within the loop.
21334
6fa1251a 213352005-10-15 Marco Gerards <mgerards@xs4all.nl>
21336
21337 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
21338 directory can not be read.
21339
4801580b 213402005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
21341
21342 * configure.ac (AC_INIT): Increase the version number to 1.91.
21343
21344 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
21345 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
21346 term/i386/pc/serial.c.
21347
219ad426 213482005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
21349
21350 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
21351 file size must be permitted.
21352
21353 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
21354 between %ah and %al.
21355
688e5699 213562005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
21357
21358 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
21359 grub_uint64_t.
21360 Call the hook with a NUL-terminated filename.
21361 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
21362 grub_cpu_to_be32.
21363
21364 * kern/term.c (cursor_state): New variable.
21365 (grub_term_set_current): Reset the cursor state on a new
21366 terminal.
21367 (grub_setcursor): Rewritten to use CURSOR_STATE.
21368 (grub_getcursor): New function.
21369
21370 * include/grub/term.h (grub_getcursor): New prototype.
21371
21372 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
21373 integers on ARM. Reported by Timothy Baldwin
21374 <T.E.Baldwin99@members.leeds.ac.uk>.
21375
bb34586c 213762005-10-11 Marco Gerards <mgerards@xs4all.nl>
21377
21378 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
21379 allocated.
21380 (grub_sfs_dir): Likewise.
21381
9a909877 213822005-10-09 Marco Gerards <mgerards@xs4all.nl>
21383
21384 Add support for the SFS filesystem.
21385
21386 * fs/sfs.c: New file.
21387
21388 * DISTLIST: Added `fs/sfs.c'.
21389
21390 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
21391 (grub_probefs_SOURCES): Likewise.
21392 (grub_emu_SOURCES): Likewise.
21393 (pkgdata_MODULES): Add `sfs.mod'.
21394 (sfs_mod_SOURCES): New variable.
21395 (sfs_mod_CFLAGS): Likewise.
21396 (sfs_mod_LDFLAGS): Likewise.
21397
21398 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
21399 (pkgdata_MODULES): Add `sfs.mod'.
21400 (sfs_mod_SOURCES): New variable.
21401 (sfs_mod_CFLAGS): Likewise.
21402
21403 * util/grub-emu.c (main): Call `grub_sfs_init' and
21404 `grub_sfs_fini'.
21405
21406 * include/grub/fs.h (grub_sfs_init): New prototype.
21407 (grub_sfs_fini): Likewise.
21408
57bdbde3 214092005-10-07 Marco Gerards <mgerards@xs4all.nl>
21410
21411 Add support for the AFFS filesystem.
21412
21413 * fs/affs.c: New file.
21414
21415 * DISTLIST: Added `fs/affs.c'.
21416
21417 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
21418 (grub_probefs_SOURCES): Likewise.
21419 (grub_emu_SOURCES): Likewise.
21420 (pkgdata_MODULES): Add `affs.mod'.
21421 (affs_mod_SOURCES): New variable.
21422 (affs_mod_CFLAGS): Likewise.
21423 (affs_mod_LDFLAGS): Likewise.
21424
21425 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
21426 (pkgdata_MODULES): Add `affs.mod'.
21427 (affs_mod_SOURCES): New variable.
21428 (affs_mod_CFLAGS): Likewise.
21429
21430 * util/grub-emu.c (main): Call `grub_affs_init' and
21431 `grub_affs_fini'.
21432
21433 * include/grub/fs.h (grub_affs_init): New prototype.
21434 (grub_affs_fini): Likewise.
21435
047b67e0 214362005-10-01 Marco Gerards <mgerards@xs4all.nl>
21437
21438 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
21439
59b8208a 214402005-10-01 Marco Gerards <mgerards@xs4all.nl>
21441
21442 * configure.ac: Accept `x86_64' as host_cpu. In that case add
21443 `-m32' to CFLAGS.
21444
21445 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
21446 linking.
f19dbdb7 21447
59b8208a 21448 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
21449 (COMMON_LDFLAGS): New variable.
21450 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
21451 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
21452 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
21453 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
21454 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
21455 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
21456 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
21457 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
21458 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
21459 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
21460 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
21461 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
21462 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
21463 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
21464 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
21465 variables.
21466 (normal_mod_ASFLAGS): Add `-m32'.
21467
21468 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
21469 (grub_host_size_t, grub_host_ssize_t): New types.
21470 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 21471 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 21472 `GRUB_HOST_SIZEOF_VOID_P'.
21473
21474 * include/grub/kernel.h (struct grub_module_header): Type of
21475 member offset changed to `grub_host_off_t'. Type of member size
21476 changed to `grub_host_size_t'.
21477 (struct grub_module_info): Type of member offset changed to
21478 `grub_host_off_t'. Type of member size changed to
21479 `grub_host_size_t'.
21480
b4093103 214812005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
21482
21483 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 21484
b4093103 21485 * kern/i386/pc/startup.S (multiboot_header): New label.
21486 (multiboot_entry): Likewise.
21487 (multiboot_trampoline): Likewise.
21488
21489 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
21490 Increased to 0x4A0.
21491
21492 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
21493 put parentheses after a question mark.
21494 [!GRUB_UTIL] (my_mod): New variable.
21495
21496 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
21497
b2499b29 214982005-09-28 Marco Gerards <mgerards@xs4all.nl>
21499
21500 Adds support for the XFS filesystem. Btrees are not supported
21501 yet.
21502
21503 * fs/xfs.c: New file.
21504
21505 * DISTLIST: Added `fs/xfs.c'.
21506
21507 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
21508 (grub_probefs_SOURCES): Likewise.
21509 (grub_emu_SOURCES): Likewise.
21510 (pkgdata_MODULES): Add `xfs.mod'.
21511 (xfs_mod_SOURCES): New variable.
21512 (xfs_mod_CFLAGS): Likewise.
21513
21514 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
21515 (pkgdata_MODULES): Add `xfs.mod'.
21516 (xfs_mod_SOURCES): New variable.
21517 (xfs_mod_CFLAGS): Likewise.
21518
21519 * util/grub-emu.c (main): Call `grub_xfs_init' and
21520 `grub_xfs_fini'.
21521
21522 * include/grub/fs.h (grub_xfs_init): New prototype.
21523 (grub_xfs_fini): Likewise.
21524
f19dbdb7 21525
83d37a62 215262005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
21527
21528 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
21529 color modes, allow greater than 16 colors to be configured as
21530 a default palette.
21531
47d2d65e 215322005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
21533
21534 * normal/completion.c (complete_arguments): Add the qualifier
21535 const into OPTIONS.
21536
21537 From Omniflux <omniflux+lists@omniflux.com>:
21538 * include/grub/terminfo.h: New file.
21539 * include/grub/tparm.h: Likewise.
21540 * include/grub/i386/pc/serial.h: Likewise.
21541 * term/terminfo.c: Likewise.
21542 * term/tparm.c: Likewise.
21543 * term/i386/pc/serial.c: Likewise.
21544 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
21545 serial.mod.
21546 (terminfo_mod_SOURCES): New variable.
21547 (terminfo_mod_CFLAGS): Likewise.
21548 (serial_mod_SOURCES): Likewise.
21549 (serial_mod_CFLAGS): Likewise.
21550
48b671ff 215512005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
21552
21553 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
21554 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
21555 and kern/powerpc/ieee1275/cmain.c, respectively.
21556
21557 * boot/powerpc/ieee1275/crt0.S: Moved to ...
21558 * kern/powerpc/ieee1275/crt0.S: ... here.
21559
21560 * boot/powerpc/ieee1275/cmain.c: Moved to ...
21561 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 21562
48b671ff 21563 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
21564 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
21565 instead of boot/powerpc/ieee1275/crt0.S and
21566 boot/powerpc/ieee1275/cmain.c, respectively.
21567
21568 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
21569 sectors. It was not used anyway.
21570
09fc77a7 215712005-08-30 Hollis Blanchard <hollis@penguinppc.org>
21572
21573 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
21574 `unused parameter' warning.
21575
003789c7 215762005-08-30 Hollis Blanchard <hollis@penguinppc.org>
21577
21578 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
21579 function.
21580 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
21581 getcharwidth.
21582
67f44c86 215832005-08-28 Marco Gerards <metgerards@student.han.nl>
21584
21585 * include/grub/normal.h (enum grub_completion_type): Added
21586 `GRUB_COMPLETION_TYPE_ARGUMENT'.
21587
21588 * normal/cmdline.c (print_completion): Handle
21589 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
21590 * normal/menu_entry.c (store_completion): Likewise.
21591
21592 * normal/completion.c (complete_arguments): New function.
21593 (grub_normal_do_completion): Call `complete_arguments' when the
21594 current words start with a dash.
21595
0b5abe02 215962005-08-27 Marco Gerards <metgerards@student.han.nl>
21597
21598 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
21599 `gzio.mod' instead of `io.mod').
21600
d9864ee1 216012005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
21602
21603 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
21604 (DISTDIRS): Added io and video.
21605 Rewrite the search routine to make an output consistently.
21606
21607 * DISTLIST: Added conf/sparc64-ieee1275.mk,
21608 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
21609 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
21610 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
21611 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
21612 util/powerpc/ieee1275/misc.c.
f19dbdb7 21613
d9864ee1 21614 * include/grub/gzio.h: New file.
21615 * io/gzio.c: Likewise.
f19dbdb7 21616
d9864ee1 21617 * kern/file.c (grub_file_close): Call grub_device_close only if
21618 FILE->DEVICE is not NULL.
21619
21620 * include/grub/mm.h [!NULL] (NULL): New macro.
21621
21622 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
21623
21624 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
21625 (pkgdata_MODULES): Added gzio.mod.
21626 (gzio_mod_SOURCES): New variable.
21627 (gzio_mod_CFLAGS): Likewise.
21628
21629 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
21630 (pkgdata_MODULES): Added gzio.mod.
21631 (gzio_mod_SOURCES): New variable.
21632 (gzio_mod_CFLAGS): Likewise.
21633
21634 * commands/cat.c: Include grub/gzio.h.
21635 (grub_cmd_cat): Use grub_gzfile_open instead of
21636 grub_file_open.
f19dbdb7 21637
d9864ee1 21638 * commands/cmp.c: Include grub/gzio.h.
21639 (grub_cmd_cmp): Use grub_gzfile_open instead of
21640 grub_file_open.
21641
21642 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
21643 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
21644 grub_file_open.
21645 (grub_rescue_cmd_module): Likewise.
21646
fa46f4b5 216472005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
21648
21649 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
21650 kern/sparc64/ieee1275/init.c because it contains _start.
21651 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
21652
e9211b5d 216532005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
21654
21655 * configure.ac: Add support for sparc64 host with ieee1275
21656 firmware.
21657 * configure: Generated from configure.ac.
21658 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
21659 instead of int.
21660 (grub_ofdisk_read): Likewise.
21661 (grub_ofdisk_open): Use %p to print pointer values, and cast the
21662 pointers as (void *) to remove a warning.
21663 (grub_ofdisk_close): Likewise.
21664 (grub_ofdisk_read): Likewise.
21665 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
21666 returns, so make it return void to remove a warning.
21667 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
21668 Corresponding prototype change.
21669 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
21670 values, and cast the pointers as (void *) to remove a warning.
21671 (grub_mm_dump): Likewise.
21672 * conf/sparc64-ieee1275.mk: New file.
21673 * conf/sparc64-ieee1275.rmk: Likewise.
21674 * include/grub/sparc64/setjmp.h: Likewise.
21675 * include/grub/sparc64/types.h: Likewise.
21676 * include/grub/sparc64/ieee1275/console.h: Likewise.
21677 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
21678 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21679 * include/grub/sparc64/ieee1275/time.h: Likewise.
21680 * kern/sparc64/cache.c: Likewise.
21681 * kern/sparc64/dl.c: Likewise.
21682 * kern/sparc64/ieee1275/init.c: Likewise.
21683 * kern/sparc64/ieee1275/openfw.c: Likewise.
21684
385c6a92 216852005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
21686
21687 * util/console.c (grub_ncurses_putchar): If C is greater than
21688 0x7f, set C to a question mark.
21689 (grub_ncurses_getcharwidth): New function.
21690 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
21691 getcharwidth.
21692
21693 * normal/menu.c (print_entry): Made aware of Unicode. First,
21694 convert TITLE to UCS-4, and predict the cursor position by
21695 grub_getcharwidth.
21696
21697 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
21698 const to SRC.
21699 * kern/misc.c (grub_utf16_to_utf8): Likewise.
21700
16ccb8b1 217012005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
21702
21703 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
21704 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
21705 grub_strcat.
21706
21707 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
21708 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
21709 grub_strcpy and grub_strlen. Take it into account that a space
21710 character is inserted as a delimiter.
21711
6a85ce79 217122005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
21713
21714 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 21715 invalid magic in the error.
6a85ce79 21716
21717 * commands/search.c: New file.
f19dbdb7 21718
6a85ce79 21719 * util/grub-emu.c (main): Call grub_search_init and
21720 grub_search_fini.
21721
21722 * kern/rescue.c (grub_rescue_print_disks): Removed.
21723 (grub_rescue_print_devices): New function.
21724 (grub_rescue_cmd_ls): Use grub_device_iterate with
21725 grub_rescue_print_devices instead of grub_disk_dev_iterate with
21726 grub_rescue_print_disks.
21727
21728 * kern/partition.c (grub_partition_iterate): Return the result of
21729 PARTMAP->ITERATE instead of GRUB_ERRNO.
21730
21731 * kern/device.c: Include grub/partition.h.
21732 (grub_device_iterate): New function.
21733
21734 * include/grub/partition.h (grub_partition_iterate): Return int
21735 instead of grub_err_t.
21736
21737 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
21738 prototype.
21739 [GRUB_UTIL] (grub_search_fini): Likewise.
21740
21741 * include/grub/device.h (grub_device_iterate): New prototype.
21742
21743 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
21744 commands/search.c.
21745 (pkgdata_MODULES): Added search.mod.
21746 (search_mod_SOURCES): New variable.
21747 (search_mod_CFLAGS): Likewise.
21748
21749 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
21750 (pkgdata_MODULES): Added search.mod.
21751 (search_mod_SOURCES): New variable.
21752 (search_mod_CFLAGS): Likewise.
21753
21754 * commands/ls.c (grub_ls_list_disks): Renamed to ...
21755 (grub_ls_list_devices): ... this, and use grub_device_iterate.
21756 All callers changed.
21757
21758 * DISTLIST: Added commands/search.c.
21759
ef095434 217602005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
21761
21762 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
21763 conversion.
21764 (grub_getcharwidth): New function.
21765
21766 * kern/misc.c (grub_utf8_to_ucs4): New function.
21767
21768 * include/grub/term.h (struct grub_term): Added a new member
21769 "getcharwidth".
21770 (grub_getcharwidth): New prototype.
21771
21772 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
21773
21774 * term/i386/pc/console.c (map_char): New function. Segregated from
21775 grub_console_putchar.
21776 (grub_console_putchar): Use map_char.
21777 (grub_console_getcharwidth): New function.
21778 (grub_console_term): Specified grub_console_getcharwidth as
21779 getcharwidth.
21780
21781 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
21782 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
21783
21784 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
21785 GRUB_ERRNO.
21786 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
21787 on grub_strtoul completely.
21788 (write_char): Declare local variables in the beginning of the
21789 function.
21790 (grub_vesafb_getcharwidth): New function.
21791 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
21792 getcharwidth.
21793
1f0a95e4 217942005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
21795
21796 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
21797 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
21798 commands/i386/pc/vbetest.c.
21799
21800 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
21801 call grub_vbe_get_controller_info again, because the returned
21802 information is volatile.
21803 (grub_vbe_set_video_mode): Mostly rewritten.
21804 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
21805 grub_vbe_status_t correctly.
21806 (grub_vbe_get_video_mode_info): Likewise.
21807 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
21808 several if statements.
21809
21810 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
21811 * commands/i386/pc/vbeinfo.c: ... this.
21812
21813 * commands/i386/pc/vbe_test.c: Renamed to ...
21814 * commands/i386/pc/vbetest.c: ... this.
21815
21816 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
21817 ...
21818 (grub_cmd_vbeinfo): ... this. Save video modes before
21819 iterating. Skip a video mode, if it is not available, not enough
21820 information is given or it is monochrome. Show the memory
21821 model. Leave the interpretation of MODEVAR to grub_strtoul
21822 completely.
21823 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
21824 (GRUB_MOD_FINI): Likewise.
21825
21826 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
21827 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
21828 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
21829 duplicated grub_env_get. Leave the interpretation of MODEVAR to
21830 grub_strtoul completely.
21831 (real2pm): Removed.
21832 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
21833 (GRUB_MOD_FINI): Likewise.
21834
21835 * normal/misc.c: Include grub/mm.h.
21836
21837 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
21838 vbe_list_modes with vbetest.mod and vbeinfo.mod.
21839 (vbe_list_modes_mod_SOURCES): Removed.
21840 (vbe_list_modes_mod_CFLAGS): Likewise.
21841 (vbe_test_mod_SOURCES): Likewise.
21842 (vbe_test_mod_CFLAGS): Likewise.
21843 (vbeinfo_mod_SOURCES): New variable.
21844 (vbeinfo_mod_CFLAGS): Likewise.
21845 (vbetest_mod_SOURCES): Likewise.
21846 (vbetest_mod_CFLAGS): Likewise.
21847
992ffbbe 218482005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
21849
21850 * normal/misc.c: New file.
21851
21852 * DISTLIST: Added normal/misc.c.
f19dbdb7 21853
992ffbbe 21854 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
21855 DISK to HOOK. Call HOOK with DISK.
21856 * partmap/apple.c (apple_partition_map_iterate): Likewise.
21857 * partmap/pc.c (pc_partition_map_iterate): Likewise.
21858 * partmap/sun.c (sun_partition_map_iterate): Likewise.
21859
21860 * normal/menu_entry.c (struct screen): Added a new member
21861 "completion_shown".
21862 (completion_buffer): New global variable.
21863 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
21864 (store_completion): New function.
21865 (complete): Likewise.
21866 (clear_completions): Likewise.
21867 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
21868 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
21869 a tab, call complete.
21870
21871 * normal/completion.c (disk_dev): Removed.
21872 (print_simple_completion): Likewise.
21873 (print_partition_completion): Likewise.
21874 (print_func): New global variable.
21875 (add_completion): Do not take the arguments WHAT or PRINT any
21876 longer. Added a new argument TYPE. Instead of printing directly,
21877 call PRINT_FUNC if not NULL.
21878 All callers changed.
21879 (complete_device): Use a local variable DEV instead of
21880 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
21881 (grub_normal_do_completion): Take a new argument HOOK. Do not
21882 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
21883 empty string, return NULL instead.
21884 All callers changed.
21885
21886 * normal/cmdline.c (print_completion): New function.
21887
21888 * kern/partition.c (grub_partition_iterate): Add an argument DISK
21889 to HOOK.
21890 All callers changed.
21891
21892 * kern/disk.c (grub_print_partinfo): Removed.
21893
21894 * include/grub/partition.h (struct grub_partition_map): Add a new
21895 argument DISK into HOOK of ITERATE.
21896 (grub_partition_iterate): Add a new argument DISK to HOOK.
21897
21898 * include/grub/normal.h (enum grub_completion_type): New enum.
21899 (grub_completion_type_t): New type.
21900 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
21901 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
21902 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
21903 (GRUB_COMPLETION_TYPE_FILE): Likewise.
21904 (grub_normal_do_completion): Added a new argument HOOK.
21905 (grub_normal_print_device_info): New prototype.
21906
21907 * include/grub/disk.h (grub_print_partinfo): Removed.
21908
21909 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
21910 (normal_mod_SOURCES): Likewise.
21911 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21912 (normal_mod_SOURCES): Likewise.
21913
21914 * commands/ls.c (grub_ls_list_disks): Use
21915 grub_normal_print_device_info instead of grub_print_partinfo. Free
21916 PNAME.
21917 (grub_ls_list_files): Use grub_normal_print_device_info instead of
21918 duplicating the code.
21919
0bd41162 219202005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
21921
21922 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 21923 follow GCS more precisely.
21924 * commands/i386/pc/vbe_test.c: Likewise.
21925 * include/grub/i386/pc/vbe.h: Likewise.
21926 * term/i386/pc/vesafb.c: Likewise.
21927 * video/i386/pc/vbe.c: Likewise.
0bd41162 21928
6323696a 219292005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
21930
21931 * DISTLIST: Added term/i386/pc/vesafb.c
21932 DISTLIST: Added video/i386/pc/vbe.c
21933 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
21934 DISTLIST: Added commands/i386/pc/vbe_test.c.
21935 * commands/i386/pc/vbe_list_modes.c: New file.
21936 * commands/i386/pc/vbe_test.c: Likewise.
21937 * term/i386/pc/vesafb.c: Likewise.
21938 * video/i386/pc/vbe.c: Likewise.
21939 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
21940 (grub_vbe_probe) Added prototype.
21941 (grub_vbe_set_video_mode) Likewise.
21942 (grub_vbe_get_video_mode) Likewise.
21943 (grub_vbe_get_video_mode_info) Likewise.
21944 (grub_vbe_set_pixel_rgb) Likewise.
21945 (grub_vbe_set_pixel_index) Likewise.
21946 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
21947 (pkgdata_MODULES): Added vesafb.mod.
21948 (pkgdata_MODULES): Added vbe_list_modes.mod.
21949 (pkgdata_MODULES): Added vbe_test.mod.
21950 (vbe_mod_SOURCES): Added.
21951 (vbe_mod_CFLAGS): Likewise.
21952 (vesafb_mod_SOURCES): Likewise.
21953 (vesafb_mod_CFLAGS): Likewise.
21954 (vbe_list_modes_mod_SOURCES): Likewise.
21955 (vbe_list_modes_mod_CFLAGS): Likewise.
21956 (vbe_test_mod_SOURCES): Likewise.
21957 (vbe_test_mod_CFLAGS): Likewise.
21958
0a74e62f 219592005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
21960
0a74e62f 21961 * normal/command.c (grub_command_execute): If INTERACTIVE is
21962 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
21963 CMDLINE. Disable the pager if INTERACTIVE is true.
21964 All callers are changed.
21965
21966 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
21967 before reading a config file.
21968 * normal/main.c (read_config_file): Even if a command is not
21969 found, register it if it is within an entry.
21970
21971 * util/grub-emu.c: Include sys/types.h and unistd.h.
21972 (options): Added --hold.
21973 (struct arguments): Added a new member "hold".
21974 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
21975 missing.
21976 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
21977 cleared by a debugger, if it is not zero.
21978
21979 * include/grub/normal.h (grub_command_execute): Add an argument
21980 INTERACTIVE.
21981
e51f85ae 219822005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
21983
21984 * DISTLIST: Added include/grub/i386/pc/vbe.h.
21985
e9c6f39b 219862005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
21987
21988 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
21989 program with another one, because the old one didn't detect a bug
21990 in gcc-3.4. Always use regparm 2, because the new test is still
21991 not enough for gcc-4.0. Someone must investigate a simple test
21992 case which detects a bug in gcc-4.0.
21993
8de3495c 219942005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
21995
21996 * DISTLIST: Added normal/completion.c.
21997
21998 * normal/completion.c: New file.
f19dbdb7 21999
8de3495c 22000 * term/i386/pc/console.c (grub_console_getwh): New function.
22001 (grub_console_term): Assign grub_console_getwh to getwh.
22002
22003 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
22004 function is defined in normal/completion.c as
22005 grub_normal_do_completion.
22006 (grub_cmdline_get): Use grub_normal_do_completion instead of
22007 grub_tab_complete.
22008
22009 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
22010 returns non-zero, otherwise return 0.
22011 (grub_partition_iterate): First, probe the partition map. Then,
22012 call ITERATE only for this partition map.
22013
22014 * kern/misc.c (grub_strncmp): Rewritten.
22015
22016 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
22017 returns non-zero. Otherwise return 0.
22018
22019 * include/grub/partition.h (grub_partition_map_iterate): Return
22020 int instead of void.
22021
22022 * include/grub/normal.h (grub_normal_do_completion): New prototype.
22023
22024 * include/grub/misc.h (grub_strncmp): Change the type of N to
22025 grub_size_t.
22026
22027 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
22028 of void.
22029
22030 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 22031 unsigned explicitly before comparing it with I.
8de3495c 22032
22033 * kern/main.c (grub_env_write_root): Add the attribute unused into
22034 VAR.
22035
22036 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
22037 normal/completion.c.
22038 (normal_mod_SOURCES): Likewise.
22039 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
22040 (normal_mod_SOURCES): Likewise.
22041
22042 * normal/command.c (grub_iterate_commands): If ITERATE returns
22043 non-zero, return one immediately.
22044
e85e144b 220452005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
22046
22047 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
22048 * kern/i386/pc/startup.S: Updated Global Descriptor table's
22049 descriptions.
22050 (grub_vbe_get_controller_info): New function.
22051 (grub_vbe_get_mode_info): Likewise.
22052 (grub_vbe_set_mode): Likewise.
22053 (grub_vbe_get_mode): Likewise.
22054 (grub_vbe_set_memory_window): Likewise.
22055 (grub_vbe_get_memory_window): Likewise.
22056 (grub_vbe_set_scanline_length): Likewise.
22057 (grub_vbe_get_scanline_length): Likewise.
22058 (grub_vbe_set_display_start): Likewise.
22059 (grub_vbe_get_display_start): Likewise.
22060 (grub_vbe_set_palette_data): Likewise.
22061 * include/grub/i386/pc/vbe.h: New file.
22062
c46153d2 220632005-08-08 Hollis Blanchard <hollis@penguinppc.org>
22064
22065 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
22066 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
22067 * DISTLIST: Likewise.
22068 * kern/ieee1275/of.c: Moved to ...
22069 * kern/ieee1275/ieee1275.c: ... here.
22070
0cb90c45 220712005-08-08 Hollis Blanchard <hollis@penguinppc.org>
22072
22073 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
22074 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
22075 Pass 0 as `end' parameter to grub_strtoul().
22076
a19fb360 220772005-08-08 Hollis Blanchard <hollis@penguinppc.org>
22078
22079 * include/grub/powerpc/ieee1275/console.h: Do not include
22080 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
22081 ifdef.
22082 (grub_console_cur_color): Remove i386-specific prototype.
22083 (grub_console_real_putchar): Likewise.
22084 (grub_console_checkkey): Likewise.
22085 (grub_console_getkey): Likewise.
22086 (grub_console_getxy): Likewise.
22087 (grub_console_gotoxy): Likewise.
22088 (grub_console_cls): Likewise.
22089 (grub_console_setcursor): Likewise.
22090 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
22091 Include <grub/machine/console.h>.
22092 * term/ieee1275/ofconsole.c: Likewise.
22093
4ac9bd04 220942005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
22095
22096 * Makefile.in (LIBLZO): New variable.
22097
22098 * configure.ac: Check for LZO version 2.
22099
22100 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
22101 lzo/lzo1x.h instead of lzo1x.h.
22102
22103 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
22104 of -llzo.
22105
22106 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
22107 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
22108
22109 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
22110 copying the data from PARTITION to P.
22111
f4917dfd 221122005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
22113
22114 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
22115 negative, unload the module.
22116
22117 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
22118 map is "pc_partition_map" but not "pc".
22119 (usage): Fix the description. The options are --boot-image and
22120 --core-image but not --boot-file or --core-file.
22121 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
22122 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
22123 DEFAULT_DIRECTORY.
22124
22125 * util/i386/pc/grub-install.in: Do not specify --boot-file or
22126 --core-file. Specify INSTALL_DEVICE as an argument.
22127
22128 * util/console.c: Include config.h.
22129 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
22130 [HAVE_NCURSES_H]: Include ncurses.h.
22131 [HAVE_CURSES_H]: Include curses.h.
22132 [!A_NORMAL] (A_NORMAL): Defined as zero.
22133 [!A_STANDOUT] (A_STANDOUT): Likewise.
22134
22135 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
22136 -lncurses.
22137 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
22138
22139 * configure.ac: Check for curses libraries and headers.
22140
22141 * Makefile.in (LIBCURSES): New variable.
22142
22143 * genmk.rb (Script::rule): Set the executable bits.
22144
22145 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
22146 name of the PC partition map is "pc_partition_map" but not "pc".
22147
0e143073 221482005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
22149
22150 * util/i386/pc/grub-install.in (grub_probefs): New variable.
22151 (modules): Likewise.
22152 (usage): Added descriptions for --modules and --grub-probefs.
22153 Handle --modules and --grub-probefs. Save the arguments in MODULES
22154 and GRUB_PROBEFS, respectively.
22155 Auto-detect a filesystem module against GRUBDIR. If the result is
22156 empty and modules are not specified explicitly, abort the
22157 installation. Add the result to MODULES.
22158
22159 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
22160 disk/powerpc/ieee1275/ofdisk.c,
22161 include/grub/powerpc/ieee1275/init.h and
22162 term/powerpc/ieee1275/ofconsole.c.
22163 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
22164 term/ieee1275/ofconsole.c.
22165
22166 * include/grub/powerpc/ieee1275/console.h: Resurrected.
22167
22168 * COPYING: Upgraded to the latest version. Only the address of the
22169 FSF office has changed.
f19dbdb7 22170
efd6e6d5 221712005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
22172
22173 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
22174 kern/ieee1275.c with kern/ieee1275/of.c.
22175
22176 * kern/ieee1275.c: Moved to ...
22177 * kern/ieee1275/of.c: ... here.
22178
8ceafda2 221792005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
22180
22181 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 22182 readability.
8ceafda2 22183
22184 * config.guess: Updated to the latest version from gnulib.
22185 * config.sub: Likewise.
22186 * install.sh: Likewise.
22187 * mkinstalldirs: Likewise.
22188
22189 * include/grub/console.h: Removed. This file is arch-specific. Do
22190 not put this in include/grub.
22191
22192 * include/grub/i386/pc/console.h: Resurrected.
22193
22194 * util/console.c: Include grub/machine/console.h instead of
22195 grub/console.h.
22196 * util/grub-emu.c: Likewise.
22197
267f6cd9 221982005-08-04 Marco Gerards <metgerards@student.han.nl>
22199
22200 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
22201 hardcoded value.
f19dbdb7 22202
267f6cd9 22203 From Vincent Pelletier <subdino2004@yahoo.fr>
22204 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
22205 Redefined to use grub_getwh.
22206 (grub_term): New member named getwh.
22207 (grub_getwh): New prototype.
22208 * kern/term.c (grub_getwh): New function.
22209 * term/i386/pc/console.c (grub_console_getwh): New function.
22210 (grub_console_term): New member `getwh'.
22211 * term/i386/pc/vga.c (grub_vga_getwh): New function.
22212 (grub_vga_term): New member `getwh'.
0b5abe02 22213 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 22214 grub_ssize_t.
22215 (grub_ofconsole_getw): New function.
22216 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
22217 (grub_ofconsole_term): New field named getwh and new initial
22218 value.
22219
3be7266d 222202005-08-03 Hollis Blanchard <hollis@penguinppc.org>
22221
22222 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
22223 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
22224 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
22225 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
22226 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
22227 of <grub/machine/ieee1275.h>.
22228 * commands/ieee1275/reboot.c: Likewise.
22229 * boot/powerpc/ieee1275/ieee1275.c: Move ...
22230 * kern/ieee1275.c: ... to here. All users updated. Change all
22231 parameter structs to use new type `grub_ieee1275_cell_t'.
22232 * term/powerpc/ieee1275/ofconsole.c: Move ...
22233 * term/ieee1275/ofconsole.c: ... to here. All users updated.
22234 * disk/powerpc/ieee1275/ofdisk.c: Move ...
22235 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
22236 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
22237 to return int.
22238 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
22239 Remove unused prototypes. All users updated.
22240 * include/grub/powerpc/ieee1275/console.h: Removed.
22241 * include/grub/powerpc/ieee1275/ieee1275.h: Define
22242 `grub_ieee1275_cell_t'.
22243 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
22244 Cast comparisons with -1 to the correct type.
22245 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
22246 type to match `grub_ieee1275_entry_fn'.
22247
8b5f3938 222482005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
22249
22250 * DISTLIST: Added util/i386/pc/grub-probefs.c.
22251
22252 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
22253 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
22254 partmap/sun.c.
22255 (grub_probefs_SOURCES): New variable.
22256
22257 * util/i386/pc/grub-probefs.c: New file.
22258
22259 * util/i386/pc/grub-setup.c (main): Call
22260 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
22261 grub_hfs_init and grub_jfs_init to initialize the system. Call
22262 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
22263 grub_pc_partition_map_fini to finish the system.
22264
ea409713 222652005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
22266
22267 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
22268 function.
22269 (grub_multiboot_load_elf32): Likewise.
22270 (grub_multiboot_is_elf64): Likewise.
22271 (grub_multiboot_load_elf64): Likewise.
22272 (grub_multiboot_load_elf): Likewise.
22273 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
22274 an ELF32 or ELF64 file.
22275 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
22276
22277 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
22278 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
22279 NULL before calling FS->LABEL.
22280 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
22281 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
22282 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
22283 before calling FS->LABEL.
22284
141a288b 222852005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
22286
22287 * util/i386/pc/grub-install.in (datadir): New variable.
22288 (libdir): Removed.
22289 (pkgdatadir): New variable.
22290 (pkglibdir): Removed.
22291
0d5f8a54 222922005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
22293
22294 * DISTLIST: Added util/i386/pc/grub-install.in.
22295
22296 * util/i386/pc/grub-install.in: New file.
22297
22298 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
22299 (grub_install_SOURCES): Likewise.
22300
22301 * genmk.rb: Added support for scripts.
22302 (Script): New class.
22303 (scripts): New variable.
22304
22305 * Makefile.in (install-local): Install sbin_SCRIPTS by
22306 INSTALL_SCRIPT.
22307 (uninstall): Remove sbin_SCRIPTS.
22308
22309 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
22310 device, try to get a GRUB device by
22311 grub_util_biosdisk_get_grub_dev.
22312 Free DEST_DEV.
22313
22314 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
22315 description for --device-map.
22316
5f968e1e 223172005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
22318
22319 Change the semantics of variable hooks. They now return strings
22320 instead of error values.
f19dbdb7 22321
5f968e1e 22322 * util/i386/pc/grub-setup.c: Include grub/env.h.
22323 (setup): Use grub_device_set_root instead of grub_env_set.
22324
22325 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
22326 grub_env_get instead of grub_device_set_root and
22327 grub_device_get_root, respectively.
22328
22329 * kern/main.c (grub_env_write_root): New function.
22330 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
22331 grub_env_set instead of grub_device_set_root.
22332
22333 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
22334 many variables.
22335 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
22336 rather than calling ENV->WRITE_HOOK afterwards.
22337 (grub_env_get): Return the result of ENV->READ_HOOK rather than
22338 passing a pointer of a pointer.
22339 (grub_register_variable_hook): Change the types of "read_hook" and
22340 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
22341 respectively.
22342 Allocate the default empty string on the heap, because this string
22343 may be freed later.
22344
22345 * kern/device.c: Include grub/env.h.
22346 (grub_device_set_root): Removed.
22347 (grub_device_get_root): Likewise.
22348 (grub_device_open): Use grub_env_get instead of
22349 grub_device_get_root.
22350
22351 * include/grub/env.h (grub_env_read_hook_t): New type.
22352 (grub_env_write_hook_t): Likewise.
22353 (grub_env_var): Change the types of "read_hook" and "write_hook"
22354 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
22355 (grub_register_variable_hook): Likewise.
22356
22357 * include/grub/device.h (grub_device_set_root): Removed.
22358 (grub_device_set_root): Likewise.
22359
22360 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
22361 make sure that DIRNAME terminates with '/', so that
22362 grub_fat_find_dir will fail if PATH is not a directory.
22363
22364 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
22365 from DIRNAME.
22366 Use the qualifier auto for print_files and print_files_long.
22367 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
22368 as a regular file.
22369 Put a newline only if there is no error.
22370 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
22371 used.
22372
896f0afd 223732005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
22374
22375 * kern/partition.c (grub_partition_probe): Initialize PART to
22376 NULL. Otherwise, when no partition map is registered, this returns
22377 a garbage.
22378
b28b81b2 223792005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
22380
22381 * partmap/apple.c (apple_partition_map_iterate): Check if POS
22382 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
22383 valid.
22384
5f3607e0 223852005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
22386
22387 * commands/ls.c (grub_ls_list_disks): Print the filesystem
22388 information on each device, if it does not have partitions. Print
22389 "Device" instead of "Disk", because this function is not specific
22390 to disk devices.
22391
22392 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
22393 static to ensure that it is put on the memory rather than a
22394 register.
22395
502c87e8 223962005-07-17 Yoshinori Okuji <okuji@enbug.org>
22397
22398 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
22399 (grub_cat_init): Likewise.
22400 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
22401 (options): Likewise.
22402 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
22403 (grub_configfile_init): Likewise.
22404 * font/manager.c (GRUB_MOD_INIT): Likewise.
22405 * commands/help.c (GRUB_MOD_INIT): Likewise.
22406 (grub_help_init): Likewise.
22407 * normal/command.c (grub_command_init): Likewise.
22408 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
22409 * disk/loopback.c (grub_loop_init): Likewise.
22410 (GRUB_MOD_INIT): Likewise.
22411 * commands/ls.c (grub_ls_init): Likewise.
22412 (GRUB_MOD_INIT): Likewise.
22413 (options): Likewise.
22414 * commands/boot.c (grub_boot_init): Likewise.
22415 (GRUB_MOD_INIT): Likewise.
22416 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
22417 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
22418 (GRUB_MOD_INIT): Likewise.
22419 * commands/cmp.c (grub_cmp_init): Likewise.
22420 (GRUB_MOD_INIT): Likewise.
22421
22422 * normal/arg.c: Use <> instead of "" to include header files.
22423 (SHORT_ARG_HELP): New macro.
22424 (SHORT_ARG_USAGE): Likewise.
22425 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
22426 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
22427 descriptions.
22428 (find_short): Check if C is 'h' or 'u' explicitly.
22429 (grub_arg_show_help): Use space characters instead of tabs. Treat
22430 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
22431 are shown with --help and --usage only if they are not used for
22432 the command itself.
22433 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
22434 'h' and 'u'.
22435
22436 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
22437 const into "longarg". Change the type of "shortarg" to int.
22438
f806d18e 224392005-07-17 Yoshinori Okuji <okuji@enbug.org>
22440
22441 * boot/i386/pc/boot.S (boot_drive_check): New label.
22442
22443 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
22444 macro.
22445
22446 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
22447 which do not pass a boot drive correctly. Copied from GRUB Legacy.
22448
e293232b 224492005-07-17 Yoshinori Okuji <okuji@enbug.org>
22450
22451 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
22452 When turning off Gate A20, skip the check and return immediately,
22453 because this is not fatal usually.
22454
ebedfd00 224552005-07-17 Yoshinori Okuji <okuji@enbug.org>
22456
22457 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
22458 be 0x7C00 instead of 0x8000.
22459
22460 * boot/i386/pc/pxeboot.S: Rewritten.
22461
22462 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
22463 EXT_C.
22464 (gate_a20_check_state): Read a byte from 0x108000. Invert the
22465 result.
22466
654fc59f 224672005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
22468
22469 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
22470 robustness. This routine now supports a BIOS call and System
22471 Control Port A to modify the gate A20.
22472
22473 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
22474 Increased to 0x440.
22475
09f9923f 224762005-07-12 Hollis Blanchard <hollis@penguinppc.org>
22477
22478 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
22479 device path and resulting ihandle.
22480 (grub_ofdisk_close): dprintf the ihandle being closed.
22481 (grub_ofdisk_read): dprintf function parameters.
22482 * kern/mm.c (grub_mm_init_region): Likewise.
22483 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
22484 (grub_linux_boot): dprintf the Linux entry point, initrd address and
22485 size, and boot arguments.
22486 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
22487 before loading into memory.
22488 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
22489 before loading into memory.
22490
7ef504d8 224912005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
22492
22493 * kern/mm.c: Added much documentation.
22494 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
22495 8, set to 5 instead of 8.
22496
e0f050c2 224972005-07-10 Yoshinori Okuji <okuji@enbug.org>
22498
22499 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
22500
22501 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
22502 (grub_mkdevicemap_SOURCES): New variable.
22503
22504 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
22505 lib/device.c of GRUB Legacy.
22506
7224189a 225072005-07-10 Yoshinori Okuji <okuji@enbug.org>
22508
22509 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
22510 instead of PATH is NULL.
22511
68c864eb 225122005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
22513
22514 * commands/cmp.c (BUFFER_SIZE): New macro.
22515 (grub_cmd_cmp): Close the right file at the right time. Compare
22516 only data just read. Don't report files of different size as
22517 identical. Dynamically allocate buffers. Move variable
22518 declarations at the beginning of function.
22519
e6f3e614 225202005-07-09 Yoshinori Okuji <okuji@enbug.org>
22521
22522 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
22523 reverse.
22524
f8f1559a 225252004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
22526
22527 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
22528 when backspace is pressed at beginning of line.
22529
39c9d41d 225302005-07-03 Yoshinori Okuji <okuji@enbug.org>
22531
22532 * DISTLIST: Added genfslist.sh.
22533
22534 * normal/main.c (fs_module_list): New variable.
22535 (autoload_fs_module): New function.
22536 (read_fs_list): Likewise.
22537 (grub_normal_execute): Call read_fs_list.
22538
22539 * kern/fs.c (grub_fs_autoload_hook): New variable.
22540 (grub_fs_probe): Added support for auto-loading.
22541
22542 * include/grub/normal.h (struct grub_fs_module_list): New struct.
22543 (grub_fs_module_list_t): New type.
22544
22545 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
22546 (grub_fs_autoload_hook): New prototype.
22547
22548 * genfslist.sh: New file.
f19dbdb7 22549
39c9d41d 22550 * genmk.rb: Added a rule to generate a filesystem list.
22551
121c1d83 225522005-06-30 Marco Gerards <metgerards@student.han.nl>
22553
22554 * configure.ac: Fix the test for cross-compiling.
22555
22556 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
22557 define GRUB_UTIL anymore.
22558
22559 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
22560 so this function works on other systems than just big endian.
22561 (load_modules): Likewise.
22562 (add_segments): Likewise.
22563
e75d76e1 225642005-06-23 Hollis Blanchard <hollis@penguinppc.org>
22565
22566 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
22567 contains `l' modifier, get a long from va_arg().
22568
50b5a0a7 225692005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
22570
22571 * kern/mm.c (grub_free): If the next free block which is being
22572 merged is the first free block, set the first block to the block
22573 being freed.
22574 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
22575
89371b20 225762005-05-08 Hollis Blanchard <hollis@penguinppc.org>
22577
22578 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
22579 `grub_ieee1275_chosen'.
22580
168d6e58 225812005-05-08 Hollis Blanchard <hollis@penguinppc.org>
22582
22583 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
22584 (grub_ieee1275_chosen): New variable.
22585 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
22586 `chosen'.
22587 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
22588 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
22589 Rename first argument to `phandle' for consistency.
22590 (grub_ieee1275_get_property_length): Likewise.
22591 (grub_ieee1275_next_property): Likewise. Change type of first argument
22592 to grub_ieee1275_phandle_t.
22593 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
22594 Move export next to declaration.
22595 (grub_ieee1275_chosen): New variable.
22596 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
22597 Correct cosmetic typo.
22598 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
22599 `grub_ieee1275_chosen'.
22600 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
22601 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
22602 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
22603 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
22604 `grub_ieee1275_chosen'.
22605
ca5baa3f 226062005-05-10 Hollis Blanchard <hollis@penguinppc.org>
22607
22608 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
22609 /chosen/bootargs.
22610 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
22611 /chosen/bootargs as "variable=value" pairs.
22612
708b345f 226132005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
22614
22615 * include/grub/misc.h (grub_dprintf): New macro.
22616 (grub_real_dprintf): New prototype.
22617 (grub_strword): Likewise.
22618 (grub_iswordseparator): Likewise.
22619 * kern/misc.c (grub_real_dprintf): New function.
22620 (grub_strword): Likewise.
22621 (grub_iswordseparator): Likewise.
22622
f4c5e67c 226232005-04-30 Hollis Blanchard <hollis@penguinppc.org>
22624
22625 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
22626 (roundup): Remove macro.
22627 (grub_ieee1275_flags): Make static.
22628 (grub_ieee1275_realmode): Remove.
22629 (grub_ieee1275_test_flag): New function.
22630 (grub_ieee1275_set_flag): Likewise.
22631 (find_options): Rename to `grub_ieee1275_find_options'; update
22632 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
22633 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
22634 (cmain): New prototype.
22635 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
22636 `grub_ieee1275_flags' directly.
22637 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
22638 machine/biosdisk.h.
22639 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
22640 Don't include grub/machine/init.h.
22641 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
22642 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
22643 Remove prototype.
22644 (grub_ieee1275_realmode): Likewise.
22645 (grub_ieee1275_flag): New enum.
22646 (grub_ieee1275_test_flag): New prototype.
22647 (grub_ieee1275_set_flag): New prototype.
22648 * include/grub/powerpc/ieee1275/init.h: Remove file.
22649 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
22650 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
22651 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
22652 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
22653 comment.
22654 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
22655 `grub_ieee1275_test_flag'.
22656 (grub_ieee1275_encode_devname): Likewise.
22657
ed16607e 226582005-04-21 Hollis Blanchard <hollis@penguinppc.org>
22659
22660 * include/grub/powerpc/ieee1275/ieee1275.h
22661 (grub_ieee1275_encode_devname): New prototype.
22662 (grub_ieee1275_get_filename): Likewise.
22663 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
22664 function.
22665 (grub_set_prefix): Likewise.
22666 (grub_machine_init): Call grub_set_prefix.
22667 * kern/powerpc/ieee1275/openfw.c: Fix typos.
22668 (grub_parse_type): New enum.
22669 (grub_ieee1275_get_devargs): New function.
22670 (grub_ieee1275_get_devname): Likewise.
22671 (grub_ieee1275_parse_args): Likewise.
22672 (grub_ieee1275_get_filename): Likewise.
22673 (grub_ieee1275_encode_devname): Likewise.
22674
be369920 226752005-03-30 Marco Gerards <metgerards@student.han.nl>
22676
22677 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
22678 `grub_loader_unset'.
22679
a5ce3a4a 226802005-03-26 Hollis Blanchard <hollis@penguinppc.org>
22681
22682 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
22683 instead of grub_ieee1275_interpret.
22684 (grub_halt_init): New function.
22685 (grub_halt_fini): Likewise.
22686 (GRUB_MOD_INIT): Correct message grammar.
22687 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
22688 instead of grub_ieee1275_interpret.
22689 (grub_reboot_init): New function.
22690 (grub_reboot_fini): Likewise.
22691 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
22692 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
22693 util/i386/pc/misc.c with commands/ieee1275/halt.c,
22694 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
22695 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
22696 function.
22697 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
22698 Add prototype.
22699 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
22700 prototype.
22701 (grub_halt): Likewise.
22702 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
22703 (cmain): Remove __attribute__((unused)).
22704 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
22705 (grub_heap_len): Likewise.
22706 (grub_machine_fini): New function.
22707 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
22708 (grub_halt): Likewise.
22709 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
22710 function.
22711 * util/powerpc/ieee1275/misc.c: New file.
22712
0058f771 227132005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
22714
22715 * DISTLIST: New file.
22716 * gendistlist.sh: Likewise.
f19dbdb7 22717
0058f771 22718 * Makefile.in (COMMON_DISTFILES): Removed.
22719 (BOOT_DISTFILES): Likewise.
22720 (CONF_DISTFILES): Likewise.
22721 (DISK_DISTFILES): Likewise.
22722 (FS_DISTFILES): Likewise.
22723 (INCLUDE_DISTFILES): Likewise.
22724 (KERN_DISTFILES): Likewise.
22725 (LOADER_DISTFILES): Likewise.
22726 (TERM_DISTFILES): Likewise.
22727 (UTIL_DISTFILES): Likewise.
22728 (DISTFILES): Likewise.
22729 (uninstall): Uninstall files in $(pkgdata_DATA).
22730 (DISTLIST): New target.
22731 (distdir): Use the contents of the file DISTLIST to get a list of
22732 distributed files.
22733
46b3b8a5 227342005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
22735
22736 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
22737 descriptor. This is ported from GRUB Legacy.
22738
22739 * gencmdlist.sh: Added an extra semicolon to make it work with
22740 old sed versions. Reported by Robert Bihlmeyer
22741 <robbe@orcus.priv.at>.
22742
5822ff87 227432005-03-08 Yoshinori Okuji <okuji@enbug.org>
22744
22745 Automatic loading of commands is supported.
f19dbdb7 22746
5822ff87 22747 * normal/main.c (read_command_list): New function.
22748 (grub_normal_execute): Call read_command_list.
22749
22750 * normal/command.c (grub_register_command): Return zero or CMD.
22751 Allocate CMD->NAME from the heap.
22752 Initialize CMD->MODULE_NAME to zero.
22753 Find the same name as well. If the same command is found and it is
22754 a dummy command, overwrite members. If it is not a dummy command,
22755 return zero.
22756 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
22757 (grub_command_find): If a dummy command is found, load a module
22758 and retry to find a command only once.
22759
22760 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
22761 make sure that each command is loaded.
22762
22763 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
22764 macro.
22765 (struct grub_command): Remove const from the member `name'.
22766 Add a new member `module_name'.
22767 (grub_register_command): Return grub_command_t.
22768
22769 * commands/help.c (grub_cmd_help): Call grub_command_find to make
22770 sure that each command is loaded.
22771
22772 * genmk.rb (PModule::rule): Specify a module name without the
22773 suffix ".mod" to gencmdlist.sh.
22774
7b1f4b57 227752005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
22776
22777 * gencmdlist.sh: New file.
f19dbdb7 22778
7b1f4b57 22779 * genmk.rb (PModule::rule): Generate a rule for a command list.
22780 Clean command.lst.
22781 Generate command.lst from $(COMMANDFILES).
22782
22783 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
22784 (DATA): Added $(pkgdata_DATA).
22785 (install-local): Install files in $(pkgdata_DATA).
22786
062aaf39 227872005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
22788
22789 * term/i386/pc/vga.c (debug_command): Removed.
22790 (GRUB_MOD_INIT): Do not register the command "debug".
22791
22792 From Hollis Blanchard:
22793 * commands/configfile.c: New file.
22794 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
22795 commands/configfile.c.
22796 (pkgdata_MODULES): Added configfile.mod.
22797 (configfile_mod_SOURCES): New variable.
22798 (configfile_mod_CFLAGS): Likewise.
22799 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
22800 commands/configfile.c.
22801 (pkgdata_MODULES): Added configfile.mod.
22802 (configfile_mod_SOURCES): New variable.
22803 (configfile_mod_CFLAGS): Likewise.
22804 * util/grub-emu.c (main): Call grub_configfile_init and
22805 grub_configfile_fini.
22806 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
22807 prototype.
22808 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 22809
cee01aa6 228102005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
22811
22812 * normal/arg.c (grub_arg_show_help): Do not show the bug report
22813 address.
22814
22815 * commands/help.c (grub_cmd_help): Do not print newlines after
22816 the last command in print_command_help.
22817
93f3a1d8 228182005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
22819
22820 * commands/default.h: New file.
22821 * commands/timeout.h: Likewise.
22822 * normal/context.c: Likewise.
f19dbdb7 22823
93f3a1d8 22824 * util/misc.c: Do not include sys/times.h.
22825 Include sys/time.h and grub/machine/time.h.
22826 (grub_get_rtc): Rewritten with gettimeofday.
22827
22828 * util/grub-emu.c (main): Call grub_default_init and
22829 grub_timeout_init before grub_normal_init, and call
22830 grub_timeout_fini and grub_default_fini after grub_main.
22831
22832 * util/console.c (grub_ncurses_checkkey): Return the read
22833 character or -1.
22834
22835 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
22836 timeouts.
22837
22838 * normal/main.c (read_config_file): Push MENU. If this fails,
22839 print an error and wait for a user input.
22840 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
22841 If a menu is empty or an error occurs, pop MENU.
22842 (grub_normal_execute): Pop and free MENU after grub_menu_run
22843 returns.
22844
22845 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
22846
22847 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
22848 include time.h.
22849 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
22850 without GRUB_UTIL.
22851 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
22852 time.h.
22853 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
22854 without GRUB_UTIL.
22855
22856 * include/grub/normal.h (struct grub_menu_list): New struct.
22857 (grub_menu_list_t): New type.
22858 (struct grub_context): New struct.
22859 (grub_context_t): New type.
22860 (grub_register_command): Got rid of EXPORT_FUNC.
22861 (grub_unregister_command): Likewise.
22862 (grub_context_get): New prototype.
22863 (grub_context_get_current_menu): Likewise.
22864 (grub_context_push_menu): Likewise.
22865 (grub_context_pop_menu): Likewise.
22866 [GRUB_UTIL] (grub_default_init): Likewise.
22867 [GRUB_UTIL] (grub_default_fini): Likewise.
22868 [GRUB_UTIL] (grub_timeout_init): Likewise.
22869 [GRUB_UTIL] (grub_timeout_fini): Likewise.
22870
22871 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
22872 commands/timeout.c and normal/context.c.
22873 (pkgdata_MODULES): Added default.mod and timeout.mod.
22874 (normal_mod_SOURCES): Added normal/context.c.
22875 (default_mod_SOURCES): New variable.
22876 (default_mod_CFLAGS): Likewise.
22877 (timeout_mod_SOURCES): Likewise.
22878 (timeout_mod_CFLAGS): Likewise.
22879 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
22880 conf/i386-pc.rmk.
22881 (pkgdata_MODULES): Added default.mod and timeout.mod.
22882 (normal_mod_SOURCES): Added normal/context.c.
22883 (default_mod_SOURCES): New variable.
22884 (default_mod_CFLAGS): Likewise.
22885 (timeout_mod_SOURCES): Likewise.
22886 (timeout_mod_CFLAGS): Likewise.
22887
22888 * Makefile.in (all-local): Added $(MKFILES).
22889
4ed2e1dd 228902005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
22891
22892 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
22893 (grub_emu_SOURCES): Likewise.
22894 (pkgdata_MODULES): Add `sun.mod'.
22895 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
22896 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
22897 `partmap/sun.c'.
22898 (pkgdata_MODULES): Add `sun.mod'.
22899 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
22900 * include/grub/partition.h (grub_sun_partition_map_init): New
22901 prototype.
22902 (grub_sun_partition_map_fini): Likewise.
22903 * partmap/sun.c: New file.
22904 * util/grub-emu.c (main): Initialize and de-initialize the sun
22905 partitionmap support.
22906
4d4e372e 229072005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
22908
22909 This implements an Emacs-like menu entry editor.
f19dbdb7 22910
4d4e372e 22911 * normal/menu_entry.c: New file.
f19dbdb7 22912
4d4e372e 22913 * util/console.c (grub_ncurses_putchar): Translate some Unicode
22914 characters to ASCII.
22915 (saved_char): New variable.
22916 (grub_ncurses_checkkey): Rewritten completely.
22917 (grub_ncurses_getkey): Likewise.
22918 (grub_ncurses_init): Call raw instead of cbreak.
22919
22920 * normal/menu.c (print_entry): Do not put a space.
22921 (init_page): Renamed to ...
22922 (grub_menu_init_page): ... this. All callers changed.
22923 (edit_menu_entry): Removed.
22924 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
22925
22926 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
22927
22928 * kern/misc.c (grub_vprintf): Call grub_refresh.
22929
22930 * normal/menu.c (DISP_LEFT): Renamed to ...
22931 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
22932 * normal/menu.c (DISP_UP): Renamed to ...
22933 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
22934 * normal/menu.c (DISP_RIGHT): Renamed to ...
22935 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
22936 * normal/menu.c (DISP_DOWN): Renamed to ...
22937 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
22938 * normal/menu.c (DISP_HLINE): Renamed to ...
22939 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
22940 * normal/menu.c (DISP_VLINE): Renamed to ...
22941 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
22942 * normal/menu.c (DISP_UL): Renamed to ...
22943 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
22944 * normal/menu.c (DISP_UR): Renamed to ...
22945 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
22946 * normal/menu.c (DISP_LL): Renamed to ...
22947 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
22948 * normal/menu.c (DISP_LR): Renamed to ...
22949 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
22950 * normal/menu.c (TERM_WIDTH): Renamed to ...
22951 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
22952 * normal/menu.c (TERM_HEIGHT): Renamed to ...
22953 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
22954 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
22955 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
22956 * normal/menu.c (TERM_MARGIN): Renamed to ...
22957 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
22958 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
22959 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
22960 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
22961 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
22962 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
22963 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
22964 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
22965 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
22966 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
22967 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
22968 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
22969 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
22970 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
22971 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
22972 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
22973 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
22974 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
22975 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
22976 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
22977 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
22978 All callers changed.
22979
22980 * include/grub/normal.h: New prototype.
22981
22982 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
22983 normal/menu_entry.c.
22984 (normal_mod_SOURCES): Likewise.
22985 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22986 (normal_mod_SOURCES): Likewise.
22987
e6b92c8a 229882005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
22989
22990 * include/grub/normal.h (grub_halt_init): New prototype.
22991 (grub_halt_fini): Likewise.
22992 (grub_reboot_init): Likewise.
22993 (grub_reboot_fini): Likewise.
22994
22995 * util/grub-emu.c: Include signal.h.
22996 (main_env): New global variable.
22997 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
22998 catch C-c.
22999 (grub_machine_fini): New function.
23000 (main): Call grub_halt_init and grub_reboot_init before
23001 grub_main, and grub_reboot_fini and grub_halt_fini after it.
23002 Call setjmp with MAIN_ENV to go back afterwards.
23003 Call grub_machine_fini right before return.
23004
23005 * include/grub/util/misc.h: Include setjmp.h.
23006 (main_env): New prototype.
23007
23008 * include/grub/kernel.h (grub_machine_fini): New prototype.
23009 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
23010 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
23011
23012 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
23013 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
23014 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 23015
e6b92c8a 23016 * util/i386/pc/misc.c: New file.
f19dbdb7 23017
e6b92c8a 23018 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
23019 util/i386/pc/misc.c, commands/i386/pc/halt.c and
23020 commands/i386/pc/reboot.c.
23021
c642636f 230222005-02-14 Guillem Jover <guillem@hadrons.org>
23023
23024 * include/grub/dl.h (grub_dl_check_header): New prototype.
23025 (grub_arch_dl_check_header): Change return type to grub_err_t,
23026 remove size parameter and export function. Update all callers.
23027 * kern/dl.c (grub_dl_check_header): New function.
23028 (grub_dl_load_core): Use `grub_dl_check_header' instead of
23029 `grub_arch_dl_check_header'. Check ELF type. Check if sections
23030 are inside the core.
23031 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
23032 independent ELF header checks.
23033 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
23034 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
23035 `grub_dl_check_header' instead of explicit checks. Check for the
23036 ELF type.
23037 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
23038 `grub_dl_check_header' instead of explicit checks. Remove arch
23039 specific ELF header checks.
23040
e6b92c8a 23041 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
23042 argument SIZE.
23043
5eabe94b 230442005-02-13 Hollis Blanchard <hollis@penguinppc.org>
23045
23046 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
23047 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
23048
1b14a681 230492005-02-12 Hollis Blanchard <hollis@penguinppc.org>
23050
23051 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 23052 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 23053 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 23054 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 23055 * partmap/amiga.c (amiga_partition_map_iterate): Return
23056 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
23057 * partmap/apple.c (apple_partition_map_iterate): Likewise.
23058
aca108aa 230592005-02-01 Guillem Jover <guillem@hadrons.org>
23060
23061 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
23062 help info.
23063
c9f9c556 230642005-01-31 Marco Gerards <metgerards@student.han.nl>
23065
23066 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
23067 Removed prototype.
23068 (grub_rescue_cmd_linux): New prototype.
23069 (grub_rescue_cmd_initrd): Likewise.
23070 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
23071 `bi_rec'.
23072 (grub_linux_release_mem): Release the memory for the initrd.
23073 (grub_load_linux): Renamed from this...
23074 (grub_rescue_cmd_linux): ...To this. Changed all callers.
23075 Changed `entry' not to be static. Loop over memory regions to
23076 find another one when the default fails.
23077 (grub_rescue_cmd_initrd): New function.
23078 (grub_linux_init): Remove function.
23079 (grub_linux_fini): Likewise.
23080 (GRUB_MOD_INIT): Register `initrd'.
23081 (GRUB_MOD_FINI): Unregister `initrd'.
23082 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
23083 Function removed.
23084 (grub_linux_normal_fini): Likewise.
23085 (GRUB_MOD_INIT): Register `initrd'.
23086 (GRUB_MOD_FINI): Unregister `initrd'.
23087
990cf3aa 230882005-01-31 Marco Gerards <metgerards@student.han.nl>
23089
23090 * commands/help.c: New file.
23091 * normal/arg.c (show_help): Renamed to...
23092 (grub_arg_show_help): ... this.
23093 * commands/i386/pc/halt.c: New file.
23094 * commands/i386/pc/reboot.c: Likewise.
23095 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
23096 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
23097 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
23098 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
23099 variables.
23100 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
23101 `commands/help.c'.
23102 (pkgdata_MODULES): Add `help.mod'.
23103 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
23104 * grub/i386/pc/init.h (grub_reboot): New prototype.
23105 (grub_halt): Likewise.
23106 * include/grub/normal.h (grub_arg_show_help): New prototype.
23107 (grub_help_init): Likewise.
23108 (grub_help_fini): Likewise.
23109 * util/grub-emu.c (main): Initialize and deinitialize the help
23110 command.
23111
23112 * normal/cmdline.c (grub_cmdline_get): Doc fix.
23113
23114 * normal/command.c (grub_command_init): Fixed the description of
23115 the `set' and `unset' commands.
23116
231172005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 23118
23119 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
23120 function.
23121 * commands/ieee1275/halt.c: New file.
23122 * commands/ieee1275/reboot.c: Likewise.
23123 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
23124 `__attribute__ ((unused))'. Some GCS related fixed.
23125 (grub_suspend_init) [GRUB_UTIL]: Function removed.
23126 (grub_suspend_fini): Likewise.
23127 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
23128 and `halt.mod'.
23129 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
23130 (halt_mod_CFLAGS): New variables.
23131 * include/grub/powerpc/ieee1275/ieee1275.h
23132 (grub_ieee1275_interpret): New prototype.
23133
1ab09cc7 231342005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
23135
23136 * include/grub/misc.h (memmove): New prototype.
23137 (memcpy): Likewise.
23138
8b8cbdb2 231392005-01-22 Hollis Blanchard <hollis@penguinppc.org>
23140
23141 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
23142 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
23143
e3741a27 231442005-01-22 Marco Gerards <metgerards@student.han.nl>
23145
23146 * kern/misc.c (grub_strndup): Function rewritten.
23147
776bd780 231482005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
23149
23150 * normal/menu.c (TERM_WIDTH): Macro redefined.
23151 (TERM_TOP_BORDER_Y): Likewise.
23152 (draw_border): Replaced while-loop by a for-loop. Make the number
23153 of lines consistent with the number of lines displayed in
23154 print_entries. Added a margin below the rectangle.
23155 (print_entry): Make the entry fit in the rectangle.
23156 (print_entries): Display the scroll arrows next to the right
23157 border.
23158
78026bce 231592005-01-21 Marco Gerards <metgerards@student.han.nl>
23160
23161 * fs/minix.c (grub_minix_find_file): Reserve more space for
23162 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
23163 `grub_strncpy' to copy `path' into it.
23164
67bbaf0f 231652005-01-21 Marco Gerards <metgerards@student.han.nl>
23166
23167 Add the loopback device, a device via which files can be accessed
23168 as devices.
f19dbdb7 23169
67bbaf0f 23170 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
23171 (pkgdata_MODULES): Add loopback.mod.
23172 (loopback_mod_SOURCES): New variable.
23173 (loopback_mod_CFLAGS): Likewise.
23174 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
23175 `disk/loopback.c'.
23176 (pkgdata_MODULES): Add loopback.mod.
23177 (loopback_mod_SOURCES): New variable.
23178 (loopback_mod_CFLAGS): Likewise.
23179 * disk/loopback.c: new file.
23180 * include/grub/normal.h (grub_loop_init): New prototype.
23181 (grub_loop_fini): New prototype.
23182 * util/grub-emu.c (main): Initialize and de-initialize loopback
23183 support.
23184 * include/grub/disk.h (grub_disk_dev_id): Add
23185 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
23186
6f1c18bd 231872005-01-20 Hollis Blanchard <hollis@penguinppc.org>
23188
23189 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
23190 function.
23191 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
23192 (suspend_mod_SOURCES): New variable.
23193 (suspend_mod_CFLAGS): Likewise.
23194 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
23195 New prototype.
23196 * commands/ieee1275/suspend.c: New file.
23197
b38551da 231982005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23199
23200 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 23201 ((unused))' to `__attribute__ ((used))'.
b38551da 23202 (GRUB_MOD_FINI): Likewise.
23203 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
23204 * genmk.rb (PModule): Assign space to common symbols when linking
23205 modules.
23206
777aff39 232072005-01-20 Marco Gerards <metgerards@student.han.nl>
23208
23209 * include/grub/mm.h (grub_mm_init_region): Change the type of the
23210 `unsigned' arguments to `grub_size_t'.
23211 (grub_malloc): Likewise.
23212 (grub_realloc): Likewise.
23213 (grub_memalign): Likewise.
23214 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
23215 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
23216 * util/misc.c (grub_malloc): Likewise.
23217 (grub_realloc): Likewise.
23218 * kern/mm.c (get_header_from_pointer): Change the casts to
23219 `unsigned' into a cast to `grub_size_t'.
23220
23221 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
23222 point to `currnode' when `currnode' is changed.
23223
23224 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
23225 Schottelius <nico-linux@schottelius.org>.
23226
d0ff18e1 232272005-01-09 Hollis Blanchard <hollis@penguinppc.org>
23228
23229 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
23230 (note_path): Remove variable.
23231 (GRUB_IEEE1275_NOTE_NAME): New macro.
23232 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
23233 (grub_ieee1275_note_hdr): New structure.
23234 (grub_ieee1275_note_desc): Likewise.
23235 (grub_ieee1275_note): Likewise.
23236 (load_note): Remove `dir' argument. All callers updated. Remove
23237 `note_img' and `path'. Do not load a file from `note_path'.
23238 Initialize a struct grub_ieee1275_note and write that to `out'.
23239 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
23240
4ca7004c 232412005-01-05 Marco Gerards <metgerards@student.han.nl>
23242
23243 * util/misc.c (grub_util_read_image): Revert last change. It
23244 called `grub_util_read_at', which seeks from the beginning of the
23245 file.
23246
0b412211 232472005-01-04 Hollis Blanchard <hollis@penguinppc.org>
23248
23249 * TODO: Add note about endianness in grub-mkimage.
23250 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
23251 section.
23252 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
23253 (grub_mkimage_SOURCES): New target.
23254 * include/grub/kernel.h (grub_start_addr): Remove variable.
23255 (grub_end_addr): Likewise.
23256 (grub_total_module_size): Likewise.
23257 (grub_kernel_image_size): Likewise.
23258 (GRUB_MODULE_MAGIC): New constant.
23259 (grub_module_info): New structure.
23260 (grub_arch_modules_addr): New prototype.
23261 (grub_get_end_addr): Remove prototype.
23262 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
23263 * include/grub/powerpc/ieee1275/kernel.h: New file.
23264 * include/grub/util/misc.h (grub_util_get_fp_size): New
23265 prototype.
23266 (grub_util_read_at): Likewise.
23267 (grub_util_write_image_at): Likewise.
23268 * kern/main.c (grub_get_end_addr): Remove function.
23269 (grub_load_modules): Call grub_arch_modules_addr instead of using
23270 grub_end_addr. Look for a grub_module_info struct in memory. Use
23271 the grub_module_info fields instead of calling grub_get_end_addr
23272 as loop conditions. Move grub_add_unused_region code here.
23273 (grub_add_unused_region): Remove function.
23274 * kern/i386/pc/init.c: Include grub/cache.h.
23275 (grub_machine_init): Remove call to grub_get_end_addr. Remove
23276 one call to add_mem_region.
23277 (grub_arch_modules_addr): New function.
23278 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
23279 (grub_total_module_size): Likewise.
23280 Include grub/machine/kernel.h.
23281 (grub_arch_modules_addr): New function.
23282 * util/grub-emu.c (grub_end_addr): Remove variable.
23283 (grub_total_module_size): Likewise.
23284 (grub_arch_modules_addr): New function.
23285 * util/misc.c: Include unistd.h.
23286 (grub_util_get_fp_size): New function.
23287 (grub_util_read_at): Likewise.
23288 (grub_util_write_image_at): Likewise.
23289 (grub_util_read_image): Call grub_util_read_at.
23290 (grub_util_write_image): Call grub_util_write_image_at.
23291 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
23292 additional memory in kernel_img for a struct grub_module_info.
23293 Fill in that grub_module_info.
23294 * util/powerpc/ieee1275/grub-mkimage.c: New file.
23295
458786f8 232962005-01-03 Hollis Blanchard <hollis@penguinppc.org>
23297
23298 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
23299 New function.
23300 * include/grub/powerpc/ieee1275/ieee1275.h
23301 (grub_ieee1275_milliseconds): New prototype.
23302 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
23303 Change to 1000.
23304 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
23305 grub_ieee1275_milliseconds.
23306
ac507d1b 233072005-01-03 Hollis Blanchard <hollis@penguinppc.org>
23308
23309 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
23310 variable.
23311 (find_options): New function.
23312 (cmain): Call find_options.
23313 * include/grub/powerpc/ieee1275/ieee1275.h
23314 (grub_ieee1275_realmode): New extern variable.
23315 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
23316 grub_map if grub_ieee1275_realmode is false.
23317
6b8fd1c4 233182004-12-29 Marco Gerards <metgerards@student.han.nl>
23319
23320 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
23321 lines are inserted and make it work like readline. Reported by
23322 Vincent Pelletier <subdino2004@yahoo.fr>.
23323
8514a1e0 233242004-12-28 Marco Gerards <metgerards@student.han.nl>
23325
23326 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
23327
23328 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
23329 `kern/powerpc/cache.S'.
23330
924b6140 233312004-12-27 Marco Gerards <metgerards@student.han.nl>
23332
23333 * genmk.rb: Handle the `Program' class in the main loop. Written
23334 by Johan Rydberg <jrydberg@gnu.org>.
23335 (Program): New class.
23336 (programs): New variable.
23337 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
23338 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
23339 instead of "grub/kernel.h". Include <grub/machine/init.h>.
23340 (help_arch): Function removed.
23341 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
23342 `powerpc/libgcc.h' and `loader.h'.
23343 (pkgdata_PROGRAMS): New variable.
23344 (sbin_UTILITIES): Variable removed.
23345 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
23346 (grubof_SOURCES): Variable re-defined so it only includes the
23347 core functionality.
23348 (grubof_CFLAGS): Remove `-DGRUBOF'.
23349 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
23350 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
23351 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
23352 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
23353 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
23354 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
23355 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
23356 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
23357 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
23358 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
23359 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
23360 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
23361 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
23362 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
23363 (pc_mod_CFLAGS): New variables.
23364 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
23365 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
23366 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
23367 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
23368 Moved from here...
23369 * include/grub/i386/pc/init.h (grub_os_area_addr)
23370 (rub_os_area_size): ... to here.
23371 * include/grub/powerpc/ieee1275/ieee1275.h
23372 (grub_ieee1275_entry_fn): Export symbol.
23373 * include/grub/powerpc/ieee1275/init.h: New file.
23374 * include/grub/powerpc/libgcc.h: Likewise.
23375 * include/grub/cache.h: Likewise.
23376 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
23377 <hollis@penguinppc.org>.
23378 * kern/dl.c: Include <grub/cache.h>.
23379 (grub_dl_flush_cache): New function.
23380 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
23381 for this module.
23382 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
23383 (grub_console_init): Removed prototypes.
23384 (grub_machine_init): Don't initialize the modules anymore.
23385 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
23386 static.
23387 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
23388 Macro undef removed.
23389 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
23390 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
23391 relocation `R_PPC_REL32'. Return an error when the relocation is
23392 unknown.
23393 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
23394 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
23395 * util/misc.c (grub_arch_sync_caches): Likewise.
23396
e4b47e0c 233972004-12-19 Marco Gerards <metgerards@student.han.nl>
23398
23399 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
23400 `symlist.c', add `grubof_symlist.c'.
23401 (symlist.c): Variable removed.
23402 (grubof_HEADERS): Variable added.
23403 (grubof_symlist.c): New target.
23404 (kernel_syms.lst): Use `grubof_HEADERS' instead of
23405 `kernel_img_HEADERS'.
23406 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
23407 * kern/powerpc/dl.c: New file.
23408 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
23409 Function removed.
23410 (grub_arch_dl_relocate_symbols): Likewise.
23411 (grub_register_exported_symbols): Likewise.
23412
4ceb3636 234132004-12-13 Marco Gerards <metgerards@student.han.nl>
23414
23415 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
23416 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
23417 to fail instead. Reported by Vincent Pelletier
23418 <subdino2004@yahoo.fr>.
23419
23420 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
23421 it is not allocated. Reported by Vincent Pelletier
23422 <subdino2004@yahoo.fr>.
23423
23424 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
23425 output so the output looks better.
f19dbdb7 23426
3f1578fe 234272004-12-04 Marco Gerards <metgerards@student.han.nl>
23428
23429 Modulize the partition map support and add support for the amiga
23430 partition map.
f19dbdb7 23431
3f1578fe 23432 * commands/ls.c: Include <grub/partition.h> instead of
23433 <grub/machine/partition.h>.
23434 * kern/disk.c: Likewise.
23435 * kern/rescue.c: Likewise.
23436 * loader/i386/pc/chainloader.c: Likewise.
23437 * normal/cmdline.c: Likewise.
23438 * kern/powerpc/ieee1275/init.c: Likewise.
23439 (grub_machine_init): Call `grub_pc_partition_map_init',
23440 `grub_amiga_partition_map_init' and
23441 `grub_apple_partition_map_init'.
23442 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
23443 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
23444 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
23445 `partition.h' and `pc_partition.h'.
23446 (grub_setup_SOURCES): Remove
23447 `disk/i386/pc/partition.c'. Add `kern/partition.c',
23448 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
23449 (grub_emu_SOURCES): Likewise.
23450 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
23451 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
23452 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
23453 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
23454 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
23455 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
23456 (grubof_SOURCES): Likewise.
23457 * disk/i386/pc/partition.c: File removed.
23458 * disk/powerpc/ieee1275/partition.c: Likewise.
23459 * include/grub/powerpc/ieee1275/partition.h: Likewise.
23460 * include/grub/i386/pc/partition.h: Likewise.
23461 * kern/partition.c: New file.
23462 * partmap/amiga.c: Likewise.
23463 * partmap/apple.c: Likewise.
23464 * partmap/pc.c: Likewise.
23465 * include/grub/partition.h: Likewise..
23466 * include/grub/pc_partition.h: Likewise.
23467 * util/grub-emu.c: Include <grub/partition.h> instead of
23468 <grub/machine/partition.h>.
23469 (main): Call `grub_pc_partition_map_init',
23470 `grub_amiga_partition_map_init' and
23471 `grub_apple_partition_map_init' and deinitialize afterwards.
23472 * util/i386/pc/biosdisk.c: Include `#include
23473 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
23474 `<grub/machine/partition.h>'.
23475 * util/i386/pc/grub-setup.c: Likewise.
23476 * util/i386/pc/biosdisk.c: Likewise.
23477 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
23478 partition information in case of a PC partition.
23479 * util/i386/pc/grub-setup.c: Include `#include
23480 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
23481 `<grub/machine/partition.h>'.
23482 (setup): Only access the PC specific partition information in case
23483 of a PC partition.
23484
0ef4ced9 234852004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 23486
0ef4ced9 23487 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
23488 (grub_longjmp): Likewise.
23489 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
23490 20.
23491 * normal/powerpc/setjmp.S: New file.
23492 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
23493 `normal/powerpc/setjmp.S'.
23494 (grubof_CFLAGS): Add `-DGRUBOF'.
23495 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
23496 [GRUB_UTIL && !GRUBOF].
f19dbdb7 23497
19950e29 234982004-11-16 Marco Gerards <metgerards@student.han.nl>
23499
23500 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
23501 property named `name'. Correctly handle the error returned by
23502 `grub_ieee1275_finddevice' if a device can not be opened.
23503
a2fea427 235042004-11-02 Hollis Blanchard <hollis@penguinppc.org>
23505
23506 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
23507 `actual' for negativity.
23508 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
23509 kern/fshelp.c.
23510
41ea0ea3 235112004-11-01 Marco Gerards <metgerards@student.han.nl>
23512
23513 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
23514 (PAGE_OFFSET): New macro.
23515 (CRTC_ADDR_PORT): Likewise.
23516 (CRTC_DATA_PORT): Likewise.
23517 (START_ADDR_HIGH_REGISTER): Likewise.
23518 (START_ADDR_LOW_REGISTER): Likewise.
23519 (GRAPHICS_ADDR_PORT): Likewise.
23520 (GRAPHICS_DATA_PORT): Likewise.
23521 (READ_MAP_REGISTER): Likewise.
23522 (INPUT_STATUS1_REGISTER): Likewise.
23523 (INPUT_STATUS1_VERTR_BIT): Likewise.
23524 (page): New variable.
23525 (wait_vretrace): New function.
23526 (set_read_map): Likewise.
23527 (set_start_address): Likewise.
23528 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
23529 the right page.
23530 (check_vga_mem): Take the page into account.
23531 (write_char): Likewise.
23532 (write_cursor): Likewise.
23533 (scroll_up): Likewise. Copy the page to the page that is not
23534 shown and switch between both pages.
23535 (grub_vga_putchar): Fix off by one error.
23536 (grub_vga_cls): Wait for the vertical retrace. Take the page into
23537 account.
23538
ad0bd20b 235392004-11-01 Marco Gerards <metgerards@student.han.nl>
23540
23541 Add support for iso9660 (including rockridge).
f19dbdb7 23542
ad0bd20b 23543 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
23544 (iso9660_mod_SOURCES): New variable.
23545 (iso9660_mod_CFLAGS): Likewise.
23546 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
23547 * include/grub/fs.h (grub_iso9660_init): New prototype.
23548 * util/grub-emu.c (main): Call `grub_iso9660_init'.
23549 * fs/iso9660.c: New file.
23550
23551 * include/grub/misc.h (grub_strncat): New prototype.
23552 * kern/misc.c (grub_strncat): New function.
f19dbdb7 23553
ad0bd20b 23554 * fs/hfs.c (grub_hfs_mount): Translate the error
23555 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
23556 * fs/jfs.c (grub_jfs_mount): Likewise.
23557 * fs/ufs.c (grub_ufs_mount): Likewise.
23558
a5477a59 235592004-10-28 Hollis Blanchard <hollis@penguinppc.org>
23560
23561 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
23562 which initialized BAT registers.
23563 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
23564 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
23565 Move from here...
23566 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
23567 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
23568 ... to here.
23569 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
23570 (grub_mapclaim): Likewise.
23571 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
23572 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
23573 hand.
23574
9304c1f8 235752004-10-19 Hollis Blanchard <hollis@penguinppc.org>
23576
23577 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
23578 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
23579 -ffreestanding and -msoft-float.
23580
86f4ae25 235812004-10-15 Hollis Blanchard <hollis@penguinppc.org>
23582
23583 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
23584 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
23585 set in grub_ieee1275_flags.
23586
38912228 235872004-10-14 Hollis Blanchard <hollis@penguinppc.org>
23588
23589 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
23590 prototype.
23591 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
23592 grub_console_init first.
23593 Change the memory range used for grub_ieee1275_claim and
23594 grub_mm_init_region.
23595 Print an error message if the claim fails.
23596 Include <grub/misc.h>.
23597
d1923dc8 235982004-10-13 Hollis Blanchard <hollis@penguinppc.org>
23599
23600 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
23601 Call grub_children_iterate for device nodes of type `scsi',
23602 `ide', or `ata'.
23603 (grub_ofdisk_open): Remove manual device alias resolution.
23604 Fix memory leak when device cannot be opened.
f19dbdb7 23605 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 23606 (grub_children_iterate): New prototype.
23607 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
23608 New function.
23609 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
23610 Return -1 if args.size was -1.
23611
4512e4f3 236122004-10-11 Hollis Blanchard <hollis@penguinppc.org>
23613
23614 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
23615 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
23616 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
23617 Open Firmware's memory for it; claim memory from _start to _end.
23618 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
23619 (_end): New extern.
23620 (_start): Zero BSS from __bss_start to _end.
23621 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
23622 New extern.
23623 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
23624
4d61feb0 236252004-10-11 Hollis Blanchard <hollis@penguinppc.org>
23626
ad0bd20b 23627 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
23628 -1 if args.base was -1.
4d61feb0 23629
026fa2f9 236302004-10-08 Hollis Blanchard <hollis@penguinppc.org>
23631
23632 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
23633 escape sequence instead of a literal ^L. Also call
23634 grub_ofconsole_gotoxy.
23635
9f2220ef 236362004-10-03 Hollis Blanchard <hollis@penguinppc.org>
23637
23638 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
23639 void * arguments to grub_addr_t. All callers updated. Also make
23640 the `result' argument optional.
23641 (grub_ieee1275_release): change void * arguments to grub_addr_t.
23642 All callers updated.
23643
8a572cd7 236442004-09-22 Hollis Blanchard <hollis@penguinppc.org>
23645
23646 * commands/ls.c (grub_ls_list_files): Use the string following the
23647 initial ')', if present, as the filesystem path.
23648 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
23649
23650 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
23651
18aa81f2 236522004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
23653
23654 Make the source code of the menu interface more readable.
f19dbdb7 23655
18aa81f2 23656 * normal/menu.c: Include grub/mm.h.
23657 (TERM_WIDTH): New macro.
23658 (TERM_HEIGHT): Likewise.
23659 (TERM_INFO_HEIGHT): Likewise.
23660 (TERM_MARGIN): Likewise.
23661 (TERM_SCROLL_WIDTH): Likewise.
23662 (TERM_TOP_BORDER_Y): Likewise.
23663 (TERM_LEFT_BORDER_X): Likewise.
23664 (TERM_BORDER_WIDTH): Likewise.
23665 (TERM_MESSAGE_HEIGHT): Likewise.
23666 (TERM_BORDER_HEIGHT): Likewise.
23667 (TERM_NUM_ENTRIES): Likewise.
23668 (TERM_FIRST_ENTRY_Y): Likewise.
23669 (TERM_ENTRY_WIDTH): Likewise.
23670 (TERM_CURSOR_X): Likewise.
23671 (draw_border): Use macros instead of magic numbers.
23672 (print_entry): Likewise.
23673 (print_entries): Likewise.
23674 (run_menu): Likewise. Also, handle the key 'e'.
23675 (run_menu_entry): Ignore empty command lines.
23676 (print_message): Added a new argument EDIT. If EDIT is true,
23677 print a different message.
23678 (init_page): Likewise.
23679 (edit_menu_entry): New function. Not implemented yet.
23680
b47efe30 236812004-09-17 Marco Gerards <metgerards@student.han.nl>
23682
23683 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
23684 can be loaded from normal mode.
f19dbdb7 23685
b47efe30 23686 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
23687 `multiboot.mod'.
23688 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
23689 (multiboot_mod_CFLAGS): New variables.
23690 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 23691 * loader/i386/pc/multiboot_normal.c: Likewise.
23692
b47efe30 23693 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
23694 attribute `unused'.
f19dbdb7 23695
b47efe30 23696 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
23697 `fdiro' to read the mode information from instead of `diro'.
23698
23699 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
23700 looking up a symlink.
23701
23702 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
23703 macro.
23704 * normal/command.c (grub_command_execute): Don't parse the
23705 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
23706 flags of the command.
23707
23708 * normal/menu.c (grub_menu_run): Fix typo.
23709
da75ac71 237102004-09-14 Hollis Blanchard <hollis@penguinppc.org>
23711
23712 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
23713
23714 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
23715 `y + 1' instead of `y - 1'.
23716
23717 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 23718
062b24c2 237192004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
23720
23721 From Hollis Blanchard <hollis@penguinppc.org>:
23722 * kern/misc.c (memmove): New alias for grub_memmove.
23723 (memcmp): New alias for grub_memcmp.
23724 (memset): New alias for grub_memset.
f19dbdb7 23725 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 23726 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 23727 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 23728 (grub_ieee1275_get_property): Likewise.
f19dbdb7 23729
8ddad845 237302004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
23731
23732 Added normal mode command `chainloader' as module chain.mod, which
23733 depends on normal.mod and _chain.mod.
f19dbdb7 23734
8ddad845 23735 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
23736 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
23737 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
23738 Deleted prototype.
23739 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
23740 but arguments parsing moved to ...
23741 (grub_chainloader_cmd): ... here. New function.
23742 * include/grub/i386/pc/chainloader.h: New file.
23743 * loader/i386/pc/chainloader_normal.c: Likewise.
23744
2c1f4ce3 237452004-09-11 Marco Gerards <metgerards@student.han.nl>
23746
23747 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
23748 (grub_mkimage_LDFLAGS): Likewise.
23749 (grub_emu_SOURCES): Likewise.
23750 (kernel_img_HEADERS): Added fshelp.h.
23751 * fs/ext2.c: Include <grub/fshelp.h>.
23752 (FILETYPE_REG): New macro.
23753 (FILETYPE_INO_REG): Likewise.
23754 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
23755 Changed all users.
23756 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
23757 all users.
23758 (grub_fshelp_node): New struct.
23759 (grub_ext2_data): Added member `diropen'. Changed member `inode'
23760 to a pointer.
23761 (grub_ext2_get_file_block): Removed function.
23762 (grub_ext2_read_block): New function.
23763 (grub_ext2_read_file): Replaced parameter `data' by `node'.
23764 This function was written.
23765 (grub_ext2_mount): Read the root inode. Create a diropen struct.
23766 (grub_ext2_find_file): Removed function.
23767 (grub_ext2_read_symlink): New function.
23768 (grub_ext2_iterate_dir): Likewise.
23769 (grub_ext2_open): Rewritten.
23770 (grub_ext2_dir): Rewritten.
23771 * include/grub/fshelp.h: New file.
23772 * fs/fshelp.c: Likewise.
23773
3c52136a 237742004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
23775
23776 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
23777 (print_message): Add a missing newline.
23778 (run_menu): Added timeout support.
23779 (run_menu_entry): New local function.
23780 (grub_menu_run): Added support for booting.
23781
23782 * kern/loader.c (grub_loader_is_loaded): New function.
23783
23784 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
23785 (grub_get_rtc): Exported.
23786
23787 * include/grub/i386/pc/time.h: Include grub/symbol.h.
23788 (grub_get_rtc): Exported.
23789
23790 * include/grub/normal.h (struct grub_command_list): Remove
23791 constant from the member `command'.
23792
23793 * include/grub/loader.h (grub_loader_is_loaded): Declared.
23794
23795 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
23796
23797 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
23798
aa033560 237992004-08-28 Marco Gerards <metgerards@student.han.nl>
23800
23801 Add support for the JFS filesystem.
23802
23803 * fs/jfs.c: New file.
23804 * include/grub/fs.h (grub_jfs_init): New prototype.
23805 (grub_jfs_fini): New prototype.
23806 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
23807 (grub_emu_SOURCES): Likewise.
23808 (pkgdata_MODULES): Add jfs.mod.
23809 (jfs_mod_SOURCES): New variable.
23810 (jfs_mod_CFLAGS): Likewise.
23811 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
23812 (grubof_SOURCES): Likewise.
23813 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
23814
23815 * fs/fat.c (grub_fat_find_dir): Convert the filename little
23816 endian to the host endian.
23817 (grub_fat_utf16_to_utf8): Move function from there...
23818 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 23819 the endianness of the source string anymore.
aa033560 23820 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
23821
94bc45af 238222004-08-24 Marco Gerards <metgerards@student.han.nl>
23823
23824 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
23825 (grub_boot_fini) [GRUB_UTIL]: Likewise.
23826 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
23827 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 23828
94bc45af 23829 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
23830 (grub_hfs_iterate_dir): Make the function static. Add prototypes
23831 for `node_found' and `it_dir'.
23832 (grub_hfs_dir): Add prototype for `dir_hook'.
23833
23834 * fs/minix.c (grub_minix_get_file_block): Add prototype for
23835 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
23836 and `indir32' to silence a gcc warning.
23837
23838 * include/grub/fs.h (grub_hfs_init): New prototype.
23839 (grub_hfs_fini): Likewise.
f19dbdb7 23840
23841
97543f08 238422004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
23843
23844 Each disk device has its own id now. This is useful to make use
23845 of multiple disk devices.
f19dbdb7 23846
97543f08 23847 * include/grub/disk.h (grub_disk_dev_id): New enum.
23848 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
23849 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
23850
23851 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
23852 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
23853
23854 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
23855 GRUB_DISK_DEVICE_OFDISK_ID as an id.
23856
23857 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
23858 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
23859
23860 * include/grub/disk.h (struct grub_disk_dev): Added a new member
23861 "id" which is used by the cache manager.
23862
23863 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
23864 of just "GRUB".
23865
64372eb4 238662004-08-18 Marco Gerards <metgerards@student.han.nl>
23867
23868 * fs/hfs.c: New file.
23869 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
23870 (grub_emu_SOURCES): Likewise.
23871 (pkgdata_MODULES): Add hfs.mod.
23872 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
23873 (grubof_SOURCES): Likewise.
23874 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
23875
23876 * include/grub/misc.h (grub_strncasecmp): Add prototype.
23877 * kern/misc.c (grub_strncasecmp): Add function.
23878
cc61b58f 238792004-08-14 Marco Gerards <metgerards@student.han.nl>
23880
23881 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
23882 with parentheses.
23883
23884 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
23885 (grub_ext2_dir): In case the directory entry type is unknown, read
23886 it from the inode.
23887
0ef123f6 238882004-08-02 Peter Bruin <pjbruin@dds.nl>
23889
23890 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
23891 grub_load_linux instead of grub_rescue_cmd_linux as second
23892 argument of grub_rescue_register_command.
23893
23894 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
23895
a447c5df 238962004-07-27 Marco Gerards <metgerards@student.han.nl>
23897
23898 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
23899 function.
23900 * commands/boot.c: Remove the check for `GRUB_UTIL'.
23901 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
23902 `loader/powerpc/ieee1275/linux.c',
23903 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
23904 * include/grub/powerpc/ieee1275/ieee1275.h
23905 (grub_ieee1275_release): New prototype.
23906 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
23907 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
23908 normal, boot, linux and linux_normal.
23909 * loader/powerpc/ieee1275/linux.c: New file.
23910 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
23911
5a9e3546 239122004-07-12 Marco Gerards <metgerards@student.han.nl>
23913
23914 * normal/arg.c (grub_arg_parse): Correct error handling after
23915 reallocating the argumentlist (check if `argl' is not null instead
23916 of checking if `args' is not null).
23917 * kern/mm.c (grub_realloc): Return the same pointer when using the
23918 same region, instead of returning the header address.
23919
e15199cb 239202004-07-11 Marco Gerards <metgerards@student.han.nl>
23921
23922 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
23923 one block instead of two when looking for the initial partition.
23924 (grub_partition_probe): Initialize the local variable `p' with 0.
23925 Use base 10 for the grub_strtoul call.
23926 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
23927 need for one local variable.
23928 (grub_strtoul): Don't add the new value to `num', instead of that
23929 just assign it.
23930
020616c2 239312004-07-11 Marco Gerards <metgerards@student.han.nl>
23932
23933 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
23934 (pxeboot_img_SOURCES): New variable.
23935 (pxeboot_img_ASFLAGS): Likewise.
23936 (pxeboot_img_LDFLAGS): Likewise.
23937 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
23938 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
23939 <lode_leroy@hotmail.com>.
23940
6c51eb64 239412004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
23942
23943 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
23944 there was no input.
23945
cfb12aff 239462004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
23947
23948 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
23949 the history buffer logic.
23950
6eabba74 239512004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
23952
23953 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
23954 (FILETYPE_INO_SYMLINK): New macros.
23955 (grub_ext2_find_file): Check if the node is a directory using the
23956 inode stat information instead of using the filetype in the
23957 dirent. Exclude the first character of an absolute symlink.
23958 (grub_ext2_dir): Mask out the filetype part of the mode member of
23959 the inode.
23960
66e19ef8 239612004-05-24 Marco Gerards <metgerards@student.han.nl>
23962
23963 Add support for UFS version 1 and 2. Add support for the minix
23964 filesystem version 1 and 2, both the variants with 14 and 30 long
23965 filenames.
f19dbdb7 23966
66e19ef8 23967 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
23968 fs/minix.c.
23969 (grub_emu_SOURCES): Likewise.
23970 (pkgdata_MODULES): Add ufs.mod and minix.mod.
23971 (ufs_mod_SOURCES): New variable.
23972 (ufs_mod_CFLAGS): Likewise.
23973 (minix_mod_SOURCES): Likewise.
23974 (minix_mod_CFLAGS): Likewise.
23975 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
23976 fs/minix.c.
23977 (grubof_SOURCES): Likewise.
23978 * fs/ufs.c: New file.
23979 * fs/minix.c: New file.
23980 * include/grub/fs.h (grub_ufs_init): New prototype.
23981 (grub_ufs_fini): Likewise.
23982 (grub_minix_init): Likewise.
23983 (grub_minix_fini): Likewise.
23984 * util/grub-emu.c (main): Initialize and deinitialize UFS and
23985 minix fs.
23986
cc2e748a 239872004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
23988
23989 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
23990 commands/ls.c, commands/terminal.c, commands/boot.c,
23991 commands/cmp.c and commands/cat.c.
23992 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
23993
23994 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
23995 "env.h"
23996
4b13b216 239972004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
23998
23999 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
24000 and grub_, respectively. Because the conversion is trivial and
24001 mechanical, I omit the details here. Please refer to the CVS
24002 if you need more information.
24003
6a142551 240042004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
24005
24006 * include/pupa: Renamed to ...
24007 * include/grub: ... this.
24008 * util/i386/pc/pupa-mkimage.c: Renamed to ...
24009 * util/i386/pc/grub-mkimage.c: ... this.
24010 * util/i386/pc/pupa-setup.c: Renamed to ...
24011 * util/i386/pc/grub-setup.c: ... this.
24012 * util/pupa-emu.c: Renamed to ...
24013 * util/grub-emu.c: ... this.
24014
e56cdf21 240152004-03-29 Marco Gerards <metgerards@student.han.nl>
24016
24017 Add support for the newworld apple macintosh (PPC). This has been
24018 tested on the powerbook 2000 only. It only adds support for
24019 generic ieee1275 functions, console and disk support. This should
24020 be easy to port to other architectures with support for Open
24021 Firmware.
f19dbdb7 24022
e56cdf21 24023 * configure.ac: Accept the powerpc as host_cpu. In the case of
24024 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
24025 specific tests are only executed while building for the i386.
24026 Inverse test for crosscompile.
24027 * genmk.rb (Utility): Allow assembler files.
24028 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
24029 * conf/powerpc-ieee1275.rmk: New file.
24030 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
24031 * disk/powerpc/ieee1275/partition.c: Likewise.
24032 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
24033 * include/pupa/powerpc/ieee1275/console.h: Likewise.
24034 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
24035 * include/pupa/powerpc/ieee1275/time.h: Likewise.
24036 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
24037 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
24038 * include/pupa/powerpc/ieee1275/loader.h
24039 * include/pupa/powerpc/setjmp.h: Likewise.
24040 * include/pupa/powerpc/types.h: Likewise.
24041 * kern/powerpc/ieee1275/init.c: Likewise.
24042 * kern/powerpc/ieee1275/openfw.c: Likewise.
24043 * term/powerpc/ieee1275/ofconsole.c: Likewise.
24044
24045 These files were written by Johan Rydberg
24046 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 24047
e56cdf21 24048 * boot/powerpc/ieee1275/cmain.c: New file.
24049 * boot/powerpc/ieee1275/crt0.S: Likewise.
24050 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
24051 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
24052
8c8cc205 240532004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
24054
24055 * Makefile.in: Update copyright.
24056 * genmodsrc.sh: Likewise.
24057 * gensymlist.sh: Likewise.
24058 * term/i386/pc/vga.c: Indent correctly.
24059
24060 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
24061 bugreporting address.
24062 * util/i386/pc/pupa-setup.c (usage): Likewise,
24063 (main): Call pupa_ext2_init and pupa_ext2_fini.
24064
f19dbdb7 24065 * fs/fat.c (log2): Renamed to ...
8c8cc205 24066 (fat_log2): ... this.
24067 All callers changed.
24068 * kern/misc.c (memcpy): Alias to pupa_memmove.
24069 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
24070 lvalue cast.
24071 * util/console.c (pupa_ncurses_fini): Return 0.
24072
24073 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
24074 Move fail label here.
24075 [__GNU__]: Don't warn when using stat.
24076 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
24077 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
24078 long int. Use strtol instead of strtoul.
f19dbdb7 24079
db1771cf 240802004-03-14 Marco Gerards <metgerards@student.han.nl>
24081
24082 * commands/boot.c: New file.
24083 * commands/cat.c: Likewise.
24084 * commands/cmp.c: Likewise.
24085 * commands/ls.c: Likewise.
24086 * commands/terminal.c: Likewise.
24087 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
24088 (pupa_register_command): Changed interface to match the new
24089 argument parser.
24090 (pupa_command_execute): Changed (almost rewritten) so it uses
24091 pupa_split_command. Added support for setting variables using the
24092 syntax `foo=bar'.
24093 (rescue_command): Changed to work with the new argument parser.
24094 (terminal_command): Moved from here to commands/terminal.c.
24095 (set_command): New function.
24096 (unset_command): New function.
24097 (insmod_command): New function.
24098 (rmmod_command): New function.
24099 (lsmod_command): New function.
24100 (pupa_command_init): Don't initialize the command terminal
24101 anymore. Initialize the commands set, unset, insmod, rmmod and
24102 lsmod.
24103 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
24104 (kernel_img_HEADERS): Add arg.h and env.h.
24105 (pupa_mkimage_LDFLAGS): Add kern/env.c.
24106 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
24107 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
24108 normal/arg.c.
24109 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
24110 terminal.mod.
24111 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
24112 (boot_mod_SOURCES): New variable.
24113 (terminal_mod_SOURCES): Likewise.
24114 (ls_mod_SOURCES): Likewise.
24115 (cmp_mod_SOURCES): Likewise.
24116 (cat_mod_SOURCES): Likewise.
24117
24118 * normal/arg.c: New file.
24119 * kern/env.c: Likewise.
24120 * include/pupa/arg.h: Likewise.
24121 * include/pupa/env.h: Likewise.
24122 * font/manager.c (font_command): Changed to match argument parsing
24123 interface changes.
24124 (PUPA_MOD_INIT): Likewise.
24125 * hello/hello.c (pupa_cmd_hello): Likewise.
24126 (PUPA_MOD_INIT): Likewise.
24127 * include/pupa/disk.h: Include <pupa/device.h>.
24128 (pupa_print_partinfo): New prototype.
24129 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
24130 (pupa_dl_get_prefix): Likewise.
24131 * include/pupa/misc.h: Include <pupa/err.h>.
24132 (pupa_isgraph): New prototype.
24133 (pupa_isdigit): Likewise.
24134 (pupa_split_cmdline): Likewise.
24135 * include/pupa/normal.h: Include <pupa/arg.h>.
24136 (pupa_command): Changed the prototype of the member `func' to
24137 match the argument parsing interface. Added member `options'.
24138 (pupa_register_command): Updated to match function.
24139 (pupa_arg_parse): New prototype.
24140 (pupa_hello_init) [PUPA_UTIL]: New prototype.
24141 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
24142 (pupa_ls_init) [PUPA_UTIL]: Likewise.
24143 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
24144 (pupa_cat_init) [PUPA_UTIL]: Likewise.
24145 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
24146 (pupa_boot_init) [PUPA_UTIL]: Likewise.
24147 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
24148 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
24149 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
24150 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
24151 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
24152 * kern/disk.c: Include <pupa/file.h>.
24153 (pupa_print_partinfo): New function.
24154 * kern/dl.c: Include <pupa/env.h>.
24155 (pupa_dl_dir): Variable removed.
24156 (pupa_dl_load): Use the environment variable `prefix' instead of
24157 the variable pupa_dl_dir.
24158 (pupa_dl_set_prefix): Function removed.
24159 (pupa_dl_get_prefix): Likewise.
24160 * kern/i386/pc/init.c: Include <pupa/env.h>.
24161 (pupa_machine_init): Use the environment variable `prefix' instead of
24162 using pupa_dl_set_prefix to set the prefix.
24163 * kern/main.c: Include <pupa/env.h>.
24164 (pupa_set_root_dev): Use the environment variable `prefix' instead of
24165 using pupa_dl_get_prefix to get the prefix.
24166 * kern/misc.c: Include <pupa/env.h>.
24167 (pupa_isdigit): New function.
24168 (pupa_isgraph): Likewise.
24169 (pupa_ftoa): Likewise.
24170 (pupa_vsprintf): Added support for printing values of the type
24171 `double'. Make it possible to format variable output when using
24172 formatting like `%1.2%f'.
24173 (pupa_split_cmdline): New function.
24174 * kern/rescue.c: Include <pupa/env.h>.
24175 (next_word): Removed function.
24176 (pupa_rescue_cmd_prefix): Likewise.
24177 (pupa_rescue_cmd_set): New function.
24178 (pupa_rescue_cmd_unset): New function.
24179 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
24180 split the command line instead of splitting it here. Added
24181 support for setting variables using the syntax `foo=bar'. Don't
24182 initialize the prefix command anymore. Initialized the set and
24183 unset commands.
24184 * normal/cmdline.c: Include <pupa/env.h>.
24185 (pupa_tab_complete): Added prototypes for print_simple_completion,
24186 print_partition_completion, add_completion, iterate_commands,
24187 iterate_dev, iterate_part and iterate_dir. Moved code to print
24188 partition information from here to kern/disk.c.
fe6b695a 24189 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 24190 * normal/main.c: Include <pupa/env.h>.
24191 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
24192 instead of using pupa_dl_get_prefix to get the prefix.
24193 * term/i386/pc/vga.c: Include <pupa/arg.h>.
24194 (check_vga_mem): Cast pointers to `void *' to silence a gcc
24195 warning.
24196 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
24197 (pupa_vga_setcolor): Declare unused variables with `__attribute__
24198 ((unused))' to silence a gcc warning.
24199 (pupa_vga_setcolor): Likewise.
24200 (debug_command): Changed to match argument parsing
24201 interface changes.
24202 * util/pupa-emu.c: Include <pupa/env.h>.
24203 (options): Added 0's for unused fields to silence a gcc warning.
24204 (argp): Likewise.
24205 (main): Use the environment variable `prefix' instead of using
24206 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
24207 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
24208 and terminal.
24209
24210 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
24211 * util/misc.c: Include <malloc.h>.
24212 (pupa_malloc): Rewritten so errors are correctly reported.
24213 (pupa_realloc): Likewise.
24214 (pupa_memalign): Likewise.
24215 (pupa_mm_init_region): Declare unused variables with
24216 `__attribute__ ((unused))' to silence a gcc warning.
24217 * normal/i386/setjmp.S: Remove tab at the end of the file to
24218 silence a gcc warning.
24219 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
24220 variables with `__attribute__ ((unused))' to silence a gcc
24221 warning.
24222 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
24223 local variable i unsigned to silence a gcc warning.
24224
24225 * kern/term.c: Include <pupa/misc.h>.
24226 (pupa_more_lines): New variable.
24227 (pupa_more): Likewise.
24228 (pupa_putcode): When the pager is active pause at the end of every
24229 screen.
24230 (pupa_set_more): New function.
24231 * include/pupa/term.h (pupa_set_more): New prototype.
24232
24233
3b1139cb 242342004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
24235
24236 Now this project is GRUB 2 rather than PUPA. The location of
24237 the CVS repository was moved to GRUB's.
f19dbdb7 24238
3b1139cb 24239 * configure.ac: Use bug-grub as the reporting address.
24240 Use GRUB instead of PUPA.
24241 Change the version number to 1.90.
24242
8367695c 242432004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
24244
24245 * genkernsyms.sh: Updated copyright information.
24246 * genmk.rb: Likewise.
24247 * genmodsrc.sh: Likewise.
24248 * gensymlist.sh: Likewise.
24249 * boot/i386/pc/boot.S: Likewise.
24250 * boot/i386/pc/diskboot.S: Likewise.
24251 * disk/i386/pc/biosdisk.c: Likewise.
24252 * disk/i386/pc/partition.c: Likewise.
24253 * font/manager.c: Likewise.
24254 * fs/ext2.c: Likewise.
24255 * fs/fat.c: Likewise.
24256 * include/pupa/boot.h: Likewise.
24257 * include/pupa/device.h: Likewise.
24258 * include/pupa/disk.h: Likewise.
24259 * include/pupa/dl.h: Likewise.
24260 * include/pupa/elf.h: Likewise.
24261 * include/pupa/err.h: Likewise.
24262 * include/pupa/file.h: Likewise.
24263 * include/pupa/font.h: Likewise.
24264 * include/pupa/fs.h: Likewise.
24265 * include/pupa/kernel.h: Likewise.
24266 * include/pupa/loader.h: Likewise.
24267 * include/pupa/misc.h: Likewise.
24268 * include/pupa/mm.h: Likewise.
24269 * include/pupa/net.h: Likewise.
24270 * include/pupa/normal.h: Likewise.
24271 * include/pupa/rescue.h: Likewise.
24272 * include/pupa/setjmp.h: Likewise.
24273 * include/pupa/symbol.h: Likewise.
24274 * include/pupa/term.h: Likewise.
24275 * include/pupa/types.h: Likewise.
24276 * include/pupa/i386/setjmp.h: Likewise.
24277 * include/pupa/i386/types.h: Likewise.
24278 * include/pupa/i386/pc/biosdisk.h: Likewise.
24279 * include/pupa/i386/pc/boot.h: Likewise.
24280 * include/pupa/i386/pc/console.h: Likewise.
24281 * include/pupa/i386/pc/init.h: Likewise.
24282 * include/pupa/i386/pc/kernel.h: Likewise.
24283 * include/pupa/i386/pc/linux.h: Likewise.
24284 * include/pupa/i386/pc/loader.h: Likewise.
24285 * include/pupa/i386/pc/memory.h: Likewise.
24286 * include/pupa/i386/pc/multiboot.h: Likewise.
24287 * include/pupa/i386/pc/partition.h: Likewise.
24288 * include/pupa/i386/pc/time.h: Likewise.
24289 * include/pupa/i386/pc/vga.h: Likewise.
24290 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
24291 * include/pupa/util/getroot.h: Likewise.
24292 * include/pupa/util/misc.h: Likewise.
24293 * include/pupa/util/resolve.h: Likewise.
24294 * kern/device.c: Likewise.
24295 * kern/disk.c: Likewise.
24296 * kern/dl.c: Likewise.
24297 * kern/err.c: Likewise.
24298 * kern/file.c: Likewise.
24299 * kern/fs.c: Likewise.
24300 * kern/loader.c: Likewise.
24301 * kern/main.c: Likewise.
24302 * kern/misc.c: Likewise.
24303 * kern/mm.c: Likewise.
24304 * kern/rescue.c: Likewise.
24305 * kern/term.c: Likewise.
24306 * kern/i386/dl.c: Likewise.
24307 * kern/i386/pc/init.c: Likewise.
24308 * kern/i386/pc/lzo1x.S: Likewise.
24309 * kern/i386/pc/startup.S: Likewise.
24310 * loader/i386/pc/chainloader.c: Likewise.
24311 * loader/i386/pc/linux.c: Likewise.
24312 * loader/i386/pc/multiboot.c: Likewise.
24313 * normal/cmdline.c: Likewise.
24314 * normal/command.c: Likewise.
24315 * normal/main.c: Likewise.
24316 * normal/menu.c: Likewise.
24317 * normal/i386/setjmp.S: Likewise.
24318 * term/i386/pc/console.c: Likewise.
24319 * term/i386/pc/vga.c: Likewise.
24320 * util/console.c: Likewise.
24321 * util/genmoddep.c: Likewise.
24322 * util/misc.c: Likewise.
24323 * util/pupa-emu.c: Likewise.
24324 * util/resolve.c: Likewise.
24325 * util/unifont2pff.rb: Likewise.
24326 * util/i386/pc/biosdisk.c: Likewise.
24327 * util/i386/pc/getroot.c: Likewise.
24328 * util/i386/pc/pupa-mkimage.c: Likewise.
24329 * util/i386/pc/pupa-setup.c: Likewise.
24330
e6eced71 243312004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
24332
24333 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
24334 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
24335 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
24336 reading and reset it after reading.
24337 (pupa_ext2_close): Return PUPA_ERR_NONE.
24338
24339 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
24340 Correct value.
24341 (struct linux_kernel_header): Add kernel_version and
24342 initrd_addr_max.
24343 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
24344 pupa_file_read succeeds.
24345 (pupa_rescue_cmd_initrd): Implement.
24346
5aded270 243472003-12-03 Marco Gerards <metgerards@student.han.nl>
24348
24349 * fs/ext2.c (pupa_ext2_label): New function.
24350 (pupa_ext2_fs): Added label.
24351 * fs/fat.c (pupa_fat_label): New function.
24352 (pupa_fat_fs): Added label.
24353 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
24354
24355 * kern/misc.c (pupa_strndup): New function.
24356 * include/pupa/misc.h (pupa_strndup): New prototype.
24357
24358 * include/pupa/normal.h: Include <pupa/err.h>.
24359 (pupa_set_history): New prototype.
24360 (pupa_iterate_commands): New prototype.
24361 * normal/cmdline.c: Include <pupa/machine/partition.h>,
24362 <pupa/disk.h>, <pupa/file.h>.
24363 (hist_size): New variable.
24364 (hist_lines): Likewise.
24365 (hist_end): Likewise.
24366 (hist_used): Likewise.
24367 (pupa_set_history): New function.
24368 (pupa_history_get): Likewise.
24369 (pupa_history_add): Likewise.
24370 (pupa_history_replace): Likewise.
24371 (pupa_tab_complete): Likewise.
24372 (pupa_cmdline_run): Added tab completion and history buffer. Tab
24373 completion shows partitionnames while completing partitions, this
24374 feature was suggested by Jeff Bailey.
24375 * normal/command.c (pupa_iterate_commands): New function.
24376 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
24377 (pupa_normal_init): Initialize history buffer.
24378 (PUPA_MOD_INIT): Likewise.
24379 (pupa_normal_fini): Free the history buffer.
24380 (PUPA_MOD_FINI): Likewise.
24381
24382 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
24383 key.
24384
24385 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
24386 * configure.ac [i386]: Check for regparam bug.
24387 (NESTED_FUNC_ATTR) [! i386]: Defined.
24388
1f7315a3 243892003-11-17 Marco Gerards <metgerards@student.han.nl>
24390
24391 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
24392 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
24393 (pupa_emu_SOURCES): New variable.
24394 (pupa_emu_LDFLAGS): Likewise.
24395 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
24396 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
24397 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
24398 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
24399 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
24400 (pupa_jmp_buf): New typedef.
24401 (pupa_setjmp) [PUPA_UTIL]: New macro.
24402 (pupa_longjmp) [PUPA_UTIL]: Likewise.
24403 * include/pupa/term.h (struct pupa_term): New member `refresh'.
24404 (pupa_refresh): New prototype.
24405 * include/pupa/util/getroot.h: New file.
24406 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
24407 it.
24408 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
24409 (pupa_rescue_cmd_cat): Likewise.
24410 (pupa_rescue_cmd_ls): Likewise.
24411 (pupa_rescue_cmd_testload): Likewise.
24412 (pupa_rescue_cmd_lsmod): Likewise.
24413 * normal/cmdline.c (pupa_cmdline_get): Likewise.
24414 * normal/menu.c (run_menu): Likewise.
24415 * kern/term.c (pupa_cls): Likewise.
24416 (pupa_refresh): New function.
24417 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
24418 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
24419 * util/console.c: New file.
f19dbdb7 24420
1f7315a3 24421 * util/i386/pc/getroot.c: New file.
24422 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
24423 (pupa_putchar): New function.
24424 (pupa_refresh): Likewise.
24425 (xgetcwd): Function moved to ...
24426 (strip_extra_slashes): Likewise.
24427 (get_prefix): Likewise.
f19dbdb7 24428 * util/i386/pc/getroot.c: ... here.
1f7315a3 24429 (find_root_device): Function moved and renamed to...
24430 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
24431 Changed all callers.
24432 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
24433 and renamed to...
24434 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
24435 Changed all callers.
24436 * util/misc.c (pupa_memalign): New function.
24437 (pupa_mm_init_region): Likewise.
24438 (pupa_register_exported_symbols): Likewise.
24439 (pupa_putchar): Function removed.
24440 * util/pupa-emu.c: New file.
24441
9a5c1ade 244422003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
24443
24444 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
24445 (_multiboot_mod_SOURCES): New variable.
24446 (_multiboot_mod_CFLAGS): Likewise.
24447 * loader/i386/pc/multiboot.c: New file.
24448 * include/pupa/i386/pc/multiboot.h: Likewise.
24449 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
24450 (pupa_multiboot_real_boot): New function.
24451 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
24452 (pupa_multiboot_real_boot): New prototype.
24453 (pupa_rescue_cmd_multiboot): Likewise
24454 (pupa_rescue_cmd_module): Likewise.
24455
24456 * kern/loader.c (pupa_loader_set): Continue when
24457 pupa_loader_unload_func() fails.
24458 (pupa_loader_unset): New function.
24459 * include/pupa/loader.h (pupa_loader_unset): New prototype.
24460
24461 * kern/misc.c (pupa_stpcpy): New function.
24462 * include/pupa/misc.h (pupa_stpcpy): New prototype.
24463
8e72a9c0 244642003-11-12 Marco Gerards <metgerards@student.han.nl>
24465
24466 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
24467 for available extensions.
24468
24469 * include/pupa/i386/pc/time.h: New file.
24470 * kern/disk.c: Include <pupa/machine/time.h>.
24471 (PUPA_CACHE_TIMEOUT): New macro.
24472 (pupa_last_time): New variable.
24473 (pupa_disk_open): Flush the cache when there was a timeout.
24474 (pupa_disk_close): Reset the timer.
24475 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
24476 pupa_currticks.
24477 * util/misc.c: Include <sys/times.h>
24478 (pupa_get_rtc): New function.
24479
c4adbd32 244802003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
24481
24482 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
24483 as blocks.
24484 (pupa_ext2_get_file_block): Use blocks member.
24485
24486 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
24487 first block. Return -1 instead of pupa_errno on error.
24488
bfd30f06 244892003-10-27 Marco Gerards <metgerards@student.han.nl>
24490
24491 * README: In the pupa-mkimage example use _chain instead of chain
24492 and ext2 instead of fat.
24493 * TODO: Replace ext2fs with jfs as an example. Add an item for
24494 adding journal playback for ext2fs.
24495 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
24496 (pkgdata_MODULES): Added ext2.mod.
24497 (ext2_mod_SOURCES): New variable.
24498 (ext2_mod_CFLAGS): Likewise.
24499 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
24500 * include/pupa/misc.h (pupa_strncpy): New prototype.
24501 (pupa_strcat): Likewise.
24502 (pupa_strncmp): Likewise.
24503 * kern/misc.c (pupa_strcat): Enable function.
24504 (pupa_strncpy): New function.
24505 (pupa_strncmp): Likewise.
24506 * fs/ext2.c: New file.
f19dbdb7 24507
bfd30f06 24508 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
24509 when the read failed before retrying.
24510 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
24511 (_FILE_OFFSET_BITS): Likewise.
24512 * configure.ac: Added AC_SYS_LARGEFILE.
24513
98d15063 245142003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
24515
24516 * genmk.rb (PModule#rule): Make sure to get only symbol names
24517 from the output of nm.
59cad637 24518 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 24519
18d9c7cd 245202003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
24521
24522 I forgot to check in these changes for a long time. This adds
24523 incomplete support for VGA console, and this is still very
24524 buggy. Also, a lot of consideration is required for I18N,
24525 UNICODE, and VGA font issues. Therefore, assume that this is
24526 such that "better than nothing".
f19dbdb7 24527
18d9c7cd 24528 * font/manager.c: New file.
24529 * include/pupa/font.h: Likewise.
24530 * include/pupa/i386/pc/vga.h: Likewise.
24531 * term/i386/pc/vga.c: Likewise.
24532 * util/unifont2pff.rb: Likewise.
24533
24534 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
24535 (pkgdata_MODULES): Added vga.mod and font.mod.
24536 (vga_mod_SOURCES): New variables.
24537 (vga_mod_CFLAGS): Likewise.
24538 (font_mod_SOURCES): Likewise.
24539 (font_mod_CFLAGS): Likewise.
24540
24541 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
24542
24543 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 24544 (struct pupa_term): Added init and fini.
18d9c7cd 24545 Changed the argument of putchar to pupa_uint32_t.
24546
24547 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
24548 (pupa_console_real_putchar): New prototype.
24549 (pupa_console_putchar): Removed.
24550 (pupa_console_checkkey): Exported.
24551 (pupa_console_getkey): Likewise.
24552
24553 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
24554 characters.
24555
24556 * kern/term.c (pupa_term_set_current): Rewritten.
24557 (pupa_putchar): Likewise.
24558 (pupa_putcode): New function.
24559
24560 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
24561 (pupa_console_real_putchar): ... this.
24562 (pupa_vga_set_mode): New function.
24563 (pupa_vga_get_font): Likewise.
24564
24565 * normal/command.c: Include pupa/term.h.
24566 (terminal_command): New function.
24567 (pupa_command_init): Register the command "terminal".
24568
24569 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
24570 (DISP_UP): Likewise.
24571 (DISP_RIGHT): Likewise.
24572 (DISP_DOWN): Likewise.
24573 (DISP_HLINE): Likewise.
24574 (DISP_VLINE): Likewise.
24575 (DISP_UL): Likewise.
24576 (DISP_UR): Likewise.
24577 (DISP_LL): Likewise.
24578 (DISP_LR): Likewise.
24579
24580 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 24581
977329f5 245822003-02-08 NIIBE Yutaka <gniibe@m17n.org>
24583
24584 * util/resolve.c (pupa_util_resolve_dependencies): BUG
24585 FIX. Reverse the path_list.
24586
24587 * include/pupa/normal.h: Export pupa_register_command and
24588 pupa_unregister_command.
24589
24590 * hello/hello.c (pupa_cmd_hello): New module.
24591 * conf/i386-pc.rmk: Added hello.mod.
24592
1f5ab428 245932003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
24594
24595 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 24596
1f5ab428 24597 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
24598 (compress_kernel): New variable.
24599 (generate_image): Heavily modified to support compressing a
24600 large part of the core image.
24601
24602 * util/misc.c (pupa_util_read_image): Fix a file descriptor
24603 leak.
24604 (pupa_util_load_image): New function.
24605
24606 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
24607 (pupa_compressed_size): New variable.
24608 (codestart): Enable Gate A20 here.
24609 Decompress the compressed part of the core image.
24610 Rearrange the code to put functions and variables which are
24611 required for initialization in the non-compressed part.
24612 Include lzo1x.S.
24613
24614 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
24615 here.
24616
24617 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
24618
f19dbdb7 24619 * include/pupa/i386/pc/kernel.h
1f5ab428 24620 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
24621 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
24622 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
24623 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
24624 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
24625
24626 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
24627
24628 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
24629 (Utility#rule): Likewise.
24630
24631 * configure.ac: Check if LZO is available.
24632
ce5bf700 246332003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
24634
24635 * include/pupa/normal.h: New file.
24636 * include/pupa/setjmp.h: Likewise.
24637 * include/pupa/i386/setjmp.h: Likewise.
24638 * normal/cmdline.c: Likewise.
24639 * normal/command.c: Likewise.
24640 * normal/main.c: Likewise.
24641 * normal/menu.c: Likewise.
24642 * normal/i386/setjmp.S: Likewise.
f19dbdb7 24643
ce5bf700 24644 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
24645 (pupa_rescue_cmd_initrd): Likewise.
24646
24647 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
24648 Likewise.
24649
24650 * kern/i386/pc/startup.S (translation_table): New variable.
24651 (translate_keycode): New function.
24652 (pupa_console_getkey): Call translate_keycode.
24653
24654 * kern/rescue.c (attempt_normal_mode): New function.
24655 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
24656 it failed, print a message.
24657
24658 * kern/mm.c (pupa_real_malloc): Print more information when a
24659 free magic is broken.
24660 (pupa_free): If the first free header is not free actually, set
24661 it to P.
24662
24663 * kern/main.c (pupa_load_normal_mode): Just load the module
24664 "normal".
24665 (pupa_main): Don't print the message
24666 "Entering into rescue mode..." here.
24667
24668 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
24669 Declared.
24670 (pupa_rescue_cmd_initrd): Likewise.
24671 (pupa_rescue_cmd_initrd): Likewise.
24672
24673 * include/pupa/symbol.h (FUNCTION): Specify the type.
24674 (VARIABLE): Likewise.
24675
24676 * include/pupa/err.h (pupa_err_t): Added
24677 PUPA_ERR_UNKNOWN_COMMAND.
24678
24679 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
24680 (pupa_dl_get_prefix): Likewise.
24681
24682 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
24683 Added _chain.mod and _linux.mod instead of chain.mod and
24684 linux.mod.
24685 (chain_mod_SOURCES): Renamed to ...
24686 (_chain_mod_SOURCES): ... this.
24687 (chain_mod_CFLAGS): Renamed to ...
24688 (_chain_mod_CFLAGS): ... this.
24689 (linux_mod_SOURCES): Renamed to ...
24690 (_linux_mod_SOURCES): ... this.
24691 (linux_mod_CFLAGS): Renamed to ...
24692 (_linux_mod_CFLAGS): ... this.
24693 (normal_mod_SOURCES): New variable.
24694 (normal_mod_CFLAGS): Likewise.
24695 (normal_mod_ASFLAGS): Likewise.
24696
246972003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
24698
24699 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
24700 possible.
24701
fe6b695a 24702 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 24703 recursively.
24704 (pupa_dl_unref): Unrefer depending modules recursively.
24705 Don't call pupa_dl_unload implicitly, because PUPA can crash if
24706 a module is unloaded before one depending on that module is
24707 unloaded.
24708 (pupa_dl_unload): Unload depending modules explicitly,
24709 if possible.
24710
c04da074 247112003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
24712
24713 * include/pupa/i386/pc/linux.h: New file.
24714 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 24715
c04da074 24716 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
24717 Removed.
24718 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
24719 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
24720 of PUPA_CHAINLOADER_BOOT_SECTOR.
24721
24722 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
24723 (pupa_linux_prot_size): New variable.
24724 (pupa_linux_tmp_addr): Likewise.
24725 (pupa_linux_real_addr): Likewise.
24726 (pupa_linux_boot_zimage): New function.
24727 (pupa_linux_boot_bzimage): Likewise.
24728
24729 * kern/i386/pc/init.c (struct mem_region): New structure.
24730 (MAX_REGIONS): New macro.
24731 (mem_regions): New variable.
24732 (num_regions): Likewise.
24733 (pupa_os_area_addr): Likewise.
24734 (pupa_os_area_size): Likewise.
24735 (pupa_lower_mem): Likewise.
24736 (pupa_upper_mem): Likewise.
24737 (add_mem_region): New function.
24738 (compact_mem_regions): Likewise.
24739 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
24740 the size of the conventional memory and that of so-called upper
24741 memory (before the first memory hole).
24742 Instead of adding each found region to free memory, use
24743 add_mem_region and add them after removing overlaps.
24744 Also, add only 1/4 of the upper memory to free memory. The rest
24745 is used for loading OS images. Maybe this is ad hoc, but this
24746 makes it much easier to relocate OS images when booting.
24747
24748 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
24749 (pupa_enter_rescue_mode): Don't register initrd and module.
24750
24751 * kern/mm.c: Include pupa/dl.h.
24752
24753 * kern/main.c: Include pupa/file.h and pupa/device.h.
24754
24755 * kern/loader.c (pupa_loader_load_module_func): Removed.
24756 (pupa_loader_load_module): Likewise.
24757
24758 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
24759 ``.o''.
24760
24761 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
24762 (pupa_linux_tmp_addr): Likewise.
24763 (pupa_linux_real_addr): Likewise.
24764 (pupa_linux_boot_zimage): Likewise.
24765 (pupa_linux_boot_bzimage): Likewise.
24766
24767 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
24768 (pupa_upper_mem): Likewise.
24769 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
24770 module is too dangerous.
24771
24772 * include/pupa/loader.h (pupa_os_area_addr): Declared.
24773 (pupa_os_area_size): Likewise.
24774 (pupa_loader_set): Remove the first argument. Loader doesn't
24775 manage modules or initrd any longer.
24776 (pupa_loader_load_module): Removed.
24777
24778 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
24779 (linux_mod_SOURCES): New variable.
24780 (linux_mod_CFLAGS): Likewise.
24781
a13f9237 247822003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
24783
24784 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
24785 the length of a blocklist correctly.
24786
24787 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
24788 Use ioctl only if the OS file is a block device.
24789 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
24790 not very useful for normal files.
24791
24792 * kern/main.c (pupa_set_root_dev): New function.
24793 (pupa_load_normal_mode): Likewise.
24794 (pupa_main): Call those above.
24795
24796 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
24797 pupa_uint16_t.
24798
24799 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
24800
a5ffe966 248012003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
24802
24803 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
24804 (setup): Configure the installed partition information and the
24805 dl prefix.
24806
24807 * loader/i386/pc/chainloader.c (my_mod): New variable.
24808 (pupa_chainloader_unload): New function.
24809 (pupa_rescue_cmd_chainloader): Refer itself.
24810 (PUPA_MOD_INIT): Save its own module in MY_MOD.
24811
24812 * kern/i386/pc/startup.S (install_partition): Removed.
24813 (version_string): Likewise.
24814 (config_file): Likewise.
24815 (pupa_install_dos_part): New variable.
24816 (pupa_install_bsd_part): Likewise.
24817 (pupa_prefix): Likewise.
24818 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
24819
24820 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
24821 and pupa/misc.h.
24822 (make_install_device): New function.
24823 (pupa_machine_init): Set the dl prefix.
24824
24825 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
24826 (buf): Renamed to ...
24827 (linebuf): ... this.
24828 (pupa_rescue_cmd_prefix): New function.
24829 (pupa_rescue_cmd_insmod): Likewise.
24830 (pupa_rescue_cmd_rmmod): Likewise.
24831 (pupa_rescue_cmd_lsmod): Likewise.
24832 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
24833 rmmod and lsmod.
24834
24835 * kern/mm.c (pupa_memalign): If failed even after invalidating
24836 disk caches, unload unneeded modules and retry.
24837
24838 * kern/misc.c (pupa_memmove): New function.
24839 (pupa_memcpy): Removed.
24840 (pupa_strcpy): New function.
24841 (pupa_itoa): Made static.
24842
24843 * kern/dl.c (pupa_dl_iterate): New function.
24844 (pupa_dl_ref): Likewise.
24845 (pupa_dl_unref): Likewise.
24846 (pupa_dl_unload): Return if succeeded or not.
24847 (pupa_dl_unload_unneeded): New function.
24848 (pupa_dl_unload_all): Likewise.
24849 (pupa_dl_init): Renamed to ...
24850 (pupa_dl_set_prefix): ... this.
24851 (pupa_dl_get_prefix): New function.
24852
24853 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
24854 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
24855 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
24856 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
24857 (pupa_install_dos_part): Declared.
24858 (pupa_install_bsd_part): Likewise.
24859 (pupa_prefix): Likewise.
24860 (pupa_boot_drive): Likewise.
24861
24862 * include/pupa/types.h: Fix a typo.
24863
24864 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
24865 pupa_memmove.
24866 (pupa_memmove): Declared.
24867 (pupa_strcpy): Likewise.
24868
24869 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
24870 pupa_mod_init takes one argument, its own module.
24871 (pupa_dl_unload_unneeded): Declared.
24872 (pupa_dl_unload_all): Likewise.
24873 (pupa_dl_ref): Likewise.
24874 (pupa_dl_unref): Likewise.
24875 (pupa_dl_iterate): Likewise.
24876 (pupa_dl_init): Renamed to ...
24877 (pupa_dl_set_prefix): ... this.
24878 (pupa_dl_get_prefix): Declared.
24879
24880 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 24881 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 24882 unloaded.
24883 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
24884 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
24885
24886 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
24887 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
24888
012d7999 248892003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
24890
24891 * util/i386/pc/pupa-setup.c (setup): Define the internal
24892 function find_first_partition_start at the top level, because GCC
24893 3.0.x cannot compile internal functions in deeper scopes
24894 correctly.
24895 (find_root_device): Use lstat instead of stat.
24896 Don't follow symbolic links.
24897 Fix the path-constructing code.
24898
24899 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
24900 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
24901 by a BLKGETSIZE ioctl first, because block devices don't fill
24902 the member st_mode of the structure stat on Linux.
24903 [__linux__] (linux_find_partition): Use a temporary buffer
24904 REAL_DEV for the working space. Copy it to DEV before returning.
24905 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
24906 buffer cache consistent.
24907 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
24908 strncmp. The previous value was merely wrong.
24909 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
24910
24911 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
24912 FAT size is 12. The previous value was merely wrong.
24913
24914 * kern/main.c (pupa_main): Don't split the starting message from
24915 newlines.
24916
24917 * kern/term.c (pupa_putchar): Put CR after LF instead of before
24918 LF, because BIOS goes crazy about character attributes in this
24919 case.
24920
1cc73a62 249212003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
24922
24923 * include/i386/pc/util/biosdisk.h: New file.
24924 * util/i386/pc/biosdisk.c: Likewise.
24925 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 24926
1cc73a62 24927 * Makefile.in (INCLUDE_DISTFILES): Added
24928 include/pupa/i386/pc/util/biosdisk.h.
24929 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
24930 directory util/i386/pc.
24931 (install-local): Added a rule for sbin_UTILITIES.
24932 (uninstall): Likewise.
24933
24934 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
24935
24936 * util/misc.c (xrealloc): New function.
24937 (pupa_malloc): Likewise.
24938 (pupa_free): Likewise.
24939 (pupa_realloc): Likewise.
24940 (pupa_stop): Likewise.
24941 (pupa_putchar): Likewise.
24942
24943 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
24944
24945 * include/pupa/util/misc.h (xrealloc): Declared.
24946
24947 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
24948 macro.
24949 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
24950 (PUPA_BOOT_MACHINE_BPB_END): ... this.
24951
24952 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
24953 [PUPA_UTIL] (pupa_fat_fini): Likewise.
24954
24955 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
24956 way should be implemented.
24957 [PUPA_UTIL] (pupa_fat_fini): Likewise.
24958
24959 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
24960 the size of NAME for safety.
24961 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
24962 0x88.
24963
24964 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
24965 (pupa_setup_SOURCES): Likewise.
24966
24967 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
24968
08b70fe8 249692002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
24970
24971 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
24972 bunch of pushl's from pusha, because this destroys the return
24973 value.
24974
62ddcc8f 249752002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
24976
24977 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
24978 This means that any missing prototypes could be fatal. Also, you
24979 must take care when writing assembly code. See the comments at
24980 the beginning of startup.S, for more details.
f19dbdb7 24981
62ddcc8f 24982 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
24983 compilation mechanism.
24984 (pupa_chainloader_real_boot): Likewise.
24985 (pupa_biosdisk_rw_int13_extensions): Likewise.
24986 (pupa_biosdisk_rw_standard): Likewise.
24987 (pupa_biosdisk_check_int13_extensions): Likewise.
24988 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
24989 (pupa_biosdisk_get_diskinfo_standard): Likewise.
24990 (pupa_get_memsize): Likewise.
24991 (pupa_get_mmap_entry): Likewise.
24992 (pupa_console_putchar): Likewise.
24993 (pupa_console_setcursor): Likewise.
24994 (pupa_getrtsecs): Use pushl instead of push.
24995
24996 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
24997 memory instead of the stack for a mmap entry, because some
24998 BIOSes may ignore the maximum size and overflow.
24999
25000 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
25001
25002 * genmk.rb (PModule#rule): Compile automatically generated
25003 sources with module-specific CFLAGS as well as other sources.
25004
9962ed99 250052002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
25006
25007 * configure.ac: Check ld.
25008 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
25009 respectively, before checking endianness and sizes.
25010
25011 * Makefile.in (LD): New variable.
f19dbdb7 25012
abdfc3c5 250132002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
25014
25015 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
25016
6a161fa9 250172002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
25018
25019 * Changelog: New file.
25020