]> git.proxmox.com Git - grub2.git/blob - ChangeLog
Do not embed when there are multiple (top-level) partmaps.
[grub2.git] / ChangeLog
1 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
2
3 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
4 multiple (top-level) partmaps.
5
6 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7
8 Bidi and diacritics support.
9
10 * Makefile.in (widthspec.bin): New target.
11 (widthspec.h): Likewise.
12 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
13 * autogen.sh: Generate unidata.c.
14 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
15 * commands/ls.c (grub_ls_list_devices): Likewise.
16 (grub_ls_list_files): Likewise.
17 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
18 (grub_mini_cmd_lsmod): Likewise.
19 * commands/read.c: Likewise.
20 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
21 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
22 * lib/arg.c (grub_arg_show_help): Likewise.
23 * lib/crypto.c (grub_password_get): Likewise.
24 * normal/auth.c (grub_username_get): Likewise.
25 * normal/misc.c (grub_normal_print_device_info): Likewise.
26 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
27 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
28 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
29 (normal/charset.c_DEPENDENCIES): New variable.
30 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
31 (pkglib_MODULES): Remove charset.mod.
32 (charset_mod_SOURCES): Removed.
33 (charset_mod_CFLAGS): Likewise.
34 (charset_mod_LDFLAGS): Likewise.
35 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
36 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
37 and term/tparm.c.
38 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
39 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
40 (kernel_img_HEADERS): Add terminfo.h.
41 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
42 Fill ->font. Reverse ascii bitmaps.
43 (grub_font_get_xheight): New function.
44 * font/font.c (grub_font_get_string_width): Moved from here ...
45 * gfxmenu/font.c (grub_font_get_string_width): ... here.
46 * font/font.c (grub_font_draw_string): Moved from here ...
47 * gfxmenu/font.c (grub_font_draw_string): ... here.
48 * font/font.c (grub_font_dup_glyph): New function.
49 (grub_font_blit_glyph): Likewise.
50 (grub_font_blit_glyph_mirror): Likewise.
51 (blit_comb): Likewise.
52 (grub_font_construct_dry_run): Likewise.
53 (grub_font_get_constructed_device_width): Likewise.
54 (grub_font_construct_glyph): Likewise.
55 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
56 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
57 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
58 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
59 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
60 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
61 (grub_font_get_xheight): New proto.
62 (grub_font_get_constructed_device_width): Likewise.
63 (grub_font_construct_glyph): Likewise.
64 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
65 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
66 * include/grub/font.h (grub_font_draw_string): Moved from here ...
67 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
68 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
69 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
70 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
71 (grub_console_getcharwidth): Likewise.
72 * include/grub/misc.h (grub_xputs): New proto.
73 (grub_puts): Inlined.
74 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
75 (grub_normal_get_line_counter): Removed.
76 (grub_install_newline_hook): Likewise.
77 (grub_normal_get_char_counter): New proto.
78 (grub_normal_reset_more): Likewise.
79 (grub_xputs_normal): Likewise.
80 * include/grub/powerpc/ieee1275/console.h: Removed.
81 * include/grub/sparc64/ieee1275/console.h: Likewise.
82 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
83 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
84 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
85 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
86 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
87 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
88 (grub_term_input): Pass reference to self. All users updated.
89 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
90 Pass reference to self. New fields normal_color, highlight_color and
91 data. All users updated.
92 (grub_putchar): Removed.
93 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
94 (grub_unicode_estimate_width): New function.
95 (grub_term_getcharwidth): Add defaults.
96 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
97 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
98 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
99 (grub_cls): Remove EXPORT_FUNC.
100 (grub_setcolorstate): Inline.
101 (grub_newline_hook): Removed.
102 * include/grub/terminfo.h: Rewritten. All users updated.
103 * include/grub/unicode.h: New file.
104 * include/grub/video.h (grub_video_signed_rect): New type.
105 * kern/emu/console.c (grub_console_highlight_color): Removed.
106 (grub_console_normal_color): Likewise.
107 (grub_console_standard_color): Made static.
108 (grub_ncurses_putchar): Remove mapping.
109 (grub_ncurses_getcharwidth): Removed.
110 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
111 (grub_ncurses_setcolor): Removed.
112 (grub_ncurses_getcolor): Likewise.
113 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
114 (grub_console_putchar): ... this.
115 (grub_console_putchar): Handle argument difference.
116 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
117 console_init_early and console_init_lately.
118 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
119 * kern/misc.c (grub_puts): Removed.
120 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
121 (grub_vsnprintf_real): Remove str = NULL support.
122 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
123 * normal/charset.c (grub_utf8_to_ucs4): ... here.
124 * kern/term.c (grub_putcode): Renamed to ...
125 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
126 (grub_putchar): Removed.
127 (grub_xputs_dumb): New function.
128 (grub_xputs): New variable.
129 * lib/charset.c: Move from here ...
130 * normal/charset.c: ... to here.
131 (grub_ucs4_to_utf8): New function.
132 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
133 (join_types): New variable.
134 (unpack_join): New function.
135 (bidi_types): New variable.
136 (unpack_bidi): New function.
137 (get_bidi_type): Likewise.
138 (get_join_type): Likewise.
139 (is_mirrored): Likewise.
140 (grub_unicode_get_comb_type): Likewise.
141 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
142 (is_type_after): Likewise.
143 (grub_unicode_aglomerate_comb): Likewise.
144 (bidi_line_wrap): Likewise.
145 (grub_bidi_line_logical_to_visual): Likewise.
146 (grub_bidi_logical_to_visual): Likewise.
147 (grub_unicode_mirror_code): Likewise.
148 (grub_unicode_shape_code): Likewise.
149 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
150 Don't use grub_putchar.
151 * normal/main.c (grub_normal_init_page): Use grub_putcode.
152 (grub_normal_reader_init): Likewise.
153 (grub_xputs_saved): New variable.
154 (GRUB_MOD_INIT): Set grub_xputs.
155 (GRUB_MOD_FINI): Restore grub_xputs.
156 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
157 (menu_init): Avoid printing gfxmenu error.
158 (show_menu): Use grub_normal_get_char_counter.
159 * normal/menu_entry.c (update_screen): Fix out-of-array.
160 (complete): Avoid NULL dereferencing.
161 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
162 * normal/menu_text.c (print_spaces): Removed.
163 (grub_print_ucs4): Likewise.
164 (grub_print_message_indented): Use grub_print_ucs4.
165 (print_message): Use grub_putcode.
166 (print_entry): Hanlde diacritics.
167 * normal/term.c (term_state): New type.
168 (grub_more_lines): Removed.
169 (term_states): New variable.
170 (grub_normal_line_counter): Renamed to ..
171 (grub_normal_char_counter): ...this. All users updated.
172 (grub_normal_get_line_counter): Renamed to ...
173 (grub_normal_get_char_counter): ... this.
174 (grub_normal_reset_more): New function.
175 (process_newline): Removed.
176 (print_more): New function.
177 (grub_install_newline_hook): Removed.
178 (map_code): New function.
179 (grub_puts_terminal): Use grub_print_ucs4.
180 (putglyph): New function.
181 (putcode_real): Likewise.
182 (grub_putcode): Use putcode_real.
183 (get_maxwidth): New function.
184 (get_startwidth): Likewise.
185 (print_ucs4_terminal): Likewise.
186 (find_term_state): Likewise.
187 (put_glyphs_terminal): Likewise.
188 (print_backlog): Likewise.
189 (print_ucs4_real): Likewise.
190 (grub_print_ucs4): Likewise.
191 (grub_xputs_normal): Likewise.
192 * term/efi/console.c (grub_console_putchar): Output diacritics.
193 (grub_console_getcharwidth): Removed.
194 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
195 * term/gfxterm.c (clear_char): Free chars.
196 (scroll_up): Avoid leaking memory.
197 (grub_gfxterm_putchar): Support diacritics.
198 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
199 * term/i386/pc/console.c (grub_console_term_output): Declare as
200 GRUB_TERM_CODE_TYPE_VGA.
201 * term/i386/pc/vga.c (grub_vga_term): Declare as
202 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
203 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
204 GRUB_TERM_CODE_TYPE_VGA.
205 * term/i386/vga_common.c (map_char): Removed.
206 (grub_console_putchar): Likewise.
207 (grub_console_getcharwidth): Likewise.
208 * term/ieee1275/ofconsole.c: Simplify using terminfo.
209 (colors): Reordered to match terminfo.
210 (grub_ofconsole_normal_color): Removed.
211 (grub_ofconsole_writeesc): Likewise.
212 (grub_ofconsole_highlight_color): Likewise.
213 (grub_ofconsole_getcharwidth): Likewise.
214 (grub_ofconsole_setcolorstate): Likewise.
215 (grub_ofconsole_setcolor): Likewise.
216 (grub_ofconsole_getcolor): Likewise.
217 (grub_ofconsole_readkey): Renamed to ...
218 (readkey): ... this. Remove escape sequence handling. Return -1 on no
219 key.
220 (grub_ofconsole_checkkey): Removed.
221 (grub_ofconsole_getkey): Likewise.
222 (grub_ofconsole_getxy): Likewise.
223 (grub_ofconsole_gotoxy): Likewise.
224 (grub_ofconsole_cls): Likewise.
225 (grub_ofconsole_refresh): Likewise.
226 (grub_ofconsole_terminfo_input): New struct.
227 (grub_ofconsole_terminfo_output): Likewise.
228 (grub_ofconsole_term_input): Use terminfo.
229 (grub_ofconsole_term_output): Likewise.
230 (grub_console_init): Split into ...
231 (grub_console_init_early): ...this and ...
232 (grub_console_init_lately): ...this. Use terminfo.
233 (grub_ofconsole_putchar): Renamed to ...
234 (put): ... this. Remove mapping.
235 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
236 * term/serial.c: Simplify using terminfo.
237 (xpos): Removed.
238 (ypos): Likewise.
239 (keep_track): Likewise.
240 (registered): Likewise.
241 (input_buf): Likewise.
242 (npending): Likewise.
243 (serial_translate_key_sequence): Likewise.
244 (fill_input_buf): Likewise.
245 (grub_serial_checkkey): Likewise.
246 (grub_serial_getkey): Likewise.
247 (grub_serial_getxy): Likewise.
248 (grub_serial_gotoxy): Likewise.
249 (grub_serial_putchar): Likewise.
250 (grub_serial_cls): Likewise.
251 (grub_serial_setcolorstate): Likewise.
252 (grub_serial_setcursor): Likewise.
253 (serial_hw_init): Use serial_hw_fetch.
254 (grub_serial_terminfo_input): New variable.
255 (grub_serial_terminfo_output): Likewise.
256 (grub_serial_term_input): Use terminfo.
257 (grub_serial_term_output): Likewise.
258 * term/terminfo.c (putstr): Use put.
259 (grub_terminfo_all_free): New function
260 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
261 (grub_terminfo_output_register): New function.
262 (grub_terminfo_output_unregister): Likewise.
263 (grub_terminfo_getxy): Likewise.
264 (grub_terminfo_readkey): Likewise.
265 (grub_terminfo_checkkey): Likewise.
266 (grub_terminfo_getkey): Likewise.
267 (grub_terminfo_input_init): Likewise.
268 (print_terminfo): Likewise.
269 (grub_cmd_terminfo): Handle encoding.
270 (grub_terminfo_gotoxy): Track position.
271 (grub_terminfo_cls): Likewise.
272 (grub_terminfo_putchar): Likewise.
273 (grub_terminfo_setcolorstate): Handle colors
274 (grub_terminfo_cursor_on): This ...
275 (grub_terminfo_cursor_off): ... and this merged into ...
276 (grub_terminfo_setcursor): ... this.
277 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
278 * unicode/ArabicShaping.txt: New file (imported from Unicode).
279 * unicode/BidiMirroring.txt: Likewise.
280 * unicode/UnicodeData.txt: Likewise.
281 * unicode/COPYING: Likewise.
282 * util/grub-editenv.c (grub_putchar): Removed.
283 (grub_xputs_real): New function.
284 (grub_xputs): New variable.
285 * util/grub-fstest.c (grub_putchar): Removed.
286 (grub_xputs_real): New function.
287 (grub_xputs): New variable.
288 * util/grub-mkdevicemap.c (grub_putchar): Removed.
289 (grub_xputs_real): New function.
290 (grub_xputs): New variable.
291 * util/grub-probe.c (grub_putchar): Removed.
292 (grub_xputs_real): New function.
293 (grub_xputs): New variable.
294 * util/grub-script-check.c (grub_putchar): Removed.
295 (grub_xputs_real): New function.
296 (grub_xputs): New variable.
297 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
298 (grub_xputs_real): New function.
299 (grub_xputs): New variable.
300 * util/import_unicode.py: New file.
301 * util/grub-mkfont.c (ft_errmsgs): New array.
302 (grub_glyph_info): Make bitmap a pointer.
303 (file_formats): New type WIDTH_SPEC.
304 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
305 (options): Add width-spec.
306 (help): Likewise.
307 (add_char): Renamed to ...
308 (add_glyph): ... this.
309 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
310 (glyph_replace): New type.
311 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
312 (add_char): New function.
313 (add_subst): Likewise.
314 (process_cursive): Likewise.
315 (add_font): Handle GSUB.
316 (write_font_width_spec): New function.
317 (main): Sort glyphs.
318 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
319 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
320 * kern/term.c (grub_cls): Moved from here...
321 * normal/term.c (grub_cls): ... here.
322
323 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
324
325 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
326 suitable for using within the format argument of printf when
327 converting grub_size_t.
328 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
329 "x" to convert grub_size_t arguments.
330
331 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
332
333 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
334 too long captions.
335 (list_get_minimal_size): Take selection box into account.
336
337 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
338
339 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
340 NULL font.
341
342 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
343
344 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
345 devices when iterating over /dev/disk/by-id; they will be handled
346 later if appropriate, which they aren't always (e.g. LVM).
347
348 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
349
350 * include/grub/misc.h (grub_reboot): Declare as noreturn.
351 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
352 fails.
353 (grub_halt): Likewise.
354 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
355 reset-all fails.
356 (grub_halt): Don't return, even if all of shut-down, power-off, and
357 poweroff fail.
358
359 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
360
361 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
362 arguments, not three.
363
364 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
365
366 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
367 * util/grub.d/10_linux.in: Use it to check for LVM, so that
368 LVM-on-RAID is handled correctly.
369
370 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
371
372 * docs/grub.texi (Changes from GRUB Legacy): New section.
373 (Future): Fix typo.
374
375 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
376
377 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
378 grub.d/README accidentally ends up executable for one reason or
379 another. Ignore it.
380
381 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
382
383 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
384 (gpt_partition_map_iterate): Support non-512B sectors.
385
386 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
387
388 * kern/efi/init.c (grub_efi_init): Disable watchdog.
389 Tested by: Seth Goldberg.
390
391 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
392
393 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
394 Properly align mbi.
395 Reported by: Seth Goldberg.
396
397 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
398
399 * util/grub-mkrescue.in: Avoid module duplication.
400
401 2010-07-01 Sean Finney <seanius@seanius.net>
402
403 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
404
405 2010-07-01 Sean Finney <seanius@seanius.net>
406
407 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
408
409 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
410
411 * disk/lvm.c (grub_lvm_checkvalue): New function.
412 (grub_lvm_check_flag): Likewise.
413
414 2010-07-01 Robert Millan <rmh@gnu.org>
415
416 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
417 Support 'p' as partition separator on kernel of FreeBSD (used
418 with GPT labels).
419 (grub_util_biosdisk_get_grub_dev): Likewise.
420
421 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
422
423 Yeeloong firmware port.
424
425 * boot/mips/yeeloong/fwstart.S: New file.
426 * bus/cs5536.c (gpiodump): New const.
427 (set_io_space): New function.
428 (set_iod): Likewise.
429 (set_p2d): Likewise.
430 (grub_cs5536_init_geode): Likewise.
431 * commands/mips/yeeloong/lsspd.c: New file.
432 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
433 (serial_mod_SOURCES): New variable.
434 (serial_mod_CFLAGS): Likewise.
435 (serial_mod_LDFLAGS): Likewise.
436 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
437 term/terminfo.c and term/tparm.c.
438 (pkglib_IMAGES): Add fwstart.img.
439 (fwstart_img_SOURCES): New variable.
440 (fwstart_img_CFLAGS): Likewise.
441 (fwstart_img_ASFLAGS): Likewise.
442 (fwstart_img_LDFLAGS): Likewise.
443 (fwstart_img_FORMAT): Likewise.
444 (pkglib_MODULES): Add lsspd.mod.
445 (lsspd_mod_SOURCES): New variable.
446 (lsspd_mod_CFLAGS): Likewise.
447 (lsspd_mod_LDFLAGS): Likewise.
448 (pkglib_MODULES): Add halt.mod.
449 (halt_mod_SOURCES): New variable.
450 (halt_mod_CFLAGS): Likewise.
451 (halt_mod_LDFLAGS): Likewise.
452 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
453 (serial_mod_SOURCES): Removed.
454 (serial_mod_CFLAGS): Likewise.
455 (serial_mod_LDFLAGS): Likewise.
456 * disk/ata.c (check_device): New function.
457 (grub_ata_device_initialize): Use check_device.
458 (grub_ata_iterate): Recheck devices.
459 (grub_ata_open): Likewise.
460 (grub_atapi_iterate): Likewise.
461 (grub_atapi_open): Likewise.
462 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
463 (GRUB_ATA_CH1_PORT1): Likewise.
464 (GRUB_ATA_CH0_PORT2): Likewise.
465 (GRUB_ATA_CH1_PORT2): Likewise.
466 * include/grub/mips/loongson.h: New file.
467 * include/grub/mips/yeeloong/ec.h: Likewise.
468 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
469 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
470 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
471 * include/grub/misc.h (grub_halt): Declare as noreturn.
472 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
473 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
474 (UART_ENABLE_FIFO_TRIGGER1): New definition.
475 (UART_ENABLE_DTRRTS): Likewise.
476 (UART_ENABLE_MODEM): Removed.
477 (UART_ENABLE_OUT2): New const.
478 * include/grub/term.h (grub_term_register_input_active): New function.
479 (grub_term_register_output_active): Likewise.
480 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
481 argument.
482 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
483 (init_pci): New function.
484 (grub_machine_init): Execute platform init when firmware. Init serial.
485 (grub_halt): Implement.
486 (grub_exit): Likewise.
487 (grub_reboot): Likewise.
488 * term/serial.c (serial_hw_init): Update macros.
489 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
490 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
491 (image_targets): New target mipsel-yeeloong-flash.
492 (generate_image): Support IMAGE_YEELOONG_FLASH.
493 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
494 (grub_video_sm712_setup): Init card.
495 (grub_video_sm712_set_palette): Removed.
496 * video/sm712_init.c: New file.
497
498 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
499
500 * Makefile.in (install-local): Temporarily prepend $(builddir) to
501 PATH when running help2man and then run it on the unadorned
502 executable names, rather than passing $(builddir)/* paths to
503 help2man. This avoids the build directory ending up in generated
504 manual pages.
505
506 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
507
508 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
509 to avoid accidents when debugging with 'sh -x'.
510 * util/grub-mkrescue.in: Likewise.
511 * util/grub.d/00_header.in: Likewise.
512 * util/grub.d/10_hurd.in: Likewise.
513 * util/grub.d/10_kfreebsd.in: Likewise.
514 * util/grub.d/10_linux.in: Likewise.
515 * util/grub.d/10_netbsd.in: Likewise.
516 * util/grub.d/10_windows.in: Likewise.
517 * util/grub.d/20_linux_xen.in: Likewise.
518 * util/grub.d/30_os-prober.in: Likewise.
519 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
520
521 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
522
523 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
524 last character in the buffer.
525 Reported by: Vladimir Serbinenko.
526
527 2010-06-29 Robert Millan <rmh@gnu.org>
528
529 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
530 (Command-line and menu entry commands): Document `badram' command.
531
532 2010-06-28 Robert Millan <rmh@gnu.org>
533
534 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
535 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
536 command using ${GRUB_BADRAM} as parameter.
537
538 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
539
540 * docs/grub.texi (Device map): New section.
541 (Themes): New section (stub).
542 * Makefile.in (docs/grub.info): The info documentation now builds
543 without errors. Make sure it stays that way.
544
545 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
546
547 Use normal parser for menu entries.
548 Reported by: Thomas Frauendorfer
549
550 * include/grub/parser.h (grub_parser_execute): Don't export.
551 * normal/menu.c (grub_menu_execute_entry_real): New function.
552 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
553
554 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
555
556 * docs/grub.texi (Embedded configuration): New section (replacing
557 old "Preset Menu" stub).
558 (Images): New section.
559 (configfile): Note that any menu entries defined in `file' are shown
560 immediately.
561
562 2010-06-28 Josh Triplett <josh@joshtriplett.org>
563
564 * mmap/i386/pc/mmap_helper.S: Set CF on return.
565
566 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
567
568 * util/grub-install.in: Add --debug-image= option.
569
570 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
571
572 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
573 possible on Linux.
574
575 * util/deviceiter.c (check_device): Rename to ...
576 (check_device_readable_unique): ... this. Update all callers.
577 Maintain and check a list of which devices (by canonicalized name)
578 have already been seen.
579 (clear_seen_devices): New function.
580 (compare_file_names) [__linux__]: New function.
581 (grub_util_iterate_devices): Clear the list of seen devices on exit
582 and (just in case) on entry.
583 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
584 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
585 seen-devices list, superseded by general code in check_device.
586
587 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
588
589 * commands/cat.c (options): New variable.
590 (grub_cmd_cat): Parse options. If the --dos option is given, print
591 DOS-style "\r\n" line endings as simple newlines (Debian bug
592 #586358).
593 (GRUB_MOD_INIT): Use extcmd.
594 (GRUB_MOD_FINI): Likewise.
595 * docs/grub.texi (cat): Document --dos.
596
597 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
598
599 XEN with Linux grub-mkconfig support.
600
601 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
602 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
603 GRUB_CMDLINE_XEN_DEFAULT.
604 * util/grub.d/20_linux_xen.in: New file.
605
606 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
607
608 Initialise VGA video on qemu ourselves.
609
610 * boot/i386/qemu/boot.S: Don't call 0xc000.
611 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
612 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
613 (kernel_img_HEADERS): Add pci.h.
614 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
615 * configure.ac: Force unifont on qemu and yeeloong.
616 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
617 (grub_vga_palette_write): Use correct register.
618 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
619 Call grub_qemu_init_cirrus.
620 * kern/i386/qemu/init.c: New file.
621 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
622
623 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
624
625 2010-06-26 Pavel Roskin <proski@gnu.org>
626
627 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
628 13.
629
630 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
631
632 * docs/grub.texi (Simple configuration): Explain that
633 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
634 set to `true' to disable their respective recovery entries, not
635 merely set.
636
637 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
638
639 Make the `source' command slightly faster.
640
641 * normal/main.c (grub_normal_execute): Don't re-read list files when
642 nested.
643
644 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
645
646 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
647 field position and mask size to red fields from mode_info, not
648 green.
649 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
650 Remove redundant tag->common.framebuffer_type assignment.
651 Reported by: Seth Goldberg.
652
653 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
654
655 Sync up other versions of the Linux loader with Robert Millan's
656 change of 2010-01-09, "Make loader output a bit more user-friendly".
657
658 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
659 grub_dprintf().
660 (grub_cmd_linux): Likewise.
661 (grub_cmd_initrd): Likewise.
662 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
663 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
664
665 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
666
667 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
668 larger than MEMORY_MAP_SIZE.
669
670 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
671
672 Fix parallel build.
673
674 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
675 dependency.
676 * script/parser.y: #include grub_script.tab.h header.
677
678 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
679
680 Support >3GiB and <16MiB RAM in i386-qemu.
681
682 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
683 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
684 (grub_lower_mem): Removed.
685 (grub_upper_mem): Likewise.
686 (mem_size): Made static.
687 (above_4g): New variable.
688 (grub_machine_mmap_init): Detect small mem_size and above_4g.
689 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
690 support.
691
692 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
693
694 Cirrus 5446 and Bochs video cards support.
695
696 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
697 video_bochs.mod
698 (video_cirrus_mod_SOURCES): New variable.
699 (video_cirrus_mod_CFLAGS): Likewise.
700 (video_cirrus_mod_LDFLAGS): Likewise.
701 (video_bochs_mod_SOURCES): Likewise.
702 (video_bochs_mod_CFLAGS): Likewise.
703 (video_bochs_mod_LDFLAGS): Likewise.
704 * include/grub/vga.h: New file.
705 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
706 (grub_video_fb_set_page_t): New type.
707 (grub_video_fb_setup): New prototype.
708 (grub_video_fb_swap_buffers): Likewise.
709 (grub_video_fb_get_info_and_fini): Likewise.
710 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
711 (CRTC_DATA_PORT): Likewise.
712 (CRTC_CURSOR): Likewise.
713 (CRTC_CURSOR_ADDR_HIGH): Likewise.
714 (CRTC_CURSOR_ADDR_LOW): Likewise.
715 (CRTC_CURSOR_DISABLE): Likewise.
716 (update_cursor): Use grub_vga_cr_write.
717 (grub_vga_text_setcursor): Likewise.
718 * video/bochs.c: New file.
719 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
720 (palette): Likewise.
721 (palette_size): Likewise.
722 (framebuffer): New variable.
723 (grub_video_fb_init): Use 'framebuffer'.
724 (grub_video_fb_fini): Likewise.
725 (grub_video_fb_get_info): Likewise.
726 (grub_video_fb_get_palette): Likewise.
727 (grub_video_fb_set_palette): Likewise.
728 (grub_video_fb_set_viewport): Likewise.
729 (grub_video_fb_get_viewport): Likewise.
730 (grub_video_fb_map_color): Likewise.
731 (grub_video_fb_map_rgb): Likewise.
732 (grub_video_fb_map_rgba): Likewise.
733 (grub_video_fb_unmap_color): Likewise.
734 (grub_video_fb_unmap_color_int): Likewise.
735 (grub_video_fb_fill_rect): Likewise.
736 (grub_video_fb_blit_bitmap): Likewise.
737 (grub_video_fb_blit_render_target): Likewise.
738 (grub_video_fb_scroll): Likewise.
739 (grub_video_fb_create_render_target): Likewise.
740 (grub_video_fb_doublebuf_blit_init): Likewise.
741 (grub_video_fb_set_active_render_target): Handle doublebuffering.
742 (doublebuf_pageflipping_update_screen): New function.
743 (doublebuf_pageflipping_init): Likewise.
744 (grub_video_fb_setup): Likewise.
745 (grub_video_fb_swap_buffers): Likewise.
746 (grub_video_fb_get_info_and_fini): Likewise.
747 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
748 All users updated.
749 (doublebuf_pageflipping_commit): Restructured into ...
750 (doublebuf_pageflipping_set_page): ... this.
751 (doublebuf_pageflipping_update_screen): Removed.
752 (doublebuf_pageflipping_init): Likewise.
753 (double_buffering_init): Likewise.
754 (grub_video_vbe_setup): Use grub_video_fb_setup.
755 (grub_video_vbe_swap_buffers): Removed.
756 (grub_video_vbe_set_active_render_target): Likewise.
757 (grub_video_vbe_get_active_render_target): Likewise.
758 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
759 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
760 grub_video_fb_set_active_render_target and
761 grub_video_fb_get_active_render_target.
762 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
763 (SEQUENCER_DATA_PORT): Likewise.
764 (MAP_MASK_REGISTER): Likewise.
765 (CRTC_ADDR_PORT): Likewise.
766 (CRTC_DATA_PORT): Likewise.
767 (START_ADDR_HIGH_REGISTER): Likewise.
768 (START_ADDR_LOW_REGISTER): Likewise.
769 (GRAPHICS_ADDR_PORT): Likewise.
770 (GRAPHICS_DATA_PORT): Likewise.
771 (READ_MAP_REGISTER): Likewise.
772 (INPUT_STATUS1_REGISTER): Likewise.
773 (INPUT_STATUS1_VERTR_BIT): Likewise.
774 (get_map_mask): Use grub_vga_sr_read.
775 (set_map_mask): Use grub_vga_sr_write.
776 (set_read_map): Use grub_vga_gr_write.
777 (set_start_address): Use grub_vga_cr_write.
778 * video/sm712.c (framebuffer): Remove leftover fields.
779
780 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
781
782 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
783 setting GRUB_VIDEO_BACKEND. Make it available as a user override
784 instead. Replace the gfxterm backend check with a check that
785 ${GRUB_PREFIX}/video.lst is non-empty.
786 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
787 again.
788 (load_video): New generated function. Call it before loading
789 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
790 * util/grub.d/10_linux.in (linux_entry): Call load_video.
791 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
792 * docs/grub.texi (Simple configuration): Document
793 GRUB_VIDEO_BACKEND.
794
795 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
796
797 Use video functions in linux and xnu loaders.
798
799 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
800 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
801 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
802 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
803 loader/i386/pc/linux.c.
804 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
805 (find_line_len): Removed.
806 (find_framebuf): Likewise.
807 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
808 * loader/i386/efi/xnu.c: Removed.
809 * loader/i386/pc/xnu.c: Moved from here...
810 * loader/i386/xnu.c: ...here.
811
812 Enable priorities in video drivers.
813
814 * include/grub/video.h (grub_video_adapter_prio_t): New type.
815 (grub_video_adapter): New field prio.
816 (grub_video_register): Respect prio when inserting.
817 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
818 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
819 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
820 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
821 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
822 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
823 * video/sm712.c (grub_video_sm712_adapter): Likewise.
824
825 Fix SDL driver ID.
826
827 * include/grub/video.h (grub_video_driver_id_t): New value
828 GRUB_VIDEO_DRIVER_SDL.
829 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
830
831 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
832
833 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
834 argument to printf.
835 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
836
837 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
838
839 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
840 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
841
842 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
843
844 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
845 directly, and recommend grub-install instead.
846 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
847
848 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
849
850 Fix i386-pc prefix handling with nested partitions (Debian bug
851 #585068). Note that the case where the core image is booted using
852 multiboot and relocated from its original location still requires
853 more work.
854
855 * kern/i386/pc/init.c (make_install_device): If the prefix starts
856 with "(,", fill the boot drive in between those two characters, but
857 expect that a full partition specification including partition map
858 names will follow.
859 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
860 specified, write a prefix without the drive name but including a
861 full partition specification.
862
863 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
864
865 * util/grub-mkconfig.in: Ignore non-option arguments, for
866 compatibility with older versions (before 2010-06-12) which did the
867 same. In particular, this makes it easier to ship an update-grub
868 wrapper which is compatible with that used with GRUB Legacy (Debian
869 bug #586056).
870
871 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
872
873 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
874 for manual page generation.
875
876 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
877
878 * po/POTFILES: Remove leftover commands/handler.c.
879
880 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
881
882 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
883 left this script non-functional.
884
885 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
886
887 * docs/man/grub-emu.h2m: New file.
888
889 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
890
891 * docs/grub.texi (Commands): Document reduced command set in rescue
892 mode.
893 (cpuid): New section.
894
895 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
896
897 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
898 new partition naming style.
899 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
900
901 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
902
903 Add "-o grub.iso" like cmdline options support.
904
905 * util/grub-install.in: Improve cmdline option parsing.
906 * util/grub-mkconfig.in: Likewise.
907 * util/grub-mkrescue.in: Likewise.
908 * util/grub-reboot.in: Likewise.
909 * util/grub-set-default.in: Likewise.
910 * util/i386/efi/grub-install.in: Likewise.
911 * util/ieee1275/grub-install.in: Likewise.
912 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
913
914 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
915
916 * .bzrignore: Ignore 41_custom.
917
918 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
919
920 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
921
922 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
923
924 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
925 prototype declarations.
926
927 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
928 generating fs, partmap, and video lists.
929 * include/grub/fs.h (grub_fs_register): Omit prototype if
930 GRUB_LST_GENERATOR is defined.
931 * include/grub/partition.h (grub_partition_map_register): Likewise.
932 * include/grub/video.h (grub_video_register): Likewise.
933
934 2010-06-12 Javier Martín <lordhabbit@gmail.com>
935
936 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
937
938 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
939
940 * util/grub-mkrescue.in: Support --xorriso argument.
941
942 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
943
944 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
945 Suggested by: Thomas Schmitt.
946
947 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
948
949 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
950 Suggested by: Thomas Schmitt.
951
952 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
953
954 custom.cfg support.
955
956 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
957 * util/grub.d/41_custom.in: New file.
958
959 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
960
961 * util/grub-mkrescue.in (make_image): Remove sh module, which has
962 been merged back into normal.
963
964 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
965
966 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
967 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
968
969 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
970
971 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
972 when generating manual pages.
973 * docs/man/grub-bin2h.h2m: New file.
974 * docs/man/grub-editenv.h2m: New file.
975 * docs/man/grub-fstest.h2m: New file.
976 * docs/man/grub-install.h2m: New file.
977 * docs/man/grub-macho2img.h2m: New file.
978 * docs/man/grub-mkconfig.h2m: New file.
979 * docs/man/grub-mkdevicemap.h2m: New file.
980 * docs/man/grub-mkfont.h2m: New file.
981 * docs/man/grub-mkimage.h2m: New file.
982 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
983 * docs/man/grub-mkrelpath.h2m: New file.
984 * docs/man/grub-mkrescue.h2m: New file.
985 * docs/man/grub-ofpathname.h2m: New file.
986 * docs/man/grub-pe2elf.h2m: New file.
987 * docs/man/grub-probe.h2m: New file.
988 * docs/man/grub-reboot.h2m: New file.
989 * docs/man/grub-script-check.h2m: New file.
990 * docs/man/grub-set-default.h2m: New file.
991 * docs/man/grub-setup.h2m: New file.
992
993 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
994
995 Use FOR_* macros instead of *_iterate whenever possible.
996
997 * commands/handler.c: Removed.
998 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
999 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
1000 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
1001 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
1002 (grub_probe_SOURCES): Remove kern/parser.c.
1003 (util/grub-script-check.c_DEPENDENCIES): Removed.
1004 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
1005 and grub_script_check_init.c.
1006 (grub_script_check_init.lst): Removed.
1007 (grub_script_check_init.h): Likewise.
1008 (grub_script_check_init.c): Likewise.
1009 (pkglib_MODULES): Remove handler.mod and sh.mod.
1010 (handler_mod_SOURCES): Removed.
1011 (handler_mod_CFLAGS): Likewise.
1012 (handler_mod_LDFLAGS): Likewise.
1013 (normal_mod_SOURCES): Remove normal/handler.c.
1014 Add script/main.c, script/script.c, script/execute.c,
1015 script/function.c, script/lexer.c, grub_script.tab.c
1016 and grub_script.yy.c.
1017 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
1018 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
1019 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
1020 (grub_setup_SOURCES): Remove kern/parser.c.
1021 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
1022 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
1023 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
1024 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
1025 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
1026 (grub_setup_SOURCES): Remove kern/parser.c.
1027 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
1028 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
1029 * include/grub/command.h (grub_command_iterate): Removed.
1030 (FOR_COMMANDS): New macro.
1031 * include/grub/dl.h (grub_dl): New member next.
1032 (grub_dl_iterate): Removed.
1033 (grub_dl_head): New variable declaration.
1034 (FOR_DL_MODULES): New macro.
1035 * include/grub/fs.h: Include list.h.
1036 (grub_fs): Make next first element.
1037 (grub_fs_list): New variable declaration.
1038 (grub_fs_register): Make inline.
1039 (grub_fs_unregister): Likewise.
1040 (grub_fs_iterate): Removed.
1041 (FOR_FILESYSTEMS): New macro.
1042 * include/grub/handler.h: Removed.
1043 * include/grub/list.h (grub_list_hook_t): Removed.
1044 (grub_list_test_t): Likewise.
1045 (grub_list_pop): Likewise.
1046 (grub_list_iterate): Likewise.
1047 (grub_list_insert): Likewise.
1048 (FOR_LIST_ELEMENTS): New macro.
1049 * include/grub/parser.h (grub_parser_class): Removed.
1050 (grub_parser_register): Likewise.
1051 (grub_parser_unregister): Likewise.
1052 (grub_parser_get_current): Likewise.
1053 (grub_parser_set_current): Likewise.
1054 (grub_register_rescue_parser): Likewise.
1055 (grub_rescue_parse_line): New function.
1056 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
1057 * include/grub/script_sh.h (grub_script_function_list): New variable
1058 declaration.
1059 (FOR_SCRIPT_FUNCTIONS): New macro.
1060 (grub_script_function_iterate): Removed.
1061 (grub_normal_parse_line): New prototype.
1062 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
1063 (FOR_DISABLED_TERM_INPUTS): Likewise.
1064 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
1065 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
1066 * include/grub/video.h (grub_video_adapter): Move 'next' to first
1067 element.
1068 (grub_video_register): Inline.
1069 (grub_video_unregister): Likewise.
1070 (grub_video_adapter_list): New variable declaration.
1071 (grub_video_iterate): Removed.
1072 (FOR_VIDEO_ADAPTERS): New macro.
1073 * kern/dl.c (grub_dl_list): Removed. All users updated.
1074 (grub_dl_iterate): Removed.
1075 * kern/fs.c (grub_fs_list): Make global.
1076 (grub_fs_register): Removed.
1077 (grub_fs_unregister): Likewise.
1078 (grub_fs_iterate): Likewise.
1079 * kern/handler.c: Removed.
1080 * kern/list.c (grub_list_pop): Removed.
1081 (grub_list_iterate): Likewise.
1082 (grub_list_insert): Likewise.
1083 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
1084 (grub_prio_list_insert): Don't use grub_list_insert.
1085 * kern/main.c (grub_register_rescue_parser): Don't call
1086 grub_register_rescue_parser.
1087 * kern/parser.c (grub_parser_class): Removed.
1088 (grub_parser_execute): Use grub_rescue_parse_line.
1089 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
1090 (grub_rescue_parser): Removed.
1091 (grub_register_rescue_parser): Likewise.
1092 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
1093 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
1094 (grub_auth_check_authentication): Likewise.
1095 * normal/completion.c (iterate_command): Removed.
1096 (grub_normal_do_completion): Use FOR_COMMANDS.
1097 * normal/handler.c: Removed.
1098 * normal/main.c (read_config_file): Remove parser changing.
1099 (grub_normal_execute): Don't call read_handler_list.
1100 (grub_normal_read_line_real): Statically allocate prompt.
1101 (grub_cmdline_run): Use grub_normal_parse_line.
1102 (GRUB_MOD_FINI): Don't call free_handler_list.
1103 * normal/menu_entry.c (run): Likewise.
1104 * script/function.c (grub_script_function_list): Make global.
1105 (grub_script_function_iterate): Removed.
1106 * script/main.c (grub_normal_parse_line): Make global.
1107 (grub_sh_parser): Removed.
1108 (GRUB_MOD_INIT): Likewise.
1109 (GRUB_MOD_FINI): Likewise.
1110 * tests/lib/functional_test.c (grub_functional_test): Use
1111 FOR_LIST_ELEMENTS.
1112 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
1113 (grub_test_run): Use FOR_LIST_ELEMENTS.
1114 * tests/lib/unit_test.c (main): Likewise.
1115 * util/deviceiter.c (grub_util_iterate_devices): Don't use
1116 grub_list_pop.
1117 * util/grub-fstest.c (grub_term_input_class): Removed.
1118 (grub_term_output_class): Likewise.
1119 * util/grub-probe.c: Likewise.
1120 * util/i386/pc/grub-setup.c: Likewise.
1121 * util/sparc64/ieee1275/grub-setup.c: Likewise.
1122 * util/grub-script-check.c (main): Don't call grub_init_all and
1123 grub_fini_all.
1124 * video/video.c (grub_video_adapter_list): Make global.
1125 (grub_video_register): Removed.
1126 (grub_video_unregister): Likewise.
1127 (grub_video_iterate): Likewise.
1128
1129 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1130
1131 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
1132 reported by Henrique Ferreiro.
1133
1134 2010-06-09 Robert Millan <rmh@gnu.org>
1135
1136 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
1137 ones, when both are available.
1138
1139 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
1140
1141 Make --version uniform and avoid hard-coded program name.
1142
1143 * util/grub-mkimage.c (main): Use `program_name' instead of
1144 hard-coded string.
1145 * util/i386/pc/grub-setup.c (main): Likewise.
1146 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
1147 * util/grub-install.in: Save the basename of $0 in $self, and use the
1148 latter in informational messages. Use the same format for --version
1149 as the binary programs.
1150 * util/grub-mkconfig.in: Likewise.
1151 * util/grub-mkrescue.in: Likewise.
1152 * util/grub-reboot.in: Likewise.
1153 * util/grub-set-default.in: Likewise.
1154 * util/i386/efi/grub-install.in: Likewise.
1155 * util/ieee1275/grub-install.in: Likewise.
1156 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1157
1158 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
1159
1160 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
1161 embedding area. Use <= instead of == when checking for non-emptiness.
1162
1163 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
1164
1165 * configure.ac: Add `.' to the directories searched for unifont.
1166
1167 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
1168
1169 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
1170 grub_script.yy.h.
1171
1172 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
1173
1174 * docs/grub.texi (History): Expand to cover GRUB 2.
1175 (Serial terminal): Refer to `terminal_input' and `terminal_output'
1176 commands, not `terminal'.
1177 (serial): Likewise.
1178 (terminal_input): New section.
1179 (terminal_output): New section.
1180 (uppermem): New section (stub).
1181 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
1182
1183 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
1184
1185 * docs/grub.texi (Security): Menu entries are unrestricted by
1186 default, not restricted to superusers as I had previously thought.
1187 Reword to account for this.
1188
1189 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1190
1191 * kern/emu/misc.c (device_mapper_null_log): New function.
1192 (grub_device_mapper_supported): New function.
1193 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
1194 prototype.
1195 * kern/emu/hostdisk.c (find_partition_start): Check whether
1196 device-mapper is supported before trying to use it.
1197 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
1198
1199 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1200
1201 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
1202 (File name syntax): Likewise.
1203 (help): --all is no longer supported in GRUB 2. Be more precise
1204 about pattern matching.
1205
1206 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1207
1208 * normal/completion.c (grub_normal_do_completion): When completing
1209 arguments to "set" and the current word contains an equals sign,
1210 skip to after the equals sign before starting completion.
1211
1212 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1213
1214 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
1215
1216 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1217
1218 * docs/grub.texi (Network): New section.
1219 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
1220 `(nd)' as in GRUB Legacy.
1221 (pxe_unload): New section.
1222
1223 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1224
1225 * docs/grub.texi (Troubleshooting): `echo' is not usually available
1226 in the rescue shell, so recommend using `set' instead. Thanks,
1227 Jordan Uggla.
1228
1229 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1230
1231 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
1232 (password): New section.
1233 (password_pbkdf2): New section.
1234 (search): New section.
1235 (Security): New section.
1236 (Troubleshooting): New section, currently very incomplete.
1237 (Invoking grub-mkpasswd-pbkdf2): New section.
1238 (Internals): New section, currently very incomplete.
1239
1240 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1241
1242 * util/grub.d/00_header.in: Add some more quoting (of
1243 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
1244 work again.
1245 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
1246
1247 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1248
1249 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
1250 to `count', fixing variable shadowing that broke the -c option.
1251
1252 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
1253
1254 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
1255 in case they contain spaces.
1256
1257 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
1258
1259 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
1260 "part_" to partmap module names, in line with grub-install.
1261 Reported by: Jindřich Makovička (Debian bug #584426).
1262
1263 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
1264
1265 * util/grub-mkimage.c: Make target-related error messages slightly
1266 more helpful; -O talks about "format". Explicitly point to the use
1267 of -O if no target is specified.
1268 Reported by: Didier Raboud (Debian bug #584415).
1269
1270 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
1271
1272 * INSTALL: Document several build requirements for optional features
1273 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
1274
1275 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
1276
1277 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
1278 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
1279 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
1280
1281 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1282
1283 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
1284 Thanks to Jordan Uggla for spotting this.
1285
1286 2010-06-02 Aleš Nesrsta <starous@volny.cz>
1287
1288 Finally make USB usable.
1289
1290 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
1291 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
1292 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
1293 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
1294 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
1295 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
1296 (GRUB_OHCI_FSMPS): Likewise.
1297 (GRUB_OHCI_PERIODIC_START): Likewise.
1298 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
1299 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
1300 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
1301 (GRUB_OHCI_SET_PORT_RESET): Likewise.
1302 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
1303 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
1304 (grub_ohci_transaction): Likewise.
1305 (grub_ohci_transfer): Improve condition detection algorithms.
1306 Handle toggle property. Program the transactions correctly.
1307 Improve error handling. Various important fixups.
1308 (grub_ohci_portstatus): Put register writes in right order.
1309 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
1310 (grub_uhci_transfer): Don't show "failed" message on success.
1311 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
1312 array.
1313 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
1314 determine its size.
1315 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
1316 before initialization is completed. Use IN direction for empty
1317 transfers. Use last_trans and compute toggle.
1318 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
1319 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
1320 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
1321 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
1322 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
1323 (grub_usb_device): Increase toggle to 256.
1324 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
1325 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
1326 GRUB_USBMS_SUBCLASS_SFF8070.
1327 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
1328 (grub_scsi_inquiry): New member page and alloc_length.
1329 (grub_scsi_request_sense): New structure.
1330 (grub_scsi_request_sense_data): Likewise.
1331 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
1332 control.
1333 * disk/scsi.c (grub_scsi_request_sense): New function.
1334 (grub_scsi_test_unit_ready): Likewise.
1335 (grub_scsi_inquiry): Fill new fields.
1336 (grub_scsi_read_capacity): Likewise.
1337 (grub_scsi_read10): Add request sense at the end.
1338 (grub_scsi_read12): Likewise.
1339 (grub_scsi_write10): Likewise.
1340 (grub_scsi_write12): Likewise.
1341 (grub_scsi_open): Add Test Unit Ready.
1342 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
1343 Support additional subclasses. Con't clear halt yet. Activate the
1344 proper config. Calculate LUNs correctly.
1345 (grub_usbms_transfer): Various important fixups.
1346
1347 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1348
1349 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
1350 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
1351 (grub_ohci_fini_hw): New function.
1352 (grub_ohci_restore_hw): Likewise.
1353 (GRUB_MOD_INIT(ohci)): Register preboot hook.
1354 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
1355 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
1356
1357 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1358
1359 Dedicated DMA allocations.
1360
1361 * bus/pci.c (grub_memalign_dma32): New function
1362 (grub_dma_free): Likewise.
1363 (grub_dma_get_virt): Likewise.
1364 (grub_dma_get_phys): Likewise.
1365 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
1366 (grub_ohci_pci_iter): Use dma32_alloc.
1367 (grub_ohci_transfer): Likewise.
1368 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
1369 (grub_usb_bulk_readwrite): Likewise.
1370 * include/grub/pci.h: Add declarations.
1371
1372 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1373
1374 CS5536 support.
1375
1376 * bus/cs5536.c: New file.
1377 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
1378 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
1379 (cs5536_mod_SOURCES): New variable.
1380 (cs5536_mod_CFLAGS): Likewise.
1381 (cs5536_mod_LDFLAGS): Likewise.
1382 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
1383 machine/pci.h.
1384 (kernel_img_SOURCES): Add bus/cs5536.c.
1385 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
1386 usb_keyboard.mod.
1387 (usb_mod_SOURCES): New variable.
1388 (usb_mod_CFLAGS): New variable.
1389 (usb_mod_LDFLAGS): New variable.
1390 (usbtest_mod_SOURCES): New variable.
1391 (usbtest_mod_CFLAGS): New variable.
1392 (usbtest_mod_LDFLAGS): New variable.
1393 (ohci_mod_SOURCES): New variable.
1394 (ohci_mod_CFLAGS): New variable.
1395 (ohci_mod_LDFLAGS): New variable.
1396 (usbms_mod_SOURCES): New variable.
1397 (usbms_mod_CFLAGS): New variable.
1398 (usbms_mod_LDFLAGS): New variable.
1399 (usb_keyboard_mod_SOURCES): New variable.
1400 (usb_keyboard_mod_CFLAGS): New variable.
1401 (usb_keyboard_mod_LDFLAGS): New variable.
1402 * include/grub/smbus.h: New file.
1403 * include/grub/cs5536.h: New file.
1404
1405 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1406
1407 * util/grub.d/00_header.in: Add safety check to make sure that
1408 ${locale_dir} exists before trying to probe it.
1409
1410 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1411
1412 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
1413 per the GNU Coding Standards; this is now too obscure to be worth
1414 documenting.
1415 (QNX): Likewise.
1416 (chainloader): Remove cross-reference to `SCO UnixWare'.
1417
1418 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1419
1420 * docs/grub.texi (Chain-loading): New section.
1421 (DOS/Windows): New section, borrowed from GRUB Legacy with details
1422 adjusted for GRUB 2.
1423 (SCO UnixWare): Likewise.
1424 (QNX): Likewise.
1425 (chainloader): Add reference to `Block list syntax'.
1426 (drivemap): New section.
1427 (parttool): New section.
1428
1429 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1430
1431 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
1432 the grub shell'.
1433 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
1434 (Installing GRUB using grub-install): Remove reference to the grub
1435 shell; mention `grub-mkimage' and `grub-setup' instead.
1436 (Invoking grub-install): Likewise.
1437 (Interface): Add reference to `Menu entry editor'.
1438 (serial): Remove `--device' option.
1439
1440 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1441
1442 * docs/grub.texi (Configuration): New section, documenting
1443 configuration file generation using grub-mkconfig. I've left a slot
1444 for documenting the full shell scripting format but have not yet
1445 started on writing that up.
1446 (Invoking grub-mkconfig): New section.
1447
1448 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1449
1450 * docs/grub.texi (direntry): Remove grub-terminfo reference.
1451 (GNU GRUB manual): Likewise.
1452 (General commands): Update description of `terminfo' for GRUB 2.
1453
1454 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1455
1456 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
1457 (GRUB_MOD_INIT): Fix capitalisation.
1458 * docs/grub.texi (Command-line and menu entry commands): Document
1459 gettext and gptsync commands.
1460
1461 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1462
1463 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
1464 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
1465
1466 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
1467
1468 Add btrfs probing support, currently only in the single-device case.
1469
1470 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
1471 function.
1472 (grub_guess_root_device): Call find_root_device_from_mountinfo
1473 before looking in /dev.
1474
1475 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1476
1477 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
1478 GRUB_DISK_SIZE_UNKNOWN.
1479 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
1480
1481 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
1482
1483 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
1484 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
1485 corrupted or not synced properly.
1486
1487 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1488
1489 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
1490 Reported by: Seth Goldberg.
1491
1492 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1493
1494 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
1495 addition of dest.
1496 Reported by: Seth Goldberg.
1497
1498 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1499
1500 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
1501 Reported by: Seth Goldberg.
1502
1503 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1504
1505 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
1506 64-bit address as signed on MIPS.
1507
1508 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
1509
1510 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
1511 to the empty string.
1512
1513 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
1514
1515 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
1516
1517 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
1518 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
1519 * kern/misc.c (__enable_execute_stack): Disable on
1520 GRUB_MACHINE_EMU.
1521
1522 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
1523
1524 Make grub-probe work with symbolic links under /dev/mapper as well
1525 as with real block devices. The Linux world seems to be (at best)
1526 in transition here, and GRUB shouldn't get caught in the middle.
1527
1528 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
1529 /dev/mapper.
1530
1531 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
1532
1533 * util/grub-script-check.c (main): Ensure defined behaviour on empty
1534 input files (in which case exit zero).
1535
1536 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
1537
1538 * kern/emu/misc.c (canonicalize_file_name): realpath can still
1539 return NULL for various reasons even if it has a maximum-length
1540 buffer: for example, there might be a symlink loop, or the path
1541 might exceed PATH_MAX. If this happens, return NULL.
1542
1543 2010-05-27 Robert Millan <rmh@gnu.org>
1544
1545 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
1546 partmap module to handle cross-partmap setups.
1547 Reported by Orestes Mas. Gràcies!
1548
1549 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
1550
1551 * util/grub-mkrescue.in: Initialise override_dir rather than
1552 assuming that it's unset or empty in the environment.
1553
1554 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
1555
1556 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
1557 variable index into p_index to suppress a warning with -Wshadow.
1558
1559 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
1560
1561 * INSTALL: Added flex >= 2.5.35 requirement.
1562
1563 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1564
1565 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
1566
1567 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1568
1569 cmostest support.
1570
1571 * commands/i386/cmostest.c: New file.
1572 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
1573 (cmostest_mod_SOURCES): New variable.
1574 (cmostest_mod_CFLAGS): Likewise.
1575 (cmostest_mod_LDFLAGS): Likewise.
1576 * conf/i386-pc.rmk: Likewise.
1577 * docs/grub.texi (Vendor power-on keys): New section.
1578 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
1579 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
1580 and GRUB_BUTTON_CMOS_ADDRESS.
1581 * util/grub.d/00_header.in: Handle powering-on by separate button.
1582
1583 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1584
1585 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
1586 Removed drawing_scrollbar argument. All users updated
1587 Fixes #29792.
1588 Reported by Jo Shields
1589
1590 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1591
1592 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
1593 buffer since gfxterm handles double repaint.
1594
1595 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1596
1597 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
1598 * term/gfxterm.c (real_scroll): Likewise.
1599
1600 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1601
1602 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
1603 before calling BIOS.
1604
1605 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1606
1607 * include/grub/i18n.h: Always enable grub_gettext.
1608
1609 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1610
1611 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
1612 partition naming style.
1613
1614 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
1615
1616 * util/grub-mkconfig.in: Fix handling of -o so that it works when
1617 not the first option.
1618
1619 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
1620
1621 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
1622
1623 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
1624
1625 * util/misc.c: Move inclusion of <limits.h> to ...
1626 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
1627
1628 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
1629
1630 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
1631 Fix merge error in NetBSD code.
1632 (find_partition_start) [__NetBSD__]: Likewise.
1633
1634 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
1635
1636 Fix grub-mkrescue usage unit testing.
1637
1638 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
1639
1640 2010-05-18 Christian Franke <franke@computer.org>
1641
1642 * util/grub.d/10_windows.in: Use path names instead of
1643 drive letters to prevent warning from Cygwin 1.7.
1644 Add drivemap command to menuentry if needed.
1645
1646 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
1647
1648 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
1649 gnumach and gnumach.gz.
1650
1651 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1652
1653 * include/grub/i18n.h (gettext): Inline instead of using #define.
1654 (grub_gettext): Likewise.
1655 (_): Likewise.
1656
1657 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1658
1659 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
1660 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
1661 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
1662 (main): Add a slash after pkglibdirroot.
1663
1664 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1665
1666 * util/grub-install.in: Add missing "in" keyword.
1667
1668 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1669
1670 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
1671 Reported by: Seth Goldberg.
1672
1673 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1674
1675 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
1676
1677 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1678
1679 * configure.ac: Check for Linux device-mapper support.
1680
1681 * util/hostdisk.c (device_is_mapped): New function.
1682 (find_partition_start): New function, partly broken out from
1683 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
1684 device-mapper support added.
1685 (linux_find_partition): Use find_partition_start.
1686 (convert_system_partition_to_system_disk): Add `st' argument.
1687 Support Linux /dev/mapper/* devices if device-mapper support is
1688 available; only DM-RAID devices are understood at present.
1689 (find_system_device): Add `st' argument. Pass it to
1690 convert_system_partition_to_system_disk.
1691 (grub_util_biosdisk_get_grub_dev): Pass stat result to
1692 find_system_device and convert_system_partition_to_system_disk. Use
1693 find_partition_start.
1694
1695 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
1696 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
1697 * util/deviceiter.c [__linux__]: Define MINOR.
1698 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
1699 * util/mkdevicemap.c (grub_putchar): New function.
1700 (grub_getkey): New function.
1701 (grub_refresh): New function.
1702 (main): Set debug=all if -v -v is used.
1703
1704 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1705
1706 Fix build with non-GNU libcs.
1707
1708 * util/misc.c (canonicalize_file_name): Move to ...
1709 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
1710 grub_make_system_path_relative_to_its_root.
1711
1712 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1713
1714 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
1715 we handle finding grub-mkimage. Default to finding grub-mkimage in
1716 ${bindir} with program_transform_name applied, and provide a
1717 --grub-mkimage option to override this.
1718
1719 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1720
1721 Remove grub-mkisofs.
1722
1723 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
1724 (grub_mkisofs_SOURCES): Removed.
1725 (grub_mkisofs_CFLAGS): Removed.
1726 * util/mkisofs/defaults.h: Removed.
1727 * util/mkisofs/eltorito.c: Likewise.
1728 * util/mkisofs/exclude.h: Likewise.
1729 * util/mkisofs/hash.c: Likewise.
1730 * util/mkisofs/include/: Likewise.
1731 * util/mkisofs/include/fctldefs.h: Likewise.
1732 * util/mkisofs/include/mconfig.h: Likewise.
1733 * util/mkisofs/include/prototyp.h: Likewise.
1734 * util/mkisofs/include/statdefs.h: Likewise.
1735 * util/mkisofs/iso9660.h: Likewise.
1736 * util/mkisofs/joliet.c: Likewise.
1737 * util/mkisofs/match.c: Likewise.
1738 * util/mkisofs/match.h: Likewise.
1739 * util/mkisofs/mkisofs.c: Likewise.
1740 * util/mkisofs/mkisofs.h: Likewise.
1741 * util/mkisofs/msdos_partition.h: Likewise.
1742 * util/mkisofs/multi.c: Likewise.
1743 * util/mkisofs/name.c: Likewise.
1744 * util/mkisofs/rock.c: Likewise.
1745 * util/mkisofs/tree.c: Likewise.
1746 * util/mkisofs/write.c: Likewise.
1747
1748 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1749
1750 Unify grub-mkimage accross platforms.
1751
1752 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
1753 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
1754 (grub_mkelfimage_SOURCES): Removed.
1755 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
1756 (util/grub-mkimage.c_DEPENDENCIES): .. this.
1757 (bin_UTILITIES): Add grub-mkimage.
1758 (grub_mkimage_SOURCES): New variable.
1759 (kernel_img_HEADERS): Remove machine/kernel.h.
1760 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
1761 (pkglib_PROGRAMS): Add kernel.img.
1762 (kernel_img_HEADERS): Add machine/kernel.h.
1763 (kernel_img_FORMAT): Removed.
1764 (bin_UTILITIES): Remove grub-mkimage.
1765 (grub_mkimage_SOURCES): Removed.
1766 (grub_mkimage_CFLAGS): Likewise.
1767 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1768 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
1769 (pkglib_PROGRAMS): Add kernel.img.
1770 (bin_UTILITIES): Remove grub-mkimage.
1771 (grub_mkimage_SOURCES): Removed.
1772 (grub_mkimage_CFLAGS): Likewise.
1773 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1774 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
1775 (pkglib_PROGRAMS): Add kernel.img.
1776 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
1777 (pkglib_PROGRAMS): Add kernel.img.
1778 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
1779 (grub_mkimage_SOURCES): Removed.
1780 (grub_mkimage_CFLAGS): Likewise.
1781 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1782 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
1783 (pkglib_PROGRAMS): Add kernel.img.
1784 (bin_UTILITIES): Remove grub-mkimage.
1785 (grub_mkimage_SOURCES): Removed.
1786 (grub_mkimage_CFLAGS): Likewise.
1787 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1788 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
1789 (grub_mkimage_SOURCES): Removed.
1790 (grub_mkimage_CFLAGS): Likewise.
1791 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1792 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
1793 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
1794 (grub_pe32_optional_header): ... this.
1795 (grub_pe64_optional_header): ... and this. All users updated.
1796 (GRUB_PE32_PE32_MAGIC): Split into ..
1797 (GRUB_PE32_PE32_MAGIC): .. this.
1798 (GRUB_PE32_PE64_MAGIC): .. and this.
1799 (GRUB_PE32_SIGNATURE_SIZE): New definition.
1800 * include/grub/elf.h (PT_GNU_STACK): New definition.
1801 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
1802 * include/grub/i386/efi/kernel.h: Likewise.
1803 * include/grub/i386/kernel.h: Likewise.
1804 * include/grub/i386/pc/kernel.h: Likewise.
1805 * include/grub/i386/qemu/boot.h: Likewise.
1806 * include/grub/mips/kernel.h: Likewise.
1807 * include/grub/mips/qemu-mips/kernel.h: Likewise.
1808 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
1809 * include/grub/powerpc/kernel.h: Likewise.
1810 * include/grub/sparc64/ieee1275/boot.h: Likewise.
1811 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
1812 * include/grub/sparc64/kernel.h: Likewise.
1813 * include/grub/x86_64/efi/kernel.h: Likewise.
1814 * include/grub/x86_64/kernel.h: Likewise.
1815 * include/grub/offsets.h: New file.
1816 * include/grub/kernel.h (grub_module_info): Split into ...
1817 (grub_module_info32): ... this.
1818 (grub_module_info64): ... and this.
1819 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
1820 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
1821 (grub_boot_blocklist): Moved from here ...
1822 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
1823 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
1824 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
1825 * include/grub/types.h (grub_target_to_host16): Removed.
1826 (grub_target_to_host32): Likewise.
1827 (grub_target_to_host64): Likewise.
1828 (grub_host_to_target16): Likewise.
1829 (grub_host_to_target32): Likewise.
1830 (grub_host_to_target64): Likewise.
1831 (grub_host_to_target_addr): Likewise.
1832
1833 Support grub-mkrescue for efi, coreboot and qemu.
1834
1835 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
1836 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
1837 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
1838 * util/grub-mkrawimage.c: Moved from here ...
1839 * util/grub-mkimage.c: ... here. All users updated.
1840 (ALIGN_ADDR): Use image_target.
1841 (TARGET_NO_FIELD): New const.
1842 (image_target_desc): New type.
1843 (image_targets): New array.
1844 (grub_target_to_host64): Use image_target.
1845 (grub_target_to_host32): Likewise.
1846 (grub_target_to_host16): Likewise.
1847 (grub_host_to_target64): Likewise.
1848 (grub_host_to_target32): Likewise.
1849 (grub_host_to_target16): Likewise.
1850 (grub_host_to_target_addr): Likewise.
1851 (generate_image): Handle multiimage.
1852 (main): Require -O parameter. All users updated.
1853 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
1854 util/efi/grub-mkimage.c
1855 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
1856 New option --rom-directory.
1857 Use xorriso.
1858 * util/i386/efi/grub-mkimage.c: Removed.
1859 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
1860 (grub_target_to_host32): Likewise.
1861 (grub_target_to_host64): Likewise.
1862 (grub_host_to_target16): Likewise.
1863 (grub_host_to_target32): Likewise.
1864 (grub_host_to_target64): Likewise.
1865 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
1866 (grub_target_to_host32): Likewise.
1867 (grub_target_to_host64): Likewise.
1868 (grub_host_to_target16): Likewise.
1869 (grub_host_to_target32): Likewise.
1870 (grub_host_to_target64): Likewise.
1871
1872 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
1873
1874 Source tree is reorganized for emu build.
1875
1876 * include/grub/util/console.h: Move from here...
1877 * include/grub/emu/console.h: ...to here.
1878 * include/grub/util/getroot.h: Move from here...
1879 * include/grub/emu/getroot.h: ...to here.
1880 * include/grub/util/hostdisk.h: Move from here...
1881 * include/grub/emu/hostdisk.h: ...to here.
1882 * util/console.c: Move from here...
1883 * kern/emu/console.c: ...to here.
1884 * util/getroot.c: Move from here...
1885 * kern/emu/getroot.c: ...to here.
1886 * util/grub-emu.c: Move from here...
1887 * kern/emu/main.c: ...to here.
1888 * util/hostdisk.c: Move from here...
1889 * kern/emu/hostdisk.c: ...to here.
1890 * util/hostfs.c: Move from here...
1891 * kern/emu/hostfs.c: ...to here.
1892 * util/mm.c: Move from here...
1893 * kern/emu/mm.c: ...to here.
1894 * util/pci.c: Move from here...
1895 * bus/emu/pci.c: ...to here.
1896 * util/sdl.c: Move from here...
1897 * video/emu/sdl.c: ...to here.
1898 * util/time.c: Move from here...
1899 * kern/emu/time.c: ...to here.
1900 * util/usb.c: Move from here...
1901 * bus/usb/emu/usb.c: ...to here.
1902
1903 * include/grub/emu/misc.h: New header for grub-emu functions.
1904 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
1905
1906 * conf/any-emu.rmk: Rule updates for above renames.
1907 * conf/common.rmk: Likewise.
1908 * conf/i386-pc.rmk: Likewise.
1909 * conf/i386-qemu.rmk: Likewise.
1910 * conf/mips.rmk: Likewise.
1911 * conf/sparc64-ieee1275.rmk: Likewise.
1912 * conf/x86-efi.rmk: Likewise.
1913
1914 * disk/lvm.h: #include updates for above renames.
1915 * util/grub-mkrelpath.c: Likewise.
1916 * util/grub-probe.c: Likewise.
1917 * util/i386/pc/grub-setup.c: Likewise.
1918 * util/sparc64/ieee1275/grub-setup.c: Likewise.
1919 * kern/emu/console.c: Likewise.
1920 * kern/emu/getroot.c: Likewise.
1921 * kern/emu/hostdisk.c: Likewise.
1922 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
1923
1924 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
1925 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
1926 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
1927 * util/misc.c: Remove grub-emu functions.
1928
1929 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1930
1931 Fix gfxmenu crash.
1932 Reported by: Thorsten Grützmacher.
1933
1934 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
1935 timeout hook.
1936 (circprog_set_property): Register and unregister timeout hook.
1937 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
1938 (label_destroy): Free template. and unregister hook.
1939 (label_set_state): New function.
1940 (label_set_property): Handle templates and hooks.
1941 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
1942 timeout hook.
1943 (progress_bar_set_property): Register and unregister timeout hook.
1944 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
1945 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
1946 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
1947 (update_timeout_visit): Removed.
1948 (update_timeouts): New function.
1949 (redraw_timeouts): Likewise.
1950 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
1951 (grub_gfxmenu_clear_timeout): Likewise.
1952 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
1953 (grub_gfxmenu_timeout_notify): Likewise.
1954 (grub_gfxmenu_timeout_notifications): New external variable.
1955 (grub_gfxmenu_timeout_register): New function.
1956 (grub_gfxmenu_timeout_unregister): Likewise.
1957
1958 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1959
1960 Transform (broken) vga terminal into (working) vga video driver.
1961
1962 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
1963 video/i386/pc/vga.c.
1964 * include/grub/video.h (grub_video_driver_id):
1965 Add GRUB_VIDEO_DRIVER_VGA.
1966 * term/i386/pc/vga.c: Renamed to ...
1967 * video/i386/pc/vga.c: ...this
1968 (DEBUG_VGA): Removed.
1969 (CHAR_WIDTH): Likewise.
1970 (CHAR_HEIGHT): Likewise.
1971 (TEXT_WIDTH): Likewise.
1972 (TEXT_HEIGHT): Likewise.
1973 (DEFAULT_FG_COLOR): Likewise.
1974 (DEFAULT_BG_COLOR): Likewise.
1975 (colored_char): Likewise.
1976 (xpos): Likewise.
1977 (ypos): Likewise.
1978 (cursor_state): Likewise.
1979 (fg_color): Likewise.
1980 (bg_color): Likewise.
1981 (text_buf): Likewise.
1982 (page): Likewise.
1983 (font): Likewise.
1984 (framebuffer): New variable.
1985 (set_read_map): Disabled.
1986 (setup): New variable.
1987 (is_target): Likewise.
1988 (grub_vga_mod_init): Likewise.
1989 (grub_vga_mod_fini): Likewise.
1990 (check_vga_mem): Likewise.
1991 (write_char): Likewise.
1992 (write_cursor): Likewise.
1993 (scroll_up): Likewise.
1994 (grub_vga_putchar): Likewise.
1995 (grub_vga_getcharwidth): Likewise.
1996 (grub_vga_getwh): Likewise.
1997 (grub_vga_getxy): Likewise.
1998 (grub_vga_gotoxy): Likewise.
1999 (grub_vga_cls): Likewise.
2000 (grub_vga_setcolorstate): Likewise.
2001 (grub_vga_setcursor): Likewise.
2002 (grub_video_vga_init): New function.
2003 (grub_video_vga_setup): Likewise.
2004 (grub_video_vga_fini): Likewise.
2005 (update_target): Likewise.
2006 (grub_video_vga_blit_bitmap): Likewise.
2007 (grub_video_vga_blit_render_target): Likewise.
2008 (grub_video_vga_set_active_render_target): Likewise.
2009 (grub_video_vga_get_active_render_target): Likewise.
2010 (grub_video_vga_swap_buffers): Likewise.
2011 (grub_video_vga_set_palette): Likewise.
2012 (grub_video_vga_get_info_and_fini): Likewise.
2013 (grub_vga_term): Removed.
2014 (grub_video_vga_adapter): New variable.
2015 (GRUB_MOD_INIT): Register a video driver instead of terminal.
2016 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
2017
2018 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2019
2020 * video/readers/jpeg.c: Indented.
2021
2022 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2023
2024 Various jpeg cleanups.
2025
2026 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
2027 (grub_jpeg_decode_quan_table): Use sizeof.
2028 (grub_jpeg_decode_du): Use ARRAY_SIZE.
2029
2030 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
2031
2032 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
2033 tables. Ignore non-last ac bit.
2034 (grub_jpeg_decode_quan_table): Likewise.
2035
2036 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2037
2038 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
2039 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
2040 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2041 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
2042 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
2043 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
2044
2045 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2046
2047 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
2048 error.
2049
2050 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2051
2052 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
2053
2054 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2055
2056 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
2057 condition.
2058
2059 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2060
2061 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
2062 part.
2063
2064 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2065
2066 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
2067 pointers.
2068
2069 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2070
2071 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
2072
2073 2010-05-01 Christian Franke <franke@computer.org>
2074
2075 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
2076 Remove broken Cygwin path conversion.
2077 * util/misc.c: [__CYGWIN__] Add include and define.
2078 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
2079 for Cygwin 1.7.
2080 (make_system_path_relative_to_its_root): Simplify loop, replace early
2081 return by break.
2082 [__CYGWIN__] Add conversion to win32 path.
2083 Include "/" case in trailing slash removal.
2084
2085 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2086
2087 * kern/main.c (grub_load_config): Fix copy-pasted comment.
2088 Reported by: Seth Goldberg
2089
2090 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2091
2092 * commands/help.c (grub_cmd_help): Fix a typo.
2093 Reported by: Seth Goldberg
2094
2095 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2096
2097 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
2098 name and add N_.
2099 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
2100 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
2101 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
2102 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
2103 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
2104 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
2105 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
2106 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
2107 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
2108 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
2109 * normal/context.c (GRUB_MOD_INIT): Likewise.
2110 * normal/main.c (GRUB_MOD_INIT): Likewise.
2111 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
2112 * term/serial.c (GRUB_MOD_INIT): Likewise.
2113 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
2114
2115 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2116
2117 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
2118 extra == 0.
2119
2120 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2121
2122 * commands/iorw.c: New file.
2123 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
2124 (iorw_mod_SOURCES): New variable.
2125 (iorw_mod_CFLAGS): Likewise.
2126 (iorw_mod_LDFLAGS): Likewise.
2127
2128 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2129
2130 Hotkey support
2131
2132 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
2133 * normal/main.c (hotkey_aliases): New variable.
2134 (grub_normal_add_menu_entry): Parse "--hotkey".
2135 * normal/menu_text.c (run_menu): Handle hotkeys.
2136
2137 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2138
2139 * kern/i386/coreboot/init.c (grub_machine_init): Call
2140 grub_machine_mmap_init on qemu.
2141
2142 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2143
2144 * boot/i386/qemu/boot.S: Add a missing .code16.
2145
2146 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2147
2148 Use LBIO on coreboot.
2149
2150 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
2151 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
2152 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
2153 New declaration.
2154 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
2155 grub_machine_mmap_init on coreboot.
2156 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
2157 GRUB_LINUXBIOS_MEMBER_LINK.
2158 (grub_machine_mmap_iterate): Fix declaration.
2159 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
2160
2161 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2162
2163 Split coreboot and multiboot ports.
2164
2165 * conf/i386-multiboot.rmk: New file.
2166 * configure.ac: Add multiboot port.
2167 * include/grub/i386/multiboot/boot.h: New file.
2168 * include/grub/i386/multiboot/console.h: Likewise.
2169 * include/grub/i386/multiboot/init.h: Likewise.
2170 * include/grub/i386/multiboot/kernel.h: Likewise.
2171 * include/grub/i386/multiboot/loader.h: Likewise.
2172 * include/grub/i386/multiboot/memory.h: Likewise.
2173 * include/grub/i386/multiboot/serial.h: Likewise.
2174 * include/grub/i386/multiboot/time.h: Likewise.
2175 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
2176 * loader/multiboot.c: Likewise.
2177 * loader/multiboot_mbi2.c: Likewise.
2178 * util/grub-mkrescue.in: Generate multiboot rescue.
2179
2180 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2181
2182 * kern/parser.c (grub_parser_execute): Cope with read-only config.
2183
2184 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2185
2186 Merge handling of input and output terminals. Fix a hang.
2187
2188 * commands/terminal.c (abstract_terminal): New struct.
2189 (handle_command): New function. Based on grub_cmd_terminal_input.
2190 (grub_cmd_terminal_input): Use handle_command.
2191 (grub_cmd_terminal_output): Use handle_command.
2192
2193 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
2194
2195 Fix comment handling.
2196
2197 * tests/grub_script_comments.in: New testcase.
2198 * conf/tests.rmk: Rules for new testcase.
2199 * script/yylex.l: Updated flex rules.
2200
2201 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
2202
2203 * docs/grub.texi (play): Document that zero pitches produce rests.
2204 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
2205 if argc is 1.
2206
2207 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2208
2209 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
2210 autogen issues.
2211
2212 2010-04-26 Christian Franke <franke@computer.org>
2213
2214 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
2215 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
2216 (grub_get_prefix): Remove function.
2217 * util/grub-emu.c (main): Replace grub_get_prefix () call by
2218 make_system_path_relative_to_its_root ().
2219 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
2220
2221 2010-04-24 Christian Franke <franke@computer.org>
2222
2223 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
2224 (kernel_img_LDFLAGS): Remove -static-libgcc.
2225
2226 2010-04-24 Christian Franke <franke@computer.org>
2227
2228 * configure.ac: Do not CHECK_BSS_START_SYMBOL
2229 and CHECK_END_SYMBOL if grub-emu is built.
2230 Unset TARGET_OBJ2ELF if grub-emu is built
2231 without module support.
2232
2233 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
2234
2235 Nilfs2 support.
2236
2237 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
2238 (grub_fstest_SOURCES): Likewise.
2239 (pkglib_MODULES): Add nilfs2.mod.
2240 (nilfs2_mod_SOURCES): New variable.
2241 (nilfs2_mod_CFLAGS): Likewise.
2242 (nilfs2_mod_LDFLAGS): Likewise.
2243 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
2244 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
2245 * fs/nilfs2.c: New file.
2246
2247 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
2248
2249 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
2250 is not supported.
2251
2252 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
2253
2254 Add grub-mkconfig support for NetBSD.
2255
2256 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
2257 * util/grub-mkconfig.in: export new NetBSD specific variables.
2258 * po/POTFILES-shell: added 10_netbsd.in.
2259 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
2260
2261 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
2262
2263 Fix emu build with grub-emu-pci and grub-emu-modules.
2264
2265 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
2266 functions.
2267 * include/grub/libpciaccess.h: New file.
2268 * conf/any-emu.rmk: Update kernel headers for emu build.
2269
2270 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2271
2272 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
2273
2274 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2275
2276 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
2277
2278 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2279
2280 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
2281 Retrieve chosen/bootpath if bootpath isn't hardcoded.
2282 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
2283 util/ieee1275/ofpath.c.
2284 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
2285 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
2286 * include/grub/sparc64/ieee1275/boot.h
2287 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
2288 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
2289 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
2290 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
2291 const char *.
2292 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
2293 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
2294 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
2295 install.
2296
2297 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
2298
2299 * util/grub-mkconfig.in: Corrected two == equality tests.
2300 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
2301 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
2302 expect a number appended to it.
2303 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
2304 expects a number appended to it.
2305
2306 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2307
2308 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
2309
2310 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2311
2312 * util/hostdisk.c (make_device_name): Change to new partition naming.
2313
2314 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
2315
2316 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
2317
2318 2010-04-17 Christian Franke <franke@computer.org>
2319
2320 * Makefile.in: Add missing localedir setting.
2321
2322 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
2323
2324 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
2325 mistake in r2156. Noticed by Anthony Fok.
2326
2327 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
2328 @localedir@.
2329 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
2330
2331 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
2332
2333 Fix a spurious, uninitialized variable warning.
2334
2335 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
2336 Initialize variable, shdr.
2337 (grub_freebsd_load_elfmodule): Likewise.
2338 (grub_freebsd_load_elf_meta): Likewise.
2339
2340 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
2341
2342 Fix for escaped dollar in double quoted strings.
2343
2344 * script/yylex.l: Updated flex rules.
2345 * conf/tests.rmk: Rule for new testcase.
2346 * tests/grub_script_dollar.in: New testcase.
2347
2348 2010-04-13 Carles Pina i Estany <carles@pina.cat>
2349 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
2350
2351 Enclose all translated strings in grub.cfg in single quotes, and
2352 escape them appropriately (Ubuntu bug #552921).
2353
2354 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
2355 * util/grub.d/10_hurd.in: Use it.
2356 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
2357 * util/grub.d/10_linux.in (linux_entry): Likewise.
2358
2359 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2360
2361 Fix cygwin compilation.
2362
2363 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
2364 * include/grub/misc.h (__register_frame_info)
2365 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
2366 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
2367 * kern/misc.c (__register_frame_info)
2368 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
2369 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
2370
2371 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2372
2373 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
2374
2375 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2376
2377 Unify libgcc processing.
2378
2379 * Makefile.in (kernel_img_LDFLAGS): New variable.
2380 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
2381 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
2382 overwriting.
2383 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
2384 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
2385 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
2386 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
2387 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
2388 overwriting. Remove -lgcc and -static-libgcc
2389 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
2390 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
2391 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
2392 (kernel_img_LDFLAGS): Append instead of overwriting.
2393 Remove -lgcc and -static-libgcc
2394 * conf/sparc64-ieee1275.rmk: Likewise.
2395 * include/grub/powerpc/libgcc.h: Move to ...
2396 * include/grub/libgcc.h: .. this.
2397 * include/grub/libgcc.h: Don't export most of the function on x86.
2398 (__bswapsi2): New export.
2399 (__bswapdi2): Likewise.
2400 * include/grub/mips/libgcc.h: Removed.
2401 * include/grub/sparc64/libgcc.h: Likewise.
2402
2403 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2404
2405 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
2406 disk_info_msg (conflicts with gettexting into languages with cases).
2407
2408 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
2409
2410 Add grub-probe support for NetBSD.
2411
2412 * util/getroot.c (find_root_device): Convert block device to
2413 character device on NetBSD.
2414 * util/probe.c (probe): Require character device on NetBSD.
2415 * util/hostdisk.c: NetBSD specific headers.
2416 (configure_device_driver): new function to tune device driver
2417 parameters (currently only for NetBSD floppy driver).
2418 (grub_util_biosdisk_open): NetBSD specific code (get disk size
2419 via disklabel ioctl).
2420 (open_device): call configure_device_driver on NetBSD.
2421 (convert_system_partition_to_system_disk): NetBSD specific code.
2422 (device_is_wholedisk): Likewise.
2423 (grub_util_biosdisk_get_grub_dev): Likewise.
2424 (make_device_name): Fixed a typo in bsd_part_str.
2425 * configure.ac: check for opendisk() and getrawpartition() on
2426 NetBSD and set LIBUTIL.
2427 * Makefile.in: add LIBUTIL to LIBS.
2428
2429 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
2430
2431 Documentation fix.
2432
2433 * util/grub-script-check.c: Better help message.
2434
2435 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
2436
2437 Fix FreeBSD build.
2438
2439 * configure.ac: Flex version check.
2440 * conf/common.rmk: Add -Wno-error to sh.mod.
2441 * script/yylex.l: Remove all #pragma.
2442
2443 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2444
2445 * include/grub/util/misc.h (canonicalise_file_name): Add missing
2446 prototype.
2447 Reported by: Seth Goldberg.
2448
2449 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2450
2451 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
2452 Rename "module" to "module2".
2453 Reported by: Seth Goldberg.
2454
2455 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2456
2457 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
2458 EXPORT_FUNC.
2459 Reported by: Seth Goldberg.
2460
2461 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2462
2463 * lib/posix_wrap/locale.h: Add missing file.
2464 Reported by: Seth Goldberg.
2465
2466 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2467
2468 grub-emu module load support.
2469
2470 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
2471 NO_DYNAMIC_MODULES switched to this.
2472 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
2473 (CFLAGS): Likewise.
2474 * conf/any-emu.rmk: Generate symlist.
2475 (kernel_img_HEADERS): Add util/datetime.h.
2476 (kernel_img_HEADERS) [sdl]: Add sdl.h.
2477 (kernel_img_HEADERS) [libusb]: Add libusb.h.
2478 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
2479 kern/$(target_cpu)/cache.S.
2480 * configure.ac (grub-emu-modules): New option.
2481 * genmk.rb: Handle multiple source lists.
2482 * include/grub/sdl.h: New file.
2483 * include/grub/libusb.h: Likewise.
2484 * util/grub-emu.c (main): Hanle (host) root.
2485 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
2486 GRUB_ERR_UNKNOWN_DEVICE.
2487 * util/misc.c: Move mm functions to ...
2488 * util/mm.c: ... here. All users updated.
2489
2490 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2491
2492 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
2493 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
2494 missing files.
2495 (maintainer-clean): Remove libgcrypt-grub.
2496
2497 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2498
2499 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
2500
2501 2010-04-09 EFI Coder <eficoder@hotmail.com>
2502
2503 * normal/menu_text.c (print_message): Clean up the message and show
2504 the Fn information when on EFI
2505 * term/efi/console.c (grub_console_checkkey): Add F4 support.
2506
2507 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2508
2509 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
2510 All users updated.
2511 * normal/crypto.c (read_crypto_list): Likewise.
2512 * normal/dyncmd.c (read_command_list): Likewise.
2513 * normal/term.c (read_terminal_list): Likewise.
2514 * normal/main.c (read_lists): Use explicit prefix.
2515 (read_lists_hook): Use read_lists.
2516 (grub_normal_execute): Likewise.
2517
2518 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2519
2520 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
2521 Reported by: Thomas Schmitt.
2522 Add -no-emul-boot to grub-mkisofs parameters.
2523
2524 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2525
2526 * font/font.c: Indented.
2527
2528 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
2529
2530 Elif support to GRUB script (by Deepak Vankadaru).
2531
2532 * tests/grub_script_if.in: New testcase.
2533 * conf/tests.rmk: Rule for new testcase.
2534 * script/parser.y: Grammar rules for elif.
2535
2536 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
2537
2538 While and until loops support to GRUB script.
2539
2540 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
2541 (grub_script_create_cmdwhile): New function prototype.
2542 (grub_script_execute_cmdwhile): New function prototype.
2543 * script/execute.c (grub_script_execute_cmdwhile): New function.
2544 * script/parser.y (command): New commands.
2545 (whilecmd): New grammar rule.
2546 (untilcmd): New grammar rule.
2547 * script/script.c (grub_script_create_cmdwhile): New function.
2548 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
2549 function.
2550
2551 * tests/grub_script_while1.in: New testcase.
2552 * conf/tests.rmk: Rule for new testcase.
2553
2554 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2555
2556 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
2557 as *.jpg.
2558
2559 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
2560
2561 GRUB_BACKGROUND support.
2562
2563 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
2564 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
2565
2566 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2567
2568 Load fonts and modules for gfxmenu in grub-mkconfig.
2569 Idea by: Mario Vazquez
2570
2571 * util/grub.d/00_header.in: Load pf2 and image modules.
2572
2573 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2574
2575 grub-mkconfig multiple terminal support.
2576
2577 * util/grub-mkconfig.in: Handle multiple terminals correctly.
2578 * util/grub.d/00_header.in: Likewise.
2579
2580 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2581
2582 * Makefile.in: Specify files explicitly instead of using $< and $@ since
2583 we use cd $(srcdir).
2584
2585 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
2586
2587 * util/grub.d/10_linux.in: Only use the first word of
2588 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
2589 spaces in GRUB_DISTRIBUTOR.
2590 * util/grub.d/10_kfreebsd.in: Likewise.
2591 * util/grub.d/10_hurd.in: Likewise.
2592
2593 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
2594
2595 Fix unit testing framework for Qemu 0.12.
2596
2597 * tests/util/grub-shell.in: Remove -serial stdio option.
2598
2599 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2600
2601 POSIX header file wrappers.
2602
2603 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
2604 equivalents.
2605 * lib/posix_wrap/ctype.h: Likewise.
2606 * lib/posix_wrap/errno.h: Likewise.
2607 * lib/posix_wrap/langinfo.h: Likewise.
2608 * lib/posix_wrap/limits.h: Likewise.
2609 * lib/posix_wrap/localcharset.h: Likewise.
2610 * lib/posix_wrap/stdint.h: Likewise.
2611 * lib/posix_wrap/stdio.h: Likewise.
2612 * lib/posix_wrap/stdlib.h: Likewise.
2613 * lib/posix_wrap/string.h: Likewise.
2614 * lib/posix_wrap/sys/types.h: Likewise.
2615 * lib/posix_wrap/unistd.h: Likewise.
2616 * lib/posix_wrap/wchar.h: Likewise.
2617 * lib/posix_wrap/wctype.h: Likewise.
2618 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
2619 (grub_script.yy.h): Likewise.
2620 * script/yylex.l: Remove POSIX emulation #defines.
2621 * Makefile.in (POSIX_CFLAGS): New variable.
2622 (GNULIB_UTIL_CFLAGS): Likewise.
2623
2624 Regexp support.
2625
2626 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
2627 (regexp_mod_SOURCES): New variable.
2628 (regexp_mod_CFLAGS): Likewise.
2629 (regexp_mod_LDFLAGS): Likewise.
2630 * commands/regexp.c: New file.
2631 * gnulib/regcomp.c: New file. Imported from gnulib.
2632 * gnulib/regex.c: Likewise.
2633 * gnulib/regex_internal.c: Likewise.
2634 * gnulib/regex_internal.h: Likewise.
2635 * gnulib/regexec.c: Likewise.
2636 * gnulib/regex.h: Likewise.
2637
2638 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2639
2640 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
2641 unsupported video mode types.
2642
2643 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2644
2645 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
2646
2647 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2648
2649 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
2650 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
2651
2652 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2653
2654 Remove unused grub_vga_get_font.
2655
2656 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
2657 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
2658
2659 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2660
2661 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
2662 * include/grub/misc.h: Likewise.
2663
2664 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2665
2666 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
2667 for which failure is fatal.
2668
2669 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2670
2671 * util/grub-install.in: Use mkdir -p to create grub directory.
2672 * util/i386/efi/grub-install.in: Likewise.
2673 * util/ieee1275/grub-install.in: Likewise.
2674
2675 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2676
2677 * Makefile.in (LEX): new variable.
2678
2679 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2680
2681 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
2682 `=' and added double quotes on operands of this equality test.
2683
2684 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2685
2686 * Makefile.in (uninstall): Remove a leftover debug echo.
2687 Reported by: Grégoire Sutre
2688
2689 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2690
2691 MIPS multiboot2 support.
2692
2693 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
2694 (multiboot2_mod_SOURCES): New variable.
2695 (multiboot2_mod_CFLAGS): Likewise.
2696 (multiboot2_mod_LDFLAGS): Likewise.
2697 (multiboot2_mod_ASFLAGS): Likewise.
2698 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
2699 definition.
2700 (MULTIBOOT_ENTRY_REGISTER): Likewise.
2701 (MULTIBOOT_MBI_REGISTER): Likewise.
2702 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
2703 (MULTIBOOT_ELF32_MACHINE): Likewise.
2704 (MULTIBOOT_ELF64_MACHINE): Likewise.
2705 * include/grub/mips/multiboot.h: New file.
2706 * include/grub/video.h (grub_video_driver_id): New type
2707 GRUB_VIDEO_DRIVER_SM712.
2708 (grub_video_get_info_and_fini): Export.
2709 (grub_video_get_palette): Likewise.
2710 (grub_video_get_driver_id): Likewise.
2711 * include/multiboot2.h: Resynced with spec.
2712 * loader/i386/multiboot.c: Moved from here ...
2713 * loader/multiboot.c: ... here. All users updated.
2714 (grub_multiboot_boot): Use platform-specific macros.
2715 * loader/i386/multiboot_elfxx.c: Moved from here ...
2716 * loader/multiboot_elfxx.c: ... here. All users updated.
2717 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
2718 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
2719 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
2720
2721 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2722
2723 Import gnulib argp module.
2724
2725 * gnulib/argp-ba.c: New file.
2726 * gnulib/argp-eexst.c: Likewise.
2727 * gnulib/argp-fmtstream.c: Likewise.
2728 * gnulib/argp-fmtstream.h: Likewise.
2729 * gnulib/argp-fs-xinl.c: Likewise.
2730 * gnulib/argp-help.c: Likewise.
2731 * gnulib/argp-namefrob.h: Likewise.
2732 * gnulib/argp-parse.c: Likewise.
2733 * gnulib/argp-pin.c: Likewise.
2734 * gnulib/argp-pv.c: Likewise.
2735 * gnulib/argp-pvh.c: Likewise.
2736 * gnulib/argp-version-etc.c: Likewise.
2737 * gnulib/argp-version-etc.h: Likewise.
2738 * gnulib/argp-xinl.c: Likewise.
2739 * gnulib/argp.h: Likewise.
2740
2741 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2742
2743 * kern/device.c (grub_device_iterate): Clear errors after failed
2744 opening device.
2745
2746 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2747
2748 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
2749 returned by firmware.
2750
2751 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
2752
2753 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
2754 compilation on coreboot and qemu
2755
2756 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2757
2758 * include/multiboot2.h: Resync with spec.
2759
2760 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2761
2762 Multiboot2 tag support
2763
2764 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
2765 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
2766 Remove loader/multiboot_loader.c.
2767 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
2768 (grub_multiboot2_real_boot): Likewise.
2769 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
2770 (grub_get_multiboot_mmap_count): New proto.
2771 (grub_fill_multiboot_mmap): Likewise.
2772 (grub_multiboot_set_video_mode): Likewise.
2773 (grub_multiboot_set_console): Likewise.
2774 (grub_multiboot_load): Likewise.
2775 (grub_multiboot_load_elf): Likewise.
2776 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
2777 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
2778 * include/multiboot.h: Resynced with specification.
2779 * include/multiboot2.h: Resynced with specification.
2780 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
2781 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
2782 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
2783 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
2784 users updated.
2785 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
2786 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
2787 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
2788 Removed.
2789 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
2790 Moved from here...
2791 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
2792 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
2793 Moved from here...
2794 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
2795 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
2796 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
2797 All users updated.
2798 * loader/i386/multiboot_mbi2.c: New file.
2799
2800 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2801
2802 Resync with gnulib.
2803
2804 * Makefile.in (GNULIB_CFLAGS): New variable.
2805 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
2806 (grub_script_check_CFLAGS): New variable.
2807 * gnulib/alloca.h: Resync with gnulib.
2808 * gnulib/error.c: Likewise.
2809 * gnulib/error.h: Likewise.
2810 * gnulib/fnmatch.c: Likewise.
2811 * gnulib/fnmatch_loop.c: Likewise.
2812 * gnulib/getdelim.c: Likewise.
2813 * gnulib/getline.c: Likewise.
2814 * gnulib/getopt.c: Likewise.
2815 * gnulib/getopt1.c: Likewise.
2816 * gnulib/getopt_int.h: Likewise.
2817 * gnulib/gettext.h: Likewise.
2818 * gnulib/progname.c: Likewise.
2819 * gnulib/progname.h: Likewise.
2820
2821 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
2822
2823 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
2824 which is the case with --disabled-nls.
2825
2826 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
2827 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
2828 * util/misc.c: Likewise.
2829 * util/mkisofs/mkisofs.c: Likewise.
2830 * util/mkisofs/mkisofs.h: Likewise.
2831
2832 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2833
2834 Simplify Apple CC support.
2835
2836 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
2837 Add 0 byte at the end not to have a symbol with empty target.
2838 * mmap/i386/pc/mmap_helper.S: Likewise.
2839 * genmk.rb: Ignore errors 2030 and 2050.
2840 * kern/i386/pc/startup.S: Use LOCAL when possible.
2841
2842 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
2843
2844 Testcase and the fix for final semicolon on cmdline.
2845
2846 * tests/grub_script_final_semicolon.in: New testcase.
2847 * conf/tests.rmk: Rules for the new testcase.
2848 * script/parser.y: Grammar fix.
2849
2850 2010-03-26 BVK Chaitanya <bvk@localhost>
2851
2852 Blank lines testcase for GRUB script.
2853
2854 * tests/grub_script_blanklines.in: New testcase.
2855 * conf/tests.rmk: Rules for the new testcase.
2856
2857 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2858
2859 Don't use __FILE__.
2860
2861 * genmk.rb: Add -DGRUB_FILE to all C targets.
2862 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
2863 * include/grub/list.h: Likewise.
2864 * include/grub/misc.h: Likewise.
2865 * include/grub/mm.h: Likewise.
2866 * include/grub/test.h: Likewise.
2867 * kern/mm.c: Likewise.
2868 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
2869
2870 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2871
2872 Sunpc partitions support.
2873
2874 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
2875 (grub_fstest_SOURCES): Likewise.
2876 (pkglib_MODULES): Add part_sunpc.mod.
2877 (part_sunpc_mod_SOURCES): New variable.
2878 (part_sunpc_mod_CFLAGS): Likewise.
2879 (part_sunpc_mod_LDFLAGS): Likewise.
2880 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
2881 * partmap/sunpc.c: New file.
2882
2883 2010-03-26 BVK Chaitanya <bvk@localhost>
2884
2885 For loop support to GRUB script.
2886
2887 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
2888 (grub_script_create_cmdfor): New function prototype.
2889 (grub_script_execute_cmdfor): New function prototype.
2890 * script/execute.c (grub_script_execute_cmdfor): New function.
2891 * script/parser.y (command): New for command.
2892 (forcmd): New grammar rule.
2893 * script/script.c (grub_script_create_cmdfor): New function.
2894 * util/grub-script-check.c (grub_script_execute_cmdfor): New
2895 function.
2896 * tests/grub_script_for1.in: New testcase.
2897 * conf/tests.rmk: Rules for new testcase.
2898
2899 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2900
2901 Nested partitions
2902
2903 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
2904 'partition' is NULL, grub_partition_get_start already does that.
2905 * commands/loadenv.c (check_blocklists): Likewise.
2906 (write_blocklists): Likewise.
2907 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
2908 (grub_fstest_SOURCES): Likewise.
2909 (pkglib_MODULES): Add part_bsd.mod.
2910 (part_bsd_mod_SOURCES): New variable.
2911 (part_bsd_mod_CFLAGS): Likewise.
2912 (part_bsd_mod_LDFLAGS): Likewise.
2913 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
2914 (grub_emu_SOURCES): Likewise.
2915 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2916 * include/grub/bsdlabel.h: New file.
2917 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
2918 'get_name'.
2919 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
2920 (grub_partition_map_list): New variable.
2921 (grub_partition_map_register): Inline.
2922 (grub_partition_map_unregister): Likewise.
2923 (FOR_PARTITION_MAPS): New macro.
2924 (grub_partition_map_iterate): Removed.
2925 (grub_partition_get_start): Handle nested partitions.
2926 * include/grub/msdos_partition.h: Remove bsd-related entries.
2927 (grub_pc_partition): Remove.
2928 * kern/disk.c (grub_disk_close): Free partition data.
2929 (grub_disk_adjust_range): Handle nested partitions.
2930 * kern/partition.c (grub_partition_map_probe): New function.
2931 (grub_partition_probe): Parse name to number, handle subpartitions.
2932 (get_partmap): New function.
2933 (grub_partition_iterate): Handle subpartitions.
2934 (grub_partition_get_name): Likewise.
2935 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
2936 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
2937 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
2938 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
2939 Set 'number'.
2940 (acorn_partition_map_probe): Remove.
2941 (acorn_partition_map_get_name): Likewise.
2942 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
2943 Set 'number'.
2944 Set 'index' to 0 since there can be only one partition entry per sector.
2945 (amiga_partition_map_probe): Remove.
2946 (amiga_partition_map_get_name): Likewise.
2947 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
2948 Set 'number'.
2949 Set 'offset' and 'index' to real positions of partitions.
2950 (apple_partition_map_probe): Remove.
2951 (apple_partition_map_get_name): Likewise.
2952 * partmap/bsdlabel.c: New file.
2953 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
2954 Set 'number'.
2955 Allocate 'data' so it can be correctly freed.
2956 Set 'index' to offset inside sector.
2957 (gpt_partition_map_probe): Remove.
2958 (gpt_partition_map_get_name): Likewise.
2959 * partmap/msdos.c (grub_partition_parse): Remove.
2960 (pc_partition_map_iterate): Don't force raw access.
2961 Set 'number'.
2962 Make 'ext_offset' a local variable.
2963 (pc_partition_map_probe): Remove.
2964 (pc_partition_map_get_name): Remove.
2965 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
2966 Set 'number'.
2967 (sun_partition_map_probe): Remove.
2968 (sun_partition_map_get_name): Likewise.
2969 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
2970 (grub_pcpart_type): Likewise.
2971 * util/hostdisk.c (open_device): Handle new numbering scheme.
2972 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
2973 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
2974 * util/grub-probe.c (probe_partmap): Handle nested paritions.
2975 * util/grub-install.in: Insert all subpartition modules.
2976 * util/ieee1275/grub-install.in: Likewise.
2977
2978 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
2979
2980 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
2981 grammar.
2982
2983 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
2984
2985 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
2986
2987 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
2988
2989 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
2990 match where 'make install' puts them.
2991 * util/i386/efi/grub-install.in: Likewise.
2992
2993 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
2994
2995 * .bzrignore: Add gentrigtables, grub-script-check,
2996 grub_script_check_init.c, grub_script_check_init.h, and
2997 trigtables.c.
2998
2999 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
3000
3001 * kern/parser.c: Indented.
3002
3003 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
3004
3005 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
3006
3007 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
3008
3009 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
3010 alpha_mask_size == 0 case.
3011
3012 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
3013
3014 GRUB shell lexer and parser improvements.
3015
3016 * conf/any-emu.rmk: Build rule updates.
3017 * conf/common.rmk: Likewise.
3018 * conf/i386-coreboot.rmk: Likewise.
3019 * conf/i386-efi.rmk: Likewise.
3020 * conf/i386-ieee1275.rmk: Likewise.
3021 * conf/i386-pc.rmk: Likewise.
3022 * conf/powerpc-ieee1275.rmk: Likewise.
3023 * conf/x86_64-efi.rmk: Likewise.
3024
3025 * configure.ac: Configure check for flex.
3026
3027 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
3028 types.
3029 (grub_lexer_param): Struct member updates.
3030 (grub_parser_param): Likewise.
3031 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
3032 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
3033 (grub_script_lexer_init): Prototype update.
3034 (grub_script_lexer_record_start): Likewise.
3035 (grub_script_lexer_record_stop): Likewise.
3036 (grub_script_lexer_yywrap): New function prototype.
3037 (grub_script_lexer_fini): Likewise.
3038 (grub_script_execute_argument_to_string): Removed by...
3039 (grub_script_execute_argument_to_argv): ...better version.
3040
3041 * script/execute.c (ROUND_UPTO): New macro.
3042 (grub_script_execute_cmdline): Out of memory fixes.
3043 (grub_script_execute_menuentry): Likewise.
3044 (grub_script_execute_argument_to_string): Removed. Update all
3045 users by...
3046 (grub_script_execute_argument_to_argv): ...better version.
3047 * script/function.c (grub_script_function_create): Use
3048 grub_script_execute_argument_to_argv instead of
3049 grub_script_execute_argument_to_string.
3050
3051 * script/lexer.c (check_varstate): Removed.
3052 (check_textstate): Removed.
3053 (grub_script_lexer_record_start): Likewise.
3054 (grub_script_lexer_record_stop): Likewise.
3055 (recordchar): Replaced with...
3056 (grub_script_lexer_record): ...new function.
3057 (nextchar): Removed.
3058 (grub_script_lexer_init): Rewritten.
3059 (grub_script_yylex): Rewritten.
3060 (append_newline): New function.
3061 (grub_script_lexer_yywrap): New function.
3062 (grub_script_lexer_fini): New function.
3063 (grub_script_yyerror): Sets error flag.
3064
3065 * script/yylex.l: New file.
3066 (grub_lexer_yyfree): Wrapper for flex yyffre.
3067 (grub_lexer_yyalloc): Likewise.
3068 (grub_lexer_yyrealloc): Likewise.
3069 * script/parser.y: Refactored.
3070
3071 * script/script.c (grub_script_arg_add): Out of memory fixes.
3072 (grub_script_add_arglist): Likewise.
3073 (grub_script_create_cmdline): Likewise.
3074 (grub_script_create_cmdmenu): Likewise.
3075 (grub_script_add_cmd): Likewise.
3076 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
3077 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
3078 unnecessary code.
3079
3080 * tests/grub_script_echo1.in: New testcase.
3081 * tests/grub_script_vars1.in: New testcase.
3082 * tests/grub_script_echo_keywords.in: New testcase.
3083
3084 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3085
3086 Remove some redundancy in build system.
3087
3088 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
3089 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
3090 (TARGET_LDFLAGS): Add -nostdlib.
3091 (TARGET_IMG_LDFLAGS): Likewise.
3092 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
3093 anything since mmap isn't available.
3094 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
3095 Add util/time.c.
3096 (pkglib_MODULES): Remove reboot.mod.
3097 (reboot_mod_SOURCES): Removed.
3098 (reboot_mod_CFLAGS): Likewise.
3099 (reboot_mod_LDFLAGS): Likewise.
3100 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
3101 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
3102 (DEFSYMFILES): Add kernel_syms.lst.
3103 (kernel_img_HEADERS): Add common headers.
3104 (symlist.c): New target.
3105 (kernel_syms.lst): Likewise.
3106 (pkglib_MODULES): Add memdisk.mod.
3107 (memdisk_mod_SOURCES): New variable.
3108 (memdisk_mod_CFLAGS): Likewise.
3109 (memdisk_mod_LDFLAGS): Likewise.
3110 (pkglib_MODULES): Add reboot.mod.
3111 (reboot_mod_SOURCES): New variable.
3112 (reboot_mod_CFLAGS): Likewise.
3113 (reboot_mod_LDFLAGS): Likewise.
3114 (pkglib_MODULES): Add date.mod.
3115 (date_mod_SOURCES): New variable.
3116 (date_mod_CFLAGS): Likewise.
3117 (date_mod_LDFLAGS): Likewise.
3118 (pkglib_MODULES): Add datehook.mod.
3119 (datehook_mod_SOURCES): New variable.
3120 (datehook_mod_CFLAGS): Likewise.
3121 (datehook_mod_LDFLAGS): Likewise.
3122 (pkglib_MODULES): Add lsmmap.mod.
3123 (lsmmap_mod_SOURCES): New variable.
3124 (lsmmap_mod_CFLAGS): Likewise.
3125 (lsmmap_mod_LDFLAGS): Likewise.
3126 (pkglib_MODULES): Add boot.mod.
3127 (boot_mod_SOURCES): New variable.
3128 (boot_mod_CFLAGS): Likewise.
3129 (boot_mod_LDFLAGS): Likewise.
3130 * conf/i386-coreboot.rmk: Removed redundant parts.
3131 * conf/i386-ieee1275.rmk: Likewise.
3132 * conf/i386-pc.rmk: Likewise.
3133 * conf/mips-yeeloong.rmk: Likewise.
3134 * conf/mips.rmk: Likewise.
3135 * conf/powerpc-ieee1275.rmk: Likewise.
3136 * conf/sparc64-ieee1275.rmk: Likewise.
3137 * conf/x86_64-efi.rmk: Likewise.
3138 * conf/i386-coreboot.rmk: Moved qemu parts ..
3139 * conf/i386-qemu.rmk: ... here
3140 * conf/i386-efi.rmk: Moved common parts to...
3141 * conf/x86-efi.rmk: ... here.
3142 * conf/i386.rmk: Added modules common to all x86 variants.
3143 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
3144 * disk/memdisk.c: Remove grub/machine/kernel.h.
3145 * gensymlist.sh.in: Include symbol.h.
3146 * hook/datehook.c: Correct module name.
3147 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
3148 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
3149 * include/grub/i386/efi/serial.h: New file.
3150 * include/grub/x86_64/efi/serial.h: Likewise.
3151 * util/time.c: Likewise.
3152 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
3153
3154 2010-03-14 Colin King <colin.king@ubuntu.com>
3155 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
3156
3157 Shrink the pre-partition-table part of boot.img by eight bytes.
3158
3159 * boot/i386/pc/boot.S (ERR): New macro.
3160 (chs_mode): Use ERR.
3161 (geometry_error): Likewise.
3162 (hd_probe_error): Remove. This is only used once, so we wrwite
3163 it inline instead.
3164 (read_error): Instead of printing read_error_string, just set up
3165 %si and fall through to ...
3166 (error_message): ... this new function, also used by ERR.
3167
3168 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
3169
3170 Speed up consecutive hostdisk operations on the same device.
3171
3172 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
3173 (grub_util_biosdisk_open): Initialise disk->data.
3174 (struct linux_partition_cache): New structure.
3175 (linux_find_partition): Cache partition start positions; these are
3176 expensive to compute on every read and write.
3177 (open_device): Cache open file descriptor in disk->data, so that we
3178 don't have to reopen it and flush the buffer cache for consecutive
3179 operations on the same device.
3180 (grub_util_biosdisk_close): New function.
3181 (grub_util_biosdisk_dev): Set `close' member.
3182
3183 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
3184 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
3185 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
3186 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
3187 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
3188
3189 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3190
3191 Compile parts of grub-emu as modules.
3192
3193 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
3194 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
3195 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
3196 (all-local): Add $(GRUB_EMU).
3197 (install-local): Install $(GRUB_EMU).
3198 (uninstall): Uninstall $(GRUB_EMU).
3199 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
3200 * kern/dl.c: Likewise.
3201 * commands/sleep.c: Not include machine/time.h.
3202 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
3203 (COMMON_CFLAGS): Likewise.
3204 (sbin_UTILITIES): Remove grub-emu.
3205 (grub_emu_SOURCES): Removed.
3206 (kernel_img_RELOCATABLE): New variable.
3207 (pkglib_PROGRAMS): Add kernel.img.
3208 (kernel_img_SOURCES): New variable
3209 (kernel_img_CFLAGS): Likewise.
3210 (kernel_img_LDFLAGS): Likewise.
3211 (TARGET_NO_STRIP): Likewise.
3212 (TARGET_NO_DYNAMIC_MODULES): Likewise.
3213 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
3214 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
3215 (grub-emu): New target.
3216 (GRUB_EMU): New variable.
3217 * configure.ac: Whitelist -emu as possible x86_64 architecture.
3218 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
3219 * loader/xnu.c: Likewise.
3220 * include/grub/pci.h: Likewise.
3221 * genemuinit.sh: New file.
3222 * genemuinitheader.sh: Likewise.
3223 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
3224 Support TARGET_NO_DYNAMIC_MODULES.
3225 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
3226 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
3227 * disk/loopback.c: Likewise.
3228 * font/font_cmd.c: Likewise.
3229 * partmap/acorn.c: Likewise.
3230 * partmap/amiga.c: Likewise.
3231 * partmap/apple.c: Likewise.
3232 * partmap/gpt.c: Likewise.
3233 * partmap/msdos.c: Likewise.
3234 * partmap/sun.c: Likewise.
3235 * parttool/msdospart.c: Likewise.
3236 * term/gfxterm.c: Likewise.
3237 * video/bitmap.c: Likewise.
3238 * video/readers/jpeg.c: Likewise.
3239 * video/readers/png.c: Likewise.
3240 * video/readers/tga.c: Likewise.
3241 * video/video.c: Likewise.
3242 * util/grub-emu.c (read_command_list): Removed.
3243 (main): Don't call util_init_nls.
3244 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
3245 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
3246
3247 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3248
3249 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
3250 date.mod, datehook.mod.
3251 (datetime_mod_SOURCES): New variable.
3252 (datetime_mod_CFLAGS): Likewise.
3253 (datetime_mod_LDFLAGS): Likewise.
3254 (date_mod_SOURCES): Likewise.
3255 (date_mod_CFLAGS): Likewise.
3256 (date_mod_LDFLAGS): Likewise.
3257 (datehook_mod_SOURCES): Likewise.
3258 (datehook_mod_CFLAGS): Likewise.
3259 (datehook_mod_LDFLAGS): Likewise.
3260 * conf/sparc64-ieee1275.rmk: Likewise.
3261 * lib/ieee1275/datetime.c: New file.
3262
3263 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3264
3265 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
3266 (ieee1275_fb_mod_SOURCES): New variable.
3267 (ieee1275_fb_mod_CFLAGS): Likewise.
3268 (ieee1275_fb_mod_LDFLAGS): Likewise.
3269 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
3270 New proto.
3271 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
3272 (HEAP_MAX_ADDR): Likewise.
3273 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
3274 type.
3275 Correct stop condition.
3276 (grub_ieee1275_devices_iterate): New function.
3277 * video/ieee1275.c: New file.
3278
3279 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3280
3281 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
3282
3283 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
3284 as scratch.
3285 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
3286 SCRATCH_PAD_DISKBOOT as scratch.
3287 (bootit): Pass Openfirmware pointer in %o4.
3288 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
3289 of 0x200000.
3290 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
3291 with util/grub-mkrawimage.c.
3292 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
3293 * include/grub/aout.h (AOUT_MID_SUN): New definition.
3294 (grub_aout_get_type) [GRUB_UTIL]: Removed.
3295 (grub_aout_load) [GRUB_UTIL]: Likewise.
3296 * include/grub/kernel.h (grub_modules_get_end): New proto.
3297 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
3298 (SCRATCH_PAD_BOOT): New definition.
3299 (SCRATCH_PAD_DISKBOOT): Likewise.
3300 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
3301 * include/grub/sparc64/ieee1275/ieee1275.h
3302 (grub_ieee1275_original_stack): New variable
3303 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
3304 New definition
3305 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
3306 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
3307 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
3308 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
3309 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
3310 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
3311 (grub_platform_image_format_t): New type.
3312 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
3313 * kern/main.c (grub_modules_get_end)
3314 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
3315 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
3316 (codestart): Switch stacks.
3317 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
3318 variable.
3319 (grub_heap_init): Use grub_modules_get_end.
3320 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
3321 stack.
3322 * util/grub-mkrawimage.c (generate_image): Support sparc64.
3323 (main): Likewise.
3324 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
3325
3326 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
3327
3328 * util/grub-mkrescue.in: Base ISO UUID on UTC.
3329
3330 2010-03-08 Matt Kraai <kraai@ftbfs.org>
3331
3332 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
3333 bug #559005).
3334
3335 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
3336
3337 * genmoddep.awk: Output all missing symbols and not only first.
3338
3339 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3340
3341 * NEWS: Put the date of 1.98 release.
3342
3343 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3344
3345 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
3346 ft2build.h.
3347
3348 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3349
3350 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
3351 completition in the middle of string.
3352
3353 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3354
3355 * util/grub-mkrescue.in: Use mktemp with explicit template.
3356
3357 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3358
3359 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
3360
3361 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3362
3363 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
3364 right pointer.
3365
3366 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3367
3368 Fix FreeBSD compilation.
3369
3370 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
3371 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
3372
3373 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3374
3375 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
3376
3377 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3378
3379 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
3380
3381 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3382
3383 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
3384
3385 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
3386
3387 Support relative image path in theme file.
3388
3389 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
3390 (image_set_property): Handle theme_dir and relative path.
3391
3392 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3393
3394 * configure.ac: Alias amd64 to x86_64.
3395
3396 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3397
3398 * NEWS: mention multiboot on EFI.
3399
3400 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3401
3402 * kern/main.c (grub_load_modules): Handle errors from init functions of
3403 embeded modules.
3404
3405 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3406
3407 * normal/autofs.c (autoload_fs_module): Handle errors.
3408
3409 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3410
3411 Disable linux.mod on qemu-mips since it's not functional and leads
3412 to compilation failure.
3413
3414 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
3415 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
3416 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
3417 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
3418 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
3419 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
3420 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
3421 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
3422 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
3423 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
3424 Reported by: BVK Chaitanya
3425
3426 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
3427
3428 * INSTALL: Add gettext as a dependency and add qemu to a new section
3429 "Prerequisites for make-check".
3430
3431 2010-03-04 Christian Franke <franke@computer.org>
3432
3433 * util/grub-pe2elf.c: Add missing include "progname.h".
3434
3435 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3436
3437 * normal/crypto.c (read_crypto_list): Fix a typo.
3438 Reported by: Seth Goldberg.
3439
3440 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3441
3442 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
3443 Reported by: Seth Goldberg.
3444
3445 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3446
3447 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
3448 ascii.bitmaps.
3449
3450 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3451
3452 * genmk.rb: Remove terminal*.lst in make clean.
3453 Reported by: Seth Goldberg.
3454
3455 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3456
3457 * util/i386/efi/grub-install.in: Copy gettext files.
3458
3459 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3460
3461 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
3462
3463 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3464
3465 Wait for user entry basing on presence of output rather than on errors.
3466
3467 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
3468 (grub_install_newline_hook): Likewise.
3469 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
3470 * normal/menu.c (show_menu): Check line_counter to determine presence
3471 of output.
3472 * normal/term.c (grub_normal_line_counter): New variable.
3473 (grub_normal_get_line_counter): New function.
3474 (grub_install_newline_hook): Likewise.
3475
3476 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3477
3478 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
3479
3480 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3481
3482 * configure.ac: Update version to 1.98.
3483
3484 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
3485
3486 * util/grub.d/10_linux.in (linux_entry): Don't default to
3487 gfxpayload=keep if Linux doesn't support video handover.
3488
3489 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
3490
3491 Don't compile video modules on yeeloong since video subsystem is part
3492 of kernel.
3493
3494 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
3495 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
3496 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
3497 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
3498 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
3499 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
3500 * include/grub/bitmap_scale.h: Likewise.
3501 * include/grub/bufio.h: Likewise.
3502 * include/grub/font.h: Likewise.
3503 * include/grub/gfxterm.h: Likewise.
3504 * include/grub/video.h: Likewise.
3505 * include/grub/vbe.h: Don't include video_fb.h.
3506 * video/i386/pc/vbe.c: Include video_fb.h.
3507 * commands/i386/pc/vbetest.c: Include video.h.
3508
3509 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
3510
3511 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
3512 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
3513 default entry if GRUB_SAVEDEFAULT=true. This allows using
3514 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
3515 saving a new default on every boot.
3516
3517 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
3518
3519 * normal/crypto.c (read_crypto_list): Fix a memory leak.
3520 * normal/term.c (read_terminal_list): Likewise.
3521 * normal/main.c (grub_normal_init_page): Likewise.
3522 (grub_normal_read_line_real): Likewise.
3523
3524 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
3525
3526 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
3527 memory leak.
3528 Reported by: Seth Goldberg.
3529
3530 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
3531
3532 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
3533 duplicate declaration of `start'.
3534
3535 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
3536
3537 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
3538 filename.
3539 Reported by: Georgy Buranov
3540
3541 2010-02-20 Carles Pina i Estany <carles@pina.cat>
3542
3543 * util/grub-mkrawimage.c (usage): Change string formatting to
3544 improve gettext.
3545
3546 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
3547
3548 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
3549 backspace keys.
3550
3551 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
3552
3553 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
3554 Reported by: Michael Suchanek.
3555
3556 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
3557
3558 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
3559 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
3560
3561 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
3562
3563 Remove any reference to non-free fonts.
3564
3565 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
3566 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
3567 uses non-free components.
3568 * font/font.c (grub_font_get_name): Remove example name.
3569 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
3570 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
3571 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
3572 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
3573
3574 2010-02-16 Georgy Buranov <gburanov@gmail.com>
3575
3576 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
3577
3578 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
3579
3580 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
3581 Double divisor.
3582 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
3583 features.
3584 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
3585
3586 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
3587
3588 * gensymlist.sh.in: Use TARGET_CC instead of CC.
3589
3590 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3591
3592 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
3593 * docs/grub.texi (Command-line and menu entry commands): Document play
3594 command.
3595
3596 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3597
3598 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
3599 parse arguments as inline tempo and notes. Move code for playing notes
3600 to...
3601 (play): ... new function.
3602
3603 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3604
3605 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
3606 grub_uint16_t instead of short.
3607 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
3608 disk from little endian to cpu endianness.
3609
3610 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3611
3612 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
3613 GRUB_TICKS_PER_SECOND instead of 120.
3614
3615 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3616
3617 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
3618 escape sequence after \e.
3619
3620 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3621
3622 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
3623 non-ASCII characters.
3624
3625 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3626
3627 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
3628 set root in single quotes to prevent \, from being unescaped.
3629
3630 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3631
3632 Prevent unknown commands from stopping menuentry execution.
3633
3634 * script/execute.c (grub_script_execute_cmdline): Print error after
3635 unknown command.
3636
3637 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3638
3639 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
3640 Reported by: Pavel Pisa.
3641
3642 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3643
3644 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
3645
3646 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3647
3648 Merge grub_ieee1275_map_physical into grub_map and rename to
3649 grub_ieee1275_map
3650
3651 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
3652 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
3653 Remove.
3654 * kern/ieee1275/openfw.c (grub_map): Rename to ...
3655 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
3656 necessary.
3657 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
3658
3659 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3660
3661 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
3662 opening and not after.
3663
3664 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3665
3666 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
3667 constants.
3668
3669 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3670
3671 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
3672 (alloc_phys): Use ALIGN_UP instead of align_addr.
3673
3674 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3675
3676 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
3677
3678 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3679
3680 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
3681
3682 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3683
3684 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
3685 verbose dprintf.
3686
3687 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3688
3689 Fix over-4GiB seek on sparc64.
3690
3691 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
3692 Replace pos_i and pos_lo with pos. All users updated.
3693 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3694 New constant.
3695 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3696 Likewise.
3697 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
3698 and pos_lo.
3699
3700 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3701
3702 * util/grub-mkrawimage.c (main): Call set_program_name.
3703
3704 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3705
3706 Properly align 64-bit targets.
3707
3708 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
3709 (generate_image): Use ALIGN_ADDR.
3710
3711 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3712
3713 Properly create cross-endian images.
3714
3715 * include/grub/types.h (grub_host_to_target_addr): New macro
3716 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
3717
3718 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3719
3720 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
3721
3722 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3723
3724 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
3725
3726 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
3727 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
3728 (grub_linux_boot): Divide by 64K when on VESA.
3729
3730 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3731
3732 Support GRUB_GFXPAYLOAD_LINUX.
3733
3734 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
3735 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
3736
3737 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3738
3739 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
3740 to show messages instead of discarding them.
3741 Process errors after executing command and not before. Keep old method
3742 too as precaution.
3743
3744 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
3745
3746 * configure.ac: Check for ft2build.h.
3747
3748 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3749
3750 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
3751
3752 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3753
3754 * genkernsyms.sh.in: Use TARGET_CC.
3755
3756 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
3757
3758 * NEWS: Update.
3759
3760 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3761
3762 * include/grub/multiboot2.h: Remove leftover file.
3763 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
3764 * include/grub/partition.h [GRUB_UTIL]: Likewise.
3765
3766 2010-02-07 Yves Blusseau <blusseau@zetam.org>
3767
3768 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
3769
3770 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3771
3772 Fix warnings in grub-emu when compiling with maximum warning options.
3773
3774 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
3775 (grub_arch_modules_addr): Return 0 and not NULL.
3776 * util/misc.c (ENABLE_RELOCATABLE): New definition.
3777 (xstrdup): Use newstr instead of dup.
3778 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
3779 of disk to dsk to avoid shadowing.
3780 (find_free_slot): Fix prototype.
3781 * util/getroot.c (grub_util_is_dmraid): Make static.
3782 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
3783 Add missing prototype.
3784 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
3785
3786 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3787
3788 * loader/i386/linux.c (grub_linux_setup_video): Handle error
3789 appropriately.
3790
3791 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3792
3793 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
3794 code out.
3795
3796 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3797
3798 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
3799 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
3800 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
3801 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
3802 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
3803 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
3804
3805 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3806
3807 * include/grub/err.h (grub_err_printf): Don't export.
3808
3809 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3810
3811 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
3812
3813 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3814
3815 * include/grub/i18n.h (grub_gettext_dummy): Removed.
3816 * kern/misc.c (grub_gettext_dummy): Make static.
3817
3818 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3819
3820 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
3821 by non-valid ones.
3822 * kern/term.c (grub_putchar): Likewise.
3823
3824 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3825
3826 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
3827 buggy hook call and memory leak.
3828
3829 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3830
3831 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
3832
3833 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3834
3835 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
3836
3837 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3838
3839 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
3840 modevar.
3841 Return grub_errno on allocation error.
3842
3843 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3844
3845 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
3846
3847 2010-02-06 Yves Blusseau <blusseau@zetam.org>
3848
3849 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
3850 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
3851
3852 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3853
3854 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
3855 non-pxe disk.
3856 (grub_pxefs_open): Likewise.
3857
3858 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3859
3860 * util/grub.d/10_hurd.in: Add --class information to menuentries.
3861 * util/grub.d/10_kfreebsd.in: Likewise.
3862 * util/grub.d/10_linux.in: Likewise.
3863
3864 2010-02-06 Colin D Bennett <colin@gibibit.com>
3865
3866 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
3867 (gfxmenu_mod_SOURCES): New variable.
3868 (gfxmenu_mod_CFLAGS): Likewise.
3869 (gfxmenu_mod_LDFLAGS): Likewise.
3870 * include/grub/term.h (grub_term_set_current_output): Declare
3871 argument as const.
3872 * docs/gfxmenu-theme-example.txt: New file.
3873 * gfxmenu/gfxmenu.c: Likewise.
3874 * gfxmenu/gui_box.c: Likewise.
3875 * gfxmenu/gui_canvas.c: Likewise.
3876 * gfxmenu/gui_circular_progress.c: Likewise.
3877 * gfxmenu/gui_image.c: Likewise.
3878 * gfxmenu/gui_label.c: Likewise.
3879 * gfxmenu/gui_list.c: Likewise.
3880 * gfxmenu/gui_progress_bar.c: Likewise.
3881 * gfxmenu/gui_string_util.c: Likewise.
3882 * gfxmenu/gui_util.c: Likewise.
3883 * gfxmenu/icon_manager.c: Likewise.
3884 * gfxmenu/model.c: Likewise.
3885 * gfxmenu/named_colors.c: Likewise.
3886 * gfxmenu/theme_loader.c: Likewise.
3887 * gfxmenu/view.c: Likewise.
3888 * gfxmenu/widget-box.c: Likewise.
3889 * include/grub/gfxmenu_model.h: Likewise.
3890 * include/grub/gfxmenu_view.h: Likewise.
3891 * include/grub/gfxwidgets.h: Likewise.
3892 * include/grub/gui.h: Likewise.
3893 * include/grub/gui_string_util.h: Likewise.
3894 * include/grub/icon_manager.h: Likewise.
3895
3896 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3897
3898 Agglomerate scrolling in gfxterm.
3899
3900 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
3901 (grub_virtual_screen_setup): Initialise 'total_screen'.
3902 (write_char): Split to ...
3903 (paint_char): ... this ...
3904 (write_char): ... and this.
3905 (paint_char): Handle delayed scrolling.
3906 (draw_cursor): Likewise.
3907 (scroll_up): Split to ...
3908 (real_scroll): ... this ...
3909 (scroll_up): ... and this.
3910 (real_scroll): Handle multi-line scroll and draw below-the-bottom
3911 characters.
3912 (grub_gfxterm_refresh): Call real_scroll.
3913
3914 2010-02-06 Colin D Bennett <colin@gibibit.com>
3915
3916 * include/grub/misc.h (grub_iscntrl): New inline function.
3917 (grub_isalnum): Likewise.
3918 (grub_strtol): Likewise.
3919
3920 2010-02-06 Colin D Bennett <colin@gibibit.com>
3921
3922 * normal/menu_text.c (get_entry_number): Move from here ...
3923 * normal/menu.c (get_entry_number): ... moved here.
3924 * include/grub/menu.h (grub_menu_get_default_entry_index):
3925 New prototype.
3926 * normal/menu.c (grub_menu_get_default_entry_index): New function.
3927 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
3928 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
3929 (grub_menu_viewer_should_return): Likewise.
3930 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
3931 * normal/menu_text.c (run_menu): Enable menu switching.
3932 * normal/menu_viewer.c (should_return): New variable.
3933 (menu_viewer_changed): Likewise.
3934 (grub_menu_viewer_show_menu): Handle menu viewer changes.
3935 (grub_menu_viewer_should_return): New function.
3936 (menuviewer_write_hook): Likewise.
3937 (grub_menu_viewer_init): Likewise.
3938
3939 2010-02-06 Colin D Bennet <colin@gibibit.com>
3940 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3941
3942 Support for gfxterm in a window.
3943
3944 * include/grub/gfxterm.h: New file.
3945 * include/grub/video.h (struct grub_video_rect): New declaration.
3946 (grub_video_rect_t): Likewise.
3947 * term/gfxterm.c (struct grub_gfxterm_window): New type.
3948 (refcount): New variable.
3949 (render_target): Likewise.
3950 (window): Likewise.
3951 (repaint_callback): Likewise.
3952 (grub_virtual_screen_setup): Use 'render_target'.
3953 (init_window): New function.
3954 (grub_gfxterm_init_window): Likewise.
3955 (grub_gfxterm_init): Check reference counter.
3956 Use init_window.
3957 (destroy_window): New function.
3958 (grub_gfxterm_destroy_window): Likewise.
3959 (grub_gfxterm_fini): Check reference counter.
3960 Use destroy_window.
3961 (redraw_screen_rect): Restore viewport.
3962 Use 'render_target' and 'window'.
3963 Call 'repaint_callback'.
3964 (write_char): Use 'render_target'.
3965 (draw_cursor): Likewise.
3966 (scroll_up): Restore viewport.
3967 Use 'render_target' and 'window'.
3968 Call 'repaint_callback'.
3969 (grub_gfxterm_cls): Likewise.
3970 (grub_gfxterm_refresh): Use 'window'.
3971 (grub_gfxterm_set_repaint_callback): New function.
3972 (grub_gfxterm_background_image_cmd): Use 'window'.
3973 (grub_gfxterm_get_term): New function.
3974 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
3975
3976 2010-02-06 Colin D Bennett <colin@gibibit.com>
3977
3978 Bitmap scaling support.
3979
3980 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
3981 (bitmap_scale_mod_SOURCES): New variable.
3982 (bitmap_scale_mod_CFLAGS): Likewise.
3983 (bitmap_scale_mod_LDFLAGS): Likewise.
3984 * include/grub/bitmap_scale.h: New file.
3985 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
3986 (background_image_cmd_options): New variable.
3987 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
3988 (cmd): Rename and change type to ...
3989 (background_image_cmd_handle): ... this. All users updated.
3990 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
3991 * video/bitmap_scale.c: New file.
3992
3993 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3994
3995 SDL support.
3996
3997 * Makefile.in (LIBSDL): New variable.
3998 (enable_grub_emu_sdl): Likewise.
3999 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
4000 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
4001 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
4002 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
4003 * util/sdl.c: New file.
4004
4005 2010-02-06 Colin D Bennett <colin@gibibit.com>
4006 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4007
4008 Double buffering support.
4009
4010 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
4011 * include/grub/video.h: Update comment.
4012 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
4013 New type.
4014 (grub_video_fb_doublebuf_blit_init): New prototype.
4015 * term/gfxterm.c (scroll_up): Support double buffering.
4016 (grub_gfxterm_refresh): Likewise.
4017 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
4018 (grub_video_fb_doublebuf_blit_init): Likewise.
4019 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
4020 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
4021 'displayed_page', 'render_page' and 'update_screen'.
4022 (grub_video_vbe_fini): Free offscreen buffer.
4023 (doublebuf_pageflipping_commit): New function.
4024 (doublebuf_pageflipping_update_screen): Likewise.
4025 (doublebuf_pageflipping_init): Likewise.
4026 (double_buffering_init): Likewise.
4027 (grub_video_vbe_setup): Enable doublebuffering.
4028 (grub_video_vbe_swap_buffers): Implement.
4029 (grub_video_vbe_set_active_render_target): Handle double buffering.
4030 (grub_video_vbe_get_active_render_target): Likewise.
4031 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
4032 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
4033 (grub_video_vbe_enable_double_buffering): Likewise.
4034 (grub_video_vbe_swap_buffers): Use update_screen.
4035 (grub_video_set_mode): Use double buffering.
4036
4037 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
4038
4039 * maintainance/gentrigtables.py: Remove.
4040 * lib/trig.c: Likewise.
4041
4042 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
4043
4044 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
4045 `trigtables.c'.
4046 (trigtables.c): New rule.
4047 (gentrigtables): Likewise.
4048 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
4049
4050 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
4051
4052 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
4053 integer constants.
4054
4055 2010-02-06 Colin D Bennet <colin@gibibit.com>
4056
4057 Trigonometry support.
4058
4059 * include/grub/trig.h: New file.
4060 * lib/trig.c: Likewise.
4061 * maintainance/gentrigtables.py: Likewise.
4062 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
4063 (trig_mod_SOURCES): New variable.
4064 (trig_mod_CFLAGS): Likewise.
4065 (trig_mod_LDFLAGS): Likewise.
4066
4067 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4068
4069 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
4070 disk devices.
4071
4072 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4073
4074 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
4075 error.
4076
4077 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
4078
4079 * util/hostdisk.c (open_device): Don't use partition device when reading
4080 before the partition.
4081 (grub_util_biosdisk_read): Don't read from partition and before the
4082 partition in single operation.
4083 (grub_util_biosdisk_write): Don't write to partition and before the
4084 partition in single operation.
4085
4086 2010-02-03 Torsten Landschoff <torsten@debian.org>
4087
4088 * kern/disk.c (grub_disk_read): Fix offset computation when reading
4089 last sectors.
4090
4091 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
4092
4093 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
4094 CDROM reads.
4095 (grub_biosdisk_write): Refuse to write to CDROM.
4096
4097 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
4098
4099 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
4100
4101 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
4102
4103 * font/font.c (find_glyph): Check that bmp_idx is available before
4104 using it.
4105 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
4106 with (font == NULL).
4107
4108 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
4109
4110 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
4111
4112 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
4113
4114 * include/grub/script_sh.h (sourcecode): Add const qualifier.
4115 * util/grub-script-check.c (getline): Fix empty lines case.
4116
4117 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
4118
4119 * Makefile.in (check): Exit with fail status when one of the tests
4120 fails.
4121 * tests/example_functional_test.c (example_test): Fix reversed assert.
4122 * tests/example_unit_test.c (example_test): Likewise.
4123
4124 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
4125
4126 * util/grub.d/10_linux.in: This script does not use any of the
4127 contents of gettext.sh, only the external command `gettext', so stop
4128 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
4129 the same prefix as GRUB.)
4130 * util/grub.d/10_kfreebsd.in: Likewise.
4131
4132 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
4133
4134 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
4135 of the line.
4136
4137 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
4138
4139 * kern/disk.c (grub_disk_read): Fix offset computation when reading
4140 last sectors.
4141
4142 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
4143
4144 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
4145 having a 4KiB and not 32KiB buffer size.
4146
4147 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
4148
4149 * util/hostfs.c: Include `<errno.h>'.
4150 (grub_hostfs_read): Handle errors from fseeko() and fread().
4151
4152 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
4153
4154 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
4155 loop when using read hooks on files whose size isn't sector-aligned.
4156
4157 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
4158
4159 Remove unused parameter.
4160
4161 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
4162 (grub_iso9660_open): Remove initialization of `data->length'.
4163
4164 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
4165
4166 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
4167 memleak conditions.
4168
4169 2010-01-27 Carles Pina i Estany <carles@pina.cat>
4170
4171 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
4172 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
4173
4174 2010-01-26 Carles Pina i Estany <carles@pina.cat>
4175
4176 * util/bin2h.c (usage): Fix warning (space after backslash).
4177
4178 2010-01-26 Carles Pina i Estany <carles@pina.cat>
4179
4180 * font/font.c: Include `grub/fontformat.h.
4181 Remove font file format constants.
4182 (grub_font_load): Use the new macros.
4183 * include/grub/fontformat.h: New file.
4184 * util/grub-mkfont.c: Include `grub/fontformat.c'.
4185 (write_font_pf2): Use the new macros.
4186
4187 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
4188
4189 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
4190 does.
4191
4192 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
4193
4194 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
4195
4196 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
4197 (_start): Macroify `0x7F'.
4198
4199 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
4200 (make_install_device): Use "(pxe)" as fallback prefix when booting
4201 via PXE.
4202
4203 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
4204
4205 * configure.ac: Reset LIBS after check for libgcc symbols.
4206
4207 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
4208
4209 * util/hostdisk.c (open_device): Add trailing newline to debug
4210 message.
4211
4212 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
4213
4214 * configure.ac: Check for `limits.h'.
4215 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
4216
4217 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
4218
4219 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
4220 capitalize error strings.
4221
4222 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
4223
4224 * util/grub.d/10_hurd.in: Add a recovery mode.
4225
4226 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
4227
4228 * configure.ac: Check for libgcc symbols with -nostdlib.
4229
4230 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
4231
4232 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
4233
4234 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4235
4236 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
4237 stack since heap may be unavailable at that point.
4238 (grub_ofconsole_gotoxy): Likewise.
4239
4240 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4241
4242 * configure.ac: Check for _restgpr_14_x.
4243 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
4244 and _savegpr_* prototypes.
4245
4246 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
4247
4248 Use generic grub_reboot() for i386-efi.
4249
4250 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
4251 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
4252 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
4253
4254 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4255
4256 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
4257 presence of "prefix" variable as it breaks when normal.mod is
4258 embedded.
4259
4260 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4261
4262 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
4263 stack since heap is unavailable at that point.
4264
4265 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4266
4267 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
4268 (grub_freebsd_bootinfo): Rewritten.
4269 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
4270
4271 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4272
4273 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
4274
4275 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
4276
4277 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
4278 domain now.
4279
4280 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
4281
4282 * util/misc.c (make_system_path_relative_to_its_root): Change the work
4283 around for handling "/" to the correct fix. Fix a memory leak. Use
4284 xstrdup instead of strdup.
4285
4286 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4287
4288 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
4289
4290 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4291
4292 Optimise glyph lookup by Basic Multilingual Plane lookup array.
4293
4294 * font/font.c (struct grub_font): New member 'bmp_idx'.
4295 (font_init): Initialise 'bmp_idx'.
4296 (load_font_index): Fill 'bmp_idx'.
4297 (find_glyph): Make inline. Use bmp_idx for BMP characters.
4298
4299 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4300
4301 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
4302 unnecessary calls.
4303
4304 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4305
4306 Move context handling out of the kernel.
4307
4308 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
4309 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
4310 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
4311 * conf/i386-efi.rmk: Likewise.
4312 * conf/i386-ieee1275.rmk: Likewise.
4313 * conf/i386-pc.rmk: Likewise.
4314 * conf/powerpc-ieee1275.rmk: Likewise.
4315 * conf/sparc64-ieee1275.rmk: Likewise.
4316 * conf/x86_64-efi.rmk: Likewise.
4317 * include/grub/env.h: Include grub/menu.h.
4318 (grub_env_var_type): Removed.
4319 (grub_env_var): Replaced field 'type' with 'global'.
4320 (grub_env_find): New prototype.
4321 (grub_env_context_open): Remove EXPORT_FUNC.
4322 (grub_env_context_close): Likewise.
4323 (grub_env_export): Likewise.
4324 (grub_env_set_data_slot): Removed.
4325 (grub_env_get_data_slot): Likewise.
4326 (grub_env_unset_data_slot): Likewise.
4327 (grub_env_unset_menu): New prototype.
4328 (grub_env_set_menu): Likewise.
4329 (grub_env_get_menu): Likewise.
4330 * include/grub/env_private.h: New file.
4331 * include/grub/normal.h (grub_context_init): New prototype.
4332 (grub_context_fini): Likewise.
4333 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
4334 * normal/context.c (grub_cmd_export): ... to here.
4335 * kern/env.c: Include env_private.h.
4336 (HASHSZ): Moved to include/grub/env_private.h.
4337 (grub_env_context): Likewise.
4338 (grub_env_sorted_var): Likewise.
4339 (current_context): Renamed from this ...
4340 (grub_current_context): ...to this. 'static' removed. All users updated.
4341 (grub_env_find): Removed 'static'.
4342 (grub_env_context_open): Moved to normal/context.c.
4343 (grub_env_context_close): Likewise.
4344 (grub_env_export): Likewise.
4345 (mangle_data_slot_name): Removed.
4346 (grub_env_set_data_slot): Likewise.
4347 (grub_env_get_data_slot): Likewise.
4348 (grub_env_unset_data_slot): Likewise.
4349 * kern/main.c (grub_set_root_dev): Don't export root.
4350 It will be done later.
4351 (grub_main): Don't export prefix.
4352 It will be done later.
4353 * normal/context.c: New file.
4354 * normal/main.c (free_menu): Use grub_env_unset_menu.
4355 (grub_normal_add_menu_entry): Use grub_env_get_menu.
4356 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
4357 (GRUB_MOD_INIT(normal)): Call grub_context_init.
4358 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
4359
4360 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4361
4362 setpci support.
4363
4364 * commands/setpci.c: New file.
4365 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
4366 (setpci_mod_SOURCES): New variable.
4367 (setpci_mod_CFLAGS): Likewise.
4368 (setpci_mod_LDFLAGS): Likewise.
4369
4370 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4371
4372 Byte-addressable PCI configuration space.
4373
4374 * bus/pci.c (grub_pci_make_address): Use byte address instead of
4375 dword address.
4376 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
4377 GRUB_PCI_REG_CACHELINE.
4378 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
4379 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
4380 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
4381 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
4382 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
4383 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
4384 grub_pci_make_address.
4385 (lock_rom_area): Likewise.
4386 * commands/lspci.c (grub_lspci_iter): Use macroses
4387 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
4388 of grub_pci_make_address.
4389 * disk/ata.c (grub_ata_pciinit): Likewise.
4390 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
4391 (GRUB_PCI_REG_VENDOR): Likewise.
4392 (GRUB_PCI_REG_DEVICE): Likewise.
4393 (GRUB_PCI_REG_COMMAND): Likewise.
4394 (GRUB_PCI_REG_STATUS): Likewise.
4395 (GRUB_PCI_REG_REVISION): Likewise.
4396 (GRUB_PCI_REG_CLASS): Likewise.
4397 (GRUB_PCI_REG_CACHELINE): Likewise.
4398 (GRUB_PCI_REG_LAT_TIMER): Likewise.
4399 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
4400 (GRUB_PCI_REG_BIST): Likewise.
4401 (GRUB_PCI_REG_ADDRESSES): Likewise.
4402 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4403 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4404 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4405 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4406 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4407 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4408 (GRUB_PCI_REG_CIS_POINTER): Likewise.
4409 (GRUB_PCI_REG_SUBVENDOR): Likewise.
4410 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
4411 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
4412 (GRUB_PCI_REG_CAP_POINTER): Likewise.
4413 (GRUB_PCI_REG_IRQ_LINE): Likewise.
4414 (GRUB_PCI_REG_IRQ_PIN): Likewise.
4415 (GRUB_PCI_REG_MIN_GNT): Likewise.
4416 (GRUB_PCI_REG_MAX_LAT): Likewise.
4417 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
4418 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
4419 * video/efi_uga.c (find_framebuf): Likewise.
4420 * video/sm712.c (grub_video_sm712_setup): Likewise.
4421 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
4422 space.
4423
4424 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4425
4426 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
4427 can be reliably determined to be supported.
4428
4429 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4430
4431 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
4432 that VESA is supported.
4433 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
4434 supported.
4435
4436 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4437
4438 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
4439
4440 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4441
4442 * util/misc.c (make_system_path_relative_to_its_root): Work around
4443 special-casing of "/", as previous incarnation of this routine did.
4444
4445 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4446
4447 Fix any-emu compilation.
4448
4449 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
4450 * grub_bin2h_SOURCES: New variable.
4451
4452 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4453
4454 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
4455
4456 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4457
4458 * util/grub.d/00_header.in: Fix handling of locale_dir.
4459
4460 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4461
4462 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
4463 as possible unifont location (Gentoo).
4464 Reported by: Alexander Brüning
4465
4466 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4467
4468 Don't try to generate lists for kernel.img.
4469
4470 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
4471 (pkglib_MODULES): Remove kernel.img.
4472 (kernel_img_EXPORTS): Removed.
4473 (kernel_img_RELOCATABLE): New variable.
4474 * conf/x86_64-efi.rmk: Likewise.
4475 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
4476
4477 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4478
4479 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
4480 grub_xasprintf or grub_snprintf.
4481 (grub_vsprintf): Likewise.
4482 (grub_snprintf): New proto.
4483 (grub_vsnprintf): Likewise.
4484 (grub_xasprintf): Likewise.
4485 (grub_xvasprintf): Likewise.
4486 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
4487 (grub_sprintf): Removed.
4488 (grub_vsnprintf): New function.
4489 (grub_snprintf): Likewise.
4490 (grub_xvasprintf): Likewise.
4491 (grub_xasprintf): Likewise.
4492 (grub_vsprintf): Renamed to ...
4493 (grub_vsnprintf_real): ...this. New argument max_len.
4494
4495 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
4496
4497 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
4498 fix grub-script-check warning.
4499
4500 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4501
4502 * include/grub/font.h (grub_font_load): Fix prototype.
4503
4504 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4505
4506 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
4507
4508 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4509
4510 * include/grub/x86_64/at_keyboard.h: New file.
4511
4512 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4513
4514 * loader/mips/linux.c: Include missing grub/i18n.h.
4515
4516 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4517
4518 * normal/menu.c (notify_execution_failure): Clarify error message.
4519
4520 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4521
4522 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
4523 return value (and revert all return statements). Update users.
4524
4525 2010-01-20 Dan Merillat <debian@dan.merillat.org>
4526
4527 * kern/device.c (grub_device_iterate): Allocate new part_ent
4528 structure based on sizeof (*p) rather than sizeof (p->next), to
4529 account for structure padding.
4530
4531 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
4532 disk is NULL, which might happen for LVM physical volumes with no
4533 LVM signature.
4534
4535 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4536
4537 * loader/mips/linux.c (grub_cmd_initrd)
4538 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
4539
4540 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4541
4542 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
4543 (grub_video_video_init, grub_video_bitmap_init)
4544 (grub_font_manager_init, grub_term_gfxterm_init)
4545 (grub_at_keyboard_init): New extern declarations.
4546 (grub_machine_init): Initialize gfxterm and at_keyboard.
4547
4548 * kern/main.c (grub_main): Revert grub_printf delay kludge.
4549
4550 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
4551 `gfxterm.mod' into core image.
4552
4553 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4554 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4555 (kernel_img_FORMAT): Copy to ...
4556
4557 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4558 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4559 (kernel_img_FORMAT): ... here, and ...
4560
4561 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4562 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4563 (kernel_img_FORMAT): ... here.
4564
4565 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
4566 and input (at_keyboard) terminals in kernel.
4567 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
4568
4569 (pkglib_MODULES): Remove `pci.mod'.
4570 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
4571 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
4572 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
4573 (at_keyboard_mod_LDFLAGS): Remove variables.
4574
4575 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
4576
4577 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
4578
4579 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
4580
4581 * include/grub/mips/libgcc.h: Only export symbols for functions
4582 that libgcc provides.
4583
4584 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
4585
4586 MIPS support.
4587
4588 * bus/bonito.c: New file.
4589 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
4590 GRUB_PCI_NUM_DEVICES.
4591 * term/i386/pc/serial.c: Move to ...
4592 * term/serial.c: ... here. All users updated.
4593 * util/i386/pc/grub-mkimage.c: Move to ...
4594 * util/grub-mkrawimage.c: ... here. All users updated.
4595 * term/i386/pc/at_keyboard.c: Move to ...
4596 * term/at_keyboard.c: ... here. All users updated.
4597 * conf/mips-qemu-mips.rmk: New file.
4598 * conf/mips-yeeloong.rmk: Likewise.
4599 * conf/mips.rmk: Likewise.
4600 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
4601 mipsel-qemu-mips.
4602 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
4603 to port addresses.
4604 (grub_ata_pciinit): Support CS5536.
4605 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
4606 * font/font_cmd.c (loadfont_command): Open file before passing it to
4607 grub_font_load.
4608 (pseudo_file_read): New function.
4609 (pseudo_file_close): Likewise.
4610 (pseudo_fs): New structure.
4611 (load_font_module): New function.
4612 (GRUB_MOD_INIT(font_manager)): Load embedded font.
4613 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
4614 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
4615 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
4616 * include/grub/i386/at_keyboard.h: Split into ...
4617 * include/grub/at_keyboard.h: ... this ...
4618 * include/grub/i386/at_keyboard.h: ... and this.
4619 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
4620 New prototype.
4621 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
4622 updated.
4623 (grub_elf64_size): Likewise.
4624 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
4625 filename.
4626 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
4627 * include/grub/i386/coreboot/serial.h: Rewritten.
4628 * include/grub/i386/ieee1275/serial.h: Include
4629 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
4630 * include/grub/i386/pc/serial.h: Moved from here ...
4631 * include/grub/serial.h: ... to here. All users updated.
4632 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
4633 (GRUB_PCI_NUM_BUS): Likewise.
4634 (GRUB_PCI_NUM_DEVICES): Likewise.
4635 (grub_pci_device_map_range): Add missing volatile keyword.
4636 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
4637 * include/grub/mips/at_keyboard.h: New file.
4638 * include/grub/mips/cache.h: Likewise.
4639 * include/grub/mips/io.h: Likewise.
4640 * include/grub/mips/kernel.h: Likewise.
4641 * include/grub/mips/libgcc.h: Likewise.
4642 * include/grub/mips/pci.h: Likewise.
4643 * include/grub/mips/qemu-mips/boot.h: Likewise.
4644 * include/grub/mips/qemu-mips/kernel.h: Likewise.
4645 * include/grub/mips/qemu-mips/loader.h: Likewise.
4646 * include/grub/mips/qemu-mips/memory.h: Likewise.
4647 * include/grub/mips/qemu-mips/serial.h: Likewise.
4648 * include/grub/mips/qemu-mips/time.h: Likewise.
4649 * include/grub/mips/relocator.h: Likewise.
4650 * include/grub/mips/time.h: Likewise.
4651 * include/grub/mips/types.h: Likewise.
4652 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
4653 * include/grub/mips/yeeloong/boot.h: Likewise.
4654 * include/grub/mips/yeeloong/kernel.h: Likewise.
4655 * include/grub/mips/yeeloong/loader.h: Likewise.
4656 * include/grub/mips/yeeloong/memory.h: Likewise.
4657 * include/grub/mips/yeeloong/pci.h: Likewise.
4658 * include/grub/mips/yeeloong/serial.h: Likewise.
4659 * include/grub/mips/yeeloong/time.h: Likewise.
4660 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
4661 * kern/elf.c (grub_elf32_size): New parameter. All users
4662 updated.
4663 (grub_elf64_size): Likewise.
4664 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
4665 Load modules before saying "Welcome to GRUB!".
4666 Call grub_refresh after saying "Welcome to GRUB!".
4667 * kern/mips/cache.S: New file.
4668 * kern/mips/cache_flush.S: Likewise.
4669 * kern/mips/dl.c: Likewise.
4670 * kern/mips/init.c: Likewise.
4671 * kern/mips/qemu-mips/init.c: Likewise.
4672 * kern/mips/startup.S: Likewise.
4673 * kern/mips/yeeloong/init.c: Likewise.
4674 * kern/term.c (grub_putcode): Handle NULL terminal.
4675 (grub_getcharwidth): Likewise.
4676 (grub_getkey): Likewise.
4677 (grub_checkkey): Likewise.
4678 (grub_getkeystatus): Likewise.
4679 (grub_getxy): Likewise.
4680 (grub_getwh): Likewise.
4681 (grub_gotoxy): Likewise.
4682 (grub_cls): Likewise.
4683 (grub_setcolorstate): Likewise.
4684 (grub_setcolor): Likewise.
4685 (grub_getcolor): Likewise.
4686 (grub_refresh): Likewise.
4687 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
4688 (write_jump): Add hatch nop.
4689 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
4690 * lib/mips/setjmp.S: New file.
4691 * loader/mips/linux.c: Likewise.
4692 * term/i386/pc/at_keyboard.c: Move from here ...
4693 * term/at_keyboard.c: ... to here.
4694 * term/i386/pc/serial.c: Moved from here ...
4695 * term/serial.c: ... to here. All users updated.
4696 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
4697 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
4698 (serial_translate_key_sequence): Avoid deadlock.
4699 (grub_serial_getkey): Handle backspace.
4700 (grub_serial_putchar): Fix newline handling.
4701 * util/i386/pc/grub-mkimage.c: Move from here ...
4702 * util/grub-mkrawimage.c: ... to here. All users updated.
4703 (generate_image): New parameters 'font_path' and 'format'.
4704 Support embedding font.
4705 Use grub_host_to_target* instead of grub_cpu_to_le*.
4706 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
4707 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
4708 (options): New option "--font".
4709 (usage): Likewise.
4710 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
4711 (main): Handle "--font".
4712 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
4713 (grub_virtual_screen_setup): Set bg_color_display.
4714 (redraw_screen_rect): Use bg_color_display instead of incorrect
4715 bg_color.
4716 (grub_gfxterm_cls): Likewise.
4717 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
4718 Support embedding config file.
4719 (add_segments): Likewise.
4720 (options): New option "--config".
4721 (main): Handle "--config".
4722 * video/sm712.c: New file.
4723
4724 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4725
4726 Fix parallel builds.
4727
4728 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
4729 font.c depend on ascii.h).
4730
4731 2010-01-12 Carles Pina i Estany <carles@pina.cat>
4732
4733 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
4734
4735 2010-01-11 Carles Pina i Estany <carles@pina.cat>
4736
4737 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
4738 By default: disabled.
4739 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
4740 parameter.
4741
4742 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4743
4744 * font/font.c: Update copyright years.
4745 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
4746
4747 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4748
4749 * font/font.c: Include `ascii.h'.
4750 (ASCII_BITMAP_SIZE): New macro.
4751 (ascii_font_glyph): Define.
4752 (ascii_glyph_lookup): New function.
4753 (grub_font_get_string_width): Change comment. If glyph not found, use
4754 ascii_glyph_lookup.
4755 (grub_font_get_glyph_with_fallback): If glyph not available returns
4756 ascii_glyph_lookup.
4757 * util/grub-mkfont.c (file_formats): New enum.
4758 (options): Add `ascii-bitmaps' new option.
4759 (usage): Add `asii-bitmaps' new option.
4760 (write_font_ascii_bitmap): New function.
4761 (write_font): Rename to ...
4762 (write_font_p2): ... this. Remove print_glyphs call.
4763 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
4764 used. Call print_glyphs.
4765 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
4766
4767 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4768
4769 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
4770 (grub_bin2h_SOURCES): New variable.
4771 * util/bin2h.c: New file.
4772
4773 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4774
4775 * include/multiboot.h: Resynced with spec.
4776 * include/multiboot2.h: Likewise.
4777 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
4778 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
4779
4780 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4781
4782 * include/grub/term.h (grub_term_register_input,
4783 grub_term_register_output): Check return of terminal init()
4784 routines, and abort if errors are raised.
4785
4786 * commands/terminal.c: Update copyright year.
4787
4788 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4789
4790 * commands/terminal.c (grub_cmd_terminal_input)
4791 (grub_cmd_terminal_output): Check return of terminal init()
4792 routines, and abort if errors are raised.
4793
4794 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4795
4796 * include/grub/i386/bsd.h: Fix include pathes.
4797
4798 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4799
4800 Add missing *BSD copyright headers.
4801
4802 * include/grub/aout.h: Add BSD licence.
4803 * include/grub/i386/bsd.h: Parts under different licences moved to ...
4804 * include/grub/i386/freebsd_linker.h: ... here,
4805 * include/grub/i386/freebsd_reboot.h: ... here,
4806 * include/grub/i386/netbsd_bootinfo.h: ... here,
4807 * include/grub/i386/netbsd_reboot.h: ... here,
4808 * include/grub/i386/openbsd_bootarg.h: ... here,
4809 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
4810 licence to each file.
4811
4812 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4813
4814 * acinclude.m4: Remove `nop' assembly instruction; it's not
4815 implemented by all architectures.
4816
4817 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4818
4819 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
4820 ELILO. This is no longer necessary.
4821
4822 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
4823
4824 Added new tool, grub-scrit-check to verify grub.cfg syntax.
4825
4826 * util/grub-script-check.c: grub-script-check tool.
4827 * conf/common.rmk: Make rules for grub-script-check.
4828
4829 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4830
4831 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
4832 spotting it back in 2008. Shame on me for forgetting he did.
4833
4834 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
4835
4836 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4837
4838 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
4839 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
4840 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
4841 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
4842 (GRUB_VIDEO_TYPE_EFI): Rename to ...
4843 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
4844
4845 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
4846
4847 * include/grub/test.h: Add license header.
4848 * tests/example_functional_test.c: Likewise.
4849 * tests/example_unit_test.c: Likewise.
4850 * tests/lib/functional_test.c: Likewise.
4851 * tests/lib/test.c: Likewise.
4852 * tests/lib/unit_test.c: Likewise.
4853
4854 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
4855
4856 Use flag-based instead of hook-based video mode selection and "auto"
4857 keyword.
4858
4859 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
4860 (grub_video_set_mode): Changed prototype. All users updated.
4861 (grub_video_check_mode_flag): New inline function.
4862 * video/video.c (parse_modespec): New function.
4863 (grub_video_set_mode): Parse flags and keywords.
4864
4865 2010-01-17 Carles Pina i Estany <carles@pina.cat>
4866
4867 * util/misc.c (grub_util_info): Fix the order of the parameters in a
4868 fprintf call.
4869
4870 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
4871
4872 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
4873
4874 2010-01-16 Carles Pina i Estany <carles@pina.cat>
4875
4876 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
4877 string.
4878 * util/grub-emu.c (usage): Likewise.
4879 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
4880 * util/i386/efi/grub-mkimage.c (usage): Likewise.
4881 * util/i386/pc/grub-mkimage.c (usage): Likewise.
4882 * util/i386/pc/grub-setup.c (usage): Likewise.
4883
4884 2010-01-16 Carles Pina i Estany <carles@pina.cat>
4885
4886 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
4887 the message.
4888 (grub_util_info): Likewise.
4889 (grub_util_error): Likewise.
4890 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
4891 and/or new lines in `grub_util_warna', `grub_util_info',
4892 `grub_util_error' calls.
4893 * util/getroot.c: Likewise.
4894 * util/grub-editenv.c: Likewise.
4895 * util/grub-emu.c: Likewise.
4896 * util/grub-fstest.c: Likewise.
4897 * util/grub-mkdevicemap.c: Likewise.
4898 * util/grub-mkfont.c: Likewise.
4899 * util/grub-mkpasswd-pbkdf2.c: Likewise.
4900 * util/grub-mkrelpath.c: Likewise.
4901 * util/grub-pe2elf.c: Likewise.
4902 * util/grub-probe.c: Likewise.
4903 * util/hostdisk.c: Likewise.
4904 * util/i386/efi/grub-mkimage.c: Likewise.
4905 * util/i386/pc/grub-mkimage.c: Likewise.
4906 * util/i386/pc/grub-setup.c: Likewise.
4907 * util/ieee1275/ofpath.c: Likewise.
4908 * util/mkisofs/eltorito.c: Likewise.
4909 * util/mkisofs/rock.c: Likewise.
4910 * util/mkisofs/write.c: Likewise.
4911 * util/raid.c: Likewise.
4912 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
4913 * util/sparc64/ieee1275/grub-setup.c: Likewise.
4914
4915 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4916
4917 Enable multiboot on non-pc.
4918
4919 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
4920 multiboot.mod and multiboot2.mod to ...
4921 * conf/i386.rmk (pkglib_MODULES): ... here.
4922 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
4923 Moved to ...
4924 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
4925 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
4926 Moved to ...
4927 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
4928 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
4929 Moved to ...
4930 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
4931 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
4932 Moved to ...
4933 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
4934 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
4935 relocator.mod.
4936 (ata_mod_SOURCES): Removed.
4937 (ata_mod_CFLAGS): Likewise.
4938 (ata_mod_LDFLAGS): Likewise.
4939 (relocator_mod_SOURCES): Removed.
4940 (relocator_mod_CFLAGS): Likewise.
4941 (relocator_mod_ASFLAGS): Likewise.
4942 (relocator_mod_LDFLAGS): Likewise.
4943 Include i386.mk.
4944 * include/grub/x86_64/multiboot.h: New file.
4945 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
4946 Terminate EFI.
4947
4948 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4949
4950 Video multiboot support.
4951
4952 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
4953 New prototype.
4954 * include/multiboot.h: Resynced with multiboot specification.
4955 * include/multiboot2.h: Likewise.
4956 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
4957 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
4958 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
4959 (HAS_VGA_TEXT): Likewise.
4960 (accepts_video): New variable.
4961 (grub_multiboot_set_accepts_video): New function.
4962 (grub_multiboot_get_mbi_size): Account for video structures.
4963 (set_video_mode): New function.
4964 (retrieve_video_parameters): Likewise.
4965 (grub_multiboot_make_mbi): Fill video fields.
4966
4967 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4968
4969 Video driver ids.
4970
4971 * include/grub/video.h (grub_video_driver_id): New type.
4972 (grub_video_adapter): New member 'id'. All users updated.
4973 (grub_video_get_driver_id): New proto.
4974 * video/video.c (grub_video_get_driver_id): New function.
4975
4976 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4977
4978 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
4979 `var=val'.
4980
4981 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4982
4983 * normal/cmdline.c (print_completion): Gettextizze.
4984
4985 2001-01-14 Carles Pina i Estany <carles@pina.cat>
4986
4987 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
4988
4989 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4990
4991 * gettext/gettext.c (grub_gettext_translate): Push and pop
4992 grub_errno.
4993 (grub_gettext_delete_list): Change comment style.
4994 * kern/err.c (grub_error): Gettextizze.
4995 (grub_fatal): Gettextizze.
4996
4997 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4998
4999 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
5000 (grub_linux16_real_boot): ... this.
5001 * kern/i386/loader.S: Likewise.
5002 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
5003 (grub_linux16_boot): New function. Switches to text mode and calls
5004 grub_linux16_real_boot().
5005
5006 * loader/i386/bsd.c: Include `<grub/video.h>'.
5007 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
5008 text mode before calling grub_unix_real_boot().
5009
5010 * loader/i386/multiboot.c: Include `<grub/video.h>'.
5011 (grub_multiboot_boot): Switch to text mode before calling
5012 grub_relocator32_boot().
5013
5014 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
5015 (grub_chainloader_boot): Switch to text mode before calling
5016 grub_chainloader_real_boot().
5017
5018 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
5019 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5020
5021 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
5022 non-empty value.
5023
5024 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
5025 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5026
5027 * util/grub.d/00_header.in: Define a "savedefault" function for use
5028 in menu entries.
5029 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
5030
5031 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
5032 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5033
5034 * util/grub-mkconfig_lib.in (save_default_entry): Only set
5035 saved_entry if boot_once is unset.
5036 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
5037 previous saved entry (i.e. grub-reboot).
5038
5039 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5040
5041 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
5042
5043 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5044
5045 * util/grub.d/00_header.in: Use `set var=val' rather than plain
5046 `var=val'.
5047 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
5048
5049 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5050
5051 * util/grub-reboot.in: Fix --version output.
5052 * util/grub-set-default.in: Likewise.
5053
5054 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5055
5056 * util/grub.d/00_header.in: Silently ignore zero-sized environment
5057 blocks.
5058
5059 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5060
5061 * util/grub.d/00_header.in: Quote the value assigned to `default',
5062 in case it contains spaces.
5063
5064 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5065
5066 * util/grub.d/30_os-prober.in: Fix merge error that moved a
5067 `save_default_entry' call from the macosx case to the linux case.
5068
5069 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5070 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
5071
5072 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
5073 in `chosen' environment variable.
5074 * normal/menu_text.c (get_entry_number): Check if the variable
5075 matches the title of a menu entry.
5076 (run_menu): Pass menu to get_entry_number.
5077
5078 * util/grub-reboot.in: New file.
5079 * util/grub-set-default.in: New file.
5080 * conf/common.rmk (grub-reboot): New utility.
5081 (grub-set-default): New utility.
5082
5083 * util/grub-mkconfig_lib.in (save_default_entry): New function.
5084 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
5085 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
5086 move it to `saved_entry' for the next boot. Load environment on
5087 initialisation.
5088 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
5089 * util/grub.d/10_hurd.in: Likewise.
5090 * util/grub.d/10_linux.in (linux_entry): Likewise.
5091 * util/grub.d/10_windows.in: Likewise.
5092 * util/grub.d/30_os-prober.in: Likewise.
5093
5094 * util/grub-install.in: Create environment block.
5095 * util/i386/efi/grub-install.in: Likewise.
5096 * util/ieee1275/grub-install.in: Likewise.
5097 * util/sparc64/ieee1275/grub-install.in: Likewise.
5098
5099 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
5100
5101 Unit testing framework for GRUB.
5102
5103 * Makefile.in: Test framework build rules for 'make check'.
5104 * conf/tests.rmk: Build rules for individual tests and framework.
5105
5106 * include/grub/test.h: Header file for whitebox tests.
5107 * tests/lib/functional_test.c: Framework support for whitebox
5108 functional tests.
5109 * tests/lib/test.c: Common whitebox testing code for unit and
5110 functional tests.
5111 * tests/lib/unit_test.c: Framework support for whitebox unit
5112 tests.
5113
5114 * tests/util/grub-shell-tester.in: Support utility for grub-script
5115 tests.
5116 * tests/util/grub-shell.in: Utility to execute grub-script
5117 commands in a Qemu instance.
5118
5119 * tests/example_functional_test.c: Example whitebox functional
5120 test.
5121 * tests/example_grub_script_test.in: Example grub-script test.
5122 * tests/example_scripted_test.in: Example scripted test.
5123 * tests/example_unit_test.c: Example whitebox unit test.
5124
5125 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
5126
5127 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
5128 Add loader/i386/multiboot_mbi.c.
5129 (multiboot2_mod_SOURCES): Likewise.
5130 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
5131 (multiboot2_mod_SOURCES): Likewise.
5132 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
5133 (grub_multiboot_make_mbi): Likewise.
5134 (grub_multiboot_free_mbi): Likewise.
5135 (grub_multiboot_init_mbi): Likewise.
5136 (grub_multiboot_add_module): Likewise.
5137 (grub_multiboot_set_bootdev): Likewise.
5138 * loader/i386/multiboot.c (mbi): Removed.
5139 (mbi_dest): Likewise.
5140 (alloc_mbi): New variable.
5141 (grub_multiboot_payload_size): Removed. All users updated.
5142 (grub_multiboot_pure_size): New variable.
5143 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
5144 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
5145 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
5146 (grub_fill_multiboot_mmap): Likewise.
5147 (grub_multiboot_get_bootdev): Likewise.
5148 (grub_multiboot): Use multiboot_mbi functions.
5149 * loader/i386/multiboot_mbi.c: New file.
5150
5151 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5152
5153 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
5154 it would result in module crash.
5155
5156 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5157
5158 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
5159 (grub_ofconsole_getwh): Split to ...
5160 (grub_ofconsole_getwh): ... this.
5161 (grub_ofconsole_dimensions): ...and this.
5162 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
5163
5164 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
5165
5166 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
5167
5168 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5169
5170 * loader/i386/pc/multiboot2.c: Removed stalled file.
5171
5172 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5173
5174 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
5175 Reported by: Grégoire Sutre
5176
5177 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
5178
5179 * util/misc.c (canonicalize_file_name): New function.
5180 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
5181 instead of realpath().
5182
5183 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
5184
5185 * util/grub-install.in (usage): Clarify meaning of --root-directory,
5186 and make it clearer that it's optional. Based on confusion
5187 witnessed on IRC.
5188
5189 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5190
5191 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
5192 in premature implicit newline.
5193
5194 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5195
5196 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
5197 which resulted in garbled command line at the end of screen.
5198
5199 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
5200
5201 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
5202 initialization with similar approach as with other Linux loaders.
5203
5204 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
5205
5206 Fix i386-ieee1275 build.
5207
5208 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
5209 and grub_term_height() for video_{width,height} initialization.
5210
5211 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
5212
5213 Fix grub-emu build.
5214
5215 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
5216
5217 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5218 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
5219
5220 Support for multiple terminals.
5221
5222 * Makefile.in (pkglib_DATA): terminal.lst.
5223 (terminal.lst): New target.
5224 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
5225 (GRUB_MOD_INIT(handler)): Likewise.
5226 (GRUB_MOD_FINI(handler)): Likewise.
5227 * commands/help.c (grub_cmd_help): Handle multiple terminals.
5228 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
5229 * commands/sleep.c (do_print): Use grub_term_restore_pos.
5230 (grub_cmd_sleep): Use grub_term_save_pos.
5231 * commands/terminal.c: New file.
5232 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
5233 commands/terminal.c and lib/charset.c.
5234 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
5235 (pkglib_MODULES): Add terminal.mod.
5236 (terminal_mod_SOURCES): New variable.
5237 (terminal_mod_CFLAGS): Likewise.
5238 (terminal_mod_LDFLAGS): Likewise.
5239 * genhandlerlist.sh: Don't handle terminals.
5240 * genmk.rb: Generate terminal-*.lst.
5241 * genterminallist.sh: New file.
5242 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
5243 (grub_is_valid_utf8): Likewise.
5244 (grub_utf8_to_ucs4_alloc): Likewise.
5245 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
5246 (grub_menu_register_viewer): Changed argument.
5247 (grub_menu_try_text): New proto.
5248 (grub_gfxmenu_try_hook): New declaration.
5249 * include/grub/normal.h (grub_normal_exit_level): New declaration.
5250 (grub_menu_init_page): Additional argument term.
5251 (grub_normal_init_page): Likewise.
5252 (grub_cmdline_get): Arguments simplified.
5253 (grub_utf8_to_ucs4_alloc): Removed.
5254 (grub_print_ucs4): Additional argument term.
5255 (grub_getstringwidth): Likewise.
5256 (grub_print_message_indented): Likewise.
5257 (grub_menu_text_register_instances): New proto.
5258 (grub_show_menu): Likewise.
5259 (read_terminal_list): Likewise.
5260 (grub_set_more): Likewise.
5261 * include/grub/parser.h: Include handler.h.
5262 * include/grub/reader.h: Rewritten.
5263 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
5264 (GRUB_TERM_WIDTH): Changed to function.
5265 (GRUB_TERM_HEIGHT): Likewise.
5266 (GRUB_TERM_BORDER_WIDTH): Likewise.
5267 (GRUB_TERM_BORDER_HEIGHT): Likewise.
5268 (GRUB_TERM_NUM_ENTRIES): Likewise.
5269 (GRUB_TERM_ENTRY_WIDTH): Likewise.
5270 (GRUB_TERM_CURSOR_X): Likewise.
5271 (grub_term_input_class): Likewise.
5272 (grub_term_output_class): Likewise.
5273 (grub_term_outputs_disabled): New declaration.
5274 (grub_term_inputs_disabled): Likewise.
5275 (grub_term_outputs): Likewise.
5276 (grub_term_inputs): Likewise.
5277 (grub_term_register_input): Rewritten.
5278 (grub_term_register_output): Likewise.
5279 (grub_term_unregister_input): Likewise.
5280 (grub_term_unregister_output): Likewise.
5281 (FOR_ACTIVE_TERM_INPUTS): New macro.
5282 (FOR_DISABLED_TERM_INPUTS): Likewise.
5283 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
5284 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
5285 * include/grub/terminfo.h: Add oterm argument to all protypes.
5286 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
5287 Use grub_rescue_run.
5288 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
5289 All users updated.
5290 * kern/reader.c: Removed. All users updated.
5291 * kern/rescue_reader.c (grub_rescue_init): Removed.
5292 (grub_rescue_reader): Likewise.
5293 (grub_register_rescue_reader): Likewise.
5294 (grub_rescue_run): New function based on kern/reader.c.
5295 * kern/term.c: Adapted for multiterm.
5296 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
5297 (grub_is_valid_utf8): Likewise.
5298 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
5299 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
5300 right terminal.
5301 * loader/i386/linux.c (grub_linux_boot): Likewise.
5302 * normal/auth.c (grub_username_get): New function.
5303 (grub_auth_check_authentication): Use grub_username_get.
5304 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
5305 * normal/color.c: Adapt for multiterm.
5306 * normal/main.c (read_config_file): Don't use grub_reader_loop.
5307 (grub_normal_init_page): Additional argument term.
5308 (read_lists): Call read_terminal_lists.
5309 (grub_enter_normal_mode): Call grub_cmdline_run.
5310 Handle grub_normal_exit_level.
5311 (grub_cmd_normal): Make reentrant.
5312 (grub_cmd_normal_exit): New function.
5313 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
5314 * normal/menu.c: Adapt for multiterm.
5315 * normal/menu_entry.c: Likewise.
5316 * normal/menu_text.c: Likewise.
5317 * normal/menu_viewer.c: Removed. All users updated.
5318 * normal/term.c: New file.
5319 * util/console.c: Change order of includes to workaround a bug in
5320 ncurses headers.
5321 * term/terminfo.c: New argument oterm on all exported functions.
5322 All users updated.
5323 * util/grub-editenv.c (grub_term_input_class): Removed.
5324 (grub_term_output_class): Likewise.
5325
5326 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
5327
5328 Make loader output a bit more user-friendly.
5329
5330 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
5331 is being loaded. Likewise for the Hurd.
5332
5333 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
5334 that kernel of FreeBSD ${version} is being loaded.
5335
5336 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
5337 grub_dprintf().
5338 (grub_cmd_initrd): Likewise.
5339 * util/grub.d/10_linux.in (linux_entry): Print message indicating
5340 that Linux ${version} is being loaded. Likewise for initrd.
5341
5342 2010-01-09 Carles Pina i Estany <carles@pina.cat>
5343
5344 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
5345
5346 2010-01-08 Carles Pina i Estany <carles@pina.cat>
5347
5348 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
5349 (GRUB_MOD_INIT): Gettextizze.
5350 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
5351 (GRUB_MOD_INIT): Gettextizze.
5352 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
5353 (grub_cmd_linux): Capitalise Linux.
5354 (GRUB_MOD_INIT): Gettextizze.
5355 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
5356 (grub_cmd_linux): Capitalise Linux.
5357 (GRUB_MOD_INIT): Gettextizze.
5358 * loader/i386/linux.c: Include `<grub/i18n.h>'.
5359 (grub_cmd_linux): Capitalise Linux.
5360 (GRUB_MOD_INIT): Gettextizze.
5361 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
5362 (GRUB_MOD_INIT): Gettextizze.
5363 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
5364 (grub_cmd_linux): Capitalise Linux.
5365 (GRUB_MOD_INIT): Gettextizze.
5366 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
5367 (grub_cpu_xnu_init): Gettextizze.
5368 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
5369 (GRUB_MOD_INIT): Gettextizze.
5370 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
5371 (GRUB_MOD_INIT): Gettextizze.
5372 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
5373 (grub_linux_load64): Capitalise Linux.
5374 (GRUB_MOD_INIT): Gettextizze.
5375 * loader/xnu.c: Include `<grub/i18n.h>'.
5376 (GRUB_MOD_INIT): Gettextizze.
5377 * po/POTFILES: Add `loader/efi/appleloader.c',
5378 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
5379 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
5380 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
5381 `loader/i386/xnu.c', `loader/multiboot_loader.c',
5382 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
5383 and `loader/xnu.c'.
5384
5385 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
5386
5387 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
5388
5389 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
5390
5391 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
5392 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
5393 * util/mkisofs/mkisofs.c (main): Readjust --version output.
5394
5395 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5396
5397 Reset Multiboot 2 support. New loader implements the draft in
5398 /branches/multiboot2 and shares as much code as possible with the
5399 production Multiboot 1 implementation.
5400
5401 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
5402 * loader/multiboot2.c: Likewise.
5403 * loader/i386/multiboot_helper.S: Likewise.
5404 * include/multiboot2.h: Replace with latest version from the draft
5405 in /branches/multiboot2.
5406
5407 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
5408 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
5409 and `loader/multiboot2.c'.
5410 (pkglib_MODULES): Add `multiboot2.mod'.
5411 (multiboot2_mod_SOURCES): New variable.
5412 (multiboot2_mod_LDFLAGS): Likewise.
5413 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
5414
5415 * conf/i386-pc.rmk: Likewise.
5416
5417 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
5418 (multiboot_mod_SOURCES): Remove variable.
5419 (multiboot_mod_LDFLAGS): Likewise.
5420 (multiboot_mod_CFLAGS): Likewise.
5421
5422 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
5423 `<multiboot2.h>' instead of `<multiboot.h>'.
5424 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
5425 (MULTIBOOT_HEADER_MAGIC): New macros.
5426
5427 * loader/multiboot_loader.c (module_version_status): Remove variable.
5428 (find_multi_boot2_header): Remove function.
5429 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
5430 logic. Always check for the Multiboot version we're compiling for.
5431 (grub_cmd_module_loader): Likewise.
5432 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
5433 command instead of `multiboot'.
5434
5435 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5436
5437 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
5438 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
5439 all users.
5440
5441 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5442 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5443
5444 Fix breakage introduced with previous commit.
5445
5446 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
5447 commands.
5448 * normal/handler.c (read_handler_list): Revert part of previous commit
5449 affecting this file.
5450 * normal/main.c (read_lists): Move read_handler_list() call back to ...
5451 (grub_normal_execute): ... here.
5452
5453 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5454
5455 Merge prefix-redefinition-fix branch.
5456
5457 * normal/autofs.c (read_fs_list): Make function capable of being
5458 run multiple times, gracefuly replacing the previous data
5459 structures.
5460 * normal/dyncmd.c (read_command_list): Likewise.
5461 * normal/handler.c (read_handler_list): Likewise.
5462 * normal/main.c (read_lists): New function. Calls all the
5463 list reading functions.
5464 (grub_normal_execute): Use read_lists() instead of calling all
5465 list reading functions explicitly. Register read_lists() as a
5466 variable hook attached to ${prefix}.
5467
5468 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5469
5470 Merge crypto branch.
5471
5472 * Makefile.in (pkglib_DATA): Add crypto.lst.
5473 (crypto.lst): New target.
5474 * commands/hashsum.c: New file.
5475 * commands/password.c (check_password): Use grub_crypto_memcmp.
5476 * commands/password_pbkdf2.c: New file.
5477 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
5478 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
5479 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
5480 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
5481 -I$(srcdir)/lib/libgcrypt_wrap.
5482 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
5483 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
5484 password_pbkdf2.mod.
5485 (crypto_mod_SOURCES): New variable.
5486 (crypto_mod_CFLAGS): Likewise.
5487 (crypto_mod_LDFLAGS): Likewise.
5488 (hashsum_mod_SOURCES): New variable.
5489 (hashsum_mod_CFLAGS): Likewise.
5490 (hashsum_mod_LDFLAGS): Likewise.
5491 (pbkdf2_mod_SOURCES): New variable.
5492 (pbkdf2_mod_CFLAGS): Likewise.
5493 (pbkdf2_mod_LDFLAGS): Likewise.
5494 (password_pbkdf2_mod_SOURCES): New variable.
5495 (password_pbkdf2_mod_CFLAGS): Likewise.
5496 (password_pbkdf2_mod_LDFLAGS): Likewise.
5497 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
5498 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
5499 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
5500 Include conf/gcry.rmk.
5501 * include/grub/auth.h: Rewritten.
5502 * include/grub/crypto.h: New file.
5503 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
5504 * include/grub/normal.h (read_crypto_list): New prototype.
5505 * lib/crypto.c: New file.
5506 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
5507 * lib/pbkdf2.c: Likewise.
5508 * normal/auth.c (grub_auth_strcmp): Removed.
5509 (grub_iswordseparator): Likewise.
5510 (grub_auth_strword): Likewise.
5511 (is_authenticated): Use grub_strword.
5512 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
5513 and grub_strword. Pass entered password to authentication callback.
5514 * normal/crypto.c: New file.
5515 * normal/main.c: Call read_crypto_list.
5516 * util/grub-mkpasswd-pbkdf2.c: New file.
5517 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
5518
5519 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
5520
5521 Fix descent and ascent calculation.
5522
5523 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
5524 (options): New option "asce".
5525 (usage): Likewise.
5526 (add_char): Ignore invalid glyphs for descent calculation.
5527 Calculate ascent from actual content.
5528 (print_glyphs): Use 'asce'.
5529 (write_font): Likewise. Allow ascent override.
5530 (main): Handle "asce" option.
5531
5532 2010-01-06 Carles Pina i Estany <carles@pina.cat>
5533
5534 * kern/err.c: Include `<grub/i18n.h>'.
5535 (grub_print_error): Add full stop. Gettextizze.
5536 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
5537 (grub_bsd_load_elf): Capitalise ELF.
5538 (grub_cmd_freebsd_loadenv): Add `s' in error string.
5539 (grub_cmd_freebsd_module): Likewise.
5540 (grub_cmd_freebsd_module_elf): Likewise.
5541 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
5542
5543 2010-01-06 Carles Pina i Estany <carles@pina.cat>
5544
5545 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
5546 * commands/search_file.c (HELP_MESSAGE): New macro.
5547 * commands/search_label.c (HELP_MESSAGE): Likewise.
5548 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
5549 * po/POTFILES: Add `commands/search_file.c',
5550 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
5551 `commands/search.c'.
5552
5553 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
5554
5555 * config.rpath: Update from Gnulib.
5556
5557 2010-01-05 Yves Blusseau <blusseau@zetam.org>
5558
5559 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
5560
5561 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
5562
5563 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
5564
5565 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5566
5567 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
5568 arguments to fread so that we get a return value in bytes, rather
5569 than something that will normally be rounded down to 0.
5570 Adjust error handling to avoid producing garbage when size_t is not
5571 the same size as long long.
5572
5573 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5574
5575 * util/mkisofs/write.c (padblock_write): Check return value of
5576 fread.
5577
5578 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
5579
5580 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
5581 floppy images now.
5582
5583 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
5584
5585 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
5586
5587 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
5588 instead of manual alignment.
5589 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
5590 verbose). Avoid attempts to read past end of the device
5591 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
5592 but GRUB_DISK_CACHE_SIZE may exceed that).
5593
5594 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
5595
5596 * commands/crc.c (grub_cmd_crc): Abort on read errors.
5597 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
5598 it to upper layer.
5599
5600 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5601
5602 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
5603 New constant.
5604 (grub_efi_piwg_device_path): New structure
5605 (grub_efi_piwg_device_path_t): New type.
5606 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
5607 (devpath_1): Transform to a structure. All users updated.
5608 (devpath_2): Likewise.
5609 (devpath_3): Likewise.
5610 (devpath_4): Likewise.
5611 (devpath_5): Likewise.
5612
5613 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5614
5615 * loader/efi/appleloader.c: Restored. Update all users.
5616
5617 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5618
5619 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
5620
5621 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
5622 (struct boot_blocklist): Move from here ...
5623 * include/grub/i386/pc/boot.h [ASM_FILE]
5624 (struct grub_boot_blocklist): ... to here. Update all users.
5625 (setup): Only initialize `start' member of `first_block'
5626 structure. Add assert() calls to verify the other members.
5627
5628 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
5629 (generate_image): Fix broken blocklist length initialization.
5630 Add assert() call to verify blocklist `segment' field.
5631
5632 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5633
5634 * loader/efi/appleloader.c: Remove. Update all users.
5635
5636 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5637
5638 * boot/i386/pc/boot.S: Update copyright year.
5639 * boot/i386/pc/cdboot.S: Likewise.
5640 * boot/i386/pc/diskboot.S: Likewise.
5641 * boot/i386/pc/lnxboot.S: Likewise.
5642 * boot/i386/pc/pxeboot.S: Likewise.
5643 * bus/pci.c: Likewise.
5644 * commands/cmp.c: Likewise.
5645 * commands/help.c: Likewise.
5646 * commands/hexdump.c: Likewise.
5647 * commands/i386/pc/halt.c: Likewise.
5648 * commands/i386/pc/play.c: Likewise.
5649 * commands/i386/pc/vbeinfo.c: Likewise.
5650 * commands/ls.c: Likewise.
5651 * commands/test.c: Likewise.
5652 * disk/dmraid_nvidia.c: Likewise.
5653 * disk/i386/pc/biosdisk.c: Likewise.
5654 * disk/ieee1275/nand.c: Likewise.
5655 * disk/ieee1275/ofdisk.c: Likewise.
5656 * disk/lvm.c: Likewise.
5657 * disk/raid.c: Likewise.
5658 * disk/raid6_recover.c: Likewise.
5659 * disk/scsi.c: Likewise.
5660 * fs/affs.c: Likewise.
5661 * fs/cpio.c: Likewise.
5662 * fs/ext2.c: Likewise.
5663 * fs/hfs.c: Likewise.
5664 * fs/iso9660.c: Likewise.
5665 * fs/ntfs.c: Likewise.
5666 * fs/sfs.c: Likewise.
5667 * fs/udf.c: Likewise.
5668 * fs/ufs.c: Likewise.
5669 * fs/xfs.c: Likewise.
5670 * gencmdlist.sh: Likewise.
5671 * genmk.rb: Likewise.
5672 * include/grub/disk.h: Likewise.
5673 * include/grub/efi/api.h: Likewise.
5674 * include/grub/efi/efi.h: Likewise.
5675 * include/grub/efi/pe32.h: Likewise.
5676 * include/grub/elf.h: Likewise.
5677 * include/grub/fs.h: Likewise.
5678 * include/grub/i386/at_keyboard.h: Likewise.
5679 * include/grub/i386/pc/memory.h: Likewise.
5680 * include/grub/i386/pc/vbe.h: Likewise.
5681 * include/grub/i386/pci.h: Likewise.
5682 * include/grub/i386/tsc.h: Likewise.
5683 * include/grub/ieee1275/ieee1275.h: Likewise.
5684 * include/grub/ntfs.h: Likewise.
5685 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
5686 * include/grub/sparc64/libgcc.h: Likewise.
5687 * include/grub/symbol.h: Likewise.
5688 * include/grub/types.h: Likewise.
5689 * include/multiboot2.h: Likewise.
5690 * io/gzio.c: Likewise.
5691 * kern/device.c: Likewise.
5692 * kern/disk.c: Likewise.
5693 * kern/efi/efi.c: Likewise.
5694 * kern/efi/mm.c: Likewise.
5695 * kern/elf.c: Likewise.
5696 * kern/file.c: Likewise.
5697 * kern/i386/dl.c: Likewise.
5698 * kern/i386/pc/init.c: Likewise.
5699 * kern/i386/pc/startup.S: Likewise.
5700 * kern/ieee1275/ieee1275.c: Likewise.
5701 * kern/ieee1275/init.c: Likewise.
5702 * kern/main.c: Likewise.
5703 * kern/mm.c: Likewise.
5704 * kern/powerpc/dl.c: Likewise.
5705 * kern/sparc64/dl.c: Likewise.
5706 * kern/x86_64/dl.c: Likewise.
5707 * lib/hexdump.c: Likewise.
5708 * loader/efi/appleloader.c: Likewise.
5709 * loader/i386/ieee1275/linux.c: Likewise.
5710 * loader/i386/pc/chainloader.c: Likewise.
5711 * loader/i386/pc/linux.c: Likewise.
5712 * loader/i386/pc/multiboot2.c: Likewise.
5713 * loader/ieee1275/multiboot2.c: Likewise.
5714 * loader/multiboot2.c: Likewise.
5715 * loader/multiboot_loader.c: Likewise.
5716 * loader/powerpc/ieee1275/linux.c: Likewise.
5717 * normal/completion.c: Likewise.
5718 * normal/menu_entry.c: Likewise.
5719 * partmap/apple.c: Likewise.
5720 * util/grub.d/10_hurd.in: Likewise.
5721 * util/hostfs.c: Likewise.
5722 * video/readers/png.c: Likewise.
5723
5724 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
5725
5726 * include/grub/misc.h (GNUC_PREREQ): New macro.
5727 (ATTRIBUTE_ERROR): New macro.
5728 * include/grub/list.h (grub_bad_type_cast_real): Use
5729 ATTRIBUTE_ERROR.
5730
5731 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5732
5733 * normal/menu_text.c (print_message): Change messages.
5734
5735 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5736
5737 * normal/menu_entry.c (store_completion): Gettextizze.
5738
5739 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5740
5741 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
5742
5743 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5744
5745 * po/POTFILES: Sort correctly.
5746
5747 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5748
5749 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
5750 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
5751 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
5752 full stop.
5753 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
5754 summary. Gettextizze the strings.
5755 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
5756 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
5757 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
5758 full stop.
5759 (GRUB_MOD_INIT): Remove command name from summary.
5760 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
5761 summary.
5762 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
5763 * term/i386/pc/serial.c (options): Add full stops.
5764 (GRUB_MOD_INIT): Remove command name from the summary.
5765
5766 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5767
5768 * commands/acpi.c: Gettextizze help strings and/or options. Include
5769 `grub/i18n.h' if needed.
5770 * commands/blocklist.c: Likewise.
5771 * commands/boot.c: Likewise.
5772 * commands/cat.c: Likewise.
5773 * commands/cmp.c: Likewise.
5774 * commands/configfile.c: Likewise.
5775 * commands/crc.c: Likewise.
5776 * commands/date.c: Likewise.
5777 * commands/echo.c: Likewise.
5778 * commands/efi/fixvideo.c: Likewise.
5779 * commands/efi/loadbios.c: Likewise.
5780 * commands/gptsync.c: Likewise.
5781 * commands/halt.c: Likewise.
5782 * commands/handler.c: Likewise.
5783 * commands/hdparm.c: Likewise.
5784 * commands/hexdump.c: Likewise.
5785 * commands/i386/cpuid.c: Likewise.
5786 * commands/i386/pc/drivemap.c: Likewise.
5787 * commands/i386/pc/halt.c: Likewise.
5788 * commands/i386/pc/pxecmd.c: Likewise.
5789 * commands/i386/pc/vbeinfo.c: Likewise.
5790 * commands/i386/pc/vbetest.c: Likewise.
5791 * commands/ieee1275/suspend.c: Likewise.
5792 * commands/keystatus.c: Likewise.
5793 * commands/loadenv.c: Likewise.
5794 * commands/ls.c: Likewise.
5795 * commands/lsmmap.c: Likewise.
5796 * commands/lspci.c: Likewise.
5797 * commands/memrw.c: Likewise.
5798 * commands/minicmd.c: Likewise.
5799 * commands/parttool.c: Likewise.
5800 * commands/password.c: Likewise.
5801 * commands/probe.c: Likewise.
5802 * commands/read.c: Likewise.
5803 * commands/reboot.c: Likewise.
5804 * commands/search.c: Likewise.
5805 * commands/sleep.c: Likewise.
5806 * commands/test.c: Likewise.
5807 * commands/true.c: Likewise.
5808 * commands/usbtest.c: Likewise.
5809 * commands/videotest.c: Likewise.
5810 * commands/xnu_uuid.c: Likewise.
5811 * disk/loopback.c: Likewise.
5812 * hello/hello.c: Likewise.
5813 * loader/i386/bsd.c: Likewise.
5814 * term/i386/pc/serial.c: Likewise.
5815 * po/POTFILES: Add new files.
5816
5817 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
5818
5819 * term/i386/pc/at_keyboard.c
5820 (keyboard_controller_wait_untill_ready): Rename to ...
5821 (keyboard_controller_wait_until_ready): ... this. Update all users.
5822
5823 2010-01-01 Carles Pina i Estany <carles@pina.cat>
5824
5825 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
5826 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
5827 string using string width.
5828 * normal/menu_text.c (grub_print_message_indented): Use
5829 grub_print_spaces and not print_spaces.
5830 (print_timeout): Likewise.
5831 (print_spaces): Move to...
5832 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
5833
5834 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
5835
5836 Import from Gnulib.
5837
5838 * gnulib/getdelim.c: New file.
5839 * gnulib/getline.c: Likewise.
5840
5841 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
5842
5843 * include/grub/list.h (grub_assert_fail): Removed.
5844 (grub_bad_type_cast_real): New function.
5845 (grub_bad_type_cast): New macro.
5846 (GRUB_AS_LIST): Use grub_bad_type_cast.
5847 (GRUB_AS_LIST_P): Likewise.
5848 (GRUB_AS_NAMED_LIST): Likewise.
5849 (GRUB_AS_NAMED_LIST_P): Likewise.
5850 (GRUB_AS_PRIO_LIST): Likewise.
5851 (GRUB_AS_PRIO_LIST_P): Likewise.
5852 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
5853
5854 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
5855
5856 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
5857 Fix syntax error.
5858
5859 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
5860
5861 * configure.ac: Check for TARGET_CFLAGS initialization before we
5862 initialize it ourselves (sigh).
5863 Move a few modifications to TARGET_CFLAGS to be unconditional
5864 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
5865 eh_frame)
5866
5867 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
5868 * term/i386/pc/at_keyboard.c
5869 (keyboard_controller_wait_untill_ready): Likewise.
5870 (keyboard_controller_led): Rename `led_status' paramter to avoid
5871 name conflict.
5872
5873 2009-12-28 Carles Pina i Estany <carles@pina.cat>
5874
5875 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
5876 quotes.
5877
5878 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5879
5880 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
5881
5882 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5883
5884 * normal/menu_text.c (grub_print_message_indented): Prevent
5885 past-the-end-of-array dereference.
5886
5887 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5888
5889 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
5890 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
5891
5892 2009-12-27 Carles Pina i Estany <carles@pina.cat>
5893
5894 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
5895 * normal/main.c (grub_normal_read_line): Remove a space from the
5896 default prompt.
5897
5898 2009-12-27 Carles Pina i Estany <carles@pina.cat>
5899
5900 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
5901 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5902 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5903 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5904 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5905 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5906 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5907
5908 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5909
5910 * video/readers/jpeg.c (cmd): Declare.
5911 (grub_cmd_jpegtest): Use `grub_command_t' type.
5912 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5913 Assign to `cmd'.
5914 (GRUB_MOD_FINI): Use `cmd' to unregister.
5915 * video/readers/png.c (cmd): Declare.
5916 (grub_cmd_pngtest): Use `grub_command_t' type.
5917 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5918 Assign to `cmd'.
5919 (GRUB_MOD_FINI): Use `cmd' to unregister.
5920 * video/readers/tga.c (cmd): Declare.
5921 (grub_cmd_tgatest): Use `grub_command_t' type.
5922 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5923 Assign to `cmd'.
5924 (GRUB_MOD_FINI): Use `cmd' to unregister.
5925
5926 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5927
5928 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
5929 stops.
5930 * kern/corecmd.c (grub_register_core_commands): Likewise.
5931 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
5932 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5933 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
5934 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5935 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5936 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
5937 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5938 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
5939 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5940 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5941 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5942 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5943 * normal/handler.c (insert_handler): Likewise.
5944 * normal/main.c (GRUB_MOD_INIT): Likewise.
5945 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
5946
5947 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5948
5949 * commands/help.c (grub_cmd_help): Print the command name before the
5950 summary.
5951 (GRUB_MOD_INIT): Remove command name from the summary.
5952 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
5953 string as summary.
5954 * lib/arg.c (find_long): Print the command name before the summary.
5955 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
5956 summary.
5957 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
5958 * commands/cat.c (GRUB_MOD_INIT): Likewise.
5959 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
5960 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
5961 * commands/crc.c (GRUB_MOD_INIT): Likewise.
5962 * commands/date.c (GRUB_MOD_INIT): Likewise.
5963 * commands/echo.c (GRUB_MOD_INIT): Likewise.
5964 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
5965 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
5966 * commands/handler.c (GRUB_MOD_INIT): Likewise.
5967 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
5968 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
5969 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
5970 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
5971 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
5972 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
5973 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
5974 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
5975 * commands/ls.c (GRUB_MOD_INIT): Likewise.
5976 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
5977 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
5978 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
5979 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
5980 * commands/password.c (GRUB_MOD_INIT): Likewise.
5981 * commands/probe.c (GRUB_MOD_INIT): Likewise.
5982 * commands/read.c (GRUB_MOD_INIT): Likewise.
5983 * commands/search.c (GRUB_MOD_INIT): Likewise.
5984 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
5985 * commands/test.c (GRUB_MOD_INIT): Likewise.
5986 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
5987 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
5988 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
5989 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
5990 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
5991 * lib/arg.c (GRUB_MOD_INIT): Likewise.
5992 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
5993 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5994 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5995 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5996 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
5997 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
5998 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
5999 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
6000
6001 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6002
6003 Use search command for preliminar UUID search.
6004
6005 * commands/search.c: Split into ...
6006 * commands/search_wrap.c: ...this
6007 * commands/search.c: ...and this.
6008 * commands/search_file.c: New file.
6009 * commands/search_label.c: New file.
6010 * commands/search_uuid.c: New file.
6011 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
6012 Add commands/search_wrap.c, commands/search_file.c,
6013 commands/search_label.c and commands/search_uuid.c.
6014 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
6015 (search_mod_SOURCES): Set to commands/search_wrap.c.
6016 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
6017 search_label.mod.
6018 (search_fs_file_mod_SOURCES): New variable.
6019 (search_fs_file_mod_CFLAGS): Likewise.
6020 (search_fs_file_mod_LDFLAGS): Likewise.
6021 (search_label_mod_SOURCES): Likewise.
6022 (search_label_mod_CFLAGS): Likewise.
6023 (search_label_mod_LDFLAGS): Likewise.
6024 (search_fs_uuid_mod_SOURCES): New variable.
6025 (search_fs_uuid_mod_CFLAGS): Likewise.
6026 (search_fs_uuid_mod_LDFLAGS): Likewise.
6027 (fs_file_mod_SOURCES): Removed.
6028 (fs_file_mod_CFLAGS): Likewise.
6029 (fs_file_mod_LDFLAGS): Likewise.
6030 (fs_uuid_mod_SOURCES): Removed.
6031 (fs_uuid_mod_CFLAGS): Likewise.
6032 (fs_uuid_mod_LDFLAGS): Likewise.
6033 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
6034 Set to util/grub-install.in.
6035 * disk/fs_file.c: Removed.
6036 * disk/fs_uuid.c: Likewise.
6037 * include/grub/search.h: New file.
6038 * util/grub-install.in: Handle sparc64.
6039 Create and use load.cfg.
6040 * util/sparc64/ieee1275/grub-install.in: Removed.
6041
6042 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6043
6044 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
6045 Ignore return status if CF is cleared.
6046 (grub_biosdisk_get_diskinfo_standard): Likewise.
6047
6048 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
6049
6050 * term/i386/pc/at_keyboard.c
6051 (keyboard_controller_wait_untill_ready): New function.
6052 (grub_keyboard_controller_write, grub_keyboard_controller_read)
6053 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
6054 for keyboard polling, rather than duplicate the same loop. This
6055 saves a few bytes in code size.
6056
6057 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6058
6059 Support for (pxe[:server[:gateway]]) syntax and
6060 use environment variable for PXE.
6061
6062 * commands/i386/pc/pxecmd.c (options): Removed.
6063 (print_ip): Removed.
6064 (grub_cmd_pxe): Removed
6065 (grub_cmd_pxe_unload): New function.
6066 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
6067 (grub_pxe_your_ip): Made static.
6068 (grub_pxe_default_server_ip): Likewise.
6069 (grub_pxe_default_gateway_ip): Likewise.
6070 (grub_pxe_blksize): Likewise.
6071 (parse_ip): New function.
6072 (grub_pxe_open): Support server and gateway specification.
6073 (grub_pxe_close): Free disk->data.
6074 (grub_pxefs_open): Use disk->data.
6075 (grub_pxefs_read): Likewise.
6076 (grub_env_write_readonly): New function.
6077 (set_mac_env): Likewise.
6078 (set_env_limn_ro): Likewise.
6079 (parse_dhcp_vendor): Likewise.
6080 (grub_pxe_detect): Set the environment variables.
6081 (set_ip_env): New function.
6082 (write_ip_env): Likewise.
6083 (grub_env_write_pxe_default_server): Likewise.
6084 (grub_env_write_pxe_default_gateway): Likewise.
6085 (grub_env_write_pxe_blocksize): Likewise.
6086 (GRUB_MOD_INIT(pxe)): Set environment variables.
6087 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
6088 (grub_pxe_mac_addr_t): ... this. All users updated.
6089 (grub_pxe_your_ip): Removed.
6090 (grub_pxe_server_ip): Likewise.
6091 (grub_pxe_gateway_ip): Likewise.
6092 (grub_pxe_blksize): Likewise.
6093
6094 2009-12-25 Carles Pina i Estany <carles@pina.cat>
6095
6096 * commands/help.c: Include `<grub/i18n.h>'.
6097 (grub_cmd_help): Gettextizze.
6098 (GRUB_MOD_INIT): Likewise.
6099 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
6100 (GRUB_MOD_INIT): Gettextizze.
6101 * commands/search.c: Include `<grub/i18n.h>'.
6102 (options): Gettextizze.
6103 (GRUB_MOD_INIT): Gettextizze.
6104 * lib/arg.c: Include `<grub/i18n.h>'.
6105 (help_options): Gettextizze.
6106 (find_long): Likewise.
6107 (grub_arg_show_help): Likewise.
6108 * normal/dyncmd.c: Include `<grub/i18n.h>'.
6109 (read_command_list): Gettextizze.
6110 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
6111 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
6112
6113 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
6114
6115 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
6116 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
6117 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
6118 (led_status): New variable.
6119 (keyboard_controller_led): New function.
6120 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
6121 update led status for caps lock, num lock and scroll lock.
6122
6123 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
6124
6125 * util/hostdisk.c (open_device): Fix a comment.
6126
6127 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6128
6129 * util/grub-install.in (host_os): New variable.
6130 * util/i386/efi/grub-install.in (host_os): Likewise.
6131
6132 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6133
6134 * util/mkisofs/write.c (padblock_write): Abort when given an
6135 excedingly large embed image, instead of silently truncating it.
6136
6137 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6138
6139 * include/multiboot.h: Indentation fixes.
6140
6141 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6142
6143 * include/multiboot.h (struct multiboot_aout_symbol_table)
6144 (struct multiboot_elf_section_header_table): New structure
6145 declarations (stolen from GRUB Legacy).
6146 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
6147 table information.
6148
6149 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
6150 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
6151 type aliases.
6152
6153 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6154
6155 * include/multiboot.h: Make comments src2texi-friendly.
6156
6157 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6158
6159 For consistency with [multiboot]/docs/boot.S.
6160
6161 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
6162 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
6163 (MULTIBOOT_MAGIC2): Rename from this ...
6164 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
6165
6166 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6167
6168 * include/multiboot.h: Remove `<grub/types.h>'.
6169 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
6170 types. Update all users.
6171
6172 2009-12-25 Carles Pina i Estany <carles@pina.cat>
6173
6174 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
6175 `couldn't' and `can not' by `cannot'.
6176 * commands/i386/pc/drivemap.c: Likewise.
6177 * disk/ata.c: Likewise.
6178 * disk/ieee1275/nand.c: Likewise.
6179 * fs/affs.c: Likewise.
6180 * fs/fat.c: Likewise.
6181 * fs/hfs.c: Likewise.
6182 * fs/hfsplus.c: Likewise.
6183 * fs/iso9660.c: Likewise.
6184 * fs/jfs.c: Likewise.
6185 * fs/minix.c: Likewise.
6186 * fs/reiserfs.c: Likewise.
6187 * fs/sfs.c: Likewise.
6188 * fs/udf.c: Likewise.
6189 * fs/ufs.c: Likewise.
6190 * fs/xfs.c: Likewise.
6191 * loader/powerpc/ieee1275/linux.c: Likewise.
6192 * loader/sparc64/ieee1275/linux.c: Likewise.
6193 * util/grub-probe.c: Likewise.
6194 * util/misc.c: Likewise.
6195
6196 2009-12-24 Carles Pina i Estany <carles@pina.cat>
6197
6198 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
6199 grub_errno calls.
6200 * commands/acpi.c: Likewise.
6201 * commands/blocklist.c: Likewise.
6202 * commands/efi/loadbios.c: Likewise.
6203 * commands/i386/pc/drivemap.c: Likewise.
6204 * commands/loadenv.c: Likewise.
6205 * commands/memrw.c: Likewise.
6206 * commands/password.c: Likewise.
6207 * commands/videotest.c: Likewise.
6208 * disk/ata.c: Likewise.
6209 * disk/ata_pthru.c: Likewise.
6210 * disk/dmraid_nvidia.c: Likewise.
6211 * disk/ieee1275/nand.c: Likewise.
6212 * disk/ieee1275/ofdisk.c: Likewise.
6213 * disk/loopback.c: Likewise.
6214 * disk/lvm.c: Likewise.
6215 * disk/mdraid_linux.c: Likewise.
6216 * disk/raid.c: Likewise.
6217 * disk/raid6_recover.c: Likewise.
6218 * disk/scsi.c: Likewise.
6219 * efiemu/main.c: Likewise.
6220 * efiemu/mm.c: Likewise.
6221 * efiemu/pnvram.c: Likewise.
6222 * efiemu/symbols.c: Likewise.
6223 * font/font.c: Likewise.
6224 * fs/cpio.c: Likewise.
6225 * fs/hfsplus.c: Likewise.
6226 * fs/iso9660.c: Likewise.
6227 * fs/jfs.c: Likewise.
6228 * fs/minix.c: Likewise.
6229 * fs/ntfs.c: Likewise.
6230 * fs/ntfscomp.c: Likewise.
6231 * fs/reiserfs.c: Likewise.
6232 * fs/ufs.c: Likewise.
6233 * fs/xfs.c: Likewise.
6234 * gettext/gettext.c: Likewise.
6235 * include/grub/auth.h: Likewise.
6236 * kern/elf.c: Likewise.
6237 * kern/file.c: Likewise.
6238 * kern/ieee1275/init.c: Likewise.
6239 * kern/ieee1275/mmap.c: Likewise.
6240 * kern/ieee1275/openfw.c: Likewise.
6241 * kern/powerpc/dl.c: Likewise.
6242 * kern/sparc64/dl.c: Likewise.
6243 * lib/arg.c: Likewise.
6244 * loader/i386/bsd.c: Likewise.
6245 * loader/i386/bsdXX.c: Likewise.
6246 * loader/i386/efi/linux.c: Likewise.
6247 * loader/i386/efi/xnu.c: Likewise.
6248 * loader/i386/ieee1275/linux.c: Likewise.
6249 * loader/i386/linux.c: Likewise.
6250 * loader/i386/multiboot.c: Likewise.
6251 * loader/i386/pc/linux.c: Likewise.
6252 * loader/i386/pc/multiboot2.c: Likewise.
6253 * loader/i386/xnu.c: Likewise.
6254 * loader/ieee1275/multiboot2.c: Likewise.
6255 * loader/macho.c: Likewise.
6256 * loader/machoXX.c: Likewise.
6257 * loader/multiboot2.c: Likewise.
6258 * loader/multiboot_loader.c: Likewise.
6259 * loader/powerpc/ieee1275/linux.c: Likewise.
6260 * loader/sparc64/ieee1275/linux.c: Likewise.
6261 * loader/xnu.c: Likewise.
6262 * loader/xnu_resume.c: Likewise.
6263 * mmap/i386/pc/mmap.c: Likewise.
6264 * normal/menu_viewer.c: Likewise.
6265 * partmap/acorn.c: Likewise.
6266 * partmap/amiga.c: Likewise.
6267 * partmap/apple.c: Likewise.
6268 * script/lexer.c: Likewise.
6269 * term/gfxterm.c: Likewise.
6270 * term/i386/pc/serial.c: Likewise.
6271 * term/i386/pc/vga.c: Likewise.
6272 * term/ieee1275/ofconsole.c: Likewise.
6273 * term/terminfo.c: Likewise.
6274 * video/bitmap.c: Likewise.
6275 * video/efi_gop.c: Likewise.
6276 * video/efi_uga.c: Likewise.
6277 * video/fb/video_fb.c: Likewise.
6278 * video/i386/pc/vbe.c: Likewise.
6279 * video/readers/tga.c: Likewise.
6280 * video/video.c: Likewise.
6281
6282 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
6283
6284 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
6285 * commands/lspci.c: Likewise.
6286 * commands/probe.c: Likewise.
6287 * commands/xnu_uuid.c: Likewise.
6288 * conf/i386-coreboot.rmk: Likewise.
6289 * conf/i386-efi.rmk: Likewise.
6290 * conf/i386-ieee1275.rmk: Likewise.
6291 * conf/i386-pc.rmk: Likewise.
6292 * conf/powerpc-ieee1275.rmk: Likewise.
6293 * conf/sparc64-ieee1275.rmk: Likewise.
6294 * conf/x86_64-efi.rmk: Likewise.
6295 * fs/i386/pc/pxe.c: Likewise.
6296 * gettext/gettext.c: Likewise.
6297 * include/grub/efi/graphics_output.h: Likewise.
6298 * include/grub/i386/pc/memory.h: Likewise.
6299 * kern/env.c: Likewise.
6300 * kern/i386/qemu/startup.S: Likewise.
6301 * lib/i386/pc/biosnum.c: Likewise.
6302 * lib/i386/relocator.c: Likewise.
6303 * lib/i386/relocator_asm.S: Likewise.
6304 * lib/relocator.c: Likewise.
6305 * loader/i386/bsd.c: Likewise.
6306 * loader/i386/multiboot.c: Likewise.
6307 * loader/i386/pc/chainloader.c: Likewise.
6308 * loader/i386/xnu.c: Likewise.
6309 * loader/xnu.c: Likewise.
6310 * normal/main.c: Likewise.
6311 * normal/menu_text.c: Likewise.
6312 * util/getroot.c: Likewise.
6313 * util/grub-mkconfig_lib.in: Likewise.
6314 * util/grub.d/00_header.in: Likewise.
6315 * util/i386/pc/grub-mkimage.c: Likewise.
6316 * util/mkisofs/eltorito.c: Likewise.
6317 * util/mkisofs/exclude.h: Likewise.
6318 * util/mkisofs/hash.c: Likewise.
6319 * util/mkisofs/iso9660.h: Likewise.
6320 * util/mkisofs/joliet.c: Likewise.
6321 * util/mkisofs/mkisofs.c: Likewise.
6322 * util/mkisofs/mkisofs.h: Likewise.
6323 * util/mkisofs/multi.c: Likewise.
6324 * util/mkisofs/name.c: Likewise.
6325 * util/mkisofs/rock.c: Likewise.
6326 * util/mkisofs/tree.c: Likewise.
6327 * util/mkisofs/write.c: Likewise.
6328 * video/efi_gop.c: Likewise.
6329
6330 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6331
6332 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
6333 size counting.
6334
6335 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6336
6337 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
6338 * genmk.rb (class SCRIPT): Modify the target file instead of source.
6339
6340 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6341
6342 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
6343 (GRUB_MOD_INIT(memrw)): Update help line.
6344
6345 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6346
6347 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
6348 Use grub_extcmd_t. All users updated.
6349 (options): New variable.
6350 (grub_cmd_read): Restructure for readability. Support "-v" option.
6351 (grub_cmd_write): Restructure for readability.
6352
6353 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6354
6355 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
6356
6357 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6358
6359 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
6360 with the actual contents of the correspondending make variable.
6361 * util/grub-mkrescue.in (pkglib_DATA): New variable.
6362 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
6363 specifying `*.lst' and `efiemu??.o'
6364
6365 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6366
6367 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
6368 after function name.
6369 Noticed by Rene Engelhard <rene@debian.org>.
6370
6371 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6372
6373 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
6374 (options): New variable.
6375 (iospace): Likewise.
6376 (grub_lspci_iter): List IO spaces if "-i" was given.
6377 (grub_cmd_lspci): Parse options.
6378 (GRUB_MOD_INIT(lspci)): Use extcmd.
6379 (GRUB_MOD_FINI(lspci)): Likewise.
6380
6381 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6382
6383 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
6384 `function' keyword.
6385 Patch by Tony Mancill <tmancill@debian.org>.
6386
6387 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6388
6389 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
6390 (grub_uhci_portstatus): Likewise.
6391 (grub_uhci_portstatus): Add necessary delay.
6392 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
6393
6394 2009-12-21 Carles Pina i Estany <carles@pina.cat>
6395
6396 * commands/acpi.c (options): Fix capitalizations and/or full stops.
6397 (GRUB_MOD_INIT): Likewise.
6398 * commands/boot.c (GRUB_MOD_INIT): Likewise.
6399 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
6400 * commands/echo.c (options): Fix capitalizations and/or full stops.
6401 * commands/efi/loadbios.c (enable_rom_area): Likewise.
6402 (enable_rom_area): Likewise.
6403 (GRUB_MOD_INIT): Likewise.
6404 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
6405 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
6406 * commands/handler.c (GRUB_MOD_INIT): Likewise.
6407 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
6408 * commands/hexdump.c (options): Likewise.
6409 * commands/i386/cpuid.c (options): Likewise.
6410 (GRUB_MOD_INIT): Likewise.
6411 * commands/i386/pc/drivemap.c (options): Likewise.
6412 (GRUB_MOD_INIT): Likewise.
6413 * commands/i386/pc/halt (options): Likewise.
6414 (GRUB_MOD_INIT): Likewise.
6415 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
6416 * commands/i386/pc/pxecmd.c (options): Likewise.
6417 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
6418 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
6419 * commands/keystatus.c (options): Likewise.
6420 (GRUB_MOD_INIT): Likewise.
6421 * commands/loadenv.c (options): Likewise.
6422 * commands/ls.c (options): Likewise.
6423 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
6424 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
6425 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
6426 * commands/parttool.c (helpmsg): Likewise.
6427 * commands/probe.c (options): Likewise.
6428 * commands/read.c (GRUB_MOD_INIT): Likewise.
6429 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
6430 * commands/search.c (options): Likewise.
6431 * commands/sleep.c (options): Likewise.
6432 * commands/test.c (GRUB_MOD_INIT): Likewise.
6433 * commands/true.c (GRUB_MOD_INIT): Likewise.
6434 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
6435 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
6436 * lib/arg.c (help_options): Likewise.
6437 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
6438 `$(XGETTEXT)'.
6439 * po/POTFILES: Add `commands/loadenv.c'.
6440
6441 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
6442
6443 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
6444 instead of specifying them explicit.
6445
6446 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6447
6448 * NEWS: Add grub-probe support for GNU/Hurd.
6449
6450 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6451
6452 * NEWS: gettext was added after 1.97.
6453
6454 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6455
6456 * util/mkisofs/msdos_partition.h: New file (based on
6457 include/grub/msdos_partition.h).
6458 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
6459 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
6460 (ld_options, main): Recognize --protective-msdos-label.
6461 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
6462 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
6463 (padblock_write): If `use_protective_msdos_label' is set, patch a
6464 protective DOS-style label in the output image.
6465
6466 * util/grub-mkrescue.in: Use --protective-msdos-label.
6467
6468 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6469
6470 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
6471 boot.
6472
6473 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6474
6475 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
6476 variables.
6477 (ld_options, main): Recognize `--embedded-boot'.
6478 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
6479 declarations.
6480 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
6481 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
6482 (padblock_write): Likewise. Rewrite to support embedded boot image.
6483
6484 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
6485 for BIOS-based disk boot instead of only ElTorito.
6486
6487 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6488
6489 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
6490 build (not needed for bootstrap).
6491
6492 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6493
6494 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
6495 from i386-pc build (not needed for bootstrap).
6496 Rewrite a pair of strings.
6497
6498 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6499
6500 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
6501
6502 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
6503
6504 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
6505
6506 2009-12-21 Andreas Born <futur.andy@googlemail.com>
6507
6508 * kern/env.c (grub_env_context_open): Mark exported variable for
6509 reexport.
6510
6511 2009-12-21 Andreas Born <futur.andy@googlemail.com>
6512
6513 * kern/env.c (grub_env_export): Create nonexistent variables before
6514 exporting.
6515
6516 2009-12-20 Carles Pina i Estany <carles@pina.cat>
6517
6518 * include/grub/auth.h: Include `<grub/i18n.h>'.
6519 (GRUB_GET_PASSWORD): Gettextizze string.
6520 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
6521 menu_text.c.
6522 (grub_utf8_to_ucs4_alloc): Fix indentation.
6523 (grub_print_ucs4): Likewise.
6524 (grub_getstringwidth): Likewise.
6525 (print_message_indented): New declaration.
6526 * normal/auth.c: Include `<grub/i18n.h>'.
6527 (grub_auth_check_authentication): Gettexttize string.
6528 * normal/cmdline.c: Include `<grub/i18n.h>'.
6529 (grub_cmdline_get): Gettextizze.
6530 * normal/color.c: Include `<grub/i18n.h>'.
6531 (grub_parse_color_name_pair): Gettexttize strings.
6532 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
6533 string (use `print_message_indented').
6534 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
6535 `include/grub/normal.h'.
6536 (print_message_indented): Renamed to ...
6537 (grub_print_message_indented): ... this. Remove `static' qualifer (now
6538 used in normal/main.c).
6539 (print_message): Use `grub_print_message_indented' instead of
6540 `print_message_indented'.
6541 (print_timeout): Likewise.
6542 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
6543 (grub_normal_print_device_info): Gettexttize strings.
6544 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
6545
6546 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6547
6548 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
6549 of arguments. Return number of tokens and not arguments. All users
6550 updated.
6551
6552 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6553
6554 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
6555 non-MSDOS paritions.
6556
6557 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
6558
6559 * include/grub/types.h (UNUSED): Removed since it conflicts with
6560 NetBSD headers. All users changed to direct __attribute__ ((unused)).
6561 Reported by Grégoire Sutre.
6562
6563 2009-12-19 Carles Pina i Estany <carles@pina.cat>
6564
6565 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
6566 (grub_print_ucs4_alloc): Likewise.
6567 (grub_getstringwidth): Likewise.
6568 * normal/main.c (grub_normal_init_page): Gettextize version string.
6569 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
6570 (getstringwidth): Renamed to ...
6571 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
6572 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
6573 (grub_print_ucs4): Remove `static' qualifer (now used in
6574 normal/main.c).
6575 * po/POTFILES: Add normal/main.c.
6576
6577 2009-12-19 Carles Pina i Estany <carles@pina.cat>
6578
6579 * normal/menu_text.c (STANDARD_MARGIN): New macro.
6580 (print_message_indented): Add `margin_left' and `margin_right'
6581 parameters.
6582 (print_message): Update `print_message_indented' calls. Adds '\n' to the
6583 strings.
6584 (print_timeout): Use `print_message_indented' to print the message.
6585 Deletes `second_stage' parameter.
6586 (run_menu): Update `print_timeout' calls.
6587
6588 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6589
6590 Fix console palette on OpenFirmware.
6591
6592 * term/ieee1275/ofconsole.c (MAX): Removed.
6593 (colors): Redone based on VGA palette.
6594 (grub_ofconsole_setcolor): Discard brightness bit since only 8
6595 colors are supported.
6596 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
6597
6598 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6599
6600 Fix potential EfiEmu double prepare.
6601
6602 * efiemu/main.c (prepared): New variable
6603 (grub_efiemu_unload): Set prepare to '0'.
6604 (grub_efiemu_prepare): Return if already prepared. Set prepared.
6605
6606 set_virtual_address_map support.
6607
6608 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
6609 prototype.
6610 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
6611 prototype.
6612 (grub_efiemu_crc32): Likewise.
6613 (grub_efiemu_crc64): Likewise.
6614 (grub_efiemu_set_virtual_address_map): Likewise.
6615 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
6616 New definition.
6617 (grub_autoefi_set_virtual_address_map): Likewise.
6618 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
6619 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
6620 Restructure flow to accomodate it.
6621 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
6622 (grub_efiemu_crc): Recompute CRC32.
6623 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
6624 (efiemu_ptv_relocated): ... this. Made global. All users updated.
6625 * efiemu/symbols.c (relocated_handle): New variable.
6626 (grub_efiemu_free_syms): Free relocated_handle.
6627 (grub_efiemu_alloc_syms): Allocate relocated_handle.
6628 (grub_efiemu_write_sym_markers): New function.
6629 (grub_efiemu_set_virtual_address_map): Likewise.
6630
6631 Newer XNU parameters.
6632
6633 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
6634 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
6635 (grub_xnu_fill_devicetree): New prototype.
6636 (grub_xnu_heap_real_start): New variable.
6637 * loader/xnu.c (get_name_ptr): New function.
6638 (grub_xnu_load_driver): Fill namelen and name.
6639
6640 64-bit xnu support.
6641
6642 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
6643 and 'loader/macho64.c'.
6644 * conf/i386-pc.rmk: Likewise.
6645 * conf/x86_64-efi.rmk: Likewise.
6646 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
6647 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
6648 * include/grub/macho.h (grub_macho_segment64): New structure.
6649 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
6650 (grub_macho_size32): ... to this.
6651 (grub_macho32_get_entry_point): Renamed from ...
6652 (grub_macho_get_entry_point32): ... to this.
6653 (grub_macho_contains_macho64): New prototype.
6654 (grub_macho_size64): Likewise.
6655 (grub_macho_get_entry_point64): Likewise.
6656 (grub_macho32_load): Renamed from ...
6657 (grub_macho_load32): ... to this.
6658 (grub_macho32_filesize): Renamed from ...
6659 (grub_macho_filesize32): ... to this.
6660 (grub_macho32_readfile): Renamed from ...
6661 (grub_macho_readfile32): ... to this.
6662 (grub_macho_filesize64): New prototype.
6663 (grub_macho_readfile64): Likewise.
6664 (grub_macho_parse32): Likewise.
6665 (grub_macho_parse64): Likewise.
6666 * loader/macho.c: Split into ...
6667 * loader/machoXX.c: ... and this. Replace 32 with XX.
6668 * loader/macho32.c: New file.
6669 * loader/macho64.c: Likewise.
6670 * loader/xnu.c (grub_xnu_is_64bit): New variable.
6671 (grub_cmd_xnu_kernel): Make 32-bit only.
6672 (grub_cmd_xnu_kernel64): New function.
6673 (grub_xnu_load_driver): Support Mach-O 64.
6674 (grub_cmd_xnu_mkext): Likewise.
6675 * util/grub.d/30_os-prober.in (osx_entry): New function.
6676 Generate entries for 64-bit boot too.
6677
6678 Eliminate ad-hoc tree format in XNU and EfiEmu.
6679
6680 * efiemu/main.c (grub_efiemu_prepare): Update comment.
6681 * efiemu/pnvram.c: Rewritten to use environment variables.
6682 All users updated.
6683
6684 Inline utf16_to_utf8.
6685
6686 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
6687 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
6688 All users updated.
6689 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
6690
6691 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
6692 * commands/usbtest.c (grub_usb_get_string): ... move here.
6693 (usb_print_str): Fix error handling.
6694 * include/grub/usb.h (grub_usb_get_string): Remove.
6695
6696 UTF-8 to UTF-16 transformation.
6697
6698 * conf/common.rmk (pkglib_MODULES): Add charset.mod
6699 (charset_mod_SOURCES): New variable.
6700 (charset_mod_CFLAGS): Likewise.
6701 (charset_mod_LDFLAGS): Likewise.
6702 * include/grub/utf.h: New file.
6703 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
6704
6705 Support for device properties.
6706
6707 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
6708 (grub_xnu_devprop_device_header): Likewise.
6709 (grub_xnu_devprop_device_descriptor): Likewise.
6710 (grub_xnu_devprop_add_device): New prototype.
6711 (grub_xnu_devprop_remove_device): Likewise.
6712 (grub_xnu_devprop_remove_property): Likewise.
6713 (grub_xnu_devprop_add_property_utf8): Likewise.
6714 (grub_xnu_devprop_add_property_utf16): Likewise.
6715 (grub_cpu_xnu_init): Likewise.
6716 (grub_cpu_xnu_fini): Likewise.
6717 (grub_cpu_xnu_unload): Likewise.
6718 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
6719 (property_descriptor): Likewise.
6720 (devices): New variable.
6721 (grub_xnu_devprop_remove_property): New function.
6722 (grub_xnu_devprop_add_device): Likewise.
6723 (grub_xnu_devprop_remove_device): Likewise.
6724 (grub_xnu_devprop_add_property): Likewise.
6725 (grub_xnu_devprop_add_property_utf8): Likewise.
6726 (grub_xnu_devprop_add_property_utf16): Likewise.
6727 (hextoval): Likewise.
6728 (grub_cpu_xnu_fill_devprop): Likewise.
6729 (grub_cmd_devprop_load): Likewise.
6730 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
6731 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
6732 (cmd_devprop_load): New variable.
6733 (grub_cpu_xnu_init): New function.
6734 (grub_cpu_xnu_fini): Likewise.
6735 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
6736 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
6737 (grub_cmd_xnu_devtree): Likewise.
6738 (hextoval): New function.
6739 (unescape): Likewise.
6740 (grub_xnu_fill_devicetree): Likewise.
6741
6742 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
6743 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
6744
6745 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6746
6747 Workaround for broken ATI VBE.
6748
6749 * video/i386/pc/vbe.c (last_set_mode): New variable.
6750 (grub_vbe_set_video_mode): Set 'last_set_mode'.
6751 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
6752 (grub_video_vbe_setup): Don't check for reserved flag.
6753
6754 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
6755
6756 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
6757 the `find' command.
6758
6759 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
6760
6761 UUID support for HFS.
6762
6763 * fs/hfs.c (grub_hfs_uuid): New function.
6764 (grub_hfs_fs): New value .uuid.
6765 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
6766
6767 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
6768
6769 Fix a segfault with parsing unknown long options.
6770
6771 * util/grub-mkrelpath.c (options): Zero terminate it.
6772
6773 2009-12-13 Carles Pina i Estany <carles@pina.cat>
6774
6775 * include/grub/misc.h (grub_puts): New declaration.
6776 (grub_puts_): Likewise.
6777 * kern/misc.c (grub_puts): New definition.
6778 (grub_puts_): Likewise.
6779
6780 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6781
6782 * util/grub-probe.c (probe): Improve error message.
6783
6784 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6785
6786 * loader/i386/multiboot_elfxx.c
6787 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
6788 initialization.
6789
6790 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6791
6792 Relocator framework
6793
6794 * loader/i386/xnu_helper.S: Removed. All users updated.
6795 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
6796 (relocator_mod_SOURCES): New variable.
6797 (relocator_mod_CFLAGS): Likewise.
6798 (relocator_mod_LDFLAGS): Likewise.
6799 (relocator_mod_ASFLAGS): Likewise.
6800 * conf/x86_64.rmk: Likewise.
6801 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
6802 (grub_multiboot_payload_entry_offset): Likewise.
6803 (grub_multiboot_forward_relocator): Likewise.
6804 (grub_multiboot_forward_relocator_end): Likewise.
6805 (grub_multiboot_backward_relocator): Likewise.
6806 (grub_multiboot_backward_relocator_end): Likewise.
6807 (grub_multiboot_payload_eip): New variable.
6808 (grub_multiboot_payload_orig): Likewise.
6809 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
6810 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
6811 * include/grub/i386/memory.h
6812 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
6813 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
6814 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
6815 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
6816 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
6817 * include/grub/i386/relocator.h: New file.
6818 * include/grub/x86_64/relocator.h: Likewise.
6819 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
6820 (XNU_RELOCATOR): New macro.
6821 (grub_xnu_launcher_start): Remove.
6822 (grub_xnu_launcher_end): Likewise.
6823 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
6824 (grub_xnu_heap_real_start): Remove.
6825 (grub_xnu_heap_start): Change to void *. All users updated.
6826 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
6827 * lib/i386/relocator.c: New file.
6828 * lib/i386/relocator_asm.S: Likewise.
6829 * lib/i386/relocator_backward.S: Likewise.
6830 * lib/mips/relocator.c: Likewise.
6831 * lib/mips/relocator_asm.S: Likewise.
6832 * lib/relocator.c: Likewise.
6833 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
6834 (entry): Removed.
6835 (playground): Likewise.
6836 (grub_multiboot_payload_orig): New variable.
6837 (grub_multiboot_payload_dest): Likewise.
6838 (grub_multiboot_payload_size): Likewise.
6839 (grub_multiboot_payload_eip): Likewise.
6840 (grub_multiboot_payload_esp): Likewise.
6841 (grub_multiboot_boot): Use grub_relocator32_boot.
6842 (grub_multiboot_unload): Free relocators.
6843 (grub_multiboot): Setup stack. Use relocators.
6844 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
6845 (grub_multiboot_load_elfXX): Use relocators.
6846 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
6847 (grub_multiboot_payload_size): Likewise.
6848 (grub_multiboot_payload_dest): Likewise.
6849 (grub_multiboot_payload_entry_offset): Likewise.
6850 (grub_multiboot_forward_relocator): Likewise.
6851 (grub_multiboot_backward_relocator): Likewise.
6852 (grub_multiboot_real_boot): Likewise.
6853 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
6854 (grub_xnu_entry_point): Likewise.
6855 (grub_xnu_arg1): Likewise.
6856 (grub_xnu_stack): Likewise.
6857 (grub_xnu_launch): Removed.
6858 (grub_xnu_boot_resume): New function.
6859 (grub_xnu_boot): Use relocators.
6860 * loader/i386/xnu_helper.S: Removed.
6861 * loader/xnu.c (grub_xnu_heap_start): New variable.
6862 (grub_xnu_heap_size): Likewise.
6863 (grub_xnu_heap_malloc): Use relocators.
6864 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
6865
6866 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6867
6868 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
6869 anything.
6870
6871 2009-12-13 Carles Pina i Estany <carles@pina.cat>
6872
6873 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
6874 GRUB_ERR_NONE before calling grub_env_set.
6875
6876 2009-12-12 Robert Millan <rmh@aybabtu.com>
6877
6878 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
6879 * genmk.rb (video): New variable.
6880 (CLEANFILES, VIDEOFILES): Add #{video}.
6881 (#{video}): New target rule.
6882 * genvideolist.sh: New file.
6883 * Makefile.in (pkglib_DATA): Add video.lst.
6884 (video.lst): New target rule.
6885 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
6886 `video.lst'.
6887 * util/grub.d/30_os-prober.in: Replace `vbe' with
6888 ${GRUB_VIDEO_BACKEND}.
6889
6890 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
6891
6892 * THANKS: Add David Miller.
6893
6894 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
6895
6896 libpciaccess support.
6897
6898 * Makefile.in (LIBPCIACCESS): New variable.
6899 (enable_grub_emu_pci): Likewise.
6900 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
6901 util/pci.c and commands/lspci.c.
6902 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
6903 * configure.ac (grub-emu-pci): New option.
6904 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
6905 (grub_pci_device_unmap_range): Likewise.
6906 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
6907 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
6908 (grub_pci_address_t) [!GRUB_UTIL]: New type.
6909 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
6910 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
6911 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
6912 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
6913 * include/grub/pciutils.h: New file.
6914 * util/pci.c: Likewise.
6915
6916 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
6917
6918 * util/misc.c: Don't include <errno.h> twice.
6919
6920 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
6921
6922 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
6923 name in an error message.
6924 (grub_biosdisk_rw): Likewise.
6925
6926 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6927
6928 Eliminate NTFS 4Gib barrier.
6929
6930 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
6931 (read_run_data): Likewise.
6932 (grub_ntfs_read_run_list): Likewise.
6933 (grub_ntfs_read_block): Likewise.
6934 (grub_ntfs_iterate_dir): Likewise.
6935 (read_mft): Likewise.
6936 (read_data): Likewise.
6937 Use COM_LOG_LEN.
6938 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
6939 to avoid 64-bit division
6940 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
6941 (grub_ntfs_rlst): Use grub_disk_addr_t.
6942
6943 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6944
6945 Eliminate grub-fstest 4Gib barrier.
6946
6947 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
6948 (read_file): Fix error reporting.
6949
6950 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6951
6952 Eliminate hexdump 4Gib barrier.
6953
6954 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
6955 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
6956
6957 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6958
6959 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
6960 Fixes amarsh bug.
6961
6962 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
6963
6964 Remove miscellaneous files in distclean target.
6965
6966 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
6967
6968 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
6969
6970 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
6971 if they're already set. This resolves the conflict between my
6972 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
6973 fixing the --grub-probe option again.
6974 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
6975 change on 2009-10-06, so that we now once again source
6976 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
6977
6978 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
6979
6980 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
6981 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
6982 `util/devicemap.c'.
6983
6984 2009-12-08 Carles Pina i Estany <carles@pina.cat>
6985
6986 * include/grub/misc.h (grub_printf_): New declaration.
6987 * kern/misc.c (grub_printf_): New definition.
6988 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
6989 instead of `grub_printf' and `_'.
6990 * normal/menu_entry.c (store_completion): Likewise.
6991 (run): Likewise.
6992 (grub_menu_entry_run): Likewise.
6993 * normal/menu_text.c (grub_wait_after_message): Likewise.
6994 (notify_booting): Likewise.
6995 (notify_fallback): Likewise.
6996 (notify_execution_failure): Likewise.
6997
6998 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
6999
7000 * configure.ac: Check for vasprintf.
7001 * util/misc.c (asprintf): Move allocation from here ...
7002 (vasprintf): ... to here. New function.
7003 (xasprintf): New function.
7004 * include/grub/util/misc.h (vasprintf, xasprintf): Add
7005 prototypes.
7006 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
7007 * util/grub-mkfont.c (write_font): Likewise.
7008 * util/grub-probe.c (probe): Likewise.
7009 * util/hostdisk.c (make_device_name): Likewise.
7010
7011 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
7012
7013 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
7014 anything even prefixed with 'cdrom' as a cdrom.
7015
7016 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
7017
7018 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
7019 mount points.
7020
7021 2009-12-05 Carles Pina i Estany <carles@pina.cat>
7022
7023 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
7024 grub_gettext_msg_list.
7025 (grub_gettext_gettranslation_from_position): Return const char *
7026 and not char *.
7027 (grub_gettext_translate): Add the translated strings into a list,
7028 returns from the list if existing there.
7029 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
7030 (grub_gettext_delete_list): Delete the list.
7031 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
7032 lang environment variable is changed.
7033 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
7034
7035 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
7036
7037 Rename kernel.mod to kernel.img.
7038
7039 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
7040 (kernel_mod_EXPORTS): Rename to ...
7041 (kernel_img_EXPORTS): ... this.
7042 (kernel_mod_SOURCES): Rename to ...
7043 (kernel_img_SOURCES): ... this.
7044 (kernel_mod_HEADERS): Rename to ...
7045 (kernel_img_HEADERS): ... this. All users updated.
7046 (kernel_mod_CFLAGS): Rename to ...
7047 (kernel_img_CFLAGS): ... this.
7048 (kernel_mod_ASFLAGS): Rename to ...
7049 (kernel_img_ASFLAGS): ... this.
7050 (kernel_mod_LDFLAGS): Rename to ...
7051 (kernel_img_LDFLAGS): ... this.
7052 * conf/x86_64-efi.rmk: Likewise.
7053 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
7054 (read_kernel_image): ... this. All users updated.
7055 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
7056
7057 2009-12-05 Carles Pina i Estany <carles@pina.cat>
7058
7059 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
7060 (print_spaces): New function.
7061 (grub_print_ucs4): New function.
7062 (getstringwidth): New function.
7063 (print_message_indented): New function.
7064 (print_message): Gettexttize strings using print_message_indented.
7065 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
7066 width.
7067 (get_entry_number): Gettextize and uses dynamic terminal width.
7068 (notify_booting, notify_fallback, notify_execution_failure):
7069 Gettextize.
7070 * normal/menu_entry.c (store_completion): Cleanup the gettextized
7071 string.
7072 (run): Likewise.
7073 (grub_menu_entry_run): Likewise.
7074 * PO/POTFILES: Add normal/menu_entry.c.
7075
7076 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
7077
7078 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
7079
7080 2009-12-05 Carles Pina i Estany <carles@pina.cat>
7081
7082 * util/grub-install.in: Install gettext .mo files.
7083 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
7084
7085 2009-12-05 Carles Pina i Estany <carles@pina.cat>
7086
7087 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
7088 grub_dprintf.
7089
7090 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
7091
7092 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
7093 non-firmware-dependant one in realmode.S takes precedence.
7094
7095 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
7096
7097 * commands/halt.c: Replace misc arch-specific headers with
7098 `<grub/misc.h>'.
7099 * commands/reboot.c: Likewise.
7100 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
7101 `<grub/misc.h>'.
7102 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
7103 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
7104 (kernel_img_SOURCES): ... to here.
7105
7106 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
7107 * include/grub/i386/pc/init.h: Likewise.
7108 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
7109 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
7110
7111 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
7112
7113 * include/grub/i386/halt.h: Remove.
7114 * include/grub/i386/reboot.h: Likewise.
7115
7116 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
7117
7118 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
7119
7120 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
7121 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
7122 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
7123 "progname.h"
7124 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
7125 * util/sparc64/ieee1275/grub-setup.c: Likewise.
7126 (usage): Add missing comma in printf.
7127
7128 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
7129
7130 Use the same reboot approach on i386 coreboot and qemu as we do on
7131 BIOS.
7132
7133 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
7134 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
7135 * kern/i386/reboot.c: Remove.
7136 * include/grub/i386/reboot.h (grub_reboot): Export function.
7137 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
7138 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
7139 0xf000:0xfff0 instead of 0xffff:0x0000.
7140 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
7141 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
7142
7143 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
7144
7145 Fix $srcdir != $objdir build.
7146
7147 * Makefile.in (po/%.po): Rewrite as ...
7148 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
7149
7150 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
7151
7152 Fix GNU/Hurd grub-install crash.
7153 * util/grub-probe.c (probe): Try to access `path' only when it is not
7154 NULL.
7155
7156 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
7157
7158 Correct module naming.
7159
7160 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
7161 (GRUB_MOD_INIT(efi_uga)): ... to this
7162 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
7163 (GRUB_MOD_FINI(efi_uga)): ... to this
7164 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
7165 (GRUB_MOD_INIT(efi_gop)): ... to this
7166 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
7167 (GRUB_MOD_FINI(efi_gop)): ... to this
7168
7169 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
7170
7171 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
7172 translatable.
7173 (usage): Translate `arg' strings using gettext().
7174 Thanks to Jordi Mallach for the suggestion.
7175
7176 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
7177
7178 GOP support. Based on patch from Bean
7179 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
7180
7181 * video/efi_gop.c: New file.
7182 * include/grub/efi/graphics_output.h: Likewise.
7183 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
7184 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
7185 variables.
7186 * conf/x86_64-efi.rmk: Likewise.
7187
7188 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
7189
7190 Rename efi_fb to efi_uga.
7191
7192 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
7193 'efi_uga.mod'.
7194 (efi_fb_mod_SOURCES): Rename this ...
7195 (efi_uga_mod_SOURCES): ... to this.
7196 (efi_fb_mod_CFLAGS): Rename this ...
7197 (efi_uga_mod_CFLAGS): ... to this.
7198 (efi_fb_mod_LDFLAGS): Rename this ...
7199 (efi_uga_mod_LDFLAGS): ... to this.
7200 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
7201 'efi_uga.mod'.
7202 (efi_fb_mod_SOURCES): Rename this ...
7203 (efi_uga_mod_SOURCES): ... to this.
7204 (efi_fb_mod_CFLAGS): Rename this ...
7205 (efi_uga_mod_CFLAGS): ... to this.
7206 (efi_fb_mod_LDFLAGS): Rename this ...
7207 (efi_uga_mod_LDFLAGS): ... to this.
7208 * video/efi_fb.c: Move this ...
7209 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
7210
7211 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
7212
7213 * po/README: New file. Explain our PO file workflow.
7214
7215 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
7216
7217 * po/ChangeLog: Remove. Move relevant entries back to ...
7218 * ChangeLog: ... here.
7219 * po/ca.po: Remove (now handled by TLP).
7220 * po/id.po: Likewise.
7221 * po/zh_CN.po: Likewise.
7222 * Makefile.in (LINGUAS): Initialize in a way that supports
7223 empty set.
7224
7225 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
7226
7227 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
7228 reliing on po/LINGUAS.
7229 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
7230 (po/%.po): ... this.
7231
7232 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
7233
7234 * util/i386/efi/grub-mkimage.c: Include "progname.h".
7235 (main): Use `program_name' instead of nonexistent `progname'.
7236
7237 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
7238
7239 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7240 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
7241
7242 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
7243
7244 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
7245 commit.
7246 * conf/i386-efi.rmk: Likewise.
7247 * conf/i386-ieee1275.rmk: Likewise.
7248 * conf/powerpc-ieee1275.rmk: Likewise.
7249 * conf/sparc64-ieee1275.rmk: Likewise.
7250 * conf/x86_64-efi.rmk: Likewise.
7251
7252 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
7253
7254 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
7255
7256 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
7257
7258 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
7259
7260 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
7261
7262 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
7263 (grub_mkdevicemap_SOURCES): New variable.
7264 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
7265 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
7266 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
7267 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
7268 (grub_mkdevicemap_SOURCES): Remove.
7269 * conf/i386-efi.rmk: Likewise.
7270 * conf/i386-ieee1275.rmk: Likewise.
7271 * conf/i386-pc.rmk: Likewise.
7272 * conf/powerpc-ieee1275.rmk: Likewise.
7273 * conf/sparc64-ieee1275.rmk: Likewise.
7274 * conf/x86_64-efi.rmk: Likewise.
7275 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
7276 (usage): Fix strings to use `program_name'.
7277 (main): Initialize gettext.
7278 * util/grub-editenv.c: Likewise.
7279 * util/grub-emu.c: Likewise.
7280 * util/grub-fstest.c: Likewise.
7281 * util/grub-mkdevicemap.c: Likewise.
7282 * util/grub-mkfont.c: Likewise.
7283 * util/grub-mkrelpath.c: Likewise.
7284 * util/grub-pe2elf.c: Likewise.
7285 * util/grub-probe.c: Likewise.
7286 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
7287 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
7288 * util/sparc64/ieee1275/grub-setup.c: Likewise.
7289
7290 * util/misc.c: Include `"progname.h"'.
7291 (progname): Remove variable.
7292 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
7293
7294 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
7295
7296 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
7297 printf and print a newline after the menuentry header line.
7298 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
7299
7300 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
7301
7302 autoconf >= 2.60 support $(localedir).
7303
7304 * INSTALL: Note that autoconf 2.60 is required.
7305 * configure.ac (AC_PREREQ): Bump to 2.60.
7306 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
7307 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
7308
7309 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
7310
7311 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
7312 aclocal is run.
7313
7314 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
7315
7316 * normal/main.c (grub_normal_read_line): Fix off-by-one
7317 buffer overflow.
7318
7319 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
7320
7321 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
7322 "parser.grub" in grub_command_execute() call.
7323
7324 2009-11-24 Carles Pina i Estany <carles@pina.cat>
7325
7326 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
7327 * conf/i386-efi.rmk: Likewise.
7328 * conf/i386-ieee1275.rmk: Likewise.
7329 * conf/i386-pc.rmk: Likewise.
7330 * conf/powerpc-ieee1275.rmk: Likewise.
7331 * conf/sparc64-ieee1275.rmk: Likewise.
7332 * conf/x86_64-efi.rmk: Likewise.
7333 * gettext/gettex.c: Include <grub/i18n.h>.
7334 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
7335 here ...
7336 * include/grub/i18n.h: ... to here
7337 * include/grub/i18n.h: ... to here.
7338 * kern/misc.c: Include <grub/i18n.h>
7339 (grub_gettext_dummy): Move above user.
7340
7341 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7342
7343 * util/Makefile.in (install-local): Convert a `for' into a normal
7344 shell expansion.
7345
7346 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
7347
7348 * autogen.sh: Add automake call.
7349 * config.guess: Remove.
7350 * config.sub: Likewise.
7351 * install-sh: Likewise.
7352
7353 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7354
7355 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
7356
7357 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7358
7359 * util/Makefile.in (install-local): Convert a make `$(foreach)'
7360 function to a normal shell `for'.
7361
7362 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7363
7364 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7365
7366 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7367
7368 * util/grub-mkrelpath.c: New file.
7369 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
7370 (grub_mkrelpath_SOURCES): New variable.
7371 * include/grub/util/misc.h: New function prototype.
7372 * util/misc.c (make_system_path_relative_to_its_root): New function.
7373
7374 * util/grub-mkconfig_lib.in (bindir): New variable.
7375 (grub_mkrelpath): Likewise.
7376 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
7377
7378 * util/probe.c (probe): Make the file path relative to its root.
7379 Change a info message to use the GRUB path. Enable again the
7380 check if we can read the file with GRUB facilities.
7381
7382 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
7383 to its root.
7384
7385 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7386
7387 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
7388 platform.
7389
7390 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7391
7392 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
7393 strncmp().
7394
7395 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7396
7397 * util/getroot.c (grub_util_is_dmraid): New function.
7398 (grub_util_get_dev_abstraction): Treat dmraid and multipath
7399 devices as normal ones, not as LVM.
7400
7401 2009-11-23 Carles Pina i Estany <carles@pina.cat>
7402
7403 * conf/common.rmk: Add grub-gettext_lib target and updates
7404 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
7405 LDFLAGS.
7406 * gettext/gettext.c: New file. (Reads mo files).
7407 * include/grub/file.h (grub_file_pread): New prototype.
7408 * include/grub/i18n.h (_): New prototype.
7409 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
7410 prototypes.
7411 * kern/misc.c (grub_gettext_dummy): New function.
7412 * normal/menu_text.c: Include <grub/i18n.h>.
7413 * normal/menu_text.c (print_timeout): Gettexttize string.
7414 * normal/menu_text.c (print_message): Gettexttize string.
7415 * po/POTFILES: Add `normal/menu_text.c'.
7416 * po/ca.po: Add new translations.
7417 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
7418 gettext module and defines locale_dir and lang in grub.cfg.
7419 * NEWS: Add gettext support.
7420
7421 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7422
7423 * util/hostdisk.c: Include `<grub/i18n.h>'.
7424 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
7425 (make_device_name): Rewrite using asprintf.
7426 (convert_system_partition_to_system_disk): Replace 0 with NULL.
7427 (find_system_device): If a device is not found, generate one just
7428 by reusing the OS path name.
7429 (read_device_map): Make it permissible for device.map not to exist.
7430
7431 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7432
7433 * script/sh/execute.c: Move from here ...
7434 * script/execute.c: ... to here. Update all users.
7435 * script/sh/function.c: Move from here ...
7436 * script/function.c: ... to here. Update all users.
7437 * script/sh/lexer.c: Move from here ...
7438 * script/lexer.c: ... to here. Update all users.
7439 * script/sh/main.c: Move from here ...
7440 * script/main.c: ... to here. Update all users.
7441 * script/sh/parser.y: Move from here ...
7442 * script/parser.y: ... to here. Update all users.
7443 * script/sh/script.c: Move from here ...
7444 * script/script.c: ... to here. Update all users.
7445
7446 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7447
7448 * configure.ac: Detect all `emu' platforms. Define
7449 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
7450 --enable-grub-emu logic. Disable include/grub/machine
7451 symlink on `emu' platforms.
7452
7453 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
7454 * gensymlist.sh.in: Likewise.
7455
7456 * include/grub/i386/coreboot/machine.h: Remove file.
7457 * include/grub/i386/efi/machine.h: Likewise.
7458 * include/grub/i386/ieee1275/machine.h: Likewise.
7459 * include/grub/i386/pc/machine.h: Likewise.
7460 * include/grub/i386/qemu/machine.h: Likewise.
7461 * include/grub/powerpc/ieee1275/machine.h: Likewise.
7462 * include/grub/sparc64/ieee1275/machine.h: Likewise.
7463 * include/grub/x86_64/efi/machine.h: Likewise.
7464
7465 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
7466 * commands/halt.c: Likewise.
7467 * commands/reboot.c: Likewise.
7468 * include/grub/autoefi.h: Likewise.
7469 * include/grub/i386/at_keyboard.h: Likewise.
7470 * include/grub/i386/kernel.h: Likewise.
7471 * include/grub/i386/loader.h: Likewise.
7472 * include/grub/i386/pc/memory.h: Likewise.
7473 * kern/dl.c: Likewise.
7474 * kern/i386/coreboot/init.c: Likewise.
7475 * loader/i386/bsd.c: Likewise.
7476 * loader/i386/linux.c: Likewise.
7477 * loader/multiboot_loader.c: Likewise.
7478 * term/i386/pc/serial.c: Likewise.
7479 * term/usb_keyboard.c: Likewise.
7480
7481 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
7482 `<grub/machine/machine.h>'
7483 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
7484 * util/misc.c: Remove `<grub/machine/machine.h>' and
7485 `<grub/machine/time.h>'.
7486
7487 * Makefile.in (enable_grub_emu): Remove variable.
7488 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
7489
7490 * conf/any-emu.rmk: New file.
7491 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
7492 (grub_emu_init.c): Move from here ...
7493 * conf/any-emu.rmk: ... to here.
7494
7495 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
7496 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
7497 * conf/any-emu.rmk: ... to here.
7498
7499 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7500
7501 * include/grub/parser.h (grub_parser_register): Document need
7502 of `name' parameter.
7503 * normal/main.c (grub_normal_read_line): Simplify prompt string.
7504 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
7505 "sh" to "grub".
7506
7507 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7508
7509 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
7510 `$(XGETTEXT)'.
7511 * include/grub/i18n.h (N_): New macro.
7512 * util/mkisofs/mkisofs.h: Likewise.
7513 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
7514 around N_().
7515 (usage): Use gettext() to translate help strings when printing them.
7516
7517 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7518
7519 Based on patch from Bean
7520 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
7521
7522 * video/efi_fb.c: New file.
7523 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
7524 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
7525 variables.
7526 * conf/x86_64-efi.rmk: Likewise.
7527
7528 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
7529
7530 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
7531 * util/i386/pc/grub-setup.c: Likewise.
7532
7533 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
7534
7535 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
7536 <hurd/fs.h>
7537 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
7538 file_get_storage_info to implement grub_guess_root_device.
7539
7540 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
7541
7542 * Makefile.in (target): Use make's builtin $(shell) function
7543 instead of calling directly $(SHELL) to create the locale directories,
7544 inside the $(foreach) function.
7545
7546 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
7547
7548 * util/grub-mkrescue.in: Print an error and usage if output option
7549 has not been given.
7550
7551 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
7552
7553 Patch from Loïc Minier <loic.minier@ubuntu.com>.
7554 * util/grub.d/30_os-prober.in: Cope with Linux entries where
7555 root and /boot are on different devices.
7556
7557 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7558
7559 Fix build for srcdir != objdir.
7560
7561 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
7562 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
7563 $(srcdir).
7564 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
7565 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
7566 reference for input.
7567
7568 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7569
7570 * util/grub-mkrescue.in: Use source directory direcly (without copiing
7571 or hardlinking it). Remove -J option, Joliet is not compatible with
7572 multiple source directories.
7573
7574 2009-11-21 Carles Pina i Estany <carles@pina.cat>
7575 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7576
7577 * util/grub-mkrescue.in: Recognize `--override-directory' option.
7578 (process_input_dir): New function. Process an arbitrary input
7579 directory.
7580 Misc adjustments to support both "override mode" and system-wide mode.
7581
7582 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
7583
7584 * configure.ac (UNIFONT_BDF): Rename to ...
7585 (FONT_SOURCE): ... this. Update all users.
7586
7587 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
7588
7589 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
7590 to the list of unifont files to look for.
7591
7592 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7593
7594 Patch from Joe Auricchio <jauricchio@gmail.com>
7595 * commands/minicmd.c (grub_mini_cmd_clear): New function.
7596 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
7597 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
7598
7599 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
7600
7601 * Makefile.in (install-local): Add a missing backslash.
7602
7603 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
7604
7605 * include/grub/x86_64/io.h: New file.
7606
7607 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7608
7609 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
7610 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
7611 Include `"progname.h"'.
7612 (main): Initialize gettext.
7613 * util/i386/pc/grub-setup.c: Gettexttize.
7614 * util/i386/pc/grub-mkimage.c: Likewise.
7615
7616 * Makefile.in (po/*.po): Redefine as ...
7617 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
7618
7619 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
7620
7621 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7622
7623 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
7624 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
7625 (program_name): Remove.
7626 (main): Initialize gettext support.
7627 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
7628 Include `<libintl.h>'.
7629 (_): New macro.
7630
7631 * util/mkisofs/eltorito.c: Gettexttize.
7632 * util/mkisofs/joliet.c: Likewise.
7633 * util/mkisofs/mkisofs.c: Likewise.
7634 * util/mkisofs/multi.c: Likewise.
7635 * util/mkisofs/rock.c: Likewise.
7636 * util/mkisofs/tree.c: Likewise.
7637 * util/mkisofs/write.c: Likewise.
7638
7639 * po/POTFILES: Update with new files.
7640
7641 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7642
7643 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
7644 * util/mkisofs/iso9660.h: Likewise.
7645 * util/mkisofs/joliet.c: Likewise.
7646 * util/mkisofs/mkisofs.c: Likewise.
7647 * util/mkisofs/mkisofs.h: Likewise.
7648 * util/mkisofs/rock.c: Likewise.
7649 * util/mkisofs/tree.c: Likewise.
7650 * util/mkisofs/write.c: Likewise.
7651
7652 * util/mkisofs/eltorito.c (rcsid): Remove.
7653 * util/mkisofs/hash.c: Likewise.
7654 * util/mkisofs/joliet.c: Likewise.
7655 * util/mkisofs/name.c: Likewise.
7656 * util/mkisofs/rock.c: Likewise.
7657 * util/mkisofs/tree.c: Likewise.
7658 * util/mkisofs/write.c: Likewise.
7659
7660 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7661
7662 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
7663 instead of static allocation.
7664 * util/mkisofs/match.h: Likewise.
7665
7666 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7667
7668 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
7669 and `util/grub.d/10_linux.in'.
7670 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
7671 translatable Shell files.
7672
7673 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7674
7675 * Makefile.in ($(srcdir)/aclocal.m4): New target.
7676
7677 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7678
7679 * INSTALL: Document Automake is needed for bootstrap.
7680 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
7681 * util/grub.d/10_kfreebsd.in (bindir): New variable.
7682 Add gettext initialization.
7683 (kfreebsd_entry): Make menuentry output translatable.
7684
7685 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7686
7687 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
7688 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
7689 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
7690 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
7691 (LINGUAS): Auto-generate using `po/LINGUAS'.
7692 * po/LINGUAS: New file.
7693
7694 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7695
7696 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
7697 other things).
7698 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
7699 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
7700 bindtextdomain() calls for gettext initialization.
7701
7702 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7703
7704 * gnulib/progname.c: New file (imported from Gnulib).
7705 * gnulib/progname.h: Likewise.
7706 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7707 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
7708 (usage): Replace `progname' with `program_name'.
7709 (main): Use set_program_name() for program name initialization.
7710
7711 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7712
7713 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
7714 from here ...
7715 * Makefile.in (CPPFLAGS): ... to here.
7716
7717 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7718
7719 * aclocal.m4: Move from here ...
7720 * acinclude.m4: ... to here.
7721 * autogen.sh: Add call to `aclocal'.
7722 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
7723
7724 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7725
7726 * Makefile.in (CLEANFILES): Add `po/*.mo'.
7727 (LINGUAS): New variable.
7728 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
7729 (install-local): Install MO files.
7730 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
7731 * include/grub/i18n.h: New file.
7732 * po/POTFILES: New file.
7733 * po/ca.po: New file.
7734 * util/grub.d/10_linux.in (bindir): New variable.
7735 Add gettext initialization.
7736 (linux_entry): Make menuentry output translatable.
7737 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
7738 (usage): Make --help output translatable.
7739 (main): Initialize gettext.
7740
7741 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7742
7743 * import_gcry.py: New file (written by Vladimir with minor
7744 adjustments).
7745 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
7746 ciphers.
7747 * INSTALL: Document that Python is required for bootstrap.
7748
7749 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7750
7751 Import ciphers from libgcrypt 1.4.4.
7752
7753 * lib/libgcrypt/cipher/ChangeLog
7754 * lib/libgcrypt/cipher/ac.c
7755 * lib/libgcrypt/cipher/arcfour.c
7756 * lib/libgcrypt/cipher/bithelp.h
7757 * lib/libgcrypt/cipher/blowfish.c
7758 * lib/libgcrypt/cipher/camellia-glue.c
7759 * lib/libgcrypt/cipher/camellia.c
7760 * lib/libgcrypt/cipher/camellia.h
7761 * lib/libgcrypt/cipher/cast5.c
7762 * lib/libgcrypt/cipher/cipher.c
7763 * lib/libgcrypt/cipher/crc.c
7764 * lib/libgcrypt/cipher/des.c
7765 * lib/libgcrypt/cipher/dsa.c
7766 * lib/libgcrypt/cipher/ecc.c
7767 * lib/libgcrypt/cipher/elgamal.c
7768 * lib/libgcrypt/cipher/hash-common.c
7769 * lib/libgcrypt/cipher/hash-common.h
7770 * lib/libgcrypt/cipher/hmac-tests.c
7771 * lib/libgcrypt/cipher/md.c
7772 * lib/libgcrypt/cipher/md4.c
7773 * lib/libgcrypt/cipher/md5.c
7774 * lib/libgcrypt/cipher/primegen.c
7775 * lib/libgcrypt/cipher/pubkey.c
7776 * lib/libgcrypt/cipher/rfc2268.c
7777 * lib/libgcrypt/cipher/rijndael-tables.h
7778 * lib/libgcrypt/cipher/rijndael.c
7779 * lib/libgcrypt/cipher/rmd.h
7780 * lib/libgcrypt/cipher/rmd160.c
7781 * lib/libgcrypt/cipher/rsa.c
7782 * lib/libgcrypt/cipher/seed.c
7783 * lib/libgcrypt/cipher/serpent.c
7784 * lib/libgcrypt/cipher/sha1.c
7785 * lib/libgcrypt/cipher/sha256.c
7786 * lib/libgcrypt/cipher/sha512.c
7787 * lib/libgcrypt/cipher/tiger.c
7788 * lib/libgcrypt/cipher/twofish.c
7789 * lib/libgcrypt/cipher/whirlpool.c
7790
7791 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7792
7793 Fix build for systems without error().
7794
7795 * gnulib/error.c: New file (imported from Gnulib).
7796 * gnulib/error.h: Likewise.
7797 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
7798 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
7799 (this variable is now used by error()).
7800
7801 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7802
7803 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
7804 instead of relying that char is signed.
7805
7806 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7807
7808 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
7809 blocksize different from specified.
7810 (grub_pxefs_read): Likewise.
7811
7812 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7813
7814 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
7815
7816 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
7817 (grub_ata_readwrite): Likewise. Update 2 format strings.
7818 (grub_atapi_read): Likewise.
7819
7820 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
7821 * conf/i386.rmk (pkglib_MODULES): ... to here ...
7822 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
7823 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
7824 (ata_mod_LDFLAGS): Move from here ...
7825 * conf/i386.rmk: ... to here ...
7826 * conf/x86_64-efi.rmk: ... and here.
7827 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
7828 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
7829
7830 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7831
7832 Relicense multiboot.h, with RMS' blessing.
7833
7834 * include/multiboot.h: Change to X11 license.
7835
7836 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
7837
7838 Support --version in grub-mkisofs.
7839
7840 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
7841 (OPTION_VERSION): New macro.
7842 (ld_options): Recognize --version.
7843 (usage): Move `program_name' from here ...
7844 (program_name): ... to here. Add `static' qualifier.
7845 (main): Recognize `OPTION_VERSION'.
7846
7847 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
7848
7849 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
7850 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
7851
7852 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7853
7854 Fix help2man generation for mkisofs.
7855
7856 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
7857 (usage): Send output to stdout (rather than stderr).
7858
7859 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7860
7861 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
7862 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7863 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
7864 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7865 (bin_SCRIPTS): Add `grub-mkfloppy'.
7866 (grub_mkfloppy_SOURCES): New variable.
7867
7868 * util/grub-mkrescue.in: New file.
7869 * util/i386/pc/grub-mkfloppy.in: New file.
7870
7871 * util/i386/coreboot/grub-mkrescue.in: Remove.
7872 * util/i386/pc/grub-mkrescue.in: Remove.
7873
7874 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7875
7876 * include/grub/multiboot.h (struct grub_multiboot_header): Move
7877 from here ...
7878 * include/multiboot.h (struct multiboot_header): ... to here. Update
7879 all users.
7880 * include/grub/multiboot.h (struct grub_multiboot_info): Move
7881 from here ...
7882 * include/multiboot.h (struct multiboot_info): ... to here. Update
7883 all users.
7884 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
7885 from here ...
7886 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
7887 Update all users.
7888 * include/grub/multiboot.h (struct grub_mod_list): Move
7889 from here ...
7890 * include/multiboot.h (struct multiboot_mod_list): ... to here.
7891 Update all users.
7892
7893 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7894
7895 * include/multiboot2.h (multiboot_word): Rename from this ...
7896 (multiboot2_word): ... to this. Update all users.
7897 (multiboot_header): Rename from this ...
7898 (multiboot2_header): ... to this. Update all users.
7899 (multiboot_tag_header): Rename from this ...
7900 (multiboot2_tag_header): ... to this. Update all users.
7901 (multiboot_tag_start): Rename from this ...
7902 (multiboot2_tag_start): ... to this. Update all users.
7903 (multiboot_tag_name): Rename from this ...
7904 (multiboot2_tag_name): ... to this. Update all users.
7905 (multiboot_tag_module): Rename from this ...
7906 (multiboot2_tag_module): ... to this. Update all users.
7907 (multiboot_tag_memory): Rename from this ...
7908 (multiboot2_tag_memory): ... to this. Update all users.
7909 (multiboot_tag_unused): Rename from this ...
7910 (multiboot2_tag_unused): ... to this. Update all users.
7911 (multiboot_tag_end): Rename from this ...
7912 (multiboot2_tag_end): ... to this. Update all users.
7913
7914 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7915
7916 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
7917 this platform we should support Multiboot1 first.
7918
7919 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
7920 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
7921 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
7922
7923 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7924
7925 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
7926 of write calls (converting them to fwrite() if they aren't already).
7927 (get_torito_desc): Likewise.
7928 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
7929
7930 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7931
7932 * util/i386/pc/grub-install.in: Move from here ...
7933 * util/grub-install.in: ... to here. Update all users.
7934
7935 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
7936
7937 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
7938
7939 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7940
7941 Support for El Torito without floppy emulation.
7942
7943 * util/mkisofs/eltorito.c: Include `<errno.h>'.
7944 (init_boot_catalog): Improve error handling.
7945 (get_torito_desc): Don't use floppy emulation unless requested by
7946 user. Patch boot information table when requested via
7947 `-boot-info-table'.
7948 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
7949 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
7950 (use_boot_info_table): New variables.
7951 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
7952 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
7953 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
7954 `--eltorito-emul-floppy'.
7955 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
7956 and `OPTION_ELTORITO_EMUL_FLOPPY'.
7957 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
7958 (use_boot_info_table, get_731): New prototypes.
7959 * util/mkisofs/write.c (get_731): New function.
7960
7961 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
7962
7963 Fix the generation of the man page.
7964
7965 * util/pc/i386/grub-install.in: Source
7966 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
7967
7968 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7969
7970 Large file support for grub-mkisofs.
7971
7972 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
7973 * util/mkisofs/mkisofs.c (next_extent, last_extent)
7974 (session_start): Upgrade type to `uint64_t'. Update all users.
7975 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
7976 (struct directory_entry): Upgrade type of `starting_block' and
7977 `size' to `uint64_t'. Update all users.
7978 (struct deferred): Remove unused structure.
7979 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
7980 Update all users.
7981 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
7982 file is larger than `UINT32_MAX'.
7983 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
7984 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
7985 return value.
7986 (struct deferred_write): Upgrade type of `extent' and `size' to
7987 `uint64_t'. Update all users.
7988 (last_extent_written): Upgrade type to `uint64_t'. Update all
7989 users.
7990 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
7991 Update all users. Upgrade type of `remain' to `int64_t' and
7992 `use' to `size_t'. Use error() to handle fread() errors.
7993 (write_files): Rely on write_one_file() rather than calling
7994 xfwrite() directly.
7995
7996 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
7997
7998 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
7999
8000 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8001
8002 * util/mkisofs/fnmatch.c: Remove.
8003 * util/mkisofs/getopt1.c: Likewise.
8004 * util/mkisofs/getopt.c: Likewise.
8005 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
8006 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
8007 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
8008 `gnulib/getopt1.c' and `gnulib/getopt.c'.
8009 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
8010
8011 * configure.ac: Detect `mingw32msvc' host_os.
8012 Check for lstat(), getuid() and getgid().
8013
8014 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
8015 instances of `u_char' with `uint8_t'.
8016
8017 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
8018 [!HAVE_GETUID] (getuid): New function (stub).
8019 [!HAVE_GETGID] (getgid): Likewise.
8020 [!HAVE_LSTAT] (lstat): Likewise.
8021 [!S_IROTH] (S_IROTH): New macro (dummy).
8022 [!S_IRGRP] (S_IRGRP): Likewise.
8023
8024 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8025
8026 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
8027 conditional expression).
8028
8029 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8030
8031 Import from Gnulib.
8032
8033 * gnulib/fnmatch.c: New file.
8034 * gnulib/fnmatch.h: Likewise.
8035 * gnulib/fnmatch_loop.c: Likewise.
8036 * gnulib/getopt.c: Likewise.
8037 * gnulib/getopt.h: Likewise.
8038 * gnulib/getopt1.c: Likewise.
8039 * gnulib/getopt_int.h: Likewise.
8040 * gnulib/gettext.h: Likewise.
8041
8042 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8043
8044 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
8045 * normal/handler.c (read_handler_list): Likewise.
8046
8047 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8048
8049 Misc cleanup.
8050
8051 * kern/command.c (grub_register_command_prio): Use
8052 grub_zalloc() instead of explicitly zeroing data.
8053 * kern/list.c: Include `<grub/mm.h>'.
8054 (grub_named_list_find): Replace `0' with `NULL'.
8055 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
8056 (fs_module_list): Change type to `grub_named_list_t'. Update all
8057 users.
8058 * normal/dyncmd.c (read_command_list): Add space between function
8059 call and parenthesis.
8060 * normal/handler.c (read_handler_list): Likewise.
8061
8062 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8063
8064 * normal/auth.c (punishment_delay): Moved from here ...
8065 (grub_auth_strcmp): ... to here (inside function).
8066
8067 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8068
8069 * include/grub/list.h (struct grub_named_list): Remove `const'
8070 qualifier from `name'.
8071 (struct grub_prio_list): Likewise.
8072
8073 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8074
8075 * normal/auth.c: Include `<grub/time.h>'.
8076 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
8077
8078 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8079
8080 * normal/auth.c (punishment_delay): New variable.
8081 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
8082 (grub_auth_check_authentication): Punish failed login attempts with
8083 an incremental (2^N) delay.
8084
8085 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8086
8087 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
8088 path with $(srcdir).
8089
8090 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8091
8092 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
8093
8094 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8095
8096 * util/i386/coreboot/grub-mkrescue.in: New file.
8097 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
8098 variables.
8099
8100 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
8101 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
8102 * configure.ac: Add header and function checks to satisfy grub-mkisofs
8103 requirements.
8104 * util/mkisofs/defaults.h: New file.
8105 * util/mkisofs/eltorito.c: Likewise.
8106 * util/mkisofs/exclude.h: Likewise.
8107 * util/mkisofs/fnmatch.c: Likewise.
8108 * util/mkisofs/getopt.c: Likewise.
8109 * util/mkisofs/getopt1.c: Likewise.
8110 * util/mkisofs/hash.c: Likewise.
8111 * util/mkisofs/include/fctldefs.h: Likewise.
8112 * util/mkisofs/include/mconfig.h: Likewise.
8113 * util/mkisofs/include/prototyp.h: Likewise.
8114 * util/mkisofs/include/statdefs.h: Likewise.
8115 * util/mkisofs/iso9660.h: Likewise.
8116 * util/mkisofs/joliet.c: Likewise.
8117 * util/mkisofs/match.c: Likewise.
8118 * util/mkisofs/match.h: Likewise.
8119 * util/mkisofs/mkisofs.c: Likewise.
8120 * util/mkisofs/mkisofs.h: Likewise.
8121 * util/mkisofs/multi.c: Likewise.
8122 * util/mkisofs/name.c: Likewise.
8123 * util/mkisofs/rock.c: Likewise.
8124 * util/mkisofs/tree.c: Likewise.
8125 * util/mkisofs/write.c: Likewise.
8126
8127 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8128
8129 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
8130 being insecure.
8131
8132 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
8133
8134 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
8135 `grub-mkimage' (and use $0 when possible).
8136
8137 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
8138
8139 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
8140 error message for excessively large memory map.
8141
8142 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
8143
8144 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
8145 executable bit.
8146
8147 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
8148
8149 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
8150 message for coreboot users.
8151
8152 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
8153
8154 Fix build with GNU gold.
8155
8156 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
8157 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
8158 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
8159 link addresses.
8160 * aclocal.m4: Likewise.
8161
8162 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
8163
8164 * configure.ac (AC_PREREQ): Bump to 2.59d.
8165 * INSTALL: Make it more clear when Autoconf and Ruby are
8166 needed and when to run `./autogen.sh'.
8167
8168 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
8169
8170 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
8171 OSes.
8172
8173 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8174
8175 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
8176
8177 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8178
8179 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
8180 giving it to GNU Mach.
8181
8182 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8183
8184 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
8185 GNU partition number to get internal GRUB partition number.
8186
8187 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8188
8189 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
8190 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
8191
8192 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
8193
8194 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
8195 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
8196 case.
8197
8198 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
8199
8200 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
8201
8202 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
8203
8204 Fix build problem.
8205
8206 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
8207 `-isystem=$(srcdir)/include'.
8208
8209 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
8210
8211 * util/i386/pc/grub-install.in: Remove hint that device.map should be
8212 checked (grub-install doesn't currently rely on it).
8213
8214 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
8215
8216 Revert SVN r2660.
8217
8218 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
8219 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
8220 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
8221 * conf/i386-ieee1275.rmk: Likewise.
8222 * conf/i386-pc.rmk: Likewise.
8223 * conf/powerpc-ieee1275.rmk: Likewise.
8224 * conf/sparc64-ieee1275.rmk: Likewise.
8225 * conf/x86_64-efi.rmk: Likewise.
8226
8227 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
8228
8229 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
8230
8231 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
8232
8233 * include/grub/misc.h: Stop checking for APPLE_CC.
8234
8235 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
8236
8237 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
8238 doesn't cause an infinite call loop.
8239
8240 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
8241
8242 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
8243 strings.
8244
8245 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8246
8247 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
8248 variable.
8249 * Makefile.in: Likewise.
8250
8251 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8252
8253 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
8254
8255 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8256
8257 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
8258
8259 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8260
8261 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
8262
8263 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8264
8265 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
8266 from here ...
8267 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
8268
8269 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8270
8271 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
8272 in $(MAKEINFO) invocation. This makes it clear in output that
8273 errors are being ignored.
8274
8275 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8276
8277 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
8278 from here ...
8279 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
8280 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
8281 * conf/i386-ieee1275.rmk: Likewise.
8282 * conf/i386-pc.rmk: Likewise.
8283 * conf/powerpc-ieee1275.rmk: Likewise.
8284 * conf/sparc64-ieee1275.rmk: Likewise.
8285 * conf/x86_64-efi.rmk: Likewise.
8286
8287 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
8288
8289 * util/grub-editenv.c (main): If only a command is given, use
8290 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
8291 (usage): FILENAME is now optional and has a default.
8292
8293 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
8294
8295 Improve grub-mkconfig performance when there are several menu
8296 entries on a single filesystem.
8297
8298 * util/grub.d/10_linux.in (linux_entry): Cache the output of
8299 prepare_grub_to_access_device.
8300 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
8301 * util/grub.d/30_os-prober.in: Likewise.
8302
8303 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8304
8305 * util/grub.d/10_freebsd.in: Remove.
8306 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
8307 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
8308
8309 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8310
8311 * docs/grub.cfg: Fix example usage of *BSD loaders.
8312
8313 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8314
8315 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
8316 grub_util_error() call.
8317
8318 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8319
8320 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
8321 `reserved_first_sector' member.
8322 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
8323 `reserved_first_sector' to 1.
8324 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
8325 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
8326 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
8327 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
8328 filesystems which begin at first sector.
8329 (options): New option --skip-fs-probe.
8330 (main): Handle --skip-fs-probe and pass it to setup().
8331
8332 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8333
8334 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
8335 (memset): Fix function prototype.
8336
8337 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8338 2009-10-25 Vasily Averin <vvs@parallels.com>
8339
8340 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
8341 `dirent.direntlen == 0'.
8342
8343 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8344
8345 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
8346 `cpio'.
8347 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
8348
8349 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8350
8351 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
8352 `__trampoline_setup' and `__ucmpdi2'.
8353 * include/grub/powerpc/libgcc.h: Only export symbols for functions
8354 that libgcc provides.
8355
8356 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8357
8358 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
8359 * include/grub/sparc64/libgcc.h (memset): Likewise.
8360 * include/grub/misc.h (memset, memcmp): New function prototypes.
8361
8362 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8363
8364 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
8365 `cpio'.
8366 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
8367
8368 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8369
8370 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
8371 * docs/grub.cfg: Compensate for recent change in multiboot
8372 loader (since 2009-08-14 it won't pass filename to payload).
8373 * util/grub.d/10_hurd.in: Likewise.
8374
8375 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
8376
8377 * config.guess: Update to latest version from config git
8378 repository.
8379 * config.sub: Likewise.
8380
8381 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
8382
8383 Fix build on sparc64.
8384
8385 * configure.ac: Perform checks for libgcc symbols before
8386 adding `-nostdlib' to LDFLAGS.
8387
8388 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8389
8390 Let user specify OpenBSD root device.
8391
8392 * loader/i386/bsd.c (openbsd_root): New variable.
8393 (openbsd_opts): New option 'root'.
8394 (OPENBSD_ROOT_ARG): New macro.
8395 (grub_openbsd_boot): Use 'openbsd_root'.
8396 (grub_cmd_openbsd): Fill 'openbsd_root'.
8397
8398 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
8399
8400 * NEWS: Misc adjustments.
8401
8402 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8403
8404 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
8405
8406 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
8407
8408 * configure.ac: Bump version to 1.97.
8409
8410 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
8411
8412 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
8413 -mno-3dnow on x86 architectures. Some toolchains enable these
8414 features by default, but they rely on registers that aren't enabled
8415 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
8416
8417 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
8418
8419 Make entry text a bit more readable.
8420
8421 * util/grub.d/10_linux.in: Add `with' before `Linux'.
8422
8423 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8424
8425 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
8426
8427 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8428
8429 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
8430 operations.
8431
8432 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8433
8434 * configure.ac: Add missing dollar.
8435
8436 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8437
8438 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
8439
8440 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
8441 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
8442 exports.
8443 * include/grub/sparc64/libgcc.h: Likewise. Use
8444 preprocessor conditionals.
8445
8446 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
8447
8448 * conf/common.rmk (grub-dumpbios): Remove rule.
8449 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
8450 * util/grub-dumpbios.in: Remove file.
8451
8452 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
8453
8454 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
8455 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
8456
8457 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
8458 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
8459 users.
8460
8461 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
8462 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
8463 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
8464 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
8465 users.
8466
8467 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
8468
8469 * term/tparm.c: Switch to GPLv3.
8470
8471 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
8472
8473 * include/grub/i386/cpuid.h: Add header protection.
8474
8475 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
8476
8477 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
8478
8479 * include/grub/i386/cpuid.h: New file.
8480 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
8481 (has_longmode): Rename to ...
8482 (grub_cpuid_has_longmode): ... this. Update all users. Remove
8483 `static' attribute.
8484 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
8485 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
8486 on a CPU that doesn't implement AMD64 instruction set.
8487
8488 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8489
8490 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
8491 that version.texi is rebuilt on version number changes.
8492
8493 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8494
8495 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
8496 Fixes bug #27602.
8497
8498 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8499
8500 * util/i386/pc/grub-install.in: Source
8501 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
8502 that the --grub-probe option will work.
8503 * util/sparc64/ieee1275/grub-install.in: Likewise.
8504
8505 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
8506
8507 * configure.ac: Bump version to 1.97~beta4.
8508
8509 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
8510
8511 Resync grub-mkdevicemap in x86_64-efi.
8512
8513 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
8514 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
8515 `util/devicemap.c'.
8516
8517 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
8518
8519 * util/grub-editenv.c (create_envblk_file): Write new block with a
8520 .new suffix and then rename it into place, to ensure atomic
8521 creation.
8522
8523 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
8524
8525 Do not automatically install headers.
8526
8527 * Makefile.in (include_DATA): Remove. Update all users.
8528
8529 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
8530
8531 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
8532 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
8533
8534 * util/osdetect.lua: Remove.
8535 * script/lua/lauxlib.c: Likewise.
8536 * script/lua/ldebug.c: Likewise.
8537 * script/lua/grub_main.c: Likewise.
8538 * script/lua/lauxlib.h: Likewise.
8539 * script/lua/ldebug.h: Likewise.
8540 * script/lua/ltablib.c: Likewise.
8541 * script/lua/liolib.c: Likewise.
8542 * script/lua/lstrlib.c: Likewise.
8543 * script/lua/lualib.h: Likewise.
8544 * script/lua/ldo.c: Likewise.
8545 * script/lua/ldump.c: Likewise.
8546 * script/lua/ldo.h: Likewise.
8547 * script/lua/loslib.c: Likewise.
8548 * script/lua/lundump.c: Likewise.
8549 * script/lua/grub_lib.c: Likewise.
8550 * script/lua/ldblib.c: Likewise.
8551 * script/lua/lundump.h: Likewise.
8552 * script/lua/lmem.c: Likewise.
8553 * script/lua/grub_lib.h: Likewise.
8554 * script/lua/lmathlib.c: Likewise.
8555 * script/lua/lstate.c: Likewise.
8556 * script/lua/ltm.c: Likewise.
8557 * script/lua/lvm.c: Likewise.
8558 * script/lua/lmem.h: Likewise.
8559 * script/lua/lstate.h: Likewise.
8560 * script/lua/ltm.h: Likewise.
8561 * script/lua/ltable.c: Likewise.
8562 * script/lua/lvm.h: Likewise.
8563 * script/lua/llex.c: Likewise.
8564 * script/lua/lgc.c: Likewise.
8565 * script/lua/grub_lua.h: Likewise.
8566 * script/lua/loadlib.c: Likewise.
8567 * script/lua/lfunc.c: Likewise.
8568 * script/lua/lopcodes.c: Likewise.
8569 * script/lua/lparser.c: Likewise.
8570 * script/lua/ltable.h: Likewise.
8571 * script/lua/llex.h: Likewise.
8572 * script/lua/lgc.h: Likewise.
8573 * script/lua/lfunc.h: Likewise.
8574 * script/lua/lbaselib.c: Likewise.
8575 * script/lua/lopcodes.h: Likewise.
8576 * script/lua/lparser.h: Likewise.
8577 * script/lua/lzio.c: Likewise.
8578 * script/lua/linit.c: Likewise.
8579 * script/lua/lobject.c: Likewise.
8580 * script/lua/llimits.h: Likewise.
8581 * script/lua/lstring.c: Likewise.
8582 * script/lua/lzio.h: Likewise.
8583 * script/lua/lapi.c: Likewise.
8584 * script/lua/lcode.c: Likewise.
8585 * script/lua/lua.h: Likewise.
8586 * script/lua/lobject.h: Likewise.
8587 * script/lua/lstring.h: Likewise.
8588 * script/lua/lapi.h: Likewise.
8589 * script/lua/lcode.h: Likewise.
8590 * script/lua/luaconf.h: Likewise.
8591
8592 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
8593
8594 * docs/grub.texi (Command-line and menu entry commands): Document
8595 date and echo commands.
8596
8597 2009-09-24 Pavel Roskin <proski@gnu.org>
8598
8599 * include/grub/kernel.h (struct grub_module_header): Remove
8600 `grub_module_header_types'. Make `type' unsigned. Make `size'
8601 32-bit on all platforms.
8602 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
8603 8-bit field. Use grub_host_to_target32() for `size'.
8604 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
8605 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
8606 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
8607
8608 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8609
8610 Fix "lost keypress" bug in at_keyboard.
8611
8612 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
8613 Checks for readyness of input buffer (without flushing it).
8614 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
8615 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
8616
8617 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8618
8619 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
8620 size check within GRUB_MACHINE_PCBIOS section.
8621
8622 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8623
8624 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
8625 return value.
8626 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
8627 KEYBOARD_ISREADY check.
8628 (grub_at_keyboard_checkkey): Rename to ...
8629 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
8630 Remove gratuitous cast.
8631
8632 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
8633
8634 * configure.ac: Call AC_PROG_MKDIR_P.
8635 * Makefile.in (docs/stamp-vti): Create docs directory. Create
8636 version.texi in $(builddir) rather than $(srcdir).
8637 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
8638 to makeinfo's @include search path.
8639
8640 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
8641
8642 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
8643
8644 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
8645
8646 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
8647 for `*.dpkg-new'.
8648
8649 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
8650
8651 Build info documentation. Some code borrowed from Automake.
8652
8653 * configure.ac: Check for makeinfo.
8654 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
8655 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
8656 docs/version.texi.
8657 (MOSTLYCLEANFILES): Add vti.tmp.
8658 (docs/version.texi, docs/stamp-vti): Update automatically.
8659 (docs/grub.info): Build info documentation. Use --force and ignore
8660 errors for now.
8661 (all-local): Add $(INFOS).
8662 (install-local): Install info files.
8663 (uninstall): Uninstall info files.
8664 * docs/version.texi: Remove from revision control. This file is
8665 automatically generated on build now.
8666 * gendistlist.sh: Add `*.info'.
8667
8668 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
8669
8670 * kern/term.c: Fix indentation.
8671
8672 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
8673
8674 * util/hostdisk.c: Fix a comment.
8675
8676 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
8677
8678 Fix regression introduced in r2539.
8679
8680 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
8681 to 0xA1.
8682
8683 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
8684
8685 * util/grub.d/30_os-prober.in: Don't throw away stderr from
8686 os-prober. Under normal operation, it does not print anything to
8687 stderr; if it does, we need to debug it, and throwing away stderr
8688 makes that excessively difficult.
8689
8690 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
8691
8692 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
8693
8694 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8695
8696 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
8697 AC_LANG_PROGRAM from autoconf.
8698 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
8699 prototypes (fixes warning).
8700
8701 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
8702 `--disable-werror' was used.
8703
8704 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8705
8706 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
8707 uninitialized `lastaddr'.
8708
8709 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8710
8711 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
8712
8713 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8714
8715 * commands/test.c (get_fileinfo): Return immediately if
8716 grub_fs_probe fails.
8717
8718 2009-09-14 José Martínez <xosemp@gmail.com>
8719
8720 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
8721
8722 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8723
8724 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
8725 output.
8726
8727 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
8728
8729 * configure.ac: Remove --enable-grub-pe2elf. Only build
8730 grub-pe2elf when needed by the build system itself.
8731 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
8732
8733 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8734
8735 * configure.ac: Bump version to 1.97~beta3.
8736 * docs/version.texi: Likewise.
8737
8738 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8739
8740 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
8741 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
8742 from here ...
8743 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
8744 (grub_linux_setup_video): ... to here (with some adjustments).
8745
8746 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8747
8748 Fix memory corruption issue (spotted by Colin Watson).
8749
8750 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
8751 causing returned size to be stored in an incorrect memory location.
8752 Fix use of uninitialized value when storing the returned size.
8753
8754 2009-09-12 Yves Blusseau <blusseau@zetam.org>
8755
8756 Change clean rules to properly remove files
8757
8758 * genmk.rb: add new clean rules
8759 * Makefile.in (clean): add the new targets
8760 (mostlyclean): likewise
8761
8762 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8763
8764 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
8765 to grub_uint64_t.
8766 * fs/ntfs.c (init_file): Understand 64-bit sizes for
8767 non-resident files.
8768
8769 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8770
8771 * configure.ac: Don't look for help2man when cross-compiling. Fixes
8772 part of bug #27349.
8773
8774 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8775
8776 * util/grub-mkconfig.in: Make the created config mode 400 and
8777 print a warning if it fails.
8778
8779 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
8780
8781 * util/grub.d/40_custom.in: Ask user to type custom entries below
8782 comment, rather than below 'exec tail' line.
8783
8784 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8785
8786 * util/grub.d/40_custom.in: Make sure that the explanatory text is
8787 visible in grub.cfg.
8788
8789 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8790
8791 * util/grub.d/40_custom.in: Make it a little clearer how to use this
8792 file.
8793
8794 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8795
8796 * docs/grub.cfg: Add an example menu entry for memtest86+.
8797
8798 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
8799
8800 * config.guess: Update to latest version from config git.
8801 * config.sub: Likewise.
8802
8803 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
8804
8805 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
8806 unknown-command case. Fixes bug #27320.
8807
8808 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
8809
8810 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
8811 `help' if the command exists.
8812
8813 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
8814
8815 * INSTALL: Require GCC 4.1.3 or later.
8816
8817 2009-09-06 Yves Blusseau <blusseau@zetam.org>
8818
8819 * Makefile.in (RMKFILES): add i386-qemu.rmk
8820 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
8821 $(srcdir)/stamp-h.in
8822
8823 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
8824
8825 * util/grub-probe.c (probe): Comment out buggy codepath, which
8826 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
8827 should be re-enabled after 1.97.
8828
8829 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
8830
8831 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
8832 find searches for.
8833
8834 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
8835
8836 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
8837 unnecessary calls to grub_error.
8838
8839 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
8840
8841 * NEWS: Mention `keystatus' and Unicode fonts.
8842
8843 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
8844
8845 * configure.ac: Bump version to 1.97~beta2.
8846 * docs/version.texi: Likewise.
8847
8848 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
8849
8850 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
8851 containing unwind information in some cases where it previously did
8852 not. Use -fno-dwarf2-cfi-asm if available to restore the old
8853 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
8854 discussion.
8855
8856 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
8857
8858 Embedding loadenv module into grub-emu
8859
8860 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
8861 commands/loadenv.c
8862 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
8863 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
8864 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
8865 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
8866 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
8867 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
8868
8869 2009-09-03 Magnus Granberg <zorry@ume.nu>
8870
8871 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
8872 include -fPIE in the default specs.
8873 * configure.ac: Check if pie_possible is yes and add -fno-PIE
8874 to TARGET_CFLAGS.
8875
8876 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
8877
8878 * INSTALL: Note that GNU Bison 2.3 or later is required.
8879
8880 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
8881
8882 * kern/i386/pc/startup.S: Fix typo.
8883
8884 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
8885
8886 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
8887 according to GCS.
8888
8889 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8890
8891 * docs/grub.texi (Naming convention): Describe one-based partition
8892 numbering.
8893 (Device syntax): Likewise.
8894 (File name syntax): Likewise.
8895 (Block list syntax): Likewise.
8896 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
8897 menu.lst.
8898 (File name syntax): Likewise.
8899 (Command-line and menu entry commands): Document acpi, blocklist,
8900 crc, export, insmod, keystatus, ls, set, and unset commands.
8901
8902 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8903
8904 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
8905 to avoid implying that only one of --shift, --ctrl, or --alt may be
8906 used.
8907
8908 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8909
8910 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
8911 rather than comparing against S_IFREG, which will almost never work.
8912
8913 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
8914
8915 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
8916 (write_blocklists): Likewise.
8917
8918 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
8919
8920 * script/lua/grub_lua.h (fputs): Supply a format string as the first
8921 argument to grub_printf.
8922
8923 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
8924
8925 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
8926 non GNU test.
8927
8928 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8929
8930 * kern/file.c (grub_file_read): Spelling fix
8931
8932 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8933
8934 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
8935 loading of headers in some cases.
8936
8937 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
8938
8939 * configure.ac: Bump version to 1.97~beta1.
8940 * docs/version.texi: Likewise.
8941
8942 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8943
8944 * include/grub/i386/xnu.h: Add license header.
8945 include grub/err.h explicitly.
8946
8947 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8948
8949 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
8950 to `ufs' in the vfs.root.mountfrom kernel parameter.
8951
8952 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8953
8954 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
8955
8956 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
8957 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
8958
8959 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
8960 `ARRAY_SIZE' macro.
8961
8962 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8963
8964 * kern/file.c (grub_file_read): Check offset.
8965 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
8966 * fs/jfs.c (grub_jfs_read_file): Likewise.
8967 * fs/ntfs.c (grub_ntfs_read): Likewise.
8968 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
8969 * fs/minix.c (grub_minix_read_file): Correct offset check.
8970 * fs/ufs.c (grub_ufs_read_file): Likewise.
8971
8972 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8973
8974 * term/i386/pc/console.c (bios_data_area): Cast
8975 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
8976
8977 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8978
8979 1-bit optimised blitters.
8980
8981 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
8982 prototype.
8983 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8984 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8985 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8986 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8987 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8988 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8989 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
8990 function.
8991 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8992 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8993 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8994 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8995 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8996 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8997 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
8998 when possible.
8999 * video/video.c (grub_video_get_blit_format): Return
9000 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
9001
9002 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
9003
9004 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
9005 the first argument to grub_printf.
9006
9007 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
9008 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
9009
9010 Add `getkeystatus' terminal method. Add a new `keystatus' command
9011 to query it.
9012
9013 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
9014 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
9015 modifier key bitmasks.
9016 (struct grub_term_input): Add `getkeystatus' member.
9017 (grub_getkeystatus): Add prototype.
9018 * kern/term.c (grub_getkeystatus): New function.
9019
9020 * include/grub/i386/pc/memory.h
9021 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
9022 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
9023 Data Area layout.
9024 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
9025 (grub_console_term_input): Set `getkeystatus' member.
9026 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
9027 constants.
9028 (grub_usb_keyboard_getreport): Likewise.
9029 (grub_usb_keyboard_checkkey): Likewise.
9030 (grub_usb_keyboard_getkeystatus): New function.
9031 (grub_usb_keyboard_term): Set `getkeystatus' member.
9032
9033 * commands/keystatus.c: New file.
9034 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
9035 (keystatus_mod_SOURCES): New variable.
9036 (keystatus_mod_CFLAGS): Likewise.
9037 (keystatus_mod_LDFLAGS): Likewise.
9038 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
9039 commands/keystatus.c.
9040 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9041 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9042 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9043 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9044 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9045 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
9046
9047 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
9048
9049 Split befs.mod and afs.mod into *_be.mod and *.mod
9050
9051 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
9052 (grub_fstest_SOURCES): Likewise.
9053 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
9054 (afs_be_mod_SOURCES): New variable.
9055 (afs_be_mod_CFLAGS): Likewise.
9056 (afs_be_mod_LDFLAGS): Likewise.
9057 (befs_be_mod_SOURCES): Likewise.
9058 (befs_be_mod_CFLAGS): Likewise.
9059 (befs_be_mod_LDFLAGS): Likewise.
9060 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
9061 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9062 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9063 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
9064 (grub_emu_SOURCES): Likewise.
9065 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9066 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9067 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
9068 * fs/afs_be.c: New file.
9069 * fs/befs_be.c: New file.
9070 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
9071 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
9072 (U16): Replaced with ...
9073 (grub_afs_to_cpu16): ...this. All users updated.
9074 (U32): Replaced with ...
9075 (grub_afs_to_cpu32): ...this. All users updated.
9076 (U64): Replaced with ...
9077 (grub_afs_to_cpu64): ...this. All users updated.
9078 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
9079 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
9080 (grub_afs_validate_sblock): Check only one endianness.
9081 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
9082 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
9083 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
9084 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
9085 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
9086 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
9087 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
9088 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
9089
9090 2009-08-26 Bean <bean123ch@gmail.com>
9091
9092 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
9093 64-bit number.
9094 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
9095 (grub_xfs_inode_block): Change return type to grub_uint64_t.
9096 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
9097
9098 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9099
9100 NetBSD memory map support.
9101
9102 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
9103 (grub_netbsd_btinfo_mmap_header): New structure.
9104 (grub_netbsd_btinfo_mmap_entry): Likewise.
9105 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
9106
9107 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9108
9109 Enable bsd.mod on coreboot.
9110
9111 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
9112 (bsd_mod_SOURCES): New variable.
9113 (bsd_mod_CFLAGS): Likewise.
9114 (bsd_mod_LDFLAGS): Likewise.
9115 (bsd_mod_ASFLAGS): Likewise.
9116 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
9117 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
9118
9119 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9120
9121 Cleanup NetBSD root support.
9122
9123 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
9124 grub_bsd_get_device.
9125 Fix typo.
9126
9127 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
9128
9129 * util/grub.d/00_header.in: Move check for the video backend of
9130 gfxterm from here ...
9131 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
9132 a suitable video backend.
9133
9134 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9135
9136 Fix breakage in grub-setup.
9137
9138 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
9139 "msdos_partition_map".
9140
9141 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9142
9143 Fix breakage in normal/auth.c.
9144
9145 * normal/auth.c (grub_iswordseparator): New function.
9146
9147 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9148
9149 Authentication support.
9150
9151 * commands/password.c: New file.
9152 * conf/common.rmk (pkglib_MODULES): Add password.mod.
9153 (password_mod_SOURCES): New variable.
9154 (password_mod_CFLAGS): Likewise.
9155 (password_mod_LDFLAGS): Likewise.
9156 (normal_mod_SOURCES): Add normal/auth.c.
9157 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
9158 normal/auth.c.
9159 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9160 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9161 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9162 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9163 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9164 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
9165 * include/grub/auth.h: New file.
9166 * include/grub/err.h (grub_err_t): New enum value
9167 GRUB_ERR_ACCESS_DENIED.
9168 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
9169 'users'.
9170 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
9171 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
9172 users updated.
9173 * normal/auth.c: New file.
9174 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
9175 (grub_cmdline_run): Don't allow to go to command line without
9176 authentication.
9177 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
9178 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
9179 menuentry without superuser rights.
9180 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
9181 user isn't a superuser.
9182
9183 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9184
9185 Save space by inlining misc.c functions.
9186
9187 * kern/misc.c (grub_iswordseparator): Made static.
9188 * kern/misc.c (grub_strcat): Moved from here ...
9189 * include/grub/misc.h (grub_strcat): ... here. Inlined.
9190 * kern/misc.c (grub_strncat): Moved from here ...
9191 * include/grub/misc.h (grub_strncat): ... here. Inlined.
9192 * kern/misc.c (grub_strcasecmp): Moved from here ...
9193 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
9194 * kern/misc.c (grub_strncasecmp): Moved from here ...
9195 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
9196 * kern/misc.c (grub_isalpha): Moved from here ...
9197 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
9198 * kern/misc.c (grub_isdigit): Moved from here ...
9199 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
9200 * kern/misc.c (grub_isgraph): Moved from here ...
9201 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
9202 * kern/misc.c (grub_tolower): Moved from here ...
9203 * include/grub/misc.h (grub_tolower): ... here. Inlined.
9204
9205 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9206
9207 * script/sh/function.c (grub_script_function_find): Cut error message
9208 not to flood terminal.
9209 * script/sh/lexer.c (grub_script_yylex): Remove command line length
9210 limit.
9211 * script/sh/script.c (grub_script_arg_add): Duplicate string.
9212
9213 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
9214
9215 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
9216 `report' grub_uint8_t *.
9217 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
9218 Use a 50-millisecond timeout rather than just repeating
9219 grub_usb_keyboard_getreport 50 times.
9220 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
9221
9222 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9223
9224 Rename *_partition_map to part_*
9225
9226 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
9227 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
9228 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
9229 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
9230 All users updated.
9231 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
9232 All users updated.
9233 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
9234 * util/grub-probe.c (probe_partmap): Don't transform partition name
9235 to get module name.
9236
9237 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9238
9239 Fix OpenBSD and NetBSD support.
9240
9241 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
9242 memory address conflict.
9243 (OPENBSD_MMAP_ACPI): New definition.
9244 (OPENBSD_MMAP_NVS): Likewise.
9245 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
9246 and OPENBSD_MMAP_NVS.
9247 Add memory map terminator
9248 Explicit cast when calling grub_unix_real_boot.
9249 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
9250
9251 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9252
9253 Let user specify NetBSD root device.
9254
9255 * loader/i386/bsd.c (netbsd_root): New variable.
9256 (netbsd_opts): New option 'root'.
9257 (NETBSD_ROOT_ARG): New macro.
9258 (grub_netbsd_boot): Use 'netbsd_root'.
9259 (grub_bsd_unload): Free 'netbsd_root'.
9260 (grub_cmd_netbsd): Fill 'netbsd_root'.
9261
9262 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9263
9264 Support for 64-bit NetBSD.
9265
9266 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
9267 point when booting non-FreeBSD.
9268
9269 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9270
9271 Support --no-smp and --no-acpi for NetBSD.
9272
9273 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
9274 (NETBSD_AB_NOACPI): Likewise.
9275 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
9276 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
9277
9278 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9279
9280 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
9281 errors.
9282 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
9283 errors. Call grub_error when needed.
9284
9285 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9286
9287 * commands/search.c (search_fs): Try searching without autoload first.
9288 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
9289 filesystem module explicitly for faster booting.
9290
9291 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
9292
9293 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
9294
9295 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
9296
9297 * util/grub.d/30_os-prober.in: Disable os-prober if
9298 `GRUB_DISABLE_OS_PROBER' was set to true.
9299
9300 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
9301
9302 * partmap/pc.c: Rename to ...
9303 * partmap/msdos.c: ... this. Update all users.
9304 (grub_pc_partition_map): Rename to ...
9305 (grub_msdos_partition_map): ... this. Update all users.
9306
9307 * parttool/pcpart.c: Rename to ...
9308 * parttool/msdospart.c: ... this. Update all users.
9309
9310 * include/grub/pc_partition.h: Rename to ...
9311 * include/grub/msdos_partition.h: ... this. Update all users.
9312 (grub_pc_partition_bsd_entry): Rename to ...
9313 (grub_msdos_partition_bsd_entry): ... this. Update all users.
9314 (grub_pc_partition_disk_label): Rename to ...
9315 (grub_msdos_partition_disk_label): ... this. Update all users.
9316 (grub_pc_partition_entry): Rename to ...
9317 (grub_msdos_partition_entry): ... this. Update all users.
9318 (grub_pc_partition_mbr): Rename to ...
9319 (grub_msdos_partition_mbr): ... this. Update all users.
9320 (grub_pc_partition): Rename to ...
9321 (grub_msdos_partition): ... this. Update all users.
9322 (grub_pc_partition_is_empty): Rename to ...
9323 (grub_msdos_partition_is_empty): ... this. Update all users.
9324 (grub_pc_partition_is_extended): Rename to ...
9325 (grub_msdos_partition_is_extended): ... this. Update all users.
9326 (grub_pc_partition_is_bsd): Rename to ...
9327 (grub_msdos_partition_is_bsd): ... this. Update all users.
9328
9329 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
9330 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
9331 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
9332 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
9333 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
9334 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
9335 (gpt_mod_LDFLAGS): Rename to ...
9336 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
9337 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
9338 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
9339 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
9340 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
9341 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
9342 (part_gpt_mod_LDFLAGS): ... this.
9343 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
9344 `pcpart.mod' to `msdospart.mod'.
9345 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
9346 to ...
9347 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
9348 (msdospart_mod_LDFLAGS): ... this.
9349
9350 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9351
9352 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
9353 (openbsd_opts): Likewise.
9354 (netbsd_opts): Likewise.
9355 (freebsd_flags): Added 0 terminator.
9356 (openbsd_flags): Likewise.
9357 (netbsd_flags): Likewise.
9358 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
9359 (grub_cmd_freebsd): Transformed into extended command.
9360 (grub_cmd_openbsd): Likewise.
9361 (grub_cmd_netbsd): Likewise.
9362 (cmd_freebsd): Changed type to grub_extcmd_t.
9363 (cmd_openbsd): Likewise.
9364 (cmd_netbsd): Likewise.
9365 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
9366 grub_cmd_openbsd as extended commands.
9367 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
9368 cmd_netbsd and cmd_openbsd
9369
9370 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
9371
9372 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
9373
9374 2009-08-21 Pavel Roskin <proski@gnu.org>
9375
9376 * Makefile.in (install-local): When checking if a file is in the
9377 build directory, use "test -e" to detect symlinks.
9378
9379 * Makefile.in (install-local): Remove all files in
9380 $(DESTDIR)$(pkglibdir) before installing new files there.
9381
9382 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
9383
9384 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
9385 grub-mkelfimage.
9386
9387 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
9388
9389 * util/grub-mkconfig.in: Don't use gfxterm by default if not
9390 explicitly specified by the user.
9391
9392 2009-08-18 Pavel Roskin <proski@gnu.org>
9393
9394 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
9395 grub_uint8_t pointer for data.
9396 * include/grub/fbutil.h (struct grub_video_fbblit_info):
9397 Likewise.
9398 * video/fb/fbutil.c: Remove unnecessary casts.
9399
9400 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
9401
9402 VBE cleanup.
9403
9404 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
9405 (grub_vbe_set_video_mode): Save active mode info
9406 only after setting the mode.
9407 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
9408 second argument.
9409
9410 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
9411
9412 Rename variables for clarity.
9413
9414 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
9415 (active_vbe_mode_info): ... this. All users updated.
9416 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
9417 All users updated.
9418 (initial_mode): Rename to ...
9419 (initial_vbe_mode): ... this. All users updated.
9420 (mode_in_use): Rename to ..
9421 (vbe_mode_in_use): ... this. All users updated.
9422 (mode_list): Rename to ..
9423 (vbe_mode_list): ... this. All users updated.
9424 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
9425 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
9426 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
9427 'mode_list_size' to 'vbe_mode_list_size'.
9428 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
9429 'best_mode_info' to 'best_vbe_mode_info' and
9430 'best_mode' to 'best_vbe_mode'
9431
9432 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
9433
9434 Remove duplicate grub_video_fb_get_video_ptr.
9435
9436 * include/grub/fbutil.h (get_data_ptr): Rename to ...
9437 (grub_video_fb_get_video_ptr): ... this.
9438 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
9439 * video/fb/fbutil.c: Add comment about addressing.
9440 (get_data_ptr): Rename to ...
9441 (grub_video_fb_get_video_ptr): ... this. All users updated.
9442 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
9443
9444 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
9445
9446 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
9447 grub_dprintf() that was just added.
9448
9449 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
9450
9451 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
9452 (DEFAULT_VIDEO_MODE): Remove macros.
9453 (grub_linux_boot): Remove assumption that Linux has FB support,
9454 and use "text" as default video mode.
9455
9456 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
9457
9458 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
9459 grub_dprintf.
9460 * fs/fat.c (grub_fat_read_data): Likewise.
9461
9462 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9463
9464 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
9465 payload.
9466 (grub_module): Likewise.
9467
9468 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9469
9470 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
9471 mbi->cmdline but free playground.
9472
9473 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9474
9475 Handle group offset on UFS1.
9476
9477 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
9478 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
9479
9480 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9481
9482 Split ufs.mod into ufs1.mod and ufs2.mod.
9483
9484 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
9485 (grub_fstest_SOURCES): Likewise.
9486 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
9487 (ufs_mod_SOURCES): Remove.
9488 (ufs_mod_CFLAGS): Likewise.
9489 (ufs_mod_LDFLAGS): Likewise.
9490 (ufs1_mod_SOURCES): New variable.
9491 (ufs1_mod_CFLAGS): Likewise.
9492 (ufs1_mod_LDFLAGS): Likewise.
9493 (ufs2_mod_SOURCES): New variable.
9494 (ufs2_mod_CFLAGS): Likewise.
9495 (ufs2_mod_LDFLAGS): Likewise.
9496 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
9497 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
9498 Likewise.
9499 (grub_emu_SOURCES): Likewise.
9500 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9501 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9502 (grub_setup_SOURCES): Likewise.
9503 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9504 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
9505 (grub_setup_SOURCES): Likewise.
9506 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
9507 Likewise.
9508 * fs/ufs2.c: New file.
9509 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
9510
9511 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9512
9513 Framebuffer split.
9514
9515 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
9516 subsystem at the end.
9517 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
9518 (video_fb_mod_SOURCES): New variable.
9519 (video_fb_mod_CFLAGS): Likewise.
9520 (video_fb_mod_LDFLAGS): Likewise.
9521 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
9522 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
9523 * video/i386/pc/vbeblit.c: Moved from here ...
9524 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
9525 * video/i386/pc/vbefill.c: Moved from here ...
9526 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
9527 * video/i386/pc/vbeutil.c: Moved from here ...
9528 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
9529 * include/grub/i386/pc/vbeblit.h: Moved from here ...
9530 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
9531 * include/grub/i386/pc/vbefill.h: Moved from here ...
9532 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
9533 * include/grub/i386/pc/vbeutil.h: Moved from here ...
9534 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
9535 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
9536 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
9537 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
9538 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
9539 (grub_video_adapter): Added 'get_info_and_fini'.
9540 (grub_video_get_info_and_fini): New prototype.
9541 (grub_video_set_mode): make modestring const char *.
9542 * loader/i386/linux.c (grub_linux_setup_video): Use
9543 grub_video_get_info_and_fini.
9544 (grub_linux_boot): Move modesetting just before booting.
9545 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
9546 grub_video_get_info_and_fini.
9547 * video/i386/pc/vbe.c: Moved framebuffer part ...
9548 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
9549 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
9550 grub_video_fbstd_colors and grub_video_fb_set_palette.
9551 (grub_video_vbe_init): Clear 'framebuffer' variable and use
9552 grub_video_fb_init.
9553 (grub_video_vbe_fini): Use grub_video_fb_fini.
9554 (grub_video_vbe_setup): Use framebuffer.render_target instead of
9555 render_target and use grub_video_fb_set_active_render_target and
9556 grub_video_fb_set_palette.
9557 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
9558 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
9559 (grub_video_vbe_adapter): Use framebuffer.
9560 * video/video.c (grub_video_get_info_and_fini): New function.
9561 (grub_video_set_mode): Make modestring const char *.
9562 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
9563 values are already initialised.
9564
9565 2009-08-14 Pavel Roskin <proski@gnu.org>
9566
9567 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
9568 ABS and APPLE_CC.
9569 * boot/i386/pc/diskboot.S: Likewise.
9570 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
9571 sectors allow compilation on MacOSX.
9572 * conf/i386-pc.rmk: Enable unconditional compilation of
9573 lnxboot.img.
9574
9575 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
9576
9577 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
9578 * util/grub.d/00_header.in: Enter interruptible sleep if
9579 GRUB_HIDDEN_TIMEOUT is set.
9580
9581 2009-08-13 Yves Blusseau <blusseau@zetam.org>
9582
9583 * include/grub/symbol.h: Add the LOCAL macro.
9584 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
9585 starting with "L_".
9586
9587 2009-08-13 Pavel Roskin <proski@gnu.org>
9588
9589 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
9590 any modern compilers we support.
9591
9592 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
9593 Use local labels starting with "L_" so that Apple assembler
9594 knows they are local.
9595
9596 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
9597
9598 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
9599 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
9600 (bsd_kernel_types): ... this enum.
9601
9602 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
9603 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
9604 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
9605
9606 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
9607 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
9608 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
9609 messages.
9610
9611 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
9612
9613 * util/grub-dumpdevtree: Moved from here ...
9614 * util/i386/efi/grub-dumpdevtree: ... to here.
9615 (hexify): New function. Converts a string to its hex version.
9616 Generate hex versions of "efi" and "device-properties" by calling
9617 hexify() on the ASCII strings rather than by hardcoding numbers.
9618
9619 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
9620
9621 * fs/jfs.c: Update copyright year.
9622
9623 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
9624
9625 * util/grub.d/00_header.in: Fix a comment.
9626 * util/grub.d/10_linux.in: Likewise.
9627 * util/grub.d/10_windows.in: Likewise.
9628 * util/grub.d/10_hurd.in: Likewise.
9629
9630 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
9631
9632 * util/grub-mkconfig.in: Allow the user to specify the used font
9633 with GRUB_FONT.
9634
9635 2009-08-08 Pavel Roskin <proski@gnu.org>
9636
9637 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
9638 available, xfs.mod needs it now.
9639
9640 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
9641 the "g" modifier in sed when the intention is to strip something
9642 once. This fixes comparison of kernels with multiple dashes.
9643
9644 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
9645 on it. Add missing space before closing bracket. Fix
9646 misleading formatting.
9647
9648 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9649
9650 * docs/grub.texi: Major overhaul. Remove all sections that are
9651 specific to GRUB Legacy, or mostly composed of Legacy-specific
9652 information.
9653
9654 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9655
9656 * docs/version.texi: New file. Provides version information for
9657 grub.texi.
9658
9659 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9660
9661 * docs/grub.texi: Update CVS information to SVN.
9662 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
9663
9664 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9665
9666 * util/grub-mkconfig.in: Remove a wrong `fi'.
9667
9668 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9669
9670 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
9671 (grub_jfs_uuid): New function.
9672 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
9673
9674 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9675
9676 * util/grub-mkconfig_lib.in (font_path): Move the functionality
9677 of it to ...
9678 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
9679 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
9680
9681 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9682
9683 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
9684 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
9685 Update all users.
9686
9687 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
9688 not just "vmlinu[zx]".
9689 Moved from here ...
9690 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
9691 all users.
9692
9693 * util/grub.d/10_linux.in (find_latest): Moved from here ...
9694 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
9695 all users.
9696
9697 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9698
9699 * util/grub.d/10_freebsd.in: Use an absolute device path for
9700 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
9701
9702 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
9703
9704 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
9705 handling of multiple abstraction modules.
9706
9707 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
9708
9709 Fix a bug resulting in black screen when loading Linux using a
9710 packed video mode.
9711
9712 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
9713 function.
9714
9715 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
9716 (grub_vbe_bios_getset_dac_palette_width): New function.
9717 (grub_vbe_bios_get_dac_palette_width)
9718 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
9719 grub_vbe_bios_getset_dac_palette_width()).
9720
9721 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
9722 check for return status.
9723 (grub_vbe_get_video_mode_info): When getting information for a packed
9724 mode (<= 8 bpp), obtain DAC palette width using
9725 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
9726 {red,green,blue}_mark_size.
9727
9728 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
9729
9730 * commands/search.c (options): Fix help output to match actual code.
9731
9732 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
9733
9734 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
9735 of homegrown code.
9736
9737 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9738
9739 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
9740 on XFS or ReiserFS.
9741
9742 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9743
9744 Support Apple partition map with sector size different from 512 bytes.
9745
9746 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
9747 (apple_partition_map_iterate): Respect 'aheader.blocksize'
9748 and 'apart.partmap_size'.
9749
9750 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9751 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
9752
9753 Fix cpuid command.
9754
9755 * commands/i386/cpuid.c (options): New variable.
9756 (grub_cmd_cpuid): Return real error.
9757 (GRUB_MOD_INIT(cpuid)): Declare options.
9758
9759 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
9760
9761 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
9762 valid.
9763
9764 2009-07-31 Bean <bean123ch@gmail.com>
9765
9766 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
9767 log2_inode.
9768 (grub_fshelp_node): Move inode field to the end.
9769 (grub_xfs_data): Remove inode field.
9770 (grub_xfs_inode_block): Calculate inode size using sblock.
9771 (grub_xfs_inode_offset): Likewise.
9772 (grub_xfs_read_inode): Calculate inode size using sblock.
9773 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
9774 (grub_xfs_iterate_dir): Calculate inode size using sblock.
9775 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
9776 to match inode size.
9777 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
9778 not accessible when data is null.
9779 (grub_xfs_open): Likewise.
9780
9781 2009-07-31 Bean <bean123ch@gmail.com>
9782
9783 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
9784 Don't change pv->disk if it's already set.
9785
9786 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
9787 (grub_raid_register): ... here.
9788 (grub_raid_rescan): Removed.
9789
9790 * include/grub/raid.h (grub_raid_rescan): Removed.
9791
9792 * util/grub-fstest.c: Remove include file <grub/raid.h>.
9793 (fstest): Replace grub_raid_rescan with module fini function followed
9794 by init function.
9795
9796 * util/grub-probe.c: Add include file <grub/raid.h>.
9797 (probe_raid_level): New function.
9798 (probe): Detect abstraction by walking the disk device, support two
9799 level of abstraction (LVM on RAID) when detecting partition map.
9800
9801 2009-07-31 Pavel Roskin <proski@gnu.org>
9802
9803 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
9804 to grub_zalloc(), it was erroneous.
9805 Reported by Bean <bean123ch@gmail.com>
9806
9807 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
9808
9809 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
9810 embedding zone, not only the first one.
9811
9812 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
9813
9814 * term/gfxterm.c (clear_char): New function.
9815 (grub_virtual_screen_setup): Use clear_char.
9816 (scroll_up): Likewise.
9817 (grub_virtual_screen_cls): Likewise.
9818
9819 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
9820
9821 * util/deviceiter.c (get_acceleraid_disk_name): New static
9822 function.
9823 (grub_util_iterate_devices): Handle Accelraid devices.
9824 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
9825
9826 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
9827
9828 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
9829 separator for the suggested gfxpayload string (';' collides with the
9830 parser and needs escaping).
9831
9832 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
9833
9834 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
9835 Clear direction flag before jumping to OS.
9836 (grub_multiboot2_real_boot): Likewise.
9837
9838 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
9839
9840 * util/i386/pc/grub-install: Fix parsing of --disk-module
9841 option.
9842
9843 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
9844
9845 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
9846 when embedding.
9847
9848 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
9849
9850 * util/grub-mkconfig.in (package_version): New variable.
9851 Use it do display the version.
9852
9853 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
9854
9855 * kern/file.c (grub_file_open): Revert to previous check with
9856 grub_errno.
9857
9858 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9859
9860 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
9861 from help line. It's out of sync with code.
9862
9863 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9864
9865 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
9866 entries on failed boot.
9867
9868 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
9869
9870 * kern/file.c (grub_file_open): Fix an error check.
9871
9872 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
9873
9874 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
9875 partition map couldn't be identified.
9876
9877 2009-07-23 Pavel Roskin <proski@gnu.org>
9878
9879 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
9880 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
9881 case of little endian words becomes just an optimization.
9882 Respect const modifier.
9883 (md5_final): Use code that doesn't depend on endianness.
9884
9885 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
9886 to avoid loss of upper bits if align is unsigned and shorter
9887 than addr.
9888
9889 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9890
9891 UUID support for UFS
9892
9893 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
9894 (grub_ufs_uuid): New function.
9895 (grub_ufs_fs): add .uuid
9896
9897 2009-07-21 Pavel Roskin <proski@gnu.org>
9898
9899 * kern/dl.c (grub_dl_check_header): Make static.
9900
9901 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
9902
9903 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
9904 add drivemap for Vista. It breaks Windows 7.
9905
9906 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9907
9908 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
9909 128 bytes
9910
9911 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9912
9913 Add BFS support
9914
9915 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
9916 (grub_fstest_SOURCES): Likewise.
9917 (pkglib_MODULES): Add befs.mod.
9918 (befs_mod_SOURCES): New variable.
9919 (befs_mod_CFLAGS): Likewise.
9920 (befs_mod_LDFLAGS): Likewise.
9921 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
9922 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9923 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9924 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9925 (grub_setup_SOURCES): Likewise.
9926 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9927 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9928 (grub_setup_SOURCES): Likewise.
9929 * fs/befs.c: New file.
9930 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
9931 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
9932 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
9933 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
9934 (B_KEY_INDEX_ALIGN): New declaration.
9935 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
9936 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
9937 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
9938 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
9939 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
9940 (grub_afs_mount) [MODE_BFS]: Likewise.
9941 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
9942 (grub_afs_fs): Use GRUB_AFS_FSNAME
9943 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
9944 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
9945 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
9946 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
9947
9948 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
9949
9950 * util/getroot.c (find_root_device): Add support for MacOSX.
9951 * util/hostdisk.c: Likewise.
9952
9953 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9954
9955 * font/font.c (find_glyph): Check whether a font is present to avoid
9956 segmentation fault.
9957
9958 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
9959
9960 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
9961
9962 2009-07-20 Pavel Roskin <proski@gnu.org>
9963
9964 * configure.ac: Trim excessively wordy excuses.
9965
9966 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9967
9968 Add symlink, mtime and label support to AtheFS.
9969
9970 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
9971 (grub_afs_iterate_dir): Handle symlinks.
9972 (grub_afs_open): Use grub_afs_read_symlink.
9973 (grub_afs_dir): Likewise.
9974 Pass mtime.
9975 (grub_afs_label): New function.
9976 (grub_afs_fs): Add grub_afs_label.
9977 (grub_afs_read_symlink): New function.
9978
9979 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9980
9981 Fix AtheFS support.
9982
9983 * fs/afs.c: Fix comments style.
9984 (grub_afs_blockrun): Declare as packed.
9985 (grub_afs_datastream): Likewise.
9986 (grub_afs_bnode): Likewise.
9987 (grub_afs_btree): Likewise.
9988 (grub_afs_sblock): Likewise.
9989 Declare `name' as char.
9990 (grub_afs_inode): Declare as packed.
9991 Change void *vnode to grub_uint32_t unused.
9992 (grub_afs_iterate_dir): Check that key_size is positive.
9993 (grub_afs_mount): Don't read superblock twice.
9994 (grub_afs_dir): Don't free node in case of error,
9995 grub_fshelp_find_file already handles this.
9996 (grub_afs_open): Likewise.
9997
9998 2009-07-19 Pavel Roskin <proski@gnu.org>
9999
10000 * Makefile.in: Remove LIBLZO and enable_lzo.
10001 * conf/i386-pc.rmk: Remove lzo support.
10002 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
10003 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
10004 support.
10005 * kern/i386/pc/lzo1x.S: Remove.
10006 * kern/i386/pc/startup.S: Remove lzo support.
10007 * util/i386/pc/grub-mkimage.c: Likewise.
10008
10009 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
10010
10011 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
10012 * fs/xfs.c (grub_xfs_dir): Likewise.
10013 * fs/afs.c (grub_afs_dir): Likewise.
10014 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
10015 (grub_iso9660_open): Likewise.
10016 * fs/jfs.c (grub_jfs_open): Likewise.
10017 * fs/ext2.c (grub_ext2_dir): Likewise.
10018 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
10019 * script/sh/lexer.c (grub_script_yylex): Likewise.
10020
10021 2009-07-16 Pavel Roskin <proski@gnu.org>
10022
10023 * configure.ac: Never add "-c" to CFLAGS.
10024
10025 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
10026
10027 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
10028 grub_cv_cc_efiemu should be used.
10029
10030 * configure.ac: Typo fixes.
10031
10032 * kern/mm.c (grub_zalloc): New function.
10033 (grub_debug_zalloc): Likewise.
10034 * include/grub/mm.h: Declare grub_zalloc() and
10035 grub_debug_zalloc().
10036 * util/misc.c (grub_zalloc): New function.
10037 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
10038 instead of grub_malloc(), remove unneeded initializations.
10039 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
10040 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
10041 * commands/parttool.c (grub_cmd_parttool): Likewise.
10042 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
10043 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
10044 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
10045 * disk/usbms.c (grub_usbms_finddevs): Likewise.
10046 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
10047 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
10048 (grub_cmd_efiemu_pnvram): Likewise.
10049 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
10050 * fs/iso9660.c (grub_iso9660_mount): Likewise.
10051 (grub_iso9660_iterate_dir): Likewise.
10052 * fs/jfs.c (grub_jfs_opendir): Likewise.
10053 * fs/ntfs.c (list_file): Likewise.
10054 (grub_ntfs_mount): Likewise.
10055 * kern/disk.c (grub_disk_open): Likewise.
10056 * kern/dl.c (grub_dl_load_core): Likewise.
10057 * kern/elf.c (grub_elf_file): Likewise.
10058 * kern/env.c (grub_env_context_open): Likewise.
10059 (grub_env_set): Likewise.
10060 (grub_env_set_data_slot): Likewise.
10061 * kern/file.c (grub_file_open): Likewise.
10062 * kern/fs.c (grub_fs_blocklist_open): Likewise.
10063 * loader/i386/multiboot.c (grub_module): Likewise.
10064 * loader/xnu.c (grub_xnu_create_key): Likewise.
10065 (grub_xnu_create_value): Likewise.
10066 * normal/main.c (grub_normal_add_menu_entry): Likewise.
10067 (read_config_file): Likewise.
10068 * normal/menu_entry.c (make_screen): Likewise.
10069 * partmap/sun.c (sun_partition_map_iterate): Likewise.
10070 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
10071 * script/sh/script.c (grub_script_parse): Likewise.
10072 * video/bitmap.c (grub_video_bitmap_create): Likewise.
10073 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
10074 * video/readers/png.c (grub_png_output_byte): Likewise.
10075 (grub_video_reader_png): Likewise.
10076
10077 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10078
10079 Enable all targets that can be built by default
10080
10081 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
10082 grub-mkfont and grub-fstest if they can be built
10083
10084 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10085
10086 Fix hang and segmentation fault in grub-emu-usb
10087
10088 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
10089 * util/usb.c (grub_libusb_devices): likewise
10090 (grub_libusb_init): rename to ...
10091 (GRUB_MOD_INIT (libusb)):...this
10092 (grub_libusb_fini): rename to ..
10093 (GRUB_MOD_FINI (libusb)):...this
10094 * disk/usbms.c (grub_usbms_transfer): fix retry logic
10095 * include/grub/disk.h (grub_raid_init): removed, it's useless
10096 (grub_raid_fini): likewise
10097 (grub_lvm_init): likewise
10098 (grub_lvm_fini): likewise
10099 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
10100 by grub_init_all
10101
10102 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10103
10104 Fix libusb
10105
10106 * Makefile.in (LIBUSB): new macro
10107 * genmk.rb (Utility/print_tail): new method
10108 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
10109 (top level): call util.print_tail at the end.
10110
10111 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10112
10113 Make FreeBSD accept zpool.cache
10114
10115 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
10116 type is /boot/zfs/zpool.cache
10117
10118 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10119
10120 Fix 64-bit efiemu
10121
10122 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
10123 correct wrong typedef
10124 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
10125
10126 2009-07-15 Pavel Roskin <proski@gnu.org>
10127
10128 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
10129 * kern/disk.c (struct grub_disk_cache): Likewise.
10130
10131 * commands/probe.c (options): Typo fix.
10132
10133 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
10134 Increase to 0x5a to accommodate FAT32. Adjust other offsets
10135 accordingly.
10136 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
10137
10138 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
10139 the end of "Error" to make the message more readable.
10140
10141 * boot/i386/pc/boot.S (kernel_segment): Remove.
10142 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
10143 for destination.
10144
10145 * boot/i386/pc/boot.S (boot_version): Remove.
10146 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
10147 Remove.
10148
10149 * include/grub/i386/pc/boot.h: Sort all offsets.
10150 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
10151 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
10152 * boot/i386/pc/boot.S: Assert location of every offset listed in
10153 include/grub/i386/pc/boot.h.
10154
10155 2009-07-13 Pavel Roskin <proski@gnu.org>
10156
10157 * include/grub/i386/coreboot/machine.h: Rename
10158 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
10159 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
10160 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
10161
10162 * kern/dl.c: Force native word size to suppress warnings when
10163 compiling grub-emu.
10164
10165 * kern/device.c (grub_device_iterate): Change struct part_ent to
10166 hold the name, not a pointer to it. Use one grub_malloc() per
10167 partition, not two. Free partition_name if grub_malloc() fails.
10168 Set ents to NULL only before grub_partition_iterate() is called.
10169
10170 2009-07-11 Bean <bean123ch@gmail.com>
10171
10172 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
10173 childname.
10174
10175 2009-07-10 Bean <bean123ch@gmail.com>
10176 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
10177
10178 * kern/ieee1275/openfw.c (grub_children_iterate)
10179 (grub_devalias_iterate): Fix size evaluation for property or path
10180 strings, which was broken since r2132.
10181
10182 2009-07-07 Pavel Roskin <proski@gnu.org>
10183
10184 * commands/search.c (search_file): Merge into ...
10185 (search_fs): ... this. Accept search type as argument.
10186 (grub_cmd_search): Pass search type to search_fs().
10187
10188 * include/grub/util/console.h: New file.
10189 * util/console.c: Use it instead of grub/machine/console.h.
10190 * util/grub-emu.c: Likewise.
10191
10192 * lib/arg.c (find_long_option): Remove.
10193 (find_long): Add `len' argument, make `s' const char *.
10194 (grub_arg_parse): Parse long options in place, not in a
10195 temporary buffer.
10196
10197 2009-07-06 Pavel Roskin <proski@gnu.org>
10198
10199 * commands/search.c (search_fs): Fix potential NULL pointer
10200 dereference.
10201
10202 * commands/search.c (search_fs): Replace QUID macro with quid_fn
10203 function pointer.
10204
10205 2009-07-06 Daniel Mierswa <impulze@impulze.org>
10206
10207 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
10208 comparison.
10209
10210 2009-07-05 Pavel Roskin <proski@gnu.org>
10211
10212 * include/grub/i386/linux.h (struct linux_kernel_params):
10213 Restore padding3, it's still needed.
10214
10215 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
10216 FreeBSD.
10217 * util/osdetect.lua: Likewise.
10218
10219 2009-07-05 Bean <bean123ch@gmail.com>
10220
10221 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
10222
10223 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
10224 (grub_lua_getenv): Likewise.
10225 (grub_lua_setenv): Likewise.
10226 (save_errno): New function.
10227 (push_result): Likewise.
10228 (grub_lua_enum_device): Likewise.
10229 (grub_lua_enum_file): Likewise.
10230 (grub_lua_file_open): Likewise.
10231 (grub_lua_file_close): Likewise.
10232 (grub_lua_file_seek): Likewise.
10233 (grub_lua_file_read): Likewise.
10234 (grub_lua_file_getline): Likewise.
10235 (grub_lua_file_getsize): Likewise.
10236 (grub_lua_file_getpos): Likewise.
10237 (grub_lua_file_eof): Likewise.
10238 (grub_lua_file_exist): Likewise.
10239 (grub_lua_add_menu): Likewise.
10240
10241 * script/lua/grub_lua.h (isupper): New inline function.
10242 (islower): Likewise.
10243 (ispunct): Likewise.
10244 (isxdigit): Likewise.
10245 (strcspn): Change to normal function.
10246 (strpbkr): New function declaration.
10247 (memchr): Likewise.
10248
10249 * script/lua/grub_main.c (scan_str): New function.
10250 (strcspn): Likewise.
10251 (strpbrk): Likewise.
10252 (memchr): Likewise.
10253
10254 * script/lua/linit.c (lualibs): Enable the string library.
10255
10256 * util/osdetect.lua: New file.
10257
10258 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
10259
10260 * include/grub/i386/linux.h (struct linux_kernel_params): Add
10261 `capabilities' member.
10262
10263 2009-07-02 Pavel Roskin <proski@gnu.org>
10264
10265 * genparttoollist.sh: Add missing newline at the end.
10266
10267 2009-07-01 Pavel Roskin <proski@gnu.org>
10268
10269 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
10270
10271 * util/hostdisk.c (open_device): Remove `const' from
10272 `sysctl_size', as sysctlbyname() can change it (in this case it
10273 doesn't actually happen).
10274
10275 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
10276 using signed long int constants.
10277
10278 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
10279 constant to avoid a warning on FreeBSD.
10280
10281 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
10282 where it's needed.
10283
10284 * Makefile.in: Install include/grub/machine symlink.
10285
10286 * Makefile.in: When installing symlinks, use "cp -fR", which
10287 works on FreeBSD and MacOSX.
10288 From Yves Blusseau <cl7m42e02@sneakemail.com>
10289
10290 * kern/dl.c (grub_dl_resolve_symbol): Make static.
10291 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
10292
10293 * util/misc.c: Move grub_reboot() and grub_halt() ...
10294 * util/grub-emu.c: ... here. Make main_env static.
10295 * include/grub/util/misc.h: Remove main_env.
10296
10297 * kern/mm.c: Use correct format to print size_t.
10298
10299 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
10300 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
10301 * kern/powerpc/dl.c: Likewise.
10302 * kern/sparc64/dl.c: Likewise.
10303 * kern/x86_64/dl.c: Likewise.
10304
10305 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
10306
10307 Fix grub-emu build on sparc64-ieee1275.
10308
10309 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
10310 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
10311
10312 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
10313
10314 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
10315 (grub_reboot, grub_halt): New functions.
10316
10317 * util/i386/pc/misc.c: Delete. Update all users.
10318 * util/sparc64/ieee1275/misc.c: Likewise.
10319 * util/powerpc/ieee1275/misc.c: Likewise.
10320
10321 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
10322
10323 * conf/i386.rmk (setjmp_mod_SOURCES)
10324 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
10325 * conf/common.rmk (setjmp_mod_SOURCES)
10326 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
10327 to use $(target_cpu).
10328 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
10329 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
10330 * conf/powerpc-ieee1275.rmk: Likewise.
10331 * conf/sparc64-ieee1275.rmk: Likewise.
10332
10333 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
10334 $(target_cpu) for kern/$(target_cpu)/dl.c.
10335 * conf/i386-efi.rmk: Likewise.
10336 * conf/i386-ieee1275.rmk: Likewise.
10337 * conf/x86_64-efi.rmk: Likewise.
10338 * conf/i386-coreboot.rmk: Likewise.
10339 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
10340 $(target_cpu) for kern/$(target_cpu)/dl.c and for
10341 kern/$(target_cpu)/cache.S.
10342 * conf/sparc64-ieee1275.rmk: Likewise.
10343
10344 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
10345
10346 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
10347 type to `grub_uint8_t', and adjust `padding9' accordingly.
10348
10349 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10350
10351 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
10352
10353 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
10354 assembly in final jump, using register constraints.
10355
10356 (grub_linux_boot): For text mode, initialize `have_vga' using
10357 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
10358
10359 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
10360 right before the final jump.
10361
10362 Set `video_mode' to 0x3.
10363
10364 Document initialization of `video_page', `video_mode' and
10365 `video_ega_bx'.
10366
10367 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10368
10369 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
10370 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
10371 and set GRUB_LINUX_FLAG_QUIET appropriately.
10372
10373 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10374
10375 Fix build on Debian / sparc.
10376
10377 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
10378
10379 2009-06-28 Pavel Roskin <proski@gnu.org>
10380
10381 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
10382 fix a warning.
10383
10384 * util/grub.d/10_linux.in: Match SUSE style initrd names.
10385
10386 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10387
10388 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
10389 `err'.
10390
10391 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10392
10393 Revert r2338.
10394
10395 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
10396 file can't be opened. grub_file_open() is already supposed to set
10397 grub_errno / grub_errmsg appropriately.
10398 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10399
10400 2009-06-27 Pavel Roskin <proski@gnu.org>
10401 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10402
10403 * include/grub/dl.h: Include grub/elf.h.
10404 (struct grub_dl): Add symtab field.
10405 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
10406 GRUB_MODULES_MACHINE_READONLY.
10407 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
10408 of the header for read-only modules.
10409 (grub_dl_unload): Free mod->symtab for read-only modules.
10410 * kern/i386/dl.c: Use mod->symtab.
10411 * kern/powerpc/dl.c: Likewise.
10412 * kern/sparc64/dl.c: Likewise.
10413 * kern/x86_64/dl.c: Likewise.
10414
10415 * conf/i386-qemu.rmk: New file.
10416 * kern/i386/qemu/startup.S: Likewise.
10417 * kern/i386/qemu/mmap.c: Likewise.
10418 * boot/i386/qemu/boot.S: Likewise.
10419 * include/grub/i386/qemu/time.h: Likewise.
10420 * include/grub/i386/qemu/serial.h: Likewise.
10421 * include/grub/i386/qemu/kernel.h: Likewise.
10422 * include/grub/i386/qemu/console.h: Likewise.
10423 * include/grub/i386/qemu/boot.h: Likewise.
10424 * include/grub/i386/qemu/init.h: Likewise.
10425 * include/grub/i386/qemu/machine.h: Likewise.
10426 * include/grub/i386/qemu/loader.h: Likewise.
10427 * include/grub/i386/qemu/memory.h: Likewise.
10428
10429 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
10430 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
10431 [qemu] (pkglib_IMAGES): Add `boot.img'.
10432 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
10433 [qemu] (boot_img_FORMAT): New variables.
10434 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
10435 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
10436 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
10437 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
10438 [qemu] (kernel_img_FORMAT): New variables.
10439
10440 * configure.ac: Recognise `i386-qemu'.
10441
10442 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
10443 (for no compression).
10444 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
10445 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
10446 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
10447 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
10448 ifdefs).
10449
10450 2009-06-27 Pavel Roskin <proski@gnu.org>
10451
10452 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
10453 read.
10454 * efiemu/prepare32.c: Likewise.
10455 * efiemu/prepare64.c: Likewise.
10456
10457 2009-06-26 Pavel Roskin <proski@gnu.org>
10458
10459 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
10460 * include/grub/elf.h: Define symbols without "32" or "64" based
10461 on GRUB_TARGET_WORDSIZE.
10462 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
10463 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
10464 ELF definitions.
10465 * efiemu/loadcore64.c: Likewise.
10466 * loader/i386/bsd32.c: Likewise.
10467 * loader/i386/bsd64.c: Likewise.
10468 * kern/dl.c: Remove own ELF definitions.
10469 * util/i386/efi/grub-mkimage.c: Likewise.
10470
10471 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
10472
10473 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
10474 segment 0x0 unconditionally, because the reference generated by
10475 GAS is an absolute address.
10476
10477 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10478
10479 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
10480 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
10481
10482 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10483
10484 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
10485 indexes. Check for -f explicitly.
10486 (search_file): Improve error message.
10487 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
10488
10489 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10490
10491 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
10492 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
10493
10494 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10495
10496 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
10497 * conf/i386-ieee1275.rmk: Likewise.
10498 * conf/i386-coreboot.rmk: Likewise.
10499
10500 * kern/i386/pc/startup.S (grub_stop): Remove function.
10501 * kern/i386/ieee1275/startup.S: Likewise.
10502 * kern/i386/coreboot/startup.S: Likewise.
10503 * kern/i386/misc.S (grub_stop): New function.
10504
10505 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10506
10507 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
10508 * kern/i386/realmode.S (real_to_prot): ... to here.
10509
10510 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10511
10512 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
10513 with `kernel.img'.
10514 (kernel_elf_SOURCES): Rename to ...
10515 (kernel_img_SOURCES): ... this.
10516 (kernel_elf_HEADERS): Rename to ...
10517 (kernel_img_HEADERS): ... this. Update all users.
10518 (kernel_elf_ASFLAGS): Rename to ...
10519 (kernel_img_ASFLAGS): ... this.
10520 (kernel_elf_CFLAGS): Rename to ...
10521 (kernel_img_CFLAGS): ... this.
10522 (kernel_elf_LDFLAGS): Rename to ...
10523 (kernel_img_LDFLAGS): ... this.
10524 * conf/i386-coreboot.rmk: Likewise.
10525 * conf/powerpc-ieee1275.rmk: Likewise.
10526
10527 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
10528 with "kernel.img".
10529
10530 2009-06-21 Pavel Roskin <proski@gnu.org>
10531
10532 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
10533 to match nested functions.
10534 * loader/sparc64/ieee1275/linux.c: Likewise.
10535
10536 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
10537
10538 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
10539
10540 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
10541 all i386 platforms.
10542
10543 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
10544
10545 Fix asm file handling on ELF, and remove workarounds.
10546
10547 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
10548 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
10549 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
10550 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
10551
10552 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
10553
10554 Load BSD ELF modules
10555
10556 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
10557 and loader/i386/bsd64.c
10558 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
10559 (FREEBSD_MODTYPE_ELF_MODULE): New definition
10560 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
10561 (grub_freebsd_load_elfmodule32): New declaration
10562 (grub_freebsd_load_elfmoduleobj64): Likewise
10563 (grub_freebsd_load_elf_meta32): Likewise
10564 (grub_freebsd_load_elf_meta64): Likewise
10565 (grub_freebsd_add_meta): Likewise
10566 (grub_freebsd_add_meta_module): Likewise
10567 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
10568 (grub_freebsd_add_meta_module): Likewise and move module-specific
10569 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
10570 (grub_cmd_freebsd): Add elf-kernel specific parts
10571 based on grub_freebsd_add_meta_module
10572 (grub_cmd_freebsd_module): Add type parsing moved from
10573 grub_freebsd_add_meta_module
10574 (grub_cmd_freebsd_module_elf): New function
10575 (cmd_freebsd_module_elf): New variable
10576 (GRUB_MOD_INIT): Register freebsd_module_elf
10577 * loader/i386/bsd32.c: New file
10578 * loader/i386/bsd64.c: Likewise
10579 * loader/i386/bsdXX.c: Likewise
10580 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
10581 (grub_elf64_load): Likewise
10582 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
10583 All users updated
10584 (grub_elf64_load_hook_t): Likewise
10585
10586 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
10587
10588 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
10589 variable.
10590 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
10591 don't write a menu entry for recovery mode.
10592
10593 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
10594
10595 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
10596 after it's no longer needed.
10597
10598 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
10599
10600 * include/grub/i386/loader.h (grub_linux_prot_size)
10601 (grub_linux_tmp_addr, grub_linux_real_addr)
10602 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
10603 GRUB_MACHINE_PCBIOS.
10604 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
10605 common grub_util_info() call to ...
10606 (generate_image): ... here.
10607 Fix use of uninitialized memory, comparison of signed with
10608 unsigned integers and memory leak.
10609 Remove bogus module address message.
10610
10611 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
10612
10613 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
10614 grub_raid_register
10615 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
10616
10617 2009-06-19 Pavel Roskin <proski@gnu.org>
10618
10619 * configure.ac: Remove stray AC_MSG_CHECKING.
10620
10621 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
10622
10623 * disk/scsi.c (grub_scsi_open): use continue instead of big if
10624
10625 2009-06-18 Pavel Roskin <proski@gnu.org>
10626
10627 * conf/common.rmk: Add fs_file.mod.
10628 * disk/fs_file.c: New file.
10629 * include/grub/disk.h (enum grub_disk_dev_id): Add
10630 GRUB_DISK_DEVICE_FILE_ID.
10631
10632 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10633
10634 Fix build with Apple's toolchain. Part 2
10635
10636 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
10637 a fake start
10638
10639 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10640
10641 Fix build with Apple's toolchain. Part 1
10642
10643 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
10644 for long calls
10645 * configure.ac: remove a leftover AC_MSG_RESULT
10646 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
10647 Apple's toolchain
10648
10649 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10650
10651 Fix warnings
10652
10653 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
10654 (decomp_block): initialize ch
10655 use grub_memcpy instead of memcpy
10656
10657 2009-06-17 Pavel Roskin <proski@gnu.org>
10658
10659 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
10660 version, use declarations needed to use vga_text as the startup
10661 console.
10662
10663 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
10664 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
10665 the kernel.
10666 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
10667 and grub_at_keyboard_fini(), it's done on module load and
10668 unload.
10669
10670 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
10671
10672 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
10673 file can't be found.
10674 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10675
10676 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10677
10678 Fix newline handling
10679
10680 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
10681 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
10682 (grub_script_yylex): don't segfault on unterminated script
10683 newline terminates command and variable
10684
10685 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10686
10687 avoid double grub_adjust_range call. Bug reported by David Simner
10688
10689 * kern/disk.c (grub_disk_write): change to raw disk access before
10690 calling disk_read
10691
10692 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
10693
10694 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
10695 spaces, for the benefit of help2man.
10696 * util/i386/efi/grub-mkimage.c (usage): Likewise.
10697
10698 2009-06-16 Pavel Roskin <proski@gnu.org>
10699
10700 * kern/i386/halt.c: Include grub/machine/init.h.
10701 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
10702
10703 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
10704
10705 * util/grub.d/30_os-prober.in: Use ${root} in the generated
10706 drivemap menuentry.
10707
10708 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
10709
10710 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
10711 `echo' command.
10712
10713 2009-06-16 Pavel Roskin <proski@gnu.org>
10714
10715 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
10716 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
10717 save %dx, we only need %dl and we never change it.
10718 * boot/i386/pc/cdboot.S: Don't set the root drive.
10719 * boot/i386/pc/pxeboot.S: Likewise.
10720 * include/grub/i386/pc/boot.h: Remove
10721 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
10722 GRUB_BOOT_MACHINE_DRIVE_CHECK.
10723 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
10724 * kern/i386/pc/init.c (make_install_device): Remove references
10725 to grub_root_drive.
10726 * kern/i386/pc/startup.S: Likewise.
10727 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
10728
10729 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10730
10731 xnu_uuid command
10732
10733 * commands/xnu_uuid.c: new file
10734 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
10735 (xnu_uuid_mod_SOURCES): new variable
10736 (xnu_uuid_mod_CFLAGS): likewise
10737 (xnu_uuid_mod_LDFLAGS): likewise
10738 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10739 * conf/i386-ieee1275.rmk: likewise
10740 * conf/i386-pc.rmk: likewise
10741 * conf/powerpc-ieee1275.rmk: likewise
10742 * conf/sparc64-ieee1275.rmk: likewise
10743 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
10744
10745 2009-06-16 Pavel Roskin <proski@gnu.org>
10746
10747 * configure.ac: Avoid '==' in test command, it's not portable.
10748
10749 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10750
10751 Probe command
10752
10753 * commands/probe.c: new file
10754 * conf/common.rmk (pkglib_MODULES): add probe.mod
10755 (probe_mod_SOURCES): new variable
10756 (probe_mod_CFLAGS): likewise
10757 (probe_mod_LDFLAGS): likewise
10758 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10759 * conf/i386-ieee1275.rmk: likewise
10760 * conf/i386-pc.rmk: likewise
10761 * conf/powerpc-ieee1275.rmk: likewise
10762 * conf/sparc64-ieee1275.rmk: likewise
10763
10764 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
10765
10766 Fix handling of string like \"hello\" and "a
10767 b"
10768
10769 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
10770 (grub_script_yylex): fix parsing of quoting, escaping and newline
10771
10772 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
10773
10774 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
10775 handling
10776
10777 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
10778
10779 * util/grub-mkconfig.in: Fix parsing of --output option.
10780
10781 2009-06-12 Pavel Roskin <proski@gnu.org>
10782
10783 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
10784 genmk.rb don't need to be generated or installed.
10785
10786 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
10787
10788 * commands/i386/pc/drivemap_int13h.S: add more comments
10789
10790 2009-06-11 Pavel Roskin <proski@gnu.org>
10791
10792 * Makefile.in (uninstall): Uninstall manuals.
10793
10794 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
10795 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
10796 and update-grub_lib in two places.
10797 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
10798
10799 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
10800 a compiler warning.
10801
10802 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
10803 `entry_lo' to fix variable shadowing.
10804
10805 2009-06-11 Christian Franke <franke@computer.org>
10806
10807 * kern/misc.c (__enable_execute_stack): Add missing return type
10808 to prevent gcc warning.
10809
10810 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
10811
10812 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
10813
10814 2009-06-11 Pavel Roskin <proski@gnu.org>
10815
10816 * Makefile.in: Don't rely on any scripts being executable.
10817 Always use $(SHELL) to run shell scripts.
10818
10819 * configure.ac: Always define ___main if using -nostdlib. This
10820 fixes tests on Cygwin.
10821
10822 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
10823
10824 UDF fix
10825
10826 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
10827 is in bytes and not in blocks
10828
10829 2009-06-11 Pavel Roskin <proski@gnu.org>
10830
10831 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
10832 warning.
10833
10834 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
10835
10836 * util/grub.d/30_os-prober.in: Fix a comment. Source
10837 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
10838 to set the root device. Place drivemap command in the generated
10839 chain entry.
10840
10841 2009-06-11 Pavel Roskin <proski@gnu.org>
10842
10843 * configure.ac: Remove host_m32. Issues with 64-bit utilities
10844 have long been resolved.
10845
10846 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
10847
10848 * util/grub.d/10_linux.in: Capitalise "Linux".
10849
10850 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
10851
10852 2009-06-11 Pavel Roskin <proski@gnu.org>
10853
10854 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
10855 fix a gcc warning and ensure that the function won't ever exit.
10856
10857 * kern/i386/ieee1275/init.c: Add missing prototype for
10858 grub_stop_floppy().
10859
10860 * loader/ieee1275/multiboot2.c [__i386__]: Include
10861 grub/cpu/multiboot.h.
10862
10863 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
10864 casts to short - they are not portable and cause warnings. Fix
10865 use of uninitialized values in input_buf. Use ARRAY_SIZE.
10866
10867 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
10868
10869 Drivemap fixes
10870
10871 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
10872 new function
10873 (grub_get_root_biosnumber_saved): new variable
10874 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
10875 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
10876 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
10877 %dx after the call if necessary
10878 * conf/common.rmk (pkglib_MODULES): remove boot.mod
10879 (boot_mod_SOURCES): remove
10880 (boot_mod_CFLAGS): remove
10881 (boot_mod_LDFLAGS): remove
10882 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
10883 (boot_mod_SOURCES): new variable
10884 (boot_mod_CFLAGS): likewise
10885 (boot_mod_LDFLAGS): likewise
10886 * conf/i386-efi.rmk: likewise
10887 * conf/i386-ieee1275.rmk: likewise
10888 * conf/i386-pc.rmk: likewise
10889 * conf/powerpc-ieee1275.rmk: likewise
10890 * conf/sparc64-ieee1275.rmk: likewise
10891 * conf/x86_64-efi.rmk: likewise
10892 * include/grub/i386/pc/biosnum.h: new file
10893 * lib/i386/pc/biosnum.c: likewise
10894 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
10895 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
10896 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
10897
10898 2009-06-10 Pavel Roskin <proski@gnu.org>
10899
10900 * io/gzio.c (test_header): Don't reuse one buffer for all data.
10901 Use separate variables. Read only the file size at the end, but
10902 not the checksum that we don't use.
10903
10904 * kern/file.c (grub_file_read): Use void pointer for the buffer.
10905 Adjust all callers.
10906
10907 * kern/ieee1275/openfw.c: Remove libc includes.
10908 * kern/ieee1275/cmain.c: Likewise.
10909 * include/grub/ieee1275/ieee1275.h: Likewise.
10910
10911 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
10912 compiler warnings.
10913
10914 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
10915
10916 * Makefile.in: Remove all trailing whitespace.
10917 * conf/i386-pc.rmk: Likewise.
10918 * conf/powerpc-ieee1275.rmk: Likewise.
10919 * conf/sparc64-ieee1275.rmk: Likewise.
10920 * docs/grub.texi: Likewise.
10921 * docs/texinfo.tex: Likewise.
10922 * disk/fs_uuid.c: Likewise.
10923 * disk/lvm.c: Likewise.
10924 * disk/scsi.c: Likewise.
10925 * disk/ata.c: Likewise.
10926 * disk/ieee1275/ofdisk.c: Likewise.
10927 * disk/i386/pc/biosdisk.c: Likewise.
10928 * disk/host.c: Likewise.
10929 * disk/raid.c: Likewise.
10930 * disk/efi/efidisk.c: Likewise.
10931 * disk/usbms.c: Likewise.
10932 * disk/memdisk.c: Likewise.
10933 * disk/loopback.c: Likewise.
10934 * kern/powerpc/dl.c: Likewise.
10935 * kern/device.c: Likewise.
10936 * kern/dl.c: Likewise.
10937 * kern/sparc64/dl.c: Likewise.
10938 * kern/ieee1275/ieee1275.c: Likewise.
10939 * kern/term.c: Likewise.
10940 * kern/fs.c: Likewise.
10941 * kern/i386/dl.c: Likewise.
10942 * kern/i386/pc/startup.S: Likewise.
10943 * kern/i386/pc/init.c: Likewise.
10944 * kern/i386/pc/mmap.c: Likewise.
10945 * kern/i386/pc/lzo1x.S: Likewise.
10946 * kern/i386/ieee1275/init.c: Likewise.
10947 * kern/i386/realmode.S: Likewise.
10948 * kern/i386/tsc.c: Likewise.
10949 * kern/partition.c: Likewise.
10950 * kern/corecmd.c: Likewise.
10951 * kern/file.c: Likewise.
10952 * kern/efi/efi.c: Likewise.
10953 * kern/efi/init.c: Likewise.
10954 * kern/efi/mm.c: Likewise.
10955 * kern/main.c: Likewise.
10956 * kern/err.c: Likewise.
10957 * kern/env.c: Likewise.
10958 * kern/disk.c: Likewise.
10959 * kern/generic/millisleep.c: Likewise.
10960 * kern/generic/rtc_get_time_ms.c: Likewise.
10961 * kern/misc.c: Likewise.
10962 * kern/parser.c: Likewise.
10963 * genmk.rb: Likewise.
10964 * configure.ac: Likewise.
10965 * boot/i386/pc/diskboot.S: Likewise.
10966 * boot/i386/pc/pxeboot.S: Likewise.
10967 * boot/i386/pc/boot.S: Likewise.
10968 * boot/i386/pc/lnxboot.S: Likewise.
10969 * boot/i386/pc/cdboot.S: Likewise.
10970 * parttool/pcpart.c: Likewise.
10971 * video/readers/tga.c: Likewise.
10972 * video/video.c: Likewise.
10973 * video/bitmap.c: Likewise.
10974 * lib/envblk.c: Likewise.
10975 * lib/i386/setjmp.S: Likewise.
10976 * fs/xfs.c: Likewise.
10977 * fs/afs.c: Likewise.
10978 * fs/fat.c: Likewise.
10979 * fs/ntfs.c: Likewise.
10980 * fs/udf.c: Likewise.
10981 * fs/affs.c: Likewise.
10982 * fs/iso9660.c: Likewise.
10983 * fs/hfs.c: Likewise.
10984 * fs/fshelp.c: Likewise.
10985 * fs/ext2.c: Likewise.
10986 * fs/jfs.c: Likewise.
10987 * fs/reiserfs.c: Likewise.
10988 * fs/hfsplus.c: Likewise.
10989 * fs/minix.c: Likewise.
10990 * fs/cpio.c: Likewise.
10991 * fs/sfs.c: Likewise.
10992 * fs/ufs.c: Likewise.
10993 * efiemu/prepare.c: Likewise.
10994 * efiemu/loadcore_common.c: Likewise.
10995 * efiemu/runtime/efiemu.sh: Likewise.
10996 * efiemu/runtime/efiemu.S: Likewise.
10997 * efiemu/runtime/efiemu.c: Likewise.
10998 * efiemu/pnvram.c: Likewise.
10999 * efiemu/main.c: Likewise.
11000 * efiemu/i386/pc/cfgtables.c: Likewise.
11001 * efiemu/i386/loadcore64.c: Likewise.
11002 * efiemu/i386/loadcore32.c: Likewise.
11003 * efiemu/loadcore.c: Likewise.
11004 * efiemu/symbols.c: Likewise.
11005 * efiemu/mm.c: Likewise.
11006 * include/grub/autoefi.h: Likewise.
11007 * include/grub/datetime.h: Likewise.
11008 * include/grub/term.h: Likewise.
11009 * include/grub/hfs.h: Likewise.
11010 * include/grub/lvm.h: Likewise.
11011 * include/grub/i386/tsc.h: Likewise.
11012 * include/grub/i386/linux.h: Likewise.
11013 * include/grub/i386/xnu.h: Likewise.
11014 * include/grub/i386/efiemu.h: Likewise.
11015 * include/grub/i386/pc/biosdisk.h: Likewise.
11016 * include/grub/i386/pc/memory.h: Likewise.
11017 * include/grub/i386/pc/vbe.h: Likewise.
11018 * include/grub/parttool.h: Likewise.
11019 * include/grub/video.h: Likewise.
11020 * include/grub/memory.h: Likewise.
11021 * include/grub/fs.h: Likewise.
11022 * include/grub/partition.h: Likewise.
11023 * include/grub/xnu.h: Likewise.
11024 * include/grub/efi/api.h: Likewise.
11025 * include/grub/efi/pe32.h: Likewise.
11026 * include/grub/efi/memory.h: Likewise.
11027 * include/grub/multiboot.h: Likewise.
11028 * include/grub/usbdesc.h: Likewise.
11029 * include/grub/multiboot2.h: Likewise.
11030 * include/grub/acpi.h: Likewise.
11031 * include/grub/efiemu/efiemu.h: Likewise.
11032 * include/grub/disk.h: Likewise.
11033 * include/grub/ieee1275/ieee1275.h: Likewise.
11034 * include/grub/net.h: Likewise.
11035 * include/grub/machoload.h: Likewise.
11036 * include/grub/macho.h: Likewise.
11037 * include/multiboot.h: Likewise.
11038 * genmoddep.awk: Likewise.
11039 * normal/main.c: Likewise.
11040 * normal/menu_entry.c: Likewise.
11041 * normal/menu_viewer.c: Likewise.
11042 * normal/completion.c: Likewise.
11043 * normal/cmdline.c: Likewise.
11044 * normal/misc.c: Likewise.
11045 * normal/datetime.c: Likewise.
11046 * bus/usb/usbtrans.c: Likewise.
11047 * bus/usb/ohci.c: Likewise.
11048 * bus/usb/uhci.c: Likewise.
11049 * bus/usb/usb.c: Likewise.
11050 * mmap/efi/mmap.c: Likewise.
11051 * mmap/i386/pc/mmap_helper.S: Likewise.
11052 * mmap/i386/pc/mmap.c: Likewise.
11053 * mmap/i386/mmap.c: Likewise.
11054 * mmap/i386/uppermem.c: Likewise.
11055 * mmap/mmap.c: Likewise.
11056 * commands/acpi.c: Likewise.
11057 * commands/echo.c: Likewise.
11058 * commands/blocklist.c: Likewise.
11059 * commands/loadenv.c: Likewise.
11060 * commands/usbtest.c: Likewise.
11061 * commands/boot.c: Likewise.
11062 * commands/parttool.c: Likewise.
11063 * commands/search.c: Likewise.
11064 * commands/cat.c: Likewise.
11065 * commands/i386/pc/play.c: Likewise.
11066 * commands/i386/pc/drivemap.c: Likewise.
11067 * commands/i386/pc/vbeinfo.c: Likewise.
11068 * commands/i386/pc/acpi.c: Likewise.
11069 * commands/i386/pc/vbetest.c: Likewise.
11070 * commands/ls.c: Likewise.
11071 * commands/cmp.c: Likewise.
11072 * commands/test.c: Likewise.
11073 * commands/efi/acpi.c: Likewise.
11074 * commands/gptsync.c: Likewise.
11075 * commands/help.c: Likewise.
11076 * partmap/amiga.c: Likewise.
11077 * partmap/apple.c: Likewise.
11078 * partmap/acorn.c: Likewise.
11079 * partmap/pc.c: Likewise.
11080 * partmap/sun.c: Likewise.
11081 * partmap/gpt.c: Likewise.
11082 * script/sh/lexer.c: Likewise.
11083 * script/sh/function.c: Likewise.
11084 * font/font.c: Likewise.
11085 * font/font_cmd.c: Likewise.
11086 * loader/powerpc/ieee1275/linux.c: Likewise.
11087 * loader/efi/chainloader.c: Likewise.
11088 * loader/multiboot_loader.c: Likewise.
11089 * loader/macho.c: Likewise.
11090 * loader/i386/multiboot.c: Likewise.
11091 * loader/i386/linux.c: Likewise.
11092 * loader/i386/pc/linux.c: Likewise.
11093 * loader/i386/pc/multiboot2.c: Likewise.
11094 * loader/i386/pc/chainloader.c: Likewise.
11095 * loader/i386/pc/xnu.c: Likewise.
11096 * loader/i386/bsd_trampoline.S: Likewise.
11097 * loader/i386/efi/linux.c: Likewise.
11098 * loader/i386/multiboot_elfxx.c: Likewise.
11099 * loader/i386/bsd_helper.S: Likewise.
11100 * loader/i386/bsd.c: Likewise.
11101 * loader/i386/linux_trampoline.S: Likewise.
11102 * loader/i386/xnu_helper.S: Likewise.
11103 * loader/i386/xnu.c: Likewise.
11104 * loader/i386/bsd_pagetable.c: Likewise.
11105 * loader/i386/multiboot_helper.S: Likewise.
11106 * loader/xnu.c: Likewise.
11107 * loader/xnu_resume.c: Likewise.
11108 * io/gzio.c: Likewise.
11109 * term/efi/console.c: Likewise.
11110 * term/terminfo.c: Likewise.
11111 * term/ieee1275/ofconsole.c: Likewise.
11112 * term/i386/pc/serial.c: Likewise.
11113 * term/i386/pc/vesafb.c: Likewise.
11114 * term/i386/pc/vga.c: Likewise.
11115 * term/usb_keyboard.c: Likewise.
11116 * term/gfxterm.c: Likewise.
11117 * aclocal.m4: Likewise.
11118 * util/lvm.c: Likewise.
11119 * util/grub.d/30_os-prober.in: Likewise.
11120 * util/grub.d/10_hurd.in: Likewise.
11121 * util/console.c: Likewise.
11122 * util/grub-macho2img.c: Likewise.
11123 * util/grub-probe.c: Likewise.
11124 * util/hostfs.c: Likewise.
11125 * util/i386/pc/grub-mkimage.c: Likewise.
11126 * util/i386/pc/grub-setup.c: Likewise.
11127 * util/i386/efi/grub-mkimage.c: Likewise.
11128 * util/grub-mkconfig.in: Likewise.
11129 * util/raid.c: Likewise.
11130 * util/resolve.c: Likewise.
11131 * util/grub-mkdevicemap.c: Likewise.
11132 * util/grub-emu.c: Likewise.
11133 * util/getroot.c: Likewise.
11134 * util/hostdisk.c: Likewise.
11135 * util/usb.c: Likewise.
11136 * util/grub-editenv.c: Likewise.
11137 * util/misc.c: Likewise.
11138
11139 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
11140
11141 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
11142 `genparttoollist.sh'.
11143 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
11144 Add `*.sh' to the list find searches for and change `mdate.sh'
11145 to `mdate-sh'.
11146
11147 2009-06-10 Pavel Roskin <proski@gnu.org>
11148
11149 * include/grub/multiboot2.h: Provide compatibility defines for
11150 multiboot2.h.
11151 * include/multiboot2.h: Include stdint.h only if needed, using
11152 angle brackets.
11153 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
11154 grub/multiboot2.h.
11155 * loader/ieee1275/multiboot2.c: Likewise.
11156 * loader/multiboot2.c: Likewise.
11157 * loader/multiboot_loader.c: Likewise.
11158
11159 * configure.ac: Use -nostdlib when probing for the target. It
11160 should not be required to have libc for the target.
11161
11162 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
11163 they fail without libc headers for the target.
11164 * include/grub/powerpc/libgcc.h: Use weak attribute for all
11165 exports.
11166 * include/grub/sparc64/libgcc.h: Likewise. Don't use
11167 preprocessor conditionals.
11168
11169 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
11170 build system doesn't need to be aware of the tar.c internals.
11171
11172 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
11173
11174 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
11175
11176 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
11177
11178 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
11179 disk limit to 26 for IDE, Virtio, Xen and SCSI.
11180
11181 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
11182
11183 * util/i386/pc/grub-install.in: Change the error message if UUIDs
11184 aren't available if ata.mod gets used.
11185
11186 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
11187
11188 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
11189 initialising controller.
11190 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
11191
11192 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
11193
11194 * util/i386/pc/grub-install.in: Add a parameter --disk-module
11195 to choose between ata and biosdisk module on i386-pc.
11196
11197 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
11198
11199 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
11200 Subclass and Programming Interface fields in terms of the 3 byte
11201 Class Code register.
11202 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
11203
11204 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
11205 interface is OHCI. Add grub_dprintf for symmetry with
11206 bus/usb/uhci.c.
11207 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
11208 interface is UHCI. Add interf variable for programming
11209 interface. Print interface with class/subclass.
11210
11211 * bus/usb/ohci.c: Set interf with correct field.
11212
11213 * bus/usb/uhci.c: Remove unneeded doubled lines.
11214 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
11215 Remove whitespace inside comment.
11216
11217 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
11218
11219 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
11220 as fallback an equivalent option without depth.
11221
11222 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
11223
11224 Not fail if unable to retrieve C/H/S on LBA disks
11225
11226 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
11227 if unable to retrieve C/H/S on LBA disks
11228
11229 2009-06-08 Pavel Roskin <proski@gnu.org>
11230
11231 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
11232 about aliasing.
11233
11234 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
11235
11236 * Makefile.in (uninstall): Remove all $lib_DATA files.
11237
11238 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
11239
11240 Bugfix: install on partitionless device
11241
11242 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
11243 is a whole disk
11244
11245 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
11246
11247 * Makefile.in (uninstall): Remove all $include_DATA files.
11248
11249 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
11250
11251 * commands/true.c: New file. Implement the true and false commands.
11252 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
11253 (true_mod_SOURCES): New variable.
11254 (true_mod_CFLAGS): Likewise.
11255 (true_mod_LDFLAGS): Likewise.
11256
11257 2009-06-05 Colin D Bennett <colin@gibibit.com>
11258
11259 Optimized font character lookup using binary search instead of linear
11260 search. Fonts now are required to have the character index ordered by
11261 code point.
11262
11263 * font/font.c (load_font_index): Verify that fonts have ordered
11264 character indices.
11265 (find_glyph): Use binary search instead of linear search to find a
11266 character in a font.
11267
11268 2009-06-05 Michael Scherer <misc@mandriva.org>
11269
11270 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
11271 uses case sensitive btree.
11272 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
11273 only for case insensitive filesystems.
11274
11275 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
11276
11277 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
11278 * conf/common.rmk (search_mod_CFLAGS): likewise
11279
11280 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11281
11282 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
11283 compensate a compiler bug
11284
11285 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11286
11287 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
11288 instead of '\b'
11289
11290 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11291
11292 Definitions for creating asm symbols with Apple's CC
11293
11294 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
11295 [APPLE_CC] (VARIABLE): likewise
11296
11297 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11298
11299 Disable lnxboot.img when compiled
11300 with Apple's CC
11301
11302 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
11303 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
11304 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
11305 [! APPLE_CC] (CODE_LENG): skip
11306 [! APPLE_CC] (setup_sects): likewise
11307 [! APPLE_CC]: skip filling
11308
11309 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11310
11311 Address in trampolines based on 32-bit registers when compiled
11312 with Apple's CC
11313
11314 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
11315 for addresses
11316 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
11317
11318 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11319
11320 Avoid aliases when compiling with Apple's CC for PCBIOS machine
11321
11322 * kern/misc.c [APPLE_CC] (memcpy): new function
11323 [APPLE_CC] (memmove): likewise
11324 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
11325 (memcpy): define alias conditionally on !APPLE_CC
11326 (memset): likewise
11327 (abort): likewise
11328 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
11329 APPLE_CC are defined
11330 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
11331 (grub_assert_fail): make prototype conditional
11332
11333 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11334
11335 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
11336
11337 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
11338 grub-macho2img
11339 (CLEANFILES): add grub-macho2img
11340 (grub_macho2img_SOURCES): new variable
11341 * kern/i386/pc/startup.S (bss_start): new variable
11342 (bss_end): likewise
11343 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
11344 * util/grub-macho2img.c: new file
11345
11346 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11347
11348 Use objconv when compiling with Apple's CC
11349
11350 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
11351 (efiemu64.o): likewise
11352 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
11353 when compiling with Apple's CC
11354 (efiemu64_s.o): likewise
11355 * configure.ac: check for objconv when compiling with Apple's CC
11356 * genmk.rb: use objconv for modules when compiled with Apple's CC
11357
11358 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11359
11360 Define segment as well as section when compiling with
11361 Apple's CC
11362
11363 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
11364 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
11365 (efiemu_convert_pointer): likewise
11366 (efiemu_set_virtual_address_map): likewise
11367 (efiemu_convert_pointer): likewise
11368 (efiemu_getcrc32): likewise
11369 (init_crc32_table): likewise
11370 (reflect): likewise
11371 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
11372 (GRUB_MOD_DEP): likewise
11373
11374 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11375
11376 Allow a compilation without -mcmodel=large
11377
11378 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
11379 when compiled without -mcmodel=large
11380 (filter_memory_map): remove memory post 4 GiB when compiled
11381 without -mcmodel=large
11382 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
11383 TARGET_CFLAGS when -mcmodel=large isn't supported
11384
11385 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11386
11387 Remove nested functions in efiemu core
11388
11389 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
11390
11391 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11392
11393 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
11394
11395 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
11396 temporary storage
11397 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
11398 using Apple's CC
11399 (grub_cpu_is_tsc_supported): likewise
11400 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
11401
11402 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11403
11404 Absolute addressing through constant with Apple's cc
11405
11406 * kern/i386/pc/startup.S: Define necessary constants
11407 and address through it when using ABS with Apple's CC
11408 * boot/i386/pc/diskboot.S: likewise
11409 * boot/i386/pc/boot.S: likewise
11410 * boot/i386/pc/lnxboot.S: likewise
11411 * boot/i386/pc/cdboot.S: likewise
11412 * mmap/i386/pc/mmap_helper.S: likewise
11413 * commands/i386/pc/drivemap_int13h.S: likewise
11414
11415 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11416
11417 Check if compiler is apple cc
11418
11419 * Makefile.in (ASFLAGS): new variable
11420 (TARGET_ASFLAGS): likewise
11421 (TARGET_MODULE_FORMAT): likewise
11422 (TARGET_APPLE_CC): likewise
11423 (OBJCONV): likewise
11424 (TARGET_IMG_CFLAGS): likewise
11425 (TARGET_CPPFLAGS): add includedir
11426 * configure.ac: call grub_apple_cc and grub_apple_target_cc
11427 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
11428 Check for linker script only if compiler isn't Apple's CC
11429 (TARGET_MODULE_FORMAT): set
11430 (TARGET_APPLE_CC): likewise
11431 (TARGET_ASFLAGS): likewise
11432 (ASFLAGS): likewise
11433 Check for objcopy only if compiler isn't Apple's CC
11434 Check for BSS symbol only if compiler isn't Apple's CC
11435 * genmk.rb: adapt nm options if we use Apple's utils
11436 * aclocal.m4 (grub_apple_cc): new test
11437 (grub_apple_target_cc): likewise
11438
11439 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11440
11441 Simplify sed expressions and improve awk
11442
11443 * Makefile.in (install-local): simplify sed expression
11444 * gencmdlist.sh: likewise
11445 * genmoddep.awk: avoid adding module as a dependency of itself
11446
11447 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11448
11449 Add missing start symbols
11450
11451 * boot/i386/pc/boot.S: add start
11452 * boot/i386/pc/pxeboot.S: likewise
11453
11454 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11455
11456 Fix wrong assumptions with grub-mkimage on EFI
11457
11458 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
11459 (relocate_addresses): consider both r_addend and value at offset
11460 (make_mods_section): zerofill modinfo and header
11461 (convert_elf): write prefix here
11462
11463 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11464
11465 Use .asciz instead of .string
11466
11467 * i386/pc/diskboot.S: use .asciz instead of .string
11468 * i386/pc/boot.S: likewise
11469 * include/grub/dl.h (GRUB_MOD_DEP): likewise
11470 (GRUB_MOD_NAME): likewise
11471
11472 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11473
11474 gfxpayload support
11475
11476 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
11477 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
11478 (grub_video_setup): remove
11479 (grub_video_set_mode): new prototype
11480 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
11481 (vid_mode): remove
11482 (linux_vesafb_res): compile only on PCBIOS
11483 (grub_linux_boot): support gfxpayload
11484 * loader/i386/pc/xnu.c (video_hook): new function
11485 (grub_xnu_set_video): support gfxpayload
11486 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
11487 (DEFAULT_VIDEO_HEIGHT): likewise
11488 (DEFAULT_VIDEO_FLAGS): likewise
11489 (DEFAULT_VIDEO_MODE): new definition
11490 (video_hook): new function
11491 (grub_gfxterm_init): use grub_video_set_mode
11492 * util/grub.d/30_os-prober.in: remove explicit modesetting before
11493 loading xnu
11494 * video/video.c (grub_video_setup): removed
11495 (grub_video_set_mode): new function based on grub_gfxterm_init and
11496 grub_video_setup
11497
11498 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11499
11500 Avoid calling biosdisk in drivemap
11501
11502 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
11503 (revparse_biosdisk): likewise
11504 (list_mappings): derive name from id directly
11505 (grub_cmd_drivemap): use tryparse_diskstring
11506
11507 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11508
11509 Script fixes
11510
11511 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
11512 (grub_lexer_param): add tokenonhold
11513 (grub_script_create_cmdline): remove cmdline. All callers updated
11514 (grub_script_function_create): make functionname
11515 grub_script_arg. All callers updated
11516 (grub_script_execute_argument_to_string): new prototype
11517 * kern/parser.c (state_transitions): reorder
11518 (grub_parser_cmdline_state): fix a bug and make more compact
11519 * script/sh/execute.c (grub_script_execute_argument_to_string):
11520 make global
11521 (grub_script_execute_cmdline): use new format
11522 * script/sh/function.c (grub_script_function_create): make functionname
11523 grub_script_arg. All callers updated
11524 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
11525 (grub_script_yylex): remove
11526 (grub_script_yylex2): renamed to ...
11527 (grub_script_yylex): ...renamed
11528 parse the expressions like a${b}c
11529 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
11530 (GRUB_PARSER_TOKEN_VAR): remove
11531 (GRUB_PARSER_TOKEN_NAME): likewise
11532 ("if"): declare as typeless
11533 ("while"): likewise
11534 ("function"): likewise
11535 ("else"): likewise
11536 ("then"): likewise
11537 ("fi"): likewise
11538 (text): remove
11539 (argument): likewise
11540 (script): accept empty scripts and make exit on error
11541 (arguments): use GRUB_PARSER_TOKEN_ARG
11542 (function): likewise
11543 (command): move error handling to script
11544 (menuentry): move grub_script_lexer_ref before
11545 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
11546 argument. All callers updated
11547
11548 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
11549
11550 Prevent GRUB from probing floppies during boot.
11551
11552 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
11553 * commands/search.c (options): Add --no-floppy.
11554 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
11555 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
11556 --no-floppy when searching for UUIDs.
11557
11558 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
11559
11560 Simplify the code duplication in commands/search.c.
11561
11562 * commands/search.c (search_label, search_fs_uuid): Merge into ...
11563 (search_fs): ... this. Update all users.
11564
11565 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
11566
11567 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
11568
11569 2009-05-28 Pavel Roskin <proski@gnu.org>
11570
11571 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
11572 Remove the original symlink explicitly.
11573
11574 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
11575 just one slash. That's how grub_fshelp_find_file() does it.
11576
11577 2009-05-26 Pavel Roskin <proski@gnu.org>
11578
11579 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
11580 to `str'.
11581
11582 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
11583 possibly unused.
11584
11585 2009-05-25 Christian Franke <franke@computer.org>
11586
11587 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
11588 register.
11589 (grub_atapi_identify): Add wait after drive select.
11590 (grub_ata_identify): Do more strict status register check before
11591 calling grub_atapi_identify (). Suppress error message if status
11592 register is 0x00 after command failure. Add status register
11593 check after PIO read to avoid bogus identify due to stuck DRQ.
11594 Thanks to Pavel Roskin for testing.
11595 (grub_device_initialize): Remove unsafe status register check.
11596 Thanks to 'phcoder' for problem report and patch.
11597 Prevent sign extension in debug message.
11598
11599 2009-05-23 Colin D Bennett <colin@gibibit.com>
11600
11601 Cleaned up `include/grub/normal.h'. Grouped prototypes by
11602 definition file, and functions defined in `normal/menu.c' have had
11603 their prototypes moved to `include/grub/menu.h' for consistency.
11604
11605 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
11606 from normal.h.
11607 (grub_menu_get_entry): Likewise.
11608 (grub_menu_get_timeout): Likewise.
11609 (grub_menu_set_timeout): Likewise.
11610 (grub_menu_execute_entry): Likewise.
11611 (grub_menu_execute_with_fallback): Likewise.
11612 (grub_menu_entry_run): Likewise.
11613
11614 * include/grub/normal.h: Re-ordered and grouped function
11615 prototypes by file that the function is defined in.
11616 (grub_menu_execute_callback): Removed; moved to menu.h.
11617 (grub_menu_get_entry): Likewise.
11618 (grub_menu_get_timeout): Likewise.
11619 (grub_menu_set_timeout): Likewise.
11620 (grub_menu_execute_entry): Likewise.
11621 (grub_menu_execute_with_fallback): Likewise.
11622 (grub_menu_entry_run): Likewise.
11623 (grub_menu_addentry): Renamed from this ...
11624 (grub_normal_add_menu_entry): ... to this.
11625
11626 * normal/main.c (grub_menu_addentry): Renamed from this ...
11627 (grub_normal_add_menu_entry): ... to this.
11628
11629 * script/sh/execute.c (grub_script_execute_menuentry): Update
11630 reference to renamed grub_menu_addentry function.
11631
11632 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
11633
11634 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
11635
11636 2009-05-22 Pavel Roskin <proski@gnu.org>
11637
11638 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
11639 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
11640 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
11641 compiling for the i386 targets, but not for the utilities.
11642
11643 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
11644 to grub_uint8_t.
11645 (grub_root_drive): Likewise.
11646 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
11647 remove alignment.
11648 (grub_root_drive): Change size to byte.
11649 (grub_start_addr): Remove.
11650 (grub_end_addr): Likewise.
11651 (grub_apm_bios_info): Likewise.
11652
11653 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
11654
11655 * normal/i386: Remove.
11656 * normal/powerpc: Likewise.
11657 * normal/sparc64: Likewise.
11658 * normal/x86_64: Likewise.
11659
11660 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
11661
11662 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
11663 * loader/i386/linux_trampoline.S: Fix indentation
11664 * loader/i386/xnu_helper.S: Likewise
11665
11666 2009-05-18 Colin D Bennett <colin@gibibit.com>
11667
11668 Display error messages when parsing a Lua statement fails.
11669 Previously, executing a syntactically invalid statement like
11670 ")foo" or "bar;" would silently fail.
11671
11672 * script/lua/grub_main.c (handle_lua_error): New function.
11673 (grub_lua_parse_line): Improved reporting of Lua parser and
11674 execution errors.
11675
11676 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11677
11678 Remove -Werror which causes build to fail on some systems
11679
11680 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
11681 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
11682 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
11683
11684 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11685
11686 trampoline for linux on 64-bit platform
11687
11688 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
11689 loader/i386/efi/linux_trampoline.S
11690 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
11691 declaration
11692 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
11693 here
11694 * loader/i386/linux_trampoline.S: moved here
11695 * loader/i386/efi/linux.c (allocate_pages): reserve space for
11696 trampoline
11697 (jumpvector): removed
11698 (grub_linux_trampoline_start): new declaration
11699 (grub_linux_trampoline_end): likewise
11700 (grub_linux_boot): use trampoline when on 64-bit platform
11701 * loader/i386/linux.c: likewise
11702
11703 2009-05-16 Pavel Roskin <proski@gnu.org>
11704
11705 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
11706 const to avoid a warning.
11707 (grub_lua_setenv): Likewise.
11708 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
11709 lmsg to fix a warning.
11710
11711 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11712
11713 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
11714 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11715 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
11716 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11717 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11718 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11719 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11720 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11721
11722 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11723
11724 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
11725
11726 2009-05-16 Bean <bean123ch@gmail.com>
11727
11728 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
11729 (lua_mod_SOURCES): New variable.
11730 (lua_mod_CFLAGS): Likewise.
11731 (lua_mod_LDFLAGS): Likewise.
11732
11733 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
11734 (setjmp_mod_SOURCES): New variable.
11735 (setjmp_mod_CFLAGS): Likewise.
11736 (setjmp_LDFLAGS): Likewise.
11737
11738 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
11739 (setjmp_mod_SOURCES): New variable.
11740 (setjmp_mod_CFLAGS): Likewise.
11741 (setjmp_LDFLAGS): Likewise.
11742
11743 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11744 (setjmp_mod_SOURCES): New variable.
11745 (setjmp_mod_CFLAGS): Likewise.
11746 (setjmp_LDFLAGS): Likewise.
11747
11748 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11749 (setjmp_mod_SOURCES): New variable.
11750 (setjmp_mod_CFLAGS): Likewise.
11751 (setjmp_LDFLAGS): Likewise.
11752
11753 * normal/i386/setjmp.S: Moved from here ...
11754 * lib/i386/setjmp.S: ... Moved here
11755 * normal/x86_64/setjmp.S: Moved from here ...
11756 * lib/x86_64/setjmp.S: ... Moved here
11757 * normal/powerpc/setjmp.S: Moved from here ...
11758 * lib/powerpc/setjmp.S: ... Moved here
11759 * normal/sparc64/setjmp.S: Moved from here ...
11760 * lib/sparc64/setjmp.S: ... Moved here
11761
11762 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
11763 returns_twice in mingw.
11764
11765 * script/lua/grub_lib.c: New file.
11766 * script/lua/grub_lib.h: Likewise.
11767 * script/lua/grub_lua.h: Likewise.
11768 * script/lua/grub_main.c: Likewise.
11769 * script/lua/lapi.c: Likewise.
11770 * script/lua/lapi.h: Likewise.
11771 * script/lua/lauxlib.c: Likewise.
11772 * script/lua/lauxlib.h: Likewise.
11773 * script/lua/lbaselib.c: Likewise.
11774 * script/lua/lcode.c: Likewise.
11775 * script/lua/lcode.h: Likewise.
11776 * script/lua/ldblib.c: Likewise.
11777 * script/lua/ldebug.c: Likewise.
11778 * script/lua/ldebug.h: Likewise.
11779 * script/lua/ldo.c: Likewise.
11780 * script/lua/ldo.h: Likewise.
11781 * script/lua/ldump.c: Likewise.
11782 * script/lua/lfunc.c: Likewise.
11783 * script/lua/lfunc.h: Likewise.
11784 * script/lua/lgc.c: Likewise.
11785 * script/lua/lgc.h: Likewise.
11786 * script/lua/linit.c: Likewise.
11787 * script/lua/liolib.c: Likewise.
11788 * script/lua/llex.c: Likewise.
11789 * script/lua/llex.h: Likewise.
11790 * script/lua/llimits.h: Likewise.
11791 * script/lua/lmathlib.c: Likewise.
11792 * script/lua/lmem.c: Likewise.
11793 * script/lua/lmem.h: Likewise.
11794 * script/lua/loadlib.c: Likewise.
11795 * script/lua/lobject.c: Likewise.
11796 * script/lua/lobject.h: Likewise.
11797 * script/lua/lopcodes.c: Likewise.
11798 * script/lua/lopcodes.h: Likewise.
11799 * script/lua/loslib.c: Likewise.
11800 * script/lua/lparser.c: Likewise.
11801 * script/lua/lparser.h: Likewise.
11802 * script/lua/lstate.c: Likewise.
11803 * script/lua/lstate.h: Likewise.
11804 * script/lua/lstring.c: Likewise.
11805 * script/lua/lstring.h: Likewise.
11806 * script/lua/lstrlib.c: Likewise.
11807 * script/lua/ltable.c: Likewise.
11808 * script/lua/ltable.h: Likewise.
11809 * script/lua/ltablib.c: Likewise.
11810 * script/lua/ltm.c: Likewise.
11811 * script/lua/ltm.h: Likewise.
11812 * script/lua/lua.h: Likewise.
11813 * script/lua/luaconf.h: Likewise.
11814 * script/lua/lualib.h: Likewise.
11815 * script/lua/lundump.c: Likewise.
11816 * script/lua/lundump.h: Likewise.
11817 * script/lua/lvm.c: Likewise.
11818 * script/lua/lvm.h: Likewise.
11819 * script/lua/lzio.c: Likewise.
11820 * script/lua/lzio.h: Likewise.
11821
11822 2009-05-16 Bean <bean123ch@gmail.com>
11823
11824 * include/grub/kernel.h (grub_module_header_types): Add type
11825 OBJ_TYPE_CONFIG.
11826
11827 * kern/main.c (grub_load_config): New function.
11828 (grub_main): Call grub_load_config to read boot config.
11829
11830 * grub-mkimage (generate_image): New parameter config_path.
11831 (options): New option --config.
11832 (main): Parse --config option, and pass it to generate_image.
11833
11834 2009-05-14 Christian Franke <franke@computer.org>
11835
11836 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
11837 This fixes build on Cygwin.
11838
11839 2009-05-14 Pavel Roskin <proski@gnu.org>
11840
11841 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
11842 jump. This saves two bytes, so the typical case of 2 swapped
11843 drives would fit 32 bytes.
11844
11845 2009-05-13 Pavel Roskin <proski@gnu.org>
11846
11847 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
11848 grub_uint32_t to avoid a warning.
11849
11850 * loader/i386/linux.c (allocate_pages): When assigning
11851 real_mode_mem, cast through grub_size_t to fix a warning. The
11852 code already makes sure that the value would fit a pointer.
11853 (grub_linux_setup_video): Cast render_target->data to
11854 grub_size_t to fix a warning.
11855
11856 2009-05-13 Javier Martín <lordhabbit@gmail.com>
11857
11858 * commands/i386/pc/drivemap.c: New file - implement drivemap
11859 command.
11860 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
11861 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
11862
11863 2009-05-13 Pavel Roskin <proski@gnu.org>
11864
11865 * util/i386/pc/grub-setup.c (setup): Remove unused variable
11866 embedding_area_exists.
11867
11868 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
11869
11870 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
11871 it easier to understand / work with.
11872 Improve warning messages for cases where there's no embedding area,
11873 or when it is too small (or core.img too large).
11874
11875 2009-05-13 Pavel Roskin <proski@gnu.org>
11876
11877 * loader/i386/pc/multiboot2.c: Add necessary includes for
11878 grub_multiboot2_real_boot().
11879
11880 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
11881 PX record is always little-endian. We only need the lower 2
11882 bytes of the mode.
11883
11884 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
11885 facilitate code reuse.
11886 (grub_cpio_mount): Use "struct head", not a char buffer. This
11887 fixes a warning reported by gcc 4.4.
11888
11889 * kernel/disk.c (grub_disk_read): Use void pointer for the
11890 buffer.
11891 (grub_disk_write): Use const void pointer for the buffer.
11892 Adjust all callers. Remove unnecessary casts.
11893
11894 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
11895
11896 * util/i386/pc/grub-install.in: Update copyright year.
11897
11898 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11899
11900 gptsync
11901
11902 * commands/gptsync.c: new file
11903 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
11904 (gptsync_mod_SOURCES): new variable
11905 (gptsync_mod_CFLAGS): likewise
11906 (gptsync_mod_LDFLAGS): likewise
11907 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
11908 new definition
11909 (GRUB_PC_PARTITION_TYPE_HFS): likewise
11910 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
11911 * conf/i386-ieee1275.rmk: likewise
11912 * conf/i386-pc.rmk: likewise
11913 * conf/powerpc-ieee1275.rmk: likewise
11914
11915 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11916
11917 Fixed grub-emu
11918
11919 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
11920 (grub_dl_ref): likewise
11921
11922 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
11923
11924 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
11925 split in two functions (one for msdos and one for gpt).
11926
11927 2009-05-08 Pavel Roskin <proski@gnu.org>
11928
11929 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
11930 not modified.
11931
11932 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
11933 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
11934 Initialize them with -1. Add sanity check for bad1. Eliminate
11935 nerr variable.
11936
11937 2009-05-08 David S. Miller <davem@davemloft.net>
11938
11939 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
11940
11941 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
11942
11943 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
11944 existence.
11945
11946 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
11947
11948 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
11949 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
11950
11951 2009-05-05 David S. Miller <davem@davemloft.net>
11952
11953 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
11954
11955 2009-05-05 Pavel Roskin <proski@gnu.org>
11956
11957 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
11958 of grub_dl_ref() and grub_dl_unref().
11959 * commands/parttool.c: Remove preprocessor conditionals around
11960 grub_dl_ref() and grub_dl_unref().
11961 * fs/affs.c: Likewise.
11962 * fs/afs.c: Likewise.
11963 * fs/cpio.c: Likewise.
11964 * fs/ext2.c: Likewise.
11965 * fs/fat.c: Likewise.
11966 * fs/hfs.c: Likewise.
11967 * fs/hfsplus.c: Likewise.
11968 * fs/iso9660.c: Likewise.
11969 * fs/jfs.c: Likewise.
11970 * fs/minix.c: Likewise.
11971 * fs/ntfs.c: Likewise.
11972 * fs/reiserfs.c: Likewise.
11973 * fs/sfs.c: Likewise.
11974 * fs/udf.c: Likewise.
11975 * fs/ufs.c: Likewise.
11976 * fs/xfs.c: Likewise.
11977 * include/grub/dl.h: Likewise.
11978 * loader/xnu.c: Likewise.
11979
11980 2009-05-04 Pavel Roskin <proski@gnu.org>
11981
11982 * commands/acpi.c: Remove unused variable my_mod.
11983 * partmap/amiga.c: Likewise.
11984 * partmap/apple.c: Likewise.
11985 * partmap/gpt.c: Likewise.
11986 * partmap/pc.c: Likewise.
11987 * partmap/sun.c: Likewise.
11988 * term/gfxterm.c: Likewise.
11989 * term/i386/pc/vesafb.c: Likewise.
11990 * term/i386/pc/vga.c: Likewise.
11991
11992 2009-05-04 David S. Miller <davem@davemloft.net>
11993
11994 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
11995 pointer args to grub_ieee1275_get_property().
11996
11997 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
11998
11999 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
12000 devices, and do not traverse down under controller nodes.
12001
12002 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
12003 (grub_ofdisk_open): Use it to un-escape "," characters.
12004 * kern/disk.c (find_part_sep): New.
12005 (grub_disk_open): Use it to find the first non-escaped ','
12006 character in the disk name.
12007 * util/ieee1275/devicemap.c (escape_of_path): New.
12008 (grub_util_emit_devicemap_entry): Use it.
12009 * util/sparc64/ieee1275/grub-install.in: Update script to
12010 strip partition specifiers properly by not triggering on
12011 '\' escaped ',' characters.
12012
12013 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12014
12015 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
12016 to 0x300.
12017 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
12018 resolutions.
12019 (linux_vesafb_modes): Add a lot of additional modes to the list (based
12020 on documentation from Wikipedia).
12021
12022 2009-05-04 Pavel Roskin <proski@gnu.org>
12023
12024 * disk/ata.c: Spelling fixes.
12025 * disk/raid.c: Likewise.
12026 * disk/usbms.c: Likewise.
12027 * disk/dmraid_nvidia.c: Likewise.
12028 * kern/ieee1275/openfw.c: Likewise.
12029 * kern/ieee1275/init.c: Likewise.
12030 * kern/ieee1275/cmain.c: Likewise.
12031 * boot/i386/pc/cdboot.S: Likewise.
12032 * video/readers/png.c: Likewise.
12033 * video/i386/pc/vbe.c: Likewise.
12034 * fs/udf.c: Likewise.
12035 * fs/hfs.c: Likewise.
12036 * fs/reiserfs.c: Likewise.
12037 * efiemu/runtime/efiemu.c: Likewise.
12038 * efiemu/main.c: Likewise.
12039 * efiemu/mm.c: Likewise.
12040 * include/grub/elf.h: Likewise.
12041 * include/grub/xnu.h: Likewise.
12042 * include/grub/usbdesc.h: Likewise.
12043 * include/grub/usb.h: Likewise.
12044 * include/grub/script_sh.h: Likewise.
12045 * include/grub/lib/LzmaEnc.h: Likewise.
12046 * include/grub/efiemu/efiemu.h: Likewise.
12047 * include/grub/command.h: Likewise.
12048 * normal/menu.c: Likewise.
12049 * normal/main.c: Likewise.
12050 * normal/datetime.c: Likewise.
12051 * bus/usb/uhci.c: Likewise.
12052 * mmap/i386/uppermem.c: Likewise.
12053 * mmap/mmap.c: Likewise.
12054 * commands/acpi.c: Likewise.
12055 * commands/test.c: Likewise.
12056 * partmap/apple.c: Likewise.
12057 * font/font.c: Likewise.
12058 * loader/sparc64/ieee1275/linux.c: Likewise.
12059 * loader/macho.c: Likewise.
12060 * loader/i386/bsd_trampoline.S: Likewise.
12061 * loader/i386/bsd.c: Likewise.
12062 * loader/xnu.c: Likewise.
12063 * term/i386/pc/vesafb.c: Likewise.
12064 * term/usb_keyboard.c: Likewise.
12065 * util/resolve.c: Likewise.
12066 * util/getroot.c: Likewise.
12067
12068 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
12069
12070 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
12071
12072 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12073
12074 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
12075 build error.
12076
12077 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12078
12079 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
12080 parameter only available on BIOS.
12081
12082 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
12083
12084 Removed wrong semicolon in declaration
12085
12086 * grub/misc.h (grub_dprintf): remove semicolon
12087
12088 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12089
12090 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
12091 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
12092 is done by grub_cmd_linux() now).
12093 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
12094 restore video to text mode.
12095 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
12096 indicates lack of "vga=" parameter. "vga=0" is mapped to
12097 `GRUB_LINUX_VID_MODE_NORMAL'.
12098
12099 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
12100
12101 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
12102 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
12103 and `normal/script.c'. Add `kern/rescue_reader.c',
12104 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
12105 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
12106 `grub_script.tab.c'.
12107
12108 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12109 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
12110 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12111 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
12112 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12113
12114 * Makefile.in: Remove duplicated 2008 in Copyright line.
12115
12116 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12117
12118 * util/misc.c (grub_util_warn): New function. Emits a warning
12119 unconditionally.
12120 * include/grub/util/misc.h (grub_util_warn): New declaration.
12121
12122 * util/i386/pc/grub-install.in: Understand --force and pass it down
12123 to grub-setup.
12124
12125 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
12126 down to setup().
12127 (setup): Improve error messages and add warnings when requested to
12128 install in odd layouts. Refuse to install using blocklists unless
12129 --force was set.
12130
12131 2009-05-04 martin f. krafft <madduck@madduck.net>
12132
12133 * disk/raid.c (grub_raid_scan_device): Improve debug message.
12134
12135 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
12136
12137 Updated copyright year
12138
12139 * fs/hfsplus.c: updated copyright year
12140
12141 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
12142
12143 HFS+ UUID
12144
12145 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
12146 in the space previously used by unused3
12147 (grub_hfsplus_uuid): new function
12148 (grub_hfsplus_fs): added uuid field
12149
12150 2009-05-03 Pavel Roskin <proski@gnu.org>
12151
12152 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
12153 suppress warnings. It's no longer needed.
12154 * disk/host.c: Likewise.
12155 * disk/ata_pthru.c: Likewise.
12156 * disk/loopback.c: Likewise.
12157 * hook/datehook.c: Likewise.
12158 * parttool/pcpart.c: Likewise.
12159 * fs/i386/pc/pxe.c: Likewise.
12160 * fs/ntfscomp.c: Likewise.
12161 * efiemu/main.c: Likewise.
12162 * mmap/mmap.c: Likewise.
12163 * commands/crc.c: Likewise.
12164 * commands/hexdump.c: Likewise.
12165 * commands/hdparm.c: Likewise.
12166 * commands/acpi.c: Likewise.
12167 * commands/echo.c: Likewise.
12168 * commands/minicmd.c: Likewise.
12169 * commands/blocklist.c: Likewise.
12170 * commands/memrw.c: Likewise.
12171 * commands/loadenv.c: Likewise.
12172 * commands/usbtest.c: Likewise.
12173 * commands/lsmmap.c: Likewise.
12174 * commands/boot.c: Likewise.
12175 * commands/parttool.c: Likewise.
12176 * commands/configfile.c: Likewise.
12177 * commands/search.c: Likewise.
12178 * commands/ieee1275/suspend.c: Likewise.
12179 * commands/cat.c: Likewise.
12180 * commands/i386/pc/pxecmd.c: Likewise.
12181 * commands/i386/pc/play.c: Likewise.
12182 * commands/i386/pc/halt.c: Likewise.
12183 * commands/i386/pc/vbeinfo.c: Likewise.
12184 * commands/i386/pc/vbetest.c: Likewise.
12185 * commands/lspci.c: Likewise.
12186 * commands/date.c: Likewise.
12187 * commands/handler.c: Likewise.
12188 * commands/ls.c: Likewise.
12189 * commands/test.c: Likewise.
12190 * commands/cmp.c: Likewise.
12191 * commands/efi/loadbios.c: Likewise.
12192 * commands/efi/fixvideo.c: Likewise.
12193 * commands/halt.c: Likewise.
12194 * commands/help.c: Likewise.
12195 * commands/reboot.c: Likewise.
12196 * hello/hello.c: Likewise.
12197 * script/sh/main.c: Likewise.
12198 * loader/xnu.c: Likewise.
12199 * term/terminfo.c: Likewise.
12200 * term/i386/pc/serial.c: Likewise.
12201 * term/usb_keyboard.c: Likewise.
12202
12203 2009-05-03 David S. Miller <davem@davemloft.net>
12204
12205 * normal/menu.c: Include grub/parser.h
12206
12207 2009-05-03 Pavel Roskin <proski@gnu.org>
12208
12209 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
12210 not char*.
12211 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
12212 Suggested by Javier Martín <lordhabbit@gmail.com>
12213
12214 * util/i386/pc/grub-mkrescue.in: Allow for the case when
12215 efiemu??.o doesn't exist.
12216 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
12217 copying.
12218
12219 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
12220
12221 FreeBSD 64-bit support
12222
12223 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
12224 and loader/i386/bsd_trampoline.S
12225 (bsd_mod_ASFLAGS): new variable
12226 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
12227 (FREEBSD_MODTYPE_KERNEL64): likewise
12228 (grub_bsd64_trampoline_start): likewise
12229 (grub_bsd64_trampoline_end): likewise
12230 (grub_bsd64_trampoline_selfjump): likewise
12231 (grub_bsd64_trampoline_gdt): likewise
12232 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
12233 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
12234 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
12235 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
12236 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
12237 of "attrib" member
12238 * loader/i386/bsd_pagetable.c: new file
12239 * loader/i386/bsd_trampoline.S: likewise
12240 * loader/i386/bsd.c (ALIGN_QWORD): new macro
12241 (ALIGN_VAR): likewise
12242 (entry_hi): new variable
12243 (kern_end_mdofs): likewise
12244 (is_64bit): likewise
12245 (grub_freebsd_add_meta): use ALIGN_VAR
12246 (grub_e820_mmap): new declaration
12247 (grub_freebsd_add_mmap): new function
12248 (grub_freebsd_add_meta_module): support 64 bit kernels
12249 (grub_freebsd_list_modules): use ALIGN_VAR
12250 (gdt_descriptor): new declaration
12251 (grub_freebsd_boot): support 64 bit kernels
12252 (grub_bsd_elf64_hook): new function
12253 (grub_bsd_load_elf): support elf64
12254
12255 2009-05-03 Bean <bean123ch@gmail.com>
12256
12257 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
12258 after we get the result of if statement.
12259
12260 2009-05-03 Bean <bean123ch@gmail.com>
12261
12262 * Makefile.in (enable_efiemu): New variable.
12263
12264 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
12265 set.
12266 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
12267 path.
12268 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
12269 path, add -mno-red-zone option.
12270 (efiemu64_s.o): Likewise.
12271 (efiemu64.o): Use macro $^ for source file.
12272
12273 * configure.ac (--enable-efiemu): New option.
12274
12275 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
12276
12277 xnu support
12278
12279 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
12280 (pkglib_MODULES): add xnu.mod
12281 (xnu_mod_SOURCES): new variable
12282 (xnu_mod_CFLAGS): likewise
12283 (xnu_mod_LDFLAGS): likewise
12284 (xnu_mod_ASFLAGS): likewise
12285 * conf/i386-pc.rmk: likewise
12286 * conf/x86_64-efi.rmk: likewise
12287 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
12288 new declaration
12289 * include/grub/i386/macho.h: new file
12290 * include/grub/i386/xnu.h: likewise
12291 * include/grub/macho.h: likewise
12292 * include/grub/machoload.h: likewise
12293 * include/grub/x86_64/macho.h: likewise
12294 * include/grub/x86_64/xnu.h: likewise
12295 * include/grub/xnu.h: likewise
12296 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
12297 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
12298 * loader/i386/efi/xnu.c: new file
12299 * loader/i386/pc/xnu.c: likewise
12300 * loader/i386/xnu.c: likewise
12301 * loader/i386/xnu_helper.S: likewise
12302 * loader/macho.c: likewise
12303 * loader/xnu.c: likewise
12304 * loader/xnu_resume.c: likewise
12305 * util/grub-dumpdevtree: likewise
12306 * include/grub/i386/pit.h: include grub/err.h
12307 (grub_pit_wait): export
12308 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
12309
12310 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12311
12312 Efiemu
12313
12314 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
12315 _linux_efi, linux_efi.
12316 new files in grub-emu
12317 new targets efiemu32.o and efiemu64.o
12318 * loader/linux_normal_efiemu.c: likewise
12319 * loader/i386/efi/linux.c: added preliminary efiemu support
12320 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
12321 files to copy
12322 * include/grub/autoefi.h: new file
12323 * include/grub/i386/efiemu.h: likewise
12324 * include/grub/i386/pc/efiemu.h: likewise
12325 * include/grub/efi/api.h: add LL suffix when necessary
12326 new definitions relating to tables
12327 * include/grub/efiemu/efiemu.h: new file
12328 * include/grub/efiemu/runtime.h: likewise
12329 * efiemu/prepare.c: likewise
12330 * efiemu/loadcore_common.c: likewise
12331 * efiemu/loadcore64.c: likewise
12332 * efiemu/runtime/efiemu.sh: likewise
12333 * efiemu/runtime/efiemu.S: likewise
12334 * efiemu/runtime/efiemu.c: likewise
12335 * efiemu/runtime/config.h: likewise
12336 * efiemu/prepare32.c: likewise
12337 * efiemu/main.c: likewise
12338 * efiemu/modules/pnvram.c: likewise
12339 * efiemu/modules/i386: likewise
12340 * efiemu/modules/i386/pc: likewise
12341 * efiemu/modules/acpi.c: likewise
12342 * efiemu/i386/pc/cfgtables.c: likewise
12343 * efiemu/i386/loadcore64.c: likewise
12344 * efiemu/i386/loadcore32.c: likewise
12345 * efiemu/prepare64.c: likewise
12346 * efiemu/loadcore.c: likewise
12347 * efiemu/symbols.c: likewise
12348 * efiemu/mm.c: likewise
12349 * efiemu/loadcore32.c: likewise
12350
12351 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12352
12353 ACPI spoofing
12354
12355 * commands/acpi.c: new file
12356 * commands/i386/pc/acpi.c: likewise
12357 * commands/efi/acpi.c: likewise
12358 * include/grub/acpi.h: likewise
12359 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
12360 (acpi_mod_SOURCES): new variable
12361 (acpi_mod_CFLAGS): likewise
12362 (acpi_mod_LDFLAGS): likewise
12363 * conf/i386-efi.rmk: likewise
12364 * conf/x86_64-efi.rmk: likewise
12365
12366 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12367
12368 Missing part from mmap patch
12369
12370 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
12371 (grub_mmap_unregister)
12372 (grub_mmap_free_and_unregister): use grub_mmap_register
12373
12374 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12375
12376 Mmap services
12377
12378 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
12379 * loader/i386/linux.c (find_mmap_size): likewise
12380 (allocate_pages): likewise
12381 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
12382 (grub_fill_multiboot_mmap): likewise
12383 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
12384 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
12385 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
12386 (OPENBSD_MMAP_RESERVED): likewise
12387 * include/grub/i386/pc/memory.h: include grub/memory.h
12388 (grub_lower_mem): removed
12389 (grub_upper_mem): likewise
12390 (GRUB_MACHINE_MEMORY_ACPI): new definition
12391 (GRUB_MACHINE_MEMORY_NVS): likewise
12392 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
12393 (GRUB_MACHINE_MEMORY_HOLE): likewise
12394 (grub_machine_mmap_register): likewise
12395 (grub_machine_mmap_unregister): likewise
12396 (grub_machine_get_upper): likewise
12397 (grub_machine_get_lower): likewise
12398 (grub_machine_get_post64): likewise
12399 * include/grub/i386/efi/memory.h: new file
12400 * include/grub/x86_64/efi/memory.h: likewise
12401 * include/grub/efi/memory.h: likewise
12402 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
12403 (mmap_mod_SOURCES): new variable
12404 (mmap_mod_LDFLAGS): likewise
12405 (mmap_mod_ASFLAGS): likewise
12406 * conf/i386-coreboot.rmk: likewise
12407 * conf/i386-ieee1275.rmk: likewise
12408 * conf/i386-efi.rmk: likewise
12409 * conf/x86_64-efi.rmk: likewise
12410 * include/grub/types.h (UINT_TO_PTR): new macro
12411 (PTR_TO_UINT32): likewise
12412 (PTR_TO_UINT64): likewise
12413 * include/grub/memory.h: new file
12414 * mmap/i386/pc/mmap.c: likewise
12415 * mmap/i386/pc/mmap_helper.S: likewise
12416 * mmap/i386/uppermem.c: likewise
12417 * mmap/mmap.c: likewise
12418 * mmap/efi/mmap.c: likewise
12419 * kern/i386/coreboot/init.c (grub_machine_init): don't use
12420 grub_upper_mem
12421 * kern/i386/pc/init.c (grub_lower_mem): removed variable
12422 (grub_upper_mem): likewise
12423 (grub_machine_init): don't use grub_upper_mem,
12424 make grub_lower_mem local
12425 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
12426 grub_mmap_iterate and grub_mmap_get_upper
12427 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
12428
12429 2009-05-02 Bean <bean123ch@gmail.com>
12430
12431 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
12432 script/sh/parser.y.
12433 (pkglib_MODULES): Add normal.mod and sh.mod.
12434 (normal_SOURCES): New variable.
12435 (normal_mod_CFLAGS): Likewise.
12436 (normal_mod_LDFLAGS): Likewise.
12437 (sh_mod_SOURCES): Likewise.
12438 (sh_mod_CFLAGS): Likewise.
12439 (sh_mod_LDFLAGS): Likewise.
12440
12441 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
12442 script/sh/lexer.c_DEPENDENCIES.
12443 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
12444 kern/rescue_reader.c and kern/rescue_parser.c.
12445 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
12446 (grub_emu_SOURCES): Change source files.
12447 (pkglib_MODULES): Remove normal.mod.
12448 (normal_SOURCES): Removed.
12449 (normal_mod_CFLAGS): Likewise.
12450 (normal_mod_LDFLAGS): Likewise.
12451 * conf/i386-coreboot.rmk: Likewise.
12452 * conf/i386-efi.rmk: Likewise.
12453 * conf/i386-ieee1276.rmk: Likewise.
12454 * conf/powerpc-ieee1275.rmk: Likewise.
12455 * conf/sparc64-ieee1275.rmk: Likewise.
12456 * conf/x86_64-efi.rmk: Likewise.
12457
12458 * include/grub/command.h (grub_command_execute): New inline function.
12459
12460 * include/grub/menu.h (grub_menu_entry): Removed commands field.
12461
12462 * include/grub/normal.h: Remove <grub/setjmp.h>.
12463 (grub_fs_module_list): Moved to normal/autofs.c.
12464 (grub_exit_env): Removed.
12465 (grub_command_execute): Likewise.
12466 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
12467 parameter script.
12468 (read_command_list): New function declaration.
12469 (read_fs_list): Likewise.
12470
12471 * include/parser.h: Include <grub/reader.h>.
12472 (grub_parser_split_cmdline): Change type of getline parameter.
12473 (grub_parser): New structure.
12474 (grub_parser_class): New variable.
12475 (grub_parser_execute): New function declaration.
12476 (grub_register_rescue_parser): Likewise.
12477 (grub_parser_register): New inline function.
12478 (grub_parser_unregister): Likewise.
12479 (grub_parser_get_current): Likewise.
12480 (grub_parser_set_current): Likewise.
12481
12482 * include/grub/reader.h: New file.
12483 * kern/reader.c: Likewise.
12484 * kern/rescue_parser.c: Likewise.
12485 * kern/rescue_reader.c: Likewise.
12486 * normal/autofs.c: Likewise.
12487 * normal/dyncmd.c: Likewise.
12488
12489 * include/grub/rescue.h: Removed.
12490 * normal/command.h: Likewise.
12491
12492 * include/grub/script.h: Moved to ...
12493 * include/grub/script_sh.h: ... Moved here.
12494 * normal/execute.c: Moved to ...
12495 * script/sh/execute.c: ... Moved here.
12496 * normal/function.c: Moved to ...
12497 * script/sh/function.c: ... Moved here.
12498 * normal/lexer.c: Moved to ...
12499 * script/sh/lexer.c: ... Moved here.
12500 * normal/parser.y: Moved to ...
12501 * script/sh/parser.y: ... Moved here.
12502 * normal/script.c: Moved to ...
12503 * script/sh/script.c: ... Moved here.
12504
12505 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
12506 <grub/reader.h>.
12507 (grub_exit_env): Removed.
12508 (fs_module_list): Moved to normal/autofs.c.
12509 (grub_file_getline): Don't handle comment here.
12510 (free_menu): Skip removed field entry->commands.
12511 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
12512 script parameter.
12513 (read_config_file): Removed nested parameter, change getline function.
12514 (grub_enter_normal_mode): Removed.
12515 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
12516 (read_command_list): Likewise.
12517 (autoload_fs_module): Moved to normal/autofs.c.
12518 (read_fs_list): Likewise.
12519 (reader_nested): New variable.
12520 (grub_normal_execute): Run parser.sh to switch to sh parser.
12521 (grub_cmd_rescue): Removed.
12522 (cmd_normal): Removed.
12523 (grub_cmd_normal): Unregister itself at the beginning. Don't register
12524 rescue command.
12525 (grub_cmdline_run): New function.
12526 (grub_normal_reader_init): Likewise.
12527 (grub_normal_read_line): Likewise.
12528 (grub_env_write_pager): Likewise.
12529 (cmdline): New variable.
12530 (grub_normal_reader): Likewise.
12531 (GRUB_MOD_INIT): Register normal reader and set as current, register
12532 pager hook, register normal command with grub_register_command_prio,
12533 so that it won't show up in command.lst.
12534 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
12535 grub_fs_autoload_hook.
12536
12537 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
12538 (grub_menu_execute_entry): Replace grub_script_execute with
12539 grub_parser_execute, change parameter to grub_command_execute.
12540
12541 * normal/menu_text.c: Remove <grub/script.h>.
12542
12543 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
12544 and <grub/parser.h>.
12545 (run): Change editor_getline to use new parser interface. Change
12546 parameter to grub_command_execute.
12547
12548 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
12549 <grub/reader.h> and <grub/parser.h>.
12550 (grub_load_normal_mode): Execute normal command.
12551 (grub_main): Call grub_register_core_commands,
12552 grub_register_rescue_parser and grub_register_rescue_reader, use
12553 grub_reader_loop to enter input loop.
12554
12555 * kern/parser.c (grub_parser_split_cmdline): Change type of
12556 getline parameter.
12557 (grub_parser_class): New variable.
12558 (grub_parser_execute): New function.
12559
12560 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
12561 * loader/multiboot2.c: Likewise.
12562 * loader/sparc64/ieee1275/linux.c: Likewise.
12563
12564 * util/grub-emu.c (read_command_list): New dummy function.
12565
12566 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
12567
12568 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
12569 count to 16 for CCISS and IDA.
12570
12571 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
12572
12573 * normal/menu_text.c (grub_wait_after_message): Print a newline
12574 after waiting for user input.
12575
12576 * loader/i386/linux.c: Include `<grub/normal.h>'.
12577 (grub_cmd_linux): Improve the error message about `ask' mode, by
12578 waiting for user input so it's not missed (we can do this, since
12579 user requested interaction).
12580
12581 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12582
12583 Added missing lst to grub-mkrescue
12584
12585 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
12586 and ${input_dir}/parttool.lst
12587
12588 2009-04-30 David S. Miller <davem@davemloft.net>
12589
12590 * util/hostdisk.c (device_is_wholedisk): New function.
12591 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
12592 zero only if device_is_wholedisk() returns true.
12593
12594 * util/hostdisk.c (convert_system_partition_to_system_disk):
12595 Handle virtual disk devices named /dev/vdiskX as found on sparc
12596 and powerpc.
12597
12598 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
12599 lettered partition specifier is found, convert to numbered.
12600
12601 2009-04-29 David S. Miller <davem@davemloft.net>
12602
12603 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
12604 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12605
12606 * normal/command.c: Add missing newline at end of file.
12607
12608 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
12609 warnings.
12610 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
12611 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
12612 grub_ofdisk_read): Likewise, and deal similarly with the fact that
12613 ihandles have a 32-bit type but need to be stored in a "void *".
12614
12615 2009-04-28 Pavel Roskin <proski@gnu.org>
12616
12617 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
12618 not disk. Adjust all dependencies.
12619 (grub_fs_uuid_close): Use grub_device_close(), not
12620 grub_disk_close().
12621
12622 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
12623 parent's partition, don't copy it by reference, as it gets freed
12624 on close.
12625
12626 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
12627
12628 Preboot hooks support
12629
12630 * commands/boot.c (struct grub_preboot_t): new declaration
12631 (preboots_head): new variable
12632 (preboots_tail): likewise
12633 (grub_loader_register_preboot_hook): new function
12634 (grub_loader_unregister_preboot_hook): likewise
12635 (grub_loader_set): launch preboot hooks
12636 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
12637 (grub_loader_register_preboot_hook): new declaration
12638 (grub_loader_unregister_preboot_hook): likewise
12639
12640 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
12641
12642 Warning fix
12643
12644 * disk/scsi.c (grub_scsi_open): added missing cast when
12645 calling grub_dprintf
12646
12647 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
12648
12649 Bug and warning fixes
12650
12651 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
12652 declaration
12653 * commands/test.c (test_parse): fixed bug with file tests and corrected
12654 declaration of find_file
12655
12656 2009-04-26 Pavel Roskin <proski@gnu.org>
12657
12658 * Makefile.in: Don't install empty manual pages if help2man is
12659 missing. Use help2man option for output, not shell redirection.
12660
12661 2009-04-26 David S. Miller <davem@davemloft.net>
12662
12663 * util/grub-mkdevicemap.c (make_device_map): Add missing
12664 NESTED_FUNC_ATTR to process_device().
12665
12666 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12667
12668 Test command
12669
12670 * commands/test.c: rewritten to use bash-like test
12671
12672 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12673
12674 Parttool autoloading and improvements
12675
12676 * Makefile.in (pkglib_DATA): add parttool.lst
12677 (parttool.lst): new target
12678 * genmk.rb: generate parttool-*
12679 (CLEANFILES): add #{parttool}
12680 (PARTTOOLFILES): new variable
12681 * genparttoollist.sh: new file
12682 * parttool/pcpart.c (grub_pcpart_boot): more feedback
12683 (grub_pcpart_type): likewise
12684 * commands/parttool.c (helpmsg): new variable
12685 (grub_cmd_parttool): output help if not enough arguments are supplied
12686 autoload modules
12687 (GRUB_MOD_INIT(parttool)): use helpmsg
12688
12689 2009-04-24 David S. Miller <davem@davemloft.net>
12690
12691 Avoiding opening same device multiple times in device iterator.
12692
12693 * kern/device.c: (grub_device_iterate): Define struct part_ent,
12694 and use it to build a list of partitions in iterate_disk() and
12695 iterate_partition().
12696
12697 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
12698 on disk->data.
12699
12700 * disk/ieee1275/nand.c (grub_nand_iterate): Return
12701 grub_devalias_iterate() result instead of unconditional 0.
12702 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
12703 Also, capture hook return value, either directly or via
12704 grub_children_iterate(), and propagate to caller.
12705 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
12706 grub_children_iterate): Return value is now 'int' instead of
12707 'grub_err_t'.
12708 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
12709 like a proper iterator, stopping when hooks return non-zero.
12710 (grub_devalias_iterate): Likewise.
12711
12712 2009-04-23 David S. Miller <davem@davemloft.net>
12713
12714 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
12715
12716 2009-04-22 David S. Miller <davem@davemloft.net>
12717
12718 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
12719 is larger than address_cells, use that value for address_cells too.
12720
12721 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
12722 IEEE1275_MAX_PATH_LEN): Define.
12723 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
12724 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
12725 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
12726 'devtype'. Explicitly NULL terminate devalias expansion.
12727
12728 * util/sparc64/ieee1275/misc.c: New file.
12729 * util/sparc64/ieee1275/grub-setup.c: New file.
12730 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
12731 * util/sparc64/ieee1275/grub-mkimage.c: New file.
12732 * util/sparc64/ieee1275/grub-install.in: New file.
12733 * util/ieee1275/ofpath.c: New file.
12734 * util/ieee1275/devicemap.c: New file.
12735 * util/devicemap.c: New file.
12736 * util/deviceiter.c: New file.
12737 * kern/sparc64/ieee1275/init.c: New file.
12738 * include/grub/util/ofpath.h: New file.
12739 * include/grub/util/deviceiter.h: New file.
12740 * util/grub-mkdevicemap.c: Include deviceiter.h.
12741 Implement using grub_util_emit_devicemap_entry and
12742 grub_util_iterate_devices.
12743 * conf/i386-corebook.rmk: Build util/deviceiter.c and
12744 util/devicemap.c into grub-mkdevicemap
12745 * conf/i386-efi.rmk: Likewise.
12746 * conf/i386-ieee1275.rmk: Likewise.
12747 * conf/i386-pc.rmk: Likewise.
12748 * conf/powerpc-ieee1275.rmk: Likewise.
12749 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
12750 images and installation utilities. Build kernel as image
12751 instead of as elf binary. Use common rules as much as possible.
12752
12753 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12754
12755 Correct GPT definition
12756
12757 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
12758 of "attrib" member
12759
12760 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
12761
12762 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
12763
12764 2009-04-19 David S. Miller <davem@davemloft.net>
12765
12766 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
12767 (grub_rescue_cmd_linux): Rename to...
12768 (grub_cmd_linux): and fix prototype.
12769 (grub_rescue_cmd_initrd): Rename to...
12770 (grub_cmd_initrd): and fix prototype.
12771 (cmd_linux, cmd_initrd): New.
12772 (GRUB_MOD_INIT(linux)): Use grub_register_command().
12773 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
12774
12775 2009-04-17 Pavel Roskin <proski@gnu.org>
12776
12777 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
12778 format.
12779 (grub_ohci_transfer): Likewise.
12780
12781 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
12782
12783 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
12784 return without a value. Fix inconsistent indentation.
12785
12786 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
12787 match struct grub_fs.
12788
12789 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
12790 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
12791 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
12792 * commands/lspci.c (grub_lspci_iter): Likewise.
12793
12794 2009-04-16 Bean <bean123ch@gmail.com>
12795
12796 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
12797 value.
12798
12799 2009-04-15 Pavel Roskin <proski@gnu.org>
12800
12801 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
12802 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
12803 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
12804 definitions.
12805
12806 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
12807
12808 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
12809 that no multiple data or metadata areas are supported and `Unknown
12810 metadata header'.
12811
12812 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12813
12814 Move loader out of the kernel
12815
12816 * kern/loader.c: moved to ...
12817 * commands/boot.c: ... moved here
12818 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
12819 * commands/boot.c (grub_cmd_boot): moved here. All users updated
12820 * include/grub/kernel.h (grub_machine_fini): export
12821 * include/grub/loader.h (grub_loader_is_loaded): update declaration
12822 (grub_loader_set): likewise
12823 (grub_loader_unset): likewise
12824 (grub_loader_boot): likewise
12825 * conf/common.rmk: new module boot.mod
12826 (pkglib_MODULES): add boot.mod
12827 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
12828 (grub_emu_SOURCES): likewise
12829 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
12830 (grub_emu_SOURCES): likewise
12831 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
12832 (grub_emu_SOURCES): likewise
12833 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
12834 (grub_emu_SOURCES): likewise
12835 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
12836 (grub_emu_SOURCES): likewise
12837 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
12838 (grub_emu_SOURCES): likewise
12839 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
12840 (grub_emu_SOURCES): likewise
12841
12842 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12843
12844 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
12845
12846 * kern/misc.c (grub_itoa): Removed function
12847 (grub_ltoa): likewise
12848 (grub_vsprintf): use grub_lltoa
12849
12850 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12851
12852 Restore grub-emu
12853
12854 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
12855 * conf/i386-coreboot.rmk: likewise
12856 * conf/i386-ieee1275.rmk: likewise
12857 * conf/powerpc-ieee1275.rmk: likewise
12858
12859 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
12860
12861 * INSTALL: Add that `./autogen.sh' needs to be run before
12862 `./configure.'.
12863
12864 2009-04-14 Bean <bean123ch@gmail.com>
12865
12866 * Makefile.in (pkglib_DATA): Add handler.lst.
12867 (handler.lst): New rule.
12868
12869 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
12870 * conf/i386-coreboot.rmk: Likewise.
12871 * conf/i386-ieee1275.rmk: Likewise.
12872 * conf/i386-efi.rmk: Likewise.
12873 * conf/x86_64-efi.rmk: Likewise.
12874 * conf/powerpc-ieee1275.rmk: Likewise.
12875 * conf/sparc64-ieee1275.rmk: Likewise.
12876
12877 * genhandlerlist.sh: New file.
12878
12879 * genmk.rb: Add rules to generate handler.lst.
12880
12881 * include/grub/normal.h (grub_file_getline): New function definition.
12882 (read_handler_list): Likewise.
12883 (free_handler_list): Likewise.
12884
12885 * include/grub/term.h (grub_term_register_input): Add name parameter
12886 for auto generation of handler.lst.
12887 (grub_term_register_output): Likewise.
12888
12889 * normal/handler.c: New file.
12890
12891 * normal/main.c (get_line): Renamed to grub_file_getline.
12892 (read_config_file): Use the newly renamed grub_file_getline.
12893 (read_command_list): Likewise.
12894 (read_fs_list): Likewise.
12895 (grub_normal_execute): Call read_handler_list to parse handler.lst.
12896 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
12897
12898 * term/efi/console.c (grub_console_init): Add name parameter for auto
12899 generation of handler.lst.
12900 * term/gfxterm.c: Likewise.
12901 * term/i386/pc/at_keyboard.c: Likewise.
12902 * term/i386/pc/console.c: Likewise.
12903 * term/i386/pc/serial.c: Likewise.
12904 * term/i386/pc/vesafb.c: Likewise.
12905 * term/i386/pc/vga.c: Likewise.
12906 * term/i386/pc/vga_text.c: Likewise.
12907 * term/ieee1275/ofconsole.c: Likewise.
12908 * term/usb_keyboard.c: Likewise.
12909
12910 2009-04-14 Bean <bean123ch@gmail.com>
12911
12912 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
12913 properly with null character.
12914
12915 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
12916
12917 * configure: Remove.
12918 * config.h.in: Likewise.
12919 * stamp-h.in: Likewise.
12920 * DISTLIST: Likewise.
12921 * conf/common.mk: Likewise.
12922 * conf/i386-coreboot.mk: Likewise.
12923 * conf/i386-efi.mk: Likewise.
12924 * conf/i386-ieee1275.mk: Likewise.
12925 * conf/i386.mk: Likewise.
12926 * conf/i386-pc.mk: Likewise.
12927 * conf/powerpc-ieee1275.mk: Likewise.
12928 * conf/sparc64-ieee1275.mk: Likewise.
12929 * conf/x86_64-efi.mk: Likewise.
12930
12931 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
12932 develop on GRUB.
12933
12934 2009-04-14 John Stanley <jpsinthemix@verizon.net>
12935 David S. Miller <davem@davemloft.net>
12936
12937 * util/hostdisk.c (make_device_name): Fix buffer length
12938 calculations.
12939
12940 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
12941
12942 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
12943 <sys/param.h> and <sys/sysctl.h>.
12944 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
12945 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
12946 opening the device and reset them afterwards.
12947
12948 2009-04-13 Pavel Roskin <proski@gnu.org>
12949
12950 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
12951 Reported by John Stanley <jpsinthemix@verizon.net>
12952
12953 2009-04-13 Robert Millan <rmh@aybabtu.com>
12954
12955 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
12956 that name for menuentries when appropriate.
12957
12958 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12959
12960 * util/grub.d/10_freebsd.in: Add a missing `fi'.
12961
12962 2009-04-13 Robert Millan <rmh@aybabtu.com>
12963
12964 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
12965 to Linux, simply abort telling the user it's no longer supported.
12966
12967 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12968
12969 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
12970 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
12971 `freebsd_loadenv' only when devices.hints exist.
12972
12973 2009-04-13 Pavel Roskin <proski@gnu.org>
12974
12975 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
12976
12977 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12978
12979 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
12980 partition number.
12981 (grub_drive): Likewise.
12982
12983 2009-04-13 David S. Miller <davem@davemloft.net>
12984
12985 * kern/sparc64/ieee1275/ieee1275.c: New file.
12986 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
12987 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
12988 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
12989 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
12990 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
12991 grub_ieee1275_alloc_physmem): Declare new exported functions.
12992
12993 * include/grub/sparc64/ieee1275/loader.h: New file.
12994 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12995 * include/grub/sparc64/kernel.h: Likewise.
12996 * loader/sparc64/ieee1275/linux.c: Likewise.
12997
12998 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
12999 (grub_fstest_SOURCES): Likewise.
13000
13001 * util/hostdisk.c (make_device_name): Do not make any assumptions
13002 about the length of drive names.
13003
13004 * kern/dl.c (grub_dl_load_file): Close file immediately when
13005 we are done using it.
13006
13007 2009-04-12 David S. Miller <davem@davemloft.net>
13008
13009 * kern/misc.c (grub_ltoa): Fix cast when handling negative
13010 values. Noticed by Pavel Roskin.
13011
13012 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
13013 target compiler.
13014
13015 * genmk.rb: Add more flexible image type specification, also
13016 pass --strip-unneeded to objcopy.
13017 * conf/i386-pc.rmk: Use *_FORMAT.
13018 * conf/i386-pc.mk: Rebuilt.
13019
13020 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
13021 (OFDISK_HASH_SZ): Define.
13022 (ofdisk_hash): New hash table.
13023 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
13024 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
13025 instead of device phandle which is not unique.
13026
13027 * kern/sparc64/ieee1275/init.c: Delete, replace with...
13028 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
13029 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
13030 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
13031 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
13032 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
13033 GRUB_KERNEL_MACHINE_DATA_END): Define.
13034 (grub_kernel_image_size, grub_total_module_size): Declare.
13035
13036 2009-04-12 Pavel Roskin <proski@gnu.org>
13037
13038 * configure.ac: Change the logic when we check for target tools.
13039 Do it when the target is specified and it's different from the
13040 specified value of the host.
13041
13042 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
13043
13044 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
13045 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
13046 GNU/kFreeBSD. Check if a device is a character device. Use
13047 DIOCGMEDIASIZE to get the size.
13048 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
13049 support for GNU/kFreeBSD.
13050 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
13051 is a character device instead of a block device. Add support for
13052 FreeBSD device names.
13053
13054 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
13055 is a character device instead of a block device.
13056
13057 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
13058 is a character device instead of a block device.
13059
13060 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
13061
13062 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
13063 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
13064 FreeBSD. Check if a device is a character device. Use
13065 DIOCGMEDIASIZE to get the size.
13066 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
13067 support for FreeBSD.
13068 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
13069 is a character device instead of a block device. Add support for
13070 FreeBSD device names.
13071
13072 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
13073 a character device instead of a block device.
13074 (grub_util_check_char_device): New function.
13075
13076 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
13077 a character device instead of a block device.
13078
13079 * include/grub/util/getroot.h (grub_util_check_char_device): New
13080 prototype.
13081
13082 2009-04-11 David S. Miller <davem@davemloft.net>
13083
13084 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
13085 static libgcc.
13086 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
13087 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
13088 function, if present.
13089 (__bswapdi2): Likewise.
13090
13091 * include/grub/sparc64/ieee1275/boot.h: New file.
13092 * boot/sparc64/ieee1275/boot.S: Likewise.
13093 * boot/sparc64/ieee1275/diskboot.S: Likewise.
13094
13095 * kern/misc.c (grub_ltoa): New function.
13096 (grub_vsprintf): Use it to format 'long' integers.
13097
13098 2009-04-10 David S. Miller <davem@davemloft.net>
13099
13100 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
13101 slots are of type grub_ieee1275_cell_t.
13102 (grub_nand_read): Likewise.
13103 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
13104 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
13105 macros are used to compare values in arg/ret block of the call.
13106 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
13107 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
13108 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
13109 grub_ieee1275_instance_to_path, grub_ieee1275_write,
13110 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
13111 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
13112 grub_ieee1275_close, grub_ieee1275_set_property,
13113 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
13114 grub_ieee1275_cell_t.
13115 * kern/ieee1275/openfw.c (grub_map): Likewise.
13116 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
13117 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
13118
13119 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
13120 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
13121 (grub_devalias_iterate): Likewise.
13122
13123 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13124
13125 UFS improvements
13126
13127 * fs/ufs.c (INODE_NBLOCKS): new definition
13128 (struct grub_ufs_dirent): added fields for non-BSD dirents
13129 (grub_ufs_get_file_block): fixed double indirect handling
13130 (grub_ufs_lookup_symlink): use more robust way to determine whether
13131 symlink is inline
13132 (grub_ufs_find_file): support for non-BSD dirents
13133 (grub_ufs_dir): support for non-BSD dirents
13134
13135 2009-04-10 Bean <bean123ch@gnail.com>
13136
13137 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
13138 attribute, otherwise the size would be wrong for i386 platform.
13139
13140 * include/grub/pci.h (grub_pci_read_word): New inline function.
13141 (grub_pci_read_byte): Likewise.
13142 (grub_pci_write): Likewise.
13143 (grub_pci_write_word): Likewise.
13144 (grub_pci_write_byte): Likewise.
13145
13146 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
13147
13148 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
13149 (find_framebuf): Scan pci to locate the frame buffer address.
13150
13151 * commands/efi/fixvideo.c: New file.
13152
13153 * commands/efi/loadbios.c: Likewise.
13154
13155 * commands/memrw.c: Likewise.
13156
13157 * util/grub-dumpbios.in: Likewise.
13158
13159 * conf/common.rmk (grub-dumpbios): New utility.
13160 (pkglib_MODULES): New module memrw.mod.
13161 (memrw_mod_SOURCE): New macro.
13162 (memrw_mod_CFLAGS): Likewise.
13163 (memrw_mod_LDFLAGS): Likewise.
13164
13165 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
13166 fixvideo.mod.
13167 (loadbios_mod_SOURCE): New macro.
13168 (loadbios_mod_CFLAGS): Likewise.
13169 (loadbios_mod_LDFLAGS): Likewise.
13170 (fixvideo_mod_SOURCE): Likewise.
13171 (fixvideo_mod_CFLAGS): Likewise.
13172 (fixvideo_mod_LDFLAGS): Likewise.
13173
13174 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
13175 fixvideo.mod.
13176 (loadbios_mod_SOURCE): New macro.
13177 (loadbios_mod_CFLAGS): Likewise.
13178 (loadbios_mod_LDFLAGS): Likewise.
13179 (fixvideo_mod_SOURCE): Likewise.
13180 (fixvideo_mod_CFLAGS): Likewise.
13181 (fixvideo_mod_LDFLAGS): Likewise.
13182
13183 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
13184
13185 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
13186
13187 2009-04-07 David S. Miller <davem@davemloft.net>
13188
13189 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
13190 support for R_SPARC_OLO10 relocations. Fix compile warning for
13191 R_SPARC_WDISP30 case.
13192 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
13193
13194 2009-04-06 Pavel Roskin <proski@gnu.org>
13195
13196 * include/grub/misc.h (ARRAY_SIZE): New macro.
13197 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
13198 New macro.
13199 * loader/i386/linux.c (allocate_pages): Use free_pages().
13200 (grub_linux_unload): Don't use free_pages().
13201 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
13202 wrong index. Treat all other modes as text modes.
13203 (grub_cmd_linux): Initialize vid_mode unconditionally to
13204 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
13205
13206 * commands/help.c (print_command_help): Use cmd->prio, not
13207 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
13208
13209 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13210
13211 Parttool
13212
13213 * parttool/pcpart.c: new file
13214 * commands/parttool.c: likewise
13215 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
13216 (parttool_mod_SOURCES): new variable
13217 (parttool_mod_CFLAGS): likewise
13218 (parttool_mod_LDFLAGS): likewise
13219 (pcpart_mod_SOURCES): likewise
13220 (pcpart_mod_CFLAGS): likewise
13221 (pcpart_mod_LDFLAGS): likewise
13222 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
13223 and parttool/pcpart.c
13224 * conf/i386-efi.rmk: likewise
13225 * conf/i386-ieee1275.rmk: likewise
13226 * conf/i386-pc.rmk: likewise
13227 * conf/powerpc-ieee1275.rmk: likewise
13228 * conf/sparc64-ieee1275.rmk: likewise
13229 * conf/x86_64-ieee1275.rmk: likewise
13230
13231 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
13232
13233 Support for mtime and further expandability of dir command
13234
13235 * include/grub/lib/datetime.h: moved to ...
13236 * include/grub/datetime.h: ... moved here and added
13237 declaration of grub_unixtime2datetime. All users updated
13238 * include/grub/fs.h: new syntax for dir and mtime functions in
13239 struct grub_fs
13240 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
13241 and GRUB_FSHELP_FLAGS_MASK
13242 * commands/ls.c (grub_ls_list_files): Write mtime in long format
13243 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
13244 (grub_ext2_mtime): new function
13245 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
13246 (grub_hfsplus_mtime): new function
13247 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
13248 (GRUB_UFS_ATTR_FILE): likewise
13249 (GRUB_UFS_ATTR_LNK): likewise
13250 (struct grub_ufs_sblock): new fields mtime
13251 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
13252 all users updated
13253 (grub_ufs_dir): mtime support
13254 (grub_ufs_mtime): new function
13255 * fs/affs.c (grub_affs_dir): use new dir syntax
13256 * fs/afs.c (grub_afs_dir): likewise
13257 * fs/cpio.c (grub_cpio_dir): likewise
13258 * fs/fat.c (grub_fat_find_dir): likewise
13259 * fs/hfs.c (grub_hfs_dir): likewise
13260 * fs/iso9660.c (grub_iso9660_dir): likewise
13261 * fs/jfs.c (grub_jfs_dir): likewise
13262 * fs/minix.c (grub_minix_dir): likewise
13263 * fs/ntfs.c (grub_ntfs_dir): likewise
13264 * fs/reiserfs.c (grub_reiserfs_dir): likewise
13265 * fs/sfs.c (grub_sfs_dir): likewise
13266 * fs/xfs.c (grub_xfs_dir): likewise
13267 * util/hostfs.c (grub_hostfs_dir): likewise
13268 * lib/datetime.c: moved to ...
13269 * normal/datetime.c: ... moved here
13270 (grub_unixtime2datetime): new function
13271 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
13272 * normal/completion.c (iterate_dir): use new dir syntax
13273 * normal/misc.c (grub_normal_print_device_info): tell the
13274 last modification time of a volume
13275 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
13276 * conf/common.rmk: added lib/datetime.c to ls.mod
13277 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
13278 (normal_mod_SOURCES): likewise
13279 (datetime_mod_SOURCES): Removed lib/datetime.c
13280 * conf/i386-efi.rmk: likewise
13281 * conf/i386-ieee1275.rmk: likewise
13282 * conf/i386-pc.rmk: likewise
13283 * conf/powerpc-ieee1275.rmk: likewise
13284 * conf/sparc64-ieee1275.rmk: likewise
13285 * conf/x86_64-efi.rmk: likewise
13286
13287 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
13288
13289 Trim trailing spaces in FAT label and support mtools-like labels
13290
13291 * fs/fat.c (grub_fat_iterate_dir): New function based
13292 on grub_fat_find_dir
13293 (grub_fat_find_dir): use grub_fat_iterate_dir
13294 (grub_fat_label): likewise
13295
13296 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
13297
13298 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
13299 and command.h
13300 remove extraneous kernel_elf_HEADERS
13301
13302 2009-04-04 Bean <bean123ch@gnail.com>
13303
13304 * include/grub/util/misc.h: Add dummy function fsync for mingw.
13305
13306 * util/misc.c: Likewise.
13307
13308 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
13309
13310 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
13311 instead of grub_printf.
13312
13313 2009-04-03 Robert Millan <rmh@aybabtu.com>
13314
13315 * loader/i386/linux.c (grub_linux_setup_video): Fill
13316 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
13317 values from `mode info' structure instead of hardcoded
13318 values.
13319
13320 2009-04-01 Pavel Roskin <proski@gnu.org>
13321
13322 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
13323 unused now.
13324 * genmk.rb: Likewise.
13325 * configure.ac: Likewise.
13326
13327 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
13328
13329 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
13330 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
13331
13332 2009-04-01 David S. Miller <davem@davemloft.net>
13333
13334 * normal/sparc64/setjmp.S: Fix setjmp implementation.
13335 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
13336 (grub_setjmp): Mark with 'returns_twice' attribute.
13337 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
13338 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
13339 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
13340
13341 2009-04-01 Robert Millan <rmh@aybabtu.com>
13342
13343 Reapply fix from 2008-07-28 which was accidentally reverted; also
13344 perform the same fix to a similar check in same function.
13345
13346 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
13347 with the same number are found, just use issue a warning with
13348 grub_dprintf(), as this error has been reported to be non-fatal.
13349
13350 2009-03-31 Pavel Roskin <proski@gnu.org>
13351
13352 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
13353 for cross-compilation.
13354
13355 2009-03-30 Robert Millan <rmh@aybabtu.com>
13356
13357 Fix i386-ieee1275 build.
13358
13359 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
13360 Remove declaration.
13361
13362 2009-03-30 Pavel Roskin <proski@gnu.org>
13363
13364 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
13365 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
13366 zero-terminated, rely only on the strlen value. Fix comparison
13367 of strings differing in length.
13368
13369 2009-03-30 Robert Millan <rmh@aybabtu.com>
13370
13371 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
13372 checking for abi version. Improve error messages on BIOS to notify
13373 user about `linux16' command.
13374
13375 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13376
13377 Leak fixes
13378
13379 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
13380 in case of collision
13381 * disk/scsi.c (grub_scsi_open): free scsi in case of error
13382
13383 2009-03-29 Robert Millan <rmh@aybabtu.com>
13384
13385 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
13386 set `vid_mode' accordingly.
13387 (grub_linux_boot): Process `vid_mode' and set video mode.
13388
13389 2009-03-29 Robert Millan <rmh@aybabtu.com>
13390
13391 * util/grub.d/10_linux.in (linux_entry): New function.
13392 Factorize generation of Linux boot entries.
13393
13394 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
13395
13396 Make the format of Environment Block plain text. The boot loader
13397 part is not tested well yet.
13398
13399 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
13400 (buffer): Removed.
13401 (envblk): Likewise.
13402 (usage): Remove "info" and "clear". Add "unset". Update the
13403 description of "set", as this does not delete variables any
13404 longer.
13405 (create_envblk_file): Complete rewrite.
13406 (open_envblk_file): Likewise.
13407 (cmd_info): Removed.
13408 (cmd_list): Likewise.
13409 (cmd_set): Likewise.
13410 (cmd_clear): Likewise.
13411 (list_variables): New function.
13412 (write_envblk): Likewise.
13413 (set_variables): Likewise.
13414 (unset_variables): Likewise.
13415 (main): Complete rewrite.
13416
13417 * commands/loadenv.c (buffer): Removed.
13418 (envblk): Likewise.
13419 (open_envblk_file): New function.
13420 (read_envblk_file): Complete rewrite.
13421 (grub_cmd_load_env): Likewise.
13422 (grub_cmd_list_env): Likewise.
13423 (struct blocklist): New struct.
13424 (free_blocklists): New function.
13425 (check_blocklists): Likewise.
13426 (write_blocklists): Likewise.
13427 (grub_cmd_save_env): Complete rewrite.
13428
13429 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
13430 a plain text signature.
13431 (GRUB_ENVBLK_MAXLEN): Removed.
13432 (struct grub_envblk): Complete rewrite.
13433 (grub_envblk_find): Removed.
13434 (grub_envblk_insert): Likewise.
13435 (grub_envblk_open): New prototype.
13436 (grub_envblk_set): Likewise.
13437 (grub_envblk_delete): Put const to VALUE.
13438 (grub_envblk_iterate): Put const to NAME and VALUE.
13439 (grub_envblk_close): New prototype.
13440 (grub_envblk_buffer): New inline function.
13441 (grub_envblk_size): Likewise.
13442
13443 * lib/envblk.c: Include grub/mm.h.
13444 (grub_env_find): Removed.
13445 (grub_envblk_open): New function.
13446 (grub_envblk_close): Likewise.
13447 (escaped_value_len): Likewise.
13448 (find_next_line): Likewise.
13449 (grub_envblk_insert): Removed.
13450 (grub_envblk_set): New function.
13451 (grub_envblk_delete): Complete rewrite.
13452 (grub_envblk_iterate): Likewise.
13453
13454 2009-03-28 Robert Millan <rmh@aybabtu.com>
13455
13456 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
13457 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
13458 variables. Use 16-bit loader.
13459 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
13460 loader.
13461 * kern/i386/loader.S (grub_linux_boot): Rename to ...
13462 (grub_linux16_boot): ... this. Update all users.
13463 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
13464 (grub_linux_boot): ... this. Update all users.
13465
13466 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
13467 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
13468 commands to `linux16' and `initrd16'.
13469 (GRUB_MOD_FINI(linux)): Rename to ...
13470 (GRUB_MOD_FINI(linux16)): ... this.
13471
13472 2009-03-24 Pavel Roskin <proski@gnu.org>
13473
13474 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
13475 not just for compilation.
13476
13477 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
13478
13479 Move multiboot helper out of kernel
13480
13481 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
13482 `loader/i386/multiboot_helper.S'.
13483 * conf/i386-coreboot.rmk: Likewise
13484 * conf/i386-ieee1275.rmk: Likewise
13485
13486 * kern/i386/loader.S: Move multiboot helpers from here...
13487 * loader/i386/multiboot_helper.S: ...moved here
13488 * include/grub/i386/loader.h: Move declarations of multiboot
13489 helpers from here...
13490 * include/grub/i386/multiboot.h: ...moved here
13491 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
13492
13493 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13494
13495 * kern/env.c (grub_env_context_open): Added an argument to specify
13496 whether a new context inherits exported variables from current
13497 one. This is useful when making a sandbox to interpret a config
13498 file.
13499 All callers updated.
13500
13501 * include/grub/env.h (grub_env_context_open): Updated the prototype.
13502
13503 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13504
13505 * kern/env.c (grub_env_context_close): Fix memory leaks.
13506
13507 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13508
13509 * normal/main.c (grub_normal_execute): Added an argument
13510 BATCH to specify if an interactive interface should be provided
13511 after reading a config file.
13512 All callers updated.
13513 (read_command_list): Prevent being executed twice.
13514 (read_fs_list): Likewise.
13515
13516 * include/grub/normal.h (grub_normal_execute): Updated the
13517 prototype.
13518
13519 2009-03-22 Pavel Roskin <proski@gno.org>
13520
13521 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
13522 _start.
13523 * kern/i386/pc/startup.S: Likewise.
13524 * kern/i386/efi/startup.S: Likewise.
13525 * kern/i386/ieee1275/startup.S: Likewise.
13526 * kern/i386/coreboot/startup.S: Likewise.
13527 * kern/x86_64/efi/startup.S: Likewise.
13528
13529 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
13530 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
13531 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
13532
13533 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
13534
13535 Bugfixes in multiboot for bugs uncovered by solaris kernel.
13536
13537 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
13538 limit detection.
13539 Use vaddr of correct segment for entry_point.
13540
13541 2009-03-21 Bean <bean123ch@gmail.com>
13542
13543 * commands/blocklist.c: Add include file <grub/command.h>, remove
13544 <grub/normal.h> and <grub/arg.h>.
13545 (grub_cmd_blocklist): Use the new command interface.
13546 (GRUB_MOD_INIT): Likewise.
13547 (GRUB_MOD_FINI): Likewise.
13548 * commands/boot.c: Likewise.
13549 * commands/cat.c: Likewise.
13550 * commands/cmp.c: Likewise.
13551 * commands/configfile.c: Likewise.
13552 * commands/crc.c: Likewise.
13553 * commands/echo.c: Likewise.
13554 * commands/halt.c: Likewise.
13555 * commands/handler.c: Likewise.
13556 * commands/hdparm.c: Likewise.
13557 * commands/help.c: Likewise.
13558 * commands/hexdump.c: Likewise.
13559 * commands/loadenv.c: Likewise.
13560 * commands/ls.c: Likewise.
13561 * commands/lsmmap.c: Likewise.
13562 * commands/lspci.c: Likewise.
13563 * commands/loadenv.c: Likewise.
13564 * commands/read.c: Likewise.
13565 * commands/reboot.c: Likewise.
13566 * commands/search.c: Likewise.
13567 * commands/sleep.c: Likewise.
13568 * commands/test.c: Likewise.
13569 * commands/usbtest.c: Likewise.
13570 * commands/videotest.c: Likewise.
13571 * commands/i386/cpuid.c: Likewise.
13572 * commands/i386/pc/halt.c: Likewise.
13573 * commands/i386/pc/play.c: Likewise.
13574 * commands/i386/pc/pxecmd.c: Likewise.
13575 * commands/i386/pc/vbeinfo.c: Likewise.
13576 * commands/i386/pc/vbetest.c: Likewise.
13577 * commands/ieee1275/suspend.c: Likewise.
13578 * disk/loopback.c: Likewise.
13579 * font/font_cmd.c: Likewise.
13580 * hello/hello.c: Likewise.
13581 * loader/efi/appleloader.c: Likewise.
13582 * loader/efi/chainloader.c: Likewise.
13583 * loader/i386/bsd.c: Likewise.
13584 * loader/i386/efi/linux.c: Likewise.
13585 * loader/i386/ieee1275/linux.c: Likewise.
13586 * loader/i386/linux.c: Likewise.
13587 * loader/i386/pc/chainloader.c: Likewise.
13588 * loader/i386/pc/linux.c: Likewise.
13589 * loader/powerpc/ieee1275/linux.c: Likewise.
13590 * loader/multiboot_loader.c: Likewise.
13591 * term/gfxterm.c: Likewise.
13592 * term/i386/pc/serial.c: Likewise.
13593 * term/terminfo.c: Likewise.
13594
13595 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
13596 * term/i386/pc/vga.c: Likewise.
13597 * video/readers/jpeg.c: Likewise.
13598 * video/readers/png.c: Likewise.
13599 * video/readers/tga.c: Likewise.
13600
13601 * util/grub-fstest (cmd_loopback): Removed.
13602 (cmd_blocklist): Likewise.
13603 (cmd_ls): Likewise.
13604 (grub_register_command): Likewise.
13605 (grub_unregister_command): Likewise.
13606 (execute_command): Use grub_command_find to locate command and execute
13607 it.
13608
13609 * include/grub/efi/chainloader.h: Removed.
13610 * loader/efi/chainloader_normal.c: Likewise.
13611 * loader/i386/bsd_normal.c: Likewise.
13612 * loader/i386/pc/chainloader_normal.c: Likewise.
13613 * loader/i386/pc/multiboot_normal.c: Likewise.
13614 * loader/linux_normal.c: Likewise.
13615 * loader/multiboot_loader_normal.c: Likewise.
13616 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
13617
13618 * gencmdlist.sh: Scan new registration command grub_register_extcmd
13619 and grub_register_command_p1.
13620
13621 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
13622 kern/command.c, lib/arg.c and commands/extcmd.c.
13623 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
13624 (minicmd_mod_SOURCES): New variable.
13625 (minicmd_mod_CFLAGS): Likewise.
13626 (minicmd_mod_LDFLAGS): Likewise.
13627 (extcmd_mod_SOURCES): Likewise.
13628 (extcmd_mod_CFLAGS): Likewise.
13629 (extcmd_mod_LDFLAGS): Likewise.
13630 (boot_mod_SOURCES): Removed.
13631 (boot_mod_CFLAGS): Likewise.
13632 (boot_mod_LDFLAGS): Likewise.
13633
13634 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
13635 kern/corecmd.c.
13636 (kernel_img_HEADERS): Add command.h.
13637 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
13638 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
13639 and lib/arg.c.
13640 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
13641 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
13642 remove the corresponding normal mode command.
13643 (normal_mod_SOURCES): Remove normal/arg.c.
13644 * conf/i386-coreboot.rmk: Likewise.
13645 * conf/i386-efi.rmk: Likewise.
13646 * conf/i386-ieee1275.rmk: Likewise.
13647 * conf/powerpc-ieee1275.rmk: Likewise.
13648 * conf/x86_64-efi.rmk: Likewise.
13649
13650 * include/grub/arg.h: Move from here ...
13651 * include/grub/lib/arg.h: ... to here.
13652
13653 * normal/arg.c: Move from here ...
13654 * lib/arg.c: ... to here.
13655
13656 * commands/extcmd.c: New file.
13657 * commands/minicmd.c: Likewise.
13658 * include/grub/command.h: Likewise.
13659 * include/grub/extcmd.h: Likewise.
13660 * kern/command.c: Likewise.
13661 * kern/corecmd.c: Likewise.
13662
13663 * kern/list.c (grub_list_iterate): Return int instead of void.
13664 (grub_list_insert): New function.
13665 (grub_prio_list_insert): Likewise.
13666
13667 * kern/rescue.c (grub_rescue_command): Removed.
13668 (grub_rescue_command_list): Likewise.
13669 (grub_rescue_register_command): Likewise.
13670 (grub_rescue_unregister_command): Likewise.
13671 (grub_rescue_cmd_boot): Move to minicmd.c
13672 (grub_rescue_cmd_help): Likewise.
13673 (grub_rescue_cmd_info): Likewise.
13674 (grub_rescue_cmd_boot): Likewise.
13675 (grub_rescue_cmd_testload): Likewise.
13676 (grub_rescue_cmd_dump): Likewise.
13677 (grub_rescue_cmd_rmmod): Likewise.
13678 (grub_rescue_cmd_lsmod): Likewise.
13679 (grub_rescue_cmd_exit): Likewise.
13680 (grub_rescue_print_devices): Moved to corecmd.c.
13681 (grub_rescue_print_files): Likewise.
13682 (grub_rescue_cmd_ls): Likewise.
13683 (grub_rescue_cmd_insmod): Likewise.
13684 (grub_rescue_cmd_set): Likewise.
13685 (grub_rescue_cmd_unset): Likewise.
13686 (attempt_normal_mode): Use grub_command_find to get normal module.
13687 (grub_enter_rescue_mode): Use grub_register_core_commands to register
13688 commands, remove grub_rescue_register_command calls.
13689
13690 * normal/command.c (grub_register_command): Removed.
13691 (grub_unregister_command): Likewise.
13692 (grub_command_find): Likewise.
13693 (grub_iterate_commands): Likewise.
13694 (rescue_command): Likewise.
13695 (export_command): Moved to corecmd.c.
13696 (set_command): Removed.
13697 (unset_command): Likewise.
13698 (insmod_command): Likewise.
13699 (rmmod_command): Likewise.
13700 (lsmod_command): Likewise.
13701 (grub_command_init): Likewise.
13702
13703 * normal/completion.c (iterate_command): Use cmd->prio to check for
13704 active command.
13705 (complete_arguments): Use grub_extcmd_t structure to find options.
13706 (grub_normal_do_completion): Change function grub_iterate_commands to
13707 grub_command_iterate.
13708
13709 * normal/execute.c (grub_script_execute_cmd): No need to parse
13710 argument here.
13711
13712 * normal/main.c (grub_dyncmd_dispatcher): New function.
13713 (read_command_list): Register unload commands as dyncmd.
13714 (grub_cmd_normal): Use new command interface, register rescue,
13715 unregister normal at entry, register normal, unregister rescue at exit.
13716
13717 * include/grub/list.h (grub_list_test_t): New type.
13718 (grub_list_iterate): Return int instead of void.
13719 (grub_list_insert): New function.
13720 (GRUB_AS_NAMED_LIST_P): New macro.
13721 (GRUB_AS_PRIO_LIST): Likewise.
13722 (GRUB_AS_PRIO_LIST_P): Likewise.
13723 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
13724 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
13725 (grub_prio_list): New structure.
13726 (grub_prio_list_insert): New function.
13727 (grub_prio_list_remove): New inline function.
13728
13729 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
13730 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
13731 (GRUB_COMMAND_FLAG_MENU): Likewise.
13732 (GRUB_COMMAND_FLAG_BOTH): Likewise.
13733 (GRUB_COMMAND_FLAG_TITLE): Likewise.
13734 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
13735 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
13736 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
13737 (grub_command): Likewise.
13738 (grub_register_command): Likewise.
13739 (grub_command_find): Likewise.
13740 (grub_iterate_commands): Likewise.
13741 (grub_command_init): Likewise.
13742 (grub_arg_parse): Likewise.
13743 (grub_arg_show_help): Likewise.
13744
13745 * include/grub/rescue.h (grub_rescue_register_command): Removed.
13746 (grub_rescue_unregister_command): Likewise.
13747
13748 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
13749 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
13750 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
13751
13752 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
13753 grub_rescue_cmd_initrd.
13754 * include/grub/i386/loader.h: Likewise.
13755 * include/grub/x86_64/loader.h: Likewise.
13756
13757 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
13758
13759 2009-03-21 Bean <bean123ch@gmail.com>
13760
13761 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
13762 instead of stat in mingw environment.
13763
13764 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
13765
13766 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
13767
13768 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
13769 AC_CONFIG_LINKS.
13770
13771 2009-03-21 Bean <bean123ch@gmail.com>
13772
13773 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
13774 out of range error.
13775
13776 2009-03-18 Michel Dänzer <michel@daenzer.net>
13777
13778 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
13779 checking inode flags for EXT4_EXTENTS_FLAG.
13780
13781 2009-03-18 Robert Millan <rmh@aybabtu.com>
13782
13783 * loader/i386/linux.c: Include `<grub/video.h>' and
13784 `<grub/i386/pc/vbe.h>'..
13785 (grub_linux_setup_video): New function. Loosely based on the EFI one.
13786 (grub_linux32_boot): Attempt to configure video settings with
13787 grub_linux_setup_video().
13788 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
13789 to avoid grub_console_fini() which would step out of graphical mode
13790 unconditionally.
13791
13792 2009-03-14 Robert Millan <rmh@aybabtu.com>
13793
13794 Fix build on powerpc.
13795 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
13796
13797 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
13798
13799 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
13800 background image command.
13801
13802 2009-03-12 Colin D Bennett <colin@gibibit.com>
13803
13804 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
13805 (grub_gfxterm_putchar): Extract pairs of identical calls to
13806 draw_cursor out of conditional blocks.
13807
13808 2009-03-11 Pavel Roskin <proski@gnu.org>
13809
13810 * fs/hfs.c (grub_hfs_strncasecmp): New function.
13811 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
13812
13813 2009-03-11 Robert Millan <rmh@aybabtu.com>
13814
13815 * loader/i386/multiboot_elfxx.c
13816 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
13817
13818 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
13819
13820 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
13821 `kern/handler.c'.
13822
13823 2009-03-11 Robert Millan <rmh@aybabtu.com>
13824
13825 * loader/i386/multiboot.c (code_size): New variable.
13826 (grub_multiboot): Define offsets by adding to `code_size' rather
13827 than subtracting from `grub_multiboot_payload_size'. Provide
13828 4-byte alignment to MBI and others by increasing
13829 `boot_loader_name_length' appropriately.
13830
13831 * loader/i386/multiboot_elfxx.c
13832 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
13833
13834 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
13835
13836 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
13837 `fs/ext2.c'.
13838
13839 2009-03-08 Robert Millan <rmh@aybabtu.com>
13840
13841 Make loader/i386/linux.c usable on i386-pc again.
13842
13843 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
13844 memory to heap.
13845 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
13846 `#error' stanza.
13847
13848 2009-03-07 Bean <bean123ch@gmail.com>
13849
13850 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
13851 allocation.
13852
13853 2009-03-06 Robert Millan <rmh@aybabtu.com>
13854
13855 Fix display issue on terminals with screen size other than 80x25
13856 (e.g. gfxterm with resolution higher than 640x480).
13857
13858 * normal/main.c (grub_normal_init_page): Display title text in a
13859 position relative to the center of the terminal instead of relying
13860 on a hardcoded offset.
13861
13862 2009-03-04 Robert Millan <rmh@aybabtu.com>
13863
13864 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
13865 installed.
13866
13867 * Makefile.in (host_kernel): New variable.
13868 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
13869 scripts instead of just the windows one.
13870 * configure.ac: Initialize and AC_SUBST `host_kernel'.
13871
13872 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13873
13874 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
13875 `kern/handler.c'.
13876 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13877 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13878 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13879 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13880 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13881 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13882
13883 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13884
13885 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
13886 or if there's no space for the disk label and print the partition number on a
13887 invalid magic.
13888
13889 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13890
13891 * util/misc.c: Include <time.h>.
13892 (grub_millisleep): New function.
13893
13894 2009-03-04 Bean <bean123ch@gmail.com>
13895
13896 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
13897 another option -mno-red-zone.
13898
13899 * commands/handler.c: Change module description.
13900
13901 * kern/handler.c: Add missing space at the end of description line.
13902
13903 * kern/list.c: Likewise.
13904
13905 2009-03-03 Robert Millan <rmh@aybabtu.com>
13906
13907 Move more components to the relocation area, and fix mbi pointer
13908 handling to use the destination rather than the origin (thanks to
13909 Vladimir Serbinenko for spotting).
13910
13911 * loader/i386/multiboot.c (mbi_dest): New variable.
13912 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
13913 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
13914 relocation area.
13915
13916 2009-03-01 Bean <bean123ch@gmail.com>
13917
13918 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
13919 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
13920 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
13921 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
13922
13923 * loader/i386/efi/linux.c (acpi_guid): New variable.
13924 (acpi_guid): Likewise.
13925 (EBDA_SEG_ADDR): New constant.
13926 (LOW_MEM_ADDR): Likewise.
13927 (FAKE_EBDA_SEG): Likewise.
13928 (fake_bios_data): New function.
13929 (grub_linux_boot): Call fake_bios_data.
13930
13931 2009-03-01 Bean <bean123ch@gmail.com>
13932
13933 * commands/terminal.c: Removed.
13934
13935 * commands/handler.c: New file.
13936
13937 * include/grub/list.h: Likewise.
13938
13939 * include/grub/handler.h: Likewise.
13940
13941 * kern/list.c: Likewise.
13942
13943 * kern/handler.c: Likewise.
13944
13945 * kern/term.h: Include header file <grub/handler.h>.
13946 (grub_term_input): Move next field to the beginning.
13947 (grub_term_output): Likewise.
13948 (grub_term_input_class): New variable.
13949 (grub_term_output_class): Likewise.
13950 (grub_term_register_input): Changed to inline function.
13951 (grub_term_register_output): Likewise.
13952 (grub_term_unregister_input): Likewise.
13953 (grub_term_unregister_output): Likewise.
13954 (grub_term_set_current_input): Likewise.
13955 (grub_term_set_current_output): Likewise.
13956 (grub_term_get_current_input): Likewise.
13957 (grub_term_get_current_output): Likewise.
13958 (grub_term_iterate_input): Removed.
13959 (grub_term_iterate_output): Likewise.
13960
13961 * kern/term.c (grub_term_list_input): Removed.
13962 (grub_term_list_output): Likewise.
13963 (grub_term_input_class): New variable.
13964 (grub_term_output_class): Likewise.
13965 (grub_cur_term_input): Change variable as macro.
13966 (grub_cur_term_output): Likewise.
13967 (grub_term_register_input): Removed.
13968 (grub_term_register_output): Likewise.
13969 (grub_term_unregister_input): Likewise.
13970 (grub_term_unregister_output): Likewise.
13971 (grub_term_set_current_input): Likewise.
13972 (grub_term_set_current_output): Likewise.
13973 (grub_term_iterate_input): Likewise.
13974 (grub_term_iterate_output): Likewise.
13975 (grub_term_get_current_input): Likewise.
13976 (grub_term_get_current_output): Likewise.
13977
13978 * util/grub-editenv.c: Include header file <grub/handler.h>.
13979 (grub_term_get_current_input): Removed.
13980 (grub_term_get_current_output): Likewise.
13981 (grub_term_input_class): New variable.
13982 (grub_term_output_class): Likewise.
13983
13984 * util/grub-fstest.c (grub_term_get_current_input): Removed.
13985 (grub_term_get_current_output): Likewise.
13986 (grub_term_input_class): New variable.
13987 (grub_term_output_class): Likewise.
13988
13989 * util/grub-probe.c (grub_term_get_current_input): Removed.
13990 (grub_term_get_current_output): Likewise.
13991 (grub_term_input_class): New variable.
13992 (grub_term_output_class): Likewise.
13993
13994 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
13995 (grub_term_get_current_output): Likewise.
13996 (grub_term_input_class): New variable.
13997 (grub_term_output_class): Likewise.
13998
13999 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
14000 (terminal_mod_SOURCES): Likewise.
14001 (terminal_mod_CFLAGS): Likewise.
14002 (terminal_mod_LDFLAGS): Likewise.
14003
14004 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
14005 handler.c.
14006 (kernel_img_SOURCES): Add list.c and handler.c.
14007 (kernel_img_HEADERS): Add list.h and handler.h.
14008
14009 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
14010 handler.c.
14011 (kernel_mod_SOURCES): Add list.c and handler.c.
14012 (kernel_mod_HEADERS): Add list.h and handler.h.
14013
14014 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
14015 handler.c.
14016 (kernel_elf_SOURCES): Add list.c and handler.c.
14017 (kernel_elf_HEADERS): Add list.h and handler.h.
14018
14019 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
14020 handler.c.
14021 (kernel_elf_SOURCES): Add list.c and handler.c.
14022 (kernel_elf_HEADERS): Add list.h and handler.h.
14023
14024 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
14025 handler.c.
14026 (kernel_mod_SOURCES): Add list.c and handler.c.
14027 (kernel_mod_HEADERS): Add list.h and handler.h.
14028
14029 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
14030 handler.c.
14031 (kernel_elf_SOURCES): Add list.c and handler.c.
14032 (kernel_elf_HEADERS): Add list.h and handler.h.
14033
14034 2009-02-27 Robert Millan <rmh@aybabtu.com>
14035
14036 Factorize elf32 / elf64 code in Multiboot loader. This will
14037 prevent it from getting out of sync again.
14038
14039 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
14040 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
14041 grub_multiboot_load_elf64): Move from here ...
14042 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
14043 grub_multiboot_load_elf): ... to here (new file).
14044
14045 2009-02-27 Robert Millan <rmh@aybabtu.com>
14046
14047 * util/grub.d/10_linux.in: Rename "single-user mode" to
14048 "recovery mode".
14049
14050 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
14051
14052 Don't leak in SCSI code.
14053 * disk/scsi.c (grub_scsi_close): free `scsi'.
14054
14055 2009-02-27 Robert Millan <rmh@aybabtu.com>
14056
14057 * loader/i386/pc/multiboot.c: Move from here ...
14058 * loader/i386/multiboot.c: ... to here. Update all users.
14059
14060 2009-02-27 Robert Millan <rmh@aybabtu.com>
14061
14062 Patch from Alexandre Bique <bique.alexandre@gmail.com>
14063 * util/i386/pc/grub-setup.c (setup): Fix directory path.
14064
14065 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
14066
14067 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
14068 b-tree.
14069
14070 2009-02-27 Robert Millan <rmh@aybabtu.com>
14071
14072 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
14073 `0x' qualifier as 0 when base is specified as parameter).
14074
14075 2009-02-24 Bean <bean123ch@gmail.com>
14076
14077 * configure.ac: Check for -mcmodel=large in x86_64 target.
14078
14079 * include/grub/efi/api.h (efi_call_10): New macro.
14080 (efi_wrap_10): New function.
14081
14082 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
14083 (GRUB_PE32_REL_BASED_HIGH): Likewise.
14084 (GRUB_PE32_REL_BASED_LOW): Likewise.
14085 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
14086 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
14087 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
14088 (GRUB_PE32_REL_BASED_SECTION): Likewise.
14089 (GRUB_PE32_REL_BASED_REL): Likewise.
14090 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
14091 (GRUB_PE32_REL_BASED_DIR64): Likewise.
14092 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
14093
14094 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
14095 issue.
14096
14097 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
14098 (efi_wrap_10): New function.
14099
14100 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
14101
14102 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
14103 MB/MBP model (NV chipset).
14104 (devdata_devs): Add devpath_5 to the list.
14105
14106 * load/i386/efi/linux.c (video_base): Remove variable.
14107 (RGB_MASK): New macro.
14108 (RGB_MAGIC): Likewise.
14109 (LINE_MIN): Likewise.
14110 (LINE_MAX): Likewise.
14111 (FBTEST_STEP): Likewise.
14112 (FBTEST_COUNT): Likewise.
14113 (fb_list): New variable.
14114 (grub_find_video_card): Remove function.
14115 (find_framebuf): New function.
14116 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
14117 line length.
14118
14119 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
14120 problem for x86_64.
14121
14122 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
14123
14124 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
14125
14126 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
14127 coding tool name.
14128
14129 2009-02-22 Robert Millan <rmh@aybabtu.com>
14130
14131 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
14132 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
14133 in our relocation, instead of using it directly from heap. Also
14134 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
14135
14136 2009-02-21 Robert Millan <rmh@aybabtu.com>
14137
14138 Implement USB keyboard support (based on patch by Marco Gerards)
14139
14140 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
14141 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
14142 (usb_keyboard_mod_LDFLAGS): New variables.
14143
14144 * term/usb_keyboard.c: New file.
14145
14146 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
14147
14148 Corrected wrong declaration
14149
14150 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
14151
14152 2009-02-14 Christian Franke <franke@computer.org>
14153
14154 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
14155 (grub_lspci_iter): Print class code and programming interface byte.
14156
14157 2009-02-14 Christian Franke <franke@computer.org>
14158
14159 * gendistlist.sh: Ignore `.svn' directories.
14160
14161 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
14162
14163 * fs/fat.c: Add 2009 to Copyright line.
14164
14165 2009-02-14 Christian Franke <franke@computer.org>
14166
14167 * commands/hdparm.c: New file. Provides `hdparm' command
14168 which sends ATA commands via grub_disk_ata_pass_through ().
14169
14170 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
14171
14172 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
14173 and <grub/cpu/io.h> to include/grub/ata.h.
14174 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
14175 (GRUB_CDROM_SECTOR_SIZE): Remove.
14176 (GRUB_ATA_*): Move to include/grub/ata.h.
14177 (GRUB_ATAPI_*): Likewise.
14178 (enum grub_ata_commands): Likewise.
14179 (enum grub_ata_timeout_milliseconds): Likewise.
14180 (struct grub_ata_device): Likewise.
14181 (grub_ata_regset): Likewise.
14182 (grub_ata_regget): Likewise.
14183 (grub_ata_regset2): Likewise.
14184 (grub_ata_regget2): Likewise.
14185 (grub_ata_check_ready): Likewise.
14186 (grub_ata_wait_not_busy): Remove static, exported in
14187 include/grub/ata.h.
14188 (grub_ata_wait_drq): Likewise.
14189 (grub_ata_pio_read): Likewise.
14190
14191 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
14192 function for hdparm.mod.
14193
14194 * include/grub/ata.h: New file, contains declarations from
14195 disk/ata.c.
14196 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
14197
14198 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
14199 (grub_disk_ata_pass_through): New exported variable.
14200
14201 * kern/disk.c (grub_disk_ata_pass_through): New variable.
14202
14203 2009-02-13 Colin D Bennett <colin@gibibit.com>
14204
14205 Support multiple fallback entries, and provide an API to support
14206 executing default+fallback menu entries. Renamed the `terminal' menu
14207 viewer to `text'.
14208
14209 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
14210 variable declaration.
14211 (grub_menu_execute_callback): New structure declaration.
14212 (grub_menu_execute_callback_t): New typedef.
14213 (grub_menu_execute_with_fallback): New function declaration.
14214 (grub_menu_get_entry): Likewise.
14215 (grub_menu_get_timeout): Likewise.
14216 (grub_menu_set_timeout): Likewise.
14217
14218 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
14219
14220 * normal/menu.c (grub_wait_after_message): Moved to
14221 `normal/menu_text.c'.
14222 (draw_border): Likewise.
14223 (print_message): Likewise.
14224 (print_entry): Likewise.
14225 (print_entries): Likewise.
14226 (grub_menu_init_page): Likewise.
14227 (get_entry_number): Likewise.
14228 (print_timeout): Likewise.
14229 (run_menu): Likewise.
14230 (grub_menu_execute_entry): Likewise.
14231 (show_text_menu): Likewise.
14232 (get_and_remove_first_entry_number): New function.
14233 (grub_menu_execute_with_fallback): Likewise.
14234 (get_entry): Renamed to ...
14235 (grub_menu_get_entry): .. this and made it global.
14236 (get_timeout): Renamed to ...
14237 (grub_menu_get_timeout): ... this and made it global.
14238 (set_timeout): Renamed to ...
14239 (grub_menu_set_timeout): ... this and made it global.
14240 (grub_normal_terminal_menu_viewer): Renamed to ...
14241 (grub_normal_text_menu_viewer): ... this.
14242
14243 * normal/menu_text.c: New file. Extracted text-menu-specific code
14244 from normal/menu.c.
14245
14246 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
14247 (normal_mod_SOURCES): Likewise.
14248
14249 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14250 (normal_mod_SOURCES): Likewise.
14251
14252 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14253 (normal_mod_SOURCES): Likewise.
14254
14255 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
14256 (normal_mod_SOURCES): Likewise.
14257
14258 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14259 (normal_mod_SOURCES): Likewise.
14260
14261 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14262 (normal_mod_SOURCES): Likewise.
14263
14264 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14265 (normal_mod_SOURCES): Likewise.
14266
14267 2009-02-11 Robert Millan <rmh@aybabtu.com>
14268
14269 * util/grub.d/00_header.in: Update old reference to `font' command.
14270
14271 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
14272
14273 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
14274
14275 Based on patch from Javier Martín.
14276
14277 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
14278
14279 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
14280 to avoid false positives with FAT.
14281 (grub_fstest_SOURCES): Likewise.
14282 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
14283 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14284 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14285 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
14286 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14287 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14288
14289 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
14290
14291 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
14292 bpb.version_specific.fat12_or_fat16.fstype and
14293 bpb.version_specific.fat32.fstype.
14294
14295 2009-02-08 Robert Millan <rmh@aybabtu.com>
14296
14297 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
14298
14299 2009-02-08 Robert Millan <rmh@aybabtu.com>
14300
14301 * Makefile.in (host_os, host_cpu): New variables.
14302 (target_os): Remove. Update all users.
14303
14304 2009-02-08 Marco Gerards <marco@gnu.org>
14305
14306 * Makefile.in (enable_grub_emu_usb): New variable.
14307 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
14308 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
14309 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
14310 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
14311 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
14312 `usbtest.mod' and `usbms.mod'.
14313 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
14314 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
14315 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
14316 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
14317 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
14318 variables.
14319
14320 * disk/usbms.c: New file.
14321
14322 * include/grub/usb.h: Likewise.
14323
14324 * include/grub/usbtrans.h: Likewise.
14325
14326 * include/grub/usbdesc.h: Likewise.
14327
14328 * bus/usb/usbtrans.c: Likewise.
14329
14330 * bus/usb/ohci.c: Likewise.
14331
14332 * bus/usb/uhci.c: Likewise.
14333
14334 * bus/usb/usbhub.c: Likewise.
14335
14336 * bus/usb/usb.c: Likewise.
14337
14338 * commands/usbtest.c: Likewise.
14339
14340 * util/usb.c: Likewise.
14341
14342 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
14343
14344 * configure.ac: Test for libusb presence.
14345
14346 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
14347
14348 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
14349
14350 * kern/mm.c: Add more comments.
14351
14352 2009-02-08 Robert Millan <rmh@aybabtu.com>
14353
14354 Patch from Javier Martín.
14355 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
14356 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
14357
14358 2009-02-08 Robert Millan <rmh@aybabtu.com>
14359
14360 * fs/cpio.c: Split tar functionality to ...
14361 * fs/tar.c: ... here (new file). Update all users.
14362
14363 2009-02-07 Robert Millan <rmh@aybabtu.com>
14364
14365 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
14366 backward-incompatible features.
14367
14368 Based on patch from Javier Martín, with some adjustments.
14369
14370 2009-02-07 Michael Scherer <misc@mandriva.org>
14371
14372 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
14373
14374 2009-02-07 Robert Millan <rmh@aybabtu.com>
14375
14376 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
14377 position of `disk/lvm.c' to ensure grub_init_all() always picks it
14378 after the RAID stuff.
14379
14380 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
14381
14382 Fixes problem when running vbetest command as reported by
14383 Vladimir Serbinenko <phcoder@gmail.com>.
14384
14385 * (grub_vbe_set_video_mode): Fixed problem with text modes.
14386
14387 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
14388
14389 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
14390 /dev/md/NpN style mdraid devices.
14391
14392 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
14393
14394 * util/unifont2pff.rb: Remove.
14395
14396 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
14397
14398 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
14399 `#'.
14400
14401 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
14402
14403 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
14404 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14405 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14406 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
14407 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14408 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14409 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14410
14411 2009-02-02 Christian Franke <franke@computer.org>
14412
14413 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
14414
14415 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
14416
14417 * INSTALL: Note that we now require at least autoconf 2.59 and
14418 that LZO is optional.
14419
14420 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
14421
14422 Base on patch on bug #24154 created by Tomas Tintera
14423 <trosos@seznam.cz>.
14424
14425 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
14426
14427 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
14428
14429 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
14430 <bero@arklinux.org>.
14431
14432 * normal/parser.y (script_init): Add missing semicolon.
14433
14434 2009-01-31 Colin D Bennett <colin@gibibit.com>
14435
14436 * normal/main.c: Add include to grub/menu_viewer.h.
14437 (free_menu_entry_classes): Added.
14438 (grub_normal_menu_addentry): Added class property handling.
14439 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
14440 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
14441
14442 * normal/menu_viewer.c: New file.
14443
14444 * normal/menu.c (run_menu_entry): Renamed to ...
14445 (grub_menu_execute_entry): ... this and made it as global.
14446 (grub_menu_run): Renamed to ...
14447 (show_text_menu): ... this and made it local.
14448 (show_text_menu): Adapt to new function names.
14449 (grub_normal_terminal_menu_viewer): New global variable.
14450
14451 * include/grub/menu.h: New file.
14452
14453 * include/grub/menu_viewer.h: New file.
14454
14455 * include/grub/normal.h: Added include to grub/menu.h.
14456 (grub_menu_entry): Moved to include/grub/menu.h.
14457 (grub_menu_entry_t): Likewise.
14458 (grub_menu): Likewise.
14459 (grub_menu_t): Likewise.
14460 (grub_normal_terminal_menu_viewer): Added.
14461 (grub_menu_execute_entry): Likewise.
14462 (grub_menu_run): Removed.
14463
14464 * DISTLIST: Added include/grub/menu.h.
14465 Added include/grub/menu_viewer.h.
14466 Added normal/menu_viewer.c.
14467
14468 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
14469
14470 * normal/execute.c (grub_script_execute_menuentry): Changed to use
14471 arglist for menutitle arguments.
14472
14473 * normal/main.c (grub_normal_menu_addentry): Likewise.
14474
14475 * normal/parser.y (menuentry): Likewise.
14476
14477 * normal/script.c (grub_script_create_cmdmenu): Likewise.
14478
14479 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
14480 (grub_script_create_cmdmenu): Likewise.
14481
14482 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
14483
14484 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
14485 changes.
14486
14487 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
14488
14489 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
14490
14491 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
14492
14493 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14494
14495 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14496
14497 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14498
14499 2009-01-30 Christian Franke <franke@computer.org>
14500
14501 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
14502 in option help text.
14503
14504 2009-01-27 Pavel Roskin <proski@gnu.org>
14505
14506 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
14507
14508 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
14509
14510 * commands/lsmmap.c: Add include to grub/machine/memory.h.
14511
14512 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
14513
14514 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
14515 unregister function.
14516
14517 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
14518
14519 * disk/scsi.c (grub_scsi_read): Fix sign problem.
14520
14521 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
14522
14523 * util/grub-mkfont.c (usage): Fix typo.
14524
14525 * util/elf/grub-mkimage.c (load_modules): Fix warning.
14526
14527 2009-01-26 Daniel Mierswa <impulze@impulze.org>
14528
14529 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
14530
14531 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
14532
14533 * kern/misc.c (grub_strcasecmp): New function.
14534 (grub_strcasecmp): Use grub_size_t instead of int for length.
14535 Fix return value.
14536 * include/grub/misc.h: Update function prototypes.
14537
14538 2009-01-26 Robert Millan <rmh@aybabtu.com>
14539
14540 * configure.ac: Fix cross-compilation check.
14541
14542 2009-01-22 Christian Franke <franke@computer.org>
14543
14544 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
14545 (precision) digit string. Allow `.format2' without `format1' (width).
14546 Limit input chars for `%s' output to `format2' if specified. This is
14547 compatible with standard printf ().
14548
14549 2009-01-22 Christian Franke <franke@computer.org>
14550
14551 * disk/ata.c (grub_ata_wait_status): Replace by ...
14552 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
14553 other status bits may be invalid while BSY is asserted.
14554 (grub_ata_check_ready): New function.
14555 (grub_ata_cmd): Removed.
14556 (grub_ata_wait_drq): New function.
14557 (grub_ata_strncpy): Remove inline.
14558 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
14559 and error check now done by grub_ata_wait_drq ().
14560 (grub_ata_pio_write): Likewise.
14561 (grub_atapi_identify): Set DEV before check for !BSY. Use
14562 grub_ata_wait_drq () to wait for data.
14563 (grub_ata_device_initialize): Add status register check to
14564 detect missing SATA slave devices. Add debug messages.
14565 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
14566 (grub_atapi_packet): Set DEV before check for !BSY. Replace
14567 transfer loop by grub_ata_pio_write ().
14568 (grub_ata_identify): Set DEV before check for !BSY. Use
14569 grub_ata_wait_drq () to wait for data.
14570 (grub_ata_setaddress): Set DEV before check for !BSY.
14571 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
14572 read/write in one loop. Fix invalid command on write. Fix incomplete
14573 command on (size % batch) == 0. Add missing error check after write of
14574 last block. Add debug messages.
14575 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
14576
14577 2009-01-19 Christian Franke <franke@computer.org>
14578
14579 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
14580 (GRUB_ATAPI_IREASON_*): Likewise.
14581 (grub_ata_pio_write): Fix timeout error return.
14582 (grub_atapi_identify): Add grub_ata_wait () after cmd.
14583 (grub_atapi_wait_drq): New function.
14584 (grub_atapi_packet): New parameter `size'.
14585 Use grub_atapi_wait_drq () and direct write instead of
14586 grub_ata_pio_write ().
14587 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
14588 reads the number of bytes requested by the device for each DRQ
14589 assertion.
14590 (grub_atapi_write): Remove old implementation, return not
14591 implemented instead.
14592
14593 2009-01-19 Christian Franke <franke@computer.org>
14594
14595 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
14596 of 512 to calculate data size.
14597 (grub_scsi_read12): Likewise.
14598 (grub_scsi_write10): Likewise.
14599 (grub_scsi_write12): Likewise.
14600 (grub_scsi_read): Adjust size according to blocksize.
14601 Add checks for invalid blocksize and unaligned transfer.
14602
14603 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
14604
14605 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
14606
14607 * term/gfxterm.c (write_char): Fix background rendering for wide
14608 width glyphs.
14609
14610 2009-01-19 Robert Millan <rmh@aybabtu.com>
14611
14612 * config.guess: Update to latest version from config git.
14613 * config.sub: Likewise.
14614
14615 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
14616
14617 * Makefile.in: Change font compilation to use new grub-mkfont instead
14618 of java version.
14619
14620 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
14621 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
14622 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14623 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14624 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
14625 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
14626 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
14627 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
14628 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
14629
14630 2009-01-16 Christian Franke <franke@computer.org>
14631
14632 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
14633 (enum grub_ata_timeout_milliseconds): New enum.
14634 (grub_ata_wait_status): Add parameter milliseconds.
14635 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
14636 recovery from timed-out commands.
14637 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
14638 return grub_errno instead of REG_ERROR.
14639 (grub_ata_pio_write): Add parameter milliseconds.
14640 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
14641 Pass milliseconds to grub_ata_wait_status () and
14642 grub_ata_pio_read ().
14643 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
14644 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
14645 grub_ata_wait_status (). Fix IDENTIFY timeout check.
14646 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
14647 It is not suitable for device detection, because DEV bit is ignored,
14648 the command may run too long, and not all devices set the signature
14649 properly.
14650 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
14651 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
14652 Fix device selection, DEV bit must be set first to address the registers
14653 of the correct device.
14654 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
14655 grub_ata_pio_read/write ().
14656 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
14657 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
14658
14659 2009-01-13 Carles Pina i Estany <carles@pina.cat>
14660
14661 * util/grub-editenv.c (main): Use fseeko(), not fseek().
14662
14663 2009-01-13 Bean <bean123ch@gmail.com>
14664
14665 * util/grub-mkfont.c (write_font): forget to remove some debug code.
14666
14667 2009-01-13 Bean <bean123ch@gmail.com>
14668
14669 * Makefile.in: (enable_grub_mkfont): New variable.
14670 (freetype_cflags): Likewise.
14671 (freetype_libs): Likewise.
14672
14673 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
14674 (grub_mkfont_SOURCES): New variable.
14675 (grub_mkfont_CFLAGS): Likewise.
14676 (grub_mkfont_LDFLAGS): Likewise.
14677
14678 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
14679 library if `--enable-grub-mkfont' is requested.
14680 (enable_grub_mkfont): New variable.
14681 (freetype_cflags): Likewise.
14682 (freetype_libs): Likewise.
14683
14684 * util/grub-mkfont.c: New file.
14685
14686 2009-01-12 Christian Franke <franke@computer.org>
14687
14688 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
14689 mode check. Fix setting of compat_use[].
14690
14691 2009-01-10 Robert Millan <rmh@aybabtu.com>
14692
14693 Update a few copyright years which we forgot to do in 2008 (only for
14694 files whose changes made in 2008 were copyright-significant)
14695
14696 * Makefile.in: Add 2008 to Copyright line.
14697 * disk/ieee1275/ofdisk.c: Likewise.
14698 * disk/efi/efidisk.c: Likewise.
14699 * kern/dl.c: Likewise.
14700 * kern/sparc64/ieee1275/init.c: Likewise.
14701 * kern/mm.c: Likewise.
14702 * kern/efi/mm.c: Likewise.
14703 * boot/i386/pc/boot.S: Likewise.
14704 * genfslist.sh: Likewise.
14705 * fs/iso9660.c: Likewise.
14706 * fs/hfs.c: Likewise.
14707 * fs/jfs.c: Likewise.
14708 * fs/minix.c: Likewise.
14709 * fs/ufs.c: Likewise.
14710 * gensymlist.sh.in: Likewise.
14711 * genkernsyms.sh.in: Likewise.
14712 * include/grub/misc.h: Likewise.
14713 * include/grub/types.h: Likewise.
14714 * include/grub/symbol.h: Likewise.
14715 * include/grub/elf.h: Likewise.
14716 * include/grub/kernel.h: Likewise.
14717 * include/grub/disk.h: Likewise.
14718 * include/grub/dl.h: Likewise.
14719 * include/grub/i386/linux.h: Likewise.
14720 * include/grub/i386/pc/biosdisk.h: Likewise.
14721 * include/grub/efi/api.h: Likewise.
14722 * include/grub/efi/pe32.h: Likewise.
14723 * include/grub/util/misc.h: Likewise.
14724 * normal/execute.c: Likewise.
14725 * normal/arg.c: Likewise.
14726 * normal/completion.c: Likewise.
14727 * normal/lexer.c: Likewise.
14728 * normal/parser.y: Likewise.
14729 * normal/misc.c: Likewise.
14730 * commands/i386/pc/vbeinfo.c: Likewise.
14731 * commands/hexdump.c: Likewise.
14732 * commands/terminal.c: Likewise.
14733 * commands/ls.c: Likewise.
14734 * commands/help.c: Likewise.
14735 * partmap/pc.c: Likewise.
14736 * loader/efi/chainloader.c: Likewise.
14737 * loader/multiboot_loader.c: Likewise.
14738 * loader/i386/pc/multiboot2.c: Likewise.
14739 * term/efi/console.c: Likewise.
14740 * term/i386/pc/serial.c: Likewise.
14741 * util/lvm.c: Likewise.
14742 * util/console.c: Likewise.
14743 * util/i386/efi/grub-mkimage.c: Likewise.
14744 * util/raid.c: Likewise.
14745
14746 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
14747
14748 * commands/videotest.c: Removed include to grub/machine/memory.h.
14749
14750 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
14751 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
14752 (video_mod_SOURCES): Removed.
14753 (video_mod_CFLAGS): Likewise.
14754 (video_mod_LDFLAGS): Likewise.
14755 (gfxterm_mod_SOURCES): Likewise.
14756 (gfxterm_mod_CFLAGS): Likewise.
14757 (gfxterm_mod_LDFLAGS): Likewise.
14758 (videotest_mod_SOURCES): Likewise.
14759 (videotest_mod_CFLAGS): Likewise.
14760 (videotest_mod_LDFLAGS): Likewise.
14761 (bitmap_mod_SOURCES): Likewise.
14762 (bitmap_mod_CFLAGS): Likewise.
14763 (bitmap_mod_LDFLAGS): Likewise.
14764 (tga_mod_SOURCES): Likewise.
14765 (tga_mod_CFLAGS): Likewise.
14766 (tga_mod_LDFLAGS): Likewise.
14767 (jpeg_mod_SOURCES): Likewise.
14768 (jpeg_mod_CFLAGS): Likewise.
14769 (jpeg_mod_LDFLAGS): Likewise.
14770 (png_mod_SOURCES): Likewise.
14771 (png_mod_CFLAGS): Likewise.
14772 (png_mod_LDFLAGS): Likewise.
14773
14774 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
14775 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
14776 (video_mod_SOURCES): Added.
14777 (video_mod_CFLAGS): Likewise.
14778 (video_mod_LDFLAGS): Likewise.
14779 (videotest_mod_SOURCES): Likewise.
14780 (videotest_mod_CFLAGS): Likewise.
14781 (videotest_mod_LDFLAGS): Likewise.
14782 (bitmap_mod_SOURCES): Likewise.
14783 (bitmap_mod_CFLAGS): Likewise.
14784 (bitmap_mod_LDFLAGS): Likewise.
14785 (tga_mod_SOURCES): Likewise.
14786 (tga_mod_CFLAGS): Likewise.
14787 (tga_mod_LDFLAGS): Likewise.
14788 (jpeg_mod_SOURCES): Likewise.
14789 (jpeg_mod_CFLAGS): Likewise.
14790 (jpeg_mod_LDFLAGS): Likewise.
14791 (png_mod_SOURCES): Likewise.
14792 (png_mod_CFLAGS): Likewise.
14793 (png_mod_LDFLAGS): Likewise.
14794 (gfxterm_mod_SOURCES): Likewise.
14795 (gfxterm_mod_CFLAGS): Likewise.
14796 (gfxterm_mod_LDFLAGS): Likewise.
14797
14798 * term/gfxterm.c: Removed include to grub/machine/memory.h,
14799 grub/machine/console.h.
14800
14801 2009-01-04 Jerone Young <jerone@gmail.com>
14802
14803 Make on screen instructions clearer
14804
14805 Based on patch created by Jidanni <jidanni@jidanni.org>
14806
14807 * normal/menu.c: print clearer instructions on the screen
14808
14809 2009-01-02 Colin D Bennett <colin@gibibit.com>
14810
14811 New font engine.
14812
14813 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
14814 build system and fixed gfxterm.c to work with different sized fonts.
14815
14816 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
14817
14818 * configure: Re-generated.
14819
14820 * DISTLIST: Removed font/manager.c.
14821 Added font/font.c.
14822 Added font/font_cmd.c.
14823
14824 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
14825 compilation.
14826
14827 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
14828
14829 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
14830
14831 * kern/term.c: Changed users of grub_utf8_to_ucs4.
14832
14833 * normal/menu.c: Likewise.
14834
14835 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
14836 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
14837
14838 * include/grub/font.h: Replaced with new file.
14839
14840 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
14841 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
14842 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
14843 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
14844 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
14845 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
14846 fg_red, fg_green, fg_blue, fg_alpha.
14847 (grub_video_adapter): Removed blit_glyph.
14848 (grub_video_blit_glyph): Removed.
14849
14850 * font/manager.c: Removed file.
14851
14852 * font/font.c: New file.
14853
14854 * font/font_cmd.c: Likewise.
14855
14856 * video/video.c (grub_video_blit_glyph): Removed.
14857
14858 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
14859 (grub_video_vbe_map_rgba): Likewise.
14860 (grub_video_vbe_unmap_color_int): Likewise.
14861 (grub_video_vbe_blit_glyph): Removed.
14862 (grub_video_vbe_adapter): Removed blit_glyph.
14863
14864 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
14865 (get_pixel): Likewise.
14866 (set_pixel): Likewise.
14867
14868 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
14869
14870 * term/gfxterm.c: Adapted to new font engine.
14871
14872 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
14873
14874 * term/i386/pc/vga.c: Likewise.
14875
14876 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
14877
14878 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
14879
14880 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14881
14882 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14883
14884 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
14885
14886 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
14887
14888 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
14889
14890 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
14891
14892 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
14893
14894 * util/grub.d/00_header.in: Changed to use new loadfont command.
14895
14896 * util/grub-mkconfig_lib.in: Changed font extension.
14897
14898 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
14899
14900 * util/getroot.c (grub_util_get_grub_dev): Add support for
14901 /dev/md/dNNpNN style partitionable mdraid devices.
14902
14903 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
14904
14905 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
14906 at a time limit of the PXE TFTP API correctly.
14907 (grub_pxefs_close): Likewise.
14908
14909 2008-11-29 Robert Millan <rmh@aybabtu.com>
14910
14911 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
14912 grub_ata_device_initialize() calls.
14913
14914 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
14915
14916 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
14917 iteration failed.
14918 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
14919
14920 2008-11-28 Robert Millan <rmh@aybabtu.com>
14921
14922 Fix build on powerpc-ieee1275. Based on patch created by
14923 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
14924 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
14925 `kern/ieee1275/mmap.c'.
14926 * include/grub/powerpc/ieee1275/memory.h: New file.
14927
14928 Provide grub-install on coreboot.
14929 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
14930 (grub_install_SOURCES): New variable.
14931 * util/i386/pc/grub-install.in: Add a few condition checks to make it
14932 usable on coreboot.
14933
14934 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
14935
14936 * util/grub-fstest.c (grub_term_get_current_input): Change return type
14937 to `grub_term_input_t'.
14938 (grub_term_get_current_output): Change return type to
14939 `grub_term_output_t'.
14940
14941 2008-11-22 Robert Millan <rmh@aybabtu.com>
14942
14943 Fix breakage on coreboot due to declaration mismatch.
14944 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
14945 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
14946 grub_vga_text_cls().
14947
14948 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
14949 comments. Avoid copying one more byte than necessary (just in case).
14950
14951 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
14952 to 0x200000 (avoids trouble with some OFW implementations, and matches
14953 with the one in Yaboot).
14954 Reported by Manoel Abranches
14955
14956 2008-11-20 Robert Millan <rmh@aybabtu.com>
14957
14958 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
14959 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
14960
14961 * util/grub-mkconfig_lib.in (grub_warn): New function.
14962 (convert_system_path_to_grub_path): Use grub_warn() when issuing
14963 warnings, to obtain consistent formatting.
14964 * util/grub.d/00_header.in: Likewise.
14965 * util/update-grub_lib.in: Likewise.
14966
14967 * loader/i386/linux.c (allocate_pages): Fix a warning.
14968 Move comment text to `#error' stanza.
14969
14970 Harmonize ieee1275's grub_available_iterate() with the generic
14971 grub_machine_mmap_iterate() interface (fixes a recently-introduced
14972 build problem on i386-ieee1275):
14973 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
14974 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
14975 parameter `type'. Update all users of this function.
14976 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
14977 `kern/ieee1275/mmap.c'.
14978 * kern/ieee1275/init.c
14979 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
14980 with ...
14981 (grub_machine_mmap_iterate): ... this.
14982 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
14983 return type to `grub_err_t'. Update all implementations of this
14984 function prototype.
14985 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
14986 Likewise.
14987
14988 Add `lsmmap' command (lists firmware-provided memory map):
14989 * commands/lsmmap.c: New file.
14990 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
14991 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
14992 variables.
14993 * conf/powerpc-ieee1275.rmk: Likewise.
14994 * conf/i386-coreboot.rmk: Likewise.
14995 * conf/i386-ieee1275.rmk: Likewise.
14996
14997 2008-11-19 Robert Millan <rmh@aybabtu.com>
14998
14999 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
15000 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
15001 constraints to initrd allocation (based on code from
15002 loader/i386/pc/linux.c). Without them, initrd was allocated too high
15003 for Linux to find it.
15004
15005 2008-11-14 Robert Millan <rmh@aybabtu.com>
15006
15007 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
15008 order to cope with duplicate slashes.
15009
15010 2008-11-14 Robert Millan <rmh@aybabtu.com>
15011
15012 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
15013 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
15014 don't want to mess with lower memory, because it is used in the Linux
15015 loader.
15016
15017 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
15018 an appropriate place in lower memory, between 0x10000 and 0x90000,
15019 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
15020 is in our heap (probably as a result of it being corrupted during
15021 decompression). Add #error instance with comment to explain why this
15022 loader isn't currently usable on PC/BIOS.
15023
15024 2008-11-14 Robert Millan <rmh@aybabtu.com>
15025
15026 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
15027 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
15028
15029 2008-11-12 Robert Millan <rmh@aybabtu.com>
15030
15031 Make loader/i386/linux.c buildable on i386-pc (although disabled).
15032
15033 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
15034 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
15035 from here ...
15036 * include/grub/i386/pc/memory.h: ... to here.
15037
15038 2008-11-12 Robert Millan <rmh@aybabtu.com>
15039
15040 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
15041 split).
15042
15043 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
15044 (grub_console_cur_color, grub_console_real_putchar)
15045 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
15046 (grub_console_setcolorstate, grub_console_setcolor)
15047 (grub_console_getcolor): Move from here ...
15048 * include/grub/i386/vga_common.h: ... to here (new file).
15049
15050 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
15051 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
15052 `<grub/i386/io.h>'.
15053 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
15054 `<grub/i386/vga_common.h>'.
15055
15056 2008-11-12 Robert Millan <rmh@aybabtu.com>
15057
15058 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
15059 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
15060 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
15061 variables.
15062 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
15063 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
15064
15065 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
15066 grub_console_init() with call to grub_vga_text_init().
15067 (grub_machine_fini): Replace call to
15068 grub_console_fini() with call to grub_vga_text_fini() and
15069 grub_at_keyboard_fini().
15070
15071 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
15072 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
15073 (grub_console_setcolorstate, grub_console_setcolor)
15074 (grub_console_getcolor): New function prototypes.
15075
15076 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
15077 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
15078 (grub_vga_text_setcursor): Static-ize.
15079 (grub_vga_text_term): New structure.
15080 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
15081
15082 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
15083 (grub_console_cur_color, grub_console_standard_color)
15084 (grub_console_normal_color, grub_console_highlight_color)
15085 (map_char, grub_console_putchar, grub_console_getcharwidth)
15086 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
15087 (grub_console_getcolor): Move from here ...
15088 * term/i386/vga_common.c: ... to here (same function names).
15089
15090 2008-11-12 Robert Millan <rmh@aybabtu.com>
15091
15092 Use newly-added Multiboot support in coreboot.
15093
15094 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
15095 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
15096
15097 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
15098 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
15099 (codestart): Store the MBI in `startup_multiboot_info' when we're
15100 being loaded using Multiboot.
15101
15102 * kern/i386/coreboot/init.c (grub_machine_init): Move
15103 grub_at_keyboard_init() call to beginning of function (useful for
15104 debugging). Call grub_machine_mmap_init() before attempting to use
15105 grub_machine_mmap_iterate().
15106 (grub_lower_mem, grub_upper_mem): Move from here ...
15107 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
15108 here (new file).
15109
15110 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
15111 function prototype.
15112
15113 2008-11-12 Robert Millan <rmh@aybabtu.com>
15114
15115 Fix a regression introduced by the at_keyboard.mod split. Because
15116 some terminals are default on some platforms and non-default on
15117 others, the first terminal being registered determines which is
15118 going to be default.
15119
15120 * kern/term.c (grub_term_register_input): If this is the first
15121 terminal being registered, set it as the current one.
15122 (grub_term_register_output): Likewise.
15123
15124 * term/efi/console.c (grub_console_init): Do not call
15125 grub_term_set_current_output() or grub_term_set_current_input().
15126 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
15127 * term/i386/pc/console.c (grub_console_init): Likewise.
15128 (grub_console_fini): Do not call grub_term_set_current_input()
15129 (but leave grub_term_set_current_output() to restore text mode).
15130
15131 2008-11-10 Robert Millan <rmh@aybabtu.com>
15132
15133 * util/grub.d/00_header.in: Add backward compatibility check for
15134 versions of terminal.mod that don't understand `terminal_input' or
15135 `terminal_output'.
15136
15137 2008-11-09 Robert Millan <rmh@aybabtu.com>
15138
15139 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
15140 `terminal_input' / `terminal_output', not `terminal'.
15141
15142 2008-11-08 Robert Millan <rmh@aybabtu.com>
15143
15144 * Makefile.in (include_DATA): Fix srcdir=. assumption.
15145 (DISTCLEANFILES): Add `build_env.mk'.
15146
15147 2008-11-08 Robert Millan <rmh@aybabtu.com>
15148
15149 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
15150 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
15151 members. Update all users.
15152 * util/console.c (grub_ncurses_term): Split in ...
15153 (grub_ncurses_term_input): ... this, and ...
15154 (grub_ncurses_term_output): ... this. Update all users.
15155 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
15156
15157 2008-11-08 Robert Millan <rmh@aybabtu.com>
15158
15159 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
15160 (PKGDATA): Add $(pkgdata_SRCDIR).
15161 (pkglib_BUILDDIR): New variable.
15162 (pkgdata_SRCDIR): New variable.
15163 (build_env.mk): New target.
15164 (include_DATA): New variable.
15165 (install-local): Install $(include_DATA) files in $(includedir).
15166
15167 2008-11-07 Pavel Roskin <proski@gnu.org>
15168
15169 * gendistlist.sh: Use C locale for sorting to ensure consistent
15170 output on all systems.
15171
15172 * util/grub.d/00_header.in: Remove incorrect space before
15173 "serial".
15174
15175 2008-11-07 Robert Millan <rmh@aybabtu.com>
15176
15177 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
15178 per specification.
15179 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
15180 * loader/multiboot_loader.c (find_multi_boot2_header): New function
15181 (based on find_multi_boot1_header).
15182 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
15183 using find_multi_boot2_header(), and abort if neither Multiboot or
15184 Multiboot headers were found.
15185
15186 2008-11-07 Robert Millan <rmh@aybabtu.com>
15187
15188 Modularize at_keyboard.mod:
15189
15190 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
15191 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
15192 (at_keyboard_mod_LDFLAGS): New variables.
15193
15194 Actual terminal split:
15195
15196 * include/grub/term.h (struct grub_term): Split in ...
15197 (struct grub_term_input): ... this, and ...
15198 (struct grub_term_output): ... this. Update all users.
15199 (grub_term_set_current): Split in ...
15200 (grub_term_set_current_input): ... this, and ...
15201 (grub_term_set_current_output): ... this.
15202 (grub_term_get_current): Split in ...
15203 (grub_term_get_current_input): ... this, and ...
15204 (grub_term_get_current_output): ... this.
15205 (grub_term_register): Split in ...
15206 (grub_term_register_input): ... this, and ...
15207 (grub_term_register_output): ... this.
15208 (grub_term_unregister): Split in ...
15209 (grub_term_unregister_input): ... this, and ...
15210 (grub_term_unregister_output): ... this.
15211 (grub_term_iterate): Split in ...
15212 (grub_term_iterate_input): ... this, and ...
15213 (grub_term_iterate_output): ... this.
15214
15215 * kern/term.c (grub_term_list): Split in ...
15216 (grub_term_list_input): ... this, and ...
15217 (grub_term_list_output): ... this. Update all users.
15218 (grub_cur_term): Split in ...
15219 (grub_cur_term_input): ... this, and ...
15220 (grub_cur_term_output): ... this. Update all users.
15221 (grub_term_set_current): Split in ...
15222 (grub_term_set_current_input): ... this, and ...
15223 (grub_term_set_current_output): ... this.
15224 (grub_term_get_current): Split in ...
15225 (grub_term_get_current_input): ... this, and ...
15226 (grub_term_get_current_output): ... this.
15227 (grub_term_register): Split in ...
15228 (grub_term_register_input): ... this, and ...
15229 (grub_term_register_output): ... this.
15230 (grub_term_unregister): Split in ...
15231 (grub_term_unregister_input): ... this, and ...
15232 (grub_term_unregister_output): ... this.
15233 (grub_term_iterate): Split in ...
15234 (grub_term_iterate_input): ... this, and ...
15235 (grub_term_iterate_output): ... this.
15236
15237 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
15238 a check for input and one for output (and only attempt to get keys
15239 from user when input works).
15240
15241 * util/grub-probe.c (grub_term_get_current): Split in ...
15242 (grub_term_get_current_input): ... this, and ...
15243 (grub_term_get_current_output): ... this.
15244 * util/grub-fstest.c: Likewise.
15245 * util/i386/pc/grub-setup.c: Likewise.
15246 * util/grub-editenv.c: Likewise.
15247
15248 Portability adjustments:
15249
15250 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
15251 `term/i386/pc/at_keyboard.c'.
15252 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
15253 grub_keyboard_controller_init() (now handled by terminal .init).
15254 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
15255 grub_at_keyboard_init().
15256 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
15257 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
15258 at_keyboard.mod via input terminal interface).
15259 * include/grub/i386/coreboot/console.h: Convert into a stub for
15260 `<grub/i386/pc/console.h>'.
15261
15262 Migrate full terminals to new API:
15263
15264 * term/efi/console.c (grub_console_term): Split into ...
15265 (grub_console_term_input): ... this, and ...
15266 (grub_console_term_output): ... this. Update all users.
15267 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
15268 (grub_ofconsole_init): Split into ...
15269 (grub_ofconsole_init_input): ... this, and ...
15270 (grub_ofconsole_init_output): ... this.
15271 (grub_ofconsole_term): Split into ...
15272 (grub_ofconsole_term_input): ... this, and ...
15273 (grub_ofconsole_term_output): ... this. Update all users.
15274 * term/i386/pc/serial.c (grub_serial_term): Split into ...
15275 (grub_serial_term_input): ... this, and ...
15276 (grub_serial_term_output): ... this. Update all users.
15277 * term/i386/pc/console.c (grub_console_term): Split into ...
15278 (grub_console_term_input): ... this, and ...
15279 (grub_console_term_output): ... this. Update all users.
15280 (grub_console_term_input): Only enable it on PC/BIOS platform.
15281 (grub_console_init): Remove grub_keyboard_controller_init() call.
15282
15283 Migrate input terminals to new API:
15284
15285 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
15286 `i386' and `i386/pc' to enable build on x86_64 (this driver is
15287 i386-specific anyway).
15288 (grub_console_checkkey): Rename to ...
15289 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
15290 users.
15291 (grub_keyboard_controller_orig): New variable.
15292 (grub_console_getkey): Rename to ...
15293 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
15294 users.
15295 (grub_keyboard_controller_init): Static-ize. Save original
15296 controller value so that it can be restored ...
15297 (grub_keyboard_controller_fini): ... here (new function).
15298 (grub_at_keyboard_term): New structure.
15299 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
15300 functions.
15301
15302 Migrate output terminals to new API:
15303
15304 * term/i386/pc/vga.c (grub_vga_term): Change type to
15305 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
15306 members. Update all users.
15307 * term/gfxterm.c (grub_video_term): Change type to
15308 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
15309 members. Update all users.
15310 * include/grub/i386/pc/console.h (grub_console_checkkey)
15311 (grub_console_getkey): Do not export (no longer needed by gfxterm,
15312 etc).
15313
15314 Migrate `terminal' command and userland tools to new API:
15315
15316 * commands/terminal.c (grub_cmd_terminal): Split into ...
15317 (grub_cmd_terminal_input): ... this, and ...
15318 (grub_cmd_terminal_output): ... this.
15319 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
15320 `terminal_input' and `terminal_output'.
15321 * util/grub.d/00_header.in: Adjust `terminal' calls to new
15322 `terminal_input' / `terminal_output' API.
15323 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
15324 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
15325 provided ${GRUB_TERMINAL}, convert it).
15326
15327 2008-11-04 Robert Millan <rmh@aybabtu.com>
15328
15329 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
15330 for FreeBSD.
15331 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
15332
15333 2008-11-03 Bean <bean123ch@gmail.com>
15334
15335 * kern/elf.c (grub_elf32_load): Revert to previous code.
15336 (grub_elf64_load): Likewise.
15337
15338 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
15339
15340 2008-11-01 Robert Millan <rmh@aybabtu.com>
15341
15342 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
15343 (TARGET_CPPFLAGS): Likewise.
15344 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
15345
15346 2008-11-01 Carles Pina i Estany <carles@pina.cat>
15347
15348 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
15349
15350 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
15351
15352 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
15353 addition of objects until the code is not going to be able to fail.
15354
15355 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
15356
15357 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
15358 (add a missing NULL check, and correct them by moving the pointer
15359 operations after the actual check).
15360
15361 2008-10-29 Robert Millan <rmh@aybabtu.com>
15362
15363 * util/i386/pc/grub-install.in: Handle empty string as output from
15364 make_system_path_relative_to_its_root().
15365
15366 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
15367
15368 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
15369 circular metadata worst case scenario. If the metadata is circular
15370 then copy the wrap in place.
15371 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
15372 project lib/format_text/layout.h
15373 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
15374
15375 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
15376
15377 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
15378
15379 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
15380
15381 * util/update-grub_lib.in: Mention filename in warning message.
15382
15383 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
15384
15385 * NEWS: Update for rename of update-grub to grub-mkconfig.
15386
15387 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
15388
15389 * util/update-grub_lib.in: Copy to ...
15390 * util/grub-mkconfig_lib.in: ... this. Update all users.
15391 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
15392 * util/update-grub.in: Rename to ...
15393 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
15394 option. Add `--output' option to allow users to specify the generated
15395 configuration file. Default to stdout.
15396 (update_grub_dir): Rename to ...
15397 (grub_mkconfig_dir): ... this.
15398 (grub_cfg): Default to an empty string.
15399 * conf/common.rmk (update-grub): Rename to ...
15400 (grub-mkconfig): ... this.
15401 (update-grub_lib): Copy to ...
15402 (grub-mkconfig_lib): ... this.
15403 (update-grub_SCRIPTS): Copy to ...
15404 (grub-mkconfig_SCRIPTS): ... this. Update all users.
15405 (update-grub_DATA): Rename to ...
15406 (grub-mkconfig_DATA): ... this.
15407
15408 2008-09-28 Robert Millan <rmh@aybabtu.com>
15409
15410 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
15411 to `modified'. Add the real `created' field.
15412 (grub_iso9660_uuid): Use `modified' rather than `created' for
15413 constructing the UUID.
15414
15415 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
15416
15417 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
15418 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
15419
15420 2008-09-28 Bean <bean123ch@gmail.com>
15421
15422 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
15423 Thanks to Christian Franke for finding this bug.
15424
15425 2008-09-25 Robert Millan <rmh@aybabtu.com>
15426
15427 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
15428 instances of grub_util_get_disk_name() (see previous commit).
15429
15430 2008-09-25 Robert Millan <rmh@aybabtu.com>
15431
15432 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
15433 `util/i386/get_disk_name.c'.
15434 * conf/i386-efi.rmk: Likewise.
15435 * conf/x86_64-efi.rmk: Likewise.
15436 * conf/i386-coreboot.rmk: Likewise.
15437 * conf/i386-ieee1275.rmk: Likewise.
15438 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
15439 `util/ieee1275/get_disk_name.c'.
15440 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
15441 * util/ieee1275/get_disk_name.c: Remove file.
15442 * util/i386/get_disk_name.c: Remove file.
15443 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
15444 "hd%d" for device.map entries, rather than using
15445 grub_util_get_disk_name().
15446
15447 2008-09-24 Carles Pina i Estany <carles@pina.cat>
15448
15449 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
15450 warning.
15451 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
15452
15453 2008-09-24 Carles Pina i Estany <carles@pina.cat>
15454
15455 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
15456 Changed to 0x5100.
15457 (GRUB_TERM_PPAGE): Changed to 0x4900.
15458
15459 2008-09-24 Robert Millan <rmh@aybabtu.com>
15460
15461 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
15462 macros (they were i386-pc specific).
15463 * include/grub/sparc64/ieee1275/console.h: Likewise.
15464 * include/grub/efi/console.h: Likewise.
15465
15466 2008-09-22 Bean <bean123ch@gmail.com>
15467
15468 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
15469 resident and in attribute list.
15470
15471 * include/grub/ntfs.h (BMP_LEN): Removed.
15472
15473 2008-09-22 Bean <bean123ch@gmail.com>
15474
15475 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
15476 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
15477
15478 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
15479 error occurs, as grub_disk_open will call grub_disk_close, which will
15480 call p->close (scsi).
15481
15482 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
15483
15484 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
15485 (AC_PREREQ): Bumped to 2.59.
15486 (AC_TRY_COMPILE): Replace obsolete macro with ...
15487 (AC_COMPILE_IFELSE): ... this.
15488 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
15489 (AC_LINK_IFELSE): ... this.
15490
15491 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
15492
15493 * autogen.sh: Add a call to `gendistlist.sh'.
15494
15495 2008-09-19 Christian Franke <franke@computer.org>
15496
15497 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
15498 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
15499 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
15500 Export __enable_execute_stack() to modules.
15501 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
15502 New function.
15503
15504 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
15505
15506 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
15507 Sort the list.
15508
15509 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
15510
15511 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
15512 #include <grub/util/hostdisk.h>.
15513
15514 2008-09-08 Robert Millan <rmh@aybabtu.com>
15515
15516 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
15517 segments when their filesz is zero (grub_file_read() interprets
15518 zero-size as "read until EOF", which results in memory corruption).
15519 Use `lowest_segment' rather than 0 for calculating the current
15520 segment load address.
15521
15522 2008-09-08 Robert Millan <rmh@aybabtu.com>
15523
15524 * util/hostdisk.c (open_device): Replace a grub_util_info() call
15525 with grub_dprintf("hostdisk", ...), as it was so verbose that it
15526 clobbered useful information.
15527
15528 2008-09-08 Robert Millan <rmh@aybabtu.com>
15529
15530 * include/grub/util/biosdisk.h: Move to ...
15531 * include/grub/util/hostdisk.h: ... here. Update all users.
15532 * util/biosdisk.c: Move to ...
15533 * util/hostdisk.c: ... here. Update all users.
15534
15535 2008-09-07 Robert Millan <rmh@aybabtu.com>
15536
15537 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
15538 variables.
15539 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
15540 and length can be stored directly in the `mbi->mmap_addr' and
15541 `mbi->mmap_length' struct fields.
15542
15543 2008-09-07 Robert Millan <rmh@aybabtu.com>
15544
15545 * conf/i386.rmk: New file. Provides declaration for building
15546 `cpuid.mod'.
15547 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
15548 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
15549 variables.
15550 Include `conf/i386.mk'.
15551 * conf/i386-efi.rmk: Likewise.
15552 * conf/x86_64-efi.rmk: Likewise.
15553 * conf/i386-coreboot.rmk: Likewise.
15554 * conf/i386-ieee1275.rmk: Likewise.
15555
15556 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
15557
15558 Based on patch created by Colin D Bennett <colin@gibibit.com>.
15559 Adds optimization support for BGR based modes.
15560
15561 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
15562 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
15563 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
15564 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
15565 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
15566 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
15567 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
15568 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15569 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15570 (grub_video_i386_vbeblit_index_index): Likewise.
15571 (grub_video_i386_vbeblit_replace_directN): Added.
15572 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
15573 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
15574 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
15575 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
15576 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
15577 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
15578 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
15579 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
15580 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
15581 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
15582 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
15583 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
15584 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
15585
15586 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
15587 (grub_video_i386_vbefill_R8G8B8): Likewise.
15588 (grub_video_i386_vbefill_index): Likewise.
15589 (grub_video_i386_vbefill_direct32): Added.
15590 (grub_video_i386_vbefill_direct24): Likewise.
15591 (grub_video_i386_vbefill_direct16): Likewise.
15592 (grub_video_i386_vbefill_direct8): Likewise.
15593
15594 * include/grub/video.h (grub_video_blit_format): Removed
15595 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
15596 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
15597 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
15598 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
15599 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
15600
15601 * video/video.c (grub_video_get_blit_format): Updated to use new
15602 blit formats. Added handling for 16 bit color modes.
15603
15604 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
15605 fillers.
15606 (common_blitter): Updated to use new blitters.
15607
15608 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
15609 Removed.
15610 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
15611 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
15612 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
15613 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
15614 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
15615 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
15616 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15617 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15618 (grub_video_i386_vbeblit_index_index): Likewise.
15619 (grub_video_i386_vbeblit_replace_directN): Added.
15620 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
15621 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
15622 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
15623 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
15624 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
15625 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
15626 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
15627 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
15628 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
15629 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
15630 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
15631 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
15632 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
15633
15634 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
15635 (grub_video_i386_vbefill_R8G8B8): Likewise.
15636 (grub_video_i386_vbefill_index): Likewise.
15637 (grub_video_i386_vbefill_direct32): Added.
15638 (grub_video_i386_vbefill_direct24): Likewise.
15639 (grub_video_i386_vbefill_direct16): Likewise.
15640 (grub_video_i386_vbefill_direct8): Likewise.
15641
15642 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
15643 types.
15644
15645 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
15646 types.
15647
15648 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
15649 blitter types.
15650
15651 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
15652 types.
15653
15654 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
15655
15656 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
15657 RAID level 1.
15658
15659 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
15660
15661 * fs/iso9660.c (grub_iso9660_date): New structure.
15662 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
15663 (grub_iso9660_uuid): New function.
15664
15665 2008-09-05 Bean <bean123ch@gmail.com>
15666
15667 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
15668
15669 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
15670 insensitive bit for names in Win32 and Win32 & DOS namespace.
15671
15672 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
15673
15674 * include/grub/types.h (LONG_MAX): Likewise.
15675
15676 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
15677
15678 * util/getroot.c: Include <config.h>.
15679 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
15680 add support for /dev/md/N devices and handle LVM double dash escaping.
15681
15682 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
15683
15684 * config.guess: Update to latest version from config git.
15685 * config.sub: Likewise.
15686
15687 2008-09-03 Robert Millan <rmh@aybabtu.com>
15688
15689 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
15690 `disk->total_sectors'.
15691
15692 2008-09-01 Colin D Bennett <colin@gibibit.com>
15693
15694 * include/grub/normal.h: Fixed incorrect comment for
15695 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
15696
15697 2008-09-01 Colin D Bennett <colin@gibibit.com>
15698
15699 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
15700 values with defines.
15701
15702 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
15703 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
15704 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
15705 (GRUB_VBE_MODEATTR_COLOR): Likewise.
15706 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
15707 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
15708 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
15709 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
15710 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
15711 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
15712 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
15713 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
15714 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
15715 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
15716 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
15717 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
15718 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
15719 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
15720 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
15721
15722 2008-08-31 Robert Millan <rmh@aybabtu.com>
15723
15724 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
15725 declaration.
15726 (grub_multiboot): Fix a few warnings.
15727
15728 2008-08-31 Robert Millan <rmh@aybabtu.com>
15729
15730 * loader/i386/pc/multiboot.c: Update comment not to say that
15731 boot_device support is unimplemented.
15732
15733 2008-08-31 Robert Millan <rmh@aybabtu.com>
15734
15735 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
15736 or memory map support are unimplemented.
15737
15738 2008-08-31 Colin D Bennett <colin@gibibit.com>
15739
15740 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
15741
15742 2008-08-31 Colin D Bennett <colin@gibibit.com>
15743
15744 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
15745 total video memory in 'vbeinfo' output; show color format details for
15746 each video mode.
15747
15748 2008-08-30 Pavel Roskin <proski@gnu.org>
15749
15750 * util/genmoddep.c: Remove for real this time.
15751 * DISTLIST: Remove util/genmoddep.c.
15752
15753 2008-08-30 Robert Millan <rmh@aybabtu.com>
15754
15755 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
15756 as required by Multiboot spec (it was already 4-byte aligned, but
15757 only by chance).
15758
15759 2008-08-29 Pavel Roskin <proski@gnu.org>
15760
15761 * kern/powerpc/ieee1275/crt0.S: Rename to ...
15762 * kern/powerpc/ieee1275/startup.S: ... this.
15763 * conf/powerpc-ieee1275.rmk: Adjust for the above.
15764 * DISTLIST: Likewise.
15765
15766 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
15767 grub/cpu/kernel.h. Add start label for consistency with other
15768 platforms. Add grub_prefix immediately after start. Add jump
15769 to the code after grub_prefix.
15770 * include/grub/powerpc/kernel.h: Provide valid values for
15771 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
15772
15773 2008-08-29 Bean <bean123ch@gmail.com>
15774
15775 * configure.ac: Change host_os to cygwin for mingw.
15776 (asprintf): New check for function.
15777
15778 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
15779 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
15780
15781 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
15782 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
15783 sync, sleep and grub_util_get_disk_size for mingw.
15784
15785 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
15786 to get size in mingw.
15787 (open_device): Use flag O_BINARY if it's defined.
15788 (find_root_device): Add dummy code for mingw.
15789
15790 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
15791 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
15792 (get_scsi_disk_name): Return 0 for mingw.
15793
15794 * util/hostfs.c: #include <grub/util/misc.h>.
15795 (grub_hostfs_open): Use "rb" flag to open file, use
15796 grub_util_get_disk_size to get disk size for mingw.
15797
15798 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
15799 (asprintf): New function if HAVE_ASPRINTF is not set.
15800 (sync): New function for mingw.
15801 (sleep): Likewise.
15802 (grub_util_get_disk_size): Likewise.
15803
15804 2008-08-28 Pavel Roskin <proski@gnu.org>
15805
15806 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15807 kern/time.c.
15808
15809 2008-08-28 Robert Millan <rmh@aybabtu.com>
15810
15811 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
15812
15813 2008-08-28 Robert Millan <rmh@aybabtu.com>
15814
15815 Change find_grub_drive() syntax so it doesn't prevent it from
15816 detecting NULL names as errors.
15817
15818 * util/biosdisk.c (find_grub_drive): Move free slot search code
15819 from here ...
15820 (find_free_slot): ... to here.
15821 (read_device_map): Use find_free_slot() to search for free slots.
15822
15823 2008-08-27 Marco Gerards <marco@gnu.org>
15824
15825 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
15826 (scsi_mod_SOURCES): New variable.
15827 (scsi_mod_CFLAGS): Likewise
15828 (scsi_mod_LDFLAGS): Likewise.
15829
15830 * disk/scsi.c: New file.
15831
15832 * include/grub/scsi.h: Likewise.
15833
15834 * include/grub/scsicmd.h: Likewise.
15835
15836 * disk/ata.c: Include <grub/scsi.h>.
15837 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
15838 instead.
15839 (grub_ata_iterate): Skip ATAPI devices.
15840 (grub_ata_open): Only handle ATAPI devices.
15841 (struct grub_atapi_read): Removed.
15842 (grub_atapi_readsector): Likewise.
15843 (grub_ata_read): No longer handle ATAPI devices.
15844 (grub_ata_write): Likewise.
15845 (grub_atapi_iterate): New function.
15846 (grub_atapi_read): Likewise.
15847 (grub_atapi_write): Likewise.
15848 (grub_atapi_open): Likewise.
15849 (grub_atapi_close): Likewise.
15850 (grub_atapi_dev): New variable.
15851 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
15852 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
15853
15854 * include/grub/disk.h (enum grub_disk_dev_id): Add
15855 `GRUB_DISK_DEVICE_SCSI_ID'.
15856
15857 2008-08-26 Robert Millan <rmh@aybabtu.com>
15858
15859 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
15860 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
15861 descriptive.
15862
15863 2008-08-23 Bean <bean123ch@gmail.com>
15864
15865 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
15866 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15867 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
15868 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
15869 dm_nv.mod.
15870 (raid5rec_mod_SOURCES): New macro.
15871 (raid5rec_mod_CFLAGS): Likewise.
15872 (raid5rec_mod_LDFLAGS): Likewise.
15873 (raid6rec_mod_SOURCES): Likewise.
15874 (raid6rec_mod_CFLAGS): Likewise.
15875 (raid6rec_mod_LDFLAGS): Likewise.
15876 (mdraid_mod_SOURCES): Likewise.
15877 (mdraid_mod_CFLAGS): Likewise.
15878 (mdraid_mod_LDFLAGS): Likewise.
15879 (dm_nv_mod_SOURCES): Likewise.
15880 (dm_nv_mod_CFLAGS): Likewise.
15881 (dm_nv_mod_LDFLAGS): Likewise.
15882
15883 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
15884 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15885 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15886
15887 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
15888 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15889
15890 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15891
15892 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15893
15894 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15895
15896 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15897
15898 * disk/raid5_recover.c: New file.
15899
15900 * disk/raid6_recover.c: Likewise.
15901
15902 * disk/mdraid_linux.c: Likewise.
15903
15904 * disk/dmraid_nvidia.c: Likewise.
15905
15906 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
15907 ULONG_MAX.
15908
15909 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
15910 calculate the size of raid device.
15911 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
15912 different layout of raid5.
15913 (grub_raid_scan_device): Remove code specific to mdraid.
15914 (grub_raid_list): New variable.
15915 (free_array): New function.
15916 (grub_raid_register): Likewise.
15917 (grub_raid_unregister): Likewise.
15918 (grub_raid_rescan): Likewise.
15919 (GRUB_MOD_INIT): Don't iterate device here.
15920 (GRUB_MOD_FINI): Use free_array to release resource.
15921
15922 * include/grub/raid.h: Remove macro and structure specific to mdraid.
15923 (grub_raid5_recover_func_t): New function variable type.
15924 (grub_raid6_recover_func_t): Likewise.
15925 (grub_raid5_recover_func): New variable.
15926 (grub_raid6_recover_func): Likewise.
15927 (grub_raid_register): New function.
15928 (grub_raid_unregister): Likewise.
15929 (grub_raid_rescan): Likewise.
15930 (grub_raid_block_xor): Likewise.
15931
15932 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
15933 (CMD_CRC): New macro.
15934 (part): Removed.
15935 (read_file): Handle device as well as file.
15936 (cmd_crc): New function.
15937 (fstest): Handle multiple disks.
15938 (options): Remove part, raw and long, add root and diskcount.
15939 (usage): Add crc, remove -p, -r, -l, add -r and -c.
15940 (main): Find the first non option entry and ignore subsequent options,
15941 add handling for the new options, support multiple disks.
15942
15943 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
15944
15945 2008-08-23 Bean <bean123ch@gmail.com>
15946
15947 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
15948
15949 * genfslist.sh: Ignore kernel.mod.
15950
15951 * genpartmaplist.sh: Likewise.
15952
15953 2008-08-23 Robert Millan <rmh@aybabtu.com>
15954
15955 * util/getroot.c (find_root_device): Skip anything that starts with
15956 a dot, not just directories. This avoids things like /dev/.tmp.md0.
15957
15958 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
15959
15960 * util/update-grub.in (GRUB_GFXMODE): Export variable.
15961 * util/grub.d/00_header.in: Allow the administrator to change default
15962 gfxmode via ${GRUB_GFXMODE}.
15963
15964 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
15965
15966 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
15967
15968 2008-08-21 Robert Millan <rmh@aybabtu.com>
15969
15970 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
15971 loader.
15972 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
15973 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
15974
15975 2008-08-20 Carles Pina i Estany <carles@pina.cat>
15976
15977 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
15978 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
15979
15980 2008-08-19 Robert Millan <rmh@aybabtu.com>
15981
15982 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
15983 (struct grub_virtual_screen): Remove `cursor_color'.
15984 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
15985 initialization.
15986 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
15987
15988 2008-08-18 Robert Millan <rmh@aybabtu.com>
15989
15990 Unify (identical) linux_normal.c files.
15991 * loader/i386/efi/linux_normal.c: Move from here ...
15992 * loader/linux_normal.c: ... to here. Update all users.
15993 * loader/i386/pc/linux_normal.c: Delete. Update all users.
15994 * loader/i386/ieee1275/linux_normal.c: Likewise.
15995
15996 2008-08-18 Robert Millan <rmh@aybabtu.com>
15997
15998 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
15999 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
16000 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
16001 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
16002 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
16003 New macros.
16004 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
16005 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
16006 (GRUB_LINUX_CL_END_OFFSET): ... to here.
16007 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
16008 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
16009 (GRUB_EFI_CL_END_OFFSET): Rename to ...
16010 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
16011 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
16012 Initialize `params->video_cursor_x' and `params->video_cursor_y'
16013 portably using grub_getxy().
16014 Replace `-EFI' with `-bzImage' in boot message.
16015
16016 2008-08-17 Robert Millan <rmh@aybabtu.com>
16017
16018 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
16019
16020 2008-08-17 Robert Millan <rmh@aybabtu.com>
16021
16022 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
16023
16024 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
16025 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
16026 (grub_machine_mmap_iterate): New function declaration.
16027 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
16028 structure.
16029 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
16030 macros.
16031
16032 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
16033 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
16034 Move e820 parsing from here ...
16035 * kern/i386/pc/mmap.c: New file.
16036 (grub_machine_mmap_iterate): ... to here.
16037
16038 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
16039 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
16040 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
16041 (grub_available_iterate): Redeclare to return `void', and redeclare
16042 its hook to use grub_uint64_t as addr and size parameters, and rename
16043 to ...
16044 (grub_machine_mmap_iterate): ... this. Update all users.
16045
16046 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
16047 to make it more readable. Rename to ...
16048 (grub_machine_mmap_iterate): ... this.
16049
16050 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
16051 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
16052 (grub_multiboot): Allocate an extra region after the payload, and fill
16053 it with a Multiboot memory map. Adjust a.out loader to calculate size
16054 with the extra space.
16055 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
16056 with the extra space.
16057
16058 2008-08-17 Carles Pina i Estany <carles@pina.cat>
16059
16060 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
16061
16062 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
16063
16064 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
16065 mdate-sh to the list `find' searches for.
16066 * DISTLIST: Regenerated.
16067
16068 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
16069
16070 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
16071 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
16072 genmoddep.awk, gensymlist.sh.in.
16073 (DISTDIRS): Add bus, docs, hook, lib.
16074 * DISTLIST: Regenerated.
16075 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
16076
16077 2008-08-16 Robert Millan <rmh@aybabtu.com>
16078
16079 * disk/raid.c (grub_raid_init): Handle/report errors set by
16080 grub_device_iterate().
16081 * disk/lvm.c (grub_lvm_init): Likewise.
16082
16083 2008-08-15 Bean <bean123ch@gmail.com>
16084
16085 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16086 and datehook.mod.
16087 (datetime_mod_SOURCES): New macro.
16088 (datetime_mod_CFLAGS): Likewise.
16089 (datetime_mod_LDFLAGS): Likewise.
16090 (date_mod_SOURCES): Likewise.
16091 (date_mod_CFLAGS): Likewise.
16092 (date_mod_LDFLAGS): Likewise.
16093 (datehook_mod_SOURCES): Likewise.
16094 (datehook_mod_CFLAGS): Likewise.
16095 (datehook_mod_LDFLAGS): Likewise.
16096
16097 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16098 and datehook.mod.
16099 (datetime_mod_SOURCES): New macro.
16100 (datetime_mod_CFLAGS): Likewise.
16101 (datetime_mod_LDFLAGS): Likewise.
16102 (date_mod_SOURCES): Likewise.
16103 (date_mod_CFLAGS): Likewise.
16104 (date_mod_LDFLAGS): Likewise.
16105 (datehook_mod_SOURCES): Likewise.
16106 (datehook_mod_CFLAGS): Likewise.
16107 (datehook_mod_LDFLAGS): Likewise.
16108
16109 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16110 and datehook.mod.
16111 (datetime_mod_SOURCES): New macro.
16112 (datetime_mod_CFLAGS): Likewise.
16113 (datetime_mod_LDFLAGS): Likewise.
16114 (date_mod_SOURCES): Likewise.
16115 (date_mod_CFLAGS): Likewise.
16116 (date_mod_LDFLAGS): Likewise.
16117 (datehook_mod_SOURCES): Likewise.
16118 (datehook_mod_CFLAGS): Likewise.
16119 (datehook_mod_LDFLAGS): Likewise.
16120
16121 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16122 and datehook.mod.
16123 (datetime_mod_SOURCES): New macro.
16124 (datetime_mod_CFLAGS): Likewise.
16125 (datetime_mod_LDFLAGS): Likewise.
16126 (date_mod_SOURCES): Likewise.
16127 (date_mod_CFLAGS): Likewise.
16128 (date_mod_LDFLAGS): Likewise.
16129 (datehook_mod_SOURCES): Likewise.
16130 (datehook_mod_CFLAGS): Likewise.
16131 (datehook_mod_LDFLAGS): Likewise.
16132
16133 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16134 and datehook.mod.
16135 (datetime_mod_SOURCES): New macro.
16136 (datetime_mod_CFLAGS): Likewise.
16137 (datetime_mod_LDFLAGS): Likewise.
16138 (date_mod_SOURCES): Likewise.
16139 (date_mod_CFLAGS): Likewise.
16140 (date_mod_LDFLAGS): Likewise.
16141 (datehook_mod_SOURCES): Likewise.
16142 (datehook_mod_CFLAGS): Likewise.
16143 (datehook_mod_LDFLAGS): Likewise.
16144
16145 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
16146
16147 * commands/date.c: New file.
16148
16149 * hook/datehook.c: Likewise.
16150
16151 * include/grub/lib/datetime.h: Likewise.
16152
16153 * include/grub/i386/cmos.h: Likewise.
16154
16155 * lib/datetime.c: Likewise.
16156
16157 * lib/i386/datetime.c: Likewise.
16158
16159 * lib/efi/datetime.c: Likewise.
16160
16161 2008-08-14 Robert Millan <rmh@aybabtu.com>
16162
16163 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
16164 (grub_mkelfimage_SOURCES): New variable.
16165 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
16166
16167 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
16168 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
16169 * conf/powerpc-ieee1275.rmk: Likewise.
16170 * conf/i386-ieee1275.rmk: Likewise.
16171
16172 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
16173 * kern/i386/coreboot/init.c: Likewise.
16174
16175 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
16176 with `<grub/cpu/kernel.h>'.
16177 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
16178 to ...
16179 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
16180 * kern/i386/coreboot/startup.S: Likewise.
16181
16182 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
16183 (GRUB_MOD_GAP): Remove.
16184 * include/grub/powerpc/kernel.h: New file.
16185 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
16186 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
16187 * include/grub/i386/kernel.h: New file.
16188 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
16189 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
16190 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
16191
16192 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
16193 `grub-mkelfimage'.
16194 Use --directory when invoking grub_mkimage.
16195
16196 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
16197 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
16198 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
16199 and GRUB_KERNEL_CPU_PREFIX.
16200
16201 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
16202
16203 * include/grub/err.h (grub_err_printf): New function prototype.
16204 * util/misc.c (grub_err_printf): New function.
16205 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
16206 grub_printf.
16207 * kern/err.c (grub_print_error): Use grub_err_printf.
16208
16209 2008-08-13 Robert Millan <rmh@aybabtu.com>
16210
16211 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
16212
16213 2008-08-13 Robert Millan <rmh@aybabtu.com>
16214
16215 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
16216 boot entry.
16217
16218 2008-08-12 Robert Millan <rmh@aybabtu.com>
16219
16220 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
16221 of the relocation code from here ...
16222 (grub_multiboot): ... to here.
16223 (forward_relocator, backward_relocator): Move from here ...
16224 * kern/i386/loader.S (grub_multiboot_forward_relocator)
16225 (grub_multiboot_backward_relocator): ... to here.
16226 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
16227 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
16228 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
16229 (grub_multiboot_forward_relocator_end)
16230 (grub_multiboot_backward_relocator)
16231 (grub_multiboot_backward_relocator_end): New variables.
16232
16233 2008-08-12 Bean <bean123ch@gmail.com>
16234
16235 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
16236
16237 2008-08-11 Robert Millan <rmh@aybabtu.com>
16238
16239 * kern/i386/linuxbios/startup.S: Move from here ...
16240 * kern/i386/coreboot/startup.S: ... to here.
16241
16242 * kern/i386/linuxbios/init.c: Move from here ...
16243 * kern/i386/coreboot/init.c: ... to here.
16244
16245 * kern/i386/linuxbios/table.c: Move from here ...
16246 * kern/i386/coreboot/mmap.c: ... to here.
16247
16248 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
16249
16250 2008-08-11 Robert Millan <rmh@aybabtu.com>
16251
16252 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
16253 errors. Leave it to the upper layer to handle them.
16254
16255 2008-08-09 Christian Franke <franke@computer.org>
16256
16257 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
16258 * conf/common.rmk: Install `grub-pe2elf' only if requested.
16259 Install `grub.d/10_windows' only on Cygwin.
16260 * configure.ac: Add subst of `target_os'.
16261 Check `target_os' also before setting TARGET_OBJ2ELF.
16262 Add `--enable-grub-pe2elf'.
16263
16264 2008-08-08 Robert Millan <rmh@aybabtu.com>
16265
16266 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
16267 (grub_last_time): Change type to grub_uint64_t.
16268 (grub_disk_open): Migrate code from to using grub_get_time_ms().
16269 (grub_disk_close): Likewise.
16270
16271 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
16272 (run_menu): Migrate code from to using grub_get_time_ms().
16273
16274 * util/misc.c (grub_get_time_ms): New function.
16275
16276 2008-08-08 Marco Gerards <marco@gnu.org>
16277
16278 * disk/ata.c (grub_ata_regget): Change return type to
16279 `grub_uint8_t'.
16280 (grub_ata_regget2): Likewise.
16281 (grub_ata_wait_status): New function.
16282 (grub_ata_wait_busy): Removed function, updated all users to use
16283 `grub_ata_wait_status'.
16284 (grub_ata_wait_drq): Likewise.
16285 (grub_ata_cmd): New function.
16286 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
16287 error handling.
16288 (grub_ata_pio_write): Add error handling.
16289 (grub_atapi_identify): Likewise.
16290 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
16291 handling.
16292 (grub_ata_identify): Use `grub_ata_cmd' and improve error
16293 handling. Actually use the detected registers. Reorder the
16294 detection logic such that it is easier to read.
16295 (grub_ata_pciinit): Do not assign the same ID to each controller.
16296 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
16297 handling.
16298 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
16299
16300 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
16301
16302 2008-08-08 Marco Gerards <marco@gnu.org>
16303
16304 * NEWS: Update.
16305
16306 2008-08-07 Bean <bean123ch@gmail.com>
16307
16308 * include/grub/x86_64/pci.h: New file.
16309
16310 2008-08-07 Christian Franke <franke@computer.org>
16311
16312 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
16313 (TIMER2_GATE): Likewise.
16314 (grub_pit_wait): Add enable/disable of the timer2 gate
16315 bit of port 0x61. This fixes a possible infinite loop.
16316
16317 2008-08-07 Bean <bean123ch@gmail.com>
16318
16319 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
16320 kern/i386/tsc.c and kern/i386/pit.c.
16321
16322 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
16323 x86_64 platform.
16324
16325 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
16326 <grub/i386/tsc.h>.
16327
16328 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
16329
16330 2008-08-07 Bean <bean123ch@gmail.com>
16331
16332 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
16333
16334 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
16335
16336 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
16337 multiple inclusion. Add #include <grub/types.h>.
16338
16339 2008-08-06 Christian Franke <franke@computer.org>
16340
16341 * conf/common.rmk: Build and install `10_windows'.
16342 * util/grub.d/10_windows.in: New script.
16343
16344 2008-08-06 Pavel Roskin <proski@gnu.org>
16345
16346 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
16347
16348 2008-08-06 Robert Millan <rmh@aybabtu.com>
16349
16350 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
16351 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
16352
16353 2008-08-06 Bean <bean123ch@gmail.com>
16354
16355 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
16356 (grub_pxefs_fs_int): Remove dummy definition.
16357 (grub_pxefs_open): Use data->block_size to store the current block
16358 size setting.
16359 (grub_pxefs_read): Use block size stored in data->block_size. As the
16360 value of grub_pxe_blksize can be changed after the file is opened.
16361
16362 2008-08-06 Bean <bean123ch@gmail.com>
16363
16364 * fs/i386/pc/pxe.c (curr_file): new variable.
16365 (grub_pxefs_open): Simply the handling of pxe file system. Don't
16366 require the dummy internal file system anymore.
16367 (grub_pxefs_read): Removed.
16368 (grub_pxefs_close): Likewise.
16369 (grub_pxefs_fs_int): Likewise.
16370 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
16371 connection when we switch file.
16372 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
16373
16374 2008-08-06 Robert Millan <rmh@aybabtu.com>
16375
16376 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
16377 `halt.mod'.
16378 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
16379 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
16380
16381 * kern/i386/halt.c: New file.
16382 * kern/i386/reboot.c: Likewise.
16383 * include/grub/i386/reboot.h: Likewise.
16384 * include/grub/i386/halt.h: Likewise.
16385
16386 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
16387 Include `<grub/cpu/halt.h>'.
16388 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
16389 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
16390
16391 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
16392 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
16393 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
16394 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
16395 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
16396 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
16397 from here ...
16398 * include/grub/i386/at_keyboard.h: ... to here.
16399
16400 2008-08-05 Robert Millan <rmh@aybabtu.com>
16401
16402 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
16403 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
16404 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
16405 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
16406 `kern/generic/millisleep.c'.
16407
16408 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
16409 instead of grub_get_rtc().
16410 (grub_tsc_init): Initialize `tsc_boot_time'.
16411
16412 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
16413 (grub_machine_init): Use grub_tsc_init() rather than
16414 installing an RTC-based handler via grub_install_get_time_ms().
16415
16416 * kern/i386/pit.c: New file.
16417 * include/grub/i386/pit.h: Likewise.
16418
16419 2008-08-05 Bean <bean123ch@gmail.com>
16420
16421 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
16422
16423 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
16424 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
16425 (pxe_mod_SOURCES): New macro.
16426 (pxe_mod_CFLAGS): Likewise.
16427 (pxe_mod_LDFLAGS): Likewise.
16428 (pxecmd_mod_SOURCES): Likewise.
16429 (pxecmd_mod_CFLAGS): Likewise.
16430 (pxecmd_mod_LDFLAGS): Likewise.
16431
16432 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
16433 (grub_pxe_call): Likewise.
16434
16435 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
16436
16437 * commands/i386/pc/pxecmd.c: New file.
16438
16439 * fs/i386/pc/pxe.c: Likewise.
16440
16441 * include/grub/i386/pc/pxe.h: Likewise.
16442
16443 2008-08-05 Bean <bean123ch@gmail.com>
16444
16445 * util/console.c (grub_console_cur_color): New variable.
16446 (grub_console_standard_color): Likewise.
16447 (grub_console_normal_color): Likewise.
16448 (grub_console_highlight_color): Likewise.
16449 (color_map): Likewise.
16450 (use_color): Likewise.
16451 (NUM_COLORS): New macro.
16452 (grub_ncurses_setcolorstate): Handle color properly.
16453 (grub_ncurses_setcolor): Don't change color here, just remember the
16454 settings, color will be set in grub_ncurses_setcolorstate.
16455 (grub_ncurses_getcolor): New function.
16456 (grub_ncurses_init): Initialize color pairs.
16457 (grub_ncurses_term): New member grub_ncurses_getcolor.
16458
16459 2008-08-05 Colin D Bennett <colin@gibibit.com>
16460
16461 High resolution timer support. Implemented for x86 CPUs using TSC.
16462 Extracted generic grub_millisleep() so it's linked in only as needed.
16463 This requires a Pentium compatible CPU; if the RDTSC instruction is
16464 not supported, then it falls back on the generic grub_get_time_ms()
16465 implementation that uses the machine's RTC.
16466
16467 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
16468 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
16469 `kern/generic/millisleep.c'.
16470
16471 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
16472 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
16473
16474 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
16475 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
16476
16477 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16478
16479 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
16480 `kern/generic/millisleep.c'.
16481
16482 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16483
16484 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
16485
16486 * kern/generic/rtc_get_time_ms.c: New file.
16487
16488 * kern/generic/millisleep.c: New file.
16489
16490 * kern/misc.c: Don't include
16491 <kern/time.h> anymore.
16492 (grub_millisleep_generic): Removed.
16493
16494 * commands/sleep.c (grub_interruptible_millisleep): Uses
16495 grub_get_time_ms() instead of grub_get_rtc().
16496
16497 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
16498 function.
16499 (grub_cpu_is_cpuid_supported): New inline function.
16500 (grub_cpu_is_tsc_supported): New inline function.
16501 (grub_tsc_init): New function prototype.
16502 (grub_tsc_get_time_ms): New function prototype.
16503
16504 * kern/i386/tsc.c (grub_get_time_ms): New file.
16505
16506 * include/grub/time.h: Include <grub/types.h.
16507 (grub_millisleep_generic): Removed.
16508 (grub_get_time_ms): New prototype.
16509 (grub_install_get_time_ms): New prototype.
16510 (grub_rtc_get_time_ms): New prototype.
16511
16512 * kern/time.c (grub_get_time_ms): New function.
16513 (grub_install_get_time_ms): New function.
16514
16515 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
16516 <grub/time.h> anymore.
16517 (grub_millisleep): Removed.
16518 (grub_machine_init): Call grub_tsc_init.
16519
16520 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
16521 get_time_ms() implementation.
16522
16523 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
16524 (ieee1275_get_time_ms): New function.
16525 (grub_machine_init): Install get_time_ms() implementation.
16526
16527 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
16528 (grub_machine_init): Call grub_tsc_init().
16529 (grub_millisleep): Removed.
16530
16531 * kern/ieee1275/init.c (grub_millisleep): Removed.
16532 (grub_machine_init): Install ieee1275_get_time_ms()
16533 implementation.
16534 (ieee1275_get_time_ms): New function.
16535 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
16536 real work.
16537
16538 2008-08-05 Marco Gerards <marco@gnu.org>
16539
16540 * disk/ata.c: Include <grub/pci.h>.
16541 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
16542 (grub_ata_initialize): Rewritten.
16543 (grub_ata_device_initialize): New function.
16544
16545 2008-08-04 Pavel Roskin <proski@gnu.org>
16546
16547 * kern/main.c: Include grub/mm.h.
16548
16549 2008-08-04 Robert Millan <rmh@aybabtu.com>
16550
16551 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
16552 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
16553 corruption problem).
16554
16555 2008-08-04 Robert Millan <rmh@aybabtu.com>
16556
16557 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
16558 warnings introduced in my last commit.
16559
16560 2008-08-03 Robert Millan <rmh@aybabtu.com>
16561
16562 Make PCI available on all i386 architectures.
16563
16564 * include/grub/i386/pc/pci.h: Move from here ...
16565 * include/grub/i386/pci.h: ... to here.
16566
16567 * include/grub/i386/pc/pci.h: Remove.
16568 * include/grub/i386/efi/pci.h: Remove.
16569 * include/grub/x86_64/efi/pci.h: Remove.
16570
16571 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
16572 `<grub/cpu/pci.h>'.
16573
16574 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
16575 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
16576 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
16577
16578 * conf/i386-ieee1275.rmk: Likewise.
16579
16580 2008-08-03 Robert Millan <rmh@aybabtu.com>
16581
16582 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
16583 (grub_console_setcursor): Make it possible to set cursor off.
16584
16585 2008-08-03 Robert Millan <rmh@aybabtu.com>
16586
16587 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
16588 of modules instead of assuming which platform provides what.
16589 * util/update-grub.in: Likewise.
16590
16591 2008-08-03 Robert Millan <rmh@aybabtu.com>
16592
16593 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
16594 instead of `grub_install_dos_part' to determine whether a drive needs
16595 to be prepended to prefix (`grub_install_dos_part' is not reliable,
16596 because it can be overridden when loading GRUB via Multiboot).
16597
16598 2008-08-02 Robert Millan <rmh@aybabtu.com>
16599
16600 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
16601
16602 2008-08-02 Robert Millan <rmh@aybabtu.com>
16603
16604 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
16605 of informational grub_dprintf() calls.
16606
16607 2008-08-02 Robert Millan <rmh@aybabtu.com>
16608
16609 * disk/memdisk.c (memdisk_size): Don't initialize.
16610 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
16611
16612 * include/grub/i386/pc/kernel.h
16613 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
16614 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
16615 (grub_memdisk_image_size, grub_arch_memdisk_addr)
16616 (grub_arch_memdisk_size): Remove.
16617
16618 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
16619 field (was only used to transfer a constant). Add `type' field to
16620 support multiple module types.
16621 (grub_module_iterate): New function.
16622
16623 * kern/device.c (grub_device_open): Do not hide error messages
16624 when grub_disk_open() fails. Use grub_print_error() instead.
16625
16626 * kern/i386/pc/init.c (grub_arch_modules_addr)
16627 (grub_arch_memdisk_size): Remove functions.
16628 (grub_arch_modules_addr): Return the module address in high memory
16629 (now that it isn't copied anymore).
16630
16631 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
16632 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
16633 decompression routine (grub_total_module_size already includes that
16634 now). Don't copy modules back to low memory.
16635
16636 * kern/main.c: Include `<grub/mm.h>'.
16637 (grub_load_modules): Split out (and use) ...
16638 (grub_module_iterate): ... this function, which iterates through
16639 module objects and runs a hook.
16640 Comment out grub_mm_init_region() call, as it would cause non-ELF
16641 modules to be overwritten.
16642
16643 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
16644 the memdisk image in its own region, make it part of the module list.
16645 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
16646 (main): Parse --memdisk|-m option, and pass user-provided path as
16647 parameter to generate_image().
16648 (add_segments): Pass `memdisk_path' down to load_modules().
16649 (load_modules): Embed memdisk image in module section when requested.
16650 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
16651 `header.type' instead of `header.offset'.
16652
16653 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
16654 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
16655 (memdisk_mod_LDFLAGS): New variables.
16656 * conf/i386-coreboot.rmk: Likewise.
16657 * conf/i386-ieee1275.rmk: Likewise.
16658
16659 2008-08-02 Robert Millan <rmh@aybabtu.com>
16660
16661 * loader/i386/pc/multiboot.c (playground, forward_relocator)
16662 (backward_relocator): New variables. Used to allocate and relocate
16663 the payload, respectively.
16664 (grub_multiboot_load_elf32): Load into heap instead of requested
16665 address, install the appropriate relocator code in each bound of
16666 the payload, and set the entry point such that
16667 grub_multiboot_real_boot() will jump to one of them.
16668
16669 * kern/i386/loader.S (grub_multiboot_payload_size)
16670 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16671 (grub_multiboot_payload_entry_offset): New variables.
16672 (grub_multiboot_real_boot): Set cpu context to what the relocator
16673 expects, and jump to the relocator instead of the payload.
16674
16675 * include/grub/i386/loader.h (grub_multiboot_payload_size)
16676 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16677 (grub_multiboot_payload_entry_offset): Export.
16678
16679 2008-08-01 Bean <bean123ch@gmail.com>
16680
16681 * normal/menu_entry.c (editor_getline): Don't return the original
16682 string as result, as it will be released by lexer once it has done
16683 using it.
16684
16685 2008-08-01 Robert Millan <rmh@aybabtu.com>
16686
16687 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
16688 within menuentries, not before them.
16689 util/grub.d/10_hurd.in: Likewise.
16690
16691 2008-08-01 Bean <bean123ch@gmail.com>
16692
16693 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
16694 (bufio_mod_SOURCES): New macro.
16695 (bufio_mod_CFLAGS): Likewise.
16696 (bufio_mod_LDFLAGS): Likewise.
16697
16698 * include/grub/bufio.h: New file.
16699
16700 * io/bufio.c: Likewise.
16701
16702 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
16703 (grub_video_reader_png): Use grub_buffile_open to open file.
16704
16705 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
16706 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
16707
16708 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
16709 (grub_video_reader_tga): Use grub_buffile_open to open file.
16710
16711 * font/manager.c: Include <grub/bufio.h>.
16712 (add_font): Use grub_buffile_open to open file.
16713
16714 2008-07-31 Robert Millan <rmh@aybabtu.com>
16715
16716 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
16717 ELF segments, use a macro for arbitrarily accessing any of them instead
16718 of preparing a pointer that allows access to one at a time.
16719 (grub_multiboot_load_elf64): Likewise.
16720
16721 2008-07-31 Bean <bean123ch@gmail.com>
16722
16723 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
16724 GRUB_KERNEL_MACHINE_DATA_END.
16725
16726 2008-07-30 Robert Millan <rmh@aybabtu.com>
16727
16728 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
16729 Increase from 0x50 to 0x60.
16730 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
16731 use UUIDs to identify the root drive for them. If that's not
16732 possible, abort.
16733 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
16734 check, for cross-disk installs.
16735
16736 2008-07-30 Robert Millan <rmh@aybabtu.com>
16737
16738 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
16739 is non-empty, use it to set the `prefix' environment variable instead
16740 of the usual approach.
16741 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
16742 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
16743 environment variable instead of dummy make_install_device().
16744
16745 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
16746 (start): Insert a data section, with `grub_prefix' variable.
16747 * kern/i386/linuxbios/startup.S: Likewise.
16748
16749 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
16750 New variable reference.
16751 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
16752 New macro. Defines offset of `grub_prefix' within startup.S (relative
16753 to `start').
16754 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
16755 section within startup.S (relative to `start').
16756 * include/grub/i386/coreboot/kernel.h: Likewise.
16757
16758 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
16759 Overwrite grub_prefix with its contents, at the beginning of the
16760 first segment.
16761 (main): Understand -p|--prefix.
16762
16763 2008-07-30 Robert Millan <rmh@aybabtu.com>
16764
16765 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
16766
16767 2008-07-30 Robert Millan <rmh@aybabtu.com>
16768
16769 * term/i386/pc/vga_text.c (grub_console_cls): Use
16770 grub_console_gotoxy() to go back to beginning of the screen.
16771 Found by Patrick Georgi <patrick.georgi@coresystems.de>
16772
16773 2008-07-29 Christian Franke <franke@computer.org>
16774
16775 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
16776 Add conversion of emulated mount points on Cygwin.
16777
16778 2008-07-29 Christian Franke <franke@computer.org>
16779
16780 * util/update-grub.in: Add a check for admin
16781 group on Cygwin.
16782 Remove old `grub.cfg.new' before creation.
16783 Add `-f' to `mv' to handle the different filesystem
16784 semantics of Windows.
16785
16786 2008-07-29 Bean <bean123ch@gmail.com>
16787
16788 * normal/main.c (get_line): Fix buffer overflow bug.
16789
16790 2008-07-28 Robert Millan <rmh@aybabtu.com>
16791
16792 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
16793 (struct grub_apple_header): New struct. Describes the layout of
16794 the partmap header.
16795 (apple_partition_map_iterate): Check the header magic as well as the
16796 partition magic (which was already being checked).
16797
16798 2008-07-28 Pavel Roskin <proski@gnu.org>
16799
16800 * genmk.rb: Add a warning to the beginning of the output that
16801 it's a generated file and should not be edited.
16802
16803 2008-07-28 Robert Millan <rmh@aybabtu.com>
16804
16805 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
16806 with the same number are found, just use issue a warning with
16807 grub_dprintf(), as this error has been reported to be non-fatal.
16808
16809 2008-07-27 Robert Millan <rmh@aybabtu.com>
16810
16811 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
16812 information.
16813
16814 2008-07-27 Bean <bean123ch@gmail.com>
16815
16816 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
16817 (grub_fat_find_dir): Ignore case when comparing filename.
16818
16819 2008-07-27 Bean <bean123ch@gmail.com>
16820
16821 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
16822 smallino, as it's more descriptive, and i8count can be confused with
16823 the other field count.
16824 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
16825 inode type.
16826
16827 2008-07-27 Bean <bean123ch@gmail.com>
16828
16829 * commands/crc.c: New file.
16830
16831 * lib/crc.c: Likewise.
16832
16833 * include/grub/lib/crc.h: Likewise.
16834
16835 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
16836
16837 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
16838 (hexdump): Move this function to ...
16839
16840 * lib/hexdump.c: ... here.
16841
16842 * include/grub/hexdump.h: Renamed to ...
16843
16844 * include/grub/lib/hexdump.h: ... this.
16845
16846 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
16847
16848 * util/grub-editenv.c: Likewise.
16849
16850 * include/envblk.h: Renamed to ...
16851
16852 * include/lib/envblk.h: ... this.
16853
16854 * util/envblk.c: Renamed to ...
16855
16856 * lib/envblk.c: ... this.
16857
16858 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
16859 lib/hexdump.c.
16860 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
16861 (pkglib_MODULES): Add crc.mod.
16862 (hexdump_mod_SOURCES): Add lib/hexdump.c.
16863 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
16864 (crc_mod_SOURCES): New macro.
16865 (crc_mod_CFLAGS): Likewise.
16866 (crc_mod_LDFLAGS): Likewise.
16867
16868 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
16869
16870 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16871
16872 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16873
16874 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16875
16876 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16877
16878 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
16879
16880 * commands/help.c: Include <grub/term.h>.
16881 (TERM_WIDTH): Removed. Updated all users.
16882
16883 2008-07-27 Pavel Roskin <proski@gnu.org>
16884
16885 * util/getroot.c (find_root_device): Rephrase a comment to avoid
16886 spurious warnings about a comment within a comment.
16887
16888 2008-07-25 Robert Millan <rmh@aybabtu.com>
16889
16890 * util/getroot.c (find_root_device): Skip devices that match
16891 /dev/dm-[0-9]. This lets the real device be found for any type of
16892 abstraction (LVM, EVMS, RAID..).
16893 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
16894 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
16895 device is found first, find_root_device() will now skip it.
16896
16897 2008-07-24 Pavel Roskin <proski@gnu.org>
16898
16899 * include/grub/types.h: Use __builtin_bswap32() and
16900 __builtin_bswap64() with gcc 4.3 and newer.
16901
16902 2008-07-24 Christian Franke <franke@computer.org>
16903
16904 * util/i386/pc/grub-install.in: If `--debug' is specified,
16905 pass `--verbose' to grub-setup.
16906 Abort script if make_system_path_relative_to_its_root() fails.
16907
16908 2008-07-24 Bean <bean123ch@gmail.com>
16909
16910 * configure.ac: Fixed a bug caused by the previous cygwin patch,
16911 variable `target_platform' should be `platform'.
16912
16913 2008-07-24 Bean <bean123ch@gmail.com>
16914
16915 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
16916 (grub_png_init_fixed_block): New function.
16917 (grub_png_decode_image_data): Handle fixed huffman code compression.
16918
16919 2008-07-24 Bean <bean123ch@gmail.com>
16920
16921 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
16922 (grub_pe2elf_SOURCES): New macro.
16923 (CLEANFILES): Add grub-pe2elf.
16924
16925 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
16926 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
16927 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
16928 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
16929 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
16930 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
16931 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
16932 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
16933 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
16934 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
16935 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
16936 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
16937 (GRUB_PE32_DT_FUNCTION): Likewise.
16938 (GRUB_PE32_REL_I386_DIR32): Likewise.
16939 (GRUB_PE32_REL_I386_REL32): Likewise.
16940 (grub_pe32_symbol): New structure.
16941 (grub_pe32_reloc): Likewise.
16942
16943 * util/grub-pe2elf.c: New file.
16944
16945 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
16946 start symbol in non pc platform.
16947
16948 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
16949
16950 The following patches are from Christian Franke.
16951
16952 * include/grub/dl.h: Remove .previous, gas supports this only
16953 for ELF format.
16954
16955 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
16956 Remove .type, gas supports this only for ELF format.
16957
16958 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
16959 nullbytes in symbol table. This fixes an infinite loop if table is
16960 zero filled.
16961
16962 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
16963 TARGET_IMG_LDFLAGS and EXEEXT.
16964
16965 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
16966 TARGET_IMG_LDFLAGS_AC.
16967 (grub_CHECK_STACK_ARG_PROBE): New function.
16968
16969 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
16970
16971 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
16972
16973 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
16974 to set TARGET_IMG_LD* accordingly.
16975 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
16976 Add call to grub_CHECK_STACK_ARG_PROBE.
16977 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
16978
16979 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
16980
16981 * genmk.rb: Add EXEEXT to CLEANFILES.
16982
16983 2008-07-23 Robert Millan <rmh@aybabtu.com>
16984
16985 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
16986 define the codes for arrows and lines used for the menu).
16987 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
16988 as well.
16989
16990 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
16991 fonts, because the latter are too slow.
16992
16993 2008-07-21 Bean <bean123ch@gmail.com>
16994
16995 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
16996 a20. Run keyboard test last, as it will cause macbook to halt.
16997
16998 2008-07-18 Pavel Roskin <proski@gnu.org>
16999
17000 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
17001 load foreign architecture modules correctly anyway. Keep
17002 support for loading host architecture modules, whether we
17003 compile them or not.
17004
17005 2008-07-17 Pavel Roskin <proski@gnu.org>
17006
17007 * configure.ac: Use -m32 or -m64 regardless of whether we had to
17008 change target_cpu. The compiler default can mismatch target_cpu
17009 in any case.
17010
17011 * disk/efi/efidisk.c: Fix format warnings on x86_64.
17012 * kern/efi/efi.c: Likewise.
17013
17014 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
17015 target compiler is functional.
17016 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
17017 are set up.
17018
17019 * configure.ac: Default to efi platform for x86_64-apple. Allow
17020 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
17021 adjustments from the rest, only do them if target is not
17022 explicitly given. Merge other adjustments with the final sanity
17023 check. Remove an extraneous check for supported CPU. Be
17024 specific which CPU and which platform is not supported.
17025
17026 * configure.ac: Default to pc platform for x86_64.
17027
17028 2008-07-17 Robert Millan <rmh@aybabtu.com>
17029
17030 Partial LinuxBIOS -> Coreboot rename.
17031
17032 * conf/i386-linuxbios.rmk: Renamed to ...
17033 * conf/i386-coreboot.rmk: ... this.
17034 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
17035 * configure.ac: Accept "coreboot" as input platform (but maintain
17036 compatibility with "linuxbios").
17037 * include/grub/i386/linuxbios: Renamed to ...
17038 * include/grub/i386/coreboot: ... this.
17039
17040 2008-07-17 Bean <bean123ch@gmail.com>
17041
17042 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
17043 (appleldr_mod_SOURCE): New variable.
17044 (appleldr_mod_CFLAGS): Likewise.
17045 (appleldr_mod_LDFLAGS): Likewise.
17046 (pci_mod_SOURCES): Likewise.
17047 (pci_mod_CFLAGS): Likewise.
17048 (pci_mod_LDFLAGS): Likewise.
17049 (lspci_mod_SOURCES): Likewise.
17050 (lspci_mod_CFLAGS): Likewise.
17051 (lspci_mod_LDFLAGS): Likewise.
17052
17053 * conf/x86_64-efi.rmk: New file.
17054
17055 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
17056 macro.
17057 (grub_efidisk_write): Likewise.
17058
17059 * include/efi/api.h (efi_call_0): New macro.
17060 (efi_call_1): Likewise.
17061 (efi_call_2): Likewise.
17062 (efi_call_3): Likewise.
17063 (efi_call_4): Likewise.
17064 (efi_call_5): Likewise.
17065 (efi_call_6): Likewise.
17066
17067 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
17068 grub_rescue_cmd_chainloader.
17069
17070 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
17071 (grub_pe32_optional_header): Change some fields based on i386 or
17072 x86_64 platform.
17073 (GRUB_PE32_PE32_MAGIC): Likewise.
17074
17075 * include/grub/efi/uga_draw.h: New file.
17076
17077 * include/grub/elf.h (STN_ABS): New constant.
17078 (R_X86_64_NONE): Relocation constant for x86_64.
17079 (R_X86_64_64): Likewise.
17080 (R_X86_64_PC32): Likewise.
17081 (R_X86_64_GOT32): Likewise.
17082 (R_X86_64_PLT32): Likewise.
17083 (R_X86_64_COPY): Likewise.
17084 (R_X86_64_GLOB_DAT): Likewise.
17085 (R_X86_64_JUMP_SLOT): Likewise.
17086 (R_X86_64_RELATIVE): Likewise.
17087 (R_X86_64_GOTPCREL): Likewise.
17088 (R_X86_64_32): Likewise.
17089 (R_X86_64_32S): Likewise.
17090 (R_X86_64_16): Likewise.
17091 (R_X86_64_PC16): Likewise.
17092 (R_X86_64_8): Likewise.
17093 (R_X86_64_PC8): Likewise.
17094
17095 * include/grub/i386/efi/pci.h: New file.
17096
17097 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
17098 Change it value based on platform.
17099 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
17100 (GRUB_E820_RAM): Likewise.
17101 (GRUB_E820_RESERVED): Likewise.
17102 (GRUB_E820_ACPI): Likewise.
17103 (GRUB_E820_NVS): Likewise.
17104 (GRUB_E820_EXEC_CODE): Likewise.
17105 (GRUB_E820_MAX_ENTRY): Likewise.
17106 (grub_e820_mmap): New structure.
17107 (linux_kernel_header): Change the efi field according to different
17108 kernel version, also field from linux_kernel_header.
17109
17110 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
17111
17112 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
17113 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
17114 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
17115 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
17116 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
17117 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
17118 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
17119 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
17120 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
17121 (GRUB_PCI_ADDR_IO_MASK): Likewise.
17122
17123 * include/grub/x86_64/efi/kernel.h: New file.
17124
17125 * include/grub/x86_64/efi/loader.h: Likewise.
17126
17127 * include/grub/x86_64/efi/machine.h: Likewise.
17128
17129 * include/grub/x86_64/efi/pci.h: Likewise.
17130
17131 * include/grub/x86_64/efi/time.h: Likewise.
17132
17133 * include/grub/x86_64/linux.h: Likewise.
17134
17135 * include/grub/x86_64/setjmp.h: Likewise.
17136
17137 * include/grub/x86_64/time.h: Likewise.
17138
17139 * include/grub/x86_64/types.h: Likewise.
17140
17141 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
17142 GRUB_TARGET_SIZEOF_VOID_P.
17143
17144 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
17145 (grub_efi_locate_handle): Likewise.
17146 (grub_efi_open_protocol): Likewise.
17147 (grub_efi_set_text_mode): Likewise.
17148 (grub_efi_stall): Likewise.
17149 (grub_exit): Likewise.
17150 (grub_reboot): Likewise.
17151 (grub_halt): Likewise.
17152 (grub_efi_exit_boot_services): Likewise.
17153 (grub_get_rtc): Likewise.
17154
17155 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
17156 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
17157 (grub_efi_allocate_pages): Wrap efi calls.
17158 (grub_efi_free_pages): Wrap efi calls.
17159 (grub_efi_get_memory_map): Wrap efi calls.
17160
17161 * kern/x86_64/dl.c: New file.
17162
17163 * kern/x86_64/efi/callwrap.S: Likewise.
17164
17165 * kern/x86_64/efi/startup.S: Likewise.
17166
17167 * loader/efi/appleloader.c: Likewise.
17168
17169 * loader/efi/chainloader.c (cmdline): New variable.
17170 (grub_chainloader_unload): Wrap efi calls.
17171 (grub_chainloader_boot): Likewise.
17172 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
17173 command line.
17174
17175 * loader/efi/chainloader_normal.c (chainloader_command):
17176 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
17177 command line.
17178
17179 * loader/i386/efi/linux.c (allocate_pages): Change allocation
17180 method.
17181 (grub_e820_add_region): New function.
17182 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
17183 booting.
17184 (grub_find_video_card): New function.
17185 (grub_linux_setup_video): New function.
17186 (grub_rescue_cmd_linux): Probe for video information.
17187
17188 * normal/x86_64/setjmp.S: New file.
17189
17190 * term/efi/console.c (map_char): New function.
17191 (grub_console_putchar): Map unicode char.
17192 (grub_console_checkkey): Wrap efi calls.
17193 (grub_console_getkey): Likewise.
17194 (grub_console_getwh): Likewise.
17195 (grub_console_gotoxy): Likewise.
17196 (grub_console_cls): Likewise.
17197 (grub_console_setcolorstate): Likewise.
17198 (grub_console_setcursor): Likewise.
17199
17200 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
17201
17202 2008-07-16 Pavel Roskin <proski@gnu.org>
17203
17204 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
17205 format strings.
17206
17207 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
17208 pointer, not an integer. This fixes a warning and prevents
17209 precision loss on 64-bit systems.
17210 (relocate_addresses): Remove unneeded cast.
17211
17212 2008-07-15 Pavel Roskin <proski@gnu.org>
17213
17214 * kern/i386/ieee1275/init.c: Include grub/cache.h.
17215
17216 * term/ieee1275/ofconsole.c: Disable code unused on i386.
17217
17218 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
17219 Fix comparison between signed and unsigned.
17220
17221 * include/grub/i386/ieee1275/console.h: Declare
17222 grub_console_init() and grub_console_fini().
17223
17224 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
17225 It's empty and unused.
17226
17227 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
17228 beginning to avoid warnings with some compilers.
17229
17230 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
17231 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
17232
17233 2008-07-14 Pavel Roskin <proski@gnu.org>
17234
17235 * kern/env.c (grub_register_variable_hook): Don't copy empty
17236 string, it leaks memory. Pass "" to grub_env_set(), it should
17237 handle constant strings.
17238
17239 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
17240 * commands/cmp.c (grub_cmd_cmp): Likewise.
17241 * kern/dl.c (grub_dl_flush_cache): Likewise.
17242 (grub_dl_load_core): Likewise.
17243 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
17244 (grub_elf64_load_phdrs): Likewise.
17245
17246 2008-07-13 Pavel Roskin <proski@gnu.org>
17247
17248 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
17249 between signed and unsigned.
17250 (LzmaEnc_Finish): Fix warning about an unused parameter.
17251
17252 2008-07-13 Bean <bean123ch@gmail.com>
17253
17254 * Makefile.in (enable_lzo): New rule.
17255
17256 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
17257
17258 * configure.ac (ENABLE_LZO): New option --enable-lzo.
17259
17260 * boot/i386/pc/lnxboot.S: #include <config.h>.
17261
17262 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
17263 its value according to the compression algorithm used, lzo or lzma.
17264
17265 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
17266 compression algorithm according to configure macro.
17267
17268 * kern/i386/pc/startup.S (codestart): Likewise.
17269
17270 * kern/i386/pc/lzma_decode.S: New file.
17271
17272 * include/grub/lib/LzFind.h: Likewise.
17273
17274 * include/grub/lib/LzHash.h: Likewise.
17275
17276 * include/grub/lib/LzmaDec.h: Likewise.
17277
17278 * include/grub/lib/LzmaEnc.h: Likewise.
17279
17280 * include/grub/lib/LzmaTypes.h: Likewise.
17281
17282 * lib/LzFind.c: Likewise.
17283
17284 * lib/LzmaDec.c: Likewise.
17285
17286 * lib/LzmaEnc.c: Likewise.
17287
17288 2008-07-13 Bean <bean123ch@gmail.com>
17289
17290 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
17291 (grub_ext4_extent_header): New structure.
17292 (grub_ext4_extent): Likewise.
17293 (grub_ext4_extent_idx): Likewise.
17294 (grub_ext4_find_leaf): New function.
17295 (grub_ext2_read_block): Handle extents.
17296
17297 2008-07-12 Robert Millan <rmh@aybabtu.com>
17298
17299 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
17300
17301 2008-07-11 Robert Millan <rmh@aybabtu.com>
17302
17303 * util/grub.d/40_custom.in: New file. Example on how to add custom
17304 entries to /etc/grub.d.
17305 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
17306 40_custom (implicitly, by merging all the grub.d rules).
17307
17308 2008-07-11 Pavel Roskin <proski@gnu.org>
17309
17310 * commands/read.c (grub_getline): Fix invalid memory access.
17311 Don't add newline to the variable value.
17312
17313 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
17314 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
17315 (serial_hw_get_port): Check validity of the port number.
17316 (grub_cmd_serial): Check return value of serial_hw_get_port().
17317
17318 2008-07-07 Pavel Roskin <proski@gnu.org>
17319
17320 * boot/i386/pc/diskboot.S (notification_string): Replace
17321 "Loading kernel" with just "loading". This is shorter, less
17322 confusing and saves a few bytes for possible future changes.
17323
17324 2008-07-05 Pavel Roskin <proski@gnu.org>
17325
17326 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
17327 size for ATAPI devices, they are undefined. Output sector
17328 number in decimal form.
17329
17330 * disk/ata.c: Use named constants for status bits.
17331
17332 2008-07-04 Pavel Roskin <proski@gnu.org>
17333
17334 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
17335 grub_addr_t before casting it to the void pointer to fix a
17336 warning. Non-addressable regions are discarded earlier.
17337 (grub_arch_modules_addr): Cast _end to grub_addr_t.
17338 * kern/i386/linuxbios/table.c: Include grub/misc.h.
17339 (check_signature): Don't shadow table_header.
17340 (grub_linuxbios_table_iterate): Cast numeric constants to
17341 grub_linuxbios_table_header_t.
17342 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
17343 grub_stop().
17344
17345 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
17346 prevent warnings.
17347
17348 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
17349 pointer, which can cause warnings. Support 64-bit addresses.
17350
17351 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
17352 of sizeof(long). This fixes PowerPC image generation on x86_64.
17353
17354 2008-07-04 Robert Millan <rmh@aybabtu.com>
17355
17356 This fixes a performance issue when pc & gpt partmap iterators
17357 didn't abort iteration even after our hook found what it was
17358 looking for (often causing expensive probes of non-existent drives).
17359
17360 Some callers relied on previous buggy behaviour, since they would
17361 raise an error when their own hooks caused early abortion of its
17362 iteration.
17363
17364 * kern/device.c (grub_device_open): Improve error message.
17365 * disk/lvm.c (grub_lvm_open): Likewise.
17366 * disk/raid.c (grub_raid_open): Likewise.
17367
17368 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
17369 when hook requests it, independently of grub_errno.
17370 (pc_partition_map_probe): Do not fail when find_func() caused
17371 early abortion of pc_partition_map_iterate().
17372
17373 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
17374 when hook requests it, independently of grub_errno.
17375 (gpt_partition_map_probe): Do not fail when find_func() caused
17376 early abortion of gpt_partition_map_iterate().
17377
17378 * kern/partition.c (grub_partition_iterate): Abort parent iteration
17379 when hook requests it, independently of grub_errno. Do not fail when
17380 part_map_iterate_hook() caused early abortion of p->iterate().
17381
17382 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
17383 when grub_partition_iterate() returned with non-zero.
17384
17385 2008-07-03 Pavel Roskin <proski@gnu.org>
17386
17387 * disk/ata.c (grub_ata_pio_write): Check status before writing,
17388 like we do in grub_ata_pio_read().
17389 (grub_ata_readwrite): Always write individual sectors. Fix the
17390 sector count for the remainder.
17391 (grub_ata_write): Enable writing to ATA devices. Correctly
17392 report error for ATAPI devices.
17393
17394 2008-07-02 Pavel Roskin <proski@gnu.org>
17395
17396 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
17397 warning.
17398
17399 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
17400 for every read sector, we already increment it for the whole
17401 batch. This fixes reading more than 256 sectors at once.
17402
17403 * util/grub-editenv.c (cmd_info): Cast argument to long
17404 explicitly. ptrdiff_t reduces to int on i386.
17405
17406 * util/grub-editenv.c (main): Be specific which parameter is
17407 missing.
17408
17409 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
17410 (memdisk): Make memdisk_orig_addr a pointer.
17411
17412 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
17413 for file offsets, use grub_off_t instead. Fix printf format
17414 warnings.
17415
17416 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
17417 there. Real unexpected warnings should not drown in the noise
17418 about known problems.
17419
17420 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
17421 grub_disk_addr_t for memory addresses.
17422
17423 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
17424 explicitly to fix a warning.
17425
17426 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
17427
17428 * Makefile.in (MODULE_LDFLAGS): New variable.
17429 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
17430 the linker accepts --build-id=none.
17431 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
17432 MODULE_LDFLAGS.
17433 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
17434
17435 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
17436 those in Linux XFS code. Provide a way to access 64-bit parent
17437 inode.
17438 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
17439 the end of struct grub_xfs_dir_header.
17440
17441 2008-07-02 Bean <bean123ch@gmail.com>
17442
17443 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
17444 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
17445 and GRUB_IEEE1275_FLAG_NO_ANSI.
17446
17447 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
17448 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
17449 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
17450
17451 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
17452 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
17453
17454 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
17455 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
17456
17457 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
17458 esc sequence on non ANSI terminal.
17459 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
17460
17461 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
17462 beginning of file.
17463
17464 2008-07-02 Bean <bean123ch@gmail.com>
17465
17466 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
17467 (grub_editenv_SOURCES): New variable.
17468 (pkglib_MODULES): Add loadenv.mod.
17469 (loadenv_mod_SOURCES): New variable.
17470 (loadenv_mod_CFLAGS): Likewise.
17471 (loadenv_mod_LDFLAGS): Likewise.
17472
17473 * include/grub/envblk.h: New file.
17474
17475 * util/envblk.c: New file.
17476
17477 * util/grub-editenv.c: New file.
17478
17479 * commands/loadenv.c: New file.
17480
17481 2008-07-01 Pavel Roskin <proski@gnu.org>
17482
17483 * include/multiboot2.h (struct multiboot_tag_module): Use char,
17484 not unsigned char. This fixes warnings and is consistent with
17485 other tags.
17486
17487 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
17488
17489 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
17490
17491 * term/tparm.c (analyze): Always set *popcount.
17492
17493 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
17494 cast to fix a warning.
17495
17496 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
17497 cast to suppress a warning.
17498
17499 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
17500 grub_fshelp_read_file() expects.
17501
17502 * fs/fat.c: Fix UUID calculation on big-endian systems. We
17503 write uuid as a 32-bit value in CPU byte order, so declare and
17504 use it as such.
17505
17506 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
17507 long if the format specifier expects it.
17508 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
17509 * partmap/pc.c (pc_partition_map_iterate): Likewise.
17510 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
17511 long to fix a warning.
17512 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
17513 grub_dprintf() arguments to fix warnings.
17514
17515 2008-06-30 Pavel Roskin <proski@gnu.org>
17516
17517 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
17518 install_bsd_part immediately before core.img is embedded or
17519 modified on disk. This fixes core.img verification if core.img
17520 cannot be embedded.
17521
17522 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
17523 core_path to calculate the blocklist.
17524 Patch from Javier Martín <lordhabbit@gmail.com>
17525
17526 2008-06-29 Robert Millan <rmh@aybabtu.com>
17527
17528 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
17529 block to disk block.
17530 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
17531 Patch from Niels Böhm <bitbucket@arcor.de>
17532
17533 2008-06-29 Robert Millan <rmh@aybabtu.com>
17534
17535 * util/update-grub_lib.in (font_path): Search for fonts in
17536 /boot/grub first, which is more likely to be readable (we aren't
17537 deciding where fonts live, just looking for them).
17538
17539 2008-06-26 Pavel Roskin <proski@gnu.org>
17540
17541 * util/biosdisk.c (read_device_map): Don't leave dead map
17542 entries for devices failing stat() check.
17543
17544 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
17545 core_path_dev for the core.img path on the target device.
17546
17547 2008-06-26 Robert Millan <rmh@aybabtu.com>
17548
17549 * disk/fs_uuid.c: New file.
17550 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
17551 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
17552 (fs_uuid_mod_LDFLAGS): New variables.
17553 * include/grub/disk.h (grub_disk_dev_id): Add
17554 `GRUB_DISK_DEVICE_UUID_ID'.
17555 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
17556 implement iterate().
17557
17558 2008-06-26 Robert Millan <rmh@aybabtu.com>
17559
17560 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
17561 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
17562 Linux image includes no initrd.
17563
17564 2008-06-21 Javier Martín <lordhabbit@gmail.com>
17565
17566 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
17567 call to resolve the core image location that effectively appended the
17568 name twice.
17569
17570 2008-06-21 Robert Millan <rmh@aybabtu.com>
17571
17572 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
17573 call from here ...
17574
17575 * util/grub.d/10_hurd.in: ... to here ...
17576 * util/grub.d/10_linux.in: ... and here.
17577
17578 2008-06-19 Robert Millan <rmh@aybabtu.com>
17579
17580 * kern/main.c (grub_main): Export `prefix' variable immediately
17581 after it has been set by grub_machine_set_prefix().
17582
17583 2008-06-19 Robert Millan <rmh@aybabtu.com>
17584
17585 * commands/search.c (search_label, search_fs_uuid, search_file): Print
17586 search result when not saving to variable, not the other way around.
17587 When saving to variable, abort iteration as soon as a match is found.
17588
17589 2008-06-19 Robert Millan <rmh@aybabtu.com>
17590
17591 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
17592 check for partition that provides /boot/grub. Its logic is flawed,
17593 as it prevents prepare_grub_to_access_device() from being called
17594 multiple times.
17595
17596 2008-06-19 Robert Millan <rmh@aybabtu.com>
17597
17598 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
17599 "insmod" command directly when abstraction modules are needed,
17600 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
17601 since it had already been processed).
17602
17603 2008-06-19 Pavel Roskin <proski@gnu.org>
17604
17605 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
17606 changed. This is needed in case GRUB_LIBDIR changes.
17607 * conf/i386-ieee1275.rmk: Likewise.
17608 * conf/i386-linuxbios.rmk: Likewise.
17609 * conf/i386-pc.rmk: Likewise.
17610 * conf/powerpc-ieee1275.rmk: Likewise.
17611
17612 2008-06-18 Pavel Roskin <proski@gnu.org>
17613
17614 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
17615 kernel_elf_symlist.c to symlist.c for consistency with other
17616 architectures. Update all users.
17617 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
17618
17619 2008-06-18 Robert Millan <rmh@aybabtu.com>
17620
17621 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
17622 it in prefix.
17623
17624 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
17625 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
17626 a RAID device, run setup() for all members independently on whether
17627 LVM abstraction is being used.
17628 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
17629 If grub-mkimage has set `*install_dos_part == -2', don't override this
17630 value.
17631 Perform *install_dos_part adjustments independently on whether
17632 we're embedding or not.
17633 Clarify error message when image is too big for embedding.
17634 Remove duplicate *install_dos_part stanza.
17635
17636 2008-06-17 Robert Millan <rmh@aybabtu.com>
17637
17638 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
17639 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
17640 variables.
17641 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
17642 values in grub_ofconsole_normal_color and
17643 grub_ofconsole_highlight_color (they're not directly related to
17644 background and foreground).
17645 (grub_ofconsole_setcolorstate): Extract background and foreground
17646 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
17647
17648 2008-06-17 Robert Millan <rmh@aybabtu.com>
17649
17650 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
17651 /boot/grub for the check in last commit, not /boot (they could be
17652 different partitions).
17653
17654 2008-06-16 Robert Millan <rmh@aybabtu.com>
17655
17656 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
17657 asked to setup access for the same partition that provides /boot,
17658 don't bother using UUIDs since our root already has the value we
17659 want.
17660
17661 2008-06-16 Robert Millan <rmh@aybabtu.com>
17662
17663 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
17664 I2O devices.
17665 Patch from Sven Mueller <sven@debian.org>.
17666
17667 2008-06-16 Robert Millan <rmh@aybabtu.com>
17668
17669 * util/update-grub.in: Check for $EUID instead of $UID.
17670 Reported by Vincent Zweije.
17671
17672 2008-06-16 Bean <bean123ch@gmail.com>
17673
17674 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
17675 (grub_ext2_read_block): Likewise.
17676 (grub_ext2_read_inode): Likewise.
17677 (grub_ext2_mount): Likewise.
17678 (grub_ext2_close): Likewise.
17679 (grub_ext3_get_journal): Removed.
17680
17681 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
17682 (grub_reiserfs_read_symlink): Likewise.
17683 (grub_reiserfs_mount): Likewise.
17684 (grub_reiserfs_open): Likewise.
17685 (grub_reiserfs_read): Likewise.
17686 (grub_reiserfs_close): Likewise.
17687 (grub_reiserfs_get_journal): Removed.
17688
17689 * fs/fshelp.c (grub_fshelp_read): Removed.
17690 (grub_fshelp_map_block): Likewise.
17691
17692 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
17693 (grub_fshelp_journal): Likewise.
17694 (grub_fshelp_read): Likewise.
17695 (grub_fshelp_map_block): Likewise.
17696
17697 2008-06-16 Pavel Roskin <proski@gnu.org>
17698
17699 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
17700 floating point anymore.
17701 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
17702
17703 2008-06-15 Pavel Roskin <proski@gnu.org>
17704
17705 * commands/ls.c (grub_ls_list_files): Use integer calculations
17706 for human readable format, avoid floating point use.
17707 * kern/misc.c (grub_ftoa): Remove.
17708 (grub_vsprintf): Remove floating point support.
17709
17710 2008-06-15 Robert Millan <rmh@aybabtu.com>
17711
17712 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
17713 devices.
17714 Reported by Max Vozeler.
17715
17716 2008-06-15 Robert Millan <rmh@aybabtu.com>
17717
17718 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
17719 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
17720 skipped later.
17721 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
17722 the beginning of the prefix.
17723
17724 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
17725 It is assumed that if we have a memdisk, grub-mkimage has set
17726 grub_prefix to include the "(memdisk)" drive in it.
17727
17728 2008-06-15 Robert Millan <rmh@aybabtu.com>
17729
17730 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
17731 Initialize keyboard controller after registering the terminal, so that
17732 grub_printf() can be called from grub_keyboard_controller_init().
17733
17734 2008-06-15 Robert Millan <rmh@aybabtu.com>
17735
17736 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
17737 extent-btree which is written as big endian on disk.
17738 Reported by Alain Greppin <al@chilibi.org>.
17739
17740 2008-06-14 Robert Millan <rmh@aybabtu.com>
17741
17742 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
17743 * util/i386/pc/grub-install.in (modules): Likewise.
17744
17745 2008-06-13 Pavel Roskin <proski@gnu.org>
17746
17747 * commands/ls.c (grub_ls_list_files): Fix format warnings.
17748
17749 2008-06-13 Bean <bean123ch@gmail.com>
17750
17751 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
17752
17753 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
17754
17755 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
17756 to indicate sparse block.
17757
17758 2008-06-12 Pavel Roskin <proski@gnu.org>
17759
17760 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
17761 number, grub_fshelp_read() does it for us.
17762
17763 * fs/fshelp.c (grub_fshelp_read): New function. Implement
17764 linear disk read with journal translation.
17765 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
17766 * include/grub/fshelp.h: Declare grub_fshelp_read().
17767
17768 2008-06-09 Pavel Roskin <proski@gnu.org>
17769
17770 * fs/minix.c (grub_minix_mount): Handle error reading
17771 superblock.
17772
17773 2008-06-08 Robert Millan <rmh@aybabtu.com>
17774
17775 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
17776 don't append the RAID prefix afterwards.
17777 Reported by Clint Adams.
17778
17779 2008-06-08 Robert Millan <rmh@aybabtu.com>
17780
17781 Based on description from Pavel:
17782 * kern/disk.c (grub_disk_check_range): Rename to ...
17783 (grub_disk_adjust_range): ... this. Add a comment explaining the
17784 tasks performed by this function.
17785
17786 2008-06-08 Robert Millan <rmh@aybabtu.com>
17787
17788 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
17789 `num_serial' (for consistency with other variables).
17790 (struct grub_ntfs_data): Add `uuid' member.
17791 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
17792 (grub_ntfs_uuid): New function.
17793 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
17794
17795 2008-06-07 Pavel Roskin <proski@gnu.org>
17796
17797 * util/biosdisk.c (open_device): Revert last change to the
17798 function, it broke installation. The sector needs to be
17799 different dependent on which device is opened.
17800
17801 2008-06-06 Robert Millan <rmh@aybabtu.com>
17802
17803 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
17804 rest of GRUB, and breakage doesn't happen if its value were modified.
17805
17806 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17807 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
17808 a constant (same value).
17809 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
17810 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
17811
17812 2008-06-06 Robert Millan <rmh@aybabtu.com>
17813
17814 * util/biosdisk.c (open_device): Do not modify sector offset when
17815 accessing a partition. kern/disk.c already handles this for us.
17816
17817 2008-06-06 Robert Millan <rmh@aybabtu.com>
17818
17819 * util/grub-emu.c (grub_machine_init): Move code in this function from
17820 here ...
17821 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
17822 segfault in case grub_printf() is called).
17823
17824 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
17825 grub_probe. Update all users not to explicitly add it again.
17826 (grub_device): New variable; contains corresponding device for grubdir.
17827 (fs_module, partmap_module, devabstraction_module): Pass
17828 `--device ${grub_device}' to grub_probe to avoid traversing /dev
17829 every time.
17830
17831 2008-06-05 Robert Millan <rmh@aybabtu.com>
17832
17833 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
17834 is found, print it (same layout as with labels).
17835
17836 2008-06-04 Robert Millan <rmh@aybabtu.com>
17837
17838 * util/biosdisk.c (get_drive): Rename to ...
17839 (find_grub_drive): ... this. Update all users.
17840
17841 (get_os_disk): Rename to ...
17842 (convert_system_partition_to_system_disk): ... this. Update all users.
17843
17844 (find_drive): Rename to ...
17845 (find_system_device): ... this. Update all users.
17846
17847 2008-06-04 Robert Millan <rmh@aybabtu.com>
17848
17849 * util/biosdisk.c (get_os_disk): Handle IDA devices.
17850 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17851 (make_device_map): Likewise.
17852
17853 2008-06-01 Robert Millan <rmh@aybabtu.com>
17854
17855 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
17856 before dereferencing it.
17857
17858 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
17859 union with fat12/fat16-specific ones. Add some new fields, including
17860 `num_serial' for both versions.
17861 (struct grub_fat_data): Add `uuid' member.
17862 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
17863 names. Initialize `data->uuid' using `num_serial'.
17864 (grub_fat_uuid): New function.
17865 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
17866
17867 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
17868 (grub_reiserfs_uuid): New function.
17869 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
17870 member.
17871
17872 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
17873 (grub_xfs_uuid): New function.
17874 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
17875
17876 2008-06-01 Robert Millan <rmh@aybabtu.com>
17877
17878 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
17879 code that is backward compatible with pre-uuid search command.
17880
17881 2008-05-31 Robert Millan <rmh@aybabtu.com>
17882
17883 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
17884 floppies after everything else, to ensure floppy drive isn't accessed
17885 unnecessarily (patch from Bean).
17886
17887 2008-05-31 Robert Millan <rmh@aybabtu.com>
17888
17889 * commands/search.c (search_label, search_fs_uuid, search_file): Do
17890 not print device names when we were asked to set a variable.
17891
17892 2008-05-31 Robert Millan <rmh@aybabtu.com>
17893
17894 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
17895 using "cursor-on" and "cursor-off" commands (understood at least by
17896 the Open Firmware flavour on OLPC).
17897
17898 2008-05-31 Michael Gorven <michael@gorven.za.net>
17899
17900 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
17901 on and off sequences.
17902
17903 2008-05-31 Robert Millan <rmh@aybabtu.com>
17904
17905 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
17906 * util/update-grub.in: Likewise.
17907
17908 2008-05-30 Pavel Roskin <proski@gnu.org>
17909
17910 * util/biosdisk.c (linux_find_partition): Simplify logic and
17911 make the code more universal. Keep special processing for
17912 devfs, but use a simple rule for all other devices. If the
17913 device ends with a number, append 'p' and the partition number.
17914 Otherwise, append only the partition number.
17915
17916 2008-05-30 Robert Millan <rmh@aybabtu.com>
17917
17918 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
17919 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
17920 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
17921 the `root' parameter to Linux.
17922
17923 2008-05-30 Robert Millan <rmh@aybabtu.com>
17924
17925 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
17926 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
17927 --fs_uuid with --fs-uuid.
17928 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
17929 all filesystems support them).
17930
17931 2008-05-30 Robert Millan <rmh@aybabtu.com>
17932
17933 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
17934 grub_printf() flags, since we're printing in units of 2 bytes.
17935
17936 2008-05-30 Robert Millan <rmh@aybabtu.com>
17937
17938 * util/grub.d/00_header.in: Remove obsolete comment referencing
17939 convert_system_path_to_grub_path().
17940 * util/update-grub.in: Likewise.
17941 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
17942 (convert_system_path_to_grub_path): Add a warning message explaining
17943 that this function is deprecated. Rely on is_path_readable_by_grub()
17944 for the readability checks.
17945 (font_path): Use is_path_readable_by_grub() for the readability
17946 check rather than convert_system_path_to_grub_path().
17947
17948 2008-05-30 Robert Millan <rmh@aybabtu.com>
17949
17950 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
17951 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
17952 converting it first.
17953 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
17954 grub.cfg for access to font file, and afterwards call it again to set
17955 the root device.
17956
17957 2008-05-30 Robert Millan <rmh@aybabtu.com>
17958
17959 * commands/search.c (options): Add --fs_uuid option.
17960 (search_fs_uuid): New function.
17961 (grub_cmd_search): Fix --set argument passing.
17962 Use search_fs_uuid() when requested via --fs_uuid.
17963 (grub_search_init): Update help message.
17964 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
17965 and redeclare it as an array of 16-bit words.
17966 (grub_ext2_uuid): New function.
17967 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
17968 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
17969 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
17970 (GRUB_DEVICE_BOOT_UUID): New variables.
17971 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
17972 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
17973 whenever possible.
17974 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
17975 just assume `root' variable has the right value.
17976 * util/grub.d/10_linux.in: Likewise.
17977 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
17978 via PRINT_FS_UUID.
17979 (main): Recognise `-t fs_uuid' argument.
17980
17981 2008-05-30 Robert Millan <rmh@aybabtu.com>
17982
17983 * util/biosdisk.c (map): Redefine structure to hold information
17984 about GRUB drive name.
17985 (get_drive): Reimplement without assuming (and verifying) BIOS-like
17986 drive names.
17987 (call_hook): Remove.
17988 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
17989 member. Assume drive has partitions.
17990 (grub_util_biosdisk_open): Access device names via `.device' struct
17991 member.
17992 (open_device): Likewise.
17993 (find_drive): Likewise.
17994 (read_device_map): Adjust map[] usage to match the new struct
17995 definition. Don't check for duplicates (still possible, but not cheap
17996 anymore).
17997 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
17998 (make_device_name): Remove assumption of BIOS-like drive names.
17999
18000 2008-05-30 Pavel Roskin <proski@gnu.org>
18001
18002 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
18003 compiling execute.c doesn't need grub_script.tab.h anymore.
18004 (normal/command.c_DEPENDENCIES): Likewise.
18005 (normal/function.c_DEPENDENCIES): Likewise.
18006 * conf/i386-ieee1275.rmk: Likewise.
18007 * conf/i386-linuxbios.rmk: Likewise.
18008 * conf/i386-pc.rmk: Likewise.
18009 * conf/powerpc-ieee1275.rmk: Likewise.
18010 * conf/sparc64-ieee1275.rmk: Likewise.
18011
18012 2008-05-29 Pavel Roskin <proski@gnu.org>
18013
18014 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
18015 when scanning metadata for volume group name.
18016
18017 * include/grub/script.h: Don't include grub_script.tab.h. It's
18018 a generated file, which may only be included from the files with
18019 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
18020 use union YYSTYPE, as the later allows forward declaration.
18021 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
18022
18023 2008-05-29 Robert Millan <rmh@aybabtu.com>
18024
18025 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
18026 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
18027 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
18028 (grub_console_checkkey): Add grub_dprintf() call to report unknown
18029 scan codes.
18030
18031 2008-05-29 Robert Millan <rmh@aybabtu.com>
18032
18033 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
18034 control key combinations.
18035
18036 2008-05-29 Robert Millan <rmh@aybabtu.com>
18037
18038 * util/powerpc/ieee1275/grub-install.in: Move from here ...
18039 * util/ieee1275/grub-install.in: ... to here.
18040 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
18041 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
18042 (grub_install_SOURCES): Likewise.
18043
18044 2008-05-29 Robert Millan <rmh@aybabtu.com>
18045
18046 * fs/affs.c: Update copyright year.
18047 * fs/ext2.c: Likewise.
18048 * fs/fshelp.c: Likewise.
18049 * fs/hfsplus.c: Likewise.
18050 * fs/ntfs.c: Likewise.
18051 * fs/xfs.c: Likewise.
18052 * include/grub/fshelp.h: Likewise.
18053 * util/grub-mkdevicemap.c: Likewise.
18054
18055 2008-05-28 Robert Millan <rmh@aybabtu.com>
18056
18057 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
18058 might need to be fatfs to support some firmware implementations
18059 (e.g. OFW or EFI).
18060
18061 2008-05-28 Robert Millan <rmh@aybabtu.com>
18062
18063 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
18064 devices.
18065 * util/grub-mkdevicemap.c (get_mmc_disk_name)
18066 (make_device_map): Likewise.
18067
18068 2008-05-20 Bean <bean123ch@gmail.com>
18069
18070 * fs/fshelp.c (grub_fshelp_map_block): New function.
18071 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
18072 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
18073
18074 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
18075 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
18076 (grub_fshelp_journal): New structure.
18077 (grub_fshelp_map_block): New function prototype.
18078 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
18079 (grub_fshelp_map_block): Likewise.
18080
18081 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
18082 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
18083 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
18084 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
18085 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
18086 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
18087 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
18088 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
18089 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
18090 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
18091 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
18092 (grub_ext2_sblock): New members for journal support.
18093 (grub_ext3_journal_header): New structure.
18094 (grub_ext3_journal_revoke_header): Likewise.
18095 (grub_ext3_journal_block_tag): Likewise.
18096 (grub_ext3_journal_sblock): Likewise.
18097 (grub_fshelp_node): New members logfile and journal.
18098 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
18099 grub_fshelp_map_block to get real block number.
18100 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
18101 number.
18102 (grub_ext2_read_inode): Likewise.
18103 (grub_ext3_get_journal): New function.
18104 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
18105 (grub_ext2_close): Release memory used by journal.
18106
18107 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
18108 (REISERFS_MAGIC_DESC_BLOCK): New macro.
18109 (grub_reiserfs_transaction_header): Renamed to
18110 grub_reiserfs_description_block, replace field data with real_blocks.
18111 (grub_reiserfs_commit_block): New structure.
18112 (grub_reiserfs_data): New member journal.
18113 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
18114 number.
18115 (grub_reiserfs_read_symlink): Likewise.
18116 (grub_reiserfs_iterate_dir): Likewise.
18117 (grub_reiserfs_open): Likewise.
18118 (grub_reiserfs_read): Likewise.
18119 (grub_reiserfs_get_journal): New function.
18120 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
18121 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
18122 using grub_reiserfs_get_journal.
18123 (grub_reiserfs_close): Release memory used by journal.
18124
18125 * fs/affs.c (grub_affs_read_block): Change block type to
18126 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
18127
18128 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
18129
18130 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
18131
18132 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
18133
18134 * fs/udf.c (grub_udf_read_block): Change block type to
18135 grub_disk_addr_t. Use type cast to avoid warning.
18136
18137 * fs/xfs.c (grub_xfs_read_block): Likewise.
18138
18139 2008-05-16 Christian Franke <franke@computer.org>
18140
18141 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
18142 to ensure that break with ESC will always work.
18143 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
18144 Remove ESC from keyboard queue.
18145
18146 2008-05-16 Christian Franke <franke@computer.org>
18147
18148 * util/biosdisk.c: [__CYGWIN__] Add includes.
18149 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
18150 (get_os_disk): Move variable declarations to OS specific
18151 parts to avoid warning.
18152 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
18153 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
18154 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
18155 Cygwin.
18156 * util/getroot.c: [__CYGWIN__] Add includes.
18157 (strip_extra_slashes): Fix "/" case.
18158 [__CYGWIN__] (get_win32_path): New function.
18159 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
18160 [__CYGWIN__] (find_root_device): Disable.
18161 [__CYGWIN__] (get_bootsec_serial): New function.
18162 [__CYGWIN__] (find_cygwin_root_device): Likewise.
18163 [__linux__] (grub_guess_root_device): Add early returns to simplify
18164 structure.
18165 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
18166 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
18167 check for Linux only.
18168
18169 2008-05-15 Bean <bean123ch@gmail.com>
18170
18171 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
18172 keyboard hang problem in apple's intel mac.
18173
18174 2008-05-09 Robert Millan <rmh@aybabtu.com>
18175
18176 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
18177 devices.
18178 * util/grub-mkdevicemap.c (get_virtio_disk_name)
18179 (make_device_map): Likewise.
18180 Reported by Aurelien Jarno <aurel32@debian.org>
18181
18182 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
18183
18184 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
18185 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
18186 (make_device_map): Output entries for xvd type disks.
18187
18188 2008-05-07 Robert Millan <rmh@aybabtu.com>
18189
18190 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
18191 devices.
18192 * util/grub-mkdevicemap.c (get_cciss_disk_name)
18193 (make_device_map): Likewise.
18194 Reported by Roland Dreier <rdreier@cisco.com>
18195
18196 2008-05-07 Robert Millan <rmh@aybabtu.com>
18197
18198 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
18199 grub_strstr() call. Correct a few mistakes in failure path handling.
18200
18201 2008-05-06 Robert Millan <rmh@aybabtu.com>
18202
18203 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
18204 Do not print a trailing slash (therefore, the root directory is an
18205 empty string).
18206 (convert_system_path_to_grub_path): Do not remove trailing slash
18207 from make_system_path_relative_to_its_root() output.
18208
18209 * util/i386/pc/grub-install.in: Add trailing slash to output from
18210 make_system_path_relative_to_its_root().
18211
18212 2008-05-06 Robert Millan <rmh@aybabtu.com>
18213
18214 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
18215 ensures that output lines aren't intermangled with those sent to
18216 stderr (via grub_util_info()).
18217 * util/grub-probe.c (grub_refresh): Likewise.
18218 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
18219
18220 2008-05-05 Christian Franke <franke@computer.org>
18221
18222 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
18223 Add Cygwin device names.
18224 (get_ide_disk_name) [__CYGWIN__]: Likewise.
18225 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
18226 (check_device): Return error instead of success on empty name.
18227 (make_device_map): Move label inside linux specific code to
18228 prevent compiler warning.
18229
18230 2008-04-30 Robert Millan <rmh@aybabtu.com>
18231
18232 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
18233 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
18234 first boot option.
18235 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
18236
18237 2008-04-29 Robert Millan <rmh@aybabtu.com>
18238
18239 * docs/grub.cfg: New file (example GRUB configuration).
18240
18241 2008-04-26 Robert Millan <rmh@aybabtu.com>
18242
18243 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
18244 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
18245 and `disk/ieee1275/nand.c'.
18246
18247 2008-04-25 Bean <bean123ch@gmail.com>
18248
18249 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
18250 i386-linuxbios.
18251
18252 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
18253 change the buffer size to 4096 for cdrom device.
18254
18255 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
18256 and nand.mod.
18257 (_linux_mod_SOURCES): New variable.
18258 (_linux_mod_CFLAGS): Likewise.
18259 (_linux_mod_LDFLAGS): Likewise.
18260 (linux_mod_SOURCES): Likewise.
18261 (linux_mod_CFLAGS): Likewise.
18262 (linux_mod_LDFLAGS): Likewise.
18263 (nand_mod_SOURCES): Likewise.
18264 (nand_mod_CFLAGS): Likewise.
18265 (nand_mod_LDFLAGS): Likewise.
18266
18267 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
18268 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
18269 type property. (nand device in olpc don't have this property)
18270
18271 * include/grub/disk.h (grub_disk_dev_id): New macro
18272 GRUB_DISK_DEVICE_NAND_ID.
18273
18274 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
18275 function prototype.
18276 (grub_rescue_cmd_initrd): Likewise.
18277
18278 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
18279 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
18280 ofw_cif_handler and ofw_idt, adjust padding number.
18281
18282 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
18283 GRUB_MACHINE_IEEE1275 is defined.
18284
18285 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
18286 Use NESTED_FUNC_ATTR attribute on the hook parameter.
18287
18288 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
18289 on nested function heap_init.
18290 (grub_upper_mem): New variable for i386-ieee1275.
18291 (grub_get_extended_memory): New function for i386-ieee1275.
18292 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
18293
18294 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
18295 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
18296 property.
18297
18298 * loader/i386/ieee1275/linux.c: New file.
18299
18300 * loader/i386/ieee1275/linux_normal.c: New file.
18301
18302 * disk/ieee1275/nand.c: New file.
18303
18304 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
18305
18306 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
18307 value.
18308 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
18309
18310 2008-04-18 Robert Millan <rmh@aybabtu.com>
18311
18312 Restructures early code path on ieee1275 to unify grub_main() as
18313 the first C function that is executed in every platform.
18314
18315 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
18316 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
18317 cmain().
18318 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
18319 * kern/ieee1275/cmain.c (cmain): Rename to ...
18320 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
18321 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
18322 at the beginning.
18323
18324 2008-04-18 Robert Millan <rmh@aybabtu.com>
18325
18326 * util/update-grub.in: Fix syntax error when setting
18327 `GRUB_PRELOAD_MODULES'.
18328 Reported by Stephane Chazelas <stephane@artesyncp.com>
18329
18330 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
18331
18332 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
18333 section into account, newer toolchains generate unique build ids
18334 * configure.ac: remove the test for --build-id=none acceptance,
18335 we want build ids to be preserved
18336 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
18337 far from other sections don't cause the raw binary images grow
18338 size
18339
18340 2008-04-15 Robert Millan <rmh@aybabtu.com>
18341
18342 * disk/lvm.c: Update copyright year.
18343 * kern/misc.c: Likewise.
18344
18345 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
18346
18347 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
18348 there is no memory left for physical volume name.
18349
18350 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
18351
18352 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
18353 volume name mapping to support bigger than 9 character names properly.
18354
18355 2008-04-13 Robert Millan <rmh@aybabtu.com>
18356
18357 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
18358 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
18359
18360 2008-04-13 Christian Franke <franke@computer.org>
18361
18362 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
18363 to create a floppy emulation boot CD when non emulation mode
18364 does not work.
18365 Enable Joliet CD filesystem extension.
18366
18367 2008-04-13 Robert Millan <rmh@aybabtu.com>
18368
18369 * kern/misc.c (grub_strncat): Fix off-by-one error.
18370 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
18371
18372 * kern/env.c (grub_env_context_close): Clear current context, not
18373 previous one.
18374 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
18375
18376 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
18377
18378 2008-04-13 Robert Millan <rmh@aybabtu.com>
18379
18380 Improve robustness when handling LVM.
18381
18382 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
18383 (and leave `*p' unmodified).
18384 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
18385 through it.
18386 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
18387 iterating through it.
18388 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
18389 through it.
18390 (grub_lvm_scan_device): Check the return value (and fail gracefully
18391 when due) on each grub_lvm_getvalue() or grub_strstr() call.
18392 Don't assume `vg->pvs != NULL' when iterating through it.
18393
18394 2008-04-13 Robert Millan <rmh@aybabtu.com>
18395
18396 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
18397 * genmk.rb (partmap): New variable.
18398 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
18399 (#{partmap}): New target rule.
18400 * genpartmaplist.sh: New file.
18401 * Makefile.in (pkglib_DATA): Add partmap.lst.
18402 (partmap.lst): New target rule.
18403 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
18404 modules (including all partition maps), instead of preloading them.
18405
18406 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
18407
18408 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
18409 `linux-boot-prober' (if installed) to detect other operating
18410 systems which are installed on the computer and add them to
18411 the boot menu.
18412 * conf/common.rmk: Build and install 30_os-prober.
18413
18414 2008-04-12 Robert Millan <rmh@aybabtu.com>
18415
18416 * kern/powerpc/ieee1275/init.c: Move from here ...
18417 * kern/ieee1275/init.c: ... to here. Update all users.
18418
18419 * kern/powerpc/ieee1275/cmain.c: Move from here ...
18420 * kern/ieee1275/cmain.c: ... to here. Update all users.
18421
18422 * kern/powerpc/ieee1275/openfw.c: Move from here ...
18423 * kern/ieee1275/openfw.c: ... to here. Update all users.
18424
18425 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
18426 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
18427
18428 2008-04-10 Pavel Roskin <proski@gnu.org>
18429
18430 * configure.ac: Always use "_cv_" in cache variables for
18431 compatibility with Autoconf 2.62.
18432
18433 2008-04-07 Robert Millan <rmh@aybabtu.com>
18434
18435 Revert grub/machine/init.h addition by Pavel (since it breaks on
18436 i386-ieee1275 and others):
18437 * util/i386/pc/misc.c: Remove grub/machine/init.h.
18438 * util/powerpc/ieee1275/misc.c: Likewise.
18439
18440 2008-04-07 Robert Millan <rmh@aybabtu.com>
18441
18442 * util/grub-probe.c (probe): Improve error message.
18443
18444 2008-04-07 Robert Millan <rmh@aybabtu.com>
18445
18446 * util/biosdisk.c (read_device_map): Skip devices that don't exist
18447 (this prevents the presence of a bogus entry from ruining the whole
18448 thing).
18449
18450 2008-04-06 Pavel Roskin <proski@gnu.org>
18451
18452 * util/biosdisk.c: Include grub/util/biosdisk.h.
18453 * util/grub-fstest.c (execute_command): Make static.
18454 * util/grub-mkdevicemap.c (check_device): Likewise.
18455 * util/i386/pc/misc.c: Include grub/machine/init.h.
18456 * util/powerpc/ieee1275/misc.c: Likewise.
18457 * util/lvm.c: Include grub/util/lvm.h.
18458 * util/misc.c: Include grub/kernel.h, grub/misc.h and
18459 grub/cache.h.
18460 * util/raid.c: Include grub/util/raid.h.
18461 (grub_util_getdiskname): Make static.
18462
18463 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
18464 grub_hostfs_fini(), as they are called from grub_init_all() and
18465 grub_fini_all() respectively. This fixes an infinite loop in
18466 grub-fstest due to double registration of hostfs.
18467 Reported by Christian Franke <Christian.Franke@t-online.de>
18468
18469 2008-04-05 Pavel Roskin <proski@gnu.org>
18470
18471 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
18472 all 8 functions. Otherwise, probe function 0 only.
18473
18474 2008-04-04 Pavel Roskin <proski@gnu.org>
18475
18476 * commands/lspci.c (grub_lspci_iter): Print the bus number
18477 correctly.
18478
18479 * commands/lspci.c (grub_pci_classes): Fix typos.
18480 (grub_lspci_iter): Don't print func twice. Print vendor ID
18481 before device ID, as it's normally done.
18482
18483 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
18484 Fix signedness warnings.
18485 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
18486 Likewise.
18487 * util/ieee1275/get_disk_name.c: Include config.h so that
18488 _GNU_SOURCE is defined and getline() is declared. Mark an
18489 unused argument as such. Fix a signedness warning.
18490
18491 2008-04-02 Pavel Roskin <proski@gnu.org>
18492
18493 * genkernsyms.sh.in: Use more robust assignments for CC and
18494 srcdir. Quote srcdir.
18495 * gensymlist.sh.in: Likewise. Assert at the compile time that
18496 the symbol table is not empty.
18497
18498 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
18499 * fs/cpio.c (grub_cpio_read): Likewise.
18500
18501 2008-04-01 Pavel Roskin <proski@gnu.org>
18502
18503 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
18504 * disk/host.c (grub_host_open): Likewise.
18505 * disk/loopback.c (grub_loopback_open): Likewise.
18506 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
18507 disk->id as in disk/host.c, not a multi-character constant.
18508
18509 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
18510 later is obsolete, potentially dangerous and sets a bad example.
18511 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
18512 * util/misc.c (grub_util_get_image_size): Likewise.
18513
18514 * disk/loopback.c (options): Improve help for "--partitions".
18515
18516 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
18517 options to align them with the short options, e.g. "echo -e".
18518
18519 2008-03-31 Bean <bean123ch@gmail.com>
18520
18521 * video/reader/png.c (grub_png_data): New member is_16bit and
18522 image_data.
18523 (grub_png_decode_image_header): Detect 16 bit png image.
18524 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
18525 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
18526 (grub_video_reader_png): Release memory occupied by image_data.
18527
18528 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
18529 4096 bytes.
18530 (grub_nfs_mount): Skip the test for sector per cluster.
18531
18532 * include/grub/ntfs.h (MAX_SPC): Removed.
18533
18534 2008-03-31 Bean <bean123ch@gmail.com>
18535
18536 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
18537 (grub_probe_SOURCES): Add fs/afs.c.
18538 (grub_fstest_SOURCES): Likewise.
18539 (afs_mod_SOURCES): New variable.
18540 (afs_mod_CFLAGS): Likewise.
18541 (afs_mod_LDFLAGS): Likewise.
18542
18543 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
18544 (grub_emu_SOURCES): Likewise.
18545
18546 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18547
18548 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18549
18550 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18551
18552 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18553
18554 * fs/afs.c: New file.
18555
18556 2008-03-30 Pavel Roskin <proski@gnu.org>
18557
18558 * disk/host.c: Include grub/misc.h to fix a warning.
18559 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
18560 warnings about implicit declarations.
18561
18562 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
18563 variable.
18564 * include/grub/i386/loader.h: Change declaration of
18565 grub_linux_boot() to match what grub_loader_set() expects.
18566 * util/getroot.c (grub_guess_root_device): Return const char* to
18567 fix a warning.
18568 * util/grub-probe.c (probe): Fix a warning about uninitialized
18569 abstraction_name variable.
18570 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
18571 second argument as unused to fix a warning.
18572
18573 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
18574 missing grub_error() call.
18575
18576 * util/update-grub_lib.in: Define datarootdir, since Autoconf
18577 2.60 and newer uses it to define datadir.
18578
18579 * commands/sleep.c: Fix warning about implicit declaration.
18580 * disk/memdisk.c: Likewise.
18581 * loader/aout.c: Likewise.
18582 * loader/i386/bsd_normal.c: Likewise.
18583 * util/grub-probe.c: Likewise.
18584
18585 * commands/i386/cpuid.c (has_longmode): Make static.
18586 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
18587 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
18588
18589 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
18590 GDT. This is more robust, as %ds can change.
18591 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
18592 calling real_to_prot().
18593 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
18594
18595 2008-03-28 Pavel Roskin <proski@gnu.org>
18596
18597 * kern/i386/pc/startup.S: Assert that uncompressed functions
18598 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
18599 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
18600 code, as they push parts of the code (error handlers) beyond
18601 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
18602 code as correctness and size.
18603
18604 2008-03-28 Pavel Roskin <proski@gnu.org>
18605
18606 * kern/i386/pc/startup.S
18607 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
18608 data block address to the real mode, keep offset minimal. This
18609 works around a bug in AWARD BIOS on old Athlon systems, which
18610 makes CD detection hang.
18611
18612 2008-03-26 Pavel Roskin <proski@gnu.org>
18613
18614 * normal/color.c (grub_parse_color_name_pair): Make `name' a
18615 const.
18616 * include/grub/normal.h: Add grub_parse_color_name_pair()
18617 declaration.
18618
18619 2008-03-24 Bean <bean123ch@gmail.com>
18620
18621 * disk/i386/pc/biosdisk.c (cd_start): Removed.
18622 (cd_count): Removed.
18623 (cd_drive): New variable.
18624 (grub_biosdisk_get_drive): Don't check for (cdN) device.
18625 (grub_biosdisk_call_hook): Likewise.
18626 (grub_biosdisk_iterate): Change cdrom detection method.
18627 (grub_biosdisk_open): Replace cd_start with cd_drive.
18628 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
18629 detect cdrom device.
18630
18631 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
18632 Removed.
18633 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
18634 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
18635 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
18636 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
18637 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
18638 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
18639 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
18640 (grub_biosdisk_cdrp): New structure.
18641 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
18642
18643 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
18644
18645 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
18646 device.
18647
18648 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
18649 New function.
18650
18651 2008-03-20 Robert Millan <rmh@aybabtu.com>
18652
18653 Remove 2 TiB limit in ata.mod.
18654 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
18655 (grub_ata_dumpinfo): Print sector count with 0x%llx.
18656 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
18657 grub_uint64_t instead of grub_uint32_t.
18658
18659 2008-03-05 Bean <bean123ch@gmail.com>
18660
18661 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
18662 (grub_multiboot): Set boot device.
18663
18664 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
18665
18666 2008-03-02 Bean <bean123ch@gmail.com>
18667
18668 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
18669 symlink_buffer.
18670
18671 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
18672
18673 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
18674 texinfo.tex.
18675
18676 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
18677 modified.
18678
18679 * docs/fdl.texi: New file.
18680
18681 * docs/mdate-sh: New file. Copied from gnulib.
18682 * docs/texinfo.tex: Likewise.
18683
18684 * config.guess: Updated from gnulib.
18685 * install-sh: Likewise.
18686
18687 2008-02-28 Robert Millan <rmh@aybabtu.com>
18688
18689 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
18690 (aout_mod_SOURCES): New variable.
18691 (aout_mod_CFLAGS): Likewise.
18692 (aout_mod_LDFLAGS): Likewise.
18693
18694 * conf/i386-ieee1275.rmk: Likewise.
18695
18696 2008-02-28 Robert Millan <rmh@aybabtu.com>
18697
18698 * util/update-grub.in: Reorganise terminal validity check. Accept
18699 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
18700 Based on suggestion by Franklin PIAT.
18701
18702 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
18703
18704 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
18705 function.
18706 * util/getroot.c (grub_util_check_block_device): New function that
18707 returns the given argument if it is a block device and returns NULL else.
18708 * util/grub-probe.c (argument_is_device): New variable.
18709 (probe): Promote device_name from a variable to an argument. Receive
18710 device_name from grub_util_check_block_device() if path is NULL and from
18711 grub_guess_root_device() else. Do not free() device_name anymore.
18712 (options): Introduce new parameter '-d, --device'.
18713 (main): Add description of the new parameter to the help screen.
18714 Rename path variable to argument. Set argument_is_device if the '-d'
18715 option is given. Pass argument to probe() depending on
18716 argument_is_device.
18717
18718 2008-02-24 Bean <bean123ch@gmail.com>
18719
18720 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
18721 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
18722 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
18723 (GRUB_ISO9660_VOLDESC_PART): Likewise.
18724 (GRUB_ISO9660_VOLDESC_END): Likewise.
18725 (grub_iso9660_primary_voldesc): New member escape.
18726 (grub_iso9660_data): New member joliet.
18727 (grub_iso9660_convert_string): New function.
18728 (grub_iso9660_mount): Detect joliet extension.
18729 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
18730 (grub_iso9660_iso9660_label): Likewise.
18731
18732 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
18733 (grub_setup_SOURCES): Add fs/udf.c.
18734 (grub_fstest_SOURCES): Likewise.
18735 (udf_mod_SOURCES): New variable.
18736 (udf_mod_CFLAGS): Likewise.
18737 (udf_mod_LDFLAGS): Likewise.
18738
18739 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
18740 (grub_emu_SOURCES): Likewise.
18741
18742 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18743
18744 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18745
18746 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18747
18748 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18749
18750 * fs/udf.c: New file.
18751
18752 2008-02-24 Robert Millan <rmh@aybabtu.com>
18753
18754 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
18755 (normal/lexer.c_DEPENDENCIES): New variables.
18756 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18757 (normal/lexer.c_DEPENDENCIES): Likewise.
18758 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
18759 (normal/lexer.c_DEPENDENCIES): Likewise.
18760 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
18761 (normal/lexer.c_DEPENDENCIES): Likewise.
18762 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18763 (normal/lexer.c_DEPENDENCIES): Likewise.
18764 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18765 (normal/lexer.c_DEPENDENCIES): Likewise.
18766
18767 2008-02-23 Robert Millan <rmh@aybabtu.com>
18768
18769 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
18770 since they were intended to be in hex. This didn't break previously
18771 because of a bug in gpt_partition_map_iterate() (see below).
18772
18773 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
18774 when checking the validity of GPT header.
18775 Remove `partno', since it always provides the same information as `i'.
18776
18777 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
18778
18779 * include/grub/efi/time.h: Fix a wrong comment.
18780
18781 2008-02-19 Pavel Roskin <proski@gnu.org>
18782
18783 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
18784 message.
18785
18786 2008-02-19 Bean <bean123ch@gmail.com>
18787
18788 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
18789 (aout_mod_SOURCES): New variable.
18790 (aout_mod_CFLAGS): Likewise.
18791 (aout_mod_LDFLAGS): Likewise.
18792 (_bsd_mod_SOURCES): New variable.
18793 (_bsd_mod_CFLAGS): Likewise.
18794 (_bsd_mod_LDFLAGS): Likewise.
18795 (bsd_mod_SOURCES): New variable.
18796 (bsd_mod_CFLAGS): Likewise.
18797 (bsd_mod_LDFLAGS): Likewise.
18798
18799 * include/grub/aout.h: New file.
18800
18801 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
18802
18803 * include/grub/i386/bsd.h: New file.
18804
18805 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
18806 to make it public.
18807
18808 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
18809 function is called, so that it's possible to change it inside the hook.
18810 (grub_elf64_load): Likewise.
18811 (grub_elf_file): Don't close the file if elf header is not found.
18812 (grub_elf_close): Close the file if grub_elf_file fails (The new
18813 grub_elf_file won't close it).
18814 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
18815 (grub_elf64_size): Likewise.
18816
18817 * kern/i386/loader.S (grub_unix_real_boot): New function.
18818
18819 * loader/aout.c: New file.
18820
18821 * loader/i386/bsd.c: New file.
18822
18823 * loader/i386/bsd_normal.c: New file.
18824
18825 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
18826
18827 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
18828 can test other formats.
18829
18830 2008-02-19 Robert Millan <rmh@aybabtu.com>
18831
18832 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
18833 (grub_gpt_partition_type_empty): Redefine with macro from
18834 `<grub/gpt_partition.h>'.
18835 (gpt_partition_map_iterate): Adjust partition type comparison.
18836
18837 Export `entry' as partmap-specific `part.data' struct.
18838 (grub_gpt_header, grub_gpt_partentry): Move from here ...
18839
18840 * include/grub/gpt_partition.h (grub_gpt_header)
18841 (grub_gpt_partentry): ... to here (new file).
18842
18843 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
18844
18845 (grub_gpt_partition_type_bios_boot): New const variable, defined
18846 with macro from `<grub/gpt_partition.h>'.
18847
18848 (setup): Replace `first_start' with `embed_region', which keeps
18849 track of the embed region (and is partmap-agnostic).
18850
18851 Replace find_first_partition_start() with find_usable_region(),
18852 which finds a usable region for embedding using partmap-specific
18853 knowledge (supports PC/MSDOS and GPT).
18854
18855 Fix all assumptions that the embed region start at sector 1, using
18856 `embed_region.start' from now on. Similarly, use `embed_region.end'
18857 rather than `first_start' to calculate available size.
18858
18859 In grub_util_info() message, replace "into after the MBR" with an
18860 indication of the specific sector our embed region starts at.
18861
18862 2008-02-19 Robert Millan <rmh@aybabtu.com>
18863
18864 * DISTLIST: Replace `commands/ieee1275/halt.c' and
18865 `commands/ieee1275/reboot.c' with `commands/halt.c' and
18866 `commands/reboot.c'.
18867 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18868 (halt_mod_SOURCES): Likewise.
18869 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18870 (halt_mod_SOURCES): Likewise.
18871
18872 2008-02-17 Christian Franke <franke@computer.org>
18873
18874 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
18875
18876 2008-02-17 Robert Millan <rmh@aybabtu.com>
18877
18878 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18879 set `first_start' to 0 for non-PC/MSDOS partition maps.
18880
18881 2008-02-16 Robert Millan <rmh@aybabtu.com>
18882
18883 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18884 do not assume partition map is PC/MSDOS before performing checks that
18885 are specific to that layout.
18886
18887 2008-02-13 Robert Millan <rmh@aybabtu.com>
18888
18889 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
18890 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
18891 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
18892
18893 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
18894
18895 * configure.ac: Only a cosmetic change on the handling of
18896 -fno-stack-protector.
18897
18898 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
18899
18900 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
18901 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
18902 reboot.c.
18903 (grub_install_SOURCES): Add halt.mod and reboot.mod.
18904 (halt_mod_SOURCES): New variable.
18905 (halt_mod_CFLAGS): Likewise.
18906 (halt_mod_LDFLAGS): Likewise.
18907 (reboot_mod_SOURCES): Likewise.
18908 (reboot_mod_CFLAGS): Likewise.
18909 (reboot_mod_LDFLAGS): Likewise.
18910
18911 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
18912 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
18913 reboot.c.
18914 (halt_mod_SOURCES): Likewise.
18915 (reboot_mod_SOURCES): Likewise.
18916
18917 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
18918 commands/i386/pc/reboot.c by commands/reboot.c.
18919 (reboot_mod_SOURCES): Likewise.
18920
18921 * commands/i386/pc/reboot.c: merge this file ...
18922
18923 * commands/ieee1275/reboot.c: ... and this file ...
18924
18925 * commands/reboot.c: ... to this file.
18926 Add some precompiler directive to include the correct header for
18927 each machine.
18928
18929 * commands/ieee1275/halt.c: move this file ...
18930
18931 * commands/halt.c: ... to here.
18932 Add some precompiler directive to include the correct header for
18933 each machine.
18934
18935 * include/grub/efi/efi.h (grub_reboot): New function declaration.
18936 (grub_halt): Likewise.
18937
18938 * kern/efi/efi.c (grub_reboot): New function.
18939 (grub_halt): Likewise.
18940
18941 2008-02-12 Robert Millan <rmh@aybabtu.com>
18942
18943 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
18944 /dev (like it is done for /dev/mapper). This doesn't provide support
18945 for EVMS, but at least it is now easy to identify the problem when it
18946 arises.
18947
18948 2008-02-11 Robert Millan <rmh@aybabtu.com>
18949
18950 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
18951 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
18952 comparing it with -1, not 0.
18953
18954 2008-02-10 Robert Millan <rmh@aybabtu.com>
18955
18956 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
18957 `disk/lvm.c'.
18958 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18959 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18960
18961 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
18962 `disk/lvm.c' to the end of the list.
18963 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18964 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18965
18966 2008-02-10 Robert Millan <rmh@aybabtu.com>
18967
18968 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
18969 grub_print_error() instead. This will let user know why we're entering
18970 rescue mode.
18971 Based on suggestions from Sam Morris.
18972
18973 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
18974
18975 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
18976 on remaining N args, instead of "--" arg N times.
18977
18978 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
18979
18980 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
18981 (fill_with_default_glyph): Changed to use unknown_glyph for fill
18982 pattern for unknown glyphs.
18983
18984 2008-02-09 Robert Millan <rmh@aybabtu.com>
18985
18986 * configure.ac: Probe for `help2man'.
18987 * Makefile.in (builddir): New variable.
18988 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
18989 or otherwise add a few flags/options to it.
18990 (install-local): For every executable utility or script that is
18991 installed, invoke $(HELP2MAN) to install a manpage based on --help
18992 output.
18993
18994 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
18995 that it doesn't prevent --help from working in build tree.
18996
18997 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
18998 with `bug-grub@gnu.org'.
18999 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
19000 * util/update-grub.in (usage): New function.
19001 Implement proper argument check, with support for --help and --version
19002 (as well as existing -y).
19003
19004 2008-02-09 Christian Franke <franke@computer.org>
19005
19006 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
19007 avoid overwriting previous output.
19008 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
19009
19010 2008-02-09 Robert Millan <rmh@aybabtu.com>
19011
19012 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
19013 drawing the menu.
19014
19015 2008-02-09 Robert Millan <rmh@aybabtu.com>
19016
19017 * commands/sleep.c: New file.
19018 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
19019 (sleep_mod_SOURCES): New variable.
19020 (sleep_mod_CFLAGS): Likewise.
19021 (sleep_mod_LDFLAGS): Likewise.
19022
19023 2008-02-09 Robert Millan <rmh@aybabtu.com>
19024
19025 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
19026 situations in which we can deduce the RAID size and the superblock
19027 doesn't match it.
19028
19029 2008-02-09 Robert Millan <rmh@aybabtu.com>
19030
19031 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
19032 and return a grub_diskmemberlist_t composed of LVM physical volumes.
19033 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
19034
19035 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
19036 and return a grub_diskmemberlist_t composed of physical array members.
19037 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
19038
19039 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
19040 prototype.
19041 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
19042 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
19043 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
19044
19045 * util/grub-probe.c (probe): Move partmap probing code from here ...
19046 (probe_partmap): ... to here.
19047 (probe): Use probe_partmap() once for the disk we're probing, and
19048 additionally, when such disk contains a memberlist() struct member,
19049 once for each disk that is contained in the structure returned by
19050 memberlist().
19051
19052 2008-02-09 Robert Millan <rmh@aybabtu.com>
19053
19054 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
19055 environment variable to 'all' in order to obtain debug output from
19056 non-util/ code.
19057 * util/i386/pc/grub-setup.c (main): Likewise.
19058
19059 2008-02-08 Robert Millan <rmh@aybabtu.com>
19060
19061 * disk/raid.c (grub_raid_scan_device): Check for
19062 `array->device[sb.this_disk.number]' rather than for
19063 `array->device[sb.this_disk.number]->name', since the latter is not
19064 guaranteed to be accessible.
19065
19066 2008-02-08 Robert Millan <rmh@aybabtu.com>
19067
19068 * disk/raid.c: Update copyright.
19069 * fs/cpio.c: Likewise.
19070 * include/grub/raid.h: Likewise.
19071 * loader/i386/pc/multiboot.c: Likewise.
19072 * util/hostfs.c: Likewise.
19073
19074 2008-02-08 Robert Millan <rmh@aybabtu.com>
19075
19076 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
19077 to a grub_disk_t array.
19078 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
19079 `device[x]'.
19080 (grub_raid_scan_device): Replace `device[x].name' accesses with
19081 `device[x]->name'. Simplify initialization of `array->device[x]'.
19082
19083 2008-02-08 Robert Millan <rmh@aybabtu.com>
19084
19085 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
19086 grub_dprintf() calls.
19087 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
19088 error message.
19089
19090 2008-02-07 Christian Franke <franke@computer.org>
19091
19092 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
19093 instead of fseek and ftell to support large files.
19094 (grub_hostfs_read): Likewise.
19095
19096 2008-02-07 Robert Millan <rmh@aybabtu.com>
19097
19098 Patch from Jeroen Dekkers.
19099 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
19100 failure, since successfully reading all array members might not be
19101 required.
19102
19103 2008-02-06 Robert Millan <rmh@aybabtu.com>
19104
19105 * util/grub-probe.c (probe): Simplify partmap probing (with the
19106 assumption that the first word up to the underscore equals to
19107 the module name).
19108
19109 2008-02-06 Christian Franke <franke@computer.org>
19110
19111 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
19112 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
19113 last block of a cpio or tar stream.
19114 Check for "TRAILER!!!" instead of any empty data
19115 block to detect last block of a cpio stream.
19116 (grub_cpio_dir): Fix constness of variable np.
19117 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
19118 cpio or tar trailer is detected. This fixes a crash
19119 on open of a non existing file.
19120
19121 2008-02-05 Bean <bean123ch@gmail.com>
19122
19123 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
19124 address of entry.
19125 (grub_multiboot_load_elf64): Likewise.
19126 (grub_multiboot): Initialize mbi structure.
19127
19128 * util/grub-fstest.c: Don't include unused header file script.h.
19129
19130 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
19131 of file.
19132 (grub_fstest_SOURCES): Likewise.
19133
19134 2008-02-05 Robert Millan <rmh@aybabtu.com>
19135
19136 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
19137 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
19138 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
19139 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
19140
19141 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
19142 (translation_table): Replace hardcoded values with macros
19143 provided by `<grub/term.h>'.
19144
19145 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
19146 (keyboard_map): Correct/add a few values, with macros provided
19147 by `<grub/term.h>'.
19148 (keyboard_map_shift): Zero values that don't differ from their
19149 `keyboard_map' equivalents.
19150 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
19151 Discard the second scan code that is always sent by Caps lock.
19152 Only use `keyboard_map_shift' when it provides a non-zero value,
19153 otherwise fallback to `keyboard_map'.
19154
19155 2008-02-04 Bean <bean123ch@gmail.com>
19156
19157 * Makefile.in (enable_grub_fstest): New variable.
19158
19159 * conf/common.rmk (grub_fstest_init.lst): New rule.
19160 (grub_fstest_init.h): Likewise.
19161 (grub_fstest_init.c): Likewise.
19162 (util/grub-fstest.c_DEPENDENCIES): New variable.
19163 (grub_fstest_SOURCES): Likewise.
19164
19165 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
19166
19167 * util/grub-fstest.c: New file.
19168
19169 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
19170
19171 Make grub-setup handle a separate root device.
19172
19173 * util/i386/pc/grub-setup.c (setup): Always open the root device,
19174 so that the root device can be compared with the destination
19175 device.
19176 When embedding the core image, if the root and destination devices
19177 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
19178 0xFF.
19179 When not embedding, set ROOT_DRIVE to 0xFF.
19180
19181 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
19182
19183 Add support for having a grub directory in a different drive. This
19184 is still only the data handling part.
19185
19186 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
19187 (codestart): Save %dh in GRUB_ROOT_DRIVE.
19188 (grub_root_drive): New variable.
19189
19190 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
19191 instead of GRUB_BOOT_DRIVE to construct a device name. Set
19192 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
19193 as it was.
19194
19195 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
19196
19197 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
19198 macro.
19199 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
19200
19201 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
19202 is bogus, because PXE booting does not specify any drive
19203 correctly.
19204
19205 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
19206 am not sure if this is really correct.
19207
19208 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
19209 is always identical to the boot drive when booting from a CD.
19210
19211 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
19212 longer.
19213 (root_drive): New variable.
19214 (real_start): Unconditionally set %dh to ROOT_DRIVE.
19215 (setup_sectors): Push %dx right after popping it, because %dh will
19216 be modified later.
19217 (copy_buffer): Restore %dx.
19218
19219 2008-02-03 Robert Millan <rmh@aybabtu.com>
19220
19221 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
19222 use `cdboot.img' for cdrom images.
19223
19224 2008-02-03 Robert Millan <rmh@aybabtu.com>
19225
19226 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
19227 only setup gfxterm when `font' command has succeeded.
19228
19229 2008-02-03 Robert Millan <rmh@aybabtu.com>
19230
19231 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
19232 (grub_rescue_cmd_multiboot_loader)
19233 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
19234
19235 2008-02-03 Pavel Roskin <proski@gnu.org>
19236
19237 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
19238 %edx and %esi from stack only after grub_gate_a20() is called.
19239 grub_gate_a20() clobbers %edx.
19240
19241 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
19242
19243 * configure.ac (AC_INIT): Bumped to 1.96.
19244
19245 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
19246 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
19247 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
19248 video/readers/png.c.
19249
19250 2008-02-03 Bean <bean123ch@gmail.com>
19251
19252 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
19253 (cdboot_img_SOURCES): New variable.
19254 (cdboot_img_ASFLAGS): New variable.
19255 (cdboot_img_LDFLAGS): New variable.
19256
19257 * boot/i386/pc/cdboot.S: New file.
19258
19259 * disk/i386/pc/biosdisk.c (cd_start): New variable.
19260 (cd_count): Likewise.
19261 (grub_biosdisk_get_drive): Add support for cd device.
19262 (grub_biosdisk_call_hook): Likewise.
19263 (grub_biosdisk_iterate): Likewise.
19264 (grub_biosdisk_open): Likewise.
19265 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
19266 (grub_biosdisk_rw): Support reading from cd device.
19267 (GRUB_MOD_INIT): Iterate cd devices.
19268
19269 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
19270 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
19271 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
19272
19273 * kern/i386/pc/init.c (make_install_device): Check for cd device.
19274
19275 2008-02-02 Robert Millan <rmh@aybabtu.com>
19276
19277 * commands/read.c: New file.
19278 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
19279 (read_mod_SOURCES): New variable.
19280 (read_mod_CFLAGS): Likewise.
19281 (read_mod_LDFLAGS): Likewise.
19282
19283 2008-02-02 Robert Millan <rmh@aybabtu.com>
19284
19285 * normal/main.c (grub_normal_execute): Check for `menu->size' when
19286 determining whether menu has to be displayed.
19287
19288 2008-02-02 Marco Gerards <marco@gnu.org>
19289
19290 * bus/pci.c: New file.
19291
19292 * include/grub/pci.h: Likewise.
19293
19294 * include/grub/i386/pc/pci.h: Likewise.
19295
19296 * commands/lspci.c: Likewise.
19297
19298 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
19299 `lspci.mod'.
19300 (pci_mod_SOURCES): New variable.
19301 (pci_mod_CFLAGS): Likewise.
19302 (pci_mod_LDFLAGS): Likewise.
19303 (lspci_mod_SOURCES): Likewise.
19304 (lspci_mod_CFLAGS): Likewise.
19305 (lspci_mod_LDFLAGS): Likewise.
19306
19307 2008-02-02 Bean <bean123ch@gmail.com>
19308
19309 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
19310 (grub_ufs_get_file_block): Fix indirect block calculation problem.
19311
19312 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
19313 (grub_xfs_btree_node): New structure.
19314 (grub_xfs_btree_root): New structure.
19315 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
19316 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
19317 (GRUB_XFS_EXTENT_BLOCK): Likewise.
19318 (GRUB_XFS_EXTENT_SIZE): Likewise.
19319 (grub_xfs_read_block): Support btree format type.
19320 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
19321 Use directory block as basic unit.
19322
19323 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
19324
19325 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
19326 __attribute__ ((__regparm__ (1))).
19327
19328 2008-02-01 Robert Millan <rmh@aybabtu.com>
19329
19330 Correct a mistake in previous commit.
19331
19332 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
19333 top.
19334 (normal/command.c_DEPENDENCIES): New variable.
19335
19336 2008-02-01 Robert Millan <rmh@aybabtu.com>
19337
19338 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
19339 top.
19340 (normal/command.c_DEPENDENCIES): New variable.
19341 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
19342 * conf/i386-ieee1275.rmk: Likewise.
19343 * conf/i386-linuxbios.rmk: Likewise.
19344 * conf/i386-pc.rmk: Likewise.
19345 * conf/sparc64-ieee1275.rmk: Likewise.
19346 * conf/powerpc-ieee1275.rmk: Likewise.
19347 (grub_emu_SOURCES): Add `fs/fshelp.c'.
19348
19349 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
19350
19351 2008-02-01 Robert Millan <rmh@aybabtu.com>
19352
19353 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
19354 call at beginning of function.
19355
19356 2008-01-31 Pavel Roskin <proski@gnu.org>
19357
19358 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
19359 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
19360 (grub_mkrescue_SOURCES): Likewise.
19361 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
19362
19363 2008-01-30 Robert Millan <rmh@aybabtu.com>
19364
19365 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
19366 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
19367 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
19368 (grub_probe_SOURCES): ... to here.
19369
19370 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
19371 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
19372 * conf/i386-ieee1275.rmk: Likewise.
19373 * conf/i386-linuxbios.rmk: Likewise.
19374 * conf/powerpc-ieee1275.rmk: Likewise.
19375
19376 2008-01-30 Tristan Gingold <gingold@free.fr>
19377
19378 * kern/rescue.c: Silently accept empty lines.
19379
19380 2008-01-29 Bean <bean123ch@gmail.com>
19381
19382 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
19383 (real_code_2): Code cleanup and change comment style.
19384 (move_memory): Avoid using 32-bit address mode.
19385
19386 2008-01-29 Bean <bean123ch@gmail.com>
19387
19388 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
19389 (png_mod_SOURCES): New variable.
19390 (png_mod_CFLAGS): Likewise.
19391 (png_mod_LDFLAGS): Likewise.
19392
19393 * video/readers/png.c: New file.
19394
19395 2008-01-28 Robert Millan <rmh@aybabtu.com>
19396
19397 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
19398 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
19399 `ifndef GRUB_MOD_GAP' hack.
19400 * util/elf/grub-mkimage.c (add_segments): Likewise.
19401
19402 2008-01-27 Robert Millan <rmh@aybabtu.com>
19403
19404 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
19405 `GRUB_MOD_GAP' for platforms in which it's not defined.
19406 * util/elf/grub-mkimage.c (add_segments): Likewise.
19407
19408 2008-01-27 Robert Millan <rmh@aybabtu.com>
19409
19410 Get grub-emu to build again (including parallel builds).
19411
19412 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
19413 Split into ...
19414 (util/grub-emu.c_DEPENDENCIES): ... this, ...
19415 (normal/execute.c_DEPENDENCIES): ... this, ...
19416 (grub-emu_DEPENDENCIES): ... and this.
19417
19418 * conf/i386-efi.rmk: Likewise.
19419 * conf/i386-linuxbios.rmk: Likewise.
19420 * conf/i386-ieee1275.rmk: Likewise.
19421 * conf/powerpc-ieee1275.rmk: Likewise.
19422 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
19423
19424 2008-01-27 Robert Millan <rmh@aybabtu.com>
19425
19426 * NEWS: Add a few items.
19427
19428 2008-01-27 Robert Millan <rmh@aybabtu.com>
19429
19430 Fix parallel builds with grub-emu. Based on earlier commit for
19431 grub-probe and grub-setup.
19432
19433 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19434 (util/grub-emu.c_DEPENDENCIES): ... this.
19435 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19436 (util/grub-emu.c_DEPENDENCIES): ... this.
19437 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19438 (util/grub-emu.c_DEPENDENCIES): ... this.
19439 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19440 (util/grub-emu.c_DEPENDENCIES): ... this.
19441 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19442 (util/grub-emu.c_DEPENDENCIES): ... this.
19443
19444 2008-01-27 Pavel Roskin <proski@gnu.org>
19445
19446 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
19447 to create a gap between _end and the modules added to the image
19448 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
19449 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
19450 * util/elf/grub-mkimage.c (add_segments): Likewise.
19451
19452 2008-01-26 Pavel Roskin <proski@gnu.org>
19453
19454 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
19455 just return an error.
19456
19457 2008-01-26 Bean <bean123ch@gmail.com>
19458
19459 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
19460 (grub_reiserfs_get_item): Save offset of the next item.
19461 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
19462
19463 2008-01-25 Robert Millan <rmh@aybabtu.com>
19464
19465 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
19466 make all filesystem sources appear together (possibly fixing omissions
19467 while at it).
19468 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19469 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19470 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19471 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19472
19473 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
19474 add `kern/file.c'.
19475 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
19476 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
19477 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
19478 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
19479
19480 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
19481 (probe): Add a sanity check to make sure of our ability to read
19482 requested files when probing for filesystem type.
19483
19484 * genmk.rb: Update copyright year (2007).
19485
19486 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
19487 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
19488 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
19489 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
19490 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
19491 : Remove function prototypes.
19492
19493 2008-01-25 Robert Millan <rmh@aybabtu.com>
19494
19495 Revert my previous commits (based on wrong assumption of how grub_errno
19496 works).
19497
19498 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
19499 * kern/file.c (grub_file_open): Likewise.
19500
19501 2008-01-24 Pavel Roskin <proski@gnu.org>
19502
19503 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
19504 that hang if GRUB tries to setup colors.
19505 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
19506 colors for firmwares that don't support it.
19507 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
19508 Recognize Open Hack'Ware, set flags to work around its
19509 limitations.
19510
19511 2008-01-24 Robert Millan <rmh@aybabtu.com>
19512
19513 * kern/file.c (grub_file_open): Do not account previous failures of
19514 unrelated functions when grub_errno is checked for.
19515 Reported by Oleg Strikov.
19516
19517 2008-01-24 Bean <bean123ch@gmail.com>
19518
19519 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
19520 (grub_ufs_sblock): New member volume name.
19521 (grub_ufs_find_file): Fix string copy bug.
19522 (grub_ufs_label): Implement this function properly.
19523
19524 * fs/hfs.c (grub_hfs_cnid_type): New enum.
19525 (grub_hfs_iterate_records): Use the correct file number for extents
19526 and catalog file. Fix problem in next index calculation.
19527 (grub_hfs_find_node): Replace recursive function call with loop.
19528 (grub_hfs_iterate_dir): Replace recursive function call with loop.
19529
19530 2008-01-23 Robert Millan <rmh@aybabtu.com>
19531
19532 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
19533 `<grub/symbol.h>' and `<grub/multiboot.h>'.
19534 (grub_multiboot2_real_boot): New function prototype.
19535
19536 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
19537 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
19538
19539 * kern/i386/ieee1275/init.c (grub_os_area_addr)
19540 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
19541
19542 2008-01-23 Robert Millan <rmh@aybabtu.com>
19543
19544 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
19545 #ifdef'ed out grub_printf().
19546
19547 2008-01-23 Robert Millan <rmh@aybabtu.com>
19548
19549 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
19550 grub_dprintf calls, since they make "debug=all" mode unusable.
19551 (grub_console_checkkey): Likewise.
19552
19553 2008-01-23 Robert Millan <rmh@aybabtu.com>
19554
19555 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
19556 `term/i386/pc/at_keyboard.c'.
19557 (pkglib_MODULES): Add `serial.mod'.
19558 (serial_mod_SOURCES): New variable.
19559 (serial_mod_CFLAGS): Likewise.
19560 (serial_mod_LDFLAGS): Likewise.
19561
19562 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
19563 `<grub/powerpc/ieee1275/console.h>'.
19564 (grub_keyboard_controller_init): New function prototype.
19565 (grub_console_checkkey): Likewise.
19566 (grub_console_getkey): Likewise.
19567
19568 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
19569 keyboard on i386.
19570
19571 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
19572 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
19573
19574 2008-01-23 Robert Millan <rmh@aybabtu.com>
19575
19576 * kern/i386/pc/init.c (make_install_device): When memdisk image is
19577 present, "(memdisk)/boot/grub" becomes the default prefix.
19578
19579 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
19580 a memdisk tarball with all the modules. Add --overlay=DIR option that
19581 allows users to overlay additional files into the image.
19582
19583 2008-01-23 Robert Millan <rmh@aybabtu.com>
19584
19585 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
19586 and `machine/memory.h'.
19587 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
19588 (_multiboot_mod_SOURCES): New variable.
19589 (_multiboot_mod_CFLAGS): Likewise.
19590 (_multiboot_mod_LDFLAGS): Likewise.
19591 (multiboot_mod_SOURCES): Likewise.
19592 (multiboot_mod_CFLAGS): Likewise.
19593 (multiboot_mod_LDFLAGS): Likewise.
19594
19595 * include/grub/i386/ieee1275/loader.h: New file.
19596
19597 * include/grub/i386/ieee1275/machine.h: Likewise.
19598
19599 * include/grub/i386/ieee1275/memory.h: Likewise.
19600
19601 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
19602 variable declaration.
19603 (grub_os_area_size): Likewise.
19604
19605 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
19606 (grub_lower_mem, grub_upper_mem): New variables.
19607 (grub_stop_floppy): New function (just to make
19608 grub_multiboot2_real_boot() happy).
19609
19610 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
19611 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
19612 (grub_stop): New function.
19613 Include `"../realmode.S"' and `"../loader.S"'.
19614
19615 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
19616 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
19617
19618 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
19619 rely on grub_multiboot2_real_boot() for final boot.
19620
19621 2008-01-22 Robert Millan <rmh@aybabtu.com>
19622
19623 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
19624 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
19625 device that doesn't look like an SD card.
19626 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
19627 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
19628 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
19629 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
19630 found.
19631
19632 2008-01-22 Robert Millan <rmh@aybabtu.com>
19633
19634 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
19635 avoid claiming over our own code.
19636
19637 2008-01-22 Bean <bean123ch@gmail.com>
19638
19639 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
19640 (jpeg_mod_SOURCES): New variable.
19641 (jpeg_mod_CFLAGS): Likewise.
19642 (jpeg_mod_LDFLAGS): Likewise.
19643
19644 * video/readers/jpeg.c : New file.
19645
19646 2008-01-22 Bean <bean123ch@gmail.com>
19647
19648 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
19649 there are no more items.
19650
19651 2008-01-21 Robert Millan <rmh@aybabtu.com>
19652
19653 * kern/mm.c (grub_mm_init_region): Improve debug message.
19654
19655 2008-01-21 Robert Millan <rmh@aybabtu.com>
19656
19657 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
19658 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
19659 address.
19660 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
19661 a C macro.
19662 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
19663 Indicates start of upper memory.
19664 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
19665 (generate_image): Abort when image size is big enough to corrupt
19666 upper memory.
19667
19668 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
19669 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
19670 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19671 instead of hardcoding 0xA0000.
19672 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
19673 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19674 instead of hardcoding 0xA0000.
19675
19676 2008-01-21 Robert Millan <rmh@aybabtu.com>
19677
19678 * disk/memdisk.c (memdisk_size): New variable.
19679 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
19680 `memdisk_size'.
19681 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
19682 image to dynamic memory.
19683 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
19684 `memdisk_size'. Free memdisk block.
19685
19686 2008-01-21 Robert Millan <rmh@aybabtu.com>
19687
19688 Fix detection of very small filesystems (like tar).
19689
19690 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
19691 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
19692 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
19693 a problem with this disk).
19694
19695 2008-01-21 Robert Millan <rmh@aybabtu.com>
19696
19697 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
19698 on grub_biosdisk_rw_standard() error.
19699
19700 2008-01-21 Robert Millan <rmh@aybabtu.com>
19701
19702 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
19703 recent changes.
19704 * kern/elf.c: Likewise.
19705 * kern/ieee1275/ieee1275.c: Likewise.
19706 * kern/powerpc/ieee1275/openfw.c: Likewise.
19707 * term/ieee1275/ofconsole.c: Likewise.
19708
19709 2008-01-21 Robert Millan <rmh@aybabtu.com>
19710
19711 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
19712
19713 * include/grub/kernel.h (grub_arch_memdisk_addr)
19714 (grub_arch_memdisk_size): Moved from here ...
19715
19716 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
19717 (grub_arch_memdisk_size): ... to here.
19718
19719 2008-01-21 Robert Millan <rmh@aybabtu.com>
19720
19721 Mostly based on bugfix from Bean.
19722
19723 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
19724 attribute with hook() parameter.
19725 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
19726 declaration.
19727 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
19728 attribute with hook() parameter.
19729 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
19730 declaration.
19731
19732 2008-01-21 Robert Millan <rmh@aybabtu.com>
19733
19734 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
19735 (pkglib_MODULES): Add `memdisk.mod'.
19736 (memdisk_mod_SOURCES): New variable.
19737 (memdisk_mod_CFLAGS): Likewise.
19738 (memdisk_mod_LDFLAGS): Likewise.
19739
19740 * disk/memdisk.c: New file.
19741
19742 * include/grub/disk.h (grub_disk_dev_id): Add
19743 `GRUB_DISK_DEVICE_MEMDISK_ID'.
19744
19745 * include/grub/i386/pc/kernel.h
19746 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
19747 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
19748 (grub_kernel_image_size): New variable declaration.
19749 (grub_total_module_size): Likewise.
19750 (grub_memdisk_image_size): Likewise.
19751
19752 * include/grub/i386/pc/memory.h
19753 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
19754
19755 * include/grub/kernel.h: Include `<grub/symbol.h>'.
19756 (grub_arch_memdisk_addr): New variable declaration.
19757 (grub_arch_memdisk_size): Likewise.
19758
19759 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
19760 (grub_arch_memdisk_size): Likewise.
19761
19762 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
19763 (codestart): Replace hardcoded `0x100000' with
19764 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
19765
19766 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
19767 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
19768 not NULL, append the contents of the file it refers to, at the end of
19769 the compressed kernel image. Initialize `grub_memdisk_image_size'
19770 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
19771 (options): Add "memdisk"|'m' option.
19772 (main): Parse --memdisk|-m option, and pass user-provided path as
19773 parameter to generate_image().
19774
19775 2008-01-20 Robert Millan <rmh@aybabtu.com>
19776
19777 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
19778 grub_dprintf() calls from here ...
19779 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
19780
19781 2008-01-20 Robert Millan <rmh@aybabtu.com>
19782
19783 Fix detection of "real mode" when /options/real-mode? doesn't exist.
19784
19785 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
19786 declaration.
19787 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
19788 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
19789 `GRUB_IEEE1275_FLAG_REAL_MODE'.
19790 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
19791 property).
19792 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
19793 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
19794
19795 2008-01-19 Robert Millan <rmh@aybabtu.com>
19796
19797 Get rid of confusing function (superseded by
19798 `grub_ieee1275_get_integer_property')
19799 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
19800 prototype.
19801 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
19802 function.
19803 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
19804 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
19805 in native endianness from grub_ieee1275_get_integer_property().
19806
19807 2008-01-19 Robert Millan <rmh@aybabtu.com>
19808
19809 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
19810 command after "shut-down", since implementations differ on which
19811 the command for halt is.
19812
19813 2008-01-19 Robert Millan <rmh@aybabtu.com>
19814
19815 * include/grub/i386/linuxbios/console.h: Add header protection.
19816 (grub_keyboard_controller_init): New function prototype.
19817 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
19818 (KEYBOARD_COMMAND_READ): Likewise.
19819 (KEYBOARD_COMMAND_WRITE): Likewise.
19820 (KEYBOARD_SCANCODE_SET1): Likewise.
19821 (grub_keyboard_controller_write): New function.
19822 (grub_keyboard_controller_read): Likewise.
19823 (grub_keyboard_controller_init): Likewise.
19824
19825 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
19826 (grub_console_init): On coreboot/LinuxBIOS, call
19827 grub_keyboard_controller_init().
19828
19829 2008-01-19 Robert Millan <rmh@aybabtu.com>
19830
19831 PowerPC changes provided by Pavel Roskin.
19832
19833 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
19834 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
19835 don't rely on cmain() doing it.
19836 * kern/i386/ieee1275/startup.S (_start): Store %eax in
19837 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
19838
19839 2008-01-16 Robert Millan <rmh@aybabtu.com>
19840
19841 * include/grub/i386/linuxbios/memory.h
19842 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
19843 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
19844 receive `table_header' as argument. Instead, probe for it in the
19845 known memory ranges where it can be present.
19846 (grub_available_iterate): Do not pass a fixed `table_header' address
19847 to grub_linuxbios_table_iterate().
19848
19849 2008-01-15 Robert Millan <rmh@aybabtu.com>
19850
19851 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
19852 * conf/i386-ieee1275.rmk: New file.
19853 * include/grub/i386/ieee1275/console.h: Likewise.
19854 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
19855 * include/grub/i386/ieee1275/kernel.h: Likewise.
19856 * include/grub/i386/ieee1275/time.h: Likewise.
19857 * kern/i386/ieee1275/init.c: Likewise.
19858 * kern/i386/ieee1275/startup.S: Likewise.
19859
19860 2008-01-15 Robert Millan <rmh@aybabtu.com>
19861
19862 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
19863 when pointers are 32-bit (but still do set it to one when they are
19864 64-bit).
19865
19866 2008-01-15 Robert Millan <rmh@aybabtu.com>
19867
19868 * include/grub/ieee1275/ieee1275.h
19869 (grub_ieee1275_get_integer_property): New function prototype.
19870
19871 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
19872 (grub_ieee1275_get_integer_property): New function. Wraps around
19873 grub_ieee1275_get_property() to handle endianness.
19874
19875 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
19876 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
19877 where appropriate.
19878 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
19879 (grub_map): Likewise.
19880 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
19881
19882 2008-01-15 Bean <bean123ch@gmail.com>
19883
19884 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
19885 (grub_script_execute_cmdline): Reset grub_errno.
19886
19887 * normal/main.c (read_config_file): Reset grub_errno.
19888
19889 * normal/parse.y (script_init): New.
19890 (script): Move function and menuentry here.
19891 (delimiter): New.
19892 (command): Add delimiter at the end of command.
19893 (commands): Adjust to match the new command.
19894 (commandblock): Remove grub_script_lexer_record_start.
19895 (menuentry): Add grub_script_lexer_record_start, use the new commands.
19896 (if): Use the new commands.
19897
19898 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
19899
19900 2008-01-15 Robert Millan <rmh@aybabtu.com>
19901
19902 * normal/menu.c (run_menu): Move timeout message from here ...
19903 (print_timeout): ... to here.
19904 (run_menu): Use print_timeout() once during initial draw to print
19905 the whole message, and again in every clock tick to update only
19906 the number of seconds.
19907
19908 2008-01-15 Robert Millan <rmh@aybabtu.com>
19909
19910 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
19911 actual size of `available' from grub_ieee1275_get_property(), and
19912 restrict parsing to that bound.
19913
19914 2008-01-15 Christian Franke <franke@computer.org>
19915
19916 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
19917 (argp_program_version): Remove variable.
19918 (argp_program_bug_address): Likewise.
19919 (options): Convert from struct argp_option to struct option.
19920 (struct arguments): Remove.
19921 (parse_opt): Remove.
19922 (usage): New function.
19923 (main): Replace struct args members by simple variables.
19924 Replace argp_parse() by getopt_long().
19925 Add switch to evaluate options.
19926 Add missing "(...)" around root_dev in prefix string.
19927
19928 2008-01-14 Robert Millan <rmh@aybabtu.com>
19929
19930 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
19931 for grub_ieee1275_exit(), in order to improve portability.
19932
19933 2008-01-14 Robert Millan <rmh@aybabtu.com>
19934
19935 * util/grub.d/10_linux.in (prefix): Define.
19936 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
19937
19938 2008-01-13 Pavel Roskin <proski@gnu.org>
19939
19940 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
19941 grub_errno if no errors have been detected.
19942
19943 2008-01-12 Robert Millan <rmh@aybabtu.com>
19944
19945 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
19946 (grub_util_get_dev_abstraction): New function prototype.
19947
19948 * util/getroot.c: Include `<grub/util/getroot.h>'
19949 (grub_util_get_grub_dev): Move detection of abstraction type to ...
19950 (grub_util_get_dev_abstraction): ... here (new function).
19951
19952 * util/grub-probe.c: Convert PRINT_* to an enum. Add
19953 `PRINT_ABSTRACTION'.
19954 (probe): Probe for abstraction type when requested.
19955 (main): Understand `--target=abstraction'.
19956
19957 * util/i386/efi/grub-install.in: Add abstraction module to core
19958 image when it is found to be necessary.
19959 * util/i386/pc/grub-install.in: Likewise.
19960 * util/powerpc/ieee1275/grub-install.in: Likewise.
19961
19962 * util/update-grub_lib.in (font_path): Return system path without
19963 converting to GRUB path.
19964 * util/update-grub.in: Convert system path returned by font_path()
19965 to a GRUB path. Use `grub-probe -t abstraction' to determine what
19966 abstraction module is needed for loading fonts (if any). Export
19967 that as `GRUB_PRELOAD_MODULES'.
19968 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
19969 insmod commands).
19970
19971 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
19972
19973 Remove some unused code from reiserfs.
19974
19975 * fs/reiserfs.c (struct grub_reiserfs_key)
19976 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
19977 (struct grub_reiserfs_node_body): Removed.
19978 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19979 Likewise.
19980 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19981 Likewise.
19982 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19983 Likewise.
19984 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19985 Likewise.
19986 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19987 Likewise.
19988 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
19989 Likewise.
19990 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19991 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19992 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19993
19994 2008-01-10 Robert Millan <rmh@aybabtu.com>
19995
19996 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
19997 Determines if a file is garbage left by packaging systems, etc.
19998 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
19999 for processing /etc/grub.d scripts.
20000 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
20001 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
20002 as a condition for processing Linux images.
20003
20004 2008-01-10 Pavel Roskin <proski@gnu.org>
20005
20006 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
20007 to compile reiserfs.c on PowerPC.
20008
20009 2008-01-10 Robert Millan <rmh@aybabtu.com>
20010
20011 * kern/device.c (grub_device_iterate): Do not abort device iteration
20012 when one of the devices cannot be opened.
20013 * kern/disk.c (grub_disk_open): Do not account previous failures of
20014 unrelated functions when grub_errno is checked for.
20015
20016 2008-01-08 Robert Millan <rmh@aybabtu.com>
20017
20018 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
20019 `! grub_linux_is_bzimage', change order of address comparison to make
20020 it more intuitive, and improve "too big zImage" error message.
20021
20022 2008-01-08 Robert Millan <rmh@aybabtu.com>
20023
20024 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
20025 `$(update-grub_DATA)'.
20026 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
20027 targets.
20028
20029 2008-01-07 Robert Millan <rmh@aybabtu.com>
20030
20031 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
20032 which instruction is modified by grub-setup during installation
20033 (since it wasn't obvious by only looking at this file).
20034
20035 2008-01-07 Robert Millan <rmh@aybabtu.com>
20036
20037 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
20038 listing actual TODO items.
20039
20040 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20041
20042 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
20043 correctly.
20044 (grub_reiserfs_get_key_offset): Likewise.
20045 (grub_reiserfs_set_key_offset): Likewise.
20046 (grub_reiserfs_set_key_type): Likewise.
20047 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
20048
20049 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
20050 better to remove the bitfield version completely.
20051
20052 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20053
20054 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
20055 allocated from the heap, due to the fshelp implementation.
20056 (grub_reiserfs_dir): Free NODE, due to the same reason.
20057
20058 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20059
20060 Mostly from Vincent Pelletier:
20061
20062 * fs/reiserfs.c: New file.
20063
20064 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
20065 (reiserfs_mod_SOURCES): New variable.
20066 (reiserfs_mod_CFLAGS): Likewise.
20067 (reiserfs_mod_LDFLAGS): Likewise.
20068
20069 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
20070 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
20071 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
20072 normal/color.c.
20073
20074 2008-01-06 Robert Millan <rmh@aybabtu.com>
20075
20076 * normal/color.c: Remove `<grub/env.h>'.
20077
20078 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
20079
20080 * include/grub/normal.h: Include <grub/env.h>.
20081
20082 2008-01-05 Robert Millan <rmh@aybabtu.com>
20083
20084 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
20085 usage example with `(hd0,1)'.
20086 Reported by Samuel Thibault.
20087
20088 2008-01-05 Robert Millan <rmh@aybabtu.com>
20089
20090 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
20091 (grub_linux_boot_zimage): Rename to ...
20092 (grub_linux_boot): ... this.
20093 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
20094 (grub_linux_boot_zimage): Conditionalize zImage copy.
20095
20096 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
20097 (grub_linux_boot_bzimage): Remove prototype.
20098 (grub_linux_boot_zimage): Rename to ...
20099 (grub_linux_boot): ... this.
20100
20101 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
20102 (grub_linux_boot): Remove function.
20103
20104 2008-01-05 Robert Millan <rmh@aybabtu.com>
20105
20106 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
20107 (grub_env_write_color_highlight): Likewise.
20108 (grub_wait_after_message): Likewise.
20109
20110 * normal/color.c: New file.
20111
20112 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
20113 (normal_mod_DEPENDENCIES): Likewise.
20114
20115 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
20116 (normal_mod_DEPENDENCIES): Likewise.
20117
20118 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
20119 (normal_mod_DEPENDENCIES): Likewise.
20120
20121 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
20122 (normal_mod_DEPENDENCIES): Likewise.
20123
20124 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
20125 for waiting after a message is printed.
20126 * normal/main.c (read_config_file): Likewise.
20127 (grub_normal_init): Register grub_env_write_color_normal() and
20128 grub_env_write_color_highlight() hooks. Mark `color_normal' and
20129 `color_highlight' variables as global.
20130
20131 * normal/menu.c (grub_wait_after_message): New function.
20132 (grub_color_menu_normal): New variable. Replaces ...
20133 (GRUB_COLOR_MENU_NORMAL): ... this macro.
20134 (grub_color_menu_highlight): New variable. Replaces ...
20135 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
20136 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
20137 `GRUB_TERM_COLOR_STANDARD'.
20138 (print_message): Use `grub_setcolorstate' to reload colors. Rename
20139 `normal_code' and `highlight_code' to `old_color_normal' and
20140 `old_color_highlight', respectively.
20141 (grub_menu_init_page): Update colors when drawing the menu, based on
20142 `menu_color_normal' and `menu_color_highlight' variables.
20143 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
20144 a message is printed.
20145
20146 2008-01-05 Robert Millan <rmh@aybabtu.com>
20147
20148 * kern/env.c (grub_env_context_open): Propagate hooks for global
20149 variables to new context.
20150
20151 * kern/main.c (grub_set_root_dev): Export `root' variable.
20152
20153 2008-01-05 Robert Millan <rmh@aybabtu.com>
20154
20155 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
20156 discs unconditionally, since udev and others have options to provide
20157 them.
20158
20159 2008-01-05 Robert Millan <rmh@aybabtu.com>
20160
20161 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
20162
20163 2008-01-04 Christian Franke <franke@computer.org>
20164
20165 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
20166 of eisa_mmap.
20167
20168 2008-01-03 Pavel Roskin <proski@gnu.org>
20169
20170 * kern/i386/linuxbios/init.c: Put "void" to all function
20171 declarations with no arguments.
20172 * kern/powerpc/ieee1275/init.c: Likewise.
20173 * term/i386/pc/at_keyboard.c: Likewise.
20174 * term/i386/pc/vga_text.c: Likewise.
20175 * util/grub-mkdevicemap.c: Likewise.
20176
20177 2008-01-02 Robert Millan <rmh@aybabtu.com>
20178
20179 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
20180 message when loaded image is out of bounds.
20181 (grub_multiboot_load_elf64): Likewise.
20182
20183 2008-01-02 Pavel Roskin <proski@gnu.org>
20184
20185 * util/grub.d/10_linux.in: Try version without ".old" when
20186 looking for initrd. It's better to use initrd from the newer
20187 kernel of the same version than no initrd at all.
20188
20189 2008-01-01 Robert Millan <rmh@aybabtu.com>
20190
20191 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
20192
20193 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
20194
20195 * include/grub/video.h: Added grub_video_unmap_color and
20196 grub_video_get_active_render_target.
20197 (grub_video_adapter): Added unmap_color and get_active_render_target.
20198
20199 * video/video.c: Added grub_video_unmap_color and
20200 grub_video_get_active_render_target.
20201 (grub_video_get_info): Changed method to accept NULL pointer as an
20202 argument to allow detection of active video adapter.
20203
20204 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
20205 grub_video_vbe_unmap_color_int.
20206 Added grub_video_vbe_unmap_color and
20207 grub_video_vbe_get_active_render_target.
20208 (grub_video_vbe_adapter): Added unmap_color and
20209 get_active_render_target.
20210
20211 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
20212 with grub_video_vbe_unmap_color_int.
20213
20214 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
20215 (DEFAULT_NORMAL_COLOR): Likewise.
20216 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
20217 (DEFAULT_FG_COLOR): Removed.
20218 (DEFAULT_BG_COLOR): Likewise.
20219 (DEFAULT_CURSOR_COLOR): Changed value.
20220 (grub_virtual_screen): Added standard_color_setting,
20221 normal_color_setting, highlight_color_setting and term_color.
20222 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
20223 (bitmap_width): Added.
20224 (bitmap_height): Likewise.
20225 (bitmap): Likewise.
20226 (set_term_color): Likewise.
20227 (grub_virtual_screen_setup): Changed to use new terminal coloring
20228 settings.
20229 (grub_gfxterm_init): Added init for bitmap.
20230 (grub_gfxterm_fini): Added destroy for bitmap.
20231 (redraw_screen_rect): Updated to use background bitmap and new
20232 terminal coloring.
20233 (scroll_up): Added optimization for case when there is no bitmap.
20234 (grub_gfxterm_cls): Fixed to use correct background color.
20235 (grub_virtual_screen_setcolorstate): Changed to use new terminal
20236 coloring.
20237 (grub_virtual_screen_setcolor): Likewise.
20238 (grub_virtual_screen_getcolor): Added.
20239 (grub_gfxterm_background_image_cmd): Likewise.
20240 (grub_video_term): Added setcolor and getcolor.
20241 (MOD_INIT): Added registration of background_image command.
20242 (MOD_TERM): Added unregistration for background_image command.
20243
20244 2007-12-30 Pavel Roskin <proski@gnu.org>
20245
20246 * loader/multiboot_loader.c: Fix multiboot command
20247 unregistration. Fix all typos in the word "multiboot".
20248
20249 2007-12-29 Pavel Roskin <proski@gnu.org>
20250
20251 * util/grub.d/10_linux.in: Refactor search for initrd. Add
20252 support for initrd names used in Fedora.
20253
20254 2007-12-26 Bean <bean123ch@gmail.com>
20255
20256 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
20257 (cpio_mod_SOURCES): New variable.
20258 (cpio_mod_CFLAGS): Likewise.
20259 (cpio_mod_LDFLAGS): Likewise.
20260
20261 * fs/cpio.c: New file.
20262
20263 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
20264
20265 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20266
20267 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
20268
20269 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20270
20271 2007-12-25 Robert Millan <rmh@aybabtu.com>
20272
20273 * include/grub/term.h (struct grub_term): Add `getcolor' function.
20274 (grub_getcolor): New function.
20275
20276 * kern/term.c (grub_getcolor): New function.
20277 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
20278 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
20279 (print_entry): Set normal and highlight colors to
20280 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
20281 respectively, before printing and restore them to old
20282 values afterwards.
20283 (grub_menu_init_page): Likewise. Fill an additional colored space
20284 that would otherwise be left blank.
20285
20286 * term/efi/console.c (grub_console_getcolor): New function.
20287 (struct grub_console_term.getcolor): New variable.
20288 * term/i386/pc/console.c (grub_console_getcolor): New function.
20289 (struct grub_console_term.getcolor): New variable.
20290 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
20291 (struct grub_console_term.getcolor): New variable.
20292
20293 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
20294 (struct grub_console_term.setcolor): Remove variable.
20295 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
20296 (struct grub_console_term.setcolor): Remove variable.
20297 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
20298 (struct grub_console_term.setcolor): Remove variable.
20299 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
20300 (struct grub_console_term.setcolor): Remove variable.
20301
20302 2007-12-25 Robert Millan <rmh@aybabtu.com>
20303
20304 * configure.ac: Search for possible unifont.hex locations, and
20305 define UNIFONT_HEX if found.
20306
20307 * Makefile.in (UNIFONT_HEX): Define variable.
20308 (DATA): Rename to ...
20309 (PKGLIB): ... this. Update all users.
20310 (PKGDATA): New variable.
20311 (pkgdata_IMAGES): Rename to ...
20312 (pkglib_IMAGES): ... this. Update all users.
20313 (pkgdata_MODULES): Rename to ...
20314 (pkglib_MODULES): ... this. Update all users.
20315 (pkgdata_PROGRAMS): Rename to ...
20316 (pkglib_PROGRAMS): ... this. Update all users.
20317 (pkgdata_DATA): Rename to ...
20318 (pkglib_DATA): ... this. Update all users.
20319 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
20320 (unicode.pff, ascii.pff): New rules.
20321 (all-local): Add `$(PKGDATA)' dependency.
20322 (install-local): Process `$(PKGDATA)'.
20323
20324 * util/update-grub_lib.in (font_path): Search for *.pff files in
20325 a few more locations, including `${pkgdata}'.
20326
20327 2007-12-23 Robert Millan <rmh@aybabtu.com>
20328
20329 Patch from Bean <bean123ch@gmail.com>:
20330 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
20331 `size'.
20332
20333 2007-12-21 Bean <bean123ch@gmail.com>
20334
20335 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
20336 (ntfscomp_mod_SOURCES): New variable.
20337 (ntfscomp_mod_CFLAGS): Likewise.
20338 (ntfscomp_mod_LDFLAGS): Likewise.
20339
20340 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
20341 (grub_probe_SOURCES): Likewise.
20342 (grub_emu_SOURCES): Likewise.
20343
20344 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
20345 (grub_emu_SOURCES): Likewise.
20346
20347 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
20348 (grub_emu_SOURCES): Likewise.
20349
20350 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
20351 (grub_emu_SOURCES): Likewise.
20352
20353 * fs/ntfs.c (grub_ntfscomp_func): New variable.
20354 (read_run_list): Renamed to grub_ntfs_read_run_list.
20355 (decomp_nextvcn): Moved to ntfscomp.c.
20356 (decomp_getch): Likewise.
20357 (decomp_get16): Likewise.
20358 (decomp_block): Likewise.
20359 (read_block): Likewise.
20360 (read_data): Partially moved to ntfscomp.c.
20361 (fixup): Change unsigned to grub_uint16_t.
20362 (read_mft): Change unsigned long to grub_uint32_t.
20363 (read_attr): Likewise.
20364 (read_data): Likewise.
20365 (read_run_data): Likewise.
20366 (read_run_list): Likewise.
20367 (read_mft): Likewise.
20368
20369 * fs/ntfscomp.c: New file.
20370
20371 * include/grub/ntfs.h: New file.
20372
20373 2007-12-16 Robert Millan <rmh@aybabtu.com>
20374
20375 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
20376 IDE disk check, since Linux is known to support 20 IDE disks.
20377 Reported by Colin Watson.
20378
20379 2007-12-15 Bean <bean123ch@gmail.com>
20380
20381 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
20382 (lnxboot_img_SOURCES): New variable.
20383 (lnxboot_img_ASFLAGS): Likewise.
20384 (lnxboot_img_LDFLAGS): Likewise.
20385
20386 * boot/i386/pc/lnxboot.S: New file.
20387
20388 2007-11-24 Pavel Roskin <proski@gnu.org>
20389
20390 * configure.ac: Test if '--build-id=none' is supported by the
20391 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
20392 objcopy to generate incorrect binary files (binutils
20393 2.17.50.0.18-1 as shipped by Fedora 8).
20394 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
20395 linking, so that build ID doesn't break the test.
20396
20397 2007-11-24 Pavel Roskin <proski@gnu.org>
20398
20399 * include/grub/i386/time.h: use "void" in the argument list
20400 of grub_cpu_idle().
20401 * include/grub/powerpc/time.h: Likewise.
20402 * include/grub/sparc64/time.h: Likewise.
20403
20404 2007-11-18 Christian Franke <franke@computer.org>
20405
20406 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
20407 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
20408 This fixes the problem that function keys did not work in grub-emu.
20409
20410 2007-11-18 Christian Franke <franke@computer.org>
20411
20412 * disk/host.c (grub_host_open): Remove attribute unused from
20413 name parameter. Add check for "host". This fixes the problem
20414 that grub-emu does not find partitions.
20415
20416 2007-11-18 Christian Franke <franke@computer.org>
20417
20418 * util/hostfs.c (is_dir): New function.
20419 (grub_hostfs_dir): Handle missing dirent.d_type case.
20420 (grub_hostfs_read): Add missing fseek().
20421 (grub_hostfs_label): Clear label pointer. This fixes a crash
20422 of grub-emu on "ls (host)".
20423
20424 2007-11-18 Christian Franke <franke@computer.org>
20425
20426 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
20427 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
20428 to 64 bit boundary by default.
20429
20430 2007-11-18 Bean <bean123ch@gmail.com>
20431
20432 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
20433 (hexdump_mod_SOURCES): New variable.
20434 (hexdump_mod_CFLAGS): Likewise.
20435 (hexdump_mod_LDFLAGS): Likewise.
20436
20437 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20438
20439 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20440
20441 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20442
20443 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20444
20445 * include/grub/hexdump.h: New file.
20446
20447 * commands/hexdump.c: New file.
20448
20449 2007-11-10 Robert Millan <rmh@aybabtu.com>
20450
20451 * commands/i386/pc/play.c (beep_off): Switch order of arguments
20452 in grub_outb() calls.
20453 (beep_on): Likewise.
20454
20455 2007-11-10 Christian Franke <franke@computer.org>
20456
20457 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
20458 (grub_menu_run): Likewise.
20459
20460 2007-11-10 Robert Millan <rmh@aybabtu.com>
20461
20462 * include/grub/i386/efi/machine.h: New file.
20463 * include/grub/i386/linuxbios/machine.h: Likewise.
20464 * include/grub/i386/pc/machine.h: Likewise.
20465 * include/grub/powerpc/ieee1275/machine.h: Likewise.
20466 * include/grub/sparc64/ieee1275/machine.h: Likewise.
20467
20468 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
20469 (serial_hw_io_addr): New variable.
20470 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
20471 instead of `(unsigned short *) 0x400'.
20472
20473 2007-11-10 Bean <bean123ch@gmail.com>
20474
20475 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
20476
20477 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
20478
20479 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
20480 (vga_mod_SOURCES): Added.
20481 (vga_mod_CFLAGS): Likewise.
20482 (vga_mod_LDFLAGS): Likewise.
20483
20484 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
20485 grub_outb() calls.
20486 (set_map_mask): Likewise.
20487 (set_read_map): Likewise.
20488 (set_read_address): Likewise.
20489 (vga_font): Removed variable.
20490 (get_vga_glyph): Removed function.
20491 (invalidate_char): Likewise.
20492 (write_char): Changed to use grub_font_get_glyph() for font
20493 information.
20494 (grub_vga_putchar): Likewise.
20495 (grub_vga_getcharwidth): Likewise.
20496
20497 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
20498
20499 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
20500 flags.
20501 (pxeboot_img_LDFLAGS): Likewise.
20502 (diskboot_img_LDFLAGS): Likewise.
20503 (kernel_img_LDFLAGS): Likewise.
20504
20505 2007-11-06 Robert Millan <rmh@aybabtu.com>
20506
20507 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
20508 in grub_outb() calls.
20509 (serial_hw_init): Likewise.
20510
20511 2007-11-05 Robert Millan <rmh@aybabtu.com>
20512
20513 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
20514 spaces. Skip non-regular files.
20515
20516 2007-11-05 Robert Millan <rmh@aybabtu.com>
20517
20518 * kern/disk.c (grub_disk_firmware_fini)
20519 (grub_disk_firmware_is_tainted): New variables.
20520
20521 * include/grub/disk.h (grub_disk_firmware_fini)
20522 (grub_disk_firmware_is_tainted): Likewise.
20523
20524 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
20525 (grub_disk_biosdisk_fini): ... to here.
20526 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
20527 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
20528 is set. Register grub_disk_biosdisk_fini() in
20529 `grub_disk_firmware_fini'.
20530
20531 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
20532 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
20533 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
20534 to finish existing firmware disk interface.
20535
20536 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
20537 (ata_mod_SOURCES): New variable.
20538 (ata_mod_CFLAGS): Likewise.
20539 (ata_mod_LDFLAGS): Likewise.
20540
20541 2007-11-05 Robert Millan <rmh@aybabtu.com>
20542
20543 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
20544 (grub_ata_wait): Reimplement using grub_millisleep().
20545
20546 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
20547 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
20548
20549 2007-11-03 Marco Gerards <marco@gnu.org>
20550
20551 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
20552 (CRTC_ADDR_PORT): New macro.
20553 (CRTC_DATA_PORT): Likewise.
20554 (CRTC_CURSOR): Likewise.
20555 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20556 (CRTC_CURSOR_ADDR_LOW): Likewise.
20557 (update_cursor): New function.
20558 (grub_console_real_putchar): Call `update_cursor'.
20559 (grub_console_gotoxy): Likewise.
20560 (grub_console_cls): Set the default color when clearing the
20561 screen.
20562 (grub_console_setcursor): Implemented.
20563
20564 2007-11-03 Marco Gerards <marco@gnu.org>
20565
20566 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
20567 become activate.
20568 (grub_ata_pio_write): Likewise.
20569
20570 (grub_atapi_identify): Wait after issuing an ATA command.
20571 (grub_atapi_packet): Likewise.
20572 (grub_ata_identify): Likewise.
20573 (grub_ata_readwrite): Likewise.
20574
20575 2007-11-03 Marco Gerards <marco@gnu.org>
20576
20577 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
20578 (grub_ata_pio_write): Likewise.
20579 (grub_ata_readwrite): Use `grub_error', instead of
20580 returning `grub_errno'.
20581
20582 2007-11-03 Marco Gerards <marco@gnu.org>
20583
20584 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
20585 grub_ata_pio_write once for every single sector, instead of for
20586 multiple sectors.
20587
20588 2007-10-31 Robert Millan <rmh@aybabtu.com>
20589
20590 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
20591
20592 * conf/i386-linuxbios.rmk: New file.
20593
20594 * kern/i386/pc/hardware.c: Likewise.
20595 * term/i386/pc/at_keyboard.c: Likewise.
20596 * term/i386/pc/vga_text.c: Likewise.
20597
20598 * include/grub/i386/linuxbios/boot.h: Likewise.
20599 * include/grub/i386/linuxbios/console.h: Likewise.
20600 * include/grub/i386/linuxbios/init.h: Likewise.
20601 * include/grub/i386/linuxbios/kernel.h: Likewise.
20602 * include/grub/i386/linuxbios/loader.h: Likewise.
20603 * include/grub/i386/linuxbios/memory.h: Likewise.
20604 * include/grub/i386/linuxbios/serial.h: Likewise.
20605 * include/grub/i386/linuxbios/time.h: Likewise.
20606
20607 * kern/i386/linuxbios/init.c: Likewise.
20608 * kern/i386/linuxbios/startup.S: Likewise.
20609 * kern/i386/linuxbios/table.c: Likewise.
20610
20611 2007-10-31 Marco Gerards <marco@gnu.org>
20612
20613 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
20614 (ata_mod_SOURCES): New variable.
20615 (ata_mod_CFLAGS): Likewise.
20616 (ata_mod_LDFLAGS): Likewise.
20617
20618 * disk/ata.c: New file.
20619
20620 * include/grub/disk.h (grub_disk_dev_id): Add
20621 `GRUB_DISK_DEV_ATA_ID'.
20622
20623 2007-10-31 Robert Millan <rmh@aybabtu.com>
20624
20625 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
20626 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
20627
20628 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
20629 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
20630
20631 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
20632 `<grub/types.h>'.
20633
20634 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
20635
20636 2007-10-27 Robert Millan <rmh@aybabtu.com>
20637
20638 * include/grub/types.h (ULONG_MAX): Define macro.
20639
20640 2007-10-22 Robert Millan <rmh@aybabtu.com>
20641
20642 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
20643 `"../realmode.S"'.
20644 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
20645
20646 2007-10-22 Robert Millan <rmh@aybabtu.com>
20647
20648 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
20649 (pkgdata_MODULES): Add `biosdisk.mod'.
20650 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
20651 variables.
20652
20653 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
20654 (grub_biosdisk_init): Replace with ...
20655 (GRUB_MOD_INIT(biosdisk)): ... this.
20656 (grub_biosdisk_fini): Replace with ...
20657 (GRUB_MOD_FINI(biosdisk)): ... this.
20658
20659 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
20660 (grub_machine_init): Remove call to grub_biosdisk_init().
20661 (grub_machine_fini): Remove call to grub_machine_fini().
20662
20663 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
20664
20665 2007-10-22 Robert Millan <rmh@aybabtu.com>
20666
20667 * include/grub/time.h: New file.
20668 * include/grub/i386/time.h: Likewise.
20669 * include/grub/powerpc/time.h: Likewise.
20670 * include/grub/sparc64/time.h: Likewise.
20671
20672 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
20673 instances to ...
20674 (KERNEL_MACHINE_TIME_HEADER): ... this.
20675 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20676 instances to ...
20677 (KERNEL_MACHINE_TIME_HEADER): ... this.
20678 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20679 instances to ...
20680 (KERNEL_MACHINE_TIME_HEADER): ... this.
20681
20682 * kern/i386/efi/init.c: Include `<grub/time.h>'.
20683 (grub_millisleep): New function.
20684 * kern/i386/pc/init.c: Include `<grub/time.h>'.
20685 (grub_millisleep): New function.
20686 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
20687 Remove `grub/machine/time.h' include.
20688 (grub_millisleep): New function.
20689 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
20690 Remove `grub/machine/time.h' include.
20691 (grub_millisleep): New function.
20692
20693 * include/grub/misc.h (grub_div_roundup): New function.
20694
20695 * kern/misc.c: Include `<grub/time.h>'.
20696 (grub_millisleep_generic): New function.
20697
20698 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
20699 Add `time.h'.
20700 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
20701 Add `time.h'.
20702 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
20703 `machine/time.h'. Add `time.h'.
20704 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
20705
20706 2007-10-21 Robert Millan <rmh@aybabtu.com>
20707
20708 * include/grub/misc.h (grub_max): New function.
20709
20710 2007-10-21 Robert Millan <rmh@aybabtu.com>
20711
20712 * util/misc.c (grub_util_info): Call fflush() before returning.
20713
20714 2007-10-20 Robert Millan <rmh@aybabtu.com>
20715
20716 * genmk.rb (Image): Copy `extra_flags' from here ...
20717 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
20718
20719 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
20720 to `argc' and `args' arguments.
20721
20722 2007-10-17 Robert Millan <rmh@aybabtu.com>
20723
20724 * kern/i386/loader.S: New file.
20725
20726 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
20727 * kern/i386/loader.S (grub_linux_prot_size)... to here.
20728 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
20729 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
20730 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
20731 * kern/i386/loader.S (grub_linux_real_addr)... to here.
20732 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
20733 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
20734 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
20735 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
20736 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
20737 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
20738 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
20739 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
20740
20741 * kern/i386/realmode.S: New file.
20742
20743 * kern/i386/pc/startup.S (protstack): Moved from here ...
20744 * kern/i386/realmode.S (protstack)... to here.
20745 * kern/i386/pc/startup.S (gdt): Moved from here ...
20746 * kern/i386/realmode.S (gdt)... to here.
20747 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
20748 * kern/i386/realmode.S (prot_to_real)... to here.
20749
20750 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
20751 `kern/i386/realmode.S'.
20752
20753 2007-10-17 Robert Millan <rmh@aybabtu.com>
20754
20755 * include/grub/i386/loader.h: New file.
20756
20757 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
20758 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20759 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20760 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20761 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
20762 * include/grub/i386/loader.h (grub_linux_prot_size)
20763 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20764 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20765 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20766 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
20767
20768 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
20769
20770 2007-10-15 Robert Millan <rmh@aybabtu.com>
20771
20772 * normal/misc.c (grub_normal_print_device_info): Do not probe for
20773 filesystem when dev->disk is unset.
20774 Do probe for filesystem even when dev->disk->has_partitions is set.
20775 In case a filesystem is found, always report it.
20776 In case it isn't, if dev->disk->has_partitions is set, report that
20777 a partition table was found instead of reporting that no filesystem
20778 could be identified.
20779
20780 2007-10-12 Robert Millan <rmh@aybabtu.com>
20781
20782 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
20783 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
20784
20785 * include/grub/types.h (grub_host_to_target16): New macro.
20786 (grub_host_to_target32): Likewise.
20787 (grub_host_to_target64): Likewise.
20788 (grub_target_to_host16): Likewise.
20789 (grub_target_to_host32): Likewise.
20790 (grub_target_to_host64): Likewise.
20791
20792 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
20793 Renamed from to ...
20794 (GRUB_MOD_ALIGN): ...this. Update all users.
20795
20796 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
20797 grub_host_to_target32.
20798 Replace grub_be_to_cpu32 with grub_target_to_host32.
20799 (load_modules): Likewise.
20800 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
20801 Replace grub_be_to_cpu32 with grub_target_to_host32.
20802 Replace grub_cpu_to_be16 with grub_host_to_target16.
20803 Replace grub_cpu_to_be32 grub_host_to_target32.
20804
20805 2007-10-12 Robert Millan <rmh@aybabtu.com>
20806
20807 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
20808 * util/elf/grub-mkimage.c: ... here.
20809
20810 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
20811 `util/powerpc/ieee1275/grub-mkimage.c'.
20812
20813 2007-10-07 Robert Millan <rmh@aybabtu.com>
20814
20815 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
20816 and make it easier to figure out.
20817 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
20818 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
20819 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
20820 leave us with less than HEAP_MIN_SIZE total heap.
20821 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
20822
20823 2007-10-03 Robert Millan <rmh@aybabtu.com>
20824
20825 * include/grub/i386/io.h: New file.
20826 * commands/i386/pc/play.c (inb): Removed.
20827 (outb): Removed.
20828 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20829 with grub_outb().
20830 * term/i386/pc/serial.c (inb): Removed.
20831 (outb): Removed.
20832 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20833 with grub_outb().
20834 * term/i386/pc/vga.c (inb): Removed.
20835 (outb): Removed.
20836 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20837 with grub_outb().
20838
20839 2007-10-02 Robert Millan <rmh@aybabtu.com>
20840
20841 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
20842 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20843 Reported by Marcin Kurek.
20844
20845 2007-09-07 Robert Millan <rmh@aybabtu.com>
20846
20847 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
20848 SmartFirmware version updates (as released by Sven Luther), and avoid
20849 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
20850 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
20851 known broken.
20852
20853 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20854
20855 From Hitoshi Ozeki:
20856 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
20857 when merging two regions.
20858
20859 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20860
20861 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
20862 * normal/completion.c (grub_normal_do_completion): Likewise.
20863 Reported by Hitoshi Ozeki.
20864
20865 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20866
20867 Do not use devices at boot in chainloading.
20868
20869 * loader/i386/pc/chainloader.c (boot_drive): New variable.
20870 (boot_part_addr): Likewise.
20871 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
20872 with BOOT_DRIVE and BOOT_PART_ADDR.
20873 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
20874 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
20875
20876 2007-08-29 Robert Millan <rmh@aybabtu.com>
20877
20878 Patch from Simon Peter <dn.tlp@gmx.net>:
20879 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
20880 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
20881 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
20882 util/i386/pc/grub-setup.c_DEPENDENCIES.
20883 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
20884 util/grub-probe.c_DEPENDENCIES.
20885 * conf/powerpc-ieee1275.rmk: Likewise.
20886
20887 2007-08-28 Robert Millan <rmh@aybabtu.com>
20888
20889 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
20890 to tell grub-mkdevicemap how to name devices.
20891 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
20892 feature).
20893
20894 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
20895 util/i386/get_disk_name.c.
20896 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
20897 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
20898 util/ieee1275/get_disk_name.c.
20899
20900 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
20901
20902 * DISTLIST: Add util/i386/get_disk_name.c and
20903 util/ieee1275/get_disk_name.c.
20904
20905 * util/grub-mkdevicemap.c: Replace device naming logic with
20906 grub_util_get_disk_name() calls.
20907
20908 2007-08-20 Robert Millan <rmh@aybabtu.com>
20909
20910 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
20911 (so that it works for both plural and singular quantities).
20912
20913 2007-08-05 Robert Millan <rmh@aybabtu.com>
20914
20915 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
20916 so that [xz] isn't taken into account when determining order.
20917
20918 2007-08-02 Marco Gerards <marco@gnu.org>
20919
20920 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
20921 `include/multiboot2.h', `include/grub/elfload.h',
20922 `include/multiboot.h', `include/grub/multiboot.h',
20923 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
20924 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
20925 `kern/elf.c', `loader/multiboot_loader.c',
20926 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
20927 `loader/i386/pc/multiboot2.c',
20928 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
20929 `util/i386/pc/grub-mkrescue.in'. Remove
20930 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
20931 `include/grub/i386/pc/util/biosdisk.h' and
20932 `include/grub/powerpc/ieee1275/multiboot.h'.
20933
20934 2007-08-02 Bean <bean123ch@gmail.com>
20935
20936 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
20937 (ntfs_mod_SOURCES): New variable.
20938 (ntfs_mod_CFLAGS): Likewise.
20939 (ntfs_mod_LDFLAGS): Likewise.
20940
20941 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
20942 (grub_probe_SOURCES): Likewise.
20943 (grub_emu_SOURCES): Likewise.
20944
20945 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20946 (grub_emu_SOURCES): Likewise.
20947
20948 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20949 (grub_emu_SOURCES): Likewise.
20950
20951 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
20952
20953 * fs/ntfs.c: New file.
20954
20955 2007-08-02 Bean <bean123ch@gmail.com>
20956
20957 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
20958
20959 * file.h (grub_file): Likewise.
20960
20961 * fshelp.h (grub_fshelp_read_file): Likewise.
20962
20963 * util/i386/pc/grub-setup.c (setup): Likewise.
20964 (save_first_sector): Likewise.
20965 (save_blocklists): Likewise.
20966
20967 * fs/affs.c (grub_affs_read_file): Likewise.
20968
20969 * fs/ext2.c (grub_ext2_read_file): Likewise.
20970
20971 * fs/fat.c (grub_fat_read_data): Likewise.
20972
20973 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
20974
20975 * fs/hfs.c (grub_hfs_read_file): Likewise.
20976
20977 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
20978
20979 * fs/jfs.c (grub_jfs_read_file): Likewise.
20980
20981 * fs/minix.c (grub_minix_read_file): Likewise.
20982
20983 * fs/sfs.c (grub_sfs_read_file): Likewise.
20984
20985 * fs/ufs.c (grub_ufs_read_file): Likewise.
20986
20987 * fs/xfs.c (grub_xfs_read_file): Likewise.
20988
20989 * command/blocklist.c (read_blocklist): Likewise.
20990 (print_blocklist): Likewise.
20991
20992 2007-08-02 Marco Gerards <marco@gnu.org>
20993
20994 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
20995 `util/hostfs.c'.
20996
20997 * disk/host.c: New file.
20998
20999 * util/hostfs.c: Likewise.
21000
21001 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
21002 return `GRUB_ERR_BAD_FS'.
21003 * fs/sfs.c (grub_sfs_mount): Likewise.
21004 * fs/xfs.c (grub_xfs_mount): Likewise.
21005
21006 * include/grub/disk.h (enum grub_disk_dev_id): Add
21007 `GRUB_DISK_DEVICE_HOST_ID'.
21008
21009 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
21010
21011 2007-07-24 Jerone Young <jerone@gmail.com>
21012
21013 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
21014 modules for compilation.
21015 * conf/powerpc-ieee1275.rmk: Likewise.
21016
21017 * include/multiboot.h: Move multiboot definitions to one file. Rename
21018 many definitions to not get grub specific.
21019 * include/multiboot2.h: Create header with multiboot 2 definitions.
21020 * include/grub/multiboot.h: Header for grub specific function
21021 prototypes and definitions.
21022 * include/grub/multiboot2.h: Likewise.
21023 * include/grub/multiboot_loader.h: Likewise.
21024 * include/grub/i386/pc/multiboot.h: Removed.
21025 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
21026
21027 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
21028 and 2 to allow for one multiboot and module commands.
21029 * loader/multiboot2.c: Add multiboot2 functionality.
21030 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
21031 and definition names.
21032 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
21033 2 functions.
21034 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
21035 ieee1275 specific multiboot2 code.
21036
21037 * kern/i386/pc/startup.S: Change headers and definition names for
21038 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
21039
21040 2007-07-22 Robert Millan <rmh@aybabtu.com>
21041
21042 * geninitheader.sh: Process file specified in first parameter rather
21043 than hardcoding grub_modules_init.lst.
21044 * geninit.sh: Likewise. Also, construct header name dynamically rather
21045 than hardcoding grub_modules_init.h.
21046
21047 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
21048 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
21049 grub_probe_init.[ch] and grub_setup_init.[ch].
21050
21051 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
21052 grub_modules_init.h with grub_emu_init.h.
21053 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
21054 grub_probe_init.[ch] files.
21055 * conf/i386-efi.rmk: Likewise.
21056 * conf/i386-pc.rmk: Likewise.
21057 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
21058 grub_setup_init.[ch] files.
21059
21060 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
21061 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
21062 to initialize modules rather than a list of hardcoded functions.
21063 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
21064 grub_init_all() to initialize modules rather than a list of hardcoded
21065 functions.
21066
21067 2007-07-22 Robert Millan <rmh@aybabtu.com>
21068
21069 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21070 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
21071
21072 2007-07-22 Robert Millan <rmh@aybabtu.com>
21073
21074 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
21075 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
21076 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
21077 flag when running on SmartFirmware.
21078 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
21079 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
21080 was set.
21081
21082 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
21083 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
21084 rather than decreasing it.
21085
21086 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
21087 there's not enough space to do it, fail in the same way as when it
21088 can't be done because there are no partitions.
21089
21090 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
21091 when nvsetenv failed.
21092
21093 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
21094
21095 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
21096 because this rule is automatically generated.
21097 (grub-mkrescue): Removed for the same reason as above.
21098
21099 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
21100
21101 Migrate to GNU General Public License Version 3.
21102
21103 * COPYING: Replaced with the plain text version of GPLv3.
21104
21105 * config.guess: Updated from gnulib.
21106 * config.sub: Likewise.
21107
21108 * geninit.sh: Output a GPLv3 copyright notice.
21109 * geninitheader.sh: Likewise.
21110 * genmodsrc.sh: Likewise.
21111 * gensymlist.sh.in: Likewise.
21112
21113 * boot/i386/pc/boot.S: Upgraded to GPLv3.
21114 * boot/i386/pc/diskboot.S: Likewise.
21115 * boot/i386/pc/pxeboot.S: Likewise.
21116 * commands/blocklist.c: Likewise.
21117 * commands/boot.c: Likewise.
21118 * commands/cat.c: Likewise.
21119 * commands/cmp.c: Likewise.
21120 * commands/configfile.c: Likewise.
21121 * commands/echo.c: Likewise.
21122 * commands/help.c: Likewise.
21123 * commands/ls.c: Likewise.
21124 * commands/search.c: Likewise.
21125 * commands/terminal.c: Likewise.
21126 * commands/test.c: Likewise.
21127 * commands/videotest.c: Likewise.
21128 * commands/i386/cpuid.c: Likewise.
21129 * commands/i386/pc/halt.c: Likewise.
21130 * commands/i386/pc/play.c: Likewise.
21131 * commands/i386/pc/reboot.c: Likewise.
21132 * commands/i386/pc/vbeinfo.c: Likewise.
21133 * commands/i386/pc/vbetest.c: Likewise.
21134 * commands/ieee1275/halt.c: Likewise.
21135 * commands/ieee1275/reboot.c: Likewise.
21136 * commands/ieee1275/suspend.c: Likewise.
21137 * disk/loopback.c: Likewise.
21138 * disk/lvm.c: Likewise.
21139 * disk/raid.c: Likewise.
21140 * disk/efi/efidisk.c: Likewise.
21141 * disk/i386/pc/biosdisk.c: Likewise.
21142 * disk/ieee1275/ofdisk.c: Likewise.
21143 * font/manager.c: Likewise.
21144 * fs/affs.c: Likewise.
21145 * fs/ext2.c: Likewise.
21146 * fs/fat.c: Likewise.
21147 * fs/fshelp.c: Likewise.
21148 * fs/hfs.c: Likewise.
21149 * fs/hfsplus.c: Likewise.
21150 * fs/iso9660.c: Likewise.
21151 * fs/jfs.c: Likewise.
21152 * fs/minix.c: Likewise.
21153 * fs/sfs.c: Likewise.
21154 * fs/ufs.c: Likewise.
21155 * fs/xfs.c: Likewise.
21156 * hello/hello.c: Likewise.
21157 * include/grub/acorn_filecore.h: Likewise.
21158 * include/grub/arg.h: Likewise.
21159 * include/grub/bitmap.h: Likewise.
21160 * include/grub/boot.h: Likewise.
21161 * include/grub/cache.h: Likewise.
21162 * include/grub/device.h: Likewise.
21163 * include/grub/disk.h: Likewise.
21164 * include/grub/dl.h: Likewise.
21165 * include/grub/elfload.h: Likewise.
21166 * include/grub/env.h: Likewise.
21167 * include/grub/err.h: Likewise.
21168 * include/grub/file.h: Likewise.
21169 * include/grub/font.h: Likewise.
21170 * include/grub/fs.h: Likewise.
21171 * include/grub/fshelp.h: Likewise.
21172 * include/grub/gzio.h: Likewise.
21173 * include/grub/hfs.h: Likewise.
21174 * include/grub/kernel.h: Likewise.
21175 * include/grub/loader.h: Likewise.
21176 * include/grub/lvm.h: Likewise.
21177 * include/grub/misc.h: Likewise.
21178 * include/grub/mm.h: Likewise.
21179 * include/grub/net.h: Likewise.
21180 * include/grub/normal.h: Likewise.
21181 * include/grub/parser.h: Likewise.
21182 * include/grub/partition.h: Likewise.
21183 * include/grub/pc_partition.h: Likewise.
21184 * include/grub/raid.h: Likewise.
21185 * include/grub/rescue.h: Likewise.
21186 * include/grub/script.h: Likewise.
21187 * include/grub/setjmp.h: Likewise.
21188 * include/grub/symbol.h: Likewise.
21189 * include/grub/term.h: Likewise.
21190 * include/grub/terminfo.h: Likewise.
21191 * include/grub/tparm.h: Likewise.
21192 * include/grub/types.h: Likewise.
21193 * include/grub/video.h: Likewise.
21194 * include/grub/efi/api.h: Likewise.
21195 * include/grub/efi/chainloader.h: Likewise.
21196 * include/grub/efi/console.h: Likewise.
21197 * include/grub/efi/console_control.h: Likewise.
21198 * include/grub/efi/disk.h: Likewise.
21199 * include/grub/efi/efi.h: Likewise.
21200 * include/grub/efi/pe32.h: Likewise.
21201 * include/grub/efi/time.h: Likewise.
21202 * include/grub/i386/linux.h: Likewise.
21203 * include/grub/i386/setjmp.h: Likewise.
21204 * include/grub/i386/types.h: Likewise.
21205 * include/grub/i386/efi/kernel.h: Likewise.
21206 * include/grub/i386/efi/loader.h: Likewise.
21207 * include/grub/i386/efi/time.h: Likewise.
21208 * include/grub/i386/pc/biosdisk.h: Likewise.
21209 * include/grub/i386/pc/boot.h: Likewise.
21210 * include/grub/i386/pc/chainloader.h: Likewise.
21211 * include/grub/i386/pc/console.h: Likewise.
21212 * include/grub/i386/pc/init.h: Likewise.
21213 * include/grub/i386/pc/kernel.h: Likewise.
21214 * include/grub/i386/pc/loader.h: Likewise.
21215 * include/grub/i386/pc/memory.h: Likewise.
21216 * include/grub/i386/pc/multiboot.h: Likewise.
21217 * include/grub/i386/pc/serial.h: Likewise.
21218 * include/grub/i386/pc/time.h: Likewise.
21219 * include/grub/i386/pc/vbe.h: Likewise.
21220 * include/grub/i386/pc/vbeblit.h: Likewise.
21221 * include/grub/i386/pc/vbefill.h: Likewise.
21222 * include/grub/i386/pc/vbeutil.h: Likewise.
21223 * include/grub/i386/pc/vga.h: Likewise.
21224 * include/grub/ieee1275/ieee1275.h: Likewise.
21225 * include/grub/ieee1275/ofdisk.h: Likewise.
21226 * include/grub/powerpc/libgcc.h: Likewise.
21227 * include/grub/powerpc/setjmp.h: Likewise.
21228 * include/grub/powerpc/types.h: Likewise.
21229 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
21230 * include/grub/powerpc/ieee1275/console.h: Likewise.
21231 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
21232 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21233 * include/grub/powerpc/ieee1275/loader.h: Likewise.
21234 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
21235 * include/grub/powerpc/ieee1275/time.h: Likewise.
21236 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
21237 * include/grub/sparc64/libgcc.h: Likewise.
21238 * include/grub/sparc64/setjmp.h: Likewise.
21239 * include/grub/sparc64/types.h: Likewise.
21240 * include/grub/sparc64/ieee1275/console.h: Likewise.
21241 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
21242 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21243 * include/grub/sparc64/ieee1275/time.h: Likewise.
21244 * include/grub/util/biosdisk.h: Likewise.
21245 * include/grub/util/getroot.h: Likewise.
21246 * include/grub/util/lvm.h: Likewise.
21247 * include/grub/util/misc.h: Likewise.
21248 * include/grub/util/raid.h: Likewise.
21249 * include/grub/util/resolve.h: Likewise.
21250 * io/gzio.c: Likewise.
21251 * kern/device.c: Likewise.
21252 * kern/disk.c: Likewise.
21253 * kern/dl.c: Likewise.
21254 * kern/elf.c: Likewise.
21255 * kern/env.c: Likewise.
21256 * kern/err.c: Likewise.
21257 * kern/file.c: Likewise.
21258 * kern/fs.c: Likewise.
21259 * kern/loader.c: Likewise.
21260 * kern/main.c: Likewise.
21261 * kern/misc.c: Likewise.
21262 * kern/mm.c: Likewise.
21263 * kern/parser.c: Likewise.
21264 * kern/partition.c: Likewise.
21265 * kern/rescue.c: Likewise.
21266 * kern/term.c: Likewise.
21267 * kern/efi/efi.c: Likewise.
21268 * kern/efi/init.c: Likewise.
21269 * kern/efi/mm.c: Likewise.
21270 * kern/i386/dl.c: Likewise.
21271 * kern/i386/efi/init.c: Likewise.
21272 * kern/i386/efi/startup.S: Likewise.
21273 * kern/i386/pc/init.c: Likewise.
21274 * kern/i386/pc/lzo1x.S: Likewise.
21275 * kern/i386/pc/startup.S: Likewise.
21276 * kern/ieee1275/ieee1275.c: Likewise.
21277 * kern/powerpc/cache.S: Likewise.
21278 * kern/powerpc/dl.c: Likewise.
21279 * kern/powerpc/ieee1275/cmain.c: Likewise.
21280 * kern/powerpc/ieee1275/crt0.S: Likewise.
21281 * kern/powerpc/ieee1275/init.c: Likewise.
21282 * kern/powerpc/ieee1275/openfw.c: Likewise.
21283 * kern/sparc64/cache.S: Likewise.
21284 * kern/sparc64/dl.c: Likewise.
21285 * kern/sparc64/ieee1275/init.c: Likewise.
21286 * kern/sparc64/ieee1275/openfw.c: Likewise.
21287 * loader/efi/chainloader.c: Likewise.
21288 * loader/efi/chainloader_normal.c: Likewise.
21289 * loader/i386/efi/linux.c: Likewise.
21290 * loader/i386/efi/linux_normal.c: Likewise.
21291 * loader/i386/pc/chainloader.c: Likewise.
21292 * loader/i386/pc/chainloader_normal.c: Likewise.
21293 * loader/i386/pc/linux.c: Likewise.
21294 * loader/i386/pc/linux_normal.c: Likewise.
21295 * loader/i386/pc/multiboot.c: Likewise.
21296 * loader/i386/pc/multiboot_normal.c: Likewise.
21297 * loader/powerpc/ieee1275/linux.c: Likewise.
21298 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
21299 * normal/arg.c: Likewise.
21300 * normal/cmdline.c: Likewise.
21301 * normal/command.c: Likewise.
21302 * normal/completion.c: Likewise.
21303 * normal/execute.c: Likewise.
21304 * normal/function.c: Likewise.
21305 * normal/lexer.c: Likewise.
21306 * normal/main.c: Likewise.
21307 * normal/menu.c: Likewise.
21308 * normal/menu_entry.c: Likewise.
21309 * normal/misc.c: Likewise.
21310 * normal/parser.y: Likewise.
21311 * normal/script.c: Likewise.
21312 * normal/i386/setjmp.S: Likewise.
21313 * normal/powerpc/setjmp.S: Likewise.
21314 * normal/sparc64/setjmp.S: Likewise.
21315 * partmap/acorn.c: Likewise.
21316 * partmap/amiga.c: Likewise.
21317 * partmap/apple.c: Likewise.
21318 * partmap/gpt.c: Likewise.
21319 * partmap/pc.c: Likewise.
21320 * partmap/sun.c: Likewise.
21321 * term/gfxterm.c: Likewise.
21322 * term/terminfo.c: Likewise.
21323 * term/efi/console.c: Likewise.
21324 * term/i386/pc/console.c: Likewise.
21325 * term/i386/pc/serial.c: Likewise.
21326 * term/i386/pc/vesafb.c: Likewise.
21327 * term/i386/pc/vga.c: Likewise.
21328 * term/ieee1275/ofconsole.c: Likewise.
21329 * util/biosdisk.c: Likewise.
21330 * util/console.c: Likewise.
21331 * util/genmoddep.c: Likewise.
21332 * util/getroot.c: Likewise.
21333 * util/grub-emu.c: Likewise.
21334 * util/grub-mkdevicemap.c: Likewise.
21335 * util/grub-probe.c: Likewise.
21336 * util/lvm.c: Likewise.
21337 * util/misc.c: Likewise.
21338 * util/raid.c: Likewise.
21339 * util/resolve.c: Likewise.
21340 * util/update-grub.in: Likewise.
21341 * util/update-grub_lib.in: Likewise.
21342 * util/grub.d/00_header.in: Likewise.
21343 * util/grub.d/10_hurd.in: Likewise.
21344 * util/grub.d/10_linux.in: Likewise.
21345 * util/i386/efi/grub-install.in: Likewise.
21346 * util/i386/efi/grub-mkimage.c: Likewise.
21347 * util/i386/pc/grub-install.in: Likewise.
21348 * util/i386/pc/grub-mkimage.c: Likewise.
21349 * util/i386/pc/grub-mkrescue.in: Likewise.
21350 * util/i386/pc/grub-setup.c: Likewise.
21351 * util/i386/pc/misc.c: Likewise.
21352 * util/powerpc/ieee1275/grub-install.in: Likewise.
21353 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
21354 * util/powerpc/ieee1275/misc.c: Likewise.
21355 * video/bitmap.c: Likewise.
21356 * video/video.c: Likewise.
21357 * video/i386/pc/vbe.c: Likewise.
21358 * video/i386/pc/vbeblit.c: Likewise.
21359 * video/i386/pc/vbefill.c: Likewise.
21360 * video/i386/pc/vbeutil.c: Likewise.
21361 * video/readers/tga.c: Likewise.
21362
21363 2007-07-02 Robert Millan <rmh@aybabtu.com>
21364
21365 * conf/i386-efi.rmk: Replace obsolete reference to
21366 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
21367 with util/getroot.c.
21368 * conf/powerpc-ieee1275.rmk: Likewise.
21369 * conf/sparc64-ieee1275.rmk: Likewise.
21370
21371 * util/grub-emu.c (main): Fix unchecked pointer handling.
21372
21373 2007-07-02 Robert Millan <rmh@aybabtu.com>
21374
21375 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
21376 invocation to fail, in order to support partition-less media.
21377
21378 * util/i386/pc/grub-install.in: Likewise.
21379
21380 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
21381 which fs or partmap modules are needed (akin to its sister scripts).
21382
21383 Also use grub-probe to get rid of unportable /proc/mounts check.
21384
21385 Print the same informational message that the other scripts do, before
21386 exiting.
21387
21388 2007-06-23 Robert Millan <rmh@aybabtu.com>
21389
21390 * util/update-grub_lib.in (font_path): New function. Determine whether
21391 a font file can be found and, if so, echo the GRUB path to it.
21392
21393 * util/update-grub.in: Handle multiple terminals depending on user
21394 input, platform availability and font file presence. Propagate
21395 variables of our findings to /etc/grub.d/ children.
21396
21397 * util/grub.d/00_header.in: Handle multiple terminals, based on
21398 environment setup by update-grub.
21399
21400 2007-06-23 Robert Millan <rmh@aybabtu.com>
21401
21402 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
21403
21404 2007-06-21 Robert Millan <rmh@aybabtu.com>
21405
21406 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
21407 indicate end of data section in kernel image.
21408 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
21409 GRUB_KERNEL_MACHINE_DATA_END.
21410
21411 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
21412 space for it.
21413 * kern/i386/efi/startup.S: Likewise.
21414
21415 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
21416 during image generation. Implement --prefix option to override this
21417 patch.
21418 * util/i386/efi/grub-mkimage.c: Likewise.
21419
21420 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
21421 code to make path relative to its root into a separate function.
21422
21423 * util/i386/pc/grub-install.in: Use newly provided
21424 make_system_path_relative_to_its_root() to convert ${grubdir}, then
21425 pass the result to grub-install --prefix.
21426
21427 2007-06-13 Robert Millan <rmh@aybabtu.com>
21428
21429 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
21430 DEFAULT_DEVICE_MAP.
21431 * util/grub-emu.c: Use above definitions from misc.h instead of
21432 defining them.
21433 * util/grub-mkdevicemap.c: Likewise.
21434 * util/i386/pc/grub-setup.c: Likewise.
21435 * util/grub-probe.c: Likewise.
21436 (probe): Abort with grub_util_error() when either
21437 grub_guess_root_device or grub_util_get_grub_dev fails.
21438
21439 2007-06-12 Robert Millan <rmh@aybabtu.com>
21440
21441 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
21442 "pager" assignment.
21443 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
21444 "pcdata".
21445 * util/grub-probe.c (probe): Likewise for "drive_name".
21446
21447 2007-06-11 Robert Millan <rmh@aybabtu.com>
21448
21449 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
21450 not just the cdrom one.
21451
21452 2007-06-11 Robert Millan <rmh@aybabtu.com>
21453
21454 * util/i386/pc/grub-mkrescue.in: Add "set -e".
21455 Add --pkglibdir=DIR option to override pkglibdir.
21456 Mention --image-type=TYPE in help output.
21457 Fix --grub-mkimage (it was a no-op).
21458 Abort gracefully when no parameter is given.
21459
21460 2007-06-11 Robert Millan <rmh@aybabtu.com>
21461
21462 * util/i386/pc/grub-mkrescue.in: New file.
21463 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
21464 * Makefile.in: Handle bin_SCRIPTS.
21465
21466 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
21467
21468 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
21469 list of video modes.
21470
21471 2007-06-06 Robert Millan <rmh@aybabtu.com>
21472
21473 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
21474 file doesn't exist, or if it is in a filesystem grub can't read.
21475
21476 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
21477 not abort if GRUB_DRIVE could not be defined. Rearrange generated
21478 header comment to fit in 80 columns when the variables are resolved.
21479
21480 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
21481 could be identified by update-grub. Remove redundant check for
21482 unifont.pff existence (since convert_system_path_to_grub_path now
21483 handles that).
21484
21485 2007-06-04 Robert Millan <rmh@aybabtu.com>
21486
21487 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
21488
21489 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
21490
21491 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
21492
21493 2007-06-04 Robert Millan <rmh@aybabtu.com>
21494
21495 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
21496
21497 * include/grub/partition.h: Declare grub_apple_partition_map_init and
21498 grub_apple_partition_map_fini.
21499
21500 * util/biosdisk.c
21501 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
21502 to access >2 TiB disks).
21503
21504 Print disk->total_sectors with %llu instead of %lu, since this
21505 variable is always 64-bit (prevents wrong disk size from being displayed
21506 on either >2 TiB disk or big-endian CPU).
21507
21508 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
21509 into a generic case that supports all (sane) partition maps.
21510
21511 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
21512 breaks big-endian.
21513
21514 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
21515 and grub_apple_partition_map_fini() after that.
21516
21517 2007-06-01 Robert Millan <rmh@aybabtu.com>
21518
21519 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
21520
21521 * util/grub.d/00_header.in: Only enable gfxterm when
21522 convert_system_path_to_grub_path() succeeds.
21523
21524 2007-05-20 Robert Millan <rmh@aybabtu.com>
21525
21526 * util/update-grub_lib.in: New file.
21527 * DISTLIST: Add update-grub_lib.in.
21528 * conf/common.rmk: Generate update-grub_lib and install it in
21529 $(lib_DATA).
21530 * Makefile.in: Add install routine for $(lib_DATA).
21531
21532 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
21533 function provided by update-grub_lib to support arbitrary paths of
21534 unifont.pff.
21535 * util/update-grub.in: Use convert_system_path_to_grub_path() to
21536 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
21537
21538 2007-05-19 Robert Millan <rmh@aybabtu.com>
21539
21540 * commands/i386/cpuid.c: New module.
21541 * DISTLIST: Add it.
21542 * conf/i386-efi.rmk: Enable cpuid.mod.
21543 * conf/i386-pc.rmk: Likewise.
21544
21545 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
21546
21547 * kern/disk.c (grub_disk_read): Check return value of
21548 grub_realloc().
21549
21550 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
21551
21552 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
21553 arrays.
21554 * disk/raid.c (grub_raid_open): Likewise.
21555
21556 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
21557
21558 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
21559 stack instead of on the heap.
21560
21561 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
21562 before doing a read on it.
21563
21564 * configure.ac: Only use -fno-stack-protector for the target
21565 environment.
21566
21567 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
21568
21569 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
21570 __attribute_ ((unused)) to mode_type argument.
21571
21572 * util/getroot.c (grub_guess_root_device): Fix #endif.
21573
21574 * kern/misc.c (memcmp): Fix prototype.
21575
21576 * include/grub/partition.h [GRUB_UTIL]
21577 (grub_gpt_partition_map_init): Add prototype.
21578 (grub_gpt_partition_map_fini): Likewise.
21579
21580 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
21581 at the right place.
21582
21583 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
21584 (grub_fat_read_data): Likewise.
21585 (grub_fat_find_dir): Likewise.
21586
21587 * font/manager.c (find_glyph): Make table a const.
21588 (grub_font_get_glyph): Remove bitmap from if statement.
21589
21590 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
21591
21592 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
21593 code, first search for device in /dev/mapper, then in /dev.
21594 (grub_util_get_grub_dev): New function.
21595 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
21596 prototype.
21597 * util/grub-probe.c (probe): Remove check for RAID, call
21598 grub_util_get_grub_dev() instead of
21599 grub_util_biosdisk_get_grub_dev().
21600 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
21601 grub_util_biosdisk_get_grub_dev().
21602 * util/i386/pc/grub-setup.c (main): Likewise.
21603
21604 2007-05-16 Robert Millan <rmh@aybabtu.com>
21605
21606 * DISTLIST: Update for the latest changes.
21607 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
21608 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
21609 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
21610 grub/util/biosdisk.h.
21611 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
21612 grub/util/biosdisk.h.
21613
21614 2007-05-16 Robert Millan <rmh@aybabtu.com>
21615
21616 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
21617
21618 2007-05-16 Robert Millan <rmh@aybabtu.com>
21619
21620 * util/i386/efi/grub-install.in: New.
21621 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
21622 newly added grub-install.
21623 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
21624 include.
21625 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
21626 grub/util/biosdisk.h.
21627 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
21628 grub/util/biosdisk.h.
21629
21630 2007-05-16 Robert Millan <rmh@aybabtu.com>
21631
21632 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
21633 * include/grub/util/biosdisk.h: ... here.
21634 * util/i386/pc/biosdisk.c: Moved to ...
21635 * util/biosdisk.c: ... here.
21636 * util/i386/pc/getroot.c: Moved to ...
21637 * util/getroot.c: ... here.
21638 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
21639 * util/grub-mkdevicemap.c: ... here.
21640 * util/i386/pc/grub-probe.c: Moved to ...
21641 * util/grub-probe.c: ... here.
21642
21643 2007-05-15 Robert Millan <rmh@aybabtu.com>
21644
21645 * util/update-grub.in: Remove duplicated line in grub.cfg header
21646 message.
21647
21648 2007-05-13 Robert Millan <rmh@aybabtu.com>
21649
21650 * util/update-grub.in: Fix a few assumptions about the devices holding
21651 /, /boot and /boot/grub being the same.
21652 * util/grub.d/00_header.in: Likewise.
21653 * util/grub.d/10_hurd.in: Likewise.
21654 * util/grub.d/10_linux.in: Likewise.
21655
21656 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
21657 patterns. Use that to define the `.old' suffix as older than `'.
21658
21659 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
21660
21661 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
21662 the grub.cfg header message.
21663
21664 2007-05-11 Robert Millan <rmh@aybabtu.com>
21665
21666 * util/update-grub.in: Create device.map if it doesn't already exist,
21667 before attempting to run grub-probe.
21668 Check for grub-probe and grub-mkdevicemap with the same code
21669 grub-install is using.
21670 Remove test mode.
21671
21672 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
21673
21674 * Makefile.in: Add the datarootdir autoconf variable.
21675
21676 2007-05-09 Robert Millan <rmh@aybabtu.com>
21677
21678 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
21679 fail gracefully if dev->disk->partition == NULL.
21680
21681 2007-05-07 Robert Millan <rmh@aybabtu.com>
21682
21683 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
21684 determine partition map module.
21685 * util/i386/pc/grub-install.in: Use this feature to decide which
21686 partition module to load, instead of hardcoding pc and gpt.
21687
21688 2007-05-07 Robert Millan <rmh@aybabtu.com>
21689
21690 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
21691 source directory differs from build directory.
21692
21693 2007-05-05 Robert Millan <rmh@aybabtu.com>
21694
21695 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
21696 initialisation.
21697
21698 2007-05-05 Robert Millan <rmh@aybabtu.com>
21699
21700 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
21701
21702 2007-05-05 Robert Millan <rmh@aybabtu.com>
21703
21704 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
21705 command-line arguments via ${GRUB_CMDLINE_LINUX}.
21706
21707 2007-05-05 Robert Millan <rmh@aybabtu.com>
21708
21709 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
21710 (grub_probe_SOURCES): Likewise.
21711 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
21712 GPT and initialize dos_part and bsd_part accordingly.
21713 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
21714 install_bsd_part.
21715 (main): Activate gpt module for use during partition identification,
21716 and deactivate it afterwards.
21717 * util/i386/pc/grub-install.in: Add gpt module to core.img.
21718 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
21719 partition identification, and deactivate it afterwards.
21720
21721 2007-05-05 Robert Millan <rmh@aybabtu.com>
21722
21723 * term/i386/pc/console.c (grub_console_fini): Call
21724 grub_term_set_current() before grub_term_unregister().
21725
21726 2007-05-04 Robert Millan <rmh@aybabtu.com>
21727
21728 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
21729 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
21730 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
21731 and update-grub_DATA.
21732 * conf/common.rmk: Build and install update-grub components.
21733 * conf/common.mk: Regenerate.
21734 * util/update-grub.in: New. Core of update-grub.
21735 * util/grub.d/00_header.in: New. Generates grub.cfg header.
21736 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
21737 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
21738 * util/grub.d/README: New. Document grub.d directory layout.
21739
21740 2007-05-01 Robert Millan <rmh@aybabtu.com>
21741
21742 * util/grub-emu.c: Move initialization functions
21743 grub_util_biosdisk_init() and grub_init_all() before
21744 grub_util_biosdisk_get_grub_dev(), which relies on them.
21745
21746 2007-04-19 Robert Millan <rmh@aybabtu.com>
21747
21748 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
21749 it is used later.
21750
21751 2007-04-18 Jerone Young <jerone@gmail.com>
21752
21753 * kernel/elf.c: Add missing parenthesis for conditional statement
21754 stanza.
21755
21756 2007-04-10 Jerone Young <jerone@gmail.com>
21757
21758 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
21759 continue on and look for device node with real device name.
21760
21761 2007-04-10 Jerone Young <jerone@gmail.com>
21762
21763 * configure.ac: Add argument for autoconf to use transformation
21764 ability.
21765 * Makefile.in: Add autoconf package transformation code.
21766 * util/i386/pc/grub-install.in: Likewise.
21767 * util/powerpc/ieee1275/grub-install.in: Likewise.
21768
21769 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
21770
21771 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
21772 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
21773 (EXT2_REVISION): Likewise.
21774 (EXT2_INODE_SIZE): Likewise.
21775 (struct grub_ext2_block_group): Added a missing member
21776 "used_dirs".
21777 (grub_ext2_read_inode): Divide by the inode size in a superblock
21778 instead of 128 to obtain INODES_PER_BLOCK.
21779 Use the macro EXT2_INODE_SIZE instead of directly using
21780 SBLOCK->INODE_SIZE.
21781
21782 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
21783
21784 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
21785 superblock instead of the structure size to compute an
21786 offset. This fixes the problem that GRUB could not read a
21787 filesystem when inode size is different from 128-byte.
21788
21789 2007-03-05 Marco Gerards <marco@gnu.org>
21790
21791 * normal/main.c (read_config_file): When "menu" is not set, create
21792 an initial context.
21793
21794 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21795
21796 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
21797 (HEAP_LIMIT): New macro.
21798 (grub_claim_heap): Claim memory up to `heaplimit'.
21799
21800 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21801
21802 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
21803 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
21804 (_start): Likewise.
21805 (grub_arch_modules_addr): Return address after `_end'.
21806 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
21807 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
21808 (add_segments): Calculate `_end' from phdr size and location.
21809 (ALIGN_UP): Moved to ...
21810 * include/grub/misc.h: here.
21811 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
21812 New macro.
21813 (GRUB_IEEE1275_MODULE_BASE): Removed.
21814
21815 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21816
21817 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
21818 loop boundary.
21819
21820 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21821
21822 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
21823 All users updated.
21824 (grub_elf64_load_hook_t): Likewise.
21825 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
21826 debug output.
21827
21828 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21829
21830 * kern/mm.c: Update copyright.
21831 (grub_mm_debug): Correct syntax error.
21832 (grub_mm_dump_free): New function.
21833 (grub_debug_free): Call `grub_free'.
21834 * include/grub/mm.h: Update copyright.
21835 (grub_mm_dump_free): Add declaration.
21836
21837 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21838
21839 * include/grub/ieee1275/ieee1275.h: Update copyright.
21840 * kern/powerpc/ieee1275/init.c: Likewise.
21841 * kern/powerpc/ieee1275/openfw.c: Likewise.
21842
21843 * loader/powerpc/ieee1275/linux.c: Likewise.
21844 * include/grub/elfload.h: Likewise.
21845 * kern/elf.c: Likewise.
21846 (grub_elf32_load): Pass `base' and `size' parameters. Update all
21847 callers.
21848 (grub_elf64_load): Likewise.
21849 (grub_elf32_load_segment): Move to a nested function.
21850 (grub_elf64_load_segment): Likewise.
21851
21852 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21853
21854 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
21855 prototype.
21856 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
21857 (grub_heap_len): Likewise.
21858 (HEAP_SIZE): New macro.
21859 (grub_claim_heap): New function.
21860 (grub_machine_init): Don't claim heap directly. Call
21861 `grub_claim_heap'.
21862 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
21863 (grub_available_iterate): New function.
21864
21865 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
21866
21867 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
21868 * configure.ac: Use it for testing the HOST and TARGET compilers.
21869
21870 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
21871
21872 * Makefile.in (enable_grub_emu): New variable.
21873 * configure.ac (--enable-grub-emu): New option.
21874 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
21875 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
21876 * conf/i386-pc.rmk: Likewise.
21877 * conf/powerpc-ieee1275.rmk: Likewise.
21878 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
21879
21880 2006-12-12 Marco Gerards <marco@gnu.org>
21881
21882 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
21883
21884 * kern/env.c (grub_env_unset): Don't free the member `value' when
21885 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
21886 pointer.
21887
21888 * normal/main.c (current_menu): Removed.
21889 (free_menu): Unset the `menu' environment variable.
21890 (grub_normal_menu_addentry): Make use of the environment variable
21891 `menu', instead of using the global `current_menu'. Allocate
21892 memory for the sourcecode of this entry.
21893 (read_config_file): New argument `nested', changed all callers.
21894 Only in the case of a new context, initialize a new menu. Set the
21895 `menu' environment variable.
21896 (grub_normal_execute): Don't set and unset the environment
21897 variable `menu' here anymore. Only free the menu when leaving the
21898 context.
21899
21900 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
21901 leak.
21902
21903 2006-12-11 Marco Gerards <marco@gnu.org>
21904
21905 * normal/menu_entry.c (run): Fix off by one bug so the last line
21906 is executed. Move the loader check to outside the loop.
21907
21908 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
21909
21910 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
21911
21912 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
21913
21914 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
21915 the number of sectors. Reported by Andrey Shuvikov
21916 <mr_hyro@yahoo.com>.
21917
21918 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
21919
21920 * kern/disk.c (grub_disk_read): When there is a read error, always
21921 try to read only the necessary data.
21922
21923 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
21924 disk/raid.c.
21925 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
21926 prototype.
21927 [GRUB_UTIL] (grub_raid_fini): Likewise.
21928 [GRUB_UTIL] (grub_lvm_init): Likewise.
21929 [GRUB_UTIL] (grub_lvm_fini): Likewise.
21930 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
21931 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
21932 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
21933 and grub_raid_fini().
21934
21935 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
21936
21937 * include/grub/types.h (__unused): Rename to UNUSED.
21938 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
21939 (grub_elf64_size): Likewise.
21940
21941 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21942
21943 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
21944 grub_error_push and grub_error_pop in the error-handling path.
21945 (grub_elf32_load_segment): Only call grub_file_read with non-zero
21946 length.
21947
21948 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21949
21950 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
21951 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21952 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21953 (kernel_elf_SOURCES): Likewise.
21954 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
21955 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
21956 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21957 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21958 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
21959 (elf_mod_SOURCES): New variable.
21960 (elf_mod_CFLAGS): Likewise.
21961 (elf_mod_LDFLAGS): Likewise.
21962 * include/grub/types.h (__unused): New macro.
21963 * include/grub/elfload.h: New file.
21964 * kern/elf.c: Likewise.
21965 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
21966 (ELF32_LOADMASK): New macro.
21967 (ELF64_LOADMASK): Likewise.
21968 (vmlinux): Removed.
21969 (grub_linux_load32): New function.
21970 (grub_linux_load64): Likewise.
21971 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
21972 Use grub_elf_t instead of grub_file_t.
21973
21974 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
21975
21976 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
21977 `catch_result' to struct set_color_args.
21978
21979 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
21980
21981 * normal/menu.c: Include grub/script.h.
21982 * normal/menu_entry.c: Likewise.
21983 * include/grub/normal.h: Do not include grub/script.h.
21984
21985 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21986
21987 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
21988
21989 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21990
21991 * kern/disk.c (grub_disk_open): Print debug messages when opening a
21992 disk.
21993 (grub_disk_close): Print debug messages when closing a disk.
21994 (grub_disk_read): Print debug messages when disk read fails.
21995 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
21996 filesystem type.
21997 * kern/partition.c: Include misc.h.
21998 (grub_partition_iterate): Print debug messages when detecting
21999 partition type.
22000
22001 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
22002
22003 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
22004 is negative.
22005 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
22006
22007 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
22008
22009 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
22010 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
22011
22012 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
22013
22014 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
22015 instead of sizeof(lv). Patch by Michael Guntsche.
22016
22017 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
22018
22019 * disk/lvm.c: Rename VGS to VG_LIST.
22020 (grub_lvm_iterate): Change VGS->LV to VG-LV.
22021 (grub_lvm_open): Likewise.
22022 Thanks to Michael Guntsche for finding this bug.
22023
22024 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
22025
22026 * configure.ac (AC_INIT): Bumped to 1.95.
22027
22028 2006-10-14 Robert Millan <rmh@aybabtu.com>
22029
22030 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
22031 with "/dev/.static/dev/md".
22032
22033 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
22034
22035 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
22036 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
22037 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
22038 DRIVE_NAME are always freed.
22039
22040 * util/i386/pc/biosdisk.c (make_device_name): Add one into
22041 DOS_PART, as a DOS partition is counted from one instead of zero
22042 now. Reported by Robert Millan.
22043
22044 2006-10-14 Robert Millan <rmh@aybabtu.com>
22045
22046 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
22047 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
22048 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
22049 string returned by grub_guess_root_device.
22050 * util/i386/pc/grub-setup.c: Likewise.
22051 * util/i386/pc/grub-probefs.c: Likewise.
22052
22053 * util/i386/pc/grub-probefs.c: Rename to ...
22054 * util/i386/pc/grub-probe.c: ... this.
22055 * DISTLIST: Remove grub-probefs, add grub-probe.
22056 * conf/i386-efi.rmk: Likewise.
22057 * conf/i386-pc.rmk: Likewise.
22058 * util/i386/pc/grub-install.in: Likewise.
22059
22060 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
22061 choose which information we want to print.
22062
22063 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
22064
22065 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
22066 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
22067 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
22068 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
22069 video/readers/tga.c and video/i386/pc/vbeutil.c.
22070
22071 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
22072
22073 Added support for RAID and LVM.
22074
22075 * disk/lvm.c: New file.
22076 * disk/raid.c: Likewise.
22077 * include/grub/lvm.h: Likewise.
22078 * include/grub/raid.h: Likewise.
22079 * include/grub/util/lvm.h: Likewise.
22080 * include/grub/util/raid.h: Likewise.
22081 * util/lvm.c: Likewise.
22082 * util/raid.c: Likewise.
22083
22084 * include/grub/disk.h (grub_disk_dev_id): Add
22085 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
22086 (grub_disk_get_size): New prototype.
22087 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
22088 returns a partition.
22089 (grub_disk_get_size): New function.
22090
22091 * kern/i386/pc/init.c (make_install_device): Copy the prefix
22092 verbatim if grub_install_dos_part is -2.
22093
22094 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
22095 and LVM devices.
22096
22097 * util/i386/pc/grub-setup.c (setup): New argument
22098 MUST_EMBED. Force embedding of GRUB when the argument is
22099 true. Close FILE before returning.
22100 (main): Add support for RAID and LVM.
22101
22102 * conf/common.rmk: Add RAID and LVM modules.
22103 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
22104 util/lvm.c.
22105 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
22106
22107 * kern/misc.c (grub_strstr): New function.
22108 * include/grub/misc.h (grub_strstr): New prototype.
22109
22110 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
22111
22112 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
22113
22114 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
22115
22116 * kern/misc.c (grub_strtoull): Guess the base only if not
22117 specified.
22118
22119 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
22120
22121 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
22122 PowerMac support.
22123
22124 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
22125
22126 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
22127
22128 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
22129 Remove `flags' argument. All callers changed.
22130 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
22131 (IEEE1275_IHANDLE_INVALID): New variable.
22132 (IEEE1275_CELL_INVALID): New variable.
22133 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
22134 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
22135 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
22136 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
22137 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
22138 codes from Open Firmware. All callers updated.
22139 (grub_ieee1275_next_property): Directly return Open Firmware return
22140 code.
22141 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
22142 Standardize error checking from `grub_ieee1275_get_property'.
22143 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
22144 `devalias' to `aliases'. Correct comments. Consolidate error paths.
22145
22146 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
22147
22148 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
22149 `instance_to_package_args' to `instance_to_path_args'.
22150
22151 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
22152 `grub_ieee1275_chosen'.
22153
22154 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
22155 `grub_ieee1275_interpret'.
22156
22157 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
22158
22159 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
22160
22161 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
22162
22163 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
22164 (__cmpdi): Likewise.
22165
22166 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
22167 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
22168 `grub_ssize_t'.
22169
22170 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
22171
22172 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
22173 to type `grub_ssize_t'.
22174 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
22175
22176 2006-09-22 Marco Gerards <marco@gnu.org>
22177
22178 * normal/script.c (grub_script_create_cmdmenu): Skip leading
22179 newlines.
22180
22181 2006-09-22 Marco Gerards <marco@gnu.org>
22182
22183 * commands/echo.c: New file.
22184
22185 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
22186
22187 * conf/common.rmk (echo_mod_SOURCES): New variable.
22188 (echo_mod_CFLAGS): Likewise.
22189 (echo_mod_LDFLAGS): Likewise.
22190
22191 2006-09-22 Marco Gerards <marco@gnu.org>
22192
22193 * normal/main.c (get_line): Malloc memory instead of using
22194 preallocated memory. Removed the arguments `cmdline' and
22195 `max_len'. Updated all callers.
22196
22197 2006-09-22 Marco Gerards <marco@gnu.org>
22198
22199 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
22200 (normal_mod_DEPENDENCIES): Likewise.
22201
22202 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
22203 (normal_mod_DEPENDENCIES): Likewise.
22204
22205 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
22206
22207 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
22208
22209 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
22210 programs.
22211 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
22212 (normal_mod_DEPENDENCIES): Likewise.
22213 * conf/i386-pc.mk: Regenerate.
22214 * conf/i386-efi.mk: Likewise
22215 * conf/common.mk: Likewise.
22216 * conf/powerpc-ieee1275.mk: Likewise.
22217 * conf/sparc64-ieee1275.mk: Likewise.
22218
22219 2006-09-22 Robert Millan <rmh@aybabtu.com>
22220
22221 Sync with i386 version.
22222 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
22223 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
22224
22225 2006-09-21 Robert Millan <rmh@aybabtu.com>
22226
22227 Import from GRUB Legacy (lib/device.c):
22228 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
22229 (init_device_map) [__linux__]: Add support for I2O devices.
22230
22231 2006-09-14 Marco Gerards <marco@gnu.org>
22232
22233 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
22234 `-melf_i386'.
22235
22236 2006-09-14 Robert Millan <rmh@aybabtu.com>
22237
22238 * util/i386/pc/grub-install.in: Skip menu.lst when removing
22239 /boot/grub/*.lst.
22240
22241 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
22242
22243 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
22244 before adding it to device.map.
22245
22246 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
22247
22248 * genmk.rb: Let GCC generate dependencies the first time it
22249 compiles a file; using the -MD option.
22250 * conf/common.mk: Regenerate.
22251 * conf/i386-pc.mk: Likewise.
22252 * conf/i386-efi.mk: Likewise.
22253 * conf/powerpc-ieee1275.mk: Likewise.
22254 * conf/sparc64-ieee1275.mk: Likewise.
22255
22256 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
22257
22258 Move the prototypes of grub_setjmp and grub_longjmp to
22259 cpu/setjmp.h, so that each architecture may specify different
22260 attributes.
22261
22262 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
22263 (grub_longjmp): Likewise.
22264 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
22265 (grub_longjmp): Likewise.
22266 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
22267 (grub_longjmp): Likewise.
22268
22269 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
22270 [!GRUB_UTIL] (grub_longjmp): Removed.
22271
22272 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
22273
22274 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
22275 "color!" method does not return any value.
22276
22277 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
22278
22279 * include/grub/bitmap.h: New file.
22280
22281 * include/grub/i386/pc/vbeutil.h: Likewise.
22282
22283 * video/bitmap.c: Likewise.
22284
22285 * video/readers/tga.c: Likewise.
22286
22287 * video/i386/pc/vbeutil.c: Likewise.
22288
22289 * commands/videotest.c: Code cleanup and updated to reflect to new
22290 video API.
22291
22292 * term/gfxterm.c: Likewise.
22293
22294 * video/video.c: Likewise.
22295
22296 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
22297 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
22298 (bitmap_mod_SOURCES): New entry.
22299 (bitmap_mod_CFLAGS): Likewise.
22300 (bitmap_mod_LDFLAGS): Likewise.
22301 (tga_mod_SOURCES): Likewise.
22302 (tga_mod_CFLAGS): Likewise.
22303 (tga_mod_LDFLAGS): Likewise.
22304
22305 * include/grub/video.h (grub_video_blit_operators): New enum type.
22306 (grub_video_render_target): Changed as forward declaration and moved
22307 actual definition to be video driver specific.
22308 (grub_video_adapter.blit_bitmap): Added blitting operator.
22309 (grub_video_adapter.blit_render_target): Likewise.
22310 (grub_video_blit_bitmap): Likewise.
22311 (grub_video_blit_render_target): Likewise.
22312
22313 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
22314 driver specific render target definition.
22315 (grub_video_vbe_map_rgba): Added driver internal helper.
22316 (grub_video_vbe_unmap_color): Updated to use
22317 grub_video_i386_vbeblit_info.
22318 (grub_video_vbe_get_video_ptr): Likewise.
22319
22320 * include/grub/i386/pc/vbeblit.h
22321 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
22322 grub_video_i386_vbeblit_info.
22323 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
22324 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
22325 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
22326 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
22327 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
22328 (grub_video_i386_vbeblit_index_index): Likewise.
22329 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
22330 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
22331 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
22332 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
22333 operator.
22334 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
22335 operator.
22336
22337 * video/i386/pc/vbeblit.c: Updated to reflect changes on
22338 include/grub/i386/pc/vbeblit.h.
22339
22340 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
22341 Updated to use grub_video_i386_vbeblit_info.
22342 (grub_video_i386_vbefill_R8G8B8): Likewise.
22343 (grub_video_i386_vbefill_index): Likewise.
22344 (grub_video_i386_vbefill): Added generic filler.
22345
22346 * video/i386/pc/vbefill.c: Updated to reflect changes on
22347 include/grub/i386/pc/vbefill.h.
22348
22349 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
22350 grub_video_i386_vbeblit_info.
22351 (grub_video_vbe_unmap_color): Likewise.
22352 (grub_video_vbe_blit_glyph): Likewise.
22353 (grub_video_vbe_scroll): Likewise.
22354 (grub_video_vbe_draw_pixel): Removed function.
22355 (grub_video_vbe_get_pixel): Likewise.
22356 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
22357 updated code to use it.
22358 (common_blitter): Added common blitter for render target and bitmap.
22359 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
22360 (grub_video_vbe_blit_render_target): Likewise.
22361
22362 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
22363
22364 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
22365 is in text mode if there is no console control protocol instance
22366 available.
22367
22368 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
22369
22370 * include/grub/video.h: Code cleanup.
22371
22372 * include/grub/i386/pc/vbe.h: Likewise.
22373
22374 * video/i386/pc/vbe.c: Likewise.
22375
22376 * video/i386/pc/vbeblit.c: Likewise.
22377
22378 * video/i386/pc/vbefill.c: Likewise.
22379
22380 * video/video.c: Likewise. Also added more comments.
22381
22382 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
22383
22384 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
22385 (struct grub_biosdisk_dap): Likewise.
22386
22387 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
22388 linkage settings for all functions.
22389
22390 2006-07-12 Marco Gerards <marco@gnu.org>
22391
22392 * configure.ac (--enable-mm-debug): Fix typo.
22393
22394 * genkernsyms.sh.in: Use proper quoting for `CC'.
22395
22396 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
22397
22398 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
22399 (normal_mod_ASFLAGS): Remove "-m32".
22400
22401 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
22402
22403 * util/misc.c: Include config.h.
22404 [!HAVE_MEMALIGN]: Do not include malloc.h.
22405 (grub_memalign): Use posix_memalign, if present. Then, use
22406 memalign, if present. Otherwise, emit an error.
22407
22408 * util/grub-emu.c: Do not include malloc.h.
22409
22410 * include/grub/util/misc.h: Include unistd.h. This is required for
22411 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
22412 D. Eades III <hde@foobar-qux.org>.
22413
22414 * configure.ac (AC_GNU_SOURCE): Added.
22415 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
22416 type.
22417
22418 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
22419
22420 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
22421 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
22422
22423 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
22424
22425 * include/grub/types.h (grub_host_addr_t): Rename to
22426 grub_target_addr_t.
22427 (grub_host_off_t): Rename to grub_target_off_t.
22428 (grub_host_size_t): Rename to grub_target_size_t.
22429 (grub_host_ssize_t): Rename to grub_target_ssize_t.
22430 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
22431
22432 * include/grub/kernel.h (struct grub_module_header): Change type
22433 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
22434 (grub_module_info): Likewise.
22435
22436 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
22437
22438 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
22439 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
22440 Velazquez <jesus.velazquez@gmail.com>.
22441
22442 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
22443
22444 Count partitions from 1 instead of 0 in the string representation
22445 of partitions. Still use 0-based internally.
22446
22447 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
22448 (sun_partition_map_iterate): Use grub_partition_t instead of
22449 struct grub_partition *. Cast DESC->START_CYLINDER to
22450 grub_uint64_t after converting the endian.
22451 (sun_partition_map_probe): Subtract 1 for PARTNUM.
22452 (sun_partition_map_get_name): Add 1 to P->INDEX.
22453
22454 * partmap/pc.c (grub_partition_parse): Subtract 1 for
22455 PCDATA->DOS_PART.
22456 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
22457
22458 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
22459 zero instead of one.
22460 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
22461 (gpt_partition_map_get_name): Add 1 into P->INDEX.
22462
22463 * partmap/apple.c (apple_partition_map_iterate): Change the type
22464 of POS to unsigned.
22465 (apple_partition_map_probe): Subtract 1 for PARTNUM.
22466 (apple_partition_map_get_name): Add 1 into P->INDEX.
22467
22468 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
22469 of POS to unsigned.
22470 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
22471 calculate the offset of a partition.
22472 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
22473 (amiga_partition_map_get_name): Add 1 into P->INDEX.
22474
22475 * partmap/acorn.c (acorn_partition_map_find): Change the type of
22476 SECTOR to grub_disk_addr_t.
22477 (acorn_partition_map_iterate): Likewise.
22478 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
22479 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
22480 top.
22481 (acorn_partition_map_get_name): Add 1 into P->INDEX.
22482
22483 * kern/i386/pc/init.c (make_install_device): Add 1 into
22484 GRUB_INSTALL_DOS_PART.
22485
22486 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
22487 conditional.
22488
22489 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22490
22491 Clean up the code to support 64-bit addressing in disks and
22492 files. This change is not enough for filesystems yet.
22493
22494 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
22495 type of "start" to grub_uint64_t.
22496 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
22497 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
22498 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
22499 convert addresses.
22500
22501 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
22502 to grub_disk_addr_t.
22503
22504 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
22505 string.
22506
22507 * partmap/pc.c (pc_partition_map_iterate): Likewise.
22508
22509 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
22510 to char *.
22511
22512 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
22513
22514 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
22515
22516 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
22517
22518 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
22519 to grub_off_t, to detect an error from grub_file_seek.
22520 (grub_multiboot_load_elf32): Likewise.
22521
22522 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
22523 maximum unsigned long value when an overflow is detected.
22524 (grub_strtoull): New function.
22525 (grub_divmod64): Likewise.
22526 (grub_lltoa): use grub_divmod64.
22527
22528 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
22529 grub_disk_addr_t.
22530 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
22531 the pointer to next character. Use grub_strtoull instead of
22532 grub_strtoul.
22533 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
22534 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
22535 respectively.
22536
22537 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
22538 return value is signed.
22539 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
22540 test if OFFSET is less than zero, as OFFSET is unsigned now.
22541
22542 * kern/disk.c (struct grub_disk_cache): Change the type of
22543 "sector" to grub_disk_addr_t.
22544 (grub_disk_cache_get_index): Change the type of SECTOR to
22545 grub_disk_addr_t. Calculate the hash with SECTOR casted to
22546 unsigned after shifting.
22547 (grub_disk_cache_invalidate): Change the type of SECTOR to
22548 grub_disk_addr_t.
22549 (grub_disk_cache_unlock): Likewise.
22550 (grub_disk_cache_store): Likewise.
22551 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
22552 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
22553 grub_disk_addr_t and grub_uint64_t, respectively.
22554 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
22555 body, as the value of OFFSET is tweaked by
22556 grub_disk_check_range. Change the types of START_SECTOR, LEN and
22557 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
22558 respectively.
22559 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
22560 body, as the value of OFFSET is tweaked by
22561 grub_disk_check_range. Change the types of LEN and N to
22562 grub_size_t.
22563
22564 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
22565 and "saved_offset" to grub_off_t.
22566 (test_header): Cast BUF to char *.
22567 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
22568 to char *.
22569 (grub_gzio_read): Change the types of OFFSET and SIZE to
22570 grub_off_t and grub_size_t, respectively.
22571
22572 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
22573 Removed.
22574 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
22575 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
22576 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
22577 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
22578 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
22579
22580 * include/grub/types.h (grub_off_t): Unconditionally set to
22581 grub_uint64_t.
22582 (grub_disk_addr_t): Changed to grub_uint64_t.
22583
22584 * include/grub/partition.h (struct grub_partition): Change the
22585 types of "start", "len" and "offset" to grub_disk_addr_t,
22586 grub_uint64_t and grub_disk_addr_t, respectively.
22587 (grub_partition_get_start): Return grub_disk_addr_t.
22588 (grub_partition_get_len): Return grub_uint64_t.
22589
22590 * include/grub/misc.h (grub_strtoull): New prototype.
22591 (grub_divmod64): Likewise.
22592
22593 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
22594 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
22595 grub_off_t, respectively.
22596 All callers and references changed.
22597
22598 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
22599 grub_size_t in "read".
22600 All callers and references changed.
22601
22602 * include/grub/file.h (struct grub_file): Change the types of
22603 "offset" and "size" to grub_off_t and grub_off_t,
22604 respectively. Change the type of SECTOR to grub_disk_addr_t in
22605 "read_hook".
22606 (grub_file_read): Change the type of LEN to grub_size_t.
22607 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
22608 grub_off_t.
22609 (grub_file_size): Return grub_off_t.
22610 (grub_file_tell): Likewise.
22611 All callers and references changed.
22612
22613 * include/grub/disk.h (struct grub_disk_dev): Change the types of
22614 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
22615 "write".
22616 (struct grub_disk): Change the type of "total_sectors" to
22617 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
22618 "read_hook".
22619 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
22620 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
22621 (grub_disk_write): Likewise.
22622 All callers and references changed.
22623
22624 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
22625 char * for grub_strncmp to silence gcc.
22626 (grub_iso9660_mount): Likewise.
22627 (grub_iso9660_mount): Likewise.
22628 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
22629 return statement.
22630 (grub_iso9660_iterate_dir): Likewise.
22631 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
22632
22633 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
22634 LEN to grub_disk_addr_t and grub_size_t, respectively.
22635
22636 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
22637
22638 * fs/jfs.c (grub_jfs_read_file): Likewise.
22639
22640 * fs/minix.c (grub_jfs_read_file): Likewise.
22641
22642 * fs/sfs.c (grub_jfs_read_file): Likewise.
22643
22644 * fs/ufs.c (grub_jfs_read_file): Likewise.
22645
22646 * fs/xfs.c (grub_jfs_read_file): Likewise.
22647
22648 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
22649 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
22650 respectively.
22651
22652 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
22653 BLKNR to -1 instead of returning GRUB_ERRNO.
22654 (grub_ext2_read_file): Change the types of SECTOR and
22655 LEN to grub_disk_addr_t and grub_size_t, respectively.
22656
22657 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
22658 LEN to grub_disk_addr_t and grub_size_t, respectively.
22659
22660 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
22661 grub_file_read.
22662
22663 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
22664 string. Do not cast SECTOR explicitly.
22665
22666 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
22667 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
22668 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
22669 grub_disk_addr_t and grub_size_t, respectively. If the sector is
22670 over 2TB and LBA mode is not supported, raise an error.
22671 (get_safe_sectors): New function.
22672 (grub_biosdisk_read): Use get_safe_sectors.
22673 (grub_biosdisk_write): Likewise.
22674
22675 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
22676 (grub_efidisk_write): Likewise.
22677
22678 * disk/loopback.c (delete_loopback): Cosmetic changes.
22679 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
22680 correctly.
22681 (grub_loopback_open): Likewise.
22682 (grub_loopback_read): Likewise. Also, change the type of POS to
22683 grub_off_t, and fix the usage of grub_memset.
22684
22685 * commands/i386/pc/play.c: Include grub/machine/time.h.
22686
22687 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
22688 print FILE->SIZE.
22689
22690 * commands/configfile.c: Include grub/env.h.
22691
22692 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
22693 GRUB_ERRNO directly instead. Change the type of POS to
22694 grub_off_t. Follow the coding standard.
22695
22696 * commands/blocklist.c: Include grub/partition.h.
22697 (grub_cmd_blocklist): Return an error if the underlying device is
22698 not a disk. Take the starting sector of a partition into account,
22699 if a partition is used.
22700
22701 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
22702 a length field.
22703 (lba_mode): Support 64-bit addresses.
22704 (chs_mode): Likewise.
22705 (copy_buffer): Adapted to the new offsets of a length field and a
22706 segment field.
22707 (blocklist_default_start): Allocate 64-bit space.
22708
22709 * boot/i386/pc/boot.S (force_lba): Removed.
22710 (boot_drive): Moved to under KERNEL_SECTOR.
22711 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
22712 space.
22713 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
22714 is useless.
22715 (lba_mode): Refactored to support a 64-bit address. More size
22716 optimization.
22717 (setup_sectors): Likewise.
22718
22719 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22720
22721 * DISTLIST: Added include/grub/i386/linux.h. Removed
22722 include/grub/i386/pc/linux.h
22723
22724 * configure.ac (AC_INIT): Bumped to 1.94.
22725
22726 * config.guess: Updated from gnulib.
22727 * config.sub: Likewise.
22728 * install-sh: Likewise.
22729 * mkinstalldirs: Likewise.
22730
22731 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22732
22733 * conf/common.rmk (grub_modules_init.lst): Depended on
22734 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
22735 MODSRCFILES.
22736
22737 * genmk.rb (PModule::rule): Reverted the previous change.
22738
22739 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22740
22741 * conf/common.rmk (grub_modules_init.lst): Depends on
22742 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
22743 that the target does not exist before producing.
22744 (grub_modules_init.h): Remove the target before generating.
22745 (grub_emu_init.c): Likewise.
22746
22747 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
22748
22749 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
22750
22751 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
22752 for the target-specific tests. Make sure that we also have the
22753 up-to-date target variables for those tests.
22754
22755 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22756
22757 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
22758 (PModule::rule): Likewise.
22759
22760 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22761
22762 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
22763 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
22764 target-specific flags should be prefixed.
22765 (PModule::rule): Likewise.
22766
22767 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
22768
22769 * configure.ac (CMP): Check if cmp is available explicitly.
22770
22771 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
22772
22773 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
22774 (target_cpu): New variable.
22775 (pkglibdir): Use target_cpu instead of host_cpu.
22776
22777 * util/i386/pc/grub-install.in (host_cpu): Removed.
22778 (target_cpu): New variable.
22779 (pkglibdir): Use target_cpu instead of host_cpu.
22780
22781 * util/genmoddep.c: Removed.
22782
22783 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
22784 instead of GRUB_HOST_SIZEOF_VOID_P.
22785 * kern/dl.c: Likewise.
22786
22787 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
22788 ...
22789 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22790 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22791 (GRUB_TARGET_SIZEOF_LONG): ... this.
22792 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22793 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22794 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22795 to ...
22796 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22797 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22798 (GRUB_TARGET_SIZEOF_LONG): ... this.
22799 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22800 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22801 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22802 to ...
22803 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22804 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22805 (GRUB_TARGET_SIZEOF_LONG): ... this.
22806 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22807 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22808
22809 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
22810 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
22811 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
22812 instead of GRUB_HOST_SIZEOF_LONG.
22813 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
22814 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
22815 GRUB_CPU_WORDS_BIGENDIAN.
22816 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
22817 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
22818 grub_host_ssize_t.
22819
22820 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
22821 (genmoddep_SOURCES): Likewise.
22822 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
22823 (genmoddep_SOURCES): Likewise.
22824 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
22825 (genmoddep_SOURCES): Likewise.
22826 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
22827 Likewise.
22828 (genmoddep_SOURCES): Likewise.
22829
22830 * genmoddep.awk: New file.
22831
22832 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
22833 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
22834 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
22835 (PModule::rule): Likewise.
22836 (Program::rule): Likewise.
22837 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
22838 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
22839 respectively.
22840
22841 * configure.ac: Rewritten intensively to use host and target
22842 instead of build and host, respectively.
22843
22844 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
22845 (host_cpu): Removed.
22846 (target_cpu): New variable.
22847 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
22848 (BUILD_CC): Removed.
22849 (BUILD_CFLAGS): Likewise.
22850 (BUILD_CPPFLAGS): Likewise.
22851 (TARGET_CC): New variable.
22852 (TARGET_CFLAGS): Likewise.
22853 (TARGET_CPPFLAGS): Likewise.
22854 (TARGET_LDFLAGS): Likewise.
22855 (AWK): Likewise.
22856 (include): Use target_cpu instead of host_cpu.
22857 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
22858
22859 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
22860
22861 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
22862
22863 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
22864 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
22865 field 'false' to 'exec_on_false'.
22866 (grub_script_create_cmdif): Renamed argument names to reflect above
22867 changes.
22868
22869 * normal/execute.c (grub_script_execute_cmdif): Likewise.
22870
22871 * normal/script.c (grub_script_create_cmdif): Likewise.
22872
22873 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
22874
22875 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
22876 top.
22877 (grub_hfsplus_btree_recptr): Likewise.
22878 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
22879 FILEBLOCK both to pass a block number and store next block
22880 number.
22881 (grub_hfsplus_read_block): Rewritten heavily to support an extent
22882 overflow file correctly. Specify errors appropriately, because
22883 fshelp expects that GRUB_ERRNO is set when fails. Reuse
22884 grub_hfsplus_btree_recptr to get the pointer to a found key.
22885 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
22886 is found.
22887
22888 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
22889 linux.mod.
22890 (_linux_mod_SOURCES): New variable.
22891 (_linux_mod_CFLAGS): Likewise.
22892 (_linux_mod_LDFLAGS): Likewise.
22893 (linux_mod_SOURCES): Likewise.
22894 (linux_mod_CFLAGS): Likewise.
22895 (linux_mod_LDFLAGS): Likewise.
22896
22897 * DISTLIST: Added loader/i386/efi/linux.c,
22898 loader/i386/efi/linux_normal.c and
22899 include/grub/i386/efi/loader.h.
22900
22901 * loader/i386/efi/linux.c: New file.
22902 * loader/i386/efi/linux_normal.c: Likewise.
22903 * include/grub/i386/efi/loader.h: Likewise.
22904
22905 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
22906
22907 * commands/blocklist.c: New file.
22908
22909 * DISTLIST: Added commands/blocklist.c.
22910
22911 * term/efi/console.c (grub_console_highlight_color): Use a lighter
22912 color for the background, and a darker color for the foreground.
22913 (grub_console_checkkey): Return READ_KEY.
22914 (grub_console_cls): Set the background to
22915 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
22916
22917 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
22918
22919 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
22920 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
22921
22922 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
22923 prototype.
22924
22925 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
22926 BG. The spec is wrong again.
22927
22928 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
22929 prototype.
22930 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
22931
22932 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
22933 commands/blocklist.c.
22934 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22935
22936 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
22937 (blocklist_mod_SOURCES): New variable.
22938 (blocklist_mod_CFLAGS): Likewise.
22939 (blocklist_mod_LDFLAGS): Likewise.
22940
22941 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
22942
22943 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
22944 duplication.
22945 (lba_mode): Use %eax more intensively to reduce the code size.
22946
22947 2006-05-20 Marco Gerards <marco@gnu.org>
22948
22949 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
22950
22951 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
22952 for `menuentry'.
22953 (script): Accept leading newlines.
22954 (newlines): New rule to describe 0 or more newlines.
22955 (commands): Accept `command' with trailing newline. Fixed the
22956 order in which arguments were passed to `grub_script_add_cmd'.
22957 Accept commands separated by newlines.
22958 (function): Changed to accept newlines.
22959 (menuentry) Rewritten.
22960
22961 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
22962 front of the list, instead of to the end.
22963
22964 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
22965
22966 * util/i386/pc/grub-install.in (bindir): New variable.
22967 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
22968 Shaver <lbgwjl@gmail.com>.
22969
22970 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
22971
22972 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
22973 grub/machine/linux.h
22974 * loader/i386/pc/linux.c: Likewise.
22975
22976 * include/grub/i386/pc/linux.h: Moved to ...
22977 * include/grub/i386/linux.h: ... here.
22978
22979 * include/grub/i386/linux.h (struct linux_kernel_params): New
22980 struct.
22981
22982 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
22983
22984 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
22985 checking.
22986 (grub_video_vbe_blit_glyph): Likewise.
22987 (grub_video_vbe_blit_bitmap): Likewise.
22988 (grub_video_vbe_blit_render_target): Likewise.
22989
22990 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
22991
22992 * configure.ac (--with-platform): Properly quote the square
22993 brackets.
22994
22995 2006-05-08 Marco Gerards <marco@gnu.org>
22996
22997 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
22998 this...
22999 (kernel_elf_HEADERS): ...to this. Updated all users.
23000 (grubof_symlist.c): Renamed from this...
23001 (kernel_elf_symlist.c): ...to this. Updated all users.
23002 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
23003 (grubof_SOURCES): Renamed from this...
23004 (kernel_elf_SOURCES): ...to this.
23005 (grubof_HEADERS): Renamed from this...
23006 (kernel_elf_HEADERS): ...to this.
23007 (grubof_CFLAGS): Renamed from this...
23008 (kernel_elf_CFLAGS): ...to this.
23009 (grubof_ASFLAGS): Renamed from this...
23010 (kernel_elf_ASFLAGS): ...to this.
23011 (grubof_LDFLAGS): Renamed from this...
23012 (kernel_elf_LDFLAGS): ...to this.
23013
23014 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
23015 this...
23016 (kernel_elf_HEADERS): ...to this. Updated all users.
23017 (grubof_symlist.c): Renamed from this...
23018 (kernel_elf_symlist.c): ...to this. Updated all users.
23019 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
23020 (grubof_SOURCES): Renamed from this...
23021 (kernel_elf_SOURCES): ...to this.
23022 (grubof_HEADERS): Renamed from this...
23023 (kernel_elf_HEADERS): ...to this.
23024 (grubof_CFLAGS): Renamed from this...
23025 (kernel_elf_CFLAGS): ...to this.
23026 (grubof_ASFLAGS): Renamed from this...
23027 (kernel_elf_ASFLAGS): ...to this.
23028 (grubof_LDFLAGS): Renamed from this...
23029 (kernel_elf_LDFLAGS): ...to this.
23030
23031 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
23032 `kernel.elf' instead of `grubof'.
23033
23034 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
23035
23036 Add --with-platform to configure. Use pkglibdir instead of
23037 pkgdatadir. This is reported by Roger Leigh.
23038
23039 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
23040 (host_vendor): Likewise.
23041 (host_os): Likewise.
23042 (pkgdatadir): Likewise.
23043 (platform): New variable.
23044 (pkglibdir): Likewise.
23045 Use PKGLIBDIR instead of PKGDATADIR.
23046
23047 * util/i386/pc/grub-install.in (datadir): Removed.
23048 (host_vendor): Likewise.
23049 (host_os): Likewise.
23050 (pkgdatadir): Likewise.
23051 (platform): New variable.
23052 (pkglibdir): Likewise.
23053 Use PKGLIBDIR instead of PKGDATADIR.
23054
23055 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
23056 instead of GRUB_DATADIR.
23057 (main): Likewise.
23058 * util/i386/pc/grub-mkimage.c (usage): Likewise.
23059 (main): Likewise.
23060 * util/i386/efi/grub-mkimage.c (usage): Likewise.
23061 (main): Likewise.
23062
23063 * configure.ac (--with-platform): New option.
23064 Use PLATFORM instead of HOST_VENDOR to specify a platform.
23065
23066 * Makefile.in: Include a makefile based on PLATFORM instead of
23067 HOST_VENDOR.
23068 (pkgdatadir): Not appended by the machine type.
23069 (pkglibdir): Appended by the machine type.
23070 (host_vendor): Removed.
23071 (platform): New variable.
23072 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
23073 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
23074 (uninstall): Likewise.
23075
23076 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
23077
23078 Use the environment context in the menu. Remove the commands
23079 "default" and "timeout", and use variables instead.
23080
23081 * normal/menu.c: Include grub/env.h.
23082 (print_entry): Cast TITLE to silence gcc.
23083 (get_timeout): New function.
23084 (set_timeout): Likewise.
23085 (get_entry_number): Likewise.
23086 (run_menu): Use a default entry, a fallback entry and a timeout
23087 in the environment variables "default", "fallback" and
23088 "timeout". Also, tweak the default entry if it is not within the
23089 current menu entries.
23090 (grub_menu_run): Use a fallback entry in the environment variable
23091 "fallback".
23092
23093 * normal/main.c (read_config_file): Do not initialize
23094 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
23095 NEWMENU->TIMEOUT.
23096 (grub_normal_execute): Use a data slot to store the menu.
23097
23098 * include/grub/normal.h (struct grub_menu): Removed default_entry,
23099 fallback_entry and timeout.
23100 (struct grub_menu_list): Removed.
23101 (grub_menu_list_t): Likewise.
23102 (struct grub_context): Likewise.
23103 (grub_context_t): Likewise.
23104 (grub_context_get): Likewise.
23105 (grub_context_get_current_menu): Likewise.
23106 (grub_context_push_menu): Likewise.
23107 (grub_context_pop_menu): Likewise.
23108 (grub_default_init): Likewise.
23109 (grub_default_fini): Likewise.
23110 (grub_timeout_init): Likewise.
23111 (grub_timeout_fini): Likewise.
23112
23113 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
23114 and timeout.mod.
23115 (normal_mod_SOURCES): Removed normal/context.c.
23116
23117 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
23118 commands/default.c, commands/timeout.c and normal/context.c.
23119 (normal_mod_SOURCES): Removed normal/context.c.
23120
23121 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
23122 commands/timeout.c and normal/context.c.
23123 (normal_mod_SOURCES): Removed normal/context.c.
23124
23125 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
23126 commands/default.c, commands/timeout.c and normal/context.c.
23127 (normal_mod_SOURCES): Removed normal/context.c.
23128
23129 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
23130 timeout.mod.
23131 (default_mod_SOURCES): Removed.
23132 (default_mod_CFLAGS): Likewise.
23133 (default_mod_LDFLAGS): Likewise.
23134 (timeout_mod_SOURCES): Removed.
23135 (timeout_mod_CFLAGS): Likewise.
23136 (timeout_mod_LDFLAGS): Likewise.
23137
23138 * DISTLIST: Removed commands/default.c, commands/timeout.c and
23139 normal/context.c.
23140
23141 * commands/default.c: Removed.
23142 * commands/timeout.c: Likewise.
23143 * normal/context.c: Likewise.
23144
23145 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
23146
23147 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
23148
23149 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
23150
23151 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
23152 "next" to "prev" for readability.
23153 (struct grub_env_sorted_var): New struct.
23154 (grub_env_context): Renamed to ...
23155 (initial_context): ... this.
23156 (grub_env_var_context): Renamed to ...
23157 (current_context): ... this.
23158 (grub_env_find): Look only at CURRENT_CONTEXT.
23159 (grub_env_context_open): Rewritten to copy exported variables from
23160 previous context.
23161 (grub_env_context_close): Rewritten according to the new
23162 scheme. Also, add an assertion to prevent the initial context from
23163 removed.
23164 (grub_env_insert): Removed the code for the sorted list.
23165 (grub_env_remove): Likewise.
23166 (grub_env_export): Simply mark the variable with
23167 GRUB_ENV_VAR_GLOBAL.
23168 (grub_env_set): A cosmetic change for naming consistency.
23169 (grub_env_get): Likewise.
23170 (grub_env_unset): Likewise.
23171 (grub_env_iterate): Rewritten to sort variables within this
23172 function.
23173 (grub_register_variable_hook): Fixed for naming consistency. Call
23174 grub_env_find again, only if NAME is not found at the first time.
23175 (mangle_data_slot_name): New function.
23176 (grub_env_set_data_slot): Likewise.
23177 (grub_env_get_data_slot): Likewise.
23178 (grub_env_unset_data_slot): Likewise.
23179
23180 * include/grub/env.h (grub_env_var_type): New enum.
23181 (GRUB_ENV_VAR_LOCAL): New constant.
23182 (GRUB_ENV_VAR_GLOBAL): Likewise.
23183 (GRUB_ENV_VAR_DATA): Likewise.
23184 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
23185 "type".
23186 (grub_env_set): Replace VAR with NAME for consistency.
23187 (grub_register_variable_hook): Likewise.
23188 (grub_env_export): Specify the name of the argument.
23189 (grub_env_set_data_slot): New prototype.
23190 (grub_env_get_data_slot): Likewise.
23191 (grub_env_unset_data_slot): Likewise.
23192
23193 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
23194
23195 Extend the loader so that GRUB can accept a loader which comes
23196 back to GRUB when a loaded image exits. Also, this change adds
23197 support for a chainloader on EFI.
23198
23199 * term/efi/console.c: Include grub/misc.h.
23200 (grub_console_checkkey): Display a scan code on the top for
23201 debugging. This will be removed once the EFI port gets stable.
23202 Correct the scan code mapping.
23203
23204 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
23205 allocate memory from larger regions, in order to reduce the number
23206 of allocated regions. Otherwise, the MacOSX loader panics.
23207 (filter_memory_map): Avoid less than 1MB for compatibility with
23208 other loaders.
23209 (add_memory_regions): Allocate from the tail of a region, if
23210 possible, to avoid allocating a region near to 1MB, for the MacOSX
23211 loader.
23212
23213 * kern/efi/init.c (grub_efi_set_prefix): Specify
23214 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
23215
23216 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
23217 argument IMAGE_HANDLE and specify it to get a loaded image.
23218 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
23219 grub_efi_get_loaded_image.
23220 (grub_efi_get_filename): Divide the length by the size of
23221 grub_efi_char16_t.
23222 (grub_efi_get_device_path): New function.
23223 (grub_efi_print_device_path): Print End Device Path nodes. Divide
23224 the length by the size of grub_efi_char16_t for a file path device
23225 path node.
23226
23227 * kern/loader.c (grub_loader_noreturn): New variable.
23228 (grub_loader_set): Accept a new argument NORETURN. Set
23229 GRUB_LOADER_NORETURN to NORETURN.
23230 All callers changed.
23231 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
23232 grub_machine_fini.
23233
23234 * include/grub/efi/efi.h (grub_efi_get_device_path): New
23235 prototype.
23236 (grub_efi_get_loaded_image): Take an argument to specify an image
23237 handle.
23238
23239 * include/grub/loader.h (grub_loader_set): Added one more argument
23240 NORETURN.
23241
23242 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
23243 instead of grub_efi_open_protocol.
23244 (grub_efidisk_get_device_name): Likewise.
23245 (grub_efidisk_close): Print a newline.
23246 (grub_efidisk_get_device_handle): Fixed to use
23247 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
23248 GRUB_EFI_DEVICE_PATH_TYPE.
23249
23250 * disk/efi/efidisk.c (device_path_guid): Moved to ...
23251 * kern/efi/efi.c (device_path_guid): ... here.
23252
23253 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
23254 chain.mod.
23255 (kernel_mod_HEADERS): Added efi/disk.h.
23256 (_chain_mod_SOURCES): New variable.
23257 (_chain_mod_CFLAGS): Likewise.
23258 (_chain_mod_LDFLAGS): Likewise.
23259 (chain_mod_SOURCES): Likewise.
23260 (chain_mod_CFLAGS): Likewise.
23261 (chain_mod_LDFLAGS): Likewise.
23262
23263 * DISTLIST: Added include/grub/efi/chainloader.h,
23264 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
23265
23266 * include/grub/efi/chainloader.h: New file.
23267 * loader/efi/chainloader.c: Likewise.
23268 * loader/efi/chainloader_normal.c: Likewise.
23269
23270 2006-04-30 Marco Gerards <marco@gnu.org>
23271
23272 * commands/configfile.c (grub_cmd_source): New function.
23273 (GRUB_MOD_INIT): Register the commands `source' and `.'.
23274 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
23275
23276 2006-04-30 Marco Gerards <marco@gnu.org>
23277
23278 * normal/execute.c (grub_script_execute_cmd): Change the return
23279 type to `grub_err_t'. Correctly return the error.
23280 (grub_script_execute_cmdline): In case a command line is not a
23281 command or a function, try to interpret it as an assignment.
23282
23283 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
23284
23285 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
23286 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
23287 skip a node whose name is obviously invalid as UTF-16,
23288 i.e. contains a NUL character. Stop the iteration when the last
23289 directory entry is found. Instead of using the return value of
23290 grub_hfsplus_btree_iterate_node, store the value in RET and use
23291 it, because the iterator can be stopped by the last directory
23292 entry.
23293
23294 2006-04-30 Marco Gerards <marco@gnu.org>
23295
23296 * include/grub/env.h (grub_env_export): New prototype. Reported
23297 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
23298
23299 2006-04-30 Marco Gerards <marco@gnu.org>
23300
23301 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
23302 size of the extents in a catalog file record.
23303
23304 2006-04-29 Marco Gerards <marco@gnu.org>
23305
23306 * commands/configfile.c (grub_cmd_configfile): Execute the
23307 configfile within its own context.
23308
23309 * include/grub/env.h (grub_env_context_open): New prototype.
23310 (grub_env_context_close): Likewise.
23311
23312 * kern/env.c (grub_env): Removed.
23313 (grub_env_sorted): Likewise.
23314 (grub_env_context): New variable.
23315 (grub_env_var_context): Likewise.
23316 (grub_env_find): Search both the active context and the global
23317 context.
23318 (grub_env_context_open): New function.
23319 (grub_env_context_close): Likewise.
23320 (grub_env_insert): Likewise.
23321 (grub_env_remove): Likewise.
23322 (grub_env_export): Likewise.
23323 (grub_env_set): Changed to use helper functions to avoid code
23324 duplication.
23325 (grub_env_iterate): Rewritten so both the current context and the
23326 global context are being used.
23327
23328 * normal/command.c (export_command): New function.
23329 (grub_command_init): Register the `export' function.
23330
23331 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
23332
23333 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
23334 explicitly to suppress gcc's warnings.
23335 * fs/fat.c (grub_fat_find_dir): Likewise.
23336 (grub_fat_label): Likewise.
23337 * fs/xfs.c (grub_xfs_read_inode): Likewise.
23338 (grub_xfs_mount): Likewise.
23339 (grub_xfs_label): Likewise.
23340 * fs/affs.c (grub_affs_mount): Likewise.
23341 (grub_affs_label): Likewise.
23342 (grub_affs_iterate_dir): Likewise.
23343 * fs/sfs.c (grub_sfs_mount): Likewise.
23344 (grub_sfs_iterate_dir): Likewise.
23345 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
23346 * fs/hfs.c (grub_hfs_mount): Likewise.
23347 (grub_hfs_cmp_catkeys): Likewise.
23348 (grub_hfs_find_dir): Likewise.
23349 (grub_hfs_dir): Likewise.
23350 (grub_hfs_label): Likewise.
23351 * fs/jfs.c (grub_jfs_mount): Likewise.
23352 (grub_jfs_opendir): Likewise.
23353 (grub_jfs_getent): Likewise.
23354 (grub_jfs_lookup_symlink): Likewise.
23355 (grub_jfs_label): Likewise.
23356 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
23357 (grub_hfsplus_iterate_dir): Likewise.
23358 (grub_hfsplus_btree_iterate_node): Made static.
23359
23360 * util/grub-emu.c (prefix): New variable.
23361 (grub_machine_set_prefix): New function.
23362 (main): Do not set the environment variable "prefix" here. Only
23363 set PREFIX, which is used later by grub_machine_set_prefix.
23364
23365 * include/grub/video.h: Do not include grub/symbol.h.
23366 (grub_video_register): Not exported. This symbol is not defined in
23367 the kernel.
23368 (grub_video_unregister): Likewise.
23369 (grub_video_iterate): Likewise.
23370 (grub_video_setup): Likewise.
23371 (grub_video_restore): Likewise.
23372 (grub_video_get_info): Likewise.
23373 (grub_video_get_blit_format): Likewise.
23374 (grub_video_set_palette): Likewise.
23375 (grub_video_get_palette): Likewise.
23376 (grub_video_set_viewport): Likewise.
23377 (grub_video_get_viewport): Likewise.
23378 (grub_video_map_color): Likewise.
23379 (grub_video_map_rgb): Likewise.
23380 (grub_video_map_rgba): Likewise.
23381 (grub_video_fill_rect): Likewise.
23382 (grub_video_blit_glyph): Likewise.
23383 (grub_video_blit_bitmap): Likewise.
23384 (grub_video_blit_render_target): Likewise.
23385 (grub_video_scroll): Likewise.
23386 (grub_video_swap_buffers): Likewise.
23387 (grub_video_create_render_target): Likewise.
23388 (grub_video_delete_render_target): Likewise.
23389 (grub_video_set_active_render_target): Likewise.
23390
23391 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
23392 Undefined.
23393 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
23394
23395 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
23396 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23397 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23398 instead of $(srcdir)/genkernsyms.sh.
23399
23400 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
23401 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23402 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23403 instead of $(srcdir)/genkernsyms.sh.
23404
23405 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
23406 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23407 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23408 instead of $(srcdir)/genkernsyms.sh.
23409
23410 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
23411 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23412 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23413 instead of $(srcdir)/genkernsyms.sh.
23414
23415 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
23416 genkernsyms.sh.
23417
23418 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
23419 genkernsyms.sh.
23420 (gensymlist.sh): New target.
23421 (genkernsyms.sh): Likewise.
23422
23423 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
23424 genkernsyms.sh.in and gensymlist.sh.in.
23425
23426 * genkernsyms.sh: Removed.
23427 * gensymlist.sh: Likewise.
23428
23429 * genkernsyms.sh.in: New file.
23430 * gensymlist.sh.in: Likewise.
23431
23432 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
23433
23434 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
23435 clobber "prefix", since we may have already set it manually.
23436
23437 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
23438
23439 * kern/misc.c (abort): New alias for grub_abort.
23440
23441 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
23442
23443 A new machine-specific function "grub_machine_set_prefix" is
23444 defined. This is called after loading modules, so that a prefix
23445 initialization can use modules. Also, this change adds an
23446 intensive debugging feature for the memory manager via the
23447 configure option "--enable-mm-debug".
23448
23449 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
23450 PART.LEN.
23451
23452 * kern/sparc64/ieee1275/init.c (abort): Removed.
23453 (grub_stop): Likewise.
23454 (grub_exit): New function.
23455 (grub_set_prefix): Renamed to ...
23456 (grub_machine_set_prefix): ... this.
23457 (grub_machine_init): Do not call grub_set_prefix.
23458
23459 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
23460 (grub_machine_set_prefix): ... this.
23461 (grub_machine_init): Do not call grub_set_prefix.
23462
23463 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
23464 (grub_machine_init): Do not set the prefix here.
23465
23466 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
23467
23468 * kern/efi/init.c: Include grub/mm.h.
23469 (grub_efi_set_prefix): New function.
23470
23471 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
23472 (grub_efi_get_filename): New function.
23473 (grub_print_device_path): Renamed to ...
23474 (grub_efi_print_device_path): ... this.
23475
23476 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
23477 [MM_DEBUG] (grub_realloc): Likewise.
23478 [MM_DEBUG] (grub_free): Likewise.
23479 [MM_DEBUG] (grub_memalign): Likewise.
23480 [MM_DEBUG] (grub_mm_debug): New variable.
23481 [MM_DEBUG] (grub_debug_malloc): New function.
23482 [MM_DEBUG] (grub_debug_free): New function.
23483 [MM_DEBUG] (grub_debug_realloc): New function.
23484 [MM_DEBUG] (grub_debug_memalign): New function.
23485
23486 * kern/misc.c (grub_abort): Print a newline to distinguish
23487 the message.
23488
23489 * kern/main.c (grub_main): Call grub_machine_set_prefix and
23490 grub_set_root_dev after loading modules. This is necessary when
23491 setting a prefix depends on modules.
23492
23493 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
23494 (grub_efi_print_device_path): ... this.
23495 (grub_efi_get_filename): New prototype.
23496 (grub_efi_set_prefix): Likewise.
23497
23498 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
23499 and grub/disk.h.
23500 (grub_efidisk_get_device_handle): New prototype.
23501 (grub_efidisk_get_device_name): Likewise.
23502
23503 * include/grub/mm.h: Include config.h.
23504 (MM_DEBUG): Removed.
23505 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
23506 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
23507 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
23508 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
23509 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
23510 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
23511 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
23512 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
23513 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
23514
23515 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
23516
23517 * disk/efi/efidisk.c: Include grub/partition.h.
23518 (iterate_child_devices): New function.
23519 (add_device): First, compare only last device path nodes, so that
23520 devices are sorted by the types.
23521 (grub_efidisk_get_device_handle): New function.
23522 (grub_efidisk_get_device_name): Likewise.
23523
23524 * configure.ac (--enable-mm-debug): New option to enable the
23525 memory manager debugging feature. This makes the binary much
23526 bigger, so is disabled by default.
23527
23528 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
23529
23530 Use grub_abort instead of grub_stop, and grub_exit must be
23531 define in each architecture now. Also, this change adds support
23532 for EFI disks.
23533
23534 * util/i386/pc/grub-probefs.c: Include grub/term.h.
23535 (grub_getkey): New function.
23536 (grub_term_get_current): Likewise.
23537
23538 * util/i386/pc/grub-setup.c: Include grub/term.h.
23539 (grub_getkey): New function.
23540 (grub_term_get_current): Likewise.
23541
23542 * util/misc.c (grub_stop): Renamed to ...
23543 (grub_exit): ... this.
23544
23545 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
23546 (grub_exit): ... this.
23547 (grub_machine_init): Use grub_abort instead of abort.
23548 (grub_stop): Removed.
23549
23550 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
23551 abort.
23552
23553 * kern/i386/pc/startup.S (grub_exit): New function.
23554 (cold_reboot): New label.
23555
23556 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
23557 (grub_efi_init): Call grub_efidisk_init.
23558 (grub_efi_fini): Call grub_efidisk_fini.
23559
23560 * kern/efi/efi.c: Include grub/mm.h.
23561 (grub_efi_console_control_guid): Renamed to ...
23562 (console_control_guid): ... this.
23563 (grub_efi_loaded_image_guid): Renamed to ...
23564 (loaded_image_guid): ... this.
23565 (grub_efi_locate_handle): New function.
23566 (grub_efi_open_protocol): Likewise.
23567 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
23568 GRUB_EFI_CONSOLE_CONTROL_GUID.
23569 (grub_efi_exit): Removed.
23570 (grub_stop): Likewise.
23571 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
23572 (grub_exit): New function.
23573 (grub_print_device_path): Likewise.
23574
23575 * kern/rescue.c (grub_rescue_cmd_exit): New function.
23576 (grub_enter_rescue_mode): Register "exit".
23577
23578 * kern/misc.c (grub_real_dprintf): A cosmetic change.
23579 (grub_abort): New function.
23580
23581 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
23582
23583 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
23584
23585 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
23586
23587 * include/grub/efi/efi.h (grub_efi_exit): Removed.
23588 (grub_print_device_path): New prototype.
23589 (grub_efi_locate_handle): Likewise.
23590 (grub_efi_open_protocol): Likewise.
23591
23592 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
23593 * disk/efi/efidisk.c: Likewise.
23594
23595 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
23596
23597 * include/grub/efi/console_control.h
23598 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
23599
23600 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
23601 last 8 bytes as an array.
23602 (GRUB_EFI_DISK_IO_GUID): New macro.
23603 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
23604 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
23605 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
23606 grub_uint8_t.
23607 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
23608 (struct grub_efi_device_path): Rename the member "sub_type" to
23609 "subtype".
23610 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
23611 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
23612 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
23613 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
23614 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
23615 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
23616 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
23617 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
23618 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
23619 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
23620 (struct grub_efi_pci_device_path): New structure.
23621 (grub_efi_pci_device_path_t): New type.
23622 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
23623 (struct grub_efi_pccard_device_path): New structure.
23624 (grub_efi_pccard_device_path_t): New type.
23625 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
23626 (struct grub_efi_memory_mapped_device_path): New structure.
23627 (grub_efi_memory_mapped_device_path_t): New type.
23628 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
23629 (struct grub_efi_vendor_device_path): New structure.
23630 (grub_efi_vendor_device_path_t): New type.
23631 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
23632 (struct grub_efi_controller_device_path): New structure.
23633 (grub_efi_controller_device_path_t): New type.
23634 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
23635 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
23636 (struct grub_efi_acpi_device_path): New structure.
23637 (grub_efi_acpi_device_path_t): New type.
23638 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
23639 (struct grub_efi_expanded_acpi_device_path): New structure.
23640 (grub_efi_expanded_acpi_device_path_t): New type.
23641 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
23642 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
23643 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
23644 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
23645 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
23646 (struct grub_efi_atapi_device_path): New structure.
23647 (grub_efi_atapi_device_path_t): New type.
23648 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
23649 (struct grub_efi_fibre_channel_device_path): New structure.
23650 (grub_efi_fibre_channel_device_path_t): New type.
23651 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
23652 (struct grub_efi_1394_device_path): New structure.
23653 (grub_efi_1394_device_path_t): New type.
23654 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
23655 (struct grub_efi_usb_device_path): New structure.
23656 (grub_efi_usb_device_path_t): New type.
23657 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
23658 (struct grub_efi_usb_class_device_path): New structure.
23659 (grub_efi_usb_class_device_path_t): New type.
23660 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
23661 (struct grub_efi_i2o_device_path): New structure.
23662 (grub_efi_i2o_device_path_t): New type.
23663 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
23664 (struct grub_efi_mac_address_device_path): New structure.
23665 (grub_efi_mac_address_device_path_t): New type.
23666 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
23667 (struct grub_efi_ipv4_device_path): New structure.
23668 (grub_efi_ipv4_device_path_t): New type.
23669 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
23670 (struct grub_efi_ipv6_device_path): New structure.
23671 (grub_efi_ipv6_device_path_t): New type.
23672 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
23673 (struct grub_efi_infiniband_device_path): New structure.
23674 (grub_efi_infiniband_device_path_t): New type.
23675 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
23676 (struct grub_efi_uart_device_path): New structure.
23677 (grub_efi_uart_device_path_t): New type.
23678 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
23679 (struct grub_efi_vendor_messaging_device_path): New structure.
23680 (grub_efi_vendor_messaging_device_path_t): New type.
23681 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
23682 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
23683 (struct grub_efi_hard_drive_device_path): New structure.
23684 (grub_efi_hard_drive_device_path_t): New type.
23685 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
23686 (struct grub_efi_cdrom_device_path): New structure.
23687 (grub_efi_cdrom_device_path_t): New type.
23688 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
23689 (struct grub_efi_vendor_media_device_path): New structure.
23690 (grub_efi_vendor_media_device_path_t): New type.
23691 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
23692 (struct grub_efi_file_path_device_path): New structure.
23693 (grub_efi_file_path_device_path_t): New type.
23694 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
23695 (struct grub_efi_protocol_device_path): New structure.
23696 (grub_efi_protocol_device_path_t): New type.
23697 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
23698 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
23699 (struct grub_efi_bios_device_path): New structure.
23700 (grub_efi_bios_device_path_t): New type.
23701 (struct grub_efi_disk_io): New structure.
23702 (grub_efi_disk_io_t): New type.
23703 (struct grub_efi_block_io_media): New structure.
23704 (grub_efi_block_io_media_t): New type.
23705 (struct grub_efi_block_io): New structure.
23706 (grub_efi_block_io_t): New type.
23707
23708 * include/grub/misc.h (grub_stop): Removed.
23709 (grub_exit): New prototype.
23710 (grub_abort): Likewise.
23711
23712 * include/grub/disk.h (enum grub_disk_dev_id): Added
23713 GRUB_DISK_DEVICE_EFIDISK_ID.
23714
23715 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
23716 disk/efi/efidisk.c.
23717 (kernel_syms.lst): Remove the target if an error occurs.
23718
23719 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
23720
23721 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
23722 as it was simply too buggy.
23723
23724 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
23725
23726 * kern/misc.c (grub_lltoa): New function.
23727 (grub_vsprintf): Added support for the long long suffix,
23728 i.e. "ll".
23729
23730 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
23731
23732 * Makefile.in (LDFLAGS): Add variable.
23733 (LD): Remove variable.
23734 * configure.ac: Add -m32 to LDFLAGS.
23735 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
23736 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
23737 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
23738 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
23739 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
23740 variables.
23741 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
23742 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
23743 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
23744
23745 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
23746
23747 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
23748 length for unknown glyph.
23749
23750 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23751
23752 Add support for pre-loaded modules into the EFI port.
23753
23754 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
23755 completely. Accept one more argument DIR. The caller has changed.
23756
23757 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
23758
23759 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
23760 (grub_efi_loaded_image_guid): New variable.
23761 (grub_efi_get_loaded_image): New function.
23762 (grub_arch_modules_addr): Likewise.
23763
23764 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
23765 prototype.
23766
23767 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
23768 (struct grub_efi_loaded_image): New structure.
23769 (grub_efi_loaded_image_t): New type.
23770
23771 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23772
23773 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
23774 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
23775 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
23776
23777 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
23778
23779 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
23780
23781 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
23782
23783 * DISTLIST: Added include/grub/efi/console.h,
23784 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
23785 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23786
23787 * include/grub/efi/console.h: New file.
23788 * include/grub/efi/time.h: Likewise.
23789 * include/grub/i386/efi/kernel.h: Likewise.
23790 * kern/efi/init.c: Likewise.
23791 * kern/efi/mm.c: Likewise.
23792 * term/efi/console.c: Likewise.
23793
23794 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
23795 (grub_stop): Removed.
23796 (grub_get_rtc): Likewise.
23797 (grub_machine_init): Simply call grub_efi_init.
23798 (grub_machine_fini): Call grub_efi_fini.
23799
23800 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
23801 (grub_efi_output_string): Removed.
23802 (grub_efi_stall): New function.
23803 (grub_stop): Likewise.
23804 (grub_get_rtc): Likewise.
23805
23806 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
23807 (grub_efi_stall): New prototype.
23808 (grub_efi_allocate_pages): Likewise.
23809 (grub_efi_free_pages): Likewise.
23810 (grub_efi_get_memory_map): Likewise.
23811 (grub_efi_mm_init): Likewise.
23812 (grub_efi_mm_fini): Likewise.
23813 (grub_efi_init): Likewise.
23814 (grub_efi_fini): Likewise.
23815
23816 * include/grub/i386/efi/time.h: Do not include
23817 grub/symbol.h. Include grub/efi/time.h.
23818 (GRUB_TICKS_PER_SECOND): Removed.
23819 (grub_get_rtc): Likewise.
23820
23821 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
23822 Added padding. The EFI spec is buggy.
23823 (GRUB_EFI_BLACK): New macro.
23824 (GRUB_EFI_BLUE): Likewise.
23825 (GRUB_EFI_GREEN): Likewise.
23826 (GRUB_EFI_CYAN): Likewise.
23827 (GRUB_EFI_RED): Likewise.
23828 (GRUB_EFI_MAGENTA): Likewise.
23829 (GRUB_EFI_BROWN): Likewise.
23830 (GRUB_EFI_LIGHTGRAY): Likewise.
23831 (GRUB_EFI_BRIGHT): Likewise.
23832 (GRUB_EFI_DARKGRAY): Likewise.
23833 (GRUB_EFI_LIGHTBLUE): Likewise.
23834 (GRUB_EFI_LIGHTGREEN): Likewise.
23835 (GRUB_EFI_LIGHTCYAN): Likewise.
23836 (GRUB_EFI_LIGHTRED): Likewise.
23837 (GRUB_EFI_LIGHTMAGENTA): Likewise.
23838 (GRUB_EFI_YELLOW): Likewise.
23839 (GRUB_EFI_WHITE): Likewise.
23840 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
23841 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
23842 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
23843 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
23844 (GRUB_EFI_BACKGROUND_RED): Likewise.
23845 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
23846 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
23847 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
23848 (GRUB_EFI_TEXT_ATTR): Likewise.
23849
23850 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
23851 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23852 (kernel_mod_HEADERS): Added efi/time.h.
23853
23854 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
23855
23856 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
23857 include/grub/efi/api.h, include/grub/efi/console_control.h,
23858 include/grub/efi/efi.h, include/grub/efi/pe32.h,
23859 include/grub/i386/efi/time.h, kern/efi/efi.c,
23860 kern/i386/efi/init.c, kern/i386/efi/startup.S,
23861 and util/i386/efi/grub-mkimage.c.
23862
23863 * Makefile.in (RMKFILES): Added i386-efi.rmk.
23864
23865 * genmk.rb (PModule#rule): Do not export symbols if
23866 #{prefix}_EXPORTS is set to "no".
23867
23868 * conf/i386-efi.mk: New file.
23869 * conf/i386-efi.rmk: Likewise.
23870 * include/grub/efi/api.h: Likewise.
23871 * include/grub/efi/console_control.h: Likewise.
23872 * include/grub/efi/efi.h: Likewise.
23873 * include/grub/efi/pe32.h: Likewise.
23874 * include/grub/i386/efi/time.h: Likewise.
23875 * kern/efi/efi.c: Likewise.
23876 * kern/i386/efi/init.c: Likewise.
23877 * kern/i386/efi/startup.S: Likewise.
23878 * util/i386/efi/grub-mkimage.c: Likewise.
23879
23880 2006-04-17 Marco Gerards <marco@gnu.org>
23881
23882 * include/grub/script.h: Include <grub/parser.h> and
23883 "grub_script.tab.h".
23884 (struct grub_lexer_param): New struct.
23885 (struct grub_parser_param): Likewise.
23886 (grub_script_create_arglist): Pass the state in an argument.
23887 (grub_script_add_arglist): Likewise.
23888 (grub_script_create_cmdline): Likewise.
23889 (grub_script_create_cmdblock): Likewise.
23890 (grub_script_create_cmdif): Likewise.
23891 (grub_script_create_cmdmenu): Likewise.
23892 (grub_script_add_cmd): Likewise.
23893 (grub_script_arg_add): Likewise.
23894 (grub_script_lexer_ref): Likewise.
23895 (grub_script_lexer_deref): Likewise.
23896 (grub_script_lexer_record_start): Likewise.
23897 (grub_script_lexer_record_stop): Likewise.
23898 (grub_script_mem_record): Likewise.
23899 (grub_script_mem_record_stop): Likewise.
23900 (grub_script_malloc): Likewise.
23901 (grub_script_yylex): Likewise.
23902 (grub_script_yyparse): Likewise.
23903 (grub_script_yyerror): Likewise.
23904 (grub_script_yylex): Likewise.
23905 (grub_script_lexer_init): Return the state.
23906
23907 * normal/lexer.c (grub_script_lexer_state): Removed variable.
23908 (grub_script_lexer_done): Likewise.
23909 (grub_script_lexer_getline): Likewise.
23910 (grub_script_lexer_refs): Likewise.
23911 (script): Likewise.
23912 (newscript): Likewise.
23913 (record): Likewise.
23914 (recording): Likewise.
23915 (recordpos): Likewise.
23916 (recordlen): Likewise.
23917 (grub_script_lexer_init): Return the state instead of setting
23918 global variables.
23919 (grub_script_lexer_ref): Use the newly added argument for state
23920 instead of globals.
23921 (grub_script_lexer_deref): Likewise.
23922 (grub_script_lexer_record_start): Likewise.
23923 (grub_script_lexer_record_stop): Likewise.
23924 (recordchar): Likewise.
23925 (nextchar): Likewise.
23926 (grub_script_yylex2): Likewise.
23927 (grub_script_yylex): Likewise.
23928 (grub_script_yyerror): Likewise.
23929
23930 * normal/parser.y (func_mem): Removed variable.
23931 (menu_entry): Likewise.
23932 (err): Likewise.
23933 (%lex-param): New parser option.
23934 (%parse-param): Likewise.
23935 (script): Always return the AST.
23936 (argument): Pass the state around.
23937 (arguments): Likewise.
23938 (grubcmd): Likewise.
23939 (commands): Likewise.
23940 (function): Likewise.
23941 (menuentry): Likewise.
23942 (if_statement): Likewise.
23943 (if): Likewise.
23944
23945 * normal/script.c (grub_script_memused): Removed variable.
23946 (grub_script_parsed): Likewise.
23947 (grub_script_malloc): Added a state argument. Use that instead of
23948 global variables.
23949 (grub_script_mem_record): Likewise.
23950 (grub_script_mem_record_stop): Likewise.
23951 (grub_script_arg_add): Likewise.
23952 (grub_script_add_arglist): Likewise.
23953 (grub_script_create_cmdline): Likewise.
23954 (grub_script_create_cmdif): Likewise.
23955 (grub_script_create_cmdmenu): Likewise.
23956 (grub_script_add_cmd): Likewise.
23957 (grub_script_parse): Setup the state before calling the parser.
23958
23959 2006-04-16 Marco Gerards <marco@gnu.org>
23960
23961 * normal/command.c (grub_command_init): Remove the title command.
23962
23963 * normal/lexer.c (grub_script_yylex): Renamed from this...
23964 (grub_script_yylex2): ... to this.
23965 (grub_script_yylex): New function. Temporary
23966 introduced to filter some tokens.
23967 (grub_script_yyerror): Print a newline.
23968
23969 * normal/main.c (read_config_file): Output information about the
23970 lines that contain errors. Wait for a key after all lines have
23971 been processed. Don't return an empty menu.
23972
23973 * normal/parser.y (func_mem): Don't initialize.
23974 (menu_entry): Likewise.
23975 (err): New variable.
23976 (script): Don't return anything when an error was encountered.
23977 (ws, returns): Removed rules.
23978 (argument): Disabled concatenated variable support.
23979 (arguments): Remove explicit separators.
23980 (grubcmd): Likewise.
23981 (function): Likewise.
23982 (menuentry): Likewise.
23983 (if): Likewise.
23984 (commands): Likewise. Add error handling.
23985
23986 * normal/script.c (grub_script_create_cmdline): If
23987 `grub_script_parsed' is 0, assume the parser encountered an error.
23988
23989 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
23990
23991 * configure.ac: Add support for EFI. Fix the typo
23992 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
23993
23994 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23995
23996 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
23997 foreign multibyte characters should be shown correctly.
23998
23999 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
24000
24001 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
24002 calculation.
24003 (read_config_file): Made it to close file before returning.
24004
24005 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
24006
24007 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
24008 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
24009 video/i386/pc/vbefill.c.
24010
24011 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
24012 video/i386/pc/vbefill.c.
24013
24014 * include/grub/video.h (grub_video_blit_format): New enum.
24015 (grub_video_mode_info): Added new member blit_format.
24016 (grub_video_get_blit_format): New function prototype.
24017
24018 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
24019 function prototype.
24020 (grub_video_vbe_map_rgb): Likewise.
24021 (grub_video_vbe_unmap_color): Likewise.
24022
24023 * include/grub/i386/pc/vbeblit.h: New file.
24024
24025 * include/grub/i386/pc/vbefill.h: New file.
24026
24027 * video/video.c (grub_video_get_blit_format): New function.
24028 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
24029 (grub_video_vbe_map_rgb): Likewise.
24030 (grub_video_vbe_unmap_color): Likewise.
24031
24032 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
24033 optimized fills.
24034 (grub_video_vbe_blit_render_target): Changed to use more optimized
24035 blits.
24036 (grub_video_vbe_setup): Added detection for optimized settings.
24037 (grub_video_vbe_create_render_target): Likewise.
24038
24039 * video/i386/pc/vbeblit.c: New file.
24040
24041 * video/i386/pc/vbefill.c: New file.
24042
24043 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
24044
24045 * font/manager.c (grub_font_get_glyph): Removed font fixup from
24046 here...
24047
24048 * util/unifont2pff.rb: ... and moved it to here. Improved argument
24049 parsing to support both hex and dec ranges. If filename was missing
24050 show usage information.
24051
24052 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
24053
24054 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
24055 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
24056
24057 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
24058 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
24059 (video_mod_SOURCES): Added.
24060 (video_mod_CFLAGS): Likewise.
24061 (video_mod_LDFLAGS): Likewise.
24062 (gfxterm_mod_SOURCES): Likewise.
24063 (gfxterm_mod_CFLAGS): Likewise.
24064 (gfxterm_mod_LDFLAGS): Likewise.
24065 (videotest_mod_SOURCES): Likewise.
24066 (videotest_mod_CFLAGS): Likewise.
24067 (videotest_mod_LDFLAGS): Likewise.
24068 (vesafb_mod_SOURCES): Removed.
24069 (vesafb_mod_CFLAGS): Likewise.
24070 (vesafb_mod_LDFLAGS): Likewise.
24071 (vga_mod_SOURCES): Likewise.
24072 (vga_mod_CFLAGS): Likewise.
24073 (vga_mod_LDFLAGS): Likewise.
24074
24075 * commands/videotest.c: New file.
24076
24077 * font/manager.c (fill_with_default_glyph): Modified to use
24078 grub_font_glyph.
24079 (grub_font_get_glyph): Likewise.
24080 (fontmanager): Renamed from this...
24081 (font_manager): ... to this.
24082
24083 * include/grub/font.h (grub_font_glyph): Added new structure.
24084 (grub_font_get_glyph): Modified to use grub_font_glyph.
24085
24086 * include/grub/misc.h (grub_abs): Added as inline function.
24087
24088 * include/grub/video.h: New file.
24089
24090 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
24091 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
24092 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
24093 (grub_vbe_get_controller_info): Renamed from this...
24094 (grub_vbe_bios_get_controller_info): ... to this.
24095 (grub_vbe_get_mode_info): Renamed from this...
24096 (grub_vbe_bios_get_mode_info): ... to this.
24097 (grub_vbe_set_mode): Renamed from this...
24098 (grub_vbe_bios_set_mode): ... to this.
24099 (grub_vbe_get_mode): Renamed from this...
24100 (grub_vbe_bios_get_mode): ... to this.
24101 (grub_vbe_set_memory_window): Renamed from this...
24102 (grub_vbe_bios_set_memory_window): ... to this.
24103 (grub_vbe_get_memory_window): Renamed from this...
24104 (grub_vbe_bios_get_memory_window): ... to this.
24105 (grub_vbe_set_scanline_length): Renamed from this...
24106 (grub_vbe_set_scanline_length): ... to this.
24107 (grub_vbe_get_scanline_length): Renamed from this...
24108 (grub_vbe_bios_get_scanline_length): ... to this.
24109 (grub_vbe_set_display_start): Renamed from this...
24110 (grub_vbe_bios_set_display_start): ... to this.
24111 (grub_vbe_get_display_start): Renamed from this...
24112 (grub_vbe_bios_get_display_start): ... to this.
24113 (grub_vbe_set_palette_data): Renamed from this...
24114 (grub_vbe_bios_set_palette_data): ... to this.
24115 (grub_vbe_set_pixel_rgb): Removed.
24116 (grub_vbe_set_pixel_index): Likewise.
24117
24118 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
24119 from this...
24120 (grub_vbe_bios_get_controller_info): ... to this.
24121 (grub_vbe_get_mode_info): Renamed from this...
24122 (grub_vbe_bios_get_mode_info): ... to this.
24123 (grub_vbe_set_mode): Renamed from this...
24124 (grub_vbe_bios_set_mode): ... to this.
24125 (grub_vbe_get_mode): Renamed from this...
24126 (grub_vbe_bios_get_mode): ... to this.
24127 (grub_vbe_set_memory_window): Renamed from this...
24128 (grub_vbe_bios_set_memory_window): ... to this.
24129 (grub_vbe_get_memory_window): Renamed from this...
24130 (grub_vbe_bios_get_memory_window): ... to this.
24131 (grub_vbe_set_scanline_length): Renamed from this...
24132 (grub_vbe_set_scanline_length): ... to this.
24133 (grub_vbe_get_scanline_length): Renamed from this...
24134 (grub_vbe_bios_get_scanline_length): ... to this.
24135 (grub_vbe_set_display_start): Renamed from this...
24136 (grub_vbe_bios_set_display_start): ... to this.
24137 (grub_vbe_get_display_start): Renamed from this...
24138 (grub_vbe_bios_get_display_start): ... to this.
24139 (grub_vbe_set_palette_data): Renamed from this...
24140 (grub_vbe_bios_set_palette_data): ... to this.
24141 (grub_vbe_bios_get_controller_info): Fixed problem with registers
24142 getting corrupted after calling it. Added more pushes and pops.
24143 (grub_vbe_bios_set_mode): Likewise.
24144 (grub_vbe_bios_get_mode): Likewise.
24145 (grub_vbe_bios_get_memory_window): Likewise.
24146 (grub_vbe_bios_set_scanline_length): Likewise.
24147 (grub_vbe_bios_get_scanline_length): Likewise.
24148 (grub_vbe_bios_get_display_start): Likewise.
24149 (grub_vbe_bios_set_palette_data): Likewise.
24150
24151 * normal/cmdline.c (cl_set_pos): Refresh the screen.
24152 (cl_insert): Likewise.
24153 (cl_delete): Likewise.
24154
24155 * term/gfxterm.c: New file.
24156
24157 * term/i386/pc/vesafb.c: Removed file.
24158
24159 * video/video.c: New file.
24160
24161 * video/i386/pc/vbe.c (real2pm): Added new function.
24162 (grub_video_vbe_draw_pixel): Likewise.
24163 (grub_video_vbe_get_video_ptr): Likewise.
24164 (grub_video_vbe_get_pixel): Likewise
24165 (grub_video_vbe_init): Likewise.
24166 (grub_video_vbe_fini): Likewise.
24167 (grub_video_vbe_setup): Likewise.
24168 (grub_video_vbe_get_info): Likewise.
24169 (grub_video_vbe_set_palette): Likewise.
24170 (grub_video_vbe_get_palette): Likewise.
24171 (grub_video_vbe_set_viewport): Likewise.
24172 (grub_video_vbe_get_viewport): Likewise.
24173 (grub_video_vbe_map_color): Likewise.
24174 (grub_video_vbe_map_rgb): Likewise.
24175 (grub_video_vbe_map_rgba): Likewise.
24176 (grub_video_vbe_unmap_color): Likewise.
24177 (grub_video_vbe_fill_rect): Likewise.
24178 (grub_video_vbe_blit_glyph): Likewise.
24179 (grub_video_vbe_blit_bitmap): Likewise.
24180 (grub_video_vbe_blit_render_target): Likewise.
24181 (grub_video_vbe_scroll): Likewise.
24182 (grub_video_vbe_swap_buffers): Likewise.
24183 (grub_video_vbe_create_render_target): Likewise.
24184 (grub_video_vbe_delete_render_target): Likewise.
24185 (grub_video_vbe_set_active_render_target): Likewise.
24186 (grub_vbe_set_pixel_rgb): Remove function.
24187 (grub_vbe_set_pixel_index): Likewise.
24188 (index_color_mode): Remove static variable.
24189 (active_mode): Likewise.
24190 (framebuffer): Likewise.
24191 (bytes_per_scan_line): Likewise.
24192 (grub_video_vbe_adapter): Added new static variable.
24193 (framebuffer): Likewise.
24194 (render_target): Likewise.
24195 (initial_mode): Likewise.
24196 (mode_in_use): Likewise.
24197 (mode_list): Likewise.
24198
24199 2006-03-10 Marco Gerards <marco@gnu.org>
24200
24201 * configure.ac (AC_INIT): Bumped to 1.93.
24202
24203 * DISTLIST: Added `include/grub/hfs.h'.
24204
24205 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
24206
24207 * boot/i386/pc/boot.S (general_error): Before looping, try INT
24208 18H, which might help the BIOS falling back to next boot media.
24209
24210 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
24211
24212 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
24213 Poe Chen <poe.poechen@gmail.com>.
24214
24215 2006-01-17 Marco Gerards <marco@gnu.org>
24216
24217 * include/grub/normal.h: Include <grub/script.h>.
24218 (grub_command_list): Removed struct.
24219 (grub_command_list_t): Removed type.
24220 (grub_menu_entry): Remove members `num' and `command_list'. Add
24221 members `commands' and `sourcecode'.
24222 * include/grub/script.h: Add inclusion guards.
24223 (grub_script_cmd_menuentry): New struct.
24224 (grub_script_execute_menuentry): New prototype.
24225 (grub_script_lexer_record_start): Likewise.
24226 (grub_script_lexer_record_stop): Likewise.
24227 * normal/execute.c (grub_script_execute_menuentry): New function.
24228 * normal/lexer.c (record, recording, recordpos, recordlen): New
24229 variables.
24230 (grub_script_lexer_record_start): New function.
24231 (grub_script_lexer_record_stop): Likewise.
24232 (recordchar): Likewise.
24233 (nextchar): Likewise.
24234 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
24235 2048 as the buffer size. Add the tokens `menuentry' and `@'.
24236 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
24237 (current_menu): New variable.
24238 (free_menu): Mainly rewritten.
24239 (grub_normal_menu_addentry): New function.
24240 (read_config_file): Rewritten.
24241 * normal/menu.c (run_menu_entry): Mainly rewritten.
24242 * normal/menu_entry.c (make_screen): Rewritten the code to insert
24243 the menu entry.
24244 (run): Mainly rewritten.
24245 * normal/parser.y (menu_entry): New variable.
24246 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
24247 (menuentry): New rule.
24248 (command): Add `menuentry'.
24249 (if_statement): Allow additional returns before `fi'.
24250 * normal/script.c (grub_script_create_cmdmenu): New function.
24251
24252 2006-01-03 Marco Gerards <marco@gnu.org>
24253
24254 * INSTALL: GNU Bison is required.
24255 * configure.ac: Rewritten the test to detect Bison.
24256 * Makefile.in (YACC): New variable. Reported by Xun Sun
24257 <xun.sun.cn@gmail.com>.
24258
24259 2006-01-03 Marco Gerards <marco@gnu.org>
24260
24261 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
24262 the HFS+ filesystem to filesystem blocks.
24263 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
24264 GCC warning is silenced.
24265
24266 2006-01-03 Marco Gerards <marco@gnu.org>
24267
24268 * partmap/apple.c (apple_partition_map_iterate): Convert the data
24269 read from disk from big endian to host byte order.
24270
24271 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
24272
24273 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
24274 documentation.
24275 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
24276 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
24277 embedded HFS+ filesystem.
24278 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
24279 (grub_hfs_sblock): Move from here...
24280 * include/grub/hfs.h: To here... New file.
24281 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
24282 documentation.
24283 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
24284 New macros.
24285 (grub_hfsplus_volheader): Change type of member `magic' to
24286 `grub_uint16_t'.
24287 (grub_hfsplus_data): Add new member `embedded_offset'.
24288 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
24289 returned block.
24290 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
24291 Calculate the offset.
24292
24293 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
24294
24295 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
24296 Removed.
24297 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
24298
24299 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
24300
24301 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
24302 ENV->NAME is NULL after allocating ENV->VALUE.
24303
24304 2005-12-25 Marco Gerards <marco@gnu.org>
24305
24306 * kern/env.c (grub_env_set): Rewritten the error handling code.
24307
24308 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
24309
24310 * geninit.sh: Made more robust, and more portable.
24311
24312 2005-12-25 Marco Gerards <marco@gnu.org>
24313
24314 Add support for Apple HFS+ filesystems.
24315
24316 * fs/hfsplus.c: New file.
24317
24318 * DISTLIST: Added `fs/hfsplus.c'.
24319
24320 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
24321 (hfsplus_mod_SOURCES): New variable.
24322 (hfsplus_mod_CFLAGS): Likewise.
24323 (hfsplus_mod_LDFLAGS): Likewise.
24324 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
24325 (grub_setup_SOURCES): Likewise.
24326 (grub_mkdevicemap_SOURCES): Likewise.
24327 (grub_emu_SOURCES): Likewise.
24328 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24329
24330 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
24331
24332 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
24333
24334 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
24335
24336 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
24337 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
24338 include/grub/parser.h, include/grub/script.h, kern/parser.c,
24339 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
24340 normal/lexer.c, normal/parser.y, normal/script.c, and
24341 partmap/gpt.c.
24342 Removed kern/sparc64/cache.c.
24343
24344 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
24345 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
24346 grub_emu_init.c.
24347
24348 * configure.ac (AC_INIT): Bumped to 1.92.
24349
24350 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
24351
24352 * kern/err.c (grub_error_push): Added new function to support error
24353 stacks.
24354 (grub_error_pop): Likewise.
24355 (grub_error_stack_items): New local variable to support error stacks.
24356 (grub_error_stack_pos): Likewise.
24357 (grub_error_stack_assert): Likewise.
24358 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
24359 stack depth.
24360 (grub_print_error): Added support to print errors from error stack.
24361
24362 * include/grub/err.h (grub_error_push): Added function prototype.
24363 (grub_error_pop): Likewise.
24364
24365 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
24366
24367 * configure.ac: Accept `powerpc64' as host_cpu.
24368 (amd64): Rename to `biarch32'.
24369
24370 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
24371 non-cacheline-aligned addresses.
24372
24373 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
24374 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
24375 if `size' is non-zero.
24376
24377 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
24378
24379 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
24380 and `cd' to make sure the filename is not prefixed with a
24381 directory name.
24382 (pkgdata_MODULES): Add `gpt.mod'.
24383 (gpt_mod_SOURCES): New variable.
24384 (gpt_mod_CFLAGS): Likewise.
24385 (gpt_mod_LDFLAGS): Likewise.
24386
24387 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
24388
24389 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
24390 New macro.
24391
24392 * partmap/gpt.c: New file.
24393
24394 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
24395 GPT partition map is detected.
24396
24397 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
24398
24399 * commands/i386/pc/play.c: New file.
24400 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
24401 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
24402 macros.
24403
24404 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
24405
24406 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
24407 ((unused))' to silence gcc warning.
24408
24409 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
24410
24411 * configure.ac: Correct `AC_PROG_YACC' test.
24412
24413 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24414
24415 * util/powerpc/ieee1275/grub-install.in: Run the mount point
24416 check before installing files.
24417
24418 2005-11-22 Mike Small <smallm@panix.com>
24419
24420 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
24421 number regex so multidigit numbers are recognized correctly.
24422
24423 2005-11-22 Mike Small <smallm@panix.com>
24424
24425 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
24426 debugging message before attempting to claim memory.
24427 (grub_rescue_cmd_initrd): Add a claim debugging message and try
24428 multiple addresses in case of failure.
24429
24430 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24431
24432 * term/tparm.c (get_space): Remove empty `if' statement.
24433
24434 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
24435
24436 * kern/parser.c (check_varstate): Rename `state' to 's'.
24437
24438 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24439
24440 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
24441 variable definitions to the beginning of each function. Sort stack
24442 variables by size.
24443 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
24444 `buf' argument to `char *'.
24445
24446 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24447
24448 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
24449 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
24450 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
24451 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
24452 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
24453 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
24454 configfile.mod, search.mod, gzio.mod and test.mod.
24455 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
24456 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
24457 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
24458 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
24459 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
24460 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
24461 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
24462 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
24463 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
24464 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
24465 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24466 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24467 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
24468 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
24469 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
24470 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
24471 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
24472 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
24473 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
24474 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
24475 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
24476 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
24477 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
24478
24479 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
24480 `grep --include'.
24481 (pkgdata_MODULES): Add test.mod.
24482
24483 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24484
24485 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
24486 appending to variables with "+=".
24487 (PModule): Use full pathname to generate *.lst filenames.
24488
24489 * Makefile.in: Fixed list rules moved from genmk.rb.
24490 (.DELETE_ON_ERROR): New special target.
24491 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
24492
24493 * conf/i386-pc.rmk: Include conf/common.mk.
24494 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
24495 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
24496 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
24497 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
24498 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
24499 configfile.mod, search.mod, gzio.mod and test.mod.
24500 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
24501 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
24502 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
24503 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
24504 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
24505 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
24506 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
24507 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
24508 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
24509 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
24510 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24511 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24512 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
24513 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
24514 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
24515 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
24516 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
24517 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
24518 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
24519 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
24520 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
24521 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
24522 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
24523 here...
24524 * conf/common.rmk: ... to here. New file.
24525
24526 * conf/common.mk: New file.
24527
24528 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
24529
24530 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
24531 (grub_script.tab.c): ... here.
24532
24533 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
24534 (grub_script.tab.c): ... here.
24535
24536 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
24537 (grub_script.tab.c): ... here.
24538
24539 * normal/command.c (grub_command_find): Fixed a memory leak of
24540 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
24541
24542 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24543
24544 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
24545 "@" which marks the start of a comment on ARM.
24546 (VARIABLE): Likewise.
24547
24548 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24549
24550 Add support for Linux/ADFS partition tables.
24551
24552 * partmap/acorn.c: New file.
24553
24554 * include/grub/acorn_filecore.h: Likewise.
24555
24556 * DISTLIST: Added `partmap/acorn.c' and
24557 `include/grub/acorn_filecore.h'.
24558
24559 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24560 `partmap/acorn.c'.
24561 (pkgdata_MODULES): Add `acorn.mod'.
24562 (acorn_mod_SOURCES): New variable.
24563 (acorn_mod_CFLAGS): Likewise.
24564
24565 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
24566 `partmap/acorn.c'.
24567 (pkgdata_MODULES): Add `acorn.mod'.
24568 (acorn_mod_SOURCES): New variable.
24569 (acorn_mod_CFLAGS): Likewise.
24570
24571 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
24572 (pkgdata_MODULES): Add `acorn.mod'.
24573 (acorn_mod_SOURCES): New variable.
24574 (acorn_mod_CFLAGS): Likewise.
24575 (acorn_mod_LDFLAGS): Likewise.
24576
24577 * include/types.h (grub_disk_addr_t): New typedef.
24578
24579 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
24580
24581 * geninit.sh: New file.
24582
24583 * geninitheader.sh: Likewise.
24584
24585 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
24586 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
24587 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
24588 * commands/configfile.c (grub_configfile_init)
24589 (grub_configfile_fini): Likewise.
24590 * commands/default.c (grub_default_init, grub_default_fini):
24591 Likewise.
24592 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
24593 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
24594 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
24595 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
24596 Likewise.
24597 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
24598 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
24599 Likewise.
24600 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
24601 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
24602 Likewise.
24603 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
24604 Likewise.
24605 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
24606 Likewise.
24607 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
24608 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
24609 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
24610 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
24611 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
24612 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
24613 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
24614 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
24615 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
24616 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
24617 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
24618 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
24619 * partmap/amiga.c (grub_amiga_partition_map_init)
24620 (grub_amiga_partition_map_fini): Likewise.
24621 * partmap/apple.c (grub_apple_partition_map_init)
24622 (grub_apple_partition_map_fini): Likewise.
24623 * partmap/pc.c (grub_pc_partition_map_init)
24624 (grub_pc_partition_map_fini): Likewise.
24625 * partmap/sun.c (grub_sun_partition_map_init,
24626 grub_sun_partition_map_fini): Likewise.
24627 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
24628 Likewise.
24629
24630 * util/grub-emu.c: Include <grub_modules_init.h>.
24631 (main): Don't initialize and de-initialize any modules directly,
24632 use `grub_init_all' and `grub_fini_all' instead.
24633
24634 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
24635 `grub_vesafb_mod_init'.
24636 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
24637 all users.
24638 * term/i386/pc/vga.c (grub_vga_init): Renamed to
24639 `grub_vga_mod_init'. Updated all users.
24640 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
24641
24642 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
24643 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
24644 rules.
24645
24646 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
24647 Generate a function to initialize the module in utilities.
24648 Updated all callers.
24649 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
24650 initialize the module in utilities. Updated all callers.
24651
24652 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24653
24654 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
24655 escape sequence and a literal ^L to clear the screen.
24656
24657 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
24658 when returning from Open Firmware.
24659
24660 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24661
24662 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
24663 (grub_ofconsole_height): Likewise.
24664 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
24665 manually insert a '\n'.
24666 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
24667 `grub_ofconsole_height'. Return early if these are already set.
24668
24669 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
24670
24671 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
24672 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
24673 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
24674 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
24675 and `normal/script.c'.
24676 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24677 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24678 (test_mod_SOURCES): New variable.
24679 (test_mod_CFLAGS): Likewise.
24680 (test_mod_LDFLAGS): Likewise.
24681 (pkgdata_MODULES): Add `test.mod'.
24682 (grub_script.tab.c): New rule.
24683 (grub_script.tab.h): Likewise.
24684
24685 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
24686
24687 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24688 `commands/test.c', `normal/execute.c', `normal/lexer.c',
24689 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24690 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24691 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24692 (test_mod_SOURCES): New variable.
24693 (test_mod_CFLAGS): Likewise.
24694 (pkgdata_MODULES): Add `test.mod'.
24695 (grub_script.tab.c): New rule.
24696 (grub_script.tab.h): Likewise.
24697
24698 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
24699
24700 Add initial scripting support.
24701
24702 * commands/test.c: New file.
24703 * include/grub/script.h: Likewise.
24704 * normal/execute.c: Likewise.
24705 * normal/function.c: Likewise.
24706 * normal/lexer.c: Likewise.
24707 * normal/parser.y: Likewise.
24708 * normal/script.c: Likewise.
24709
24710 * configure.ac: Add `AC_PROG_YACC' test.
24711
24712 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
24713 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
24714 `normal/function.c' and `normal/script.c'.
24715 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24716 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24717 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
24718 variables.
24719 (pkgdata_MODULES): Add `test.mod'.
24720 (grub_script.tab.c): New rule.
24721 (grub_script.tab.h): Likewise.
24722
24723 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
24724
24725 * include/grub/normal.h (grub_test_init): New prototype.
24726 (grub_test_fini): Likewise.
24727
24728 * normal/command.c: Include <grub/script.h>.
24729 (grub_command_execute): Rewritten.
24730
24731 * util/grub-emu.c (main): Call `grub_test_init' and
24732 `grub_test_fini'.
24733
24734 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24735
24736 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
24737 to 0.
24738 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
24739 there are no pending characters.
24740
24741 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24742
24743 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
24744 `grub_strndup' to drop device arguments. Replace unnecessary
24745 `grub_strndup' with `grub_strdup'.
24746
24747 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24748
24749 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
24750 `debug' environment variable has been set.
24751
24752 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
24753
24754 * Makefile.in (install-local): Use $(DATA).
24755 (uninstall): Likewise.
24756 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
24757 (sbin_UTILITIES): ... to here.
24758 (sbin_SCRIPTS): New variable.
24759 (grub_install_SOURCES): New variable.
24760 * util/powerpc/ieee1275/grub-install.in: New file.
24761 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
24762 variable.
24763 (add_segments): Call `grub_util_get_path'.
24764
24765 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
24766
24767 From Timothy Baldwin:
24768 * commands/ls.c (grub_ls_list_files): Close FILE with
24769 grub_file_close.
24770 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
24771
24772 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
24773
24774 * include/grub/parser.h: New file.
24775
24776 * kern/parser.c: Likewise.
24777
24778 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
24779 (grub_setup_SOURCES): Likewise.
24780 (grub_probefs_SOURCES): Likewise.
24781 (grub_emu_SOURCES): Likewise.
24782 (kernel_img_HEADERS): Add `parser.h'.
24783
24784 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24785 (grub_emu_SOURCES): Add `kern/parser.c'.
24786 (grubof_SOURCES): Likewise.
24787
24788 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24789 (grubof_SOURCES): Add `kern/parser.c'.
24790
24791 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
24792
24793 * kern/misc.c (grub_split_cmdline): Removed function.
24794
24795 * kern/rescue.c: Include <grub/parser.h>.
24796 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
24797 of `grub_split_cmdline'.
24798
24799 * normal/command.c: Include <grub/parser.h>.
24800 (grub_command_execute): Use `grub_parser_split_cmdline' instead
24801 of `grub_split_cmdline'.
24802
24803 * normal/completion.c: Include <grub/parser.h>.
24804 (cmdline_state): New variable.
24805 (iterate_dir): End the filename with a quote depending on the
24806 command line state.
24807 (get_state): new function.
24808 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
24809 split the arguments and determine the current argument. When the
24810 argument string is not quoted, escape all spaces.
24811
24812 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24813
24814 * normal/sparc64/setjmp.S: New file.
24815
24816 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24817
24818 * include/grub/sparc64/libgcc.h: New file.
24819 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
24820 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
24821 normal/sparc64/setjmp.c.
24822
24823 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24824
24825 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
24826 * kern/sparc64/cache.S: New file.
24827 * kern/sparc64/cache.c: Removed.
24828 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
24829 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
24830 -mtune=ultrasparc.
24831 (COMMON_LDFLAGS): Add -melf64_sparc.
24832 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
24833 (grubof_SOURCES): Use cache.S instead of cache.c.
24834 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
24835 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
24836 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
24837 commented though.
24838 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
24839 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
24840 (linux_mod_CFLAGS): Commented out.
24841 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
24842 out because module isn't built.
24843 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
24844 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
24845 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
24846 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
24847 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
24848 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24849 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24850 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
24851 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
24852 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
24853 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24854 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24855 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
24856 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
24857
24858 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
24859
24860 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
24861 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
24862 longer, because HFS should not be used on PC.
24863
24864 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24865
24866 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
24867 consistently within the loop.
24868
24869 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
24870
24871 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
24872 directory can not be read.
24873
24874 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24875
24876 * configure.ac (AC_INIT): Increase the version number to 1.91.
24877
24878 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
24879 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
24880 term/i386/pc/serial.c.
24881
24882 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24883
24884 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
24885 file size must be permitted.
24886
24887 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
24888 between %ah and %al.
24889
24890 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24891
24892 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
24893 grub_uint64_t.
24894 Call the hook with a NUL-terminated filename.
24895 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
24896 grub_cpu_to_be32.
24897
24898 * kern/term.c (cursor_state): New variable.
24899 (grub_term_set_current): Reset the cursor state on a new
24900 terminal.
24901 (grub_setcursor): Rewritten to use CURSOR_STATE.
24902 (grub_getcursor): New function.
24903
24904 * include/grub/term.h (grub_getcursor): New prototype.
24905
24906 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
24907 integers on ARM. Reported by Timothy Baldwin
24908 <T.E.Baldwin99@members.leeds.ac.uk>.
24909
24910 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
24911
24912 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
24913 allocated.
24914 (grub_sfs_dir): Likewise.
24915
24916 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
24917
24918 Add support for the SFS filesystem.
24919
24920 * fs/sfs.c: New file.
24921
24922 * DISTLIST: Added `fs/sfs.c'.
24923
24924 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
24925 (grub_probefs_SOURCES): Likewise.
24926 (grub_emu_SOURCES): Likewise.
24927 (pkgdata_MODULES): Add `sfs.mod'.
24928 (sfs_mod_SOURCES): New variable.
24929 (sfs_mod_CFLAGS): Likewise.
24930 (sfs_mod_LDFLAGS): Likewise.
24931
24932 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
24933 (pkgdata_MODULES): Add `sfs.mod'.
24934 (sfs_mod_SOURCES): New variable.
24935 (sfs_mod_CFLAGS): Likewise.
24936
24937 * util/grub-emu.c (main): Call `grub_sfs_init' and
24938 `grub_sfs_fini'.
24939
24940 * include/grub/fs.h (grub_sfs_init): New prototype.
24941 (grub_sfs_fini): Likewise.
24942
24943 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
24944
24945 Add support for the AFFS filesystem.
24946
24947 * fs/affs.c: New file.
24948
24949 * DISTLIST: Added `fs/affs.c'.
24950
24951 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
24952 (grub_probefs_SOURCES): Likewise.
24953 (grub_emu_SOURCES): Likewise.
24954 (pkgdata_MODULES): Add `affs.mod'.
24955 (affs_mod_SOURCES): New variable.
24956 (affs_mod_CFLAGS): Likewise.
24957 (affs_mod_LDFLAGS): Likewise.
24958
24959 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
24960 (pkgdata_MODULES): Add `affs.mod'.
24961 (affs_mod_SOURCES): New variable.
24962 (affs_mod_CFLAGS): Likewise.
24963
24964 * util/grub-emu.c (main): Call `grub_affs_init' and
24965 `grub_affs_fini'.
24966
24967 * include/grub/fs.h (grub_affs_init): New prototype.
24968 (grub_affs_fini): Likewise.
24969
24970 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
24971
24972 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
24973
24974 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
24975
24976 * configure.ac: Accept `x86_64' as host_cpu. In that case add
24977 `-m32' to CFLAGS.
24978
24979 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
24980 linking.
24981
24982 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
24983 (COMMON_LDFLAGS): New variable.
24984 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
24985 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
24986 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
24987 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
24988 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
24989 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
24990 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
24991 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
24992 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
24993 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
24994 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24995 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24996 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
24997 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
24998 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
24999 variables.
25000 (normal_mod_ASFLAGS): Add `-m32'.
25001
25002 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
25003 (grub_host_size_t, grub_host_ssize_t): New types.
25004 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
25005 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
25006 `GRUB_HOST_SIZEOF_VOID_P'.
25007
25008 * include/grub/kernel.h (struct grub_module_header): Type of
25009 member offset changed to `grub_host_off_t'. Type of member size
25010 changed to `grub_host_size_t'.
25011 (struct grub_module_info): Type of member offset changed to
25012 `grub_host_off_t'. Type of member size changed to
25013 `grub_host_size_t'.
25014
25015 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
25016
25017 Make GRUB's kernel compliant to Multiboot Specification.
25018
25019 * kern/i386/pc/startup.S (multiboot_header): New label.
25020 (multiboot_entry): Likewise.
25021 (multiboot_trampoline): Likewise.
25022
25023 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25024 Increased to 0x4A0.
25025
25026 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
25027 put parentheses after a question mark.
25028 [!GRUB_UTIL] (my_mod): New variable.
25029
25030 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
25031
25032 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
25033
25034 Adds support for the XFS filesystem. Btrees are not supported
25035 yet.
25036
25037 * fs/xfs.c: New file.
25038
25039 * DISTLIST: Added `fs/xfs.c'.
25040
25041 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
25042 (grub_probefs_SOURCES): Likewise.
25043 (grub_emu_SOURCES): Likewise.
25044 (pkgdata_MODULES): Add `xfs.mod'.
25045 (xfs_mod_SOURCES): New variable.
25046 (xfs_mod_CFLAGS): Likewise.
25047
25048 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
25049 (pkgdata_MODULES): Add `xfs.mod'.
25050 (xfs_mod_SOURCES): New variable.
25051 (xfs_mod_CFLAGS): Likewise.
25052
25053 * util/grub-emu.c (main): Call `grub_xfs_init' and
25054 `grub_xfs_fini'.
25055
25056 * include/grub/fs.h (grub_xfs_init): New prototype.
25057 (grub_xfs_fini): Likewise.
25058
25059
25060 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
25061
25062 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
25063 color modes, allow greater than 16 colors to be configured as
25064 a default palette.
25065
25066 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
25067
25068 * normal/completion.c (complete_arguments): Add the qualifier
25069 const into OPTIONS.
25070
25071 From Omniflux <omniflux+lists@omniflux.com>:
25072 * include/grub/terminfo.h: New file.
25073 * include/grub/tparm.h: Likewise.
25074 * include/grub/i386/pc/serial.h: Likewise.
25075 * term/terminfo.c: Likewise.
25076 * term/tparm.c: Likewise.
25077 * term/i386/pc/serial.c: Likewise.
25078 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
25079 serial.mod.
25080 (terminfo_mod_SOURCES): New variable.
25081 (terminfo_mod_CFLAGS): Likewise.
25082 (serial_mod_SOURCES): Likewise.
25083 (serial_mod_CFLAGS): Likewise.
25084
25085 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
25086
25087 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
25088 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
25089 and kern/powerpc/ieee1275/cmain.c, respectively.
25090
25091 * boot/powerpc/ieee1275/crt0.S: Moved to ...
25092 * kern/powerpc/ieee1275/crt0.S: ... here.
25093
25094 * boot/powerpc/ieee1275/cmain.c: Moved to ...
25095 * kern/powerpc/ieee1275/cmain.c: ... here.
25096
25097 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
25098 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
25099 instead of boot/powerpc/ieee1275/crt0.S and
25100 boot/powerpc/ieee1275/cmain.c, respectively.
25101
25102 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
25103 sectors. It was not used anyway.
25104
25105 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
25106
25107 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
25108 `unused parameter' warning.
25109
25110 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
25111
25112 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
25113 function.
25114 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
25115 getcharwidth.
25116
25117 2005-08-28 Marco Gerards <metgerards@student.han.nl>
25118
25119 * include/grub/normal.h (enum grub_completion_type): Added
25120 `GRUB_COMPLETION_TYPE_ARGUMENT'.
25121
25122 * normal/cmdline.c (print_completion): Handle
25123 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
25124 * normal/menu_entry.c (store_completion): Likewise.
25125
25126 * normal/completion.c (complete_arguments): New function.
25127 (grub_normal_do_completion): Call `complete_arguments' when the
25128 current words start with a dash.
25129
25130 2005-08-27 Marco Gerards <metgerards@student.han.nl>
25131
25132 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
25133 `gzio.mod' instead of `io.mod').
25134
25135 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
25136
25137 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
25138 (DISTDIRS): Added io and video.
25139 Rewrite the search routine to make an output consistently.
25140
25141 * DISTLIST: Added conf/sparc64-ieee1275.mk,
25142 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
25143 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
25144 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
25145 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
25146 util/powerpc/ieee1275/misc.c.
25147
25148 * include/grub/gzio.h: New file.
25149 * io/gzio.c: Likewise.
25150
25151 * kern/file.c (grub_file_close): Call grub_device_close only if
25152 FILE->DEVICE is not NULL.
25153
25154 * include/grub/mm.h [!NULL] (NULL): New macro.
25155
25156 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
25157
25158 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
25159 (pkgdata_MODULES): Added gzio.mod.
25160 (gzio_mod_SOURCES): New variable.
25161 (gzio_mod_CFLAGS): Likewise.
25162
25163 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
25164 (pkgdata_MODULES): Added gzio.mod.
25165 (gzio_mod_SOURCES): New variable.
25166 (gzio_mod_CFLAGS): Likewise.
25167
25168 * commands/cat.c: Include grub/gzio.h.
25169 (grub_cmd_cat): Use grub_gzfile_open instead of
25170 grub_file_open.
25171
25172 * commands/cmp.c: Include grub/gzio.h.
25173 (grub_cmd_cmp): Use grub_gzfile_open instead of
25174 grub_file_open.
25175
25176 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
25177 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
25178 grub_file_open.
25179 (grub_rescue_cmd_module): Likewise.
25180
25181 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
25182
25183 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
25184 kern/sparc64/ieee1275/init.c because it contains _start.
25185 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
25186
25187 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
25188
25189 * configure.ac: Add support for sparc64 host with ieee1275
25190 firmware.
25191 * configure: Generated from configure.ac.
25192 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
25193 instead of int.
25194 (grub_ofdisk_read): Likewise.
25195 (grub_ofdisk_open): Use %p to print pointer values, and cast the
25196 pointers as (void *) to remove a warning.
25197 (grub_ofdisk_close): Likewise.
25198 (grub_ofdisk_read): Likewise.
25199 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
25200 returns, so make it return void to remove a warning.
25201 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
25202 Corresponding prototype change.
25203 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
25204 values, and cast the pointers as (void *) to remove a warning.
25205 (grub_mm_dump): Likewise.
25206 * conf/sparc64-ieee1275.mk: New file.
25207 * conf/sparc64-ieee1275.rmk: Likewise.
25208 * include/grub/sparc64/setjmp.h: Likewise.
25209 * include/grub/sparc64/types.h: Likewise.
25210 * include/grub/sparc64/ieee1275/console.h: Likewise.
25211 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
25212 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
25213 * include/grub/sparc64/ieee1275/time.h: Likewise.
25214 * kern/sparc64/cache.c: Likewise.
25215 * kern/sparc64/dl.c: Likewise.
25216 * kern/sparc64/ieee1275/init.c: Likewise.
25217 * kern/sparc64/ieee1275/openfw.c: Likewise.
25218
25219 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
25220
25221 * util/console.c (grub_ncurses_putchar): If C is greater than
25222 0x7f, set C to a question mark.
25223 (grub_ncurses_getcharwidth): New function.
25224 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
25225 getcharwidth.
25226
25227 * normal/menu.c (print_entry): Made aware of Unicode. First,
25228 convert TITLE to UCS-4, and predict the cursor position by
25229 grub_getcharwidth.
25230
25231 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
25232 const to SRC.
25233 * kern/misc.c (grub_utf16_to_utf8): Likewise.
25234
25235 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
25236
25237 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
25238 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
25239 grub_strcat.
25240
25241 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
25242 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
25243 grub_strcpy and grub_strlen. Take it into account that a space
25244 character is inserted as a delimiter.
25245
25246 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
25247
25248 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
25249 invalid magic in the error.
25250
25251 * commands/search.c: New file.
25252
25253 * util/grub-emu.c (main): Call grub_search_init and
25254 grub_search_fini.
25255
25256 * kern/rescue.c (grub_rescue_print_disks): Removed.
25257 (grub_rescue_print_devices): New function.
25258 (grub_rescue_cmd_ls): Use grub_device_iterate with
25259 grub_rescue_print_devices instead of grub_disk_dev_iterate with
25260 grub_rescue_print_disks.
25261
25262 * kern/partition.c (grub_partition_iterate): Return the result of
25263 PARTMAP->ITERATE instead of GRUB_ERRNO.
25264
25265 * kern/device.c: Include grub/partition.h.
25266 (grub_device_iterate): New function.
25267
25268 * include/grub/partition.h (grub_partition_iterate): Return int
25269 instead of grub_err_t.
25270
25271 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
25272 prototype.
25273 [GRUB_UTIL] (grub_search_fini): Likewise.
25274
25275 * include/grub/device.h (grub_device_iterate): New prototype.
25276
25277 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25278 commands/search.c.
25279 (pkgdata_MODULES): Added search.mod.
25280 (search_mod_SOURCES): New variable.
25281 (search_mod_CFLAGS): Likewise.
25282
25283 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
25284 (pkgdata_MODULES): Added search.mod.
25285 (search_mod_SOURCES): New variable.
25286 (search_mod_CFLAGS): Likewise.
25287
25288 * commands/ls.c (grub_ls_list_disks): Renamed to ...
25289 (grub_ls_list_devices): ... this, and use grub_device_iterate.
25290 All callers changed.
25291
25292 * DISTLIST: Added commands/search.c.
25293
25294 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
25295
25296 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
25297 conversion.
25298 (grub_getcharwidth): New function.
25299
25300 * kern/misc.c (grub_utf8_to_ucs4): New function.
25301
25302 * include/grub/term.h (struct grub_term): Added a new member
25303 "getcharwidth".
25304 (grub_getcharwidth): New prototype.
25305
25306 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
25307
25308 * term/i386/pc/console.c (map_char): New function. Segregated from
25309 grub_console_putchar.
25310 (grub_console_putchar): Use map_char.
25311 (grub_console_getcharwidth): New function.
25312 (grub_console_term): Specified grub_console_getcharwidth as
25313 getcharwidth.
25314
25315 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
25316 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
25317
25318 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
25319 GRUB_ERRNO.
25320 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
25321 on grub_strtoul completely.
25322 (write_char): Declare local variables in the beginning of the
25323 function.
25324 (grub_vesafb_getcharwidth): New function.
25325 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
25326 getcharwidth.
25327
25328 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
25329
25330 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
25331 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
25332 commands/i386/pc/vbetest.c.
25333
25334 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
25335 call grub_vbe_get_controller_info again, because the returned
25336 information is volatile.
25337 (grub_vbe_set_video_mode): Mostly rewritten.
25338 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
25339 grub_vbe_status_t correctly.
25340 (grub_vbe_get_video_mode_info): Likewise.
25341 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
25342 several if statements.
25343
25344 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
25345 * commands/i386/pc/vbeinfo.c: ... this.
25346
25347 * commands/i386/pc/vbe_test.c: Renamed to ...
25348 * commands/i386/pc/vbetest.c: ... this.
25349
25350 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
25351 ...
25352 (grub_cmd_vbeinfo): ... this. Save video modes before
25353 iterating. Skip a video mode, if it is not available, not enough
25354 information is given or it is monochrome. Show the memory
25355 model. Leave the interpretation of MODEVAR to grub_strtoul
25356 completely.
25357 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
25358 (GRUB_MOD_FINI): Likewise.
25359
25360 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
25361 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
25362 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
25363 duplicated grub_env_get. Leave the interpretation of MODEVAR to
25364 grub_strtoul completely.
25365 (real2pm): Removed.
25366 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
25367 (GRUB_MOD_FINI): Likewise.
25368
25369 * normal/misc.c: Include grub/mm.h.
25370
25371 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
25372 vbe_list_modes with vbetest.mod and vbeinfo.mod.
25373 (vbe_list_modes_mod_SOURCES): Removed.
25374 (vbe_list_modes_mod_CFLAGS): Likewise.
25375 (vbe_test_mod_SOURCES): Likewise.
25376 (vbe_test_mod_CFLAGS): Likewise.
25377 (vbeinfo_mod_SOURCES): New variable.
25378 (vbeinfo_mod_CFLAGS): Likewise.
25379 (vbetest_mod_SOURCES): Likewise.
25380 (vbetest_mod_CFLAGS): Likewise.
25381
25382 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
25383
25384 * normal/misc.c: New file.
25385
25386 * DISTLIST: Added normal/misc.c.
25387
25388 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
25389 DISK to HOOK. Call HOOK with DISK.
25390 * partmap/apple.c (apple_partition_map_iterate): Likewise.
25391 * partmap/pc.c (pc_partition_map_iterate): Likewise.
25392 * partmap/sun.c (sun_partition_map_iterate): Likewise.
25393
25394 * normal/menu_entry.c (struct screen): Added a new member
25395 "completion_shown".
25396 (completion_buffer): New global variable.
25397 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
25398 (store_completion): New function.
25399 (complete): Likewise.
25400 (clear_completions): Likewise.
25401 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
25402 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
25403 a tab, call complete.
25404
25405 * normal/completion.c (disk_dev): Removed.
25406 (print_simple_completion): Likewise.
25407 (print_partition_completion): Likewise.
25408 (print_func): New global variable.
25409 (add_completion): Do not take the arguments WHAT or PRINT any
25410 longer. Added a new argument TYPE. Instead of printing directly,
25411 call PRINT_FUNC if not NULL.
25412 All callers changed.
25413 (complete_device): Use a local variable DEV instead of
25414 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
25415 (grub_normal_do_completion): Take a new argument HOOK. Do not
25416 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
25417 empty string, return NULL instead.
25418 All callers changed.
25419
25420 * normal/cmdline.c (print_completion): New function.
25421
25422 * kern/partition.c (grub_partition_iterate): Add an argument DISK
25423 to HOOK.
25424 All callers changed.
25425
25426 * kern/disk.c (grub_print_partinfo): Removed.
25427
25428 * include/grub/partition.h (struct grub_partition_map): Add a new
25429 argument DISK into HOOK of ITERATE.
25430 (grub_partition_iterate): Add a new argument DISK to HOOK.
25431
25432 * include/grub/normal.h (enum grub_completion_type): New enum.
25433 (grub_completion_type_t): New type.
25434 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
25435 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
25436 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
25437 (GRUB_COMPLETION_TYPE_FILE): Likewise.
25438 (grub_normal_do_completion): Added a new argument HOOK.
25439 (grub_normal_print_device_info): New prototype.
25440
25441 * include/grub/disk.h (grub_print_partinfo): Removed.
25442
25443 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
25444 (normal_mod_SOURCES): Likewise.
25445 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25446 (normal_mod_SOURCES): Likewise.
25447
25448 * commands/ls.c (grub_ls_list_disks): Use
25449 grub_normal_print_device_info instead of grub_print_partinfo. Free
25450 PNAME.
25451 (grub_ls_list_files): Use grub_normal_print_device_info instead of
25452 duplicating the code.
25453
25454 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
25455
25456 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
25457 follow GCS more precisely.
25458 * commands/i386/pc/vbe_test.c: Likewise.
25459 * include/grub/i386/pc/vbe.h: Likewise.
25460 * term/i386/pc/vesafb.c: Likewise.
25461 * video/i386/pc/vbe.c: Likewise.
25462
25463 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
25464
25465 * DISTLIST: Added term/i386/pc/vesafb.c
25466 DISTLIST: Added video/i386/pc/vbe.c
25467 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
25468 DISTLIST: Added commands/i386/pc/vbe_test.c.
25469 * commands/i386/pc/vbe_list_modes.c: New file.
25470 * commands/i386/pc/vbe_test.c: Likewise.
25471 * term/i386/pc/vesafb.c: Likewise.
25472 * video/i386/pc/vbe.c: Likewise.
25473 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
25474 (grub_vbe_probe) Added prototype.
25475 (grub_vbe_set_video_mode) Likewise.
25476 (grub_vbe_get_video_mode) Likewise.
25477 (grub_vbe_get_video_mode_info) Likewise.
25478 (grub_vbe_set_pixel_rgb) Likewise.
25479 (grub_vbe_set_pixel_index) Likewise.
25480 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
25481 (pkgdata_MODULES): Added vesafb.mod.
25482 (pkgdata_MODULES): Added vbe_list_modes.mod.
25483 (pkgdata_MODULES): Added vbe_test.mod.
25484 (vbe_mod_SOURCES): Added.
25485 (vbe_mod_CFLAGS): Likewise.
25486 (vesafb_mod_SOURCES): Likewise.
25487 (vesafb_mod_CFLAGS): Likewise.
25488 (vbe_list_modes_mod_SOURCES): Likewise.
25489 (vbe_list_modes_mod_CFLAGS): Likewise.
25490 (vbe_test_mod_SOURCES): Likewise.
25491 (vbe_test_mod_CFLAGS): Likewise.
25492
25493 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
25494
25495 * normal/command.c (grub_command_execute): If INTERACTIVE is
25496 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
25497 CMDLINE. Disable the pager if INTERACTIVE is true.
25498 All callers are changed.
25499
25500 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
25501 before reading a config file.
25502 * normal/main.c (read_config_file): Even if a command is not
25503 found, register it if it is within an entry.
25504
25505 * util/grub-emu.c: Include sys/types.h and unistd.h.
25506 (options): Added --hold.
25507 (struct arguments): Added a new member "hold".
25508 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
25509 missing.
25510 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
25511 cleared by a debugger, if it is not zero.
25512
25513 * include/grub/normal.h (grub_command_execute): Add an argument
25514 INTERACTIVE.
25515
25516 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
25517
25518 * DISTLIST: Added include/grub/i386/pc/vbe.h.
25519
25520 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
25521
25522 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
25523 program with another one, because the old one didn't detect a bug
25524 in gcc-3.4. Always use regparm 2, because the new test is still
25525 not enough for gcc-4.0. Someone must investigate a simple test
25526 case which detects a bug in gcc-4.0.
25527
25528 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
25529
25530 * DISTLIST: Added normal/completion.c.
25531
25532 * normal/completion.c: New file.
25533
25534 * term/i386/pc/console.c (grub_console_getwh): New function.
25535 (grub_console_term): Assign grub_console_getwh to getwh.
25536
25537 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
25538 function is defined in normal/completion.c as
25539 grub_normal_do_completion.
25540 (grub_cmdline_get): Use grub_normal_do_completion instead of
25541 grub_tab_complete.
25542
25543 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
25544 returns non-zero, otherwise return 0.
25545 (grub_partition_iterate): First, probe the partition map. Then,
25546 call ITERATE only for this partition map.
25547
25548 * kern/misc.c (grub_strncmp): Rewritten.
25549
25550 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
25551 returns non-zero. Otherwise return 0.
25552
25553 * include/grub/partition.h (grub_partition_map_iterate): Return
25554 int instead of void.
25555
25556 * include/grub/normal.h (grub_normal_do_completion): New prototype.
25557
25558 * include/grub/misc.h (grub_strncmp): Change the type of N to
25559 grub_size_t.
25560
25561 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
25562 of void.
25563
25564 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
25565 unsigned explicitly before comparing it with I.
25566
25567 * kern/main.c (grub_env_write_root): Add the attribute unused into
25568 VAR.
25569
25570 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25571 normal/completion.c.
25572 (normal_mod_SOURCES): Likewise.
25573 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
25574 (normal_mod_SOURCES): Likewise.
25575
25576 * normal/command.c (grub_iterate_commands): If ITERATE returns
25577 non-zero, return one immediately.
25578
25579 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
25580
25581 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
25582 * kern/i386/pc/startup.S: Updated Global Descriptor table's
25583 descriptions.
25584 (grub_vbe_get_controller_info): New function.
25585 (grub_vbe_get_mode_info): Likewise.
25586 (grub_vbe_set_mode): Likewise.
25587 (grub_vbe_get_mode): Likewise.
25588 (grub_vbe_set_memory_window): Likewise.
25589 (grub_vbe_get_memory_window): Likewise.
25590 (grub_vbe_set_scanline_length): Likewise.
25591 (grub_vbe_get_scanline_length): Likewise.
25592 (grub_vbe_set_display_start): Likewise.
25593 (grub_vbe_get_display_start): Likewise.
25594 (grub_vbe_set_palette_data): Likewise.
25595 * include/grub/i386/pc/vbe.h: New file.
25596
25597 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25598
25599 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25600 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
25601 * DISTLIST: Likewise.
25602 * kern/ieee1275/of.c: Moved to ...
25603 * kern/ieee1275/ieee1275.c: ... here.
25604
25605 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25606
25607 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
25608 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
25609 Pass 0 as `end' parameter to grub_strtoul().
25610
25611 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25612
25613 * include/grub/powerpc/ieee1275/console.h: Do not include
25614 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
25615 ifdef.
25616 (grub_console_cur_color): Remove i386-specific prototype.
25617 (grub_console_real_putchar): Likewise.
25618 (grub_console_checkkey): Likewise.
25619 (grub_console_getkey): Likewise.
25620 (grub_console_getxy): Likewise.
25621 (grub_console_gotoxy): Likewise.
25622 (grub_console_cls): Likewise.
25623 (grub_console_setcursor): Likewise.
25624 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
25625 Include <grub/machine/console.h>.
25626 * term/ieee1275/ofconsole.c: Likewise.
25627
25628 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
25629
25630 * Makefile.in (LIBLZO): New variable.
25631
25632 * configure.ac: Check for LZO version 2.
25633
25634 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
25635 lzo/lzo1x.h instead of lzo1x.h.
25636
25637 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
25638 of -llzo.
25639
25640 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
25641 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
25642
25643 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
25644 copying the data from PARTITION to P.
25645
25646 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25647
25648 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
25649 negative, unload the module.
25650
25651 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
25652 map is "pc_partition_map" but not "pc".
25653 (usage): Fix the description. The options are --boot-image and
25654 --core-image but not --boot-file or --core-file.
25655 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
25656 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
25657 DEFAULT_DIRECTORY.
25658
25659 * util/i386/pc/grub-install.in: Do not specify --boot-file or
25660 --core-file. Specify INSTALL_DEVICE as an argument.
25661
25662 * util/console.c: Include config.h.
25663 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
25664 [HAVE_NCURSES_H]: Include ncurses.h.
25665 [HAVE_CURSES_H]: Include curses.h.
25666 [!A_NORMAL] (A_NORMAL): Defined as zero.
25667 [!A_STANDOUT] (A_STANDOUT): Likewise.
25668
25669 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
25670 -lncurses.
25671 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
25672
25673 * configure.ac: Check for curses libraries and headers.
25674
25675 * Makefile.in (LIBCURSES): New variable.
25676
25677 * genmk.rb (Script::rule): Set the executable bits.
25678
25679 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
25680 name of the PC partition map is "pc_partition_map" but not "pc".
25681
25682 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25683
25684 * util/i386/pc/grub-install.in (grub_probefs): New variable.
25685 (modules): Likewise.
25686 (usage): Added descriptions for --modules and --grub-probefs.
25687 Handle --modules and --grub-probefs. Save the arguments in MODULES
25688 and GRUB_PROBEFS, respectively.
25689 Auto-detect a filesystem module against GRUBDIR. If the result is
25690 empty and modules are not specified explicitly, abort the
25691 installation. Add the result to MODULES.
25692
25693 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
25694 disk/powerpc/ieee1275/ofdisk.c,
25695 include/grub/powerpc/ieee1275/init.h and
25696 term/powerpc/ieee1275/ofconsole.c.
25697 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
25698 term/ieee1275/ofconsole.c.
25699
25700 * include/grub/powerpc/ieee1275/console.h: Resurrected.
25701
25702 * COPYING: Upgraded to the latest version. Only the address of the
25703 FSF office has changed.
25704
25705 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25706
25707 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25708 kern/ieee1275.c with kern/ieee1275/of.c.
25709
25710 * kern/ieee1275.c: Moved to ...
25711 * kern/ieee1275/of.c: ... here.
25712
25713 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
25714
25715 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
25716 readability.
25717
25718 * config.guess: Updated to the latest version from gnulib.
25719 * config.sub: Likewise.
25720 * install.sh: Likewise.
25721 * mkinstalldirs: Likewise.
25722
25723 * include/grub/console.h: Removed. This file is arch-specific. Do
25724 not put this in include/grub.
25725
25726 * include/grub/i386/pc/console.h: Resurrected.
25727
25728 * util/console.c: Include grub/machine/console.h instead of
25729 grub/console.h.
25730 * util/grub-emu.c: Likewise.
25731
25732 2005-08-04 Marco Gerards <metgerards@student.han.nl>
25733
25734 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
25735 hardcoded value.
25736
25737 From Vincent Pelletier <subdino2004@yahoo.fr>
25738 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
25739 Redefined to use grub_getwh.
25740 (grub_term): New member named getwh.
25741 (grub_getwh): New prototype.
25742 * kern/term.c (grub_getwh): New function.
25743 * term/i386/pc/console.c (grub_console_getwh): New function.
25744 (grub_console_term): New member `getwh'.
25745 * term/i386/pc/vga.c (grub_vga_getwh): New function.
25746 (grub_vga_term): New member `getwh'.
25747 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
25748 grub_ssize_t.
25749 (grub_ofconsole_getw): New function.
25750 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
25751 (grub_ofconsole_term): New field named getwh and new initial
25752 value.
25753
25754 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
25755
25756 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
25757 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
25758 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
25759 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
25760 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
25761 of <grub/machine/ieee1275.h>.
25762 * commands/ieee1275/reboot.c: Likewise.
25763 * boot/powerpc/ieee1275/ieee1275.c: Move ...
25764 * kern/ieee1275.c: ... to here. All users updated. Change all
25765 parameter structs to use new type `grub_ieee1275_cell_t'.
25766 * term/powerpc/ieee1275/ofconsole.c: Move ...
25767 * term/ieee1275/ofconsole.c: ... to here. All users updated.
25768 * disk/powerpc/ieee1275/ofdisk.c: Move ...
25769 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
25770 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
25771 to return int.
25772 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
25773 Remove unused prototypes. All users updated.
25774 * include/grub/powerpc/ieee1275/console.h: Removed.
25775 * include/grub/powerpc/ieee1275/ieee1275.h: Define
25776 `grub_ieee1275_cell_t'.
25777 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
25778 Cast comparisons with -1 to the correct type.
25779 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
25780 type to match `grub_ieee1275_entry_fn'.
25781
25782 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
25783
25784 * DISTLIST: Added util/i386/pc/grub-probefs.c.
25785
25786 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
25787 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
25788 partmap/sun.c.
25789 (grub_probefs_SOURCES): New variable.
25790
25791 * util/i386/pc/grub-probefs.c: New file.
25792
25793 * util/i386/pc/grub-setup.c (main): Call
25794 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
25795 grub_hfs_init and grub_jfs_init to initialize the system. Call
25796 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
25797 grub_pc_partition_map_fini to finish the system.
25798
25799 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
25800
25801 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
25802 function.
25803 (grub_multiboot_load_elf32): Likewise.
25804 (grub_multiboot_is_elf64): Likewise.
25805 (grub_multiboot_load_elf64): Likewise.
25806 (grub_multiboot_load_elf): Likewise.
25807 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
25808 an ELF32 or ELF64 file.
25809 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
25810
25811 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
25812 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
25813 NULL before calling FS->LABEL.
25814 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
25815 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
25816 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
25817 before calling FS->LABEL.
25818
25819 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
25820
25821 * util/i386/pc/grub-install.in (datadir): New variable.
25822 (libdir): Removed.
25823 (pkgdatadir): New variable.
25824 (pkglibdir): Removed.
25825
25826 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
25827
25828 * DISTLIST: Added util/i386/pc/grub-install.in.
25829
25830 * util/i386/pc/grub-install.in: New file.
25831
25832 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
25833 (grub_install_SOURCES): Likewise.
25834
25835 * genmk.rb: Added support for scripts.
25836 (Script): New class.
25837 (scripts): New variable.
25838
25839 * Makefile.in (install-local): Install sbin_SCRIPTS by
25840 INSTALL_SCRIPT.
25841 (uninstall): Remove sbin_SCRIPTS.
25842
25843 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
25844 device, try to get a GRUB device by
25845 grub_util_biosdisk_get_grub_dev.
25846 Free DEST_DEV.
25847
25848 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
25849 description for --device-map.
25850
25851 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25852
25853 Change the semantics of variable hooks. They now return strings
25854 instead of error values.
25855
25856 * util/i386/pc/grub-setup.c: Include grub/env.h.
25857 (setup): Use grub_device_set_root instead of grub_env_set.
25858
25859 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
25860 grub_env_get instead of grub_device_set_root and
25861 grub_device_get_root, respectively.
25862
25863 * kern/main.c (grub_env_write_root): New function.
25864 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
25865 grub_env_set instead of grub_device_set_root.
25866
25867 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
25868 many variables.
25869 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
25870 rather than calling ENV->WRITE_HOOK afterwards.
25871 (grub_env_get): Return the result of ENV->READ_HOOK rather than
25872 passing a pointer of a pointer.
25873 (grub_register_variable_hook): Change the types of "read_hook" and
25874 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
25875 respectively.
25876 Allocate the default empty string on the heap, because this string
25877 may be freed later.
25878
25879 * kern/device.c: Include grub/env.h.
25880 (grub_device_set_root): Removed.
25881 (grub_device_get_root): Likewise.
25882 (grub_device_open): Use grub_env_get instead of
25883 grub_device_get_root.
25884
25885 * include/grub/env.h (grub_env_read_hook_t): New type.
25886 (grub_env_write_hook_t): Likewise.
25887 (grub_env_var): Change the types of "read_hook" and "write_hook"
25888 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
25889 (grub_register_variable_hook): Likewise.
25890
25891 * include/grub/device.h (grub_device_set_root): Removed.
25892 (grub_device_set_root): Likewise.
25893
25894 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
25895 make sure that DIRNAME terminates with '/', so that
25896 grub_fat_find_dir will fail if PATH is not a directory.
25897
25898 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
25899 from DIRNAME.
25900 Use the qualifier auto for print_files and print_files_long.
25901 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
25902 as a regular file.
25903 Put a newline only if there is no error.
25904 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
25905 used.
25906
25907 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25908
25909 * kern/partition.c (grub_partition_probe): Initialize PART to
25910 NULL. Otherwise, when no partition map is registered, this returns
25911 a garbage.
25912
25913 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
25914
25915 * partmap/apple.c (apple_partition_map_iterate): Check if POS
25916 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
25917 valid.
25918
25919 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
25920
25921 * commands/ls.c (grub_ls_list_disks): Print the filesystem
25922 information on each device, if it does not have partitions. Print
25923 "Device" instead of "Disk", because this function is not specific
25924 to disk devices.
25925
25926 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
25927 static to ensure that it is put on the memory rather than a
25928 register.
25929
25930 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25931
25932 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
25933 (grub_cat_init): Likewise.
25934 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
25935 (options): Likewise.
25936 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25937 (grub_configfile_init): Likewise.
25938 * font/manager.c (GRUB_MOD_INIT): Likewise.
25939 * commands/help.c (GRUB_MOD_INIT): Likewise.
25940 (grub_help_init): Likewise.
25941 * normal/command.c (grub_command_init): Likewise.
25942 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
25943 * disk/loopback.c (grub_loop_init): Likewise.
25944 (GRUB_MOD_INIT): Likewise.
25945 * commands/ls.c (grub_ls_init): Likewise.
25946 (GRUB_MOD_INIT): Likewise.
25947 (options): Likewise.
25948 * commands/boot.c (grub_boot_init): Likewise.
25949 (GRUB_MOD_INIT): Likewise.
25950 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
25951 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
25952 (GRUB_MOD_INIT): Likewise.
25953 * commands/cmp.c (grub_cmp_init): Likewise.
25954 (GRUB_MOD_INIT): Likewise.
25955
25956 * normal/arg.c: Use <> instead of "" to include header files.
25957 (SHORT_ARG_HELP): New macro.
25958 (SHORT_ARG_USAGE): Likewise.
25959 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
25960 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
25961 descriptions.
25962 (find_short): Check if C is 'h' or 'u' explicitly.
25963 (grub_arg_show_help): Use space characters instead of tabs. Treat
25964 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
25965 are shown with --help and --usage only if they are not used for
25966 the command itself.
25967 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
25968 'h' and 'u'.
25969
25970 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
25971 const into "longarg". Change the type of "shortarg" to int.
25972
25973 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25974
25975 * boot/i386/pc/boot.S (boot_drive_check): New label.
25976
25977 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
25978 macro.
25979
25980 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
25981 which do not pass a boot drive correctly. Copied from GRUB Legacy.
25982
25983 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25984
25985 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
25986 When turning off Gate A20, skip the check and return immediately,
25987 because this is not fatal usually.
25988
25989 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25990
25991 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
25992 be 0x7C00 instead of 0x8000.
25993
25994 * boot/i386/pc/pxeboot.S: Rewritten.
25995
25996 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
25997 EXT_C.
25998 (gate_a20_check_state): Read a byte from 0x108000. Invert the
25999 result.
26000
26001 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
26002
26003 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
26004 robustness. This routine now supports a BIOS call and System
26005 Control Port A to modify the gate A20.
26006
26007 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
26008 Increased to 0x440.
26009
26010 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
26011
26012 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
26013 device path and resulting ihandle.
26014 (grub_ofdisk_close): dprintf the ihandle being closed.
26015 (grub_ofdisk_read): dprintf function parameters.
26016 * kern/mm.c (grub_mm_init_region): Likewise.
26017 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
26018 (grub_linux_boot): dprintf the Linux entry point, initrd address and
26019 size, and boot arguments.
26020 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
26021 before loading into memory.
26022 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
26023 before loading into memory.
26024
26025 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
26026
26027 * kern/mm.c: Added much documentation.
26028 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
26029 8, set to 5 instead of 8.
26030
26031 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
26032
26033 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
26034
26035 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
26036 (grub_mkdevicemap_SOURCES): New variable.
26037
26038 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
26039 lib/device.c of GRUB Legacy.
26040
26041 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
26042
26043 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
26044 instead of PATH is NULL.
26045
26046 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
26047
26048 * commands/cmp.c (BUFFER_SIZE): New macro.
26049 (grub_cmd_cmp): Close the right file at the right time. Compare
26050 only data just read. Don't report files of different size as
26051 identical. Dynamically allocate buffers. Move variable
26052 declarations at the beginning of function.
26053
26054 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
26055
26056 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
26057 reverse.
26058
26059 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
26060
26061 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
26062 when backspace is pressed at beginning of line.
26063
26064 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
26065
26066 * DISTLIST: Added genfslist.sh.
26067
26068 * normal/main.c (fs_module_list): New variable.
26069 (autoload_fs_module): New function.
26070 (read_fs_list): Likewise.
26071 (grub_normal_execute): Call read_fs_list.
26072
26073 * kern/fs.c (grub_fs_autoload_hook): New variable.
26074 (grub_fs_probe): Added support for auto-loading.
26075
26076 * include/grub/normal.h (struct grub_fs_module_list): New struct.
26077 (grub_fs_module_list_t): New type.
26078
26079 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
26080 (grub_fs_autoload_hook): New prototype.
26081
26082 * genfslist.sh: New file.
26083
26084 * genmk.rb: Added a rule to generate a filesystem list.
26085
26086 2005-06-30 Marco Gerards <metgerards@student.han.nl>
26087
26088 * configure.ac: Fix the test for cross-compiling.
26089
26090 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
26091 define GRUB_UTIL anymore.
26092
26093 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
26094 so this function works on other systems than just big endian.
26095 (load_modules): Likewise.
26096 (add_segments): Likewise.
26097
26098 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
26099
26100 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
26101 contains `l' modifier, get a long from va_arg().
26102
26103 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
26104
26105 * kern/mm.c (grub_free): If the next free block which is being
26106 merged is the first free block, set the first block to the block
26107 being freed.
26108 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
26109
26110 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
26111
26112 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
26113 `grub_ieee1275_chosen'.
26114
26115 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
26116
26117 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
26118 (grub_ieee1275_chosen): New variable.
26119 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
26120 `chosen'.
26121 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
26122 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26123 Rename first argument to `phandle' for consistency.
26124 (grub_ieee1275_get_property_length): Likewise.
26125 (grub_ieee1275_next_property): Likewise. Change type of first argument
26126 to grub_ieee1275_phandle_t.
26127 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
26128 Move export next to declaration.
26129 (grub_ieee1275_chosen): New variable.
26130 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
26131 Correct cosmetic typo.
26132 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
26133 `grub_ieee1275_chosen'.
26134 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
26135 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
26136 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
26137 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
26138 `grub_ieee1275_chosen'.
26139
26140 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
26141
26142 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
26143 /chosen/bootargs.
26144 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
26145 /chosen/bootargs as "variable=value" pairs.
26146
26147 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
26148
26149 * include/grub/misc.h (grub_dprintf): New macro.
26150 (grub_real_dprintf): New prototype.
26151 (grub_strword): Likewise.
26152 (grub_iswordseparator): Likewise.
26153 * kern/misc.c (grub_real_dprintf): New function.
26154 (grub_strword): Likewise.
26155 (grub_iswordseparator): Likewise.
26156
26157 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
26158
26159 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
26160 (roundup): Remove macro.
26161 (grub_ieee1275_flags): Make static.
26162 (grub_ieee1275_realmode): Remove.
26163 (grub_ieee1275_test_flag): New function.
26164 (grub_ieee1275_set_flag): Likewise.
26165 (find_options): Rename to `grub_ieee1275_find_options'; update
26166 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
26167 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
26168 (cmain): New prototype.
26169 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
26170 `grub_ieee1275_flags' directly.
26171 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
26172 machine/biosdisk.h.
26173 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
26174 Don't include grub/machine/init.h.
26175 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
26176 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
26177 Remove prototype.
26178 (grub_ieee1275_realmode): Likewise.
26179 (grub_ieee1275_flag): New enum.
26180 (grub_ieee1275_test_flag): New prototype.
26181 (grub_ieee1275_set_flag): New prototype.
26182 * include/grub/powerpc/ieee1275/init.h: Remove file.
26183 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
26184 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
26185 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
26186 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
26187 comment.
26188 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
26189 `grub_ieee1275_test_flag'.
26190 (grub_ieee1275_encode_devname): Likewise.
26191
26192 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
26193
26194 * include/grub/powerpc/ieee1275/ieee1275.h
26195 (grub_ieee1275_encode_devname): New prototype.
26196 (grub_ieee1275_get_filename): Likewise.
26197 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
26198 function.
26199 (grub_set_prefix): Likewise.
26200 (grub_machine_init): Call grub_set_prefix.
26201 * kern/powerpc/ieee1275/openfw.c: Fix typos.
26202 (grub_parse_type): New enum.
26203 (grub_ieee1275_get_devargs): New function.
26204 (grub_ieee1275_get_devname): Likewise.
26205 (grub_ieee1275_parse_args): Likewise.
26206 (grub_ieee1275_get_filename): Likewise.
26207 (grub_ieee1275_encode_devname): Likewise.
26208
26209 2005-03-30 Marco Gerards <metgerards@student.han.nl>
26210
26211 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
26212 `grub_loader_unset'.
26213
26214 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
26215
26216 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
26217 instead of grub_ieee1275_interpret.
26218 (grub_halt_init): New function.
26219 (grub_halt_fini): Likewise.
26220 (GRUB_MOD_INIT): Correct message grammar.
26221 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
26222 instead of grub_ieee1275_interpret.
26223 (grub_reboot_init): New function.
26224 (grub_reboot_fini): Likewise.
26225 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
26226 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
26227 util/i386/pc/misc.c with commands/ieee1275/halt.c,
26228 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
26229 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
26230 function.
26231 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
26232 Add prototype.
26233 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
26234 prototype.
26235 (grub_halt): Likewise.
26236 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
26237 (cmain): Remove __attribute__((unused)).
26238 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
26239 (grub_heap_len): Likewise.
26240 (grub_machine_fini): New function.
26241 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
26242 (grub_halt): Likewise.
26243 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
26244 function.
26245 * util/powerpc/ieee1275/misc.c: New file.
26246
26247 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
26248
26249 * DISTLIST: New file.
26250 * gendistlist.sh: Likewise.
26251
26252 * Makefile.in (COMMON_DISTFILES): Removed.
26253 (BOOT_DISTFILES): Likewise.
26254 (CONF_DISTFILES): Likewise.
26255 (DISK_DISTFILES): Likewise.
26256 (FS_DISTFILES): Likewise.
26257 (INCLUDE_DISTFILES): Likewise.
26258 (KERN_DISTFILES): Likewise.
26259 (LOADER_DISTFILES): Likewise.
26260 (TERM_DISTFILES): Likewise.
26261 (UTIL_DISTFILES): Likewise.
26262 (DISTFILES): Likewise.
26263 (uninstall): Uninstall files in $(pkgdata_DATA).
26264 (DISTLIST): New target.
26265 (distdir): Use the contents of the file DISTLIST to get a list of
26266 distributed files.
26267
26268 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
26269
26270 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
26271 descriptor. This is ported from GRUB Legacy.
26272
26273 * gencmdlist.sh: Added an extra semicolon to make it work with
26274 old sed versions. Reported by Robert Bihlmeyer
26275 <robbe@orcus.priv.at>.
26276
26277 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
26278
26279 Automatic loading of commands is supported.
26280
26281 * normal/main.c (read_command_list): New function.
26282 (grub_normal_execute): Call read_command_list.
26283
26284 * normal/command.c (grub_register_command): Return zero or CMD.
26285 Allocate CMD->NAME from the heap.
26286 Initialize CMD->MODULE_NAME to zero.
26287 Find the same name as well. If the same command is found and it is
26288 a dummy command, overwrite members. If it is not a dummy command,
26289 return zero.
26290 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
26291 (grub_command_find): If a dummy command is found, load a module
26292 and retry to find a command only once.
26293
26294 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
26295 make sure that each command is loaded.
26296
26297 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
26298 macro.
26299 (struct grub_command): Remove const from the member `name'.
26300 Add a new member `module_name'.
26301 (grub_register_command): Return grub_command_t.
26302
26303 * commands/help.c (grub_cmd_help): Call grub_command_find to make
26304 sure that each command is loaded.
26305
26306 * genmk.rb (PModule::rule): Specify a module name without the
26307 suffix ".mod" to gencmdlist.sh.
26308
26309 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
26310
26311 * gencmdlist.sh: New file.
26312
26313 * genmk.rb (PModule::rule): Generate a rule for a command list.
26314 Clean command.lst.
26315 Generate command.lst from $(COMMANDFILES).
26316
26317 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
26318 (DATA): Added $(pkgdata_DATA).
26319 (install-local): Install files in $(pkgdata_DATA).
26320
26321 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
26322
26323 * term/i386/pc/vga.c (debug_command): Removed.
26324 (GRUB_MOD_INIT): Do not register the command "debug".
26325
26326 From Hollis Blanchard:
26327 * commands/configfile.c: New file.
26328 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26329 commands/configfile.c.
26330 (pkgdata_MODULES): Added configfile.mod.
26331 (configfile_mod_SOURCES): New variable.
26332 (configfile_mod_CFLAGS): Likewise.
26333 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
26334 commands/configfile.c.
26335 (pkgdata_MODULES): Added configfile.mod.
26336 (configfile_mod_SOURCES): New variable.
26337 (configfile_mod_CFLAGS): Likewise.
26338 * util/grub-emu.c (main): Call grub_configfile_init and
26339 grub_configfile_fini.
26340 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
26341 prototype.
26342 [GRUB_UTIL] (grub_configfile_fini): Likewise.
26343
26344 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
26345
26346 * normal/arg.c (grub_arg_show_help): Do not show the bug report
26347 address.
26348
26349 * commands/help.c (grub_cmd_help): Do not print newlines after
26350 the last command in print_command_help.
26351
26352 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
26353
26354 * commands/default.h: New file.
26355 * commands/timeout.h: Likewise.
26356 * normal/context.c: Likewise.
26357
26358 * util/misc.c: Do not include sys/times.h.
26359 Include sys/time.h and grub/machine/time.h.
26360 (grub_get_rtc): Rewritten with gettimeofday.
26361
26362 * util/grub-emu.c (main): Call grub_default_init and
26363 grub_timeout_init before grub_normal_init, and call
26364 grub_timeout_fini and grub_default_fini after grub_main.
26365
26366 * util/console.c (grub_ncurses_checkkey): Return the read
26367 character or -1.
26368
26369 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
26370 timeouts.
26371
26372 * normal/main.c (read_config_file): Push MENU. If this fails,
26373 print an error and wait for a user input.
26374 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
26375 If a menu is empty or an error occurs, pop MENU.
26376 (grub_normal_execute): Pop and free MENU after grub_menu_run
26377 returns.
26378
26379 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
26380
26381 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
26382 include time.h.
26383 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
26384 without GRUB_UTIL.
26385 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
26386 time.h.
26387 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
26388 without GRUB_UTIL.
26389
26390 * include/grub/normal.h (struct grub_menu_list): New struct.
26391 (grub_menu_list_t): New type.
26392 (struct grub_context): New struct.
26393 (grub_context_t): New type.
26394 (grub_register_command): Got rid of EXPORT_FUNC.
26395 (grub_unregister_command): Likewise.
26396 (grub_context_get): New prototype.
26397 (grub_context_get_current_menu): Likewise.
26398 (grub_context_push_menu): Likewise.
26399 (grub_context_pop_menu): Likewise.
26400 [GRUB_UTIL] (grub_default_init): Likewise.
26401 [GRUB_UTIL] (grub_default_fini): Likewise.
26402 [GRUB_UTIL] (grub_timeout_init): Likewise.
26403 [GRUB_UTIL] (grub_timeout_fini): Likewise.
26404
26405 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
26406 commands/timeout.c and normal/context.c.
26407 (pkgdata_MODULES): Added default.mod and timeout.mod.
26408 (normal_mod_SOURCES): Added normal/context.c.
26409 (default_mod_SOURCES): New variable.
26410 (default_mod_CFLAGS): Likewise.
26411 (timeout_mod_SOURCES): Likewise.
26412 (timeout_mod_CFLAGS): Likewise.
26413 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
26414 conf/i386-pc.rmk.
26415 (pkgdata_MODULES): Added default.mod and timeout.mod.
26416 (normal_mod_SOURCES): Added normal/context.c.
26417 (default_mod_SOURCES): New variable.
26418 (default_mod_CFLAGS): Likewise.
26419 (timeout_mod_SOURCES): Likewise.
26420 (timeout_mod_CFLAGS): Likewise.
26421
26422 * Makefile.in (all-local): Added $(MKFILES).
26423
26424 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
26425
26426 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
26427 (grub_emu_SOURCES): Likewise.
26428 (pkgdata_MODULES): Add `sun.mod'.
26429 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
26430 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26431 `partmap/sun.c'.
26432 (pkgdata_MODULES): Add `sun.mod'.
26433 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
26434 * include/grub/partition.h (grub_sun_partition_map_init): New
26435 prototype.
26436 (grub_sun_partition_map_fini): Likewise.
26437 * partmap/sun.c: New file.
26438 * util/grub-emu.c (main): Initialize and de-initialize the sun
26439 partitionmap support.
26440
26441 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
26442
26443 This implements an Emacs-like menu entry editor.
26444
26445 * normal/menu_entry.c: New file.
26446
26447 * util/console.c (grub_ncurses_putchar): Translate some Unicode
26448 characters to ASCII.
26449 (saved_char): New variable.
26450 (grub_ncurses_checkkey): Rewritten completely.
26451 (grub_ncurses_getkey): Likewise.
26452 (grub_ncurses_init): Call raw instead of cbreak.
26453
26454 * normal/menu.c (print_entry): Do not put a space.
26455 (init_page): Renamed to ...
26456 (grub_menu_init_page): ... this. All callers changed.
26457 (edit_menu_entry): Removed.
26458 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
26459
26460 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
26461
26462 * kern/misc.c (grub_vprintf): Call grub_refresh.
26463
26464 * normal/menu.c (DISP_LEFT): Renamed to ...
26465 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
26466 * normal/menu.c (DISP_UP): Renamed to ...
26467 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
26468 * normal/menu.c (DISP_RIGHT): Renamed to ...
26469 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
26470 * normal/menu.c (DISP_DOWN): Renamed to ...
26471 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
26472 * normal/menu.c (DISP_HLINE): Renamed to ...
26473 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
26474 * normal/menu.c (DISP_VLINE): Renamed to ...
26475 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
26476 * normal/menu.c (DISP_UL): Renamed to ...
26477 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
26478 * normal/menu.c (DISP_UR): Renamed to ...
26479 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
26480 * normal/menu.c (DISP_LL): Renamed to ...
26481 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
26482 * normal/menu.c (DISP_LR): Renamed to ...
26483 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
26484 * normal/menu.c (TERM_WIDTH): Renamed to ...
26485 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
26486 * normal/menu.c (TERM_HEIGHT): Renamed to ...
26487 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
26488 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
26489 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
26490 * normal/menu.c (TERM_MARGIN): Renamed to ...
26491 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
26492 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
26493 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
26494 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
26495 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
26496 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
26497 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
26498 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
26499 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
26500 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
26501 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
26502 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
26503 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
26504 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
26505 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
26506 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
26507 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
26508 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
26509 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
26510 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
26511 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
26512 All callers changed.
26513
26514 * include/grub/normal.h: New prototype.
26515
26516 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26517 normal/menu_entry.c.
26518 (normal_mod_SOURCES): Likewise.
26519 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26520 (normal_mod_SOURCES): Likewise.
26521
26522 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
26523
26524 * include/grub/normal.h (grub_halt_init): New prototype.
26525 (grub_halt_fini): Likewise.
26526 (grub_reboot_init): Likewise.
26527 (grub_reboot_fini): Likewise.
26528
26529 * util/grub-emu.c: Include signal.h.
26530 (main_env): New global variable.
26531 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
26532 catch C-c.
26533 (grub_machine_fini): New function.
26534 (main): Call grub_halt_init and grub_reboot_init before
26535 grub_main, and grub_reboot_fini and grub_halt_fini after it.
26536 Call setjmp with MAIN_ENV to go back afterwards.
26537 Call grub_machine_fini right before return.
26538
26539 * include/grub/util/misc.h: Include setjmp.h.
26540 (main_env): New prototype.
26541
26542 * include/grub/kernel.h (grub_machine_fini): New prototype.
26543 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
26544 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
26545
26546 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
26547 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
26548 * term/i386/pc/console.c (grub_console_fini): Likewise.
26549
26550 * util/i386/pc/misc.c: New file.
26551
26552 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26553 util/i386/pc/misc.c, commands/i386/pc/halt.c and
26554 commands/i386/pc/reboot.c.
26555
26556 2005-02-14 Guillem Jover <guillem@hadrons.org>
26557
26558 * include/grub/dl.h (grub_dl_check_header): New prototype.
26559 (grub_arch_dl_check_header): Change return type to grub_err_t,
26560 remove size parameter and export function. Update all callers.
26561 * kern/dl.c (grub_dl_check_header): New function.
26562 (grub_dl_load_core): Use `grub_dl_check_header' instead of
26563 `grub_arch_dl_check_header'. Check ELF type. Check if sections
26564 are inside the core.
26565 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
26566 independent ELF header checks.
26567 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26568 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
26569 `grub_dl_check_header' instead of explicit checks. Check for the
26570 ELF type.
26571 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
26572 `grub_dl_check_header' instead of explicit checks. Remove arch
26573 specific ELF header checks.
26574
26575 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
26576 argument SIZE.
26577
26578 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
26579
26580 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
26581 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
26582
26583 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
26584
26585 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
26586 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
26587 (part_map_iterate): Clear `grub_errno' and return 0 if
26588 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
26589 * partmap/amiga.c (amiga_partition_map_iterate): Return
26590 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
26591 * partmap/apple.c (apple_partition_map_iterate): Likewise.
26592
26593 2005-02-01 Guillem Jover <guillem@hadrons.org>
26594
26595 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
26596 help info.
26597
26598 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26599
26600 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
26601 Removed prototype.
26602 (grub_rescue_cmd_linux): New prototype.
26603 (grub_rescue_cmd_initrd): Likewise.
26604 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
26605 `bi_rec'.
26606 (grub_linux_release_mem): Release the memory for the initrd.
26607 (grub_load_linux): Renamed from this...
26608 (grub_rescue_cmd_linux): ...To this. Changed all callers.
26609 Changed `entry' not to be static. Loop over memory regions to
26610 find another one when the default fails.
26611 (grub_rescue_cmd_initrd): New function.
26612 (grub_linux_init): Remove function.
26613 (grub_linux_fini): Likewise.
26614 (GRUB_MOD_INIT): Register `initrd'.
26615 (GRUB_MOD_FINI): Unregister `initrd'.
26616 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
26617 Function removed.
26618 (grub_linux_normal_fini): Likewise.
26619 (GRUB_MOD_INIT): Register `initrd'.
26620 (GRUB_MOD_FINI): Unregister `initrd'.
26621
26622 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26623
26624 * commands/help.c: New file.
26625 * normal/arg.c (show_help): Renamed to...
26626 (grub_arg_show_help): ... this.
26627 * commands/i386/pc/halt.c: New file.
26628 * commands/i386/pc/reboot.c: Likewise.
26629 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
26630 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
26631 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
26632 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
26633 variables.
26634 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26635 `commands/help.c'.
26636 (pkgdata_MODULES): Add `help.mod'.
26637 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
26638 * grub/i386/pc/init.h (grub_reboot): New prototype.
26639 (grub_halt): Likewise.
26640 * include/grub/normal.h (grub_arg_show_help): New prototype.
26641 (grub_help_init): Likewise.
26642 (grub_help_fini): Likewise.
26643 * util/grub-emu.c (main): Initialize and deinitialize the help
26644 command.
26645
26646 * normal/cmdline.c (grub_cmdline_get): Doc fix.
26647
26648 * normal/command.c (grub_command_init): Fixed the description of
26649 the `set' and `unset' commands.
26650
26651 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26652
26653 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
26654 function.
26655 * commands/ieee1275/halt.c: New file.
26656 * commands/ieee1275/reboot.c: Likewise.
26657 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
26658 `__attribute__ ((unused))'. Some GCS related fixed.
26659 (grub_suspend_init) [GRUB_UTIL]: Function removed.
26660 (grub_suspend_fini): Likewise.
26661 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
26662 and `halt.mod'.
26663 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
26664 (halt_mod_CFLAGS): New variables.
26665 * include/grub/powerpc/ieee1275/ieee1275.h
26666 (grub_ieee1275_interpret): New prototype.
26667
26668 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
26669
26670 * include/grub/misc.h (memmove): New prototype.
26671 (memcpy): Likewise.
26672
26673 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
26674
26675 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
26676 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
26677
26678 2005-01-22 Marco Gerards <metgerards@student.han.nl>
26679
26680 * kern/misc.c (grub_strndup): Function rewritten.
26681
26682 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
26683
26684 * normal/menu.c (TERM_WIDTH): Macro redefined.
26685 (TERM_TOP_BORDER_Y): Likewise.
26686 (draw_border): Replaced while-loop by a for-loop. Make the number
26687 of lines consistent with the number of lines displayed in
26688 print_entries. Added a margin below the rectangle.
26689 (print_entry): Make the entry fit in the rectangle.
26690 (print_entries): Display the scroll arrows next to the right
26691 border.
26692
26693 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26694
26695 * fs/minix.c (grub_minix_find_file): Reserve more space for
26696 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
26697 `grub_strncpy' to copy `path' into it.
26698
26699 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26700
26701 Add the loopback device, a device via which files can be accessed
26702 as devices.
26703
26704 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
26705 (pkgdata_MODULES): Add loopback.mod.
26706 (loopback_mod_SOURCES): New variable.
26707 (loopback_mod_CFLAGS): Likewise.
26708 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26709 `disk/loopback.c'.
26710 (pkgdata_MODULES): Add loopback.mod.
26711 (loopback_mod_SOURCES): New variable.
26712 (loopback_mod_CFLAGS): Likewise.
26713 * disk/loopback.c: new file.
26714 * include/grub/normal.h (grub_loop_init): New prototype.
26715 (grub_loop_fini): New prototype.
26716 * util/grub-emu.c (main): Initialize and de-initialize loopback
26717 support.
26718 * include/grub/disk.h (grub_disk_dev_id): Add
26719 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
26720
26721 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
26722
26723 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
26724 function.
26725 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
26726 (suspend_mod_SOURCES): New variable.
26727 (suspend_mod_CFLAGS): Likewise.
26728 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
26729 New prototype.
26730 * commands/ieee1275/suspend.c: New file.
26731
26732 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
26733
26734 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
26735 ((unused))' to `__attribute__ ((used))'.
26736 (GRUB_MOD_FINI): Likewise.
26737 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
26738 * genmk.rb (PModule): Assign space to common symbols when linking
26739 modules.
26740
26741 2005-01-20 Marco Gerards <metgerards@student.han.nl>
26742
26743 * include/grub/mm.h (grub_mm_init_region): Change the type of the
26744 `unsigned' arguments to `grub_size_t'.
26745 (grub_malloc): Likewise.
26746 (grub_realloc): Likewise.
26747 (grub_memalign): Likewise.
26748 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
26749 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26750 * util/misc.c (grub_malloc): Likewise.
26751 (grub_realloc): Likewise.
26752 * kern/mm.c (get_header_from_pointer): Change the casts to
26753 `unsigned' into a cast to `grub_size_t'.
26754
26755 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
26756 point to `currnode' when `currnode' is changed.
26757
26758 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
26759 Schottelius <nico-linux@schottelius.org>.
26760
26761 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
26762
26763 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
26764 (note_path): Remove variable.
26765 (GRUB_IEEE1275_NOTE_NAME): New macro.
26766 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
26767 (grub_ieee1275_note_hdr): New structure.
26768 (grub_ieee1275_note_desc): Likewise.
26769 (grub_ieee1275_note): Likewise.
26770 (load_note): Remove `dir' argument. All callers updated. Remove
26771 `note_img' and `path'. Do not load a file from `note_path'.
26772 Initialize a struct grub_ieee1275_note and write that to `out'.
26773 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
26774
26775 2005-01-05 Marco Gerards <metgerards@student.han.nl>
26776
26777 * util/misc.c (grub_util_read_image): Revert last change. It
26778 called `grub_util_read_at', which seeks from the beginning of the
26779 file.
26780
26781 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
26782
26783 * TODO: Add note about endianness in grub-mkimage.
26784 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
26785 section.
26786 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
26787 (grub_mkimage_SOURCES): New target.
26788 * include/grub/kernel.h (grub_start_addr): Remove variable.
26789 (grub_end_addr): Likewise.
26790 (grub_total_module_size): Likewise.
26791 (grub_kernel_image_size): Likewise.
26792 (GRUB_MODULE_MAGIC): New constant.
26793 (grub_module_info): New structure.
26794 (grub_arch_modules_addr): New prototype.
26795 (grub_get_end_addr): Remove prototype.
26796 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
26797 * include/grub/powerpc/ieee1275/kernel.h: New file.
26798 * include/grub/util/misc.h (grub_util_get_fp_size): New
26799 prototype.
26800 (grub_util_read_at): Likewise.
26801 (grub_util_write_image_at): Likewise.
26802 * kern/main.c (grub_get_end_addr): Remove function.
26803 (grub_load_modules): Call grub_arch_modules_addr instead of using
26804 grub_end_addr. Look for a grub_module_info struct in memory. Use
26805 the grub_module_info fields instead of calling grub_get_end_addr
26806 as loop conditions. Move grub_add_unused_region code here.
26807 (grub_add_unused_region): Remove function.
26808 * kern/i386/pc/init.c: Include grub/cache.h.
26809 (grub_machine_init): Remove call to grub_get_end_addr. Remove
26810 one call to add_mem_region.
26811 (grub_arch_modules_addr): New function.
26812 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
26813 (grub_total_module_size): Likewise.
26814 Include grub/machine/kernel.h.
26815 (grub_arch_modules_addr): New function.
26816 * util/grub-emu.c (grub_end_addr): Remove variable.
26817 (grub_total_module_size): Likewise.
26818 (grub_arch_modules_addr): New function.
26819 * util/misc.c: Include unistd.h.
26820 (grub_util_get_fp_size): New function.
26821 (grub_util_read_at): Likewise.
26822 (grub_util_write_image_at): Likewise.
26823 (grub_util_read_image): Call grub_util_read_at.
26824 (grub_util_write_image): Call grub_util_write_image_at.
26825 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
26826 additional memory in kernel_img for a struct grub_module_info.
26827 Fill in that grub_module_info.
26828 * util/powerpc/ieee1275/grub-mkimage.c: New file.
26829
26830 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26831
26832 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
26833 New function.
26834 * include/grub/powerpc/ieee1275/ieee1275.h
26835 (grub_ieee1275_milliseconds): New prototype.
26836 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
26837 Change to 1000.
26838 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
26839 grub_ieee1275_milliseconds.
26840
26841 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26842
26843 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
26844 variable.
26845 (find_options): New function.
26846 (cmain): Call find_options.
26847 * include/grub/powerpc/ieee1275/ieee1275.h
26848 (grub_ieee1275_realmode): New extern variable.
26849 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
26850 grub_map if grub_ieee1275_realmode is false.
26851
26852 2004-12-29 Marco Gerards <metgerards@student.han.nl>
26853
26854 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
26855 lines are inserted and make it work like readline. Reported by
26856 Vincent Pelletier <subdino2004@yahoo.fr>.
26857
26858 2004-12-28 Marco Gerards <metgerards@student.han.nl>
26859
26860 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
26861
26862 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
26863 `kern/powerpc/cache.S'.
26864
26865 2004-12-27 Marco Gerards <metgerards@student.han.nl>
26866
26867 * genmk.rb: Handle the `Program' class in the main loop. Written
26868 by Johan Rydberg <jrydberg@gnu.org>.
26869 (Program): New class.
26870 (programs): New variable.
26871 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
26872 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
26873 instead of "grub/kernel.h". Include <grub/machine/init.h>.
26874 (help_arch): Function removed.
26875 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
26876 `powerpc/libgcc.h' and `loader.h'.
26877 (pkgdata_PROGRAMS): New variable.
26878 (sbin_UTILITIES): Variable removed.
26879 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
26880 (grubof_SOURCES): Variable re-defined so it only includes the
26881 core functionality.
26882 (grubof_CFLAGS): Remove `-DGRUBOF'.
26883 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
26884 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
26885 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
26886 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
26887 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
26888 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
26889 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
26890 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
26891 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
26892 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
26893 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
26894 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
26895 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
26896 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
26897 (pc_mod_CFLAGS): New variables.
26898 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
26899 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
26900 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
26901 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
26902 Moved from here...
26903 * include/grub/i386/pc/init.h (grub_os_area_addr)
26904 (rub_os_area_size): ... to here.
26905 * include/grub/powerpc/ieee1275/ieee1275.h
26906 (grub_ieee1275_entry_fn): Export symbol.
26907 * include/grub/powerpc/ieee1275/init.h: New file.
26908 * include/grub/powerpc/libgcc.h: Likewise.
26909 * include/grub/cache.h: Likewise.
26910 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
26911 <hollis@penguinppc.org>.
26912 * kern/dl.c: Include <grub/cache.h>.
26913 (grub_dl_flush_cache): New function.
26914 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
26915 for this module.
26916 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
26917 (grub_console_init): Removed prototypes.
26918 (grub_machine_init): Don't initialize the modules anymore.
26919 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
26920 static.
26921 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
26922 Macro undef removed.
26923 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
26924 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
26925 relocation `R_PPC_REL32'. Return an error when the relocation is
26926 unknown.
26927 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
26928 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
26929 * util/misc.c (grub_arch_sync_caches): Likewise.
26930
26931 2004-12-19 Marco Gerards <metgerards@student.han.nl>
26932
26933 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
26934 `symlist.c', add `grubof_symlist.c'.
26935 (symlist.c): Variable removed.
26936 (grubof_HEADERS): Variable added.
26937 (grubof_symlist.c): New target.
26938 (kernel_syms.lst): Use `grubof_HEADERS' instead of
26939 `kernel_img_HEADERS'.
26940 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
26941 * kern/powerpc/dl.c: New file.
26942 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
26943 Function removed.
26944 (grub_arch_dl_relocate_symbols): Likewise.
26945 (grub_register_exported_symbols): Likewise.
26946
26947 2004-12-13 Marco Gerards <metgerards@student.han.nl>
26948
26949 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
26950 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
26951 to fail instead. Reported by Vincent Pelletier
26952 <subdino2004@yahoo.fr>.
26953
26954 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
26955 it is not allocated. Reported by Vincent Pelletier
26956 <subdino2004@yahoo.fr>.
26957
26958 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
26959 output so the output looks better.
26960
26961 2004-12-04 Marco Gerards <metgerards@student.han.nl>
26962
26963 Modulize the partition map support and add support for the amiga
26964 partition map.
26965
26966 * commands/ls.c: Include <grub/partition.h> instead of
26967 <grub/machine/partition.h>.
26968 * kern/disk.c: Likewise.
26969 * kern/rescue.c: Likewise.
26970 * loader/i386/pc/chainloader.c: Likewise.
26971 * normal/cmdline.c: Likewise.
26972 * kern/powerpc/ieee1275/init.c: Likewise.
26973 (grub_machine_init): Call `grub_pc_partition_map_init',
26974 `grub_amiga_partition_map_init' and
26975 `grub_apple_partition_map_init'.
26976 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
26977 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
26978 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
26979 `partition.h' and `pc_partition.h'.
26980 (grub_setup_SOURCES): Remove
26981 `disk/i386/pc/partition.c'. Add `kern/partition.c',
26982 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26983 (grub_emu_SOURCES): Likewise.
26984 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
26985 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
26986 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
26987 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26988 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
26989 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26990 (grubof_SOURCES): Likewise.
26991 * disk/i386/pc/partition.c: File removed.
26992 * disk/powerpc/ieee1275/partition.c: Likewise.
26993 * include/grub/powerpc/ieee1275/partition.h: Likewise.
26994 * include/grub/i386/pc/partition.h: Likewise.
26995 * kern/partition.c: New file.
26996 * partmap/amiga.c: Likewise.
26997 * partmap/apple.c: Likewise.
26998 * partmap/pc.c: Likewise.
26999 * include/grub/partition.h: Likewise..
27000 * include/grub/pc_partition.h: Likewise.
27001 * util/grub-emu.c: Include <grub/partition.h> instead of
27002 <grub/machine/partition.h>.
27003 (main): Call `grub_pc_partition_map_init',
27004 `grub_amiga_partition_map_init' and
27005 `grub_apple_partition_map_init' and deinitialize afterwards.
27006 * util/i386/pc/biosdisk.c: Include `#include
27007 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
27008 `<grub/machine/partition.h>'.
27009 * util/i386/pc/grub-setup.c: Likewise.
27010 * util/i386/pc/biosdisk.c: Likewise.
27011 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
27012 partition information in case of a PC partition.
27013 * util/i386/pc/grub-setup.c: Include `#include
27014 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
27015 `<grub/machine/partition.h>'.
27016 (setup): Only access the PC specific partition information in case
27017 of a PC partition.
27018
27019 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
27020
27021 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
27022 (grub_longjmp): Likewise.
27023 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
27024 20.
27025 * normal/powerpc/setjmp.S: New file.
27026 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
27027 `normal/powerpc/setjmp.S'.
27028 (grubof_CFLAGS): Add `-DGRUBOF'.
27029 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
27030 [GRUB_UTIL && !GRUBOF].
27031
27032 2004-11-16 Marco Gerards <metgerards@student.han.nl>
27033
27034 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
27035 property named `name'. Correctly handle the error returned by
27036 `grub_ieee1275_finddevice' if a device can not be opened.
27037
27038 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
27039
27040 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
27041 `actual' for negativity.
27042 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
27043 kern/fshelp.c.
27044
27045 2004-11-01 Marco Gerards <metgerards@student.han.nl>
27046
27047 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
27048 (PAGE_OFFSET): New macro.
27049 (CRTC_ADDR_PORT): Likewise.
27050 (CRTC_DATA_PORT): Likewise.
27051 (START_ADDR_HIGH_REGISTER): Likewise.
27052 (START_ADDR_LOW_REGISTER): Likewise.
27053 (GRAPHICS_ADDR_PORT): Likewise.
27054 (GRAPHICS_DATA_PORT): Likewise.
27055 (READ_MAP_REGISTER): Likewise.
27056 (INPUT_STATUS1_REGISTER): Likewise.
27057 (INPUT_STATUS1_VERTR_BIT): Likewise.
27058 (page): New variable.
27059 (wait_vretrace): New function.
27060 (set_read_map): Likewise.
27061 (set_start_address): Likewise.
27062 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
27063 the right page.
27064 (check_vga_mem): Take the page into account.
27065 (write_char): Likewise.
27066 (write_cursor): Likewise.
27067 (scroll_up): Likewise. Copy the page to the page that is not
27068 shown and switch between both pages.
27069 (grub_vga_putchar): Fix off by one error.
27070 (grub_vga_cls): Wait for the vertical retrace. Take the page into
27071 account.
27072
27073 2004-11-01 Marco Gerards <metgerards@student.han.nl>
27074
27075 Add support for iso9660 (including rockridge).
27076
27077 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
27078 (iso9660_mod_SOURCES): New variable.
27079 (iso9660_mod_CFLAGS): Likewise.
27080 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
27081 * include/grub/fs.h (grub_iso9660_init): New prototype.
27082 * util/grub-emu.c (main): Call `grub_iso9660_init'.
27083 * fs/iso9660.c: New file.
27084
27085 * include/grub/misc.h (grub_strncat): New prototype.
27086 * kern/misc.c (grub_strncat): New function.
27087
27088 * fs/hfs.c (grub_hfs_mount): Translate the error
27089 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
27090 * fs/jfs.c (grub_jfs_mount): Likewise.
27091 * fs/ufs.c (grub_ufs_mount): Likewise.
27092
27093 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
27094
27095 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
27096 which initialized BAT registers.
27097 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
27098 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
27099 Move from here...
27100 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
27101 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
27102 ... to here.
27103 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
27104 (grub_mapclaim): Likewise.
27105 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
27106 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
27107 hand.
27108
27109 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
27110
27111 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
27112 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
27113 -ffreestanding and -msoft-float.
27114
27115 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
27116
27117 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
27118 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
27119 set in grub_ieee1275_flags.
27120
27121 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
27122
27123 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
27124 prototype.
27125 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
27126 grub_console_init first.
27127 Change the memory range used for grub_ieee1275_claim and
27128 grub_mm_init_region.
27129 Print an error message if the claim fails.
27130 Include <grub/misc.h>.
27131
27132 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
27133
27134 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
27135 Call grub_children_iterate for device nodes of type `scsi',
27136 `ide', or `ata'.
27137 (grub_ofdisk_open): Remove manual device alias resolution.
27138 Fix memory leak when device cannot be opened.
27139 * include/grub/powerpc/ieee1275/ieee1275.h
27140 (grub_children_iterate): New prototype.
27141 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
27142 New function.
27143 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
27144 Return -1 if args.size was -1.
27145
27146 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
27147
27148 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
27149 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
27150 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
27151 Open Firmware's memory for it; claim memory from _start to _end.
27152 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
27153 (_end): New extern.
27154 (_start): Zero BSS from __bss_start to _end.
27155 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
27156 New extern.
27157 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
27158
27159 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
27160
27161 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
27162 -1 if args.base was -1.
27163
27164 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
27165
27166 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
27167 escape sequence instead of a literal ^L. Also call
27168 grub_ofconsole_gotoxy.
27169
27170 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
27171
27172 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
27173 void * arguments to grub_addr_t. All callers updated. Also make
27174 the `result' argument optional.
27175 (grub_ieee1275_release): change void * arguments to grub_addr_t.
27176 All callers updated.
27177
27178 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
27179
27180 * commands/ls.c (grub_ls_list_files): Use the string following the
27181 initial ')', if present, as the filesystem path.
27182 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
27183
27184 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
27185
27186 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
27187
27188 Make the source code of the menu interface more readable.
27189
27190 * normal/menu.c: Include grub/mm.h.
27191 (TERM_WIDTH): New macro.
27192 (TERM_HEIGHT): Likewise.
27193 (TERM_INFO_HEIGHT): Likewise.
27194 (TERM_MARGIN): Likewise.
27195 (TERM_SCROLL_WIDTH): Likewise.
27196 (TERM_TOP_BORDER_Y): Likewise.
27197 (TERM_LEFT_BORDER_X): Likewise.
27198 (TERM_BORDER_WIDTH): Likewise.
27199 (TERM_MESSAGE_HEIGHT): Likewise.
27200 (TERM_BORDER_HEIGHT): Likewise.
27201 (TERM_NUM_ENTRIES): Likewise.
27202 (TERM_FIRST_ENTRY_Y): Likewise.
27203 (TERM_ENTRY_WIDTH): Likewise.
27204 (TERM_CURSOR_X): Likewise.
27205 (draw_border): Use macros instead of magic numbers.
27206 (print_entry): Likewise.
27207 (print_entries): Likewise.
27208 (run_menu): Likewise. Also, handle the key 'e'.
27209 (run_menu_entry): Ignore empty command lines.
27210 (print_message): Added a new argument EDIT. If EDIT is true,
27211 print a different message.
27212 (init_page): Likewise.
27213 (edit_menu_entry): New function. Not implemented yet.
27214
27215 2004-09-17 Marco Gerards <metgerards@student.han.nl>
27216
27217 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
27218 can be loaded from normal mode.
27219
27220 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
27221 `multiboot.mod'.
27222 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
27223 (multiboot_mod_CFLAGS): New variables.
27224 * loader/i386/pc/linux_normal.c: New file.
27225 * loader/i386/pc/multiboot_normal.c: Likewise.
27226
27227 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
27228 attribute `unused'.
27229
27230 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
27231 `fdiro' to read the mode information from instead of `diro'.
27232
27233 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
27234 looking up a symlink.
27235
27236 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
27237 macro.
27238 * normal/command.c (grub_command_execute): Don't parse the
27239 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
27240 flags of the command.
27241
27242 * normal/menu.c (grub_menu_run): Fix typo.
27243
27244 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
27245
27246 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
27247
27248 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
27249 `y + 1' instead of `y - 1'.
27250
27251 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
27252
27253 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
27254
27255 From Hollis Blanchard <hollis@penguinppc.org>:
27256 * kern/misc.c (memmove): New alias for grub_memmove.
27257 (memcmp): New alias for grub_memcmp.
27258 (memset): New alias for grub_memset.
27259 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
27260 Change "int handle" to "grub_ieee1275_phandle_t handle".
27261 * include/grub/powerpc/ieee1275/ieee1275.h
27262 (grub_ieee1275_get_property): Likewise.
27263
27264 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
27265
27266 Added normal mode command `chainloader' as module chain.mod, which
27267 depends on normal.mod and _chain.mod.
27268
27269 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
27270 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
27271 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
27272 Deleted prototype.
27273 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
27274 but arguments parsing moved to ...
27275 (grub_chainloader_cmd): ... here. New function.
27276 * include/grub/i386/pc/chainloader.h: New file.
27277 * loader/i386/pc/chainloader_normal.c: Likewise.
27278
27279 2004-09-11 Marco Gerards <metgerards@student.han.nl>
27280
27281 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
27282 (grub_mkimage_LDFLAGS): Likewise.
27283 (grub_emu_SOURCES): Likewise.
27284 (kernel_img_HEADERS): Added fshelp.h.
27285 * fs/ext2.c: Include <grub/fshelp.h>.
27286 (FILETYPE_REG): New macro.
27287 (FILETYPE_INO_REG): Likewise.
27288 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
27289 Changed all users.
27290 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
27291 all users.
27292 (grub_fshelp_node): New struct.
27293 (grub_ext2_data): Added member `diropen'. Changed member `inode'
27294 to a pointer.
27295 (grub_ext2_get_file_block): Removed function.
27296 (grub_ext2_read_block): New function.
27297 (grub_ext2_read_file): Replaced parameter `data' by `node'.
27298 This function was written.
27299 (grub_ext2_mount): Read the root inode. Create a diropen struct.
27300 (grub_ext2_find_file): Removed function.
27301 (grub_ext2_read_symlink): New function.
27302 (grub_ext2_iterate_dir): Likewise.
27303 (grub_ext2_open): Rewritten.
27304 (grub_ext2_dir): Rewritten.
27305 * include/grub/fshelp.h: New file.
27306 * fs/fshelp.c: Likewise.
27307
27308 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
27309
27310 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
27311 (print_message): Add a missing newline.
27312 (run_menu): Added timeout support.
27313 (run_menu_entry): New local function.
27314 (grub_menu_run): Added support for booting.
27315
27316 * kern/loader.c (grub_loader_is_loaded): New function.
27317
27318 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
27319 (grub_get_rtc): Exported.
27320
27321 * include/grub/i386/pc/time.h: Include grub/symbol.h.
27322 (grub_get_rtc): Exported.
27323
27324 * include/grub/normal.h (struct grub_command_list): Remove
27325 constant from the member `command'.
27326
27327 * include/grub/loader.h (grub_loader_is_loaded): Declared.
27328
27329 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
27330
27331 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
27332
27333 2004-08-28 Marco Gerards <metgerards@student.han.nl>
27334
27335 Add support for the JFS filesystem.
27336
27337 * fs/jfs.c: New file.
27338 * include/grub/fs.h (grub_jfs_init): New prototype.
27339 (grub_jfs_fini): New prototype.
27340 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
27341 (grub_emu_SOURCES): Likewise.
27342 (pkgdata_MODULES): Add jfs.mod.
27343 (jfs_mod_SOURCES): New variable.
27344 (jfs_mod_CFLAGS): Likewise.
27345 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
27346 (grubof_SOURCES): Likewise.
27347 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
27348
27349 * fs/fat.c (grub_fat_find_dir): Convert the filename little
27350 endian to the host endian.
27351 (grub_fat_utf16_to_utf8): Move function from there...
27352 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
27353 the endianness of the source string anymore.
27354 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
27355
27356 2004-08-24 Marco Gerards <metgerards@student.han.nl>
27357
27358 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
27359 (grub_boot_fini) [GRUB_UTIL]: Likewise.
27360 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
27361 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
27362
27363 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
27364 (grub_hfs_iterate_dir): Make the function static. Add prototypes
27365 for `node_found' and `it_dir'.
27366 (grub_hfs_dir): Add prototype for `dir_hook'.
27367
27368 * fs/minix.c (grub_minix_get_file_block): Add prototype for
27369 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
27370 and `indir32' to silence a gcc warning.
27371
27372 * include/grub/fs.h (grub_hfs_init): New prototype.
27373 (grub_hfs_fini): Likewise.
27374
27375
27376 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
27377
27378 Each disk device has its own id now. This is useful to make use
27379 of multiple disk devices.
27380
27381 * include/grub/disk.h (grub_disk_dev_id): New enum.
27382 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
27383 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
27384
27385 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
27386 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
27387
27388 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
27389 GRUB_DISK_DEVICE_OFDISK_ID as an id.
27390
27391 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
27392 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
27393
27394 * include/grub/disk.h (struct grub_disk_dev): Added a new member
27395 "id" which is used by the cache manager.
27396
27397 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
27398 of just "GRUB".
27399
27400 2004-08-18 Marco Gerards <metgerards@student.han.nl>
27401
27402 * fs/hfs.c: New file.
27403 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
27404 (grub_emu_SOURCES): Likewise.
27405 (pkgdata_MODULES): Add hfs.mod.
27406 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
27407 (grubof_SOURCES): Likewise.
27408 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
27409
27410 * include/grub/misc.h (grub_strncasecmp): Add prototype.
27411 * kern/misc.c (grub_strncasecmp): Add function.
27412
27413 2004-08-14 Marco Gerards <metgerards@student.han.nl>
27414
27415 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
27416 with parentheses.
27417
27418 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
27419 (grub_ext2_dir): In case the directory entry type is unknown, read
27420 it from the inode.
27421
27422 2004-08-02 Peter Bruin <pjbruin@dds.nl>
27423
27424 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
27425 grub_load_linux instead of grub_rescue_cmd_linux as second
27426 argument of grub_rescue_register_command.
27427
27428 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
27429
27430 2004-07-27 Marco Gerards <metgerards@student.han.nl>
27431
27432 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
27433 function.
27434 * commands/boot.c: Remove the check for `GRUB_UTIL'.
27435 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
27436 `loader/powerpc/ieee1275/linux.c',
27437 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
27438 * include/grub/powerpc/ieee1275/ieee1275.h
27439 (grub_ieee1275_release): New prototype.
27440 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
27441 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
27442 normal, boot, linux and linux_normal.
27443 * loader/powerpc/ieee1275/linux.c: New file.
27444 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
27445
27446 2004-07-12 Marco Gerards <metgerards@student.han.nl>
27447
27448 * normal/arg.c (grub_arg_parse): Correct error handling after
27449 reallocating the argumentlist (check if `argl' is not null instead
27450 of checking if `args' is not null).
27451 * kern/mm.c (grub_realloc): Return the same pointer when using the
27452 same region, instead of returning the header address.
27453
27454 2004-07-11 Marco Gerards <metgerards@student.han.nl>
27455
27456 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
27457 one block instead of two when looking for the initial partition.
27458 (grub_partition_probe): Initialize the local variable `p' with 0.
27459 Use base 10 for the grub_strtoul call.
27460 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
27461 need for one local variable.
27462 (grub_strtoul): Don't add the new value to `num', instead of that
27463 just assign it.
27464
27465 2004-07-11 Marco Gerards <metgerards@student.han.nl>
27466
27467 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
27468 (pxeboot_img_SOURCES): New variable.
27469 (pxeboot_img_ASFLAGS): Likewise.
27470 (pxeboot_img_LDFLAGS): Likewise.
27471 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
27472 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
27473 <lode_leroy@hotmail.com>.
27474
27475 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27476
27477 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
27478 there was no input.
27479
27480 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27481
27482 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
27483 the history buffer logic.
27484
27485 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27486
27487 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
27488 (FILETYPE_INO_SYMLINK): New macros.
27489 (grub_ext2_find_file): Check if the node is a directory using the
27490 inode stat information instead of using the filetype in the
27491 dirent. Exclude the first character of an absolute symlink.
27492 (grub_ext2_dir): Mask out the filetype part of the mode member of
27493 the inode.
27494
27495 2004-05-24 Marco Gerards <metgerards@student.han.nl>
27496
27497 Add support for UFS version 1 and 2. Add support for the minix
27498 filesystem version 1 and 2, both the variants with 14 and 30 long
27499 filenames.
27500
27501 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
27502 fs/minix.c.
27503 (grub_emu_SOURCES): Likewise.
27504 (pkgdata_MODULES): Add ufs.mod and minix.mod.
27505 (ufs_mod_SOURCES): New variable.
27506 (ufs_mod_CFLAGS): Likewise.
27507 (minix_mod_SOURCES): Likewise.
27508 (minix_mod_CFLAGS): Likewise.
27509 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
27510 fs/minix.c.
27511 (grubof_SOURCES): Likewise.
27512 * fs/ufs.c: New file.
27513 * fs/minix.c: New file.
27514 * include/grub/fs.h (grub_ufs_init): New prototype.
27515 (grub_ufs_fini): Likewise.
27516 (grub_minix_init): Likewise.
27517 (grub_minix_fini): Likewise.
27518 * util/grub-emu.c (main): Initialize and deinitialize UFS and
27519 minix fs.
27520
27521 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
27522
27523 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
27524 commands/ls.c, commands/terminal.c, commands/boot.c,
27525 commands/cmp.c and commands/cat.c.
27526 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
27527
27528 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
27529 "env.h"
27530
27531 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27532
27533 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
27534 and grub_, respectively. Because the conversion is trivial and
27535 mechanical, I omit the details here. Please refer to the CVS
27536 if you need more information.
27537
27538 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27539
27540 * include/pupa: Renamed to ...
27541 * include/grub: ... this.
27542 * util/i386/pc/pupa-mkimage.c: Renamed to ...
27543 * util/i386/pc/grub-mkimage.c: ... this.
27544 * util/i386/pc/pupa-setup.c: Renamed to ...
27545 * util/i386/pc/grub-setup.c: ... this.
27546 * util/pupa-emu.c: Renamed to ...
27547 * util/grub-emu.c: ... this.
27548
27549 2004-03-29 Marco Gerards <metgerards@student.han.nl>
27550
27551 Add support for the newworld apple macintosh (PPC). This has been
27552 tested on the powerbook 2000 only. It only adds support for
27553 generic ieee1275 functions, console and disk support. This should
27554 be easy to port to other architectures with support for Open
27555 Firmware.
27556
27557 * configure.ac: Accept the powerpc as host_cpu. In the case of
27558 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
27559 specific tests are only executed while building for the i386.
27560 Inverse test for crosscompile.
27561 * genmk.rb (Utility): Allow assembler files.
27562 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
27563 * conf/powerpc-ieee1275.rmk: New file.
27564 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
27565 * disk/powerpc/ieee1275/partition.c: Likewise.
27566 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
27567 * include/pupa/powerpc/ieee1275/console.h: Likewise.
27568 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
27569 * include/pupa/powerpc/ieee1275/time.h: Likewise.
27570 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
27571 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
27572 * include/pupa/powerpc/ieee1275/loader.h
27573 * include/pupa/powerpc/setjmp.h: Likewise.
27574 * include/pupa/powerpc/types.h: Likewise.
27575 * kern/powerpc/ieee1275/init.c: Likewise.
27576 * kern/powerpc/ieee1275/openfw.c: Likewise.
27577 * term/powerpc/ieee1275/ofconsole.c: Likewise.
27578
27579 These files were written by Johan Rydberg
27580 (jrydberg@night.trouble.net) and I only modified them slightly.
27581
27582 * boot/powerpc/ieee1275/cmain.c: New file.
27583 * boot/powerpc/ieee1275/crt0.S: Likewise.
27584 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
27585 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
27586
27587 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
27588
27589 * Makefile.in: Update copyright.
27590 * genmodsrc.sh: Likewise.
27591 * gensymlist.sh: Likewise.
27592 * term/i386/pc/vga.c: Indent correctly.
27593
27594 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
27595 bugreporting address.
27596 * util/i386/pc/pupa-setup.c (usage): Likewise,
27597 (main): Call pupa_ext2_init and pupa_ext2_fini.
27598
27599 * fs/fat.c (log2): Renamed to ...
27600 (fat_log2): ... this.
27601 All callers changed.
27602 * kern/misc.c (memcpy): Alias to pupa_memmove.
27603 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
27604 lvalue cast.
27605 * util/console.c (pupa_ncurses_fini): Return 0.
27606
27607 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
27608 Move fail label here.
27609 [__GNU__]: Don't warn when using stat.
27610 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
27611 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
27612 long int. Use strtol instead of strtoul.
27613
27614 2004-03-14 Marco Gerards <metgerards@student.han.nl>
27615
27616 * commands/boot.c: New file.
27617 * commands/cat.c: Likewise.
27618 * commands/cmp.c: Likewise.
27619 * commands/ls.c: Likewise.
27620 * commands/terminal.c: Likewise.
27621 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
27622 (pupa_register_command): Changed interface to match the new
27623 argument parser.
27624 (pupa_command_execute): Changed (almost rewritten) so it uses
27625 pupa_split_command. Added support for setting variables using the
27626 syntax `foo=bar'.
27627 (rescue_command): Changed to work with the new argument parser.
27628 (terminal_command): Moved from here to commands/terminal.c.
27629 (set_command): New function.
27630 (unset_command): New function.
27631 (insmod_command): New function.
27632 (rmmod_command): New function.
27633 (lsmod_command): New function.
27634 (pupa_command_init): Don't initialize the command terminal
27635 anymore. Initialize the commands set, unset, insmod, rmmod and
27636 lsmod.
27637 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
27638 (kernel_img_HEADERS): Add arg.h and env.h.
27639 (pupa_mkimage_LDFLAGS): Add kern/env.c.
27640 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
27641 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
27642 normal/arg.c.
27643 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
27644 terminal.mod.
27645 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
27646 (boot_mod_SOURCES): New variable.
27647 (terminal_mod_SOURCES): Likewise.
27648 (ls_mod_SOURCES): Likewise.
27649 (cmp_mod_SOURCES): Likewise.
27650 (cat_mod_SOURCES): Likewise.
27651
27652 * normal/arg.c: New file.
27653 * kern/env.c: Likewise.
27654 * include/pupa/arg.h: Likewise.
27655 * include/pupa/env.h: Likewise.
27656 * font/manager.c (font_command): Changed to match argument parsing
27657 interface changes.
27658 (PUPA_MOD_INIT): Likewise.
27659 * hello/hello.c (pupa_cmd_hello): Likewise.
27660 (PUPA_MOD_INIT): Likewise.
27661 * include/pupa/disk.h: Include <pupa/device.h>.
27662 (pupa_print_partinfo): New prototype.
27663 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
27664 (pupa_dl_get_prefix): Likewise.
27665 * include/pupa/misc.h: Include <pupa/err.h>.
27666 (pupa_isgraph): New prototype.
27667 (pupa_isdigit): Likewise.
27668 (pupa_split_cmdline): Likewise.
27669 * include/pupa/normal.h: Include <pupa/arg.h>.
27670 (pupa_command): Changed the prototype of the member `func' to
27671 match the argument parsing interface. Added member `options'.
27672 (pupa_register_command): Updated to match function.
27673 (pupa_arg_parse): New prototype.
27674 (pupa_hello_init) [PUPA_UTIL]: New prototype.
27675 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
27676 (pupa_ls_init) [PUPA_UTIL]: Likewise.
27677 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
27678 (pupa_cat_init) [PUPA_UTIL]: Likewise.
27679 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
27680 (pupa_boot_init) [PUPA_UTIL]: Likewise.
27681 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
27682 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
27683 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
27684 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
27685 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
27686 * kern/disk.c: Include <pupa/file.h>.
27687 (pupa_print_partinfo): New function.
27688 * kern/dl.c: Include <pupa/env.h>.
27689 (pupa_dl_dir): Variable removed.
27690 (pupa_dl_load): Use the environment variable `prefix' instead of
27691 the variable pupa_dl_dir.
27692 (pupa_dl_set_prefix): Function removed.
27693 (pupa_dl_get_prefix): Likewise.
27694 * kern/i386/pc/init.c: Include <pupa/env.h>.
27695 (pupa_machine_init): Use the environment variable `prefix' instead of
27696 using pupa_dl_set_prefix to set the prefix.
27697 * kern/main.c: Include <pupa/env.h>.
27698 (pupa_set_root_dev): Use the environment variable `prefix' instead of
27699 using pupa_dl_get_prefix to get the prefix.
27700 * kern/misc.c: Include <pupa/env.h>.
27701 (pupa_isdigit): New function.
27702 (pupa_isgraph): Likewise.
27703 (pupa_ftoa): Likewise.
27704 (pupa_vsprintf): Added support for printing values of the type
27705 `double'. Make it possible to format variable output when using
27706 formatting like `%1.2%f'.
27707 (pupa_split_cmdline): New function.
27708 * kern/rescue.c: Include <pupa/env.h>.
27709 (next_word): Removed function.
27710 (pupa_rescue_cmd_prefix): Likewise.
27711 (pupa_rescue_cmd_set): New function.
27712 (pupa_rescue_cmd_unset): New function.
27713 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
27714 split the command line instead of splitting it here. Added
27715 support for setting variables using the syntax `foo=bar'. Don't
27716 initialize the prefix command anymore. Initialized the set and
27717 unset commands.
27718 * normal/cmdline.c: Include <pupa/env.h>.
27719 (pupa_tab_complete): Added prototypes for print_simple_completion,
27720 print_partition_completion, add_completion, iterate_commands,
27721 iterate_dev, iterate_part and iterate_dir. Moved code to print
27722 partition information from here to kern/disk.c.
27723 (pupa_cmdline_run): Don't check if the function exists anymore.
27724 * normal/main.c: Include <pupa/env.h>.
27725 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
27726 instead of using pupa_dl_get_prefix to get the prefix.
27727 * term/i386/pc/vga.c: Include <pupa/arg.h>.
27728 (check_vga_mem): Cast pointers to `void *' to silence a gcc
27729 warning.
27730 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
27731 (pupa_vga_setcolor): Declare unused variables with `__attribute__
27732 ((unused))' to silence a gcc warning.
27733 (pupa_vga_setcolor): Likewise.
27734 (debug_command): Changed to match argument parsing
27735 interface changes.
27736 * util/pupa-emu.c: Include <pupa/env.h>.
27737 (options): Added 0's for unused fields to silence a gcc warning.
27738 (argp): Likewise.
27739 (main): Use the environment variable `prefix' instead of using
27740 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
27741 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
27742 and terminal.
27743
27744 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
27745 * util/misc.c: Include <malloc.h>.
27746 (pupa_malloc): Rewritten so errors are correctly reported.
27747 (pupa_realloc): Likewise.
27748 (pupa_memalign): Likewise.
27749 (pupa_mm_init_region): Declare unused variables with
27750 `__attribute__ ((unused))' to silence a gcc warning.
27751 * normal/i386/setjmp.S: Remove tab at the end of the file to
27752 silence a gcc warning.
27753 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
27754 variables with `__attribute__ ((unused))' to silence a gcc
27755 warning.
27756 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
27757 local variable i unsigned to silence a gcc warning.
27758
27759 * kern/term.c: Include <pupa/misc.h>.
27760 (pupa_more_lines): New variable.
27761 (pupa_more): Likewise.
27762 (pupa_putcode): When the pager is active pause at the end of every
27763 screen.
27764 (pupa_set_more): New function.
27765 * include/pupa/term.h (pupa_set_more): New prototype.
27766
27767
27768 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
27769
27770 Now this project is GRUB 2 rather than PUPA. The location of
27771 the CVS repository was moved to GRUB's.
27772
27773 * configure.ac: Use bug-grub as the reporting address.
27774 Use GRUB instead of PUPA.
27775 Change the version number to 1.90.
27776
27777 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
27778
27779 * genkernsyms.sh: Updated copyright information.
27780 * genmk.rb: Likewise.
27781 * genmodsrc.sh: Likewise.
27782 * gensymlist.sh: Likewise.
27783 * boot/i386/pc/boot.S: Likewise.
27784 * boot/i386/pc/diskboot.S: Likewise.
27785 * disk/i386/pc/biosdisk.c: Likewise.
27786 * disk/i386/pc/partition.c: Likewise.
27787 * font/manager.c: Likewise.
27788 * fs/ext2.c: Likewise.
27789 * fs/fat.c: Likewise.
27790 * include/pupa/boot.h: Likewise.
27791 * include/pupa/device.h: Likewise.
27792 * include/pupa/disk.h: Likewise.
27793 * include/pupa/dl.h: Likewise.
27794 * include/pupa/elf.h: Likewise.
27795 * include/pupa/err.h: Likewise.
27796 * include/pupa/file.h: Likewise.
27797 * include/pupa/font.h: Likewise.
27798 * include/pupa/fs.h: Likewise.
27799 * include/pupa/kernel.h: Likewise.
27800 * include/pupa/loader.h: Likewise.
27801 * include/pupa/misc.h: Likewise.
27802 * include/pupa/mm.h: Likewise.
27803 * include/pupa/net.h: Likewise.
27804 * include/pupa/normal.h: Likewise.
27805 * include/pupa/rescue.h: Likewise.
27806 * include/pupa/setjmp.h: Likewise.
27807 * include/pupa/symbol.h: Likewise.
27808 * include/pupa/term.h: Likewise.
27809 * include/pupa/types.h: Likewise.
27810 * include/pupa/i386/setjmp.h: Likewise.
27811 * include/pupa/i386/types.h: Likewise.
27812 * include/pupa/i386/pc/biosdisk.h: Likewise.
27813 * include/pupa/i386/pc/boot.h: Likewise.
27814 * include/pupa/i386/pc/console.h: Likewise.
27815 * include/pupa/i386/pc/init.h: Likewise.
27816 * include/pupa/i386/pc/kernel.h: Likewise.
27817 * include/pupa/i386/pc/linux.h: Likewise.
27818 * include/pupa/i386/pc/loader.h: Likewise.
27819 * include/pupa/i386/pc/memory.h: Likewise.
27820 * include/pupa/i386/pc/multiboot.h: Likewise.
27821 * include/pupa/i386/pc/partition.h: Likewise.
27822 * include/pupa/i386/pc/time.h: Likewise.
27823 * include/pupa/i386/pc/vga.h: Likewise.
27824 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
27825 * include/pupa/util/getroot.h: Likewise.
27826 * include/pupa/util/misc.h: Likewise.
27827 * include/pupa/util/resolve.h: Likewise.
27828 * kern/device.c: Likewise.
27829 * kern/disk.c: Likewise.
27830 * kern/dl.c: Likewise.
27831 * kern/err.c: Likewise.
27832 * kern/file.c: Likewise.
27833 * kern/fs.c: Likewise.
27834 * kern/loader.c: Likewise.
27835 * kern/main.c: Likewise.
27836 * kern/misc.c: Likewise.
27837 * kern/mm.c: Likewise.
27838 * kern/rescue.c: Likewise.
27839 * kern/term.c: Likewise.
27840 * kern/i386/dl.c: Likewise.
27841 * kern/i386/pc/init.c: Likewise.
27842 * kern/i386/pc/lzo1x.S: Likewise.
27843 * kern/i386/pc/startup.S: Likewise.
27844 * loader/i386/pc/chainloader.c: Likewise.
27845 * loader/i386/pc/linux.c: Likewise.
27846 * loader/i386/pc/multiboot.c: Likewise.
27847 * normal/cmdline.c: Likewise.
27848 * normal/command.c: Likewise.
27849 * normal/main.c: Likewise.
27850 * normal/menu.c: Likewise.
27851 * normal/i386/setjmp.S: Likewise.
27852 * term/i386/pc/console.c: Likewise.
27853 * term/i386/pc/vga.c: Likewise.
27854 * util/console.c: Likewise.
27855 * util/genmoddep.c: Likewise.
27856 * util/misc.c: Likewise.
27857 * util/pupa-emu.c: Likewise.
27858 * util/resolve.c: Likewise.
27859 * util/unifont2pff.rb: Likewise.
27860 * util/i386/pc/biosdisk.c: Likewise.
27861 * util/i386/pc/getroot.c: Likewise.
27862 * util/i386/pc/pupa-mkimage.c: Likewise.
27863 * util/i386/pc/pupa-setup.c: Likewise.
27864
27865 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
27866
27867 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
27868 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
27869 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
27870 reading and reset it after reading.
27871 (pupa_ext2_close): Return PUPA_ERR_NONE.
27872
27873 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
27874 Correct value.
27875 (struct linux_kernel_header): Add kernel_version and
27876 initrd_addr_max.
27877 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
27878 pupa_file_read succeeds.
27879 (pupa_rescue_cmd_initrd): Implement.
27880
27881 2003-12-03 Marco Gerards <metgerards@student.han.nl>
27882
27883 * fs/ext2.c (pupa_ext2_label): New function.
27884 (pupa_ext2_fs): Added label.
27885 * fs/fat.c (pupa_fat_label): New function.
27886 (pupa_fat_fs): Added label.
27887 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
27888
27889 * kern/misc.c (pupa_strndup): New function.
27890 * include/pupa/misc.h (pupa_strndup): New prototype.
27891
27892 * include/pupa/normal.h: Include <pupa/err.h>.
27893 (pupa_set_history): New prototype.
27894 (pupa_iterate_commands): New prototype.
27895 * normal/cmdline.c: Include <pupa/machine/partition.h>,
27896 <pupa/disk.h>, <pupa/file.h>.
27897 (hist_size): New variable.
27898 (hist_lines): Likewise.
27899 (hist_end): Likewise.
27900 (hist_used): Likewise.
27901 (pupa_set_history): New function.
27902 (pupa_history_get): Likewise.
27903 (pupa_history_add): Likewise.
27904 (pupa_history_replace): Likewise.
27905 (pupa_tab_complete): Likewise.
27906 (pupa_cmdline_run): Added tab completion and history buffer. Tab
27907 completion shows partitionnames while completing partitions, this
27908 feature was suggested by Jeff Bailey.
27909 * normal/command.c (pupa_iterate_commands): New function.
27910 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
27911 (pupa_normal_init): Initialize history buffer.
27912 (PUPA_MOD_INIT): Likewise.
27913 (pupa_normal_fini): Free the history buffer.
27914 (PUPA_MOD_FINI): Likewise.
27915
27916 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
27917 key.
27918
27919 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
27920 * configure.ac [i386]: Check for regparam bug.
27921 (NESTED_FUNC_ATTR) [! i386]: Defined.
27922
27923 2003-11-17 Marco Gerards <metgerards@student.han.nl>
27924
27925 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
27926 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
27927 (pupa_emu_SOURCES): New variable.
27928 (pupa_emu_LDFLAGS): Likewise.
27929 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
27930 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
27931 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
27932 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27933 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
27934 (pupa_jmp_buf): New typedef.
27935 (pupa_setjmp) [PUPA_UTIL]: New macro.
27936 (pupa_longjmp) [PUPA_UTIL]: Likewise.
27937 * include/pupa/term.h (struct pupa_term): New member `refresh'.
27938 (pupa_refresh): New prototype.
27939 * include/pupa/util/getroot.h: New file.
27940 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
27941 it.
27942 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
27943 (pupa_rescue_cmd_cat): Likewise.
27944 (pupa_rescue_cmd_ls): Likewise.
27945 (pupa_rescue_cmd_testload): Likewise.
27946 (pupa_rescue_cmd_lsmod): Likewise.
27947 * normal/cmdline.c (pupa_cmdline_get): Likewise.
27948 * normal/menu.c (run_menu): Likewise.
27949 * kern/term.c (pupa_cls): Likewise.
27950 (pupa_refresh): New function.
27951 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
27952 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27953 * util/console.c: New file.
27954
27955 * util/i386/pc/getroot.c: New file.
27956 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
27957 (pupa_putchar): New function.
27958 (pupa_refresh): Likewise.
27959 (xgetcwd): Function moved to ...
27960 (strip_extra_slashes): Likewise.
27961 (get_prefix): Likewise.
27962 * util/i386/pc/getroot.c: ... here.
27963 (find_root_device): Function moved and renamed to...
27964 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
27965 Changed all callers.
27966 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
27967 and renamed to...
27968 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
27969 Changed all callers.
27970 * util/misc.c (pupa_memalign): New function.
27971 (pupa_mm_init_region): Likewise.
27972 (pupa_register_exported_symbols): Likewise.
27973 (pupa_putchar): Function removed.
27974 * util/pupa-emu.c: New file.
27975
27976 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
27977
27978 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
27979 (_multiboot_mod_SOURCES): New variable.
27980 (_multiboot_mod_CFLAGS): Likewise.
27981 * loader/i386/pc/multiboot.c: New file.
27982 * include/pupa/i386/pc/multiboot.h: Likewise.
27983 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
27984 (pupa_multiboot_real_boot): New function.
27985 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
27986 (pupa_multiboot_real_boot): New prototype.
27987 (pupa_rescue_cmd_multiboot): Likewise
27988 (pupa_rescue_cmd_module): Likewise.
27989
27990 * kern/loader.c (pupa_loader_set): Continue when
27991 pupa_loader_unload_func() fails.
27992 (pupa_loader_unset): New function.
27993 * include/pupa/loader.h (pupa_loader_unset): New prototype.
27994
27995 * kern/misc.c (pupa_stpcpy): New function.
27996 * include/pupa/misc.h (pupa_stpcpy): New prototype.
27997
27998 2003-11-12 Marco Gerards <metgerards@student.han.nl>
27999
28000 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
28001 for available extensions.
28002
28003 * include/pupa/i386/pc/time.h: New file.
28004 * kern/disk.c: Include <pupa/machine/time.h>.
28005 (PUPA_CACHE_TIMEOUT): New macro.
28006 (pupa_last_time): New variable.
28007 (pupa_disk_open): Flush the cache when there was a timeout.
28008 (pupa_disk_close): Reset the timer.
28009 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
28010 pupa_currticks.
28011 * util/misc.c: Include <sys/times.h>
28012 (pupa_get_rtc): New function.
28013
28014 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
28015
28016 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
28017 as blocks.
28018 (pupa_ext2_get_file_block): Use blocks member.
28019
28020 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
28021 first block. Return -1 instead of pupa_errno on error.
28022
28023 2003-10-27 Marco Gerards <metgerards@student.han.nl>
28024
28025 * README: In the pupa-mkimage example use _chain instead of chain
28026 and ext2 instead of fat.
28027 * TODO: Replace ext2fs with jfs as an example. Add an item for
28028 adding journal playback for ext2fs.
28029 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
28030 (pkgdata_MODULES): Added ext2.mod.
28031 (ext2_mod_SOURCES): New variable.
28032 (ext2_mod_CFLAGS): Likewise.
28033 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
28034 * include/pupa/misc.h (pupa_strncpy): New prototype.
28035 (pupa_strcat): Likewise.
28036 (pupa_strncmp): Likewise.
28037 * kern/misc.c (pupa_strcat): Enable function.
28038 (pupa_strncpy): New function.
28039 (pupa_strncmp): Likewise.
28040 * fs/ext2.c: New file.
28041
28042 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
28043 when the read failed before retrying.
28044 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
28045 (_FILE_OFFSET_BITS): Likewise.
28046 * configure.ac: Added AC_SYS_LARGEFILE.
28047
28048 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
28049
28050 * genmk.rb (PModule#rule): Make sure to get only symbol names
28051 from the output of nm.
28052 Reported by Robert Millan <rmh.grub@aybabtu.com>.
28053
28054 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
28055
28056 I forgot to check in these changes for a long time. This adds
28057 incomplete support for VGA console, and this is still very
28058 buggy. Also, a lot of consideration is required for I18N,
28059 UNICODE, and VGA font issues. Therefore, assume that this is
28060 such that "better than nothing".
28061
28062 * font/manager.c: New file.
28063 * include/pupa/font.h: Likewise.
28064 * include/pupa/i386/pc/vga.h: Likewise.
28065 * term/i386/pc/vga.c: Likewise.
28066 * util/unifont2pff.rb: Likewise.
28067
28068 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
28069 (pkgdata_MODULES): Added vga.mod and font.mod.
28070 (vga_mod_SOURCES): New variables.
28071 (vga_mod_CFLAGS): Likewise.
28072 (font_mod_SOURCES): Likewise.
28073 (font_mod_CFLAGS): Likewise.
28074
28075 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
28076
28077 * include/pupa/term.h: Include pupa/err.h.
28078 (struct pupa_term): Added init and fini.
28079 Changed the argument of putchar to pupa_uint32_t.
28080
28081 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
28082 (pupa_console_real_putchar): New prototype.
28083 (pupa_console_putchar): Removed.
28084 (pupa_console_checkkey): Exported.
28085 (pupa_console_getkey): Likewise.
28086
28087 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
28088 characters.
28089
28090 * kern/term.c (pupa_term_set_current): Rewritten.
28091 (pupa_putchar): Likewise.
28092 (pupa_putcode): New function.
28093
28094 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
28095 (pupa_console_real_putchar): ... this.
28096 (pupa_vga_set_mode): New function.
28097 (pupa_vga_get_font): Likewise.
28098
28099 * normal/command.c: Include pupa/term.h.
28100 (terminal_command): New function.
28101 (pupa_command_init): Register the command "terminal".
28102
28103 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
28104 (DISP_UP): Likewise.
28105 (DISP_RIGHT): Likewise.
28106 (DISP_DOWN): Likewise.
28107 (DISP_HLINE): Likewise.
28108 (DISP_VLINE): Likewise.
28109 (DISP_UL): Likewise.
28110 (DISP_UR): Likewise.
28111 (DISP_LL): Likewise.
28112 (DISP_LR): Likewise.
28113
28114 * term/i386/pc/console.c (pupa_console_putchar): New function.
28115
28116 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
28117
28118 * util/resolve.c (pupa_util_resolve_dependencies): BUG
28119 FIX. Reverse the path_list.
28120
28121 * include/pupa/normal.h: Export pupa_register_command and
28122 pupa_unregister_command.
28123
28124 * hello/hello.c (pupa_cmd_hello): New module.
28125 * conf/i386-pc.rmk: Added hello.mod.
28126
28127 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
28128
28129 * kern/i386/pc/lzo1x.S: New file.
28130
28131 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
28132 (compress_kernel): New variable.
28133 (generate_image): Heavily modified to support compressing a
28134 large part of the core image.
28135
28136 * util/misc.c (pupa_util_read_image): Fix a file descriptor
28137 leak.
28138 (pupa_util_load_image): New function.
28139
28140 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
28141 (pupa_compressed_size): New variable.
28142 (codestart): Enable Gate A20 here.
28143 Decompress the compressed part of the core image.
28144 Rearrange the code to put functions and variables which are
28145 required for initialization in the non-compressed part.
28146 Include lzo1x.S.
28147
28148 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
28149 here.
28150
28151 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
28152
28153 * include/pupa/i386/pc/kernel.h
28154 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
28155 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
28156 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
28157 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
28158 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
28159
28160 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
28161
28162 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
28163 (Utility#rule): Likewise.
28164
28165 * configure.ac: Check if LZO is available.
28166
28167 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
28168
28169 * include/pupa/normal.h: New file.
28170 * include/pupa/setjmp.h: Likewise.
28171 * include/pupa/i386/setjmp.h: Likewise.
28172 * normal/cmdline.c: Likewise.
28173 * normal/command.c: Likewise.
28174 * normal/main.c: Likewise.
28175 * normal/menu.c: Likewise.
28176 * normal/i386/setjmp.S: Likewise.
28177
28178 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
28179 (pupa_rescue_cmd_initrd): Likewise.
28180
28181 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
28182 Likewise.
28183
28184 * kern/i386/pc/startup.S (translation_table): New variable.
28185 (translate_keycode): New function.
28186 (pupa_console_getkey): Call translate_keycode.
28187
28188 * kern/rescue.c (attempt_normal_mode): New function.
28189 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
28190 it failed, print a message.
28191
28192 * kern/mm.c (pupa_real_malloc): Print more information when a
28193 free magic is broken.
28194 (pupa_free): If the first free header is not free actually, set
28195 it to P.
28196
28197 * kern/main.c (pupa_load_normal_mode): Just load the module
28198 "normal".
28199 (pupa_main): Don't print the message
28200 "Entering into rescue mode..." here.
28201
28202 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
28203 Declared.
28204 (pupa_rescue_cmd_initrd): Likewise.
28205 (pupa_rescue_cmd_initrd): Likewise.
28206
28207 * include/pupa/symbol.h (FUNCTION): Specify the type.
28208 (VARIABLE): Likewise.
28209
28210 * include/pupa/err.h (pupa_err_t): Added
28211 PUPA_ERR_UNKNOWN_COMMAND.
28212
28213 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
28214 (pupa_dl_get_prefix): Likewise.
28215
28216 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
28217 Added _chain.mod and _linux.mod instead of chain.mod and
28218 linux.mod.
28219 (chain_mod_SOURCES): Renamed to ...
28220 (_chain_mod_SOURCES): ... this.
28221 (chain_mod_CFLAGS): Renamed to ...
28222 (_chain_mod_CFLAGS): ... this.
28223 (linux_mod_SOURCES): Renamed to ...
28224 (_linux_mod_SOURCES): ... this.
28225 (linux_mod_CFLAGS): Renamed to ...
28226 (_linux_mod_CFLAGS): ... this.
28227 (normal_mod_SOURCES): New variable.
28228 (normal_mod_CFLAGS): Likewise.
28229 (normal_mod_ASFLAGS): Likewise.
28230
28231 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
28232
28233 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
28234 possible.
28235
28236 * kern/dl.c (pupa_dl_ref): Refer depending modules
28237 recursively.
28238 (pupa_dl_unref): Unrefer depending modules recursively.
28239 Don't call pupa_dl_unload implicitly, because PUPA can crash if
28240 a module is unloaded before one depending on that module is
28241 unloaded.
28242 (pupa_dl_unload): Unload depending modules explicitly,
28243 if possible.
28244
28245 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
28246
28247 * include/pupa/i386/pc/linux.h: New file.
28248 * loader/i386/pc/linux.c: Likewise.
28249
28250 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
28251 Removed.
28252 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
28253 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
28254 of PUPA_CHAINLOADER_BOOT_SECTOR.
28255
28256 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
28257 (pupa_linux_prot_size): New variable.
28258 (pupa_linux_tmp_addr): Likewise.
28259 (pupa_linux_real_addr): Likewise.
28260 (pupa_linux_boot_zimage): New function.
28261 (pupa_linux_boot_bzimage): Likewise.
28262
28263 * kern/i386/pc/init.c (struct mem_region): New structure.
28264 (MAX_REGIONS): New macro.
28265 (mem_regions): New variable.
28266 (num_regions): Likewise.
28267 (pupa_os_area_addr): Likewise.
28268 (pupa_os_area_size): Likewise.
28269 (pupa_lower_mem): Likewise.
28270 (pupa_upper_mem): Likewise.
28271 (add_mem_region): New function.
28272 (compact_mem_regions): Likewise.
28273 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
28274 the size of the conventional memory and that of so-called upper
28275 memory (before the first memory hole).
28276 Instead of adding each found region to free memory, use
28277 add_mem_region and add them after removing overlaps.
28278 Also, add only 1/4 of the upper memory to free memory. The rest
28279 is used for loading OS images. Maybe this is ad hoc, but this
28280 makes it much easier to relocate OS images when booting.
28281
28282 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
28283 (pupa_enter_rescue_mode): Don't register initrd and module.
28284
28285 * kern/mm.c: Include pupa/dl.h.
28286
28287 * kern/main.c: Include pupa/file.h and pupa/device.h.
28288
28289 * kern/loader.c (pupa_loader_load_module_func): Removed.
28290 (pupa_loader_load_module): Likewise.
28291
28292 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
28293 ``.o''.
28294
28295 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
28296 (pupa_linux_tmp_addr): Likewise.
28297 (pupa_linux_real_addr): Likewise.
28298 (pupa_linux_boot_zimage): Likewise.
28299 (pupa_linux_boot_bzimage): Likewise.
28300
28301 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
28302 (pupa_upper_mem): Likewise.
28303 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
28304 module is too dangerous.
28305
28306 * include/pupa/loader.h (pupa_os_area_addr): Declared.
28307 (pupa_os_area_size): Likewise.
28308 (pupa_loader_set): Remove the first argument. Loader doesn't
28309 manage modules or initrd any longer.
28310 (pupa_loader_load_module): Removed.
28311
28312 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
28313 (linux_mod_SOURCES): New variable.
28314 (linux_mod_CFLAGS): Likewise.
28315
28316 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
28317
28318 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
28319 the length of a blocklist correctly.
28320
28321 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
28322 Use ioctl only if the OS file is a block device.
28323 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
28324 not very useful for normal files.
28325
28326 * kern/main.c (pupa_set_root_dev): New function.
28327 (pupa_load_normal_mode): Likewise.
28328 (pupa_main): Call those above.
28329
28330 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
28331 pupa_uint16_t.
28332
28333 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
28334
28335 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
28336
28337 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
28338 (setup): Configure the installed partition information and the
28339 dl prefix.
28340
28341 * loader/i386/pc/chainloader.c (my_mod): New variable.
28342 (pupa_chainloader_unload): New function.
28343 (pupa_rescue_cmd_chainloader): Refer itself.
28344 (PUPA_MOD_INIT): Save its own module in MY_MOD.
28345
28346 * kern/i386/pc/startup.S (install_partition): Removed.
28347 (version_string): Likewise.
28348 (config_file): Likewise.
28349 (pupa_install_dos_part): New variable.
28350 (pupa_install_bsd_part): Likewise.
28351 (pupa_prefix): Likewise.
28352 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
28353
28354 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
28355 and pupa/misc.h.
28356 (make_install_device): New function.
28357 (pupa_machine_init): Set the dl prefix.
28358
28359 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
28360 (buf): Renamed to ...
28361 (linebuf): ... this.
28362 (pupa_rescue_cmd_prefix): New function.
28363 (pupa_rescue_cmd_insmod): Likewise.
28364 (pupa_rescue_cmd_rmmod): Likewise.
28365 (pupa_rescue_cmd_lsmod): Likewise.
28366 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
28367 rmmod and lsmod.
28368
28369 * kern/mm.c (pupa_memalign): If failed even after invalidating
28370 disk caches, unload unneeded modules and retry.
28371
28372 * kern/misc.c (pupa_memmove): New function.
28373 (pupa_memcpy): Removed.
28374 (pupa_strcpy): New function.
28375 (pupa_itoa): Made static.
28376
28377 * kern/dl.c (pupa_dl_iterate): New function.
28378 (pupa_dl_ref): Likewise.
28379 (pupa_dl_unref): Likewise.
28380 (pupa_dl_unload): Return if succeeded or not.
28381 (pupa_dl_unload_unneeded): New function.
28382 (pupa_dl_unload_all): Likewise.
28383 (pupa_dl_init): Renamed to ...
28384 (pupa_dl_set_prefix): ... this.
28385 (pupa_dl_get_prefix): New function.
28386
28387 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
28388 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
28389 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
28390 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
28391 (pupa_install_dos_part): Declared.
28392 (pupa_install_bsd_part): Likewise.
28393 (pupa_prefix): Likewise.
28394 (pupa_boot_drive): Likewise.
28395
28396 * include/pupa/types.h: Fix a typo.
28397
28398 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
28399 pupa_memmove.
28400 (pupa_memmove): Declared.
28401 (pupa_strcpy): Likewise.
28402
28403 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
28404 pupa_mod_init takes one argument, its own module.
28405 (pupa_dl_unload_unneeded): Declared.
28406 (pupa_dl_unload_all): Likewise.
28407 (pupa_dl_ref): Likewise.
28408 (pupa_dl_unref): Likewise.
28409 (pupa_dl_iterate): Likewise.
28410 (pupa_dl_init): Renamed to ...
28411 (pupa_dl_set_prefix): ... this.
28412 (pupa_dl_get_prefix): Declared.
28413
28414 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
28415 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
28416 unloaded.
28417 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
28418 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
28419
28420 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
28421 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
28422
28423 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
28424
28425 * util/i386/pc/pupa-setup.c (setup): Define the internal
28426 function find_first_partition_start at the top level, because GCC
28427 3.0.x cannot compile internal functions in deeper scopes
28428 correctly.
28429 (find_root_device): Use lstat instead of stat.
28430 Don't follow symbolic links.
28431 Fix the path-constructing code.
28432
28433 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
28434 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
28435 by a BLKGETSIZE ioctl first, because block devices don't fill
28436 the member st_mode of the structure stat on Linux.
28437 [__linux__] (linux_find_partition): Use a temporary buffer
28438 REAL_DEV for the working space. Copy it to DEV before returning.
28439 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
28440 buffer cache consistent.
28441 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
28442 strncmp. The previous value was merely wrong.
28443 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
28444
28445 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
28446 FAT size is 12. The previous value was merely wrong.
28447
28448 * kern/main.c (pupa_main): Don't split the starting message from
28449 newlines.
28450
28451 * kern/term.c (pupa_putchar): Put CR after LF instead of before
28452 LF, because BIOS goes crazy about character attributes in this
28453 case.
28454
28455 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
28456
28457 * include/i386/pc/util/biosdisk.h: New file.
28458 * util/i386/pc/biosdisk.c: Likewise.
28459 * util/i386/pc/pupa-setup.c: Likewise.
28460
28461 * Makefile.in (INCLUDE_DISTFILES): Added
28462 include/pupa/i386/pc/util/biosdisk.h.
28463 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
28464 directory util/i386/pc.
28465 (install-local): Added a rule for sbin_UTILITIES.
28466 (uninstall): Likewise.
28467
28468 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
28469
28470 * util/misc.c (xrealloc): New function.
28471 (pupa_malloc): Likewise.
28472 (pupa_free): Likewise.
28473 (pupa_realloc): Likewise.
28474 (pupa_stop): Likewise.
28475 (pupa_putchar): Likewise.
28476
28477 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
28478
28479 * include/pupa/util/misc.h (xrealloc): Declared.
28480
28481 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
28482 macro.
28483 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
28484 (PUPA_BOOT_MACHINE_BPB_END): ... this.
28485
28486 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
28487 [PUPA_UTIL] (pupa_fat_fini): Likewise.
28488
28489 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
28490 way should be implemented.
28491 [PUPA_UTIL] (pupa_fat_fini): Likewise.
28492
28493 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
28494 the size of NAME for safety.
28495 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
28496 0x88.
28497
28498 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
28499 (pupa_setup_SOURCES): Likewise.
28500
28501 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
28502
28503 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
28504
28505 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
28506 bunch of pushl's from pusha, because this destroys the return
28507 value.
28508
28509 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
28510
28511 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
28512 This means that any missing prototypes could be fatal. Also, you
28513 must take care when writing assembly code. See the comments at
28514 the beginning of startup.S, for more details.
28515
28516 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
28517 compilation mechanism.
28518 (pupa_chainloader_real_boot): Likewise.
28519 (pupa_biosdisk_rw_int13_extensions): Likewise.
28520 (pupa_biosdisk_rw_standard): Likewise.
28521 (pupa_biosdisk_check_int13_extensions): Likewise.
28522 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
28523 (pupa_biosdisk_get_diskinfo_standard): Likewise.
28524 (pupa_get_memsize): Likewise.
28525 (pupa_get_mmap_entry): Likewise.
28526 (pupa_console_putchar): Likewise.
28527 (pupa_console_setcursor): Likewise.
28528 (pupa_getrtsecs): Use pushl instead of push.
28529
28530 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
28531 memory instead of the stack for a mmap entry, because some
28532 BIOSes may ignore the maximum size and overflow.
28533
28534 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
28535
28536 * genmk.rb (PModule#rule): Compile automatically generated
28537 sources with module-specific CFLAGS as well as other sources.
28538
28539 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28540
28541 * configure.ac: Check ld.
28542 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
28543 respectively, before checking endianness and sizes.
28544
28545 * Makefile.in (LD): New variable.
28546
28547 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28548
28549 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
28550
28551 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28552
28553 * Changelog: New file.
28554