1 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3 Restructure SCSI .id handling.
4 Reported and tested by: Aleš Nesrsta.
6 * disk/ata.c (grub_atapi_close): Removed. All users updated.
7 (grub_atapi_dev): Changed .name to "ata". New field .id.
8 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
9 (grub_usbms_dev): New field .id.
10 * disk/scsi.c (grub_scsi_iterate): Generate name.
11 (grub_scsi_open): Parse name.
12 * include/grub/scsi.h (grub_make_scsi_id): New function.
13 (grub_scsi_dev): Change iterate and open to number instead of naming
14 busses. All users updated.
15 (grub_scsi): Remove name. Add .bus.
17 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19 * commands/help.c (grub_cmd_help): Fix a typo.
21 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
24 Reported and tested by: Colin Watson.
26 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
28 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
31 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
33 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
35 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
37 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
40 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
42 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
43 and disk/raid6_recover.c.
44 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
47 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
49 * term/gfxterm.c (repaint_schedulded): Rename to ...
50 (repaint_scheduled): ... this. Update all callers.
51 (repaint_was_schedulded): Rename to ...
52 (repaint_was_scheduled): ... this. Update all callers.
54 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
56 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
57 which we expect to be handled by upper layers.
59 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
61 * bus/usb/usbhub.c: #include time.h header.
63 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
65 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
66 entry_name also for entries without stat blocks (e.g. ".."); fixes
67 corruption of the first entry in a directory.
69 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
71 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
72 after setting gfxterm as the active terminal. GRUB_BACKGROUND
73 doesn't work otherwise.
75 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
77 * docs/grub.texi (Features): Update list of supported file systems.
78 (GNU/Linux): Update for GRUB 2.
79 (Serial terminal): Remove mention of --disable-serial, which was a
80 GRUB Legacy configure option. Update instructions to use
81 `terminal_input' and `terminal_output' rather than `terminal'.
82 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
83 configuration' and `Installing GRUB using grub-install'.
84 (Menu entry editor): Update for GRUB 2.
85 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
86 Document new -a, -u, and -v options.
87 (initrd): New section.
88 (initrd16): New section.
90 (linux16): New section.
91 (search): The `var' argument to `--set' is optional.
92 (GRUB only offers a rescue shell): Go into a little more detail on
95 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
97 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
99 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
101 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
102 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
104 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
106 * util/i386/pc/grub-setup.c (setup): Rename prefix to
107 install_prefix, in line with install_dos_part and install_bsd_part.
108 Add new prefix variable, which is copied to install_prefix after
109 comparing core.img in memory with the one read from disk in the
110 no-embedding case, and use that rather than overwriting
111 install_prefix immediately when installing to a partition.
112 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
115 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
117 * configure.ac: Avoid == in test command, it's not portable.
118 * util/grub.d/30_os-prober.in: Likewise.
120 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
122 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
124 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
126 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
127 multiple (top-level) partmaps.
129 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
131 * util/i386/efi/grub-install.in: Don't use empty grub_device.
132 Reported by: Tino Keitel.
134 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
136 Bidi and diacritics support.
138 * Makefile.in (widthspec.bin): New target.
139 (widthspec.h): Likewise.
140 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
141 * autogen.sh: Generate unidata.c.
142 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
143 * commands/ls.c (grub_ls_list_devices): Likewise.
144 (grub_ls_list_files): Likewise.
145 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
146 (grub_mini_cmd_lsmod): Likewise.
147 * commands/read.c: Likewise.
148 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
149 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
150 * lib/arg.c (grub_arg_show_help): Likewise.
151 * lib/crypto.c (grub_password_get): Likewise.
152 * normal/auth.c (grub_username_get): Likewise.
153 * normal/misc.c (grub_normal_print_device_info): Likewise.
154 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
155 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
156 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
157 (normal/charset.c_DEPENDENCIES): New variable.
158 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
159 (pkglib_MODULES): Remove charset.mod.
160 (charset_mod_SOURCES): Removed.
161 (charset_mod_CFLAGS): Likewise.
162 (charset_mod_LDFLAGS): Likewise.
163 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
164 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
166 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
167 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
168 (kernel_img_HEADERS): Add terminfo.h.
169 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
170 Fill ->font. Reverse ascii bitmaps.
171 (grub_font_get_xheight): New function.
172 * font/font.c (grub_font_get_string_width): Moved from here ...
173 * gfxmenu/font.c (grub_font_get_string_width): ... here.
174 * font/font.c (grub_font_draw_string): Moved from here ...
175 * gfxmenu/font.c (grub_font_draw_string): ... here.
176 * font/font.c (grub_font_dup_glyph): New function.
177 (grub_font_blit_glyph): Likewise.
178 (grub_font_blit_glyph_mirror): Likewise.
179 (blit_comb): Likewise.
180 (grub_font_construct_dry_run): Likewise.
181 (grub_font_get_constructed_device_width): Likewise.
182 (grub_font_construct_glyph): Likewise.
183 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
184 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
185 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
186 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
187 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
188 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
189 (grub_font_get_xheight): New proto.
190 (grub_font_get_constructed_device_width): Likewise.
191 (grub_font_construct_glyph): Likewise.
192 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
193 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
194 * include/grub/font.h (grub_font_draw_string): Moved from here ...
195 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
196 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
197 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
198 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
199 (grub_console_getcharwidth): Likewise.
200 * include/grub/misc.h (grub_xputs): New proto.
201 (grub_puts): Inlined.
202 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
203 (grub_normal_get_line_counter): Removed.
204 (grub_install_newline_hook): Likewise.
205 (grub_normal_get_char_counter): New proto.
206 (grub_normal_reset_more): Likewise.
207 (grub_xputs_normal): Likewise.
208 * include/grub/powerpc/ieee1275/console.h: Removed.
209 * include/grub/sparc64/ieee1275/console.h: Likewise.
210 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
211 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
212 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
213 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
214 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
215 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
216 (grub_term_input): Pass reference to self. All users updated.
217 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
218 Pass reference to self. New fields normal_color, highlight_color and
219 data. All users updated.
220 (grub_putchar): Removed.
221 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
222 (grub_unicode_estimate_width): New function.
223 (grub_term_getcharwidth): Add defaults.
224 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
225 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
226 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
227 (grub_cls): Remove EXPORT_FUNC.
228 (grub_setcolorstate): Inline.
229 (grub_newline_hook): Removed.
230 * include/grub/terminfo.h: Rewritten. All users updated.
231 * include/grub/unicode.h: New file.
232 * include/grub/video.h (grub_video_signed_rect): New type.
233 * kern/emu/console.c (grub_console_highlight_color): Removed.
234 (grub_console_normal_color): Likewise.
235 (grub_console_standard_color): Made static.
236 (grub_ncurses_putchar): Remove mapping.
237 (grub_ncurses_getcharwidth): Removed.
238 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
239 (grub_ncurses_setcolor): Removed.
240 (grub_ncurses_getcolor): Likewise.
241 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
242 (grub_console_putchar): ... this.
243 (grub_console_putchar): Handle argument difference.
244 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
245 console_init_early and console_init_lately.
246 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
247 * kern/misc.c (grub_puts): Removed.
248 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
249 (grub_vsnprintf_real): Remove str = NULL support.
250 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
251 * normal/charset.c (grub_utf8_to_ucs4): ... here.
252 * kern/term.c (grub_putcode): Renamed to ...
253 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
254 (grub_putchar): Removed.
255 (grub_xputs_dumb): New function.
256 (grub_xputs): New variable.
257 * lib/charset.c: Move from here ...
258 * normal/charset.c: ... to here.
259 (grub_ucs4_to_utf8): New function.
260 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
261 (join_types): New variable.
262 (unpack_join): New function.
263 (bidi_types): New variable.
264 (unpack_bidi): New function.
265 (get_bidi_type): Likewise.
266 (get_join_type): Likewise.
267 (is_mirrored): Likewise.
268 (grub_unicode_get_comb_type): Likewise.
269 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
270 (is_type_after): Likewise.
271 (grub_unicode_aglomerate_comb): Likewise.
272 (bidi_line_wrap): Likewise.
273 (grub_bidi_line_logical_to_visual): Likewise.
274 (grub_bidi_logical_to_visual): Likewise.
275 (grub_unicode_mirror_code): Likewise.
276 (grub_unicode_shape_code): Likewise.
277 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
278 Don't use grub_putchar.
279 * normal/main.c (grub_normal_init_page): Use grub_putcode.
280 (grub_normal_reader_init): Likewise.
281 (grub_xputs_saved): New variable.
282 (GRUB_MOD_INIT): Set grub_xputs.
283 (GRUB_MOD_FINI): Restore grub_xputs.
284 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
285 (menu_init): Avoid printing gfxmenu error.
286 (show_menu): Use grub_normal_get_char_counter.
287 * normal/menu_entry.c (update_screen): Fix out-of-array.
288 (complete): Avoid NULL dereferencing.
289 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
290 * normal/menu_text.c (print_spaces): Removed.
291 (grub_print_ucs4): Likewise.
292 (grub_print_message_indented): Use grub_print_ucs4.
293 (print_message): Use grub_putcode.
294 (print_entry): Hanlde diacritics.
295 * normal/term.c (term_state): New type.
296 (grub_more_lines): Removed.
297 (term_states): New variable.
298 (grub_normal_line_counter): Renamed to ..
299 (grub_normal_char_counter): ...this. All users updated.
300 (grub_normal_get_line_counter): Renamed to ...
301 (grub_normal_get_char_counter): ... this.
302 (grub_normal_reset_more): New function.
303 (process_newline): Removed.
304 (print_more): New function.
305 (grub_install_newline_hook): Removed.
306 (map_code): New function.
307 (grub_puts_terminal): Use grub_print_ucs4.
308 (putglyph): New function.
309 (putcode_real): Likewise.
310 (grub_putcode): Use putcode_real.
311 (get_maxwidth): New function.
312 (get_startwidth): Likewise.
313 (print_ucs4_terminal): Likewise.
314 (find_term_state): Likewise.
315 (put_glyphs_terminal): Likewise.
316 (print_backlog): Likewise.
317 (print_ucs4_real): Likewise.
318 (grub_print_ucs4): Likewise.
319 (grub_xputs_normal): Likewise.
320 * term/efi/console.c (grub_console_putchar): Output diacritics.
321 (grub_console_getcharwidth): Removed.
322 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
323 * term/gfxterm.c (clear_char): Free chars.
324 (scroll_up): Avoid leaking memory.
325 (grub_gfxterm_putchar): Support diacritics.
326 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
327 * term/i386/pc/console.c (grub_console_term_output): Declare as
328 GRUB_TERM_CODE_TYPE_VGA.
329 * term/i386/pc/vga.c (grub_vga_term): Declare as
330 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
331 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
332 GRUB_TERM_CODE_TYPE_VGA.
333 * term/i386/vga_common.c (map_char): Removed.
334 (grub_console_putchar): Likewise.
335 (grub_console_getcharwidth): Likewise.
336 * term/ieee1275/ofconsole.c: Simplify using terminfo.
337 (colors): Reordered to match terminfo.
338 (grub_ofconsole_normal_color): Removed.
339 (grub_ofconsole_writeesc): Likewise.
340 (grub_ofconsole_highlight_color): Likewise.
341 (grub_ofconsole_getcharwidth): Likewise.
342 (grub_ofconsole_setcolorstate): Likewise.
343 (grub_ofconsole_setcolor): Likewise.
344 (grub_ofconsole_getcolor): Likewise.
345 (grub_ofconsole_readkey): Renamed to ...
346 (readkey): ... this. Remove escape sequence handling. Return -1 on no
348 (grub_ofconsole_checkkey): Removed.
349 (grub_ofconsole_getkey): Likewise.
350 (grub_ofconsole_getxy): Likewise.
351 (grub_ofconsole_gotoxy): Likewise.
352 (grub_ofconsole_cls): Likewise.
353 (grub_ofconsole_refresh): Likewise.
354 (grub_ofconsole_terminfo_input): New struct.
355 (grub_ofconsole_terminfo_output): Likewise.
356 (grub_ofconsole_term_input): Use terminfo.
357 (grub_ofconsole_term_output): Likewise.
358 (grub_console_init): Split into ...
359 (grub_console_init_early): ...this and ...
360 (grub_console_init_lately): ...this. Use terminfo.
361 (grub_ofconsole_putchar): Renamed to ...
362 (put): ... this. Remove mapping.
363 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
364 * term/serial.c: Simplify using terminfo.
367 (keep_track): Likewise.
368 (registered): Likewise.
369 (input_buf): Likewise.
370 (npending): Likewise.
371 (serial_translate_key_sequence): Likewise.
372 (fill_input_buf): Likewise.
373 (grub_serial_checkkey): Likewise.
374 (grub_serial_getkey): Likewise.
375 (grub_serial_getxy): Likewise.
376 (grub_serial_gotoxy): Likewise.
377 (grub_serial_putchar): Likewise.
378 (grub_serial_cls): Likewise.
379 (grub_serial_setcolorstate): Likewise.
380 (grub_serial_setcursor): Likewise.
381 (serial_hw_init): Use serial_hw_fetch.
382 (grub_serial_terminfo_input): New variable.
383 (grub_serial_terminfo_output): Likewise.
384 (grub_serial_term_input): Use terminfo.
385 (grub_serial_term_output): Likewise.
386 * term/terminfo.c (putstr): Use put.
387 (grub_terminfo_all_free): New function
388 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
389 (grub_terminfo_output_register): New function.
390 (grub_terminfo_output_unregister): Likewise.
391 (grub_terminfo_getxy): Likewise.
392 (grub_terminfo_readkey): Likewise.
393 (grub_terminfo_checkkey): Likewise.
394 (grub_terminfo_getkey): Likewise.
395 (grub_terminfo_input_init): Likewise.
396 (print_terminfo): Likewise.
397 (grub_cmd_terminfo): Handle encoding.
398 (grub_terminfo_gotoxy): Track position.
399 (grub_terminfo_cls): Likewise.
400 (grub_terminfo_putchar): Likewise.
401 (grub_terminfo_setcolorstate): Handle colors
402 (grub_terminfo_cursor_on): This ...
403 (grub_terminfo_cursor_off): ... and this merged into ...
404 (grub_terminfo_setcursor): ... this.
405 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
406 * unicode/ArabicShaping.txt: New file (imported from Unicode).
407 * unicode/BidiMirroring.txt: Likewise.
408 * unicode/UnicodeData.txt: Likewise.
409 * unicode/COPYING: Likewise.
410 * util/grub-editenv.c (grub_putchar): Removed.
411 (grub_xputs_real): New function.
412 (grub_xputs): New variable.
413 * util/grub-fstest.c (grub_putchar): Removed.
414 (grub_xputs_real): New function.
415 (grub_xputs): New variable.
416 * util/grub-mkdevicemap.c (grub_putchar): Removed.
417 (grub_xputs_real): New function.
418 (grub_xputs): New variable.
419 * util/grub-probe.c (grub_putchar): Removed.
420 (grub_xputs_real): New function.
421 (grub_xputs): New variable.
422 * util/grub-script-check.c (grub_putchar): Removed.
423 (grub_xputs_real): New function.
424 (grub_xputs): New variable.
425 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
426 (grub_xputs_real): New function.
427 (grub_xputs): New variable.
428 * util/import_unicode.py: New file.
429 * util/grub-mkfont.c (ft_errmsgs): New array.
430 (grub_glyph_info): Make bitmap a pointer.
431 (file_formats): New type WIDTH_SPEC.
432 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
433 (options): Add width-spec.
435 (add_char): Renamed to ...
436 (add_glyph): ... this.
437 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
438 (glyph_replace): New type.
439 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
440 (add_char): New function.
441 (add_subst): Likewise.
442 (process_cursive): Likewise.
443 (add_font): Handle GSUB.
444 (write_font_width_spec): New function.
446 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
447 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
448 * kern/term.c (grub_cls): Moved from here...
449 * normal/term.c (grub_cls): ... here.
451 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
453 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
454 suitable for using within the format argument of printf when
455 converting grub_size_t.
456 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
457 "x" to convert grub_size_t arguments.
459 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
461 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
463 (list_get_minimal_size): Take selection box into account.
465 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
467 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
470 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
472 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
473 devices when iterating over /dev/disk/by-id; they will be handled
474 later if appropriate, which they aren't always (e.g. LVM).
476 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
478 * include/grub/misc.h (grub_reboot): Declare as noreturn.
479 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
481 (grub_halt): Likewise.
482 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
484 (grub_halt): Don't return, even if all of shut-down, power-off, and
487 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
489 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
490 arguments, not three.
492 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
494 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
495 * util/grub.d/10_linux.in: Use it to check for LVM, so that
496 LVM-on-RAID is handled correctly.
498 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
500 * docs/grub.texi (Changes from GRUB Legacy): New section.
503 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
505 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
506 grub.d/README accidentally ends up executable for one reason or
509 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
511 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
512 (gpt_partition_map_iterate): Support non-512B sectors.
514 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
516 * kern/efi/init.c (grub_efi_init): Disable watchdog.
517 Tested by: Seth Goldberg.
519 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
521 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
523 Reported by: Seth Goldberg.
525 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
527 * util/grub-mkrescue.in: Avoid module duplication.
529 2010-07-01 Sean Finney <seanius@seanius.net>
531 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
533 2010-07-01 Sean Finney <seanius@seanius.net>
535 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
537 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
539 * disk/lvm.c (grub_lvm_checkvalue): New function.
540 (grub_lvm_check_flag): Likewise.
542 2010-07-01 Robert Millan <rmh@gnu.org>
544 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
545 Support 'p' as partition separator on kernel of FreeBSD (used
547 (grub_util_biosdisk_get_grub_dev): Likewise.
549 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
551 Yeeloong firmware port.
553 * boot/mips/yeeloong/fwstart.S: New file.
554 * bus/cs5536.c (gpiodump): New const.
555 (set_io_space): New function.
558 (grub_cs5536_init_geode): Likewise.
559 * commands/mips/yeeloong/lsspd.c: New file.
560 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
561 (serial_mod_SOURCES): New variable.
562 (serial_mod_CFLAGS): Likewise.
563 (serial_mod_LDFLAGS): Likewise.
564 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
565 term/terminfo.c and term/tparm.c.
566 (pkglib_IMAGES): Add fwstart.img.
567 (fwstart_img_SOURCES): New variable.
568 (fwstart_img_CFLAGS): Likewise.
569 (fwstart_img_ASFLAGS): Likewise.
570 (fwstart_img_LDFLAGS): Likewise.
571 (fwstart_img_FORMAT): Likewise.
572 (pkglib_MODULES): Add lsspd.mod.
573 (lsspd_mod_SOURCES): New variable.
574 (lsspd_mod_CFLAGS): Likewise.
575 (lsspd_mod_LDFLAGS): Likewise.
576 (pkglib_MODULES): Add halt.mod.
577 (halt_mod_SOURCES): New variable.
578 (halt_mod_CFLAGS): Likewise.
579 (halt_mod_LDFLAGS): Likewise.
580 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
581 (serial_mod_SOURCES): Removed.
582 (serial_mod_CFLAGS): Likewise.
583 (serial_mod_LDFLAGS): Likewise.
584 * disk/ata.c (check_device): New function.
585 (grub_ata_device_initialize): Use check_device.
586 (grub_ata_iterate): Recheck devices.
587 (grub_ata_open): Likewise.
588 (grub_atapi_iterate): Likewise.
589 (grub_atapi_open): Likewise.
590 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
591 (GRUB_ATA_CH1_PORT1): Likewise.
592 (GRUB_ATA_CH0_PORT2): Likewise.
593 (GRUB_ATA_CH1_PORT2): Likewise.
594 * include/grub/mips/loongson.h: New file.
595 * include/grub/mips/yeeloong/ec.h: Likewise.
596 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
597 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
598 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
599 * include/grub/misc.h (grub_halt): Declare as noreturn.
600 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
601 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
602 (UART_ENABLE_FIFO_TRIGGER1): New definition.
603 (UART_ENABLE_DTRRTS): Likewise.
604 (UART_ENABLE_MODEM): Removed.
605 (UART_ENABLE_OUT2): New const.
606 * include/grub/term.h (grub_term_register_input_active): New function.
607 (grub_term_register_output_active): Likewise.
608 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
610 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
611 (init_pci): New function.
612 (grub_machine_init): Execute platform init when firmware. Init serial.
613 (grub_halt): Implement.
614 (grub_exit): Likewise.
615 (grub_reboot): Likewise.
616 * term/serial.c (serial_hw_init): Update macros.
617 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
618 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
619 (image_targets): New target mipsel-yeeloong-flash.
620 (generate_image): Support IMAGE_YEELOONG_FLASH.
621 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
622 (grub_video_sm712_setup): Init card.
623 (grub_video_sm712_set_palette): Removed.
624 * video/sm712_init.c: New file.
626 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
628 * Makefile.in (install-local): Temporarily prepend $(builddir) to
629 PATH when running help2man and then run it on the unadorned
630 executable names, rather than passing $(builddir)/* paths to
631 help2man. This avoids the build directory ending up in generated
634 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
636 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
637 to avoid accidents when debugging with 'sh -x'.
638 * util/grub-mkrescue.in: Likewise.
639 * util/grub.d/00_header.in: Likewise.
640 * util/grub.d/10_hurd.in: Likewise.
641 * util/grub.d/10_kfreebsd.in: Likewise.
642 * util/grub.d/10_linux.in: Likewise.
643 * util/grub.d/10_netbsd.in: Likewise.
644 * util/grub.d/10_windows.in: Likewise.
645 * util/grub.d/20_linux_xen.in: Likewise.
646 * util/grub.d/30_os-prober.in: Likewise.
647 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
649 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
651 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
652 last character in the buffer.
653 Reported by: Vladimir Serbinenko.
655 2010-06-29 Robert Millan <rmh@gnu.org>
657 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
658 (Command-line and menu entry commands): Document `badram' command.
660 2010-06-28 Robert Millan <rmh@gnu.org>
662 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
663 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
664 command using ${GRUB_BADRAM} as parameter.
666 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
668 * docs/grub.texi (Device map): New section.
669 (Themes): New section (stub).
670 * Makefile.in (docs/grub.info): The info documentation now builds
671 without errors. Make sure it stays that way.
673 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
675 Use normal parser for menu entries.
676 Reported by: Thomas Frauendorfer
678 * include/grub/parser.h (grub_parser_execute): Don't export.
679 * normal/menu.c (grub_menu_execute_entry_real): New function.
680 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
682 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
684 * docs/grub.texi (Embedded configuration): New section (replacing
685 old "Preset Menu" stub).
686 (Images): New section.
687 (configfile): Note that any menu entries defined in `file' are shown
690 2010-06-28 Josh Triplett <josh@joshtriplett.org>
692 * mmap/i386/pc/mmap_helper.S: Set CF on return.
694 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
696 * util/grub-install.in: Add --debug-image= option.
698 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
700 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
703 * util/deviceiter.c (check_device): Rename to ...
704 (check_device_readable_unique): ... this. Update all callers.
705 Maintain and check a list of which devices (by canonicalized name)
706 have already been seen.
707 (clear_seen_devices): New function.
708 (compare_file_names) [__linux__]: New function.
709 (grub_util_iterate_devices): Clear the list of seen devices on exit
710 and (just in case) on entry.
711 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
712 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
713 seen-devices list, superseded by general code in check_device.
715 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
717 * commands/cat.c (options): New variable.
718 (grub_cmd_cat): Parse options. If the --dos option is given, print
719 DOS-style "\r\n" line endings as simple newlines (Debian bug
721 (GRUB_MOD_INIT): Use extcmd.
722 (GRUB_MOD_FINI): Likewise.
723 * docs/grub.texi (cat): Document --dos.
725 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
727 XEN with Linux grub-mkconfig support.
729 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
730 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
731 GRUB_CMDLINE_XEN_DEFAULT.
732 * util/grub.d/20_linux_xen.in: New file.
734 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
736 Initialise VGA video on qemu ourselves.
738 * boot/i386/qemu/boot.S: Don't call 0xc000.
739 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
740 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
741 (kernel_img_HEADERS): Add pci.h.
742 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
743 * configure.ac: Force unifont on qemu and yeeloong.
744 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
745 (grub_vga_palette_write): Use correct register.
746 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
747 Call grub_qemu_init_cirrus.
748 * kern/i386/qemu/init.c: New file.
749 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
751 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
753 2010-06-26 Pavel Roskin <proski@gnu.org>
755 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
758 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
760 * docs/grub.texi (Simple configuration): Explain that
761 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
762 set to `true' to disable their respective recovery entries, not
765 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
767 Make the `source' command slightly faster.
769 * normal/main.c (grub_normal_execute): Don't re-read list files when
772 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
774 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
775 field position and mask size to red fields from mode_info, not
777 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
778 Remove redundant tag->common.framebuffer_type assignment.
779 Reported by: Seth Goldberg.
781 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
783 Sync up other versions of the Linux loader with Robert Millan's
784 change of 2010-01-09, "Make loader output a bit more user-friendly".
786 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
788 (grub_cmd_linux): Likewise.
789 (grub_cmd_initrd): Likewise.
790 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
791 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
793 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
795 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
796 larger than MEMORY_MAP_SIZE.
798 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
802 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
804 * script/parser.y: #include grub_script.tab.h header.
806 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
808 Support >3GiB and <16MiB RAM in i386-qemu.
810 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
811 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
812 (grub_lower_mem): Removed.
813 (grub_upper_mem): Likewise.
814 (mem_size): Made static.
815 (above_4g): New variable.
816 (grub_machine_mmap_init): Detect small mem_size and above_4g.
817 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
820 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
822 Cirrus 5446 and Bochs video cards support.
824 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
826 (video_cirrus_mod_SOURCES): New variable.
827 (video_cirrus_mod_CFLAGS): Likewise.
828 (video_cirrus_mod_LDFLAGS): Likewise.
829 (video_bochs_mod_SOURCES): Likewise.
830 (video_bochs_mod_CFLAGS): Likewise.
831 (video_bochs_mod_LDFLAGS): Likewise.
832 * include/grub/vga.h: New file.
833 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
834 (grub_video_fb_set_page_t): New type.
835 (grub_video_fb_setup): New prototype.
836 (grub_video_fb_swap_buffers): Likewise.
837 (grub_video_fb_get_info_and_fini): Likewise.
838 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
839 (CRTC_DATA_PORT): Likewise.
840 (CRTC_CURSOR): Likewise.
841 (CRTC_CURSOR_ADDR_HIGH): Likewise.
842 (CRTC_CURSOR_ADDR_LOW): Likewise.
843 (CRTC_CURSOR_DISABLE): Likewise.
844 (update_cursor): Use grub_vga_cr_write.
845 (grub_vga_text_setcursor): Likewise.
846 * video/bochs.c: New file.
847 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
849 (palette_size): Likewise.
850 (framebuffer): New variable.
851 (grub_video_fb_init): Use 'framebuffer'.
852 (grub_video_fb_fini): Likewise.
853 (grub_video_fb_get_info): Likewise.
854 (grub_video_fb_get_palette): Likewise.
855 (grub_video_fb_set_palette): Likewise.
856 (grub_video_fb_set_viewport): Likewise.
857 (grub_video_fb_get_viewport): Likewise.
858 (grub_video_fb_map_color): Likewise.
859 (grub_video_fb_map_rgb): Likewise.
860 (grub_video_fb_map_rgba): Likewise.
861 (grub_video_fb_unmap_color): Likewise.
862 (grub_video_fb_unmap_color_int): Likewise.
863 (grub_video_fb_fill_rect): Likewise.
864 (grub_video_fb_blit_bitmap): Likewise.
865 (grub_video_fb_blit_render_target): Likewise.
866 (grub_video_fb_scroll): Likewise.
867 (grub_video_fb_create_render_target): Likewise.
868 (grub_video_fb_doublebuf_blit_init): Likewise.
869 (grub_video_fb_set_active_render_target): Handle doublebuffering.
870 (doublebuf_pageflipping_update_screen): New function.
871 (doublebuf_pageflipping_init): Likewise.
872 (grub_video_fb_setup): Likewise.
873 (grub_video_fb_swap_buffers): Likewise.
874 (grub_video_fb_get_info_and_fini): Likewise.
875 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
877 (doublebuf_pageflipping_commit): Restructured into ...
878 (doublebuf_pageflipping_set_page): ... this.
879 (doublebuf_pageflipping_update_screen): Removed.
880 (doublebuf_pageflipping_init): Likewise.
881 (double_buffering_init): Likewise.
882 (grub_video_vbe_setup): Use grub_video_fb_setup.
883 (grub_video_vbe_swap_buffers): Removed.
884 (grub_video_vbe_set_active_render_target): Likewise.
885 (grub_video_vbe_get_active_render_target): Likewise.
886 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
887 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
888 grub_video_fb_set_active_render_target and
889 grub_video_fb_get_active_render_target.
890 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
891 (SEQUENCER_DATA_PORT): Likewise.
892 (MAP_MASK_REGISTER): Likewise.
893 (CRTC_ADDR_PORT): Likewise.
894 (CRTC_DATA_PORT): Likewise.
895 (START_ADDR_HIGH_REGISTER): Likewise.
896 (START_ADDR_LOW_REGISTER): Likewise.
897 (GRAPHICS_ADDR_PORT): Likewise.
898 (GRAPHICS_DATA_PORT): Likewise.
899 (READ_MAP_REGISTER): Likewise.
900 (INPUT_STATUS1_REGISTER): Likewise.
901 (INPUT_STATUS1_VERTR_BIT): Likewise.
902 (get_map_mask): Use grub_vga_sr_read.
903 (set_map_mask): Use grub_vga_sr_write.
904 (set_read_map): Use grub_vga_gr_write.
905 (set_start_address): Use grub_vga_cr_write.
906 * video/sm712.c (framebuffer): Remove leftover fields.
908 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
910 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
911 setting GRUB_VIDEO_BACKEND. Make it available as a user override
912 instead. Replace the gfxterm backend check with a check that
913 ${GRUB_PREFIX}/video.lst is non-empty.
914 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
916 (load_video): New generated function. Call it before loading
917 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
918 * util/grub.d/10_linux.in (linux_entry): Call load_video.
919 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
920 * docs/grub.texi (Simple configuration): Document
923 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
925 Use video functions in linux and xnu loaders.
927 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
928 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
929 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
930 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
931 loader/i386/pc/linux.c.
932 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
933 (find_line_len): Removed.
934 (find_framebuf): Likewise.
935 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
936 * loader/i386/efi/xnu.c: Removed.
937 * loader/i386/pc/xnu.c: Moved from here...
938 * loader/i386/xnu.c: ...here.
940 Enable priorities in video drivers.
942 * include/grub/video.h (grub_video_adapter_prio_t): New type.
943 (grub_video_adapter): New field prio.
944 (grub_video_register): Respect prio when inserting.
945 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
946 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
947 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
948 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
949 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
950 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
951 * video/sm712.c (grub_video_sm712_adapter): Likewise.
955 * include/grub/video.h (grub_video_driver_id_t): New value
956 GRUB_VIDEO_DRIVER_SDL.
957 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
959 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
961 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
963 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
965 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
967 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
968 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
970 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
972 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
973 directly, and recommend grub-install instead.
974 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
976 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
978 Fix i386-pc prefix handling with nested partitions (Debian bug
979 #585068). Note that the case where the core image is booted using
980 multiboot and relocated from its original location still requires
983 * kern/i386/pc/init.c (make_install_device): If the prefix starts
984 with "(,", fill the boot drive in between those two characters, but
985 expect that a full partition specification including partition map
987 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
988 specified, write a prefix without the drive name but including a
989 full partition specification.
991 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
993 * util/grub-mkconfig.in: Ignore non-option arguments, for
994 compatibility with older versions (before 2010-06-12) which did the
995 same. In particular, this makes it easier to ship an update-grub
996 wrapper which is compatible with that used with GRUB Legacy (Debian
999 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
1001 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
1002 for manual page generation.
1004 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
1006 * po/POTFILES: Remove leftover commands/handler.c.
1008 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
1010 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
1011 left this script non-functional.
1013 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
1015 * docs/man/grub-emu.h2m: New file.
1017 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
1019 * docs/grub.texi (Commands): Document reduced command set in rescue
1021 (cpuid): New section.
1023 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
1025 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
1026 new partition naming style.
1027 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
1029 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
1031 Add "-o grub.iso" like cmdline options support.
1033 * util/grub-install.in: Improve cmdline option parsing.
1034 * util/grub-mkconfig.in: Likewise.
1035 * util/grub-mkrescue.in: Likewise.
1036 * util/grub-reboot.in: Likewise.
1037 * util/grub-set-default.in: Likewise.
1038 * util/i386/efi/grub-install.in: Likewise.
1039 * util/ieee1275/grub-install.in: Likewise.
1040 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1042 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
1044 * .bzrignore: Ignore 41_custom.
1046 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
1048 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
1050 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
1052 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
1053 prototype declarations.
1055 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
1056 generating fs, partmap, and video lists.
1057 * include/grub/fs.h (grub_fs_register): Omit prototype if
1058 GRUB_LST_GENERATOR is defined.
1059 * include/grub/partition.h (grub_partition_map_register): Likewise.
1060 * include/grub/video.h (grub_video_register): Likewise.
1062 2010-06-12 Javier Martín <lordhabbit@gmail.com>
1064 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
1066 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
1068 * util/grub-mkrescue.in: Support --xorriso argument.
1070 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
1072 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
1073 Suggested by: Thomas Schmitt.
1075 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
1077 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
1078 Suggested by: Thomas Schmitt.
1080 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
1084 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
1085 * util/grub.d/41_custom.in: New file.
1087 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
1089 * util/grub-mkrescue.in (make_image): Remove sh module, which has
1090 been merged back into normal.
1092 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
1094 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
1095 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
1097 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
1099 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
1100 when generating manual pages.
1101 * docs/man/grub-bin2h.h2m: New file.
1102 * docs/man/grub-editenv.h2m: New file.
1103 * docs/man/grub-fstest.h2m: New file.
1104 * docs/man/grub-install.h2m: New file.
1105 * docs/man/grub-macho2img.h2m: New file.
1106 * docs/man/grub-mkconfig.h2m: New file.
1107 * docs/man/grub-mkdevicemap.h2m: New file.
1108 * docs/man/grub-mkfont.h2m: New file.
1109 * docs/man/grub-mkimage.h2m: New file.
1110 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
1111 * docs/man/grub-mkrelpath.h2m: New file.
1112 * docs/man/grub-mkrescue.h2m: New file.
1113 * docs/man/grub-ofpathname.h2m: New file.
1114 * docs/man/grub-pe2elf.h2m: New file.
1115 * docs/man/grub-probe.h2m: New file.
1116 * docs/man/grub-reboot.h2m: New file.
1117 * docs/man/grub-script-check.h2m: New file.
1118 * docs/man/grub-set-default.h2m: New file.
1119 * docs/man/grub-setup.h2m: New file.
1121 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
1123 Use FOR_* macros instead of *_iterate whenever possible.
1125 * commands/handler.c: Removed.
1126 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
1127 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
1128 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
1129 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
1130 (grub_probe_SOURCES): Remove kern/parser.c.
1131 (util/grub-script-check.c_DEPENDENCIES): Removed.
1132 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
1133 and grub_script_check_init.c.
1134 (grub_script_check_init.lst): Removed.
1135 (grub_script_check_init.h): Likewise.
1136 (grub_script_check_init.c): Likewise.
1137 (pkglib_MODULES): Remove handler.mod and sh.mod.
1138 (handler_mod_SOURCES): Removed.
1139 (handler_mod_CFLAGS): Likewise.
1140 (handler_mod_LDFLAGS): Likewise.
1141 (normal_mod_SOURCES): Remove normal/handler.c.
1142 Add script/main.c, script/script.c, script/execute.c,
1143 script/function.c, script/lexer.c, grub_script.tab.c
1144 and grub_script.yy.c.
1145 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
1146 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
1147 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
1148 (grub_setup_SOURCES): Remove kern/parser.c.
1149 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
1150 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
1151 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
1152 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
1153 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
1154 (grub_setup_SOURCES): Remove kern/parser.c.
1155 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
1156 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
1157 * include/grub/command.h (grub_command_iterate): Removed.
1158 (FOR_COMMANDS): New macro.
1159 * include/grub/dl.h (grub_dl): New member next.
1160 (grub_dl_iterate): Removed.
1161 (grub_dl_head): New variable declaration.
1162 (FOR_DL_MODULES): New macro.
1163 * include/grub/fs.h: Include list.h.
1164 (grub_fs): Make next first element.
1165 (grub_fs_list): New variable declaration.
1166 (grub_fs_register): Make inline.
1167 (grub_fs_unregister): Likewise.
1168 (grub_fs_iterate): Removed.
1169 (FOR_FILESYSTEMS): New macro.
1170 * include/grub/handler.h: Removed.
1171 * include/grub/list.h (grub_list_hook_t): Removed.
1172 (grub_list_test_t): Likewise.
1173 (grub_list_pop): Likewise.
1174 (grub_list_iterate): Likewise.
1175 (grub_list_insert): Likewise.
1176 (FOR_LIST_ELEMENTS): New macro.
1177 * include/grub/parser.h (grub_parser_class): Removed.
1178 (grub_parser_register): Likewise.
1179 (grub_parser_unregister): Likewise.
1180 (grub_parser_get_current): Likewise.
1181 (grub_parser_set_current): Likewise.
1182 (grub_register_rescue_parser): Likewise.
1183 (grub_rescue_parse_line): New function.
1184 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
1185 * include/grub/script_sh.h (grub_script_function_list): New variable
1187 (FOR_SCRIPT_FUNCTIONS): New macro.
1188 (grub_script_function_iterate): Removed.
1189 (grub_normal_parse_line): New prototype.
1190 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
1191 (FOR_DISABLED_TERM_INPUTS): Likewise.
1192 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
1193 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
1194 * include/grub/video.h (grub_video_adapter): Move 'next' to first
1196 (grub_video_register): Inline.
1197 (grub_video_unregister): Likewise.
1198 (grub_video_adapter_list): New variable declaration.
1199 (grub_video_iterate): Removed.
1200 (FOR_VIDEO_ADAPTERS): New macro.
1201 * kern/dl.c (grub_dl_list): Removed. All users updated.
1202 (grub_dl_iterate): Removed.
1203 * kern/fs.c (grub_fs_list): Make global.
1204 (grub_fs_register): Removed.
1205 (grub_fs_unregister): Likewise.
1206 (grub_fs_iterate): Likewise.
1207 * kern/handler.c: Removed.
1208 * kern/list.c (grub_list_pop): Removed.
1209 (grub_list_iterate): Likewise.
1210 (grub_list_insert): Likewise.
1211 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
1212 (grub_prio_list_insert): Don't use grub_list_insert.
1213 * kern/main.c (grub_register_rescue_parser): Don't call
1214 grub_register_rescue_parser.
1215 * kern/parser.c (grub_parser_class): Removed.
1216 (grub_parser_execute): Use grub_rescue_parse_line.
1217 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
1218 (grub_rescue_parser): Removed.
1219 (grub_register_rescue_parser): Likewise.
1220 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
1221 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
1222 (grub_auth_check_authentication): Likewise.
1223 * normal/completion.c (iterate_command): Removed.
1224 (grub_normal_do_completion): Use FOR_COMMANDS.
1225 * normal/handler.c: Removed.
1226 * normal/main.c (read_config_file): Remove parser changing.
1227 (grub_normal_execute): Don't call read_handler_list.
1228 (grub_normal_read_line_real): Statically allocate prompt.
1229 (grub_cmdline_run): Use grub_normal_parse_line.
1230 (GRUB_MOD_FINI): Don't call free_handler_list.
1231 * normal/menu_entry.c (run): Likewise.
1232 * script/function.c (grub_script_function_list): Make global.
1233 (grub_script_function_iterate): Removed.
1234 * script/main.c (grub_normal_parse_line): Make global.
1235 (grub_sh_parser): Removed.
1236 (GRUB_MOD_INIT): Likewise.
1237 (GRUB_MOD_FINI): Likewise.
1238 * tests/lib/functional_test.c (grub_functional_test): Use
1240 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
1241 (grub_test_run): Use FOR_LIST_ELEMENTS.
1242 * tests/lib/unit_test.c (main): Likewise.
1243 * util/deviceiter.c (grub_util_iterate_devices): Don't use
1245 * util/grub-fstest.c (grub_term_input_class): Removed.
1246 (grub_term_output_class): Likewise.
1247 * util/grub-probe.c: Likewise.
1248 * util/i386/pc/grub-setup.c: Likewise.
1249 * util/sparc64/ieee1275/grub-setup.c: Likewise.
1250 * util/grub-script-check.c (main): Don't call grub_init_all and
1252 * video/video.c (grub_video_adapter_list): Make global.
1253 (grub_video_register): Removed.
1254 (grub_video_unregister): Likewise.
1255 (grub_video_iterate): Likewise.
1257 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1259 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
1260 reported by Henrique Ferreiro.
1262 2010-06-09 Robert Millan <rmh@gnu.org>
1264 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
1265 ones, when both are available.
1267 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
1269 Make --version uniform and avoid hard-coded program name.
1271 * util/grub-mkimage.c (main): Use `program_name' instead of
1273 * util/i386/pc/grub-setup.c (main): Likewise.
1274 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
1275 * util/grub-install.in: Save the basename of $0 in $self, and use the
1276 latter in informational messages. Use the same format for --version
1277 as the binary programs.
1278 * util/grub-mkconfig.in: Likewise.
1279 * util/grub-mkrescue.in: Likewise.
1280 * util/grub-reboot.in: Likewise.
1281 * util/grub-set-default.in: Likewise.
1282 * util/i386/efi/grub-install.in: Likewise.
1283 * util/ieee1275/grub-install.in: Likewise.
1284 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1286 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
1288 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
1289 embedding area. Use <= instead of == when checking for non-emptiness.
1291 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
1293 * configure.ac: Add `.' to the directories searched for unifont.
1295 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
1297 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
1300 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
1302 * docs/grub.texi (History): Expand to cover GRUB 2.
1303 (Serial terminal): Refer to `terminal_input' and `terminal_output'
1304 commands, not `terminal'.
1306 (terminal_input): New section.
1307 (terminal_output): New section.
1308 (uppermem): New section (stub).
1309 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
1311 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
1313 * docs/grub.texi (Security): Menu entries are unrestricted by
1314 default, not restricted to superusers as I had previously thought.
1315 Reword to account for this.
1317 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1319 * kern/emu/misc.c (device_mapper_null_log): New function.
1320 (grub_device_mapper_supported): New function.
1321 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
1323 * kern/emu/hostdisk.c (find_partition_start): Check whether
1324 device-mapper is supported before trying to use it.
1325 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
1327 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1329 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
1330 (File name syntax): Likewise.
1331 (help): --all is no longer supported in GRUB 2. Be more precise
1332 about pattern matching.
1334 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1336 * normal/completion.c (grub_normal_do_completion): When completing
1337 arguments to "set" and the current word contains an equals sign,
1338 skip to after the equals sign before starting completion.
1340 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1342 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
1344 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1346 * docs/grub.texi (Network): New section.
1347 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
1348 `(nd)' as in GRUB Legacy.
1349 (pxe_unload): New section.
1351 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1353 * docs/grub.texi (Troubleshooting): `echo' is not usually available
1354 in the rescue shell, so recommend using `set' instead. Thanks,
1357 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1359 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
1360 (password): New section.
1361 (password_pbkdf2): New section.
1362 (search): New section.
1363 (Security): New section.
1364 (Troubleshooting): New section, currently very incomplete.
1365 (Invoking grub-mkpasswd-pbkdf2): New section.
1366 (Internals): New section, currently very incomplete.
1368 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1370 * util/grub.d/00_header.in: Add some more quoting (of
1371 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
1373 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
1375 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1377 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
1378 to `count', fixing variable shadowing that broke the -c option.
1380 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
1382 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
1383 in case they contain spaces.
1385 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
1387 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
1388 "part_" to partmap module names, in line with grub-install.
1389 Reported by: Jindřich Makovička (Debian bug #584426).
1391 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
1393 * util/grub-mkimage.c: Make target-related error messages slightly
1394 more helpful; -O talks about "format". Explicitly point to the use
1395 of -O if no target is specified.
1396 Reported by: Didier Raboud (Debian bug #584415).
1398 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
1400 * INSTALL: Document several build requirements for optional features
1401 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
1403 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
1405 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
1406 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
1407 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
1409 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1411 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
1412 Thanks to Jordan Uggla for spotting this.
1414 2010-06-02 Aleš Nesrsta <starous@volny.cz>
1416 Finally make USB usable.
1418 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
1419 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
1420 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
1421 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
1422 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
1423 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
1424 (GRUB_OHCI_FSMPS): Likewise.
1425 (GRUB_OHCI_PERIODIC_START): Likewise.
1426 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
1427 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
1428 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
1429 (GRUB_OHCI_SET_PORT_RESET): Likewise.
1430 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
1431 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
1432 (grub_ohci_transaction): Likewise.
1433 (grub_ohci_transfer): Improve condition detection algorithms.
1434 Handle toggle property. Program the transactions correctly.
1435 Improve error handling. Various important fixups.
1436 (grub_ohci_portstatus): Put register writes in right order.
1437 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
1438 (grub_uhci_transfer): Don't show "failed" message on success.
1439 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
1441 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
1443 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
1444 before initialization is completed. Use IN direction for empty
1445 transfers. Use last_trans and compute toggle.
1446 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
1447 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
1448 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
1449 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
1450 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
1451 (grub_usb_device): Increase toggle to 256.
1452 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
1453 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
1454 GRUB_USBMS_SUBCLASS_SFF8070.
1455 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
1456 (grub_scsi_inquiry): New member page and alloc_length.
1457 (grub_scsi_request_sense): New structure.
1458 (grub_scsi_request_sense_data): Likewise.
1459 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
1461 * disk/scsi.c (grub_scsi_request_sense): New function.
1462 (grub_scsi_test_unit_ready): Likewise.
1463 (grub_scsi_inquiry): Fill new fields.
1464 (grub_scsi_read_capacity): Likewise.
1465 (grub_scsi_read10): Add request sense at the end.
1466 (grub_scsi_read12): Likewise.
1467 (grub_scsi_write10): Likewise.
1468 (grub_scsi_write12): Likewise.
1469 (grub_scsi_open): Add Test Unit Ready.
1470 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
1471 Support additional subclasses. Con't clear halt yet. Activate the
1472 proper config. Calculate LUNs correctly.
1473 (grub_usbms_transfer): Various important fixups.
1475 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1477 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
1478 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
1479 (grub_ohci_fini_hw): New function.
1480 (grub_ohci_restore_hw): Likewise.
1481 (GRUB_MOD_INIT(ohci)): Register preboot hook.
1482 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
1483 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
1485 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1487 Dedicated DMA allocations.
1489 * bus/pci.c (grub_memalign_dma32): New function
1490 (grub_dma_free): Likewise.
1491 (grub_dma_get_virt): Likewise.
1492 (grub_dma_get_phys): Likewise.
1493 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
1494 (grub_ohci_pci_iter): Use dma32_alloc.
1495 (grub_ohci_transfer): Likewise.
1496 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
1497 (grub_usb_bulk_readwrite): Likewise.
1498 * include/grub/pci.h: Add declarations.
1500 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1504 * bus/cs5536.c: New file.
1505 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
1506 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
1507 (cs5536_mod_SOURCES): New variable.
1508 (cs5536_mod_CFLAGS): Likewise.
1509 (cs5536_mod_LDFLAGS): Likewise.
1510 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
1512 (kernel_img_SOURCES): Add bus/cs5536.c.
1513 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
1515 (usb_mod_SOURCES): New variable.
1516 (usb_mod_CFLAGS): New variable.
1517 (usb_mod_LDFLAGS): New variable.
1518 (usbtest_mod_SOURCES): New variable.
1519 (usbtest_mod_CFLAGS): New variable.
1520 (usbtest_mod_LDFLAGS): New variable.
1521 (ohci_mod_SOURCES): New variable.
1522 (ohci_mod_CFLAGS): New variable.
1523 (ohci_mod_LDFLAGS): New variable.
1524 (usbms_mod_SOURCES): New variable.
1525 (usbms_mod_CFLAGS): New variable.
1526 (usbms_mod_LDFLAGS): New variable.
1527 (usb_keyboard_mod_SOURCES): New variable.
1528 (usb_keyboard_mod_CFLAGS): New variable.
1529 (usb_keyboard_mod_LDFLAGS): New variable.
1530 * include/grub/smbus.h: New file.
1531 * include/grub/cs5536.h: New file.
1533 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1535 * util/grub.d/00_header.in: Add safety check to make sure that
1536 ${locale_dir} exists before trying to probe it.
1538 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1540 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
1541 per the GNU Coding Standards; this is now too obscure to be worth
1544 (chainloader): Remove cross-reference to `SCO UnixWare'.
1546 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1548 * docs/grub.texi (Chain-loading): New section.
1549 (DOS/Windows): New section, borrowed from GRUB Legacy with details
1550 adjusted for GRUB 2.
1551 (SCO UnixWare): Likewise.
1553 (chainloader): Add reference to `Block list syntax'.
1554 (drivemap): New section.
1555 (parttool): New section.
1557 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1559 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
1561 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
1562 (Installing GRUB using grub-install): Remove reference to the grub
1563 shell; mention `grub-mkimage' and `grub-setup' instead.
1564 (Invoking grub-install): Likewise.
1565 (Interface): Add reference to `Menu entry editor'.
1566 (serial): Remove `--device' option.
1568 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1570 * docs/grub.texi (Configuration): New section, documenting
1571 configuration file generation using grub-mkconfig. I've left a slot
1572 for documenting the full shell scripting format but have not yet
1573 started on writing that up.
1574 (Invoking grub-mkconfig): New section.
1576 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1578 * docs/grub.texi (direntry): Remove grub-terminfo reference.
1579 (GNU GRUB manual): Likewise.
1580 (General commands): Update description of `terminfo' for GRUB 2.
1582 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1584 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
1585 (GRUB_MOD_INIT): Fix capitalisation.
1586 * docs/grub.texi (Command-line and menu entry commands): Document
1587 gettext and gptsync commands.
1589 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1591 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
1592 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
1594 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
1596 Add btrfs probing support, currently only in the single-device case.
1598 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
1600 (grub_guess_root_device): Call find_root_device_from_mountinfo
1601 before looking in /dev.
1603 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1605 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
1606 GRUB_DISK_SIZE_UNKNOWN.
1607 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
1609 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
1611 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
1612 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
1613 corrupted or not synced properly.
1615 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1617 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
1618 Reported by: Seth Goldberg.
1620 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1622 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
1624 Reported by: Seth Goldberg.
1626 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1628 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
1629 Reported by: Seth Goldberg.
1631 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1633 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
1634 64-bit address as signed on MIPS.
1636 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
1638 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
1639 to the empty string.
1641 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
1643 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
1645 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
1646 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
1647 * kern/misc.c (__enable_execute_stack): Disable on
1650 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
1652 Make grub-probe work with symbolic links under /dev/mapper as well
1653 as with real block devices. The Linux world seems to be (at best)
1654 in transition here, and GRUB shouldn't get caught in the middle.
1656 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
1659 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
1661 * util/grub-script-check.c (main): Ensure defined behaviour on empty
1662 input files (in which case exit zero).
1664 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
1666 * kern/emu/misc.c (canonicalize_file_name): realpath can still
1667 return NULL for various reasons even if it has a maximum-length
1668 buffer: for example, there might be a symlink loop, or the path
1669 might exceed PATH_MAX. If this happens, return NULL.
1671 2010-05-27 Robert Millan <rmh@gnu.org>
1673 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
1674 partmap module to handle cross-partmap setups.
1675 Reported by Orestes Mas. Gràcies!
1677 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
1679 * util/grub-mkrescue.in: Initialise override_dir rather than
1680 assuming that it's unset or empty in the environment.
1682 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
1684 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
1685 variable index into p_index to suppress a warning with -Wshadow.
1687 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
1689 * INSTALL: Added flex >= 2.5.35 requirement.
1691 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1693 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
1695 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1699 * commands/i386/cmostest.c: New file.
1700 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
1701 (cmostest_mod_SOURCES): New variable.
1702 (cmostest_mod_CFLAGS): Likewise.
1703 (cmostest_mod_LDFLAGS): Likewise.
1704 * conf/i386-pc.rmk: Likewise.
1705 * docs/grub.texi (Vendor power-on keys): New section.
1706 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
1707 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
1708 and GRUB_BUTTON_CMOS_ADDRESS.
1709 * util/grub.d/00_header.in: Handle powering-on by separate button.
1711 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1713 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
1714 Removed drawing_scrollbar argument. All users updated
1716 Reported by Jo Shields
1718 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1720 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
1721 buffer since gfxterm handles double repaint.
1723 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1725 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
1726 * term/gfxterm.c (real_scroll): Likewise.
1728 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1730 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
1731 before calling BIOS.
1733 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1735 * include/grub/i18n.h: Always enable grub_gettext.
1737 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1739 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
1740 partition naming style.
1742 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
1744 * util/grub-mkconfig.in: Fix handling of -o so that it works when
1745 not the first option.
1747 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
1749 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
1751 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
1753 * util/misc.c: Move inclusion of <limits.h> to ...
1754 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
1756 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
1758 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
1759 Fix merge error in NetBSD code.
1760 (find_partition_start) [__NetBSD__]: Likewise.
1762 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
1764 Fix grub-mkrescue usage unit testing.
1766 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
1768 2010-05-18 Christian Franke <franke@computer.org>
1770 * util/grub.d/10_windows.in: Use path names instead of
1771 drive letters to prevent warning from Cygwin 1.7.
1772 Add drivemap command to menuentry if needed.
1774 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
1776 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
1777 gnumach and gnumach.gz.
1779 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1781 * include/grub/i18n.h (gettext): Inline instead of using #define.
1782 (grub_gettext): Likewise.
1785 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1787 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
1788 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
1789 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
1790 (main): Add a slash after pkglibdirroot.
1792 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1794 * util/grub-install.in: Add missing "in" keyword.
1796 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1798 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
1799 Reported by: Seth Goldberg.
1801 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1803 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
1805 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1807 * configure.ac: Check for Linux device-mapper support.
1809 * util/hostdisk.c (device_is_mapped): New function.
1810 (find_partition_start): New function, partly broken out from
1811 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
1812 device-mapper support added.
1813 (linux_find_partition): Use find_partition_start.
1814 (convert_system_partition_to_system_disk): Add `st' argument.
1815 Support Linux /dev/mapper/* devices if device-mapper support is
1816 available; only DM-RAID devices are understood at present.
1817 (find_system_device): Add `st' argument. Pass it to
1818 convert_system_partition_to_system_disk.
1819 (grub_util_biosdisk_get_grub_dev): Pass stat result to
1820 find_system_device and convert_system_partition_to_system_disk. Use
1821 find_partition_start.
1823 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
1824 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
1825 * util/deviceiter.c [__linux__]: Define MINOR.
1826 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
1827 * util/mkdevicemap.c (grub_putchar): New function.
1828 (grub_getkey): New function.
1829 (grub_refresh): New function.
1830 (main): Set debug=all if -v -v is used.
1832 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1834 Fix build with non-GNU libcs.
1836 * util/misc.c (canonicalize_file_name): Move to ...
1837 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
1838 grub_make_system_path_relative_to_its_root.
1840 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1842 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
1843 we handle finding grub-mkimage. Default to finding grub-mkimage in
1844 ${bindir} with program_transform_name applied, and provide a
1845 --grub-mkimage option to override this.
1847 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1849 Remove grub-mkisofs.
1851 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
1852 (grub_mkisofs_SOURCES): Removed.
1853 (grub_mkisofs_CFLAGS): Removed.
1854 * util/mkisofs/defaults.h: Removed.
1855 * util/mkisofs/eltorito.c: Likewise.
1856 * util/mkisofs/exclude.h: Likewise.
1857 * util/mkisofs/hash.c: Likewise.
1858 * util/mkisofs/include/: Likewise.
1859 * util/mkisofs/include/fctldefs.h: Likewise.
1860 * util/mkisofs/include/mconfig.h: Likewise.
1861 * util/mkisofs/include/prototyp.h: Likewise.
1862 * util/mkisofs/include/statdefs.h: Likewise.
1863 * util/mkisofs/iso9660.h: Likewise.
1864 * util/mkisofs/joliet.c: Likewise.
1865 * util/mkisofs/match.c: Likewise.
1866 * util/mkisofs/match.h: Likewise.
1867 * util/mkisofs/mkisofs.c: Likewise.
1868 * util/mkisofs/mkisofs.h: Likewise.
1869 * util/mkisofs/msdos_partition.h: Likewise.
1870 * util/mkisofs/multi.c: Likewise.
1871 * util/mkisofs/name.c: Likewise.
1872 * util/mkisofs/rock.c: Likewise.
1873 * util/mkisofs/tree.c: Likewise.
1874 * util/mkisofs/write.c: Likewise.
1876 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1878 Unify grub-mkimage accross platforms.
1880 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
1881 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
1882 (grub_mkelfimage_SOURCES): Removed.
1883 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
1884 (util/grub-mkimage.c_DEPENDENCIES): .. this.
1885 (bin_UTILITIES): Add grub-mkimage.
1886 (grub_mkimage_SOURCES): New variable.
1887 (kernel_img_HEADERS): Remove machine/kernel.h.
1888 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
1889 (pkglib_PROGRAMS): Add kernel.img.
1890 (kernel_img_HEADERS): Add machine/kernel.h.
1891 (kernel_img_FORMAT): Removed.
1892 (bin_UTILITIES): Remove grub-mkimage.
1893 (grub_mkimage_SOURCES): Removed.
1894 (grub_mkimage_CFLAGS): Likewise.
1895 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1896 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
1897 (pkglib_PROGRAMS): Add kernel.img.
1898 (bin_UTILITIES): Remove grub-mkimage.
1899 (grub_mkimage_SOURCES): Removed.
1900 (grub_mkimage_CFLAGS): Likewise.
1901 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1902 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
1903 (pkglib_PROGRAMS): Add kernel.img.
1904 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
1905 (pkglib_PROGRAMS): Add kernel.img.
1906 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
1907 (grub_mkimage_SOURCES): Removed.
1908 (grub_mkimage_CFLAGS): Likewise.
1909 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1910 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
1911 (pkglib_PROGRAMS): Add kernel.img.
1912 (bin_UTILITIES): Remove grub-mkimage.
1913 (grub_mkimage_SOURCES): Removed.
1914 (grub_mkimage_CFLAGS): Likewise.
1915 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1916 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
1917 (grub_mkimage_SOURCES): Removed.
1918 (grub_mkimage_CFLAGS): Likewise.
1919 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1920 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
1921 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
1922 (grub_pe32_optional_header): ... this.
1923 (grub_pe64_optional_header): ... and this. All users updated.
1924 (GRUB_PE32_PE32_MAGIC): Split into ..
1925 (GRUB_PE32_PE32_MAGIC): .. this.
1926 (GRUB_PE32_PE64_MAGIC): .. and this.
1927 (GRUB_PE32_SIGNATURE_SIZE): New definition.
1928 * include/grub/elf.h (PT_GNU_STACK): New definition.
1929 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
1930 * include/grub/i386/efi/kernel.h: Likewise.
1931 * include/grub/i386/kernel.h: Likewise.
1932 * include/grub/i386/pc/kernel.h: Likewise.
1933 * include/grub/i386/qemu/boot.h: Likewise.
1934 * include/grub/mips/kernel.h: Likewise.
1935 * include/grub/mips/qemu-mips/kernel.h: Likewise.
1936 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
1937 * include/grub/powerpc/kernel.h: Likewise.
1938 * include/grub/sparc64/ieee1275/boot.h: Likewise.
1939 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
1940 * include/grub/sparc64/kernel.h: Likewise.
1941 * include/grub/x86_64/efi/kernel.h: Likewise.
1942 * include/grub/x86_64/kernel.h: Likewise.
1943 * include/grub/offsets.h: New file.
1944 * include/grub/kernel.h (grub_module_info): Split into ...
1945 (grub_module_info32): ... this.
1946 (grub_module_info64): ... and this.
1947 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
1948 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
1949 (grub_boot_blocklist): Moved from here ...
1950 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
1951 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
1952 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
1953 * include/grub/types.h (grub_target_to_host16): Removed.
1954 (grub_target_to_host32): Likewise.
1955 (grub_target_to_host64): Likewise.
1956 (grub_host_to_target16): Likewise.
1957 (grub_host_to_target32): Likewise.
1958 (grub_host_to_target64): Likewise.
1959 (grub_host_to_target_addr): Likewise.
1961 Support grub-mkrescue for efi, coreboot and qemu.
1963 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
1964 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
1965 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
1966 * util/grub-mkrawimage.c: Moved from here ...
1967 * util/grub-mkimage.c: ... here. All users updated.
1968 (ALIGN_ADDR): Use image_target.
1969 (TARGET_NO_FIELD): New const.
1970 (image_target_desc): New type.
1971 (image_targets): New array.
1972 (grub_target_to_host64): Use image_target.
1973 (grub_target_to_host32): Likewise.
1974 (grub_target_to_host16): Likewise.
1975 (grub_host_to_target64): Likewise.
1976 (grub_host_to_target32): Likewise.
1977 (grub_host_to_target16): Likewise.
1978 (grub_host_to_target_addr): Likewise.
1979 (generate_image): Handle multiimage.
1980 (main): Require -O parameter. All users updated.
1981 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
1982 util/efi/grub-mkimage.c
1983 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
1984 New option --rom-directory.
1986 * util/i386/efi/grub-mkimage.c: Removed.
1987 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
1988 (grub_target_to_host32): Likewise.
1989 (grub_target_to_host64): Likewise.
1990 (grub_host_to_target16): Likewise.
1991 (grub_host_to_target32): Likewise.
1992 (grub_host_to_target64): Likewise.
1993 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
1994 (grub_target_to_host32): Likewise.
1995 (grub_target_to_host64): Likewise.
1996 (grub_host_to_target16): Likewise.
1997 (grub_host_to_target32): Likewise.
1998 (grub_host_to_target64): Likewise.
2000 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
2002 Source tree is reorganized for emu build.
2004 * include/grub/util/console.h: Move from here...
2005 * include/grub/emu/console.h: ...to here.
2006 * include/grub/util/getroot.h: Move from here...
2007 * include/grub/emu/getroot.h: ...to here.
2008 * include/grub/util/hostdisk.h: Move from here...
2009 * include/grub/emu/hostdisk.h: ...to here.
2010 * util/console.c: Move from here...
2011 * kern/emu/console.c: ...to here.
2012 * util/getroot.c: Move from here...
2013 * kern/emu/getroot.c: ...to here.
2014 * util/grub-emu.c: Move from here...
2015 * kern/emu/main.c: ...to here.
2016 * util/hostdisk.c: Move from here...
2017 * kern/emu/hostdisk.c: ...to here.
2018 * util/hostfs.c: Move from here...
2019 * kern/emu/hostfs.c: ...to here.
2020 * util/mm.c: Move from here...
2021 * kern/emu/mm.c: ...to here.
2022 * util/pci.c: Move from here...
2023 * bus/emu/pci.c: ...to here.
2024 * util/sdl.c: Move from here...
2025 * video/emu/sdl.c: ...to here.
2026 * util/time.c: Move from here...
2027 * kern/emu/time.c: ...to here.
2028 * util/usb.c: Move from here...
2029 * bus/usb/emu/usb.c: ...to here.
2031 * include/grub/emu/misc.h: New header for grub-emu functions.
2032 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
2034 * conf/any-emu.rmk: Rule updates for above renames.
2035 * conf/common.rmk: Likewise.
2036 * conf/i386-pc.rmk: Likewise.
2037 * conf/i386-qemu.rmk: Likewise.
2038 * conf/mips.rmk: Likewise.
2039 * conf/sparc64-ieee1275.rmk: Likewise.
2040 * conf/x86-efi.rmk: Likewise.
2042 * disk/lvm.h: #include updates for above renames.
2043 * util/grub-mkrelpath.c: Likewise.
2044 * util/grub-probe.c: Likewise.
2045 * util/i386/pc/grub-setup.c: Likewise.
2046 * util/sparc64/ieee1275/grub-setup.c: Likewise.
2047 * kern/emu/console.c: Likewise.
2048 * kern/emu/getroot.c: Likewise.
2049 * kern/emu/hostdisk.c: Likewise.
2050 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
2052 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
2053 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
2054 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
2055 * util/misc.c: Remove grub-emu functions.
2057 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2060 Reported by: Thorsten Grützmacher.
2062 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
2064 (circprog_set_property): Register and unregister timeout hook.
2065 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
2066 (label_destroy): Free template. and unregister hook.
2067 (label_set_state): New function.
2068 (label_set_property): Handle templates and hooks.
2069 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
2071 (progress_bar_set_property): Register and unregister timeout hook.
2072 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
2073 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
2074 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
2075 (update_timeout_visit): Removed.
2076 (update_timeouts): New function.
2077 (redraw_timeouts): Likewise.
2078 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
2079 (grub_gfxmenu_clear_timeout): Likewise.
2080 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
2081 (grub_gfxmenu_timeout_notify): Likewise.
2082 (grub_gfxmenu_timeout_notifications): New external variable.
2083 (grub_gfxmenu_timeout_register): New function.
2084 (grub_gfxmenu_timeout_unregister): Likewise.
2086 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2088 Transform (broken) vga terminal into (working) vga video driver.
2090 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
2091 video/i386/pc/vga.c.
2092 * include/grub/video.h (grub_video_driver_id):
2093 Add GRUB_VIDEO_DRIVER_VGA.
2094 * term/i386/pc/vga.c: Renamed to ...
2095 * video/i386/pc/vga.c: ...this
2096 (DEBUG_VGA): Removed.
2097 (CHAR_WIDTH): Likewise.
2098 (CHAR_HEIGHT): Likewise.
2099 (TEXT_WIDTH): Likewise.
2100 (TEXT_HEIGHT): Likewise.
2101 (DEFAULT_FG_COLOR): Likewise.
2102 (DEFAULT_BG_COLOR): Likewise.
2103 (colored_char): Likewise.
2106 (cursor_state): Likewise.
2107 (fg_color): Likewise.
2108 (bg_color): Likewise.
2109 (text_buf): Likewise.
2112 (framebuffer): New variable.
2113 (set_read_map): Disabled.
2114 (setup): New variable.
2115 (is_target): Likewise.
2116 (grub_vga_mod_init): Likewise.
2117 (grub_vga_mod_fini): Likewise.
2118 (check_vga_mem): Likewise.
2119 (write_char): Likewise.
2120 (write_cursor): Likewise.
2121 (scroll_up): Likewise.
2122 (grub_vga_putchar): Likewise.
2123 (grub_vga_getcharwidth): Likewise.
2124 (grub_vga_getwh): Likewise.
2125 (grub_vga_getxy): Likewise.
2126 (grub_vga_gotoxy): Likewise.
2127 (grub_vga_cls): Likewise.
2128 (grub_vga_setcolorstate): Likewise.
2129 (grub_vga_setcursor): Likewise.
2130 (grub_video_vga_init): New function.
2131 (grub_video_vga_setup): Likewise.
2132 (grub_video_vga_fini): Likewise.
2133 (update_target): Likewise.
2134 (grub_video_vga_blit_bitmap): Likewise.
2135 (grub_video_vga_blit_render_target): Likewise.
2136 (grub_video_vga_set_active_render_target): Likewise.
2137 (grub_video_vga_get_active_render_target): Likewise.
2138 (grub_video_vga_swap_buffers): Likewise.
2139 (grub_video_vga_set_palette): Likewise.
2140 (grub_video_vga_get_info_and_fini): Likewise.
2141 (grub_vga_term): Removed.
2142 (grub_video_vga_adapter): New variable.
2143 (GRUB_MOD_INIT): Register a video driver instead of terminal.
2144 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
2146 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2148 * video/readers/jpeg.c: Indented.
2150 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2152 Various jpeg cleanups.
2154 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
2155 (grub_jpeg_decode_quan_table): Use sizeof.
2156 (grub_jpeg_decode_du): Use ARRAY_SIZE.
2158 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
2160 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
2161 tables. Ignore non-last ac bit.
2162 (grub_jpeg_decode_quan_table): Likewise.
2164 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2166 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
2167 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
2168 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2169 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
2170 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
2171 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
2173 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2175 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
2178 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2180 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
2182 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2184 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
2187 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2189 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
2192 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2194 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
2197 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2199 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
2201 2010-05-01 Christian Franke <franke@computer.org>
2203 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
2204 Remove broken Cygwin path conversion.
2205 * util/misc.c: [__CYGWIN__] Add include and define.
2206 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
2208 (make_system_path_relative_to_its_root): Simplify loop, replace early
2210 [__CYGWIN__] Add conversion to win32 path.
2211 Include "/" case in trailing slash removal.
2213 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2215 * kern/main.c (grub_load_config): Fix copy-pasted comment.
2216 Reported by: Seth Goldberg
2218 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2220 * commands/help.c (grub_cmd_help): Fix a typo.
2221 Reported by: Seth Goldberg
2223 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2225 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
2227 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
2228 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
2229 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
2230 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
2231 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
2232 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
2233 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
2234 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
2235 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
2236 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
2237 * normal/context.c (GRUB_MOD_INIT): Likewise.
2238 * normal/main.c (GRUB_MOD_INIT): Likewise.
2239 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
2240 * term/serial.c (GRUB_MOD_INIT): Likewise.
2241 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
2243 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2245 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
2248 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2250 * commands/iorw.c: New file.
2251 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
2252 (iorw_mod_SOURCES): New variable.
2253 (iorw_mod_CFLAGS): Likewise.
2254 (iorw_mod_LDFLAGS): Likewise.
2256 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2260 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
2261 * normal/main.c (hotkey_aliases): New variable.
2262 (grub_normal_add_menu_entry): Parse "--hotkey".
2263 * normal/menu_text.c (run_menu): Handle hotkeys.
2265 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2267 * kern/i386/coreboot/init.c (grub_machine_init): Call
2268 grub_machine_mmap_init on qemu.
2270 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2272 * boot/i386/qemu/boot.S: Add a missing .code16.
2274 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2276 Use LBIO on coreboot.
2278 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
2279 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
2280 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
2282 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
2283 grub_machine_mmap_init on coreboot.
2284 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
2285 GRUB_LINUXBIOS_MEMBER_LINK.
2286 (grub_machine_mmap_iterate): Fix declaration.
2287 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
2289 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2291 Split coreboot and multiboot ports.
2293 * conf/i386-multiboot.rmk: New file.
2294 * configure.ac: Add multiboot port.
2295 * include/grub/i386/multiboot/boot.h: New file.
2296 * include/grub/i386/multiboot/console.h: Likewise.
2297 * include/grub/i386/multiboot/init.h: Likewise.
2298 * include/grub/i386/multiboot/kernel.h: Likewise.
2299 * include/grub/i386/multiboot/loader.h: Likewise.
2300 * include/grub/i386/multiboot/memory.h: Likewise.
2301 * include/grub/i386/multiboot/serial.h: Likewise.
2302 * include/grub/i386/multiboot/time.h: Likewise.
2303 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
2304 * loader/multiboot.c: Likewise.
2305 * loader/multiboot_mbi2.c: Likewise.
2306 * util/grub-mkrescue.in: Generate multiboot rescue.
2308 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2310 * kern/parser.c (grub_parser_execute): Cope with read-only config.
2312 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2314 Merge handling of input and output terminals. Fix a hang.
2316 * commands/terminal.c (abstract_terminal): New struct.
2317 (handle_command): New function. Based on grub_cmd_terminal_input.
2318 (grub_cmd_terminal_input): Use handle_command.
2319 (grub_cmd_terminal_output): Use handle_command.
2321 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
2323 Fix comment handling.
2325 * tests/grub_script_comments.in: New testcase.
2326 * conf/tests.rmk: Rules for new testcase.
2327 * script/yylex.l: Updated flex rules.
2329 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
2331 * docs/grub.texi (play): Document that zero pitches produce rests.
2332 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
2335 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2337 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
2340 2010-04-26 Christian Franke <franke@computer.org>
2342 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
2343 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
2344 (grub_get_prefix): Remove function.
2345 * util/grub-emu.c (main): Replace grub_get_prefix () call by
2346 make_system_path_relative_to_its_root ().
2347 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
2349 2010-04-24 Christian Franke <franke@computer.org>
2351 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
2352 (kernel_img_LDFLAGS): Remove -static-libgcc.
2354 2010-04-24 Christian Franke <franke@computer.org>
2356 * configure.ac: Do not CHECK_BSS_START_SYMBOL
2357 and CHECK_END_SYMBOL if grub-emu is built.
2358 Unset TARGET_OBJ2ELF if grub-emu is built
2359 without module support.
2361 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
2365 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
2366 (grub_fstest_SOURCES): Likewise.
2367 (pkglib_MODULES): Add nilfs2.mod.
2368 (nilfs2_mod_SOURCES): New variable.
2369 (nilfs2_mod_CFLAGS): Likewise.
2370 (nilfs2_mod_LDFLAGS): Likewise.
2371 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
2372 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
2373 * fs/nilfs2.c: New file.
2375 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
2377 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
2380 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
2382 Add grub-mkconfig support for NetBSD.
2384 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
2385 * util/grub-mkconfig.in: export new NetBSD specific variables.
2386 * po/POTFILES-shell: added 10_netbsd.in.
2387 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
2389 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
2391 Fix emu build with grub-emu-pci and grub-emu-modules.
2393 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
2395 * include/grub/libpciaccess.h: New file.
2396 * conf/any-emu.rmk: Update kernel headers for emu build.
2398 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2400 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
2402 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2404 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
2406 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2408 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
2409 Retrieve chosen/bootpath if bootpath isn't hardcoded.
2410 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
2411 util/ieee1275/ofpath.c.
2412 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
2413 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
2414 * include/grub/sparc64/ieee1275/boot.h
2415 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
2416 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
2417 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
2418 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
2420 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
2421 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
2422 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
2425 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
2427 * util/grub-mkconfig.in: Corrected two == equality tests.
2428 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
2429 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
2430 expect a number appended to it.
2431 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
2432 expects a number appended to it.
2434 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2436 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
2438 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2440 * util/hostdisk.c (make_device_name): Change to new partition naming.
2442 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
2444 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
2446 2010-04-17 Christian Franke <franke@computer.org>
2448 * Makefile.in: Add missing localedir setting.
2450 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
2452 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
2453 mistake in r2156. Noticed by Anthony Fok.
2455 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
2457 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
2459 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
2461 Fix a spurious, uninitialized variable warning.
2463 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
2464 Initialize variable, shdr.
2465 (grub_freebsd_load_elfmodule): Likewise.
2466 (grub_freebsd_load_elf_meta): Likewise.
2468 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
2470 Fix for escaped dollar in double quoted strings.
2472 * script/yylex.l: Updated flex rules.
2473 * conf/tests.rmk: Rule for new testcase.
2474 * tests/grub_script_dollar.in: New testcase.
2476 2010-04-13 Carles Pina i Estany <carles@pina.cat>
2477 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
2479 Enclose all translated strings in grub.cfg in single quotes, and
2480 escape them appropriately (Ubuntu bug #552921).
2482 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
2483 * util/grub.d/10_hurd.in: Use it.
2484 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
2485 * util/grub.d/10_linux.in (linux_entry): Likewise.
2487 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2489 Fix cygwin compilation.
2491 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
2492 * include/grub/misc.h (__register_frame_info)
2493 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
2494 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
2495 * kern/misc.c (__register_frame_info)
2496 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
2497 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
2499 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2501 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
2503 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2505 Unify libgcc processing.
2507 * Makefile.in (kernel_img_LDFLAGS): New variable.
2508 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
2509 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
2511 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
2512 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
2513 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
2514 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
2515 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
2516 overwriting. Remove -lgcc and -static-libgcc
2517 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
2518 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
2519 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
2520 (kernel_img_LDFLAGS): Append instead of overwriting.
2521 Remove -lgcc and -static-libgcc
2522 * conf/sparc64-ieee1275.rmk: Likewise.
2523 * include/grub/powerpc/libgcc.h: Move to ...
2524 * include/grub/libgcc.h: .. this.
2525 * include/grub/libgcc.h: Don't export most of the function on x86.
2526 (__bswapsi2): New export.
2527 (__bswapdi2): Likewise.
2528 * include/grub/mips/libgcc.h: Removed.
2529 * include/grub/sparc64/libgcc.h: Likewise.
2531 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2533 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
2534 disk_info_msg (conflicts with gettexting into languages with cases).
2536 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
2538 Add grub-probe support for NetBSD.
2540 * util/getroot.c (find_root_device): Convert block device to
2541 character device on NetBSD.
2542 * util/probe.c (probe): Require character device on NetBSD.
2543 * util/hostdisk.c: NetBSD specific headers.
2544 (configure_device_driver): new function to tune device driver
2545 parameters (currently only for NetBSD floppy driver).
2546 (grub_util_biosdisk_open): NetBSD specific code (get disk size
2547 via disklabel ioctl).
2548 (open_device): call configure_device_driver on NetBSD.
2549 (convert_system_partition_to_system_disk): NetBSD specific code.
2550 (device_is_wholedisk): Likewise.
2551 (grub_util_biosdisk_get_grub_dev): Likewise.
2552 (make_device_name): Fixed a typo in bsd_part_str.
2553 * configure.ac: check for opendisk() and getrawpartition() on
2554 NetBSD and set LIBUTIL.
2555 * Makefile.in: add LIBUTIL to LIBS.
2557 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
2561 * util/grub-script-check.c: Better help message.
2563 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
2567 * configure.ac: Flex version check.
2568 * conf/common.rmk: Add -Wno-error to sh.mod.
2569 * script/yylex.l: Remove all #pragma.
2571 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2573 * include/grub/util/misc.h (canonicalise_file_name): Add missing
2575 Reported by: Seth Goldberg.
2577 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2579 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
2580 Rename "module" to "module2".
2581 Reported by: Seth Goldberg.
2583 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2585 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
2587 Reported by: Seth Goldberg.
2589 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2591 * lib/posix_wrap/locale.h: Add missing file.
2592 Reported by: Seth Goldberg.
2594 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2596 grub-emu module load support.
2598 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
2599 NO_DYNAMIC_MODULES switched to this.
2600 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
2602 * conf/any-emu.rmk: Generate symlist.
2603 (kernel_img_HEADERS): Add util/datetime.h.
2604 (kernel_img_HEADERS) [sdl]: Add sdl.h.
2605 (kernel_img_HEADERS) [libusb]: Add libusb.h.
2606 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
2607 kern/$(target_cpu)/cache.S.
2608 * configure.ac (grub-emu-modules): New option.
2609 * genmk.rb: Handle multiple source lists.
2610 * include/grub/sdl.h: New file.
2611 * include/grub/libusb.h: Likewise.
2612 * util/grub-emu.c (main): Hanle (host) root.
2613 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
2614 GRUB_ERR_UNKNOWN_DEVICE.
2615 * util/misc.c: Move mm functions to ...
2616 * util/mm.c: ... here. All users updated.
2618 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2620 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
2621 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
2623 (maintainer-clean): Remove libgcrypt-grub.
2625 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2627 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
2629 2010-04-09 EFI Coder <eficoder@hotmail.com>
2631 * normal/menu_text.c (print_message): Clean up the message and show
2632 the Fn information when on EFI
2633 * term/efi/console.c (grub_console_checkkey): Add F4 support.
2635 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2637 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
2639 * normal/crypto.c (read_crypto_list): Likewise.
2640 * normal/dyncmd.c (read_command_list): Likewise.
2641 * normal/term.c (read_terminal_list): Likewise.
2642 * normal/main.c (read_lists): Use explicit prefix.
2643 (read_lists_hook): Use read_lists.
2644 (grub_normal_execute): Likewise.
2646 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2648 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
2649 Reported by: Thomas Schmitt.
2650 Add -no-emul-boot to grub-mkisofs parameters.
2652 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2654 * font/font.c: Indented.
2656 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
2658 Elif support to GRUB script (by Deepak Vankadaru).
2660 * tests/grub_script_if.in: New testcase.
2661 * conf/tests.rmk: Rule for new testcase.
2662 * script/parser.y: Grammar rules for elif.
2664 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
2666 While and until loops support to GRUB script.
2668 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
2669 (grub_script_create_cmdwhile): New function prototype.
2670 (grub_script_execute_cmdwhile): New function prototype.
2671 * script/execute.c (grub_script_execute_cmdwhile): New function.
2672 * script/parser.y (command): New commands.
2673 (whilecmd): New grammar rule.
2674 (untilcmd): New grammar rule.
2675 * script/script.c (grub_script_create_cmdwhile): New function.
2676 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
2679 * tests/grub_script_while1.in: New testcase.
2680 * conf/tests.rmk: Rule for new testcase.
2682 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2684 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
2687 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
2689 GRUB_BACKGROUND support.
2691 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
2692 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
2694 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2696 Load fonts and modules for gfxmenu in grub-mkconfig.
2697 Idea by: Mario Vazquez
2699 * util/grub.d/00_header.in: Load pf2 and image modules.
2701 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2703 grub-mkconfig multiple terminal support.
2705 * util/grub-mkconfig.in: Handle multiple terminals correctly.
2706 * util/grub.d/00_header.in: Likewise.
2708 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2710 * Makefile.in: Specify files explicitly instead of using $< and $@ since
2711 we use cd $(srcdir).
2713 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
2715 * util/grub.d/10_linux.in: Only use the first word of
2716 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
2717 spaces in GRUB_DISTRIBUTOR.
2718 * util/grub.d/10_kfreebsd.in: Likewise.
2719 * util/grub.d/10_hurd.in: Likewise.
2721 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
2723 Fix unit testing framework for Qemu 0.12.
2725 * tests/util/grub-shell.in: Remove -serial stdio option.
2727 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2729 POSIX header file wrappers.
2731 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
2733 * lib/posix_wrap/ctype.h: Likewise.
2734 * lib/posix_wrap/errno.h: Likewise.
2735 * lib/posix_wrap/langinfo.h: Likewise.
2736 * lib/posix_wrap/limits.h: Likewise.
2737 * lib/posix_wrap/localcharset.h: Likewise.
2738 * lib/posix_wrap/stdint.h: Likewise.
2739 * lib/posix_wrap/stdio.h: Likewise.
2740 * lib/posix_wrap/stdlib.h: Likewise.
2741 * lib/posix_wrap/string.h: Likewise.
2742 * lib/posix_wrap/sys/types.h: Likewise.
2743 * lib/posix_wrap/unistd.h: Likewise.
2744 * lib/posix_wrap/wchar.h: Likewise.
2745 * lib/posix_wrap/wctype.h: Likewise.
2746 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
2747 (grub_script.yy.h): Likewise.
2748 * script/yylex.l: Remove POSIX emulation #defines.
2749 * Makefile.in (POSIX_CFLAGS): New variable.
2750 (GNULIB_UTIL_CFLAGS): Likewise.
2754 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
2755 (regexp_mod_SOURCES): New variable.
2756 (regexp_mod_CFLAGS): Likewise.
2757 (regexp_mod_LDFLAGS): Likewise.
2758 * commands/regexp.c: New file.
2759 * gnulib/regcomp.c: New file. Imported from gnulib.
2760 * gnulib/regex.c: Likewise.
2761 * gnulib/regex_internal.c: Likewise.
2762 * gnulib/regex_internal.h: Likewise.
2763 * gnulib/regexec.c: Likewise.
2764 * gnulib/regex.h: Likewise.
2766 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2768 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
2769 unsupported video mode types.
2771 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2773 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
2775 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2777 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
2778 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
2780 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2782 Remove unused grub_vga_get_font.
2784 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
2785 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
2787 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2789 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
2790 * include/grub/misc.h: Likewise.
2792 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2794 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
2795 for which failure is fatal.
2797 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2799 * util/grub-install.in: Use mkdir -p to create grub directory.
2800 * util/i386/efi/grub-install.in: Likewise.
2801 * util/ieee1275/grub-install.in: Likewise.
2803 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2805 * Makefile.in (LEX): new variable.
2807 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2809 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
2810 `=' and added double quotes on operands of this equality test.
2812 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2814 * Makefile.in (uninstall): Remove a leftover debug echo.
2815 Reported by: Grégoire Sutre
2817 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2819 MIPS multiboot2 support.
2821 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
2822 (multiboot2_mod_SOURCES): New variable.
2823 (multiboot2_mod_CFLAGS): Likewise.
2824 (multiboot2_mod_LDFLAGS): Likewise.
2825 (multiboot2_mod_ASFLAGS): Likewise.
2826 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
2828 (MULTIBOOT_ENTRY_REGISTER): Likewise.
2829 (MULTIBOOT_MBI_REGISTER): Likewise.
2830 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
2831 (MULTIBOOT_ELF32_MACHINE): Likewise.
2832 (MULTIBOOT_ELF64_MACHINE): Likewise.
2833 * include/grub/mips/multiboot.h: New file.
2834 * include/grub/video.h (grub_video_driver_id): New type
2835 GRUB_VIDEO_DRIVER_SM712.
2836 (grub_video_get_info_and_fini): Export.
2837 (grub_video_get_palette): Likewise.
2838 (grub_video_get_driver_id): Likewise.
2839 * include/multiboot2.h: Resynced with spec.
2840 * loader/i386/multiboot.c: Moved from here ...
2841 * loader/multiboot.c: ... here. All users updated.
2842 (grub_multiboot_boot): Use platform-specific macros.
2843 * loader/i386/multiboot_elfxx.c: Moved from here ...
2844 * loader/multiboot_elfxx.c: ... here. All users updated.
2845 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
2846 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
2847 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
2849 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2851 Import gnulib argp module.
2853 * gnulib/argp-ba.c: New file.
2854 * gnulib/argp-eexst.c: Likewise.
2855 * gnulib/argp-fmtstream.c: Likewise.
2856 * gnulib/argp-fmtstream.h: Likewise.
2857 * gnulib/argp-fs-xinl.c: Likewise.
2858 * gnulib/argp-help.c: Likewise.
2859 * gnulib/argp-namefrob.h: Likewise.
2860 * gnulib/argp-parse.c: Likewise.
2861 * gnulib/argp-pin.c: Likewise.
2862 * gnulib/argp-pv.c: Likewise.
2863 * gnulib/argp-pvh.c: Likewise.
2864 * gnulib/argp-version-etc.c: Likewise.
2865 * gnulib/argp-version-etc.h: Likewise.
2866 * gnulib/argp-xinl.c: Likewise.
2867 * gnulib/argp.h: Likewise.
2869 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2871 * kern/device.c (grub_device_iterate): Clear errors after failed
2874 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2876 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
2877 returned by firmware.
2879 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
2881 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
2882 compilation on coreboot and qemu
2884 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2886 * include/multiboot2.h: Resync with spec.
2888 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2890 Multiboot2 tag support
2892 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
2893 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
2894 Remove loader/multiboot_loader.c.
2895 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
2896 (grub_multiboot2_real_boot): Likewise.
2897 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
2898 (grub_get_multiboot_mmap_count): New proto.
2899 (grub_fill_multiboot_mmap): Likewise.
2900 (grub_multiboot_set_video_mode): Likewise.
2901 (grub_multiboot_set_console): Likewise.
2902 (grub_multiboot_load): Likewise.
2903 (grub_multiboot_load_elf): Likewise.
2904 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
2905 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
2906 * include/multiboot.h: Resynced with specification.
2907 * include/multiboot2.h: Resynced with specification.
2908 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
2909 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
2910 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
2911 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
2913 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
2914 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
2915 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
2917 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
2919 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
2920 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
2922 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
2923 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
2924 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
2926 * loader/i386/multiboot_mbi2.c: New file.
2928 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2932 * Makefile.in (GNULIB_CFLAGS): New variable.
2933 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
2934 (grub_script_check_CFLAGS): New variable.
2935 * gnulib/alloca.h: Resync with gnulib.
2936 * gnulib/error.c: Likewise.
2937 * gnulib/error.h: Likewise.
2938 * gnulib/fnmatch.c: Likewise.
2939 * gnulib/fnmatch_loop.c: Likewise.
2940 * gnulib/getdelim.c: Likewise.
2941 * gnulib/getline.c: Likewise.
2942 * gnulib/getopt.c: Likewise.
2943 * gnulib/getopt1.c: Likewise.
2944 * gnulib/getopt_int.h: Likewise.
2945 * gnulib/gettext.h: Likewise.
2946 * gnulib/progname.c: Likewise.
2947 * gnulib/progname.h: Likewise.
2949 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
2951 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
2952 which is the case with --disabled-nls.
2954 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
2955 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
2956 * util/misc.c: Likewise.
2957 * util/mkisofs/mkisofs.c: Likewise.
2958 * util/mkisofs/mkisofs.h: Likewise.
2960 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2962 Simplify Apple CC support.
2964 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
2965 Add 0 byte at the end not to have a symbol with empty target.
2966 * mmap/i386/pc/mmap_helper.S: Likewise.
2967 * genmk.rb: Ignore errors 2030 and 2050.
2968 * kern/i386/pc/startup.S: Use LOCAL when possible.
2970 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
2972 Testcase and the fix for final semicolon on cmdline.
2974 * tests/grub_script_final_semicolon.in: New testcase.
2975 * conf/tests.rmk: Rules for the new testcase.
2976 * script/parser.y: Grammar fix.
2978 2010-03-26 BVK Chaitanya <bvk@localhost>
2980 Blank lines testcase for GRUB script.
2982 * tests/grub_script_blanklines.in: New testcase.
2983 * conf/tests.rmk: Rules for the new testcase.
2985 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2989 * genmk.rb: Add -DGRUB_FILE to all C targets.
2990 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
2991 * include/grub/list.h: Likewise.
2992 * include/grub/misc.h: Likewise.
2993 * include/grub/mm.h: Likewise.
2994 * include/grub/test.h: Likewise.
2995 * kern/mm.c: Likewise.
2996 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
2998 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3000 Sunpc partitions support.
3002 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
3003 (grub_fstest_SOURCES): Likewise.
3004 (pkglib_MODULES): Add part_sunpc.mod.
3005 (part_sunpc_mod_SOURCES): New variable.
3006 (part_sunpc_mod_CFLAGS): Likewise.
3007 (part_sunpc_mod_LDFLAGS): Likewise.
3008 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
3009 * partmap/sunpc.c: New file.
3011 2010-03-26 BVK Chaitanya <bvk@localhost>
3013 For loop support to GRUB script.
3015 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
3016 (grub_script_create_cmdfor): New function prototype.
3017 (grub_script_execute_cmdfor): New function prototype.
3018 * script/execute.c (grub_script_execute_cmdfor): New function.
3019 * script/parser.y (command): New for command.
3020 (forcmd): New grammar rule.
3021 * script/script.c (grub_script_create_cmdfor): New function.
3022 * util/grub-script-check.c (grub_script_execute_cmdfor): New
3024 * tests/grub_script_for1.in: New testcase.
3025 * conf/tests.rmk: Rules for new testcase.
3027 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3031 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
3032 'partition' is NULL, grub_partition_get_start already does that.
3033 * commands/loadenv.c (check_blocklists): Likewise.
3034 (write_blocklists): Likewise.
3035 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
3036 (grub_fstest_SOURCES): Likewise.
3037 (pkglib_MODULES): Add part_bsd.mod.
3038 (part_bsd_mod_SOURCES): New variable.
3039 (part_bsd_mod_CFLAGS): Likewise.
3040 (part_bsd_mod_LDFLAGS): Likewise.
3041 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
3042 (grub_emu_SOURCES): Likewise.
3043 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3044 * include/grub/bsdlabel.h: New file.
3045 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
3047 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
3048 (grub_partition_map_list): New variable.
3049 (grub_partition_map_register): Inline.
3050 (grub_partition_map_unregister): Likewise.
3051 (FOR_PARTITION_MAPS): New macro.
3052 (grub_partition_map_iterate): Removed.
3053 (grub_partition_get_start): Handle nested partitions.
3054 * include/grub/msdos_partition.h: Remove bsd-related entries.
3055 (grub_pc_partition): Remove.
3056 * kern/disk.c (grub_disk_close): Free partition data.
3057 (grub_disk_adjust_range): Handle nested partitions.
3058 * kern/partition.c (grub_partition_map_probe): New function.
3059 (grub_partition_probe): Parse name to number, handle subpartitions.
3060 (get_partmap): New function.
3061 (grub_partition_iterate): Handle subpartitions.
3062 (grub_partition_get_name): Likewise.
3063 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
3064 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
3065 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
3066 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
3068 (acorn_partition_map_probe): Remove.
3069 (acorn_partition_map_get_name): Likewise.
3070 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
3072 Set 'index' to 0 since there can be only one partition entry per sector.
3073 (amiga_partition_map_probe): Remove.
3074 (amiga_partition_map_get_name): Likewise.
3075 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
3077 Set 'offset' and 'index' to real positions of partitions.
3078 (apple_partition_map_probe): Remove.
3079 (apple_partition_map_get_name): Likewise.
3080 * partmap/bsdlabel.c: New file.
3081 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
3083 Allocate 'data' so it can be correctly freed.
3084 Set 'index' to offset inside sector.
3085 (gpt_partition_map_probe): Remove.
3086 (gpt_partition_map_get_name): Likewise.
3087 * partmap/msdos.c (grub_partition_parse): Remove.
3088 (pc_partition_map_iterate): Don't force raw access.
3090 Make 'ext_offset' a local variable.
3091 (pc_partition_map_probe): Remove.
3092 (pc_partition_map_get_name): Remove.
3093 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
3095 (sun_partition_map_probe): Remove.
3096 (sun_partition_map_get_name): Likewise.
3097 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
3098 (grub_pcpart_type): Likewise.
3099 * util/hostdisk.c (open_device): Handle new numbering scheme.
3100 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
3101 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
3102 * util/grub-probe.c (probe_partmap): Handle nested paritions.
3103 * util/grub-install.in: Insert all subpartition modules.
3104 * util/ieee1275/grub-install.in: Likewise.
3106 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
3108 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
3111 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
3113 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
3115 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
3117 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
3118 match where 'make install' puts them.
3119 * util/i386/efi/grub-install.in: Likewise.
3121 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
3123 * .bzrignore: Add gentrigtables, grub-script-check,
3124 grub_script_check_init.c, grub_script_check_init.h, and
3127 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
3129 * kern/parser.c: Indented.
3131 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
3133 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
3135 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
3137 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
3138 alpha_mask_size == 0 case.
3140 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
3142 GRUB shell lexer and parser improvements.
3144 * conf/any-emu.rmk: Build rule updates.
3145 * conf/common.rmk: Likewise.
3146 * conf/i386-coreboot.rmk: Likewise.
3147 * conf/i386-efi.rmk: Likewise.
3148 * conf/i386-ieee1275.rmk: Likewise.
3149 * conf/i386-pc.rmk: Likewise.
3150 * conf/powerpc-ieee1275.rmk: Likewise.
3151 * conf/x86_64-efi.rmk: Likewise.
3153 * configure.ac: Configure check for flex.
3155 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
3157 (grub_lexer_param): Struct member updates.
3158 (grub_parser_param): Likewise.
3159 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
3160 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
3161 (grub_script_lexer_init): Prototype update.
3162 (grub_script_lexer_record_start): Likewise.
3163 (grub_script_lexer_record_stop): Likewise.
3164 (grub_script_lexer_yywrap): New function prototype.
3165 (grub_script_lexer_fini): Likewise.
3166 (grub_script_execute_argument_to_string): Removed by...
3167 (grub_script_execute_argument_to_argv): ...better version.
3169 * script/execute.c (ROUND_UPTO): New macro.
3170 (grub_script_execute_cmdline): Out of memory fixes.
3171 (grub_script_execute_menuentry): Likewise.
3172 (grub_script_execute_argument_to_string): Removed. Update all
3174 (grub_script_execute_argument_to_argv): ...better version.
3175 * script/function.c (grub_script_function_create): Use
3176 grub_script_execute_argument_to_argv instead of
3177 grub_script_execute_argument_to_string.
3179 * script/lexer.c (check_varstate): Removed.
3180 (check_textstate): Removed.
3181 (grub_script_lexer_record_start): Likewise.
3182 (grub_script_lexer_record_stop): Likewise.
3183 (recordchar): Replaced with...
3184 (grub_script_lexer_record): ...new function.
3185 (nextchar): Removed.
3186 (grub_script_lexer_init): Rewritten.
3187 (grub_script_yylex): Rewritten.
3188 (append_newline): New function.
3189 (grub_script_lexer_yywrap): New function.
3190 (grub_script_lexer_fini): New function.
3191 (grub_script_yyerror): Sets error flag.
3193 * script/yylex.l: New file.
3194 (grub_lexer_yyfree): Wrapper for flex yyffre.
3195 (grub_lexer_yyalloc): Likewise.
3196 (grub_lexer_yyrealloc): Likewise.
3197 * script/parser.y: Refactored.
3199 * script/script.c (grub_script_arg_add): Out of memory fixes.
3200 (grub_script_add_arglist): Likewise.
3201 (grub_script_create_cmdline): Likewise.
3202 (grub_script_create_cmdmenu): Likewise.
3203 (grub_script_add_cmd): Likewise.
3204 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
3205 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
3208 * tests/grub_script_echo1.in: New testcase.
3209 * tests/grub_script_vars1.in: New testcase.
3210 * tests/grub_script_echo_keywords.in: New testcase.
3212 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3214 Remove some redundancy in build system.
3216 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
3217 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
3218 (TARGET_LDFLAGS): Add -nostdlib.
3219 (TARGET_IMG_LDFLAGS): Likewise.
3220 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
3221 anything since mmap isn't available.
3222 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
3224 (pkglib_MODULES): Remove reboot.mod.
3225 (reboot_mod_SOURCES): Removed.
3226 (reboot_mod_CFLAGS): Likewise.
3227 (reboot_mod_LDFLAGS): Likewise.
3228 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
3229 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
3230 (DEFSYMFILES): Add kernel_syms.lst.
3231 (kernel_img_HEADERS): Add common headers.
3232 (symlist.c): New target.
3233 (kernel_syms.lst): Likewise.
3234 (pkglib_MODULES): Add memdisk.mod.
3235 (memdisk_mod_SOURCES): New variable.
3236 (memdisk_mod_CFLAGS): Likewise.
3237 (memdisk_mod_LDFLAGS): Likewise.
3238 (pkglib_MODULES): Add reboot.mod.
3239 (reboot_mod_SOURCES): New variable.
3240 (reboot_mod_CFLAGS): Likewise.
3241 (reboot_mod_LDFLAGS): Likewise.
3242 (pkglib_MODULES): Add date.mod.
3243 (date_mod_SOURCES): New variable.
3244 (date_mod_CFLAGS): Likewise.
3245 (date_mod_LDFLAGS): Likewise.
3246 (pkglib_MODULES): Add datehook.mod.
3247 (datehook_mod_SOURCES): New variable.
3248 (datehook_mod_CFLAGS): Likewise.
3249 (datehook_mod_LDFLAGS): Likewise.
3250 (pkglib_MODULES): Add lsmmap.mod.
3251 (lsmmap_mod_SOURCES): New variable.
3252 (lsmmap_mod_CFLAGS): Likewise.
3253 (lsmmap_mod_LDFLAGS): Likewise.
3254 (pkglib_MODULES): Add boot.mod.
3255 (boot_mod_SOURCES): New variable.
3256 (boot_mod_CFLAGS): Likewise.
3257 (boot_mod_LDFLAGS): Likewise.
3258 * conf/i386-coreboot.rmk: Removed redundant parts.
3259 * conf/i386-ieee1275.rmk: Likewise.
3260 * conf/i386-pc.rmk: Likewise.
3261 * conf/mips-yeeloong.rmk: Likewise.
3262 * conf/mips.rmk: Likewise.
3263 * conf/powerpc-ieee1275.rmk: Likewise.
3264 * conf/sparc64-ieee1275.rmk: Likewise.
3265 * conf/x86_64-efi.rmk: Likewise.
3266 * conf/i386-coreboot.rmk: Moved qemu parts ..
3267 * conf/i386-qemu.rmk: ... here
3268 * conf/i386-efi.rmk: Moved common parts to...
3269 * conf/x86-efi.rmk: ... here.
3270 * conf/i386.rmk: Added modules common to all x86 variants.
3271 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
3272 * disk/memdisk.c: Remove grub/machine/kernel.h.
3273 * gensymlist.sh.in: Include symbol.h.
3274 * hook/datehook.c: Correct module name.
3275 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
3276 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
3277 * include/grub/i386/efi/serial.h: New file.
3278 * include/grub/x86_64/efi/serial.h: Likewise.
3279 * util/time.c: Likewise.
3280 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
3282 2010-03-14 Colin King <colin.king@ubuntu.com>
3283 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
3285 Shrink the pre-partition-table part of boot.img by eight bytes.
3287 * boot/i386/pc/boot.S (ERR): New macro.
3288 (chs_mode): Use ERR.
3289 (geometry_error): Likewise.
3290 (hd_probe_error): Remove. This is only used once, so we wrwite
3292 (read_error): Instead of printing read_error_string, just set up
3293 %si and fall through to ...
3294 (error_message): ... this new function, also used by ERR.
3296 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
3298 Speed up consecutive hostdisk operations on the same device.
3300 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
3301 (grub_util_biosdisk_open): Initialise disk->data.
3302 (struct linux_partition_cache): New structure.
3303 (linux_find_partition): Cache partition start positions; these are
3304 expensive to compute on every read and write.
3305 (open_device): Cache open file descriptor in disk->data, so that we
3306 don't have to reopen it and flush the buffer cache for consecutive
3307 operations on the same device.
3308 (grub_util_biosdisk_close): New function.
3309 (grub_util_biosdisk_dev): Set `close' member.
3311 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
3312 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
3313 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
3314 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
3315 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
3317 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3319 Compile parts of grub-emu as modules.
3321 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
3322 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
3323 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
3324 (all-local): Add $(GRUB_EMU).
3325 (install-local): Install $(GRUB_EMU).
3326 (uninstall): Uninstall $(GRUB_EMU).
3327 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
3328 * kern/dl.c: Likewise.
3329 * commands/sleep.c: Not include machine/time.h.
3330 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
3331 (COMMON_CFLAGS): Likewise.
3332 (sbin_UTILITIES): Remove grub-emu.
3333 (grub_emu_SOURCES): Removed.
3334 (kernel_img_RELOCATABLE): New variable.
3335 (pkglib_PROGRAMS): Add kernel.img.
3336 (kernel_img_SOURCES): New variable
3337 (kernel_img_CFLAGS): Likewise.
3338 (kernel_img_LDFLAGS): Likewise.
3339 (TARGET_NO_STRIP): Likewise.
3340 (TARGET_NO_DYNAMIC_MODULES): Likewise.
3341 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
3342 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
3343 (grub-emu): New target.
3344 (GRUB_EMU): New variable.
3345 * configure.ac: Whitelist -emu as possible x86_64 architecture.
3346 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
3347 * loader/xnu.c: Likewise.
3348 * include/grub/pci.h: Likewise.
3349 * genemuinit.sh: New file.
3350 * genemuinitheader.sh: Likewise.
3351 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
3352 Support TARGET_NO_DYNAMIC_MODULES.
3353 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
3354 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
3355 * disk/loopback.c: Likewise.
3356 * font/font_cmd.c: Likewise.
3357 * partmap/acorn.c: Likewise.
3358 * partmap/amiga.c: Likewise.
3359 * partmap/apple.c: Likewise.
3360 * partmap/gpt.c: Likewise.
3361 * partmap/msdos.c: Likewise.
3362 * partmap/sun.c: Likewise.
3363 * parttool/msdospart.c: Likewise.
3364 * term/gfxterm.c: Likewise.
3365 * video/bitmap.c: Likewise.
3366 * video/readers/jpeg.c: Likewise.
3367 * video/readers/png.c: Likewise.
3368 * video/readers/tga.c: Likewise.
3369 * video/video.c: Likewise.
3370 * util/grub-emu.c (read_command_list): Removed.
3371 (main): Don't call util_init_nls.
3372 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
3373 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
3375 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3377 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
3378 date.mod, datehook.mod.
3379 (datetime_mod_SOURCES): New variable.
3380 (datetime_mod_CFLAGS): Likewise.
3381 (datetime_mod_LDFLAGS): Likewise.
3382 (date_mod_SOURCES): Likewise.
3383 (date_mod_CFLAGS): Likewise.
3384 (date_mod_LDFLAGS): Likewise.
3385 (datehook_mod_SOURCES): Likewise.
3386 (datehook_mod_CFLAGS): Likewise.
3387 (datehook_mod_LDFLAGS): Likewise.
3388 * conf/sparc64-ieee1275.rmk: Likewise.
3389 * lib/ieee1275/datetime.c: New file.
3391 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3393 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
3394 (ieee1275_fb_mod_SOURCES): New variable.
3395 (ieee1275_fb_mod_CFLAGS): Likewise.
3396 (ieee1275_fb_mod_LDFLAGS): Likewise.
3397 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
3399 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
3400 (HEAP_MAX_ADDR): Likewise.
3401 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
3403 Correct stop condition.
3404 (grub_ieee1275_devices_iterate): New function.
3405 * video/ieee1275.c: New file.
3407 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3409 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
3411 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
3413 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
3414 SCRATCH_PAD_DISKBOOT as scratch.
3415 (bootit): Pass Openfirmware pointer in %o4.
3416 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
3418 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
3419 with util/grub-mkrawimage.c.
3420 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
3421 * include/grub/aout.h (AOUT_MID_SUN): New definition.
3422 (grub_aout_get_type) [GRUB_UTIL]: Removed.
3423 (grub_aout_load) [GRUB_UTIL]: Likewise.
3424 * include/grub/kernel.h (grub_modules_get_end): New proto.
3425 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
3426 (SCRATCH_PAD_BOOT): New definition.
3427 (SCRATCH_PAD_DISKBOOT): Likewise.
3428 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
3429 * include/grub/sparc64/ieee1275/ieee1275.h
3430 (grub_ieee1275_original_stack): New variable
3431 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
3433 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
3434 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
3435 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
3436 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
3437 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
3438 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
3439 (grub_platform_image_format_t): New type.
3440 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
3441 * kern/main.c (grub_modules_get_end)
3442 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
3443 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
3444 (codestart): Switch stacks.
3445 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
3447 (grub_heap_init): Use grub_modules_get_end.
3448 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
3450 * util/grub-mkrawimage.c (generate_image): Support sparc64.
3452 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
3454 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
3456 * util/grub-mkrescue.in: Base ISO UUID on UTC.
3458 2010-03-08 Matt Kraai <kraai@ftbfs.org>
3460 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
3463 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
3465 * genmoddep.awk: Output all missing symbols and not only first.
3467 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3469 * NEWS: Put the date of 1.98 release.
3471 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3473 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
3476 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3478 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
3479 completition in the middle of string.
3481 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3483 * util/grub-mkrescue.in: Use mktemp with explicit template.
3485 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3487 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
3489 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3491 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
3494 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3496 Fix FreeBSD compilation.
3498 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
3499 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
3501 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3503 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
3505 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3507 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
3509 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3511 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
3513 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
3515 Support relative image path in theme file.
3517 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
3518 (image_set_property): Handle theme_dir and relative path.
3520 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3522 * configure.ac: Alias amd64 to x86_64.
3524 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3526 * NEWS: mention multiboot on EFI.
3528 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3530 * kern/main.c (grub_load_modules): Handle errors from init functions of
3533 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3535 * normal/autofs.c (autoload_fs_module): Handle errors.
3537 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3539 Disable linux.mod on qemu-mips since it's not functional and leads
3540 to compilation failure.
3542 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
3543 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
3544 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
3545 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
3546 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
3547 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
3548 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
3549 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
3550 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
3551 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
3552 Reported by: BVK Chaitanya
3554 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
3556 * INSTALL: Add gettext as a dependency and add qemu to a new section
3557 "Prerequisites for make-check".
3559 2010-03-04 Christian Franke <franke@computer.org>
3561 * util/grub-pe2elf.c: Add missing include "progname.h".
3563 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3565 * normal/crypto.c (read_crypto_list): Fix a typo.
3566 Reported by: Seth Goldberg.
3568 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3570 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
3571 Reported by: Seth Goldberg.
3573 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3575 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
3578 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3580 * genmk.rb: Remove terminal*.lst in make clean.
3581 Reported by: Seth Goldberg.
3583 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3585 * util/i386/efi/grub-install.in: Copy gettext files.
3587 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3589 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
3591 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3593 Wait for user entry basing on presence of output rather than on errors.
3595 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
3596 (grub_install_newline_hook): Likewise.
3597 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
3598 * normal/menu.c (show_menu): Check line_counter to determine presence
3600 * normal/term.c (grub_normal_line_counter): New variable.
3601 (grub_normal_get_line_counter): New function.
3602 (grub_install_newline_hook): Likewise.
3604 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3606 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
3608 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3610 * configure.ac: Update version to 1.98.
3612 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
3614 * util/grub.d/10_linux.in (linux_entry): Don't default to
3615 gfxpayload=keep if Linux doesn't support video handover.
3617 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
3619 Don't compile video modules on yeeloong since video subsystem is part
3622 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
3623 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
3624 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
3625 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
3626 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
3627 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
3628 * include/grub/bitmap_scale.h: Likewise.
3629 * include/grub/bufio.h: Likewise.
3630 * include/grub/font.h: Likewise.
3631 * include/grub/gfxterm.h: Likewise.
3632 * include/grub/video.h: Likewise.
3633 * include/grub/vbe.h: Don't include video_fb.h.
3634 * video/i386/pc/vbe.c: Include video_fb.h.
3635 * commands/i386/pc/vbetest.c: Include video.h.
3637 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
3639 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
3640 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
3641 default entry if GRUB_SAVEDEFAULT=true. This allows using
3642 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
3643 saving a new default on every boot.
3645 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
3647 * normal/crypto.c (read_crypto_list): Fix a memory leak.
3648 * normal/term.c (read_terminal_list): Likewise.
3649 * normal/main.c (grub_normal_init_page): Likewise.
3650 (grub_normal_read_line_real): Likewise.
3652 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
3654 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
3656 Reported by: Seth Goldberg.
3658 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
3660 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
3661 duplicate declaration of `start'.
3663 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
3665 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
3667 Reported by: Georgy Buranov
3669 2010-02-20 Carles Pina i Estany <carles@pina.cat>
3671 * util/grub-mkrawimage.c (usage): Change string formatting to
3674 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
3676 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
3679 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
3681 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
3682 Reported by: Michael Suchanek.
3684 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
3686 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
3687 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
3689 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
3691 Remove any reference to non-free fonts.
3693 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
3694 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
3695 uses non-free components.
3696 * font/font.c (grub_font_get_name): Remove example name.
3697 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
3698 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
3699 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
3700 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
3702 2010-02-16 Georgy Buranov <gburanov@gmail.com>
3704 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
3706 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
3708 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
3710 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
3712 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
3714 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
3716 * gensymlist.sh.in: Use TARGET_CC instead of CC.
3718 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3720 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
3721 * docs/grub.texi (Command-line and menu entry commands): Document play
3724 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3726 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
3727 parse arguments as inline tempo and notes. Move code for playing notes
3729 (play): ... new function.
3731 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3733 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
3734 grub_uint16_t instead of short.
3735 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
3736 disk from little endian to cpu endianness.
3738 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3740 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
3741 GRUB_TICKS_PER_SECOND instead of 120.
3743 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3745 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
3746 escape sequence after \e.
3748 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3750 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
3751 non-ASCII characters.
3753 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3755 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
3756 set root in single quotes to prevent \, from being unescaped.
3758 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3760 Prevent unknown commands from stopping menuentry execution.
3762 * script/execute.c (grub_script_execute_cmdline): Print error after
3765 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3767 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
3768 Reported by: Pavel Pisa.
3770 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3772 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
3774 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3776 Merge grub_ieee1275_map_physical into grub_map and rename to
3779 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
3780 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
3782 * kern/ieee1275/openfw.c (grub_map): Rename to ...
3783 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
3785 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
3787 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3789 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
3790 opening and not after.
3792 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3794 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
3797 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3799 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
3800 (alloc_phys): Use ALIGN_UP instead of align_addr.
3802 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3804 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
3806 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3808 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
3810 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3812 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
3815 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3817 Fix over-4GiB seek on sparc64.
3819 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
3820 Replace pos_i and pos_lo with pos. All users updated.
3821 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3823 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3825 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
3828 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3830 * util/grub-mkrawimage.c (main): Call set_program_name.
3832 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3834 Properly align 64-bit targets.
3836 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
3837 (generate_image): Use ALIGN_ADDR.
3839 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3841 Properly create cross-endian images.
3843 * include/grub/types.h (grub_host_to_target_addr): New macro
3844 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
3846 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3848 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
3850 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3852 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
3854 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
3855 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
3856 (grub_linux_boot): Divide by 64K when on VESA.
3858 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3860 Support GRUB_GFXPAYLOAD_LINUX.
3862 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
3863 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
3865 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3867 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
3868 to show messages instead of discarding them.
3869 Process errors after executing command and not before. Keep old method
3872 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
3874 * configure.ac: Check for ft2build.h.
3876 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3878 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
3880 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3882 * genkernsyms.sh.in: Use TARGET_CC.
3884 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
3888 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3890 * include/grub/multiboot2.h: Remove leftover file.
3891 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
3892 * include/grub/partition.h [GRUB_UTIL]: Likewise.
3894 2010-02-07 Yves Blusseau <blusseau@zetam.org>
3896 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
3898 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3900 Fix warnings in grub-emu when compiling with maximum warning options.
3902 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
3903 (grub_arch_modules_addr): Return 0 and not NULL.
3904 * util/misc.c (ENABLE_RELOCATABLE): New definition.
3905 (xstrdup): Use newstr instead of dup.
3906 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
3907 of disk to dsk to avoid shadowing.
3908 (find_free_slot): Fix prototype.
3909 * util/getroot.c (grub_util_is_dmraid): Make static.
3910 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
3911 Add missing prototype.
3912 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
3914 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3916 * loader/i386/linux.c (grub_linux_setup_video): Handle error
3919 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3921 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
3924 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3926 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
3927 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
3928 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
3929 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
3930 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
3931 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
3933 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3935 * include/grub/err.h (grub_err_printf): Don't export.
3937 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3939 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
3941 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3943 * include/grub/i18n.h (grub_gettext_dummy): Removed.
3944 * kern/misc.c (grub_gettext_dummy): Make static.
3946 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3948 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
3950 * kern/term.c (grub_putchar): Likewise.
3952 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3954 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
3955 buggy hook call and memory leak.
3957 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3959 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
3961 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3963 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
3965 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3967 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
3969 Return grub_errno on allocation error.
3971 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3973 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
3975 2010-02-06 Yves Blusseau <blusseau@zetam.org>
3977 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
3978 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
3980 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3982 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
3984 (grub_pxefs_open): Likewise.
3986 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3988 * util/grub.d/10_hurd.in: Add --class information to menuentries.
3989 * util/grub.d/10_kfreebsd.in: Likewise.
3990 * util/grub.d/10_linux.in: Likewise.
3992 2010-02-06 Colin D Bennett <colin@gibibit.com>
3994 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
3995 (gfxmenu_mod_SOURCES): New variable.
3996 (gfxmenu_mod_CFLAGS): Likewise.
3997 (gfxmenu_mod_LDFLAGS): Likewise.
3998 * include/grub/term.h (grub_term_set_current_output): Declare
4000 * docs/gfxmenu-theme-example.txt: New file.
4001 * gfxmenu/gfxmenu.c: Likewise.
4002 * gfxmenu/gui_box.c: Likewise.
4003 * gfxmenu/gui_canvas.c: Likewise.
4004 * gfxmenu/gui_circular_progress.c: Likewise.
4005 * gfxmenu/gui_image.c: Likewise.
4006 * gfxmenu/gui_label.c: Likewise.
4007 * gfxmenu/gui_list.c: Likewise.
4008 * gfxmenu/gui_progress_bar.c: Likewise.
4009 * gfxmenu/gui_string_util.c: Likewise.
4010 * gfxmenu/gui_util.c: Likewise.
4011 * gfxmenu/icon_manager.c: Likewise.
4012 * gfxmenu/model.c: Likewise.
4013 * gfxmenu/named_colors.c: Likewise.
4014 * gfxmenu/theme_loader.c: Likewise.
4015 * gfxmenu/view.c: Likewise.
4016 * gfxmenu/widget-box.c: Likewise.
4017 * include/grub/gfxmenu_model.h: Likewise.
4018 * include/grub/gfxmenu_view.h: Likewise.
4019 * include/grub/gfxwidgets.h: Likewise.
4020 * include/grub/gui.h: Likewise.
4021 * include/grub/gui_string_util.h: Likewise.
4022 * include/grub/icon_manager.h: Likewise.
4024 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4026 Agglomerate scrolling in gfxterm.
4028 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
4029 (grub_virtual_screen_setup): Initialise 'total_screen'.
4030 (write_char): Split to ...
4031 (paint_char): ... this ...
4032 (write_char): ... and this.
4033 (paint_char): Handle delayed scrolling.
4034 (draw_cursor): Likewise.
4035 (scroll_up): Split to ...
4036 (real_scroll): ... this ...
4037 (scroll_up): ... and this.
4038 (real_scroll): Handle multi-line scroll and draw below-the-bottom
4040 (grub_gfxterm_refresh): Call real_scroll.
4042 2010-02-06 Colin D Bennett <colin@gibibit.com>
4044 * include/grub/misc.h (grub_iscntrl): New inline function.
4045 (grub_isalnum): Likewise.
4046 (grub_strtol): Likewise.
4048 2010-02-06 Colin D Bennett <colin@gibibit.com>
4050 * normal/menu_text.c (get_entry_number): Move from here ...
4051 * normal/menu.c (get_entry_number): ... moved here.
4052 * include/grub/menu.h (grub_menu_get_default_entry_index):
4054 * normal/menu.c (grub_menu_get_default_entry_index): New function.
4055 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
4056 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
4057 (grub_menu_viewer_should_return): Likewise.
4058 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
4059 * normal/menu_text.c (run_menu): Enable menu switching.
4060 * normal/menu_viewer.c (should_return): New variable.
4061 (menu_viewer_changed): Likewise.
4062 (grub_menu_viewer_show_menu): Handle menu viewer changes.
4063 (grub_menu_viewer_should_return): New function.
4064 (menuviewer_write_hook): Likewise.
4065 (grub_menu_viewer_init): Likewise.
4067 2010-02-06 Colin D Bennet <colin@gibibit.com>
4068 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4070 Support for gfxterm in a window.
4072 * include/grub/gfxterm.h: New file.
4073 * include/grub/video.h (struct grub_video_rect): New declaration.
4074 (grub_video_rect_t): Likewise.
4075 * term/gfxterm.c (struct grub_gfxterm_window): New type.
4076 (refcount): New variable.
4077 (render_target): Likewise.
4079 (repaint_callback): Likewise.
4080 (grub_virtual_screen_setup): Use 'render_target'.
4081 (init_window): New function.
4082 (grub_gfxterm_init_window): Likewise.
4083 (grub_gfxterm_init): Check reference counter.
4085 (destroy_window): New function.
4086 (grub_gfxterm_destroy_window): Likewise.
4087 (grub_gfxterm_fini): Check reference counter.
4089 (redraw_screen_rect): Restore viewport.
4090 Use 'render_target' and 'window'.
4091 Call 'repaint_callback'.
4092 (write_char): Use 'render_target'.
4093 (draw_cursor): Likewise.
4094 (scroll_up): Restore viewport.
4095 Use 'render_target' and 'window'.
4096 Call 'repaint_callback'.
4097 (grub_gfxterm_cls): Likewise.
4098 (grub_gfxterm_refresh): Use 'window'.
4099 (grub_gfxterm_set_repaint_callback): New function.
4100 (grub_gfxterm_background_image_cmd): Use 'window'.
4101 (grub_gfxterm_get_term): New function.
4102 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
4104 2010-02-06 Colin D Bennett <colin@gibibit.com>
4106 Bitmap scaling support.
4108 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
4109 (bitmap_scale_mod_SOURCES): New variable.
4110 (bitmap_scale_mod_CFLAGS): Likewise.
4111 (bitmap_scale_mod_LDFLAGS): Likewise.
4112 * include/grub/bitmap_scale.h: New file.
4113 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
4114 (background_image_cmd_options): New variable.
4115 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
4116 (cmd): Rename and change type to ...
4117 (background_image_cmd_handle): ... this. All users updated.
4118 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
4119 * video/bitmap_scale.c: New file.
4121 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4125 * Makefile.in (LIBSDL): New variable.
4126 (enable_grub_emu_sdl): Likewise.
4127 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
4128 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
4129 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
4130 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
4131 * util/sdl.c: New file.
4133 2010-02-06 Colin D Bennett <colin@gibibit.com>
4134 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4136 Double buffering support.
4138 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
4139 * include/grub/video.h: Update comment.
4140 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
4142 (grub_video_fb_doublebuf_blit_init): New prototype.
4143 * term/gfxterm.c (scroll_up): Support double buffering.
4144 (grub_gfxterm_refresh): Likewise.
4145 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
4146 (grub_video_fb_doublebuf_blit_init): Likewise.
4147 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
4148 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
4149 'displayed_page', 'render_page' and 'update_screen'.
4150 (grub_video_vbe_fini): Free offscreen buffer.
4151 (doublebuf_pageflipping_commit): New function.
4152 (doublebuf_pageflipping_update_screen): Likewise.
4153 (doublebuf_pageflipping_init): Likewise.
4154 (double_buffering_init): Likewise.
4155 (grub_video_vbe_setup): Enable doublebuffering.
4156 (grub_video_vbe_swap_buffers): Implement.
4157 (grub_video_vbe_set_active_render_target): Handle double buffering.
4158 (grub_video_vbe_get_active_render_target): Likewise.
4159 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
4160 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
4161 (grub_video_vbe_enable_double_buffering): Likewise.
4162 (grub_video_vbe_swap_buffers): Use update_screen.
4163 (grub_video_set_mode): Use double buffering.
4165 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
4167 * maintainance/gentrigtables.py: Remove.
4168 * lib/trig.c: Likewise.
4170 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
4172 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
4174 (trigtables.c): New rule.
4175 (gentrigtables): Likewise.
4176 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
4178 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
4180 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
4183 2010-02-06 Colin D Bennet <colin@gibibit.com>
4185 Trigonometry support.
4187 * include/grub/trig.h: New file.
4188 * lib/trig.c: Likewise.
4189 * maintainance/gentrigtables.py: Likewise.
4190 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
4191 (trig_mod_SOURCES): New variable.
4192 (trig_mod_CFLAGS): Likewise.
4193 (trig_mod_LDFLAGS): Likewise.
4195 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4197 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
4200 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4202 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
4205 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
4207 * util/hostdisk.c (open_device): Don't use partition device when reading
4208 before the partition.
4209 (grub_util_biosdisk_read): Don't read from partition and before the
4210 partition in single operation.
4211 (grub_util_biosdisk_write): Don't write to partition and before the
4212 partition in single operation.
4214 2010-02-03 Torsten Landschoff <torsten@debian.org>
4216 * kern/disk.c (grub_disk_read): Fix offset computation when reading
4219 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
4221 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
4223 (grub_biosdisk_write): Refuse to write to CDROM.
4225 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
4227 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
4229 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
4231 * font/font.c (find_glyph): Check that bmp_idx is available before
4233 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
4234 with (font == NULL).
4236 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
4238 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
4240 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
4242 * include/grub/script_sh.h (sourcecode): Add const qualifier.
4243 * util/grub-script-check.c (getline): Fix empty lines case.
4245 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
4247 * Makefile.in (check): Exit with fail status when one of the tests
4249 * tests/example_functional_test.c (example_test): Fix reversed assert.
4250 * tests/example_unit_test.c (example_test): Likewise.
4252 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
4254 * util/grub.d/10_linux.in: This script does not use any of the
4255 contents of gettext.sh, only the external command `gettext', so stop
4256 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
4257 the same prefix as GRUB.)
4258 * util/grub.d/10_kfreebsd.in: Likewise.
4260 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
4262 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
4265 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
4267 * kern/disk.c (grub_disk_read): Fix offset computation when reading
4270 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
4272 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
4273 having a 4KiB and not 32KiB buffer size.
4275 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
4277 * util/hostfs.c: Include `<errno.h>'.
4278 (grub_hostfs_read): Handle errors from fseeko() and fread().
4280 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
4282 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
4283 loop when using read hooks on files whose size isn't sector-aligned.
4285 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
4287 Remove unused parameter.
4289 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
4290 (grub_iso9660_open): Remove initialization of `data->length'.
4292 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
4294 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
4297 2010-01-27 Carles Pina i Estany <carles@pina.cat>
4299 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
4300 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
4302 2010-01-26 Carles Pina i Estany <carles@pina.cat>
4304 * util/bin2h.c (usage): Fix warning (space after backslash).
4306 2010-01-26 Carles Pina i Estany <carles@pina.cat>
4308 * font/font.c: Include `grub/fontformat.h.
4309 Remove font file format constants.
4310 (grub_font_load): Use the new macros.
4311 * include/grub/fontformat.h: New file.
4312 * util/grub-mkfont.c: Include `grub/fontformat.c'.
4313 (write_font_pf2): Use the new macros.
4315 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
4317 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
4320 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
4322 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
4324 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
4325 (_start): Macroify `0x7F'.
4327 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
4328 (make_install_device): Use "(pxe)" as fallback prefix when booting
4331 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
4333 * configure.ac: Reset LIBS after check for libgcc symbols.
4335 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
4337 * util/hostdisk.c (open_device): Add trailing newline to debug
4340 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
4342 * configure.ac: Check for `limits.h'.
4343 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
4345 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
4347 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
4348 capitalize error strings.
4350 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
4352 * util/grub.d/10_hurd.in: Add a recovery mode.
4354 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
4356 * configure.ac: Check for libgcc symbols with -nostdlib.
4358 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
4360 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
4362 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4364 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
4365 stack since heap may be unavailable at that point.
4366 (grub_ofconsole_gotoxy): Likewise.
4368 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4370 * configure.ac: Check for _restgpr_14_x.
4371 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
4372 and _savegpr_* prototypes.
4374 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
4376 Use generic grub_reboot() for i386-efi.
4378 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
4379 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
4380 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
4382 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4384 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
4385 presence of "prefix" variable as it breaks when normal.mod is
4388 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4390 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
4391 stack since heap is unavailable at that point.
4393 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4395 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
4396 (grub_freebsd_bootinfo): Rewritten.
4397 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
4399 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4401 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
4403 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
4405 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
4408 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
4410 * util/misc.c (make_system_path_relative_to_its_root): Change the work
4411 around for handling "/" to the correct fix. Fix a memory leak. Use
4412 xstrdup instead of strdup.
4414 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4416 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
4418 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4420 Optimise glyph lookup by Basic Multilingual Plane lookup array.
4422 * font/font.c (struct grub_font): New member 'bmp_idx'.
4423 (font_init): Initialise 'bmp_idx'.
4424 (load_font_index): Fill 'bmp_idx'.
4425 (find_glyph): Make inline. Use bmp_idx for BMP characters.
4427 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4429 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
4432 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4434 Move context handling out of the kernel.
4436 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
4437 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
4438 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
4439 * conf/i386-efi.rmk: Likewise.
4440 * conf/i386-ieee1275.rmk: Likewise.
4441 * conf/i386-pc.rmk: Likewise.
4442 * conf/powerpc-ieee1275.rmk: Likewise.
4443 * conf/sparc64-ieee1275.rmk: Likewise.
4444 * conf/x86_64-efi.rmk: Likewise.
4445 * include/grub/env.h: Include grub/menu.h.
4446 (grub_env_var_type): Removed.
4447 (grub_env_var): Replaced field 'type' with 'global'.
4448 (grub_env_find): New prototype.
4449 (grub_env_context_open): Remove EXPORT_FUNC.
4450 (grub_env_context_close): Likewise.
4451 (grub_env_export): Likewise.
4452 (grub_env_set_data_slot): Removed.
4453 (grub_env_get_data_slot): Likewise.
4454 (grub_env_unset_data_slot): Likewise.
4455 (grub_env_unset_menu): New prototype.
4456 (grub_env_set_menu): Likewise.
4457 (grub_env_get_menu): Likewise.
4458 * include/grub/env_private.h: New file.
4459 * include/grub/normal.h (grub_context_init): New prototype.
4460 (grub_context_fini): Likewise.
4461 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
4462 * normal/context.c (grub_cmd_export): ... to here.
4463 * kern/env.c: Include env_private.h.
4464 (HASHSZ): Moved to include/grub/env_private.h.
4465 (grub_env_context): Likewise.
4466 (grub_env_sorted_var): Likewise.
4467 (current_context): Renamed from this ...
4468 (grub_current_context): ...to this. 'static' removed. All users updated.
4469 (grub_env_find): Removed 'static'.
4470 (grub_env_context_open): Moved to normal/context.c.
4471 (grub_env_context_close): Likewise.
4472 (grub_env_export): Likewise.
4473 (mangle_data_slot_name): Removed.
4474 (grub_env_set_data_slot): Likewise.
4475 (grub_env_get_data_slot): Likewise.
4476 (grub_env_unset_data_slot): Likewise.
4477 * kern/main.c (grub_set_root_dev): Don't export root.
4478 It will be done later.
4479 (grub_main): Don't export prefix.
4480 It will be done later.
4481 * normal/context.c: New file.
4482 * normal/main.c (free_menu): Use grub_env_unset_menu.
4483 (grub_normal_add_menu_entry): Use grub_env_get_menu.
4484 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
4485 (GRUB_MOD_INIT(normal)): Call grub_context_init.
4486 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
4488 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4492 * commands/setpci.c: New file.
4493 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
4494 (setpci_mod_SOURCES): New variable.
4495 (setpci_mod_CFLAGS): Likewise.
4496 (setpci_mod_LDFLAGS): Likewise.
4498 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4500 Byte-addressable PCI configuration space.
4502 * bus/pci.c (grub_pci_make_address): Use byte address instead of
4504 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
4505 GRUB_PCI_REG_CACHELINE.
4506 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
4507 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
4508 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
4509 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
4510 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
4511 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
4512 grub_pci_make_address.
4513 (lock_rom_area): Likewise.
4514 * commands/lspci.c (grub_lspci_iter): Use macroses
4515 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
4516 of grub_pci_make_address.
4517 * disk/ata.c (grub_ata_pciinit): Likewise.
4518 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
4519 (GRUB_PCI_REG_VENDOR): Likewise.
4520 (GRUB_PCI_REG_DEVICE): Likewise.
4521 (GRUB_PCI_REG_COMMAND): Likewise.
4522 (GRUB_PCI_REG_STATUS): Likewise.
4523 (GRUB_PCI_REG_REVISION): Likewise.
4524 (GRUB_PCI_REG_CLASS): Likewise.
4525 (GRUB_PCI_REG_CACHELINE): Likewise.
4526 (GRUB_PCI_REG_LAT_TIMER): Likewise.
4527 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
4528 (GRUB_PCI_REG_BIST): Likewise.
4529 (GRUB_PCI_REG_ADDRESSES): Likewise.
4530 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4531 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4532 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4533 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4534 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4535 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4536 (GRUB_PCI_REG_CIS_POINTER): Likewise.
4537 (GRUB_PCI_REG_SUBVENDOR): Likewise.
4538 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
4539 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
4540 (GRUB_PCI_REG_CAP_POINTER): Likewise.
4541 (GRUB_PCI_REG_IRQ_LINE): Likewise.
4542 (GRUB_PCI_REG_IRQ_PIN): Likewise.
4543 (GRUB_PCI_REG_MIN_GNT): Likewise.
4544 (GRUB_PCI_REG_MAX_LAT): Likewise.
4545 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
4546 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
4547 * video/efi_uga.c (find_framebuf): Likewise.
4548 * video/sm712.c (grub_video_sm712_setup): Likewise.
4549 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
4552 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4554 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
4555 can be reliably determined to be supported.
4557 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4559 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
4560 that VESA is supported.
4561 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
4564 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4566 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
4568 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4570 * util/misc.c (make_system_path_relative_to_its_root): Work around
4571 special-casing of "/", as previous incarnation of this routine did.
4573 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4575 Fix any-emu compilation.
4577 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
4578 * grub_bin2h_SOURCES: New variable.
4580 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4582 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
4584 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4586 * util/grub.d/00_header.in: Fix handling of locale_dir.
4588 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4590 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
4591 as possible unifont location (Gentoo).
4592 Reported by: Alexander Brüning
4594 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4596 Don't try to generate lists for kernel.img.
4598 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
4599 (pkglib_MODULES): Remove kernel.img.
4600 (kernel_img_EXPORTS): Removed.
4601 (kernel_img_RELOCATABLE): New variable.
4602 * conf/x86_64-efi.rmk: Likewise.
4603 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
4605 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4607 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
4608 grub_xasprintf or grub_snprintf.
4609 (grub_vsprintf): Likewise.
4610 (grub_snprintf): New proto.
4611 (grub_vsnprintf): Likewise.
4612 (grub_xasprintf): Likewise.
4613 (grub_xvasprintf): Likewise.
4614 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
4615 (grub_sprintf): Removed.
4616 (grub_vsnprintf): New function.
4617 (grub_snprintf): Likewise.
4618 (grub_xvasprintf): Likewise.
4619 (grub_xasprintf): Likewise.
4620 (grub_vsprintf): Renamed to ...
4621 (grub_vsnprintf_real): ...this. New argument max_len.
4623 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
4625 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
4626 fix grub-script-check warning.
4628 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4630 * include/grub/font.h (grub_font_load): Fix prototype.
4632 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4634 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
4636 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4638 * include/grub/x86_64/at_keyboard.h: New file.
4640 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4642 * loader/mips/linux.c: Include missing grub/i18n.h.
4644 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4646 * normal/menu.c (notify_execution_failure): Clarify error message.
4648 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4650 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
4651 return value (and revert all return statements). Update users.
4653 2010-01-20 Dan Merillat <debian@dan.merillat.org>
4655 * kern/device.c (grub_device_iterate): Allocate new part_ent
4656 structure based on sizeof (*p) rather than sizeof (p->next), to
4657 account for structure padding.
4659 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
4660 disk is NULL, which might happen for LVM physical volumes with no
4663 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4665 * loader/mips/linux.c (grub_cmd_initrd)
4666 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
4668 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4670 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
4671 (grub_video_video_init, grub_video_bitmap_init)
4672 (grub_font_manager_init, grub_term_gfxterm_init)
4673 (grub_at_keyboard_init): New extern declarations.
4674 (grub_machine_init): Initialize gfxterm and at_keyboard.
4676 * kern/main.c (grub_main): Revert grub_printf delay kludge.
4678 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
4679 `gfxterm.mod' into core image.
4681 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4682 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4683 (kernel_img_FORMAT): Copy to ...
4685 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4686 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4687 (kernel_img_FORMAT): ... here, and ...
4689 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4690 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4691 (kernel_img_FORMAT): ... here.
4693 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
4694 and input (at_keyboard) terminals in kernel.
4695 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
4697 (pkglib_MODULES): Remove `pci.mod'.
4698 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
4699 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
4700 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
4701 (at_keyboard_mod_LDFLAGS): Remove variables.
4703 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
4705 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
4707 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
4709 * include/grub/mips/libgcc.h: Only export symbols for functions
4710 that libgcc provides.
4712 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
4716 * bus/bonito.c: New file.
4717 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
4718 GRUB_PCI_NUM_DEVICES.
4719 * term/i386/pc/serial.c: Move to ...
4720 * term/serial.c: ... here. All users updated.
4721 * util/i386/pc/grub-mkimage.c: Move to ...
4722 * util/grub-mkrawimage.c: ... here. All users updated.
4723 * term/i386/pc/at_keyboard.c: Move to ...
4724 * term/at_keyboard.c: ... here. All users updated.
4725 * conf/mips-qemu-mips.rmk: New file.
4726 * conf/mips-yeeloong.rmk: Likewise.
4727 * conf/mips.rmk: Likewise.
4728 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
4730 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
4732 (grub_ata_pciinit): Support CS5536.
4733 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
4734 * font/font_cmd.c (loadfont_command): Open file before passing it to
4736 (pseudo_file_read): New function.
4737 (pseudo_file_close): Likewise.
4738 (pseudo_fs): New structure.
4739 (load_font_module): New function.
4740 (GRUB_MOD_INIT(font_manager)): Load embedded font.
4741 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
4742 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
4743 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
4744 * include/grub/i386/at_keyboard.h: Split into ...
4745 * include/grub/at_keyboard.h: ... this ...
4746 * include/grub/i386/at_keyboard.h: ... and this.
4747 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
4749 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
4751 (grub_elf64_size): Likewise.
4752 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
4754 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
4755 * include/grub/i386/coreboot/serial.h: Rewritten.
4756 * include/grub/i386/ieee1275/serial.h: Include
4757 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
4758 * include/grub/i386/pc/serial.h: Moved from here ...
4759 * include/grub/serial.h: ... to here. All users updated.
4760 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
4761 (GRUB_PCI_NUM_BUS): Likewise.
4762 (GRUB_PCI_NUM_DEVICES): Likewise.
4763 (grub_pci_device_map_range): Add missing volatile keyword.
4764 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
4765 * include/grub/mips/at_keyboard.h: New file.
4766 * include/grub/mips/cache.h: Likewise.
4767 * include/grub/mips/io.h: Likewise.
4768 * include/grub/mips/kernel.h: Likewise.
4769 * include/grub/mips/libgcc.h: Likewise.
4770 * include/grub/mips/pci.h: Likewise.
4771 * include/grub/mips/qemu-mips/boot.h: Likewise.
4772 * include/grub/mips/qemu-mips/kernel.h: Likewise.
4773 * include/grub/mips/qemu-mips/loader.h: Likewise.
4774 * include/grub/mips/qemu-mips/memory.h: Likewise.
4775 * include/grub/mips/qemu-mips/serial.h: Likewise.
4776 * include/grub/mips/qemu-mips/time.h: Likewise.
4777 * include/grub/mips/relocator.h: Likewise.
4778 * include/grub/mips/time.h: Likewise.
4779 * include/grub/mips/types.h: Likewise.
4780 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
4781 * include/grub/mips/yeeloong/boot.h: Likewise.
4782 * include/grub/mips/yeeloong/kernel.h: Likewise.
4783 * include/grub/mips/yeeloong/loader.h: Likewise.
4784 * include/grub/mips/yeeloong/memory.h: Likewise.
4785 * include/grub/mips/yeeloong/pci.h: Likewise.
4786 * include/grub/mips/yeeloong/serial.h: Likewise.
4787 * include/grub/mips/yeeloong/time.h: Likewise.
4788 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
4789 * kern/elf.c (grub_elf32_size): New parameter. All users
4791 (grub_elf64_size): Likewise.
4792 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
4793 Load modules before saying "Welcome to GRUB!".
4794 Call grub_refresh after saying "Welcome to GRUB!".
4795 * kern/mips/cache.S: New file.
4796 * kern/mips/cache_flush.S: Likewise.
4797 * kern/mips/dl.c: Likewise.
4798 * kern/mips/init.c: Likewise.
4799 * kern/mips/qemu-mips/init.c: Likewise.
4800 * kern/mips/startup.S: Likewise.
4801 * kern/mips/yeeloong/init.c: Likewise.
4802 * kern/term.c (grub_putcode): Handle NULL terminal.
4803 (grub_getcharwidth): Likewise.
4804 (grub_getkey): Likewise.
4805 (grub_checkkey): Likewise.
4806 (grub_getkeystatus): Likewise.
4807 (grub_getxy): Likewise.
4808 (grub_getwh): Likewise.
4809 (grub_gotoxy): Likewise.
4810 (grub_cls): Likewise.
4811 (grub_setcolorstate): Likewise.
4812 (grub_setcolor): Likewise.
4813 (grub_getcolor): Likewise.
4814 (grub_refresh): Likewise.
4815 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
4816 (write_jump): Add hatch nop.
4817 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
4818 * lib/mips/setjmp.S: New file.
4819 * loader/mips/linux.c: Likewise.
4820 * term/i386/pc/at_keyboard.c: Move from here ...
4821 * term/at_keyboard.c: ... to here.
4822 * term/i386/pc/serial.c: Moved from here ...
4823 * term/serial.c: ... to here. All users updated.
4824 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
4825 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
4826 (serial_translate_key_sequence): Avoid deadlock.
4827 (grub_serial_getkey): Handle backspace.
4828 (grub_serial_putchar): Fix newline handling.
4829 * util/i386/pc/grub-mkimage.c: Move from here ...
4830 * util/grub-mkrawimage.c: ... to here. All users updated.
4831 (generate_image): New parameters 'font_path' and 'format'.
4832 Support embedding font.
4833 Use grub_host_to_target* instead of grub_cpu_to_le*.
4834 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
4835 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
4836 (options): New option "--font".
4838 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
4839 (main): Handle "--font".
4840 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
4841 (grub_virtual_screen_setup): Set bg_color_display.
4842 (redraw_screen_rect): Use bg_color_display instead of incorrect
4844 (grub_gfxterm_cls): Likewise.
4845 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
4846 Support embedding config file.
4847 (add_segments): Likewise.
4848 (options): New option "--config".
4849 (main): Handle "--config".
4850 * video/sm712.c: New file.
4852 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4854 Fix parallel builds.
4856 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
4857 font.c depend on ascii.h).
4859 2010-01-12 Carles Pina i Estany <carles@pina.cat>
4861 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
4863 2010-01-11 Carles Pina i Estany <carles@pina.cat>
4865 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
4866 By default: disabled.
4867 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
4870 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4872 * font/font.c: Update copyright years.
4873 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
4875 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4877 * font/font.c: Include `ascii.h'.
4878 (ASCII_BITMAP_SIZE): New macro.
4879 (ascii_font_glyph): Define.
4880 (ascii_glyph_lookup): New function.
4881 (grub_font_get_string_width): Change comment. If glyph not found, use
4883 (grub_font_get_glyph_with_fallback): If glyph not available returns
4885 * util/grub-mkfont.c (file_formats): New enum.
4886 (options): Add `ascii-bitmaps' new option.
4887 (usage): Add `asii-bitmaps' new option.
4888 (write_font_ascii_bitmap): New function.
4889 (write_font): Rename to ...
4890 (write_font_p2): ... this. Remove print_glyphs call.
4891 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
4892 used. Call print_glyphs.
4893 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
4895 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4897 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
4898 (grub_bin2h_SOURCES): New variable.
4899 * util/bin2h.c: New file.
4901 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4903 * include/multiboot.h: Resynced with spec.
4904 * include/multiboot2.h: Likewise.
4905 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
4906 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
4908 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4910 * include/grub/term.h (grub_term_register_input,
4911 grub_term_register_output): Check return of terminal init()
4912 routines, and abort if errors are raised.
4914 * commands/terminal.c: Update copyright year.
4916 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4918 * commands/terminal.c (grub_cmd_terminal_input)
4919 (grub_cmd_terminal_output): Check return of terminal init()
4920 routines, and abort if errors are raised.
4922 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4924 * include/grub/i386/bsd.h: Fix include pathes.
4926 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4928 Add missing *BSD copyright headers.
4930 * include/grub/aout.h: Add BSD licence.
4931 * include/grub/i386/bsd.h: Parts under different licences moved to ...
4932 * include/grub/i386/freebsd_linker.h: ... here,
4933 * include/grub/i386/freebsd_reboot.h: ... here,
4934 * include/grub/i386/netbsd_bootinfo.h: ... here,
4935 * include/grub/i386/netbsd_reboot.h: ... here,
4936 * include/grub/i386/openbsd_bootarg.h: ... here,
4937 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
4938 licence to each file.
4940 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4942 * acinclude.m4: Remove `nop' assembly instruction; it's not
4943 implemented by all architectures.
4945 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4947 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
4948 ELILO. This is no longer necessary.
4950 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
4952 Added new tool, grub-scrit-check to verify grub.cfg syntax.
4954 * util/grub-script-check.c: grub-script-check tool.
4955 * conf/common.rmk: Make rules for grub-script-check.
4957 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4959 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
4960 spotting it back in 2008. Shame on me for forgetting he did.
4962 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
4964 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4966 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
4967 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
4968 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
4969 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
4970 (GRUB_VIDEO_TYPE_EFI): Rename to ...
4971 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
4973 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
4975 * include/grub/test.h: Add license header.
4976 * tests/example_functional_test.c: Likewise.
4977 * tests/example_unit_test.c: Likewise.
4978 * tests/lib/functional_test.c: Likewise.
4979 * tests/lib/test.c: Likewise.
4980 * tests/lib/unit_test.c: Likewise.
4982 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
4984 Use flag-based instead of hook-based video mode selection and "auto"
4987 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
4988 (grub_video_set_mode): Changed prototype. All users updated.
4989 (grub_video_check_mode_flag): New inline function.
4990 * video/video.c (parse_modespec): New function.
4991 (grub_video_set_mode): Parse flags and keywords.
4993 2010-01-17 Carles Pina i Estany <carles@pina.cat>
4995 * util/misc.c (grub_util_info): Fix the order of the parameters in a
4998 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5000 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
5002 2010-01-16 Carles Pina i Estany <carles@pina.cat>
5004 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
5006 * util/grub-emu.c (usage): Likewise.
5007 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
5008 * util/i386/efi/grub-mkimage.c (usage): Likewise.
5009 * util/i386/pc/grub-mkimage.c (usage): Likewise.
5010 * util/i386/pc/grub-setup.c (usage): Likewise.
5012 2010-01-16 Carles Pina i Estany <carles@pina.cat>
5014 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
5016 (grub_util_info): Likewise.
5017 (grub_util_error): Likewise.
5018 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
5019 and/or new lines in `grub_util_warna', `grub_util_info',
5020 `grub_util_error' calls.
5021 * util/getroot.c: Likewise.
5022 * util/grub-editenv.c: Likewise.
5023 * util/grub-emu.c: Likewise.
5024 * util/grub-fstest.c: Likewise.
5025 * util/grub-mkdevicemap.c: Likewise.
5026 * util/grub-mkfont.c: Likewise.
5027 * util/grub-mkpasswd-pbkdf2.c: Likewise.
5028 * util/grub-mkrelpath.c: Likewise.
5029 * util/grub-pe2elf.c: Likewise.
5030 * util/grub-probe.c: Likewise.
5031 * util/hostdisk.c: Likewise.
5032 * util/i386/efi/grub-mkimage.c: Likewise.
5033 * util/i386/pc/grub-mkimage.c: Likewise.
5034 * util/i386/pc/grub-setup.c: Likewise.
5035 * util/ieee1275/ofpath.c: Likewise.
5036 * util/mkisofs/eltorito.c: Likewise.
5037 * util/mkisofs/rock.c: Likewise.
5038 * util/mkisofs/write.c: Likewise.
5039 * util/raid.c: Likewise.
5040 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
5041 * util/sparc64/ieee1275/grub-setup.c: Likewise.
5043 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
5045 Enable multiboot on non-pc.
5047 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
5048 multiboot.mod and multiboot2.mod to ...
5049 * conf/i386.rmk (pkglib_MODULES): ... here.
5050 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
5052 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
5053 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
5055 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
5056 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
5058 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
5059 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
5061 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
5062 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
5064 (ata_mod_SOURCES): Removed.
5065 (ata_mod_CFLAGS): Likewise.
5066 (ata_mod_LDFLAGS): Likewise.
5067 (relocator_mod_SOURCES): Removed.
5068 (relocator_mod_CFLAGS): Likewise.
5069 (relocator_mod_ASFLAGS): Likewise.
5070 (relocator_mod_LDFLAGS): Likewise.
5072 * include/grub/x86_64/multiboot.h: New file.
5073 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
5076 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
5078 Video multiboot support.
5080 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
5082 * include/multiboot.h: Resynced with multiboot specification.
5083 * include/multiboot2.h: Likewise.
5084 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
5085 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
5086 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
5087 (HAS_VGA_TEXT): Likewise.
5088 (accepts_video): New variable.
5089 (grub_multiboot_set_accepts_video): New function.
5090 (grub_multiboot_get_mbi_size): Account for video structures.
5091 (set_video_mode): New function.
5092 (retrieve_video_parameters): Likewise.
5093 (grub_multiboot_make_mbi): Fill video fields.
5095 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
5099 * include/grub/video.h (grub_video_driver_id): New type.
5100 (grub_video_adapter): New member 'id'. All users updated.
5101 (grub_video_get_driver_id): New proto.
5102 * video/video.c (grub_video_get_driver_id): New function.
5104 2010-01-14 Carles Pina i Estany <carles@pina.cat>
5106 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
5109 2010-01-14 Carles Pina i Estany <carles@pina.cat>
5111 * normal/cmdline.c (print_completion): Gettextizze.
5113 2001-01-14 Carles Pina i Estany <carles@pina.cat>
5115 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
5117 2010-01-14 Carles Pina i Estany <carles@pina.cat>
5119 * gettext/gettext.c (grub_gettext_translate): Push and pop
5121 (grub_gettext_delete_list): Change comment style.
5122 * kern/err.c (grub_error): Gettextizze.
5123 (grub_fatal): Gettextizze.
5125 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
5127 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
5128 (grub_linux16_real_boot): ... this.
5129 * kern/i386/loader.S: Likewise.
5130 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
5131 (grub_linux16_boot): New function. Switches to text mode and calls
5132 grub_linux16_real_boot().
5134 * loader/i386/bsd.c: Include `<grub/video.h>'.
5135 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
5136 text mode before calling grub_unix_real_boot().
5138 * loader/i386/multiboot.c: Include `<grub/video.h>'.
5139 (grub_multiboot_boot): Switch to text mode before calling
5140 grub_relocator32_boot().
5142 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
5143 (grub_chainloader_boot): Switch to text mode before calling
5144 grub_chainloader_real_boot().
5146 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
5147 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5149 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
5152 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
5153 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5155 * util/grub.d/00_header.in: Define a "savedefault" function for use
5157 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
5159 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
5160 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5162 * util/grub-mkconfig_lib.in (save_default_entry): Only set
5163 saved_entry if boot_once is unset.
5164 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
5165 previous saved entry (i.e. grub-reboot).
5167 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5169 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
5171 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5173 * util/grub.d/00_header.in: Use `set var=val' rather than plain
5175 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
5177 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5179 * util/grub-reboot.in: Fix --version output.
5180 * util/grub-set-default.in: Likewise.
5182 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5184 * util/grub.d/00_header.in: Silently ignore zero-sized environment
5187 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5189 * util/grub.d/00_header.in: Quote the value assigned to `default',
5190 in case it contains spaces.
5192 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5194 * util/grub.d/30_os-prober.in: Fix merge error that moved a
5195 `save_default_entry' call from the macosx case to the linux case.
5197 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5198 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
5200 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
5201 in `chosen' environment variable.
5202 * normal/menu_text.c (get_entry_number): Check if the variable
5203 matches the title of a menu entry.
5204 (run_menu): Pass menu to get_entry_number.
5206 * util/grub-reboot.in: New file.
5207 * util/grub-set-default.in: New file.
5208 * conf/common.rmk (grub-reboot): New utility.
5209 (grub-set-default): New utility.
5211 * util/grub-mkconfig_lib.in (save_default_entry): New function.
5212 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
5213 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
5214 move it to `saved_entry' for the next boot. Load environment on
5216 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
5217 * util/grub.d/10_hurd.in: Likewise.
5218 * util/grub.d/10_linux.in (linux_entry): Likewise.
5219 * util/grub.d/10_windows.in: Likewise.
5220 * util/grub.d/30_os-prober.in: Likewise.
5222 * util/grub-install.in: Create environment block.
5223 * util/i386/efi/grub-install.in: Likewise.
5224 * util/ieee1275/grub-install.in: Likewise.
5225 * util/sparc64/ieee1275/grub-install.in: Likewise.
5227 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
5229 Unit testing framework for GRUB.
5231 * Makefile.in: Test framework build rules for 'make check'.
5232 * conf/tests.rmk: Build rules for individual tests and framework.
5234 * include/grub/test.h: Header file for whitebox tests.
5235 * tests/lib/functional_test.c: Framework support for whitebox
5237 * tests/lib/test.c: Common whitebox testing code for unit and
5239 * tests/lib/unit_test.c: Framework support for whitebox unit
5242 * tests/util/grub-shell-tester.in: Support utility for grub-script
5244 * tests/util/grub-shell.in: Utility to execute grub-script
5245 commands in a Qemu instance.
5247 * tests/example_functional_test.c: Example whitebox functional
5249 * tests/example_grub_script_test.in: Example grub-script test.
5250 * tests/example_scripted_test.in: Example scripted test.
5251 * tests/example_unit_test.c: Example whitebox unit test.
5253 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
5255 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
5256 Add loader/i386/multiboot_mbi.c.
5257 (multiboot2_mod_SOURCES): Likewise.
5258 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
5259 (multiboot2_mod_SOURCES): Likewise.
5260 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
5261 (grub_multiboot_make_mbi): Likewise.
5262 (grub_multiboot_free_mbi): Likewise.
5263 (grub_multiboot_init_mbi): Likewise.
5264 (grub_multiboot_add_module): Likewise.
5265 (grub_multiboot_set_bootdev): Likewise.
5266 * loader/i386/multiboot.c (mbi): Removed.
5267 (mbi_dest): Likewise.
5268 (alloc_mbi): New variable.
5269 (grub_multiboot_payload_size): Removed. All users updated.
5270 (grub_multiboot_pure_size): New variable.
5271 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
5272 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
5273 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
5274 (grub_fill_multiboot_mmap): Likewise.
5275 (grub_multiboot_get_bootdev): Likewise.
5276 (grub_multiboot): Use multiboot_mbi functions.
5277 * loader/i386/multiboot_mbi.c: New file.
5279 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5281 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
5282 it would result in module crash.
5284 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5286 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
5287 (grub_ofconsole_getwh): Split to ...
5288 (grub_ofconsole_getwh): ... this.
5289 (grub_ofconsole_dimensions): ...and this.
5290 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
5292 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
5294 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
5296 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5298 * loader/i386/pc/multiboot2.c: Removed stalled file.
5300 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5302 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
5303 Reported by: Grégoire Sutre
5305 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
5307 * util/misc.c (canonicalize_file_name): New function.
5308 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
5309 instead of realpath().
5311 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
5313 * util/grub-install.in (usage): Clarify meaning of --root-directory,
5314 and make it clearer that it's optional. Based on confusion
5317 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5319 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
5320 in premature implicit newline.
5322 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5324 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
5325 which resulted in garbled command line at the end of screen.
5327 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
5329 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
5330 initialization with similar approach as with other Linux loaders.
5332 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
5334 Fix i386-ieee1275 build.
5336 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
5337 and grub_term_height() for video_{width,height} initialization.
5339 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
5343 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
5345 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5346 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
5348 Support for multiple terminals.
5350 * Makefile.in (pkglib_DATA): terminal.lst.
5351 (terminal.lst): New target.
5352 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
5353 (GRUB_MOD_INIT(handler)): Likewise.
5354 (GRUB_MOD_FINI(handler)): Likewise.
5355 * commands/help.c (grub_cmd_help): Handle multiple terminals.
5356 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
5357 * commands/sleep.c (do_print): Use grub_term_restore_pos.
5358 (grub_cmd_sleep): Use grub_term_save_pos.
5359 * commands/terminal.c: New file.
5360 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
5361 commands/terminal.c and lib/charset.c.
5362 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
5363 (pkglib_MODULES): Add terminal.mod.
5364 (terminal_mod_SOURCES): New variable.
5365 (terminal_mod_CFLAGS): Likewise.
5366 (terminal_mod_LDFLAGS): Likewise.
5367 * genhandlerlist.sh: Don't handle terminals.
5368 * genmk.rb: Generate terminal-*.lst.
5369 * genterminallist.sh: New file.
5370 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
5371 (grub_is_valid_utf8): Likewise.
5372 (grub_utf8_to_ucs4_alloc): Likewise.
5373 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
5374 (grub_menu_register_viewer): Changed argument.
5375 (grub_menu_try_text): New proto.
5376 (grub_gfxmenu_try_hook): New declaration.
5377 * include/grub/normal.h (grub_normal_exit_level): New declaration.
5378 (grub_menu_init_page): Additional argument term.
5379 (grub_normal_init_page): Likewise.
5380 (grub_cmdline_get): Arguments simplified.
5381 (grub_utf8_to_ucs4_alloc): Removed.
5382 (grub_print_ucs4): Additional argument term.
5383 (grub_getstringwidth): Likewise.
5384 (grub_print_message_indented): Likewise.
5385 (grub_menu_text_register_instances): New proto.
5386 (grub_show_menu): Likewise.
5387 (read_terminal_list): Likewise.
5388 (grub_set_more): Likewise.
5389 * include/grub/parser.h: Include handler.h.
5390 * include/grub/reader.h: Rewritten.
5391 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
5392 (GRUB_TERM_WIDTH): Changed to function.
5393 (GRUB_TERM_HEIGHT): Likewise.
5394 (GRUB_TERM_BORDER_WIDTH): Likewise.
5395 (GRUB_TERM_BORDER_HEIGHT): Likewise.
5396 (GRUB_TERM_NUM_ENTRIES): Likewise.
5397 (GRUB_TERM_ENTRY_WIDTH): Likewise.
5398 (GRUB_TERM_CURSOR_X): Likewise.
5399 (grub_term_input_class): Likewise.
5400 (grub_term_output_class): Likewise.
5401 (grub_term_outputs_disabled): New declaration.
5402 (grub_term_inputs_disabled): Likewise.
5403 (grub_term_outputs): Likewise.
5404 (grub_term_inputs): Likewise.
5405 (grub_term_register_input): Rewritten.
5406 (grub_term_register_output): Likewise.
5407 (grub_term_unregister_input): Likewise.
5408 (grub_term_unregister_output): Likewise.
5409 (FOR_ACTIVE_TERM_INPUTS): New macro.
5410 (FOR_DISABLED_TERM_INPUTS): Likewise.
5411 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
5412 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
5413 * include/grub/terminfo.h: Add oterm argument to all protypes.
5414 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
5415 Use grub_rescue_run.
5416 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
5418 * kern/reader.c: Removed. All users updated.
5419 * kern/rescue_reader.c (grub_rescue_init): Removed.
5420 (grub_rescue_reader): Likewise.
5421 (grub_register_rescue_reader): Likewise.
5422 (grub_rescue_run): New function based on kern/reader.c.
5423 * kern/term.c: Adapted for multiterm.
5424 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
5425 (grub_is_valid_utf8): Likewise.
5426 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
5427 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
5429 * loader/i386/linux.c (grub_linux_boot): Likewise.
5430 * normal/auth.c (grub_username_get): New function.
5431 (grub_auth_check_authentication): Use grub_username_get.
5432 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
5433 * normal/color.c: Adapt for multiterm.
5434 * normal/main.c (read_config_file): Don't use grub_reader_loop.
5435 (grub_normal_init_page): Additional argument term.
5436 (read_lists): Call read_terminal_lists.
5437 (grub_enter_normal_mode): Call grub_cmdline_run.
5438 Handle grub_normal_exit_level.
5439 (grub_cmd_normal): Make reentrant.
5440 (grub_cmd_normal_exit): New function.
5441 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
5442 * normal/menu.c: Adapt for multiterm.
5443 * normal/menu_entry.c: Likewise.
5444 * normal/menu_text.c: Likewise.
5445 * normal/menu_viewer.c: Removed. All users updated.
5446 * normal/term.c: New file.
5447 * util/console.c: Change order of includes to workaround a bug in
5449 * term/terminfo.c: New argument oterm on all exported functions.
5451 * util/grub-editenv.c (grub_term_input_class): Removed.
5452 (grub_term_output_class): Likewise.
5454 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
5456 Make loader output a bit more user-friendly.
5458 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
5459 is being loaded. Likewise for the Hurd.
5461 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
5462 that kernel of FreeBSD ${version} is being loaded.
5464 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
5466 (grub_cmd_initrd): Likewise.
5467 * util/grub.d/10_linux.in (linux_entry): Print message indicating
5468 that Linux ${version} is being loaded. Likewise for initrd.
5470 2010-01-09 Carles Pina i Estany <carles@pina.cat>
5472 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
5474 2010-01-08 Carles Pina i Estany <carles@pina.cat>
5476 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
5477 (GRUB_MOD_INIT): Gettextizze.
5478 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
5479 (GRUB_MOD_INIT): Gettextizze.
5480 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
5481 (grub_cmd_linux): Capitalise Linux.
5482 (GRUB_MOD_INIT): Gettextizze.
5483 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
5484 (grub_cmd_linux): Capitalise Linux.
5485 (GRUB_MOD_INIT): Gettextizze.
5486 * loader/i386/linux.c: Include `<grub/i18n.h>'.
5487 (grub_cmd_linux): Capitalise Linux.
5488 (GRUB_MOD_INIT): Gettextizze.
5489 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
5490 (GRUB_MOD_INIT): Gettextizze.
5491 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
5492 (grub_cmd_linux): Capitalise Linux.
5493 (GRUB_MOD_INIT): Gettextizze.
5494 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
5495 (grub_cpu_xnu_init): Gettextizze.
5496 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
5497 (GRUB_MOD_INIT): Gettextizze.
5498 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
5499 (GRUB_MOD_INIT): Gettextizze.
5500 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
5501 (grub_linux_load64): Capitalise Linux.
5502 (GRUB_MOD_INIT): Gettextizze.
5503 * loader/xnu.c: Include `<grub/i18n.h>'.
5504 (GRUB_MOD_INIT): Gettextizze.
5505 * po/POTFILES: Add `loader/efi/appleloader.c',
5506 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
5507 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
5508 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
5509 `loader/i386/xnu.c', `loader/multiboot_loader.c',
5510 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
5513 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
5515 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
5517 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
5519 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
5520 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
5521 * util/mkisofs/mkisofs.c (main): Readjust --version output.
5523 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5525 Reset Multiboot 2 support. New loader implements the draft in
5526 /branches/multiboot2 and shares as much code as possible with the
5527 production Multiboot 1 implementation.
5529 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
5530 * loader/multiboot2.c: Likewise.
5531 * loader/i386/multiboot_helper.S: Likewise.
5532 * include/multiboot2.h: Replace with latest version from the draft
5533 in /branches/multiboot2.
5535 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
5536 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
5537 and `loader/multiboot2.c'.
5538 (pkglib_MODULES): Add `multiboot2.mod'.
5539 (multiboot2_mod_SOURCES): New variable.
5540 (multiboot2_mod_LDFLAGS): Likewise.
5541 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
5543 * conf/i386-pc.rmk: Likewise.
5545 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
5546 (multiboot_mod_SOURCES): Remove variable.
5547 (multiboot_mod_LDFLAGS): Likewise.
5548 (multiboot_mod_CFLAGS): Likewise.
5550 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
5551 `<multiboot2.h>' instead of `<multiboot.h>'.
5552 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
5553 (MULTIBOOT_HEADER_MAGIC): New macros.
5555 * loader/multiboot_loader.c (module_version_status): Remove variable.
5556 (find_multi_boot2_header): Remove function.
5557 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
5558 logic. Always check for the Multiboot version we're compiling for.
5559 (grub_cmd_module_loader): Likewise.
5560 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
5561 command instead of `multiboot'.
5563 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5565 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
5566 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
5569 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5570 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5572 Fix breakage introduced with previous commit.
5574 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
5576 * normal/handler.c (read_handler_list): Revert part of previous commit
5577 affecting this file.
5578 * normal/main.c (read_lists): Move read_handler_list() call back to ...
5579 (grub_normal_execute): ... here.
5581 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5583 Merge prefix-redefinition-fix branch.
5585 * normal/autofs.c (read_fs_list): Make function capable of being
5586 run multiple times, gracefuly replacing the previous data
5588 * normal/dyncmd.c (read_command_list): Likewise.
5589 * normal/handler.c (read_handler_list): Likewise.
5590 * normal/main.c (read_lists): New function. Calls all the
5591 list reading functions.
5592 (grub_normal_execute): Use read_lists() instead of calling all
5593 list reading functions explicitly. Register read_lists() as a
5594 variable hook attached to ${prefix}.
5596 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5598 Merge crypto branch.
5600 * Makefile.in (pkglib_DATA): Add crypto.lst.
5601 (crypto.lst): New target.
5602 * commands/hashsum.c: New file.
5603 * commands/password.c (check_password): Use grub_crypto_memcmp.
5604 * commands/password_pbkdf2.c: New file.
5605 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
5606 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
5607 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
5608 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
5609 -I$(srcdir)/lib/libgcrypt_wrap.
5610 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
5611 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
5612 password_pbkdf2.mod.
5613 (crypto_mod_SOURCES): New variable.
5614 (crypto_mod_CFLAGS): Likewise.
5615 (crypto_mod_LDFLAGS): Likewise.
5616 (hashsum_mod_SOURCES): New variable.
5617 (hashsum_mod_CFLAGS): Likewise.
5618 (hashsum_mod_LDFLAGS): Likewise.
5619 (pbkdf2_mod_SOURCES): New variable.
5620 (pbkdf2_mod_CFLAGS): Likewise.
5621 (pbkdf2_mod_LDFLAGS): Likewise.
5622 (password_pbkdf2_mod_SOURCES): New variable.
5623 (password_pbkdf2_mod_CFLAGS): Likewise.
5624 (password_pbkdf2_mod_LDFLAGS): Likewise.
5625 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
5626 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
5627 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
5628 Include conf/gcry.rmk.
5629 * include/grub/auth.h: Rewritten.
5630 * include/grub/crypto.h: New file.
5631 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
5632 * include/grub/normal.h (read_crypto_list): New prototype.
5633 * lib/crypto.c: New file.
5634 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
5635 * lib/pbkdf2.c: Likewise.
5636 * normal/auth.c (grub_auth_strcmp): Removed.
5637 (grub_iswordseparator): Likewise.
5638 (grub_auth_strword): Likewise.
5639 (is_authenticated): Use grub_strword.
5640 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
5641 and grub_strword. Pass entered password to authentication callback.
5642 * normal/crypto.c: New file.
5643 * normal/main.c: Call read_crypto_list.
5644 * util/grub-mkpasswd-pbkdf2.c: New file.
5645 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
5647 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
5649 Fix descent and ascent calculation.
5651 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
5652 (options): New option "asce".
5654 (add_char): Ignore invalid glyphs for descent calculation.
5655 Calculate ascent from actual content.
5656 (print_glyphs): Use 'asce'.
5657 (write_font): Likewise. Allow ascent override.
5658 (main): Handle "asce" option.
5660 2010-01-06 Carles Pina i Estany <carles@pina.cat>
5662 * kern/err.c: Include `<grub/i18n.h>'.
5663 (grub_print_error): Add full stop. Gettextizze.
5664 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
5665 (grub_bsd_load_elf): Capitalise ELF.
5666 (grub_cmd_freebsd_loadenv): Add `s' in error string.
5667 (grub_cmd_freebsd_module): Likewise.
5668 (grub_cmd_freebsd_module_elf): Likewise.
5669 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
5671 2010-01-06 Carles Pina i Estany <carles@pina.cat>
5673 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
5674 * commands/search_file.c (HELP_MESSAGE): New macro.
5675 * commands/search_label.c (HELP_MESSAGE): Likewise.
5676 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
5677 * po/POTFILES: Add `commands/search_file.c',
5678 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
5679 `commands/search.c'.
5681 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
5683 * config.rpath: Update from Gnulib.
5685 2010-01-05 Yves Blusseau <blusseau@zetam.org>
5687 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
5689 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
5691 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
5693 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5695 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
5696 arguments to fread so that we get a return value in bytes, rather
5697 than something that will normally be rounded down to 0.
5698 Adjust error handling to avoid producing garbage when size_t is not
5699 the same size as long long.
5701 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5703 * util/mkisofs/write.c (padblock_write): Check return value of
5706 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
5708 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
5711 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
5713 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
5715 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
5716 instead of manual alignment.
5717 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
5718 verbose). Avoid attempts to read past end of the device
5719 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
5720 but GRUB_DISK_CACHE_SIZE may exceed that).
5722 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
5724 * commands/crc.c (grub_cmd_crc): Abort on read errors.
5725 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
5728 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5730 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
5732 (grub_efi_piwg_device_path): New structure
5733 (grub_efi_piwg_device_path_t): New type.
5734 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
5735 (devpath_1): Transform to a structure. All users updated.
5736 (devpath_2): Likewise.
5737 (devpath_3): Likewise.
5738 (devpath_4): Likewise.
5739 (devpath_5): Likewise.
5741 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5743 * loader/efi/appleloader.c: Restored. Update all users.
5745 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5747 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
5749 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
5750 (struct boot_blocklist): Move from here ...
5751 * include/grub/i386/pc/boot.h [ASM_FILE]
5752 (struct grub_boot_blocklist): ... to here. Update all users.
5753 (setup): Only initialize `start' member of `first_block'
5754 structure. Add assert() calls to verify the other members.
5756 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
5757 (generate_image): Fix broken blocklist length initialization.
5758 Add assert() call to verify blocklist `segment' field.
5760 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5762 * loader/efi/appleloader.c: Remove. Update all users.
5764 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5766 * boot/i386/pc/boot.S: Update copyright year.
5767 * boot/i386/pc/cdboot.S: Likewise.
5768 * boot/i386/pc/diskboot.S: Likewise.
5769 * boot/i386/pc/lnxboot.S: Likewise.
5770 * boot/i386/pc/pxeboot.S: Likewise.
5771 * bus/pci.c: Likewise.
5772 * commands/cmp.c: Likewise.
5773 * commands/help.c: Likewise.
5774 * commands/hexdump.c: Likewise.
5775 * commands/i386/pc/halt.c: Likewise.
5776 * commands/i386/pc/play.c: Likewise.
5777 * commands/i386/pc/vbeinfo.c: Likewise.
5778 * commands/ls.c: Likewise.
5779 * commands/test.c: Likewise.
5780 * disk/dmraid_nvidia.c: Likewise.
5781 * disk/i386/pc/biosdisk.c: Likewise.
5782 * disk/ieee1275/nand.c: Likewise.
5783 * disk/ieee1275/ofdisk.c: Likewise.
5784 * disk/lvm.c: Likewise.
5785 * disk/raid.c: Likewise.
5786 * disk/raid6_recover.c: Likewise.
5787 * disk/scsi.c: Likewise.
5788 * fs/affs.c: Likewise.
5789 * fs/cpio.c: Likewise.
5790 * fs/ext2.c: Likewise.
5791 * fs/hfs.c: Likewise.
5792 * fs/iso9660.c: Likewise.
5793 * fs/ntfs.c: Likewise.
5794 * fs/sfs.c: Likewise.
5795 * fs/udf.c: Likewise.
5796 * fs/ufs.c: Likewise.
5797 * fs/xfs.c: Likewise.
5798 * gencmdlist.sh: Likewise.
5799 * genmk.rb: Likewise.
5800 * include/grub/disk.h: Likewise.
5801 * include/grub/efi/api.h: Likewise.
5802 * include/grub/efi/efi.h: Likewise.
5803 * include/grub/efi/pe32.h: Likewise.
5804 * include/grub/elf.h: Likewise.
5805 * include/grub/fs.h: Likewise.
5806 * include/grub/i386/at_keyboard.h: Likewise.
5807 * include/grub/i386/pc/memory.h: Likewise.
5808 * include/grub/i386/pc/vbe.h: Likewise.
5809 * include/grub/i386/pci.h: Likewise.
5810 * include/grub/i386/tsc.h: Likewise.
5811 * include/grub/ieee1275/ieee1275.h: Likewise.
5812 * include/grub/ntfs.h: Likewise.
5813 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
5814 * include/grub/sparc64/libgcc.h: Likewise.
5815 * include/grub/symbol.h: Likewise.
5816 * include/grub/types.h: Likewise.
5817 * include/multiboot2.h: Likewise.
5818 * io/gzio.c: Likewise.
5819 * kern/device.c: Likewise.
5820 * kern/disk.c: Likewise.
5821 * kern/efi/efi.c: Likewise.
5822 * kern/efi/mm.c: Likewise.
5823 * kern/elf.c: Likewise.
5824 * kern/file.c: Likewise.
5825 * kern/i386/dl.c: Likewise.
5826 * kern/i386/pc/init.c: Likewise.
5827 * kern/i386/pc/startup.S: Likewise.
5828 * kern/ieee1275/ieee1275.c: Likewise.
5829 * kern/ieee1275/init.c: Likewise.
5830 * kern/main.c: Likewise.
5831 * kern/mm.c: Likewise.
5832 * kern/powerpc/dl.c: Likewise.
5833 * kern/sparc64/dl.c: Likewise.
5834 * kern/x86_64/dl.c: Likewise.
5835 * lib/hexdump.c: Likewise.
5836 * loader/efi/appleloader.c: Likewise.
5837 * loader/i386/ieee1275/linux.c: Likewise.
5838 * loader/i386/pc/chainloader.c: Likewise.
5839 * loader/i386/pc/linux.c: Likewise.
5840 * loader/i386/pc/multiboot2.c: Likewise.
5841 * loader/ieee1275/multiboot2.c: Likewise.
5842 * loader/multiboot2.c: Likewise.
5843 * loader/multiboot_loader.c: Likewise.
5844 * loader/powerpc/ieee1275/linux.c: Likewise.
5845 * normal/completion.c: Likewise.
5846 * normal/menu_entry.c: Likewise.
5847 * partmap/apple.c: Likewise.
5848 * util/grub.d/10_hurd.in: Likewise.
5849 * util/hostfs.c: Likewise.
5850 * video/readers/png.c: Likewise.
5852 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
5854 * include/grub/misc.h (GNUC_PREREQ): New macro.
5855 (ATTRIBUTE_ERROR): New macro.
5856 * include/grub/list.h (grub_bad_type_cast_real): Use
5859 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5861 * normal/menu_text.c (print_message): Change messages.
5863 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5865 * normal/menu_entry.c (store_completion): Gettextizze.
5867 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5869 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
5871 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5873 * po/POTFILES: Sort correctly.
5875 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5877 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
5878 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
5879 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
5881 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
5882 summary. Gettextizze the strings.
5883 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
5884 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
5885 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
5887 (GRUB_MOD_INIT): Remove command name from summary.
5888 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
5890 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
5891 * term/i386/pc/serial.c (options): Add full stops.
5892 (GRUB_MOD_INIT): Remove command name from the summary.
5894 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5896 * commands/acpi.c: Gettextizze help strings and/or options. Include
5897 `grub/i18n.h' if needed.
5898 * commands/blocklist.c: Likewise.
5899 * commands/boot.c: Likewise.
5900 * commands/cat.c: Likewise.
5901 * commands/cmp.c: Likewise.
5902 * commands/configfile.c: Likewise.
5903 * commands/crc.c: Likewise.
5904 * commands/date.c: Likewise.
5905 * commands/echo.c: Likewise.
5906 * commands/efi/fixvideo.c: Likewise.
5907 * commands/efi/loadbios.c: Likewise.
5908 * commands/gptsync.c: Likewise.
5909 * commands/halt.c: Likewise.
5910 * commands/handler.c: Likewise.
5911 * commands/hdparm.c: Likewise.
5912 * commands/hexdump.c: Likewise.
5913 * commands/i386/cpuid.c: Likewise.
5914 * commands/i386/pc/drivemap.c: Likewise.
5915 * commands/i386/pc/halt.c: Likewise.
5916 * commands/i386/pc/pxecmd.c: Likewise.
5917 * commands/i386/pc/vbeinfo.c: Likewise.
5918 * commands/i386/pc/vbetest.c: Likewise.
5919 * commands/ieee1275/suspend.c: Likewise.
5920 * commands/keystatus.c: Likewise.
5921 * commands/loadenv.c: Likewise.
5922 * commands/ls.c: Likewise.
5923 * commands/lsmmap.c: Likewise.
5924 * commands/lspci.c: Likewise.
5925 * commands/memrw.c: Likewise.
5926 * commands/minicmd.c: Likewise.
5927 * commands/parttool.c: Likewise.
5928 * commands/password.c: Likewise.
5929 * commands/probe.c: Likewise.
5930 * commands/read.c: Likewise.
5931 * commands/reboot.c: Likewise.
5932 * commands/search.c: Likewise.
5933 * commands/sleep.c: Likewise.
5934 * commands/test.c: Likewise.
5935 * commands/true.c: Likewise.
5936 * commands/usbtest.c: Likewise.
5937 * commands/videotest.c: Likewise.
5938 * commands/xnu_uuid.c: Likewise.
5939 * disk/loopback.c: Likewise.
5940 * hello/hello.c: Likewise.
5941 * loader/i386/bsd.c: Likewise.
5942 * term/i386/pc/serial.c: Likewise.
5943 * po/POTFILES: Add new files.
5945 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
5947 * term/i386/pc/at_keyboard.c
5948 (keyboard_controller_wait_untill_ready): Rename to ...
5949 (keyboard_controller_wait_until_ready): ... this. Update all users.
5951 2010-01-01 Carles Pina i Estany <carles@pina.cat>
5953 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
5954 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
5955 string using string width.
5956 * normal/menu_text.c (grub_print_message_indented): Use
5957 grub_print_spaces and not print_spaces.
5958 (print_timeout): Likewise.
5959 (print_spaces): Move to...
5960 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
5962 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
5966 * gnulib/getdelim.c: New file.
5967 * gnulib/getline.c: Likewise.
5969 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
5971 * include/grub/list.h (grub_assert_fail): Removed.
5972 (grub_bad_type_cast_real): New function.
5973 (grub_bad_type_cast): New macro.
5974 (GRUB_AS_LIST): Use grub_bad_type_cast.
5975 (GRUB_AS_LIST_P): Likewise.
5976 (GRUB_AS_NAMED_LIST): Likewise.
5977 (GRUB_AS_NAMED_LIST_P): Likewise.
5978 (GRUB_AS_PRIO_LIST): Likewise.
5979 (GRUB_AS_PRIO_LIST_P): Likewise.
5980 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
5982 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
5984 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
5987 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
5989 * configure.ac: Check for TARGET_CFLAGS initialization before we
5990 initialize it ourselves (sigh).
5991 Move a few modifications to TARGET_CFLAGS to be unconditional
5992 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
5995 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
5996 * term/i386/pc/at_keyboard.c
5997 (keyboard_controller_wait_untill_ready): Likewise.
5998 (keyboard_controller_led): Rename `led_status' paramter to avoid
6001 2009-12-28 Carles Pina i Estany <carles@pina.cat>
6003 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
6006 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6008 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
6010 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6012 * normal/menu_text.c (grub_print_message_indented): Prevent
6013 past-the-end-of-array dereference.
6015 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6017 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
6018 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
6020 2009-12-27 Carles Pina i Estany <carles@pina.cat>
6022 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
6023 * normal/main.c (grub_normal_read_line): Remove a space from the
6026 2009-12-27 Carles Pina i Estany <carles@pina.cat>
6028 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
6029 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6030 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
6031 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
6032 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6033 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6034 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
6036 2009-12-26 Carles Pina i Estany <carles@pina.cat>
6038 * video/readers/jpeg.c (cmd): Declare.
6039 (grub_cmd_jpegtest): Use `grub_command_t' type.
6040 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
6042 (GRUB_MOD_FINI): Use `cmd' to unregister.
6043 * video/readers/png.c (cmd): Declare.
6044 (grub_cmd_pngtest): Use `grub_command_t' type.
6045 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
6047 (GRUB_MOD_FINI): Use `cmd' to unregister.
6048 * video/readers/tga.c (cmd): Declare.
6049 (grub_cmd_tgatest): Use `grub_command_t' type.
6050 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
6052 (GRUB_MOD_FINI): Use `cmd' to unregister.
6054 2009-12-26 Carles Pina i Estany <carles@pina.cat>
6056 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
6058 * kern/corecmd.c (grub_register_core_commands): Likewise.
6059 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
6060 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
6061 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
6062 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6063 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
6064 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
6065 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
6066 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
6067 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6068 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6069 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
6070 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
6071 * normal/handler.c (insert_handler): Likewise.
6072 * normal/main.c (GRUB_MOD_INIT): Likewise.
6073 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
6075 2009-12-26 Carles Pina i Estany <carles@pina.cat>
6077 * commands/help.c (grub_cmd_help): Print the command name before the
6079 (GRUB_MOD_INIT): Remove command name from the summary.
6080 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
6082 * lib/arg.c (find_long): Print the command name before the summary.
6083 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
6085 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
6086 * commands/cat.c (GRUB_MOD_INIT): Likewise.
6087 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
6088 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
6089 * commands/crc.c (GRUB_MOD_INIT): Likewise.
6090 * commands/date.c (GRUB_MOD_INIT): Likewise.
6091 * commands/echo.c (GRUB_MOD_INIT): Likewise.
6092 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
6093 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
6094 * commands/handler.c (GRUB_MOD_INIT): Likewise.
6095 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
6096 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
6097 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
6098 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
6099 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
6100 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
6101 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
6102 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
6103 * commands/ls.c (GRUB_MOD_INIT): Likewise.
6104 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
6105 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
6106 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
6107 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
6108 * commands/password.c (GRUB_MOD_INIT): Likewise.
6109 * commands/probe.c (GRUB_MOD_INIT): Likewise.
6110 * commands/read.c (GRUB_MOD_INIT): Likewise.
6111 * commands/search.c (GRUB_MOD_INIT): Likewise.
6112 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
6113 * commands/test.c (GRUB_MOD_INIT): Likewise.
6114 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
6115 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
6116 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
6117 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
6118 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
6119 * lib/arg.c (GRUB_MOD_INIT): Likewise.
6120 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
6121 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
6122 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
6123 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
6124 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
6125 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
6126 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
6127 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
6129 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6131 Use search command for preliminar UUID search.
6133 * commands/search.c: Split into ...
6134 * commands/search_wrap.c: ...this
6135 * commands/search.c: ...and this.
6136 * commands/search_file.c: New file.
6137 * commands/search_label.c: New file.
6138 * commands/search_uuid.c: New file.
6139 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
6140 Add commands/search_wrap.c, commands/search_file.c,
6141 commands/search_label.c and commands/search_uuid.c.
6142 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
6143 (search_mod_SOURCES): Set to commands/search_wrap.c.
6144 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
6146 (search_fs_file_mod_SOURCES): New variable.
6147 (search_fs_file_mod_CFLAGS): Likewise.
6148 (search_fs_file_mod_LDFLAGS): Likewise.
6149 (search_label_mod_SOURCES): Likewise.
6150 (search_label_mod_CFLAGS): Likewise.
6151 (search_label_mod_LDFLAGS): Likewise.
6152 (search_fs_uuid_mod_SOURCES): New variable.
6153 (search_fs_uuid_mod_CFLAGS): Likewise.
6154 (search_fs_uuid_mod_LDFLAGS): Likewise.
6155 (fs_file_mod_SOURCES): Removed.
6156 (fs_file_mod_CFLAGS): Likewise.
6157 (fs_file_mod_LDFLAGS): Likewise.
6158 (fs_uuid_mod_SOURCES): Removed.
6159 (fs_uuid_mod_CFLAGS): Likewise.
6160 (fs_uuid_mod_LDFLAGS): Likewise.
6161 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
6162 Set to util/grub-install.in.
6163 * disk/fs_file.c: Removed.
6164 * disk/fs_uuid.c: Likewise.
6165 * include/grub/search.h: New file.
6166 * util/grub-install.in: Handle sparc64.
6167 Create and use load.cfg.
6168 * util/sparc64/ieee1275/grub-install.in: Removed.
6170 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6172 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
6173 Ignore return status if CF is cleared.
6174 (grub_biosdisk_get_diskinfo_standard): Likewise.
6176 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
6178 * term/i386/pc/at_keyboard.c
6179 (keyboard_controller_wait_untill_ready): New function.
6180 (grub_keyboard_controller_write, grub_keyboard_controller_read)
6181 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
6182 for keyboard polling, rather than duplicate the same loop. This
6183 saves a few bytes in code size.
6185 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6187 Support for (pxe[:server[:gateway]]) syntax and
6188 use environment variable for PXE.
6190 * commands/i386/pc/pxecmd.c (options): Removed.
6191 (print_ip): Removed.
6192 (grub_cmd_pxe): Removed
6193 (grub_cmd_pxe_unload): New function.
6194 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
6195 (grub_pxe_your_ip): Made static.
6196 (grub_pxe_default_server_ip): Likewise.
6197 (grub_pxe_default_gateway_ip): Likewise.
6198 (grub_pxe_blksize): Likewise.
6199 (parse_ip): New function.
6200 (grub_pxe_open): Support server and gateway specification.
6201 (grub_pxe_close): Free disk->data.
6202 (grub_pxefs_open): Use disk->data.
6203 (grub_pxefs_read): Likewise.
6204 (grub_env_write_readonly): New function.
6205 (set_mac_env): Likewise.
6206 (set_env_limn_ro): Likewise.
6207 (parse_dhcp_vendor): Likewise.
6208 (grub_pxe_detect): Set the environment variables.
6209 (set_ip_env): New function.
6210 (write_ip_env): Likewise.
6211 (grub_env_write_pxe_default_server): Likewise.
6212 (grub_env_write_pxe_default_gateway): Likewise.
6213 (grub_env_write_pxe_blocksize): Likewise.
6214 (GRUB_MOD_INIT(pxe)): Set environment variables.
6215 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
6216 (grub_pxe_mac_addr_t): ... this. All users updated.
6217 (grub_pxe_your_ip): Removed.
6218 (grub_pxe_server_ip): Likewise.
6219 (grub_pxe_gateway_ip): Likewise.
6220 (grub_pxe_blksize): Likewise.
6222 2009-12-25 Carles Pina i Estany <carles@pina.cat>
6224 * commands/help.c: Include `<grub/i18n.h>'.
6225 (grub_cmd_help): Gettextizze.
6226 (GRUB_MOD_INIT): Likewise.
6227 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
6228 (GRUB_MOD_INIT): Gettextizze.
6229 * commands/search.c: Include `<grub/i18n.h>'.
6230 (options): Gettextizze.
6231 (GRUB_MOD_INIT): Gettextizze.
6232 * lib/arg.c: Include `<grub/i18n.h>'.
6233 (help_options): Gettextizze.
6234 (find_long): Likewise.
6235 (grub_arg_show_help): Likewise.
6236 * normal/dyncmd.c: Include `<grub/i18n.h>'.
6237 (read_command_list): Gettextizze.
6238 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
6239 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
6241 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
6243 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
6244 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
6245 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
6246 (led_status): New variable.
6247 (keyboard_controller_led): New function.
6248 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
6249 update led status for caps lock, num lock and scroll lock.
6251 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
6253 * util/hostdisk.c (open_device): Fix a comment.
6255 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6257 * util/grub-install.in (host_os): New variable.
6258 * util/i386/efi/grub-install.in (host_os): Likewise.
6260 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6262 * util/mkisofs/write.c (padblock_write): Abort when given an
6263 excedingly large embed image, instead of silently truncating it.
6265 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6267 * include/multiboot.h: Indentation fixes.
6269 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6271 * include/multiboot.h (struct multiboot_aout_symbol_table)
6272 (struct multiboot_elf_section_header_table): New structure
6273 declarations (stolen from GRUB Legacy).
6274 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
6277 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
6278 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
6281 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6283 * include/multiboot.h: Make comments src2texi-friendly.
6285 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6287 For consistency with [multiboot]/docs/boot.S.
6289 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
6290 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
6291 (MULTIBOOT_MAGIC2): Rename from this ...
6292 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
6294 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6296 * include/multiboot.h: Remove `<grub/types.h>'.
6297 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
6298 types. Update all users.
6300 2009-12-25 Carles Pina i Estany <carles@pina.cat>
6302 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
6303 `couldn't' and `can not' by `cannot'.
6304 * commands/i386/pc/drivemap.c: Likewise.
6305 * disk/ata.c: Likewise.
6306 * disk/ieee1275/nand.c: Likewise.
6307 * fs/affs.c: Likewise.
6308 * fs/fat.c: Likewise.
6309 * fs/hfs.c: Likewise.
6310 * fs/hfsplus.c: Likewise.
6311 * fs/iso9660.c: Likewise.
6312 * fs/jfs.c: Likewise.
6313 * fs/minix.c: Likewise.
6314 * fs/reiserfs.c: Likewise.
6315 * fs/sfs.c: Likewise.
6316 * fs/udf.c: Likewise.
6317 * fs/ufs.c: Likewise.
6318 * fs/xfs.c: Likewise.
6319 * loader/powerpc/ieee1275/linux.c: Likewise.
6320 * loader/sparc64/ieee1275/linux.c: Likewise.
6321 * util/grub-probe.c: Likewise.
6322 * util/misc.c: Likewise.
6324 2009-12-24 Carles Pina i Estany <carles@pina.cat>
6326 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
6328 * commands/acpi.c: Likewise.
6329 * commands/blocklist.c: Likewise.
6330 * commands/efi/loadbios.c: Likewise.
6331 * commands/i386/pc/drivemap.c: Likewise.
6332 * commands/loadenv.c: Likewise.
6333 * commands/memrw.c: Likewise.
6334 * commands/password.c: Likewise.
6335 * commands/videotest.c: Likewise.
6336 * disk/ata.c: Likewise.
6337 * disk/ata_pthru.c: Likewise.
6338 * disk/dmraid_nvidia.c: Likewise.
6339 * disk/ieee1275/nand.c: Likewise.
6340 * disk/ieee1275/ofdisk.c: Likewise.
6341 * disk/loopback.c: Likewise.
6342 * disk/lvm.c: Likewise.
6343 * disk/mdraid_linux.c: Likewise.
6344 * disk/raid.c: Likewise.
6345 * disk/raid6_recover.c: Likewise.
6346 * disk/scsi.c: Likewise.
6347 * efiemu/main.c: Likewise.
6348 * efiemu/mm.c: Likewise.
6349 * efiemu/pnvram.c: Likewise.
6350 * efiemu/symbols.c: Likewise.
6351 * font/font.c: Likewise.
6352 * fs/cpio.c: Likewise.
6353 * fs/hfsplus.c: Likewise.
6354 * fs/iso9660.c: Likewise.
6355 * fs/jfs.c: Likewise.
6356 * fs/minix.c: Likewise.
6357 * fs/ntfs.c: Likewise.
6358 * fs/ntfscomp.c: Likewise.
6359 * fs/reiserfs.c: Likewise.
6360 * fs/ufs.c: Likewise.
6361 * fs/xfs.c: Likewise.
6362 * gettext/gettext.c: Likewise.
6363 * include/grub/auth.h: Likewise.
6364 * kern/elf.c: Likewise.
6365 * kern/file.c: Likewise.
6366 * kern/ieee1275/init.c: Likewise.
6367 * kern/ieee1275/mmap.c: Likewise.
6368 * kern/ieee1275/openfw.c: Likewise.
6369 * kern/powerpc/dl.c: Likewise.
6370 * kern/sparc64/dl.c: Likewise.
6371 * lib/arg.c: Likewise.
6372 * loader/i386/bsd.c: Likewise.
6373 * loader/i386/bsdXX.c: Likewise.
6374 * loader/i386/efi/linux.c: Likewise.
6375 * loader/i386/efi/xnu.c: Likewise.
6376 * loader/i386/ieee1275/linux.c: Likewise.
6377 * loader/i386/linux.c: Likewise.
6378 * loader/i386/multiboot.c: Likewise.
6379 * loader/i386/pc/linux.c: Likewise.
6380 * loader/i386/pc/multiboot2.c: Likewise.
6381 * loader/i386/xnu.c: Likewise.
6382 * loader/ieee1275/multiboot2.c: Likewise.
6383 * loader/macho.c: Likewise.
6384 * loader/machoXX.c: Likewise.
6385 * loader/multiboot2.c: Likewise.
6386 * loader/multiboot_loader.c: Likewise.
6387 * loader/powerpc/ieee1275/linux.c: Likewise.
6388 * loader/sparc64/ieee1275/linux.c: Likewise.
6389 * loader/xnu.c: Likewise.
6390 * loader/xnu_resume.c: Likewise.
6391 * mmap/i386/pc/mmap.c: Likewise.
6392 * normal/menu_viewer.c: Likewise.
6393 * partmap/acorn.c: Likewise.
6394 * partmap/amiga.c: Likewise.
6395 * partmap/apple.c: Likewise.
6396 * script/lexer.c: Likewise.
6397 * term/gfxterm.c: Likewise.
6398 * term/i386/pc/serial.c: Likewise.
6399 * term/i386/pc/vga.c: Likewise.
6400 * term/ieee1275/ofconsole.c: Likewise.
6401 * term/terminfo.c: Likewise.
6402 * video/bitmap.c: Likewise.
6403 * video/efi_gop.c: Likewise.
6404 * video/efi_uga.c: Likewise.
6405 * video/fb/video_fb.c: Likewise.
6406 * video/i386/pc/vbe.c: Likewise.
6407 * video/readers/tga.c: Likewise.
6408 * video/video.c: Likewise.
6410 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
6412 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
6413 * commands/lspci.c: Likewise.
6414 * commands/probe.c: Likewise.
6415 * commands/xnu_uuid.c: Likewise.
6416 * conf/i386-coreboot.rmk: Likewise.
6417 * conf/i386-efi.rmk: Likewise.
6418 * conf/i386-ieee1275.rmk: Likewise.
6419 * conf/i386-pc.rmk: Likewise.
6420 * conf/powerpc-ieee1275.rmk: Likewise.
6421 * conf/sparc64-ieee1275.rmk: Likewise.
6422 * conf/x86_64-efi.rmk: Likewise.
6423 * fs/i386/pc/pxe.c: Likewise.
6424 * gettext/gettext.c: Likewise.
6425 * include/grub/efi/graphics_output.h: Likewise.
6426 * include/grub/i386/pc/memory.h: Likewise.
6427 * kern/env.c: Likewise.
6428 * kern/i386/qemu/startup.S: Likewise.
6429 * lib/i386/pc/biosnum.c: Likewise.
6430 * lib/i386/relocator.c: Likewise.
6431 * lib/i386/relocator_asm.S: Likewise.
6432 * lib/relocator.c: Likewise.
6433 * loader/i386/bsd.c: Likewise.
6434 * loader/i386/multiboot.c: Likewise.
6435 * loader/i386/pc/chainloader.c: Likewise.
6436 * loader/i386/xnu.c: Likewise.
6437 * loader/xnu.c: Likewise.
6438 * normal/main.c: Likewise.
6439 * normal/menu_text.c: Likewise.
6440 * util/getroot.c: Likewise.
6441 * util/grub-mkconfig_lib.in: Likewise.
6442 * util/grub.d/00_header.in: Likewise.
6443 * util/i386/pc/grub-mkimage.c: Likewise.
6444 * util/mkisofs/eltorito.c: Likewise.
6445 * util/mkisofs/exclude.h: Likewise.
6446 * util/mkisofs/hash.c: Likewise.
6447 * util/mkisofs/iso9660.h: Likewise.
6448 * util/mkisofs/joliet.c: Likewise.
6449 * util/mkisofs/mkisofs.c: Likewise.
6450 * util/mkisofs/mkisofs.h: Likewise.
6451 * util/mkisofs/multi.c: Likewise.
6452 * util/mkisofs/name.c: Likewise.
6453 * util/mkisofs/rock.c: Likewise.
6454 * util/mkisofs/tree.c: Likewise.
6455 * util/mkisofs/write.c: Likewise.
6456 * video/efi_gop.c: Likewise.
6458 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6460 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
6463 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6465 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
6466 * genmk.rb (class SCRIPT): Modify the target file instead of source.
6468 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6470 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
6471 (GRUB_MOD_INIT(memrw)): Update help line.
6473 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6475 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
6476 Use grub_extcmd_t. All users updated.
6477 (options): New variable.
6478 (grub_cmd_read): Restructure for readability. Support "-v" option.
6479 (grub_cmd_write): Restructure for readability.
6481 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6483 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
6485 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6487 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
6488 with the actual contents of the correspondending make variable.
6489 * util/grub-mkrescue.in (pkglib_DATA): New variable.
6490 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
6491 specifying `*.lst' and `efiemu??.o'
6493 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6495 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
6496 after function name.
6497 Noticed by Rene Engelhard <rene@debian.org>.
6499 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6501 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
6502 (options): New variable.
6503 (iospace): Likewise.
6504 (grub_lspci_iter): List IO spaces if "-i" was given.
6505 (grub_cmd_lspci): Parse options.
6506 (GRUB_MOD_INIT(lspci)): Use extcmd.
6507 (GRUB_MOD_FINI(lspci)): Likewise.
6509 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6511 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
6513 Patch by Tony Mancill <tmancill@debian.org>.
6515 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6517 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
6518 (grub_uhci_portstatus): Likewise.
6519 (grub_uhci_portstatus): Add necessary delay.
6520 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
6522 2009-12-21 Carles Pina i Estany <carles@pina.cat>
6524 * commands/acpi.c (options): Fix capitalizations and/or full stops.
6525 (GRUB_MOD_INIT): Likewise.
6526 * commands/boot.c (GRUB_MOD_INIT): Likewise.
6527 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
6528 * commands/echo.c (options): Fix capitalizations and/or full stops.
6529 * commands/efi/loadbios.c (enable_rom_area): Likewise.
6530 (enable_rom_area): Likewise.
6531 (GRUB_MOD_INIT): Likewise.
6532 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
6533 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
6534 * commands/handler.c (GRUB_MOD_INIT): Likewise.
6535 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
6536 * commands/hexdump.c (options): Likewise.
6537 * commands/i386/cpuid.c (options): Likewise.
6538 (GRUB_MOD_INIT): Likewise.
6539 * commands/i386/pc/drivemap.c (options): Likewise.
6540 (GRUB_MOD_INIT): Likewise.
6541 * commands/i386/pc/halt (options): Likewise.
6542 (GRUB_MOD_INIT): Likewise.
6543 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
6544 * commands/i386/pc/pxecmd.c (options): Likewise.
6545 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
6546 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
6547 * commands/keystatus.c (options): Likewise.
6548 (GRUB_MOD_INIT): Likewise.
6549 * commands/loadenv.c (options): Likewise.
6550 * commands/ls.c (options): Likewise.
6551 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
6552 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
6553 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
6554 * commands/parttool.c (helpmsg): Likewise.
6555 * commands/probe.c (options): Likewise.
6556 * commands/read.c (GRUB_MOD_INIT): Likewise.
6557 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
6558 * commands/search.c (options): Likewise.
6559 * commands/sleep.c (options): Likewise.
6560 * commands/test.c (GRUB_MOD_INIT): Likewise.
6561 * commands/true.c (GRUB_MOD_INIT): Likewise.
6562 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
6563 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
6564 * lib/arg.c (help_options): Likewise.
6565 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
6567 * po/POTFILES: Add `commands/loadenv.c'.
6569 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
6571 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
6572 instead of specifying them explicit.
6574 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6576 * NEWS: Add grub-probe support for GNU/Hurd.
6578 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6580 * NEWS: gettext was added after 1.97.
6582 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6584 * util/mkisofs/msdos_partition.h: New file (based on
6585 include/grub/msdos_partition.h).
6586 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
6587 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
6588 (ld_options, main): Recognize --protective-msdos-label.
6589 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
6590 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
6591 (padblock_write): If `use_protective_msdos_label' is set, patch a
6592 protective DOS-style label in the output image.
6594 * util/grub-mkrescue.in: Use --protective-msdos-label.
6596 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6598 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
6601 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6603 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
6605 (ld_options, main): Recognize `--embedded-boot'.
6606 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
6608 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
6609 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
6610 (padblock_write): Likewise. Rewrite to support embedded boot image.
6612 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
6613 for BIOS-based disk boot instead of only ElTorito.
6615 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6617 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
6618 build (not needed for bootstrap).
6620 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6622 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
6623 from i386-pc build (not needed for bootstrap).
6624 Rewrite a pair of strings.
6626 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6628 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
6630 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
6632 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
6634 2009-12-21 Andreas Born <futur.andy@googlemail.com>
6636 * kern/env.c (grub_env_context_open): Mark exported variable for
6639 2009-12-21 Andreas Born <futur.andy@googlemail.com>
6641 * kern/env.c (grub_env_export): Create nonexistent variables before
6644 2009-12-20 Carles Pina i Estany <carles@pina.cat>
6646 * include/grub/auth.h: Include `<grub/i18n.h>'.
6647 (GRUB_GET_PASSWORD): Gettextizze string.
6648 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
6650 (grub_utf8_to_ucs4_alloc): Fix indentation.
6651 (grub_print_ucs4): Likewise.
6652 (grub_getstringwidth): Likewise.
6653 (print_message_indented): New declaration.
6654 * normal/auth.c: Include `<grub/i18n.h>'.
6655 (grub_auth_check_authentication): Gettexttize string.
6656 * normal/cmdline.c: Include `<grub/i18n.h>'.
6657 (grub_cmdline_get): Gettextizze.
6658 * normal/color.c: Include `<grub/i18n.h>'.
6659 (grub_parse_color_name_pair): Gettexttize strings.
6660 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
6661 string (use `print_message_indented').
6662 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
6663 `include/grub/normal.h'.
6664 (print_message_indented): Renamed to ...
6665 (grub_print_message_indented): ... this. Remove `static' qualifer (now
6666 used in normal/main.c).
6667 (print_message): Use `grub_print_message_indented' instead of
6668 `print_message_indented'.
6669 (print_timeout): Likewise.
6670 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
6671 (grub_normal_print_device_info): Gettexttize strings.
6672 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
6674 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6676 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
6677 of arguments. Return number of tokens and not arguments. All users
6680 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6682 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
6683 non-MSDOS paritions.
6685 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
6687 * include/grub/types.h (UNUSED): Removed since it conflicts with
6688 NetBSD headers. All users changed to direct __attribute__ ((unused)).
6689 Reported by Grégoire Sutre.
6691 2009-12-19 Carles Pina i Estany <carles@pina.cat>
6693 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
6694 (grub_print_ucs4_alloc): Likewise.
6695 (grub_getstringwidth): Likewise.
6696 * normal/main.c (grub_normal_init_page): Gettextize version string.
6697 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
6698 (getstringwidth): Renamed to ...
6699 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
6700 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
6701 (grub_print_ucs4): Remove `static' qualifer (now used in
6703 * po/POTFILES: Add normal/main.c.
6705 2009-12-19 Carles Pina i Estany <carles@pina.cat>
6707 * normal/menu_text.c (STANDARD_MARGIN): New macro.
6708 (print_message_indented): Add `margin_left' and `margin_right'
6710 (print_message): Update `print_message_indented' calls. Adds '\n' to the
6712 (print_timeout): Use `print_message_indented' to print the message.
6713 Deletes `second_stage' parameter.
6714 (run_menu): Update `print_timeout' calls.
6716 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6718 Fix console palette on OpenFirmware.
6720 * term/ieee1275/ofconsole.c (MAX): Removed.
6721 (colors): Redone based on VGA palette.
6722 (grub_ofconsole_setcolor): Discard brightness bit since only 8
6723 colors are supported.
6724 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
6726 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6728 Fix potential EfiEmu double prepare.
6730 * efiemu/main.c (prepared): New variable
6731 (grub_efiemu_unload): Set prepare to '0'.
6732 (grub_efiemu_prepare): Return if already prepared. Set prepared.
6734 set_virtual_address_map support.
6736 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
6738 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
6740 (grub_efiemu_crc32): Likewise.
6741 (grub_efiemu_crc64): Likewise.
6742 (grub_efiemu_set_virtual_address_map): Likewise.
6743 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
6745 (grub_autoefi_set_virtual_address_map): Likewise.
6746 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
6747 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
6748 Restructure flow to accomodate it.
6749 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
6750 (grub_efiemu_crc): Recompute CRC32.
6751 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
6752 (efiemu_ptv_relocated): ... this. Made global. All users updated.
6753 * efiemu/symbols.c (relocated_handle): New variable.
6754 (grub_efiemu_free_syms): Free relocated_handle.
6755 (grub_efiemu_alloc_syms): Allocate relocated_handle.
6756 (grub_efiemu_write_sym_markers): New function.
6757 (grub_efiemu_set_virtual_address_map): Likewise.
6759 Newer XNU parameters.
6761 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
6762 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
6763 (grub_xnu_fill_devicetree): New prototype.
6764 (grub_xnu_heap_real_start): New variable.
6765 * loader/xnu.c (get_name_ptr): New function.
6766 (grub_xnu_load_driver): Fill namelen and name.
6770 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
6771 and 'loader/macho64.c'.
6772 * conf/i386-pc.rmk: Likewise.
6773 * conf/x86_64-efi.rmk: Likewise.
6774 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
6775 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
6776 * include/grub/macho.h (grub_macho_segment64): New structure.
6777 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
6778 (grub_macho_size32): ... to this.
6779 (grub_macho32_get_entry_point): Renamed from ...
6780 (grub_macho_get_entry_point32): ... to this.
6781 (grub_macho_contains_macho64): New prototype.
6782 (grub_macho_size64): Likewise.
6783 (grub_macho_get_entry_point64): Likewise.
6784 (grub_macho32_load): Renamed from ...
6785 (grub_macho_load32): ... to this.
6786 (grub_macho32_filesize): Renamed from ...
6787 (grub_macho_filesize32): ... to this.
6788 (grub_macho32_readfile): Renamed from ...
6789 (grub_macho_readfile32): ... to this.
6790 (grub_macho_filesize64): New prototype.
6791 (grub_macho_readfile64): Likewise.
6792 (grub_macho_parse32): Likewise.
6793 (grub_macho_parse64): Likewise.
6794 * loader/macho.c: Split into ...
6795 * loader/machoXX.c: ... and this. Replace 32 with XX.
6796 * loader/macho32.c: New file.
6797 * loader/macho64.c: Likewise.
6798 * loader/xnu.c (grub_xnu_is_64bit): New variable.
6799 (grub_cmd_xnu_kernel): Make 32-bit only.
6800 (grub_cmd_xnu_kernel64): New function.
6801 (grub_xnu_load_driver): Support Mach-O 64.
6802 (grub_cmd_xnu_mkext): Likewise.
6803 * util/grub.d/30_os-prober.in (osx_entry): New function.
6804 Generate entries for 64-bit boot too.
6806 Eliminate ad-hoc tree format in XNU and EfiEmu.
6808 * efiemu/main.c (grub_efiemu_prepare): Update comment.
6809 * efiemu/pnvram.c: Rewritten to use environment variables.
6812 Inline utf16_to_utf8.
6814 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
6815 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
6817 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
6819 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
6820 * commands/usbtest.c (grub_usb_get_string): ... move here.
6821 (usb_print_str): Fix error handling.
6822 * include/grub/usb.h (grub_usb_get_string): Remove.
6824 UTF-8 to UTF-16 transformation.
6826 * conf/common.rmk (pkglib_MODULES): Add charset.mod
6827 (charset_mod_SOURCES): New variable.
6828 (charset_mod_CFLAGS): Likewise.
6829 (charset_mod_LDFLAGS): Likewise.
6830 * include/grub/utf.h: New file.
6831 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
6833 Support for device properties.
6835 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
6836 (grub_xnu_devprop_device_header): Likewise.
6837 (grub_xnu_devprop_device_descriptor): Likewise.
6838 (grub_xnu_devprop_add_device): New prototype.
6839 (grub_xnu_devprop_remove_device): Likewise.
6840 (grub_xnu_devprop_remove_property): Likewise.
6841 (grub_xnu_devprop_add_property_utf8): Likewise.
6842 (grub_xnu_devprop_add_property_utf16): Likewise.
6843 (grub_cpu_xnu_init): Likewise.
6844 (grub_cpu_xnu_fini): Likewise.
6845 (grub_cpu_xnu_unload): Likewise.
6846 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
6847 (property_descriptor): Likewise.
6848 (devices): New variable.
6849 (grub_xnu_devprop_remove_property): New function.
6850 (grub_xnu_devprop_add_device): Likewise.
6851 (grub_xnu_devprop_remove_device): Likewise.
6852 (grub_xnu_devprop_add_property): Likewise.
6853 (grub_xnu_devprop_add_property_utf8): Likewise.
6854 (grub_xnu_devprop_add_property_utf16): Likewise.
6855 (hextoval): Likewise.
6856 (grub_cpu_xnu_fill_devprop): Likewise.
6857 (grub_cmd_devprop_load): Likewise.
6858 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
6859 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
6860 (cmd_devprop_load): New variable.
6861 (grub_cpu_xnu_init): New function.
6862 (grub_cpu_xnu_fini): Likewise.
6863 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
6864 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
6865 (grub_cmd_xnu_devtree): Likewise.
6866 (hextoval): New function.
6867 (unescape): Likewise.
6868 (grub_xnu_fill_devicetree): Likewise.
6870 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
6871 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
6873 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6875 Workaround for broken ATI VBE.
6877 * video/i386/pc/vbe.c (last_set_mode): New variable.
6878 (grub_vbe_set_video_mode): Set 'last_set_mode'.
6879 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
6880 (grub_video_vbe_setup): Don't check for reserved flag.
6882 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
6884 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
6887 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
6889 UUID support for HFS.
6891 * fs/hfs.c (grub_hfs_uuid): New function.
6892 (grub_hfs_fs): New value .uuid.
6893 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
6895 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
6897 Fix a segfault with parsing unknown long options.
6899 * util/grub-mkrelpath.c (options): Zero terminate it.
6901 2009-12-13 Carles Pina i Estany <carles@pina.cat>
6903 * include/grub/misc.h (grub_puts): New declaration.
6904 (grub_puts_): Likewise.
6905 * kern/misc.c (grub_puts): New definition.
6906 (grub_puts_): Likewise.
6908 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6910 * util/grub-probe.c (probe): Improve error message.
6912 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6914 * loader/i386/multiboot_elfxx.c
6915 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
6918 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6922 * loader/i386/xnu_helper.S: Removed. All users updated.
6923 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
6924 (relocator_mod_SOURCES): New variable.
6925 (relocator_mod_CFLAGS): Likewise.
6926 (relocator_mod_LDFLAGS): Likewise.
6927 (relocator_mod_ASFLAGS): Likewise.
6928 * conf/x86_64.rmk: Likewise.
6929 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
6930 (grub_multiboot_payload_entry_offset): Likewise.
6931 (grub_multiboot_forward_relocator): Likewise.
6932 (grub_multiboot_forward_relocator_end): Likewise.
6933 (grub_multiboot_backward_relocator): Likewise.
6934 (grub_multiboot_backward_relocator_end): Likewise.
6935 (grub_multiboot_payload_eip): New variable.
6936 (grub_multiboot_payload_orig): Likewise.
6937 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
6938 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
6939 * include/grub/i386/memory.h
6940 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
6941 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
6942 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
6943 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
6944 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
6945 * include/grub/i386/relocator.h: New file.
6946 * include/grub/x86_64/relocator.h: Likewise.
6947 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
6948 (XNU_RELOCATOR): New macro.
6949 (grub_xnu_launcher_start): Remove.
6950 (grub_xnu_launcher_end): Likewise.
6951 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
6952 (grub_xnu_heap_real_start): Remove.
6953 (grub_xnu_heap_start): Change to void *. All users updated.
6954 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
6955 * lib/i386/relocator.c: New file.
6956 * lib/i386/relocator_asm.S: Likewise.
6957 * lib/i386/relocator_backward.S: Likewise.
6958 * lib/mips/relocator.c: Likewise.
6959 * lib/mips/relocator_asm.S: Likewise.
6960 * lib/relocator.c: Likewise.
6961 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
6963 (playground): Likewise.
6964 (grub_multiboot_payload_orig): New variable.
6965 (grub_multiboot_payload_dest): Likewise.
6966 (grub_multiboot_payload_size): Likewise.
6967 (grub_multiboot_payload_eip): Likewise.
6968 (grub_multiboot_payload_esp): Likewise.
6969 (grub_multiboot_boot): Use grub_relocator32_boot.
6970 (grub_multiboot_unload): Free relocators.
6971 (grub_multiboot): Setup stack. Use relocators.
6972 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
6973 (grub_multiboot_load_elfXX): Use relocators.
6974 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
6975 (grub_multiboot_payload_size): Likewise.
6976 (grub_multiboot_payload_dest): Likewise.
6977 (grub_multiboot_payload_entry_offset): Likewise.
6978 (grub_multiboot_forward_relocator): Likewise.
6979 (grub_multiboot_backward_relocator): Likewise.
6980 (grub_multiboot_real_boot): Likewise.
6981 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
6982 (grub_xnu_entry_point): Likewise.
6983 (grub_xnu_arg1): Likewise.
6984 (grub_xnu_stack): Likewise.
6985 (grub_xnu_launch): Removed.
6986 (grub_xnu_boot_resume): New function.
6987 (grub_xnu_boot): Use relocators.
6988 * loader/i386/xnu_helper.S: Removed.
6989 * loader/xnu.c (grub_xnu_heap_start): New variable.
6990 (grub_xnu_heap_size): Likewise.
6991 (grub_xnu_heap_malloc): Use relocators.
6992 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
6994 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6996 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
6999 2009-12-13 Carles Pina i Estany <carles@pina.cat>
7001 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
7002 GRUB_ERR_NONE before calling grub_env_set.
7004 2009-12-12 Robert Millan <rmh@aybabtu.com>
7006 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
7007 * genmk.rb (video): New variable.
7008 (CLEANFILES, VIDEOFILES): Add #{video}.
7009 (#{video}): New target rule.
7010 * genvideolist.sh: New file.
7011 * Makefile.in (pkglib_DATA): Add video.lst.
7012 (video.lst): New target rule.
7013 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
7015 * util/grub.d/30_os-prober.in: Replace `vbe' with
7016 ${GRUB_VIDEO_BACKEND}.
7018 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
7020 * THANKS: Add David Miller.
7022 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
7024 libpciaccess support.
7026 * Makefile.in (LIBPCIACCESS): New variable.
7027 (enable_grub_emu_pci): Likewise.
7028 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
7029 util/pci.c and commands/lspci.c.
7030 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
7031 * configure.ac (grub-emu-pci): New option.
7032 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
7033 (grub_pci_device_unmap_range): Likewise.
7034 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
7035 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
7036 (grub_pci_address_t) [!GRUB_UTIL]: New type.
7037 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
7038 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
7039 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
7040 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
7041 * include/grub/pciutils.h: New file.
7042 * util/pci.c: Likewise.
7044 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
7046 * util/misc.c: Don't include <errno.h> twice.
7048 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
7050 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
7051 name in an error message.
7052 (grub_biosdisk_rw): Likewise.
7054 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7056 Eliminate NTFS 4Gib barrier.
7058 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
7059 (read_run_data): Likewise.
7060 (grub_ntfs_read_run_list): Likewise.
7061 (grub_ntfs_read_block): Likewise.
7062 (grub_ntfs_iterate_dir): Likewise.
7063 (read_mft): Likewise.
7064 (read_data): Likewise.
7066 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
7067 to avoid 64-bit division
7068 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
7069 (grub_ntfs_rlst): Use grub_disk_addr_t.
7071 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7073 Eliminate grub-fstest 4Gib barrier.
7075 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
7076 (read_file): Fix error reporting.
7078 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7080 Eliminate hexdump 4Gib barrier.
7082 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
7083 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
7085 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7087 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
7090 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
7092 Remove miscellaneous files in distclean target.
7094 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
7096 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
7098 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
7099 if they're already set. This resolves the conflict between my
7100 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
7101 fixing the --grub-probe option again.
7102 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
7103 change on 2009-10-06, so that we now once again source
7104 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
7106 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
7108 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
7109 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
7112 2009-12-08 Carles Pina i Estany <carles@pina.cat>
7114 * include/grub/misc.h (grub_printf_): New declaration.
7115 * kern/misc.c (grub_printf_): New definition.
7116 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
7117 instead of `grub_printf' and `_'.
7118 * normal/menu_entry.c (store_completion): Likewise.
7120 (grub_menu_entry_run): Likewise.
7121 * normal/menu_text.c (grub_wait_after_message): Likewise.
7122 (notify_booting): Likewise.
7123 (notify_fallback): Likewise.
7124 (notify_execution_failure): Likewise.
7126 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
7128 * configure.ac: Check for vasprintf.
7129 * util/misc.c (asprintf): Move allocation from here ...
7130 (vasprintf): ... to here. New function.
7131 (xasprintf): New function.
7132 * include/grub/util/misc.h (vasprintf, xasprintf): Add
7134 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
7135 * util/grub-mkfont.c (write_font): Likewise.
7136 * util/grub-probe.c (probe): Likewise.
7137 * util/hostdisk.c (make_device_name): Likewise.
7139 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
7141 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
7142 anything even prefixed with 'cdrom' as a cdrom.
7144 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
7146 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
7149 2009-12-05 Carles Pina i Estany <carles@pina.cat>
7151 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
7152 grub_gettext_msg_list.
7153 (grub_gettext_gettranslation_from_position): Return const char *
7155 (grub_gettext_translate): Add the translated strings into a list,
7156 returns from the list if existing there.
7157 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
7158 (grub_gettext_delete_list): Delete the list.
7159 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
7160 lang environment variable is changed.
7161 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
7163 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
7165 Rename kernel.mod to kernel.img.
7167 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
7168 (kernel_mod_EXPORTS): Rename to ...
7169 (kernel_img_EXPORTS): ... this.
7170 (kernel_mod_SOURCES): Rename to ...
7171 (kernel_img_SOURCES): ... this.
7172 (kernel_mod_HEADERS): Rename to ...
7173 (kernel_img_HEADERS): ... this. All users updated.
7174 (kernel_mod_CFLAGS): Rename to ...
7175 (kernel_img_CFLAGS): ... this.
7176 (kernel_mod_ASFLAGS): Rename to ...
7177 (kernel_img_ASFLAGS): ... this.
7178 (kernel_mod_LDFLAGS): Rename to ...
7179 (kernel_img_LDFLAGS): ... this.
7180 * conf/x86_64-efi.rmk: Likewise.
7181 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
7182 (read_kernel_image): ... this. All users updated.
7183 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
7185 2009-12-05 Carles Pina i Estany <carles@pina.cat>
7187 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
7188 (print_spaces): New function.
7189 (grub_print_ucs4): New function.
7190 (getstringwidth): New function.
7191 (print_message_indented): New function.
7192 (print_message): Gettexttize strings using print_message_indented.
7193 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
7195 (get_entry_number): Gettextize and uses dynamic terminal width.
7196 (notify_booting, notify_fallback, notify_execution_failure):
7198 * normal/menu_entry.c (store_completion): Cleanup the gettextized
7201 (grub_menu_entry_run): Likewise.
7202 * PO/POTFILES: Add normal/menu_entry.c.
7204 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
7206 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
7208 2009-12-05 Carles Pina i Estany <carles@pina.cat>
7210 * util/grub-install.in: Install gettext .mo files.
7211 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
7213 2009-12-05 Carles Pina i Estany <carles@pina.cat>
7215 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
7218 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
7220 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
7221 non-firmware-dependant one in realmode.S takes precedence.
7223 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
7225 * commands/halt.c: Replace misc arch-specific headers with
7227 * commands/reboot.c: Likewise.
7228 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
7230 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
7231 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
7232 (kernel_img_SOURCES): ... to here.
7234 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
7235 * include/grub/i386/pc/init.h: Likewise.
7236 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
7237 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
7239 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
7241 * include/grub/i386/halt.h: Remove.
7242 * include/grub/i386/reboot.h: Likewise.
7244 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
7246 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
7248 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
7249 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
7250 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
7252 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
7253 * util/sparc64/ieee1275/grub-setup.c: Likewise.
7254 (usage): Add missing comma in printf.
7256 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
7258 Use the same reboot approach on i386 coreboot and qemu as we do on
7261 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
7262 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
7263 * kern/i386/reboot.c: Remove.
7264 * include/grub/i386/reboot.h (grub_reboot): Export function.
7265 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
7266 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
7267 0xf000:0xfff0 instead of 0xffff:0x0000.
7268 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
7269 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
7271 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
7273 Fix $srcdir != $objdir build.
7275 * Makefile.in (po/%.po): Rewrite as ...
7276 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
7278 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
7280 Fix GNU/Hurd grub-install crash.
7281 * util/grub-probe.c (probe): Try to access `path' only when it is not
7284 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
7286 Correct module naming.
7288 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
7289 (GRUB_MOD_INIT(efi_uga)): ... to this
7290 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
7291 (GRUB_MOD_FINI(efi_uga)): ... to this
7292 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
7293 (GRUB_MOD_INIT(efi_gop)): ... to this
7294 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
7295 (GRUB_MOD_FINI(efi_gop)): ... to this
7297 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
7299 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
7301 (usage): Translate `arg' strings using gettext().
7302 Thanks to Jordi Mallach for the suggestion.
7304 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
7306 GOP support. Based on patch from Bean
7307 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
7309 * video/efi_gop.c: New file.
7310 * include/grub/efi/graphics_output.h: Likewise.
7311 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
7312 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
7314 * conf/x86_64-efi.rmk: Likewise.
7316 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
7318 Rename efi_fb to efi_uga.
7320 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
7322 (efi_fb_mod_SOURCES): Rename this ...
7323 (efi_uga_mod_SOURCES): ... to this.
7324 (efi_fb_mod_CFLAGS): Rename this ...
7325 (efi_uga_mod_CFLAGS): ... to this.
7326 (efi_fb_mod_LDFLAGS): Rename this ...
7327 (efi_uga_mod_LDFLAGS): ... to this.
7328 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
7330 (efi_fb_mod_SOURCES): Rename this ...
7331 (efi_uga_mod_SOURCES): ... to this.
7332 (efi_fb_mod_CFLAGS): Rename this ...
7333 (efi_uga_mod_CFLAGS): ... to this.
7334 (efi_fb_mod_LDFLAGS): Rename this ...
7335 (efi_uga_mod_LDFLAGS): ... to this.
7336 * video/efi_fb.c: Move this ...
7337 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
7339 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
7341 * po/README: New file. Explain our PO file workflow.
7343 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
7345 * po/ChangeLog: Remove. Move relevant entries back to ...
7346 * ChangeLog: ... here.
7347 * po/ca.po: Remove (now handled by TLP).
7348 * po/id.po: Likewise.
7349 * po/zh_CN.po: Likewise.
7350 * Makefile.in (LINGUAS): Initialize in a way that supports
7353 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
7355 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
7356 reliing on po/LINGUAS.
7357 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
7358 (po/%.po): ... this.
7360 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
7362 * util/i386/efi/grub-mkimage.c: Include "progname.h".
7363 (main): Use `program_name' instead of nonexistent `progname'.
7365 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
7367 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7368 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
7370 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
7372 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
7374 * conf/i386-efi.rmk: Likewise.
7375 * conf/i386-ieee1275.rmk: Likewise.
7376 * conf/powerpc-ieee1275.rmk: Likewise.
7377 * conf/sparc64-ieee1275.rmk: Likewise.
7378 * conf/x86_64-efi.rmk: Likewise.
7380 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
7382 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
7384 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
7386 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
7388 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
7390 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
7391 (grub_mkdevicemap_SOURCES): New variable.
7392 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
7393 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
7394 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
7395 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
7396 (grub_mkdevicemap_SOURCES): Remove.
7397 * conf/i386-efi.rmk: Likewise.
7398 * conf/i386-ieee1275.rmk: Likewise.
7399 * conf/i386-pc.rmk: Likewise.
7400 * conf/powerpc-ieee1275.rmk: Likewise.
7401 * conf/sparc64-ieee1275.rmk: Likewise.
7402 * conf/x86_64-efi.rmk: Likewise.
7403 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
7404 (usage): Fix strings to use `program_name'.
7405 (main): Initialize gettext.
7406 * util/grub-editenv.c: Likewise.
7407 * util/grub-emu.c: Likewise.
7408 * util/grub-fstest.c: Likewise.
7409 * util/grub-mkdevicemap.c: Likewise.
7410 * util/grub-mkfont.c: Likewise.
7411 * util/grub-mkrelpath.c: Likewise.
7412 * util/grub-pe2elf.c: Likewise.
7413 * util/grub-probe.c: Likewise.
7414 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
7415 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
7416 * util/sparc64/ieee1275/grub-setup.c: Likewise.
7418 * util/misc.c: Include `"progname.h"'.
7419 (progname): Remove variable.
7420 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
7422 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
7424 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
7425 printf and print a newline after the menuentry header line.
7426 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
7428 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
7430 autoconf >= 2.60 support $(localedir).
7432 * INSTALL: Note that autoconf 2.60 is required.
7433 * configure.ac (AC_PREREQ): Bump to 2.60.
7434 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
7435 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
7437 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
7439 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
7442 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
7444 * normal/main.c (grub_normal_read_line): Fix off-by-one
7447 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
7449 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
7450 "parser.grub" in grub_command_execute() call.
7452 2009-11-24 Carles Pina i Estany <carles@pina.cat>
7454 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
7455 * conf/i386-efi.rmk: Likewise.
7456 * conf/i386-ieee1275.rmk: Likewise.
7457 * conf/i386-pc.rmk: Likewise.
7458 * conf/powerpc-ieee1275.rmk: Likewise.
7459 * conf/sparc64-ieee1275.rmk: Likewise.
7460 * conf/x86_64-efi.rmk: Likewise.
7461 * gettext/gettex.c: Include <grub/i18n.h>.
7462 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
7464 * include/grub/i18n.h: ... to here
7465 * include/grub/i18n.h: ... to here.
7466 * kern/misc.c: Include <grub/i18n.h>
7467 (grub_gettext_dummy): Move above user.
7469 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7471 * util/Makefile.in (install-local): Convert a `for' into a normal
7474 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
7476 * autogen.sh: Add automake call.
7477 * config.guess: Remove.
7478 * config.sub: Likewise.
7479 * install-sh: Likewise.
7481 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7483 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
7485 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7487 * util/Makefile.in (install-local): Convert a make `$(foreach)'
7488 function to a normal shell `for'.
7490 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7492 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7494 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7496 * util/grub-mkrelpath.c: New file.
7497 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
7498 (grub_mkrelpath_SOURCES): New variable.
7499 * include/grub/util/misc.h: New function prototype.
7500 * util/misc.c (make_system_path_relative_to_its_root): New function.
7502 * util/grub-mkconfig_lib.in (bindir): New variable.
7503 (grub_mkrelpath): Likewise.
7504 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
7506 * util/probe.c (probe): Make the file path relative to its root.
7507 Change a info message to use the GRUB path. Enable again the
7508 check if we can read the file with GRUB facilities.
7510 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
7513 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7515 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
7518 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7520 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
7523 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7525 * util/getroot.c (grub_util_is_dmraid): New function.
7526 (grub_util_get_dev_abstraction): Treat dmraid and multipath
7527 devices as normal ones, not as LVM.
7529 2009-11-23 Carles Pina i Estany <carles@pina.cat>
7531 * conf/common.rmk: Add grub-gettext_lib target and updates
7532 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
7534 * gettext/gettext.c: New file. (Reads mo files).
7535 * include/grub/file.h (grub_file_pread): New prototype.
7536 * include/grub/i18n.h (_): New prototype.
7537 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
7539 * kern/misc.c (grub_gettext_dummy): New function.
7540 * normal/menu_text.c: Include <grub/i18n.h>.
7541 * normal/menu_text.c (print_timeout): Gettexttize string.
7542 * normal/menu_text.c (print_message): Gettexttize string.
7543 * po/POTFILES: Add `normal/menu_text.c'.
7544 * po/ca.po: Add new translations.
7545 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
7546 gettext module and defines locale_dir and lang in grub.cfg.
7547 * NEWS: Add gettext support.
7549 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7551 * util/hostdisk.c: Include `<grub/i18n.h>'.
7552 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
7553 (make_device_name): Rewrite using asprintf.
7554 (convert_system_partition_to_system_disk): Replace 0 with NULL.
7555 (find_system_device): If a device is not found, generate one just
7556 by reusing the OS path name.
7557 (read_device_map): Make it permissible for device.map not to exist.
7559 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7561 * script/sh/execute.c: Move from here ...
7562 * script/execute.c: ... to here. Update all users.
7563 * script/sh/function.c: Move from here ...
7564 * script/function.c: ... to here. Update all users.
7565 * script/sh/lexer.c: Move from here ...
7566 * script/lexer.c: ... to here. Update all users.
7567 * script/sh/main.c: Move from here ...
7568 * script/main.c: ... to here. Update all users.
7569 * script/sh/parser.y: Move from here ...
7570 * script/parser.y: ... to here. Update all users.
7571 * script/sh/script.c: Move from here ...
7572 * script/script.c: ... to here. Update all users.
7574 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7576 * configure.ac: Detect all `emu' platforms. Define
7577 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
7578 --enable-grub-emu logic. Disable include/grub/machine
7579 symlink on `emu' platforms.
7581 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
7582 * gensymlist.sh.in: Likewise.
7584 * include/grub/i386/coreboot/machine.h: Remove file.
7585 * include/grub/i386/efi/machine.h: Likewise.
7586 * include/grub/i386/ieee1275/machine.h: Likewise.
7587 * include/grub/i386/pc/machine.h: Likewise.
7588 * include/grub/i386/qemu/machine.h: Likewise.
7589 * include/grub/powerpc/ieee1275/machine.h: Likewise.
7590 * include/grub/sparc64/ieee1275/machine.h: Likewise.
7591 * include/grub/x86_64/efi/machine.h: Likewise.
7593 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
7594 * commands/halt.c: Likewise.
7595 * commands/reboot.c: Likewise.
7596 * include/grub/autoefi.h: Likewise.
7597 * include/grub/i386/at_keyboard.h: Likewise.
7598 * include/grub/i386/kernel.h: Likewise.
7599 * include/grub/i386/loader.h: Likewise.
7600 * include/grub/i386/pc/memory.h: Likewise.
7601 * kern/dl.c: Likewise.
7602 * kern/i386/coreboot/init.c: Likewise.
7603 * loader/i386/bsd.c: Likewise.
7604 * loader/i386/linux.c: Likewise.
7605 * loader/multiboot_loader.c: Likewise.
7606 * term/i386/pc/serial.c: Likewise.
7607 * term/usb_keyboard.c: Likewise.
7609 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
7610 `<grub/machine/machine.h>'
7611 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
7612 * util/misc.c: Remove `<grub/machine/machine.h>' and
7613 `<grub/machine/time.h>'.
7615 * Makefile.in (enable_grub_emu): Remove variable.
7616 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
7618 * conf/any-emu.rmk: New file.
7619 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
7620 (grub_emu_init.c): Move from here ...
7621 * conf/any-emu.rmk: ... to here.
7623 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
7624 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
7625 * conf/any-emu.rmk: ... to here.
7627 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7629 * include/grub/parser.h (grub_parser_register): Document need
7630 of `name' parameter.
7631 * normal/main.c (grub_normal_read_line): Simplify prompt string.
7632 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
7635 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7637 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
7639 * include/grub/i18n.h (N_): New macro.
7640 * util/mkisofs/mkisofs.h: Likewise.
7641 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
7643 (usage): Use gettext() to translate help strings when printing them.
7645 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7647 Based on patch from Bean
7648 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
7650 * video/efi_fb.c: New file.
7651 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
7652 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
7654 * conf/x86_64-efi.rmk: Likewise.
7656 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
7658 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
7659 * util/i386/pc/grub-setup.c: Likewise.
7661 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
7663 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
7665 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
7666 file_get_storage_info to implement grub_guess_root_device.
7668 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
7670 * Makefile.in (target): Use make's builtin $(shell) function
7671 instead of calling directly $(SHELL) to create the locale directories,
7672 inside the $(foreach) function.
7674 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
7676 * util/grub-mkrescue.in: Print an error and usage if output option
7679 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
7681 Patch from Loïc Minier <loic.minier@ubuntu.com>.
7682 * util/grub.d/30_os-prober.in: Cope with Linux entries where
7683 root and /boot are on different devices.
7685 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7687 Fix build for srcdir != objdir.
7689 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
7690 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
7692 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
7693 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
7694 reference for input.
7696 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7698 * util/grub-mkrescue.in: Use source directory direcly (without copiing
7699 or hardlinking it). Remove -J option, Joliet is not compatible with
7700 multiple source directories.
7702 2009-11-21 Carles Pina i Estany <carles@pina.cat>
7703 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7705 * util/grub-mkrescue.in: Recognize `--override-directory' option.
7706 (process_input_dir): New function. Process an arbitrary input
7708 Misc adjustments to support both "override mode" and system-wide mode.
7710 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
7712 * configure.ac (UNIFONT_BDF): Rename to ...
7713 (FONT_SOURCE): ... this. Update all users.
7715 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
7717 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
7718 to the list of unifont files to look for.
7720 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7722 Patch from Joe Auricchio <jauricchio@gmail.com>
7723 * commands/minicmd.c (grub_mini_cmd_clear): New function.
7724 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
7725 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
7727 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
7729 * Makefile.in (install-local): Add a missing backslash.
7731 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
7733 * include/grub/x86_64/io.h: New file.
7735 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7737 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
7738 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
7739 Include `"progname.h"'.
7740 (main): Initialize gettext.
7741 * util/i386/pc/grub-setup.c: Gettexttize.
7742 * util/i386/pc/grub-mkimage.c: Likewise.
7744 * Makefile.in (po/*.po): Redefine as ...
7745 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
7747 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
7749 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7751 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
7752 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
7753 (program_name): Remove.
7754 (main): Initialize gettext support.
7755 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
7756 Include `<libintl.h>'.
7759 * util/mkisofs/eltorito.c: Gettexttize.
7760 * util/mkisofs/joliet.c: Likewise.
7761 * util/mkisofs/mkisofs.c: Likewise.
7762 * util/mkisofs/multi.c: Likewise.
7763 * util/mkisofs/rock.c: Likewise.
7764 * util/mkisofs/tree.c: Likewise.
7765 * util/mkisofs/write.c: Likewise.
7767 * po/POTFILES: Update with new files.
7769 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7771 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
7772 * util/mkisofs/iso9660.h: Likewise.
7773 * util/mkisofs/joliet.c: Likewise.
7774 * util/mkisofs/mkisofs.c: Likewise.
7775 * util/mkisofs/mkisofs.h: Likewise.
7776 * util/mkisofs/rock.c: Likewise.
7777 * util/mkisofs/tree.c: Likewise.
7778 * util/mkisofs/write.c: Likewise.
7780 * util/mkisofs/eltorito.c (rcsid): Remove.
7781 * util/mkisofs/hash.c: Likewise.
7782 * util/mkisofs/joliet.c: Likewise.
7783 * util/mkisofs/name.c: Likewise.
7784 * util/mkisofs/rock.c: Likewise.
7785 * util/mkisofs/tree.c: Likewise.
7786 * util/mkisofs/write.c: Likewise.
7788 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7790 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
7791 instead of static allocation.
7792 * util/mkisofs/match.h: Likewise.
7794 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7796 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
7797 and `util/grub.d/10_linux.in'.
7798 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
7799 translatable Shell files.
7801 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7803 * Makefile.in ($(srcdir)/aclocal.m4): New target.
7805 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7807 * INSTALL: Document Automake is needed for bootstrap.
7808 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
7809 * util/grub.d/10_kfreebsd.in (bindir): New variable.
7810 Add gettext initialization.
7811 (kfreebsd_entry): Make menuentry output translatable.
7813 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7815 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
7816 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
7817 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
7818 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
7819 (LINGUAS): Auto-generate using `po/LINGUAS'.
7820 * po/LINGUAS: New file.
7822 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7824 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
7826 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
7827 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
7828 bindtextdomain() calls for gettext initialization.
7830 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7832 * gnulib/progname.c: New file (imported from Gnulib).
7833 * gnulib/progname.h: Likewise.
7834 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7835 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
7836 (usage): Replace `progname' with `program_name'.
7837 (main): Use set_program_name() for program name initialization.
7839 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7841 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
7843 * Makefile.in (CPPFLAGS): ... to here.
7845 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7847 * aclocal.m4: Move from here ...
7848 * acinclude.m4: ... to here.
7849 * autogen.sh: Add call to `aclocal'.
7850 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
7852 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7854 * Makefile.in (CLEANFILES): Add `po/*.mo'.
7855 (LINGUAS): New variable.
7856 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
7857 (install-local): Install MO files.
7858 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
7859 * include/grub/i18n.h: New file.
7860 * po/POTFILES: New file.
7861 * po/ca.po: New file.
7862 * util/grub.d/10_linux.in (bindir): New variable.
7863 Add gettext initialization.
7864 (linux_entry): Make menuentry output translatable.
7865 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
7866 (usage): Make --help output translatable.
7867 (main): Initialize gettext.
7869 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7871 * import_gcry.py: New file (written by Vladimir with minor
7873 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
7875 * INSTALL: Document that Python is required for bootstrap.
7877 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7879 Import ciphers from libgcrypt 1.4.4.
7881 * lib/libgcrypt/cipher/ChangeLog
7882 * lib/libgcrypt/cipher/ac.c
7883 * lib/libgcrypt/cipher/arcfour.c
7884 * lib/libgcrypt/cipher/bithelp.h
7885 * lib/libgcrypt/cipher/blowfish.c
7886 * lib/libgcrypt/cipher/camellia-glue.c
7887 * lib/libgcrypt/cipher/camellia.c
7888 * lib/libgcrypt/cipher/camellia.h
7889 * lib/libgcrypt/cipher/cast5.c
7890 * lib/libgcrypt/cipher/cipher.c
7891 * lib/libgcrypt/cipher/crc.c
7892 * lib/libgcrypt/cipher/des.c
7893 * lib/libgcrypt/cipher/dsa.c
7894 * lib/libgcrypt/cipher/ecc.c
7895 * lib/libgcrypt/cipher/elgamal.c
7896 * lib/libgcrypt/cipher/hash-common.c
7897 * lib/libgcrypt/cipher/hash-common.h
7898 * lib/libgcrypt/cipher/hmac-tests.c
7899 * lib/libgcrypt/cipher/md.c
7900 * lib/libgcrypt/cipher/md4.c
7901 * lib/libgcrypt/cipher/md5.c
7902 * lib/libgcrypt/cipher/primegen.c
7903 * lib/libgcrypt/cipher/pubkey.c
7904 * lib/libgcrypt/cipher/rfc2268.c
7905 * lib/libgcrypt/cipher/rijndael-tables.h
7906 * lib/libgcrypt/cipher/rijndael.c
7907 * lib/libgcrypt/cipher/rmd.h
7908 * lib/libgcrypt/cipher/rmd160.c
7909 * lib/libgcrypt/cipher/rsa.c
7910 * lib/libgcrypt/cipher/seed.c
7911 * lib/libgcrypt/cipher/serpent.c
7912 * lib/libgcrypt/cipher/sha1.c
7913 * lib/libgcrypt/cipher/sha256.c
7914 * lib/libgcrypt/cipher/sha512.c
7915 * lib/libgcrypt/cipher/tiger.c
7916 * lib/libgcrypt/cipher/twofish.c
7917 * lib/libgcrypt/cipher/whirlpool.c
7919 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7921 Fix build for systems without error().
7923 * gnulib/error.c: New file (imported from Gnulib).
7924 * gnulib/error.h: Likewise.
7925 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
7926 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
7927 (this variable is now used by error()).
7929 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7931 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
7932 instead of relying that char is signed.
7934 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7936 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
7937 blocksize different from specified.
7938 (grub_pxefs_read): Likewise.
7940 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7942 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
7944 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
7945 (grub_ata_readwrite): Likewise. Update 2 format strings.
7946 (grub_atapi_read): Likewise.
7948 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
7949 * conf/i386.rmk (pkglib_MODULES): ... to here ...
7950 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
7951 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
7952 (ata_mod_LDFLAGS): Move from here ...
7953 * conf/i386.rmk: ... to here ...
7954 * conf/x86_64-efi.rmk: ... and here.
7955 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
7956 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
7958 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7960 Relicense multiboot.h, with RMS' blessing.
7962 * include/multiboot.h: Change to X11 license.
7964 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
7966 Support --version in grub-mkisofs.
7968 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
7969 (OPTION_VERSION): New macro.
7970 (ld_options): Recognize --version.
7971 (usage): Move `program_name' from here ...
7972 (program_name): ... to here. Add `static' qualifier.
7973 (main): Recognize `OPTION_VERSION'.
7975 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
7977 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
7978 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
7980 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7982 Fix help2man generation for mkisofs.
7984 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
7985 (usage): Send output to stdout (rather than stderr).
7987 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7989 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
7990 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7991 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
7992 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7993 (bin_SCRIPTS): Add `grub-mkfloppy'.
7994 (grub_mkfloppy_SOURCES): New variable.
7996 * util/grub-mkrescue.in: New file.
7997 * util/i386/pc/grub-mkfloppy.in: New file.
7999 * util/i386/coreboot/grub-mkrescue.in: Remove.
8000 * util/i386/pc/grub-mkrescue.in: Remove.
8002 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
8004 * include/grub/multiboot.h (struct grub_multiboot_header): Move
8006 * include/multiboot.h (struct multiboot_header): ... to here. Update
8008 * include/grub/multiboot.h (struct grub_multiboot_info): Move
8010 * include/multiboot.h (struct multiboot_info): ... to here. Update
8012 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
8014 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
8016 * include/grub/multiboot.h (struct grub_mod_list): Move
8018 * include/multiboot.h (struct multiboot_mod_list): ... to here.
8021 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
8023 * include/multiboot2.h (multiboot_word): Rename from this ...
8024 (multiboot2_word): ... to this. Update all users.
8025 (multiboot_header): Rename from this ...
8026 (multiboot2_header): ... to this. Update all users.
8027 (multiboot_tag_header): Rename from this ...
8028 (multiboot2_tag_header): ... to this. Update all users.
8029 (multiboot_tag_start): Rename from this ...
8030 (multiboot2_tag_start): ... to this. Update all users.
8031 (multiboot_tag_name): Rename from this ...
8032 (multiboot2_tag_name): ... to this. Update all users.
8033 (multiboot_tag_module): Rename from this ...
8034 (multiboot2_tag_module): ... to this. Update all users.
8035 (multiboot_tag_memory): Rename from this ...
8036 (multiboot2_tag_memory): ... to this. Update all users.
8037 (multiboot_tag_unused): Rename from this ...
8038 (multiboot2_tag_unused): ... to this. Update all users.
8039 (multiboot_tag_end): Rename from this ...
8040 (multiboot2_tag_end): ... to this. Update all users.
8042 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
8044 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
8045 this platform we should support Multiboot1 first.
8047 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
8048 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
8049 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
8051 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
8053 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
8054 of write calls (converting them to fwrite() if they aren't already).
8055 (get_torito_desc): Likewise.
8056 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
8058 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
8060 * util/i386/pc/grub-install.in: Move from here ...
8061 * util/grub-install.in: ... to here. Update all users.
8063 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
8065 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
8067 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
8069 Support for El Torito without floppy emulation.
8071 * util/mkisofs/eltorito.c: Include `<errno.h>'.
8072 (init_boot_catalog): Improve error handling.
8073 (get_torito_desc): Don't use floppy emulation unless requested by
8074 user. Patch boot information table when requested via
8076 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
8077 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
8078 (use_boot_info_table): New variables.
8079 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
8080 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
8081 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
8082 `--eltorito-emul-floppy'.
8083 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
8084 and `OPTION_ELTORITO_EMUL_FLOPPY'.
8085 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
8086 (use_boot_info_table, get_731): New prototypes.
8087 * util/mkisofs/write.c (get_731): New function.
8089 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
8091 Fix the generation of the man page.
8093 * util/pc/i386/grub-install.in: Source
8094 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
8096 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
8098 Large file support for grub-mkisofs.
8100 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
8101 * util/mkisofs/mkisofs.c (next_extent, last_extent)
8102 (session_start): Upgrade type to `uint64_t'. Update all users.
8103 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
8104 (struct directory_entry): Upgrade type of `starting_block' and
8105 `size' to `uint64_t'. Update all users.
8106 (struct deferred): Remove unused structure.
8107 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
8109 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
8110 file is larger than `UINT32_MAX'.
8111 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
8112 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
8114 (struct deferred_write): Upgrade type of `extent' and `size' to
8115 `uint64_t'. Update all users.
8116 (last_extent_written): Upgrade type to `uint64_t'. Update all
8118 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
8119 Update all users. Upgrade type of `remain' to `int64_t' and
8120 `use' to `size_t'. Use error() to handle fread() errors.
8121 (write_files): Rely on write_one_file() rather than calling
8124 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
8126 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
8128 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8130 * util/mkisofs/fnmatch.c: Remove.
8131 * util/mkisofs/getopt1.c: Likewise.
8132 * util/mkisofs/getopt.c: Likewise.
8133 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
8134 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
8135 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
8136 `gnulib/getopt1.c' and `gnulib/getopt.c'.
8137 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
8139 * configure.ac: Detect `mingw32msvc' host_os.
8140 Check for lstat(), getuid() and getgid().
8142 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
8143 instances of `u_char' with `uint8_t'.
8145 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
8146 [!HAVE_GETUID] (getuid): New function (stub).
8147 [!HAVE_GETGID] (getgid): Likewise.
8148 [!HAVE_LSTAT] (lstat): Likewise.
8149 [!S_IROTH] (S_IROTH): New macro (dummy).
8150 [!S_IRGRP] (S_IRGRP): Likewise.
8152 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8154 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
8155 conditional expression).
8157 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8161 * gnulib/fnmatch.c: New file.
8162 * gnulib/fnmatch.h: Likewise.
8163 * gnulib/fnmatch_loop.c: Likewise.
8164 * gnulib/getopt.c: Likewise.
8165 * gnulib/getopt.h: Likewise.
8166 * gnulib/getopt1.c: Likewise.
8167 * gnulib/getopt_int.h: Likewise.
8168 * gnulib/gettext.h: Likewise.
8170 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8172 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
8173 * normal/handler.c (read_handler_list): Likewise.
8175 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8179 * kern/command.c (grub_register_command_prio): Use
8180 grub_zalloc() instead of explicitly zeroing data.
8181 * kern/list.c: Include `<grub/mm.h>'.
8182 (grub_named_list_find): Replace `0' with `NULL'.
8183 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
8184 (fs_module_list): Change type to `grub_named_list_t'. Update all
8186 * normal/dyncmd.c (read_command_list): Add space between function
8187 call and parenthesis.
8188 * normal/handler.c (read_handler_list): Likewise.
8190 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8192 * normal/auth.c (punishment_delay): Moved from here ...
8193 (grub_auth_strcmp): ... to here (inside function).
8195 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8197 * include/grub/list.h (struct grub_named_list): Remove `const'
8198 qualifier from `name'.
8199 (struct grub_prio_list): Likewise.
8201 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8203 * normal/auth.c: Include `<grub/time.h>'.
8204 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
8206 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8208 * normal/auth.c (punishment_delay): New variable.
8209 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
8210 (grub_auth_check_authentication): Punish failed login attempts with
8211 an incremental (2^N) delay.
8213 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8215 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
8216 path with $(srcdir).
8218 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8220 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
8222 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8224 * util/i386/coreboot/grub-mkrescue.in: New file.
8225 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
8228 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
8229 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
8230 * configure.ac: Add header and function checks to satisfy grub-mkisofs
8232 * util/mkisofs/defaults.h: New file.
8233 * util/mkisofs/eltorito.c: Likewise.
8234 * util/mkisofs/exclude.h: Likewise.
8235 * util/mkisofs/fnmatch.c: Likewise.
8236 * util/mkisofs/getopt.c: Likewise.
8237 * util/mkisofs/getopt1.c: Likewise.
8238 * util/mkisofs/hash.c: Likewise.
8239 * util/mkisofs/include/fctldefs.h: Likewise.
8240 * util/mkisofs/include/mconfig.h: Likewise.
8241 * util/mkisofs/include/prototyp.h: Likewise.
8242 * util/mkisofs/include/statdefs.h: Likewise.
8243 * util/mkisofs/iso9660.h: Likewise.
8244 * util/mkisofs/joliet.c: Likewise.
8245 * util/mkisofs/match.c: Likewise.
8246 * util/mkisofs/match.h: Likewise.
8247 * util/mkisofs/mkisofs.c: Likewise.
8248 * util/mkisofs/mkisofs.h: Likewise.
8249 * util/mkisofs/multi.c: Likewise.
8250 * util/mkisofs/name.c: Likewise.
8251 * util/mkisofs/rock.c: Likewise.
8252 * util/mkisofs/tree.c: Likewise.
8253 * util/mkisofs/write.c: Likewise.
8255 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8257 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
8260 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
8262 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
8263 `grub-mkimage' (and use $0 when possible).
8265 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
8267 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
8268 error message for excessively large memory map.
8270 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
8272 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
8275 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
8277 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
8278 message for coreboot users.
8280 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
8282 Fix build with GNU gold.
8284 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
8285 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
8286 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
8288 * aclocal.m4: Likewise.
8290 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
8292 * configure.ac (AC_PREREQ): Bump to 2.59d.
8293 * INSTALL: Make it more clear when Autoconf and Ruby are
8294 needed and when to run `./autogen.sh'.
8296 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
8298 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
8301 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8303 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
8305 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8307 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
8308 giving it to GNU Mach.
8310 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8312 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
8313 GNU partition number to get internal GRUB partition number.
8315 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8317 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
8318 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
8320 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
8322 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
8323 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
8326 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
8328 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
8330 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
8334 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
8335 `-isystem=$(srcdir)/include'.
8337 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
8339 * util/i386/pc/grub-install.in: Remove hint that device.map should be
8340 checked (grub-install doesn't currently rely on it).
8342 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
8346 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
8347 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
8348 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
8349 * conf/i386-ieee1275.rmk: Likewise.
8350 * conf/i386-pc.rmk: Likewise.
8351 * conf/powerpc-ieee1275.rmk: Likewise.
8352 * conf/sparc64-ieee1275.rmk: Likewise.
8353 * conf/x86_64-efi.rmk: Likewise.
8355 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
8357 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
8359 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
8361 * include/grub/misc.h: Stop checking for APPLE_CC.
8363 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
8365 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
8366 doesn't cause an infinite call loop.
8368 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
8370 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
8373 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8375 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
8377 * Makefile.in: Likewise.
8379 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8381 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
8383 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8385 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
8387 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8389 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
8391 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8393 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
8395 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
8397 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8399 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
8400 in $(MAKEINFO) invocation. This makes it clear in output that
8401 errors are being ignored.
8403 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8405 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
8407 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
8408 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
8409 * conf/i386-ieee1275.rmk: Likewise.
8410 * conf/i386-pc.rmk: Likewise.
8411 * conf/powerpc-ieee1275.rmk: Likewise.
8412 * conf/sparc64-ieee1275.rmk: Likewise.
8413 * conf/x86_64-efi.rmk: Likewise.
8415 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
8417 * util/grub-editenv.c (main): If only a command is given, use
8418 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
8419 (usage): FILENAME is now optional and has a default.
8421 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
8423 Improve grub-mkconfig performance when there are several menu
8424 entries on a single filesystem.
8426 * util/grub.d/10_linux.in (linux_entry): Cache the output of
8427 prepare_grub_to_access_device.
8428 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
8429 * util/grub.d/30_os-prober.in: Likewise.
8431 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8433 * util/grub.d/10_freebsd.in: Remove.
8434 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
8435 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
8437 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8439 * docs/grub.cfg: Fix example usage of *BSD loaders.
8441 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8443 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
8444 grub_util_error() call.
8446 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8448 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
8449 `reserved_first_sector' member.
8450 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
8451 `reserved_first_sector' to 1.
8452 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
8453 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
8454 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
8455 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
8456 filesystems which begin at first sector.
8457 (options): New option --skip-fs-probe.
8458 (main): Handle --skip-fs-probe and pass it to setup().
8460 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8462 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
8463 (memset): Fix function prototype.
8465 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8466 2009-10-25 Vasily Averin <vvs@parallels.com>
8468 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
8469 `dirent.direntlen == 0'.
8471 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8473 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
8475 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
8477 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8479 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
8480 `__trampoline_setup' and `__ucmpdi2'.
8481 * include/grub/powerpc/libgcc.h: Only export symbols for functions
8482 that libgcc provides.
8484 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8486 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
8487 * include/grub/sparc64/libgcc.h (memset): Likewise.
8488 * include/grub/misc.h (memset, memcmp): New function prototypes.
8490 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8492 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
8494 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
8496 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8498 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
8499 * docs/grub.cfg: Compensate for recent change in multiboot
8500 loader (since 2009-08-14 it won't pass filename to payload).
8501 * util/grub.d/10_hurd.in: Likewise.
8503 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
8505 * config.guess: Update to latest version from config git
8507 * config.sub: Likewise.
8509 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
8511 Fix build on sparc64.
8513 * configure.ac: Perform checks for libgcc symbols before
8514 adding `-nostdlib' to LDFLAGS.
8516 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8518 Let user specify OpenBSD root device.
8520 * loader/i386/bsd.c (openbsd_root): New variable.
8521 (openbsd_opts): New option 'root'.
8522 (OPENBSD_ROOT_ARG): New macro.
8523 (grub_openbsd_boot): Use 'openbsd_root'.
8524 (grub_cmd_openbsd): Fill 'openbsd_root'.
8526 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
8528 * NEWS: Misc adjustments.
8530 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8532 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
8534 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
8536 * configure.ac: Bump version to 1.97.
8538 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
8540 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
8541 -mno-3dnow on x86 architectures. Some toolchains enable these
8542 features by default, but they rely on registers that aren't enabled
8543 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
8545 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
8547 Make entry text a bit more readable.
8549 * util/grub.d/10_linux.in: Add `with' before `Linux'.
8551 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8553 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
8555 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8557 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
8560 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8562 * configure.ac: Add missing dollar.
8564 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8566 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
8568 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
8569 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
8571 * include/grub/sparc64/libgcc.h: Likewise. Use
8572 preprocessor conditionals.
8574 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
8576 * conf/common.rmk (grub-dumpbios): Remove rule.
8577 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
8578 * util/grub-dumpbios.in: Remove file.
8580 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
8582 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
8583 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
8585 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
8586 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
8589 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
8590 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
8591 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
8592 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
8595 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
8597 * term/tparm.c: Switch to GPLv3.
8599 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
8601 * include/grub/i386/cpuid.h: Add header protection.
8603 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
8605 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
8607 * include/grub/i386/cpuid.h: New file.
8608 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
8609 (has_longmode): Rename to ...
8610 (grub_cpuid_has_longmode): ... this. Update all users. Remove
8612 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
8613 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
8614 on a CPU that doesn't implement AMD64 instruction set.
8616 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8618 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
8619 that version.texi is rebuilt on version number changes.
8621 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8623 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
8626 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8628 * util/i386/pc/grub-install.in: Source
8629 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
8630 that the --grub-probe option will work.
8631 * util/sparc64/ieee1275/grub-install.in: Likewise.
8633 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
8635 * configure.ac: Bump version to 1.97~beta4.
8637 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
8639 Resync grub-mkdevicemap in x86_64-efi.
8641 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
8642 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
8645 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
8647 * util/grub-editenv.c (create_envblk_file): Write new block with a
8648 .new suffix and then rename it into place, to ensure atomic
8651 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
8653 Do not automatically install headers.
8655 * Makefile.in (include_DATA): Remove. Update all users.
8657 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
8659 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
8660 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
8662 * util/osdetect.lua: Remove.
8663 * script/lua/lauxlib.c: Likewise.
8664 * script/lua/ldebug.c: Likewise.
8665 * script/lua/grub_main.c: Likewise.
8666 * script/lua/lauxlib.h: Likewise.
8667 * script/lua/ldebug.h: Likewise.
8668 * script/lua/ltablib.c: Likewise.
8669 * script/lua/liolib.c: Likewise.
8670 * script/lua/lstrlib.c: Likewise.
8671 * script/lua/lualib.h: Likewise.
8672 * script/lua/ldo.c: Likewise.
8673 * script/lua/ldump.c: Likewise.
8674 * script/lua/ldo.h: Likewise.
8675 * script/lua/loslib.c: Likewise.
8676 * script/lua/lundump.c: Likewise.
8677 * script/lua/grub_lib.c: Likewise.
8678 * script/lua/ldblib.c: Likewise.
8679 * script/lua/lundump.h: Likewise.
8680 * script/lua/lmem.c: Likewise.
8681 * script/lua/grub_lib.h: Likewise.
8682 * script/lua/lmathlib.c: Likewise.
8683 * script/lua/lstate.c: Likewise.
8684 * script/lua/ltm.c: Likewise.
8685 * script/lua/lvm.c: Likewise.
8686 * script/lua/lmem.h: Likewise.
8687 * script/lua/lstate.h: Likewise.
8688 * script/lua/ltm.h: Likewise.
8689 * script/lua/ltable.c: Likewise.
8690 * script/lua/lvm.h: Likewise.
8691 * script/lua/llex.c: Likewise.
8692 * script/lua/lgc.c: Likewise.
8693 * script/lua/grub_lua.h: Likewise.
8694 * script/lua/loadlib.c: Likewise.
8695 * script/lua/lfunc.c: Likewise.
8696 * script/lua/lopcodes.c: Likewise.
8697 * script/lua/lparser.c: Likewise.
8698 * script/lua/ltable.h: Likewise.
8699 * script/lua/llex.h: Likewise.
8700 * script/lua/lgc.h: Likewise.
8701 * script/lua/lfunc.h: Likewise.
8702 * script/lua/lbaselib.c: Likewise.
8703 * script/lua/lopcodes.h: Likewise.
8704 * script/lua/lparser.h: Likewise.
8705 * script/lua/lzio.c: Likewise.
8706 * script/lua/linit.c: Likewise.
8707 * script/lua/lobject.c: Likewise.
8708 * script/lua/llimits.h: Likewise.
8709 * script/lua/lstring.c: Likewise.
8710 * script/lua/lzio.h: Likewise.
8711 * script/lua/lapi.c: Likewise.
8712 * script/lua/lcode.c: Likewise.
8713 * script/lua/lua.h: Likewise.
8714 * script/lua/lobject.h: Likewise.
8715 * script/lua/lstring.h: Likewise.
8716 * script/lua/lapi.h: Likewise.
8717 * script/lua/lcode.h: Likewise.
8718 * script/lua/luaconf.h: Likewise.
8720 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
8722 * docs/grub.texi (Command-line and menu entry commands): Document
8723 date and echo commands.
8725 2009-09-24 Pavel Roskin <proski@gnu.org>
8727 * include/grub/kernel.h (struct grub_module_header): Remove
8728 `grub_module_header_types'. Make `type' unsigned. Make `size'
8729 32-bit on all platforms.
8730 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
8731 8-bit field. Use grub_host_to_target32() for `size'.
8732 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
8733 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
8734 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
8736 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8738 Fix "lost keypress" bug in at_keyboard.
8740 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
8741 Checks for readyness of input buffer (without flushing it).
8742 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
8743 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
8745 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8747 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
8748 size check within GRUB_MACHINE_PCBIOS section.
8750 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8752 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
8754 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
8755 KEYBOARD_ISREADY check.
8756 (grub_at_keyboard_checkkey): Rename to ...
8757 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
8758 Remove gratuitous cast.
8760 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
8762 * configure.ac: Call AC_PROG_MKDIR_P.
8763 * Makefile.in (docs/stamp-vti): Create docs directory. Create
8764 version.texi in $(builddir) rather than $(srcdir).
8765 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
8766 to makeinfo's @include search path.
8768 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
8770 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
8772 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
8774 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
8777 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
8779 Build info documentation. Some code borrowed from Automake.
8781 * configure.ac: Check for makeinfo.
8782 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
8783 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
8785 (MOSTLYCLEANFILES): Add vti.tmp.
8786 (docs/version.texi, docs/stamp-vti): Update automatically.
8787 (docs/grub.info): Build info documentation. Use --force and ignore
8789 (all-local): Add $(INFOS).
8790 (install-local): Install info files.
8791 (uninstall): Uninstall info files.
8792 * docs/version.texi: Remove from revision control. This file is
8793 automatically generated on build now.
8794 * gendistlist.sh: Add `*.info'.
8796 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
8798 * kern/term.c: Fix indentation.
8800 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
8802 * util/hostdisk.c: Fix a comment.
8804 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
8806 Fix regression introduced in r2539.
8808 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
8811 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
8813 * util/grub.d/30_os-prober.in: Don't throw away stderr from
8814 os-prober. Under normal operation, it does not print anything to
8815 stderr; if it does, we need to debug it, and throwing away stderr
8816 makes that excessively difficult.
8818 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
8820 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
8822 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8824 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
8825 AC_LANG_PROGRAM from autoconf.
8826 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
8827 prototypes (fixes warning).
8829 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
8830 `--disable-werror' was used.
8832 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8834 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
8835 uninitialized `lastaddr'.
8837 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8839 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
8841 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8843 * commands/test.c (get_fileinfo): Return immediately if
8844 grub_fs_probe fails.
8846 2009-09-14 José Martínez <xosemp@gmail.com>
8848 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
8850 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8852 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
8855 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
8857 * configure.ac: Remove --enable-grub-pe2elf. Only build
8858 grub-pe2elf when needed by the build system itself.
8859 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
8861 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8863 * configure.ac: Bump version to 1.97~beta3.
8864 * docs/version.texi: Likewise.
8866 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8868 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
8869 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
8871 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
8872 (grub_linux_setup_video): ... to here (with some adjustments).
8874 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8876 Fix memory corruption issue (spotted by Colin Watson).
8878 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
8879 causing returned size to be stored in an incorrect memory location.
8880 Fix use of uninitialized value when storing the returned size.
8882 2009-09-12 Yves Blusseau <blusseau@zetam.org>
8884 Change clean rules to properly remove files
8886 * genmk.rb: add new clean rules
8887 * Makefile.in (clean): add the new targets
8888 (mostlyclean): likewise
8890 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8892 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
8894 * fs/ntfs.c (init_file): Understand 64-bit sizes for
8897 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8899 * configure.ac: Don't look for help2man when cross-compiling. Fixes
8902 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8904 * util/grub-mkconfig.in: Make the created config mode 400 and
8905 print a warning if it fails.
8907 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
8909 * util/grub.d/40_custom.in: Ask user to type custom entries below
8910 comment, rather than below 'exec tail' line.
8912 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8914 * util/grub.d/40_custom.in: Make sure that the explanatory text is
8915 visible in grub.cfg.
8917 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8919 * util/grub.d/40_custom.in: Make it a little clearer how to use this
8922 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8924 * docs/grub.cfg: Add an example menu entry for memtest86+.
8926 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
8928 * config.guess: Update to latest version from config git.
8929 * config.sub: Likewise.
8931 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
8933 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
8934 unknown-command case. Fixes bug #27320.
8936 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
8938 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
8939 `help' if the command exists.
8941 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
8943 * INSTALL: Require GCC 4.1.3 or later.
8945 2009-09-06 Yves Blusseau <blusseau@zetam.org>
8947 * Makefile.in (RMKFILES): add i386-qemu.rmk
8948 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
8949 $(srcdir)/stamp-h.in
8951 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
8953 * util/grub-probe.c (probe): Comment out buggy codepath, which
8954 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
8955 should be re-enabled after 1.97.
8957 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
8959 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
8962 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
8964 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
8965 unnecessary calls to grub_error.
8967 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
8969 * NEWS: Mention `keystatus' and Unicode fonts.
8971 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
8973 * configure.ac: Bump version to 1.97~beta2.
8974 * docs/version.texi: Likewise.
8976 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
8978 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
8979 containing unwind information in some cases where it previously did
8980 not. Use -fno-dwarf2-cfi-asm if available to restore the old
8981 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
8984 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
8986 Embedding loadenv module into grub-emu
8988 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
8990 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
8991 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
8992 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
8993 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
8994 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
8995 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
8997 2009-09-03 Magnus Granberg <zorry@ume.nu>
8999 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
9000 include -fPIE in the default specs.
9001 * configure.ac: Check if pie_possible is yes and add -fno-PIE
9004 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
9006 * INSTALL: Note that GNU Bison 2.3 or later is required.
9008 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
9010 * kern/i386/pc/startup.S: Fix typo.
9012 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
9014 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
9017 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
9019 * docs/grub.texi (Naming convention): Describe one-based partition
9021 (Device syntax): Likewise.
9022 (File name syntax): Likewise.
9023 (Block list syntax): Likewise.
9024 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
9026 (File name syntax): Likewise.
9027 (Command-line and menu entry commands): Document acpi, blocklist,
9028 crc, export, insmod, keystatus, ls, set, and unset commands.
9030 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
9032 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
9033 to avoid implying that only one of --shift, --ctrl, or --alt may be
9036 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
9038 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
9039 rather than comparing against S_IFREG, which will almost never work.
9041 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
9043 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
9044 (write_blocklists): Likewise.
9046 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
9048 * script/lua/grub_lua.h (fputs): Supply a format string as the first
9049 argument to grub_printf.
9051 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
9053 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
9056 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9058 * kern/file.c (grub_file_read): Spelling fix
9060 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9062 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
9063 loading of headers in some cases.
9065 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
9067 * configure.ac: Bump version to 1.97~beta1.
9068 * docs/version.texi: Likewise.
9070 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
9072 * include/grub/i386/xnu.h: Add license header.
9073 include grub/err.h explicitly.
9075 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
9077 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
9078 to `ufs' in the vfs.root.mountfrom kernel parameter.
9080 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
9082 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
9084 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
9085 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
9087 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
9090 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
9092 * kern/file.c (grub_file_read): Check offset.
9093 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
9094 * fs/jfs.c (grub_jfs_read_file): Likewise.
9095 * fs/ntfs.c (grub_ntfs_read): Likewise.
9096 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
9097 * fs/minix.c (grub_minix_read_file): Correct offset check.
9098 * fs/ufs.c (grub_ufs_read_file): Likewise.
9100 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
9102 * term/i386/pc/console.c (bios_data_area): Cast
9103 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
9105 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
9107 1-bit optimised blitters.
9109 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
9111 (grub_video_fbblit_replace_24bit_1bit): Likewise.
9112 (grub_video_fbblit_replace_16bit_1bit): Likewise.
9113 (grub_video_fbblit_replace_8bit_1bit): Likewise.
9114 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
9115 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
9116 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
9117 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
9119 (grub_video_fbblit_replace_24bit_1bit): Likewise.
9120 (grub_video_fbblit_replace_16bit_1bit): Likewise.
9121 (grub_video_fbblit_replace_8bit_1bit): Likewise.
9122 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
9123 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
9124 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
9125 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
9127 * video/video.c (grub_video_get_blit_format): Return
9128 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
9130 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
9132 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
9133 the first argument to grub_printf.
9135 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
9136 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
9138 Add `getkeystatus' terminal method. Add a new `keystatus' command
9141 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
9142 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
9143 modifier key bitmasks.
9144 (struct grub_term_input): Add `getkeystatus' member.
9145 (grub_getkeystatus): Add prototype.
9146 * kern/term.c (grub_getkeystatus): New function.
9148 * include/grub/i386/pc/memory.h
9149 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
9150 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
9152 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
9153 (grub_console_term_input): Set `getkeystatus' member.
9154 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
9156 (grub_usb_keyboard_getreport): Likewise.
9157 (grub_usb_keyboard_checkkey): Likewise.
9158 (grub_usb_keyboard_getkeystatus): New function.
9159 (grub_usb_keyboard_term): Set `getkeystatus' member.
9161 * commands/keystatus.c: New file.
9162 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
9163 (keystatus_mod_SOURCES): New variable.
9164 (keystatus_mod_CFLAGS): Likewise.
9165 (keystatus_mod_LDFLAGS): Likewise.
9166 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
9167 commands/keystatus.c.
9168 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9169 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9170 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9171 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9172 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9173 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
9175 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
9177 Split befs.mod and afs.mod into *_be.mod and *.mod
9179 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
9180 (grub_fstest_SOURCES): Likewise.
9181 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
9182 (afs_be_mod_SOURCES): New variable.
9183 (afs_be_mod_CFLAGS): Likewise.
9184 (afs_be_mod_LDFLAGS): Likewise.
9185 (befs_be_mod_SOURCES): Likewise.
9186 (befs_be_mod_CFLAGS): Likewise.
9187 (befs_be_mod_LDFLAGS): Likewise.
9188 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
9189 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9190 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9191 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
9192 (grub_emu_SOURCES): Likewise.
9193 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9194 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9195 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
9196 * fs/afs_be.c: New file.
9197 * fs/befs_be.c: New file.
9198 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
9199 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
9200 (U16): Replaced with ...
9201 (grub_afs_to_cpu16): ...this. All users updated.
9202 (U32): Replaced with ...
9203 (grub_afs_to_cpu32): ...this. All users updated.
9204 (U64): Replaced with ...
9205 (grub_afs_to_cpu64): ...this. All users updated.
9206 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
9207 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
9208 (grub_afs_validate_sblock): Check only one endianness.
9209 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
9210 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
9211 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
9212 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
9213 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
9214 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
9215 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
9216 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
9218 2009-08-26 Bean <bean123ch@gmail.com>
9220 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
9222 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
9223 (grub_xfs_inode_block): Change return type to grub_uint64_t.
9224 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
9226 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9228 NetBSD memory map support.
9230 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
9231 (grub_netbsd_btinfo_mmap_header): New structure.
9232 (grub_netbsd_btinfo_mmap_entry): Likewise.
9233 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
9235 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9237 Enable bsd.mod on coreboot.
9239 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
9240 (bsd_mod_SOURCES): New variable.
9241 (bsd_mod_CFLAGS): Likewise.
9242 (bsd_mod_LDFLAGS): Likewise.
9243 (bsd_mod_ASFLAGS): Likewise.
9244 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
9245 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
9247 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9249 Cleanup NetBSD root support.
9251 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
9252 grub_bsd_get_device.
9255 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
9257 * util/grub.d/00_header.in: Move check for the video backend of
9258 gfxterm from here ...
9259 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
9260 a suitable video backend.
9262 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9264 Fix breakage in grub-setup.
9266 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
9267 "msdos_partition_map".
9269 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9271 Fix breakage in normal/auth.c.
9273 * normal/auth.c (grub_iswordseparator): New function.
9275 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9277 Authentication support.
9279 * commands/password.c: New file.
9280 * conf/common.rmk (pkglib_MODULES): Add password.mod.
9281 (password_mod_SOURCES): New variable.
9282 (password_mod_CFLAGS): Likewise.
9283 (password_mod_LDFLAGS): Likewise.
9284 (normal_mod_SOURCES): Add normal/auth.c.
9285 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
9287 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9288 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9289 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9290 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9291 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9292 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
9293 * include/grub/auth.h: New file.
9294 * include/grub/err.h (grub_err_t): New enum value
9295 GRUB_ERR_ACCESS_DENIED.
9296 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
9298 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
9299 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
9301 * normal/auth.c: New file.
9302 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
9303 (grub_cmdline_run): Don't allow to go to command line without
9305 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
9306 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
9307 menuentry without superuser rights.
9308 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
9309 user isn't a superuser.
9311 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9313 Save space by inlining misc.c functions.
9315 * kern/misc.c (grub_iswordseparator): Made static.
9316 * kern/misc.c (grub_strcat): Moved from here ...
9317 * include/grub/misc.h (grub_strcat): ... here. Inlined.
9318 * kern/misc.c (grub_strncat): Moved from here ...
9319 * include/grub/misc.h (grub_strncat): ... here. Inlined.
9320 * kern/misc.c (grub_strcasecmp): Moved from here ...
9321 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
9322 * kern/misc.c (grub_strncasecmp): Moved from here ...
9323 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
9324 * kern/misc.c (grub_isalpha): Moved from here ...
9325 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
9326 * kern/misc.c (grub_isdigit): Moved from here ...
9327 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
9328 * kern/misc.c (grub_isgraph): Moved from here ...
9329 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
9330 * kern/misc.c (grub_tolower): Moved from here ...
9331 * include/grub/misc.h (grub_tolower): ... here. Inlined.
9333 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9335 * script/sh/function.c (grub_script_function_find): Cut error message
9336 not to flood terminal.
9337 * script/sh/lexer.c (grub_script_yylex): Remove command line length
9339 * script/sh/script.c (grub_script_arg_add): Duplicate string.
9341 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
9343 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
9344 `report' grub_uint8_t *.
9345 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
9346 Use a 50-millisecond timeout rather than just repeating
9347 grub_usb_keyboard_getreport 50 times.
9348 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
9350 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9352 Rename *_partition_map to part_*
9354 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
9355 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
9356 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
9357 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
9359 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
9361 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
9362 * util/grub-probe.c (probe_partmap): Don't transform partition name
9365 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9367 Fix OpenBSD and NetBSD support.
9369 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
9370 memory address conflict.
9371 (OPENBSD_MMAP_ACPI): New definition.
9372 (OPENBSD_MMAP_NVS): Likewise.
9373 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
9374 and OPENBSD_MMAP_NVS.
9375 Add memory map terminator
9376 Explicit cast when calling grub_unix_real_boot.
9377 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
9379 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9381 Let user specify NetBSD root device.
9383 * loader/i386/bsd.c (netbsd_root): New variable.
9384 (netbsd_opts): New option 'root'.
9385 (NETBSD_ROOT_ARG): New macro.
9386 (grub_netbsd_boot): Use 'netbsd_root'.
9387 (grub_bsd_unload): Free 'netbsd_root'.
9388 (grub_cmd_netbsd): Fill 'netbsd_root'.
9390 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9392 Support for 64-bit NetBSD.
9394 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
9395 point when booting non-FreeBSD.
9397 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9399 Support --no-smp and --no-acpi for NetBSD.
9401 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
9402 (NETBSD_AB_NOACPI): Likewise.
9403 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
9404 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
9406 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9408 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
9410 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
9411 errors. Call grub_error when needed.
9413 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9415 * commands/search.c (search_fs): Try searching without autoload first.
9416 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
9417 filesystem module explicitly for faster booting.
9419 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
9421 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
9423 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
9425 * util/grub.d/30_os-prober.in: Disable os-prober if
9426 `GRUB_DISABLE_OS_PROBER' was set to true.
9428 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
9430 * partmap/pc.c: Rename to ...
9431 * partmap/msdos.c: ... this. Update all users.
9432 (grub_pc_partition_map): Rename to ...
9433 (grub_msdos_partition_map): ... this. Update all users.
9435 * parttool/pcpart.c: Rename to ...
9436 * parttool/msdospart.c: ... this. Update all users.
9438 * include/grub/pc_partition.h: Rename to ...
9439 * include/grub/msdos_partition.h: ... this. Update all users.
9440 (grub_pc_partition_bsd_entry): Rename to ...
9441 (grub_msdos_partition_bsd_entry): ... this. Update all users.
9442 (grub_pc_partition_disk_label): Rename to ...
9443 (grub_msdos_partition_disk_label): ... this. Update all users.
9444 (grub_pc_partition_entry): Rename to ...
9445 (grub_msdos_partition_entry): ... this. Update all users.
9446 (grub_pc_partition_mbr): Rename to ...
9447 (grub_msdos_partition_mbr): ... this. Update all users.
9448 (grub_pc_partition): Rename to ...
9449 (grub_msdos_partition): ... this. Update all users.
9450 (grub_pc_partition_is_empty): Rename to ...
9451 (grub_msdos_partition_is_empty): ... this. Update all users.
9452 (grub_pc_partition_is_extended): Rename to ...
9453 (grub_msdos_partition_is_extended): ... this. Update all users.
9454 (grub_pc_partition_is_bsd): Rename to ...
9455 (grub_msdos_partition_is_bsd): ... this. Update all users.
9457 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
9458 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
9459 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
9460 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
9461 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
9462 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
9463 (gpt_mod_LDFLAGS): Rename to ...
9464 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
9465 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
9466 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
9467 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
9468 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
9469 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
9470 (part_gpt_mod_LDFLAGS): ... this.
9471 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
9472 `pcpart.mod' to `msdospart.mod'.
9473 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
9475 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
9476 (msdospart_mod_LDFLAGS): ... this.
9478 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9480 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
9481 (openbsd_opts): Likewise.
9482 (netbsd_opts): Likewise.
9483 (freebsd_flags): Added 0 terminator.
9484 (openbsd_flags): Likewise.
9485 (netbsd_flags): Likewise.
9486 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
9487 (grub_cmd_freebsd): Transformed into extended command.
9488 (grub_cmd_openbsd): Likewise.
9489 (grub_cmd_netbsd): Likewise.
9490 (cmd_freebsd): Changed type to grub_extcmd_t.
9491 (cmd_openbsd): Likewise.
9492 (cmd_netbsd): Likewise.
9493 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
9494 grub_cmd_openbsd as extended commands.
9495 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
9496 cmd_netbsd and cmd_openbsd
9498 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
9500 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
9502 2009-08-21 Pavel Roskin <proski@gnu.org>
9504 * Makefile.in (install-local): When checking if a file is in the
9505 build directory, use "test -e" to detect symlinks.
9507 * Makefile.in (install-local): Remove all files in
9508 $(DESTDIR)$(pkglibdir) before installing new files there.
9510 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
9512 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
9515 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
9517 * util/grub-mkconfig.in: Don't use gfxterm by default if not
9518 explicitly specified by the user.
9520 2009-08-18 Pavel Roskin <proski@gnu.org>
9522 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
9523 grub_uint8_t pointer for data.
9524 * include/grub/fbutil.h (struct grub_video_fbblit_info):
9526 * video/fb/fbutil.c: Remove unnecessary casts.
9528 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
9532 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
9533 (grub_vbe_set_video_mode): Save active mode info
9534 only after setting the mode.
9535 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
9538 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
9540 Rename variables for clarity.
9542 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
9543 (active_vbe_mode_info): ... this. All users updated.
9544 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
9546 (initial_mode): Rename to ...
9547 (initial_vbe_mode): ... this. All users updated.
9548 (mode_in_use): Rename to ..
9549 (vbe_mode_in_use): ... this. All users updated.
9550 (mode_list): Rename to ..
9551 (vbe_mode_list): ... this. All users updated.
9552 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
9553 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
9554 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
9555 'mode_list_size' to 'vbe_mode_list_size'.
9556 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
9557 'best_mode_info' to 'best_vbe_mode_info' and
9558 'best_mode' to 'best_vbe_mode'
9560 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
9562 Remove duplicate grub_video_fb_get_video_ptr.
9564 * include/grub/fbutil.h (get_data_ptr): Rename to ...
9565 (grub_video_fb_get_video_ptr): ... this.
9566 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
9567 * video/fb/fbutil.c: Add comment about addressing.
9568 (get_data_ptr): Rename to ...
9569 (grub_video_fb_get_video_ptr): ... this. All users updated.
9570 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
9572 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
9574 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
9575 grub_dprintf() that was just added.
9577 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
9579 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
9580 (DEFAULT_VIDEO_MODE): Remove macros.
9581 (grub_linux_boot): Remove assumption that Linux has FB support,
9582 and use "text" as default video mode.
9584 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
9586 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
9588 * fs/fat.c (grub_fat_read_data): Likewise.
9590 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9592 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
9594 (grub_module): Likewise.
9596 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9598 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
9599 mbi->cmdline but free playground.
9601 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9603 Handle group offset on UFS1.
9605 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
9606 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
9608 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9610 Split ufs.mod into ufs1.mod and ufs2.mod.
9612 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
9613 (grub_fstest_SOURCES): Likewise.
9614 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
9615 (ufs_mod_SOURCES): Remove.
9616 (ufs_mod_CFLAGS): Likewise.
9617 (ufs_mod_LDFLAGS): Likewise.
9618 (ufs1_mod_SOURCES): New variable.
9619 (ufs1_mod_CFLAGS): Likewise.
9620 (ufs1_mod_LDFLAGS): Likewise.
9621 (ufs2_mod_SOURCES): New variable.
9622 (ufs2_mod_CFLAGS): Likewise.
9623 (ufs2_mod_LDFLAGS): Likewise.
9624 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
9625 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
9627 (grub_emu_SOURCES): Likewise.
9628 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9629 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9630 (grub_setup_SOURCES): Likewise.
9631 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9632 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
9633 (grub_setup_SOURCES): Likewise.
9634 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
9636 * fs/ufs2.c: New file.
9637 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
9639 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9643 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
9644 subsystem at the end.
9645 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
9646 (video_fb_mod_SOURCES): New variable.
9647 (video_fb_mod_CFLAGS): Likewise.
9648 (video_fb_mod_LDFLAGS): Likewise.
9649 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
9650 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
9651 * video/i386/pc/vbeblit.c: Moved from here ...
9652 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
9653 * video/i386/pc/vbefill.c: Moved from here ...
9654 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
9655 * video/i386/pc/vbeutil.c: Moved from here ...
9656 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
9657 * include/grub/i386/pc/vbeblit.h: Moved from here ...
9658 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
9659 * include/grub/i386/pc/vbefill.h: Moved from here ...
9660 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
9661 * include/grub/i386/pc/vbeutil.h: Moved from here ...
9662 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
9663 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
9664 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
9665 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
9666 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
9667 (grub_video_adapter): Added 'get_info_and_fini'.
9668 (grub_video_get_info_and_fini): New prototype.
9669 (grub_video_set_mode): make modestring const char *.
9670 * loader/i386/linux.c (grub_linux_setup_video): Use
9671 grub_video_get_info_and_fini.
9672 (grub_linux_boot): Move modesetting just before booting.
9673 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
9674 grub_video_get_info_and_fini.
9675 * video/i386/pc/vbe.c: Moved framebuffer part ...
9676 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
9677 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
9678 grub_video_fbstd_colors and grub_video_fb_set_palette.
9679 (grub_video_vbe_init): Clear 'framebuffer' variable and use
9681 (grub_video_vbe_fini): Use grub_video_fb_fini.
9682 (grub_video_vbe_setup): Use framebuffer.render_target instead of
9683 render_target and use grub_video_fb_set_active_render_target and
9684 grub_video_fb_set_palette.
9685 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
9686 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
9687 (grub_video_vbe_adapter): Use framebuffer.
9688 * video/video.c (grub_video_get_info_and_fini): New function.
9689 (grub_video_set_mode): Make modestring const char *.
9690 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
9691 values are already initialised.
9693 2009-08-14 Pavel Roskin <proski@gnu.org>
9695 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
9697 * boot/i386/pc/diskboot.S: Likewise.
9698 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
9699 sectors allow compilation on MacOSX.
9700 * conf/i386-pc.rmk: Enable unconditional compilation of
9703 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
9705 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
9706 * util/grub.d/00_header.in: Enter interruptible sleep if
9707 GRUB_HIDDEN_TIMEOUT is set.
9709 2009-08-13 Yves Blusseau <blusseau@zetam.org>
9711 * include/grub/symbol.h: Add the LOCAL macro.
9712 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
9715 2009-08-13 Pavel Roskin <proski@gnu.org>
9717 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
9718 any modern compilers we support.
9720 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
9721 Use local labels starting with "L_" so that Apple assembler
9722 knows they are local.
9724 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
9726 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
9727 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
9728 (bsd_kernel_types): ... this enum.
9730 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
9731 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
9732 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
9734 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
9735 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
9736 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
9739 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
9741 * util/grub-dumpdevtree: Moved from here ...
9742 * util/i386/efi/grub-dumpdevtree: ... to here.
9743 (hexify): New function. Converts a string to its hex version.
9744 Generate hex versions of "efi" and "device-properties" by calling
9745 hexify() on the ASCII strings rather than by hardcoding numbers.
9747 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
9749 * fs/jfs.c: Update copyright year.
9751 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
9753 * util/grub.d/00_header.in: Fix a comment.
9754 * util/grub.d/10_linux.in: Likewise.
9755 * util/grub.d/10_windows.in: Likewise.
9756 * util/grub.d/10_hurd.in: Likewise.
9758 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
9760 * util/grub-mkconfig.in: Allow the user to specify the used font
9763 2009-08-08 Pavel Roskin <proski@gnu.org>
9765 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
9766 available, xfs.mod needs it now.
9768 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
9769 the "g" modifier in sed when the intention is to strip something
9770 once. This fixes comparison of kernels with multiple dashes.
9772 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
9773 on it. Add missing space before closing bracket. Fix
9774 misleading formatting.
9776 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9778 * docs/grub.texi: Major overhaul. Remove all sections that are
9779 specific to GRUB Legacy, or mostly composed of Legacy-specific
9782 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9784 * docs/version.texi: New file. Provides version information for
9787 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9789 * docs/grub.texi: Update CVS information to SVN.
9790 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
9792 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9794 * util/grub-mkconfig.in: Remove a wrong `fi'.
9796 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9798 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
9799 (grub_jfs_uuid): New function.
9800 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
9802 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9804 * util/grub-mkconfig_lib.in (font_path): Move the functionality
9806 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
9807 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
9809 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9811 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
9812 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
9815 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
9816 not just "vmlinu[zx]".
9818 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
9821 * util/grub.d/10_linux.in (find_latest): Moved from here ...
9822 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
9825 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9827 * util/grub.d/10_freebsd.in: Use an absolute device path for
9828 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
9830 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
9832 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
9833 handling of multiple abstraction modules.
9835 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
9837 Fix a bug resulting in black screen when loading Linux using a
9840 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
9843 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
9844 (grub_vbe_bios_getset_dac_palette_width): New function.
9845 (grub_vbe_bios_get_dac_palette_width)
9846 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
9847 grub_vbe_bios_getset_dac_palette_width()).
9849 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
9850 check for return status.
9851 (grub_vbe_get_video_mode_info): When getting information for a packed
9852 mode (<= 8 bpp), obtain DAC palette width using
9853 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
9854 {red,green,blue}_mark_size.
9856 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
9858 * commands/search.c (options): Fix help output to match actual code.
9860 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
9862 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
9865 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9867 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
9870 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9872 Support Apple partition map with sector size different from 512 bytes.
9874 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
9875 (apple_partition_map_iterate): Respect 'aheader.blocksize'
9876 and 'apart.partmap_size'.
9878 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9879 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
9883 * commands/i386/cpuid.c (options): New variable.
9884 (grub_cmd_cpuid): Return real error.
9885 (GRUB_MOD_INIT(cpuid)): Declare options.
9887 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
9889 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
9892 2009-07-31 Bean <bean123ch@gmail.com>
9894 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
9896 (grub_fshelp_node): Move inode field to the end.
9897 (grub_xfs_data): Remove inode field.
9898 (grub_xfs_inode_block): Calculate inode size using sblock.
9899 (grub_xfs_inode_offset): Likewise.
9900 (grub_xfs_read_inode): Calculate inode size using sblock.
9901 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
9902 (grub_xfs_iterate_dir): Calculate inode size using sblock.
9903 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
9904 to match inode size.
9905 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
9906 not accessible when data is null.
9907 (grub_xfs_open): Likewise.
9909 2009-07-31 Bean <bean123ch@gmail.com>
9911 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
9912 Don't change pv->disk if it's already set.
9914 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
9915 (grub_raid_register): ... here.
9916 (grub_raid_rescan): Removed.
9918 * include/grub/raid.h (grub_raid_rescan): Removed.
9920 * util/grub-fstest.c: Remove include file <grub/raid.h>.
9921 (fstest): Replace grub_raid_rescan with module fini function followed
9924 * util/grub-probe.c: Add include file <grub/raid.h>.
9925 (probe_raid_level): New function.
9926 (probe): Detect abstraction by walking the disk device, support two
9927 level of abstraction (LVM on RAID) when detecting partition map.
9929 2009-07-31 Pavel Roskin <proski@gnu.org>
9931 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
9932 to grub_zalloc(), it was erroneous.
9933 Reported by Bean <bean123ch@gmail.com>
9935 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
9937 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
9938 embedding zone, not only the first one.
9940 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
9942 * term/gfxterm.c (clear_char): New function.
9943 (grub_virtual_screen_setup): Use clear_char.
9944 (scroll_up): Likewise.
9945 (grub_virtual_screen_cls): Likewise.
9947 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
9949 * util/deviceiter.c (get_acceleraid_disk_name): New static
9951 (grub_util_iterate_devices): Handle Accelraid devices.
9952 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
9954 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
9956 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
9957 separator for the suggested gfxpayload string (';' collides with the
9958 parser and needs escaping).
9960 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
9962 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
9963 Clear direction flag before jumping to OS.
9964 (grub_multiboot2_real_boot): Likewise.
9966 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
9968 * util/i386/pc/grub-install: Fix parsing of --disk-module
9971 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
9973 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
9976 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
9978 * util/grub-mkconfig.in (package_version): New variable.
9979 Use it do display the version.
9981 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
9983 * kern/file.c (grub_file_open): Revert to previous check with
9986 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9988 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
9989 from help line. It's out of sync with code.
9991 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9993 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
9994 entries on failed boot.
9996 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
9998 * kern/file.c (grub_file_open): Fix an error check.
10000 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
10002 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
10003 partition map couldn't be identified.
10005 2009-07-23 Pavel Roskin <proski@gnu.org>
10007 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
10008 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
10009 case of little endian words becomes just an optimization.
10010 Respect const modifier.
10011 (md5_final): Use code that doesn't depend on endianness.
10013 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
10014 to avoid loss of upper bits if align is unsigned and shorter
10017 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
10019 UUID support for UFS
10021 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
10022 (grub_ufs_uuid): New function.
10023 (grub_ufs_fs): add .uuid
10025 2009-07-21 Pavel Roskin <proski@gnu.org>
10027 * kern/dl.c (grub_dl_check_header): Make static.
10029 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
10031 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
10032 add drivemap for Vista. It breaks Windows 7.
10034 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
10036 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
10039 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10043 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
10044 (grub_fstest_SOURCES): Likewise.
10045 (pkglib_MODULES): Add befs.mod.
10046 (befs_mod_SOURCES): New variable.
10047 (befs_mod_CFLAGS): Likewise.
10048 (befs_mod_LDFLAGS): Likewise.
10049 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
10050 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10051 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10052 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
10053 (grub_setup_SOURCES): Likewise.
10054 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10055 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10056 (grub_setup_SOURCES): Likewise.
10057 * fs/befs.c: New file.
10058 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
10059 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
10060 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
10061 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
10062 (B_KEY_INDEX_ALIGN): New declaration.
10063 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
10064 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
10065 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
10066 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
10067 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
10068 (grub_afs_mount) [MODE_BFS]: Likewise.
10069 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
10070 (grub_afs_fs): Use GRUB_AFS_FSNAME
10071 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
10072 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
10073 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
10074 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
10076 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
10078 * util/getroot.c (find_root_device): Add support for MacOSX.
10079 * util/hostdisk.c: Likewise.
10081 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10083 * font/font.c (find_glyph): Check whether a font is present to avoid
10084 segmentation fault.
10086 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
10088 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
10090 2009-07-20 Pavel Roskin <proski@gnu.org>
10092 * configure.ac: Trim excessively wordy excuses.
10094 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10096 Add symlink, mtime and label support to AtheFS.
10098 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
10099 (grub_afs_iterate_dir): Handle symlinks.
10100 (grub_afs_open): Use grub_afs_read_symlink.
10101 (grub_afs_dir): Likewise.
10103 (grub_afs_label): New function.
10104 (grub_afs_fs): Add grub_afs_label.
10105 (grub_afs_read_symlink): New function.
10107 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10109 Fix AtheFS support.
10111 * fs/afs.c: Fix comments style.
10112 (grub_afs_blockrun): Declare as packed.
10113 (grub_afs_datastream): Likewise.
10114 (grub_afs_bnode): Likewise.
10115 (grub_afs_btree): Likewise.
10116 (grub_afs_sblock): Likewise.
10117 Declare `name' as char.
10118 (grub_afs_inode): Declare as packed.
10119 Change void *vnode to grub_uint32_t unused.
10120 (grub_afs_iterate_dir): Check that key_size is positive.
10121 (grub_afs_mount): Don't read superblock twice.
10122 (grub_afs_dir): Don't free node in case of error,
10123 grub_fshelp_find_file already handles this.
10124 (grub_afs_open): Likewise.
10126 2009-07-19 Pavel Roskin <proski@gnu.org>
10128 * Makefile.in: Remove LIBLZO and enable_lzo.
10129 * conf/i386-pc.rmk: Remove lzo support.
10130 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
10131 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
10133 * kern/i386/pc/lzo1x.S: Remove.
10134 * kern/i386/pc/startup.S: Remove lzo support.
10135 * util/i386/pc/grub-mkimage.c: Likewise.
10137 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
10139 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
10140 * fs/xfs.c (grub_xfs_dir): Likewise.
10141 * fs/afs.c (grub_afs_dir): Likewise.
10142 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
10143 (grub_iso9660_open): Likewise.
10144 * fs/jfs.c (grub_jfs_open): Likewise.
10145 * fs/ext2.c (grub_ext2_dir): Likewise.
10146 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
10147 * script/sh/lexer.c (grub_script_yylex): Likewise.
10149 2009-07-16 Pavel Roskin <proski@gnu.org>
10151 * configure.ac: Never add "-c" to CFLAGS.
10153 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
10155 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
10156 grub_cv_cc_efiemu should be used.
10158 * configure.ac: Typo fixes.
10160 * kern/mm.c (grub_zalloc): New function.
10161 (grub_debug_zalloc): Likewise.
10162 * include/grub/mm.h: Declare grub_zalloc() and
10163 grub_debug_zalloc().
10164 * util/misc.c (grub_zalloc): New function.
10165 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
10166 instead of grub_malloc(), remove unneeded initializations.
10167 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
10168 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
10169 * commands/parttool.c (grub_cmd_parttool): Likewise.
10170 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
10171 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
10172 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
10173 * disk/usbms.c (grub_usbms_finddevs): Likewise.
10174 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
10175 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
10176 (grub_cmd_efiemu_pnvram): Likewise.
10177 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
10178 * fs/iso9660.c (grub_iso9660_mount): Likewise.
10179 (grub_iso9660_iterate_dir): Likewise.
10180 * fs/jfs.c (grub_jfs_opendir): Likewise.
10181 * fs/ntfs.c (list_file): Likewise.
10182 (grub_ntfs_mount): Likewise.
10183 * kern/disk.c (grub_disk_open): Likewise.
10184 * kern/dl.c (grub_dl_load_core): Likewise.
10185 * kern/elf.c (grub_elf_file): Likewise.
10186 * kern/env.c (grub_env_context_open): Likewise.
10187 (grub_env_set): Likewise.
10188 (grub_env_set_data_slot): Likewise.
10189 * kern/file.c (grub_file_open): Likewise.
10190 * kern/fs.c (grub_fs_blocklist_open): Likewise.
10191 * loader/i386/multiboot.c (grub_module): Likewise.
10192 * loader/xnu.c (grub_xnu_create_key): Likewise.
10193 (grub_xnu_create_value): Likewise.
10194 * normal/main.c (grub_normal_add_menu_entry): Likewise.
10195 (read_config_file): Likewise.
10196 * normal/menu_entry.c (make_screen): Likewise.
10197 * partmap/sun.c (sun_partition_map_iterate): Likewise.
10198 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
10199 * script/sh/script.c (grub_script_parse): Likewise.
10200 * video/bitmap.c (grub_video_bitmap_create): Likewise.
10201 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
10202 * video/readers/png.c (grub_png_output_byte): Likewise.
10203 (grub_video_reader_png): Likewise.
10205 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10207 Enable all targets that can be built by default
10209 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
10210 grub-mkfont and grub-fstest if they can be built
10212 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10214 Fix hang and segmentation fault in grub-emu-usb
10216 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
10217 * util/usb.c (grub_libusb_devices): likewise
10218 (grub_libusb_init): rename to ...
10219 (GRUB_MOD_INIT (libusb)):...this
10220 (grub_libusb_fini): rename to ..
10221 (GRUB_MOD_FINI (libusb)):...this
10222 * disk/usbms.c (grub_usbms_transfer): fix retry logic
10223 * include/grub/disk.h (grub_raid_init): removed, it's useless
10224 (grub_raid_fini): likewise
10225 (grub_lvm_init): likewise
10226 (grub_lvm_fini): likewise
10227 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
10230 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10234 * Makefile.in (LIBUSB): new macro
10235 * genmk.rb (Utility/print_tail): new method
10236 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
10237 (top level): call util.print_tail at the end.
10239 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10241 Make FreeBSD accept zpool.cache
10243 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
10244 type is /boot/zfs/zpool.cache
10246 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10250 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
10251 correct wrong typedef
10252 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
10254 2009-07-15 Pavel Roskin <proski@gnu.org>
10256 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
10257 * kern/disk.c (struct grub_disk_cache): Likewise.
10259 * commands/probe.c (options): Typo fix.
10261 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
10262 Increase to 0x5a to accommodate FAT32. Adjust other offsets
10264 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
10266 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
10267 the end of "Error" to make the message more readable.
10269 * boot/i386/pc/boot.S (kernel_segment): Remove.
10270 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
10273 * boot/i386/pc/boot.S (boot_version): Remove.
10274 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
10277 * include/grub/i386/pc/boot.h: Sort all offsets.
10278 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
10279 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
10280 * boot/i386/pc/boot.S: Assert location of every offset listed in
10281 include/grub/i386/pc/boot.h.
10283 2009-07-13 Pavel Roskin <proski@gnu.org>
10285 * include/grub/i386/coreboot/machine.h: Rename
10286 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
10287 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
10288 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
10290 * kern/dl.c: Force native word size to suppress warnings when
10291 compiling grub-emu.
10293 * kern/device.c (grub_device_iterate): Change struct part_ent to
10294 hold the name, not a pointer to it. Use one grub_malloc() per
10295 partition, not two. Free partition_name if grub_malloc() fails.
10296 Set ents to NULL only before grub_partition_iterate() is called.
10298 2009-07-11 Bean <bean123ch@gmail.com>
10300 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
10303 2009-07-10 Bean <bean123ch@gmail.com>
10304 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
10306 * kern/ieee1275/openfw.c (grub_children_iterate)
10307 (grub_devalias_iterate): Fix size evaluation for property or path
10308 strings, which was broken since r2132.
10310 2009-07-07 Pavel Roskin <proski@gnu.org>
10312 * commands/search.c (search_file): Merge into ...
10313 (search_fs): ... this. Accept search type as argument.
10314 (grub_cmd_search): Pass search type to search_fs().
10316 * include/grub/util/console.h: New file.
10317 * util/console.c: Use it instead of grub/machine/console.h.
10318 * util/grub-emu.c: Likewise.
10320 * lib/arg.c (find_long_option): Remove.
10321 (find_long): Add `len' argument, make `s' const char *.
10322 (grub_arg_parse): Parse long options in place, not in a
10325 2009-07-06 Pavel Roskin <proski@gnu.org>
10327 * commands/search.c (search_fs): Fix potential NULL pointer
10330 * commands/search.c (search_fs): Replace QUID macro with quid_fn
10333 2009-07-06 Daniel Mierswa <impulze@impulze.org>
10335 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
10338 2009-07-05 Pavel Roskin <proski@gnu.org>
10340 * include/grub/i386/linux.h (struct linux_kernel_params):
10341 Restore padding3, it's still needed.
10343 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
10345 * util/osdetect.lua: Likewise.
10347 2009-07-05 Bean <bean123ch@gmail.com>
10349 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
10351 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
10352 (grub_lua_getenv): Likewise.
10353 (grub_lua_setenv): Likewise.
10354 (save_errno): New function.
10355 (push_result): Likewise.
10356 (grub_lua_enum_device): Likewise.
10357 (grub_lua_enum_file): Likewise.
10358 (grub_lua_file_open): Likewise.
10359 (grub_lua_file_close): Likewise.
10360 (grub_lua_file_seek): Likewise.
10361 (grub_lua_file_read): Likewise.
10362 (grub_lua_file_getline): Likewise.
10363 (grub_lua_file_getsize): Likewise.
10364 (grub_lua_file_getpos): Likewise.
10365 (grub_lua_file_eof): Likewise.
10366 (grub_lua_file_exist): Likewise.
10367 (grub_lua_add_menu): Likewise.
10369 * script/lua/grub_lua.h (isupper): New inline function.
10370 (islower): Likewise.
10371 (ispunct): Likewise.
10372 (isxdigit): Likewise.
10373 (strcspn): Change to normal function.
10374 (strpbkr): New function declaration.
10375 (memchr): Likewise.
10377 * script/lua/grub_main.c (scan_str): New function.
10378 (strcspn): Likewise.
10379 (strpbrk): Likewise.
10380 (memchr): Likewise.
10382 * script/lua/linit.c (lualibs): Enable the string library.
10384 * util/osdetect.lua: New file.
10386 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
10388 * include/grub/i386/linux.h (struct linux_kernel_params): Add
10389 `capabilities' member.
10391 2009-07-02 Pavel Roskin <proski@gnu.org>
10393 * genparttoollist.sh: Add missing newline at the end.
10395 2009-07-01 Pavel Roskin <proski@gnu.org>
10397 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
10399 * util/hostdisk.c (open_device): Remove `const' from
10400 `sysctl_size', as sysctlbyname() can change it (in this case it
10401 doesn't actually happen).
10403 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
10404 using signed long int constants.
10406 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
10407 constant to avoid a warning on FreeBSD.
10409 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
10412 * Makefile.in: Install include/grub/machine symlink.
10414 * Makefile.in: When installing symlinks, use "cp -fR", which
10415 works on FreeBSD and MacOSX.
10416 From Yves Blusseau <cl7m42e02@sneakemail.com>
10418 * kern/dl.c (grub_dl_resolve_symbol): Make static.
10419 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
10421 * util/misc.c: Move grub_reboot() and grub_halt() ...
10422 * util/grub-emu.c: ... here. Make main_env static.
10423 * include/grub/util/misc.h: Remove main_env.
10425 * kern/mm.c: Use correct format to print size_t.
10427 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
10428 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
10429 * kern/powerpc/dl.c: Likewise.
10430 * kern/sparc64/dl.c: Likewise.
10431 * kern/x86_64/dl.c: Likewise.
10433 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
10435 Fix grub-emu build on sparc64-ieee1275.
10437 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
10438 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
10440 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
10442 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
10443 (grub_reboot, grub_halt): New functions.
10445 * util/i386/pc/misc.c: Delete. Update all users.
10446 * util/sparc64/ieee1275/misc.c: Likewise.
10447 * util/powerpc/ieee1275/misc.c: Likewise.
10449 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
10451 * conf/i386.rmk (setjmp_mod_SOURCES)
10452 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
10453 * conf/common.rmk (setjmp_mod_SOURCES)
10454 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
10455 to use $(target_cpu).
10456 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
10457 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
10458 * conf/powerpc-ieee1275.rmk: Likewise.
10459 * conf/sparc64-ieee1275.rmk: Likewise.
10461 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
10462 $(target_cpu) for kern/$(target_cpu)/dl.c.
10463 * conf/i386-efi.rmk: Likewise.
10464 * conf/i386-ieee1275.rmk: Likewise.
10465 * conf/x86_64-efi.rmk: Likewise.
10466 * conf/i386-coreboot.rmk: Likewise.
10467 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
10468 $(target_cpu) for kern/$(target_cpu)/dl.c and for
10469 kern/$(target_cpu)/cache.S.
10470 * conf/sparc64-ieee1275.rmk: Likewise.
10472 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
10474 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
10475 type to `grub_uint8_t', and adjust `padding9' accordingly.
10477 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10479 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
10481 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
10482 assembly in final jump, using register constraints.
10484 (grub_linux_boot): For text mode, initialize `have_vga' using
10485 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
10487 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
10488 right before the final jump.
10490 Set `video_mode' to 0x3.
10492 Document initialization of `video_page', `video_mode' and
10495 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10497 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
10498 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
10499 and set GRUB_LINUX_FLAG_QUIET appropriately.
10501 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10503 Fix build on Debian / sparc.
10505 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
10507 2009-06-28 Pavel Roskin <proski@gnu.org>
10509 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
10512 * util/grub.d/10_linux.in: Match SUSE style initrd names.
10514 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10516 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
10519 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10523 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
10524 file can't be opened. grub_file_open() is already supposed to set
10525 grub_errno / grub_errmsg appropriately.
10526 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10528 2009-06-27 Pavel Roskin <proski@gnu.org>
10529 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10531 * include/grub/dl.h: Include grub/elf.h.
10532 (struct grub_dl): Add symtab field.
10533 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
10534 GRUB_MODULES_MACHINE_READONLY.
10535 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
10536 of the header for read-only modules.
10537 (grub_dl_unload): Free mod->symtab for read-only modules.
10538 * kern/i386/dl.c: Use mod->symtab.
10539 * kern/powerpc/dl.c: Likewise.
10540 * kern/sparc64/dl.c: Likewise.
10541 * kern/x86_64/dl.c: Likewise.
10543 * conf/i386-qemu.rmk: New file.
10544 * kern/i386/qemu/startup.S: Likewise.
10545 * kern/i386/qemu/mmap.c: Likewise.
10546 * boot/i386/qemu/boot.S: Likewise.
10547 * include/grub/i386/qemu/time.h: Likewise.
10548 * include/grub/i386/qemu/serial.h: Likewise.
10549 * include/grub/i386/qemu/kernel.h: Likewise.
10550 * include/grub/i386/qemu/console.h: Likewise.
10551 * include/grub/i386/qemu/boot.h: Likewise.
10552 * include/grub/i386/qemu/init.h: Likewise.
10553 * include/grub/i386/qemu/machine.h: Likewise.
10554 * include/grub/i386/qemu/loader.h: Likewise.
10555 * include/grub/i386/qemu/memory.h: Likewise.
10557 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
10558 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
10559 [qemu] (pkglib_IMAGES): Add `boot.img'.
10560 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
10561 [qemu] (boot_img_FORMAT): New variables.
10562 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
10563 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
10564 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
10565 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
10566 [qemu] (kernel_img_FORMAT): New variables.
10568 * configure.ac: Recognise `i386-qemu'.
10570 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
10571 (for no compression).
10572 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
10573 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
10574 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
10575 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
10578 2009-06-27 Pavel Roskin <proski@gnu.org>
10580 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
10582 * efiemu/prepare32.c: Likewise.
10583 * efiemu/prepare64.c: Likewise.
10585 2009-06-26 Pavel Roskin <proski@gnu.org>
10587 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
10588 * include/grub/elf.h: Define symbols without "32" or "64" based
10589 on GRUB_TARGET_WORDSIZE.
10590 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
10591 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
10593 * efiemu/loadcore64.c: Likewise.
10594 * loader/i386/bsd32.c: Likewise.
10595 * loader/i386/bsd64.c: Likewise.
10596 * kern/dl.c: Remove own ELF definitions.
10597 * util/i386/efi/grub-mkimage.c: Likewise.
10599 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
10601 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
10602 segment 0x0 unconditionally, because the reference generated by
10603 GAS is an absolute address.
10605 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10607 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
10608 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
10610 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10612 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
10613 indexes. Check for -f explicitly.
10614 (search_file): Improve error message.
10615 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
10617 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10619 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
10620 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
10622 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10624 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
10625 * conf/i386-ieee1275.rmk: Likewise.
10626 * conf/i386-coreboot.rmk: Likewise.
10628 * kern/i386/pc/startup.S (grub_stop): Remove function.
10629 * kern/i386/ieee1275/startup.S: Likewise.
10630 * kern/i386/coreboot/startup.S: Likewise.
10631 * kern/i386/misc.S (grub_stop): New function.
10633 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10635 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
10636 * kern/i386/realmode.S (real_to_prot): ... to here.
10638 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10640 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
10642 (kernel_elf_SOURCES): Rename to ...
10643 (kernel_img_SOURCES): ... this.
10644 (kernel_elf_HEADERS): Rename to ...
10645 (kernel_img_HEADERS): ... this. Update all users.
10646 (kernel_elf_ASFLAGS): Rename to ...
10647 (kernel_img_ASFLAGS): ... this.
10648 (kernel_elf_CFLAGS): Rename to ...
10649 (kernel_img_CFLAGS): ... this.
10650 (kernel_elf_LDFLAGS): Rename to ...
10651 (kernel_img_LDFLAGS): ... this.
10652 * conf/i386-coreboot.rmk: Likewise.
10653 * conf/powerpc-ieee1275.rmk: Likewise.
10655 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
10658 2009-06-21 Pavel Roskin <proski@gnu.org>
10660 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
10661 to match nested functions.
10662 * loader/sparc64/ieee1275/linux.c: Likewise.
10664 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
10666 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
10668 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
10669 all i386 platforms.
10671 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
10673 Fix asm file handling on ELF, and remove workarounds.
10675 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
10676 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
10677 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
10678 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
10680 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
10682 Load BSD ELF modules
10684 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
10685 and loader/i386/bsd64.c
10686 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
10687 (FREEBSD_MODTYPE_ELF_MODULE): New definition
10688 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
10689 (grub_freebsd_load_elfmodule32): New declaration
10690 (grub_freebsd_load_elfmoduleobj64): Likewise
10691 (grub_freebsd_load_elf_meta32): Likewise
10692 (grub_freebsd_load_elf_meta64): Likewise
10693 (grub_freebsd_add_meta): Likewise
10694 (grub_freebsd_add_meta_module): Likewise
10695 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
10696 (grub_freebsd_add_meta_module): Likewise and move module-specific
10697 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
10698 (grub_cmd_freebsd): Add elf-kernel specific parts
10699 based on grub_freebsd_add_meta_module
10700 (grub_cmd_freebsd_module): Add type parsing moved from
10701 grub_freebsd_add_meta_module
10702 (grub_cmd_freebsd_module_elf): New function
10703 (cmd_freebsd_module_elf): New variable
10704 (GRUB_MOD_INIT): Register freebsd_module_elf
10705 * loader/i386/bsd32.c: New file
10706 * loader/i386/bsd64.c: Likewise
10707 * loader/i386/bsdXX.c: Likewise
10708 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
10709 (grub_elf64_load): Likewise
10710 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
10712 (grub_elf64_load_hook_t): Likewise
10714 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
10716 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
10718 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
10719 don't write a menu entry for recovery mode.
10721 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
10723 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
10724 after it's no longer needed.
10726 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
10728 * include/grub/i386/loader.h (grub_linux_prot_size)
10729 (grub_linux_tmp_addr, grub_linux_real_addr)
10730 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
10731 GRUB_MACHINE_PCBIOS.
10732 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
10733 common grub_util_info() call to ...
10734 (generate_image): ... here.
10735 Fix use of uninitialized memory, comparison of signed with
10736 unsigned integers and memory leak.
10737 Remove bogus module address message.
10739 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
10741 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
10743 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
10745 2009-06-19 Pavel Roskin <proski@gnu.org>
10747 * configure.ac: Remove stray AC_MSG_CHECKING.
10749 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
10751 * disk/scsi.c (grub_scsi_open): use continue instead of big if
10753 2009-06-18 Pavel Roskin <proski@gnu.org>
10755 * conf/common.rmk: Add fs_file.mod.
10756 * disk/fs_file.c: New file.
10757 * include/grub/disk.h (enum grub_disk_dev_id): Add
10758 GRUB_DISK_DEVICE_FILE_ID.
10760 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10762 Fix build with Apple's toolchain. Part 2
10764 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
10767 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10769 Fix build with Apple's toolchain. Part 1
10771 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
10773 * configure.ac: remove a leftover AC_MSG_RESULT
10774 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
10777 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10781 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
10782 (decomp_block): initialize ch
10783 use grub_memcpy instead of memcpy
10785 2009-06-17 Pavel Roskin <proski@gnu.org>
10787 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
10788 version, use declarations needed to use vga_text as the startup
10791 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
10792 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
10794 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
10795 and grub_at_keyboard_fini(), it's done on module load and
10798 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
10800 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
10801 file can't be found.
10802 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10804 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10806 Fix newline handling
10808 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
10809 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
10810 (grub_script_yylex): don't segfault on unterminated script
10811 newline terminates command and variable
10813 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10815 avoid double grub_adjust_range call. Bug reported by David Simner
10817 * kern/disk.c (grub_disk_write): change to raw disk access before
10820 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
10822 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
10823 spaces, for the benefit of help2man.
10824 * util/i386/efi/grub-mkimage.c (usage): Likewise.
10826 2009-06-16 Pavel Roskin <proski@gnu.org>
10828 * kern/i386/halt.c: Include grub/machine/init.h.
10829 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
10831 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
10833 * util/grub.d/30_os-prober.in: Use ${root} in the generated
10834 drivemap menuentry.
10836 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
10838 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
10841 2009-06-16 Pavel Roskin <proski@gnu.org>
10843 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
10844 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
10845 save %dx, we only need %dl and we never change it.
10846 * boot/i386/pc/cdboot.S: Don't set the root drive.
10847 * boot/i386/pc/pxeboot.S: Likewise.
10848 * include/grub/i386/pc/boot.h: Remove
10849 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
10850 GRUB_BOOT_MACHINE_DRIVE_CHECK.
10851 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
10852 * kern/i386/pc/init.c (make_install_device): Remove references
10853 to grub_root_drive.
10854 * kern/i386/pc/startup.S: Likewise.
10855 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
10857 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10861 * commands/xnu_uuid.c: new file
10862 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
10863 (xnu_uuid_mod_SOURCES): new variable
10864 (xnu_uuid_mod_CFLAGS): likewise
10865 (xnu_uuid_mod_LDFLAGS): likewise
10866 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10867 * conf/i386-ieee1275.rmk: likewise
10868 * conf/i386-pc.rmk: likewise
10869 * conf/powerpc-ieee1275.rmk: likewise
10870 * conf/sparc64-ieee1275.rmk: likewise
10871 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
10873 2009-06-16 Pavel Roskin <proski@gnu.org>
10875 * configure.ac: Avoid '==' in test command, it's not portable.
10877 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10881 * commands/probe.c: new file
10882 * conf/common.rmk (pkglib_MODULES): add probe.mod
10883 (probe_mod_SOURCES): new variable
10884 (probe_mod_CFLAGS): likewise
10885 (probe_mod_LDFLAGS): likewise
10886 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10887 * conf/i386-ieee1275.rmk: likewise
10888 * conf/i386-pc.rmk: likewise
10889 * conf/powerpc-ieee1275.rmk: likewise
10890 * conf/sparc64-ieee1275.rmk: likewise
10892 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
10894 Fix handling of string like \"hello\" and "a
10897 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
10898 (grub_script_yylex): fix parsing of quoting, escaping and newline
10900 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
10902 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
10905 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
10907 * util/grub-mkconfig.in: Fix parsing of --output option.
10909 2009-06-12 Pavel Roskin <proski@gnu.org>
10911 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
10912 genmk.rb don't need to be generated or installed.
10914 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
10916 * commands/i386/pc/drivemap_int13h.S: add more comments
10918 2009-06-11 Pavel Roskin <proski@gnu.org>
10920 * Makefile.in (uninstall): Uninstall manuals.
10922 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
10923 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
10924 and update-grub_lib in two places.
10925 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
10927 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
10928 a compiler warning.
10930 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
10931 `entry_lo' to fix variable shadowing.
10933 2009-06-11 Christian Franke <franke@computer.org>
10935 * kern/misc.c (__enable_execute_stack): Add missing return type
10936 to prevent gcc warning.
10938 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
10940 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
10942 2009-06-11 Pavel Roskin <proski@gnu.org>
10944 * Makefile.in: Don't rely on any scripts being executable.
10945 Always use $(SHELL) to run shell scripts.
10947 * configure.ac: Always define ___main if using -nostdlib. This
10948 fixes tests on Cygwin.
10950 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
10954 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
10955 is in bytes and not in blocks
10957 2009-06-11 Pavel Roskin <proski@gnu.org>
10959 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
10962 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
10964 * util/grub.d/30_os-prober.in: Fix a comment. Source
10965 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
10966 to set the root device. Place drivemap command in the generated
10969 2009-06-11 Pavel Roskin <proski@gnu.org>
10971 * configure.ac: Remove host_m32. Issues with 64-bit utilities
10972 have long been resolved.
10974 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
10976 * util/grub.d/10_linux.in: Capitalise "Linux".
10978 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
10980 2009-06-11 Pavel Roskin <proski@gnu.org>
10982 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
10983 fix a gcc warning and ensure that the function won't ever exit.
10985 * kern/i386/ieee1275/init.c: Add missing prototype for
10986 grub_stop_floppy().
10988 * loader/ieee1275/multiboot2.c [__i386__]: Include
10989 grub/cpu/multiboot.h.
10991 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
10992 casts to short - they are not portable and cause warnings. Fix
10993 use of uninitialized values in input_buf. Use ARRAY_SIZE.
10995 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
10999 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
11001 (grub_get_root_biosnumber_saved): new variable
11002 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
11003 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
11004 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
11005 %dx after the call if necessary
11006 * conf/common.rmk (pkglib_MODULES): remove boot.mod
11007 (boot_mod_SOURCES): remove
11008 (boot_mod_CFLAGS): remove
11009 (boot_mod_LDFLAGS): remove
11010 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
11011 (boot_mod_SOURCES): new variable
11012 (boot_mod_CFLAGS): likewise
11013 (boot_mod_LDFLAGS): likewise
11014 * conf/i386-efi.rmk: likewise
11015 * conf/i386-ieee1275.rmk: likewise
11016 * conf/i386-pc.rmk: likewise
11017 * conf/powerpc-ieee1275.rmk: likewise
11018 * conf/sparc64-ieee1275.rmk: likewise
11019 * conf/x86_64-efi.rmk: likewise
11020 * include/grub/i386/pc/biosnum.h: new file
11021 * lib/i386/pc/biosnum.c: likewise
11022 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
11023 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
11024 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
11026 2009-06-10 Pavel Roskin <proski@gnu.org>
11028 * io/gzio.c (test_header): Don't reuse one buffer for all data.
11029 Use separate variables. Read only the file size at the end, but
11030 not the checksum that we don't use.
11032 * kern/file.c (grub_file_read): Use void pointer for the buffer.
11033 Adjust all callers.
11035 * kern/ieee1275/openfw.c: Remove libc includes.
11036 * kern/ieee1275/cmain.c: Likewise.
11037 * include/grub/ieee1275/ieee1275.h: Likewise.
11039 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
11042 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
11044 * Makefile.in: Remove all trailing whitespace.
11045 * conf/i386-pc.rmk: Likewise.
11046 * conf/powerpc-ieee1275.rmk: Likewise.
11047 * conf/sparc64-ieee1275.rmk: Likewise.
11048 * docs/grub.texi: Likewise.
11049 * docs/texinfo.tex: Likewise.
11050 * disk/fs_uuid.c: Likewise.
11051 * disk/lvm.c: Likewise.
11052 * disk/scsi.c: Likewise.
11053 * disk/ata.c: Likewise.
11054 * disk/ieee1275/ofdisk.c: Likewise.
11055 * disk/i386/pc/biosdisk.c: Likewise.
11056 * disk/host.c: Likewise.
11057 * disk/raid.c: Likewise.
11058 * disk/efi/efidisk.c: Likewise.
11059 * disk/usbms.c: Likewise.
11060 * disk/memdisk.c: Likewise.
11061 * disk/loopback.c: Likewise.
11062 * kern/powerpc/dl.c: Likewise.
11063 * kern/device.c: Likewise.
11064 * kern/dl.c: Likewise.
11065 * kern/sparc64/dl.c: Likewise.
11066 * kern/ieee1275/ieee1275.c: Likewise.
11067 * kern/term.c: Likewise.
11068 * kern/fs.c: Likewise.
11069 * kern/i386/dl.c: Likewise.
11070 * kern/i386/pc/startup.S: Likewise.
11071 * kern/i386/pc/init.c: Likewise.
11072 * kern/i386/pc/mmap.c: Likewise.
11073 * kern/i386/pc/lzo1x.S: Likewise.
11074 * kern/i386/ieee1275/init.c: Likewise.
11075 * kern/i386/realmode.S: Likewise.
11076 * kern/i386/tsc.c: Likewise.
11077 * kern/partition.c: Likewise.
11078 * kern/corecmd.c: Likewise.
11079 * kern/file.c: Likewise.
11080 * kern/efi/efi.c: Likewise.
11081 * kern/efi/init.c: Likewise.
11082 * kern/efi/mm.c: Likewise.
11083 * kern/main.c: Likewise.
11084 * kern/err.c: Likewise.
11085 * kern/env.c: Likewise.
11086 * kern/disk.c: Likewise.
11087 * kern/generic/millisleep.c: Likewise.
11088 * kern/generic/rtc_get_time_ms.c: Likewise.
11089 * kern/misc.c: Likewise.
11090 * kern/parser.c: Likewise.
11091 * genmk.rb: Likewise.
11092 * configure.ac: Likewise.
11093 * boot/i386/pc/diskboot.S: Likewise.
11094 * boot/i386/pc/pxeboot.S: Likewise.
11095 * boot/i386/pc/boot.S: Likewise.
11096 * boot/i386/pc/lnxboot.S: Likewise.
11097 * boot/i386/pc/cdboot.S: Likewise.
11098 * parttool/pcpart.c: Likewise.
11099 * video/readers/tga.c: Likewise.
11100 * video/video.c: Likewise.
11101 * video/bitmap.c: Likewise.
11102 * lib/envblk.c: Likewise.
11103 * lib/i386/setjmp.S: Likewise.
11104 * fs/xfs.c: Likewise.
11105 * fs/afs.c: Likewise.
11106 * fs/fat.c: Likewise.
11107 * fs/ntfs.c: Likewise.
11108 * fs/udf.c: Likewise.
11109 * fs/affs.c: Likewise.
11110 * fs/iso9660.c: Likewise.
11111 * fs/hfs.c: Likewise.
11112 * fs/fshelp.c: Likewise.
11113 * fs/ext2.c: Likewise.
11114 * fs/jfs.c: Likewise.
11115 * fs/reiserfs.c: Likewise.
11116 * fs/hfsplus.c: Likewise.
11117 * fs/minix.c: Likewise.
11118 * fs/cpio.c: Likewise.
11119 * fs/sfs.c: Likewise.
11120 * fs/ufs.c: Likewise.
11121 * efiemu/prepare.c: Likewise.
11122 * efiemu/loadcore_common.c: Likewise.
11123 * efiemu/runtime/efiemu.sh: Likewise.
11124 * efiemu/runtime/efiemu.S: Likewise.
11125 * efiemu/runtime/efiemu.c: Likewise.
11126 * efiemu/pnvram.c: Likewise.
11127 * efiemu/main.c: Likewise.
11128 * efiemu/i386/pc/cfgtables.c: Likewise.
11129 * efiemu/i386/loadcore64.c: Likewise.
11130 * efiemu/i386/loadcore32.c: Likewise.
11131 * efiemu/loadcore.c: Likewise.
11132 * efiemu/symbols.c: Likewise.
11133 * efiemu/mm.c: Likewise.
11134 * include/grub/autoefi.h: Likewise.
11135 * include/grub/datetime.h: Likewise.
11136 * include/grub/term.h: Likewise.
11137 * include/grub/hfs.h: Likewise.
11138 * include/grub/lvm.h: Likewise.
11139 * include/grub/i386/tsc.h: Likewise.
11140 * include/grub/i386/linux.h: Likewise.
11141 * include/grub/i386/xnu.h: Likewise.
11142 * include/grub/i386/efiemu.h: Likewise.
11143 * include/grub/i386/pc/biosdisk.h: Likewise.
11144 * include/grub/i386/pc/memory.h: Likewise.
11145 * include/grub/i386/pc/vbe.h: Likewise.
11146 * include/grub/parttool.h: Likewise.
11147 * include/grub/video.h: Likewise.
11148 * include/grub/memory.h: Likewise.
11149 * include/grub/fs.h: Likewise.
11150 * include/grub/partition.h: Likewise.
11151 * include/grub/xnu.h: Likewise.
11152 * include/grub/efi/api.h: Likewise.
11153 * include/grub/efi/pe32.h: Likewise.
11154 * include/grub/efi/memory.h: Likewise.
11155 * include/grub/multiboot.h: Likewise.
11156 * include/grub/usbdesc.h: Likewise.
11157 * include/grub/multiboot2.h: Likewise.
11158 * include/grub/acpi.h: Likewise.
11159 * include/grub/efiemu/efiemu.h: Likewise.
11160 * include/grub/disk.h: Likewise.
11161 * include/grub/ieee1275/ieee1275.h: Likewise.
11162 * include/grub/net.h: Likewise.
11163 * include/grub/machoload.h: Likewise.
11164 * include/grub/macho.h: Likewise.
11165 * include/multiboot.h: Likewise.
11166 * genmoddep.awk: Likewise.
11167 * normal/main.c: Likewise.
11168 * normal/menu_entry.c: Likewise.
11169 * normal/menu_viewer.c: Likewise.
11170 * normal/completion.c: Likewise.
11171 * normal/cmdline.c: Likewise.
11172 * normal/misc.c: Likewise.
11173 * normal/datetime.c: Likewise.
11174 * bus/usb/usbtrans.c: Likewise.
11175 * bus/usb/ohci.c: Likewise.
11176 * bus/usb/uhci.c: Likewise.
11177 * bus/usb/usb.c: Likewise.
11178 * mmap/efi/mmap.c: Likewise.
11179 * mmap/i386/pc/mmap_helper.S: Likewise.
11180 * mmap/i386/pc/mmap.c: Likewise.
11181 * mmap/i386/mmap.c: Likewise.
11182 * mmap/i386/uppermem.c: Likewise.
11183 * mmap/mmap.c: Likewise.
11184 * commands/acpi.c: Likewise.
11185 * commands/echo.c: Likewise.
11186 * commands/blocklist.c: Likewise.
11187 * commands/loadenv.c: Likewise.
11188 * commands/usbtest.c: Likewise.
11189 * commands/boot.c: Likewise.
11190 * commands/parttool.c: Likewise.
11191 * commands/search.c: Likewise.
11192 * commands/cat.c: Likewise.
11193 * commands/i386/pc/play.c: Likewise.
11194 * commands/i386/pc/drivemap.c: Likewise.
11195 * commands/i386/pc/vbeinfo.c: Likewise.
11196 * commands/i386/pc/acpi.c: Likewise.
11197 * commands/i386/pc/vbetest.c: Likewise.
11198 * commands/ls.c: Likewise.
11199 * commands/cmp.c: Likewise.
11200 * commands/test.c: Likewise.
11201 * commands/efi/acpi.c: Likewise.
11202 * commands/gptsync.c: Likewise.
11203 * commands/help.c: Likewise.
11204 * partmap/amiga.c: Likewise.
11205 * partmap/apple.c: Likewise.
11206 * partmap/acorn.c: Likewise.
11207 * partmap/pc.c: Likewise.
11208 * partmap/sun.c: Likewise.
11209 * partmap/gpt.c: Likewise.
11210 * script/sh/lexer.c: Likewise.
11211 * script/sh/function.c: Likewise.
11212 * font/font.c: Likewise.
11213 * font/font_cmd.c: Likewise.
11214 * loader/powerpc/ieee1275/linux.c: Likewise.
11215 * loader/efi/chainloader.c: Likewise.
11216 * loader/multiboot_loader.c: Likewise.
11217 * loader/macho.c: Likewise.
11218 * loader/i386/multiboot.c: Likewise.
11219 * loader/i386/linux.c: Likewise.
11220 * loader/i386/pc/linux.c: Likewise.
11221 * loader/i386/pc/multiboot2.c: Likewise.
11222 * loader/i386/pc/chainloader.c: Likewise.
11223 * loader/i386/pc/xnu.c: Likewise.
11224 * loader/i386/bsd_trampoline.S: Likewise.
11225 * loader/i386/efi/linux.c: Likewise.
11226 * loader/i386/multiboot_elfxx.c: Likewise.
11227 * loader/i386/bsd_helper.S: Likewise.
11228 * loader/i386/bsd.c: Likewise.
11229 * loader/i386/linux_trampoline.S: Likewise.
11230 * loader/i386/xnu_helper.S: Likewise.
11231 * loader/i386/xnu.c: Likewise.
11232 * loader/i386/bsd_pagetable.c: Likewise.
11233 * loader/i386/multiboot_helper.S: Likewise.
11234 * loader/xnu.c: Likewise.
11235 * loader/xnu_resume.c: Likewise.
11236 * io/gzio.c: Likewise.
11237 * term/efi/console.c: Likewise.
11238 * term/terminfo.c: Likewise.
11239 * term/ieee1275/ofconsole.c: Likewise.
11240 * term/i386/pc/serial.c: Likewise.
11241 * term/i386/pc/vesafb.c: Likewise.
11242 * term/i386/pc/vga.c: Likewise.
11243 * term/usb_keyboard.c: Likewise.
11244 * term/gfxterm.c: Likewise.
11245 * aclocal.m4: Likewise.
11246 * util/lvm.c: Likewise.
11247 * util/grub.d/30_os-prober.in: Likewise.
11248 * util/grub.d/10_hurd.in: Likewise.
11249 * util/console.c: Likewise.
11250 * util/grub-macho2img.c: Likewise.
11251 * util/grub-probe.c: Likewise.
11252 * util/hostfs.c: Likewise.
11253 * util/i386/pc/grub-mkimage.c: Likewise.
11254 * util/i386/pc/grub-setup.c: Likewise.
11255 * util/i386/efi/grub-mkimage.c: Likewise.
11256 * util/grub-mkconfig.in: Likewise.
11257 * util/raid.c: Likewise.
11258 * util/resolve.c: Likewise.
11259 * util/grub-mkdevicemap.c: Likewise.
11260 * util/grub-emu.c: Likewise.
11261 * util/getroot.c: Likewise.
11262 * util/hostdisk.c: Likewise.
11263 * util/usb.c: Likewise.
11264 * util/grub-editenv.c: Likewise.
11265 * util/misc.c: Likewise.
11267 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
11269 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
11270 `genparttoollist.sh'.
11271 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
11272 Add `*.sh' to the list find searches for and change `mdate.sh'
11275 2009-06-10 Pavel Roskin <proski@gnu.org>
11277 * include/grub/multiboot2.h: Provide compatibility defines for
11279 * include/multiboot2.h: Include stdint.h only if needed, using
11281 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
11283 * loader/ieee1275/multiboot2.c: Likewise.
11284 * loader/multiboot2.c: Likewise.
11285 * loader/multiboot_loader.c: Likewise.
11287 * configure.ac: Use -nostdlib when probing for the target. It
11288 should not be required to have libc for the target.
11290 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
11291 they fail without libc headers for the target.
11292 * include/grub/powerpc/libgcc.h: Use weak attribute for all
11294 * include/grub/sparc64/libgcc.h: Likewise. Don't use
11295 preprocessor conditionals.
11297 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
11298 build system doesn't need to be aware of the tar.c internals.
11300 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
11302 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
11304 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
11306 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
11307 disk limit to 26 for IDE, Virtio, Xen and SCSI.
11309 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
11311 * util/i386/pc/grub-install.in: Change the error message if UUIDs
11312 aren't available if ata.mod gets used.
11314 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
11316 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
11317 initialising controller.
11318 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
11320 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
11322 * util/i386/pc/grub-install.in: Add a parameter --disk-module
11323 to choose between ata and biosdisk module on i386-pc.
11325 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
11327 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
11328 Subclass and Programming Interface fields in terms of the 3 byte
11329 Class Code register.
11330 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
11332 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
11333 interface is OHCI. Add grub_dprintf for symmetry with
11335 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
11336 interface is UHCI. Add interf variable for programming
11337 interface. Print interface with class/subclass.
11339 * bus/usb/ohci.c: Set interf with correct field.
11341 * bus/usb/uhci.c: Remove unneeded doubled lines.
11342 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
11343 Remove whitespace inside comment.
11345 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
11347 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
11348 as fallback an equivalent option without depth.
11350 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
11352 Not fail if unable to retrieve C/H/S on LBA disks
11354 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
11355 if unable to retrieve C/H/S on LBA disks
11357 2009-06-08 Pavel Roskin <proski@gnu.org>
11359 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
11362 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
11364 * Makefile.in (uninstall): Remove all $lib_DATA files.
11366 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
11368 Bugfix: install on partitionless device
11370 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
11373 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
11375 * Makefile.in (uninstall): Remove all $include_DATA files.
11377 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
11379 * commands/true.c: New file. Implement the true and false commands.
11380 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
11381 (true_mod_SOURCES): New variable.
11382 (true_mod_CFLAGS): Likewise.
11383 (true_mod_LDFLAGS): Likewise.
11385 2009-06-05 Colin D Bennett <colin@gibibit.com>
11387 Optimized font character lookup using binary search instead of linear
11388 search. Fonts now are required to have the character index ordered by
11391 * font/font.c (load_font_index): Verify that fonts have ordered
11393 (find_glyph): Use binary search instead of linear search to find a
11394 character in a font.
11396 2009-06-05 Michael Scherer <misc@mandriva.org>
11398 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
11399 uses case sensitive btree.
11400 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
11401 only for case insensitive filesystems.
11403 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
11405 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
11406 * conf/common.rmk (search_mod_CFLAGS): likewise
11408 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11410 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
11411 compensate a compiler bug
11413 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11415 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
11418 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11420 Definitions for creating asm symbols with Apple's CC
11422 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
11423 [APPLE_CC] (VARIABLE): likewise
11425 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11427 Disable lnxboot.img when compiled
11430 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
11431 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
11432 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
11433 [! APPLE_CC] (CODE_LENG): skip
11434 [! APPLE_CC] (setup_sects): likewise
11435 [! APPLE_CC]: skip filling
11437 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11439 Address in trampolines based on 32-bit registers when compiled
11442 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
11444 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
11446 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11448 Avoid aliases when compiling with Apple's CC for PCBIOS machine
11450 * kern/misc.c [APPLE_CC] (memcpy): new function
11451 [APPLE_CC] (memmove): likewise
11452 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
11453 (memcpy): define alias conditionally on !APPLE_CC
11456 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
11457 APPLE_CC are defined
11458 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
11459 (grub_assert_fail): make prototype conditional
11461 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11463 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
11465 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
11467 (CLEANFILES): add grub-macho2img
11468 (grub_macho2img_SOURCES): new variable
11469 * kern/i386/pc/startup.S (bss_start): new variable
11470 (bss_end): likewise
11471 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
11472 * util/grub-macho2img.c: new file
11474 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11476 Use objconv when compiling with Apple's CC
11478 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
11479 (efiemu64.o): likewise
11480 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
11481 when compiling with Apple's CC
11482 (efiemu64_s.o): likewise
11483 * configure.ac: check for objconv when compiling with Apple's CC
11484 * genmk.rb: use objconv for modules when compiled with Apple's CC
11486 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11488 Define segment as well as section when compiling with
11491 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
11492 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
11493 (efiemu_convert_pointer): likewise
11494 (efiemu_set_virtual_address_map): likewise
11495 (efiemu_convert_pointer): likewise
11496 (efiemu_getcrc32): likewise
11497 (init_crc32_table): likewise
11498 (reflect): likewise
11499 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
11500 (GRUB_MOD_DEP): likewise
11502 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11504 Allow a compilation without -mcmodel=large
11506 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
11507 when compiled without -mcmodel=large
11508 (filter_memory_map): remove memory post 4 GiB when compiled
11509 without -mcmodel=large
11510 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
11511 TARGET_CFLAGS when -mcmodel=large isn't supported
11513 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11515 Remove nested functions in efiemu core
11517 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
11519 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11521 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
11523 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
11525 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
11527 (grub_cpu_is_tsc_supported): likewise
11528 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
11530 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11532 Absolute addressing through constant with Apple's cc
11534 * kern/i386/pc/startup.S: Define necessary constants
11535 and address through it when using ABS with Apple's CC
11536 * boot/i386/pc/diskboot.S: likewise
11537 * boot/i386/pc/boot.S: likewise
11538 * boot/i386/pc/lnxboot.S: likewise
11539 * boot/i386/pc/cdboot.S: likewise
11540 * mmap/i386/pc/mmap_helper.S: likewise
11541 * commands/i386/pc/drivemap_int13h.S: likewise
11543 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11545 Check if compiler is apple cc
11547 * Makefile.in (ASFLAGS): new variable
11548 (TARGET_ASFLAGS): likewise
11549 (TARGET_MODULE_FORMAT): likewise
11550 (TARGET_APPLE_CC): likewise
11551 (OBJCONV): likewise
11552 (TARGET_IMG_CFLAGS): likewise
11553 (TARGET_CPPFLAGS): add includedir
11554 * configure.ac: call grub_apple_cc and grub_apple_target_cc
11555 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
11556 Check for linker script only if compiler isn't Apple's CC
11557 (TARGET_MODULE_FORMAT): set
11558 (TARGET_APPLE_CC): likewise
11559 (TARGET_ASFLAGS): likewise
11560 (ASFLAGS): likewise
11561 Check for objcopy only if compiler isn't Apple's CC
11562 Check for BSS symbol only if compiler isn't Apple's CC
11563 * genmk.rb: adapt nm options if we use Apple's utils
11564 * aclocal.m4 (grub_apple_cc): new test
11565 (grub_apple_target_cc): likewise
11567 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11569 Simplify sed expressions and improve awk
11571 * Makefile.in (install-local): simplify sed expression
11572 * gencmdlist.sh: likewise
11573 * genmoddep.awk: avoid adding module as a dependency of itself
11575 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11577 Add missing start symbols
11579 * boot/i386/pc/boot.S: add start
11580 * boot/i386/pc/pxeboot.S: likewise
11582 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11584 Fix wrong assumptions with grub-mkimage on EFI
11586 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
11587 (relocate_addresses): consider both r_addend and value at offset
11588 (make_mods_section): zerofill modinfo and header
11589 (convert_elf): write prefix here
11591 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11593 Use .asciz instead of .string
11595 * i386/pc/diskboot.S: use .asciz instead of .string
11596 * i386/pc/boot.S: likewise
11597 * include/grub/dl.h (GRUB_MOD_DEP): likewise
11598 (GRUB_MOD_NAME): likewise
11600 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11604 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
11605 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
11606 (grub_video_setup): remove
11607 (grub_video_set_mode): new prototype
11608 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
11610 (linux_vesafb_res): compile only on PCBIOS
11611 (grub_linux_boot): support gfxpayload
11612 * loader/i386/pc/xnu.c (video_hook): new function
11613 (grub_xnu_set_video): support gfxpayload
11614 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
11615 (DEFAULT_VIDEO_HEIGHT): likewise
11616 (DEFAULT_VIDEO_FLAGS): likewise
11617 (DEFAULT_VIDEO_MODE): new definition
11618 (video_hook): new function
11619 (grub_gfxterm_init): use grub_video_set_mode
11620 * util/grub.d/30_os-prober.in: remove explicit modesetting before
11622 * video/video.c (grub_video_setup): removed
11623 (grub_video_set_mode): new function based on grub_gfxterm_init and
11626 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11628 Avoid calling biosdisk in drivemap
11630 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
11631 (revparse_biosdisk): likewise
11632 (list_mappings): derive name from id directly
11633 (grub_cmd_drivemap): use tryparse_diskstring
11635 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11639 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
11640 (grub_lexer_param): add tokenonhold
11641 (grub_script_create_cmdline): remove cmdline. All callers updated
11642 (grub_script_function_create): make functionname
11643 grub_script_arg. All callers updated
11644 (grub_script_execute_argument_to_string): new prototype
11645 * kern/parser.c (state_transitions): reorder
11646 (grub_parser_cmdline_state): fix a bug and make more compact
11647 * script/sh/execute.c (grub_script_execute_argument_to_string):
11649 (grub_script_execute_cmdline): use new format
11650 * script/sh/function.c (grub_script_function_create): make functionname
11651 grub_script_arg. All callers updated
11652 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
11653 (grub_script_yylex): remove
11654 (grub_script_yylex2): renamed to ...
11655 (grub_script_yylex): ...renamed
11656 parse the expressions like a${b}c
11657 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
11658 (GRUB_PARSER_TOKEN_VAR): remove
11659 (GRUB_PARSER_TOKEN_NAME): likewise
11660 ("if"): declare as typeless
11661 ("while"): likewise
11662 ("function"): likewise
11667 (argument): likewise
11668 (script): accept empty scripts and make exit on error
11669 (arguments): use GRUB_PARSER_TOKEN_ARG
11670 (function): likewise
11671 (command): move error handling to script
11672 (menuentry): move grub_script_lexer_ref before
11673 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
11674 argument. All callers updated
11676 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
11678 Prevent GRUB from probing floppies during boot.
11680 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
11681 * commands/search.c (options): Add --no-floppy.
11682 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
11683 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
11684 --no-floppy when searching for UUIDs.
11686 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
11688 Simplify the code duplication in commands/search.c.
11690 * commands/search.c (search_label, search_fs_uuid): Merge into ...
11691 (search_fs): ... this. Update all users.
11693 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
11695 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
11697 2009-05-28 Pavel Roskin <proski@gnu.org>
11699 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
11700 Remove the original symlink explicitly.
11702 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
11703 just one slash. That's how grub_fshelp_find_file() does it.
11705 2009-05-26 Pavel Roskin <proski@gnu.org>
11707 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
11710 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
11713 2009-05-25 Christian Franke <franke@computer.org>
11715 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
11717 (grub_atapi_identify): Add wait after drive select.
11718 (grub_ata_identify): Do more strict status register check before
11719 calling grub_atapi_identify (). Suppress error message if status
11720 register is 0x00 after command failure. Add status register
11721 check after PIO read to avoid bogus identify due to stuck DRQ.
11722 Thanks to Pavel Roskin for testing.
11723 (grub_device_initialize): Remove unsafe status register check.
11724 Thanks to 'phcoder' for problem report and patch.
11725 Prevent sign extension in debug message.
11727 2009-05-23 Colin D Bennett <colin@gibibit.com>
11729 Cleaned up `include/grub/normal.h'. Grouped prototypes by
11730 definition file, and functions defined in `normal/menu.c' have had
11731 their prototypes moved to `include/grub/menu.h' for consistency.
11733 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
11735 (grub_menu_get_entry): Likewise.
11736 (grub_menu_get_timeout): Likewise.
11737 (grub_menu_set_timeout): Likewise.
11738 (grub_menu_execute_entry): Likewise.
11739 (grub_menu_execute_with_fallback): Likewise.
11740 (grub_menu_entry_run): Likewise.
11742 * include/grub/normal.h: Re-ordered and grouped function
11743 prototypes by file that the function is defined in.
11744 (grub_menu_execute_callback): Removed; moved to menu.h.
11745 (grub_menu_get_entry): Likewise.
11746 (grub_menu_get_timeout): Likewise.
11747 (grub_menu_set_timeout): Likewise.
11748 (grub_menu_execute_entry): Likewise.
11749 (grub_menu_execute_with_fallback): Likewise.
11750 (grub_menu_entry_run): Likewise.
11751 (grub_menu_addentry): Renamed from this ...
11752 (grub_normal_add_menu_entry): ... to this.
11754 * normal/main.c (grub_menu_addentry): Renamed from this ...
11755 (grub_normal_add_menu_entry): ... to this.
11757 * script/sh/execute.c (grub_script_execute_menuentry): Update
11758 reference to renamed grub_menu_addentry function.
11760 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
11762 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
11764 2009-05-22 Pavel Roskin <proski@gnu.org>
11766 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
11767 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
11768 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
11769 compiling for the i386 targets, but not for the utilities.
11771 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
11773 (grub_root_drive): Likewise.
11774 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
11776 (grub_root_drive): Change size to byte.
11777 (grub_start_addr): Remove.
11778 (grub_end_addr): Likewise.
11779 (grub_apm_bios_info): Likewise.
11781 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
11783 * normal/i386: Remove.
11784 * normal/powerpc: Likewise.
11785 * normal/sparc64: Likewise.
11786 * normal/x86_64: Likewise.
11788 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
11790 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
11791 * loader/i386/linux_trampoline.S: Fix indentation
11792 * loader/i386/xnu_helper.S: Likewise
11794 2009-05-18 Colin D Bennett <colin@gibibit.com>
11796 Display error messages when parsing a Lua statement fails.
11797 Previously, executing a syntactically invalid statement like
11798 ")foo" or "bar;" would silently fail.
11800 * script/lua/grub_main.c (handle_lua_error): New function.
11801 (grub_lua_parse_line): Improved reporting of Lua parser and
11804 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11806 Remove -Werror which causes build to fail on some systems
11808 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
11809 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
11810 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
11812 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11814 trampoline for linux on 64-bit platform
11816 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
11817 loader/i386/efi/linux_trampoline.S
11818 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
11820 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
11822 * loader/i386/linux_trampoline.S: moved here
11823 * loader/i386/efi/linux.c (allocate_pages): reserve space for
11825 (jumpvector): removed
11826 (grub_linux_trampoline_start): new declaration
11827 (grub_linux_trampoline_end): likewise
11828 (grub_linux_boot): use trampoline when on 64-bit platform
11829 * loader/i386/linux.c: likewise
11831 2009-05-16 Pavel Roskin <proski@gnu.org>
11833 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
11834 const to avoid a warning.
11835 (grub_lua_setenv): Likewise.
11836 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
11837 lmsg to fix a warning.
11839 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11841 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
11842 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11843 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
11844 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11845 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11846 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11847 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11848 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11850 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11852 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
11854 2009-05-16 Bean <bean123ch@gmail.com>
11856 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
11857 (lua_mod_SOURCES): New variable.
11858 (lua_mod_CFLAGS): Likewise.
11859 (lua_mod_LDFLAGS): Likewise.
11861 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
11862 (setjmp_mod_SOURCES): New variable.
11863 (setjmp_mod_CFLAGS): Likewise.
11864 (setjmp_LDFLAGS): Likewise.
11866 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
11867 (setjmp_mod_SOURCES): New variable.
11868 (setjmp_mod_CFLAGS): Likewise.
11869 (setjmp_LDFLAGS): Likewise.
11871 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11872 (setjmp_mod_SOURCES): New variable.
11873 (setjmp_mod_CFLAGS): Likewise.
11874 (setjmp_LDFLAGS): Likewise.
11876 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11877 (setjmp_mod_SOURCES): New variable.
11878 (setjmp_mod_CFLAGS): Likewise.
11879 (setjmp_LDFLAGS): Likewise.
11881 * normal/i386/setjmp.S: Moved from here ...
11882 * lib/i386/setjmp.S: ... Moved here
11883 * normal/x86_64/setjmp.S: Moved from here ...
11884 * lib/x86_64/setjmp.S: ... Moved here
11885 * normal/powerpc/setjmp.S: Moved from here ...
11886 * lib/powerpc/setjmp.S: ... Moved here
11887 * normal/sparc64/setjmp.S: Moved from here ...
11888 * lib/sparc64/setjmp.S: ... Moved here
11890 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
11891 returns_twice in mingw.
11893 * script/lua/grub_lib.c: New file.
11894 * script/lua/grub_lib.h: Likewise.
11895 * script/lua/grub_lua.h: Likewise.
11896 * script/lua/grub_main.c: Likewise.
11897 * script/lua/lapi.c: Likewise.
11898 * script/lua/lapi.h: Likewise.
11899 * script/lua/lauxlib.c: Likewise.
11900 * script/lua/lauxlib.h: Likewise.
11901 * script/lua/lbaselib.c: Likewise.
11902 * script/lua/lcode.c: Likewise.
11903 * script/lua/lcode.h: Likewise.
11904 * script/lua/ldblib.c: Likewise.
11905 * script/lua/ldebug.c: Likewise.
11906 * script/lua/ldebug.h: Likewise.
11907 * script/lua/ldo.c: Likewise.
11908 * script/lua/ldo.h: Likewise.
11909 * script/lua/ldump.c: Likewise.
11910 * script/lua/lfunc.c: Likewise.
11911 * script/lua/lfunc.h: Likewise.
11912 * script/lua/lgc.c: Likewise.
11913 * script/lua/lgc.h: Likewise.
11914 * script/lua/linit.c: Likewise.
11915 * script/lua/liolib.c: Likewise.
11916 * script/lua/llex.c: Likewise.
11917 * script/lua/llex.h: Likewise.
11918 * script/lua/llimits.h: Likewise.
11919 * script/lua/lmathlib.c: Likewise.
11920 * script/lua/lmem.c: Likewise.
11921 * script/lua/lmem.h: Likewise.
11922 * script/lua/loadlib.c: Likewise.
11923 * script/lua/lobject.c: Likewise.
11924 * script/lua/lobject.h: Likewise.
11925 * script/lua/lopcodes.c: Likewise.
11926 * script/lua/lopcodes.h: Likewise.
11927 * script/lua/loslib.c: Likewise.
11928 * script/lua/lparser.c: Likewise.
11929 * script/lua/lparser.h: Likewise.
11930 * script/lua/lstate.c: Likewise.
11931 * script/lua/lstate.h: Likewise.
11932 * script/lua/lstring.c: Likewise.
11933 * script/lua/lstring.h: Likewise.
11934 * script/lua/lstrlib.c: Likewise.
11935 * script/lua/ltable.c: Likewise.
11936 * script/lua/ltable.h: Likewise.
11937 * script/lua/ltablib.c: Likewise.
11938 * script/lua/ltm.c: Likewise.
11939 * script/lua/ltm.h: Likewise.
11940 * script/lua/lua.h: Likewise.
11941 * script/lua/luaconf.h: Likewise.
11942 * script/lua/lualib.h: Likewise.
11943 * script/lua/lundump.c: Likewise.
11944 * script/lua/lundump.h: Likewise.
11945 * script/lua/lvm.c: Likewise.
11946 * script/lua/lvm.h: Likewise.
11947 * script/lua/lzio.c: Likewise.
11948 * script/lua/lzio.h: Likewise.
11950 2009-05-16 Bean <bean123ch@gmail.com>
11952 * include/grub/kernel.h (grub_module_header_types): Add type
11955 * kern/main.c (grub_load_config): New function.
11956 (grub_main): Call grub_load_config to read boot config.
11958 * grub-mkimage (generate_image): New parameter config_path.
11959 (options): New option --config.
11960 (main): Parse --config option, and pass it to generate_image.
11962 2009-05-14 Christian Franke <franke@computer.org>
11964 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
11965 This fixes build on Cygwin.
11967 2009-05-14 Pavel Roskin <proski@gnu.org>
11969 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
11970 jump. This saves two bytes, so the typical case of 2 swapped
11971 drives would fit 32 bytes.
11973 2009-05-13 Pavel Roskin <proski@gnu.org>
11975 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
11976 grub_uint32_t to avoid a warning.
11978 * loader/i386/linux.c (allocate_pages): When assigning
11979 real_mode_mem, cast through grub_size_t to fix a warning. The
11980 code already makes sure that the value would fit a pointer.
11981 (grub_linux_setup_video): Cast render_target->data to
11982 grub_size_t to fix a warning.
11984 2009-05-13 Javier Martín <lordhabbit@gmail.com>
11986 * commands/i386/pc/drivemap.c: New file - implement drivemap
11988 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
11989 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
11991 2009-05-13 Pavel Roskin <proski@gnu.org>
11993 * util/i386/pc/grub-setup.c (setup): Remove unused variable
11994 embedding_area_exists.
11996 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
11998 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
11999 it easier to understand / work with.
12000 Improve warning messages for cases where there's no embedding area,
12001 or when it is too small (or core.img too large).
12003 2009-05-13 Pavel Roskin <proski@gnu.org>
12005 * loader/i386/pc/multiboot2.c: Add necessary includes for
12006 grub_multiboot2_real_boot().
12008 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
12009 PX record is always little-endian. We only need the lower 2
12012 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
12013 facilitate code reuse.
12014 (grub_cpio_mount): Use "struct head", not a char buffer. This
12015 fixes a warning reported by gcc 4.4.
12017 * kernel/disk.c (grub_disk_read): Use void pointer for the
12019 (grub_disk_write): Use const void pointer for the buffer.
12020 Adjust all callers. Remove unnecessary casts.
12022 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
12024 * util/i386/pc/grub-install.in: Update copyright year.
12026 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12030 * commands/gptsync.c: new file
12031 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
12032 (gptsync_mod_SOURCES): new variable
12033 (gptsync_mod_CFLAGS): likewise
12034 (gptsync_mod_LDFLAGS): likewise
12035 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
12037 (GRUB_PC_PARTITION_TYPE_HFS): likewise
12038 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
12039 * conf/i386-ieee1275.rmk: likewise
12040 * conf/i386-pc.rmk: likewise
12041 * conf/powerpc-ieee1275.rmk: likewise
12043 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12047 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
12048 (grub_dl_ref): likewise
12050 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
12052 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
12053 split in two functions (one for msdos and one for gpt).
12055 2009-05-08 Pavel Roskin <proski@gnu.org>
12057 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
12060 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
12061 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
12062 Initialize them with -1. Add sanity check for bad1. Eliminate
12065 2009-05-08 David S. Miller <davem@davemloft.net>
12067 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
12069 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
12071 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
12074 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
12076 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
12077 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
12079 2009-05-05 David S. Miller <davem@davemloft.net>
12081 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
12083 2009-05-05 Pavel Roskin <proski@gnu.org>
12085 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
12086 of grub_dl_ref() and grub_dl_unref().
12087 * commands/parttool.c: Remove preprocessor conditionals around
12088 grub_dl_ref() and grub_dl_unref().
12089 * fs/affs.c: Likewise.
12090 * fs/afs.c: Likewise.
12091 * fs/cpio.c: Likewise.
12092 * fs/ext2.c: Likewise.
12093 * fs/fat.c: Likewise.
12094 * fs/hfs.c: Likewise.
12095 * fs/hfsplus.c: Likewise.
12096 * fs/iso9660.c: Likewise.
12097 * fs/jfs.c: Likewise.
12098 * fs/minix.c: Likewise.
12099 * fs/ntfs.c: Likewise.
12100 * fs/reiserfs.c: Likewise.
12101 * fs/sfs.c: Likewise.
12102 * fs/udf.c: Likewise.
12103 * fs/ufs.c: Likewise.
12104 * fs/xfs.c: Likewise.
12105 * include/grub/dl.h: Likewise.
12106 * loader/xnu.c: Likewise.
12108 2009-05-04 Pavel Roskin <proski@gnu.org>
12110 * commands/acpi.c: Remove unused variable my_mod.
12111 * partmap/amiga.c: Likewise.
12112 * partmap/apple.c: Likewise.
12113 * partmap/gpt.c: Likewise.
12114 * partmap/pc.c: Likewise.
12115 * partmap/sun.c: Likewise.
12116 * term/gfxterm.c: Likewise.
12117 * term/i386/pc/vesafb.c: Likewise.
12118 * term/i386/pc/vga.c: Likewise.
12120 2009-05-04 David S. Miller <davem@davemloft.net>
12122 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
12123 pointer args to grub_ieee1275_get_property().
12125 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
12127 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
12128 devices, and do not traverse down under controller nodes.
12130 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
12131 (grub_ofdisk_open): Use it to un-escape "," characters.
12132 * kern/disk.c (find_part_sep): New.
12133 (grub_disk_open): Use it to find the first non-escaped ','
12134 character in the disk name.
12135 * util/ieee1275/devicemap.c (escape_of_path): New.
12136 (grub_util_emit_devicemap_entry): Use it.
12137 * util/sparc64/ieee1275/grub-install.in: Update script to
12138 strip partition specifiers properly by not triggering on
12139 '\' escaped ',' characters.
12141 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12143 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
12145 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
12147 (linux_vesafb_modes): Add a lot of additional modes to the list (based
12148 on documentation from Wikipedia).
12150 2009-05-04 Pavel Roskin <proski@gnu.org>
12152 * disk/ata.c: Spelling fixes.
12153 * disk/raid.c: Likewise.
12154 * disk/usbms.c: Likewise.
12155 * disk/dmraid_nvidia.c: Likewise.
12156 * kern/ieee1275/openfw.c: Likewise.
12157 * kern/ieee1275/init.c: Likewise.
12158 * kern/ieee1275/cmain.c: Likewise.
12159 * boot/i386/pc/cdboot.S: Likewise.
12160 * video/readers/png.c: Likewise.
12161 * video/i386/pc/vbe.c: Likewise.
12162 * fs/udf.c: Likewise.
12163 * fs/hfs.c: Likewise.
12164 * fs/reiserfs.c: Likewise.
12165 * efiemu/runtime/efiemu.c: Likewise.
12166 * efiemu/main.c: Likewise.
12167 * efiemu/mm.c: Likewise.
12168 * include/grub/elf.h: Likewise.
12169 * include/grub/xnu.h: Likewise.
12170 * include/grub/usbdesc.h: Likewise.
12171 * include/grub/usb.h: Likewise.
12172 * include/grub/script_sh.h: Likewise.
12173 * include/grub/lib/LzmaEnc.h: Likewise.
12174 * include/grub/efiemu/efiemu.h: Likewise.
12175 * include/grub/command.h: Likewise.
12176 * normal/menu.c: Likewise.
12177 * normal/main.c: Likewise.
12178 * normal/datetime.c: Likewise.
12179 * bus/usb/uhci.c: Likewise.
12180 * mmap/i386/uppermem.c: Likewise.
12181 * mmap/mmap.c: Likewise.
12182 * commands/acpi.c: Likewise.
12183 * commands/test.c: Likewise.
12184 * partmap/apple.c: Likewise.
12185 * font/font.c: Likewise.
12186 * loader/sparc64/ieee1275/linux.c: Likewise.
12187 * loader/macho.c: Likewise.
12188 * loader/i386/bsd_trampoline.S: Likewise.
12189 * loader/i386/bsd.c: Likewise.
12190 * loader/xnu.c: Likewise.
12191 * term/i386/pc/vesafb.c: Likewise.
12192 * term/usb_keyboard.c: Likewise.
12193 * util/resolve.c: Likewise.
12194 * util/getroot.c: Likewise.
12196 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
12198 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
12200 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12202 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
12205 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12207 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
12208 parameter only available on BIOS.
12210 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
12212 Removed wrong semicolon in declaration
12214 * grub/misc.h (grub_dprintf): remove semicolon
12216 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12218 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
12219 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
12220 is done by grub_cmd_linux() now).
12221 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
12222 restore video to text mode.
12223 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
12224 indicates lack of "vga=" parameter. "vga=0" is mapped to
12225 `GRUB_LINUX_VID_MODE_NORMAL'.
12227 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
12229 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
12230 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
12231 and `normal/script.c'. Add `kern/rescue_reader.c',
12232 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
12233 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
12234 `grub_script.tab.c'.
12236 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12237 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
12238 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12239 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
12240 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12242 * Makefile.in: Remove duplicated 2008 in Copyright line.
12244 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12246 * util/misc.c (grub_util_warn): New function. Emits a warning
12248 * include/grub/util/misc.h (grub_util_warn): New declaration.
12250 * util/i386/pc/grub-install.in: Understand --force and pass it down
12253 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
12255 (setup): Improve error messages and add warnings when requested to
12256 install in odd layouts. Refuse to install using blocklists unless
12259 2009-05-04 martin f. krafft <madduck@madduck.net>
12261 * disk/raid.c (grub_raid_scan_device): Improve debug message.
12263 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
12265 Updated copyright year
12267 * fs/hfsplus.c: updated copyright year
12269 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
12273 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
12274 in the space previously used by unused3
12275 (grub_hfsplus_uuid): new function
12276 (grub_hfsplus_fs): added uuid field
12278 2009-05-03 Pavel Roskin <proski@gnu.org>
12280 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
12281 suppress warnings. It's no longer needed.
12282 * disk/host.c: Likewise.
12283 * disk/ata_pthru.c: Likewise.
12284 * disk/loopback.c: Likewise.
12285 * hook/datehook.c: Likewise.
12286 * parttool/pcpart.c: Likewise.
12287 * fs/i386/pc/pxe.c: Likewise.
12288 * fs/ntfscomp.c: Likewise.
12289 * efiemu/main.c: Likewise.
12290 * mmap/mmap.c: Likewise.
12291 * commands/crc.c: Likewise.
12292 * commands/hexdump.c: Likewise.
12293 * commands/hdparm.c: Likewise.
12294 * commands/acpi.c: Likewise.
12295 * commands/echo.c: Likewise.
12296 * commands/minicmd.c: Likewise.
12297 * commands/blocklist.c: Likewise.
12298 * commands/memrw.c: Likewise.
12299 * commands/loadenv.c: Likewise.
12300 * commands/usbtest.c: Likewise.
12301 * commands/lsmmap.c: Likewise.
12302 * commands/boot.c: Likewise.
12303 * commands/parttool.c: Likewise.
12304 * commands/configfile.c: Likewise.
12305 * commands/search.c: Likewise.
12306 * commands/ieee1275/suspend.c: Likewise.
12307 * commands/cat.c: Likewise.
12308 * commands/i386/pc/pxecmd.c: Likewise.
12309 * commands/i386/pc/play.c: Likewise.
12310 * commands/i386/pc/halt.c: Likewise.
12311 * commands/i386/pc/vbeinfo.c: Likewise.
12312 * commands/i386/pc/vbetest.c: Likewise.
12313 * commands/lspci.c: Likewise.
12314 * commands/date.c: Likewise.
12315 * commands/handler.c: Likewise.
12316 * commands/ls.c: Likewise.
12317 * commands/test.c: Likewise.
12318 * commands/cmp.c: Likewise.
12319 * commands/efi/loadbios.c: Likewise.
12320 * commands/efi/fixvideo.c: Likewise.
12321 * commands/halt.c: Likewise.
12322 * commands/help.c: Likewise.
12323 * commands/reboot.c: Likewise.
12324 * hello/hello.c: Likewise.
12325 * script/sh/main.c: Likewise.
12326 * loader/xnu.c: Likewise.
12327 * term/terminfo.c: Likewise.
12328 * term/i386/pc/serial.c: Likewise.
12329 * term/usb_keyboard.c: Likewise.
12331 2009-05-03 David S. Miller <davem@davemloft.net>
12333 * normal/menu.c: Include grub/parser.h
12335 2009-05-03 Pavel Roskin <proski@gnu.org>
12337 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
12339 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
12340 Suggested by Javier Martín <lordhabbit@gmail.com>
12342 * util/i386/pc/grub-mkrescue.in: Allow for the case when
12343 efiemu??.o doesn't exist.
12344 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
12347 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
12349 FreeBSD 64-bit support
12351 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
12352 and loader/i386/bsd_trampoline.S
12353 (bsd_mod_ASFLAGS): new variable
12354 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
12355 (FREEBSD_MODTYPE_KERNEL64): likewise
12356 (grub_bsd64_trampoline_start): likewise
12357 (grub_bsd64_trampoline_end): likewise
12358 (grub_bsd64_trampoline_selfjump): likewise
12359 (grub_bsd64_trampoline_gdt): likewise
12360 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
12361 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
12362 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
12363 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
12364 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
12366 * loader/i386/bsd_pagetable.c: new file
12367 * loader/i386/bsd_trampoline.S: likewise
12368 * loader/i386/bsd.c (ALIGN_QWORD): new macro
12369 (ALIGN_VAR): likewise
12370 (entry_hi): new variable
12371 (kern_end_mdofs): likewise
12372 (is_64bit): likewise
12373 (grub_freebsd_add_meta): use ALIGN_VAR
12374 (grub_e820_mmap): new declaration
12375 (grub_freebsd_add_mmap): new function
12376 (grub_freebsd_add_meta_module): support 64 bit kernels
12377 (grub_freebsd_list_modules): use ALIGN_VAR
12378 (gdt_descriptor): new declaration
12379 (grub_freebsd_boot): support 64 bit kernels
12380 (grub_bsd_elf64_hook): new function
12381 (grub_bsd_load_elf): support elf64
12383 2009-05-03 Bean <bean123ch@gmail.com>
12385 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
12386 after we get the result of if statement.
12388 2009-05-03 Bean <bean123ch@gmail.com>
12390 * Makefile.in (enable_efiemu): New variable.
12392 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
12394 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
12396 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
12397 path, add -mno-red-zone option.
12398 (efiemu64_s.o): Likewise.
12399 (efiemu64.o): Use macro $^ for source file.
12401 * configure.ac (--enable-efiemu): New option.
12403 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
12407 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
12408 (pkglib_MODULES): add xnu.mod
12409 (xnu_mod_SOURCES): new variable
12410 (xnu_mod_CFLAGS): likewise
12411 (xnu_mod_LDFLAGS): likewise
12412 (xnu_mod_ASFLAGS): likewise
12413 * conf/i386-pc.rmk: likewise
12414 * conf/x86_64-efi.rmk: likewise
12415 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
12417 * include/grub/i386/macho.h: new file
12418 * include/grub/i386/xnu.h: likewise
12419 * include/grub/macho.h: likewise
12420 * include/grub/machoload.h: likewise
12421 * include/grub/x86_64/macho.h: likewise
12422 * include/grub/x86_64/xnu.h: likewise
12423 * include/grub/xnu.h: likewise
12424 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
12425 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
12426 * loader/i386/efi/xnu.c: new file
12427 * loader/i386/pc/xnu.c: likewise
12428 * loader/i386/xnu.c: likewise
12429 * loader/i386/xnu_helper.S: likewise
12430 * loader/macho.c: likewise
12431 * loader/xnu.c: likewise
12432 * loader/xnu_resume.c: likewise
12433 * util/grub-dumpdevtree: likewise
12434 * include/grub/i386/pit.h: include grub/err.h
12435 (grub_pit_wait): export
12436 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
12438 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12442 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
12443 _linux_efi, linux_efi.
12444 new files in grub-emu
12445 new targets efiemu32.o and efiemu64.o
12446 * loader/linux_normal_efiemu.c: likewise
12447 * loader/i386/efi/linux.c: added preliminary efiemu support
12448 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
12450 * include/grub/autoefi.h: new file
12451 * include/grub/i386/efiemu.h: likewise
12452 * include/grub/i386/pc/efiemu.h: likewise
12453 * include/grub/efi/api.h: add LL suffix when necessary
12454 new definitions relating to tables
12455 * include/grub/efiemu/efiemu.h: new file
12456 * include/grub/efiemu/runtime.h: likewise
12457 * efiemu/prepare.c: likewise
12458 * efiemu/loadcore_common.c: likewise
12459 * efiemu/loadcore64.c: likewise
12460 * efiemu/runtime/efiemu.sh: likewise
12461 * efiemu/runtime/efiemu.S: likewise
12462 * efiemu/runtime/efiemu.c: likewise
12463 * efiemu/runtime/config.h: likewise
12464 * efiemu/prepare32.c: likewise
12465 * efiemu/main.c: likewise
12466 * efiemu/modules/pnvram.c: likewise
12467 * efiemu/modules/i386: likewise
12468 * efiemu/modules/i386/pc: likewise
12469 * efiemu/modules/acpi.c: likewise
12470 * efiemu/i386/pc/cfgtables.c: likewise
12471 * efiemu/i386/loadcore64.c: likewise
12472 * efiemu/i386/loadcore32.c: likewise
12473 * efiemu/prepare64.c: likewise
12474 * efiemu/loadcore.c: likewise
12475 * efiemu/symbols.c: likewise
12476 * efiemu/mm.c: likewise
12477 * efiemu/loadcore32.c: likewise
12479 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12483 * commands/acpi.c: new file
12484 * commands/i386/pc/acpi.c: likewise
12485 * commands/efi/acpi.c: likewise
12486 * include/grub/acpi.h: likewise
12487 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
12488 (acpi_mod_SOURCES): new variable
12489 (acpi_mod_CFLAGS): likewise
12490 (acpi_mod_LDFLAGS): likewise
12491 * conf/i386-efi.rmk: likewise
12492 * conf/x86_64-efi.rmk: likewise
12494 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12496 Missing part from mmap patch
12498 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
12499 (grub_mmap_unregister)
12500 (grub_mmap_free_and_unregister): use grub_mmap_register
12502 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12506 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
12507 * loader/i386/linux.c (find_mmap_size): likewise
12508 (allocate_pages): likewise
12509 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
12510 (grub_fill_multiboot_mmap): likewise
12511 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
12512 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
12513 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
12514 (OPENBSD_MMAP_RESERVED): likewise
12515 * include/grub/i386/pc/memory.h: include grub/memory.h
12516 (grub_lower_mem): removed
12517 (grub_upper_mem): likewise
12518 (GRUB_MACHINE_MEMORY_ACPI): new definition
12519 (GRUB_MACHINE_MEMORY_NVS): likewise
12520 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
12521 (GRUB_MACHINE_MEMORY_HOLE): likewise
12522 (grub_machine_mmap_register): likewise
12523 (grub_machine_mmap_unregister): likewise
12524 (grub_machine_get_upper): likewise
12525 (grub_machine_get_lower): likewise
12526 (grub_machine_get_post64): likewise
12527 * include/grub/i386/efi/memory.h: new file
12528 * include/grub/x86_64/efi/memory.h: likewise
12529 * include/grub/efi/memory.h: likewise
12530 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
12531 (mmap_mod_SOURCES): new variable
12532 (mmap_mod_LDFLAGS): likewise
12533 (mmap_mod_ASFLAGS): likewise
12534 * conf/i386-coreboot.rmk: likewise
12535 * conf/i386-ieee1275.rmk: likewise
12536 * conf/i386-efi.rmk: likewise
12537 * conf/x86_64-efi.rmk: likewise
12538 * include/grub/types.h (UINT_TO_PTR): new macro
12539 (PTR_TO_UINT32): likewise
12540 (PTR_TO_UINT64): likewise
12541 * include/grub/memory.h: new file
12542 * mmap/i386/pc/mmap.c: likewise
12543 * mmap/i386/pc/mmap_helper.S: likewise
12544 * mmap/i386/uppermem.c: likewise
12545 * mmap/mmap.c: likewise
12546 * mmap/efi/mmap.c: likewise
12547 * kern/i386/coreboot/init.c (grub_machine_init): don't use
12549 * kern/i386/pc/init.c (grub_lower_mem): removed variable
12550 (grub_upper_mem): likewise
12551 (grub_machine_init): don't use grub_upper_mem,
12552 make grub_lower_mem local
12553 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
12554 grub_mmap_iterate and grub_mmap_get_upper
12555 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
12557 2009-05-02 Bean <bean123ch@gmail.com>
12559 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
12560 script/sh/parser.y.
12561 (pkglib_MODULES): Add normal.mod and sh.mod.
12562 (normal_SOURCES): New variable.
12563 (normal_mod_CFLAGS): Likewise.
12564 (normal_mod_LDFLAGS): Likewise.
12565 (sh_mod_SOURCES): Likewise.
12566 (sh_mod_CFLAGS): Likewise.
12567 (sh_mod_LDFLAGS): Likewise.
12569 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
12570 script/sh/lexer.c_DEPENDENCIES.
12571 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
12572 kern/rescue_reader.c and kern/rescue_parser.c.
12573 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
12574 (grub_emu_SOURCES): Change source files.
12575 (pkglib_MODULES): Remove normal.mod.
12576 (normal_SOURCES): Removed.
12577 (normal_mod_CFLAGS): Likewise.
12578 (normal_mod_LDFLAGS): Likewise.
12579 * conf/i386-coreboot.rmk: Likewise.
12580 * conf/i386-efi.rmk: Likewise.
12581 * conf/i386-ieee1276.rmk: Likewise.
12582 * conf/powerpc-ieee1275.rmk: Likewise.
12583 * conf/sparc64-ieee1275.rmk: Likewise.
12584 * conf/x86_64-efi.rmk: Likewise.
12586 * include/grub/command.h (grub_command_execute): New inline function.
12588 * include/grub/menu.h (grub_menu_entry): Removed commands field.
12590 * include/grub/normal.h: Remove <grub/setjmp.h>.
12591 (grub_fs_module_list): Moved to normal/autofs.c.
12592 (grub_exit_env): Removed.
12593 (grub_command_execute): Likewise.
12594 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
12596 (read_command_list): New function declaration.
12597 (read_fs_list): Likewise.
12599 * include/parser.h: Include <grub/reader.h>.
12600 (grub_parser_split_cmdline): Change type of getline parameter.
12601 (grub_parser): New structure.
12602 (grub_parser_class): New variable.
12603 (grub_parser_execute): New function declaration.
12604 (grub_register_rescue_parser): Likewise.
12605 (grub_parser_register): New inline function.
12606 (grub_parser_unregister): Likewise.
12607 (grub_parser_get_current): Likewise.
12608 (grub_parser_set_current): Likewise.
12610 * include/grub/reader.h: New file.
12611 * kern/reader.c: Likewise.
12612 * kern/rescue_parser.c: Likewise.
12613 * kern/rescue_reader.c: Likewise.
12614 * normal/autofs.c: Likewise.
12615 * normal/dyncmd.c: Likewise.
12617 * include/grub/rescue.h: Removed.
12618 * normal/command.h: Likewise.
12620 * include/grub/script.h: Moved to ...
12621 * include/grub/script_sh.h: ... Moved here.
12622 * normal/execute.c: Moved to ...
12623 * script/sh/execute.c: ... Moved here.
12624 * normal/function.c: Moved to ...
12625 * script/sh/function.c: ... Moved here.
12626 * normal/lexer.c: Moved to ...
12627 * script/sh/lexer.c: ... Moved here.
12628 * normal/parser.y: Moved to ...
12629 * script/sh/parser.y: ... Moved here.
12630 * normal/script.c: Moved to ...
12631 * script/sh/script.c: ... Moved here.
12633 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
12635 (grub_exit_env): Removed.
12636 (fs_module_list): Moved to normal/autofs.c.
12637 (grub_file_getline): Don't handle comment here.
12638 (free_menu): Skip removed field entry->commands.
12639 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
12641 (read_config_file): Removed nested parameter, change getline function.
12642 (grub_enter_normal_mode): Removed.
12643 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
12644 (read_command_list): Likewise.
12645 (autoload_fs_module): Moved to normal/autofs.c.
12646 (read_fs_list): Likewise.
12647 (reader_nested): New variable.
12648 (grub_normal_execute): Run parser.sh to switch to sh parser.
12649 (grub_cmd_rescue): Removed.
12650 (cmd_normal): Removed.
12651 (grub_cmd_normal): Unregister itself at the beginning. Don't register
12653 (grub_cmdline_run): New function.
12654 (grub_normal_reader_init): Likewise.
12655 (grub_normal_read_line): Likewise.
12656 (grub_env_write_pager): Likewise.
12657 (cmdline): New variable.
12658 (grub_normal_reader): Likewise.
12659 (GRUB_MOD_INIT): Register normal reader and set as current, register
12660 pager hook, register normal command with grub_register_command_prio,
12661 so that it won't show up in command.lst.
12662 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
12663 grub_fs_autoload_hook.
12665 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
12666 (grub_menu_execute_entry): Replace grub_script_execute with
12667 grub_parser_execute, change parameter to grub_command_execute.
12669 * normal/menu_text.c: Remove <grub/script.h>.
12671 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
12672 and <grub/parser.h>.
12673 (run): Change editor_getline to use new parser interface. Change
12674 parameter to grub_command_execute.
12676 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
12677 <grub/reader.h> and <grub/parser.h>.
12678 (grub_load_normal_mode): Execute normal command.
12679 (grub_main): Call grub_register_core_commands,
12680 grub_register_rescue_parser and grub_register_rescue_reader, use
12681 grub_reader_loop to enter input loop.
12683 * kern/parser.c (grub_parser_split_cmdline): Change type of
12685 (grub_parser_class): New variable.
12686 (grub_parser_execute): New function.
12688 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
12689 * loader/multiboot2.c: Likewise.
12690 * loader/sparc64/ieee1275/linux.c: Likewise.
12692 * util/grub-emu.c (read_command_list): New dummy function.
12694 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
12696 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
12697 count to 16 for CCISS and IDA.
12699 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
12701 * normal/menu_text.c (grub_wait_after_message): Print a newline
12702 after waiting for user input.
12704 * loader/i386/linux.c: Include `<grub/normal.h>'.
12705 (grub_cmd_linux): Improve the error message about `ask' mode, by
12706 waiting for user input so it's not missed (we can do this, since
12707 user requested interaction).
12709 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12711 Added missing lst to grub-mkrescue
12713 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
12714 and ${input_dir}/parttool.lst
12716 2009-04-30 David S. Miller <davem@davemloft.net>
12718 * util/hostdisk.c (device_is_wholedisk): New function.
12719 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
12720 zero only if device_is_wholedisk() returns true.
12722 * util/hostdisk.c (convert_system_partition_to_system_disk):
12723 Handle virtual disk devices named /dev/vdiskX as found on sparc
12726 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
12727 lettered partition specifier is found, convert to numbered.
12729 2009-04-29 David S. Miller <davem@davemloft.net>
12731 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
12732 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12734 * normal/command.c: Add missing newline at end of file.
12736 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
12738 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
12739 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
12740 grub_ofdisk_read): Likewise, and deal similarly with the fact that
12741 ihandles have a 32-bit type but need to be stored in a "void *".
12743 2009-04-28 Pavel Roskin <proski@gnu.org>
12745 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
12746 not disk. Adjust all dependencies.
12747 (grub_fs_uuid_close): Use grub_device_close(), not
12750 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
12751 parent's partition, don't copy it by reference, as it gets freed
12754 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
12756 Preboot hooks support
12758 * commands/boot.c (struct grub_preboot_t): new declaration
12759 (preboots_head): new variable
12760 (preboots_tail): likewise
12761 (grub_loader_register_preboot_hook): new function
12762 (grub_loader_unregister_preboot_hook): likewise
12763 (grub_loader_set): launch preboot hooks
12764 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
12765 (grub_loader_register_preboot_hook): new declaration
12766 (grub_loader_unregister_preboot_hook): likewise
12768 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
12772 * disk/scsi.c (grub_scsi_open): added missing cast when
12773 calling grub_dprintf
12775 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
12777 Bug and warning fixes
12779 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
12781 * commands/test.c (test_parse): fixed bug with file tests and corrected
12782 declaration of find_file
12784 2009-04-26 Pavel Roskin <proski@gnu.org>
12786 * Makefile.in: Don't install empty manual pages if help2man is
12787 missing. Use help2man option for output, not shell redirection.
12789 2009-04-26 David S. Miller <davem@davemloft.net>
12791 * util/grub-mkdevicemap.c (make_device_map): Add missing
12792 NESTED_FUNC_ATTR to process_device().
12794 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12798 * commands/test.c: rewritten to use bash-like test
12800 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12802 Parttool autoloading and improvements
12804 * Makefile.in (pkglib_DATA): add parttool.lst
12805 (parttool.lst): new target
12806 * genmk.rb: generate parttool-*
12807 (CLEANFILES): add #{parttool}
12808 (PARTTOOLFILES): new variable
12809 * genparttoollist.sh: new file
12810 * parttool/pcpart.c (grub_pcpart_boot): more feedback
12811 (grub_pcpart_type): likewise
12812 * commands/parttool.c (helpmsg): new variable
12813 (grub_cmd_parttool): output help if not enough arguments are supplied
12815 (GRUB_MOD_INIT(parttool)): use helpmsg
12817 2009-04-24 David S. Miller <davem@davemloft.net>
12819 Avoiding opening same device multiple times in device iterator.
12821 * kern/device.c: (grub_device_iterate): Define struct part_ent,
12822 and use it to build a list of partitions in iterate_disk() and
12823 iterate_partition().
12825 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
12828 * disk/ieee1275/nand.c (grub_nand_iterate): Return
12829 grub_devalias_iterate() result instead of unconditional 0.
12830 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
12831 Also, capture hook return value, either directly or via
12832 grub_children_iterate(), and propagate to caller.
12833 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
12834 grub_children_iterate): Return value is now 'int' instead of
12836 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
12837 like a proper iterator, stopping when hooks return non-zero.
12838 (grub_devalias_iterate): Likewise.
12840 2009-04-23 David S. Miller <davem@davemloft.net>
12842 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
12844 2009-04-22 David S. Miller <davem@davemloft.net>
12846 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
12847 is larger than address_cells, use that value for address_cells too.
12849 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
12850 IEEE1275_MAX_PATH_LEN): Define.
12851 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
12852 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
12853 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
12854 'devtype'. Explicitly NULL terminate devalias expansion.
12856 * util/sparc64/ieee1275/misc.c: New file.
12857 * util/sparc64/ieee1275/grub-setup.c: New file.
12858 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
12859 * util/sparc64/ieee1275/grub-mkimage.c: New file.
12860 * util/sparc64/ieee1275/grub-install.in: New file.
12861 * util/ieee1275/ofpath.c: New file.
12862 * util/ieee1275/devicemap.c: New file.
12863 * util/devicemap.c: New file.
12864 * util/deviceiter.c: New file.
12865 * kern/sparc64/ieee1275/init.c: New file.
12866 * include/grub/util/ofpath.h: New file.
12867 * include/grub/util/deviceiter.h: New file.
12868 * util/grub-mkdevicemap.c: Include deviceiter.h.
12869 Implement using grub_util_emit_devicemap_entry and
12870 grub_util_iterate_devices.
12871 * conf/i386-corebook.rmk: Build util/deviceiter.c and
12872 util/devicemap.c into grub-mkdevicemap
12873 * conf/i386-efi.rmk: Likewise.
12874 * conf/i386-ieee1275.rmk: Likewise.
12875 * conf/i386-pc.rmk: Likewise.
12876 * conf/powerpc-ieee1275.rmk: Likewise.
12877 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
12878 images and installation utilities. Build kernel as image
12879 instead of as elf binary. Use common rules as much as possible.
12881 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12883 Correct GPT definition
12885 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
12888 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
12890 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
12892 2009-04-19 David S. Miller <davem@davemloft.net>
12894 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
12895 (grub_rescue_cmd_linux): Rename to...
12896 (grub_cmd_linux): and fix prototype.
12897 (grub_rescue_cmd_initrd): Rename to...
12898 (grub_cmd_initrd): and fix prototype.
12899 (cmd_linux, cmd_initrd): New.
12900 (GRUB_MOD_INIT(linux)): Use grub_register_command().
12901 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
12903 2009-04-17 Pavel Roskin <proski@gnu.org>
12905 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
12907 (grub_ohci_transfer): Likewise.
12909 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
12911 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
12912 return without a value. Fix inconsistent indentation.
12914 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
12915 match struct grub_fs.
12917 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
12918 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
12919 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
12920 * commands/lspci.c (grub_lspci_iter): Likewise.
12922 2009-04-16 Bean <bean123ch@gmail.com>
12924 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
12927 2009-04-15 Pavel Roskin <proski@gnu.org>
12929 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
12930 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
12931 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
12934 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
12936 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
12937 that no multiple data or metadata areas are supported and `Unknown
12940 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12942 Move loader out of the kernel
12944 * kern/loader.c: moved to ...
12945 * commands/boot.c: ... moved here
12946 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
12947 * commands/boot.c (grub_cmd_boot): moved here. All users updated
12948 * include/grub/kernel.h (grub_machine_fini): export
12949 * include/grub/loader.h (grub_loader_is_loaded): update declaration
12950 (grub_loader_set): likewise
12951 (grub_loader_unset): likewise
12952 (grub_loader_boot): likewise
12953 * conf/common.rmk: new module boot.mod
12954 (pkglib_MODULES): add boot.mod
12955 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
12956 (grub_emu_SOURCES): likewise
12957 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
12958 (grub_emu_SOURCES): likewise
12959 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
12960 (grub_emu_SOURCES): likewise
12961 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
12962 (grub_emu_SOURCES): likewise
12963 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
12964 (grub_emu_SOURCES): likewise
12965 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
12966 (grub_emu_SOURCES): likewise
12967 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
12968 (grub_emu_SOURCES): likewise
12970 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12972 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
12974 * kern/misc.c (grub_itoa): Removed function
12975 (grub_ltoa): likewise
12976 (grub_vsprintf): use grub_lltoa
12978 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12982 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
12983 * conf/i386-coreboot.rmk: likewise
12984 * conf/i386-ieee1275.rmk: likewise
12985 * conf/powerpc-ieee1275.rmk: likewise
12987 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
12989 * INSTALL: Add that `./autogen.sh' needs to be run before
12992 2009-04-14 Bean <bean123ch@gmail.com>
12994 * Makefile.in (pkglib_DATA): Add handler.lst.
12995 (handler.lst): New rule.
12997 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
12998 * conf/i386-coreboot.rmk: Likewise.
12999 * conf/i386-ieee1275.rmk: Likewise.
13000 * conf/i386-efi.rmk: Likewise.
13001 * conf/x86_64-efi.rmk: Likewise.
13002 * conf/powerpc-ieee1275.rmk: Likewise.
13003 * conf/sparc64-ieee1275.rmk: Likewise.
13005 * genhandlerlist.sh: New file.
13007 * genmk.rb: Add rules to generate handler.lst.
13009 * include/grub/normal.h (grub_file_getline): New function definition.
13010 (read_handler_list): Likewise.
13011 (free_handler_list): Likewise.
13013 * include/grub/term.h (grub_term_register_input): Add name parameter
13014 for auto generation of handler.lst.
13015 (grub_term_register_output): Likewise.
13017 * normal/handler.c: New file.
13019 * normal/main.c (get_line): Renamed to grub_file_getline.
13020 (read_config_file): Use the newly renamed grub_file_getline.
13021 (read_command_list): Likewise.
13022 (read_fs_list): Likewise.
13023 (grub_normal_execute): Call read_handler_list to parse handler.lst.
13024 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
13026 * term/efi/console.c (grub_console_init): Add name parameter for auto
13027 generation of handler.lst.
13028 * term/gfxterm.c: Likewise.
13029 * term/i386/pc/at_keyboard.c: Likewise.
13030 * term/i386/pc/console.c: Likewise.
13031 * term/i386/pc/serial.c: Likewise.
13032 * term/i386/pc/vesafb.c: Likewise.
13033 * term/i386/pc/vga.c: Likewise.
13034 * term/i386/pc/vga_text.c: Likewise.
13035 * term/ieee1275/ofconsole.c: Likewise.
13036 * term/usb_keyboard.c: Likewise.
13038 2009-04-14 Bean <bean123ch@gmail.com>
13040 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
13041 properly with null character.
13043 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
13045 * configure: Remove.
13046 * config.h.in: Likewise.
13047 * stamp-h.in: Likewise.
13048 * DISTLIST: Likewise.
13049 * conf/common.mk: Likewise.
13050 * conf/i386-coreboot.mk: Likewise.
13051 * conf/i386-efi.mk: Likewise.
13052 * conf/i386-ieee1275.mk: Likewise.
13053 * conf/i386.mk: Likewise.
13054 * conf/i386-pc.mk: Likewise.
13055 * conf/powerpc-ieee1275.mk: Likewise.
13056 * conf/sparc64-ieee1275.mk: Likewise.
13057 * conf/x86_64-efi.mk: Likewise.
13059 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
13062 2009-04-14 John Stanley <jpsinthemix@verizon.net>
13063 David S. Miller <davem@davemloft.net>
13065 * util/hostdisk.c (make_device_name): Fix buffer length
13068 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
13070 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
13071 <sys/param.h> and <sys/sysctl.h>.
13072 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
13073 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
13074 opening the device and reset them afterwards.
13076 2009-04-13 Pavel Roskin <proski@gnu.org>
13078 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
13079 Reported by John Stanley <jpsinthemix@verizon.net>
13081 2009-04-13 Robert Millan <rmh@aybabtu.com>
13083 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
13084 that name for menuentries when appropriate.
13086 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
13088 * util/grub.d/10_freebsd.in: Add a missing `fi'.
13090 2009-04-13 Robert Millan <rmh@aybabtu.com>
13092 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
13093 to Linux, simply abort telling the user it's no longer supported.
13095 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
13097 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
13098 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
13099 `freebsd_loadenv' only when devices.hints exist.
13101 2009-04-13 Pavel Roskin <proski@gnu.org>
13103 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
13105 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
13107 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
13109 (grub_drive): Likewise.
13111 2009-04-13 David S. Miller <davem@davemloft.net>
13113 * kern/sparc64/ieee1275/ieee1275.c: New file.
13114 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
13115 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
13116 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
13117 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
13118 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
13119 grub_ieee1275_alloc_physmem): Declare new exported functions.
13121 * include/grub/sparc64/ieee1275/loader.h: New file.
13122 * include/grub/sparc64/ieee1275/memory.h: Likewise.
13123 * include/grub/sparc64/kernel.h: Likewise.
13124 * loader/sparc64/ieee1275/linux.c: Likewise.
13126 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
13127 (grub_fstest_SOURCES): Likewise.
13129 * util/hostdisk.c (make_device_name): Do not make any assumptions
13130 about the length of drive names.
13132 * kern/dl.c (grub_dl_load_file): Close file immediately when
13133 we are done using it.
13135 2009-04-12 David S. Miller <davem@davemloft.net>
13137 * kern/misc.c (grub_ltoa): Fix cast when handling negative
13138 values. Noticed by Pavel Roskin.
13140 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
13143 * genmk.rb: Add more flexible image type specification, also
13144 pass --strip-unneeded to objcopy.
13145 * conf/i386-pc.rmk: Use *_FORMAT.
13146 * conf/i386-pc.mk: Rebuilt.
13148 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
13149 (OFDISK_HASH_SZ): Define.
13150 (ofdisk_hash): New hash table.
13151 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
13152 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
13153 instead of device phandle which is not unique.
13155 * kern/sparc64/ieee1275/init.c: Delete, replace with...
13156 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
13157 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
13158 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
13159 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
13160 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
13161 GRUB_KERNEL_MACHINE_DATA_END): Define.
13162 (grub_kernel_image_size, grub_total_module_size): Declare.
13164 2009-04-12 Pavel Roskin <proski@gnu.org>
13166 * configure.ac: Change the logic when we check for target tools.
13167 Do it when the target is specified and it's different from the
13168 specified value of the host.
13170 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
13172 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
13173 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
13174 GNU/kFreeBSD. Check if a device is a character device. Use
13175 DIOCGMEDIASIZE to get the size.
13176 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
13177 support for GNU/kFreeBSD.
13178 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
13179 is a character device instead of a block device. Add support for
13180 FreeBSD device names.
13182 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
13183 is a character device instead of a block device.
13185 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
13186 is a character device instead of a block device.
13188 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
13190 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
13191 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
13192 FreeBSD. Check if a device is a character device. Use
13193 DIOCGMEDIASIZE to get the size.
13194 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
13195 support for FreeBSD.
13196 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
13197 is a character device instead of a block device. Add support for
13198 FreeBSD device names.
13200 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
13201 a character device instead of a block device.
13202 (grub_util_check_char_device): New function.
13204 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
13205 a character device instead of a block device.
13207 * include/grub/util/getroot.h (grub_util_check_char_device): New
13210 2009-04-11 David S. Miller <davem@davemloft.net>
13212 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
13214 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
13215 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
13216 function, if present.
13217 (__bswapdi2): Likewise.
13219 * include/grub/sparc64/ieee1275/boot.h: New file.
13220 * boot/sparc64/ieee1275/boot.S: Likewise.
13221 * boot/sparc64/ieee1275/diskboot.S: Likewise.
13223 * kern/misc.c (grub_ltoa): New function.
13224 (grub_vsprintf): Use it to format 'long' integers.
13226 2009-04-10 David S. Miller <davem@davemloft.net>
13228 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
13229 slots are of type grub_ieee1275_cell_t.
13230 (grub_nand_read): Likewise.
13231 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
13232 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
13233 macros are used to compare values in arg/ret block of the call.
13234 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
13235 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
13236 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
13237 grub_ieee1275_instance_to_path, grub_ieee1275_write,
13238 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
13239 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
13240 grub_ieee1275_close, grub_ieee1275_set_property,
13241 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
13242 grub_ieee1275_cell_t.
13243 * kern/ieee1275/openfw.c (grub_map): Likewise.
13244 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
13245 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
13247 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
13248 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
13249 (grub_devalias_iterate): Likewise.
13251 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13255 * fs/ufs.c (INODE_NBLOCKS): new definition
13256 (struct grub_ufs_dirent): added fields for non-BSD dirents
13257 (grub_ufs_get_file_block): fixed double indirect handling
13258 (grub_ufs_lookup_symlink): use more robust way to determine whether
13260 (grub_ufs_find_file): support for non-BSD dirents
13261 (grub_ufs_dir): support for non-BSD dirents
13263 2009-04-10 Bean <bean123ch@gnail.com>
13265 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
13266 attribute, otherwise the size would be wrong for i386 platform.
13268 * include/grub/pci.h (grub_pci_read_word): New inline function.
13269 (grub_pci_read_byte): Likewise.
13270 (grub_pci_write): Likewise.
13271 (grub_pci_write_word): Likewise.
13272 (grub_pci_write_byte): Likewise.
13274 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
13276 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
13277 (find_framebuf): Scan pci to locate the frame buffer address.
13279 * commands/efi/fixvideo.c: New file.
13281 * commands/efi/loadbios.c: Likewise.
13283 * commands/memrw.c: Likewise.
13285 * util/grub-dumpbios.in: Likewise.
13287 * conf/common.rmk (grub-dumpbios): New utility.
13288 (pkglib_MODULES): New module memrw.mod.
13289 (memrw_mod_SOURCE): New macro.
13290 (memrw_mod_CFLAGS): Likewise.
13291 (memrw_mod_LDFLAGS): Likewise.
13293 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
13295 (loadbios_mod_SOURCE): New macro.
13296 (loadbios_mod_CFLAGS): Likewise.
13297 (loadbios_mod_LDFLAGS): Likewise.
13298 (fixvideo_mod_SOURCE): Likewise.
13299 (fixvideo_mod_CFLAGS): Likewise.
13300 (fixvideo_mod_LDFLAGS): Likewise.
13302 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
13304 (loadbios_mod_SOURCE): New macro.
13305 (loadbios_mod_CFLAGS): Likewise.
13306 (loadbios_mod_LDFLAGS): Likewise.
13307 (fixvideo_mod_SOURCE): Likewise.
13308 (fixvideo_mod_CFLAGS): Likewise.
13309 (fixvideo_mod_LDFLAGS): Likewise.
13311 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
13313 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
13315 2009-04-07 David S. Miller <davem@davemloft.net>
13317 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
13318 support for R_SPARC_OLO10 relocations. Fix compile warning for
13319 R_SPARC_WDISP30 case.
13320 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
13322 2009-04-06 Pavel Roskin <proski@gnu.org>
13324 * include/grub/misc.h (ARRAY_SIZE): New macro.
13325 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
13327 * loader/i386/linux.c (allocate_pages): Use free_pages().
13328 (grub_linux_unload): Don't use free_pages().
13329 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
13330 wrong index. Treat all other modes as text modes.
13331 (grub_cmd_linux): Initialize vid_mode unconditionally to
13332 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
13334 * commands/help.c (print_command_help): Use cmd->prio, not
13335 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
13337 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13341 * parttool/pcpart.c: new file
13342 * commands/parttool.c: likewise
13343 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
13344 (parttool_mod_SOURCES): new variable
13345 (parttool_mod_CFLAGS): likewise
13346 (parttool_mod_LDFLAGS): likewise
13347 (pcpart_mod_SOURCES): likewise
13348 (pcpart_mod_CFLAGS): likewise
13349 (pcpart_mod_LDFLAGS): likewise
13350 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
13351 and parttool/pcpart.c
13352 * conf/i386-efi.rmk: likewise
13353 * conf/i386-ieee1275.rmk: likewise
13354 * conf/i386-pc.rmk: likewise
13355 * conf/powerpc-ieee1275.rmk: likewise
13356 * conf/sparc64-ieee1275.rmk: likewise
13357 * conf/x86_64-ieee1275.rmk: likewise
13359 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
13361 Support for mtime and further expandability of dir command
13363 * include/grub/lib/datetime.h: moved to ...
13364 * include/grub/datetime.h: ... moved here and added
13365 declaration of grub_unixtime2datetime. All users updated
13366 * include/grub/fs.h: new syntax for dir and mtime functions in
13368 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
13369 and GRUB_FSHELP_FLAGS_MASK
13370 * commands/ls.c (grub_ls_list_files): Write mtime in long format
13371 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
13372 (grub_ext2_mtime): new function
13373 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
13374 (grub_hfsplus_mtime): new function
13375 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
13376 (GRUB_UFS_ATTR_FILE): likewise
13377 (GRUB_UFS_ATTR_LNK): likewise
13378 (struct grub_ufs_sblock): new fields mtime
13379 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
13381 (grub_ufs_dir): mtime support
13382 (grub_ufs_mtime): new function
13383 * fs/affs.c (grub_affs_dir): use new dir syntax
13384 * fs/afs.c (grub_afs_dir): likewise
13385 * fs/cpio.c (grub_cpio_dir): likewise
13386 * fs/fat.c (grub_fat_find_dir): likewise
13387 * fs/hfs.c (grub_hfs_dir): likewise
13388 * fs/iso9660.c (grub_iso9660_dir): likewise
13389 * fs/jfs.c (grub_jfs_dir): likewise
13390 * fs/minix.c (grub_minix_dir): likewise
13391 * fs/ntfs.c (grub_ntfs_dir): likewise
13392 * fs/reiserfs.c (grub_reiserfs_dir): likewise
13393 * fs/sfs.c (grub_sfs_dir): likewise
13394 * fs/xfs.c (grub_xfs_dir): likewise
13395 * util/hostfs.c (grub_hostfs_dir): likewise
13396 * lib/datetime.c: moved to ...
13397 * normal/datetime.c: ... moved here
13398 (grub_unixtime2datetime): new function
13399 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
13400 * normal/completion.c (iterate_dir): use new dir syntax
13401 * normal/misc.c (grub_normal_print_device_info): tell the
13402 last modification time of a volume
13403 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
13404 * conf/common.rmk: added lib/datetime.c to ls.mod
13405 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
13406 (normal_mod_SOURCES): likewise
13407 (datetime_mod_SOURCES): Removed lib/datetime.c
13408 * conf/i386-efi.rmk: likewise
13409 * conf/i386-ieee1275.rmk: likewise
13410 * conf/i386-pc.rmk: likewise
13411 * conf/powerpc-ieee1275.rmk: likewise
13412 * conf/sparc64-ieee1275.rmk: likewise
13413 * conf/x86_64-efi.rmk: likewise
13415 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
13417 Trim trailing spaces in FAT label and support mtools-like labels
13419 * fs/fat.c (grub_fat_iterate_dir): New function based
13420 on grub_fat_find_dir
13421 (grub_fat_find_dir): use grub_fat_iterate_dir
13422 (grub_fat_label): likewise
13424 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
13426 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
13428 remove extraneous kernel_elf_HEADERS
13430 2009-04-04 Bean <bean123ch@gnail.com>
13432 * include/grub/util/misc.h: Add dummy function fsync for mingw.
13434 * util/misc.c: Likewise.
13436 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
13438 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
13439 instead of grub_printf.
13441 2009-04-03 Robert Millan <rmh@aybabtu.com>
13443 * loader/i386/linux.c (grub_linux_setup_video): Fill
13444 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
13445 values from `mode info' structure instead of hardcoded
13448 2009-04-01 Pavel Roskin <proski@gnu.org>
13450 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
13452 * genmk.rb: Likewise.
13453 * configure.ac: Likewise.
13455 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
13457 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
13458 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
13460 2009-04-01 David S. Miller <davem@davemloft.net>
13462 * normal/sparc64/setjmp.S: Fix setjmp implementation.
13463 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
13464 (grub_setjmp): Mark with 'returns_twice' attribute.
13465 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
13466 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
13467 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
13469 2009-04-01 Robert Millan <rmh@aybabtu.com>
13471 Reapply fix from 2008-07-28 which was accidentally reverted; also
13472 perform the same fix to a similar check in same function.
13474 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
13475 with the same number are found, just use issue a warning with
13476 grub_dprintf(), as this error has been reported to be non-fatal.
13478 2009-03-31 Pavel Roskin <proski@gnu.org>
13480 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
13481 for cross-compilation.
13483 2009-03-30 Robert Millan <rmh@aybabtu.com>
13485 Fix i386-ieee1275 build.
13487 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
13488 Remove declaration.
13490 2009-03-30 Pavel Roskin <proski@gnu.org>
13492 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
13493 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
13494 zero-terminated, rely only on the strlen value. Fix comparison
13495 of strings differing in length.
13497 2009-03-30 Robert Millan <rmh@aybabtu.com>
13499 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
13500 checking for abi version. Improve error messages on BIOS to notify
13501 user about `linux16' command.
13503 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13507 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
13508 in case of collision
13509 * disk/scsi.c (grub_scsi_open): free scsi in case of error
13511 2009-03-29 Robert Millan <rmh@aybabtu.com>
13513 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
13514 set `vid_mode' accordingly.
13515 (grub_linux_boot): Process `vid_mode' and set video mode.
13517 2009-03-29 Robert Millan <rmh@aybabtu.com>
13519 * util/grub.d/10_linux.in (linux_entry): New function.
13520 Factorize generation of Linux boot entries.
13522 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
13524 Make the format of Environment Block plain text. The boot loader
13525 part is not tested well yet.
13527 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
13529 (envblk): Likewise.
13530 (usage): Remove "info" and "clear". Add "unset". Update the
13531 description of "set", as this does not delete variables any
13533 (create_envblk_file): Complete rewrite.
13534 (open_envblk_file): Likewise.
13535 (cmd_info): Removed.
13536 (cmd_list): Likewise.
13537 (cmd_set): Likewise.
13538 (cmd_clear): Likewise.
13539 (list_variables): New function.
13540 (write_envblk): Likewise.
13541 (set_variables): Likewise.
13542 (unset_variables): Likewise.
13543 (main): Complete rewrite.
13545 * commands/loadenv.c (buffer): Removed.
13546 (envblk): Likewise.
13547 (open_envblk_file): New function.
13548 (read_envblk_file): Complete rewrite.
13549 (grub_cmd_load_env): Likewise.
13550 (grub_cmd_list_env): Likewise.
13551 (struct blocklist): New struct.
13552 (free_blocklists): New function.
13553 (check_blocklists): Likewise.
13554 (write_blocklists): Likewise.
13555 (grub_cmd_save_env): Complete rewrite.
13557 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
13558 a plain text signature.
13559 (GRUB_ENVBLK_MAXLEN): Removed.
13560 (struct grub_envblk): Complete rewrite.
13561 (grub_envblk_find): Removed.
13562 (grub_envblk_insert): Likewise.
13563 (grub_envblk_open): New prototype.
13564 (grub_envblk_set): Likewise.
13565 (grub_envblk_delete): Put const to VALUE.
13566 (grub_envblk_iterate): Put const to NAME and VALUE.
13567 (grub_envblk_close): New prototype.
13568 (grub_envblk_buffer): New inline function.
13569 (grub_envblk_size): Likewise.
13571 * lib/envblk.c: Include grub/mm.h.
13572 (grub_env_find): Removed.
13573 (grub_envblk_open): New function.
13574 (grub_envblk_close): Likewise.
13575 (escaped_value_len): Likewise.
13576 (find_next_line): Likewise.
13577 (grub_envblk_insert): Removed.
13578 (grub_envblk_set): New function.
13579 (grub_envblk_delete): Complete rewrite.
13580 (grub_envblk_iterate): Likewise.
13582 2009-03-28 Robert Millan <rmh@aybabtu.com>
13584 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
13585 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
13586 variables. Use 16-bit loader.
13587 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
13589 * kern/i386/loader.S (grub_linux_boot): Rename to ...
13590 (grub_linux16_boot): ... this. Update all users.
13591 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
13592 (grub_linux_boot): ... this. Update all users.
13594 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
13595 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
13596 commands to `linux16' and `initrd16'.
13597 (GRUB_MOD_FINI(linux)): Rename to ...
13598 (GRUB_MOD_FINI(linux16)): ... this.
13600 2009-03-24 Pavel Roskin <proski@gnu.org>
13602 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
13603 not just for compilation.
13605 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
13607 Move multiboot helper out of kernel
13609 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
13610 `loader/i386/multiboot_helper.S'.
13611 * conf/i386-coreboot.rmk: Likewise
13612 * conf/i386-ieee1275.rmk: Likewise
13614 * kern/i386/loader.S: Move multiboot helpers from here...
13615 * loader/i386/multiboot_helper.S: ...moved here
13616 * include/grub/i386/loader.h: Move declarations of multiboot
13617 helpers from here...
13618 * include/grub/i386/multiboot.h: ...moved here
13619 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
13621 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13623 * kern/env.c (grub_env_context_open): Added an argument to specify
13624 whether a new context inherits exported variables from current
13625 one. This is useful when making a sandbox to interpret a config
13627 All callers updated.
13629 * include/grub/env.h (grub_env_context_open): Updated the prototype.
13631 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13633 * kern/env.c (grub_env_context_close): Fix memory leaks.
13635 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13637 * normal/main.c (grub_normal_execute): Added an argument
13638 BATCH to specify if an interactive interface should be provided
13639 after reading a config file.
13640 All callers updated.
13641 (read_command_list): Prevent being executed twice.
13642 (read_fs_list): Likewise.
13644 * include/grub/normal.h (grub_normal_execute): Updated the
13647 2009-03-22 Pavel Roskin <proski@gno.org>
13649 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
13651 * kern/i386/pc/startup.S: Likewise.
13652 * kern/i386/efi/startup.S: Likewise.
13653 * kern/i386/ieee1275/startup.S: Likewise.
13654 * kern/i386/coreboot/startup.S: Likewise.
13655 * kern/x86_64/efi/startup.S: Likewise.
13657 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
13658 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
13659 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
13661 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
13663 Bugfixes in multiboot for bugs uncovered by solaris kernel.
13665 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
13667 Use vaddr of correct segment for entry_point.
13669 2009-03-21 Bean <bean123ch@gmail.com>
13671 * commands/blocklist.c: Add include file <grub/command.h>, remove
13672 <grub/normal.h> and <grub/arg.h>.
13673 (grub_cmd_blocklist): Use the new command interface.
13674 (GRUB_MOD_INIT): Likewise.
13675 (GRUB_MOD_FINI): Likewise.
13676 * commands/boot.c: Likewise.
13677 * commands/cat.c: Likewise.
13678 * commands/cmp.c: Likewise.
13679 * commands/configfile.c: Likewise.
13680 * commands/crc.c: Likewise.
13681 * commands/echo.c: Likewise.
13682 * commands/halt.c: Likewise.
13683 * commands/handler.c: Likewise.
13684 * commands/hdparm.c: Likewise.
13685 * commands/help.c: Likewise.
13686 * commands/hexdump.c: Likewise.
13687 * commands/loadenv.c: Likewise.
13688 * commands/ls.c: Likewise.
13689 * commands/lsmmap.c: Likewise.
13690 * commands/lspci.c: Likewise.
13691 * commands/loadenv.c: Likewise.
13692 * commands/read.c: Likewise.
13693 * commands/reboot.c: Likewise.
13694 * commands/search.c: Likewise.
13695 * commands/sleep.c: Likewise.
13696 * commands/test.c: Likewise.
13697 * commands/usbtest.c: Likewise.
13698 * commands/videotest.c: Likewise.
13699 * commands/i386/cpuid.c: Likewise.
13700 * commands/i386/pc/halt.c: Likewise.
13701 * commands/i386/pc/play.c: Likewise.
13702 * commands/i386/pc/pxecmd.c: Likewise.
13703 * commands/i386/pc/vbeinfo.c: Likewise.
13704 * commands/i386/pc/vbetest.c: Likewise.
13705 * commands/ieee1275/suspend.c: Likewise.
13706 * disk/loopback.c: Likewise.
13707 * font/font_cmd.c: Likewise.
13708 * hello/hello.c: Likewise.
13709 * loader/efi/appleloader.c: Likewise.
13710 * loader/efi/chainloader.c: Likewise.
13711 * loader/i386/bsd.c: Likewise.
13712 * loader/i386/efi/linux.c: Likewise.
13713 * loader/i386/ieee1275/linux.c: Likewise.
13714 * loader/i386/linux.c: Likewise.
13715 * loader/i386/pc/chainloader.c: Likewise.
13716 * loader/i386/pc/linux.c: Likewise.
13717 * loader/powerpc/ieee1275/linux.c: Likewise.
13718 * loader/multiboot_loader.c: Likewise.
13719 * term/gfxterm.c: Likewise.
13720 * term/i386/pc/serial.c: Likewise.
13721 * term/terminfo.c: Likewise.
13723 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
13724 * term/i386/pc/vga.c: Likewise.
13725 * video/readers/jpeg.c: Likewise.
13726 * video/readers/png.c: Likewise.
13727 * video/readers/tga.c: Likewise.
13729 * util/grub-fstest (cmd_loopback): Removed.
13730 (cmd_blocklist): Likewise.
13731 (cmd_ls): Likewise.
13732 (grub_register_command): Likewise.
13733 (grub_unregister_command): Likewise.
13734 (execute_command): Use grub_command_find to locate command and execute
13737 * include/grub/efi/chainloader.h: Removed.
13738 * loader/efi/chainloader_normal.c: Likewise.
13739 * loader/i386/bsd_normal.c: Likewise.
13740 * loader/i386/pc/chainloader_normal.c: Likewise.
13741 * loader/i386/pc/multiboot_normal.c: Likewise.
13742 * loader/linux_normal.c: Likewise.
13743 * loader/multiboot_loader_normal.c: Likewise.
13744 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
13746 * gencmdlist.sh: Scan new registration command grub_register_extcmd
13747 and grub_register_command_p1.
13749 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
13750 kern/command.c, lib/arg.c and commands/extcmd.c.
13751 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
13752 (minicmd_mod_SOURCES): New variable.
13753 (minicmd_mod_CFLAGS): Likewise.
13754 (minicmd_mod_LDFLAGS): Likewise.
13755 (extcmd_mod_SOURCES): Likewise.
13756 (extcmd_mod_CFLAGS): Likewise.
13757 (extcmd_mod_LDFLAGS): Likewise.
13758 (boot_mod_SOURCES): Removed.
13759 (boot_mod_CFLAGS): Likewise.
13760 (boot_mod_LDFLAGS): Likewise.
13762 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
13764 (kernel_img_HEADERS): Add command.h.
13765 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
13766 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
13768 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
13769 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
13770 remove the corresponding normal mode command.
13771 (normal_mod_SOURCES): Remove normal/arg.c.
13772 * conf/i386-coreboot.rmk: Likewise.
13773 * conf/i386-efi.rmk: Likewise.
13774 * conf/i386-ieee1275.rmk: Likewise.
13775 * conf/powerpc-ieee1275.rmk: Likewise.
13776 * conf/x86_64-efi.rmk: Likewise.
13778 * include/grub/arg.h: Move from here ...
13779 * include/grub/lib/arg.h: ... to here.
13781 * normal/arg.c: Move from here ...
13782 * lib/arg.c: ... to here.
13784 * commands/extcmd.c: New file.
13785 * commands/minicmd.c: Likewise.
13786 * include/grub/command.h: Likewise.
13787 * include/grub/extcmd.h: Likewise.
13788 * kern/command.c: Likewise.
13789 * kern/corecmd.c: Likewise.
13791 * kern/list.c (grub_list_iterate): Return int instead of void.
13792 (grub_list_insert): New function.
13793 (grub_prio_list_insert): Likewise.
13795 * kern/rescue.c (grub_rescue_command): Removed.
13796 (grub_rescue_command_list): Likewise.
13797 (grub_rescue_register_command): Likewise.
13798 (grub_rescue_unregister_command): Likewise.
13799 (grub_rescue_cmd_boot): Move to minicmd.c
13800 (grub_rescue_cmd_help): Likewise.
13801 (grub_rescue_cmd_info): Likewise.
13802 (grub_rescue_cmd_boot): Likewise.
13803 (grub_rescue_cmd_testload): Likewise.
13804 (grub_rescue_cmd_dump): Likewise.
13805 (grub_rescue_cmd_rmmod): Likewise.
13806 (grub_rescue_cmd_lsmod): Likewise.
13807 (grub_rescue_cmd_exit): Likewise.
13808 (grub_rescue_print_devices): Moved to corecmd.c.
13809 (grub_rescue_print_files): Likewise.
13810 (grub_rescue_cmd_ls): Likewise.
13811 (grub_rescue_cmd_insmod): Likewise.
13812 (grub_rescue_cmd_set): Likewise.
13813 (grub_rescue_cmd_unset): Likewise.
13814 (attempt_normal_mode): Use grub_command_find to get normal module.
13815 (grub_enter_rescue_mode): Use grub_register_core_commands to register
13816 commands, remove grub_rescue_register_command calls.
13818 * normal/command.c (grub_register_command): Removed.
13819 (grub_unregister_command): Likewise.
13820 (grub_command_find): Likewise.
13821 (grub_iterate_commands): Likewise.
13822 (rescue_command): Likewise.
13823 (export_command): Moved to corecmd.c.
13824 (set_command): Removed.
13825 (unset_command): Likewise.
13826 (insmod_command): Likewise.
13827 (rmmod_command): Likewise.
13828 (lsmod_command): Likewise.
13829 (grub_command_init): Likewise.
13831 * normal/completion.c (iterate_command): Use cmd->prio to check for
13833 (complete_arguments): Use grub_extcmd_t structure to find options.
13834 (grub_normal_do_completion): Change function grub_iterate_commands to
13835 grub_command_iterate.
13837 * normal/execute.c (grub_script_execute_cmd): No need to parse
13840 * normal/main.c (grub_dyncmd_dispatcher): New function.
13841 (read_command_list): Register unload commands as dyncmd.
13842 (grub_cmd_normal): Use new command interface, register rescue,
13843 unregister normal at entry, register normal, unregister rescue at exit.
13845 * include/grub/list.h (grub_list_test_t): New type.
13846 (grub_list_iterate): Return int instead of void.
13847 (grub_list_insert): New function.
13848 (GRUB_AS_NAMED_LIST_P): New macro.
13849 (GRUB_AS_PRIO_LIST): Likewise.
13850 (GRUB_AS_PRIO_LIST_P): Likewise.
13851 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
13852 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
13853 (grub_prio_list): New structure.
13854 (grub_prio_list_insert): New function.
13855 (grub_prio_list_remove): New inline function.
13857 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
13858 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
13859 (GRUB_COMMAND_FLAG_MENU): Likewise.
13860 (GRUB_COMMAND_FLAG_BOTH): Likewise.
13861 (GRUB_COMMAND_FLAG_TITLE): Likewise.
13862 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
13863 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
13864 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
13865 (grub_command): Likewise.
13866 (grub_register_command): Likewise.
13867 (grub_command_find): Likewise.
13868 (grub_iterate_commands): Likewise.
13869 (grub_command_init): Likewise.
13870 (grub_arg_parse): Likewise.
13871 (grub_arg_show_help): Likewise.
13873 * include/grub/rescue.h (grub_rescue_register_command): Removed.
13874 (grub_rescue_unregister_command): Likewise.
13876 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
13877 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
13878 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
13880 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
13881 grub_rescue_cmd_initrd.
13882 * include/grub/i386/loader.h: Likewise.
13883 * include/grub/x86_64/loader.h: Likewise.
13885 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
13887 2009-03-21 Bean <bean123ch@gmail.com>
13889 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
13890 instead of stat in mingw environment.
13892 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
13894 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
13896 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
13899 2009-03-21 Bean <bean123ch@gmail.com>
13901 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
13902 out of range error.
13904 2009-03-18 Michel Dänzer <michel@daenzer.net>
13906 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
13907 checking inode flags for EXT4_EXTENTS_FLAG.
13909 2009-03-18 Robert Millan <rmh@aybabtu.com>
13911 * loader/i386/linux.c: Include `<grub/video.h>' and
13912 `<grub/i386/pc/vbe.h>'..
13913 (grub_linux_setup_video): New function. Loosely based on the EFI one.
13914 (grub_linux32_boot): Attempt to configure video settings with
13915 grub_linux_setup_video().
13916 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
13917 to avoid grub_console_fini() which would step out of graphical mode
13920 2009-03-14 Robert Millan <rmh@aybabtu.com>
13922 Fix build on powerpc.
13923 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
13925 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
13927 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
13928 background image command.
13930 2009-03-12 Colin D Bennett <colin@gibibit.com>
13932 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
13933 (grub_gfxterm_putchar): Extract pairs of identical calls to
13934 draw_cursor out of conditional blocks.
13936 2009-03-11 Pavel Roskin <proski@gnu.org>
13938 * fs/hfs.c (grub_hfs_strncasecmp): New function.
13939 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
13941 2009-03-11 Robert Millan <rmh@aybabtu.com>
13943 * loader/i386/multiboot_elfxx.c
13944 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
13946 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
13948 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
13951 2009-03-11 Robert Millan <rmh@aybabtu.com>
13953 * loader/i386/multiboot.c (code_size): New variable.
13954 (grub_multiboot): Define offsets by adding to `code_size' rather
13955 than subtracting from `grub_multiboot_payload_size'. Provide
13956 4-byte alignment to MBI and others by increasing
13957 `boot_loader_name_length' appropriately.
13959 * loader/i386/multiboot_elfxx.c
13960 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
13962 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
13964 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
13967 2009-03-08 Robert Millan <rmh@aybabtu.com>
13969 Make loader/i386/linux.c usable on i386-pc again.
13971 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
13973 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
13976 2009-03-07 Bean <bean123ch@gmail.com>
13978 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
13981 2009-03-06 Robert Millan <rmh@aybabtu.com>
13983 Fix display issue on terminals with screen size other than 80x25
13984 (e.g. gfxterm with resolution higher than 640x480).
13986 * normal/main.c (grub_normal_init_page): Display title text in a
13987 position relative to the center of the terminal instead of relying
13988 on a hardcoded offset.
13990 2009-03-04 Robert Millan <rmh@aybabtu.com>
13992 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
13995 * Makefile.in (host_kernel): New variable.
13996 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
13997 scripts instead of just the windows one.
13998 * configure.ac: Initialize and AC_SUBST `host_kernel'.
14000 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
14002 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
14004 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14005 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14006 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
14007 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14008 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14009 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14011 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
14013 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
14014 or if there's no space for the disk label and print the partition number on a
14017 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
14019 * util/misc.c: Include <time.h>.
14020 (grub_millisleep): New function.
14022 2009-03-04 Bean <bean123ch@gmail.com>
14024 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
14025 another option -mno-red-zone.
14027 * commands/handler.c: Change module description.
14029 * kern/handler.c: Add missing space at the end of description line.
14031 * kern/list.c: Likewise.
14033 2009-03-03 Robert Millan <rmh@aybabtu.com>
14035 Move more components to the relocation area, and fix mbi pointer
14036 handling to use the destination rather than the origin (thanks to
14037 Vladimir Serbinenko for spotting).
14039 * loader/i386/multiboot.c (mbi_dest): New variable.
14040 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
14041 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
14044 2009-03-01 Bean <bean123ch@gmail.com>
14046 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
14047 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
14048 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
14049 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
14051 * loader/i386/efi/linux.c (acpi_guid): New variable.
14052 (acpi_guid): Likewise.
14053 (EBDA_SEG_ADDR): New constant.
14054 (LOW_MEM_ADDR): Likewise.
14055 (FAKE_EBDA_SEG): Likewise.
14056 (fake_bios_data): New function.
14057 (grub_linux_boot): Call fake_bios_data.
14059 2009-03-01 Bean <bean123ch@gmail.com>
14061 * commands/terminal.c: Removed.
14063 * commands/handler.c: New file.
14065 * include/grub/list.h: Likewise.
14067 * include/grub/handler.h: Likewise.
14069 * kern/list.c: Likewise.
14071 * kern/handler.c: Likewise.
14073 * kern/term.h: Include header file <grub/handler.h>.
14074 (grub_term_input): Move next field to the beginning.
14075 (grub_term_output): Likewise.
14076 (grub_term_input_class): New variable.
14077 (grub_term_output_class): Likewise.
14078 (grub_term_register_input): Changed to inline function.
14079 (grub_term_register_output): Likewise.
14080 (grub_term_unregister_input): Likewise.
14081 (grub_term_unregister_output): Likewise.
14082 (grub_term_set_current_input): Likewise.
14083 (grub_term_set_current_output): Likewise.
14084 (grub_term_get_current_input): Likewise.
14085 (grub_term_get_current_output): Likewise.
14086 (grub_term_iterate_input): Removed.
14087 (grub_term_iterate_output): Likewise.
14089 * kern/term.c (grub_term_list_input): Removed.
14090 (grub_term_list_output): Likewise.
14091 (grub_term_input_class): New variable.
14092 (grub_term_output_class): Likewise.
14093 (grub_cur_term_input): Change variable as macro.
14094 (grub_cur_term_output): Likewise.
14095 (grub_term_register_input): Removed.
14096 (grub_term_register_output): Likewise.
14097 (grub_term_unregister_input): Likewise.
14098 (grub_term_unregister_output): Likewise.
14099 (grub_term_set_current_input): Likewise.
14100 (grub_term_set_current_output): Likewise.
14101 (grub_term_iterate_input): Likewise.
14102 (grub_term_iterate_output): Likewise.
14103 (grub_term_get_current_input): Likewise.
14104 (grub_term_get_current_output): Likewise.
14106 * util/grub-editenv.c: Include header file <grub/handler.h>.
14107 (grub_term_get_current_input): Removed.
14108 (grub_term_get_current_output): Likewise.
14109 (grub_term_input_class): New variable.
14110 (grub_term_output_class): Likewise.
14112 * util/grub-fstest.c (grub_term_get_current_input): Removed.
14113 (grub_term_get_current_output): Likewise.
14114 (grub_term_input_class): New variable.
14115 (grub_term_output_class): Likewise.
14117 * util/grub-probe.c (grub_term_get_current_input): Removed.
14118 (grub_term_get_current_output): Likewise.
14119 (grub_term_input_class): New variable.
14120 (grub_term_output_class): Likewise.
14122 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
14123 (grub_term_get_current_output): Likewise.
14124 (grub_term_input_class): New variable.
14125 (grub_term_output_class): Likewise.
14127 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
14128 (terminal_mod_SOURCES): Likewise.
14129 (terminal_mod_CFLAGS): Likewise.
14130 (terminal_mod_LDFLAGS): Likewise.
14132 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
14134 (kernel_img_SOURCES): Add list.c and handler.c.
14135 (kernel_img_HEADERS): Add list.h and handler.h.
14137 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
14139 (kernel_mod_SOURCES): Add list.c and handler.c.
14140 (kernel_mod_HEADERS): Add list.h and handler.h.
14142 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
14144 (kernel_elf_SOURCES): Add list.c and handler.c.
14145 (kernel_elf_HEADERS): Add list.h and handler.h.
14147 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
14149 (kernel_elf_SOURCES): Add list.c and handler.c.
14150 (kernel_elf_HEADERS): Add list.h and handler.h.
14152 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
14154 (kernel_mod_SOURCES): Add list.c and handler.c.
14155 (kernel_mod_HEADERS): Add list.h and handler.h.
14157 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
14159 (kernel_elf_SOURCES): Add list.c and handler.c.
14160 (kernel_elf_HEADERS): Add list.h and handler.h.
14162 2009-02-27 Robert Millan <rmh@aybabtu.com>
14164 Factorize elf32 / elf64 code in Multiboot loader. This will
14165 prevent it from getting out of sync again.
14167 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
14168 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
14169 grub_multiboot_load_elf64): Move from here ...
14170 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
14171 grub_multiboot_load_elf): ... to here (new file).
14173 2009-02-27 Robert Millan <rmh@aybabtu.com>
14175 * util/grub.d/10_linux.in: Rename "single-user mode" to
14178 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
14180 Don't leak in SCSI code.
14181 * disk/scsi.c (grub_scsi_close): free `scsi'.
14183 2009-02-27 Robert Millan <rmh@aybabtu.com>
14185 * loader/i386/pc/multiboot.c: Move from here ...
14186 * loader/i386/multiboot.c: ... to here. Update all users.
14188 2009-02-27 Robert Millan <rmh@aybabtu.com>
14190 Patch from Alexandre Bique <bique.alexandre@gmail.com>
14191 * util/i386/pc/grub-setup.c (setup): Fix directory path.
14193 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
14195 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
14198 2009-02-27 Robert Millan <rmh@aybabtu.com>
14200 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
14201 `0x' qualifier as 0 when base is specified as parameter).
14203 2009-02-24 Bean <bean123ch@gmail.com>
14205 * configure.ac: Check for -mcmodel=large in x86_64 target.
14207 * include/grub/efi/api.h (efi_call_10): New macro.
14208 (efi_wrap_10): New function.
14210 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
14211 (GRUB_PE32_REL_BASED_HIGH): Likewise.
14212 (GRUB_PE32_REL_BASED_LOW): Likewise.
14213 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
14214 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
14215 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
14216 (GRUB_PE32_REL_BASED_SECTION): Likewise.
14217 (GRUB_PE32_REL_BASED_REL): Likewise.
14218 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
14219 (GRUB_PE32_REL_BASED_DIR64): Likewise.
14220 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
14222 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
14225 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
14226 (efi_wrap_10): New function.
14228 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
14230 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
14231 MB/MBP model (NV chipset).
14232 (devdata_devs): Add devpath_5 to the list.
14234 * load/i386/efi/linux.c (video_base): Remove variable.
14235 (RGB_MASK): New macro.
14236 (RGB_MAGIC): Likewise.
14237 (LINE_MIN): Likewise.
14238 (LINE_MAX): Likewise.
14239 (FBTEST_STEP): Likewise.
14240 (FBTEST_COUNT): Likewise.
14241 (fb_list): New variable.
14242 (grub_find_video_card): Remove function.
14243 (find_framebuf): New function.
14244 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
14247 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
14248 problem for x86_64.
14250 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
14252 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
14254 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
14257 2009-02-22 Robert Millan <rmh@aybabtu.com>
14259 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
14260 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
14261 in our relocation, instead of using it directly from heap. Also
14262 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
14264 2009-02-21 Robert Millan <rmh@aybabtu.com>
14266 Implement USB keyboard support (based on patch by Marco Gerards)
14268 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
14269 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
14270 (usb_keyboard_mod_LDFLAGS): New variables.
14272 * term/usb_keyboard.c: New file.
14274 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
14276 Corrected wrong declaration
14278 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
14280 2009-02-14 Christian Franke <franke@computer.org>
14282 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
14283 (grub_lspci_iter): Print class code and programming interface byte.
14285 2009-02-14 Christian Franke <franke@computer.org>
14287 * gendistlist.sh: Ignore `.svn' directories.
14289 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
14291 * fs/fat.c: Add 2009 to Copyright line.
14293 2009-02-14 Christian Franke <franke@computer.org>
14295 * commands/hdparm.c: New file. Provides `hdparm' command
14296 which sends ATA commands via grub_disk_ata_pass_through ().
14298 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
14300 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
14301 and <grub/cpu/io.h> to include/grub/ata.h.
14302 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
14303 (GRUB_CDROM_SECTOR_SIZE): Remove.
14304 (GRUB_ATA_*): Move to include/grub/ata.h.
14305 (GRUB_ATAPI_*): Likewise.
14306 (enum grub_ata_commands): Likewise.
14307 (enum grub_ata_timeout_milliseconds): Likewise.
14308 (struct grub_ata_device): Likewise.
14309 (grub_ata_regset): Likewise.
14310 (grub_ata_regget): Likewise.
14311 (grub_ata_regset2): Likewise.
14312 (grub_ata_regget2): Likewise.
14313 (grub_ata_check_ready): Likewise.
14314 (grub_ata_wait_not_busy): Remove static, exported in
14315 include/grub/ata.h.
14316 (grub_ata_wait_drq): Likewise.
14317 (grub_ata_pio_read): Likewise.
14319 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
14320 function for hdparm.mod.
14322 * include/grub/ata.h: New file, contains declarations from
14324 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
14326 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
14327 (grub_disk_ata_pass_through): New exported variable.
14329 * kern/disk.c (grub_disk_ata_pass_through): New variable.
14331 2009-02-13 Colin D Bennett <colin@gibibit.com>
14333 Support multiple fallback entries, and provide an API to support
14334 executing default+fallback menu entries. Renamed the `terminal' menu
14337 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
14338 variable declaration.
14339 (grub_menu_execute_callback): New structure declaration.
14340 (grub_menu_execute_callback_t): New typedef.
14341 (grub_menu_execute_with_fallback): New function declaration.
14342 (grub_menu_get_entry): Likewise.
14343 (grub_menu_get_timeout): Likewise.
14344 (grub_menu_set_timeout): Likewise.
14346 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
14348 * normal/menu.c (grub_wait_after_message): Moved to
14349 `normal/menu_text.c'.
14350 (draw_border): Likewise.
14351 (print_message): Likewise.
14352 (print_entry): Likewise.
14353 (print_entries): Likewise.
14354 (grub_menu_init_page): Likewise.
14355 (get_entry_number): Likewise.
14356 (print_timeout): Likewise.
14357 (run_menu): Likewise.
14358 (grub_menu_execute_entry): Likewise.
14359 (show_text_menu): Likewise.
14360 (get_and_remove_first_entry_number): New function.
14361 (grub_menu_execute_with_fallback): Likewise.
14362 (get_entry): Renamed to ...
14363 (grub_menu_get_entry): .. this and made it global.
14364 (get_timeout): Renamed to ...
14365 (grub_menu_get_timeout): ... this and made it global.
14366 (set_timeout): Renamed to ...
14367 (grub_menu_set_timeout): ... this and made it global.
14368 (grub_normal_terminal_menu_viewer): Renamed to ...
14369 (grub_normal_text_menu_viewer): ... this.
14371 * normal/menu_text.c: New file. Extracted text-menu-specific code
14372 from normal/menu.c.
14374 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
14375 (normal_mod_SOURCES): Likewise.
14377 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14378 (normal_mod_SOURCES): Likewise.
14380 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14381 (normal_mod_SOURCES): Likewise.
14383 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
14384 (normal_mod_SOURCES): Likewise.
14386 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14387 (normal_mod_SOURCES): Likewise.
14389 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14390 (normal_mod_SOURCES): Likewise.
14392 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14393 (normal_mod_SOURCES): Likewise.
14395 2009-02-11 Robert Millan <rmh@aybabtu.com>
14397 * util/grub.d/00_header.in: Update old reference to `font' command.
14399 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
14401 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
14403 Based on patch from Javier Martín.
14405 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
14407 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
14408 to avoid false positives with FAT.
14409 (grub_fstest_SOURCES): Likewise.
14410 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
14411 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14412 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14413 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
14414 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14415 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14417 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
14419 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
14420 bpb.version_specific.fat12_or_fat16.fstype and
14421 bpb.version_specific.fat32.fstype.
14423 2009-02-08 Robert Millan <rmh@aybabtu.com>
14425 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
14427 2009-02-08 Robert Millan <rmh@aybabtu.com>
14429 * Makefile.in (host_os, host_cpu): New variables.
14430 (target_os): Remove. Update all users.
14432 2009-02-08 Marco Gerards <marco@gnu.org>
14434 * Makefile.in (enable_grub_emu_usb): New variable.
14435 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
14436 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
14437 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
14438 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
14439 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
14440 `usbtest.mod' and `usbms.mod'.
14441 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
14442 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
14443 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
14444 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
14445 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
14448 * disk/usbms.c: New file.
14450 * include/grub/usb.h: Likewise.
14452 * include/grub/usbtrans.h: Likewise.
14454 * include/grub/usbdesc.h: Likewise.
14456 * bus/usb/usbtrans.c: Likewise.
14458 * bus/usb/ohci.c: Likewise.
14460 * bus/usb/uhci.c: Likewise.
14462 * bus/usb/usbhub.c: Likewise.
14464 * bus/usb/usb.c: Likewise.
14466 * commands/usbtest.c: Likewise.
14468 * util/usb.c: Likewise.
14470 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
14472 * configure.ac: Test for libusb presence.
14474 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
14476 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
14478 * kern/mm.c: Add more comments.
14480 2009-02-08 Robert Millan <rmh@aybabtu.com>
14482 Patch from Javier Martín.
14483 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
14484 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
14486 2009-02-08 Robert Millan <rmh@aybabtu.com>
14488 * fs/cpio.c: Split tar functionality to ...
14489 * fs/tar.c: ... here (new file). Update all users.
14491 2009-02-07 Robert Millan <rmh@aybabtu.com>
14493 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
14494 backward-incompatible features.
14496 Based on patch from Javier Martín, with some adjustments.
14498 2009-02-07 Michael Scherer <misc@mandriva.org>
14500 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
14502 2009-02-07 Robert Millan <rmh@aybabtu.com>
14504 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
14505 position of `disk/lvm.c' to ensure grub_init_all() always picks it
14506 after the RAID stuff.
14508 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
14510 Fixes problem when running vbetest command as reported by
14511 Vladimir Serbinenko <phcoder@gmail.com>.
14513 * (grub_vbe_set_video_mode): Fixed problem with text modes.
14515 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
14517 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
14518 /dev/md/NpN style mdraid devices.
14520 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
14522 * util/unifont2pff.rb: Remove.
14524 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
14526 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
14529 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
14531 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
14532 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14533 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14534 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
14535 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14536 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14537 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14539 2009-02-02 Christian Franke <franke@computer.org>
14541 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
14543 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
14545 * INSTALL: Note that we now require at least autoconf 2.59 and
14546 that LZO is optional.
14548 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
14550 Base on patch on bug #24154 created by Tomas Tintera
14551 <trosos@seznam.cz>.
14553 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
14555 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
14557 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
14558 <bero@arklinux.org>.
14560 * normal/parser.y (script_init): Add missing semicolon.
14562 2009-01-31 Colin D Bennett <colin@gibibit.com>
14564 * normal/main.c: Add include to grub/menu_viewer.h.
14565 (free_menu_entry_classes): Added.
14566 (grub_normal_menu_addentry): Added class property handling.
14567 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
14568 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
14570 * normal/menu_viewer.c: New file.
14572 * normal/menu.c (run_menu_entry): Renamed to ...
14573 (grub_menu_execute_entry): ... this and made it as global.
14574 (grub_menu_run): Renamed to ...
14575 (show_text_menu): ... this and made it local.
14576 (show_text_menu): Adapt to new function names.
14577 (grub_normal_terminal_menu_viewer): New global variable.
14579 * include/grub/menu.h: New file.
14581 * include/grub/menu_viewer.h: New file.
14583 * include/grub/normal.h: Added include to grub/menu.h.
14584 (grub_menu_entry): Moved to include/grub/menu.h.
14585 (grub_menu_entry_t): Likewise.
14586 (grub_menu): Likewise.
14587 (grub_menu_t): Likewise.
14588 (grub_normal_terminal_menu_viewer): Added.
14589 (grub_menu_execute_entry): Likewise.
14590 (grub_menu_run): Removed.
14592 * DISTLIST: Added include/grub/menu.h.
14593 Added include/grub/menu_viewer.h.
14594 Added normal/menu_viewer.c.
14596 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
14598 * normal/execute.c (grub_script_execute_menuentry): Changed to use
14599 arglist for menutitle arguments.
14601 * normal/main.c (grub_normal_menu_addentry): Likewise.
14603 * normal/parser.y (menuentry): Likewise.
14605 * normal/script.c (grub_script_create_cmdmenu): Likewise.
14607 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
14608 (grub_script_create_cmdmenu): Likewise.
14610 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
14612 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
14615 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
14617 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
14619 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
14621 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14623 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14625 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14627 2009-01-30 Christian Franke <franke@computer.org>
14629 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
14630 in option help text.
14632 2009-01-27 Pavel Roskin <proski@gnu.org>
14634 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
14636 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
14638 * commands/lsmmap.c: Add include to grub/machine/memory.h.
14640 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
14642 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
14643 unregister function.
14645 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
14647 * disk/scsi.c (grub_scsi_read): Fix sign problem.
14649 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
14651 * util/grub-mkfont.c (usage): Fix typo.
14653 * util/elf/grub-mkimage.c (load_modules): Fix warning.
14655 2009-01-26 Daniel Mierswa <impulze@impulze.org>
14657 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
14659 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
14661 * kern/misc.c (grub_strcasecmp): New function.
14662 (grub_strcasecmp): Use grub_size_t instead of int for length.
14664 * include/grub/misc.h: Update function prototypes.
14666 2009-01-26 Robert Millan <rmh@aybabtu.com>
14668 * configure.ac: Fix cross-compilation check.
14670 2009-01-22 Christian Franke <franke@computer.org>
14672 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
14673 (precision) digit string. Allow `.format2' without `format1' (width).
14674 Limit input chars for `%s' output to `format2' if specified. This is
14675 compatible with standard printf ().
14677 2009-01-22 Christian Franke <franke@computer.org>
14679 * disk/ata.c (grub_ata_wait_status): Replace by ...
14680 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
14681 other status bits may be invalid while BSY is asserted.
14682 (grub_ata_check_ready): New function.
14683 (grub_ata_cmd): Removed.
14684 (grub_ata_wait_drq): New function.
14685 (grub_ata_strncpy): Remove inline.
14686 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
14687 and error check now done by grub_ata_wait_drq ().
14688 (grub_ata_pio_write): Likewise.
14689 (grub_atapi_identify): Set DEV before check for !BSY. Use
14690 grub_ata_wait_drq () to wait for data.
14691 (grub_ata_device_initialize): Add status register check to
14692 detect missing SATA slave devices. Add debug messages.
14693 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
14694 (grub_atapi_packet): Set DEV before check for !BSY. Replace
14695 transfer loop by grub_ata_pio_write ().
14696 (grub_ata_identify): Set DEV before check for !BSY. Use
14697 grub_ata_wait_drq () to wait for data.
14698 (grub_ata_setaddress): Set DEV before check for !BSY.
14699 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
14700 read/write in one loop. Fix invalid command on write. Fix incomplete
14701 command on (size % batch) == 0. Add missing error check after write of
14702 last block. Add debug messages.
14703 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
14705 2009-01-19 Christian Franke <franke@computer.org>
14707 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
14708 (GRUB_ATAPI_IREASON_*): Likewise.
14709 (grub_ata_pio_write): Fix timeout error return.
14710 (grub_atapi_identify): Add grub_ata_wait () after cmd.
14711 (grub_atapi_wait_drq): New function.
14712 (grub_atapi_packet): New parameter `size'.
14713 Use grub_atapi_wait_drq () and direct write instead of
14714 grub_ata_pio_write ().
14715 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
14716 reads the number of bytes requested by the device for each DRQ
14718 (grub_atapi_write): Remove old implementation, return not
14719 implemented instead.
14721 2009-01-19 Christian Franke <franke@computer.org>
14723 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
14724 of 512 to calculate data size.
14725 (grub_scsi_read12): Likewise.
14726 (grub_scsi_write10): Likewise.
14727 (grub_scsi_write12): Likewise.
14728 (grub_scsi_read): Adjust size according to blocksize.
14729 Add checks for invalid blocksize and unaligned transfer.
14731 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
14733 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
14735 * term/gfxterm.c (write_char): Fix background rendering for wide
14738 2009-01-19 Robert Millan <rmh@aybabtu.com>
14740 * config.guess: Update to latest version from config git.
14741 * config.sub: Likewise.
14743 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
14745 * Makefile.in: Change font compilation to use new grub-mkfont instead
14748 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
14749 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
14750 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14751 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14752 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
14753 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
14754 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
14755 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
14756 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
14758 2009-01-16 Christian Franke <franke@computer.org>
14760 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
14761 (enum grub_ata_timeout_milliseconds): New enum.
14762 (grub_ata_wait_status): Add parameter milliseconds.
14763 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
14764 recovery from timed-out commands.
14765 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
14766 return grub_errno instead of REG_ERROR.
14767 (grub_ata_pio_write): Add parameter milliseconds.
14768 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
14769 Pass milliseconds to grub_ata_wait_status () and
14770 grub_ata_pio_read ().
14771 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
14772 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
14773 grub_ata_wait_status (). Fix IDENTIFY timeout check.
14774 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
14775 It is not suitable for device detection, because DEV bit is ignored,
14776 the command may run too long, and not all devices set the signature
14778 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
14779 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
14780 Fix device selection, DEV bit must be set first to address the registers
14781 of the correct device.
14782 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
14783 grub_ata_pio_read/write ().
14784 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
14785 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
14787 2009-01-13 Carles Pina i Estany <carles@pina.cat>
14789 * util/grub-editenv.c (main): Use fseeko(), not fseek().
14791 2009-01-13 Bean <bean123ch@gmail.com>
14793 * util/grub-mkfont.c (write_font): forget to remove some debug code.
14795 2009-01-13 Bean <bean123ch@gmail.com>
14797 * Makefile.in: (enable_grub_mkfont): New variable.
14798 (freetype_cflags): Likewise.
14799 (freetype_libs): Likewise.
14801 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
14802 (grub_mkfont_SOURCES): New variable.
14803 (grub_mkfont_CFLAGS): Likewise.
14804 (grub_mkfont_LDFLAGS): Likewise.
14806 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
14807 library if `--enable-grub-mkfont' is requested.
14808 (enable_grub_mkfont): New variable.
14809 (freetype_cflags): Likewise.
14810 (freetype_libs): Likewise.
14812 * util/grub-mkfont.c: New file.
14814 2009-01-12 Christian Franke <franke@computer.org>
14816 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
14817 mode check. Fix setting of compat_use[].
14819 2009-01-10 Robert Millan <rmh@aybabtu.com>
14821 Update a few copyright years which we forgot to do in 2008 (only for
14822 files whose changes made in 2008 were copyright-significant)
14824 * Makefile.in: Add 2008 to Copyright line.
14825 * disk/ieee1275/ofdisk.c: Likewise.
14826 * disk/efi/efidisk.c: Likewise.
14827 * kern/dl.c: Likewise.
14828 * kern/sparc64/ieee1275/init.c: Likewise.
14829 * kern/mm.c: Likewise.
14830 * kern/efi/mm.c: Likewise.
14831 * boot/i386/pc/boot.S: Likewise.
14832 * genfslist.sh: Likewise.
14833 * fs/iso9660.c: Likewise.
14834 * fs/hfs.c: Likewise.
14835 * fs/jfs.c: Likewise.
14836 * fs/minix.c: Likewise.
14837 * fs/ufs.c: Likewise.
14838 * gensymlist.sh.in: Likewise.
14839 * genkernsyms.sh.in: Likewise.
14840 * include/grub/misc.h: Likewise.
14841 * include/grub/types.h: Likewise.
14842 * include/grub/symbol.h: Likewise.
14843 * include/grub/elf.h: Likewise.
14844 * include/grub/kernel.h: Likewise.
14845 * include/grub/disk.h: Likewise.
14846 * include/grub/dl.h: Likewise.
14847 * include/grub/i386/linux.h: Likewise.
14848 * include/grub/i386/pc/biosdisk.h: Likewise.
14849 * include/grub/efi/api.h: Likewise.
14850 * include/grub/efi/pe32.h: Likewise.
14851 * include/grub/util/misc.h: Likewise.
14852 * normal/execute.c: Likewise.
14853 * normal/arg.c: Likewise.
14854 * normal/completion.c: Likewise.
14855 * normal/lexer.c: Likewise.
14856 * normal/parser.y: Likewise.
14857 * normal/misc.c: Likewise.
14858 * commands/i386/pc/vbeinfo.c: Likewise.
14859 * commands/hexdump.c: Likewise.
14860 * commands/terminal.c: Likewise.
14861 * commands/ls.c: Likewise.
14862 * commands/help.c: Likewise.
14863 * partmap/pc.c: Likewise.
14864 * loader/efi/chainloader.c: Likewise.
14865 * loader/multiboot_loader.c: Likewise.
14866 * loader/i386/pc/multiboot2.c: Likewise.
14867 * term/efi/console.c: Likewise.
14868 * term/i386/pc/serial.c: Likewise.
14869 * util/lvm.c: Likewise.
14870 * util/console.c: Likewise.
14871 * util/i386/efi/grub-mkimage.c: Likewise.
14872 * util/raid.c: Likewise.
14874 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
14876 * commands/videotest.c: Removed include to grub/machine/memory.h.
14878 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
14879 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
14880 (video_mod_SOURCES): Removed.
14881 (video_mod_CFLAGS): Likewise.
14882 (video_mod_LDFLAGS): Likewise.
14883 (gfxterm_mod_SOURCES): Likewise.
14884 (gfxterm_mod_CFLAGS): Likewise.
14885 (gfxterm_mod_LDFLAGS): Likewise.
14886 (videotest_mod_SOURCES): Likewise.
14887 (videotest_mod_CFLAGS): Likewise.
14888 (videotest_mod_LDFLAGS): Likewise.
14889 (bitmap_mod_SOURCES): Likewise.
14890 (bitmap_mod_CFLAGS): Likewise.
14891 (bitmap_mod_LDFLAGS): Likewise.
14892 (tga_mod_SOURCES): Likewise.
14893 (tga_mod_CFLAGS): Likewise.
14894 (tga_mod_LDFLAGS): Likewise.
14895 (jpeg_mod_SOURCES): Likewise.
14896 (jpeg_mod_CFLAGS): Likewise.
14897 (jpeg_mod_LDFLAGS): Likewise.
14898 (png_mod_SOURCES): Likewise.
14899 (png_mod_CFLAGS): Likewise.
14900 (png_mod_LDFLAGS): Likewise.
14902 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
14903 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
14904 (video_mod_SOURCES): Added.
14905 (video_mod_CFLAGS): Likewise.
14906 (video_mod_LDFLAGS): Likewise.
14907 (videotest_mod_SOURCES): Likewise.
14908 (videotest_mod_CFLAGS): Likewise.
14909 (videotest_mod_LDFLAGS): Likewise.
14910 (bitmap_mod_SOURCES): Likewise.
14911 (bitmap_mod_CFLAGS): Likewise.
14912 (bitmap_mod_LDFLAGS): Likewise.
14913 (tga_mod_SOURCES): Likewise.
14914 (tga_mod_CFLAGS): Likewise.
14915 (tga_mod_LDFLAGS): Likewise.
14916 (jpeg_mod_SOURCES): Likewise.
14917 (jpeg_mod_CFLAGS): Likewise.
14918 (jpeg_mod_LDFLAGS): Likewise.
14919 (png_mod_SOURCES): Likewise.
14920 (png_mod_CFLAGS): Likewise.
14921 (png_mod_LDFLAGS): Likewise.
14922 (gfxterm_mod_SOURCES): Likewise.
14923 (gfxterm_mod_CFLAGS): Likewise.
14924 (gfxterm_mod_LDFLAGS): Likewise.
14926 * term/gfxterm.c: Removed include to grub/machine/memory.h,
14927 grub/machine/console.h.
14929 2009-01-04 Jerone Young <jerone@gmail.com>
14931 Make on screen instructions clearer
14933 Based on patch created by Jidanni <jidanni@jidanni.org>
14935 * normal/menu.c: print clearer instructions on the screen
14937 2009-01-02 Colin D Bennett <colin@gibibit.com>
14941 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
14942 build system and fixed gfxterm.c to work with different sized fonts.
14944 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
14946 * configure: Re-generated.
14948 * DISTLIST: Removed font/manager.c.
14950 Added font/font_cmd.c.
14952 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
14955 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
14957 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
14959 * kern/term.c: Changed users of grub_utf8_to_ucs4.
14961 * normal/menu.c: Likewise.
14963 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
14964 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
14966 * include/grub/font.h: Replaced with new file.
14968 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
14969 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
14970 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
14971 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
14972 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
14973 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
14974 fg_red, fg_green, fg_blue, fg_alpha.
14975 (grub_video_adapter): Removed blit_glyph.
14976 (grub_video_blit_glyph): Removed.
14978 * font/manager.c: Removed file.
14980 * font/font.c: New file.
14982 * font/font_cmd.c: Likewise.
14984 * video/video.c (grub_video_blit_glyph): Removed.
14986 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
14987 (grub_video_vbe_map_rgba): Likewise.
14988 (grub_video_vbe_unmap_color_int): Likewise.
14989 (grub_video_vbe_blit_glyph): Removed.
14990 (grub_video_vbe_adapter): Removed blit_glyph.
14992 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
14993 (get_pixel): Likewise.
14994 (set_pixel): Likewise.
14996 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
14998 * term/gfxterm.c: Adapted to new font engine.
15000 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
15002 * term/i386/pc/vga.c: Likewise.
15004 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
15006 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
15008 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
15010 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
15012 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
15014 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
15016 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
15018 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
15020 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
15022 * util/grub.d/00_header.in: Changed to use new loadfont command.
15024 * util/grub-mkconfig_lib.in: Changed font extension.
15026 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
15028 * util/getroot.c (grub_util_get_grub_dev): Add support for
15029 /dev/md/dNNpNN style partitionable mdraid devices.
15031 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
15033 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
15034 at a time limit of the PXE TFTP API correctly.
15035 (grub_pxefs_close): Likewise.
15037 2008-11-29 Robert Millan <rmh@aybabtu.com>
15039 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
15040 grub_ata_device_initialize() calls.
15042 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
15044 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
15046 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
15048 2008-11-28 Robert Millan <rmh@aybabtu.com>
15050 Fix build on powerpc-ieee1275. Based on patch created by
15051 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
15052 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15053 `kern/ieee1275/mmap.c'.
15054 * include/grub/powerpc/ieee1275/memory.h: New file.
15056 Provide grub-install on coreboot.
15057 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
15058 (grub_install_SOURCES): New variable.
15059 * util/i386/pc/grub-install.in: Add a few condition checks to make it
15060 usable on coreboot.
15062 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
15064 * util/grub-fstest.c (grub_term_get_current_input): Change return type
15065 to `grub_term_input_t'.
15066 (grub_term_get_current_output): Change return type to
15067 `grub_term_output_t'.
15069 2008-11-22 Robert Millan <rmh@aybabtu.com>
15071 Fix breakage on coreboot due to declaration mismatch.
15072 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
15073 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
15074 grub_vga_text_cls().
15076 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
15077 comments. Avoid copying one more byte than necessary (just in case).
15079 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
15080 to 0x200000 (avoids trouble with some OFW implementations, and matches
15081 with the one in Yaboot).
15082 Reported by Manoel Abranches
15084 2008-11-20 Robert Millan <rmh@aybabtu.com>
15086 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
15087 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
15089 * util/grub-mkconfig_lib.in (grub_warn): New function.
15090 (convert_system_path_to_grub_path): Use grub_warn() when issuing
15091 warnings, to obtain consistent formatting.
15092 * util/grub.d/00_header.in: Likewise.
15093 * util/update-grub_lib.in: Likewise.
15095 * loader/i386/linux.c (allocate_pages): Fix a warning.
15096 Move comment text to `#error' stanza.
15098 Harmonize ieee1275's grub_available_iterate() with the generic
15099 grub_machine_mmap_iterate() interface (fixes a recently-introduced
15100 build problem on i386-ieee1275):
15101 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
15102 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
15103 parameter `type'. Update all users of this function.
15104 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
15105 `kern/ieee1275/mmap.c'.
15106 * kern/ieee1275/init.c
15107 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
15109 (grub_machine_mmap_iterate): ... this.
15110 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
15111 return type to `grub_err_t'. Update all implementations of this
15112 function prototype.
15113 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
15116 Add `lsmmap' command (lists firmware-provided memory map):
15117 * commands/lsmmap.c: New file.
15118 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
15119 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
15121 * conf/powerpc-ieee1275.rmk: Likewise.
15122 * conf/i386-coreboot.rmk: Likewise.
15123 * conf/i386-ieee1275.rmk: Likewise.
15125 2008-11-19 Robert Millan <rmh@aybabtu.com>
15127 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
15128 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
15129 constraints to initrd allocation (based on code from
15130 loader/i386/pc/linux.c). Without them, initrd was allocated too high
15131 for Linux to find it.
15133 2008-11-14 Robert Millan <rmh@aybabtu.com>
15135 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
15136 order to cope with duplicate slashes.
15138 2008-11-14 Robert Millan <rmh@aybabtu.com>
15140 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
15141 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
15142 don't want to mess with lower memory, because it is used in the Linux
15145 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
15146 an appropriate place in lower memory, between 0x10000 and 0x90000,
15147 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
15148 is in our heap (probably as a result of it being corrupted during
15149 decompression). Add #error instance with comment to explain why this
15150 loader isn't currently usable on PC/BIOS.
15152 2008-11-14 Robert Millan <rmh@aybabtu.com>
15154 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
15155 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
15157 2008-11-12 Robert Millan <rmh@aybabtu.com>
15159 Make loader/i386/linux.c buildable on i386-pc (although disabled).
15161 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
15162 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
15164 * include/grub/i386/pc/memory.h: ... to here.
15166 2008-11-12 Robert Millan <rmh@aybabtu.com>
15168 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
15171 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
15172 (grub_console_cur_color, grub_console_real_putchar)
15173 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
15174 (grub_console_setcolorstate, grub_console_setcolor)
15175 (grub_console_getcolor): Move from here ...
15176 * include/grub/i386/vga_common.h: ... to here (new file).
15178 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
15179 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
15180 `<grub/i386/io.h>'.
15181 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
15182 `<grub/i386/vga_common.h>'.
15184 2008-11-12 Robert Millan <rmh@aybabtu.com>
15186 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
15187 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
15188 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
15190 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
15191 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
15193 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
15194 grub_console_init() with call to grub_vga_text_init().
15195 (grub_machine_fini): Replace call to
15196 grub_console_fini() with call to grub_vga_text_fini() and
15197 grub_at_keyboard_fini().
15199 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
15200 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
15201 (grub_console_setcolorstate, grub_console_setcolor)
15202 (grub_console_getcolor): New function prototypes.
15204 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
15205 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
15206 (grub_vga_text_setcursor): Static-ize.
15207 (grub_vga_text_term): New structure.
15208 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
15210 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
15211 (grub_console_cur_color, grub_console_standard_color)
15212 (grub_console_normal_color, grub_console_highlight_color)
15213 (map_char, grub_console_putchar, grub_console_getcharwidth)
15214 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
15215 (grub_console_getcolor): Move from here ...
15216 * term/i386/vga_common.c: ... to here (same function names).
15218 2008-11-12 Robert Millan <rmh@aybabtu.com>
15220 Use newly-added Multiboot support in coreboot.
15222 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
15223 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
15225 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
15226 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
15227 (codestart): Store the MBI in `startup_multiboot_info' when we're
15228 being loaded using Multiboot.
15230 * kern/i386/coreboot/init.c (grub_machine_init): Move
15231 grub_at_keyboard_init() call to beginning of function (useful for
15232 debugging). Call grub_machine_mmap_init() before attempting to use
15233 grub_machine_mmap_iterate().
15234 (grub_lower_mem, grub_upper_mem): Move from here ...
15235 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
15238 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
15239 function prototype.
15241 2008-11-12 Robert Millan <rmh@aybabtu.com>
15243 Fix a regression introduced by the at_keyboard.mod split. Because
15244 some terminals are default on some platforms and non-default on
15245 others, the first terminal being registered determines which is
15246 going to be default.
15248 * kern/term.c (grub_term_register_input): If this is the first
15249 terminal being registered, set it as the current one.
15250 (grub_term_register_output): Likewise.
15252 * term/efi/console.c (grub_console_init): Do not call
15253 grub_term_set_current_output() or grub_term_set_current_input().
15254 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
15255 * term/i386/pc/console.c (grub_console_init): Likewise.
15256 (grub_console_fini): Do not call grub_term_set_current_input()
15257 (but leave grub_term_set_current_output() to restore text mode).
15259 2008-11-10 Robert Millan <rmh@aybabtu.com>
15261 * util/grub.d/00_header.in: Add backward compatibility check for
15262 versions of terminal.mod that don't understand `terminal_input' or
15265 2008-11-09 Robert Millan <rmh@aybabtu.com>
15267 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
15268 `terminal_input' / `terminal_output', not `terminal'.
15270 2008-11-08 Robert Millan <rmh@aybabtu.com>
15272 * Makefile.in (include_DATA): Fix srcdir=. assumption.
15273 (DISTCLEANFILES): Add `build_env.mk'.
15275 2008-11-08 Robert Millan <rmh@aybabtu.com>
15277 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
15278 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
15279 members. Update all users.
15280 * util/console.c (grub_ncurses_term): Split in ...
15281 (grub_ncurses_term_input): ... this, and ...
15282 (grub_ncurses_term_output): ... this. Update all users.
15283 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
15285 2008-11-08 Robert Millan <rmh@aybabtu.com>
15287 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
15288 (PKGDATA): Add $(pkgdata_SRCDIR).
15289 (pkglib_BUILDDIR): New variable.
15290 (pkgdata_SRCDIR): New variable.
15291 (build_env.mk): New target.
15292 (include_DATA): New variable.
15293 (install-local): Install $(include_DATA) files in $(includedir).
15295 2008-11-07 Pavel Roskin <proski@gnu.org>
15297 * gendistlist.sh: Use C locale for sorting to ensure consistent
15298 output on all systems.
15300 * util/grub.d/00_header.in: Remove incorrect space before
15303 2008-11-07 Robert Millan <rmh@aybabtu.com>
15305 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
15307 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
15308 * loader/multiboot_loader.c (find_multi_boot2_header): New function
15309 (based on find_multi_boot1_header).
15310 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
15311 using find_multi_boot2_header(), and abort if neither Multiboot or
15312 Multiboot headers were found.
15314 2008-11-07 Robert Millan <rmh@aybabtu.com>
15316 Modularize at_keyboard.mod:
15318 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
15319 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
15320 (at_keyboard_mod_LDFLAGS): New variables.
15322 Actual terminal split:
15324 * include/grub/term.h (struct grub_term): Split in ...
15325 (struct grub_term_input): ... this, and ...
15326 (struct grub_term_output): ... this. Update all users.
15327 (grub_term_set_current): Split in ...
15328 (grub_term_set_current_input): ... this, and ...
15329 (grub_term_set_current_output): ... this.
15330 (grub_term_get_current): Split in ...
15331 (grub_term_get_current_input): ... this, and ...
15332 (grub_term_get_current_output): ... this.
15333 (grub_term_register): Split in ...
15334 (grub_term_register_input): ... this, and ...
15335 (grub_term_register_output): ... this.
15336 (grub_term_unregister): Split in ...
15337 (grub_term_unregister_input): ... this, and ...
15338 (grub_term_unregister_output): ... this.
15339 (grub_term_iterate): Split in ...
15340 (grub_term_iterate_input): ... this, and ...
15341 (grub_term_iterate_output): ... this.
15343 * kern/term.c (grub_term_list): Split in ...
15344 (grub_term_list_input): ... this, and ...
15345 (grub_term_list_output): ... this. Update all users.
15346 (grub_cur_term): Split in ...
15347 (grub_cur_term_input): ... this, and ...
15348 (grub_cur_term_output): ... this. Update all users.
15349 (grub_term_set_current): Split in ...
15350 (grub_term_set_current_input): ... this, and ...
15351 (grub_term_set_current_output): ... this.
15352 (grub_term_get_current): Split in ...
15353 (grub_term_get_current_input): ... this, and ...
15354 (grub_term_get_current_output): ... this.
15355 (grub_term_register): Split in ...
15356 (grub_term_register_input): ... this, and ...
15357 (grub_term_register_output): ... this.
15358 (grub_term_unregister): Split in ...
15359 (grub_term_unregister_input): ... this, and ...
15360 (grub_term_unregister_output): ... this.
15361 (grub_term_iterate): Split in ...
15362 (grub_term_iterate_input): ... this, and ...
15363 (grub_term_iterate_output): ... this.
15365 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
15366 a check for input and one for output (and only attempt to get keys
15367 from user when input works).
15369 * util/grub-probe.c (grub_term_get_current): Split in ...
15370 (grub_term_get_current_input): ... this, and ...
15371 (grub_term_get_current_output): ... this.
15372 * util/grub-fstest.c: Likewise.
15373 * util/i386/pc/grub-setup.c: Likewise.
15374 * util/grub-editenv.c: Likewise.
15376 Portability adjustments:
15378 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
15379 `term/i386/pc/at_keyboard.c'.
15380 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
15381 grub_keyboard_controller_init() (now handled by terminal .init).
15382 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
15383 grub_at_keyboard_init().
15384 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
15385 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
15386 at_keyboard.mod via input terminal interface).
15387 * include/grub/i386/coreboot/console.h: Convert into a stub for
15388 `<grub/i386/pc/console.h>'.
15390 Migrate full terminals to new API:
15392 * term/efi/console.c (grub_console_term): Split into ...
15393 (grub_console_term_input): ... this, and ...
15394 (grub_console_term_output): ... this. Update all users.
15395 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
15396 (grub_ofconsole_init): Split into ...
15397 (grub_ofconsole_init_input): ... this, and ...
15398 (grub_ofconsole_init_output): ... this.
15399 (grub_ofconsole_term): Split into ...
15400 (grub_ofconsole_term_input): ... this, and ...
15401 (grub_ofconsole_term_output): ... this. Update all users.
15402 * term/i386/pc/serial.c (grub_serial_term): Split into ...
15403 (grub_serial_term_input): ... this, and ...
15404 (grub_serial_term_output): ... this. Update all users.
15405 * term/i386/pc/console.c (grub_console_term): Split into ...
15406 (grub_console_term_input): ... this, and ...
15407 (grub_console_term_output): ... this. Update all users.
15408 (grub_console_term_input): Only enable it on PC/BIOS platform.
15409 (grub_console_init): Remove grub_keyboard_controller_init() call.
15411 Migrate input terminals to new API:
15413 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
15414 `i386' and `i386/pc' to enable build on x86_64 (this driver is
15415 i386-specific anyway).
15416 (grub_console_checkkey): Rename to ...
15417 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
15419 (grub_keyboard_controller_orig): New variable.
15420 (grub_console_getkey): Rename to ...
15421 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
15423 (grub_keyboard_controller_init): Static-ize. Save original
15424 controller value so that it can be restored ...
15425 (grub_keyboard_controller_fini): ... here (new function).
15426 (grub_at_keyboard_term): New structure.
15427 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
15430 Migrate output terminals to new API:
15432 * term/i386/pc/vga.c (grub_vga_term): Change type to
15433 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
15434 members. Update all users.
15435 * term/gfxterm.c (grub_video_term): Change type to
15436 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
15437 members. Update all users.
15438 * include/grub/i386/pc/console.h (grub_console_checkkey)
15439 (grub_console_getkey): Do not export (no longer needed by gfxterm,
15442 Migrate `terminal' command and userland tools to new API:
15444 * commands/terminal.c (grub_cmd_terminal): Split into ...
15445 (grub_cmd_terminal_input): ... this, and ...
15446 (grub_cmd_terminal_output): ... this.
15447 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
15448 `terminal_input' and `terminal_output'.
15449 * util/grub.d/00_header.in: Adjust `terminal' calls to new
15450 `terminal_input' / `terminal_output' API.
15451 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
15452 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
15453 provided ${GRUB_TERMINAL}, convert it).
15455 2008-11-04 Robert Millan <rmh@aybabtu.com>
15457 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
15459 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
15461 2008-11-03 Bean <bean123ch@gmail.com>
15463 * kern/elf.c (grub_elf32_load): Revert to previous code.
15464 (grub_elf64_load): Likewise.
15466 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
15468 2008-11-01 Robert Millan <rmh@aybabtu.com>
15470 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
15471 (TARGET_CPPFLAGS): Likewise.
15472 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
15474 2008-11-01 Carles Pina i Estany <carles@pina.cat>
15476 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
15478 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
15480 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
15481 addition of objects until the code is not going to be able to fail.
15483 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
15485 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
15486 (add a missing NULL check, and correct them by moving the pointer
15487 operations after the actual check).
15489 2008-10-29 Robert Millan <rmh@aybabtu.com>
15491 * util/i386/pc/grub-install.in: Handle empty string as output from
15492 make_system_path_relative_to_its_root().
15494 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
15496 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
15497 circular metadata worst case scenario. If the metadata is circular
15498 then copy the wrap in place.
15499 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
15500 project lib/format_text/layout.h
15501 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
15503 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
15505 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
15507 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
15509 * util/update-grub_lib.in: Mention filename in warning message.
15511 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
15513 * NEWS: Update for rename of update-grub to grub-mkconfig.
15515 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
15517 * util/update-grub_lib.in: Copy to ...
15518 * util/grub-mkconfig_lib.in: ... this. Update all users.
15519 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
15520 * util/update-grub.in: Rename to ...
15521 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
15522 option. Add `--output' option to allow users to specify the generated
15523 configuration file. Default to stdout.
15524 (update_grub_dir): Rename to ...
15525 (grub_mkconfig_dir): ... this.
15526 (grub_cfg): Default to an empty string.
15527 * conf/common.rmk (update-grub): Rename to ...
15528 (grub-mkconfig): ... this.
15529 (update-grub_lib): Copy to ...
15530 (grub-mkconfig_lib): ... this.
15531 (update-grub_SCRIPTS): Copy to ...
15532 (grub-mkconfig_SCRIPTS): ... this. Update all users.
15533 (update-grub_DATA): Rename to ...
15534 (grub-mkconfig_DATA): ... this.
15536 2008-09-28 Robert Millan <rmh@aybabtu.com>
15538 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
15539 to `modified'. Add the real `created' field.
15540 (grub_iso9660_uuid): Use `modified' rather than `created' for
15541 constructing the UUID.
15543 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
15545 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
15546 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
15548 2008-09-28 Bean <bean123ch@gmail.com>
15550 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
15551 Thanks to Christian Franke for finding this bug.
15553 2008-09-25 Robert Millan <rmh@aybabtu.com>
15555 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
15556 instances of grub_util_get_disk_name() (see previous commit).
15558 2008-09-25 Robert Millan <rmh@aybabtu.com>
15560 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
15561 `util/i386/get_disk_name.c'.
15562 * conf/i386-efi.rmk: Likewise.
15563 * conf/x86_64-efi.rmk: Likewise.
15564 * conf/i386-coreboot.rmk: Likewise.
15565 * conf/i386-ieee1275.rmk: Likewise.
15566 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
15567 `util/ieee1275/get_disk_name.c'.
15568 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
15569 * util/ieee1275/get_disk_name.c: Remove file.
15570 * util/i386/get_disk_name.c: Remove file.
15571 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
15572 "hd%d" for device.map entries, rather than using
15573 grub_util_get_disk_name().
15575 2008-09-24 Carles Pina i Estany <carles@pina.cat>
15577 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
15579 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
15581 2008-09-24 Carles Pina i Estany <carles@pina.cat>
15583 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
15585 (GRUB_TERM_PPAGE): Changed to 0x4900.
15587 2008-09-24 Robert Millan <rmh@aybabtu.com>
15589 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
15590 macros (they were i386-pc specific).
15591 * include/grub/sparc64/ieee1275/console.h: Likewise.
15592 * include/grub/efi/console.h: Likewise.
15594 2008-09-22 Bean <bean123ch@gmail.com>
15596 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
15597 resident and in attribute list.
15599 * include/grub/ntfs.h (BMP_LEN): Removed.
15601 2008-09-22 Bean <bean123ch@gmail.com>
15603 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
15604 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
15606 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
15607 error occurs, as grub_disk_open will call grub_disk_close, which will
15608 call p->close (scsi).
15610 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
15612 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
15613 (AC_PREREQ): Bumped to 2.59.
15614 (AC_TRY_COMPILE): Replace obsolete macro with ...
15615 (AC_COMPILE_IFELSE): ... this.
15616 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
15617 (AC_LINK_IFELSE): ... this.
15619 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
15621 * autogen.sh: Add a call to `gendistlist.sh'.
15623 2008-09-19 Christian Franke <franke@computer.org>
15625 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
15626 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
15627 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
15628 Export __enable_execute_stack() to modules.
15629 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
15632 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
15634 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
15637 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
15639 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
15640 #include <grub/util/hostdisk.h>.
15642 2008-09-08 Robert Millan <rmh@aybabtu.com>
15644 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
15645 segments when their filesz is zero (grub_file_read() interprets
15646 zero-size as "read until EOF", which results in memory corruption).
15647 Use `lowest_segment' rather than 0 for calculating the current
15648 segment load address.
15650 2008-09-08 Robert Millan <rmh@aybabtu.com>
15652 * util/hostdisk.c (open_device): Replace a grub_util_info() call
15653 with grub_dprintf("hostdisk", ...), as it was so verbose that it
15654 clobbered useful information.
15656 2008-09-08 Robert Millan <rmh@aybabtu.com>
15658 * include/grub/util/biosdisk.h: Move to ...
15659 * include/grub/util/hostdisk.h: ... here. Update all users.
15660 * util/biosdisk.c: Move to ...
15661 * util/hostdisk.c: ... here. Update all users.
15663 2008-09-07 Robert Millan <rmh@aybabtu.com>
15665 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
15667 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
15668 and length can be stored directly in the `mbi->mmap_addr' and
15669 `mbi->mmap_length' struct fields.
15671 2008-09-07 Robert Millan <rmh@aybabtu.com>
15673 * conf/i386.rmk: New file. Provides declaration for building
15675 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
15676 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
15678 Include `conf/i386.mk'.
15679 * conf/i386-efi.rmk: Likewise.
15680 * conf/x86_64-efi.rmk: Likewise.
15681 * conf/i386-coreboot.rmk: Likewise.
15682 * conf/i386-ieee1275.rmk: Likewise.
15684 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
15686 Based on patch created by Colin D Bennett <colin@gibibit.com>.
15687 Adds optimization support for BGR based modes.
15689 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
15690 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
15691 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
15692 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
15693 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
15694 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
15695 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
15696 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15697 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15698 (grub_video_i386_vbeblit_index_index): Likewise.
15699 (grub_video_i386_vbeblit_replace_directN): Added.
15700 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
15701 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
15702 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
15703 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
15704 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
15705 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
15706 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
15707 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
15708 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
15709 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
15710 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
15711 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
15712 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
15714 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
15715 (grub_video_i386_vbefill_R8G8B8): Likewise.
15716 (grub_video_i386_vbefill_index): Likewise.
15717 (grub_video_i386_vbefill_direct32): Added.
15718 (grub_video_i386_vbefill_direct24): Likewise.
15719 (grub_video_i386_vbefill_direct16): Likewise.
15720 (grub_video_i386_vbefill_direct8): Likewise.
15722 * include/grub/video.h (grub_video_blit_format): Removed
15723 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
15724 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
15725 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
15726 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
15727 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
15729 * video/video.c (grub_video_get_blit_format): Updated to use new
15730 blit formats. Added handling for 16 bit color modes.
15732 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
15734 (common_blitter): Updated to use new blitters.
15736 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
15738 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
15739 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
15740 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
15741 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
15742 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
15743 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
15744 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15745 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15746 (grub_video_i386_vbeblit_index_index): Likewise.
15747 (grub_video_i386_vbeblit_replace_directN): Added.
15748 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
15749 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
15750 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
15751 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
15752 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
15753 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
15754 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
15755 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
15756 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
15757 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
15758 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
15759 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
15760 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
15762 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
15763 (grub_video_i386_vbefill_R8G8B8): Likewise.
15764 (grub_video_i386_vbefill_index): Likewise.
15765 (grub_video_i386_vbefill_direct32): Added.
15766 (grub_video_i386_vbefill_direct24): Likewise.
15767 (grub_video_i386_vbefill_direct16): Likewise.
15768 (grub_video_i386_vbefill_direct8): Likewise.
15770 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
15773 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
15776 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
15779 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
15782 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
15784 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
15787 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
15789 * fs/iso9660.c (grub_iso9660_date): New structure.
15790 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
15791 (grub_iso9660_uuid): New function.
15793 2008-09-05 Bean <bean123ch@gmail.com>
15795 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
15797 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
15798 insensitive bit for names in Win32 and Win32 & DOS namespace.
15800 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
15802 * include/grub/types.h (LONG_MAX): Likewise.
15804 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
15806 * util/getroot.c: Include <config.h>.
15807 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
15808 add support for /dev/md/N devices and handle LVM double dash escaping.
15810 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
15812 * config.guess: Update to latest version from config git.
15813 * config.sub: Likewise.
15815 2008-09-03 Robert Millan <rmh@aybabtu.com>
15817 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
15818 `disk->total_sectors'.
15820 2008-09-01 Colin D Bennett <colin@gibibit.com>
15822 * include/grub/normal.h: Fixed incorrect comment for
15823 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
15825 2008-09-01 Colin D Bennett <colin@gibibit.com>
15827 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
15828 values with defines.
15830 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
15831 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
15832 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
15833 (GRUB_VBE_MODEATTR_COLOR): Likewise.
15834 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
15835 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
15836 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
15837 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
15838 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
15839 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
15840 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
15841 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
15842 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
15843 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
15844 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
15845 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
15846 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
15847 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
15848 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
15850 2008-08-31 Robert Millan <rmh@aybabtu.com>
15852 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
15854 (grub_multiboot): Fix a few warnings.
15856 2008-08-31 Robert Millan <rmh@aybabtu.com>
15858 * loader/i386/pc/multiboot.c: Update comment not to say that
15859 boot_device support is unimplemented.
15861 2008-08-31 Robert Millan <rmh@aybabtu.com>
15863 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
15864 or memory map support are unimplemented.
15866 2008-08-31 Colin D Bennett <colin@gibibit.com>
15868 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
15870 2008-08-31 Colin D Bennett <colin@gibibit.com>
15872 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
15873 total video memory in 'vbeinfo' output; show color format details for
15876 2008-08-30 Pavel Roskin <proski@gnu.org>
15878 * util/genmoddep.c: Remove for real this time.
15879 * DISTLIST: Remove util/genmoddep.c.
15881 2008-08-30 Robert Millan <rmh@aybabtu.com>
15883 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
15884 as required by Multiboot spec (it was already 4-byte aligned, but
15887 2008-08-29 Pavel Roskin <proski@gnu.org>
15889 * kern/powerpc/ieee1275/crt0.S: Rename to ...
15890 * kern/powerpc/ieee1275/startup.S: ... this.
15891 * conf/powerpc-ieee1275.rmk: Adjust for the above.
15892 * DISTLIST: Likewise.
15894 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
15895 grub/cpu/kernel.h. Add start label for consistency with other
15896 platforms. Add grub_prefix immediately after start. Add jump
15897 to the code after grub_prefix.
15898 * include/grub/powerpc/kernel.h: Provide valid values for
15899 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
15901 2008-08-29 Bean <bean123ch@gmail.com>
15903 * configure.ac: Change host_os to cygwin for mingw.
15904 (asprintf): New check for function.
15906 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
15907 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
15909 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
15910 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
15911 sync, sleep and grub_util_get_disk_size for mingw.
15913 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
15914 to get size in mingw.
15915 (open_device): Use flag O_BINARY if it's defined.
15916 (find_root_device): Add dummy code for mingw.
15918 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
15919 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
15920 (get_scsi_disk_name): Return 0 for mingw.
15922 * util/hostfs.c: #include <grub/util/misc.h>.
15923 (grub_hostfs_open): Use "rb" flag to open file, use
15924 grub_util_get_disk_size to get disk size for mingw.
15926 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
15927 (asprintf): New function if HAVE_ASPRINTF is not set.
15928 (sync): New function for mingw.
15930 (grub_util_get_disk_size): Likewise.
15932 2008-08-28 Pavel Roskin <proski@gnu.org>
15934 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15937 2008-08-28 Robert Millan <rmh@aybabtu.com>
15939 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
15941 2008-08-28 Robert Millan <rmh@aybabtu.com>
15943 Change find_grub_drive() syntax so it doesn't prevent it from
15944 detecting NULL names as errors.
15946 * util/biosdisk.c (find_grub_drive): Move free slot search code
15948 (find_free_slot): ... to here.
15949 (read_device_map): Use find_free_slot() to search for free slots.
15951 2008-08-27 Marco Gerards <marco@gnu.org>
15953 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
15954 (scsi_mod_SOURCES): New variable.
15955 (scsi_mod_CFLAGS): Likewise
15956 (scsi_mod_LDFLAGS): Likewise.
15958 * disk/scsi.c: New file.
15960 * include/grub/scsi.h: Likewise.
15962 * include/grub/scsicmd.h: Likewise.
15964 * disk/ata.c: Include <grub/scsi.h>.
15965 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
15967 (grub_ata_iterate): Skip ATAPI devices.
15968 (grub_ata_open): Only handle ATAPI devices.
15969 (struct grub_atapi_read): Removed.
15970 (grub_atapi_readsector): Likewise.
15971 (grub_ata_read): No longer handle ATAPI devices.
15972 (grub_ata_write): Likewise.
15973 (grub_atapi_iterate): New function.
15974 (grub_atapi_read): Likewise.
15975 (grub_atapi_write): Likewise.
15976 (grub_atapi_open): Likewise.
15977 (grub_atapi_close): Likewise.
15978 (grub_atapi_dev): New variable.
15979 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
15980 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
15982 * include/grub/disk.h (enum grub_disk_dev_id): Add
15983 `GRUB_DISK_DEVICE_SCSI_ID'.
15985 2008-08-26 Robert Millan <rmh@aybabtu.com>
15987 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
15988 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
15991 2008-08-23 Bean <bean123ch@gmail.com>
15993 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
15994 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15995 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
15996 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
15998 (raid5rec_mod_SOURCES): New macro.
15999 (raid5rec_mod_CFLAGS): Likewise.
16000 (raid5rec_mod_LDFLAGS): Likewise.
16001 (raid6rec_mod_SOURCES): Likewise.
16002 (raid6rec_mod_CFLAGS): Likewise.
16003 (raid6rec_mod_LDFLAGS): Likewise.
16004 (mdraid_mod_SOURCES): Likewise.
16005 (mdraid_mod_CFLAGS): Likewise.
16006 (mdraid_mod_LDFLAGS): Likewise.
16007 (dm_nv_mod_SOURCES): Likewise.
16008 (dm_nv_mod_CFLAGS): Likewise.
16009 (dm_nv_mod_LDFLAGS): Likewise.
16011 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
16012 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
16013 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
16015 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
16016 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
16018 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16020 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16022 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16024 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16026 * disk/raid5_recover.c: New file.
16028 * disk/raid6_recover.c: Likewise.
16030 * disk/mdraid_linux.c: Likewise.
16032 * disk/dmraid_nvidia.c: Likewise.
16034 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
16037 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
16038 calculate the size of raid device.
16039 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
16040 different layout of raid5.
16041 (grub_raid_scan_device): Remove code specific to mdraid.
16042 (grub_raid_list): New variable.
16043 (free_array): New function.
16044 (grub_raid_register): Likewise.
16045 (grub_raid_unregister): Likewise.
16046 (grub_raid_rescan): Likewise.
16047 (GRUB_MOD_INIT): Don't iterate device here.
16048 (GRUB_MOD_FINI): Use free_array to release resource.
16050 * include/grub/raid.h: Remove macro and structure specific to mdraid.
16051 (grub_raid5_recover_func_t): New function variable type.
16052 (grub_raid6_recover_func_t): Likewise.
16053 (grub_raid5_recover_func): New variable.
16054 (grub_raid6_recover_func): Likewise.
16055 (grub_raid_register): New function.
16056 (grub_raid_unregister): Likewise.
16057 (grub_raid_rescan): Likewise.
16058 (grub_raid_block_xor): Likewise.
16060 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
16061 (CMD_CRC): New macro.
16063 (read_file): Handle device as well as file.
16064 (cmd_crc): New function.
16065 (fstest): Handle multiple disks.
16066 (options): Remove part, raw and long, add root and diskcount.
16067 (usage): Add crc, remove -p, -r, -l, add -r and -c.
16068 (main): Find the first non option entry and ignore subsequent options,
16069 add handling for the new options, support multiple disks.
16071 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
16073 2008-08-23 Bean <bean123ch@gmail.com>
16075 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
16077 * genfslist.sh: Ignore kernel.mod.
16079 * genpartmaplist.sh: Likewise.
16081 2008-08-23 Robert Millan <rmh@aybabtu.com>
16083 * util/getroot.c (find_root_device): Skip anything that starts with
16084 a dot, not just directories. This avoids things like /dev/.tmp.md0.
16086 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
16088 * util/update-grub.in (GRUB_GFXMODE): Export variable.
16089 * util/grub.d/00_header.in: Allow the administrator to change default
16090 gfxmode via ${GRUB_GFXMODE}.
16092 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
16094 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
16096 2008-08-21 Robert Millan <rmh@aybabtu.com>
16098 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
16100 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
16101 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
16103 2008-08-20 Carles Pina i Estany <carles@pina.cat>
16105 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
16106 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
16108 2008-08-19 Robert Millan <rmh@aybabtu.com>
16110 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
16111 (struct grub_virtual_screen): Remove `cursor_color'.
16112 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
16114 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
16116 2008-08-18 Robert Millan <rmh@aybabtu.com>
16118 Unify (identical) linux_normal.c files.
16119 * loader/i386/efi/linux_normal.c: Move from here ...
16120 * loader/linux_normal.c: ... to here. Update all users.
16121 * loader/i386/pc/linux_normal.c: Delete. Update all users.
16122 * loader/i386/ieee1275/linux_normal.c: Likewise.
16124 2008-08-18 Robert Millan <rmh@aybabtu.com>
16126 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
16127 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
16128 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
16129 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
16130 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
16132 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
16133 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
16134 (GRUB_LINUX_CL_END_OFFSET): ... to here.
16135 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
16136 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
16137 (GRUB_EFI_CL_END_OFFSET): Rename to ...
16138 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
16139 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
16140 Initialize `params->video_cursor_x' and `params->video_cursor_y'
16141 portably using grub_getxy().
16142 Replace `-EFI' with `-bzImage' in boot message.
16144 2008-08-17 Robert Millan <rmh@aybabtu.com>
16146 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
16148 2008-08-17 Robert Millan <rmh@aybabtu.com>
16150 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
16152 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
16153 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
16154 (grub_machine_mmap_iterate): New function declaration.
16155 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
16157 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
16160 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
16161 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
16162 Move e820 parsing from here ...
16163 * kern/i386/pc/mmap.c: New file.
16164 (grub_machine_mmap_iterate): ... to here.
16166 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
16167 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
16168 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
16169 (grub_available_iterate): Redeclare to return `void', and redeclare
16170 its hook to use grub_uint64_t as addr and size parameters, and rename
16172 (grub_machine_mmap_iterate): ... this. Update all users.
16174 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
16175 to make it more readable. Rename to ...
16176 (grub_machine_mmap_iterate): ... this.
16178 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
16179 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
16180 (grub_multiboot): Allocate an extra region after the payload, and fill
16181 it with a Multiboot memory map. Adjust a.out loader to calculate size
16182 with the extra space.
16183 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
16184 with the extra space.
16186 2008-08-17 Carles Pina i Estany <carles@pina.cat>
16188 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
16190 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
16192 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
16193 mdate-sh to the list `find' searches for.
16194 * DISTLIST: Regenerated.
16196 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
16198 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
16199 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
16200 genmoddep.awk, gensymlist.sh.in.
16201 (DISTDIRS): Add bus, docs, hook, lib.
16202 * DISTLIST: Regenerated.
16203 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
16205 2008-08-16 Robert Millan <rmh@aybabtu.com>
16207 * disk/raid.c (grub_raid_init): Handle/report errors set by
16208 grub_device_iterate().
16209 * disk/lvm.c (grub_lvm_init): Likewise.
16211 2008-08-15 Bean <bean123ch@gmail.com>
16213 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16215 (datetime_mod_SOURCES): New macro.
16216 (datetime_mod_CFLAGS): Likewise.
16217 (datetime_mod_LDFLAGS): Likewise.
16218 (date_mod_SOURCES): Likewise.
16219 (date_mod_CFLAGS): Likewise.
16220 (date_mod_LDFLAGS): Likewise.
16221 (datehook_mod_SOURCES): Likewise.
16222 (datehook_mod_CFLAGS): Likewise.
16223 (datehook_mod_LDFLAGS): Likewise.
16225 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16227 (datetime_mod_SOURCES): New macro.
16228 (datetime_mod_CFLAGS): Likewise.
16229 (datetime_mod_LDFLAGS): Likewise.
16230 (date_mod_SOURCES): Likewise.
16231 (date_mod_CFLAGS): Likewise.
16232 (date_mod_LDFLAGS): Likewise.
16233 (datehook_mod_SOURCES): Likewise.
16234 (datehook_mod_CFLAGS): Likewise.
16235 (datehook_mod_LDFLAGS): Likewise.
16237 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16239 (datetime_mod_SOURCES): New macro.
16240 (datetime_mod_CFLAGS): Likewise.
16241 (datetime_mod_LDFLAGS): Likewise.
16242 (date_mod_SOURCES): Likewise.
16243 (date_mod_CFLAGS): Likewise.
16244 (date_mod_LDFLAGS): Likewise.
16245 (datehook_mod_SOURCES): Likewise.
16246 (datehook_mod_CFLAGS): Likewise.
16247 (datehook_mod_LDFLAGS): Likewise.
16249 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16251 (datetime_mod_SOURCES): New macro.
16252 (datetime_mod_CFLAGS): Likewise.
16253 (datetime_mod_LDFLAGS): Likewise.
16254 (date_mod_SOURCES): Likewise.
16255 (date_mod_CFLAGS): Likewise.
16256 (date_mod_LDFLAGS): Likewise.
16257 (datehook_mod_SOURCES): Likewise.
16258 (datehook_mod_CFLAGS): Likewise.
16259 (datehook_mod_LDFLAGS): Likewise.
16261 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16263 (datetime_mod_SOURCES): New macro.
16264 (datetime_mod_CFLAGS): Likewise.
16265 (datetime_mod_LDFLAGS): Likewise.
16266 (date_mod_SOURCES): Likewise.
16267 (date_mod_CFLAGS): Likewise.
16268 (date_mod_LDFLAGS): Likewise.
16269 (datehook_mod_SOURCES): Likewise.
16270 (datehook_mod_CFLAGS): Likewise.
16271 (datehook_mod_LDFLAGS): Likewise.
16273 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
16275 * commands/date.c: New file.
16277 * hook/datehook.c: Likewise.
16279 * include/grub/lib/datetime.h: Likewise.
16281 * include/grub/i386/cmos.h: Likewise.
16283 * lib/datetime.c: Likewise.
16285 * lib/i386/datetime.c: Likewise.
16287 * lib/efi/datetime.c: Likewise.
16289 2008-08-14 Robert Millan <rmh@aybabtu.com>
16291 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
16292 (grub_mkelfimage_SOURCES): New variable.
16293 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
16295 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
16296 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
16297 * conf/powerpc-ieee1275.rmk: Likewise.
16298 * conf/i386-ieee1275.rmk: Likewise.
16300 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
16301 * kern/i386/coreboot/init.c: Likewise.
16303 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
16304 with `<grub/cpu/kernel.h>'.
16305 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
16307 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
16308 * kern/i386/coreboot/startup.S: Likewise.
16310 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
16311 (GRUB_MOD_GAP): Remove.
16312 * include/grub/powerpc/kernel.h: New file.
16313 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
16314 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
16315 * include/grub/i386/kernel.h: New file.
16316 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
16317 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
16318 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
16320 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
16322 Use --directory when invoking grub_mkimage.
16324 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
16325 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
16326 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
16327 and GRUB_KERNEL_CPU_PREFIX.
16329 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
16331 * include/grub/err.h (grub_err_printf): New function prototype.
16332 * util/misc.c (grub_err_printf): New function.
16333 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
16335 * kern/err.c (grub_print_error): Use grub_err_printf.
16337 2008-08-13 Robert Millan <rmh@aybabtu.com>
16339 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
16341 2008-08-13 Robert Millan <rmh@aybabtu.com>
16343 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
16346 2008-08-12 Robert Millan <rmh@aybabtu.com>
16348 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
16349 of the relocation code from here ...
16350 (grub_multiboot): ... to here.
16351 (forward_relocator, backward_relocator): Move from here ...
16352 * kern/i386/loader.S (grub_multiboot_forward_relocator)
16353 (grub_multiboot_backward_relocator): ... to here.
16354 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
16355 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
16356 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
16357 (grub_multiboot_forward_relocator_end)
16358 (grub_multiboot_backward_relocator)
16359 (grub_multiboot_backward_relocator_end): New variables.
16361 2008-08-12 Bean <bean123ch@gmail.com>
16363 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
16365 2008-08-11 Robert Millan <rmh@aybabtu.com>
16367 * kern/i386/linuxbios/startup.S: Move from here ...
16368 * kern/i386/coreboot/startup.S: ... to here.
16370 * kern/i386/linuxbios/init.c: Move from here ...
16371 * kern/i386/coreboot/init.c: ... to here.
16373 * kern/i386/linuxbios/table.c: Move from here ...
16374 * kern/i386/coreboot/mmap.c: ... to here.
16376 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
16378 2008-08-11 Robert Millan <rmh@aybabtu.com>
16380 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
16381 errors. Leave it to the upper layer to handle them.
16383 2008-08-09 Christian Franke <franke@computer.org>
16385 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
16386 * conf/common.rmk: Install `grub-pe2elf' only if requested.
16387 Install `grub.d/10_windows' only on Cygwin.
16388 * configure.ac: Add subst of `target_os'.
16389 Check `target_os' also before setting TARGET_OBJ2ELF.
16390 Add `--enable-grub-pe2elf'.
16392 2008-08-08 Robert Millan <rmh@aybabtu.com>
16394 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
16395 (grub_last_time): Change type to grub_uint64_t.
16396 (grub_disk_open): Migrate code from to using grub_get_time_ms().
16397 (grub_disk_close): Likewise.
16399 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
16400 (run_menu): Migrate code from to using grub_get_time_ms().
16402 * util/misc.c (grub_get_time_ms): New function.
16404 2008-08-08 Marco Gerards <marco@gnu.org>
16406 * disk/ata.c (grub_ata_regget): Change return type to
16408 (grub_ata_regget2): Likewise.
16409 (grub_ata_wait_status): New function.
16410 (grub_ata_wait_busy): Removed function, updated all users to use
16411 `grub_ata_wait_status'.
16412 (grub_ata_wait_drq): Likewise.
16413 (grub_ata_cmd): New function.
16414 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
16416 (grub_ata_pio_write): Add error handling.
16417 (grub_atapi_identify): Likewise.
16418 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
16420 (grub_ata_identify): Use `grub_ata_cmd' and improve error
16421 handling. Actually use the detected registers. Reorder the
16422 detection logic such that it is easier to read.
16423 (grub_ata_pciinit): Do not assign the same ID to each controller.
16424 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
16426 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
16428 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
16430 2008-08-08 Marco Gerards <marco@gnu.org>
16434 2008-08-07 Bean <bean123ch@gmail.com>
16436 * include/grub/x86_64/pci.h: New file.
16438 2008-08-07 Christian Franke <franke@computer.org>
16440 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
16441 (TIMER2_GATE): Likewise.
16442 (grub_pit_wait): Add enable/disable of the timer2 gate
16443 bit of port 0x61. This fixes a possible infinite loop.
16445 2008-08-07 Bean <bean123ch@gmail.com>
16447 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
16448 kern/i386/tsc.c and kern/i386/pit.c.
16450 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
16453 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
16456 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
16458 2008-08-07 Bean <bean123ch@gmail.com>
16460 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
16462 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
16464 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
16465 multiple inclusion. Add #include <grub/types.h>.
16467 2008-08-06 Christian Franke <franke@computer.org>
16469 * conf/common.rmk: Build and install `10_windows'.
16470 * util/grub.d/10_windows.in: New script.
16472 2008-08-06 Pavel Roskin <proski@gnu.org>
16474 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
16476 2008-08-06 Robert Millan <rmh@aybabtu.com>
16478 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
16479 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
16481 2008-08-06 Bean <bean123ch@gmail.com>
16483 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
16484 (grub_pxefs_fs_int): Remove dummy definition.
16485 (grub_pxefs_open): Use data->block_size to store the current block
16487 (grub_pxefs_read): Use block size stored in data->block_size. As the
16488 value of grub_pxe_blksize can be changed after the file is opened.
16490 2008-08-06 Bean <bean123ch@gmail.com>
16492 * fs/i386/pc/pxe.c (curr_file): new variable.
16493 (grub_pxefs_open): Simply the handling of pxe file system. Don't
16494 require the dummy internal file system anymore.
16495 (grub_pxefs_read): Removed.
16496 (grub_pxefs_close): Likewise.
16497 (grub_pxefs_fs_int): Likewise.
16498 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
16499 connection when we switch file.
16500 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
16502 2008-08-06 Robert Millan <rmh@aybabtu.com>
16504 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
16506 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
16507 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
16509 * kern/i386/halt.c: New file.
16510 * kern/i386/reboot.c: Likewise.
16511 * include/grub/i386/reboot.h: Likewise.
16512 * include/grub/i386/halt.h: Likewise.
16514 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
16515 Include `<grub/cpu/halt.h>'.
16516 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
16517 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
16519 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
16520 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
16521 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
16522 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
16523 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
16524 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
16526 * include/grub/i386/at_keyboard.h: ... to here.
16528 2008-08-05 Robert Millan <rmh@aybabtu.com>
16530 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
16531 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
16532 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
16533 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
16534 `kern/generic/millisleep.c'.
16536 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
16537 instead of grub_get_rtc().
16538 (grub_tsc_init): Initialize `tsc_boot_time'.
16540 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
16541 (grub_machine_init): Use grub_tsc_init() rather than
16542 installing an RTC-based handler via grub_install_get_time_ms().
16544 * kern/i386/pit.c: New file.
16545 * include/grub/i386/pit.h: Likewise.
16547 2008-08-05 Bean <bean123ch@gmail.com>
16549 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
16551 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
16552 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
16553 (pxe_mod_SOURCES): New macro.
16554 (pxe_mod_CFLAGS): Likewise.
16555 (pxe_mod_LDFLAGS): Likewise.
16556 (pxecmd_mod_SOURCES): Likewise.
16557 (pxecmd_mod_CFLAGS): Likewise.
16558 (pxecmd_mod_LDFLAGS): Likewise.
16560 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
16561 (grub_pxe_call): Likewise.
16563 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
16565 * commands/i386/pc/pxecmd.c: New file.
16567 * fs/i386/pc/pxe.c: Likewise.
16569 * include/grub/i386/pc/pxe.h: Likewise.
16571 2008-08-05 Bean <bean123ch@gmail.com>
16573 * util/console.c (grub_console_cur_color): New variable.
16574 (grub_console_standard_color): Likewise.
16575 (grub_console_normal_color): Likewise.
16576 (grub_console_highlight_color): Likewise.
16577 (color_map): Likewise.
16578 (use_color): Likewise.
16579 (NUM_COLORS): New macro.
16580 (grub_ncurses_setcolorstate): Handle color properly.
16581 (grub_ncurses_setcolor): Don't change color here, just remember the
16582 settings, color will be set in grub_ncurses_setcolorstate.
16583 (grub_ncurses_getcolor): New function.
16584 (grub_ncurses_init): Initialize color pairs.
16585 (grub_ncurses_term): New member grub_ncurses_getcolor.
16587 2008-08-05 Colin D Bennett <colin@gibibit.com>
16589 High resolution timer support. Implemented for x86 CPUs using TSC.
16590 Extracted generic grub_millisleep() so it's linked in only as needed.
16591 This requires a Pentium compatible CPU; if the RDTSC instruction is
16592 not supported, then it falls back on the generic grub_get_time_ms()
16593 implementation that uses the machine's RTC.
16595 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
16596 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
16597 `kern/generic/millisleep.c'.
16599 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
16600 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
16602 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
16603 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
16605 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16607 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
16608 `kern/generic/millisleep.c'.
16610 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16612 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
16614 * kern/generic/rtc_get_time_ms.c: New file.
16616 * kern/generic/millisleep.c: New file.
16618 * kern/misc.c: Don't include
16619 <kern/time.h> anymore.
16620 (grub_millisleep_generic): Removed.
16622 * commands/sleep.c (grub_interruptible_millisleep): Uses
16623 grub_get_time_ms() instead of grub_get_rtc().
16625 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
16627 (grub_cpu_is_cpuid_supported): New inline function.
16628 (grub_cpu_is_tsc_supported): New inline function.
16629 (grub_tsc_init): New function prototype.
16630 (grub_tsc_get_time_ms): New function prototype.
16632 * kern/i386/tsc.c (grub_get_time_ms): New file.
16634 * include/grub/time.h: Include <grub/types.h.
16635 (grub_millisleep_generic): Removed.
16636 (grub_get_time_ms): New prototype.
16637 (grub_install_get_time_ms): New prototype.
16638 (grub_rtc_get_time_ms): New prototype.
16640 * kern/time.c (grub_get_time_ms): New function.
16641 (grub_install_get_time_ms): New function.
16643 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
16644 <grub/time.h> anymore.
16645 (grub_millisleep): Removed.
16646 (grub_machine_init): Call grub_tsc_init.
16648 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
16649 get_time_ms() implementation.
16651 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
16652 (ieee1275_get_time_ms): New function.
16653 (grub_machine_init): Install get_time_ms() implementation.
16655 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
16656 (grub_machine_init): Call grub_tsc_init().
16657 (grub_millisleep): Removed.
16659 * kern/ieee1275/init.c (grub_millisleep): Removed.
16660 (grub_machine_init): Install ieee1275_get_time_ms()
16662 (ieee1275_get_time_ms): New function.
16663 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
16666 2008-08-05 Marco Gerards <marco@gnu.org>
16668 * disk/ata.c: Include <grub/pci.h>.
16669 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
16670 (grub_ata_initialize): Rewritten.
16671 (grub_ata_device_initialize): New function.
16673 2008-08-04 Pavel Roskin <proski@gnu.org>
16675 * kern/main.c: Include grub/mm.h.
16677 2008-08-04 Robert Millan <rmh@aybabtu.com>
16679 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
16680 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
16681 corruption problem).
16683 2008-08-04 Robert Millan <rmh@aybabtu.com>
16685 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
16686 warnings introduced in my last commit.
16688 2008-08-03 Robert Millan <rmh@aybabtu.com>
16690 Make PCI available on all i386 architectures.
16692 * include/grub/i386/pc/pci.h: Move from here ...
16693 * include/grub/i386/pci.h: ... to here.
16695 * include/grub/i386/pc/pci.h: Remove.
16696 * include/grub/i386/efi/pci.h: Remove.
16697 * include/grub/x86_64/efi/pci.h: Remove.
16699 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
16700 `<grub/cpu/pci.h>'.
16702 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
16703 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
16704 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
16706 * conf/i386-ieee1275.rmk: Likewise.
16708 2008-08-03 Robert Millan <rmh@aybabtu.com>
16710 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
16711 (grub_console_setcursor): Make it possible to set cursor off.
16713 2008-08-03 Robert Millan <rmh@aybabtu.com>
16715 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
16716 of modules instead of assuming which platform provides what.
16717 * util/update-grub.in: Likewise.
16719 2008-08-03 Robert Millan <rmh@aybabtu.com>
16721 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
16722 instead of `grub_install_dos_part' to determine whether a drive needs
16723 to be prepended to prefix (`grub_install_dos_part' is not reliable,
16724 because it can be overridden when loading GRUB via Multiboot).
16726 2008-08-02 Robert Millan <rmh@aybabtu.com>
16728 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
16730 2008-08-02 Robert Millan <rmh@aybabtu.com>
16732 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
16733 of informational grub_dprintf() calls.
16735 2008-08-02 Robert Millan <rmh@aybabtu.com>
16737 * disk/memdisk.c (memdisk_size): Don't initialize.
16738 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
16740 * include/grub/i386/pc/kernel.h
16741 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
16742 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
16743 (grub_memdisk_image_size, grub_arch_memdisk_addr)
16744 (grub_arch_memdisk_size): Remove.
16746 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
16747 field (was only used to transfer a constant). Add `type' field to
16748 support multiple module types.
16749 (grub_module_iterate): New function.
16751 * kern/device.c (grub_device_open): Do not hide error messages
16752 when grub_disk_open() fails. Use grub_print_error() instead.
16754 * kern/i386/pc/init.c (grub_arch_modules_addr)
16755 (grub_arch_memdisk_size): Remove functions.
16756 (grub_arch_modules_addr): Return the module address in high memory
16757 (now that it isn't copied anymore).
16759 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
16760 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
16761 decompression routine (grub_total_module_size already includes that
16762 now). Don't copy modules back to low memory.
16764 * kern/main.c: Include `<grub/mm.h>'.
16765 (grub_load_modules): Split out (and use) ...
16766 (grub_module_iterate): ... this function, which iterates through
16767 module objects and runs a hook.
16768 Comment out grub_mm_init_region() call, as it would cause non-ELF
16769 modules to be overwritten.
16771 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
16772 the memdisk image in its own region, make it part of the module list.
16773 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
16774 (main): Parse --memdisk|-m option, and pass user-provided path as
16775 parameter to generate_image().
16776 (add_segments): Pass `memdisk_path' down to load_modules().
16777 (load_modules): Embed memdisk image in module section when requested.
16778 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
16779 `header.type' instead of `header.offset'.
16781 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
16782 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
16783 (memdisk_mod_LDFLAGS): New variables.
16784 * conf/i386-coreboot.rmk: Likewise.
16785 * conf/i386-ieee1275.rmk: Likewise.
16787 2008-08-02 Robert Millan <rmh@aybabtu.com>
16789 * loader/i386/pc/multiboot.c (playground, forward_relocator)
16790 (backward_relocator): New variables. Used to allocate and relocate
16791 the payload, respectively.
16792 (grub_multiboot_load_elf32): Load into heap instead of requested
16793 address, install the appropriate relocator code in each bound of
16794 the payload, and set the entry point such that
16795 grub_multiboot_real_boot() will jump to one of them.
16797 * kern/i386/loader.S (grub_multiboot_payload_size)
16798 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16799 (grub_multiboot_payload_entry_offset): New variables.
16800 (grub_multiboot_real_boot): Set cpu context to what the relocator
16801 expects, and jump to the relocator instead of the payload.
16803 * include/grub/i386/loader.h (grub_multiboot_payload_size)
16804 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16805 (grub_multiboot_payload_entry_offset): Export.
16807 2008-08-01 Bean <bean123ch@gmail.com>
16809 * normal/menu_entry.c (editor_getline): Don't return the original
16810 string as result, as it will be released by lexer once it has done
16813 2008-08-01 Robert Millan <rmh@aybabtu.com>
16815 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
16816 within menuentries, not before them.
16817 util/grub.d/10_hurd.in: Likewise.
16819 2008-08-01 Bean <bean123ch@gmail.com>
16821 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
16822 (bufio_mod_SOURCES): New macro.
16823 (bufio_mod_CFLAGS): Likewise.
16824 (bufio_mod_LDFLAGS): Likewise.
16826 * include/grub/bufio.h: New file.
16828 * io/bufio.c: Likewise.
16830 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
16831 (grub_video_reader_png): Use grub_buffile_open to open file.
16833 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
16834 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
16836 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
16837 (grub_video_reader_tga): Use grub_buffile_open to open file.
16839 * font/manager.c: Include <grub/bufio.h>.
16840 (add_font): Use grub_buffile_open to open file.
16842 2008-07-31 Robert Millan <rmh@aybabtu.com>
16844 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
16845 ELF segments, use a macro for arbitrarily accessing any of them instead
16846 of preparing a pointer that allows access to one at a time.
16847 (grub_multiboot_load_elf64): Likewise.
16849 2008-07-31 Bean <bean123ch@gmail.com>
16851 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
16852 GRUB_KERNEL_MACHINE_DATA_END.
16854 2008-07-30 Robert Millan <rmh@aybabtu.com>
16856 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
16857 Increase from 0x50 to 0x60.
16858 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
16859 use UUIDs to identify the root drive for them. If that's not
16861 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
16862 check, for cross-disk installs.
16864 2008-07-30 Robert Millan <rmh@aybabtu.com>
16866 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
16867 is non-empty, use it to set the `prefix' environment variable instead
16868 of the usual approach.
16869 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
16870 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
16871 environment variable instead of dummy make_install_device().
16873 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
16874 (start): Insert a data section, with `grub_prefix' variable.
16875 * kern/i386/linuxbios/startup.S: Likewise.
16877 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
16878 New variable reference.
16879 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
16880 New macro. Defines offset of `grub_prefix' within startup.S (relative
16882 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
16883 section within startup.S (relative to `start').
16884 * include/grub/i386/coreboot/kernel.h: Likewise.
16886 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
16887 Overwrite grub_prefix with its contents, at the beginning of the
16889 (main): Understand -p|--prefix.
16891 2008-07-30 Robert Millan <rmh@aybabtu.com>
16893 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
16895 2008-07-30 Robert Millan <rmh@aybabtu.com>
16897 * term/i386/pc/vga_text.c (grub_console_cls): Use
16898 grub_console_gotoxy() to go back to beginning of the screen.
16899 Found by Patrick Georgi <patrick.georgi@coresystems.de>
16901 2008-07-29 Christian Franke <franke@computer.org>
16903 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
16904 Add conversion of emulated mount points on Cygwin.
16906 2008-07-29 Christian Franke <franke@computer.org>
16908 * util/update-grub.in: Add a check for admin
16910 Remove old `grub.cfg.new' before creation.
16911 Add `-f' to `mv' to handle the different filesystem
16912 semantics of Windows.
16914 2008-07-29 Bean <bean123ch@gmail.com>
16916 * normal/main.c (get_line): Fix buffer overflow bug.
16918 2008-07-28 Robert Millan <rmh@aybabtu.com>
16920 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
16921 (struct grub_apple_header): New struct. Describes the layout of
16922 the partmap header.
16923 (apple_partition_map_iterate): Check the header magic as well as the
16924 partition magic (which was already being checked).
16926 2008-07-28 Pavel Roskin <proski@gnu.org>
16928 * genmk.rb: Add a warning to the beginning of the output that
16929 it's a generated file and should not be edited.
16931 2008-07-28 Robert Millan <rmh@aybabtu.com>
16933 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
16934 with the same number are found, just use issue a warning with
16935 grub_dprintf(), as this error has been reported to be non-fatal.
16937 2008-07-27 Robert Millan <rmh@aybabtu.com>
16939 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
16942 2008-07-27 Bean <bean123ch@gmail.com>
16944 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
16945 (grub_fat_find_dir): Ignore case when comparing filename.
16947 2008-07-27 Bean <bean123ch@gmail.com>
16949 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
16950 smallino, as it's more descriptive, and i8count can be confused with
16951 the other field count.
16952 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
16955 2008-07-27 Bean <bean123ch@gmail.com>
16957 * commands/crc.c: New file.
16959 * lib/crc.c: Likewise.
16961 * include/grub/lib/crc.h: Likewise.
16963 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
16965 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
16966 (hexdump): Move this function to ...
16968 * lib/hexdump.c: ... here.
16970 * include/grub/hexdump.h: Renamed to ...
16972 * include/grub/lib/hexdump.h: ... this.
16974 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
16976 * util/grub-editenv.c: Likewise.
16978 * include/envblk.h: Renamed to ...
16980 * include/lib/envblk.h: ... this.
16982 * util/envblk.c: Renamed to ...
16984 * lib/envblk.c: ... this.
16986 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
16988 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
16989 (pkglib_MODULES): Add crc.mod.
16990 (hexdump_mod_SOURCES): Add lib/hexdump.c.
16991 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
16992 (crc_mod_SOURCES): New macro.
16993 (crc_mod_CFLAGS): Likewise.
16994 (crc_mod_LDFLAGS): Likewise.
16996 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
16998 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17000 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17002 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17004 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
17006 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
17008 * commands/help.c: Include <grub/term.h>.
17009 (TERM_WIDTH): Removed. Updated all users.
17011 2008-07-27 Pavel Roskin <proski@gnu.org>
17013 * util/getroot.c (find_root_device): Rephrase a comment to avoid
17014 spurious warnings about a comment within a comment.
17016 2008-07-25 Robert Millan <rmh@aybabtu.com>
17018 * util/getroot.c (find_root_device): Skip devices that match
17019 /dev/dm-[0-9]. This lets the real device be found for any type of
17020 abstraction (LVM, EVMS, RAID..).
17021 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
17022 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
17023 device is found first, find_root_device() will now skip it.
17025 2008-07-24 Pavel Roskin <proski@gnu.org>
17027 * include/grub/types.h: Use __builtin_bswap32() and
17028 __builtin_bswap64() with gcc 4.3 and newer.
17030 2008-07-24 Christian Franke <franke@computer.org>
17032 * util/i386/pc/grub-install.in: If `--debug' is specified,
17033 pass `--verbose' to grub-setup.
17034 Abort script if make_system_path_relative_to_its_root() fails.
17036 2008-07-24 Bean <bean123ch@gmail.com>
17038 * configure.ac: Fixed a bug caused by the previous cygwin patch,
17039 variable `target_platform' should be `platform'.
17041 2008-07-24 Bean <bean123ch@gmail.com>
17043 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
17044 (grub_png_init_fixed_block): New function.
17045 (grub_png_decode_image_data): Handle fixed huffman code compression.
17047 2008-07-24 Bean <bean123ch@gmail.com>
17049 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
17050 (grub_pe2elf_SOURCES): New macro.
17051 (CLEANFILES): Add grub-pe2elf.
17053 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
17054 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
17055 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
17056 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
17057 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
17058 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
17059 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
17060 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
17061 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
17062 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
17063 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
17064 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
17065 (GRUB_PE32_DT_FUNCTION): Likewise.
17066 (GRUB_PE32_REL_I386_DIR32): Likewise.
17067 (GRUB_PE32_REL_I386_REL32): Likewise.
17068 (grub_pe32_symbol): New structure.
17069 (grub_pe32_reloc): Likewise.
17071 * util/grub-pe2elf.c: New file.
17073 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
17074 start symbol in non pc platform.
17076 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
17078 The following patches are from Christian Franke.
17080 * include/grub/dl.h: Remove .previous, gas supports this only
17083 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
17084 Remove .type, gas supports this only for ELF format.
17086 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
17087 nullbytes in symbol table. This fixes an infinite loop if table is
17090 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
17091 TARGET_IMG_LDFLAGS and EXEEXT.
17093 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
17094 TARGET_IMG_LDFLAGS_AC.
17095 (grub_CHECK_STACK_ARG_PROBE): New function.
17097 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
17099 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
17101 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
17102 to set TARGET_IMG_LD* accordingly.
17103 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
17104 Add call to grub_CHECK_STACK_ARG_PROBE.
17105 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
17107 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
17109 * genmk.rb: Add EXEEXT to CLEANFILES.
17111 2008-07-23 Robert Millan <rmh@aybabtu.com>
17113 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
17114 define the codes for arrows and lines used for the menu).
17115 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
17118 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
17119 fonts, because the latter are too slow.
17121 2008-07-21 Bean <bean123ch@gmail.com>
17123 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
17124 a20. Run keyboard test last, as it will cause macbook to halt.
17126 2008-07-18 Pavel Roskin <proski@gnu.org>
17128 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
17129 load foreign architecture modules correctly anyway. Keep
17130 support for loading host architecture modules, whether we
17131 compile them or not.
17133 2008-07-17 Pavel Roskin <proski@gnu.org>
17135 * configure.ac: Use -m32 or -m64 regardless of whether we had to
17136 change target_cpu. The compiler default can mismatch target_cpu
17139 * disk/efi/efidisk.c: Fix format warnings on x86_64.
17140 * kern/efi/efi.c: Likewise.
17142 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
17143 target compiler is functional.
17144 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
17147 * configure.ac: Default to efi platform for x86_64-apple. Allow
17148 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
17149 adjustments from the rest, only do them if target is not
17150 explicitly given. Merge other adjustments with the final sanity
17151 check. Remove an extraneous check for supported CPU. Be
17152 specific which CPU and which platform is not supported.
17154 * configure.ac: Default to pc platform for x86_64.
17156 2008-07-17 Robert Millan <rmh@aybabtu.com>
17158 Partial LinuxBIOS -> Coreboot rename.
17160 * conf/i386-linuxbios.rmk: Renamed to ...
17161 * conf/i386-coreboot.rmk: ... this.
17162 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
17163 * configure.ac: Accept "coreboot" as input platform (but maintain
17164 compatibility with "linuxbios").
17165 * include/grub/i386/linuxbios: Renamed to ...
17166 * include/grub/i386/coreboot: ... this.
17168 2008-07-17 Bean <bean123ch@gmail.com>
17170 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
17171 (appleldr_mod_SOURCE): New variable.
17172 (appleldr_mod_CFLAGS): Likewise.
17173 (appleldr_mod_LDFLAGS): Likewise.
17174 (pci_mod_SOURCES): Likewise.
17175 (pci_mod_CFLAGS): Likewise.
17176 (pci_mod_LDFLAGS): Likewise.
17177 (lspci_mod_SOURCES): Likewise.
17178 (lspci_mod_CFLAGS): Likewise.
17179 (lspci_mod_LDFLAGS): Likewise.
17181 * conf/x86_64-efi.rmk: New file.
17183 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
17185 (grub_efidisk_write): Likewise.
17187 * include/efi/api.h (efi_call_0): New macro.
17188 (efi_call_1): Likewise.
17189 (efi_call_2): Likewise.
17190 (efi_call_3): Likewise.
17191 (efi_call_4): Likewise.
17192 (efi_call_5): Likewise.
17193 (efi_call_6): Likewise.
17195 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
17196 grub_rescue_cmd_chainloader.
17198 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
17199 (grub_pe32_optional_header): Change some fields based on i386 or
17201 (GRUB_PE32_PE32_MAGIC): Likewise.
17203 * include/grub/efi/uga_draw.h: New file.
17205 * include/grub/elf.h (STN_ABS): New constant.
17206 (R_X86_64_NONE): Relocation constant for x86_64.
17207 (R_X86_64_64): Likewise.
17208 (R_X86_64_PC32): Likewise.
17209 (R_X86_64_GOT32): Likewise.
17210 (R_X86_64_PLT32): Likewise.
17211 (R_X86_64_COPY): Likewise.
17212 (R_X86_64_GLOB_DAT): Likewise.
17213 (R_X86_64_JUMP_SLOT): Likewise.
17214 (R_X86_64_RELATIVE): Likewise.
17215 (R_X86_64_GOTPCREL): Likewise.
17216 (R_X86_64_32): Likewise.
17217 (R_X86_64_32S): Likewise.
17218 (R_X86_64_16): Likewise.
17219 (R_X86_64_PC16): Likewise.
17220 (R_X86_64_8): Likewise.
17221 (R_X86_64_PC8): Likewise.
17223 * include/grub/i386/efi/pci.h: New file.
17225 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
17226 Change it value based on platform.
17227 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
17228 (GRUB_E820_RAM): Likewise.
17229 (GRUB_E820_RESERVED): Likewise.
17230 (GRUB_E820_ACPI): Likewise.
17231 (GRUB_E820_NVS): Likewise.
17232 (GRUB_E820_EXEC_CODE): Likewise.
17233 (GRUB_E820_MAX_ENTRY): Likewise.
17234 (grub_e820_mmap): New structure.
17235 (linux_kernel_header): Change the efi field according to different
17236 kernel version, also field from linux_kernel_header.
17238 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
17240 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
17241 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
17242 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
17243 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
17244 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
17245 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
17246 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
17247 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
17248 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
17249 (GRUB_PCI_ADDR_IO_MASK): Likewise.
17251 * include/grub/x86_64/efi/kernel.h: New file.
17253 * include/grub/x86_64/efi/loader.h: Likewise.
17255 * include/grub/x86_64/efi/machine.h: Likewise.
17257 * include/grub/x86_64/efi/pci.h: Likewise.
17259 * include/grub/x86_64/efi/time.h: Likewise.
17261 * include/grub/x86_64/linux.h: Likewise.
17263 * include/grub/x86_64/setjmp.h: Likewise.
17265 * include/grub/x86_64/time.h: Likewise.
17267 * include/grub/x86_64/types.h: Likewise.
17269 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
17270 GRUB_TARGET_SIZEOF_VOID_P.
17272 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
17273 (grub_efi_locate_handle): Likewise.
17274 (grub_efi_open_protocol): Likewise.
17275 (grub_efi_set_text_mode): Likewise.
17276 (grub_efi_stall): Likewise.
17277 (grub_exit): Likewise.
17278 (grub_reboot): Likewise.
17279 (grub_halt): Likewise.
17280 (grub_efi_exit_boot_services): Likewise.
17281 (grub_get_rtc): Likewise.
17283 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
17284 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
17285 (grub_efi_allocate_pages): Wrap efi calls.
17286 (grub_efi_free_pages): Wrap efi calls.
17287 (grub_efi_get_memory_map): Wrap efi calls.
17289 * kern/x86_64/dl.c: New file.
17291 * kern/x86_64/efi/callwrap.S: Likewise.
17293 * kern/x86_64/efi/startup.S: Likewise.
17295 * loader/efi/appleloader.c: Likewise.
17297 * loader/efi/chainloader.c (cmdline): New variable.
17298 (grub_chainloader_unload): Wrap efi calls.
17299 (grub_chainloader_boot): Likewise.
17300 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
17303 * loader/efi/chainloader_normal.c (chainloader_command):
17304 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
17307 * loader/i386/efi/linux.c (allocate_pages): Change allocation
17309 (grub_e820_add_region): New function.
17310 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
17312 (grub_find_video_card): New function.
17313 (grub_linux_setup_video): New function.
17314 (grub_rescue_cmd_linux): Probe for video information.
17316 * normal/x86_64/setjmp.S: New file.
17318 * term/efi/console.c (map_char): New function.
17319 (grub_console_putchar): Map unicode char.
17320 (grub_console_checkkey): Wrap efi calls.
17321 (grub_console_getkey): Likewise.
17322 (grub_console_getwh): Likewise.
17323 (grub_console_gotoxy): Likewise.
17324 (grub_console_cls): Likewise.
17325 (grub_console_setcolorstate): Likewise.
17326 (grub_console_setcursor): Likewise.
17328 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
17330 2008-07-16 Pavel Roskin <proski@gnu.org>
17332 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
17335 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
17336 pointer, not an integer. This fixes a warning and prevents
17337 precision loss on 64-bit systems.
17338 (relocate_addresses): Remove unneeded cast.
17340 2008-07-15 Pavel Roskin <proski@gnu.org>
17342 * kern/i386/ieee1275/init.c: Include grub/cache.h.
17344 * term/ieee1275/ofconsole.c: Disable code unused on i386.
17346 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
17347 Fix comparison between signed and unsigned.
17349 * include/grub/i386/ieee1275/console.h: Declare
17350 grub_console_init() and grub_console_fini().
17352 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
17353 It's empty and unused.
17355 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
17356 beginning to avoid warnings with some compilers.
17358 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
17359 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
17361 2008-07-14 Pavel Roskin <proski@gnu.org>
17363 * kern/env.c (grub_register_variable_hook): Don't copy empty
17364 string, it leaks memory. Pass "" to grub_env_set(), it should
17365 handle constant strings.
17367 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
17368 * commands/cmp.c (grub_cmd_cmp): Likewise.
17369 * kern/dl.c (grub_dl_flush_cache): Likewise.
17370 (grub_dl_load_core): Likewise.
17371 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
17372 (grub_elf64_load_phdrs): Likewise.
17374 2008-07-13 Pavel Roskin <proski@gnu.org>
17376 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
17377 between signed and unsigned.
17378 (LzmaEnc_Finish): Fix warning about an unused parameter.
17380 2008-07-13 Bean <bean123ch@gmail.com>
17382 * Makefile.in (enable_lzo): New rule.
17384 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
17386 * configure.ac (ENABLE_LZO): New option --enable-lzo.
17388 * boot/i386/pc/lnxboot.S: #include <config.h>.
17390 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
17391 its value according to the compression algorithm used, lzo or lzma.
17393 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
17394 compression algorithm according to configure macro.
17396 * kern/i386/pc/startup.S (codestart): Likewise.
17398 * kern/i386/pc/lzma_decode.S: New file.
17400 * include/grub/lib/LzFind.h: Likewise.
17402 * include/grub/lib/LzHash.h: Likewise.
17404 * include/grub/lib/LzmaDec.h: Likewise.
17406 * include/grub/lib/LzmaEnc.h: Likewise.
17408 * include/grub/lib/LzmaTypes.h: Likewise.
17410 * lib/LzFind.c: Likewise.
17412 * lib/LzmaDec.c: Likewise.
17414 * lib/LzmaEnc.c: Likewise.
17416 2008-07-13 Bean <bean123ch@gmail.com>
17418 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
17419 (grub_ext4_extent_header): New structure.
17420 (grub_ext4_extent): Likewise.
17421 (grub_ext4_extent_idx): Likewise.
17422 (grub_ext4_find_leaf): New function.
17423 (grub_ext2_read_block): Handle extents.
17425 2008-07-12 Robert Millan <rmh@aybabtu.com>
17427 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
17429 2008-07-11 Robert Millan <rmh@aybabtu.com>
17431 * util/grub.d/40_custom.in: New file. Example on how to add custom
17432 entries to /etc/grub.d.
17433 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
17434 40_custom (implicitly, by merging all the grub.d rules).
17436 2008-07-11 Pavel Roskin <proski@gnu.org>
17438 * commands/read.c (grub_getline): Fix invalid memory access.
17439 Don't add newline to the variable value.
17441 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
17442 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
17443 (serial_hw_get_port): Check validity of the port number.
17444 (grub_cmd_serial): Check return value of serial_hw_get_port().
17446 2008-07-07 Pavel Roskin <proski@gnu.org>
17448 * boot/i386/pc/diskboot.S (notification_string): Replace
17449 "Loading kernel" with just "loading". This is shorter, less
17450 confusing and saves a few bytes for possible future changes.
17452 2008-07-05 Pavel Roskin <proski@gnu.org>
17454 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
17455 size for ATAPI devices, they are undefined. Output sector
17456 number in decimal form.
17458 * disk/ata.c: Use named constants for status bits.
17460 2008-07-04 Pavel Roskin <proski@gnu.org>
17462 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
17463 grub_addr_t before casting it to the void pointer to fix a
17464 warning. Non-addressable regions are discarded earlier.
17465 (grub_arch_modules_addr): Cast _end to grub_addr_t.
17466 * kern/i386/linuxbios/table.c: Include grub/misc.h.
17467 (check_signature): Don't shadow table_header.
17468 (grub_linuxbios_table_iterate): Cast numeric constants to
17469 grub_linuxbios_table_header_t.
17470 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
17473 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
17476 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
17477 pointer, which can cause warnings. Support 64-bit addresses.
17479 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
17480 of sizeof(long). This fixes PowerPC image generation on x86_64.
17482 2008-07-04 Robert Millan <rmh@aybabtu.com>
17484 This fixes a performance issue when pc & gpt partmap iterators
17485 didn't abort iteration even after our hook found what it was
17486 looking for (often causing expensive probes of non-existent drives).
17488 Some callers relied on previous buggy behaviour, since they would
17489 raise an error when their own hooks caused early abortion of its
17492 * kern/device.c (grub_device_open): Improve error message.
17493 * disk/lvm.c (grub_lvm_open): Likewise.
17494 * disk/raid.c (grub_raid_open): Likewise.
17496 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
17497 when hook requests it, independently of grub_errno.
17498 (pc_partition_map_probe): Do not fail when find_func() caused
17499 early abortion of pc_partition_map_iterate().
17501 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
17502 when hook requests it, independently of grub_errno.
17503 (gpt_partition_map_probe): Do not fail when find_func() caused
17504 early abortion of gpt_partition_map_iterate().
17506 * kern/partition.c (grub_partition_iterate): Abort parent iteration
17507 when hook requests it, independently of grub_errno. Do not fail when
17508 part_map_iterate_hook() caused early abortion of p->iterate().
17510 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
17511 when grub_partition_iterate() returned with non-zero.
17513 2008-07-03 Pavel Roskin <proski@gnu.org>
17515 * disk/ata.c (grub_ata_pio_write): Check status before writing,
17516 like we do in grub_ata_pio_read().
17517 (grub_ata_readwrite): Always write individual sectors. Fix the
17518 sector count for the remainder.
17519 (grub_ata_write): Enable writing to ATA devices. Correctly
17520 report error for ATAPI devices.
17522 2008-07-02 Pavel Roskin <proski@gnu.org>
17524 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
17527 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
17528 for every read sector, we already increment it for the whole
17529 batch. This fixes reading more than 256 sectors at once.
17531 * util/grub-editenv.c (cmd_info): Cast argument to long
17532 explicitly. ptrdiff_t reduces to int on i386.
17534 * util/grub-editenv.c (main): Be specific which parameter is
17537 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
17538 (memdisk): Make memdisk_orig_addr a pointer.
17540 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
17541 for file offsets, use grub_off_t instead. Fix printf format
17544 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
17545 there. Real unexpected warnings should not drown in the noise
17546 about known problems.
17548 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
17549 grub_disk_addr_t for memory addresses.
17551 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
17552 explicitly to fix a warning.
17554 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
17556 * Makefile.in (MODULE_LDFLAGS): New variable.
17557 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
17558 the linker accepts --build-id=none.
17559 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
17561 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
17563 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
17564 those in Linux XFS code. Provide a way to access 64-bit parent
17566 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
17567 the end of struct grub_xfs_dir_header.
17569 2008-07-02 Bean <bean123ch@gmail.com>
17571 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
17572 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
17573 and GRUB_IEEE1275_FLAG_NO_ANSI.
17575 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
17576 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
17577 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
17579 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
17580 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
17582 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
17583 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
17585 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
17586 esc sequence on non ANSI terminal.
17587 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
17589 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
17592 2008-07-02 Bean <bean123ch@gmail.com>
17594 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
17595 (grub_editenv_SOURCES): New variable.
17596 (pkglib_MODULES): Add loadenv.mod.
17597 (loadenv_mod_SOURCES): New variable.
17598 (loadenv_mod_CFLAGS): Likewise.
17599 (loadenv_mod_LDFLAGS): Likewise.
17601 * include/grub/envblk.h: New file.
17603 * util/envblk.c: New file.
17605 * util/grub-editenv.c: New file.
17607 * commands/loadenv.c: New file.
17609 2008-07-01 Pavel Roskin <proski@gnu.org>
17611 * include/multiboot2.h (struct multiboot_tag_module): Use char,
17612 not unsigned char. This fixes warnings and is consistent with
17615 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
17617 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
17619 * term/tparm.c (analyze): Always set *popcount.
17621 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
17622 cast to fix a warning.
17624 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
17625 cast to suppress a warning.
17627 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
17628 grub_fshelp_read_file() expects.
17630 * fs/fat.c: Fix UUID calculation on big-endian systems. We
17631 write uuid as a 32-bit value in CPU byte order, so declare and
17634 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
17635 long if the format specifier expects it.
17636 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
17637 * partmap/pc.c (pc_partition_map_iterate): Likewise.
17638 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
17639 long to fix a warning.
17640 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
17641 grub_dprintf() arguments to fix warnings.
17643 2008-06-30 Pavel Roskin <proski@gnu.org>
17645 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
17646 install_bsd_part immediately before core.img is embedded or
17647 modified on disk. This fixes core.img verification if core.img
17648 cannot be embedded.
17650 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
17651 core_path to calculate the blocklist.
17652 Patch from Javier Martín <lordhabbit@gmail.com>
17654 2008-06-29 Robert Millan <rmh@aybabtu.com>
17656 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
17657 block to disk block.
17658 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
17659 Patch from Niels Böhm <bitbucket@arcor.de>
17661 2008-06-29 Robert Millan <rmh@aybabtu.com>
17663 * util/update-grub_lib.in (font_path): Search for fonts in
17664 /boot/grub first, which is more likely to be readable (we aren't
17665 deciding where fonts live, just looking for them).
17667 2008-06-26 Pavel Roskin <proski@gnu.org>
17669 * util/biosdisk.c (read_device_map): Don't leave dead map
17670 entries for devices failing stat() check.
17672 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
17673 core_path_dev for the core.img path on the target device.
17675 2008-06-26 Robert Millan <rmh@aybabtu.com>
17677 * disk/fs_uuid.c: New file.
17678 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
17679 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
17680 (fs_uuid_mod_LDFLAGS): New variables.
17681 * include/grub/disk.h (grub_disk_dev_id): Add
17682 `GRUB_DISK_DEVICE_UUID_ID'.
17683 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
17684 implement iterate().
17686 2008-06-26 Robert Millan <rmh@aybabtu.com>
17688 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
17689 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
17690 Linux image includes no initrd.
17692 2008-06-21 Javier Martín <lordhabbit@gmail.com>
17694 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
17695 call to resolve the core image location that effectively appended the
17698 2008-06-21 Robert Millan <rmh@aybabtu.com>
17700 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
17703 * util/grub.d/10_hurd.in: ... to here ...
17704 * util/grub.d/10_linux.in: ... and here.
17706 2008-06-19 Robert Millan <rmh@aybabtu.com>
17708 * kern/main.c (grub_main): Export `prefix' variable immediately
17709 after it has been set by grub_machine_set_prefix().
17711 2008-06-19 Robert Millan <rmh@aybabtu.com>
17713 * commands/search.c (search_label, search_fs_uuid, search_file): Print
17714 search result when not saving to variable, not the other way around.
17715 When saving to variable, abort iteration as soon as a match is found.
17717 2008-06-19 Robert Millan <rmh@aybabtu.com>
17719 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
17720 check for partition that provides /boot/grub. Its logic is flawed,
17721 as it prevents prepare_grub_to_access_device() from being called
17724 2008-06-19 Robert Millan <rmh@aybabtu.com>
17726 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
17727 "insmod" command directly when abstraction modules are needed,
17728 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
17729 since it had already been processed).
17731 2008-06-19 Pavel Roskin <proski@gnu.org>
17733 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
17734 changed. This is needed in case GRUB_LIBDIR changes.
17735 * conf/i386-ieee1275.rmk: Likewise.
17736 * conf/i386-linuxbios.rmk: Likewise.
17737 * conf/i386-pc.rmk: Likewise.
17738 * conf/powerpc-ieee1275.rmk: Likewise.
17740 2008-06-18 Pavel Roskin <proski@gnu.org>
17742 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
17743 kernel_elf_symlist.c to symlist.c for consistency with other
17744 architectures. Update all users.
17745 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
17747 2008-06-18 Robert Millan <rmh@aybabtu.com>
17749 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
17752 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
17753 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
17754 a RAID device, run setup() for all members independently on whether
17755 LVM abstraction is being used.
17756 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
17757 If grub-mkimage has set `*install_dos_part == -2', don't override this
17759 Perform *install_dos_part adjustments independently on whether
17760 we're embedding or not.
17761 Clarify error message when image is too big for embedding.
17762 Remove duplicate *install_dos_part stanza.
17764 2008-06-17 Robert Millan <rmh@aybabtu.com>
17766 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
17767 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
17769 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
17770 values in grub_ofconsole_normal_color and
17771 grub_ofconsole_highlight_color (they're not directly related to
17772 background and foreground).
17773 (grub_ofconsole_setcolorstate): Extract background and foreground
17774 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
17776 2008-06-17 Robert Millan <rmh@aybabtu.com>
17778 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
17779 /boot/grub for the check in last commit, not /boot (they could be
17780 different partitions).
17782 2008-06-16 Robert Millan <rmh@aybabtu.com>
17784 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
17785 asked to setup access for the same partition that provides /boot,
17786 don't bother using UUIDs since our root already has the value we
17789 2008-06-16 Robert Millan <rmh@aybabtu.com>
17791 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
17793 Patch from Sven Mueller <sven@debian.org>.
17795 2008-06-16 Robert Millan <rmh@aybabtu.com>
17797 * util/update-grub.in: Check for $EUID instead of $UID.
17798 Reported by Vincent Zweije.
17800 2008-06-16 Bean <bean123ch@gmail.com>
17802 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
17803 (grub_ext2_read_block): Likewise.
17804 (grub_ext2_read_inode): Likewise.
17805 (grub_ext2_mount): Likewise.
17806 (grub_ext2_close): Likewise.
17807 (grub_ext3_get_journal): Removed.
17809 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
17810 (grub_reiserfs_read_symlink): Likewise.
17811 (grub_reiserfs_mount): Likewise.
17812 (grub_reiserfs_open): Likewise.
17813 (grub_reiserfs_read): Likewise.
17814 (grub_reiserfs_close): Likewise.
17815 (grub_reiserfs_get_journal): Removed.
17817 * fs/fshelp.c (grub_fshelp_read): Removed.
17818 (grub_fshelp_map_block): Likewise.
17820 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
17821 (grub_fshelp_journal): Likewise.
17822 (grub_fshelp_read): Likewise.
17823 (grub_fshelp_map_block): Likewise.
17825 2008-06-16 Pavel Roskin <proski@gnu.org>
17827 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
17828 floating point anymore.
17829 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
17831 2008-06-15 Pavel Roskin <proski@gnu.org>
17833 * commands/ls.c (grub_ls_list_files): Use integer calculations
17834 for human readable format, avoid floating point use.
17835 * kern/misc.c (grub_ftoa): Remove.
17836 (grub_vsprintf): Remove floating point support.
17838 2008-06-15 Robert Millan <rmh@aybabtu.com>
17840 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
17842 Reported by Max Vozeler.
17844 2008-06-15 Robert Millan <rmh@aybabtu.com>
17846 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
17847 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
17849 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
17850 the beginning of the prefix.
17852 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
17853 It is assumed that if we have a memdisk, grub-mkimage has set
17854 grub_prefix to include the "(memdisk)" drive in it.
17856 2008-06-15 Robert Millan <rmh@aybabtu.com>
17858 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
17859 Initialize keyboard controller after registering the terminal, so that
17860 grub_printf() can be called from grub_keyboard_controller_init().
17862 2008-06-15 Robert Millan <rmh@aybabtu.com>
17864 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
17865 extent-btree which is written as big endian on disk.
17866 Reported by Alain Greppin <al@chilibi.org>.
17868 2008-06-14 Robert Millan <rmh@aybabtu.com>
17870 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
17871 * util/i386/pc/grub-install.in (modules): Likewise.
17873 2008-06-13 Pavel Roskin <proski@gnu.org>
17875 * commands/ls.c (grub_ls_list_files): Fix format warnings.
17877 2008-06-13 Bean <bean123ch@gmail.com>
17879 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
17881 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
17883 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
17884 to indicate sparse block.
17886 2008-06-12 Pavel Roskin <proski@gnu.org>
17888 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
17889 number, grub_fshelp_read() does it for us.
17891 * fs/fshelp.c (grub_fshelp_read): New function. Implement
17892 linear disk read with journal translation.
17893 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
17894 * include/grub/fshelp.h: Declare grub_fshelp_read().
17896 2008-06-09 Pavel Roskin <proski@gnu.org>
17898 * fs/minix.c (grub_minix_mount): Handle error reading
17901 2008-06-08 Robert Millan <rmh@aybabtu.com>
17903 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
17904 don't append the RAID prefix afterwards.
17905 Reported by Clint Adams.
17907 2008-06-08 Robert Millan <rmh@aybabtu.com>
17909 Based on description from Pavel:
17910 * kern/disk.c (grub_disk_check_range): Rename to ...
17911 (grub_disk_adjust_range): ... this. Add a comment explaining the
17912 tasks performed by this function.
17914 2008-06-08 Robert Millan <rmh@aybabtu.com>
17916 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
17917 `num_serial' (for consistency with other variables).
17918 (struct grub_ntfs_data): Add `uuid' member.
17919 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
17920 (grub_ntfs_uuid): New function.
17921 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
17923 2008-06-07 Pavel Roskin <proski@gnu.org>
17925 * util/biosdisk.c (open_device): Revert last change to the
17926 function, it broke installation. The sector needs to be
17927 different dependent on which device is opened.
17929 2008-06-06 Robert Millan <rmh@aybabtu.com>
17931 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
17932 rest of GRUB, and breakage doesn't happen if its value were modified.
17934 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17935 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
17936 a constant (same value).
17937 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
17938 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
17940 2008-06-06 Robert Millan <rmh@aybabtu.com>
17942 * util/biosdisk.c (open_device): Do not modify sector offset when
17943 accessing a partition. kern/disk.c already handles this for us.
17945 2008-06-06 Robert Millan <rmh@aybabtu.com>
17947 * util/grub-emu.c (grub_machine_init): Move code in this function from
17949 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
17950 segfault in case grub_printf() is called).
17952 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
17953 grub_probe. Update all users not to explicitly add it again.
17954 (grub_device): New variable; contains corresponding device for grubdir.
17955 (fs_module, partmap_module, devabstraction_module): Pass
17956 `--device ${grub_device}' to grub_probe to avoid traversing /dev
17959 2008-06-05 Robert Millan <rmh@aybabtu.com>
17961 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
17962 is found, print it (same layout as with labels).
17964 2008-06-04 Robert Millan <rmh@aybabtu.com>
17966 * util/biosdisk.c (get_drive): Rename to ...
17967 (find_grub_drive): ... this. Update all users.
17969 (get_os_disk): Rename to ...
17970 (convert_system_partition_to_system_disk): ... this. Update all users.
17972 (find_drive): Rename to ...
17973 (find_system_device): ... this. Update all users.
17975 2008-06-04 Robert Millan <rmh@aybabtu.com>
17977 * util/biosdisk.c (get_os_disk): Handle IDA devices.
17978 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17979 (make_device_map): Likewise.
17981 2008-06-01 Robert Millan <rmh@aybabtu.com>
17983 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
17984 before dereferencing it.
17986 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
17987 union with fat12/fat16-specific ones. Add some new fields, including
17988 `num_serial' for both versions.
17989 (struct grub_fat_data): Add `uuid' member.
17990 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
17991 names. Initialize `data->uuid' using `num_serial'.
17992 (grub_fat_uuid): New function.
17993 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
17995 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
17996 (grub_reiserfs_uuid): New function.
17997 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
18000 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
18001 (grub_xfs_uuid): New function.
18002 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
18004 2008-06-01 Robert Millan <rmh@aybabtu.com>
18006 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
18007 code that is backward compatible with pre-uuid search command.
18009 2008-05-31 Robert Millan <rmh@aybabtu.com>
18011 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
18012 floppies after everything else, to ensure floppy drive isn't accessed
18013 unnecessarily (patch from Bean).
18015 2008-05-31 Robert Millan <rmh@aybabtu.com>
18017 * commands/search.c (search_label, search_fs_uuid, search_file): Do
18018 not print device names when we were asked to set a variable.
18020 2008-05-31 Robert Millan <rmh@aybabtu.com>
18022 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
18023 using "cursor-on" and "cursor-off" commands (understood at least by
18024 the Open Firmware flavour on OLPC).
18026 2008-05-31 Michael Gorven <michael@gorven.za.net>
18028 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
18029 on and off sequences.
18031 2008-05-31 Robert Millan <rmh@aybabtu.com>
18033 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
18034 * util/update-grub.in: Likewise.
18036 2008-05-30 Pavel Roskin <proski@gnu.org>
18038 * util/biosdisk.c (linux_find_partition): Simplify logic and
18039 make the code more universal. Keep special processing for
18040 devfs, but use a simple rule for all other devices. If the
18041 device ends with a number, append 'p' and the partition number.
18042 Otherwise, append only the partition number.
18044 2008-05-30 Robert Millan <rmh@aybabtu.com>
18046 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
18047 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
18048 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
18049 the `root' parameter to Linux.
18051 2008-05-30 Robert Millan <rmh@aybabtu.com>
18053 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
18054 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
18055 --fs_uuid with --fs-uuid.
18056 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
18057 all filesystems support them).
18059 2008-05-30 Robert Millan <rmh@aybabtu.com>
18061 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
18062 grub_printf() flags, since we're printing in units of 2 bytes.
18064 2008-05-30 Robert Millan <rmh@aybabtu.com>
18066 * util/grub.d/00_header.in: Remove obsolete comment referencing
18067 convert_system_path_to_grub_path().
18068 * util/update-grub.in: Likewise.
18069 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
18070 (convert_system_path_to_grub_path): Add a warning message explaining
18071 that this function is deprecated. Rely on is_path_readable_by_grub()
18072 for the readability checks.
18073 (font_path): Use is_path_readable_by_grub() for the readability
18074 check rather than convert_system_path_to_grub_path().
18076 2008-05-30 Robert Millan <rmh@aybabtu.com>
18078 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
18079 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
18080 converting it first.
18081 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
18082 grub.cfg for access to font file, and afterwards call it again to set
18085 2008-05-30 Robert Millan <rmh@aybabtu.com>
18087 * commands/search.c (options): Add --fs_uuid option.
18088 (search_fs_uuid): New function.
18089 (grub_cmd_search): Fix --set argument passing.
18090 Use search_fs_uuid() when requested via --fs_uuid.
18091 (grub_search_init): Update help message.
18092 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
18093 and redeclare it as an array of 16-bit words.
18094 (grub_ext2_uuid): New function.
18095 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
18096 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
18097 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
18098 (GRUB_DEVICE_BOOT_UUID): New variables.
18099 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
18100 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
18102 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
18103 just assume `root' variable has the right value.
18104 * util/grub.d/10_linux.in: Likewise.
18105 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
18107 (main): Recognise `-t fs_uuid' argument.
18109 2008-05-30 Robert Millan <rmh@aybabtu.com>
18111 * util/biosdisk.c (map): Redefine structure to hold information
18112 about GRUB drive name.
18113 (get_drive): Reimplement without assuming (and verifying) BIOS-like
18115 (call_hook): Remove.
18116 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
18117 member. Assume drive has partitions.
18118 (grub_util_biosdisk_open): Access device names via `.device' struct
18120 (open_device): Likewise.
18121 (find_drive): Likewise.
18122 (read_device_map): Adjust map[] usage to match the new struct
18123 definition. Don't check for duplicates (still possible, but not cheap
18125 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
18126 (make_device_name): Remove assumption of BIOS-like drive names.
18128 2008-05-30 Pavel Roskin <proski@gnu.org>
18130 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
18131 compiling execute.c doesn't need grub_script.tab.h anymore.
18132 (normal/command.c_DEPENDENCIES): Likewise.
18133 (normal/function.c_DEPENDENCIES): Likewise.
18134 * conf/i386-ieee1275.rmk: Likewise.
18135 * conf/i386-linuxbios.rmk: Likewise.
18136 * conf/i386-pc.rmk: Likewise.
18137 * conf/powerpc-ieee1275.rmk: Likewise.
18138 * conf/sparc64-ieee1275.rmk: Likewise.
18140 2008-05-29 Pavel Roskin <proski@gnu.org>
18142 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
18143 when scanning metadata for volume group name.
18145 * include/grub/script.h: Don't include grub_script.tab.h. It's
18146 a generated file, which may only be included from the files with
18147 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
18148 use union YYSTYPE, as the later allows forward declaration.
18149 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
18151 2008-05-29 Robert Millan <rmh@aybabtu.com>
18153 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
18154 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
18155 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
18156 (grub_console_checkkey): Add grub_dprintf() call to report unknown
18159 2008-05-29 Robert Millan <rmh@aybabtu.com>
18161 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
18162 control key combinations.
18164 2008-05-29 Robert Millan <rmh@aybabtu.com>
18166 * util/powerpc/ieee1275/grub-install.in: Move from here ...
18167 * util/ieee1275/grub-install.in: ... to here.
18168 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
18169 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
18170 (grub_install_SOURCES): Likewise.
18172 2008-05-29 Robert Millan <rmh@aybabtu.com>
18174 * fs/affs.c: Update copyright year.
18175 * fs/ext2.c: Likewise.
18176 * fs/fshelp.c: Likewise.
18177 * fs/hfsplus.c: Likewise.
18178 * fs/ntfs.c: Likewise.
18179 * fs/xfs.c: Likewise.
18180 * include/grub/fshelp.h: Likewise.
18181 * util/grub-mkdevicemap.c: Likewise.
18183 2008-05-28 Robert Millan <rmh@aybabtu.com>
18185 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
18186 might need to be fatfs to support some firmware implementations
18189 2008-05-28 Robert Millan <rmh@aybabtu.com>
18191 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
18193 * util/grub-mkdevicemap.c (get_mmc_disk_name)
18194 (make_device_map): Likewise.
18196 2008-05-20 Bean <bean123ch@gmail.com>
18198 * fs/fshelp.c (grub_fshelp_map_block): New function.
18199 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
18200 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
18202 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
18203 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
18204 (grub_fshelp_journal): New structure.
18205 (grub_fshelp_map_block): New function prototype.
18206 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
18207 (grub_fshelp_map_block): Likewise.
18209 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
18210 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
18211 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
18212 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
18213 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
18214 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
18215 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
18216 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
18217 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
18218 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
18219 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
18220 (grub_ext2_sblock): New members for journal support.
18221 (grub_ext3_journal_header): New structure.
18222 (grub_ext3_journal_revoke_header): Likewise.
18223 (grub_ext3_journal_block_tag): Likewise.
18224 (grub_ext3_journal_sblock): Likewise.
18225 (grub_fshelp_node): New members logfile and journal.
18226 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
18227 grub_fshelp_map_block to get real block number.
18228 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
18230 (grub_ext2_read_inode): Likewise.
18231 (grub_ext3_get_journal): New function.
18232 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
18233 (grub_ext2_close): Release memory used by journal.
18235 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
18236 (REISERFS_MAGIC_DESC_BLOCK): New macro.
18237 (grub_reiserfs_transaction_header): Renamed to
18238 grub_reiserfs_description_block, replace field data with real_blocks.
18239 (grub_reiserfs_commit_block): New structure.
18240 (grub_reiserfs_data): New member journal.
18241 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
18243 (grub_reiserfs_read_symlink): Likewise.
18244 (grub_reiserfs_iterate_dir): Likewise.
18245 (grub_reiserfs_open): Likewise.
18246 (grub_reiserfs_read): Likewise.
18247 (grub_reiserfs_get_journal): New function.
18248 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
18249 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
18250 using grub_reiserfs_get_journal.
18251 (grub_reiserfs_close): Release memory used by journal.
18253 * fs/affs.c (grub_affs_read_block): Change block type to
18254 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
18256 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
18258 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
18260 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
18262 * fs/udf.c (grub_udf_read_block): Change block type to
18263 grub_disk_addr_t. Use type cast to avoid warning.
18265 * fs/xfs.c (grub_xfs_read_block): Likewise.
18267 2008-05-16 Christian Franke <franke@computer.org>
18269 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
18270 to ensure that break with ESC will always work.
18271 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
18272 Remove ESC from keyboard queue.
18274 2008-05-16 Christian Franke <franke@computer.org>
18276 * util/biosdisk.c: [__CYGWIN__] Add includes.
18277 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
18278 (get_os_disk): Move variable declarations to OS specific
18279 parts to avoid warning.
18280 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
18281 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
18282 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
18284 * util/getroot.c: [__CYGWIN__] Add includes.
18285 (strip_extra_slashes): Fix "/" case.
18286 [__CYGWIN__] (get_win32_path): New function.
18287 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
18288 [__CYGWIN__] (find_root_device): Disable.
18289 [__CYGWIN__] (get_bootsec_serial): New function.
18290 [__CYGWIN__] (find_cygwin_root_device): Likewise.
18291 [__linux__] (grub_guess_root_device): Add early returns to simplify
18293 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
18294 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
18295 check for Linux only.
18297 2008-05-15 Bean <bean123ch@gmail.com>
18299 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
18300 keyboard hang problem in apple's intel mac.
18302 2008-05-09 Robert Millan <rmh@aybabtu.com>
18304 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
18306 * util/grub-mkdevicemap.c (get_virtio_disk_name)
18307 (make_device_map): Likewise.
18308 Reported by Aurelien Jarno <aurel32@debian.org>
18310 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
18312 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
18313 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
18314 (make_device_map): Output entries for xvd type disks.
18316 2008-05-07 Robert Millan <rmh@aybabtu.com>
18318 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
18320 * util/grub-mkdevicemap.c (get_cciss_disk_name)
18321 (make_device_map): Likewise.
18322 Reported by Roland Dreier <rdreier@cisco.com>
18324 2008-05-07 Robert Millan <rmh@aybabtu.com>
18326 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
18327 grub_strstr() call. Correct a few mistakes in failure path handling.
18329 2008-05-06 Robert Millan <rmh@aybabtu.com>
18331 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
18332 Do not print a trailing slash (therefore, the root directory is an
18334 (convert_system_path_to_grub_path): Do not remove trailing slash
18335 from make_system_path_relative_to_its_root() output.
18337 * util/i386/pc/grub-install.in: Add trailing slash to output from
18338 make_system_path_relative_to_its_root().
18340 2008-05-06 Robert Millan <rmh@aybabtu.com>
18342 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
18343 ensures that output lines aren't intermangled with those sent to
18344 stderr (via grub_util_info()).
18345 * util/grub-probe.c (grub_refresh): Likewise.
18346 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
18348 2008-05-05 Christian Franke <franke@computer.org>
18350 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
18351 Add Cygwin device names.
18352 (get_ide_disk_name) [__CYGWIN__]: Likewise.
18353 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
18354 (check_device): Return error instead of success on empty name.
18355 (make_device_map): Move label inside linux specific code to
18356 prevent compiler warning.
18358 2008-04-30 Robert Millan <rmh@aybabtu.com>
18360 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
18361 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
18363 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
18365 2008-04-29 Robert Millan <rmh@aybabtu.com>
18367 * docs/grub.cfg: New file (example GRUB configuration).
18369 2008-04-26 Robert Millan <rmh@aybabtu.com>
18371 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
18372 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
18373 and `disk/ieee1275/nand.c'.
18375 2008-04-25 Bean <bean123ch@gmail.com>
18377 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
18380 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
18381 change the buffer size to 4096 for cdrom device.
18383 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
18385 (_linux_mod_SOURCES): New variable.
18386 (_linux_mod_CFLAGS): Likewise.
18387 (_linux_mod_LDFLAGS): Likewise.
18388 (linux_mod_SOURCES): Likewise.
18389 (linux_mod_CFLAGS): Likewise.
18390 (linux_mod_LDFLAGS): Likewise.
18391 (nand_mod_SOURCES): Likewise.
18392 (nand_mod_CFLAGS): Likewise.
18393 (nand_mod_LDFLAGS): Likewise.
18395 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
18396 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
18397 type property. (nand device in olpc don't have this property)
18399 * include/grub/disk.h (grub_disk_dev_id): New macro
18400 GRUB_DISK_DEVICE_NAND_ID.
18402 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
18403 function prototype.
18404 (grub_rescue_cmd_initrd): Likewise.
18406 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
18407 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
18408 ofw_cif_handler and ofw_idt, adjust padding number.
18410 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
18411 GRUB_MACHINE_IEEE1275 is defined.
18413 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
18414 Use NESTED_FUNC_ATTR attribute on the hook parameter.
18416 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
18417 on nested function heap_init.
18418 (grub_upper_mem): New variable for i386-ieee1275.
18419 (grub_get_extended_memory): New function for i386-ieee1275.
18420 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
18422 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
18423 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
18426 * loader/i386/ieee1275/linux.c: New file.
18428 * loader/i386/ieee1275/linux_normal.c: New file.
18430 * disk/ieee1275/nand.c: New file.
18432 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
18434 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
18436 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
18438 2008-04-18 Robert Millan <rmh@aybabtu.com>
18440 Restructures early code path on ieee1275 to unify grub_main() as
18441 the first C function that is executed in every platform.
18443 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
18444 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
18446 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
18447 * kern/ieee1275/cmain.c (cmain): Rename to ...
18448 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
18449 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
18452 2008-04-18 Robert Millan <rmh@aybabtu.com>
18454 * util/update-grub.in: Fix syntax error when setting
18455 `GRUB_PRELOAD_MODULES'.
18456 Reported by Stephane Chazelas <stephane@artesyncp.com>
18458 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
18460 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
18461 section into account, newer toolchains generate unique build ids
18462 * configure.ac: remove the test for --build-id=none acceptance,
18463 we want build ids to be preserved
18464 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
18465 far from other sections don't cause the raw binary images grow
18468 2008-04-15 Robert Millan <rmh@aybabtu.com>
18470 * disk/lvm.c: Update copyright year.
18471 * kern/misc.c: Likewise.
18473 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
18475 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
18476 there is no memory left for physical volume name.
18478 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
18480 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
18481 volume name mapping to support bigger than 9 character names properly.
18483 2008-04-13 Robert Millan <rmh@aybabtu.com>
18485 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
18486 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
18488 2008-04-13 Christian Franke <franke@computer.org>
18490 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
18491 to create a floppy emulation boot CD when non emulation mode
18493 Enable Joliet CD filesystem extension.
18495 2008-04-13 Robert Millan <rmh@aybabtu.com>
18497 * kern/misc.c (grub_strncat): Fix off-by-one error.
18498 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
18500 * kern/env.c (grub_env_context_close): Clear current context, not
18502 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
18504 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
18506 2008-04-13 Robert Millan <rmh@aybabtu.com>
18508 Improve robustness when handling LVM.
18510 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
18511 (and leave `*p' unmodified).
18512 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
18514 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
18515 iterating through it.
18516 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
18518 (grub_lvm_scan_device): Check the return value (and fail gracefully
18519 when due) on each grub_lvm_getvalue() or grub_strstr() call.
18520 Don't assume `vg->pvs != NULL' when iterating through it.
18522 2008-04-13 Robert Millan <rmh@aybabtu.com>
18524 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
18525 * genmk.rb (partmap): New variable.
18526 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
18527 (#{partmap}): New target rule.
18528 * genpartmaplist.sh: New file.
18529 * Makefile.in (pkglib_DATA): Add partmap.lst.
18530 (partmap.lst): New target rule.
18531 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
18532 modules (including all partition maps), instead of preloading them.
18534 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
18536 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
18537 `linux-boot-prober' (if installed) to detect other operating
18538 systems which are installed on the computer and add them to
18540 * conf/common.rmk: Build and install 30_os-prober.
18542 2008-04-12 Robert Millan <rmh@aybabtu.com>
18544 * kern/powerpc/ieee1275/init.c: Move from here ...
18545 * kern/ieee1275/init.c: ... to here. Update all users.
18547 * kern/powerpc/ieee1275/cmain.c: Move from here ...
18548 * kern/ieee1275/cmain.c: ... to here. Update all users.
18550 * kern/powerpc/ieee1275/openfw.c: Move from here ...
18551 * kern/ieee1275/openfw.c: ... to here. Update all users.
18553 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
18554 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
18556 2008-04-10 Pavel Roskin <proski@gnu.org>
18558 * configure.ac: Always use "_cv_" in cache variables for
18559 compatibility with Autoconf 2.62.
18561 2008-04-07 Robert Millan <rmh@aybabtu.com>
18563 Revert grub/machine/init.h addition by Pavel (since it breaks on
18564 i386-ieee1275 and others):
18565 * util/i386/pc/misc.c: Remove grub/machine/init.h.
18566 * util/powerpc/ieee1275/misc.c: Likewise.
18568 2008-04-07 Robert Millan <rmh@aybabtu.com>
18570 * util/grub-probe.c (probe): Improve error message.
18572 2008-04-07 Robert Millan <rmh@aybabtu.com>
18574 * util/biosdisk.c (read_device_map): Skip devices that don't exist
18575 (this prevents the presence of a bogus entry from ruining the whole
18578 2008-04-06 Pavel Roskin <proski@gnu.org>
18580 * util/biosdisk.c: Include grub/util/biosdisk.h.
18581 * util/grub-fstest.c (execute_command): Make static.
18582 * util/grub-mkdevicemap.c (check_device): Likewise.
18583 * util/i386/pc/misc.c: Include grub/machine/init.h.
18584 * util/powerpc/ieee1275/misc.c: Likewise.
18585 * util/lvm.c: Include grub/util/lvm.h.
18586 * util/misc.c: Include grub/kernel.h, grub/misc.h and
18588 * util/raid.c: Include grub/util/raid.h.
18589 (grub_util_getdiskname): Make static.
18591 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
18592 grub_hostfs_fini(), as they are called from grub_init_all() and
18593 grub_fini_all() respectively. This fixes an infinite loop in
18594 grub-fstest due to double registration of hostfs.
18595 Reported by Christian Franke <Christian.Franke@t-online.de>
18597 2008-04-05 Pavel Roskin <proski@gnu.org>
18599 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
18600 all 8 functions. Otherwise, probe function 0 only.
18602 2008-04-04 Pavel Roskin <proski@gnu.org>
18604 * commands/lspci.c (grub_lspci_iter): Print the bus number
18607 * commands/lspci.c (grub_pci_classes): Fix typos.
18608 (grub_lspci_iter): Don't print func twice. Print vendor ID
18609 before device ID, as it's normally done.
18611 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
18612 Fix signedness warnings.
18613 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
18615 * util/ieee1275/get_disk_name.c: Include config.h so that
18616 _GNU_SOURCE is defined and getline() is declared. Mark an
18617 unused argument as such. Fix a signedness warning.
18619 2008-04-02 Pavel Roskin <proski@gnu.org>
18621 * genkernsyms.sh.in: Use more robust assignments for CC and
18622 srcdir. Quote srcdir.
18623 * gensymlist.sh.in: Likewise. Assert at the compile time that
18624 the symbol table is not empty.
18626 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
18627 * fs/cpio.c (grub_cpio_read): Likewise.
18629 2008-04-01 Pavel Roskin <proski@gnu.org>
18631 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
18632 * disk/host.c (grub_host_open): Likewise.
18633 * disk/loopback.c (grub_loopback_open): Likewise.
18634 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
18635 disk->id as in disk/host.c, not a multi-character constant.
18637 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
18638 later is obsolete, potentially dangerous and sets a bad example.
18639 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
18640 * util/misc.c (grub_util_get_image_size): Likewise.
18642 * disk/loopback.c (options): Improve help for "--partitions".
18644 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
18645 options to align them with the short options, e.g. "echo -e".
18647 2008-03-31 Bean <bean123ch@gmail.com>
18649 * video/reader/png.c (grub_png_data): New member is_16bit and
18651 (grub_png_decode_image_header): Detect 16 bit png image.
18652 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
18653 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
18654 (grub_video_reader_png): Release memory occupied by image_data.
18656 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
18658 (grub_nfs_mount): Skip the test for sector per cluster.
18660 * include/grub/ntfs.h (MAX_SPC): Removed.
18662 2008-03-31 Bean <bean123ch@gmail.com>
18664 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
18665 (grub_probe_SOURCES): Add fs/afs.c.
18666 (grub_fstest_SOURCES): Likewise.
18667 (afs_mod_SOURCES): New variable.
18668 (afs_mod_CFLAGS): Likewise.
18669 (afs_mod_LDFLAGS): Likewise.
18671 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
18672 (grub_emu_SOURCES): Likewise.
18674 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18676 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18678 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18680 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18682 * fs/afs.c: New file.
18684 2008-03-30 Pavel Roskin <proski@gnu.org>
18686 * disk/host.c: Include grub/misc.h to fix a warning.
18687 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
18688 warnings about implicit declarations.
18690 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
18692 * include/grub/i386/loader.h: Change declaration of
18693 grub_linux_boot() to match what grub_loader_set() expects.
18694 * util/getroot.c (grub_guess_root_device): Return const char* to
18696 * util/grub-probe.c (probe): Fix a warning about uninitialized
18697 abstraction_name variable.
18698 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
18699 second argument as unused to fix a warning.
18701 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
18702 missing grub_error() call.
18704 * util/update-grub_lib.in: Define datarootdir, since Autoconf
18705 2.60 and newer uses it to define datadir.
18707 * commands/sleep.c: Fix warning about implicit declaration.
18708 * disk/memdisk.c: Likewise.
18709 * loader/aout.c: Likewise.
18710 * loader/i386/bsd_normal.c: Likewise.
18711 * util/grub-probe.c: Likewise.
18713 * commands/i386/cpuid.c (has_longmode): Make static.
18714 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
18715 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
18717 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
18718 GDT. This is more robust, as %ds can change.
18719 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
18720 calling real_to_prot().
18721 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
18723 2008-03-28 Pavel Roskin <proski@gnu.org>
18725 * kern/i386/pc/startup.S: Assert that uncompressed functions
18726 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
18727 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
18728 code, as they push parts of the code (error handlers) beyond
18729 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
18730 code as correctness and size.
18732 2008-03-28 Pavel Roskin <proski@gnu.org>
18734 * kern/i386/pc/startup.S
18735 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
18736 data block address to the real mode, keep offset minimal. This
18737 works around a bug in AWARD BIOS on old Athlon systems, which
18738 makes CD detection hang.
18740 2008-03-26 Pavel Roskin <proski@gnu.org>
18742 * normal/color.c (grub_parse_color_name_pair): Make `name' a
18744 * include/grub/normal.h: Add grub_parse_color_name_pair()
18747 2008-03-24 Bean <bean123ch@gmail.com>
18749 * disk/i386/pc/biosdisk.c (cd_start): Removed.
18750 (cd_count): Removed.
18751 (cd_drive): New variable.
18752 (grub_biosdisk_get_drive): Don't check for (cdN) device.
18753 (grub_biosdisk_call_hook): Likewise.
18754 (grub_biosdisk_iterate): Change cdrom detection method.
18755 (grub_biosdisk_open): Replace cd_start with cd_drive.
18756 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
18757 detect cdrom device.
18759 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
18761 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
18762 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
18763 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
18764 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
18765 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
18766 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
18767 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
18768 (grub_biosdisk_cdrp): New structure.
18769 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
18771 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
18773 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
18776 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
18779 2008-03-20 Robert Millan <rmh@aybabtu.com>
18781 Remove 2 TiB limit in ata.mod.
18782 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
18783 (grub_ata_dumpinfo): Print sector count with 0x%llx.
18784 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
18785 grub_uint64_t instead of grub_uint32_t.
18787 2008-03-05 Bean <bean123ch@gmail.com>
18789 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
18790 (grub_multiboot): Set boot device.
18792 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
18794 2008-03-02 Bean <bean123ch@gmail.com>
18796 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
18799 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
18801 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
18804 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
18807 * docs/fdl.texi: New file.
18809 * docs/mdate-sh: New file. Copied from gnulib.
18810 * docs/texinfo.tex: Likewise.
18812 * config.guess: Updated from gnulib.
18813 * install-sh: Likewise.
18815 2008-02-28 Robert Millan <rmh@aybabtu.com>
18817 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
18818 (aout_mod_SOURCES): New variable.
18819 (aout_mod_CFLAGS): Likewise.
18820 (aout_mod_LDFLAGS): Likewise.
18822 * conf/i386-ieee1275.rmk: Likewise.
18824 2008-02-28 Robert Millan <rmh@aybabtu.com>
18826 * util/update-grub.in: Reorganise terminal validity check. Accept
18827 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
18828 Based on suggestion by Franklin PIAT.
18830 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
18832 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
18834 * util/getroot.c (grub_util_check_block_device): New function that
18835 returns the given argument if it is a block device and returns NULL else.
18836 * util/grub-probe.c (argument_is_device): New variable.
18837 (probe): Promote device_name from a variable to an argument. Receive
18838 device_name from grub_util_check_block_device() if path is NULL and from
18839 grub_guess_root_device() else. Do not free() device_name anymore.
18840 (options): Introduce new parameter '-d, --device'.
18841 (main): Add description of the new parameter to the help screen.
18842 Rename path variable to argument. Set argument_is_device if the '-d'
18843 option is given. Pass argument to probe() depending on
18844 argument_is_device.
18846 2008-02-24 Bean <bean123ch@gmail.com>
18848 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
18849 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
18850 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
18851 (GRUB_ISO9660_VOLDESC_PART): Likewise.
18852 (GRUB_ISO9660_VOLDESC_END): Likewise.
18853 (grub_iso9660_primary_voldesc): New member escape.
18854 (grub_iso9660_data): New member joliet.
18855 (grub_iso9660_convert_string): New function.
18856 (grub_iso9660_mount): Detect joliet extension.
18857 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
18858 (grub_iso9660_iso9660_label): Likewise.
18860 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
18861 (grub_setup_SOURCES): Add fs/udf.c.
18862 (grub_fstest_SOURCES): Likewise.
18863 (udf_mod_SOURCES): New variable.
18864 (udf_mod_CFLAGS): Likewise.
18865 (udf_mod_LDFLAGS): Likewise.
18867 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
18868 (grub_emu_SOURCES): Likewise.
18870 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18872 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18874 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18876 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18878 * fs/udf.c: New file.
18880 2008-02-24 Robert Millan <rmh@aybabtu.com>
18882 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
18883 (normal/lexer.c_DEPENDENCIES): New variables.
18884 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18885 (normal/lexer.c_DEPENDENCIES): Likewise.
18886 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
18887 (normal/lexer.c_DEPENDENCIES): Likewise.
18888 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
18889 (normal/lexer.c_DEPENDENCIES): Likewise.
18890 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18891 (normal/lexer.c_DEPENDENCIES): Likewise.
18892 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18893 (normal/lexer.c_DEPENDENCIES): Likewise.
18895 2008-02-23 Robert Millan <rmh@aybabtu.com>
18897 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
18898 since they were intended to be in hex. This didn't break previously
18899 because of a bug in gpt_partition_map_iterate() (see below).
18901 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
18902 when checking the validity of GPT header.
18903 Remove `partno', since it always provides the same information as `i'.
18905 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
18907 * include/grub/efi/time.h: Fix a wrong comment.
18909 2008-02-19 Pavel Roskin <proski@gnu.org>
18911 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
18914 2008-02-19 Bean <bean123ch@gmail.com>
18916 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
18917 (aout_mod_SOURCES): New variable.
18918 (aout_mod_CFLAGS): Likewise.
18919 (aout_mod_LDFLAGS): Likewise.
18920 (_bsd_mod_SOURCES): New variable.
18921 (_bsd_mod_CFLAGS): Likewise.
18922 (_bsd_mod_LDFLAGS): Likewise.
18923 (bsd_mod_SOURCES): New variable.
18924 (bsd_mod_CFLAGS): Likewise.
18925 (bsd_mod_LDFLAGS): Likewise.
18927 * include/grub/aout.h: New file.
18929 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
18931 * include/grub/i386/bsd.h: New file.
18933 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
18936 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
18937 function is called, so that it's possible to change it inside the hook.
18938 (grub_elf64_load): Likewise.
18939 (grub_elf_file): Don't close the file if elf header is not found.
18940 (grub_elf_close): Close the file if grub_elf_file fails (The new
18941 grub_elf_file won't close it).
18942 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
18943 (grub_elf64_size): Likewise.
18945 * kern/i386/loader.S (grub_unix_real_boot): New function.
18947 * loader/aout.c: New file.
18949 * loader/i386/bsd.c: New file.
18951 * loader/i386/bsd_normal.c: New file.
18953 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
18955 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
18956 can test other formats.
18958 2008-02-19 Robert Millan <rmh@aybabtu.com>
18960 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
18961 (grub_gpt_partition_type_empty): Redefine with macro from
18962 `<grub/gpt_partition.h>'.
18963 (gpt_partition_map_iterate): Adjust partition type comparison.
18965 Export `entry' as partmap-specific `part.data' struct.
18966 (grub_gpt_header, grub_gpt_partentry): Move from here ...
18968 * include/grub/gpt_partition.h (grub_gpt_header)
18969 (grub_gpt_partentry): ... to here (new file).
18971 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
18973 (grub_gpt_partition_type_bios_boot): New const variable, defined
18974 with macro from `<grub/gpt_partition.h>'.
18976 (setup): Replace `first_start' with `embed_region', which keeps
18977 track of the embed region (and is partmap-agnostic).
18979 Replace find_first_partition_start() with find_usable_region(),
18980 which finds a usable region for embedding using partmap-specific
18981 knowledge (supports PC/MSDOS and GPT).
18983 Fix all assumptions that the embed region start at sector 1, using
18984 `embed_region.start' from now on. Similarly, use `embed_region.end'
18985 rather than `first_start' to calculate available size.
18987 In grub_util_info() message, replace "into after the MBR" with an
18988 indication of the specific sector our embed region starts at.
18990 2008-02-19 Robert Millan <rmh@aybabtu.com>
18992 * DISTLIST: Replace `commands/ieee1275/halt.c' and
18993 `commands/ieee1275/reboot.c' with `commands/halt.c' and
18994 `commands/reboot.c'.
18995 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18996 (halt_mod_SOURCES): Likewise.
18997 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18998 (halt_mod_SOURCES): Likewise.
19000 2008-02-17 Christian Franke <franke@computer.org>
19002 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
19004 2008-02-17 Robert Millan <rmh@aybabtu.com>
19006 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
19007 set `first_start' to 0 for non-PC/MSDOS partition maps.
19009 2008-02-16 Robert Millan <rmh@aybabtu.com>
19011 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
19012 do not assume partition map is PC/MSDOS before performing checks that
19013 are specific to that layout.
19015 2008-02-13 Robert Millan <rmh@aybabtu.com>
19017 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
19018 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
19019 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
19021 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
19023 * configure.ac: Only a cosmetic change on the handling of
19024 -fno-stack-protector.
19026 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
19028 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
19029 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
19031 (grub_install_SOURCES): Add halt.mod and reboot.mod.
19032 (halt_mod_SOURCES): New variable.
19033 (halt_mod_CFLAGS): Likewise.
19034 (halt_mod_LDFLAGS): Likewise.
19035 (reboot_mod_SOURCES): Likewise.
19036 (reboot_mod_CFLAGS): Likewise.
19037 (reboot_mod_LDFLAGS): Likewise.
19039 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
19040 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
19042 (halt_mod_SOURCES): Likewise.
19043 (reboot_mod_SOURCES): Likewise.
19045 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
19046 commands/i386/pc/reboot.c by commands/reboot.c.
19047 (reboot_mod_SOURCES): Likewise.
19049 * commands/i386/pc/reboot.c: merge this file ...
19051 * commands/ieee1275/reboot.c: ... and this file ...
19053 * commands/reboot.c: ... to this file.
19054 Add some precompiler directive to include the correct header for
19057 * commands/ieee1275/halt.c: move this file ...
19059 * commands/halt.c: ... to here.
19060 Add some precompiler directive to include the correct header for
19063 * include/grub/efi/efi.h (grub_reboot): New function declaration.
19064 (grub_halt): Likewise.
19066 * kern/efi/efi.c (grub_reboot): New function.
19067 (grub_halt): Likewise.
19069 2008-02-12 Robert Millan <rmh@aybabtu.com>
19071 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
19072 /dev (like it is done for /dev/mapper). This doesn't provide support
19073 for EVMS, but at least it is now easy to identify the problem when it
19076 2008-02-11 Robert Millan <rmh@aybabtu.com>
19078 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
19079 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
19080 comparing it with -1, not 0.
19082 2008-02-10 Robert Millan <rmh@aybabtu.com>
19084 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
19086 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19087 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19089 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
19090 `disk/lvm.c' to the end of the list.
19091 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19092 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
19094 2008-02-10 Robert Millan <rmh@aybabtu.com>
19096 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
19097 grub_print_error() instead. This will let user know why we're entering
19099 Based on suggestions from Sam Morris.
19101 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
19103 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
19104 on remaining N args, instead of "--" arg N times.
19106 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
19108 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
19109 (fill_with_default_glyph): Changed to use unknown_glyph for fill
19110 pattern for unknown glyphs.
19112 2008-02-09 Robert Millan <rmh@aybabtu.com>
19114 * configure.ac: Probe for `help2man'.
19115 * Makefile.in (builddir): New variable.
19116 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
19117 or otherwise add a few flags/options to it.
19118 (install-local): For every executable utility or script that is
19119 installed, invoke $(HELP2MAN) to install a manpage based on --help
19122 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
19123 that it doesn't prevent --help from working in build tree.
19125 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
19126 with `bug-grub@gnu.org'.
19127 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
19128 * util/update-grub.in (usage): New function.
19129 Implement proper argument check, with support for --help and --version
19130 (as well as existing -y).
19132 2008-02-09 Christian Franke <franke@computer.org>
19134 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
19135 avoid overwriting previous output.
19136 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
19138 2008-02-09 Robert Millan <rmh@aybabtu.com>
19140 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
19143 2008-02-09 Robert Millan <rmh@aybabtu.com>
19145 * commands/sleep.c: New file.
19146 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
19147 (sleep_mod_SOURCES): New variable.
19148 (sleep_mod_CFLAGS): Likewise.
19149 (sleep_mod_LDFLAGS): Likewise.
19151 2008-02-09 Robert Millan <rmh@aybabtu.com>
19153 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
19154 situations in which we can deduce the RAID size and the superblock
19157 2008-02-09 Robert Millan <rmh@aybabtu.com>
19159 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
19160 and return a grub_diskmemberlist_t composed of LVM physical volumes.
19161 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
19163 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
19164 and return a grub_diskmemberlist_t composed of physical array members.
19165 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
19167 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
19169 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
19170 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
19171 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
19173 * util/grub-probe.c (probe): Move partmap probing code from here ...
19174 (probe_partmap): ... to here.
19175 (probe): Use probe_partmap() once for the disk we're probing, and
19176 additionally, when such disk contains a memberlist() struct member,
19177 once for each disk that is contained in the structure returned by
19180 2008-02-09 Robert Millan <rmh@aybabtu.com>
19182 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
19183 environment variable to 'all' in order to obtain debug output from
19185 * util/i386/pc/grub-setup.c (main): Likewise.
19187 2008-02-08 Robert Millan <rmh@aybabtu.com>
19189 * disk/raid.c (grub_raid_scan_device): Check for
19190 `array->device[sb.this_disk.number]' rather than for
19191 `array->device[sb.this_disk.number]->name', since the latter is not
19192 guaranteed to be accessible.
19194 2008-02-08 Robert Millan <rmh@aybabtu.com>
19196 * disk/raid.c: Update copyright.
19197 * fs/cpio.c: Likewise.
19198 * include/grub/raid.h: Likewise.
19199 * loader/i386/pc/multiboot.c: Likewise.
19200 * util/hostfs.c: Likewise.
19202 2008-02-08 Robert Millan <rmh@aybabtu.com>
19204 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
19205 to a grub_disk_t array.
19206 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
19208 (grub_raid_scan_device): Replace `device[x].name' accesses with
19209 `device[x]->name'. Simplify initialization of `array->device[x]'.
19211 2008-02-08 Robert Millan <rmh@aybabtu.com>
19213 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
19214 grub_dprintf() calls.
19215 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
19218 2008-02-07 Christian Franke <franke@computer.org>
19220 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
19221 instead of fseek and ftell to support large files.
19222 (grub_hostfs_read): Likewise.
19224 2008-02-07 Robert Millan <rmh@aybabtu.com>
19226 Patch from Jeroen Dekkers.
19227 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
19228 failure, since successfully reading all array members might not be
19231 2008-02-06 Robert Millan <rmh@aybabtu.com>
19233 * util/grub-probe.c (probe): Simplify partmap probing (with the
19234 assumption that the first word up to the underscore equals to
19237 2008-02-06 Christian Franke <franke@computer.org>
19239 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
19240 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
19241 last block of a cpio or tar stream.
19242 Check for "TRAILER!!!" instead of any empty data
19243 block to detect last block of a cpio stream.
19244 (grub_cpio_dir): Fix constness of variable np.
19245 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
19246 cpio or tar trailer is detected. This fixes a crash
19247 on open of a non existing file.
19249 2008-02-05 Bean <bean123ch@gmail.com>
19251 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
19253 (grub_multiboot_load_elf64): Likewise.
19254 (grub_multiboot): Initialize mbi structure.
19256 * util/grub-fstest.c: Don't include unused header file script.h.
19258 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
19260 (grub_fstest_SOURCES): Likewise.
19262 2008-02-05 Robert Millan <rmh@aybabtu.com>
19264 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
19265 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
19266 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
19267 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
19269 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
19270 (translation_table): Replace hardcoded values with macros
19271 provided by `<grub/term.h>'.
19273 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
19274 (keyboard_map): Correct/add a few values, with macros provided
19275 by `<grub/term.h>'.
19276 (keyboard_map_shift): Zero values that don't differ from their
19277 `keyboard_map' equivalents.
19278 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
19279 Discard the second scan code that is always sent by Caps lock.
19280 Only use `keyboard_map_shift' when it provides a non-zero value,
19281 otherwise fallback to `keyboard_map'.
19283 2008-02-04 Bean <bean123ch@gmail.com>
19285 * Makefile.in (enable_grub_fstest): New variable.
19287 * conf/common.rmk (grub_fstest_init.lst): New rule.
19288 (grub_fstest_init.h): Likewise.
19289 (grub_fstest_init.c): Likewise.
19290 (util/grub-fstest.c_DEPENDENCIES): New variable.
19291 (grub_fstest_SOURCES): Likewise.
19293 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
19295 * util/grub-fstest.c: New file.
19297 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
19299 Make grub-setup handle a separate root device.
19301 * util/i386/pc/grub-setup.c (setup): Always open the root device,
19302 so that the root device can be compared with the destination
19304 When embedding the core image, if the root and destination devices
19305 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
19307 When not embedding, set ROOT_DRIVE to 0xFF.
19309 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
19311 Add support for having a grub directory in a different drive. This
19312 is still only the data handling part.
19314 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
19315 (codestart): Save %dh in GRUB_ROOT_DRIVE.
19316 (grub_root_drive): New variable.
19318 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
19319 instead of GRUB_BOOT_DRIVE to construct a device name. Set
19320 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
19323 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
19325 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
19327 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
19329 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
19330 is bogus, because PXE booting does not specify any drive
19333 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
19334 am not sure if this is really correct.
19336 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
19337 is always identical to the boot drive when booting from a CD.
19339 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
19341 (root_drive): New variable.
19342 (real_start): Unconditionally set %dh to ROOT_DRIVE.
19343 (setup_sectors): Push %dx right after popping it, because %dh will
19345 (copy_buffer): Restore %dx.
19347 2008-02-03 Robert Millan <rmh@aybabtu.com>
19349 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
19350 use `cdboot.img' for cdrom images.
19352 2008-02-03 Robert Millan <rmh@aybabtu.com>
19354 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
19355 only setup gfxterm when `font' command has succeeded.
19357 2008-02-03 Robert Millan <rmh@aybabtu.com>
19359 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
19360 (grub_rescue_cmd_multiboot_loader)
19361 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
19363 2008-02-03 Pavel Roskin <proski@gnu.org>
19365 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
19366 %edx and %esi from stack only after grub_gate_a20() is called.
19367 grub_gate_a20() clobbers %edx.
19369 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
19371 * configure.ac (AC_INIT): Bumped to 1.96.
19373 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
19374 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
19375 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
19376 video/readers/png.c.
19378 2008-02-03 Bean <bean123ch@gmail.com>
19380 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
19381 (cdboot_img_SOURCES): New variable.
19382 (cdboot_img_ASFLAGS): New variable.
19383 (cdboot_img_LDFLAGS): New variable.
19385 * boot/i386/pc/cdboot.S: New file.
19387 * disk/i386/pc/biosdisk.c (cd_start): New variable.
19388 (cd_count): Likewise.
19389 (grub_biosdisk_get_drive): Add support for cd device.
19390 (grub_biosdisk_call_hook): Likewise.
19391 (grub_biosdisk_iterate): Likewise.
19392 (grub_biosdisk_open): Likewise.
19393 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
19394 (grub_biosdisk_rw): Support reading from cd device.
19395 (GRUB_MOD_INIT): Iterate cd devices.
19397 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
19398 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
19399 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
19401 * kern/i386/pc/init.c (make_install_device): Check for cd device.
19403 2008-02-02 Robert Millan <rmh@aybabtu.com>
19405 * commands/read.c: New file.
19406 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
19407 (read_mod_SOURCES): New variable.
19408 (read_mod_CFLAGS): Likewise.
19409 (read_mod_LDFLAGS): Likewise.
19411 2008-02-02 Robert Millan <rmh@aybabtu.com>
19413 * normal/main.c (grub_normal_execute): Check for `menu->size' when
19414 determining whether menu has to be displayed.
19416 2008-02-02 Marco Gerards <marco@gnu.org>
19418 * bus/pci.c: New file.
19420 * include/grub/pci.h: Likewise.
19422 * include/grub/i386/pc/pci.h: Likewise.
19424 * commands/lspci.c: Likewise.
19426 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
19428 (pci_mod_SOURCES): New variable.
19429 (pci_mod_CFLAGS): Likewise.
19430 (pci_mod_LDFLAGS): Likewise.
19431 (lspci_mod_SOURCES): Likewise.
19432 (lspci_mod_CFLAGS): Likewise.
19433 (lspci_mod_LDFLAGS): Likewise.
19435 2008-02-02 Bean <bean123ch@gmail.com>
19437 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
19438 (grub_ufs_get_file_block): Fix indirect block calculation problem.
19440 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
19441 (grub_xfs_btree_node): New structure.
19442 (grub_xfs_btree_root): New structure.
19443 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
19444 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
19445 (GRUB_XFS_EXTENT_BLOCK): Likewise.
19446 (GRUB_XFS_EXTENT_SIZE): Likewise.
19447 (grub_xfs_read_block): Support btree format type.
19448 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
19449 Use directory block as basic unit.
19451 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
19453 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
19454 __attribute__ ((__regparm__ (1))).
19456 2008-02-01 Robert Millan <rmh@aybabtu.com>
19458 Correct a mistake in previous commit.
19460 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
19462 (normal/command.c_DEPENDENCIES): New variable.
19464 2008-02-01 Robert Millan <rmh@aybabtu.com>
19466 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
19468 (normal/command.c_DEPENDENCIES): New variable.
19469 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
19470 * conf/i386-ieee1275.rmk: Likewise.
19471 * conf/i386-linuxbios.rmk: Likewise.
19472 * conf/i386-pc.rmk: Likewise.
19473 * conf/sparc64-ieee1275.rmk: Likewise.
19474 * conf/powerpc-ieee1275.rmk: Likewise.
19475 (grub_emu_SOURCES): Add `fs/fshelp.c'.
19477 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
19479 2008-02-01 Robert Millan <rmh@aybabtu.com>
19481 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
19482 call at beginning of function.
19484 2008-01-31 Pavel Roskin <proski@gnu.org>
19486 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
19487 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
19488 (grub_mkrescue_SOURCES): Likewise.
19489 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
19491 2008-01-30 Robert Millan <rmh@aybabtu.com>
19493 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
19494 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
19495 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
19496 (grub_probe_SOURCES): ... to here.
19498 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
19499 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
19500 * conf/i386-ieee1275.rmk: Likewise.
19501 * conf/i386-linuxbios.rmk: Likewise.
19502 * conf/powerpc-ieee1275.rmk: Likewise.
19504 2008-01-30 Tristan Gingold <gingold@free.fr>
19506 * kern/rescue.c: Silently accept empty lines.
19508 2008-01-29 Bean <bean123ch@gmail.com>
19510 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
19511 (real_code_2): Code cleanup and change comment style.
19512 (move_memory): Avoid using 32-bit address mode.
19514 2008-01-29 Bean <bean123ch@gmail.com>
19516 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
19517 (png_mod_SOURCES): New variable.
19518 (png_mod_CFLAGS): Likewise.
19519 (png_mod_LDFLAGS): Likewise.
19521 * video/readers/png.c: New file.
19523 2008-01-28 Robert Millan <rmh@aybabtu.com>
19525 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
19526 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
19527 `ifndef GRUB_MOD_GAP' hack.
19528 * util/elf/grub-mkimage.c (add_segments): Likewise.
19530 2008-01-27 Robert Millan <rmh@aybabtu.com>
19532 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
19533 `GRUB_MOD_GAP' for platforms in which it's not defined.
19534 * util/elf/grub-mkimage.c (add_segments): Likewise.
19536 2008-01-27 Robert Millan <rmh@aybabtu.com>
19538 Get grub-emu to build again (including parallel builds).
19540 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
19542 (util/grub-emu.c_DEPENDENCIES): ... this, ...
19543 (normal/execute.c_DEPENDENCIES): ... this, ...
19544 (grub-emu_DEPENDENCIES): ... and this.
19546 * conf/i386-efi.rmk: Likewise.
19547 * conf/i386-linuxbios.rmk: Likewise.
19548 * conf/i386-ieee1275.rmk: Likewise.
19549 * conf/powerpc-ieee1275.rmk: Likewise.
19550 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
19552 2008-01-27 Robert Millan <rmh@aybabtu.com>
19554 * NEWS: Add a few items.
19556 2008-01-27 Robert Millan <rmh@aybabtu.com>
19558 Fix parallel builds with grub-emu. Based on earlier commit for
19559 grub-probe and grub-setup.
19561 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19562 (util/grub-emu.c_DEPENDENCIES): ... this.
19563 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19564 (util/grub-emu.c_DEPENDENCIES): ... this.
19565 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19566 (util/grub-emu.c_DEPENDENCIES): ... this.
19567 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19568 (util/grub-emu.c_DEPENDENCIES): ... this.
19569 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19570 (util/grub-emu.c_DEPENDENCIES): ... this.
19572 2008-01-27 Pavel Roskin <proski@gnu.org>
19574 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
19575 to create a gap between _end and the modules added to the image
19576 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
19577 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
19578 * util/elf/grub-mkimage.c (add_segments): Likewise.
19580 2008-01-26 Pavel Roskin <proski@gnu.org>
19582 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
19583 just return an error.
19585 2008-01-26 Bean <bean123ch@gmail.com>
19587 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
19588 (grub_reiserfs_get_item): Save offset of the next item.
19589 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
19591 2008-01-25 Robert Millan <rmh@aybabtu.com>
19593 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
19594 make all filesystem sources appear together (possibly fixing omissions
19596 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19597 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19598 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19599 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19601 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
19603 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
19604 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
19605 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
19606 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
19608 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
19609 (probe): Add a sanity check to make sure of our ability to read
19610 requested files when probing for filesystem type.
19612 * genmk.rb: Update copyright year (2007).
19614 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
19615 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
19616 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
19617 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
19618 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
19619 : Remove function prototypes.
19621 2008-01-25 Robert Millan <rmh@aybabtu.com>
19623 Revert my previous commits (based on wrong assumption of how grub_errno
19626 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
19627 * kern/file.c (grub_file_open): Likewise.
19629 2008-01-24 Pavel Roskin <proski@gnu.org>
19631 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
19632 that hang if GRUB tries to setup colors.
19633 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
19634 colors for firmwares that don't support it.
19635 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
19636 Recognize Open Hack'Ware, set flags to work around its
19639 2008-01-24 Robert Millan <rmh@aybabtu.com>
19641 * kern/file.c (grub_file_open): Do not account previous failures of
19642 unrelated functions when grub_errno is checked for.
19643 Reported by Oleg Strikov.
19645 2008-01-24 Bean <bean123ch@gmail.com>
19647 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
19648 (grub_ufs_sblock): New member volume name.
19649 (grub_ufs_find_file): Fix string copy bug.
19650 (grub_ufs_label): Implement this function properly.
19652 * fs/hfs.c (grub_hfs_cnid_type): New enum.
19653 (grub_hfs_iterate_records): Use the correct file number for extents
19654 and catalog file. Fix problem in next index calculation.
19655 (grub_hfs_find_node): Replace recursive function call with loop.
19656 (grub_hfs_iterate_dir): Replace recursive function call with loop.
19658 2008-01-23 Robert Millan <rmh@aybabtu.com>
19660 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
19661 `<grub/symbol.h>' and `<grub/multiboot.h>'.
19662 (grub_multiboot2_real_boot): New function prototype.
19664 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
19665 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
19667 * kern/i386/ieee1275/init.c (grub_os_area_addr)
19668 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
19670 2008-01-23 Robert Millan <rmh@aybabtu.com>
19672 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
19673 #ifdef'ed out grub_printf().
19675 2008-01-23 Robert Millan <rmh@aybabtu.com>
19677 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
19678 grub_dprintf calls, since they make "debug=all" mode unusable.
19679 (grub_console_checkkey): Likewise.
19681 2008-01-23 Robert Millan <rmh@aybabtu.com>
19683 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
19684 `term/i386/pc/at_keyboard.c'.
19685 (pkglib_MODULES): Add `serial.mod'.
19686 (serial_mod_SOURCES): New variable.
19687 (serial_mod_CFLAGS): Likewise.
19688 (serial_mod_LDFLAGS): Likewise.
19690 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
19691 `<grub/powerpc/ieee1275/console.h>'.
19692 (grub_keyboard_controller_init): New function prototype.
19693 (grub_console_checkkey): Likewise.
19694 (grub_console_getkey): Likewise.
19696 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
19699 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
19700 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
19702 2008-01-23 Robert Millan <rmh@aybabtu.com>
19704 * kern/i386/pc/init.c (make_install_device): When memdisk image is
19705 present, "(memdisk)/boot/grub" becomes the default prefix.
19707 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
19708 a memdisk tarball with all the modules. Add --overlay=DIR option that
19709 allows users to overlay additional files into the image.
19711 2008-01-23 Robert Millan <rmh@aybabtu.com>
19713 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
19714 and `machine/memory.h'.
19715 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
19716 (_multiboot_mod_SOURCES): New variable.
19717 (_multiboot_mod_CFLAGS): Likewise.
19718 (_multiboot_mod_LDFLAGS): Likewise.
19719 (multiboot_mod_SOURCES): Likewise.
19720 (multiboot_mod_CFLAGS): Likewise.
19721 (multiboot_mod_LDFLAGS): Likewise.
19723 * include/grub/i386/ieee1275/loader.h: New file.
19725 * include/grub/i386/ieee1275/machine.h: Likewise.
19727 * include/grub/i386/ieee1275/memory.h: Likewise.
19729 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
19730 variable declaration.
19731 (grub_os_area_size): Likewise.
19733 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
19734 (grub_lower_mem, grub_upper_mem): New variables.
19735 (grub_stop_floppy): New function (just to make
19736 grub_multiboot2_real_boot() happy).
19738 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
19739 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
19740 (grub_stop): New function.
19741 Include `"../realmode.S"' and `"../loader.S"'.
19743 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
19744 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
19746 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
19747 rely on grub_multiboot2_real_boot() for final boot.
19749 2008-01-22 Robert Millan <rmh@aybabtu.com>
19751 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
19752 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
19753 device that doesn't look like an SD card.
19754 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
19755 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
19756 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
19757 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
19760 2008-01-22 Robert Millan <rmh@aybabtu.com>
19762 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
19763 avoid claiming over our own code.
19765 2008-01-22 Bean <bean123ch@gmail.com>
19767 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
19768 (jpeg_mod_SOURCES): New variable.
19769 (jpeg_mod_CFLAGS): Likewise.
19770 (jpeg_mod_LDFLAGS): Likewise.
19772 * video/readers/jpeg.c : New file.
19774 2008-01-22 Bean <bean123ch@gmail.com>
19776 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
19777 there are no more items.
19779 2008-01-21 Robert Millan <rmh@aybabtu.com>
19781 * kern/mm.c (grub_mm_init_region): Improve debug message.
19783 2008-01-21 Robert Millan <rmh@aybabtu.com>
19785 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
19786 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
19788 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
19790 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
19791 Indicates start of upper memory.
19792 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
19793 (generate_image): Abort when image size is big enough to corrupt
19796 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
19797 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
19798 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19799 instead of hardcoding 0xA0000.
19800 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
19801 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19802 instead of hardcoding 0xA0000.
19804 2008-01-21 Robert Millan <rmh@aybabtu.com>
19806 * disk/memdisk.c (memdisk_size): New variable.
19807 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
19809 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
19810 image to dynamic memory.
19811 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
19812 `memdisk_size'. Free memdisk block.
19814 2008-01-21 Robert Millan <rmh@aybabtu.com>
19816 Fix detection of very small filesystems (like tar).
19818 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
19819 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
19820 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
19821 a problem with this disk).
19823 2008-01-21 Robert Millan <rmh@aybabtu.com>
19825 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
19826 on grub_biosdisk_rw_standard() error.
19828 2008-01-21 Robert Millan <rmh@aybabtu.com>
19830 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
19832 * kern/elf.c: Likewise.
19833 * kern/ieee1275/ieee1275.c: Likewise.
19834 * kern/powerpc/ieee1275/openfw.c: Likewise.
19835 * term/ieee1275/ofconsole.c: Likewise.
19837 2008-01-21 Robert Millan <rmh@aybabtu.com>
19839 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
19841 * include/grub/kernel.h (grub_arch_memdisk_addr)
19842 (grub_arch_memdisk_size): Moved from here ...
19844 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
19845 (grub_arch_memdisk_size): ... to here.
19847 2008-01-21 Robert Millan <rmh@aybabtu.com>
19849 Mostly based on bugfix from Bean.
19851 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
19852 attribute with hook() parameter.
19853 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
19855 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
19856 attribute with hook() parameter.
19857 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
19860 2008-01-21 Robert Millan <rmh@aybabtu.com>
19862 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
19863 (pkglib_MODULES): Add `memdisk.mod'.
19864 (memdisk_mod_SOURCES): New variable.
19865 (memdisk_mod_CFLAGS): Likewise.
19866 (memdisk_mod_LDFLAGS): Likewise.
19868 * disk/memdisk.c: New file.
19870 * include/grub/disk.h (grub_disk_dev_id): Add
19871 `GRUB_DISK_DEVICE_MEMDISK_ID'.
19873 * include/grub/i386/pc/kernel.h
19874 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
19875 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
19876 (grub_kernel_image_size): New variable declaration.
19877 (grub_total_module_size): Likewise.
19878 (grub_memdisk_image_size): Likewise.
19880 * include/grub/i386/pc/memory.h
19881 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
19883 * include/grub/kernel.h: Include `<grub/symbol.h>'.
19884 (grub_arch_memdisk_addr): New variable declaration.
19885 (grub_arch_memdisk_size): Likewise.
19887 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
19888 (grub_arch_memdisk_size): Likewise.
19890 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
19891 (codestart): Replace hardcoded `0x100000' with
19892 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
19894 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
19895 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
19896 not NULL, append the contents of the file it refers to, at the end of
19897 the compressed kernel image. Initialize `grub_memdisk_image_size'
19898 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
19899 (options): Add "memdisk"|'m' option.
19900 (main): Parse --memdisk|-m option, and pass user-provided path as
19901 parameter to generate_image().
19903 2008-01-20 Robert Millan <rmh@aybabtu.com>
19905 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
19906 grub_dprintf() calls from here ...
19907 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
19909 2008-01-20 Robert Millan <rmh@aybabtu.com>
19911 Fix detection of "real mode" when /options/real-mode? doesn't exist.
19913 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
19915 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
19916 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
19917 `GRUB_IEEE1275_FLAG_REAL_MODE'.
19918 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
19920 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
19921 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
19923 2008-01-19 Robert Millan <rmh@aybabtu.com>
19925 Get rid of confusing function (superseded by
19926 `grub_ieee1275_get_integer_property')
19927 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
19929 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
19931 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
19932 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
19933 in native endianness from grub_ieee1275_get_integer_property().
19935 2008-01-19 Robert Millan <rmh@aybabtu.com>
19937 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
19938 command after "shut-down", since implementations differ on which
19939 the command for halt is.
19941 2008-01-19 Robert Millan <rmh@aybabtu.com>
19943 * include/grub/i386/linuxbios/console.h: Add header protection.
19944 (grub_keyboard_controller_init): New function prototype.
19945 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
19946 (KEYBOARD_COMMAND_READ): Likewise.
19947 (KEYBOARD_COMMAND_WRITE): Likewise.
19948 (KEYBOARD_SCANCODE_SET1): Likewise.
19949 (grub_keyboard_controller_write): New function.
19950 (grub_keyboard_controller_read): Likewise.
19951 (grub_keyboard_controller_init): Likewise.
19953 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
19954 (grub_console_init): On coreboot/LinuxBIOS, call
19955 grub_keyboard_controller_init().
19957 2008-01-19 Robert Millan <rmh@aybabtu.com>
19959 PowerPC changes provided by Pavel Roskin.
19961 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
19962 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
19963 don't rely on cmain() doing it.
19964 * kern/i386/ieee1275/startup.S (_start): Store %eax in
19965 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
19967 2008-01-16 Robert Millan <rmh@aybabtu.com>
19969 * include/grub/i386/linuxbios/memory.h
19970 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
19971 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
19972 receive `table_header' as argument. Instead, probe for it in the
19973 known memory ranges where it can be present.
19974 (grub_available_iterate): Do not pass a fixed `table_header' address
19975 to grub_linuxbios_table_iterate().
19977 2008-01-15 Robert Millan <rmh@aybabtu.com>
19979 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
19980 * conf/i386-ieee1275.rmk: New file.
19981 * include/grub/i386/ieee1275/console.h: Likewise.
19982 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
19983 * include/grub/i386/ieee1275/kernel.h: Likewise.
19984 * include/grub/i386/ieee1275/time.h: Likewise.
19985 * kern/i386/ieee1275/init.c: Likewise.
19986 * kern/i386/ieee1275/startup.S: Likewise.
19988 2008-01-15 Robert Millan <rmh@aybabtu.com>
19990 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
19991 when pointers are 32-bit (but still do set it to one when they are
19994 2008-01-15 Robert Millan <rmh@aybabtu.com>
19996 * include/grub/ieee1275/ieee1275.h
19997 (grub_ieee1275_get_integer_property): New function prototype.
19999 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
20000 (grub_ieee1275_get_integer_property): New function. Wraps around
20001 grub_ieee1275_get_property() to handle endianness.
20003 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
20004 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
20006 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
20007 (grub_map): Likewise.
20008 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
20010 2008-01-15 Bean <bean123ch@gmail.com>
20012 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
20013 (grub_script_execute_cmdline): Reset grub_errno.
20015 * normal/main.c (read_config_file): Reset grub_errno.
20017 * normal/parse.y (script_init): New.
20018 (script): Move function and menuentry here.
20020 (command): Add delimiter at the end of command.
20021 (commands): Adjust to match the new command.
20022 (commandblock): Remove grub_script_lexer_record_start.
20023 (menuentry): Add grub_script_lexer_record_start, use the new commands.
20024 (if): Use the new commands.
20026 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
20028 2008-01-15 Robert Millan <rmh@aybabtu.com>
20030 * normal/menu.c (run_menu): Move timeout message from here ...
20031 (print_timeout): ... to here.
20032 (run_menu): Use print_timeout() once during initial draw to print
20033 the whole message, and again in every clock tick to update only
20034 the number of seconds.
20036 2008-01-15 Robert Millan <rmh@aybabtu.com>
20038 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
20039 actual size of `available' from grub_ieee1275_get_property(), and
20040 restrict parsing to that bound.
20042 2008-01-15 Christian Franke <franke@computer.org>
20044 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
20045 (argp_program_version): Remove variable.
20046 (argp_program_bug_address): Likewise.
20047 (options): Convert from struct argp_option to struct option.
20048 (struct arguments): Remove.
20049 (parse_opt): Remove.
20050 (usage): New function.
20051 (main): Replace struct args members by simple variables.
20052 Replace argp_parse() by getopt_long().
20053 Add switch to evaluate options.
20054 Add missing "(...)" around root_dev in prefix string.
20056 2008-01-14 Robert Millan <rmh@aybabtu.com>
20058 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
20059 for grub_ieee1275_exit(), in order to improve portability.
20061 2008-01-14 Robert Millan <rmh@aybabtu.com>
20063 * util/grub.d/10_linux.in (prefix): Define.
20064 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
20066 2008-01-13 Pavel Roskin <proski@gnu.org>
20068 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
20069 grub_errno if no errors have been detected.
20071 2008-01-12 Robert Millan <rmh@aybabtu.com>
20073 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
20074 (grub_util_get_dev_abstraction): New function prototype.
20076 * util/getroot.c: Include `<grub/util/getroot.h>'
20077 (grub_util_get_grub_dev): Move detection of abstraction type to ...
20078 (grub_util_get_dev_abstraction): ... here (new function).
20080 * util/grub-probe.c: Convert PRINT_* to an enum. Add
20081 `PRINT_ABSTRACTION'.
20082 (probe): Probe for abstraction type when requested.
20083 (main): Understand `--target=abstraction'.
20085 * util/i386/efi/grub-install.in: Add abstraction module to core
20086 image when it is found to be necessary.
20087 * util/i386/pc/grub-install.in: Likewise.
20088 * util/powerpc/ieee1275/grub-install.in: Likewise.
20090 * util/update-grub_lib.in (font_path): Return system path without
20091 converting to GRUB path.
20092 * util/update-grub.in: Convert system path returned by font_path()
20093 to a GRUB path. Use `grub-probe -t abstraction' to determine what
20094 abstraction module is needed for loading fonts (if any). Export
20095 that as `GRUB_PRELOAD_MODULES'.
20096 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
20099 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
20101 Remove some unused code from reiserfs.
20103 * fs/reiserfs.c (struct grub_reiserfs_key)
20104 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
20105 (struct grub_reiserfs_node_body): Removed.
20106 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
20108 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
20110 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
20112 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
20114 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
20116 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
20118 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
20119 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
20120 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
20122 2008-01-10 Robert Millan <rmh@aybabtu.com>
20124 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
20125 Determines if a file is garbage left by packaging systems, etc.
20126 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
20127 for processing /etc/grub.d scripts.
20128 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
20129 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
20130 as a condition for processing Linux images.
20132 2008-01-10 Pavel Roskin <proski@gnu.org>
20134 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
20135 to compile reiserfs.c on PowerPC.
20137 2008-01-10 Robert Millan <rmh@aybabtu.com>
20139 * kern/device.c (grub_device_iterate): Do not abort device iteration
20140 when one of the devices cannot be opened.
20141 * kern/disk.c (grub_disk_open): Do not account previous failures of
20142 unrelated functions when grub_errno is checked for.
20144 2008-01-08 Robert Millan <rmh@aybabtu.com>
20146 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
20147 `! grub_linux_is_bzimage', change order of address comparison to make
20148 it more intuitive, and improve "too big zImage" error message.
20150 2008-01-08 Robert Millan <rmh@aybabtu.com>
20152 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
20153 `$(update-grub_DATA)'.
20154 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
20157 2008-01-07 Robert Millan <rmh@aybabtu.com>
20159 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
20160 which instruction is modified by grub-setup during installation
20161 (since it wasn't obvious by only looking at this file).
20163 2008-01-07 Robert Millan <rmh@aybabtu.com>
20165 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
20166 listing actual TODO items.
20168 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20170 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
20172 (grub_reiserfs_get_key_offset): Likewise.
20173 (grub_reiserfs_set_key_offset): Likewise.
20174 (grub_reiserfs_set_key_type): Likewise.
20175 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
20177 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
20178 better to remove the bitfield version completely.
20180 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20182 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
20183 allocated from the heap, due to the fshelp implementation.
20184 (grub_reiserfs_dir): Free NODE, due to the same reason.
20186 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20188 Mostly from Vincent Pelletier:
20190 * fs/reiserfs.c: New file.
20192 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
20193 (reiserfs_mod_SOURCES): New variable.
20194 (reiserfs_mod_CFLAGS): Likewise.
20195 (reiserfs_mod_LDFLAGS): Likewise.
20197 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
20198 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
20199 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
20202 2008-01-06 Robert Millan <rmh@aybabtu.com>
20204 * normal/color.c: Remove `<grub/env.h>'.
20206 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
20208 * include/grub/normal.h: Include <grub/env.h>.
20210 2008-01-05 Robert Millan <rmh@aybabtu.com>
20212 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
20213 usage example with `(hd0,1)'.
20214 Reported by Samuel Thibault.
20216 2008-01-05 Robert Millan <rmh@aybabtu.com>
20218 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
20219 (grub_linux_boot_zimage): Rename to ...
20220 (grub_linux_boot): ... this.
20221 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
20222 (grub_linux_boot_zimage): Conditionalize zImage copy.
20224 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
20225 (grub_linux_boot_bzimage): Remove prototype.
20226 (grub_linux_boot_zimage): Rename to ...
20227 (grub_linux_boot): ... this.
20229 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
20230 (grub_linux_boot): Remove function.
20232 2008-01-05 Robert Millan <rmh@aybabtu.com>
20234 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
20235 (grub_env_write_color_highlight): Likewise.
20236 (grub_wait_after_message): Likewise.
20238 * normal/color.c: New file.
20240 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
20241 (normal_mod_DEPENDENCIES): Likewise.
20243 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
20244 (normal_mod_DEPENDENCIES): Likewise.
20246 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
20247 (normal_mod_DEPENDENCIES): Likewise.
20249 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
20250 (normal_mod_DEPENDENCIES): Likewise.
20252 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
20253 for waiting after a message is printed.
20254 * normal/main.c (read_config_file): Likewise.
20255 (grub_normal_init): Register grub_env_write_color_normal() and
20256 grub_env_write_color_highlight() hooks. Mark `color_normal' and
20257 `color_highlight' variables as global.
20259 * normal/menu.c (grub_wait_after_message): New function.
20260 (grub_color_menu_normal): New variable. Replaces ...
20261 (GRUB_COLOR_MENU_NORMAL): ... this macro.
20262 (grub_color_menu_highlight): New variable. Replaces ...
20263 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
20264 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
20265 `GRUB_TERM_COLOR_STANDARD'.
20266 (print_message): Use `grub_setcolorstate' to reload colors. Rename
20267 `normal_code' and `highlight_code' to `old_color_normal' and
20268 `old_color_highlight', respectively.
20269 (grub_menu_init_page): Update colors when drawing the menu, based on
20270 `menu_color_normal' and `menu_color_highlight' variables.
20271 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
20272 a message is printed.
20274 2008-01-05 Robert Millan <rmh@aybabtu.com>
20276 * kern/env.c (grub_env_context_open): Propagate hooks for global
20277 variables to new context.
20279 * kern/main.c (grub_set_root_dev): Export `root' variable.
20281 2008-01-05 Robert Millan <rmh@aybabtu.com>
20283 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
20284 discs unconditionally, since udev and others have options to provide
20287 2008-01-05 Robert Millan <rmh@aybabtu.com>
20289 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
20291 2008-01-04 Christian Franke <franke@computer.org>
20293 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
20296 2008-01-03 Pavel Roskin <proski@gnu.org>
20298 * kern/i386/linuxbios/init.c: Put "void" to all function
20299 declarations with no arguments.
20300 * kern/powerpc/ieee1275/init.c: Likewise.
20301 * term/i386/pc/at_keyboard.c: Likewise.
20302 * term/i386/pc/vga_text.c: Likewise.
20303 * util/grub-mkdevicemap.c: Likewise.
20305 2008-01-02 Robert Millan <rmh@aybabtu.com>
20307 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
20308 message when loaded image is out of bounds.
20309 (grub_multiboot_load_elf64): Likewise.
20311 2008-01-02 Pavel Roskin <proski@gnu.org>
20313 * util/grub.d/10_linux.in: Try version without ".old" when
20314 looking for initrd. It's better to use initrd from the newer
20315 kernel of the same version than no initrd at all.
20317 2008-01-01 Robert Millan <rmh@aybabtu.com>
20319 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
20321 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
20323 * include/grub/video.h: Added grub_video_unmap_color and
20324 grub_video_get_active_render_target.
20325 (grub_video_adapter): Added unmap_color and get_active_render_target.
20327 * video/video.c: Added grub_video_unmap_color and
20328 grub_video_get_active_render_target.
20329 (grub_video_get_info): Changed method to accept NULL pointer as an
20330 argument to allow detection of active video adapter.
20332 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
20333 grub_video_vbe_unmap_color_int.
20334 Added grub_video_vbe_unmap_color and
20335 grub_video_vbe_get_active_render_target.
20336 (grub_video_vbe_adapter): Added unmap_color and
20337 get_active_render_target.
20339 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
20340 with grub_video_vbe_unmap_color_int.
20342 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
20343 (DEFAULT_NORMAL_COLOR): Likewise.
20344 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
20345 (DEFAULT_FG_COLOR): Removed.
20346 (DEFAULT_BG_COLOR): Likewise.
20347 (DEFAULT_CURSOR_COLOR): Changed value.
20348 (grub_virtual_screen): Added standard_color_setting,
20349 normal_color_setting, highlight_color_setting and term_color.
20350 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
20351 (bitmap_width): Added.
20352 (bitmap_height): Likewise.
20353 (bitmap): Likewise.
20354 (set_term_color): Likewise.
20355 (grub_virtual_screen_setup): Changed to use new terminal coloring
20357 (grub_gfxterm_init): Added init for bitmap.
20358 (grub_gfxterm_fini): Added destroy for bitmap.
20359 (redraw_screen_rect): Updated to use background bitmap and new
20361 (scroll_up): Added optimization for case when there is no bitmap.
20362 (grub_gfxterm_cls): Fixed to use correct background color.
20363 (grub_virtual_screen_setcolorstate): Changed to use new terminal
20365 (grub_virtual_screen_setcolor): Likewise.
20366 (grub_virtual_screen_getcolor): Added.
20367 (grub_gfxterm_background_image_cmd): Likewise.
20368 (grub_video_term): Added setcolor and getcolor.
20369 (MOD_INIT): Added registration of background_image command.
20370 (MOD_TERM): Added unregistration for background_image command.
20372 2007-12-30 Pavel Roskin <proski@gnu.org>
20374 * loader/multiboot_loader.c: Fix multiboot command
20375 unregistration. Fix all typos in the word "multiboot".
20377 2007-12-29 Pavel Roskin <proski@gnu.org>
20379 * util/grub.d/10_linux.in: Refactor search for initrd. Add
20380 support for initrd names used in Fedora.
20382 2007-12-26 Bean <bean123ch@gmail.com>
20384 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
20385 (cpio_mod_SOURCES): New variable.
20386 (cpio_mod_CFLAGS): Likewise.
20387 (cpio_mod_LDFLAGS): Likewise.
20389 * fs/cpio.c: New file.
20391 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
20393 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20395 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
20397 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20399 2007-12-25 Robert Millan <rmh@aybabtu.com>
20401 * include/grub/term.h (struct grub_term): Add `getcolor' function.
20402 (grub_getcolor): New function.
20404 * kern/term.c (grub_getcolor): New function.
20405 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
20406 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
20407 (print_entry): Set normal and highlight colors to
20408 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
20409 respectively, before printing and restore them to old
20411 (grub_menu_init_page): Likewise. Fill an additional colored space
20412 that would otherwise be left blank.
20414 * term/efi/console.c (grub_console_getcolor): New function.
20415 (struct grub_console_term.getcolor): New variable.
20416 * term/i386/pc/console.c (grub_console_getcolor): New function.
20417 (struct grub_console_term.getcolor): New variable.
20418 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
20419 (struct grub_console_term.getcolor): New variable.
20421 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
20422 (struct grub_console_term.setcolor): Remove variable.
20423 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
20424 (struct grub_console_term.setcolor): Remove variable.
20425 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
20426 (struct grub_console_term.setcolor): Remove variable.
20427 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
20428 (struct grub_console_term.setcolor): Remove variable.
20430 2007-12-25 Robert Millan <rmh@aybabtu.com>
20432 * configure.ac: Search for possible unifont.hex locations, and
20433 define UNIFONT_HEX if found.
20435 * Makefile.in (UNIFONT_HEX): Define variable.
20436 (DATA): Rename to ...
20437 (PKGLIB): ... this. Update all users.
20438 (PKGDATA): New variable.
20439 (pkgdata_IMAGES): Rename to ...
20440 (pkglib_IMAGES): ... this. Update all users.
20441 (pkgdata_MODULES): Rename to ...
20442 (pkglib_MODULES): ... this. Update all users.
20443 (pkgdata_PROGRAMS): Rename to ...
20444 (pkglib_PROGRAMS): ... this. Update all users.
20445 (pkgdata_DATA): Rename to ...
20446 (pkglib_DATA): ... this. Update all users.
20447 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
20448 (unicode.pff, ascii.pff): New rules.
20449 (all-local): Add `$(PKGDATA)' dependency.
20450 (install-local): Process `$(PKGDATA)'.
20452 * util/update-grub_lib.in (font_path): Search for *.pff files in
20453 a few more locations, including `${pkgdata}'.
20455 2007-12-23 Robert Millan <rmh@aybabtu.com>
20457 Patch from Bean <bean123ch@gmail.com>:
20458 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
20461 2007-12-21 Bean <bean123ch@gmail.com>
20463 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
20464 (ntfscomp_mod_SOURCES): New variable.
20465 (ntfscomp_mod_CFLAGS): Likewise.
20466 (ntfscomp_mod_LDFLAGS): Likewise.
20468 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
20469 (grub_probe_SOURCES): Likewise.
20470 (grub_emu_SOURCES): Likewise.
20472 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
20473 (grub_emu_SOURCES): Likewise.
20475 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
20476 (grub_emu_SOURCES): Likewise.
20478 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
20479 (grub_emu_SOURCES): Likewise.
20481 * fs/ntfs.c (grub_ntfscomp_func): New variable.
20482 (read_run_list): Renamed to grub_ntfs_read_run_list.
20483 (decomp_nextvcn): Moved to ntfscomp.c.
20484 (decomp_getch): Likewise.
20485 (decomp_get16): Likewise.
20486 (decomp_block): Likewise.
20487 (read_block): Likewise.
20488 (read_data): Partially moved to ntfscomp.c.
20489 (fixup): Change unsigned to grub_uint16_t.
20490 (read_mft): Change unsigned long to grub_uint32_t.
20491 (read_attr): Likewise.
20492 (read_data): Likewise.
20493 (read_run_data): Likewise.
20494 (read_run_list): Likewise.
20495 (read_mft): Likewise.
20497 * fs/ntfscomp.c: New file.
20499 * include/grub/ntfs.h: New file.
20501 2007-12-16 Robert Millan <rmh@aybabtu.com>
20503 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
20504 IDE disk check, since Linux is known to support 20 IDE disks.
20505 Reported by Colin Watson.
20507 2007-12-15 Bean <bean123ch@gmail.com>
20509 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
20510 (lnxboot_img_SOURCES): New variable.
20511 (lnxboot_img_ASFLAGS): Likewise.
20512 (lnxboot_img_LDFLAGS): Likewise.
20514 * boot/i386/pc/lnxboot.S: New file.
20516 2007-11-24 Pavel Roskin <proski@gnu.org>
20518 * configure.ac: Test if '--build-id=none' is supported by the
20519 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
20520 objcopy to generate incorrect binary files (binutils
20521 2.17.50.0.18-1 as shipped by Fedora 8).
20522 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
20523 linking, so that build ID doesn't break the test.
20525 2007-11-24 Pavel Roskin <proski@gnu.org>
20527 * include/grub/i386/time.h: use "void" in the argument list
20528 of grub_cpu_idle().
20529 * include/grub/powerpc/time.h: Likewise.
20530 * include/grub/sparc64/time.h: Likewise.
20532 2007-11-18 Christian Franke <franke@computer.org>
20534 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
20535 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
20536 This fixes the problem that function keys did not work in grub-emu.
20538 2007-11-18 Christian Franke <franke@computer.org>
20540 * disk/host.c (grub_host_open): Remove attribute unused from
20541 name parameter. Add check for "host". This fixes the problem
20542 that grub-emu does not find partitions.
20544 2007-11-18 Christian Franke <franke@computer.org>
20546 * util/hostfs.c (is_dir): New function.
20547 (grub_hostfs_dir): Handle missing dirent.d_type case.
20548 (grub_hostfs_read): Add missing fseek().
20549 (grub_hostfs_label): Clear label pointer. This fixes a crash
20550 of grub-emu on "ls (host)".
20552 2007-11-18 Christian Franke <franke@computer.org>
20554 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
20555 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
20556 to 64 bit boundary by default.
20558 2007-11-18 Bean <bean123ch@gmail.com>
20560 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
20561 (hexdump_mod_SOURCES): New variable.
20562 (hexdump_mod_CFLAGS): Likewise.
20563 (hexdump_mod_LDFLAGS): Likewise.
20565 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20567 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20569 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20571 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20573 * include/grub/hexdump.h: New file.
20575 * commands/hexdump.c: New file.
20577 2007-11-10 Robert Millan <rmh@aybabtu.com>
20579 * commands/i386/pc/play.c (beep_off): Switch order of arguments
20580 in grub_outb() calls.
20581 (beep_on): Likewise.
20583 2007-11-10 Christian Franke <franke@computer.org>
20585 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
20586 (grub_menu_run): Likewise.
20588 2007-11-10 Robert Millan <rmh@aybabtu.com>
20590 * include/grub/i386/efi/machine.h: New file.
20591 * include/grub/i386/linuxbios/machine.h: Likewise.
20592 * include/grub/i386/pc/machine.h: Likewise.
20593 * include/grub/powerpc/ieee1275/machine.h: Likewise.
20594 * include/grub/sparc64/ieee1275/machine.h: Likewise.
20596 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
20597 (serial_hw_io_addr): New variable.
20598 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
20599 instead of `(unsigned short *) 0x400'.
20601 2007-11-10 Bean <bean123ch@gmail.com>
20603 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
20605 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
20607 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
20608 (vga_mod_SOURCES): Added.
20609 (vga_mod_CFLAGS): Likewise.
20610 (vga_mod_LDFLAGS): Likewise.
20612 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
20614 (set_map_mask): Likewise.
20615 (set_read_map): Likewise.
20616 (set_read_address): Likewise.
20617 (vga_font): Removed variable.
20618 (get_vga_glyph): Removed function.
20619 (invalidate_char): Likewise.
20620 (write_char): Changed to use grub_font_get_glyph() for font
20622 (grub_vga_putchar): Likewise.
20623 (grub_vga_getcharwidth): Likewise.
20625 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
20627 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
20629 (pxeboot_img_LDFLAGS): Likewise.
20630 (diskboot_img_LDFLAGS): Likewise.
20631 (kernel_img_LDFLAGS): Likewise.
20633 2007-11-06 Robert Millan <rmh@aybabtu.com>
20635 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
20636 in grub_outb() calls.
20637 (serial_hw_init): Likewise.
20639 2007-11-05 Robert Millan <rmh@aybabtu.com>
20641 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
20642 spaces. Skip non-regular files.
20644 2007-11-05 Robert Millan <rmh@aybabtu.com>
20646 * kern/disk.c (grub_disk_firmware_fini)
20647 (grub_disk_firmware_is_tainted): New variables.
20649 * include/grub/disk.h (grub_disk_firmware_fini)
20650 (grub_disk_firmware_is_tainted): Likewise.
20652 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
20653 (grub_disk_biosdisk_fini): ... to here.
20654 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
20655 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
20656 is set. Register grub_disk_biosdisk_fini() in
20657 `grub_disk_firmware_fini'.
20659 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
20660 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
20661 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
20662 to finish existing firmware disk interface.
20664 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
20665 (ata_mod_SOURCES): New variable.
20666 (ata_mod_CFLAGS): Likewise.
20667 (ata_mod_LDFLAGS): Likewise.
20669 2007-11-05 Robert Millan <rmh@aybabtu.com>
20671 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
20672 (grub_ata_wait): Reimplement using grub_millisleep().
20674 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
20675 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
20677 2007-11-03 Marco Gerards <marco@gnu.org>
20679 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
20680 (CRTC_ADDR_PORT): New macro.
20681 (CRTC_DATA_PORT): Likewise.
20682 (CRTC_CURSOR): Likewise.
20683 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20684 (CRTC_CURSOR_ADDR_LOW): Likewise.
20685 (update_cursor): New function.
20686 (grub_console_real_putchar): Call `update_cursor'.
20687 (grub_console_gotoxy): Likewise.
20688 (grub_console_cls): Set the default color when clearing the
20690 (grub_console_setcursor): Implemented.
20692 2007-11-03 Marco Gerards <marco@gnu.org>
20694 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
20696 (grub_ata_pio_write): Likewise.
20698 (grub_atapi_identify): Wait after issuing an ATA command.
20699 (grub_atapi_packet): Likewise.
20700 (grub_ata_identify): Likewise.
20701 (grub_ata_readwrite): Likewise.
20703 2007-11-03 Marco Gerards <marco@gnu.org>
20705 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
20706 (grub_ata_pio_write): Likewise.
20707 (grub_ata_readwrite): Use `grub_error', instead of
20708 returning `grub_errno'.
20710 2007-11-03 Marco Gerards <marco@gnu.org>
20712 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
20713 grub_ata_pio_write once for every single sector, instead of for
20716 2007-10-31 Robert Millan <rmh@aybabtu.com>
20718 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
20720 * conf/i386-linuxbios.rmk: New file.
20722 * kern/i386/pc/hardware.c: Likewise.
20723 * term/i386/pc/at_keyboard.c: Likewise.
20724 * term/i386/pc/vga_text.c: Likewise.
20726 * include/grub/i386/linuxbios/boot.h: Likewise.
20727 * include/grub/i386/linuxbios/console.h: Likewise.
20728 * include/grub/i386/linuxbios/init.h: Likewise.
20729 * include/grub/i386/linuxbios/kernel.h: Likewise.
20730 * include/grub/i386/linuxbios/loader.h: Likewise.
20731 * include/grub/i386/linuxbios/memory.h: Likewise.
20732 * include/grub/i386/linuxbios/serial.h: Likewise.
20733 * include/grub/i386/linuxbios/time.h: Likewise.
20735 * kern/i386/linuxbios/init.c: Likewise.
20736 * kern/i386/linuxbios/startup.S: Likewise.
20737 * kern/i386/linuxbios/table.c: Likewise.
20739 2007-10-31 Marco Gerards <marco@gnu.org>
20741 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
20742 (ata_mod_SOURCES): New variable.
20743 (ata_mod_CFLAGS): Likewise.
20744 (ata_mod_LDFLAGS): Likewise.
20746 * disk/ata.c: New file.
20748 * include/grub/disk.h (grub_disk_dev_id): Add
20749 `GRUB_DISK_DEV_ATA_ID'.
20751 2007-10-31 Robert Millan <rmh@aybabtu.com>
20753 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
20754 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
20756 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
20757 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
20759 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
20762 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
20764 2007-10-27 Robert Millan <rmh@aybabtu.com>
20766 * include/grub/types.h (ULONG_MAX): Define macro.
20768 2007-10-22 Robert Millan <rmh@aybabtu.com>
20770 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
20772 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
20774 2007-10-22 Robert Millan <rmh@aybabtu.com>
20776 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
20777 (pkgdata_MODULES): Add `biosdisk.mod'.
20778 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
20781 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
20782 (grub_biosdisk_init): Replace with ...
20783 (GRUB_MOD_INIT(biosdisk)): ... this.
20784 (grub_biosdisk_fini): Replace with ...
20785 (GRUB_MOD_FINI(biosdisk)): ... this.
20787 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
20788 (grub_machine_init): Remove call to grub_biosdisk_init().
20789 (grub_machine_fini): Remove call to grub_machine_fini().
20791 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
20793 2007-10-22 Robert Millan <rmh@aybabtu.com>
20795 * include/grub/time.h: New file.
20796 * include/grub/i386/time.h: Likewise.
20797 * include/grub/powerpc/time.h: Likewise.
20798 * include/grub/sparc64/time.h: Likewise.
20800 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
20802 (KERNEL_MACHINE_TIME_HEADER): ... this.
20803 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20805 (KERNEL_MACHINE_TIME_HEADER): ... this.
20806 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20808 (KERNEL_MACHINE_TIME_HEADER): ... this.
20810 * kern/i386/efi/init.c: Include `<grub/time.h>'.
20811 (grub_millisleep): New function.
20812 * kern/i386/pc/init.c: Include `<grub/time.h>'.
20813 (grub_millisleep): New function.
20814 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
20815 Remove `grub/machine/time.h' include.
20816 (grub_millisleep): New function.
20817 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
20818 Remove `grub/machine/time.h' include.
20819 (grub_millisleep): New function.
20821 * include/grub/misc.h (grub_div_roundup): New function.
20823 * kern/misc.c: Include `<grub/time.h>'.
20824 (grub_millisleep_generic): New function.
20826 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
20828 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
20830 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
20831 `machine/time.h'. Add `time.h'.
20832 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
20834 2007-10-21 Robert Millan <rmh@aybabtu.com>
20836 * include/grub/misc.h (grub_max): New function.
20838 2007-10-21 Robert Millan <rmh@aybabtu.com>
20840 * util/misc.c (grub_util_info): Call fflush() before returning.
20842 2007-10-20 Robert Millan <rmh@aybabtu.com>
20844 * genmk.rb (Image): Copy `extra_flags' from here ...
20845 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
20847 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
20848 to `argc' and `args' arguments.
20850 2007-10-17 Robert Millan <rmh@aybabtu.com>
20852 * kern/i386/loader.S: New file.
20854 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
20855 * kern/i386/loader.S (grub_linux_prot_size)... to here.
20856 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
20857 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
20858 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
20859 * kern/i386/loader.S (grub_linux_real_addr)... to here.
20860 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
20861 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
20862 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
20863 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
20864 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
20865 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
20866 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
20867 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
20869 * kern/i386/realmode.S: New file.
20871 * kern/i386/pc/startup.S (protstack): Moved from here ...
20872 * kern/i386/realmode.S (protstack)... to here.
20873 * kern/i386/pc/startup.S (gdt): Moved from here ...
20874 * kern/i386/realmode.S (gdt)... to here.
20875 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
20876 * kern/i386/realmode.S (prot_to_real)... to here.
20878 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
20879 `kern/i386/realmode.S'.
20881 2007-10-17 Robert Millan <rmh@aybabtu.com>
20883 * include/grub/i386/loader.h: New file.
20885 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
20886 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20887 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20888 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20889 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
20890 * include/grub/i386/loader.h (grub_linux_prot_size)
20891 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20892 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20893 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20894 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
20896 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
20898 2007-10-15 Robert Millan <rmh@aybabtu.com>
20900 * normal/misc.c (grub_normal_print_device_info): Do not probe for
20901 filesystem when dev->disk is unset.
20902 Do probe for filesystem even when dev->disk->has_partitions is set.
20903 In case a filesystem is found, always report it.
20904 In case it isn't, if dev->disk->has_partitions is set, report that
20905 a partition table was found instead of reporting that no filesystem
20906 could be identified.
20908 2007-10-12 Robert Millan <rmh@aybabtu.com>
20910 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
20911 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
20913 * include/grub/types.h (grub_host_to_target16): New macro.
20914 (grub_host_to_target32): Likewise.
20915 (grub_host_to_target64): Likewise.
20916 (grub_target_to_host16): Likewise.
20917 (grub_target_to_host32): Likewise.
20918 (grub_target_to_host64): Likewise.
20920 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
20921 Renamed from to ...
20922 (GRUB_MOD_ALIGN): ...this. Update all users.
20924 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
20925 grub_host_to_target32.
20926 Replace grub_be_to_cpu32 with grub_target_to_host32.
20927 (load_modules): Likewise.
20928 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
20929 Replace grub_be_to_cpu32 with grub_target_to_host32.
20930 Replace grub_cpu_to_be16 with grub_host_to_target16.
20931 Replace grub_cpu_to_be32 grub_host_to_target32.
20933 2007-10-12 Robert Millan <rmh@aybabtu.com>
20935 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
20936 * util/elf/grub-mkimage.c: ... here.
20938 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
20939 `util/powerpc/ieee1275/grub-mkimage.c'.
20941 2007-10-07 Robert Millan <rmh@aybabtu.com>
20943 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
20944 and make it easier to figure out.
20945 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
20946 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
20947 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
20948 leave us with less than HEAP_MIN_SIZE total heap.
20949 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
20951 2007-10-03 Robert Millan <rmh@aybabtu.com>
20953 * include/grub/i386/io.h: New file.
20954 * commands/i386/pc/play.c (inb): Removed.
20956 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20958 * term/i386/pc/serial.c (inb): Removed.
20960 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20962 * term/i386/pc/vga.c (inb): Removed.
20964 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20967 2007-10-02 Robert Millan <rmh@aybabtu.com>
20969 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
20970 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20971 Reported by Marcin Kurek.
20973 2007-09-07 Robert Millan <rmh@aybabtu.com>
20975 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
20976 SmartFirmware version updates (as released by Sven Luther), and avoid
20977 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
20978 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
20981 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20983 From Hitoshi Ozeki:
20984 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
20985 when merging two regions.
20987 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20989 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
20990 * normal/completion.c (grub_normal_do_completion): Likewise.
20991 Reported by Hitoshi Ozeki.
20993 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20995 Do not use devices at boot in chainloading.
20997 * loader/i386/pc/chainloader.c (boot_drive): New variable.
20998 (boot_part_addr): Likewise.
20999 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
21000 with BOOT_DRIVE and BOOT_PART_ADDR.
21001 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
21002 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
21004 2007-08-29 Robert Millan <rmh@aybabtu.com>
21006 Patch from Simon Peter <dn.tlp@gmx.net>:
21007 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
21008 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
21009 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
21010 util/i386/pc/grub-setup.c_DEPENDENCIES.
21011 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
21012 util/grub-probe.c_DEPENDENCIES.
21013 * conf/powerpc-ieee1275.rmk: Likewise.
21015 2007-08-28 Robert Millan <rmh@aybabtu.com>
21017 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
21018 to tell grub-mkdevicemap how to name devices.
21019 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
21022 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
21023 util/i386/get_disk_name.c.
21024 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
21025 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
21026 util/ieee1275/get_disk_name.c.
21028 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
21030 * DISTLIST: Add util/i386/get_disk_name.c and
21031 util/ieee1275/get_disk_name.c.
21033 * util/grub-mkdevicemap.c: Replace device naming logic with
21034 grub_util_get_disk_name() calls.
21036 2007-08-20 Robert Millan <rmh@aybabtu.com>
21038 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
21039 (so that it works for both plural and singular quantities).
21041 2007-08-05 Robert Millan <rmh@aybabtu.com>
21043 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
21044 so that [xz] isn't taken into account when determining order.
21046 2007-08-02 Marco Gerards <marco@gnu.org>
21048 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
21049 `include/multiboot2.h', `include/grub/elfload.h',
21050 `include/multiboot.h', `include/grub/multiboot.h',
21051 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
21052 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
21053 `kern/elf.c', `loader/multiboot_loader.c',
21054 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
21055 `loader/i386/pc/multiboot2.c',
21056 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
21057 `util/i386/pc/grub-mkrescue.in'. Remove
21058 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
21059 `include/grub/i386/pc/util/biosdisk.h' and
21060 `include/grub/powerpc/ieee1275/multiboot.h'.
21062 2007-08-02 Bean <bean123ch@gmail.com>
21064 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
21065 (ntfs_mod_SOURCES): New variable.
21066 (ntfs_mod_CFLAGS): Likewise.
21067 (ntfs_mod_LDFLAGS): Likewise.
21069 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
21070 (grub_probe_SOURCES): Likewise.
21071 (grub_emu_SOURCES): Likewise.
21073 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
21074 (grub_emu_SOURCES): Likewise.
21076 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
21077 (grub_emu_SOURCES): Likewise.
21079 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
21081 * fs/ntfs.c: New file.
21083 2007-08-02 Bean <bean123ch@gmail.com>
21085 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
21087 * file.h (grub_file): Likewise.
21089 * fshelp.h (grub_fshelp_read_file): Likewise.
21091 * util/i386/pc/grub-setup.c (setup): Likewise.
21092 (save_first_sector): Likewise.
21093 (save_blocklists): Likewise.
21095 * fs/affs.c (grub_affs_read_file): Likewise.
21097 * fs/ext2.c (grub_ext2_read_file): Likewise.
21099 * fs/fat.c (grub_fat_read_data): Likewise.
21101 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
21103 * fs/hfs.c (grub_hfs_read_file): Likewise.
21105 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
21107 * fs/jfs.c (grub_jfs_read_file): Likewise.
21109 * fs/minix.c (grub_minix_read_file): Likewise.
21111 * fs/sfs.c (grub_sfs_read_file): Likewise.
21113 * fs/ufs.c (grub_ufs_read_file): Likewise.
21115 * fs/xfs.c (grub_xfs_read_file): Likewise.
21117 * command/blocklist.c (read_blocklist): Likewise.
21118 (print_blocklist): Likewise.
21120 2007-08-02 Marco Gerards <marco@gnu.org>
21122 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
21125 * disk/host.c: New file.
21127 * util/hostfs.c: Likewise.
21129 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
21130 return `GRUB_ERR_BAD_FS'.
21131 * fs/sfs.c (grub_sfs_mount): Likewise.
21132 * fs/xfs.c (grub_xfs_mount): Likewise.
21134 * include/grub/disk.h (enum grub_disk_dev_id): Add
21135 `GRUB_DISK_DEVICE_HOST_ID'.
21137 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
21139 2007-07-24 Jerone Young <jerone@gmail.com>
21141 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
21142 modules for compilation.
21143 * conf/powerpc-ieee1275.rmk: Likewise.
21145 * include/multiboot.h: Move multiboot definitions to one file. Rename
21146 many definitions to not get grub specific.
21147 * include/multiboot2.h: Create header with multiboot 2 definitions.
21148 * include/grub/multiboot.h: Header for grub specific function
21149 prototypes and definitions.
21150 * include/grub/multiboot2.h: Likewise.
21151 * include/grub/multiboot_loader.h: Likewise.
21152 * include/grub/i386/pc/multiboot.h: Removed.
21153 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
21155 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
21156 and 2 to allow for one multiboot and module commands.
21157 * loader/multiboot2.c: Add multiboot2 functionality.
21158 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
21159 and definition names.
21160 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
21162 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
21163 ieee1275 specific multiboot2 code.
21165 * kern/i386/pc/startup.S: Change headers and definition names for
21166 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
21168 2007-07-22 Robert Millan <rmh@aybabtu.com>
21170 * geninitheader.sh: Process file specified in first parameter rather
21171 than hardcoding grub_modules_init.lst.
21172 * geninit.sh: Likewise. Also, construct header name dynamically rather
21173 than hardcoding grub_modules_init.h.
21175 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
21176 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
21177 grub_probe_init.[ch] and grub_setup_init.[ch].
21179 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
21180 grub_modules_init.h with grub_emu_init.h.
21181 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
21182 grub_probe_init.[ch] files.
21183 * conf/i386-efi.rmk: Likewise.
21184 * conf/i386-pc.rmk: Likewise.
21185 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
21186 grub_setup_init.[ch] files.
21188 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
21189 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
21190 to initialize modules rather than a list of hardcoded functions.
21191 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
21192 grub_init_all() to initialize modules rather than a list of hardcoded
21195 2007-07-22 Robert Millan <rmh@aybabtu.com>
21197 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21198 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
21200 2007-07-22 Robert Millan <rmh@aybabtu.com>
21202 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
21203 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
21204 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
21205 flag when running on SmartFirmware.
21206 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
21207 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
21210 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
21211 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
21212 rather than decreasing it.
21214 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
21215 there's not enough space to do it, fail in the same way as when it
21216 can't be done because there are no partitions.
21218 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
21219 when nvsetenv failed.
21221 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
21223 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
21224 because this rule is automatically generated.
21225 (grub-mkrescue): Removed for the same reason as above.
21227 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
21229 Migrate to GNU General Public License Version 3.
21231 * COPYING: Replaced with the plain text version of GPLv3.
21233 * config.guess: Updated from gnulib.
21234 * config.sub: Likewise.
21236 * geninit.sh: Output a GPLv3 copyright notice.
21237 * geninitheader.sh: Likewise.
21238 * genmodsrc.sh: Likewise.
21239 * gensymlist.sh.in: Likewise.
21241 * boot/i386/pc/boot.S: Upgraded to GPLv3.
21242 * boot/i386/pc/diskboot.S: Likewise.
21243 * boot/i386/pc/pxeboot.S: Likewise.
21244 * commands/blocklist.c: Likewise.
21245 * commands/boot.c: Likewise.
21246 * commands/cat.c: Likewise.
21247 * commands/cmp.c: Likewise.
21248 * commands/configfile.c: Likewise.
21249 * commands/echo.c: Likewise.
21250 * commands/help.c: Likewise.
21251 * commands/ls.c: Likewise.
21252 * commands/search.c: Likewise.
21253 * commands/terminal.c: Likewise.
21254 * commands/test.c: Likewise.
21255 * commands/videotest.c: Likewise.
21256 * commands/i386/cpuid.c: Likewise.
21257 * commands/i386/pc/halt.c: Likewise.
21258 * commands/i386/pc/play.c: Likewise.
21259 * commands/i386/pc/reboot.c: Likewise.
21260 * commands/i386/pc/vbeinfo.c: Likewise.
21261 * commands/i386/pc/vbetest.c: Likewise.
21262 * commands/ieee1275/halt.c: Likewise.
21263 * commands/ieee1275/reboot.c: Likewise.
21264 * commands/ieee1275/suspend.c: Likewise.
21265 * disk/loopback.c: Likewise.
21266 * disk/lvm.c: Likewise.
21267 * disk/raid.c: Likewise.
21268 * disk/efi/efidisk.c: Likewise.
21269 * disk/i386/pc/biosdisk.c: Likewise.
21270 * disk/ieee1275/ofdisk.c: Likewise.
21271 * font/manager.c: Likewise.
21272 * fs/affs.c: Likewise.
21273 * fs/ext2.c: Likewise.
21274 * fs/fat.c: Likewise.
21275 * fs/fshelp.c: Likewise.
21276 * fs/hfs.c: Likewise.
21277 * fs/hfsplus.c: Likewise.
21278 * fs/iso9660.c: Likewise.
21279 * fs/jfs.c: Likewise.
21280 * fs/minix.c: Likewise.
21281 * fs/sfs.c: Likewise.
21282 * fs/ufs.c: Likewise.
21283 * fs/xfs.c: Likewise.
21284 * hello/hello.c: Likewise.
21285 * include/grub/acorn_filecore.h: Likewise.
21286 * include/grub/arg.h: Likewise.
21287 * include/grub/bitmap.h: Likewise.
21288 * include/grub/boot.h: Likewise.
21289 * include/grub/cache.h: Likewise.
21290 * include/grub/device.h: Likewise.
21291 * include/grub/disk.h: Likewise.
21292 * include/grub/dl.h: Likewise.
21293 * include/grub/elfload.h: Likewise.
21294 * include/grub/env.h: Likewise.
21295 * include/grub/err.h: Likewise.
21296 * include/grub/file.h: Likewise.
21297 * include/grub/font.h: Likewise.
21298 * include/grub/fs.h: Likewise.
21299 * include/grub/fshelp.h: Likewise.
21300 * include/grub/gzio.h: Likewise.
21301 * include/grub/hfs.h: Likewise.
21302 * include/grub/kernel.h: Likewise.
21303 * include/grub/loader.h: Likewise.
21304 * include/grub/lvm.h: Likewise.
21305 * include/grub/misc.h: Likewise.
21306 * include/grub/mm.h: Likewise.
21307 * include/grub/net.h: Likewise.
21308 * include/grub/normal.h: Likewise.
21309 * include/grub/parser.h: Likewise.
21310 * include/grub/partition.h: Likewise.
21311 * include/grub/pc_partition.h: Likewise.
21312 * include/grub/raid.h: Likewise.
21313 * include/grub/rescue.h: Likewise.
21314 * include/grub/script.h: Likewise.
21315 * include/grub/setjmp.h: Likewise.
21316 * include/grub/symbol.h: Likewise.
21317 * include/grub/term.h: Likewise.
21318 * include/grub/terminfo.h: Likewise.
21319 * include/grub/tparm.h: Likewise.
21320 * include/grub/types.h: Likewise.
21321 * include/grub/video.h: Likewise.
21322 * include/grub/efi/api.h: Likewise.
21323 * include/grub/efi/chainloader.h: Likewise.
21324 * include/grub/efi/console.h: Likewise.
21325 * include/grub/efi/console_control.h: Likewise.
21326 * include/grub/efi/disk.h: Likewise.
21327 * include/grub/efi/efi.h: Likewise.
21328 * include/grub/efi/pe32.h: Likewise.
21329 * include/grub/efi/time.h: Likewise.
21330 * include/grub/i386/linux.h: Likewise.
21331 * include/grub/i386/setjmp.h: Likewise.
21332 * include/grub/i386/types.h: Likewise.
21333 * include/grub/i386/efi/kernel.h: Likewise.
21334 * include/grub/i386/efi/loader.h: Likewise.
21335 * include/grub/i386/efi/time.h: Likewise.
21336 * include/grub/i386/pc/biosdisk.h: Likewise.
21337 * include/grub/i386/pc/boot.h: Likewise.
21338 * include/grub/i386/pc/chainloader.h: Likewise.
21339 * include/grub/i386/pc/console.h: Likewise.
21340 * include/grub/i386/pc/init.h: Likewise.
21341 * include/grub/i386/pc/kernel.h: Likewise.
21342 * include/grub/i386/pc/loader.h: Likewise.
21343 * include/grub/i386/pc/memory.h: Likewise.
21344 * include/grub/i386/pc/multiboot.h: Likewise.
21345 * include/grub/i386/pc/serial.h: Likewise.
21346 * include/grub/i386/pc/time.h: Likewise.
21347 * include/grub/i386/pc/vbe.h: Likewise.
21348 * include/grub/i386/pc/vbeblit.h: Likewise.
21349 * include/grub/i386/pc/vbefill.h: Likewise.
21350 * include/grub/i386/pc/vbeutil.h: Likewise.
21351 * include/grub/i386/pc/vga.h: Likewise.
21352 * include/grub/ieee1275/ieee1275.h: Likewise.
21353 * include/grub/ieee1275/ofdisk.h: Likewise.
21354 * include/grub/powerpc/libgcc.h: Likewise.
21355 * include/grub/powerpc/setjmp.h: Likewise.
21356 * include/grub/powerpc/types.h: Likewise.
21357 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
21358 * include/grub/powerpc/ieee1275/console.h: Likewise.
21359 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
21360 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21361 * include/grub/powerpc/ieee1275/loader.h: Likewise.
21362 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
21363 * include/grub/powerpc/ieee1275/time.h: Likewise.
21364 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
21365 * include/grub/sparc64/libgcc.h: Likewise.
21366 * include/grub/sparc64/setjmp.h: Likewise.
21367 * include/grub/sparc64/types.h: Likewise.
21368 * include/grub/sparc64/ieee1275/console.h: Likewise.
21369 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
21370 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21371 * include/grub/sparc64/ieee1275/time.h: Likewise.
21372 * include/grub/util/biosdisk.h: Likewise.
21373 * include/grub/util/getroot.h: Likewise.
21374 * include/grub/util/lvm.h: Likewise.
21375 * include/grub/util/misc.h: Likewise.
21376 * include/grub/util/raid.h: Likewise.
21377 * include/grub/util/resolve.h: Likewise.
21378 * io/gzio.c: Likewise.
21379 * kern/device.c: Likewise.
21380 * kern/disk.c: Likewise.
21381 * kern/dl.c: Likewise.
21382 * kern/elf.c: Likewise.
21383 * kern/env.c: Likewise.
21384 * kern/err.c: Likewise.
21385 * kern/file.c: Likewise.
21386 * kern/fs.c: Likewise.
21387 * kern/loader.c: Likewise.
21388 * kern/main.c: Likewise.
21389 * kern/misc.c: Likewise.
21390 * kern/mm.c: Likewise.
21391 * kern/parser.c: Likewise.
21392 * kern/partition.c: Likewise.
21393 * kern/rescue.c: Likewise.
21394 * kern/term.c: Likewise.
21395 * kern/efi/efi.c: Likewise.
21396 * kern/efi/init.c: Likewise.
21397 * kern/efi/mm.c: Likewise.
21398 * kern/i386/dl.c: Likewise.
21399 * kern/i386/efi/init.c: Likewise.
21400 * kern/i386/efi/startup.S: Likewise.
21401 * kern/i386/pc/init.c: Likewise.
21402 * kern/i386/pc/lzo1x.S: Likewise.
21403 * kern/i386/pc/startup.S: Likewise.
21404 * kern/ieee1275/ieee1275.c: Likewise.
21405 * kern/powerpc/cache.S: Likewise.
21406 * kern/powerpc/dl.c: Likewise.
21407 * kern/powerpc/ieee1275/cmain.c: Likewise.
21408 * kern/powerpc/ieee1275/crt0.S: Likewise.
21409 * kern/powerpc/ieee1275/init.c: Likewise.
21410 * kern/powerpc/ieee1275/openfw.c: Likewise.
21411 * kern/sparc64/cache.S: Likewise.
21412 * kern/sparc64/dl.c: Likewise.
21413 * kern/sparc64/ieee1275/init.c: Likewise.
21414 * kern/sparc64/ieee1275/openfw.c: Likewise.
21415 * loader/efi/chainloader.c: Likewise.
21416 * loader/efi/chainloader_normal.c: Likewise.
21417 * loader/i386/efi/linux.c: Likewise.
21418 * loader/i386/efi/linux_normal.c: Likewise.
21419 * loader/i386/pc/chainloader.c: Likewise.
21420 * loader/i386/pc/chainloader_normal.c: Likewise.
21421 * loader/i386/pc/linux.c: Likewise.
21422 * loader/i386/pc/linux_normal.c: Likewise.
21423 * loader/i386/pc/multiboot.c: Likewise.
21424 * loader/i386/pc/multiboot_normal.c: Likewise.
21425 * loader/powerpc/ieee1275/linux.c: Likewise.
21426 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
21427 * normal/arg.c: Likewise.
21428 * normal/cmdline.c: Likewise.
21429 * normal/command.c: Likewise.
21430 * normal/completion.c: Likewise.
21431 * normal/execute.c: Likewise.
21432 * normal/function.c: Likewise.
21433 * normal/lexer.c: Likewise.
21434 * normal/main.c: Likewise.
21435 * normal/menu.c: Likewise.
21436 * normal/menu_entry.c: Likewise.
21437 * normal/misc.c: Likewise.
21438 * normal/parser.y: Likewise.
21439 * normal/script.c: Likewise.
21440 * normal/i386/setjmp.S: Likewise.
21441 * normal/powerpc/setjmp.S: Likewise.
21442 * normal/sparc64/setjmp.S: Likewise.
21443 * partmap/acorn.c: Likewise.
21444 * partmap/amiga.c: Likewise.
21445 * partmap/apple.c: Likewise.
21446 * partmap/gpt.c: Likewise.
21447 * partmap/pc.c: Likewise.
21448 * partmap/sun.c: Likewise.
21449 * term/gfxterm.c: Likewise.
21450 * term/terminfo.c: Likewise.
21451 * term/efi/console.c: Likewise.
21452 * term/i386/pc/console.c: Likewise.
21453 * term/i386/pc/serial.c: Likewise.
21454 * term/i386/pc/vesafb.c: Likewise.
21455 * term/i386/pc/vga.c: Likewise.
21456 * term/ieee1275/ofconsole.c: Likewise.
21457 * util/biosdisk.c: Likewise.
21458 * util/console.c: Likewise.
21459 * util/genmoddep.c: Likewise.
21460 * util/getroot.c: Likewise.
21461 * util/grub-emu.c: Likewise.
21462 * util/grub-mkdevicemap.c: Likewise.
21463 * util/grub-probe.c: Likewise.
21464 * util/lvm.c: Likewise.
21465 * util/misc.c: Likewise.
21466 * util/raid.c: Likewise.
21467 * util/resolve.c: Likewise.
21468 * util/update-grub.in: Likewise.
21469 * util/update-grub_lib.in: Likewise.
21470 * util/grub.d/00_header.in: Likewise.
21471 * util/grub.d/10_hurd.in: Likewise.
21472 * util/grub.d/10_linux.in: Likewise.
21473 * util/i386/efi/grub-install.in: Likewise.
21474 * util/i386/efi/grub-mkimage.c: Likewise.
21475 * util/i386/pc/grub-install.in: Likewise.
21476 * util/i386/pc/grub-mkimage.c: Likewise.
21477 * util/i386/pc/grub-mkrescue.in: Likewise.
21478 * util/i386/pc/grub-setup.c: Likewise.
21479 * util/i386/pc/misc.c: Likewise.
21480 * util/powerpc/ieee1275/grub-install.in: Likewise.
21481 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
21482 * util/powerpc/ieee1275/misc.c: Likewise.
21483 * video/bitmap.c: Likewise.
21484 * video/video.c: Likewise.
21485 * video/i386/pc/vbe.c: Likewise.
21486 * video/i386/pc/vbeblit.c: Likewise.
21487 * video/i386/pc/vbefill.c: Likewise.
21488 * video/i386/pc/vbeutil.c: Likewise.
21489 * video/readers/tga.c: Likewise.
21491 2007-07-02 Robert Millan <rmh@aybabtu.com>
21493 * conf/i386-efi.rmk: Replace obsolete reference to
21494 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
21495 with util/getroot.c.
21496 * conf/powerpc-ieee1275.rmk: Likewise.
21497 * conf/sparc64-ieee1275.rmk: Likewise.
21499 * util/grub-emu.c (main): Fix unchecked pointer handling.
21501 2007-07-02 Robert Millan <rmh@aybabtu.com>
21503 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
21504 invocation to fail, in order to support partition-less media.
21506 * util/i386/pc/grub-install.in: Likewise.
21508 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
21509 which fs or partmap modules are needed (akin to its sister scripts).
21511 Also use grub-probe to get rid of unportable /proc/mounts check.
21513 Print the same informational message that the other scripts do, before
21516 2007-06-23 Robert Millan <rmh@aybabtu.com>
21518 * util/update-grub_lib.in (font_path): New function. Determine whether
21519 a font file can be found and, if so, echo the GRUB path to it.
21521 * util/update-grub.in: Handle multiple terminals depending on user
21522 input, platform availability and font file presence. Propagate
21523 variables of our findings to /etc/grub.d/ children.
21525 * util/grub.d/00_header.in: Handle multiple terminals, based on
21526 environment setup by update-grub.
21528 2007-06-23 Robert Millan <rmh@aybabtu.com>
21530 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
21532 2007-06-21 Robert Millan <rmh@aybabtu.com>
21534 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
21535 indicate end of data section in kernel image.
21536 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
21537 GRUB_KERNEL_MACHINE_DATA_END.
21539 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
21541 * kern/i386/efi/startup.S: Likewise.
21543 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
21544 during image generation. Implement --prefix option to override this
21546 * util/i386/efi/grub-mkimage.c: Likewise.
21548 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
21549 code to make path relative to its root into a separate function.
21551 * util/i386/pc/grub-install.in: Use newly provided
21552 make_system_path_relative_to_its_root() to convert ${grubdir}, then
21553 pass the result to grub-install --prefix.
21555 2007-06-13 Robert Millan <rmh@aybabtu.com>
21557 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
21558 DEFAULT_DEVICE_MAP.
21559 * util/grub-emu.c: Use above definitions from misc.h instead of
21561 * util/grub-mkdevicemap.c: Likewise.
21562 * util/i386/pc/grub-setup.c: Likewise.
21563 * util/grub-probe.c: Likewise.
21564 (probe): Abort with grub_util_error() when either
21565 grub_guess_root_device or grub_util_get_grub_dev fails.
21567 2007-06-12 Robert Millan <rmh@aybabtu.com>
21569 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
21570 "pager" assignment.
21571 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
21573 * util/grub-probe.c (probe): Likewise for "drive_name".
21575 2007-06-11 Robert Millan <rmh@aybabtu.com>
21577 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
21578 not just the cdrom one.
21580 2007-06-11 Robert Millan <rmh@aybabtu.com>
21582 * util/i386/pc/grub-mkrescue.in: Add "set -e".
21583 Add --pkglibdir=DIR option to override pkglibdir.
21584 Mention --image-type=TYPE in help output.
21585 Fix --grub-mkimage (it was a no-op).
21586 Abort gracefully when no parameter is given.
21588 2007-06-11 Robert Millan <rmh@aybabtu.com>
21590 * util/i386/pc/grub-mkrescue.in: New file.
21591 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
21592 * Makefile.in: Handle bin_SCRIPTS.
21594 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
21596 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
21597 list of video modes.
21599 2007-06-06 Robert Millan <rmh@aybabtu.com>
21601 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
21602 file doesn't exist, or if it is in a filesystem grub can't read.
21604 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
21605 not abort if GRUB_DRIVE could not be defined. Rearrange generated
21606 header comment to fit in 80 columns when the variables are resolved.
21608 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
21609 could be identified by update-grub. Remove redundant check for
21610 unifont.pff existence (since convert_system_path_to_grub_path now
21613 2007-06-04 Robert Millan <rmh@aybabtu.com>
21615 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
21617 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
21619 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
21621 2007-06-04 Robert Millan <rmh@aybabtu.com>
21623 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
21625 * include/grub/partition.h: Declare grub_apple_partition_map_init and
21626 grub_apple_partition_map_fini.
21629 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
21630 to access >2 TiB disks).
21632 Print disk->total_sectors with %llu instead of %lu, since this
21633 variable is always 64-bit (prevents wrong disk size from being displayed
21634 on either >2 TiB disk or big-endian CPU).
21636 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
21637 into a generic case that supports all (sane) partition maps.
21639 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
21642 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
21643 and grub_apple_partition_map_fini() after that.
21645 2007-06-01 Robert Millan <rmh@aybabtu.com>
21647 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
21649 * util/grub.d/00_header.in: Only enable gfxterm when
21650 convert_system_path_to_grub_path() succeeds.
21652 2007-05-20 Robert Millan <rmh@aybabtu.com>
21654 * util/update-grub_lib.in: New file.
21655 * DISTLIST: Add update-grub_lib.in.
21656 * conf/common.rmk: Generate update-grub_lib and install it in
21658 * Makefile.in: Add install routine for $(lib_DATA).
21660 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
21661 function provided by update-grub_lib to support arbitrary paths of
21663 * util/update-grub.in: Use convert_system_path_to_grub_path() to
21664 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
21666 2007-05-19 Robert Millan <rmh@aybabtu.com>
21668 * commands/i386/cpuid.c: New module.
21669 * DISTLIST: Add it.
21670 * conf/i386-efi.rmk: Enable cpuid.mod.
21671 * conf/i386-pc.rmk: Likewise.
21673 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
21675 * kern/disk.c (grub_disk_read): Check return value of
21678 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
21680 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
21682 * disk/raid.c (grub_raid_open): Likewise.
21684 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
21686 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
21687 stack instead of on the heap.
21689 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
21690 before doing a read on it.
21692 * configure.ac: Only use -fno-stack-protector for the target
21695 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
21697 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
21698 __attribute_ ((unused)) to mode_type argument.
21700 * util/getroot.c (grub_guess_root_device): Fix #endif.
21702 * kern/misc.c (memcmp): Fix prototype.
21704 * include/grub/partition.h [GRUB_UTIL]
21705 (grub_gpt_partition_map_init): Add prototype.
21706 (grub_gpt_partition_map_fini): Likewise.
21708 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
21709 at the right place.
21711 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
21712 (grub_fat_read_data): Likewise.
21713 (grub_fat_find_dir): Likewise.
21715 * font/manager.c (find_glyph): Make table a const.
21716 (grub_font_get_glyph): Remove bitmap from if statement.
21718 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
21720 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
21721 code, first search for device in /dev/mapper, then in /dev.
21722 (grub_util_get_grub_dev): New function.
21723 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
21725 * util/grub-probe.c (probe): Remove check for RAID, call
21726 grub_util_get_grub_dev() instead of
21727 grub_util_biosdisk_get_grub_dev().
21728 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
21729 grub_util_biosdisk_get_grub_dev().
21730 * util/i386/pc/grub-setup.c (main): Likewise.
21732 2007-05-16 Robert Millan <rmh@aybabtu.com>
21734 * DISTLIST: Update for the latest changes.
21735 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
21736 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
21737 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
21738 grub/util/biosdisk.h.
21739 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
21740 grub/util/biosdisk.h.
21742 2007-05-16 Robert Millan <rmh@aybabtu.com>
21744 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
21746 2007-05-16 Robert Millan <rmh@aybabtu.com>
21748 * util/i386/efi/grub-install.in: New.
21749 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
21750 newly added grub-install.
21751 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
21753 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
21754 grub/util/biosdisk.h.
21755 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
21756 grub/util/biosdisk.h.
21758 2007-05-16 Robert Millan <rmh@aybabtu.com>
21760 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
21761 * include/grub/util/biosdisk.h: ... here.
21762 * util/i386/pc/biosdisk.c: Moved to ...
21763 * util/biosdisk.c: ... here.
21764 * util/i386/pc/getroot.c: Moved to ...
21765 * util/getroot.c: ... here.
21766 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
21767 * util/grub-mkdevicemap.c: ... here.
21768 * util/i386/pc/grub-probe.c: Moved to ...
21769 * util/grub-probe.c: ... here.
21771 2007-05-15 Robert Millan <rmh@aybabtu.com>
21773 * util/update-grub.in: Remove duplicated line in grub.cfg header
21776 2007-05-13 Robert Millan <rmh@aybabtu.com>
21778 * util/update-grub.in: Fix a few assumptions about the devices holding
21779 /, /boot and /boot/grub being the same.
21780 * util/grub.d/00_header.in: Likewise.
21781 * util/grub.d/10_hurd.in: Likewise.
21782 * util/grub.d/10_linux.in: Likewise.
21784 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
21785 patterns. Use that to define the `.old' suffix as older than `'.
21787 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
21789 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
21790 the grub.cfg header message.
21792 2007-05-11 Robert Millan <rmh@aybabtu.com>
21794 * util/update-grub.in: Create device.map if it doesn't already exist,
21795 before attempting to run grub-probe.
21796 Check for grub-probe and grub-mkdevicemap with the same code
21797 grub-install is using.
21800 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
21802 * Makefile.in: Add the datarootdir autoconf variable.
21804 2007-05-09 Robert Millan <rmh@aybabtu.com>
21806 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
21807 fail gracefully if dev->disk->partition == NULL.
21809 2007-05-07 Robert Millan <rmh@aybabtu.com>
21811 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
21812 determine partition map module.
21813 * util/i386/pc/grub-install.in: Use this feature to decide which
21814 partition module to load, instead of hardcoding pc and gpt.
21816 2007-05-07 Robert Millan <rmh@aybabtu.com>
21818 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
21819 source directory differs from build directory.
21821 2007-05-05 Robert Millan <rmh@aybabtu.com>
21823 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
21826 2007-05-05 Robert Millan <rmh@aybabtu.com>
21828 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
21830 2007-05-05 Robert Millan <rmh@aybabtu.com>
21832 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
21833 command-line arguments via ${GRUB_CMDLINE_LINUX}.
21835 2007-05-05 Robert Millan <rmh@aybabtu.com>
21837 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
21838 (grub_probe_SOURCES): Likewise.
21839 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
21840 GPT and initialize dos_part and bsd_part accordingly.
21841 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
21843 (main): Activate gpt module for use during partition identification,
21844 and deactivate it afterwards.
21845 * util/i386/pc/grub-install.in: Add gpt module to core.img.
21846 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
21847 partition identification, and deactivate it afterwards.
21849 2007-05-05 Robert Millan <rmh@aybabtu.com>
21851 * term/i386/pc/console.c (grub_console_fini): Call
21852 grub_term_set_current() before grub_term_unregister().
21854 2007-05-04 Robert Millan <rmh@aybabtu.com>
21856 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
21857 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
21858 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
21859 and update-grub_DATA.
21860 * conf/common.rmk: Build and install update-grub components.
21861 * conf/common.mk: Regenerate.
21862 * util/update-grub.in: New. Core of update-grub.
21863 * util/grub.d/00_header.in: New. Generates grub.cfg header.
21864 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
21865 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
21866 * util/grub.d/README: New. Document grub.d directory layout.
21868 2007-05-01 Robert Millan <rmh@aybabtu.com>
21870 * util/grub-emu.c: Move initialization functions
21871 grub_util_biosdisk_init() and grub_init_all() before
21872 grub_util_biosdisk_get_grub_dev(), which relies on them.
21874 2007-04-19 Robert Millan <rmh@aybabtu.com>
21876 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
21879 2007-04-18 Jerone Young <jerone@gmail.com>
21881 * kernel/elf.c: Add missing parenthesis for conditional statement
21884 2007-04-10 Jerone Young <jerone@gmail.com>
21886 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
21887 continue on and look for device node with real device name.
21889 2007-04-10 Jerone Young <jerone@gmail.com>
21891 * configure.ac: Add argument for autoconf to use transformation
21893 * Makefile.in: Add autoconf package transformation code.
21894 * util/i386/pc/grub-install.in: Likewise.
21895 * util/powerpc/ieee1275/grub-install.in: Likewise.
21897 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
21899 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
21900 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
21901 (EXT2_REVISION): Likewise.
21902 (EXT2_INODE_SIZE): Likewise.
21903 (struct grub_ext2_block_group): Added a missing member
21905 (grub_ext2_read_inode): Divide by the inode size in a superblock
21906 instead of 128 to obtain INODES_PER_BLOCK.
21907 Use the macro EXT2_INODE_SIZE instead of directly using
21908 SBLOCK->INODE_SIZE.
21910 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
21912 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
21913 superblock instead of the structure size to compute an
21914 offset. This fixes the problem that GRUB could not read a
21915 filesystem when inode size is different from 128-byte.
21917 2007-03-05 Marco Gerards <marco@gnu.org>
21919 * normal/main.c (read_config_file): When "menu" is not set, create
21920 an initial context.
21922 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21924 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
21925 (HEAP_LIMIT): New macro.
21926 (grub_claim_heap): Claim memory up to `heaplimit'.
21928 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21930 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
21931 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
21932 (_start): Likewise.
21933 (grub_arch_modules_addr): Return address after `_end'.
21934 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
21935 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
21936 (add_segments): Calculate `_end' from phdr size and location.
21937 (ALIGN_UP): Moved to ...
21938 * include/grub/misc.h: here.
21939 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
21941 (GRUB_IEEE1275_MODULE_BASE): Removed.
21943 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21945 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
21948 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21950 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
21952 (grub_elf64_load_hook_t): Likewise.
21953 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
21956 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21958 * kern/mm.c: Update copyright.
21959 (grub_mm_debug): Correct syntax error.
21960 (grub_mm_dump_free): New function.
21961 (grub_debug_free): Call `grub_free'.
21962 * include/grub/mm.h: Update copyright.
21963 (grub_mm_dump_free): Add declaration.
21965 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21967 * include/grub/ieee1275/ieee1275.h: Update copyright.
21968 * kern/powerpc/ieee1275/init.c: Likewise.
21969 * kern/powerpc/ieee1275/openfw.c: Likewise.
21971 * loader/powerpc/ieee1275/linux.c: Likewise.
21972 * include/grub/elfload.h: Likewise.
21973 * kern/elf.c: Likewise.
21974 (grub_elf32_load): Pass `base' and `size' parameters. Update all
21976 (grub_elf64_load): Likewise.
21977 (grub_elf32_load_segment): Move to a nested function.
21978 (grub_elf64_load_segment): Likewise.
21980 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21982 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
21984 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
21985 (grub_heap_len): Likewise.
21986 (HEAP_SIZE): New macro.
21987 (grub_claim_heap): New function.
21988 (grub_machine_init): Don't claim heap directly. Call
21990 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
21991 (grub_available_iterate): New function.
21993 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
21995 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
21996 * configure.ac: Use it for testing the HOST and TARGET compilers.
21998 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
22000 * Makefile.in (enable_grub_emu): New variable.
22001 * configure.ac (--enable-grub-emu): New option.
22002 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
22003 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
22004 * conf/i386-pc.rmk: Likewise.
22005 * conf/powerpc-ieee1275.rmk: Likewise.
22006 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
22008 2006-12-12 Marco Gerards <marco@gnu.org>
22010 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
22012 * kern/env.c (grub_env_unset): Don't free the member `value' when
22013 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
22016 * normal/main.c (current_menu): Removed.
22017 (free_menu): Unset the `menu' environment variable.
22018 (grub_normal_menu_addentry): Make use of the environment variable
22019 `menu', instead of using the global `current_menu'. Allocate
22020 memory for the sourcecode of this entry.
22021 (read_config_file): New argument `nested', changed all callers.
22022 Only in the case of a new context, initialize a new menu. Set the
22023 `menu' environment variable.
22024 (grub_normal_execute): Don't set and unset the environment
22025 variable `menu' here anymore. Only free the menu when leaving the
22028 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
22031 2006-12-11 Marco Gerards <marco@gnu.org>
22033 * normal/menu_entry.c (run): Fix off by one bug so the last line
22034 is executed. Move the loader check to outside the loop.
22036 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
22038 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
22040 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
22042 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
22043 the number of sectors. Reported by Andrey Shuvikov
22044 <mr_hyro@yahoo.com>.
22046 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
22048 * kern/disk.c (grub_disk_read): When there is a read error, always
22049 try to read only the necessary data.
22051 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
22053 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
22055 [GRUB_UTIL] (grub_raid_fini): Likewise.
22056 [GRUB_UTIL] (grub_lvm_init): Likewise.
22057 [GRUB_UTIL] (grub_lvm_fini): Likewise.
22058 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
22059 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
22060 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
22061 and grub_raid_fini().
22063 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
22065 * include/grub/types.h (__unused): Rename to UNUSED.
22066 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
22067 (grub_elf64_size): Likewise.
22069 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
22071 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
22072 grub_error_push and grub_error_pop in the error-handling path.
22073 (grub_elf32_load_segment): Only call grub_file_read with non-zero
22076 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
22078 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
22079 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
22080 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22081 (kernel_elf_SOURCES): Likewise.
22082 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
22083 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
22084 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
22085 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
22086 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
22087 (elf_mod_SOURCES): New variable.
22088 (elf_mod_CFLAGS): Likewise.
22089 (elf_mod_LDFLAGS): Likewise.
22090 * include/grub/types.h (__unused): New macro.
22091 * include/grub/elfload.h: New file.
22092 * kern/elf.c: Likewise.
22093 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
22094 (ELF32_LOADMASK): New macro.
22095 (ELF64_LOADMASK): Likewise.
22096 (vmlinux): Removed.
22097 (grub_linux_load32): New function.
22098 (grub_linux_load64): Likewise.
22099 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
22100 Use grub_elf_t instead of grub_file_t.
22102 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
22104 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
22105 `catch_result' to struct set_color_args.
22107 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
22109 * normal/menu.c: Include grub/script.h.
22110 * normal/menu_entry.c: Likewise.
22111 * include/grub/normal.h: Do not include grub/script.h.
22113 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
22115 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
22117 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
22119 * kern/disk.c (grub_disk_open): Print debug messages when opening a
22121 (grub_disk_close): Print debug messages when closing a disk.
22122 (grub_disk_read): Print debug messages when disk read fails.
22123 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
22125 * kern/partition.c: Include misc.h.
22126 (grub_partition_iterate): Print debug messages when detecting
22129 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
22131 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
22133 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
22135 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
22137 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
22138 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
22140 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
22142 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
22143 instead of sizeof(lv). Patch by Michael Guntsche.
22145 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
22147 * disk/lvm.c: Rename VGS to VG_LIST.
22148 (grub_lvm_iterate): Change VGS->LV to VG-LV.
22149 (grub_lvm_open): Likewise.
22150 Thanks to Michael Guntsche for finding this bug.
22152 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
22154 * configure.ac (AC_INIT): Bumped to 1.95.
22156 2006-10-14 Robert Millan <rmh@aybabtu.com>
22158 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
22159 with "/dev/.static/dev/md".
22161 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
22163 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
22164 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
22165 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
22166 DRIVE_NAME are always freed.
22168 * util/i386/pc/biosdisk.c (make_device_name): Add one into
22169 DOS_PART, as a DOS partition is counted from one instead of zero
22170 now. Reported by Robert Millan.
22172 2006-10-14 Robert Millan <rmh@aybabtu.com>
22174 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
22175 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
22176 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
22177 string returned by grub_guess_root_device.
22178 * util/i386/pc/grub-setup.c: Likewise.
22179 * util/i386/pc/grub-probefs.c: Likewise.
22181 * util/i386/pc/grub-probefs.c: Rename to ...
22182 * util/i386/pc/grub-probe.c: ... this.
22183 * DISTLIST: Remove grub-probefs, add grub-probe.
22184 * conf/i386-efi.rmk: Likewise.
22185 * conf/i386-pc.rmk: Likewise.
22186 * util/i386/pc/grub-install.in: Likewise.
22188 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
22189 choose which information we want to print.
22191 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
22193 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
22194 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
22195 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
22196 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
22197 video/readers/tga.c and video/i386/pc/vbeutil.c.
22199 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
22201 Added support for RAID and LVM.
22203 * disk/lvm.c: New file.
22204 * disk/raid.c: Likewise.
22205 * include/grub/lvm.h: Likewise.
22206 * include/grub/raid.h: Likewise.
22207 * include/grub/util/lvm.h: Likewise.
22208 * include/grub/util/raid.h: Likewise.
22209 * util/lvm.c: Likewise.
22210 * util/raid.c: Likewise.
22212 * include/grub/disk.h (grub_disk_dev_id): Add
22213 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
22214 (grub_disk_get_size): New prototype.
22215 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
22216 returns a partition.
22217 (grub_disk_get_size): New function.
22219 * kern/i386/pc/init.c (make_install_device): Copy the prefix
22220 verbatim if grub_install_dos_part is -2.
22222 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
22225 * util/i386/pc/grub-setup.c (setup): New argument
22226 MUST_EMBED. Force embedding of GRUB when the argument is
22227 true. Close FILE before returning.
22228 (main): Add support for RAID and LVM.
22230 * conf/common.rmk: Add RAID and LVM modules.
22231 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
22233 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
22235 * kern/misc.c (grub_strstr): New function.
22236 * include/grub/misc.h (grub_strstr): New prototype.
22238 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
22240 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
22242 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
22244 * kern/misc.c (grub_strtoull): Guess the base only if not
22247 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
22249 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
22252 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
22254 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
22256 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
22257 Remove `flags' argument. All callers changed.
22258 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
22259 (IEEE1275_IHANDLE_INVALID): New variable.
22260 (IEEE1275_CELL_INVALID): New variable.
22261 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
22262 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
22263 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
22264 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
22265 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
22266 codes from Open Firmware. All callers updated.
22267 (grub_ieee1275_next_property): Directly return Open Firmware return
22269 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
22270 Standardize error checking from `grub_ieee1275_get_property'.
22271 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
22272 `devalias' to `aliases'. Correct comments. Consolidate error paths.
22274 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
22276 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
22277 `instance_to_package_args' to `instance_to_path_args'.
22279 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
22280 `grub_ieee1275_chosen'.
22282 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
22283 `grub_ieee1275_interpret'.
22285 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
22287 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
22289 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
22291 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
22292 (__cmpdi): Likewise.
22294 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
22295 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
22298 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
22300 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
22301 to type `grub_ssize_t'.
22302 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
22304 2006-09-22 Marco Gerards <marco@gnu.org>
22306 * normal/script.c (grub_script_create_cmdmenu): Skip leading
22309 2006-09-22 Marco Gerards <marco@gnu.org>
22311 * commands/echo.c: New file.
22313 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
22315 * conf/common.rmk (echo_mod_SOURCES): New variable.
22316 (echo_mod_CFLAGS): Likewise.
22317 (echo_mod_LDFLAGS): Likewise.
22319 2006-09-22 Marco Gerards <marco@gnu.org>
22321 * normal/main.c (get_line): Malloc memory instead of using
22322 preallocated memory. Removed the arguments `cmdline' and
22323 `max_len'. Updated all callers.
22325 2006-09-22 Marco Gerards <marco@gnu.org>
22327 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
22328 (normal_mod_DEPENDENCIES): Likewise.
22330 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
22331 (normal_mod_DEPENDENCIES): Likewise.
22333 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
22335 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
22337 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
22339 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
22340 (normal_mod_DEPENDENCIES): Likewise.
22341 * conf/i386-pc.mk: Regenerate.
22342 * conf/i386-efi.mk: Likewise
22343 * conf/common.mk: Likewise.
22344 * conf/powerpc-ieee1275.mk: Likewise.
22345 * conf/sparc64-ieee1275.mk: Likewise.
22347 2006-09-22 Robert Millan <rmh@aybabtu.com>
22349 Sync with i386 version.
22350 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
22351 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
22353 2006-09-21 Robert Millan <rmh@aybabtu.com>
22355 Import from GRUB Legacy (lib/device.c):
22356 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
22357 (init_device_map) [__linux__]: Add support for I2O devices.
22359 2006-09-14 Marco Gerards <marco@gnu.org>
22361 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
22364 2006-09-14 Robert Millan <rmh@aybabtu.com>
22366 * util/i386/pc/grub-install.in: Skip menu.lst when removing
22369 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
22371 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
22372 before adding it to device.map.
22374 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
22376 * genmk.rb: Let GCC generate dependencies the first time it
22377 compiles a file; using the -MD option.
22378 * conf/common.mk: Regenerate.
22379 * conf/i386-pc.mk: Likewise.
22380 * conf/i386-efi.mk: Likewise.
22381 * conf/powerpc-ieee1275.mk: Likewise.
22382 * conf/sparc64-ieee1275.mk: Likewise.
22384 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
22386 Move the prototypes of grub_setjmp and grub_longjmp to
22387 cpu/setjmp.h, so that each architecture may specify different
22390 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
22391 (grub_longjmp): Likewise.
22392 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
22393 (grub_longjmp): Likewise.
22394 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
22395 (grub_longjmp): Likewise.
22397 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
22398 [!GRUB_UTIL] (grub_longjmp): Removed.
22400 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
22402 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
22403 "color!" method does not return any value.
22405 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
22407 * include/grub/bitmap.h: New file.
22409 * include/grub/i386/pc/vbeutil.h: Likewise.
22411 * video/bitmap.c: Likewise.
22413 * video/readers/tga.c: Likewise.
22415 * video/i386/pc/vbeutil.c: Likewise.
22417 * commands/videotest.c: Code cleanup and updated to reflect to new
22420 * term/gfxterm.c: Likewise.
22422 * video/video.c: Likewise.
22424 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
22425 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
22426 (bitmap_mod_SOURCES): New entry.
22427 (bitmap_mod_CFLAGS): Likewise.
22428 (bitmap_mod_LDFLAGS): Likewise.
22429 (tga_mod_SOURCES): Likewise.
22430 (tga_mod_CFLAGS): Likewise.
22431 (tga_mod_LDFLAGS): Likewise.
22433 * include/grub/video.h (grub_video_blit_operators): New enum type.
22434 (grub_video_render_target): Changed as forward declaration and moved
22435 actual definition to be video driver specific.
22436 (grub_video_adapter.blit_bitmap): Added blitting operator.
22437 (grub_video_adapter.blit_render_target): Likewise.
22438 (grub_video_blit_bitmap): Likewise.
22439 (grub_video_blit_render_target): Likewise.
22441 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
22442 driver specific render target definition.
22443 (grub_video_vbe_map_rgba): Added driver internal helper.
22444 (grub_video_vbe_unmap_color): Updated to use
22445 grub_video_i386_vbeblit_info.
22446 (grub_video_vbe_get_video_ptr): Likewise.
22448 * include/grub/i386/pc/vbeblit.h
22449 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
22450 grub_video_i386_vbeblit_info.
22451 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
22452 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
22453 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
22454 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
22455 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
22456 (grub_video_i386_vbeblit_index_index): Likewise.
22457 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
22458 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
22459 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
22460 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
22462 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
22465 * video/i386/pc/vbeblit.c: Updated to reflect changes on
22466 include/grub/i386/pc/vbeblit.h.
22468 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
22469 Updated to use grub_video_i386_vbeblit_info.
22470 (grub_video_i386_vbefill_R8G8B8): Likewise.
22471 (grub_video_i386_vbefill_index): Likewise.
22472 (grub_video_i386_vbefill): Added generic filler.
22474 * video/i386/pc/vbefill.c: Updated to reflect changes on
22475 include/grub/i386/pc/vbefill.h.
22477 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
22478 grub_video_i386_vbeblit_info.
22479 (grub_video_vbe_unmap_color): Likewise.
22480 (grub_video_vbe_blit_glyph): Likewise.
22481 (grub_video_vbe_scroll): Likewise.
22482 (grub_video_vbe_draw_pixel): Removed function.
22483 (grub_video_vbe_get_pixel): Likewise.
22484 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
22485 updated code to use it.
22486 (common_blitter): Added common blitter for render target and bitmap.
22487 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
22488 (grub_video_vbe_blit_render_target): Likewise.
22490 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
22492 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
22493 is in text mode if there is no console control protocol instance
22496 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
22498 * include/grub/video.h: Code cleanup.
22500 * include/grub/i386/pc/vbe.h: Likewise.
22502 * video/i386/pc/vbe.c: Likewise.
22504 * video/i386/pc/vbeblit.c: Likewise.
22506 * video/i386/pc/vbefill.c: Likewise.
22508 * video/video.c: Likewise. Also added more comments.
22510 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
22512 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
22513 (struct grub_biosdisk_dap): Likewise.
22515 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
22516 linkage settings for all functions.
22518 2006-07-12 Marco Gerards <marco@gnu.org>
22520 * configure.ac (--enable-mm-debug): Fix typo.
22522 * genkernsyms.sh.in: Use proper quoting for `CC'.
22524 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
22526 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
22527 (normal_mod_ASFLAGS): Remove "-m32".
22529 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
22531 * util/misc.c: Include config.h.
22532 [!HAVE_MEMALIGN]: Do not include malloc.h.
22533 (grub_memalign): Use posix_memalign, if present. Then, use
22534 memalign, if present. Otherwise, emit an error.
22536 * util/grub-emu.c: Do not include malloc.h.
22538 * include/grub/util/misc.h: Include unistd.h. This is required for
22539 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
22540 D. Eades III <hde@foobar-qux.org>.
22542 * configure.ac (AC_GNU_SOURCE): Added.
22543 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
22546 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
22548 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
22549 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
22551 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
22553 * include/grub/types.h (grub_host_addr_t): Rename to
22554 grub_target_addr_t.
22555 (grub_host_off_t): Rename to grub_target_off_t.
22556 (grub_host_size_t): Rename to grub_target_size_t.
22557 (grub_host_ssize_t): Rename to grub_target_ssize_t.
22558 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
22560 * include/grub/kernel.h (struct grub_module_header): Change type
22561 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
22562 (grub_module_info): Likewise.
22564 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
22566 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
22567 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
22568 Velazquez <jesus.velazquez@gmail.com>.
22570 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
22572 Count partitions from 1 instead of 0 in the string representation
22573 of partitions. Still use 0-based internally.
22575 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
22576 (sun_partition_map_iterate): Use grub_partition_t instead of
22577 struct grub_partition *. Cast DESC->START_CYLINDER to
22578 grub_uint64_t after converting the endian.
22579 (sun_partition_map_probe): Subtract 1 for PARTNUM.
22580 (sun_partition_map_get_name): Add 1 to P->INDEX.
22582 * partmap/pc.c (grub_partition_parse): Subtract 1 for
22584 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
22586 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
22587 zero instead of one.
22588 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
22589 (gpt_partition_map_get_name): Add 1 into P->INDEX.
22591 * partmap/apple.c (apple_partition_map_iterate): Change the type
22592 of POS to unsigned.
22593 (apple_partition_map_probe): Subtract 1 for PARTNUM.
22594 (apple_partition_map_get_name): Add 1 into P->INDEX.
22596 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
22597 of POS to unsigned.
22598 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
22599 calculate the offset of a partition.
22600 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
22601 (amiga_partition_map_get_name): Add 1 into P->INDEX.
22603 * partmap/acorn.c (acorn_partition_map_find): Change the type of
22604 SECTOR to grub_disk_addr_t.
22605 (acorn_partition_map_iterate): Likewise.
22606 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
22607 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
22609 (acorn_partition_map_get_name): Add 1 into P->INDEX.
22611 * kern/i386/pc/init.c (make_install_device): Add 1 into
22612 GRUB_INSTALL_DOS_PART.
22614 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
22617 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22619 Clean up the code to support 64-bit addressing in disks and
22620 files. This change is not enough for filesystems yet.
22622 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
22623 type of "start" to grub_uint64_t.
22624 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
22625 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
22626 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
22629 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
22630 to grub_disk_addr_t.
22632 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
22635 * partmap/pc.c (pc_partition_map_iterate): Likewise.
22637 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
22640 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
22642 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
22644 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
22646 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
22647 to grub_off_t, to detect an error from grub_file_seek.
22648 (grub_multiboot_load_elf32): Likewise.
22650 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
22651 maximum unsigned long value when an overflow is detected.
22652 (grub_strtoull): New function.
22653 (grub_divmod64): Likewise.
22654 (grub_lltoa): use grub_divmod64.
22656 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
22658 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
22659 the pointer to next character. Use grub_strtoull instead of
22661 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
22662 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
22665 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
22666 return value is signed.
22667 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
22668 test if OFFSET is less than zero, as OFFSET is unsigned now.
22670 * kern/disk.c (struct grub_disk_cache): Change the type of
22671 "sector" to grub_disk_addr_t.
22672 (grub_disk_cache_get_index): Change the type of SECTOR to
22673 grub_disk_addr_t. Calculate the hash with SECTOR casted to
22674 unsigned after shifting.
22675 (grub_disk_cache_invalidate): Change the type of SECTOR to
22677 (grub_disk_cache_unlock): Likewise.
22678 (grub_disk_cache_store): Likewise.
22679 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
22680 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
22681 grub_disk_addr_t and grub_uint64_t, respectively.
22682 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
22683 body, as the value of OFFSET is tweaked by
22684 grub_disk_check_range. Change the types of START_SECTOR, LEN and
22685 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
22687 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
22688 body, as the value of OFFSET is tweaked by
22689 grub_disk_check_range. Change the types of LEN and N to
22692 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
22693 and "saved_offset" to grub_off_t.
22694 (test_header): Cast BUF to char *.
22695 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
22697 (grub_gzio_read): Change the types of OFFSET and SIZE to
22698 grub_off_t and grub_size_t, respectively.
22700 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
22702 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
22703 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
22704 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
22705 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
22706 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
22708 * include/grub/types.h (grub_off_t): Unconditionally set to
22710 (grub_disk_addr_t): Changed to grub_uint64_t.
22712 * include/grub/partition.h (struct grub_partition): Change the
22713 types of "start", "len" and "offset" to grub_disk_addr_t,
22714 grub_uint64_t and grub_disk_addr_t, respectively.
22715 (grub_partition_get_start): Return grub_disk_addr_t.
22716 (grub_partition_get_len): Return grub_uint64_t.
22718 * include/grub/misc.h (grub_strtoull): New prototype.
22719 (grub_divmod64): Likewise.
22721 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
22722 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
22723 grub_off_t, respectively.
22724 All callers and references changed.
22726 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
22727 grub_size_t in "read".
22728 All callers and references changed.
22730 * include/grub/file.h (struct grub_file): Change the types of
22731 "offset" and "size" to grub_off_t and grub_off_t,
22732 respectively. Change the type of SECTOR to grub_disk_addr_t in
22734 (grub_file_read): Change the type of LEN to grub_size_t.
22735 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
22737 (grub_file_size): Return grub_off_t.
22738 (grub_file_tell): Likewise.
22739 All callers and references changed.
22741 * include/grub/disk.h (struct grub_disk_dev): Change the types of
22742 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
22744 (struct grub_disk): Change the type of "total_sectors" to
22745 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
22747 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
22748 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
22749 (grub_disk_write): Likewise.
22750 All callers and references changed.
22752 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
22753 char * for grub_strncmp to silence gcc.
22754 (grub_iso9660_mount): Likewise.
22755 (grub_iso9660_mount): Likewise.
22756 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
22758 (grub_iso9660_iterate_dir): Likewise.
22759 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
22761 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
22762 LEN to grub_disk_addr_t and grub_size_t, respectively.
22764 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
22766 * fs/jfs.c (grub_jfs_read_file): Likewise.
22768 * fs/minix.c (grub_jfs_read_file): Likewise.
22770 * fs/sfs.c (grub_jfs_read_file): Likewise.
22772 * fs/ufs.c (grub_jfs_read_file): Likewise.
22774 * fs/xfs.c (grub_jfs_read_file): Likewise.
22776 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
22777 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
22780 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
22781 BLKNR to -1 instead of returning GRUB_ERRNO.
22782 (grub_ext2_read_file): Change the types of SECTOR and
22783 LEN to grub_disk_addr_t and grub_size_t, respectively.
22785 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
22786 LEN to grub_disk_addr_t and grub_size_t, respectively.
22788 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
22791 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
22792 string. Do not cast SECTOR explicitly.
22794 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
22795 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
22796 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
22797 grub_disk_addr_t and grub_size_t, respectively. If the sector is
22798 over 2TB and LBA mode is not supported, raise an error.
22799 (get_safe_sectors): New function.
22800 (grub_biosdisk_read): Use get_safe_sectors.
22801 (grub_biosdisk_write): Likewise.
22803 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
22804 (grub_efidisk_write): Likewise.
22806 * disk/loopback.c (delete_loopback): Cosmetic changes.
22807 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
22809 (grub_loopback_open): Likewise.
22810 (grub_loopback_read): Likewise. Also, change the type of POS to
22811 grub_off_t, and fix the usage of grub_memset.
22813 * commands/i386/pc/play.c: Include grub/machine/time.h.
22815 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
22818 * commands/configfile.c: Include grub/env.h.
22820 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
22821 GRUB_ERRNO directly instead. Change the type of POS to
22822 grub_off_t. Follow the coding standard.
22824 * commands/blocklist.c: Include grub/partition.h.
22825 (grub_cmd_blocklist): Return an error if the underlying device is
22826 not a disk. Take the starting sector of a partition into account,
22827 if a partition is used.
22829 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
22831 (lba_mode): Support 64-bit addresses.
22832 (chs_mode): Likewise.
22833 (copy_buffer): Adapted to the new offsets of a length field and a
22835 (blocklist_default_start): Allocate 64-bit space.
22837 * boot/i386/pc/boot.S (force_lba): Removed.
22838 (boot_drive): Moved to under KERNEL_SECTOR.
22839 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
22841 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
22843 (lba_mode): Refactored to support a 64-bit address. More size
22845 (setup_sectors): Likewise.
22847 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22849 * DISTLIST: Added include/grub/i386/linux.h. Removed
22850 include/grub/i386/pc/linux.h
22852 * configure.ac (AC_INIT): Bumped to 1.94.
22854 * config.guess: Updated from gnulib.
22855 * config.sub: Likewise.
22856 * install-sh: Likewise.
22857 * mkinstalldirs: Likewise.
22859 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22861 * conf/common.rmk (grub_modules_init.lst): Depended on
22862 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
22865 * genmk.rb (PModule::rule): Reverted the previous change.
22867 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22869 * conf/common.rmk (grub_modules_init.lst): Depends on
22870 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
22871 that the target does not exist before producing.
22872 (grub_modules_init.h): Remove the target before generating.
22873 (grub_emu_init.c): Likewise.
22875 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
22877 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
22879 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
22880 for the target-specific tests. Make sure that we also have the
22881 up-to-date target variables for those tests.
22883 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22885 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
22886 (PModule::rule): Likewise.
22888 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22890 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
22891 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
22892 target-specific flags should be prefixed.
22893 (PModule::rule): Likewise.
22895 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
22897 * configure.ac (CMP): Check if cmp is available explicitly.
22899 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
22901 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
22902 (target_cpu): New variable.
22903 (pkglibdir): Use target_cpu instead of host_cpu.
22905 * util/i386/pc/grub-install.in (host_cpu): Removed.
22906 (target_cpu): New variable.
22907 (pkglibdir): Use target_cpu instead of host_cpu.
22909 * util/genmoddep.c: Removed.
22911 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
22912 instead of GRUB_HOST_SIZEOF_VOID_P.
22913 * kern/dl.c: Likewise.
22915 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
22917 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22918 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22919 (GRUB_TARGET_SIZEOF_LONG): ... this.
22920 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22921 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22922 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22924 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22925 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22926 (GRUB_TARGET_SIZEOF_LONG): ... this.
22927 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22928 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22929 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22931 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22932 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22933 (GRUB_TARGET_SIZEOF_LONG): ... this.
22934 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22935 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22937 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
22938 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
22939 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
22940 instead of GRUB_HOST_SIZEOF_LONG.
22941 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
22942 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
22943 GRUB_CPU_WORDS_BIGENDIAN.
22944 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
22945 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
22948 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
22949 (genmoddep_SOURCES): Likewise.
22950 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
22951 (genmoddep_SOURCES): Likewise.
22952 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
22953 (genmoddep_SOURCES): Likewise.
22954 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
22956 (genmoddep_SOURCES): Likewise.
22958 * genmoddep.awk: New file.
22960 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
22961 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
22962 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
22963 (PModule::rule): Likewise.
22964 (Program::rule): Likewise.
22965 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
22966 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
22969 * configure.ac: Rewritten intensively to use host and target
22970 instead of build and host, respectively.
22972 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
22973 (host_cpu): Removed.
22974 (target_cpu): New variable.
22975 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
22976 (BUILD_CC): Removed.
22977 (BUILD_CFLAGS): Likewise.
22978 (BUILD_CPPFLAGS): Likewise.
22979 (TARGET_CC): New variable.
22980 (TARGET_CFLAGS): Likewise.
22981 (TARGET_CPPFLAGS): Likewise.
22982 (TARGET_LDFLAGS): Likewise.
22984 (include): Use target_cpu instead of host_cpu.
22985 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
22987 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
22989 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
22991 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
22992 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
22993 field 'false' to 'exec_on_false'.
22994 (grub_script_create_cmdif): Renamed argument names to reflect above
22997 * normal/execute.c (grub_script_execute_cmdif): Likewise.
22999 * normal/script.c (grub_script_create_cmdif): Likewise.
23001 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
23003 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
23005 (grub_hfsplus_btree_recptr): Likewise.
23006 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
23007 FILEBLOCK both to pass a block number and store next block
23009 (grub_hfsplus_read_block): Rewritten heavily to support an extent
23010 overflow file correctly. Specify errors appropriately, because
23011 fshelp expects that GRUB_ERRNO is set when fails. Reuse
23012 grub_hfsplus_btree_recptr to get the pointer to a found key.
23013 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
23016 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
23018 (_linux_mod_SOURCES): New variable.
23019 (_linux_mod_CFLAGS): Likewise.
23020 (_linux_mod_LDFLAGS): Likewise.
23021 (linux_mod_SOURCES): Likewise.
23022 (linux_mod_CFLAGS): Likewise.
23023 (linux_mod_LDFLAGS): Likewise.
23025 * DISTLIST: Added loader/i386/efi/linux.c,
23026 loader/i386/efi/linux_normal.c and
23027 include/grub/i386/efi/loader.h.
23029 * loader/i386/efi/linux.c: New file.
23030 * loader/i386/efi/linux_normal.c: Likewise.
23031 * include/grub/i386/efi/loader.h: Likewise.
23033 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
23035 * commands/blocklist.c: New file.
23037 * DISTLIST: Added commands/blocklist.c.
23039 * term/efi/console.c (grub_console_highlight_color): Use a lighter
23040 color for the background, and a darker color for the foreground.
23041 (grub_console_checkkey): Return READ_KEY.
23042 (grub_console_cls): Set the background to
23043 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
23045 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
23047 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
23048 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
23050 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
23053 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
23054 BG. The spec is wrong again.
23056 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
23058 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
23060 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
23061 commands/blocklist.c.
23062 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23064 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
23065 (blocklist_mod_SOURCES): New variable.
23066 (blocklist_mod_CFLAGS): Likewise.
23067 (blocklist_mod_LDFLAGS): Likewise.
23069 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
23071 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
23073 (lba_mode): Use %eax more intensively to reduce the code size.
23075 2006-05-20 Marco Gerards <marco@gnu.org>
23077 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
23079 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
23081 (script): Accept leading newlines.
23082 (newlines): New rule to describe 0 or more newlines.
23083 (commands): Accept `command' with trailing newline. Fixed the
23084 order in which arguments were passed to `grub_script_add_cmd'.
23085 Accept commands separated by newlines.
23086 (function): Changed to accept newlines.
23087 (menuentry) Rewritten.
23089 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
23090 front of the list, instead of to the end.
23092 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
23094 * util/i386/pc/grub-install.in (bindir): New variable.
23095 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
23096 Shaver <lbgwjl@gmail.com>.
23098 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
23100 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
23101 grub/machine/linux.h
23102 * loader/i386/pc/linux.c: Likewise.
23104 * include/grub/i386/pc/linux.h: Moved to ...
23105 * include/grub/i386/linux.h: ... here.
23107 * include/grub/i386/linux.h (struct linux_kernel_params): New
23110 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
23112 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
23114 (grub_video_vbe_blit_glyph): Likewise.
23115 (grub_video_vbe_blit_bitmap): Likewise.
23116 (grub_video_vbe_blit_render_target): Likewise.
23118 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
23120 * configure.ac (--with-platform): Properly quote the square
23123 2006-05-08 Marco Gerards <marco@gnu.org>
23125 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
23127 (kernel_elf_HEADERS): ...to this. Updated all users.
23128 (grubof_symlist.c): Renamed from this...
23129 (kernel_elf_symlist.c): ...to this. Updated all users.
23130 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
23131 (grubof_SOURCES): Renamed from this...
23132 (kernel_elf_SOURCES): ...to this.
23133 (grubof_HEADERS): Renamed from this...
23134 (kernel_elf_HEADERS): ...to this.
23135 (grubof_CFLAGS): Renamed from this...
23136 (kernel_elf_CFLAGS): ...to this.
23137 (grubof_ASFLAGS): Renamed from this...
23138 (kernel_elf_ASFLAGS): ...to this.
23139 (grubof_LDFLAGS): Renamed from this...
23140 (kernel_elf_LDFLAGS): ...to this.
23142 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
23144 (kernel_elf_HEADERS): ...to this. Updated all users.
23145 (grubof_symlist.c): Renamed from this...
23146 (kernel_elf_symlist.c): ...to this. Updated all users.
23147 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
23148 (grubof_SOURCES): Renamed from this...
23149 (kernel_elf_SOURCES): ...to this.
23150 (grubof_HEADERS): Renamed from this...
23151 (kernel_elf_HEADERS): ...to this.
23152 (grubof_CFLAGS): Renamed from this...
23153 (kernel_elf_CFLAGS): ...to this.
23154 (grubof_ASFLAGS): Renamed from this...
23155 (kernel_elf_ASFLAGS): ...to this.
23156 (grubof_LDFLAGS): Renamed from this...
23157 (kernel_elf_LDFLAGS): ...to this.
23159 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
23160 `kernel.elf' instead of `grubof'.
23162 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
23164 Add --with-platform to configure. Use pkglibdir instead of
23165 pkgdatadir. This is reported by Roger Leigh.
23167 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
23168 (host_vendor): Likewise.
23169 (host_os): Likewise.
23170 (pkgdatadir): Likewise.
23171 (platform): New variable.
23172 (pkglibdir): Likewise.
23173 Use PKGLIBDIR instead of PKGDATADIR.
23175 * util/i386/pc/grub-install.in (datadir): Removed.
23176 (host_vendor): Likewise.
23177 (host_os): Likewise.
23178 (pkgdatadir): Likewise.
23179 (platform): New variable.
23180 (pkglibdir): Likewise.
23181 Use PKGLIBDIR instead of PKGDATADIR.
23183 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
23184 instead of GRUB_DATADIR.
23186 * util/i386/pc/grub-mkimage.c (usage): Likewise.
23188 * util/i386/efi/grub-mkimage.c (usage): Likewise.
23191 * configure.ac (--with-platform): New option.
23192 Use PLATFORM instead of HOST_VENDOR to specify a platform.
23194 * Makefile.in: Include a makefile based on PLATFORM instead of
23196 (pkgdatadir): Not appended by the machine type.
23197 (pkglibdir): Appended by the machine type.
23198 (host_vendor): Removed.
23199 (platform): New variable.
23200 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
23201 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
23202 (uninstall): Likewise.
23204 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
23206 Use the environment context in the menu. Remove the commands
23207 "default" and "timeout", and use variables instead.
23209 * normal/menu.c: Include grub/env.h.
23210 (print_entry): Cast TITLE to silence gcc.
23211 (get_timeout): New function.
23212 (set_timeout): Likewise.
23213 (get_entry_number): Likewise.
23214 (run_menu): Use a default entry, a fallback entry and a timeout
23215 in the environment variables "default", "fallback" and
23216 "timeout". Also, tweak the default entry if it is not within the
23217 current menu entries.
23218 (grub_menu_run): Use a fallback entry in the environment variable
23221 * normal/main.c (read_config_file): Do not initialize
23222 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
23224 (grub_normal_execute): Use a data slot to store the menu.
23226 * include/grub/normal.h (struct grub_menu): Removed default_entry,
23227 fallback_entry and timeout.
23228 (struct grub_menu_list): Removed.
23229 (grub_menu_list_t): Likewise.
23230 (struct grub_context): Likewise.
23231 (grub_context_t): Likewise.
23232 (grub_context_get): Likewise.
23233 (grub_context_get_current_menu): Likewise.
23234 (grub_context_push_menu): Likewise.
23235 (grub_context_pop_menu): Likewise.
23236 (grub_default_init): Likewise.
23237 (grub_default_fini): Likewise.
23238 (grub_timeout_init): Likewise.
23239 (grub_timeout_fini): Likewise.
23241 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
23243 (normal_mod_SOURCES): Removed normal/context.c.
23245 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
23246 commands/default.c, commands/timeout.c and normal/context.c.
23247 (normal_mod_SOURCES): Removed normal/context.c.
23249 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
23250 commands/timeout.c and normal/context.c.
23251 (normal_mod_SOURCES): Removed normal/context.c.
23253 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
23254 commands/default.c, commands/timeout.c and normal/context.c.
23255 (normal_mod_SOURCES): Removed normal/context.c.
23257 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
23259 (default_mod_SOURCES): Removed.
23260 (default_mod_CFLAGS): Likewise.
23261 (default_mod_LDFLAGS): Likewise.
23262 (timeout_mod_SOURCES): Removed.
23263 (timeout_mod_CFLAGS): Likewise.
23264 (timeout_mod_LDFLAGS): Likewise.
23266 * DISTLIST: Removed commands/default.c, commands/timeout.c and
23269 * commands/default.c: Removed.
23270 * commands/timeout.c: Likewise.
23271 * normal/context.c: Likewise.
23273 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
23275 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
23277 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
23279 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
23280 "next" to "prev" for readability.
23281 (struct grub_env_sorted_var): New struct.
23282 (grub_env_context): Renamed to ...
23283 (initial_context): ... this.
23284 (grub_env_var_context): Renamed to ...
23285 (current_context): ... this.
23286 (grub_env_find): Look only at CURRENT_CONTEXT.
23287 (grub_env_context_open): Rewritten to copy exported variables from
23289 (grub_env_context_close): Rewritten according to the new
23290 scheme. Also, add an assertion to prevent the initial context from
23292 (grub_env_insert): Removed the code for the sorted list.
23293 (grub_env_remove): Likewise.
23294 (grub_env_export): Simply mark the variable with
23295 GRUB_ENV_VAR_GLOBAL.
23296 (grub_env_set): A cosmetic change for naming consistency.
23297 (grub_env_get): Likewise.
23298 (grub_env_unset): Likewise.
23299 (grub_env_iterate): Rewritten to sort variables within this
23301 (grub_register_variable_hook): Fixed for naming consistency. Call
23302 grub_env_find again, only if NAME is not found at the first time.
23303 (mangle_data_slot_name): New function.
23304 (grub_env_set_data_slot): Likewise.
23305 (grub_env_get_data_slot): Likewise.
23306 (grub_env_unset_data_slot): Likewise.
23308 * include/grub/env.h (grub_env_var_type): New enum.
23309 (GRUB_ENV_VAR_LOCAL): New constant.
23310 (GRUB_ENV_VAR_GLOBAL): Likewise.
23311 (GRUB_ENV_VAR_DATA): Likewise.
23312 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
23314 (grub_env_set): Replace VAR with NAME for consistency.
23315 (grub_register_variable_hook): Likewise.
23316 (grub_env_export): Specify the name of the argument.
23317 (grub_env_set_data_slot): New prototype.
23318 (grub_env_get_data_slot): Likewise.
23319 (grub_env_unset_data_slot): Likewise.
23321 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
23323 Extend the loader so that GRUB can accept a loader which comes
23324 back to GRUB when a loaded image exits. Also, this change adds
23325 support for a chainloader on EFI.
23327 * term/efi/console.c: Include grub/misc.h.
23328 (grub_console_checkkey): Display a scan code on the top for
23329 debugging. This will be removed once the EFI port gets stable.
23330 Correct the scan code mapping.
23332 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
23333 allocate memory from larger regions, in order to reduce the number
23334 of allocated regions. Otherwise, the MacOSX loader panics.
23335 (filter_memory_map): Avoid less than 1MB for compatibility with
23337 (add_memory_regions): Allocate from the tail of a region, if
23338 possible, to avoid allocating a region near to 1MB, for the MacOSX
23341 * kern/efi/init.c (grub_efi_set_prefix): Specify
23342 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
23344 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
23345 argument IMAGE_HANDLE and specify it to get a loaded image.
23346 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
23347 grub_efi_get_loaded_image.
23348 (grub_efi_get_filename): Divide the length by the size of
23350 (grub_efi_get_device_path): New function.
23351 (grub_efi_print_device_path): Print End Device Path nodes. Divide
23352 the length by the size of grub_efi_char16_t for a file path device
23355 * kern/loader.c (grub_loader_noreturn): New variable.
23356 (grub_loader_set): Accept a new argument NORETURN. Set
23357 GRUB_LOADER_NORETURN to NORETURN.
23358 All callers changed.
23359 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
23362 * include/grub/efi/efi.h (grub_efi_get_device_path): New
23364 (grub_efi_get_loaded_image): Take an argument to specify an image
23367 * include/grub/loader.h (grub_loader_set): Added one more argument
23370 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
23371 instead of grub_efi_open_protocol.
23372 (grub_efidisk_get_device_name): Likewise.
23373 (grub_efidisk_close): Print a newline.
23374 (grub_efidisk_get_device_handle): Fixed to use
23375 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
23376 GRUB_EFI_DEVICE_PATH_TYPE.
23378 * disk/efi/efidisk.c (device_path_guid): Moved to ...
23379 * kern/efi/efi.c (device_path_guid): ... here.
23381 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
23383 (kernel_mod_HEADERS): Added efi/disk.h.
23384 (_chain_mod_SOURCES): New variable.
23385 (_chain_mod_CFLAGS): Likewise.
23386 (_chain_mod_LDFLAGS): Likewise.
23387 (chain_mod_SOURCES): Likewise.
23388 (chain_mod_CFLAGS): Likewise.
23389 (chain_mod_LDFLAGS): Likewise.
23391 * DISTLIST: Added include/grub/efi/chainloader.h,
23392 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
23394 * include/grub/efi/chainloader.h: New file.
23395 * loader/efi/chainloader.c: Likewise.
23396 * loader/efi/chainloader_normal.c: Likewise.
23398 2006-04-30 Marco Gerards <marco@gnu.org>
23400 * commands/configfile.c (grub_cmd_source): New function.
23401 (GRUB_MOD_INIT): Register the commands `source' and `.'.
23402 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
23404 2006-04-30 Marco Gerards <marco@gnu.org>
23406 * normal/execute.c (grub_script_execute_cmd): Change the return
23407 type to `grub_err_t'. Correctly return the error.
23408 (grub_script_execute_cmdline): In case a command line is not a
23409 command or a function, try to interpret it as an assignment.
23411 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
23413 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
23414 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
23415 skip a node whose name is obviously invalid as UTF-16,
23416 i.e. contains a NUL character. Stop the iteration when the last
23417 directory entry is found. Instead of using the return value of
23418 grub_hfsplus_btree_iterate_node, store the value in RET and use
23419 it, because the iterator can be stopped by the last directory
23422 2006-04-30 Marco Gerards <marco@gnu.org>
23424 * include/grub/env.h (grub_env_export): New prototype. Reported
23425 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
23427 2006-04-30 Marco Gerards <marco@gnu.org>
23429 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
23430 size of the extents in a catalog file record.
23432 2006-04-29 Marco Gerards <marco@gnu.org>
23434 * commands/configfile.c (grub_cmd_configfile): Execute the
23435 configfile within its own context.
23437 * include/grub/env.h (grub_env_context_open): New prototype.
23438 (grub_env_context_close): Likewise.
23440 * kern/env.c (grub_env): Removed.
23441 (grub_env_sorted): Likewise.
23442 (grub_env_context): New variable.
23443 (grub_env_var_context): Likewise.
23444 (grub_env_find): Search both the active context and the global
23446 (grub_env_context_open): New function.
23447 (grub_env_context_close): Likewise.
23448 (grub_env_insert): Likewise.
23449 (grub_env_remove): Likewise.
23450 (grub_env_export): Likewise.
23451 (grub_env_set): Changed to use helper functions to avoid code
23453 (grub_env_iterate): Rewritten so both the current context and the
23454 global context are being used.
23456 * normal/command.c (export_command): New function.
23457 (grub_command_init): Register the `export' function.
23459 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
23461 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
23462 explicitly to suppress gcc's warnings.
23463 * fs/fat.c (grub_fat_find_dir): Likewise.
23464 (grub_fat_label): Likewise.
23465 * fs/xfs.c (grub_xfs_read_inode): Likewise.
23466 (grub_xfs_mount): Likewise.
23467 (grub_xfs_label): Likewise.
23468 * fs/affs.c (grub_affs_mount): Likewise.
23469 (grub_affs_label): Likewise.
23470 (grub_affs_iterate_dir): Likewise.
23471 * fs/sfs.c (grub_sfs_mount): Likewise.
23472 (grub_sfs_iterate_dir): Likewise.
23473 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
23474 * fs/hfs.c (grub_hfs_mount): Likewise.
23475 (grub_hfs_cmp_catkeys): Likewise.
23476 (grub_hfs_find_dir): Likewise.
23477 (grub_hfs_dir): Likewise.
23478 (grub_hfs_label): Likewise.
23479 * fs/jfs.c (grub_jfs_mount): Likewise.
23480 (grub_jfs_opendir): Likewise.
23481 (grub_jfs_getent): Likewise.
23482 (grub_jfs_lookup_symlink): Likewise.
23483 (grub_jfs_label): Likewise.
23484 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
23485 (grub_hfsplus_iterate_dir): Likewise.
23486 (grub_hfsplus_btree_iterate_node): Made static.
23488 * util/grub-emu.c (prefix): New variable.
23489 (grub_machine_set_prefix): New function.
23490 (main): Do not set the environment variable "prefix" here. Only
23491 set PREFIX, which is used later by grub_machine_set_prefix.
23493 * include/grub/video.h: Do not include grub/symbol.h.
23494 (grub_video_register): Not exported. This symbol is not defined in
23496 (grub_video_unregister): Likewise.
23497 (grub_video_iterate): Likewise.
23498 (grub_video_setup): Likewise.
23499 (grub_video_restore): Likewise.
23500 (grub_video_get_info): Likewise.
23501 (grub_video_get_blit_format): Likewise.
23502 (grub_video_set_palette): Likewise.
23503 (grub_video_get_palette): Likewise.
23504 (grub_video_set_viewport): Likewise.
23505 (grub_video_get_viewport): Likewise.
23506 (grub_video_map_color): Likewise.
23507 (grub_video_map_rgb): Likewise.
23508 (grub_video_map_rgba): Likewise.
23509 (grub_video_fill_rect): Likewise.
23510 (grub_video_blit_glyph): Likewise.
23511 (grub_video_blit_bitmap): Likewise.
23512 (grub_video_blit_render_target): Likewise.
23513 (grub_video_scroll): Likewise.
23514 (grub_video_swap_buffers): Likewise.
23515 (grub_video_create_render_target): Likewise.
23516 (grub_video_delete_render_target): Likewise.
23517 (grub_video_set_active_render_target): Likewise.
23519 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
23521 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
23523 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
23524 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23525 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23526 instead of $(srcdir)/genkernsyms.sh.
23528 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
23529 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23530 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23531 instead of $(srcdir)/genkernsyms.sh.
23533 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
23534 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23535 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23536 instead of $(srcdir)/genkernsyms.sh.
23538 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
23539 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23540 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23541 instead of $(srcdir)/genkernsyms.sh.
23543 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
23546 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
23548 (gensymlist.sh): New target.
23549 (genkernsyms.sh): Likewise.
23551 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
23552 genkernsyms.sh.in and gensymlist.sh.in.
23554 * genkernsyms.sh: Removed.
23555 * gensymlist.sh: Likewise.
23557 * genkernsyms.sh.in: New file.
23558 * gensymlist.sh.in: Likewise.
23560 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
23562 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
23563 clobber "prefix", since we may have already set it manually.
23565 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
23567 * kern/misc.c (abort): New alias for grub_abort.
23569 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
23571 A new machine-specific function "grub_machine_set_prefix" is
23572 defined. This is called after loading modules, so that a prefix
23573 initialization can use modules. Also, this change adds an
23574 intensive debugging feature for the memory manager via the
23575 configure option "--enable-mm-debug".
23577 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
23580 * kern/sparc64/ieee1275/init.c (abort): Removed.
23581 (grub_stop): Likewise.
23582 (grub_exit): New function.
23583 (grub_set_prefix): Renamed to ...
23584 (grub_machine_set_prefix): ... this.
23585 (grub_machine_init): Do not call grub_set_prefix.
23587 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
23588 (grub_machine_set_prefix): ... this.
23589 (grub_machine_init): Do not call grub_set_prefix.
23591 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
23592 (grub_machine_init): Do not set the prefix here.
23594 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
23596 * kern/efi/init.c: Include grub/mm.h.
23597 (grub_efi_set_prefix): New function.
23599 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
23600 (grub_efi_get_filename): New function.
23601 (grub_print_device_path): Renamed to ...
23602 (grub_efi_print_device_path): ... this.
23604 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
23605 [MM_DEBUG] (grub_realloc): Likewise.
23606 [MM_DEBUG] (grub_free): Likewise.
23607 [MM_DEBUG] (grub_memalign): Likewise.
23608 [MM_DEBUG] (grub_mm_debug): New variable.
23609 [MM_DEBUG] (grub_debug_malloc): New function.
23610 [MM_DEBUG] (grub_debug_free): New function.
23611 [MM_DEBUG] (grub_debug_realloc): New function.
23612 [MM_DEBUG] (grub_debug_memalign): New function.
23614 * kern/misc.c (grub_abort): Print a newline to distinguish
23617 * kern/main.c (grub_main): Call grub_machine_set_prefix and
23618 grub_set_root_dev after loading modules. This is necessary when
23619 setting a prefix depends on modules.
23621 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
23622 (grub_efi_print_device_path): ... this.
23623 (grub_efi_get_filename): New prototype.
23624 (grub_efi_set_prefix): Likewise.
23626 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
23628 (grub_efidisk_get_device_handle): New prototype.
23629 (grub_efidisk_get_device_name): Likewise.
23631 * include/grub/mm.h: Include config.h.
23632 (MM_DEBUG): Removed.
23633 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
23634 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
23635 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
23636 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
23637 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
23638 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
23639 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
23640 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
23641 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
23643 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
23645 * disk/efi/efidisk.c: Include grub/partition.h.
23646 (iterate_child_devices): New function.
23647 (add_device): First, compare only last device path nodes, so that
23648 devices are sorted by the types.
23649 (grub_efidisk_get_device_handle): New function.
23650 (grub_efidisk_get_device_name): Likewise.
23652 * configure.ac (--enable-mm-debug): New option to enable the
23653 memory manager debugging feature. This makes the binary much
23654 bigger, so is disabled by default.
23656 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
23658 Use grub_abort instead of grub_stop, and grub_exit must be
23659 define in each architecture now. Also, this change adds support
23662 * util/i386/pc/grub-probefs.c: Include grub/term.h.
23663 (grub_getkey): New function.
23664 (grub_term_get_current): Likewise.
23666 * util/i386/pc/grub-setup.c: Include grub/term.h.
23667 (grub_getkey): New function.
23668 (grub_term_get_current): Likewise.
23670 * util/misc.c (grub_stop): Renamed to ...
23671 (grub_exit): ... this.
23673 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
23674 (grub_exit): ... this.
23675 (grub_machine_init): Use grub_abort instead of abort.
23676 (grub_stop): Removed.
23678 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
23681 * kern/i386/pc/startup.S (grub_exit): New function.
23682 (cold_reboot): New label.
23684 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
23685 (grub_efi_init): Call grub_efidisk_init.
23686 (grub_efi_fini): Call grub_efidisk_fini.
23688 * kern/efi/efi.c: Include grub/mm.h.
23689 (grub_efi_console_control_guid): Renamed to ...
23690 (console_control_guid): ... this.
23691 (grub_efi_loaded_image_guid): Renamed to ...
23692 (loaded_image_guid): ... this.
23693 (grub_efi_locate_handle): New function.
23694 (grub_efi_open_protocol): Likewise.
23695 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
23696 GRUB_EFI_CONSOLE_CONTROL_GUID.
23697 (grub_efi_exit): Removed.
23698 (grub_stop): Likewise.
23699 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
23700 (grub_exit): New function.
23701 (grub_print_device_path): Likewise.
23703 * kern/rescue.c (grub_rescue_cmd_exit): New function.
23704 (grub_enter_rescue_mode): Register "exit".
23706 * kern/misc.c (grub_real_dprintf): A cosmetic change.
23707 (grub_abort): New function.
23709 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
23711 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
23713 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
23715 * include/grub/efi/efi.h (grub_efi_exit): Removed.
23716 (grub_print_device_path): New prototype.
23717 (grub_efi_locate_handle): Likewise.
23718 (grub_efi_open_protocol): Likewise.
23720 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
23721 * disk/efi/efidisk.c: Likewise.
23723 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
23725 * include/grub/efi/console_control.h
23726 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
23728 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
23729 last 8 bytes as an array.
23730 (GRUB_EFI_DISK_IO_GUID): New macro.
23731 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
23732 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
23733 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
23735 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
23736 (struct grub_efi_device_path): Rename the member "sub_type" to
23738 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
23739 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
23740 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
23741 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
23742 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
23743 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
23744 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
23745 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
23746 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
23747 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
23748 (struct grub_efi_pci_device_path): New structure.
23749 (grub_efi_pci_device_path_t): New type.
23750 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
23751 (struct grub_efi_pccard_device_path): New structure.
23752 (grub_efi_pccard_device_path_t): New type.
23753 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
23754 (struct grub_efi_memory_mapped_device_path): New structure.
23755 (grub_efi_memory_mapped_device_path_t): New type.
23756 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
23757 (struct grub_efi_vendor_device_path): New structure.
23758 (grub_efi_vendor_device_path_t): New type.
23759 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
23760 (struct grub_efi_controller_device_path): New structure.
23761 (grub_efi_controller_device_path_t): New type.
23762 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
23763 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
23764 (struct grub_efi_acpi_device_path): New structure.
23765 (grub_efi_acpi_device_path_t): New type.
23766 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
23767 (struct grub_efi_expanded_acpi_device_path): New structure.
23768 (grub_efi_expanded_acpi_device_path_t): New type.
23769 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
23770 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
23771 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
23772 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
23773 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
23774 (struct grub_efi_atapi_device_path): New structure.
23775 (grub_efi_atapi_device_path_t): New type.
23776 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
23777 (struct grub_efi_fibre_channel_device_path): New structure.
23778 (grub_efi_fibre_channel_device_path_t): New type.
23779 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
23780 (struct grub_efi_1394_device_path): New structure.
23781 (grub_efi_1394_device_path_t): New type.
23782 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
23783 (struct grub_efi_usb_device_path): New structure.
23784 (grub_efi_usb_device_path_t): New type.
23785 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
23786 (struct grub_efi_usb_class_device_path): New structure.
23787 (grub_efi_usb_class_device_path_t): New type.
23788 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
23789 (struct grub_efi_i2o_device_path): New structure.
23790 (grub_efi_i2o_device_path_t): New type.
23791 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
23792 (struct grub_efi_mac_address_device_path): New structure.
23793 (grub_efi_mac_address_device_path_t): New type.
23794 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
23795 (struct grub_efi_ipv4_device_path): New structure.
23796 (grub_efi_ipv4_device_path_t): New type.
23797 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
23798 (struct grub_efi_ipv6_device_path): New structure.
23799 (grub_efi_ipv6_device_path_t): New type.
23800 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
23801 (struct grub_efi_infiniband_device_path): New structure.
23802 (grub_efi_infiniband_device_path_t): New type.
23803 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
23804 (struct grub_efi_uart_device_path): New structure.
23805 (grub_efi_uart_device_path_t): New type.
23806 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
23807 (struct grub_efi_vendor_messaging_device_path): New structure.
23808 (grub_efi_vendor_messaging_device_path_t): New type.
23809 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
23810 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
23811 (struct grub_efi_hard_drive_device_path): New structure.
23812 (grub_efi_hard_drive_device_path_t): New type.
23813 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
23814 (struct grub_efi_cdrom_device_path): New structure.
23815 (grub_efi_cdrom_device_path_t): New type.
23816 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
23817 (struct grub_efi_vendor_media_device_path): New structure.
23818 (grub_efi_vendor_media_device_path_t): New type.
23819 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
23820 (struct grub_efi_file_path_device_path): New structure.
23821 (grub_efi_file_path_device_path_t): New type.
23822 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
23823 (struct grub_efi_protocol_device_path): New structure.
23824 (grub_efi_protocol_device_path_t): New type.
23825 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
23826 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
23827 (struct grub_efi_bios_device_path): New structure.
23828 (grub_efi_bios_device_path_t): New type.
23829 (struct grub_efi_disk_io): New structure.
23830 (grub_efi_disk_io_t): New type.
23831 (struct grub_efi_block_io_media): New structure.
23832 (grub_efi_block_io_media_t): New type.
23833 (struct grub_efi_block_io): New structure.
23834 (grub_efi_block_io_t): New type.
23836 * include/grub/misc.h (grub_stop): Removed.
23837 (grub_exit): New prototype.
23838 (grub_abort): Likewise.
23840 * include/grub/disk.h (enum grub_disk_dev_id): Added
23841 GRUB_DISK_DEVICE_EFIDISK_ID.
23843 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
23844 disk/efi/efidisk.c.
23845 (kernel_syms.lst): Remove the target if an error occurs.
23847 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
23849 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
23850 as it was simply too buggy.
23852 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
23854 * kern/misc.c (grub_lltoa): New function.
23855 (grub_vsprintf): Added support for the long long suffix,
23858 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
23860 * Makefile.in (LDFLAGS): Add variable.
23861 (LD): Remove variable.
23862 * configure.ac: Add -m32 to LDFLAGS.
23863 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
23864 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
23865 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
23866 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
23867 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
23869 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
23870 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
23871 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
23873 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
23875 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
23876 length for unknown glyph.
23878 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23880 Add support for pre-loaded modules into the EFI port.
23882 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
23883 completely. Accept one more argument DIR. The caller has changed.
23885 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
23887 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
23888 (grub_efi_loaded_image_guid): New variable.
23889 (grub_efi_get_loaded_image): New function.
23890 (grub_arch_modules_addr): Likewise.
23892 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
23895 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
23896 (struct grub_efi_loaded_image): New structure.
23897 (grub_efi_loaded_image_t): New type.
23899 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23901 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
23902 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
23903 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
23905 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
23907 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
23909 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
23911 * DISTLIST: Added include/grub/efi/console.h,
23912 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
23913 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23915 * include/grub/efi/console.h: New file.
23916 * include/grub/efi/time.h: Likewise.
23917 * include/grub/i386/efi/kernel.h: Likewise.
23918 * kern/efi/init.c: Likewise.
23919 * kern/efi/mm.c: Likewise.
23920 * term/efi/console.c: Likewise.
23922 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
23923 (grub_stop): Removed.
23924 (grub_get_rtc): Likewise.
23925 (grub_machine_init): Simply call grub_efi_init.
23926 (grub_machine_fini): Call grub_efi_fini.
23928 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
23929 (grub_efi_output_string): Removed.
23930 (grub_efi_stall): New function.
23931 (grub_stop): Likewise.
23932 (grub_get_rtc): Likewise.
23934 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
23935 (grub_efi_stall): New prototype.
23936 (grub_efi_allocate_pages): Likewise.
23937 (grub_efi_free_pages): Likewise.
23938 (grub_efi_get_memory_map): Likewise.
23939 (grub_efi_mm_init): Likewise.
23940 (grub_efi_mm_fini): Likewise.
23941 (grub_efi_init): Likewise.
23942 (grub_efi_fini): Likewise.
23944 * include/grub/i386/efi/time.h: Do not include
23945 grub/symbol.h. Include grub/efi/time.h.
23946 (GRUB_TICKS_PER_SECOND): Removed.
23947 (grub_get_rtc): Likewise.
23949 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
23950 Added padding. The EFI spec is buggy.
23951 (GRUB_EFI_BLACK): New macro.
23952 (GRUB_EFI_BLUE): Likewise.
23953 (GRUB_EFI_GREEN): Likewise.
23954 (GRUB_EFI_CYAN): Likewise.
23955 (GRUB_EFI_RED): Likewise.
23956 (GRUB_EFI_MAGENTA): Likewise.
23957 (GRUB_EFI_BROWN): Likewise.
23958 (GRUB_EFI_LIGHTGRAY): Likewise.
23959 (GRUB_EFI_BRIGHT): Likewise.
23960 (GRUB_EFI_DARKGRAY): Likewise.
23961 (GRUB_EFI_LIGHTBLUE): Likewise.
23962 (GRUB_EFI_LIGHTGREEN): Likewise.
23963 (GRUB_EFI_LIGHTCYAN): Likewise.
23964 (GRUB_EFI_LIGHTRED): Likewise.
23965 (GRUB_EFI_LIGHTMAGENTA): Likewise.
23966 (GRUB_EFI_YELLOW): Likewise.
23967 (GRUB_EFI_WHITE): Likewise.
23968 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
23969 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
23970 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
23971 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
23972 (GRUB_EFI_BACKGROUND_RED): Likewise.
23973 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
23974 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
23975 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
23976 (GRUB_EFI_TEXT_ATTR): Likewise.
23978 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
23979 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23980 (kernel_mod_HEADERS): Added efi/time.h.
23982 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
23984 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
23985 include/grub/efi/api.h, include/grub/efi/console_control.h,
23986 include/grub/efi/efi.h, include/grub/efi/pe32.h,
23987 include/grub/i386/efi/time.h, kern/efi/efi.c,
23988 kern/i386/efi/init.c, kern/i386/efi/startup.S,
23989 and util/i386/efi/grub-mkimage.c.
23991 * Makefile.in (RMKFILES): Added i386-efi.rmk.
23993 * genmk.rb (PModule#rule): Do not export symbols if
23994 #{prefix}_EXPORTS is set to "no".
23996 * conf/i386-efi.mk: New file.
23997 * conf/i386-efi.rmk: Likewise.
23998 * include/grub/efi/api.h: Likewise.
23999 * include/grub/efi/console_control.h: Likewise.
24000 * include/grub/efi/efi.h: Likewise.
24001 * include/grub/efi/pe32.h: Likewise.
24002 * include/grub/i386/efi/time.h: Likewise.
24003 * kern/efi/efi.c: Likewise.
24004 * kern/i386/efi/init.c: Likewise.
24005 * kern/i386/efi/startup.S: Likewise.
24006 * util/i386/efi/grub-mkimage.c: Likewise.
24008 2006-04-17 Marco Gerards <marco@gnu.org>
24010 * include/grub/script.h: Include <grub/parser.h> and
24011 "grub_script.tab.h".
24012 (struct grub_lexer_param): New struct.
24013 (struct grub_parser_param): Likewise.
24014 (grub_script_create_arglist): Pass the state in an argument.
24015 (grub_script_add_arglist): Likewise.
24016 (grub_script_create_cmdline): Likewise.
24017 (grub_script_create_cmdblock): Likewise.
24018 (grub_script_create_cmdif): Likewise.
24019 (grub_script_create_cmdmenu): Likewise.
24020 (grub_script_add_cmd): Likewise.
24021 (grub_script_arg_add): Likewise.
24022 (grub_script_lexer_ref): Likewise.
24023 (grub_script_lexer_deref): Likewise.
24024 (grub_script_lexer_record_start): Likewise.
24025 (grub_script_lexer_record_stop): Likewise.
24026 (grub_script_mem_record): Likewise.
24027 (grub_script_mem_record_stop): Likewise.
24028 (grub_script_malloc): Likewise.
24029 (grub_script_yylex): Likewise.
24030 (grub_script_yyparse): Likewise.
24031 (grub_script_yyerror): Likewise.
24032 (grub_script_yylex): Likewise.
24033 (grub_script_lexer_init): Return the state.
24035 * normal/lexer.c (grub_script_lexer_state): Removed variable.
24036 (grub_script_lexer_done): Likewise.
24037 (grub_script_lexer_getline): Likewise.
24038 (grub_script_lexer_refs): Likewise.
24039 (script): Likewise.
24040 (newscript): Likewise.
24041 (record): Likewise.
24042 (recording): Likewise.
24043 (recordpos): Likewise.
24044 (recordlen): Likewise.
24045 (grub_script_lexer_init): Return the state instead of setting
24047 (grub_script_lexer_ref): Use the newly added argument for state
24048 instead of globals.
24049 (grub_script_lexer_deref): Likewise.
24050 (grub_script_lexer_record_start): Likewise.
24051 (grub_script_lexer_record_stop): Likewise.
24052 (recordchar): Likewise.
24053 (nextchar): Likewise.
24054 (grub_script_yylex2): Likewise.
24055 (grub_script_yylex): Likewise.
24056 (grub_script_yyerror): Likewise.
24058 * normal/parser.y (func_mem): Removed variable.
24059 (menu_entry): Likewise.
24061 (%lex-param): New parser option.
24062 (%parse-param): Likewise.
24063 (script): Always return the AST.
24064 (argument): Pass the state around.
24065 (arguments): Likewise.
24066 (grubcmd): Likewise.
24067 (commands): Likewise.
24068 (function): Likewise.
24069 (menuentry): Likewise.
24070 (if_statement): Likewise.
24073 * normal/script.c (grub_script_memused): Removed variable.
24074 (grub_script_parsed): Likewise.
24075 (grub_script_malloc): Added a state argument. Use that instead of
24077 (grub_script_mem_record): Likewise.
24078 (grub_script_mem_record_stop): Likewise.
24079 (grub_script_arg_add): Likewise.
24080 (grub_script_add_arglist): Likewise.
24081 (grub_script_create_cmdline): Likewise.
24082 (grub_script_create_cmdif): Likewise.
24083 (grub_script_create_cmdmenu): Likewise.
24084 (grub_script_add_cmd): Likewise.
24085 (grub_script_parse): Setup the state before calling the parser.
24087 2006-04-16 Marco Gerards <marco@gnu.org>
24089 * normal/command.c (grub_command_init): Remove the title command.
24091 * normal/lexer.c (grub_script_yylex): Renamed from this...
24092 (grub_script_yylex2): ... to this.
24093 (grub_script_yylex): New function. Temporary
24094 introduced to filter some tokens.
24095 (grub_script_yyerror): Print a newline.
24097 * normal/main.c (read_config_file): Output information about the
24098 lines that contain errors. Wait for a key after all lines have
24099 been processed. Don't return an empty menu.
24101 * normal/parser.y (func_mem): Don't initialize.
24102 (menu_entry): Likewise.
24103 (err): New variable.
24104 (script): Don't return anything when an error was encountered.
24105 (ws, returns): Removed rules.
24106 (argument): Disabled concatenated variable support.
24107 (arguments): Remove explicit separators.
24108 (grubcmd): Likewise.
24109 (function): Likewise.
24110 (menuentry): Likewise.
24112 (commands): Likewise. Add error handling.
24114 * normal/script.c (grub_script_create_cmdline): If
24115 `grub_script_parsed' is 0, assume the parser encountered an error.
24117 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
24119 * configure.ac: Add support for EFI. Fix the typo
24120 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
24122 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
24124 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
24125 foreign multibyte characters should be shown correctly.
24127 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
24129 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
24131 (read_config_file): Made it to close file before returning.
24133 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
24135 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
24136 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
24137 video/i386/pc/vbefill.c.
24139 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
24140 video/i386/pc/vbefill.c.
24142 * include/grub/video.h (grub_video_blit_format): New enum.
24143 (grub_video_mode_info): Added new member blit_format.
24144 (grub_video_get_blit_format): New function prototype.
24146 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
24147 function prototype.
24148 (grub_video_vbe_map_rgb): Likewise.
24149 (grub_video_vbe_unmap_color): Likewise.
24151 * include/grub/i386/pc/vbeblit.h: New file.
24153 * include/grub/i386/pc/vbefill.h: New file.
24155 * video/video.c (grub_video_get_blit_format): New function.
24156 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
24157 (grub_video_vbe_map_rgb): Likewise.
24158 (grub_video_vbe_unmap_color): Likewise.
24160 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
24162 (grub_video_vbe_blit_render_target): Changed to use more optimized
24164 (grub_video_vbe_setup): Added detection for optimized settings.
24165 (grub_video_vbe_create_render_target): Likewise.
24167 * video/i386/pc/vbeblit.c: New file.
24169 * video/i386/pc/vbefill.c: New file.
24171 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
24173 * font/manager.c (grub_font_get_glyph): Removed font fixup from
24176 * util/unifont2pff.rb: ... and moved it to here. Improved argument
24177 parsing to support both hex and dec ranges. If filename was missing
24178 show usage information.
24180 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
24182 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
24183 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
24185 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
24186 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
24187 (video_mod_SOURCES): Added.
24188 (video_mod_CFLAGS): Likewise.
24189 (video_mod_LDFLAGS): Likewise.
24190 (gfxterm_mod_SOURCES): Likewise.
24191 (gfxterm_mod_CFLAGS): Likewise.
24192 (gfxterm_mod_LDFLAGS): Likewise.
24193 (videotest_mod_SOURCES): Likewise.
24194 (videotest_mod_CFLAGS): Likewise.
24195 (videotest_mod_LDFLAGS): Likewise.
24196 (vesafb_mod_SOURCES): Removed.
24197 (vesafb_mod_CFLAGS): Likewise.
24198 (vesafb_mod_LDFLAGS): Likewise.
24199 (vga_mod_SOURCES): Likewise.
24200 (vga_mod_CFLAGS): Likewise.
24201 (vga_mod_LDFLAGS): Likewise.
24203 * commands/videotest.c: New file.
24205 * font/manager.c (fill_with_default_glyph): Modified to use
24207 (grub_font_get_glyph): Likewise.
24208 (fontmanager): Renamed from this...
24209 (font_manager): ... to this.
24211 * include/grub/font.h (grub_font_glyph): Added new structure.
24212 (grub_font_get_glyph): Modified to use grub_font_glyph.
24214 * include/grub/misc.h (grub_abs): Added as inline function.
24216 * include/grub/video.h: New file.
24218 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
24219 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
24220 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
24221 (grub_vbe_get_controller_info): Renamed from this...
24222 (grub_vbe_bios_get_controller_info): ... to this.
24223 (grub_vbe_get_mode_info): Renamed from this...
24224 (grub_vbe_bios_get_mode_info): ... to this.
24225 (grub_vbe_set_mode): Renamed from this...
24226 (grub_vbe_bios_set_mode): ... to this.
24227 (grub_vbe_get_mode): Renamed from this...
24228 (grub_vbe_bios_get_mode): ... to this.
24229 (grub_vbe_set_memory_window): Renamed from this...
24230 (grub_vbe_bios_set_memory_window): ... to this.
24231 (grub_vbe_get_memory_window): Renamed from this...
24232 (grub_vbe_bios_get_memory_window): ... to this.
24233 (grub_vbe_set_scanline_length): Renamed from this...
24234 (grub_vbe_set_scanline_length): ... to this.
24235 (grub_vbe_get_scanline_length): Renamed from this...
24236 (grub_vbe_bios_get_scanline_length): ... to this.
24237 (grub_vbe_set_display_start): Renamed from this...
24238 (grub_vbe_bios_set_display_start): ... to this.
24239 (grub_vbe_get_display_start): Renamed from this...
24240 (grub_vbe_bios_get_display_start): ... to this.
24241 (grub_vbe_set_palette_data): Renamed from this...
24242 (grub_vbe_bios_set_palette_data): ... to this.
24243 (grub_vbe_set_pixel_rgb): Removed.
24244 (grub_vbe_set_pixel_index): Likewise.
24246 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
24248 (grub_vbe_bios_get_controller_info): ... to this.
24249 (grub_vbe_get_mode_info): Renamed from this...
24250 (grub_vbe_bios_get_mode_info): ... to this.
24251 (grub_vbe_set_mode): Renamed from this...
24252 (grub_vbe_bios_set_mode): ... to this.
24253 (grub_vbe_get_mode): Renamed from this...
24254 (grub_vbe_bios_get_mode): ... to this.
24255 (grub_vbe_set_memory_window): Renamed from this...
24256 (grub_vbe_bios_set_memory_window): ... to this.
24257 (grub_vbe_get_memory_window): Renamed from this...
24258 (grub_vbe_bios_get_memory_window): ... to this.
24259 (grub_vbe_set_scanline_length): Renamed from this...
24260 (grub_vbe_set_scanline_length): ... to this.
24261 (grub_vbe_get_scanline_length): Renamed from this...
24262 (grub_vbe_bios_get_scanline_length): ... to this.
24263 (grub_vbe_set_display_start): Renamed from this...
24264 (grub_vbe_bios_set_display_start): ... to this.
24265 (grub_vbe_get_display_start): Renamed from this...
24266 (grub_vbe_bios_get_display_start): ... to this.
24267 (grub_vbe_set_palette_data): Renamed from this...
24268 (grub_vbe_bios_set_palette_data): ... to this.
24269 (grub_vbe_bios_get_controller_info): Fixed problem with registers
24270 getting corrupted after calling it. Added more pushes and pops.
24271 (grub_vbe_bios_set_mode): Likewise.
24272 (grub_vbe_bios_get_mode): Likewise.
24273 (grub_vbe_bios_get_memory_window): Likewise.
24274 (grub_vbe_bios_set_scanline_length): Likewise.
24275 (grub_vbe_bios_get_scanline_length): Likewise.
24276 (grub_vbe_bios_get_display_start): Likewise.
24277 (grub_vbe_bios_set_palette_data): Likewise.
24279 * normal/cmdline.c (cl_set_pos): Refresh the screen.
24280 (cl_insert): Likewise.
24281 (cl_delete): Likewise.
24283 * term/gfxterm.c: New file.
24285 * term/i386/pc/vesafb.c: Removed file.
24287 * video/video.c: New file.
24289 * video/i386/pc/vbe.c (real2pm): Added new function.
24290 (grub_video_vbe_draw_pixel): Likewise.
24291 (grub_video_vbe_get_video_ptr): Likewise.
24292 (grub_video_vbe_get_pixel): Likewise
24293 (grub_video_vbe_init): Likewise.
24294 (grub_video_vbe_fini): Likewise.
24295 (grub_video_vbe_setup): Likewise.
24296 (grub_video_vbe_get_info): Likewise.
24297 (grub_video_vbe_set_palette): Likewise.
24298 (grub_video_vbe_get_palette): Likewise.
24299 (grub_video_vbe_set_viewport): Likewise.
24300 (grub_video_vbe_get_viewport): Likewise.
24301 (grub_video_vbe_map_color): Likewise.
24302 (grub_video_vbe_map_rgb): Likewise.
24303 (grub_video_vbe_map_rgba): Likewise.
24304 (grub_video_vbe_unmap_color): Likewise.
24305 (grub_video_vbe_fill_rect): Likewise.
24306 (grub_video_vbe_blit_glyph): Likewise.
24307 (grub_video_vbe_blit_bitmap): Likewise.
24308 (grub_video_vbe_blit_render_target): Likewise.
24309 (grub_video_vbe_scroll): Likewise.
24310 (grub_video_vbe_swap_buffers): Likewise.
24311 (grub_video_vbe_create_render_target): Likewise.
24312 (grub_video_vbe_delete_render_target): Likewise.
24313 (grub_video_vbe_set_active_render_target): Likewise.
24314 (grub_vbe_set_pixel_rgb): Remove function.
24315 (grub_vbe_set_pixel_index): Likewise.
24316 (index_color_mode): Remove static variable.
24317 (active_mode): Likewise.
24318 (framebuffer): Likewise.
24319 (bytes_per_scan_line): Likewise.
24320 (grub_video_vbe_adapter): Added new static variable.
24321 (framebuffer): Likewise.
24322 (render_target): Likewise.
24323 (initial_mode): Likewise.
24324 (mode_in_use): Likewise.
24325 (mode_list): Likewise.
24327 2006-03-10 Marco Gerards <marco@gnu.org>
24329 * configure.ac (AC_INIT): Bumped to 1.93.
24331 * DISTLIST: Added `include/grub/hfs.h'.
24333 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
24335 * boot/i386/pc/boot.S (general_error): Before looping, try INT
24336 18H, which might help the BIOS falling back to next boot media.
24338 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
24340 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
24341 Poe Chen <poe.poechen@gmail.com>.
24343 2006-01-17 Marco Gerards <marco@gnu.org>
24345 * include/grub/normal.h: Include <grub/script.h>.
24346 (grub_command_list): Removed struct.
24347 (grub_command_list_t): Removed type.
24348 (grub_menu_entry): Remove members `num' and `command_list'. Add
24349 members `commands' and `sourcecode'.
24350 * include/grub/script.h: Add inclusion guards.
24351 (grub_script_cmd_menuentry): New struct.
24352 (grub_script_execute_menuentry): New prototype.
24353 (grub_script_lexer_record_start): Likewise.
24354 (grub_script_lexer_record_stop): Likewise.
24355 * normal/execute.c (grub_script_execute_menuentry): New function.
24356 * normal/lexer.c (record, recording, recordpos, recordlen): New
24358 (grub_script_lexer_record_start): New function.
24359 (grub_script_lexer_record_stop): Likewise.
24360 (recordchar): Likewise.
24361 (nextchar): Likewise.
24362 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
24363 2048 as the buffer size. Add the tokens `menuentry' and `@'.
24364 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
24365 (current_menu): New variable.
24366 (free_menu): Mainly rewritten.
24367 (grub_normal_menu_addentry): New function.
24368 (read_config_file): Rewritten.
24369 * normal/menu.c (run_menu_entry): Mainly rewritten.
24370 * normal/menu_entry.c (make_screen): Rewritten the code to insert
24372 (run): Mainly rewritten.
24373 * normal/parser.y (menu_entry): New variable.
24374 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
24375 (menuentry): New rule.
24376 (command): Add `menuentry'.
24377 (if_statement): Allow additional returns before `fi'.
24378 * normal/script.c (grub_script_create_cmdmenu): New function.
24380 2006-01-03 Marco Gerards <marco@gnu.org>
24382 * INSTALL: GNU Bison is required.
24383 * configure.ac: Rewritten the test to detect Bison.
24384 * Makefile.in (YACC): New variable. Reported by Xun Sun
24385 <xun.sun.cn@gmail.com>.
24387 2006-01-03 Marco Gerards <marco@gnu.org>
24389 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
24390 the HFS+ filesystem to filesystem blocks.
24391 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
24392 GCC warning is silenced.
24394 2006-01-03 Marco Gerards <marco@gnu.org>
24396 * partmap/apple.c (apple_partition_map_iterate): Convert the data
24397 read from disk from big endian to host byte order.
24399 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
24401 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
24403 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
24404 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
24405 embedded HFS+ filesystem.
24406 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
24407 (grub_hfs_sblock): Move from here...
24408 * include/grub/hfs.h: To here... New file.
24409 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
24411 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
24413 (grub_hfsplus_volheader): Change type of member `magic' to
24415 (grub_hfsplus_data): Add new member `embedded_offset'.
24416 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
24418 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
24419 Calculate the offset.
24421 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
24423 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
24425 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
24427 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
24429 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
24430 ENV->NAME is NULL after allocating ENV->VALUE.
24432 2005-12-25 Marco Gerards <marco@gnu.org>
24434 * kern/env.c (grub_env_set): Rewritten the error handling code.
24436 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
24438 * geninit.sh: Made more robust, and more portable.
24440 2005-12-25 Marco Gerards <marco@gnu.org>
24442 Add support for Apple HFS+ filesystems.
24444 * fs/hfsplus.c: New file.
24446 * DISTLIST: Added `fs/hfsplus.c'.
24448 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
24449 (hfsplus_mod_SOURCES): New variable.
24450 (hfsplus_mod_CFLAGS): Likewise.
24451 (hfsplus_mod_LDFLAGS): Likewise.
24452 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
24453 (grub_setup_SOURCES): Likewise.
24454 (grub_mkdevicemap_SOURCES): Likewise.
24455 (grub_emu_SOURCES): Likewise.
24456 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24458 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
24460 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
24462 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
24464 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
24465 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
24466 include/grub/parser.h, include/grub/script.h, kern/parser.c,
24467 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
24468 normal/lexer.c, normal/parser.y, normal/script.c, and
24470 Removed kern/sparc64/cache.c.
24472 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
24473 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
24476 * configure.ac (AC_INIT): Bumped to 1.92.
24478 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
24480 * kern/err.c (grub_error_push): Added new function to support error
24482 (grub_error_pop): Likewise.
24483 (grub_error_stack_items): New local variable to support error stacks.
24484 (grub_error_stack_pos): Likewise.
24485 (grub_error_stack_assert): Likewise.
24486 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
24488 (grub_print_error): Added support to print errors from error stack.
24490 * include/grub/err.h (grub_error_push): Added function prototype.
24491 (grub_error_pop): Likewise.
24493 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
24495 * configure.ac: Accept `powerpc64' as host_cpu.
24496 (amd64): Rename to `biarch32'.
24498 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
24499 non-cacheline-aligned addresses.
24501 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
24502 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
24503 if `size' is non-zero.
24505 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
24507 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
24508 and `cd' to make sure the filename is not prefixed with a
24510 (pkgdata_MODULES): Add `gpt.mod'.
24511 (gpt_mod_SOURCES): New variable.
24512 (gpt_mod_CFLAGS): Likewise.
24513 (gpt_mod_LDFLAGS): Likewise.
24515 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
24517 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
24520 * partmap/gpt.c: New file.
24522 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
24523 GPT partition map is detected.
24525 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
24527 * commands/i386/pc/play.c: New file.
24528 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
24529 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
24532 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
24534 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
24535 ((unused))' to silence gcc warning.
24537 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
24539 * configure.ac: Correct `AC_PROG_YACC' test.
24541 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24543 * util/powerpc/ieee1275/grub-install.in: Run the mount point
24544 check before installing files.
24546 2005-11-22 Mike Small <smallm@panix.com>
24548 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
24549 number regex so multidigit numbers are recognized correctly.
24551 2005-11-22 Mike Small <smallm@panix.com>
24553 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
24554 debugging message before attempting to claim memory.
24555 (grub_rescue_cmd_initrd): Add a claim debugging message and try
24556 multiple addresses in case of failure.
24558 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24560 * term/tparm.c (get_space): Remove empty `if' statement.
24562 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
24564 * kern/parser.c (check_varstate): Rename `state' to 's'.
24566 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24568 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
24569 variable definitions to the beginning of each function. Sort stack
24571 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
24572 `buf' argument to `char *'.
24574 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24576 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
24577 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
24578 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
24579 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
24580 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
24581 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
24582 configfile.mod, search.mod, gzio.mod and test.mod.
24583 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
24584 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
24585 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
24586 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
24587 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
24588 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
24589 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
24590 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
24591 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
24592 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
24593 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24594 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24595 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
24596 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
24597 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
24598 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
24599 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
24600 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
24601 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
24602 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
24603 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
24604 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
24605 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
24607 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
24609 (pkgdata_MODULES): Add test.mod.
24611 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24613 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
24614 appending to variables with "+=".
24615 (PModule): Use full pathname to generate *.lst filenames.
24617 * Makefile.in: Fixed list rules moved from genmk.rb.
24618 (.DELETE_ON_ERROR): New special target.
24619 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
24621 * conf/i386-pc.rmk: Include conf/common.mk.
24622 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
24623 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
24624 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
24625 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
24626 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
24627 configfile.mod, search.mod, gzio.mod and test.mod.
24628 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
24629 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
24630 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
24631 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
24632 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
24633 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
24634 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
24635 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
24636 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
24637 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
24638 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24639 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24640 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
24641 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
24642 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
24643 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
24644 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
24645 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
24646 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
24647 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
24648 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
24649 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
24650 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
24652 * conf/common.rmk: ... to here. New file.
24654 * conf/common.mk: New file.
24656 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
24658 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
24659 (grub_script.tab.c): ... here.
24661 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
24662 (grub_script.tab.c): ... here.
24664 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
24665 (grub_script.tab.c): ... here.
24667 * normal/command.c (grub_command_find): Fixed a memory leak of
24668 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
24670 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24672 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
24673 "@" which marks the start of a comment on ARM.
24674 (VARIABLE): Likewise.
24676 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24678 Add support for Linux/ADFS partition tables.
24680 * partmap/acorn.c: New file.
24682 * include/grub/acorn_filecore.h: Likewise.
24684 * DISTLIST: Added `partmap/acorn.c' and
24685 `include/grub/acorn_filecore.h'.
24687 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24689 (pkgdata_MODULES): Add `acorn.mod'.
24690 (acorn_mod_SOURCES): New variable.
24691 (acorn_mod_CFLAGS): Likewise.
24693 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
24695 (pkgdata_MODULES): Add `acorn.mod'.
24696 (acorn_mod_SOURCES): New variable.
24697 (acorn_mod_CFLAGS): Likewise.
24699 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
24700 (pkgdata_MODULES): Add `acorn.mod'.
24701 (acorn_mod_SOURCES): New variable.
24702 (acorn_mod_CFLAGS): Likewise.
24703 (acorn_mod_LDFLAGS): Likewise.
24705 * include/types.h (grub_disk_addr_t): New typedef.
24707 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
24709 * geninit.sh: New file.
24711 * geninitheader.sh: Likewise.
24713 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
24714 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
24715 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
24716 * commands/configfile.c (grub_configfile_init)
24717 (grub_configfile_fini): Likewise.
24718 * commands/default.c (grub_default_init, grub_default_fini):
24720 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
24721 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
24722 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
24723 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
24725 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
24726 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
24728 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
24729 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
24731 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
24733 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
24735 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
24736 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
24737 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
24738 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
24739 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
24740 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
24741 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
24742 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
24743 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
24744 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
24745 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
24746 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
24747 * partmap/amiga.c (grub_amiga_partition_map_init)
24748 (grub_amiga_partition_map_fini): Likewise.
24749 * partmap/apple.c (grub_apple_partition_map_init)
24750 (grub_apple_partition_map_fini): Likewise.
24751 * partmap/pc.c (grub_pc_partition_map_init)
24752 (grub_pc_partition_map_fini): Likewise.
24753 * partmap/sun.c (grub_sun_partition_map_init,
24754 grub_sun_partition_map_fini): Likewise.
24755 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
24758 * util/grub-emu.c: Include <grub_modules_init.h>.
24759 (main): Don't initialize and de-initialize any modules directly,
24760 use `grub_init_all' and `grub_fini_all' instead.
24762 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
24763 `grub_vesafb_mod_init'.
24764 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
24766 * term/i386/pc/vga.c (grub_vga_init): Renamed to
24767 `grub_vga_mod_init'. Updated all users.
24768 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
24770 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
24771 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
24774 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
24775 Generate a function to initialize the module in utilities.
24776 Updated all callers.
24777 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
24778 initialize the module in utilities. Updated all callers.
24780 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24782 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
24783 escape sequence and a literal ^L to clear the screen.
24785 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
24786 when returning from Open Firmware.
24788 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24790 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
24791 (grub_ofconsole_height): Likewise.
24792 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
24793 manually insert a '\n'.
24794 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
24795 `grub_ofconsole_height'. Return early if these are already set.
24797 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
24799 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
24800 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
24801 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
24802 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
24803 and `normal/script.c'.
24804 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24805 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24806 (test_mod_SOURCES): New variable.
24807 (test_mod_CFLAGS): Likewise.
24808 (test_mod_LDFLAGS): Likewise.
24809 (pkgdata_MODULES): Add `test.mod'.
24810 (grub_script.tab.c): New rule.
24811 (grub_script.tab.h): Likewise.
24813 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
24815 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24816 `commands/test.c', `normal/execute.c', `normal/lexer.c',
24817 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24818 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24819 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24820 (test_mod_SOURCES): New variable.
24821 (test_mod_CFLAGS): Likewise.
24822 (pkgdata_MODULES): Add `test.mod'.
24823 (grub_script.tab.c): New rule.
24824 (grub_script.tab.h): Likewise.
24826 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
24828 Add initial scripting support.
24830 * commands/test.c: New file.
24831 * include/grub/script.h: Likewise.
24832 * normal/execute.c: Likewise.
24833 * normal/function.c: Likewise.
24834 * normal/lexer.c: Likewise.
24835 * normal/parser.y: Likewise.
24836 * normal/script.c: Likewise.
24838 * configure.ac: Add `AC_PROG_YACC' test.
24840 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
24841 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
24842 `normal/function.c' and `normal/script.c'.
24843 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24844 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24845 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
24847 (pkgdata_MODULES): Add `test.mod'.
24848 (grub_script.tab.c): New rule.
24849 (grub_script.tab.h): Likewise.
24851 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
24853 * include/grub/normal.h (grub_test_init): New prototype.
24854 (grub_test_fini): Likewise.
24856 * normal/command.c: Include <grub/script.h>.
24857 (grub_command_execute): Rewritten.
24859 * util/grub-emu.c (main): Call `grub_test_init' and
24862 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24864 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
24866 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
24867 there are no pending characters.
24869 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24871 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
24872 `grub_strndup' to drop device arguments. Replace unnecessary
24873 `grub_strndup' with `grub_strdup'.
24875 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24877 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
24878 `debug' environment variable has been set.
24880 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
24882 * Makefile.in (install-local): Use $(DATA).
24883 (uninstall): Likewise.
24884 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
24885 (sbin_UTILITIES): ... to here.
24886 (sbin_SCRIPTS): New variable.
24887 (grub_install_SOURCES): New variable.
24888 * util/powerpc/ieee1275/grub-install.in: New file.
24889 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
24891 (add_segments): Call `grub_util_get_path'.
24893 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
24895 From Timothy Baldwin:
24896 * commands/ls.c (grub_ls_list_files): Close FILE with
24898 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
24900 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
24902 * include/grub/parser.h: New file.
24904 * kern/parser.c: Likewise.
24906 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
24907 (grub_setup_SOURCES): Likewise.
24908 (grub_probefs_SOURCES): Likewise.
24909 (grub_emu_SOURCES): Likewise.
24910 (kernel_img_HEADERS): Add `parser.h'.
24912 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24913 (grub_emu_SOURCES): Add `kern/parser.c'.
24914 (grubof_SOURCES): Likewise.
24916 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24917 (grubof_SOURCES): Add `kern/parser.c'.
24919 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
24921 * kern/misc.c (grub_split_cmdline): Removed function.
24923 * kern/rescue.c: Include <grub/parser.h>.
24924 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
24925 of `grub_split_cmdline'.
24927 * normal/command.c: Include <grub/parser.h>.
24928 (grub_command_execute): Use `grub_parser_split_cmdline' instead
24929 of `grub_split_cmdline'.
24931 * normal/completion.c: Include <grub/parser.h>.
24932 (cmdline_state): New variable.
24933 (iterate_dir): End the filename with a quote depending on the
24934 command line state.
24935 (get_state): new function.
24936 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
24937 split the arguments and determine the current argument. When the
24938 argument string is not quoted, escape all spaces.
24940 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24942 * normal/sparc64/setjmp.S: New file.
24944 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24946 * include/grub/sparc64/libgcc.h: New file.
24947 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
24948 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
24949 normal/sparc64/setjmp.c.
24951 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24953 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
24954 * kern/sparc64/cache.S: New file.
24955 * kern/sparc64/cache.c: Removed.
24956 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
24957 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
24959 (COMMON_LDFLAGS): Add -melf64_sparc.
24960 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
24961 (grubof_SOURCES): Use cache.S instead of cache.c.
24962 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
24963 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
24964 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
24966 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
24967 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
24968 (linux_mod_CFLAGS): Commented out.
24969 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
24970 out because module isn't built.
24971 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
24972 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
24973 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
24974 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
24975 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
24976 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24977 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24978 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
24979 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
24980 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
24981 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24982 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24983 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
24984 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
24986 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
24988 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
24989 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
24990 longer, because HFS should not be used on PC.
24992 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24994 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
24995 consistently within the loop.
24997 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
24999 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
25000 directory can not be read.
25002 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
25004 * configure.ac (AC_INIT): Increase the version number to 1.91.
25006 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
25007 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
25008 term/i386/pc/serial.c.
25010 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
25012 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
25013 file size must be permitted.
25015 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
25016 between %ah and %al.
25018 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
25020 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
25022 Call the hook with a NUL-terminated filename.
25023 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
25026 * kern/term.c (cursor_state): New variable.
25027 (grub_term_set_current): Reset the cursor state on a new
25029 (grub_setcursor): Rewritten to use CURSOR_STATE.
25030 (grub_getcursor): New function.
25032 * include/grub/term.h (grub_getcursor): New prototype.
25034 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
25035 integers on ARM. Reported by Timothy Baldwin
25036 <T.E.Baldwin99@members.leeds.ac.uk>.
25038 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
25040 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
25042 (grub_sfs_dir): Likewise.
25044 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
25046 Add support for the SFS filesystem.
25048 * fs/sfs.c: New file.
25050 * DISTLIST: Added `fs/sfs.c'.
25052 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
25053 (grub_probefs_SOURCES): Likewise.
25054 (grub_emu_SOURCES): Likewise.
25055 (pkgdata_MODULES): Add `sfs.mod'.
25056 (sfs_mod_SOURCES): New variable.
25057 (sfs_mod_CFLAGS): Likewise.
25058 (sfs_mod_LDFLAGS): Likewise.
25060 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
25061 (pkgdata_MODULES): Add `sfs.mod'.
25062 (sfs_mod_SOURCES): New variable.
25063 (sfs_mod_CFLAGS): Likewise.
25065 * util/grub-emu.c (main): Call `grub_sfs_init' and
25068 * include/grub/fs.h (grub_sfs_init): New prototype.
25069 (grub_sfs_fini): Likewise.
25071 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
25073 Add support for the AFFS filesystem.
25075 * fs/affs.c: New file.
25077 * DISTLIST: Added `fs/affs.c'.
25079 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
25080 (grub_probefs_SOURCES): Likewise.
25081 (grub_emu_SOURCES): Likewise.
25082 (pkgdata_MODULES): Add `affs.mod'.
25083 (affs_mod_SOURCES): New variable.
25084 (affs_mod_CFLAGS): Likewise.
25085 (affs_mod_LDFLAGS): Likewise.
25087 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
25088 (pkgdata_MODULES): Add `affs.mod'.
25089 (affs_mod_SOURCES): New variable.
25090 (affs_mod_CFLAGS): Likewise.
25092 * util/grub-emu.c (main): Call `grub_affs_init' and
25095 * include/grub/fs.h (grub_affs_init): New prototype.
25096 (grub_affs_fini): Likewise.
25098 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
25100 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
25102 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
25104 * configure.ac: Accept `x86_64' as host_cpu. In that case add
25107 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
25110 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
25111 (COMMON_LDFLAGS): New variable.
25112 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
25113 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
25114 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
25115 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
25116 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
25117 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
25118 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
25119 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
25120 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
25121 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
25122 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
25123 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
25124 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
25125 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
25126 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
25128 (normal_mod_ASFLAGS): Add `-m32'.
25130 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
25131 (grub_host_size_t, grub_host_ssize_t): New types.
25132 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
25133 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
25134 `GRUB_HOST_SIZEOF_VOID_P'.
25136 * include/grub/kernel.h (struct grub_module_header): Type of
25137 member offset changed to `grub_host_off_t'. Type of member size
25138 changed to `grub_host_size_t'.
25139 (struct grub_module_info): Type of member offset changed to
25140 `grub_host_off_t'. Type of member size changed to
25141 `grub_host_size_t'.
25143 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
25145 Make GRUB's kernel compliant to Multiboot Specification.
25147 * kern/i386/pc/startup.S (multiboot_header): New label.
25148 (multiboot_entry): Likewise.
25149 (multiboot_trampoline): Likewise.
25151 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25152 Increased to 0x4A0.
25154 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
25155 put parentheses after a question mark.
25156 [!GRUB_UTIL] (my_mod): New variable.
25158 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
25160 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
25162 Adds support for the XFS filesystem. Btrees are not supported
25165 * fs/xfs.c: New file.
25167 * DISTLIST: Added `fs/xfs.c'.
25169 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
25170 (grub_probefs_SOURCES): Likewise.
25171 (grub_emu_SOURCES): Likewise.
25172 (pkgdata_MODULES): Add `xfs.mod'.
25173 (xfs_mod_SOURCES): New variable.
25174 (xfs_mod_CFLAGS): Likewise.
25176 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
25177 (pkgdata_MODULES): Add `xfs.mod'.
25178 (xfs_mod_SOURCES): New variable.
25179 (xfs_mod_CFLAGS): Likewise.
25181 * util/grub-emu.c (main): Call `grub_xfs_init' and
25184 * include/grub/fs.h (grub_xfs_init): New prototype.
25185 (grub_xfs_fini): Likewise.
25188 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
25190 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
25191 color modes, allow greater than 16 colors to be configured as
25194 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
25196 * normal/completion.c (complete_arguments): Add the qualifier
25197 const into OPTIONS.
25199 From Omniflux <omniflux+lists@omniflux.com>:
25200 * include/grub/terminfo.h: New file.
25201 * include/grub/tparm.h: Likewise.
25202 * include/grub/i386/pc/serial.h: Likewise.
25203 * term/terminfo.c: Likewise.
25204 * term/tparm.c: Likewise.
25205 * term/i386/pc/serial.c: Likewise.
25206 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
25208 (terminfo_mod_SOURCES): New variable.
25209 (terminfo_mod_CFLAGS): Likewise.
25210 (serial_mod_SOURCES): Likewise.
25211 (serial_mod_CFLAGS): Likewise.
25213 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
25215 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
25216 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
25217 and kern/powerpc/ieee1275/cmain.c, respectively.
25219 * boot/powerpc/ieee1275/crt0.S: Moved to ...
25220 * kern/powerpc/ieee1275/crt0.S: ... here.
25222 * boot/powerpc/ieee1275/cmain.c: Moved to ...
25223 * kern/powerpc/ieee1275/cmain.c: ... here.
25225 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
25226 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
25227 instead of boot/powerpc/ieee1275/crt0.S and
25228 boot/powerpc/ieee1275/cmain.c, respectively.
25230 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
25231 sectors. It was not used anyway.
25233 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
25235 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
25236 `unused parameter' warning.
25238 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
25240 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
25242 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
25245 2005-08-28 Marco Gerards <metgerards@student.han.nl>
25247 * include/grub/normal.h (enum grub_completion_type): Added
25248 `GRUB_COMPLETION_TYPE_ARGUMENT'.
25250 * normal/cmdline.c (print_completion): Handle
25251 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
25252 * normal/menu_entry.c (store_completion): Likewise.
25254 * normal/completion.c (complete_arguments): New function.
25255 (grub_normal_do_completion): Call `complete_arguments' when the
25256 current words start with a dash.
25258 2005-08-27 Marco Gerards <metgerards@student.han.nl>
25260 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
25261 `gzio.mod' instead of `io.mod').
25263 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
25265 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
25266 (DISTDIRS): Added io and video.
25267 Rewrite the search routine to make an output consistently.
25269 * DISTLIST: Added conf/sparc64-ieee1275.mk,
25270 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
25271 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
25272 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
25273 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
25274 util/powerpc/ieee1275/misc.c.
25276 * include/grub/gzio.h: New file.
25277 * io/gzio.c: Likewise.
25279 * kern/file.c (grub_file_close): Call grub_device_close only if
25280 FILE->DEVICE is not NULL.
25282 * include/grub/mm.h [!NULL] (NULL): New macro.
25284 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
25286 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
25287 (pkgdata_MODULES): Added gzio.mod.
25288 (gzio_mod_SOURCES): New variable.
25289 (gzio_mod_CFLAGS): Likewise.
25291 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
25292 (pkgdata_MODULES): Added gzio.mod.
25293 (gzio_mod_SOURCES): New variable.
25294 (gzio_mod_CFLAGS): Likewise.
25296 * commands/cat.c: Include grub/gzio.h.
25297 (grub_cmd_cat): Use grub_gzfile_open instead of
25300 * commands/cmp.c: Include grub/gzio.h.
25301 (grub_cmd_cmp): Use grub_gzfile_open instead of
25304 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
25305 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
25307 (grub_rescue_cmd_module): Likewise.
25309 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
25311 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
25312 kern/sparc64/ieee1275/init.c because it contains _start.
25313 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
25315 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
25317 * configure.ac: Add support for sparc64 host with ieee1275
25319 * configure: Generated from configure.ac.
25320 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
25322 (grub_ofdisk_read): Likewise.
25323 (grub_ofdisk_open): Use %p to print pointer values, and cast the
25324 pointers as (void *) to remove a warning.
25325 (grub_ofdisk_close): Likewise.
25326 (grub_ofdisk_read): Likewise.
25327 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
25328 returns, so make it return void to remove a warning.
25329 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
25330 Corresponding prototype change.
25331 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
25332 values, and cast the pointers as (void *) to remove a warning.
25333 (grub_mm_dump): Likewise.
25334 * conf/sparc64-ieee1275.mk: New file.
25335 * conf/sparc64-ieee1275.rmk: Likewise.
25336 * include/grub/sparc64/setjmp.h: Likewise.
25337 * include/grub/sparc64/types.h: Likewise.
25338 * include/grub/sparc64/ieee1275/console.h: Likewise.
25339 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
25340 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
25341 * include/grub/sparc64/ieee1275/time.h: Likewise.
25342 * kern/sparc64/cache.c: Likewise.
25343 * kern/sparc64/dl.c: Likewise.
25344 * kern/sparc64/ieee1275/init.c: Likewise.
25345 * kern/sparc64/ieee1275/openfw.c: Likewise.
25347 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
25349 * util/console.c (grub_ncurses_putchar): If C is greater than
25350 0x7f, set C to a question mark.
25351 (grub_ncurses_getcharwidth): New function.
25352 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
25355 * normal/menu.c (print_entry): Made aware of Unicode. First,
25356 convert TITLE to UCS-4, and predict the cursor position by
25359 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
25361 * kern/misc.c (grub_utf16_to_utf8): Likewise.
25363 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
25365 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
25366 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
25369 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
25370 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
25371 grub_strcpy and grub_strlen. Take it into account that a space
25372 character is inserted as a delimiter.
25374 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
25376 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
25377 invalid magic in the error.
25379 * commands/search.c: New file.
25381 * util/grub-emu.c (main): Call grub_search_init and
25384 * kern/rescue.c (grub_rescue_print_disks): Removed.
25385 (grub_rescue_print_devices): New function.
25386 (grub_rescue_cmd_ls): Use grub_device_iterate with
25387 grub_rescue_print_devices instead of grub_disk_dev_iterate with
25388 grub_rescue_print_disks.
25390 * kern/partition.c (grub_partition_iterate): Return the result of
25391 PARTMAP->ITERATE instead of GRUB_ERRNO.
25393 * kern/device.c: Include grub/partition.h.
25394 (grub_device_iterate): New function.
25396 * include/grub/partition.h (grub_partition_iterate): Return int
25397 instead of grub_err_t.
25399 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
25401 [GRUB_UTIL] (grub_search_fini): Likewise.
25403 * include/grub/device.h (grub_device_iterate): New prototype.
25405 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25407 (pkgdata_MODULES): Added search.mod.
25408 (search_mod_SOURCES): New variable.
25409 (search_mod_CFLAGS): Likewise.
25411 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
25412 (pkgdata_MODULES): Added search.mod.
25413 (search_mod_SOURCES): New variable.
25414 (search_mod_CFLAGS): Likewise.
25416 * commands/ls.c (grub_ls_list_disks): Renamed to ...
25417 (grub_ls_list_devices): ... this, and use grub_device_iterate.
25418 All callers changed.
25420 * DISTLIST: Added commands/search.c.
25422 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
25424 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
25426 (grub_getcharwidth): New function.
25428 * kern/misc.c (grub_utf8_to_ucs4): New function.
25430 * include/grub/term.h (struct grub_term): Added a new member
25432 (grub_getcharwidth): New prototype.
25434 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
25436 * term/i386/pc/console.c (map_char): New function. Segregated from
25437 grub_console_putchar.
25438 (grub_console_putchar): Use map_char.
25439 (grub_console_getcharwidth): New function.
25440 (grub_console_term): Specified grub_console_getcharwidth as
25443 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
25444 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
25446 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
25448 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
25449 on grub_strtoul completely.
25450 (write_char): Declare local variables in the beginning of the
25452 (grub_vesafb_getcharwidth): New function.
25453 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
25456 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
25458 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
25459 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
25460 commands/i386/pc/vbetest.c.
25462 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
25463 call grub_vbe_get_controller_info again, because the returned
25464 information is volatile.
25465 (grub_vbe_set_video_mode): Mostly rewritten.
25466 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
25467 grub_vbe_status_t correctly.
25468 (grub_vbe_get_video_mode_info): Likewise.
25469 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
25470 several if statements.
25472 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
25473 * commands/i386/pc/vbeinfo.c: ... this.
25475 * commands/i386/pc/vbe_test.c: Renamed to ...
25476 * commands/i386/pc/vbetest.c: ... this.
25478 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
25480 (grub_cmd_vbeinfo): ... this. Save video modes before
25481 iterating. Skip a video mode, if it is not available, not enough
25482 information is given or it is monochrome. Show the memory
25483 model. Leave the interpretation of MODEVAR to grub_strtoul
25485 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
25486 (GRUB_MOD_FINI): Likewise.
25488 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
25489 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
25490 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
25491 duplicated grub_env_get. Leave the interpretation of MODEVAR to
25492 grub_strtoul completely.
25493 (real2pm): Removed.
25494 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
25495 (GRUB_MOD_FINI): Likewise.
25497 * normal/misc.c: Include grub/mm.h.
25499 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
25500 vbe_list_modes with vbetest.mod and vbeinfo.mod.
25501 (vbe_list_modes_mod_SOURCES): Removed.
25502 (vbe_list_modes_mod_CFLAGS): Likewise.
25503 (vbe_test_mod_SOURCES): Likewise.
25504 (vbe_test_mod_CFLAGS): Likewise.
25505 (vbeinfo_mod_SOURCES): New variable.
25506 (vbeinfo_mod_CFLAGS): Likewise.
25507 (vbetest_mod_SOURCES): Likewise.
25508 (vbetest_mod_CFLAGS): Likewise.
25510 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
25512 * normal/misc.c: New file.
25514 * DISTLIST: Added normal/misc.c.
25516 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
25517 DISK to HOOK. Call HOOK with DISK.
25518 * partmap/apple.c (apple_partition_map_iterate): Likewise.
25519 * partmap/pc.c (pc_partition_map_iterate): Likewise.
25520 * partmap/sun.c (sun_partition_map_iterate): Likewise.
25522 * normal/menu_entry.c (struct screen): Added a new member
25523 "completion_shown".
25524 (completion_buffer): New global variable.
25525 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
25526 (store_completion): New function.
25527 (complete): Likewise.
25528 (clear_completions): Likewise.
25529 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
25530 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
25531 a tab, call complete.
25533 * normal/completion.c (disk_dev): Removed.
25534 (print_simple_completion): Likewise.
25535 (print_partition_completion): Likewise.
25536 (print_func): New global variable.
25537 (add_completion): Do not take the arguments WHAT or PRINT any
25538 longer. Added a new argument TYPE. Instead of printing directly,
25539 call PRINT_FUNC if not NULL.
25540 All callers changed.
25541 (complete_device): Use a local variable DEV instead of
25542 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
25543 (grub_normal_do_completion): Take a new argument HOOK. Do not
25544 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
25545 empty string, return NULL instead.
25546 All callers changed.
25548 * normal/cmdline.c (print_completion): New function.
25550 * kern/partition.c (grub_partition_iterate): Add an argument DISK
25552 All callers changed.
25554 * kern/disk.c (grub_print_partinfo): Removed.
25556 * include/grub/partition.h (struct grub_partition_map): Add a new
25557 argument DISK into HOOK of ITERATE.
25558 (grub_partition_iterate): Add a new argument DISK to HOOK.
25560 * include/grub/normal.h (enum grub_completion_type): New enum.
25561 (grub_completion_type_t): New type.
25562 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
25563 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
25564 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
25565 (GRUB_COMPLETION_TYPE_FILE): Likewise.
25566 (grub_normal_do_completion): Added a new argument HOOK.
25567 (grub_normal_print_device_info): New prototype.
25569 * include/grub/disk.h (grub_print_partinfo): Removed.
25571 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
25572 (normal_mod_SOURCES): Likewise.
25573 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25574 (normal_mod_SOURCES): Likewise.
25576 * commands/ls.c (grub_ls_list_disks): Use
25577 grub_normal_print_device_info instead of grub_print_partinfo. Free
25579 (grub_ls_list_files): Use grub_normal_print_device_info instead of
25580 duplicating the code.
25582 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
25584 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
25585 follow GCS more precisely.
25586 * commands/i386/pc/vbe_test.c: Likewise.
25587 * include/grub/i386/pc/vbe.h: Likewise.
25588 * term/i386/pc/vesafb.c: Likewise.
25589 * video/i386/pc/vbe.c: Likewise.
25591 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
25593 * DISTLIST: Added term/i386/pc/vesafb.c
25594 DISTLIST: Added video/i386/pc/vbe.c
25595 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
25596 DISTLIST: Added commands/i386/pc/vbe_test.c.
25597 * commands/i386/pc/vbe_list_modes.c: New file.
25598 * commands/i386/pc/vbe_test.c: Likewise.
25599 * term/i386/pc/vesafb.c: Likewise.
25600 * video/i386/pc/vbe.c: Likewise.
25601 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
25602 (grub_vbe_probe) Added prototype.
25603 (grub_vbe_set_video_mode) Likewise.
25604 (grub_vbe_get_video_mode) Likewise.
25605 (grub_vbe_get_video_mode_info) Likewise.
25606 (grub_vbe_set_pixel_rgb) Likewise.
25607 (grub_vbe_set_pixel_index) Likewise.
25608 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
25609 (pkgdata_MODULES): Added vesafb.mod.
25610 (pkgdata_MODULES): Added vbe_list_modes.mod.
25611 (pkgdata_MODULES): Added vbe_test.mod.
25612 (vbe_mod_SOURCES): Added.
25613 (vbe_mod_CFLAGS): Likewise.
25614 (vesafb_mod_SOURCES): Likewise.
25615 (vesafb_mod_CFLAGS): Likewise.
25616 (vbe_list_modes_mod_SOURCES): Likewise.
25617 (vbe_list_modes_mod_CFLAGS): Likewise.
25618 (vbe_test_mod_SOURCES): Likewise.
25619 (vbe_test_mod_CFLAGS): Likewise.
25621 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
25623 * normal/command.c (grub_command_execute): If INTERACTIVE is
25624 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
25625 CMDLINE. Disable the pager if INTERACTIVE is true.
25626 All callers are changed.
25628 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
25629 before reading a config file.
25630 * normal/main.c (read_config_file): Even if a command is not
25631 found, register it if it is within an entry.
25633 * util/grub-emu.c: Include sys/types.h and unistd.h.
25634 (options): Added --hold.
25635 (struct arguments): Added a new member "hold".
25636 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
25638 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
25639 cleared by a debugger, if it is not zero.
25641 * include/grub/normal.h (grub_command_execute): Add an argument
25644 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
25646 * DISTLIST: Added include/grub/i386/pc/vbe.h.
25648 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
25650 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
25651 program with another one, because the old one didn't detect a bug
25652 in gcc-3.4. Always use regparm 2, because the new test is still
25653 not enough for gcc-4.0. Someone must investigate a simple test
25654 case which detects a bug in gcc-4.0.
25656 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
25658 * DISTLIST: Added normal/completion.c.
25660 * normal/completion.c: New file.
25662 * term/i386/pc/console.c (grub_console_getwh): New function.
25663 (grub_console_term): Assign grub_console_getwh to getwh.
25665 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
25666 function is defined in normal/completion.c as
25667 grub_normal_do_completion.
25668 (grub_cmdline_get): Use grub_normal_do_completion instead of
25671 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
25672 returns non-zero, otherwise return 0.
25673 (grub_partition_iterate): First, probe the partition map. Then,
25674 call ITERATE only for this partition map.
25676 * kern/misc.c (grub_strncmp): Rewritten.
25678 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
25679 returns non-zero. Otherwise return 0.
25681 * include/grub/partition.h (grub_partition_map_iterate): Return
25682 int instead of void.
25684 * include/grub/normal.h (grub_normal_do_completion): New prototype.
25686 * include/grub/misc.h (grub_strncmp): Change the type of N to
25689 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
25692 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
25693 unsigned explicitly before comparing it with I.
25695 * kern/main.c (grub_env_write_root): Add the attribute unused into
25698 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25699 normal/completion.c.
25700 (normal_mod_SOURCES): Likewise.
25701 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
25702 (normal_mod_SOURCES): Likewise.
25704 * normal/command.c (grub_iterate_commands): If ITERATE returns
25705 non-zero, return one immediately.
25707 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
25709 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
25710 * kern/i386/pc/startup.S: Updated Global Descriptor table's
25712 (grub_vbe_get_controller_info): New function.
25713 (grub_vbe_get_mode_info): Likewise.
25714 (grub_vbe_set_mode): Likewise.
25715 (grub_vbe_get_mode): Likewise.
25716 (grub_vbe_set_memory_window): Likewise.
25717 (grub_vbe_get_memory_window): Likewise.
25718 (grub_vbe_set_scanline_length): Likewise.
25719 (grub_vbe_get_scanline_length): Likewise.
25720 (grub_vbe_set_display_start): Likewise.
25721 (grub_vbe_get_display_start): Likewise.
25722 (grub_vbe_set_palette_data): Likewise.
25723 * include/grub/i386/pc/vbe.h: New file.
25725 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25727 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25728 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
25729 * DISTLIST: Likewise.
25730 * kern/ieee1275/of.c: Moved to ...
25731 * kern/ieee1275/ieee1275.c: ... here.
25733 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25735 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
25736 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
25737 Pass 0 as `end' parameter to grub_strtoul().
25739 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25741 * include/grub/powerpc/ieee1275/console.h: Do not include
25742 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
25744 (grub_console_cur_color): Remove i386-specific prototype.
25745 (grub_console_real_putchar): Likewise.
25746 (grub_console_checkkey): Likewise.
25747 (grub_console_getkey): Likewise.
25748 (grub_console_getxy): Likewise.
25749 (grub_console_gotoxy): Likewise.
25750 (grub_console_cls): Likewise.
25751 (grub_console_setcursor): Likewise.
25752 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
25753 Include <grub/machine/console.h>.
25754 * term/ieee1275/ofconsole.c: Likewise.
25756 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
25758 * Makefile.in (LIBLZO): New variable.
25760 * configure.ac: Check for LZO version 2.
25762 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
25763 lzo/lzo1x.h instead of lzo1x.h.
25765 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
25768 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
25769 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
25771 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
25772 copying the data from PARTITION to P.
25774 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25776 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
25777 negative, unload the module.
25779 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
25780 map is "pc_partition_map" but not "pc".
25781 (usage): Fix the description. The options are --boot-image and
25782 --core-image but not --boot-file or --core-file.
25783 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
25784 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
25787 * util/i386/pc/grub-install.in: Do not specify --boot-file or
25788 --core-file. Specify INSTALL_DEVICE as an argument.
25790 * util/console.c: Include config.h.
25791 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
25792 [HAVE_NCURSES_H]: Include ncurses.h.
25793 [HAVE_CURSES_H]: Include curses.h.
25794 [!A_NORMAL] (A_NORMAL): Defined as zero.
25795 [!A_STANDOUT] (A_STANDOUT): Likewise.
25797 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
25799 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
25801 * configure.ac: Check for curses libraries and headers.
25803 * Makefile.in (LIBCURSES): New variable.
25805 * genmk.rb (Script::rule): Set the executable bits.
25807 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
25808 name of the PC partition map is "pc_partition_map" but not "pc".
25810 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25812 * util/i386/pc/grub-install.in (grub_probefs): New variable.
25813 (modules): Likewise.
25814 (usage): Added descriptions for --modules and --grub-probefs.
25815 Handle --modules and --grub-probefs. Save the arguments in MODULES
25816 and GRUB_PROBEFS, respectively.
25817 Auto-detect a filesystem module against GRUBDIR. If the result is
25818 empty and modules are not specified explicitly, abort the
25819 installation. Add the result to MODULES.
25821 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
25822 disk/powerpc/ieee1275/ofdisk.c,
25823 include/grub/powerpc/ieee1275/init.h and
25824 term/powerpc/ieee1275/ofconsole.c.
25825 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
25826 term/ieee1275/ofconsole.c.
25828 * include/grub/powerpc/ieee1275/console.h: Resurrected.
25830 * COPYING: Upgraded to the latest version. Only the address of the
25831 FSF office has changed.
25833 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25835 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25836 kern/ieee1275.c with kern/ieee1275/of.c.
25838 * kern/ieee1275.c: Moved to ...
25839 * kern/ieee1275/of.c: ... here.
25841 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
25843 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
25846 * config.guess: Updated to the latest version from gnulib.
25847 * config.sub: Likewise.
25848 * install.sh: Likewise.
25849 * mkinstalldirs: Likewise.
25851 * include/grub/console.h: Removed. This file is arch-specific. Do
25852 not put this in include/grub.
25854 * include/grub/i386/pc/console.h: Resurrected.
25856 * util/console.c: Include grub/machine/console.h instead of
25858 * util/grub-emu.c: Likewise.
25860 2005-08-04 Marco Gerards <metgerards@student.han.nl>
25862 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
25865 From Vincent Pelletier <subdino2004@yahoo.fr>
25866 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
25867 Redefined to use grub_getwh.
25868 (grub_term): New member named getwh.
25869 (grub_getwh): New prototype.
25870 * kern/term.c (grub_getwh): New function.
25871 * term/i386/pc/console.c (grub_console_getwh): New function.
25872 (grub_console_term): New member `getwh'.
25873 * term/i386/pc/vga.c (grub_vga_getwh): New function.
25874 (grub_vga_term): New member `getwh'.
25875 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
25877 (grub_ofconsole_getw): New function.
25878 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
25879 (grub_ofconsole_term): New field named getwh and new initial
25882 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
25884 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
25885 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
25886 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
25887 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
25888 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
25889 of <grub/machine/ieee1275.h>.
25890 * commands/ieee1275/reboot.c: Likewise.
25891 * boot/powerpc/ieee1275/ieee1275.c: Move ...
25892 * kern/ieee1275.c: ... to here. All users updated. Change all
25893 parameter structs to use new type `grub_ieee1275_cell_t'.
25894 * term/powerpc/ieee1275/ofconsole.c: Move ...
25895 * term/ieee1275/ofconsole.c: ... to here. All users updated.
25896 * disk/powerpc/ieee1275/ofdisk.c: Move ...
25897 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
25898 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
25900 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
25901 Remove unused prototypes. All users updated.
25902 * include/grub/powerpc/ieee1275/console.h: Removed.
25903 * include/grub/powerpc/ieee1275/ieee1275.h: Define
25904 `grub_ieee1275_cell_t'.
25905 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
25906 Cast comparisons with -1 to the correct type.
25907 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
25908 type to match `grub_ieee1275_entry_fn'.
25910 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
25912 * DISTLIST: Added util/i386/pc/grub-probefs.c.
25914 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
25915 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
25917 (grub_probefs_SOURCES): New variable.
25919 * util/i386/pc/grub-probefs.c: New file.
25921 * util/i386/pc/grub-setup.c (main): Call
25922 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
25923 grub_hfs_init and grub_jfs_init to initialize the system. Call
25924 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
25925 grub_pc_partition_map_fini to finish the system.
25927 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
25929 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
25931 (grub_multiboot_load_elf32): Likewise.
25932 (grub_multiboot_is_elf64): Likewise.
25933 (grub_multiboot_load_elf64): Likewise.
25934 (grub_multiboot_load_elf): Likewise.
25935 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
25936 an ELF32 or ELF64 file.
25937 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
25939 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
25940 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
25941 NULL before calling FS->LABEL.
25942 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
25943 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
25944 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
25945 before calling FS->LABEL.
25947 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
25949 * util/i386/pc/grub-install.in (datadir): New variable.
25951 (pkgdatadir): New variable.
25952 (pkglibdir): Removed.
25954 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
25956 * DISTLIST: Added util/i386/pc/grub-install.in.
25958 * util/i386/pc/grub-install.in: New file.
25960 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
25961 (grub_install_SOURCES): Likewise.
25963 * genmk.rb: Added support for scripts.
25964 (Script): New class.
25965 (scripts): New variable.
25967 * Makefile.in (install-local): Install sbin_SCRIPTS by
25969 (uninstall): Remove sbin_SCRIPTS.
25971 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
25972 device, try to get a GRUB device by
25973 grub_util_biosdisk_get_grub_dev.
25976 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
25977 description for --device-map.
25979 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25981 Change the semantics of variable hooks. They now return strings
25982 instead of error values.
25984 * util/i386/pc/grub-setup.c: Include grub/env.h.
25985 (setup): Use grub_device_set_root instead of grub_env_set.
25987 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
25988 grub_env_get instead of grub_device_set_root and
25989 grub_device_get_root, respectively.
25991 * kern/main.c (grub_env_write_root): New function.
25992 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
25993 grub_env_set instead of grub_device_set_root.
25995 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
25997 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
25998 rather than calling ENV->WRITE_HOOK afterwards.
25999 (grub_env_get): Return the result of ENV->READ_HOOK rather than
26000 passing a pointer of a pointer.
26001 (grub_register_variable_hook): Change the types of "read_hook" and
26002 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
26004 Allocate the default empty string on the heap, because this string
26005 may be freed later.
26007 * kern/device.c: Include grub/env.h.
26008 (grub_device_set_root): Removed.
26009 (grub_device_get_root): Likewise.
26010 (grub_device_open): Use grub_env_get instead of
26011 grub_device_get_root.
26013 * include/grub/env.h (grub_env_read_hook_t): New type.
26014 (grub_env_write_hook_t): Likewise.
26015 (grub_env_var): Change the types of "read_hook" and "write_hook"
26016 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
26017 (grub_register_variable_hook): Likewise.
26019 * include/grub/device.h (grub_device_set_root): Removed.
26020 (grub_device_set_root): Likewise.
26022 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
26023 make sure that DIRNAME terminates with '/', so that
26024 grub_fat_find_dir will fail if PATH is not a directory.
26026 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
26028 Use the qualifier auto for print_files and print_files_long.
26029 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
26031 Put a newline only if there is no error.
26032 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
26035 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
26037 * kern/partition.c (grub_partition_probe): Initialize PART to
26038 NULL. Otherwise, when no partition map is registered, this returns
26041 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
26043 * partmap/apple.c (apple_partition_map_iterate): Check if POS
26044 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
26047 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
26049 * commands/ls.c (grub_ls_list_disks): Print the filesystem
26050 information on each device, if it does not have partitions. Print
26051 "Device" instead of "Disk", because this function is not specific
26054 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
26055 static to ensure that it is put on the memory rather than a
26058 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
26060 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
26061 (grub_cat_init): Likewise.
26062 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
26063 (options): Likewise.
26064 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
26065 (grub_configfile_init): Likewise.
26066 * font/manager.c (GRUB_MOD_INIT): Likewise.
26067 * commands/help.c (GRUB_MOD_INIT): Likewise.
26068 (grub_help_init): Likewise.
26069 * normal/command.c (grub_command_init): Likewise.
26070 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
26071 * disk/loopback.c (grub_loop_init): Likewise.
26072 (GRUB_MOD_INIT): Likewise.
26073 * commands/ls.c (grub_ls_init): Likewise.
26074 (GRUB_MOD_INIT): Likewise.
26075 (options): Likewise.
26076 * commands/boot.c (grub_boot_init): Likewise.
26077 (GRUB_MOD_INIT): Likewise.
26078 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
26079 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
26080 (GRUB_MOD_INIT): Likewise.
26081 * commands/cmp.c (grub_cmp_init): Likewise.
26082 (GRUB_MOD_INIT): Likewise.
26084 * normal/arg.c: Use <> instead of "" to include header files.
26085 (SHORT_ARG_HELP): New macro.
26086 (SHORT_ARG_USAGE): Likewise.
26087 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
26088 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
26090 (find_short): Check if C is 'h' or 'u' explicitly.
26091 (grub_arg_show_help): Use space characters instead of tabs. Treat
26092 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
26093 are shown with --help and --usage only if they are not used for
26094 the command itself.
26095 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
26098 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
26099 const into "longarg". Change the type of "shortarg" to int.
26101 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
26103 * boot/i386/pc/boot.S (boot_drive_check): New label.
26105 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
26108 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
26109 which do not pass a boot drive correctly. Copied from GRUB Legacy.
26111 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
26113 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
26114 When turning off Gate A20, skip the check and return immediately,
26115 because this is not fatal usually.
26117 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
26119 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
26120 be 0x7C00 instead of 0x8000.
26122 * boot/i386/pc/pxeboot.S: Rewritten.
26124 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
26126 (gate_a20_check_state): Read a byte from 0x108000. Invert the
26129 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
26131 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
26132 robustness. This routine now supports a BIOS call and System
26133 Control Port A to modify the gate A20.
26135 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
26136 Increased to 0x440.
26138 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
26140 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
26141 device path and resulting ihandle.
26142 (grub_ofdisk_close): dprintf the ihandle being closed.
26143 (grub_ofdisk_read): dprintf function parameters.
26144 * kern/mm.c (grub_mm_init_region): Likewise.
26145 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
26146 (grub_linux_boot): dprintf the Linux entry point, initrd address and
26147 size, and boot arguments.
26148 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
26149 before loading into memory.
26150 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
26151 before loading into memory.
26153 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
26155 * kern/mm.c: Added much documentation.
26156 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
26157 8, set to 5 instead of 8.
26159 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
26161 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
26163 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
26164 (grub_mkdevicemap_SOURCES): New variable.
26166 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
26167 lib/device.c of GRUB Legacy.
26169 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
26171 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
26172 instead of PATH is NULL.
26174 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
26176 * commands/cmp.c (BUFFER_SIZE): New macro.
26177 (grub_cmd_cmp): Close the right file at the right time. Compare
26178 only data just read. Don't report files of different size as
26179 identical. Dynamically allocate buffers. Move variable
26180 declarations at the beginning of function.
26182 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
26184 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
26187 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
26189 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
26190 when backspace is pressed at beginning of line.
26192 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
26194 * DISTLIST: Added genfslist.sh.
26196 * normal/main.c (fs_module_list): New variable.
26197 (autoload_fs_module): New function.
26198 (read_fs_list): Likewise.
26199 (grub_normal_execute): Call read_fs_list.
26201 * kern/fs.c (grub_fs_autoload_hook): New variable.
26202 (grub_fs_probe): Added support for auto-loading.
26204 * include/grub/normal.h (struct grub_fs_module_list): New struct.
26205 (grub_fs_module_list_t): New type.
26207 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
26208 (grub_fs_autoload_hook): New prototype.
26210 * genfslist.sh: New file.
26212 * genmk.rb: Added a rule to generate a filesystem list.
26214 2005-06-30 Marco Gerards <metgerards@student.han.nl>
26216 * configure.ac: Fix the test for cross-compiling.
26218 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
26219 define GRUB_UTIL anymore.
26221 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
26222 so this function works on other systems than just big endian.
26223 (load_modules): Likewise.
26224 (add_segments): Likewise.
26226 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
26228 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
26229 contains `l' modifier, get a long from va_arg().
26231 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
26233 * kern/mm.c (grub_free): If the next free block which is being
26234 merged is the first free block, set the first block to the block
26236 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
26238 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
26240 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
26241 `grub_ieee1275_chosen'.
26243 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
26245 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
26246 (grub_ieee1275_chosen): New variable.
26247 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
26249 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
26250 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26251 Rename first argument to `phandle' for consistency.
26252 (grub_ieee1275_get_property_length): Likewise.
26253 (grub_ieee1275_next_property): Likewise. Change type of first argument
26254 to grub_ieee1275_phandle_t.
26255 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
26256 Move export next to declaration.
26257 (grub_ieee1275_chosen): New variable.
26258 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
26259 Correct cosmetic typo.
26260 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
26261 `grub_ieee1275_chosen'.
26262 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
26263 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
26264 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
26265 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
26266 `grub_ieee1275_chosen'.
26268 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
26270 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
26272 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
26273 /chosen/bootargs as "variable=value" pairs.
26275 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
26277 * include/grub/misc.h (grub_dprintf): New macro.
26278 (grub_real_dprintf): New prototype.
26279 (grub_strword): Likewise.
26280 (grub_iswordseparator): Likewise.
26281 * kern/misc.c (grub_real_dprintf): New function.
26282 (grub_strword): Likewise.
26283 (grub_iswordseparator): Likewise.
26285 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
26287 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
26288 (roundup): Remove macro.
26289 (grub_ieee1275_flags): Make static.
26290 (grub_ieee1275_realmode): Remove.
26291 (grub_ieee1275_test_flag): New function.
26292 (grub_ieee1275_set_flag): Likewise.
26293 (find_options): Rename to `grub_ieee1275_find_options'; update
26294 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
26295 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
26296 (cmain): New prototype.
26297 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
26298 `grub_ieee1275_flags' directly.
26299 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
26300 machine/biosdisk.h.
26301 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
26302 Don't include grub/machine/init.h.
26303 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
26304 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
26306 (grub_ieee1275_realmode): Likewise.
26307 (grub_ieee1275_flag): New enum.
26308 (grub_ieee1275_test_flag): New prototype.
26309 (grub_ieee1275_set_flag): New prototype.
26310 * include/grub/powerpc/ieee1275/init.h: Remove file.
26311 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
26312 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
26313 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
26314 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
26316 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
26317 `grub_ieee1275_test_flag'.
26318 (grub_ieee1275_encode_devname): Likewise.
26320 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
26322 * include/grub/powerpc/ieee1275/ieee1275.h
26323 (grub_ieee1275_encode_devname): New prototype.
26324 (grub_ieee1275_get_filename): Likewise.
26325 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
26327 (grub_set_prefix): Likewise.
26328 (grub_machine_init): Call grub_set_prefix.
26329 * kern/powerpc/ieee1275/openfw.c: Fix typos.
26330 (grub_parse_type): New enum.
26331 (grub_ieee1275_get_devargs): New function.
26332 (grub_ieee1275_get_devname): Likewise.
26333 (grub_ieee1275_parse_args): Likewise.
26334 (grub_ieee1275_get_filename): Likewise.
26335 (grub_ieee1275_encode_devname): Likewise.
26337 2005-03-30 Marco Gerards <metgerards@student.han.nl>
26339 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
26340 `grub_loader_unset'.
26342 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
26344 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
26345 instead of grub_ieee1275_interpret.
26346 (grub_halt_init): New function.
26347 (grub_halt_fini): Likewise.
26348 (GRUB_MOD_INIT): Correct message grammar.
26349 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
26350 instead of grub_ieee1275_interpret.
26351 (grub_reboot_init): New function.
26352 (grub_reboot_fini): Likewise.
26353 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
26354 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
26355 util/i386/pc/misc.c with commands/ieee1275/halt.c,
26356 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
26357 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
26359 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
26361 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
26363 (grub_halt): Likewise.
26364 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
26365 (cmain): Remove __attribute__((unused)).
26366 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
26367 (grub_heap_len): Likewise.
26368 (grub_machine_fini): New function.
26369 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
26370 (grub_halt): Likewise.
26371 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
26373 * util/powerpc/ieee1275/misc.c: New file.
26375 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
26377 * DISTLIST: New file.
26378 * gendistlist.sh: Likewise.
26380 * Makefile.in (COMMON_DISTFILES): Removed.
26381 (BOOT_DISTFILES): Likewise.
26382 (CONF_DISTFILES): Likewise.
26383 (DISK_DISTFILES): Likewise.
26384 (FS_DISTFILES): Likewise.
26385 (INCLUDE_DISTFILES): Likewise.
26386 (KERN_DISTFILES): Likewise.
26387 (LOADER_DISTFILES): Likewise.
26388 (TERM_DISTFILES): Likewise.
26389 (UTIL_DISTFILES): Likewise.
26390 (DISTFILES): Likewise.
26391 (uninstall): Uninstall files in $(pkgdata_DATA).
26392 (DISTLIST): New target.
26393 (distdir): Use the contents of the file DISTLIST to get a list of
26396 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
26398 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
26399 descriptor. This is ported from GRUB Legacy.
26401 * gencmdlist.sh: Added an extra semicolon to make it work with
26402 old sed versions. Reported by Robert Bihlmeyer
26403 <robbe@orcus.priv.at>.
26405 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
26407 Automatic loading of commands is supported.
26409 * normal/main.c (read_command_list): New function.
26410 (grub_normal_execute): Call read_command_list.
26412 * normal/command.c (grub_register_command): Return zero or CMD.
26413 Allocate CMD->NAME from the heap.
26414 Initialize CMD->MODULE_NAME to zero.
26415 Find the same name as well. If the same command is found and it is
26416 a dummy command, overwrite members. If it is not a dummy command,
26418 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
26419 (grub_command_find): If a dummy command is found, load a module
26420 and retry to find a command only once.
26422 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
26423 make sure that each command is loaded.
26425 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
26427 (struct grub_command): Remove const from the member `name'.
26428 Add a new member `module_name'.
26429 (grub_register_command): Return grub_command_t.
26431 * commands/help.c (grub_cmd_help): Call grub_command_find to make
26432 sure that each command is loaded.
26434 * genmk.rb (PModule::rule): Specify a module name without the
26435 suffix ".mod" to gencmdlist.sh.
26437 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
26439 * gencmdlist.sh: New file.
26441 * genmk.rb (PModule::rule): Generate a rule for a command list.
26443 Generate command.lst from $(COMMANDFILES).
26445 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
26446 (DATA): Added $(pkgdata_DATA).
26447 (install-local): Install files in $(pkgdata_DATA).
26449 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
26451 * term/i386/pc/vga.c (debug_command): Removed.
26452 (GRUB_MOD_INIT): Do not register the command "debug".
26454 From Hollis Blanchard:
26455 * commands/configfile.c: New file.
26456 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26457 commands/configfile.c.
26458 (pkgdata_MODULES): Added configfile.mod.
26459 (configfile_mod_SOURCES): New variable.
26460 (configfile_mod_CFLAGS): Likewise.
26461 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
26462 commands/configfile.c.
26463 (pkgdata_MODULES): Added configfile.mod.
26464 (configfile_mod_SOURCES): New variable.
26465 (configfile_mod_CFLAGS): Likewise.
26466 * util/grub-emu.c (main): Call grub_configfile_init and
26467 grub_configfile_fini.
26468 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
26470 [GRUB_UTIL] (grub_configfile_fini): Likewise.
26472 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
26474 * normal/arg.c (grub_arg_show_help): Do not show the bug report
26477 * commands/help.c (grub_cmd_help): Do not print newlines after
26478 the last command in print_command_help.
26480 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
26482 * commands/default.h: New file.
26483 * commands/timeout.h: Likewise.
26484 * normal/context.c: Likewise.
26486 * util/misc.c: Do not include sys/times.h.
26487 Include sys/time.h and grub/machine/time.h.
26488 (grub_get_rtc): Rewritten with gettimeofday.
26490 * util/grub-emu.c (main): Call grub_default_init and
26491 grub_timeout_init before grub_normal_init, and call
26492 grub_timeout_fini and grub_default_fini after grub_main.
26494 * util/console.c (grub_ncurses_checkkey): Return the read
26497 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
26500 * normal/main.c (read_config_file): Push MENU. If this fails,
26501 print an error and wait for a user input.
26502 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
26503 If a menu is empty or an error occurs, pop MENU.
26504 (grub_normal_execute): Pop and free MENU after grub_menu_run
26507 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
26509 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
26511 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
26513 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
26515 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
26518 * include/grub/normal.h (struct grub_menu_list): New struct.
26519 (grub_menu_list_t): New type.
26520 (struct grub_context): New struct.
26521 (grub_context_t): New type.
26522 (grub_register_command): Got rid of EXPORT_FUNC.
26523 (grub_unregister_command): Likewise.
26524 (grub_context_get): New prototype.
26525 (grub_context_get_current_menu): Likewise.
26526 (grub_context_push_menu): Likewise.
26527 (grub_context_pop_menu): Likewise.
26528 [GRUB_UTIL] (grub_default_init): Likewise.
26529 [GRUB_UTIL] (grub_default_fini): Likewise.
26530 [GRUB_UTIL] (grub_timeout_init): Likewise.
26531 [GRUB_UTIL] (grub_timeout_fini): Likewise.
26533 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
26534 commands/timeout.c and normal/context.c.
26535 (pkgdata_MODULES): Added default.mod and timeout.mod.
26536 (normal_mod_SOURCES): Added normal/context.c.
26537 (default_mod_SOURCES): New variable.
26538 (default_mod_CFLAGS): Likewise.
26539 (timeout_mod_SOURCES): Likewise.
26540 (timeout_mod_CFLAGS): Likewise.
26541 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
26543 (pkgdata_MODULES): Added default.mod and timeout.mod.
26544 (normal_mod_SOURCES): Added normal/context.c.
26545 (default_mod_SOURCES): New variable.
26546 (default_mod_CFLAGS): Likewise.
26547 (timeout_mod_SOURCES): Likewise.
26548 (timeout_mod_CFLAGS): Likewise.
26550 * Makefile.in (all-local): Added $(MKFILES).
26552 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
26554 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
26555 (grub_emu_SOURCES): Likewise.
26556 (pkgdata_MODULES): Add `sun.mod'.
26557 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
26558 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26560 (pkgdata_MODULES): Add `sun.mod'.
26561 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
26562 * include/grub/partition.h (grub_sun_partition_map_init): New
26564 (grub_sun_partition_map_fini): Likewise.
26565 * partmap/sun.c: New file.
26566 * util/grub-emu.c (main): Initialize and de-initialize the sun
26567 partitionmap support.
26569 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
26571 This implements an Emacs-like menu entry editor.
26573 * normal/menu_entry.c: New file.
26575 * util/console.c (grub_ncurses_putchar): Translate some Unicode
26576 characters to ASCII.
26577 (saved_char): New variable.
26578 (grub_ncurses_checkkey): Rewritten completely.
26579 (grub_ncurses_getkey): Likewise.
26580 (grub_ncurses_init): Call raw instead of cbreak.
26582 * normal/menu.c (print_entry): Do not put a space.
26583 (init_page): Renamed to ...
26584 (grub_menu_init_page): ... this. All callers changed.
26585 (edit_menu_entry): Removed.
26586 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
26588 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
26590 * kern/misc.c (grub_vprintf): Call grub_refresh.
26592 * normal/menu.c (DISP_LEFT): Renamed to ...
26593 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
26594 * normal/menu.c (DISP_UP): Renamed to ...
26595 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
26596 * normal/menu.c (DISP_RIGHT): Renamed to ...
26597 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
26598 * normal/menu.c (DISP_DOWN): Renamed to ...
26599 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
26600 * normal/menu.c (DISP_HLINE): Renamed to ...
26601 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
26602 * normal/menu.c (DISP_VLINE): Renamed to ...
26603 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
26604 * normal/menu.c (DISP_UL): Renamed to ...
26605 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
26606 * normal/menu.c (DISP_UR): Renamed to ...
26607 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
26608 * normal/menu.c (DISP_LL): Renamed to ...
26609 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
26610 * normal/menu.c (DISP_LR): Renamed to ...
26611 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
26612 * normal/menu.c (TERM_WIDTH): Renamed to ...
26613 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
26614 * normal/menu.c (TERM_HEIGHT): Renamed to ...
26615 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
26616 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
26617 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
26618 * normal/menu.c (TERM_MARGIN): Renamed to ...
26619 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
26620 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
26621 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
26622 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
26623 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
26624 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
26625 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
26626 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
26627 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
26628 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
26629 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
26630 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
26631 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
26632 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
26633 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
26634 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
26635 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
26636 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
26637 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
26638 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
26639 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
26640 All callers changed.
26642 * include/grub/normal.h: New prototype.
26644 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26645 normal/menu_entry.c.
26646 (normal_mod_SOURCES): Likewise.
26647 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26648 (normal_mod_SOURCES): Likewise.
26650 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
26652 * include/grub/normal.h (grub_halt_init): New prototype.
26653 (grub_halt_fini): Likewise.
26654 (grub_reboot_init): Likewise.
26655 (grub_reboot_fini): Likewise.
26657 * util/grub-emu.c: Include signal.h.
26658 (main_env): New global variable.
26659 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
26661 (grub_machine_fini): New function.
26662 (main): Call grub_halt_init and grub_reboot_init before
26663 grub_main, and grub_reboot_fini and grub_halt_fini after it.
26664 Call setjmp with MAIN_ENV to go back afterwards.
26665 Call grub_machine_fini right before return.
26667 * include/grub/util/misc.h: Include setjmp.h.
26668 (main_env): New prototype.
26670 * include/grub/kernel.h (grub_machine_fini): New prototype.
26671 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
26672 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
26674 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
26675 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
26676 * term/i386/pc/console.c (grub_console_fini): Likewise.
26678 * util/i386/pc/misc.c: New file.
26680 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26681 util/i386/pc/misc.c, commands/i386/pc/halt.c and
26682 commands/i386/pc/reboot.c.
26684 2005-02-14 Guillem Jover <guillem@hadrons.org>
26686 * include/grub/dl.h (grub_dl_check_header): New prototype.
26687 (grub_arch_dl_check_header): Change return type to grub_err_t,
26688 remove size parameter and export function. Update all callers.
26689 * kern/dl.c (grub_dl_check_header): New function.
26690 (grub_dl_load_core): Use `grub_dl_check_header' instead of
26691 `grub_arch_dl_check_header'. Check ELF type. Check if sections
26692 are inside the core.
26693 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
26694 independent ELF header checks.
26695 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26696 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
26697 `grub_dl_check_header' instead of explicit checks. Check for the
26699 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
26700 `grub_dl_check_header' instead of explicit checks. Remove arch
26701 specific ELF header checks.
26703 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
26706 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
26708 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
26709 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
26711 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
26713 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
26714 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
26715 (part_map_iterate): Clear `grub_errno' and return 0 if
26716 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
26717 * partmap/amiga.c (amiga_partition_map_iterate): Return
26718 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
26719 * partmap/apple.c (apple_partition_map_iterate): Likewise.
26721 2005-02-01 Guillem Jover <guillem@hadrons.org>
26723 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
26726 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26728 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
26730 (grub_rescue_cmd_linux): New prototype.
26731 (grub_rescue_cmd_initrd): Likewise.
26732 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
26734 (grub_linux_release_mem): Release the memory for the initrd.
26735 (grub_load_linux): Renamed from this...
26736 (grub_rescue_cmd_linux): ...To this. Changed all callers.
26737 Changed `entry' not to be static. Loop over memory regions to
26738 find another one when the default fails.
26739 (grub_rescue_cmd_initrd): New function.
26740 (grub_linux_init): Remove function.
26741 (grub_linux_fini): Likewise.
26742 (GRUB_MOD_INIT): Register `initrd'.
26743 (GRUB_MOD_FINI): Unregister `initrd'.
26744 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
26746 (grub_linux_normal_fini): Likewise.
26747 (GRUB_MOD_INIT): Register `initrd'.
26748 (GRUB_MOD_FINI): Unregister `initrd'.
26750 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26752 * commands/help.c: New file.
26753 * normal/arg.c (show_help): Renamed to...
26754 (grub_arg_show_help): ... this.
26755 * commands/i386/pc/halt.c: New file.
26756 * commands/i386/pc/reboot.c: Likewise.
26757 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
26758 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
26759 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
26760 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
26762 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26764 (pkgdata_MODULES): Add `help.mod'.
26765 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
26766 * grub/i386/pc/init.h (grub_reboot): New prototype.
26767 (grub_halt): Likewise.
26768 * include/grub/normal.h (grub_arg_show_help): New prototype.
26769 (grub_help_init): Likewise.
26770 (grub_help_fini): Likewise.
26771 * util/grub-emu.c (main): Initialize and deinitialize the help
26774 * normal/cmdline.c (grub_cmdline_get): Doc fix.
26776 * normal/command.c (grub_command_init): Fixed the description of
26777 the `set' and `unset' commands.
26779 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26781 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
26783 * commands/ieee1275/halt.c: New file.
26784 * commands/ieee1275/reboot.c: Likewise.
26785 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
26786 `__attribute__ ((unused))'. Some GCS related fixed.
26787 (grub_suspend_init) [GRUB_UTIL]: Function removed.
26788 (grub_suspend_fini): Likewise.
26789 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
26791 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
26792 (halt_mod_CFLAGS): New variables.
26793 * include/grub/powerpc/ieee1275/ieee1275.h
26794 (grub_ieee1275_interpret): New prototype.
26796 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
26798 * include/grub/misc.h (memmove): New prototype.
26799 (memcpy): Likewise.
26801 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
26803 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
26804 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
26806 2005-01-22 Marco Gerards <metgerards@student.han.nl>
26808 * kern/misc.c (grub_strndup): Function rewritten.
26810 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
26812 * normal/menu.c (TERM_WIDTH): Macro redefined.
26813 (TERM_TOP_BORDER_Y): Likewise.
26814 (draw_border): Replaced while-loop by a for-loop. Make the number
26815 of lines consistent with the number of lines displayed in
26816 print_entries. Added a margin below the rectangle.
26817 (print_entry): Make the entry fit in the rectangle.
26818 (print_entries): Display the scroll arrows next to the right
26821 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26823 * fs/minix.c (grub_minix_find_file): Reserve more space for
26824 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
26825 `grub_strncpy' to copy `path' into it.
26827 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26829 Add the loopback device, a device via which files can be accessed
26832 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
26833 (pkgdata_MODULES): Add loopback.mod.
26834 (loopback_mod_SOURCES): New variable.
26835 (loopback_mod_CFLAGS): Likewise.
26836 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26838 (pkgdata_MODULES): Add loopback.mod.
26839 (loopback_mod_SOURCES): New variable.
26840 (loopback_mod_CFLAGS): Likewise.
26841 * disk/loopback.c: new file.
26842 * include/grub/normal.h (grub_loop_init): New prototype.
26843 (grub_loop_fini): New prototype.
26844 * util/grub-emu.c (main): Initialize and de-initialize loopback
26846 * include/grub/disk.h (grub_disk_dev_id): Add
26847 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
26849 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
26851 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
26853 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
26854 (suspend_mod_SOURCES): New variable.
26855 (suspend_mod_CFLAGS): Likewise.
26856 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
26858 * commands/ieee1275/suspend.c: New file.
26860 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
26862 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
26863 ((unused))' to `__attribute__ ((used))'.
26864 (GRUB_MOD_FINI): Likewise.
26865 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
26866 * genmk.rb (PModule): Assign space to common symbols when linking
26869 2005-01-20 Marco Gerards <metgerards@student.han.nl>
26871 * include/grub/mm.h (grub_mm_init_region): Change the type of the
26872 `unsigned' arguments to `grub_size_t'.
26873 (grub_malloc): Likewise.
26874 (grub_realloc): Likewise.
26875 (grub_memalign): Likewise.
26876 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
26877 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26878 * util/misc.c (grub_malloc): Likewise.
26879 (grub_realloc): Likewise.
26880 * kern/mm.c (get_header_from_pointer): Change the casts to
26881 `unsigned' into a cast to `grub_size_t'.
26883 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
26884 point to `currnode' when `currnode' is changed.
26886 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
26887 Schottelius <nico-linux@schottelius.org>.
26889 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
26891 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
26892 (note_path): Remove variable.
26893 (GRUB_IEEE1275_NOTE_NAME): New macro.
26894 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
26895 (grub_ieee1275_note_hdr): New structure.
26896 (grub_ieee1275_note_desc): Likewise.
26897 (grub_ieee1275_note): Likewise.
26898 (load_note): Remove `dir' argument. All callers updated. Remove
26899 `note_img' and `path'. Do not load a file from `note_path'.
26900 Initialize a struct grub_ieee1275_note and write that to `out'.
26901 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
26903 2005-01-05 Marco Gerards <metgerards@student.han.nl>
26905 * util/misc.c (grub_util_read_image): Revert last change. It
26906 called `grub_util_read_at', which seeks from the beginning of the
26909 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
26911 * TODO: Add note about endianness in grub-mkimage.
26912 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
26914 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
26915 (grub_mkimage_SOURCES): New target.
26916 * include/grub/kernel.h (grub_start_addr): Remove variable.
26917 (grub_end_addr): Likewise.
26918 (grub_total_module_size): Likewise.
26919 (grub_kernel_image_size): Likewise.
26920 (GRUB_MODULE_MAGIC): New constant.
26921 (grub_module_info): New structure.
26922 (grub_arch_modules_addr): New prototype.
26923 (grub_get_end_addr): Remove prototype.
26924 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
26925 * include/grub/powerpc/ieee1275/kernel.h: New file.
26926 * include/grub/util/misc.h (grub_util_get_fp_size): New
26928 (grub_util_read_at): Likewise.
26929 (grub_util_write_image_at): Likewise.
26930 * kern/main.c (grub_get_end_addr): Remove function.
26931 (grub_load_modules): Call grub_arch_modules_addr instead of using
26932 grub_end_addr. Look for a grub_module_info struct in memory. Use
26933 the grub_module_info fields instead of calling grub_get_end_addr
26934 as loop conditions. Move grub_add_unused_region code here.
26935 (grub_add_unused_region): Remove function.
26936 * kern/i386/pc/init.c: Include grub/cache.h.
26937 (grub_machine_init): Remove call to grub_get_end_addr. Remove
26938 one call to add_mem_region.
26939 (grub_arch_modules_addr): New function.
26940 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
26941 (grub_total_module_size): Likewise.
26942 Include grub/machine/kernel.h.
26943 (grub_arch_modules_addr): New function.
26944 * util/grub-emu.c (grub_end_addr): Remove variable.
26945 (grub_total_module_size): Likewise.
26946 (grub_arch_modules_addr): New function.
26947 * util/misc.c: Include unistd.h.
26948 (grub_util_get_fp_size): New function.
26949 (grub_util_read_at): Likewise.
26950 (grub_util_write_image_at): Likewise.
26951 (grub_util_read_image): Call grub_util_read_at.
26952 (grub_util_write_image): Call grub_util_write_image_at.
26953 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
26954 additional memory in kernel_img for a struct grub_module_info.
26955 Fill in that grub_module_info.
26956 * util/powerpc/ieee1275/grub-mkimage.c: New file.
26958 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26960 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
26962 * include/grub/powerpc/ieee1275/ieee1275.h
26963 (grub_ieee1275_milliseconds): New prototype.
26964 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
26966 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
26967 grub_ieee1275_milliseconds.
26969 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26971 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
26973 (find_options): New function.
26974 (cmain): Call find_options.
26975 * include/grub/powerpc/ieee1275/ieee1275.h
26976 (grub_ieee1275_realmode): New extern variable.
26977 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
26978 grub_map if grub_ieee1275_realmode is false.
26980 2004-12-29 Marco Gerards <metgerards@student.han.nl>
26982 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
26983 lines are inserted and make it work like readline. Reported by
26984 Vincent Pelletier <subdino2004@yahoo.fr>.
26986 2004-12-28 Marco Gerards <metgerards@student.han.nl>
26988 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
26990 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
26991 `kern/powerpc/cache.S'.
26993 2004-12-27 Marco Gerards <metgerards@student.han.nl>
26995 * genmk.rb: Handle the `Program' class in the main loop. Written
26996 by Johan Rydberg <jrydberg@gnu.org>.
26997 (Program): New class.
26998 (programs): New variable.
26999 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
27000 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
27001 instead of "grub/kernel.h". Include <grub/machine/init.h>.
27002 (help_arch): Function removed.
27003 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
27004 `powerpc/libgcc.h' and `loader.h'.
27005 (pkgdata_PROGRAMS): New variable.
27006 (sbin_UTILITIES): Variable removed.
27007 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
27008 (grubof_SOURCES): Variable re-defined so it only includes the
27009 core functionality.
27010 (grubof_CFLAGS): Remove `-DGRUBOF'.
27011 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
27012 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
27013 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
27014 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
27015 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
27016 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
27017 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
27018 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
27019 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
27020 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
27021 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
27022 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
27023 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
27024 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
27025 (pc_mod_CFLAGS): New variables.
27026 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
27027 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
27028 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
27029 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
27031 * include/grub/i386/pc/init.h (grub_os_area_addr)
27032 (rub_os_area_size): ... to here.
27033 * include/grub/powerpc/ieee1275/ieee1275.h
27034 (grub_ieee1275_entry_fn): Export symbol.
27035 * include/grub/powerpc/ieee1275/init.h: New file.
27036 * include/grub/powerpc/libgcc.h: Likewise.
27037 * include/grub/cache.h: Likewise.
27038 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
27039 <hollis@penguinppc.org>.
27040 * kern/dl.c: Include <grub/cache.h>.
27041 (grub_dl_flush_cache): New function.
27042 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
27044 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
27045 (grub_console_init): Removed prototypes.
27046 (grub_machine_init): Don't initialize the modules anymore.
27047 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
27049 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
27050 Macro undef removed.
27051 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
27052 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
27053 relocation `R_PPC_REL32'. Return an error when the relocation is
27055 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
27056 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
27057 * util/misc.c (grub_arch_sync_caches): Likewise.
27059 2004-12-19 Marco Gerards <metgerards@student.han.nl>
27061 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
27062 `symlist.c', add `grubof_symlist.c'.
27063 (symlist.c): Variable removed.
27064 (grubof_HEADERS): Variable added.
27065 (grubof_symlist.c): New target.
27066 (kernel_syms.lst): Use `grubof_HEADERS' instead of
27067 `kernel_img_HEADERS'.
27068 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
27069 * kern/powerpc/dl.c: New file.
27070 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
27072 (grub_arch_dl_relocate_symbols): Likewise.
27073 (grub_register_exported_symbols): Likewise.
27075 2004-12-13 Marco Gerards <metgerards@student.han.nl>
27077 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
27078 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
27079 to fail instead. Reported by Vincent Pelletier
27080 <subdino2004@yahoo.fr>.
27082 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
27083 it is not allocated. Reported by Vincent Pelletier
27084 <subdino2004@yahoo.fr>.
27086 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
27087 output so the output looks better.
27089 2004-12-04 Marco Gerards <metgerards@student.han.nl>
27091 Modulize the partition map support and add support for the amiga
27094 * commands/ls.c: Include <grub/partition.h> instead of
27095 <grub/machine/partition.h>.
27096 * kern/disk.c: Likewise.
27097 * kern/rescue.c: Likewise.
27098 * loader/i386/pc/chainloader.c: Likewise.
27099 * normal/cmdline.c: Likewise.
27100 * kern/powerpc/ieee1275/init.c: Likewise.
27101 (grub_machine_init): Call `grub_pc_partition_map_init',
27102 `grub_amiga_partition_map_init' and
27103 `grub_apple_partition_map_init'.
27104 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
27105 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
27106 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
27107 `partition.h' and `pc_partition.h'.
27108 (grub_setup_SOURCES): Remove
27109 `disk/i386/pc/partition.c'. Add `kern/partition.c',
27110 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
27111 (grub_emu_SOURCES): Likewise.
27112 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
27113 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
27114 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
27115 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
27116 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
27117 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
27118 (grubof_SOURCES): Likewise.
27119 * disk/i386/pc/partition.c: File removed.
27120 * disk/powerpc/ieee1275/partition.c: Likewise.
27121 * include/grub/powerpc/ieee1275/partition.h: Likewise.
27122 * include/grub/i386/pc/partition.h: Likewise.
27123 * kern/partition.c: New file.
27124 * partmap/amiga.c: Likewise.
27125 * partmap/apple.c: Likewise.
27126 * partmap/pc.c: Likewise.
27127 * include/grub/partition.h: Likewise..
27128 * include/grub/pc_partition.h: Likewise.
27129 * util/grub-emu.c: Include <grub/partition.h> instead of
27130 <grub/machine/partition.h>.
27131 (main): Call `grub_pc_partition_map_init',
27132 `grub_amiga_partition_map_init' and
27133 `grub_apple_partition_map_init' and deinitialize afterwards.
27134 * util/i386/pc/biosdisk.c: Include `#include
27135 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
27136 `<grub/machine/partition.h>'.
27137 * util/i386/pc/grub-setup.c: Likewise.
27138 * util/i386/pc/biosdisk.c: Likewise.
27139 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
27140 partition information in case of a PC partition.
27141 * util/i386/pc/grub-setup.c: Include `#include
27142 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
27143 `<grub/machine/partition.h>'.
27144 (setup): Only access the PC specific partition information in case
27147 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
27149 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
27150 (grub_longjmp): Likewise.
27151 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
27153 * normal/powerpc/setjmp.S: New file.
27154 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
27155 `normal/powerpc/setjmp.S'.
27156 (grubof_CFLAGS): Add `-DGRUBOF'.
27157 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
27158 [GRUB_UTIL && !GRUBOF].
27160 2004-11-16 Marco Gerards <metgerards@student.han.nl>
27162 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
27163 property named `name'. Correctly handle the error returned by
27164 `grub_ieee1275_finddevice' if a device can not be opened.
27166 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
27168 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
27169 `actual' for negativity.
27170 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
27173 2004-11-01 Marco Gerards <metgerards@student.han.nl>
27175 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
27176 (PAGE_OFFSET): New macro.
27177 (CRTC_ADDR_PORT): Likewise.
27178 (CRTC_DATA_PORT): Likewise.
27179 (START_ADDR_HIGH_REGISTER): Likewise.
27180 (START_ADDR_LOW_REGISTER): Likewise.
27181 (GRAPHICS_ADDR_PORT): Likewise.
27182 (GRAPHICS_DATA_PORT): Likewise.
27183 (READ_MAP_REGISTER): Likewise.
27184 (INPUT_STATUS1_REGISTER): Likewise.
27185 (INPUT_STATUS1_VERTR_BIT): Likewise.
27186 (page): New variable.
27187 (wait_vretrace): New function.
27188 (set_read_map): Likewise.
27189 (set_start_address): Likewise.
27190 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
27192 (check_vga_mem): Take the page into account.
27193 (write_char): Likewise.
27194 (write_cursor): Likewise.
27195 (scroll_up): Likewise. Copy the page to the page that is not
27196 shown and switch between both pages.
27197 (grub_vga_putchar): Fix off by one error.
27198 (grub_vga_cls): Wait for the vertical retrace. Take the page into
27201 2004-11-01 Marco Gerards <metgerards@student.han.nl>
27203 Add support for iso9660 (including rockridge).
27205 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
27206 (iso9660_mod_SOURCES): New variable.
27207 (iso9660_mod_CFLAGS): Likewise.
27208 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
27209 * include/grub/fs.h (grub_iso9660_init): New prototype.
27210 * util/grub-emu.c (main): Call `grub_iso9660_init'.
27211 * fs/iso9660.c: New file.
27213 * include/grub/misc.h (grub_strncat): New prototype.
27214 * kern/misc.c (grub_strncat): New function.
27216 * fs/hfs.c (grub_hfs_mount): Translate the error
27217 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
27218 * fs/jfs.c (grub_jfs_mount): Likewise.
27219 * fs/ufs.c (grub_ufs_mount): Likewise.
27221 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
27223 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
27224 which initialized BAT registers.
27225 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
27226 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
27228 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
27229 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
27231 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
27232 (grub_mapclaim): Likewise.
27233 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
27234 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
27237 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
27239 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
27240 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
27241 -ffreestanding and -msoft-float.
27243 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
27245 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
27246 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
27247 set in grub_ieee1275_flags.
27249 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
27251 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
27253 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
27254 grub_console_init first.
27255 Change the memory range used for grub_ieee1275_claim and
27256 grub_mm_init_region.
27257 Print an error message if the claim fails.
27258 Include <grub/misc.h>.
27260 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
27262 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
27263 Call grub_children_iterate for device nodes of type `scsi',
27265 (grub_ofdisk_open): Remove manual device alias resolution.
27266 Fix memory leak when device cannot be opened.
27267 * include/grub/powerpc/ieee1275/ieee1275.h
27268 (grub_children_iterate): New prototype.
27269 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
27271 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
27272 Return -1 if args.size was -1.
27274 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
27276 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
27277 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
27278 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
27279 Open Firmware's memory for it; claim memory from _start to _end.
27280 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
27281 (_end): New extern.
27282 (_start): Zero BSS from __bss_start to _end.
27283 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
27285 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
27287 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
27289 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
27290 -1 if args.base was -1.
27292 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
27294 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
27295 escape sequence instead of a literal ^L. Also call
27296 grub_ofconsole_gotoxy.
27298 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
27300 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
27301 void * arguments to grub_addr_t. All callers updated. Also make
27302 the `result' argument optional.
27303 (grub_ieee1275_release): change void * arguments to grub_addr_t.
27304 All callers updated.
27306 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
27308 * commands/ls.c (grub_ls_list_files): Use the string following the
27309 initial ')', if present, as the filesystem path.
27310 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
27312 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
27314 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
27316 Make the source code of the menu interface more readable.
27318 * normal/menu.c: Include grub/mm.h.
27319 (TERM_WIDTH): New macro.
27320 (TERM_HEIGHT): Likewise.
27321 (TERM_INFO_HEIGHT): Likewise.
27322 (TERM_MARGIN): Likewise.
27323 (TERM_SCROLL_WIDTH): Likewise.
27324 (TERM_TOP_BORDER_Y): Likewise.
27325 (TERM_LEFT_BORDER_X): Likewise.
27326 (TERM_BORDER_WIDTH): Likewise.
27327 (TERM_MESSAGE_HEIGHT): Likewise.
27328 (TERM_BORDER_HEIGHT): Likewise.
27329 (TERM_NUM_ENTRIES): Likewise.
27330 (TERM_FIRST_ENTRY_Y): Likewise.
27331 (TERM_ENTRY_WIDTH): Likewise.
27332 (TERM_CURSOR_X): Likewise.
27333 (draw_border): Use macros instead of magic numbers.
27334 (print_entry): Likewise.
27335 (print_entries): Likewise.
27336 (run_menu): Likewise. Also, handle the key 'e'.
27337 (run_menu_entry): Ignore empty command lines.
27338 (print_message): Added a new argument EDIT. If EDIT is true,
27339 print a different message.
27340 (init_page): Likewise.
27341 (edit_menu_entry): New function. Not implemented yet.
27343 2004-09-17 Marco Gerards <metgerards@student.han.nl>
27345 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
27346 can be loaded from normal mode.
27348 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
27350 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
27351 (multiboot_mod_CFLAGS): New variables.
27352 * loader/i386/pc/linux_normal.c: New file.
27353 * loader/i386/pc/multiboot_normal.c: Likewise.
27355 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
27356 attribute `unused'.
27358 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
27359 `fdiro' to read the mode information from instead of `diro'.
27361 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
27362 looking up a symlink.
27364 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
27366 * normal/command.c (grub_command_execute): Don't parse the
27367 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
27368 flags of the command.
27370 * normal/menu.c (grub_menu_run): Fix typo.
27372 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
27374 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
27376 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
27377 `y + 1' instead of `y - 1'.
27379 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
27381 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
27383 From Hollis Blanchard <hollis@penguinppc.org>:
27384 * kern/misc.c (memmove): New alias for grub_memmove.
27385 (memcmp): New alias for grub_memcmp.
27386 (memset): New alias for grub_memset.
27387 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
27388 Change "int handle" to "grub_ieee1275_phandle_t handle".
27389 * include/grub/powerpc/ieee1275/ieee1275.h
27390 (grub_ieee1275_get_property): Likewise.
27392 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
27394 Added normal mode command `chainloader' as module chain.mod, which
27395 depends on normal.mod and _chain.mod.
27397 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
27398 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
27399 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
27401 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
27402 but arguments parsing moved to ...
27403 (grub_chainloader_cmd): ... here. New function.
27404 * include/grub/i386/pc/chainloader.h: New file.
27405 * loader/i386/pc/chainloader_normal.c: Likewise.
27407 2004-09-11 Marco Gerards <metgerards@student.han.nl>
27409 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
27410 (grub_mkimage_LDFLAGS): Likewise.
27411 (grub_emu_SOURCES): Likewise.
27412 (kernel_img_HEADERS): Added fshelp.h.
27413 * fs/ext2.c: Include <grub/fshelp.h>.
27414 (FILETYPE_REG): New macro.
27415 (FILETYPE_INO_REG): Likewise.
27416 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
27418 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
27420 (grub_fshelp_node): New struct.
27421 (grub_ext2_data): Added member `diropen'. Changed member `inode'
27423 (grub_ext2_get_file_block): Removed function.
27424 (grub_ext2_read_block): New function.
27425 (grub_ext2_read_file): Replaced parameter `data' by `node'.
27426 This function was written.
27427 (grub_ext2_mount): Read the root inode. Create a diropen struct.
27428 (grub_ext2_find_file): Removed function.
27429 (grub_ext2_read_symlink): New function.
27430 (grub_ext2_iterate_dir): Likewise.
27431 (grub_ext2_open): Rewritten.
27432 (grub_ext2_dir): Rewritten.
27433 * include/grub/fshelp.h: New file.
27434 * fs/fshelp.c: Likewise.
27436 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
27438 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
27439 (print_message): Add a missing newline.
27440 (run_menu): Added timeout support.
27441 (run_menu_entry): New local function.
27442 (grub_menu_run): Added support for booting.
27444 * kern/loader.c (grub_loader_is_loaded): New function.
27446 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
27447 (grub_get_rtc): Exported.
27449 * include/grub/i386/pc/time.h: Include grub/symbol.h.
27450 (grub_get_rtc): Exported.
27452 * include/grub/normal.h (struct grub_command_list): Remove
27453 constant from the member `command'.
27455 * include/grub/loader.h (grub_loader_is_loaded): Declared.
27457 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
27459 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
27461 2004-08-28 Marco Gerards <metgerards@student.han.nl>
27463 Add support for the JFS filesystem.
27465 * fs/jfs.c: New file.
27466 * include/grub/fs.h (grub_jfs_init): New prototype.
27467 (grub_jfs_fini): New prototype.
27468 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
27469 (grub_emu_SOURCES): Likewise.
27470 (pkgdata_MODULES): Add jfs.mod.
27471 (jfs_mod_SOURCES): New variable.
27472 (jfs_mod_CFLAGS): Likewise.
27473 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
27474 (grubof_SOURCES): Likewise.
27475 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
27477 * fs/fat.c (grub_fat_find_dir): Convert the filename little
27478 endian to the host endian.
27479 (grub_fat_utf16_to_utf8): Move function from there...
27480 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
27481 the endianness of the source string anymore.
27482 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
27484 2004-08-24 Marco Gerards <metgerards@student.han.nl>
27486 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
27487 (grub_boot_fini) [GRUB_UTIL]: Likewise.
27488 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
27489 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
27491 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
27492 (grub_hfs_iterate_dir): Make the function static. Add prototypes
27493 for `node_found' and `it_dir'.
27494 (grub_hfs_dir): Add prototype for `dir_hook'.
27496 * fs/minix.c (grub_minix_get_file_block): Add prototype for
27497 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
27498 and `indir32' to silence a gcc warning.
27500 * include/grub/fs.h (grub_hfs_init): New prototype.
27501 (grub_hfs_fini): Likewise.
27504 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
27506 Each disk device has its own id now. This is useful to make use
27507 of multiple disk devices.
27509 * include/grub/disk.h (grub_disk_dev_id): New enum.
27510 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
27511 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
27513 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
27514 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
27516 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
27517 GRUB_DISK_DEVICE_OFDISK_ID as an id.
27519 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
27520 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
27522 * include/grub/disk.h (struct grub_disk_dev): Added a new member
27523 "id" which is used by the cache manager.
27525 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
27528 2004-08-18 Marco Gerards <metgerards@student.han.nl>
27530 * fs/hfs.c: New file.
27531 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
27532 (grub_emu_SOURCES): Likewise.
27533 (pkgdata_MODULES): Add hfs.mod.
27534 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
27535 (grubof_SOURCES): Likewise.
27536 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
27538 * include/grub/misc.h (grub_strncasecmp): Add prototype.
27539 * kern/misc.c (grub_strncasecmp): Add function.
27541 2004-08-14 Marco Gerards <metgerards@student.han.nl>
27543 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
27546 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
27547 (grub_ext2_dir): In case the directory entry type is unknown, read
27550 2004-08-02 Peter Bruin <pjbruin@dds.nl>
27552 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
27553 grub_load_linux instead of grub_rescue_cmd_linux as second
27554 argument of grub_rescue_register_command.
27556 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
27558 2004-07-27 Marco Gerards <metgerards@student.han.nl>
27560 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
27562 * commands/boot.c: Remove the check for `GRUB_UTIL'.
27563 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
27564 `loader/powerpc/ieee1275/linux.c',
27565 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
27566 * include/grub/powerpc/ieee1275/ieee1275.h
27567 (grub_ieee1275_release): New prototype.
27568 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
27569 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
27570 normal, boot, linux and linux_normal.
27571 * loader/powerpc/ieee1275/linux.c: New file.
27572 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
27574 2004-07-12 Marco Gerards <metgerards@student.han.nl>
27576 * normal/arg.c (grub_arg_parse): Correct error handling after
27577 reallocating the argumentlist (check if `argl' is not null instead
27578 of checking if `args' is not null).
27579 * kern/mm.c (grub_realloc): Return the same pointer when using the
27580 same region, instead of returning the header address.
27582 2004-07-11 Marco Gerards <metgerards@student.han.nl>
27584 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
27585 one block instead of two when looking for the initial partition.
27586 (grub_partition_probe): Initialize the local variable `p' with 0.
27587 Use base 10 for the grub_strtoul call.
27588 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
27589 need for one local variable.
27590 (grub_strtoul): Don't add the new value to `num', instead of that
27593 2004-07-11 Marco Gerards <metgerards@student.han.nl>
27595 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
27596 (pxeboot_img_SOURCES): New variable.
27597 (pxeboot_img_ASFLAGS): Likewise.
27598 (pxeboot_img_LDFLAGS): Likewise.
27599 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
27600 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
27601 <lode_leroy@hotmail.com>.
27603 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27605 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
27606 there was no input.
27608 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27610 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
27611 the history buffer logic.
27613 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27615 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
27616 (FILETYPE_INO_SYMLINK): New macros.
27617 (grub_ext2_find_file): Check if the node is a directory using the
27618 inode stat information instead of using the filetype in the
27619 dirent. Exclude the first character of an absolute symlink.
27620 (grub_ext2_dir): Mask out the filetype part of the mode member of
27623 2004-05-24 Marco Gerards <metgerards@student.han.nl>
27625 Add support for UFS version 1 and 2. Add support for the minix
27626 filesystem version 1 and 2, both the variants with 14 and 30 long
27629 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
27631 (grub_emu_SOURCES): Likewise.
27632 (pkgdata_MODULES): Add ufs.mod and minix.mod.
27633 (ufs_mod_SOURCES): New variable.
27634 (ufs_mod_CFLAGS): Likewise.
27635 (minix_mod_SOURCES): Likewise.
27636 (minix_mod_CFLAGS): Likewise.
27637 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
27639 (grubof_SOURCES): Likewise.
27640 * fs/ufs.c: New file.
27641 * fs/minix.c: New file.
27642 * include/grub/fs.h (grub_ufs_init): New prototype.
27643 (grub_ufs_fini): Likewise.
27644 (grub_minix_init): Likewise.
27645 (grub_minix_fini): Likewise.
27646 * util/grub-emu.c (main): Initialize and deinitialize UFS and
27649 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
27651 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
27652 commands/ls.c, commands/terminal.c, commands/boot.c,
27653 commands/cmp.c and commands/cat.c.
27654 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
27656 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
27659 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27661 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
27662 and grub_, respectively. Because the conversion is trivial and
27663 mechanical, I omit the details here. Please refer to the CVS
27664 if you need more information.
27666 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27668 * include/pupa: Renamed to ...
27669 * include/grub: ... this.
27670 * util/i386/pc/pupa-mkimage.c: Renamed to ...
27671 * util/i386/pc/grub-mkimage.c: ... this.
27672 * util/i386/pc/pupa-setup.c: Renamed to ...
27673 * util/i386/pc/grub-setup.c: ... this.
27674 * util/pupa-emu.c: Renamed to ...
27675 * util/grub-emu.c: ... this.
27677 2004-03-29 Marco Gerards <metgerards@student.han.nl>
27679 Add support for the newworld apple macintosh (PPC). This has been
27680 tested on the powerbook 2000 only. It only adds support for
27681 generic ieee1275 functions, console and disk support. This should
27682 be easy to port to other architectures with support for Open
27685 * configure.ac: Accept the powerpc as host_cpu. In the case of
27686 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
27687 specific tests are only executed while building for the i386.
27688 Inverse test for crosscompile.
27689 * genmk.rb (Utility): Allow assembler files.
27690 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
27691 * conf/powerpc-ieee1275.rmk: New file.
27692 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
27693 * disk/powerpc/ieee1275/partition.c: Likewise.
27694 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
27695 * include/pupa/powerpc/ieee1275/console.h: Likewise.
27696 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
27697 * include/pupa/powerpc/ieee1275/time.h: Likewise.
27698 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
27699 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
27700 * include/pupa/powerpc/ieee1275/loader.h
27701 * include/pupa/powerpc/setjmp.h: Likewise.
27702 * include/pupa/powerpc/types.h: Likewise.
27703 * kern/powerpc/ieee1275/init.c: Likewise.
27704 * kern/powerpc/ieee1275/openfw.c: Likewise.
27705 * term/powerpc/ieee1275/ofconsole.c: Likewise.
27707 These files were written by Johan Rydberg
27708 (jrydberg@night.trouble.net) and I only modified them slightly.
27710 * boot/powerpc/ieee1275/cmain.c: New file.
27711 * boot/powerpc/ieee1275/crt0.S: Likewise.
27712 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
27713 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
27715 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
27717 * Makefile.in: Update copyright.
27718 * genmodsrc.sh: Likewise.
27719 * gensymlist.sh: Likewise.
27720 * term/i386/pc/vga.c: Indent correctly.
27722 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
27723 bugreporting address.
27724 * util/i386/pc/pupa-setup.c (usage): Likewise,
27725 (main): Call pupa_ext2_init and pupa_ext2_fini.
27727 * fs/fat.c (log2): Renamed to ...
27728 (fat_log2): ... this.
27729 All callers changed.
27730 * kern/misc.c (memcpy): Alias to pupa_memmove.
27731 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
27733 * util/console.c (pupa_ncurses_fini): Return 0.
27735 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
27736 Move fail label here.
27737 [__GNU__]: Don't warn when using stat.
27738 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
27739 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
27740 long int. Use strtol instead of strtoul.
27742 2004-03-14 Marco Gerards <metgerards@student.han.nl>
27744 * commands/boot.c: New file.
27745 * commands/cat.c: Likewise.
27746 * commands/cmp.c: Likewise.
27747 * commands/ls.c: Likewise.
27748 * commands/terminal.c: Likewise.
27749 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
27750 (pupa_register_command): Changed interface to match the new
27752 (pupa_command_execute): Changed (almost rewritten) so it uses
27753 pupa_split_command. Added support for setting variables using the
27755 (rescue_command): Changed to work with the new argument parser.
27756 (terminal_command): Moved from here to commands/terminal.c.
27757 (set_command): New function.
27758 (unset_command): New function.
27759 (insmod_command): New function.
27760 (rmmod_command): New function.
27761 (lsmod_command): New function.
27762 (pupa_command_init): Don't initialize the command terminal
27763 anymore. Initialize the commands set, unset, insmod, rmmod and
27765 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
27766 (kernel_img_HEADERS): Add arg.h and env.h.
27767 (pupa_mkimage_LDFLAGS): Add kern/env.c.
27768 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
27769 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
27771 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
27773 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
27774 (boot_mod_SOURCES): New variable.
27775 (terminal_mod_SOURCES): Likewise.
27776 (ls_mod_SOURCES): Likewise.
27777 (cmp_mod_SOURCES): Likewise.
27778 (cat_mod_SOURCES): Likewise.
27780 * normal/arg.c: New file.
27781 * kern/env.c: Likewise.
27782 * include/pupa/arg.h: Likewise.
27783 * include/pupa/env.h: Likewise.
27784 * font/manager.c (font_command): Changed to match argument parsing
27786 (PUPA_MOD_INIT): Likewise.
27787 * hello/hello.c (pupa_cmd_hello): Likewise.
27788 (PUPA_MOD_INIT): Likewise.
27789 * include/pupa/disk.h: Include <pupa/device.h>.
27790 (pupa_print_partinfo): New prototype.
27791 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
27792 (pupa_dl_get_prefix): Likewise.
27793 * include/pupa/misc.h: Include <pupa/err.h>.
27794 (pupa_isgraph): New prototype.
27795 (pupa_isdigit): Likewise.
27796 (pupa_split_cmdline): Likewise.
27797 * include/pupa/normal.h: Include <pupa/arg.h>.
27798 (pupa_command): Changed the prototype of the member `func' to
27799 match the argument parsing interface. Added member `options'.
27800 (pupa_register_command): Updated to match function.
27801 (pupa_arg_parse): New prototype.
27802 (pupa_hello_init) [PUPA_UTIL]: New prototype.
27803 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
27804 (pupa_ls_init) [PUPA_UTIL]: Likewise.
27805 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
27806 (pupa_cat_init) [PUPA_UTIL]: Likewise.
27807 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
27808 (pupa_boot_init) [PUPA_UTIL]: Likewise.
27809 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
27810 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
27811 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
27812 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
27813 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
27814 * kern/disk.c: Include <pupa/file.h>.
27815 (pupa_print_partinfo): New function.
27816 * kern/dl.c: Include <pupa/env.h>.
27817 (pupa_dl_dir): Variable removed.
27818 (pupa_dl_load): Use the environment variable `prefix' instead of
27819 the variable pupa_dl_dir.
27820 (pupa_dl_set_prefix): Function removed.
27821 (pupa_dl_get_prefix): Likewise.
27822 * kern/i386/pc/init.c: Include <pupa/env.h>.
27823 (pupa_machine_init): Use the environment variable `prefix' instead of
27824 using pupa_dl_set_prefix to set the prefix.
27825 * kern/main.c: Include <pupa/env.h>.
27826 (pupa_set_root_dev): Use the environment variable `prefix' instead of
27827 using pupa_dl_get_prefix to get the prefix.
27828 * kern/misc.c: Include <pupa/env.h>.
27829 (pupa_isdigit): New function.
27830 (pupa_isgraph): Likewise.
27831 (pupa_ftoa): Likewise.
27832 (pupa_vsprintf): Added support for printing values of the type
27833 `double'. Make it possible to format variable output when using
27834 formatting like `%1.2%f'.
27835 (pupa_split_cmdline): New function.
27836 * kern/rescue.c: Include <pupa/env.h>.
27837 (next_word): Removed function.
27838 (pupa_rescue_cmd_prefix): Likewise.
27839 (pupa_rescue_cmd_set): New function.
27840 (pupa_rescue_cmd_unset): New function.
27841 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
27842 split the command line instead of splitting it here. Added
27843 support for setting variables using the syntax `foo=bar'. Don't
27844 initialize the prefix command anymore. Initialized the set and
27846 * normal/cmdline.c: Include <pupa/env.h>.
27847 (pupa_tab_complete): Added prototypes for print_simple_completion,
27848 print_partition_completion, add_completion, iterate_commands,
27849 iterate_dev, iterate_part and iterate_dir. Moved code to print
27850 partition information from here to kern/disk.c.
27851 (pupa_cmdline_run): Don't check if the function exists anymore.
27852 * normal/main.c: Include <pupa/env.h>.
27853 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
27854 instead of using pupa_dl_get_prefix to get the prefix.
27855 * term/i386/pc/vga.c: Include <pupa/arg.h>.
27856 (check_vga_mem): Cast pointers to `void *' to silence a gcc
27858 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
27859 (pupa_vga_setcolor): Declare unused variables with `__attribute__
27860 ((unused))' to silence a gcc warning.
27861 (pupa_vga_setcolor): Likewise.
27862 (debug_command): Changed to match argument parsing
27864 * util/pupa-emu.c: Include <pupa/env.h>.
27865 (options): Added 0's for unused fields to silence a gcc warning.
27867 (main): Use the environment variable `prefix' instead of using
27868 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
27869 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
27872 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
27873 * util/misc.c: Include <malloc.h>.
27874 (pupa_malloc): Rewritten so errors are correctly reported.
27875 (pupa_realloc): Likewise.
27876 (pupa_memalign): Likewise.
27877 (pupa_mm_init_region): Declare unused variables with
27878 `__attribute__ ((unused))' to silence a gcc warning.
27879 * normal/i386/setjmp.S: Remove tab at the end of the file to
27880 silence a gcc warning.
27881 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
27882 variables with `__attribute__ ((unused))' to silence a gcc
27884 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
27885 local variable i unsigned to silence a gcc warning.
27887 * kern/term.c: Include <pupa/misc.h>.
27888 (pupa_more_lines): New variable.
27889 (pupa_more): Likewise.
27890 (pupa_putcode): When the pager is active pause at the end of every
27892 (pupa_set_more): New function.
27893 * include/pupa/term.h (pupa_set_more): New prototype.
27896 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
27898 Now this project is GRUB 2 rather than PUPA. The location of
27899 the CVS repository was moved to GRUB's.
27901 * configure.ac: Use bug-grub as the reporting address.
27902 Use GRUB instead of PUPA.
27903 Change the version number to 1.90.
27905 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
27907 * genkernsyms.sh: Updated copyright information.
27908 * genmk.rb: Likewise.
27909 * genmodsrc.sh: Likewise.
27910 * gensymlist.sh: Likewise.
27911 * boot/i386/pc/boot.S: Likewise.
27912 * boot/i386/pc/diskboot.S: Likewise.
27913 * disk/i386/pc/biosdisk.c: Likewise.
27914 * disk/i386/pc/partition.c: Likewise.
27915 * font/manager.c: Likewise.
27916 * fs/ext2.c: Likewise.
27917 * fs/fat.c: Likewise.
27918 * include/pupa/boot.h: Likewise.
27919 * include/pupa/device.h: Likewise.
27920 * include/pupa/disk.h: Likewise.
27921 * include/pupa/dl.h: Likewise.
27922 * include/pupa/elf.h: Likewise.
27923 * include/pupa/err.h: Likewise.
27924 * include/pupa/file.h: Likewise.
27925 * include/pupa/font.h: Likewise.
27926 * include/pupa/fs.h: Likewise.
27927 * include/pupa/kernel.h: Likewise.
27928 * include/pupa/loader.h: Likewise.
27929 * include/pupa/misc.h: Likewise.
27930 * include/pupa/mm.h: Likewise.
27931 * include/pupa/net.h: Likewise.
27932 * include/pupa/normal.h: Likewise.
27933 * include/pupa/rescue.h: Likewise.
27934 * include/pupa/setjmp.h: Likewise.
27935 * include/pupa/symbol.h: Likewise.
27936 * include/pupa/term.h: Likewise.
27937 * include/pupa/types.h: Likewise.
27938 * include/pupa/i386/setjmp.h: Likewise.
27939 * include/pupa/i386/types.h: Likewise.
27940 * include/pupa/i386/pc/biosdisk.h: Likewise.
27941 * include/pupa/i386/pc/boot.h: Likewise.
27942 * include/pupa/i386/pc/console.h: Likewise.
27943 * include/pupa/i386/pc/init.h: Likewise.
27944 * include/pupa/i386/pc/kernel.h: Likewise.
27945 * include/pupa/i386/pc/linux.h: Likewise.
27946 * include/pupa/i386/pc/loader.h: Likewise.
27947 * include/pupa/i386/pc/memory.h: Likewise.
27948 * include/pupa/i386/pc/multiboot.h: Likewise.
27949 * include/pupa/i386/pc/partition.h: Likewise.
27950 * include/pupa/i386/pc/time.h: Likewise.
27951 * include/pupa/i386/pc/vga.h: Likewise.
27952 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
27953 * include/pupa/util/getroot.h: Likewise.
27954 * include/pupa/util/misc.h: Likewise.
27955 * include/pupa/util/resolve.h: Likewise.
27956 * kern/device.c: Likewise.
27957 * kern/disk.c: Likewise.
27958 * kern/dl.c: Likewise.
27959 * kern/err.c: Likewise.
27960 * kern/file.c: Likewise.
27961 * kern/fs.c: Likewise.
27962 * kern/loader.c: Likewise.
27963 * kern/main.c: Likewise.
27964 * kern/misc.c: Likewise.
27965 * kern/mm.c: Likewise.
27966 * kern/rescue.c: Likewise.
27967 * kern/term.c: Likewise.
27968 * kern/i386/dl.c: Likewise.
27969 * kern/i386/pc/init.c: Likewise.
27970 * kern/i386/pc/lzo1x.S: Likewise.
27971 * kern/i386/pc/startup.S: Likewise.
27972 * loader/i386/pc/chainloader.c: Likewise.
27973 * loader/i386/pc/linux.c: Likewise.
27974 * loader/i386/pc/multiboot.c: Likewise.
27975 * normal/cmdline.c: Likewise.
27976 * normal/command.c: Likewise.
27977 * normal/main.c: Likewise.
27978 * normal/menu.c: Likewise.
27979 * normal/i386/setjmp.S: Likewise.
27980 * term/i386/pc/console.c: Likewise.
27981 * term/i386/pc/vga.c: Likewise.
27982 * util/console.c: Likewise.
27983 * util/genmoddep.c: Likewise.
27984 * util/misc.c: Likewise.
27985 * util/pupa-emu.c: Likewise.
27986 * util/resolve.c: Likewise.
27987 * util/unifont2pff.rb: Likewise.
27988 * util/i386/pc/biosdisk.c: Likewise.
27989 * util/i386/pc/getroot.c: Likewise.
27990 * util/i386/pc/pupa-mkimage.c: Likewise.
27991 * util/i386/pc/pupa-setup.c: Likewise.
27993 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
27995 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
27996 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
27997 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
27998 reading and reset it after reading.
27999 (pupa_ext2_close): Return PUPA_ERR_NONE.
28001 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
28003 (struct linux_kernel_header): Add kernel_version and
28005 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
28006 pupa_file_read succeeds.
28007 (pupa_rescue_cmd_initrd): Implement.
28009 2003-12-03 Marco Gerards <metgerards@student.han.nl>
28011 * fs/ext2.c (pupa_ext2_label): New function.
28012 (pupa_ext2_fs): Added label.
28013 * fs/fat.c (pupa_fat_label): New function.
28014 (pupa_fat_fs): Added label.
28015 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
28017 * kern/misc.c (pupa_strndup): New function.
28018 * include/pupa/misc.h (pupa_strndup): New prototype.
28020 * include/pupa/normal.h: Include <pupa/err.h>.
28021 (pupa_set_history): New prototype.
28022 (pupa_iterate_commands): New prototype.
28023 * normal/cmdline.c: Include <pupa/machine/partition.h>,
28024 <pupa/disk.h>, <pupa/file.h>.
28025 (hist_size): New variable.
28026 (hist_lines): Likewise.
28027 (hist_end): Likewise.
28028 (hist_used): Likewise.
28029 (pupa_set_history): New function.
28030 (pupa_history_get): Likewise.
28031 (pupa_history_add): Likewise.
28032 (pupa_history_replace): Likewise.
28033 (pupa_tab_complete): Likewise.
28034 (pupa_cmdline_run): Added tab completion and history buffer. Tab
28035 completion shows partitionnames while completing partitions, this
28036 feature was suggested by Jeff Bailey.
28037 * normal/command.c (pupa_iterate_commands): New function.
28038 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
28039 (pupa_normal_init): Initialize history buffer.
28040 (PUPA_MOD_INIT): Likewise.
28041 (pupa_normal_fini): Free the history buffer.
28042 (PUPA_MOD_FINI): Likewise.
28044 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
28047 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
28048 * configure.ac [i386]: Check for regparam bug.
28049 (NESTED_FUNC_ATTR) [! i386]: Defined.
28051 2003-11-17 Marco Gerards <metgerards@student.han.nl>
28053 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
28054 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
28055 (pupa_emu_SOURCES): New variable.
28056 (pupa_emu_LDFLAGS): Likewise.
28057 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
28058 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
28059 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
28060 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
28061 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
28062 (pupa_jmp_buf): New typedef.
28063 (pupa_setjmp) [PUPA_UTIL]: New macro.
28064 (pupa_longjmp) [PUPA_UTIL]: Likewise.
28065 * include/pupa/term.h (struct pupa_term): New member `refresh'.
28066 (pupa_refresh): New prototype.
28067 * include/pupa/util/getroot.h: New file.
28068 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
28070 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
28071 (pupa_rescue_cmd_cat): Likewise.
28072 (pupa_rescue_cmd_ls): Likewise.
28073 (pupa_rescue_cmd_testload): Likewise.
28074 (pupa_rescue_cmd_lsmod): Likewise.
28075 * normal/cmdline.c (pupa_cmdline_get): Likewise.
28076 * normal/menu.c (run_menu): Likewise.
28077 * kern/term.c (pupa_cls): Likewise.
28078 (pupa_refresh): New function.
28079 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
28080 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
28081 * util/console.c: New file.
28083 * util/i386/pc/getroot.c: New file.
28084 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
28085 (pupa_putchar): New function.
28086 (pupa_refresh): Likewise.
28087 (xgetcwd): Function moved to ...
28088 (strip_extra_slashes): Likewise.
28089 (get_prefix): Likewise.
28090 * util/i386/pc/getroot.c: ... here.
28091 (find_root_device): Function moved and renamed to...
28092 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
28093 Changed all callers.
28094 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
28096 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
28097 Changed all callers.
28098 * util/misc.c (pupa_memalign): New function.
28099 (pupa_mm_init_region): Likewise.
28100 (pupa_register_exported_symbols): Likewise.
28101 (pupa_putchar): Function removed.
28102 * util/pupa-emu.c: New file.
28104 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
28106 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
28107 (_multiboot_mod_SOURCES): New variable.
28108 (_multiboot_mod_CFLAGS): Likewise.
28109 * loader/i386/pc/multiboot.c: New file.
28110 * include/pupa/i386/pc/multiboot.h: Likewise.
28111 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
28112 (pupa_multiboot_real_boot): New function.
28113 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
28114 (pupa_multiboot_real_boot): New prototype.
28115 (pupa_rescue_cmd_multiboot): Likewise
28116 (pupa_rescue_cmd_module): Likewise.
28118 * kern/loader.c (pupa_loader_set): Continue when
28119 pupa_loader_unload_func() fails.
28120 (pupa_loader_unset): New function.
28121 * include/pupa/loader.h (pupa_loader_unset): New prototype.
28123 * kern/misc.c (pupa_stpcpy): New function.
28124 * include/pupa/misc.h (pupa_stpcpy): New prototype.
28126 2003-11-12 Marco Gerards <metgerards@student.han.nl>
28128 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
28129 for available extensions.
28131 * include/pupa/i386/pc/time.h: New file.
28132 * kern/disk.c: Include <pupa/machine/time.h>.
28133 (PUPA_CACHE_TIMEOUT): New macro.
28134 (pupa_last_time): New variable.
28135 (pupa_disk_open): Flush the cache when there was a timeout.
28136 (pupa_disk_close): Reset the timer.
28137 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
28139 * util/misc.c: Include <sys/times.h>
28140 (pupa_get_rtc): New function.
28142 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
28144 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
28146 (pupa_ext2_get_file_block): Use blocks member.
28148 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
28149 first block. Return -1 instead of pupa_errno on error.
28151 2003-10-27 Marco Gerards <metgerards@student.han.nl>
28153 * README: In the pupa-mkimage example use _chain instead of chain
28154 and ext2 instead of fat.
28155 * TODO: Replace ext2fs with jfs as an example. Add an item for
28156 adding journal playback for ext2fs.
28157 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
28158 (pkgdata_MODULES): Added ext2.mod.
28159 (ext2_mod_SOURCES): New variable.
28160 (ext2_mod_CFLAGS): Likewise.
28161 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
28162 * include/pupa/misc.h (pupa_strncpy): New prototype.
28163 (pupa_strcat): Likewise.
28164 (pupa_strncmp): Likewise.
28165 * kern/misc.c (pupa_strcat): Enable function.
28166 (pupa_strncpy): New function.
28167 (pupa_strncmp): Likewise.
28168 * fs/ext2.c: New file.
28170 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
28171 when the read failed before retrying.
28172 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
28173 (_FILE_OFFSET_BITS): Likewise.
28174 * configure.ac: Added AC_SYS_LARGEFILE.
28176 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
28178 * genmk.rb (PModule#rule): Make sure to get only symbol names
28179 from the output of nm.
28180 Reported by Robert Millan <rmh.grub@aybabtu.com>.
28182 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
28184 I forgot to check in these changes for a long time. This adds
28185 incomplete support for VGA console, and this is still very
28186 buggy. Also, a lot of consideration is required for I18N,
28187 UNICODE, and VGA font issues. Therefore, assume that this is
28188 such that "better than nothing".
28190 * font/manager.c: New file.
28191 * include/pupa/font.h: Likewise.
28192 * include/pupa/i386/pc/vga.h: Likewise.
28193 * term/i386/pc/vga.c: Likewise.
28194 * util/unifont2pff.rb: Likewise.
28196 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
28197 (pkgdata_MODULES): Added vga.mod and font.mod.
28198 (vga_mod_SOURCES): New variables.
28199 (vga_mod_CFLAGS): Likewise.
28200 (font_mod_SOURCES): Likewise.
28201 (font_mod_CFLAGS): Likewise.
28203 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
28205 * include/pupa/term.h: Include pupa/err.h.
28206 (struct pupa_term): Added init and fini.
28207 Changed the argument of putchar to pupa_uint32_t.
28209 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
28210 (pupa_console_real_putchar): New prototype.
28211 (pupa_console_putchar): Removed.
28212 (pupa_console_checkkey): Exported.
28213 (pupa_console_getkey): Likewise.
28215 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
28218 * kern/term.c (pupa_term_set_current): Rewritten.
28219 (pupa_putchar): Likewise.
28220 (pupa_putcode): New function.
28222 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
28223 (pupa_console_real_putchar): ... this.
28224 (pupa_vga_set_mode): New function.
28225 (pupa_vga_get_font): Likewise.
28227 * normal/command.c: Include pupa/term.h.
28228 (terminal_command): New function.
28229 (pupa_command_init): Register the command "terminal".
28231 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
28232 (DISP_UP): Likewise.
28233 (DISP_RIGHT): Likewise.
28234 (DISP_DOWN): Likewise.
28235 (DISP_HLINE): Likewise.
28236 (DISP_VLINE): Likewise.
28237 (DISP_UL): Likewise.
28238 (DISP_UR): Likewise.
28239 (DISP_LL): Likewise.
28240 (DISP_LR): Likewise.
28242 * term/i386/pc/console.c (pupa_console_putchar): New function.
28244 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
28246 * util/resolve.c (pupa_util_resolve_dependencies): BUG
28247 FIX. Reverse the path_list.
28249 * include/pupa/normal.h: Export pupa_register_command and
28250 pupa_unregister_command.
28252 * hello/hello.c (pupa_cmd_hello): New module.
28253 * conf/i386-pc.rmk: Added hello.mod.
28255 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
28257 * kern/i386/pc/lzo1x.S: New file.
28259 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
28260 (compress_kernel): New variable.
28261 (generate_image): Heavily modified to support compressing a
28262 large part of the core image.
28264 * util/misc.c (pupa_util_read_image): Fix a file descriptor
28266 (pupa_util_load_image): New function.
28268 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
28269 (pupa_compressed_size): New variable.
28270 (codestart): Enable Gate A20 here.
28271 Decompress the compressed part of the core image.
28272 Rearrange the code to put functions and variables which are
28273 required for initialization in the non-compressed part.
28276 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
28279 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
28281 * include/pupa/i386/pc/kernel.h
28282 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
28283 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
28284 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
28285 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
28286 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
28288 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
28290 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
28291 (Utility#rule): Likewise.
28293 * configure.ac: Check if LZO is available.
28295 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
28297 * include/pupa/normal.h: New file.
28298 * include/pupa/setjmp.h: Likewise.
28299 * include/pupa/i386/setjmp.h: Likewise.
28300 * normal/cmdline.c: Likewise.
28301 * normal/command.c: Likewise.
28302 * normal/main.c: Likewise.
28303 * normal/menu.c: Likewise.
28304 * normal/i386/setjmp.S: Likewise.
28306 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
28307 (pupa_rescue_cmd_initrd): Likewise.
28309 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
28312 * kern/i386/pc/startup.S (translation_table): New variable.
28313 (translate_keycode): New function.
28314 (pupa_console_getkey): Call translate_keycode.
28316 * kern/rescue.c (attempt_normal_mode): New function.
28317 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
28318 it failed, print a message.
28320 * kern/mm.c (pupa_real_malloc): Print more information when a
28321 free magic is broken.
28322 (pupa_free): If the first free header is not free actually, set
28325 * kern/main.c (pupa_load_normal_mode): Just load the module
28327 (pupa_main): Don't print the message
28328 "Entering into rescue mode..." here.
28330 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
28332 (pupa_rescue_cmd_initrd): Likewise.
28333 (pupa_rescue_cmd_initrd): Likewise.
28335 * include/pupa/symbol.h (FUNCTION): Specify the type.
28336 (VARIABLE): Likewise.
28338 * include/pupa/err.h (pupa_err_t): Added
28339 PUPA_ERR_UNKNOWN_COMMAND.
28341 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
28342 (pupa_dl_get_prefix): Likewise.
28344 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
28345 Added _chain.mod and _linux.mod instead of chain.mod and
28347 (chain_mod_SOURCES): Renamed to ...
28348 (_chain_mod_SOURCES): ... this.
28349 (chain_mod_CFLAGS): Renamed to ...
28350 (_chain_mod_CFLAGS): ... this.
28351 (linux_mod_SOURCES): Renamed to ...
28352 (_linux_mod_SOURCES): ... this.
28353 (linux_mod_CFLAGS): Renamed to ...
28354 (_linux_mod_CFLAGS): ... this.
28355 (normal_mod_SOURCES): New variable.
28356 (normal_mod_CFLAGS): Likewise.
28357 (normal_mod_ASFLAGS): Likewise.
28359 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
28361 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
28364 * kern/dl.c (pupa_dl_ref): Refer depending modules
28366 (pupa_dl_unref): Unrefer depending modules recursively.
28367 Don't call pupa_dl_unload implicitly, because PUPA can crash if
28368 a module is unloaded before one depending on that module is
28370 (pupa_dl_unload): Unload depending modules explicitly,
28373 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
28375 * include/pupa/i386/pc/linux.h: New file.
28376 * loader/i386/pc/linux.c: Likewise.
28378 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
28380 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
28381 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
28382 of PUPA_CHAINLOADER_BOOT_SECTOR.
28384 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
28385 (pupa_linux_prot_size): New variable.
28386 (pupa_linux_tmp_addr): Likewise.
28387 (pupa_linux_real_addr): Likewise.
28388 (pupa_linux_boot_zimage): New function.
28389 (pupa_linux_boot_bzimage): Likewise.
28391 * kern/i386/pc/init.c (struct mem_region): New structure.
28392 (MAX_REGIONS): New macro.
28393 (mem_regions): New variable.
28394 (num_regions): Likewise.
28395 (pupa_os_area_addr): Likewise.
28396 (pupa_os_area_size): Likewise.
28397 (pupa_lower_mem): Likewise.
28398 (pupa_upper_mem): Likewise.
28399 (add_mem_region): New function.
28400 (compact_mem_regions): Likewise.
28401 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
28402 the size of the conventional memory and that of so-called upper
28403 memory (before the first memory hole).
28404 Instead of adding each found region to free memory, use
28405 add_mem_region and add them after removing overlaps.
28406 Also, add only 1/4 of the upper memory to free memory. The rest
28407 is used for loading OS images. Maybe this is ad hoc, but this
28408 makes it much easier to relocate OS images when booting.
28410 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
28411 (pupa_enter_rescue_mode): Don't register initrd and module.
28413 * kern/mm.c: Include pupa/dl.h.
28415 * kern/main.c: Include pupa/file.h and pupa/device.h.
28417 * kern/loader.c (pupa_loader_load_module_func): Removed.
28418 (pupa_loader_load_module): Likewise.
28420 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
28423 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
28424 (pupa_linux_tmp_addr): Likewise.
28425 (pupa_linux_real_addr): Likewise.
28426 (pupa_linux_boot_zimage): Likewise.
28427 (pupa_linux_boot_bzimage): Likewise.
28429 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
28430 (pupa_upper_mem): Likewise.
28431 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
28432 module is too dangerous.
28434 * include/pupa/loader.h (pupa_os_area_addr): Declared.
28435 (pupa_os_area_size): Likewise.
28436 (pupa_loader_set): Remove the first argument. Loader doesn't
28437 manage modules or initrd any longer.
28438 (pupa_loader_load_module): Removed.
28440 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
28441 (linux_mod_SOURCES): New variable.
28442 (linux_mod_CFLAGS): Likewise.
28444 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
28446 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
28447 the length of a blocklist correctly.
28449 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
28450 Use ioctl only if the OS file is a block device.
28451 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
28452 not very useful for normal files.
28454 * kern/main.c (pupa_set_root_dev): New function.
28455 (pupa_load_normal_mode): Likewise.
28456 (pupa_main): Call those above.
28458 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
28461 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
28463 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
28465 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
28466 (setup): Configure the installed partition information and the
28469 * loader/i386/pc/chainloader.c (my_mod): New variable.
28470 (pupa_chainloader_unload): New function.
28471 (pupa_rescue_cmd_chainloader): Refer itself.
28472 (PUPA_MOD_INIT): Save its own module in MY_MOD.
28474 * kern/i386/pc/startup.S (install_partition): Removed.
28475 (version_string): Likewise.
28476 (config_file): Likewise.
28477 (pupa_install_dos_part): New variable.
28478 (pupa_install_bsd_part): Likewise.
28479 (pupa_prefix): Likewise.
28480 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
28482 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
28484 (make_install_device): New function.
28485 (pupa_machine_init): Set the dl prefix.
28487 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
28488 (buf): Renamed to ...
28489 (linebuf): ... this.
28490 (pupa_rescue_cmd_prefix): New function.
28491 (pupa_rescue_cmd_insmod): Likewise.
28492 (pupa_rescue_cmd_rmmod): Likewise.
28493 (pupa_rescue_cmd_lsmod): Likewise.
28494 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
28497 * kern/mm.c (pupa_memalign): If failed even after invalidating
28498 disk caches, unload unneeded modules and retry.
28500 * kern/misc.c (pupa_memmove): New function.
28501 (pupa_memcpy): Removed.
28502 (pupa_strcpy): New function.
28503 (pupa_itoa): Made static.
28505 * kern/dl.c (pupa_dl_iterate): New function.
28506 (pupa_dl_ref): Likewise.
28507 (pupa_dl_unref): Likewise.
28508 (pupa_dl_unload): Return if succeeded or not.
28509 (pupa_dl_unload_unneeded): New function.
28510 (pupa_dl_unload_all): Likewise.
28511 (pupa_dl_init): Renamed to ...
28512 (pupa_dl_set_prefix): ... this.
28513 (pupa_dl_get_prefix): New function.
28515 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
28516 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
28517 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
28518 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
28519 (pupa_install_dos_part): Declared.
28520 (pupa_install_bsd_part): Likewise.
28521 (pupa_prefix): Likewise.
28522 (pupa_boot_drive): Likewise.
28524 * include/pupa/types.h: Fix a typo.
28526 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
28528 (pupa_memmove): Declared.
28529 (pupa_strcpy): Likewise.
28531 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
28532 pupa_mod_init takes one argument, its own module.
28533 (pupa_dl_unload_unneeded): Declared.
28534 (pupa_dl_unload_all): Likewise.
28535 (pupa_dl_ref): Likewise.
28536 (pupa_dl_unref): Likewise.
28537 (pupa_dl_iterate): Likewise.
28538 (pupa_dl_init): Renamed to ...
28539 (pupa_dl_set_prefix): ... this.
28540 (pupa_dl_get_prefix): Declared.
28542 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
28543 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
28545 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
28546 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
28548 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
28549 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
28551 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
28553 * util/i386/pc/pupa-setup.c (setup): Define the internal
28554 function find_first_partition_start at the top level, because GCC
28555 3.0.x cannot compile internal functions in deeper scopes
28557 (find_root_device): Use lstat instead of stat.
28558 Don't follow symbolic links.
28559 Fix the path-constructing code.
28561 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
28562 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
28563 by a BLKGETSIZE ioctl first, because block devices don't fill
28564 the member st_mode of the structure stat on Linux.
28565 [__linux__] (linux_find_partition): Use a temporary buffer
28566 REAL_DEV for the working space. Copy it to DEV before returning.
28567 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
28568 buffer cache consistent.
28569 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
28570 strncmp. The previous value was merely wrong.
28571 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
28573 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
28574 FAT size is 12. The previous value was merely wrong.
28576 * kern/main.c (pupa_main): Don't split the starting message from
28579 * kern/term.c (pupa_putchar): Put CR after LF instead of before
28580 LF, because BIOS goes crazy about character attributes in this
28583 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
28585 * include/i386/pc/util/biosdisk.h: New file.
28586 * util/i386/pc/biosdisk.c: Likewise.
28587 * util/i386/pc/pupa-setup.c: Likewise.
28589 * Makefile.in (INCLUDE_DISTFILES): Added
28590 include/pupa/i386/pc/util/biosdisk.h.
28591 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
28592 directory util/i386/pc.
28593 (install-local): Added a rule for sbin_UTILITIES.
28594 (uninstall): Likewise.
28596 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
28598 * util/misc.c (xrealloc): New function.
28599 (pupa_malloc): Likewise.
28600 (pupa_free): Likewise.
28601 (pupa_realloc): Likewise.
28602 (pupa_stop): Likewise.
28603 (pupa_putchar): Likewise.
28605 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
28607 * include/pupa/util/misc.h (xrealloc): Declared.
28609 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
28611 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
28612 (PUPA_BOOT_MACHINE_BPB_END): ... this.
28614 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
28615 [PUPA_UTIL] (pupa_fat_fini): Likewise.
28617 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
28618 way should be implemented.
28619 [PUPA_UTIL] (pupa_fat_fini): Likewise.
28621 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
28622 the size of NAME for safety.
28623 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
28626 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
28627 (pupa_setup_SOURCES): Likewise.
28629 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
28631 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
28633 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
28634 bunch of pushl's from pusha, because this destroys the return
28637 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
28639 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
28640 This means that any missing prototypes could be fatal. Also, you
28641 must take care when writing assembly code. See the comments at
28642 the beginning of startup.S, for more details.
28644 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
28645 compilation mechanism.
28646 (pupa_chainloader_real_boot): Likewise.
28647 (pupa_biosdisk_rw_int13_extensions): Likewise.
28648 (pupa_biosdisk_rw_standard): Likewise.
28649 (pupa_biosdisk_check_int13_extensions): Likewise.
28650 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
28651 (pupa_biosdisk_get_diskinfo_standard): Likewise.
28652 (pupa_get_memsize): Likewise.
28653 (pupa_get_mmap_entry): Likewise.
28654 (pupa_console_putchar): Likewise.
28655 (pupa_console_setcursor): Likewise.
28656 (pupa_getrtsecs): Use pushl instead of push.
28658 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
28659 memory instead of the stack for a mmap entry, because some
28660 BIOSes may ignore the maximum size and overflow.
28662 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
28664 * genmk.rb (PModule#rule): Compile automatically generated
28665 sources with module-specific CFLAGS as well as other sources.
28667 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28669 * configure.ac: Check ld.
28670 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
28671 respectively, before checking endianness and sizes.
28673 * Makefile.in (LD): New variable.
28675 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28677 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
28679 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28681 * Changelog: New file.